1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME= 269PACKAGE_TARNAME= 270PACKAGE_VERSION= 271PACKAGE_STRING= 272PACKAGE_BUGREPORT= 273 274ac_unique_file="buffer.c" 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE LD build build_cpu build_vendor build_os host host_cpu host_vendor host_os AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP INSTALL ac_ct_INSTALL CPP EGREP LIBOBJS LTLIBOBJS' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP 773 774# 775# Report the --help message. 776# 777if test "$ac_init_help" = "long"; then 778 # Omit some internal or obsolete options to make the list less imposing. 779 # This message is too long to be a string in the A/UX 3.1 sh. 780 cat <<_ACEOF 781\`configure' configures this package to adapt to many kinds of systems. 782 783Usage: $0 [OPTION]... [VAR=VALUE]... 784 785To assign environment variables (e.g., CC, CFLAGS...), specify them as 786VAR=VALUE. See below for descriptions of some of the useful variables. 787 788Defaults for the options are specified in brackets. 789 790Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801_ACEOF 802 803 cat <<_ACEOF 804Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810By default, \`make install' will install all the files in 811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813for instance \`--prefix=\$HOME'. 814 815For better control, use the options below. 816 817Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830_ACEOF 831 832 cat <<\_ACEOF 833 834System types: 835 --build=BUILD configure for building on BUILD [guessed] 836 --host=HOST cross-compile to build programs to run on HOST [BUILD] 837_ACEOF 838fi 839 840if test -n "$ac_init_help"; then 841 842 cat <<\_ACEOF 843 844Optional Features: 845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 847 --disable-largefile omit support for large files 848 --disable-zlib Don't include zlib support 849 --enable-pam Try to include PAM support 850 --disable-openpty Don't use openpty, use alternative method 851 --disable-syslog Don't include syslog support 852 --disable-shadow Don't use shadow passwords (if available) 853 --disable-lastlog Disable use of lastlog even if detected no 854 --disable-utmp Disable use of utmp even if detected no 855 --disable-utmpx Disable use of utmpx even if detected no 856 --disable-wtmp Disable use of wtmp even if detected no 857 --disable-wtmpx Disable use of wtmpx even if detected no 858 --disable-loginfunc Disable use of login() etc. no 859 --disable-pututline Disable use of pututline() etc. (uwtmp) no 860 --disable-pututxline Disable use of pututxline() etc. (uwtmpx) no 861 862Optional Packages: 863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 865 --with-zlib=PATH Use zlib in PATH 866 --with-pam=PATH Use pam in PATH 867 --with-lastlog=FILE|DIR specify lastlog location common locations 868 869Some influential environment variables: 870 CC C compiler command 871 CFLAGS C compiler flags 872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 873 nonstandard directory <lib dir> 874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 875 headers in a nonstandard directory <include dir> 876 CPP C preprocessor 877 878Use these variables to override the choices made by `configure' or to help 879it to find libraries and programs with nonstandard names/locations. 880 881_ACEOF 882fi 883 884if test "$ac_init_help" = "recursive"; then 885 # If there are subdirs, report their specific --help. 886 ac_popdir=`pwd` 887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 888 test -d $ac_dir || continue 889 ac_builddir=. 890 891if test "$ac_dir" != .; then 892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 893 # A "../" for each directory in $ac_dir_suffix. 894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 895else 896 ac_dir_suffix= ac_top_builddir= 897fi 898 899case $srcdir in 900 .) # No --srcdir option. We are building in place. 901 ac_srcdir=. 902 if test -z "$ac_top_builddir"; then 903 ac_top_srcdir=. 904 else 905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 906 fi ;; 907 [\\/]* | ?:[\\/]* ) # Absolute path. 908 ac_srcdir=$srcdir$ac_dir_suffix; 909 ac_top_srcdir=$srcdir ;; 910 *) # Relative path. 911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 912 ac_top_srcdir=$ac_top_builddir$srcdir ;; 913esac 914 915# Do not use `cd foo && pwd` to compute absolute paths, because 916# the directories may not exist. 917case `pwd` in 918.) ac_abs_builddir="$ac_dir";; 919*) 920 case "$ac_dir" in 921 .) ac_abs_builddir=`pwd`;; 922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 923 *) ac_abs_builddir=`pwd`/"$ac_dir";; 924 esac;; 925esac 926case $ac_abs_builddir in 927.) ac_abs_top_builddir=${ac_top_builddir}.;; 928*) 929 case ${ac_top_builddir}. in 930 .) ac_abs_top_builddir=$ac_abs_builddir;; 931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 933 esac;; 934esac 935case $ac_abs_builddir in 936.) ac_abs_srcdir=$ac_srcdir;; 937*) 938 case $ac_srcdir in 939 .) ac_abs_srcdir=$ac_abs_builddir;; 940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 942 esac;; 943esac 944case $ac_abs_builddir in 945.) ac_abs_top_srcdir=$ac_top_srcdir;; 946*) 947 case $ac_top_srcdir in 948 .) ac_abs_top_srcdir=$ac_abs_builddir;; 949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 951 esac;; 952esac 953 954 cd $ac_dir 955 # Check for guested configure; otherwise get Cygnus style configure. 956 if test -f $ac_srcdir/configure.gnu; then 957 echo 958 $SHELL $ac_srcdir/configure.gnu --help=recursive 959 elif test -f $ac_srcdir/configure; then 960 echo 961 $SHELL $ac_srcdir/configure --help=recursive 962 elif test -f $ac_srcdir/configure.ac || 963 test -f $ac_srcdir/configure.in; then 964 echo 965 $ac_configure --help 966 else 967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 968 fi 969 cd $ac_popdir 970 done 971fi 972 973test -n "$ac_init_help" && exit 0 974if $ac_init_version; then 975 cat <<\_ACEOF 976 977Copyright (C) 2003 Free Software Foundation, Inc. 978This configure script is free software; the Free Software Foundation 979gives unlimited permission to copy, distribute and modify it. 980_ACEOF 981 exit 0 982fi 983exec 5>config.log 984cat >&5 <<_ACEOF 985This file contains any messages produced by compilers while 986running configure, to aid debugging if configure makes a mistake. 987 988It was created by $as_me, which was 989generated by GNU Autoconf 2.59. Invocation command line was 990 991 $ $0 $@ 992 993_ACEOF 994{ 995cat <<_ASUNAME 996## --------- ## 997## Platform. ## 998## --------- ## 999 1000hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1001uname -m = `(uname -m) 2>/dev/null || echo unknown` 1002uname -r = `(uname -r) 2>/dev/null || echo unknown` 1003uname -s = `(uname -s) 2>/dev/null || echo unknown` 1004uname -v = `(uname -v) 2>/dev/null || echo unknown` 1005 1006/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1007/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1008 1009/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1010/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1011/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1012hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1013/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1014/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1015/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1016 1017_ASUNAME 1018 1019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1020for as_dir in $PATH 1021do 1022 IFS=$as_save_IFS 1023 test -z "$as_dir" && as_dir=. 1024 echo "PATH: $as_dir" 1025done 1026 1027} >&5 1028 1029cat >&5 <<_ACEOF 1030 1031 1032## ----------- ## 1033## Core tests. ## 1034## ----------- ## 1035 1036_ACEOF 1037 1038 1039# Keep a trace of the command line. 1040# Strip out --no-create and --no-recursion so they do not pile up. 1041# Strip out --silent because we don't want to record it for future runs. 1042# Also quote any args containing shell meta-characters. 1043# Make two passes to allow for proper duplicate-argument suppression. 1044ac_configure_args= 1045ac_configure_args0= 1046ac_configure_args1= 1047ac_sep= 1048ac_must_keep_next=false 1049for ac_pass in 1 2 1050do 1051 for ac_arg 1052 do 1053 case $ac_arg in 1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1056 | -silent | --silent | --silen | --sile | --sil) 1057 continue ;; 1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1060 esac 1061 case $ac_pass in 1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1063 2) 1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1065 if test $ac_must_keep_next = true; then 1066 ac_must_keep_next=false # Got value, back to normal. 1067 else 1068 case $ac_arg in 1069 *=* | --config-cache | -C | -disable-* | --disable-* \ 1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1072 | -with-* | --with-* | -without-* | --without-* | --x) 1073 case "$ac_configure_args0 " in 1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1075 esac 1076 ;; 1077 -* ) ac_must_keep_next=true ;; 1078 esac 1079 fi 1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1081 # Get rid of the leading space. 1082 ac_sep=" " 1083 ;; 1084 esac 1085 done 1086done 1087$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1088$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1089 1090# When interrupted or exit'd, cleanup temporary files, and complete 1091# config.log. We remove comments because anyway the quotes in there 1092# would cause problems or look ugly. 1093# WARNING: Be sure not to use single quotes in there, as some shells, 1094# such as our DU 5.0 friend, will then `close' the trap. 1095trap 'exit_status=$? 1096 # Save into config.log some information that might help in debugging. 1097 { 1098 echo 1099 1100 cat <<\_ASBOX 1101## ---------------- ## 1102## Cache variables. ## 1103## ---------------- ## 1104_ASBOX 1105 echo 1106 # The following way of writing the cache mishandles newlines in values, 1107{ 1108 (set) 2>&1 | 1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1110 *ac_space=\ *) 1111 sed -n \ 1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1114 ;; 1115 *) 1116 sed -n \ 1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1118 ;; 1119 esac; 1120} 1121 echo 1122 1123 cat <<\_ASBOX 1124## ----------------- ## 1125## Output variables. ## 1126## ----------------- ## 1127_ASBOX 1128 echo 1129 for ac_var in $ac_subst_vars 1130 do 1131 eval ac_val=$`echo $ac_var` 1132 echo "$ac_var='"'"'$ac_val'"'"'" 1133 done | sort 1134 echo 1135 1136 if test -n "$ac_subst_files"; then 1137 cat <<\_ASBOX 1138## ------------- ## 1139## Output files. ## 1140## ------------- ## 1141_ASBOX 1142 echo 1143 for ac_var in $ac_subst_files 1144 do 1145 eval ac_val=$`echo $ac_var` 1146 echo "$ac_var='"'"'$ac_val'"'"'" 1147 done | sort 1148 echo 1149 fi 1150 1151 if test -s confdefs.h; then 1152 cat <<\_ASBOX 1153## ----------- ## 1154## confdefs.h. ## 1155## ----------- ## 1156_ASBOX 1157 echo 1158 sed "/^$/d" confdefs.h | sort 1159 echo 1160 fi 1161 test "$ac_signal" != 0 && 1162 echo "$as_me: caught signal $ac_signal" 1163 echo "$as_me: exit $exit_status" 1164 } >&5 1165 rm -f core *.core && 1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1167 exit $exit_status 1168 ' 0 1169for ac_signal in 1 2 13 15; do 1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1171done 1172ac_signal=0 1173 1174# confdefs.h avoids OS command line length limits that DEFS can exceed. 1175rm -rf conftest* confdefs.h 1176# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1177echo >confdefs.h 1178 1179# Predefined preprocessor variables. 1180 1181cat >>confdefs.h <<_ACEOF 1182#define PACKAGE_NAME "$PACKAGE_NAME" 1183_ACEOF 1184 1185 1186cat >>confdefs.h <<_ACEOF 1187#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1188_ACEOF 1189 1190 1191cat >>confdefs.h <<_ACEOF 1192#define PACKAGE_VERSION "$PACKAGE_VERSION" 1193_ACEOF 1194 1195 1196cat >>confdefs.h <<_ACEOF 1197#define PACKAGE_STRING "$PACKAGE_STRING" 1198_ACEOF 1199 1200 1201cat >>confdefs.h <<_ACEOF 1202#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1203_ACEOF 1204 1205 1206# Let the site file select an alternate cache file if it wants to. 1207# Prefer explicitly selected file to automatically selected ones. 1208if test -z "$CONFIG_SITE"; then 1209 if test "x$prefix" != xNONE; then 1210 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1211 else 1212 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1213 fi 1214fi 1215for ac_site_file in $CONFIG_SITE; do 1216 if test -r "$ac_site_file"; then 1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1218echo "$as_me: loading site script $ac_site_file" >&6;} 1219 sed 's/^/| /' "$ac_site_file" >&5 1220 . "$ac_site_file" 1221 fi 1222done 1223 1224if test -r "$cache_file"; then 1225 # Some versions of bash will fail to source /dev/null (special 1226 # files actually), so we avoid doing that. 1227 if test -f "$cache_file"; then 1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1229echo "$as_me: loading cache $cache_file" >&6;} 1230 case $cache_file in 1231 [\\/]* | ?:[\\/]* ) . $cache_file;; 1232 *) . ./$cache_file;; 1233 esac 1234 fi 1235else 1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1237echo "$as_me: creating cache $cache_file" >&6;} 1238 >$cache_file 1239fi 1240 1241# Check that the precious variables saved in the cache have kept the same 1242# value. 1243ac_cache_corrupted=false 1244for ac_var in `(set) 2>&1 | 1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1247 eval ac_new_set=\$ac_env_${ac_var}_set 1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1249 eval ac_new_val="\$ac_env_${ac_var}_value" 1250 case $ac_old_set,$ac_new_set in 1251 set,) 1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1253echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1254 ac_cache_corrupted=: ;; 1255 ,set) 1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1257echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1258 ac_cache_corrupted=: ;; 1259 ,);; 1260 *) 1261 if test "x$ac_old_val" != "x$ac_new_val"; then 1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1263echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1265echo "$as_me: former value: $ac_old_val" >&2;} 1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1267echo "$as_me: current value: $ac_new_val" >&2;} 1268 ac_cache_corrupted=: 1269 fi;; 1270 esac 1271 # Pass precious variables to config.status. 1272 if test "$ac_new_set" = set; then 1273 case $ac_new_val in 1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1276 *) ac_arg=$ac_var=$ac_new_val ;; 1277 esac 1278 case " $ac_configure_args " in 1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1281 esac 1282 fi 1283done 1284if $ac_cache_corrupted; then 1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1286echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1288echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1289 { (exit 1); exit 1; }; } 1290fi 1291 1292ac_ext=c 1293ac_cpp='$CPP $CPPFLAGS' 1294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1296ac_compiler_gnu=$ac_cv_c_compiler_gnu 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317OLDCFLAGS=$CFLAGS 1318# Checks for programs. 1319ac_ext=c 1320ac_cpp='$CPP $CPPFLAGS' 1321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1323ac_compiler_gnu=$ac_cv_c_compiler_gnu 1324if test -n "$ac_tool_prefix"; then 1325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1326set dummy ${ac_tool_prefix}gcc; ac_word=$2 1327echo "$as_me:$LINENO: checking for $ac_word" >&5 1328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1329if test "${ac_cv_prog_CC+set}" = set; then 1330 echo $ECHO_N "(cached) $ECHO_C" >&6 1331else 1332 if test -n "$CC"; then 1333 ac_cv_prog_CC="$CC" # Let the user override the test. 1334else 1335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1336for as_dir in $PATH 1337do 1338 IFS=$as_save_IFS 1339 test -z "$as_dir" && as_dir=. 1340 for ac_exec_ext in '' $ac_executable_extensions; do 1341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1342 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1344 break 2 1345 fi 1346done 1347done 1348 1349fi 1350fi 1351CC=$ac_cv_prog_CC 1352if test -n "$CC"; then 1353 echo "$as_me:$LINENO: result: $CC" >&5 1354echo "${ECHO_T}$CC" >&6 1355else 1356 echo "$as_me:$LINENO: result: no" >&5 1357echo "${ECHO_T}no" >&6 1358fi 1359 1360fi 1361if test -z "$ac_cv_prog_CC"; then 1362 ac_ct_CC=$CC 1363 # Extract the first word of "gcc", so it can be a program name with args. 1364set dummy gcc; ac_word=$2 1365echo "$as_me:$LINENO: checking for $ac_word" >&5 1366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1367if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1368 echo $ECHO_N "(cached) $ECHO_C" >&6 1369else 1370 if test -n "$ac_ct_CC"; then 1371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1372else 1373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1374for as_dir in $PATH 1375do 1376 IFS=$as_save_IFS 1377 test -z "$as_dir" && as_dir=. 1378 for ac_exec_ext in '' $ac_executable_extensions; do 1379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1380 ac_cv_prog_ac_ct_CC="gcc" 1381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1382 break 2 1383 fi 1384done 1385done 1386 1387fi 1388fi 1389ac_ct_CC=$ac_cv_prog_ac_ct_CC 1390if test -n "$ac_ct_CC"; then 1391 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1392echo "${ECHO_T}$ac_ct_CC" >&6 1393else 1394 echo "$as_me:$LINENO: result: no" >&5 1395echo "${ECHO_T}no" >&6 1396fi 1397 1398 CC=$ac_ct_CC 1399else 1400 CC="$ac_cv_prog_CC" 1401fi 1402 1403if test -z "$CC"; then 1404 if test -n "$ac_tool_prefix"; then 1405 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1406set dummy ${ac_tool_prefix}cc; ac_word=$2 1407echo "$as_me:$LINENO: checking for $ac_word" >&5 1408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1409if test "${ac_cv_prog_CC+set}" = set; then 1410 echo $ECHO_N "(cached) $ECHO_C" >&6 1411else 1412 if test -n "$CC"; then 1413 ac_cv_prog_CC="$CC" # Let the user override the test. 1414else 1415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1416for as_dir in $PATH 1417do 1418 IFS=$as_save_IFS 1419 test -z "$as_dir" && as_dir=. 1420 for ac_exec_ext in '' $ac_executable_extensions; do 1421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1422 ac_cv_prog_CC="${ac_tool_prefix}cc" 1423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1424 break 2 1425 fi 1426done 1427done 1428 1429fi 1430fi 1431CC=$ac_cv_prog_CC 1432if test -n "$CC"; then 1433 echo "$as_me:$LINENO: result: $CC" >&5 1434echo "${ECHO_T}$CC" >&6 1435else 1436 echo "$as_me:$LINENO: result: no" >&5 1437echo "${ECHO_T}no" >&6 1438fi 1439 1440fi 1441if test -z "$ac_cv_prog_CC"; then 1442 ac_ct_CC=$CC 1443 # Extract the first word of "cc", so it can be a program name with args. 1444set dummy cc; ac_word=$2 1445echo "$as_me:$LINENO: checking for $ac_word" >&5 1446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1448 echo $ECHO_N "(cached) $ECHO_C" >&6 1449else 1450 if test -n "$ac_ct_CC"; then 1451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1452else 1453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1454for as_dir in $PATH 1455do 1456 IFS=$as_save_IFS 1457 test -z "$as_dir" && as_dir=. 1458 for ac_exec_ext in '' $ac_executable_extensions; do 1459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1460 ac_cv_prog_ac_ct_CC="cc" 1461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1462 break 2 1463 fi 1464done 1465done 1466 1467fi 1468fi 1469ac_ct_CC=$ac_cv_prog_ac_ct_CC 1470if test -n "$ac_ct_CC"; then 1471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1472echo "${ECHO_T}$ac_ct_CC" >&6 1473else 1474 echo "$as_me:$LINENO: result: no" >&5 1475echo "${ECHO_T}no" >&6 1476fi 1477 1478 CC=$ac_ct_CC 1479else 1480 CC="$ac_cv_prog_CC" 1481fi 1482 1483fi 1484if test -z "$CC"; then 1485 # Extract the first word of "cc", so it can be a program name with args. 1486set dummy cc; ac_word=$2 1487echo "$as_me:$LINENO: checking for $ac_word" >&5 1488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1489if test "${ac_cv_prog_CC+set}" = set; then 1490 echo $ECHO_N "(cached) $ECHO_C" >&6 1491else 1492 if test -n "$CC"; then 1493 ac_cv_prog_CC="$CC" # Let the user override the test. 1494else 1495 ac_prog_rejected=no 1496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1497for as_dir in $PATH 1498do 1499 IFS=$as_save_IFS 1500 test -z "$as_dir" && as_dir=. 1501 for ac_exec_ext in '' $ac_executable_extensions; do 1502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1504 ac_prog_rejected=yes 1505 continue 1506 fi 1507 ac_cv_prog_CC="cc" 1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1509 break 2 1510 fi 1511done 1512done 1513 1514if test $ac_prog_rejected = yes; then 1515 # We found a bogon in the path, so make sure we never use it. 1516 set dummy $ac_cv_prog_CC 1517 shift 1518 if test $# != 0; then 1519 # We chose a different compiler from the bogus one. 1520 # However, it has the same basename, so the bogon will be chosen 1521 # first if we set CC to just the basename; use the full file name. 1522 shift 1523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1524 fi 1525fi 1526fi 1527fi 1528CC=$ac_cv_prog_CC 1529if test -n "$CC"; then 1530 echo "$as_me:$LINENO: result: $CC" >&5 1531echo "${ECHO_T}$CC" >&6 1532else 1533 echo "$as_me:$LINENO: result: no" >&5 1534echo "${ECHO_T}no" >&6 1535fi 1536 1537fi 1538if test -z "$CC"; then 1539 if test -n "$ac_tool_prefix"; then 1540 for ac_prog in cl 1541 do 1542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1543set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1544echo "$as_me:$LINENO: checking for $ac_word" >&5 1545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1546if test "${ac_cv_prog_CC+set}" = set; then 1547 echo $ECHO_N "(cached) $ECHO_C" >&6 1548else 1549 if test -n "$CC"; then 1550 ac_cv_prog_CC="$CC" # Let the user override the test. 1551else 1552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1553for as_dir in $PATH 1554do 1555 IFS=$as_save_IFS 1556 test -z "$as_dir" && as_dir=. 1557 for ac_exec_ext in '' $ac_executable_extensions; do 1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1561 break 2 1562 fi 1563done 1564done 1565 1566fi 1567fi 1568CC=$ac_cv_prog_CC 1569if test -n "$CC"; then 1570 echo "$as_me:$LINENO: result: $CC" >&5 1571echo "${ECHO_T}$CC" >&6 1572else 1573 echo "$as_me:$LINENO: result: no" >&5 1574echo "${ECHO_T}no" >&6 1575fi 1576 1577 test -n "$CC" && break 1578 done 1579fi 1580if test -z "$CC"; then 1581 ac_ct_CC=$CC 1582 for ac_prog in cl 1583do 1584 # Extract the first word of "$ac_prog", so it can be a program name with args. 1585set dummy $ac_prog; ac_word=$2 1586echo "$as_me:$LINENO: checking for $ac_word" >&5 1587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1588if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1589 echo $ECHO_N "(cached) $ECHO_C" >&6 1590else 1591 if test -n "$ac_ct_CC"; then 1592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1593else 1594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1595for as_dir in $PATH 1596do 1597 IFS=$as_save_IFS 1598 test -z "$as_dir" && as_dir=. 1599 for ac_exec_ext in '' $ac_executable_extensions; do 1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1601 ac_cv_prog_ac_ct_CC="$ac_prog" 1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1603 break 2 1604 fi 1605done 1606done 1607 1608fi 1609fi 1610ac_ct_CC=$ac_cv_prog_ac_ct_CC 1611if test -n "$ac_ct_CC"; then 1612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1613echo "${ECHO_T}$ac_ct_CC" >&6 1614else 1615 echo "$as_me:$LINENO: result: no" >&5 1616echo "${ECHO_T}no" >&6 1617fi 1618 1619 test -n "$ac_ct_CC" && break 1620done 1621 1622 CC=$ac_ct_CC 1623fi 1624 1625fi 1626 1627 1628test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1629See \`config.log' for more details." >&5 1630echo "$as_me: error: no acceptable C compiler found in \$PATH 1631See \`config.log' for more details." >&2;} 1632 { (exit 1); exit 1; }; } 1633 1634# Provide some information about the compiler. 1635echo "$as_me:$LINENO:" \ 1636 "checking for C compiler version" >&5 1637ac_compiler=`set X $ac_compile; echo $2` 1638{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1639 (eval $ac_compiler --version </dev/null >&5) 2>&5 1640 ac_status=$? 1641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1642 (exit $ac_status); } 1643{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1644 (eval $ac_compiler -v </dev/null >&5) 2>&5 1645 ac_status=$? 1646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1647 (exit $ac_status); } 1648{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1649 (eval $ac_compiler -V </dev/null >&5) 2>&5 1650 ac_status=$? 1651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1652 (exit $ac_status); } 1653 1654cat >conftest.$ac_ext <<_ACEOF 1655/* confdefs.h. */ 1656_ACEOF 1657cat confdefs.h >>conftest.$ac_ext 1658cat >>conftest.$ac_ext <<_ACEOF 1659/* end confdefs.h. */ 1660 1661int 1662main () 1663{ 1664 1665 ; 1666 return 0; 1667} 1668_ACEOF 1669ac_clean_files_save=$ac_clean_files 1670ac_clean_files="$ac_clean_files a.out a.exe b.out" 1671# Try to create an executable without -o first, disregard a.out. 1672# It will help us diagnose broken compilers, and finding out an intuition 1673# of exeext. 1674echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1675echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1676ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1677if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1678 (eval $ac_link_default) 2>&5 1679 ac_status=$? 1680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1681 (exit $ac_status); }; then 1682 # Find the output, starting from the most likely. This scheme is 1683# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1684# resort. 1685 1686# Be careful to initialize this variable, since it used to be cached. 1687# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1688ac_cv_exeext= 1689# b.out is created by i960 compilers. 1690for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1691do 1692 test -f "$ac_file" || continue 1693 case $ac_file in 1694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1695 ;; 1696 conftest.$ac_ext ) 1697 # This is the source file. 1698 ;; 1699 [ab].out ) 1700 # We found the default executable, but exeext='' is most 1701 # certainly right. 1702 break;; 1703 *.* ) 1704 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1705 # FIXME: I believe we export ac_cv_exeext for Libtool, 1706 # but it would be cool to find out if it's true. Does anybody 1707 # maintain Libtool? --akim. 1708 export ac_cv_exeext 1709 break;; 1710 * ) 1711 break;; 1712 esac 1713done 1714else 1715 echo "$as_me: failed program was:" >&5 1716sed 's/^/| /' conftest.$ac_ext >&5 1717 1718{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1719See \`config.log' for more details." >&5 1720echo "$as_me: error: C compiler cannot create executables 1721See \`config.log' for more details." >&2;} 1722 { (exit 77); exit 77; }; } 1723fi 1724 1725ac_exeext=$ac_cv_exeext 1726echo "$as_me:$LINENO: result: $ac_file" >&5 1727echo "${ECHO_T}$ac_file" >&6 1728 1729# Check the compiler produces executables we can run. If not, either 1730# the compiler is broken, or we cross compile. 1731echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1732echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1733# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1734# If not cross compiling, check that we can run a simple program. 1735if test "$cross_compiling" != yes; then 1736 if { ac_try='./$ac_file' 1737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1738 (eval $ac_try) 2>&5 1739 ac_status=$? 1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1741 (exit $ac_status); }; }; then 1742 cross_compiling=no 1743 else 1744 if test "$cross_compiling" = maybe; then 1745 cross_compiling=yes 1746 else 1747 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1748If you meant to cross compile, use \`--host'. 1749See \`config.log' for more details." >&5 1750echo "$as_me: error: cannot run C compiled programs. 1751If you meant to cross compile, use \`--host'. 1752See \`config.log' for more details." >&2;} 1753 { (exit 1); exit 1; }; } 1754 fi 1755 fi 1756fi 1757echo "$as_me:$LINENO: result: yes" >&5 1758echo "${ECHO_T}yes" >&6 1759 1760rm -f a.out a.exe conftest$ac_cv_exeext b.out 1761ac_clean_files=$ac_clean_files_save 1762# Check the compiler produces executables we can run. If not, either 1763# the compiler is broken, or we cross compile. 1764echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1765echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1766echo "$as_me:$LINENO: result: $cross_compiling" >&5 1767echo "${ECHO_T}$cross_compiling" >&6 1768 1769echo "$as_me:$LINENO: checking for suffix of executables" >&5 1770echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1772 (eval $ac_link) 2>&5 1773 ac_status=$? 1774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1775 (exit $ac_status); }; then 1776 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1777# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1778# work properly (i.e., refer to `conftest.exe'), while it won't with 1779# `rm'. 1780for ac_file in conftest.exe conftest conftest.*; do 1781 test -f "$ac_file" || continue 1782 case $ac_file in 1783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1784 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1785 export ac_cv_exeext 1786 break;; 1787 * ) break;; 1788 esac 1789done 1790else 1791 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1792See \`config.log' for more details." >&5 1793echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1794See \`config.log' for more details." >&2;} 1795 { (exit 1); exit 1; }; } 1796fi 1797 1798rm -f conftest$ac_cv_exeext 1799echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1800echo "${ECHO_T}$ac_cv_exeext" >&6 1801 1802rm -f conftest.$ac_ext 1803EXEEXT=$ac_cv_exeext 1804ac_exeext=$EXEEXT 1805echo "$as_me:$LINENO: checking for suffix of object files" >&5 1806echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1807if test "${ac_cv_objext+set}" = set; then 1808 echo $ECHO_N "(cached) $ECHO_C" >&6 1809else 1810 cat >conftest.$ac_ext <<_ACEOF 1811/* confdefs.h. */ 1812_ACEOF 1813cat confdefs.h >>conftest.$ac_ext 1814cat >>conftest.$ac_ext <<_ACEOF 1815/* end confdefs.h. */ 1816 1817int 1818main () 1819{ 1820 1821 ; 1822 return 0; 1823} 1824_ACEOF 1825rm -f conftest.o conftest.obj 1826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1827 (eval $ac_compile) 2>&5 1828 ac_status=$? 1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1830 (exit $ac_status); }; then 1831 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1832 case $ac_file in 1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1834 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1835 break;; 1836 esac 1837done 1838else 1839 echo "$as_me: failed program was:" >&5 1840sed 's/^/| /' conftest.$ac_ext >&5 1841 1842{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1843See \`config.log' for more details." >&5 1844echo "$as_me: error: cannot compute suffix of object files: cannot compile 1845See \`config.log' for more details." >&2;} 1846 { (exit 1); exit 1; }; } 1847fi 1848 1849rm -f conftest.$ac_cv_objext conftest.$ac_ext 1850fi 1851echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1852echo "${ECHO_T}$ac_cv_objext" >&6 1853OBJEXT=$ac_cv_objext 1854ac_objext=$OBJEXT 1855echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1856echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1857if test "${ac_cv_c_compiler_gnu+set}" = set; then 1858 echo $ECHO_N "(cached) $ECHO_C" >&6 1859else 1860 cat >conftest.$ac_ext <<_ACEOF 1861/* confdefs.h. */ 1862_ACEOF 1863cat confdefs.h >>conftest.$ac_ext 1864cat >>conftest.$ac_ext <<_ACEOF 1865/* end confdefs.h. */ 1866 1867int 1868main () 1869{ 1870#ifndef __GNUC__ 1871 choke me 1872#endif 1873 1874 ; 1875 return 0; 1876} 1877_ACEOF 1878rm -f conftest.$ac_objext 1879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1880 (eval $ac_compile) 2>conftest.er1 1881 ac_status=$? 1882 grep -v '^ *+' conftest.er1 >conftest.err 1883 rm -f conftest.er1 1884 cat conftest.err >&5 1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1886 (exit $ac_status); } && 1887 { ac_try='test -z "$ac_c_werror_flag" 1888 || test ! -s conftest.err' 1889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1890 (eval $ac_try) 2>&5 1891 ac_status=$? 1892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1893 (exit $ac_status); }; } && 1894 { ac_try='test -s conftest.$ac_objext' 1895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1896 (eval $ac_try) 2>&5 1897 ac_status=$? 1898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1899 (exit $ac_status); }; }; then 1900 ac_compiler_gnu=yes 1901else 1902 echo "$as_me: failed program was:" >&5 1903sed 's/^/| /' conftest.$ac_ext >&5 1904 1905ac_compiler_gnu=no 1906fi 1907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1908ac_cv_c_compiler_gnu=$ac_compiler_gnu 1909 1910fi 1911echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1912echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1913GCC=`test $ac_compiler_gnu = yes && echo yes` 1914ac_test_CFLAGS=${CFLAGS+set} 1915ac_save_CFLAGS=$CFLAGS 1916CFLAGS="-g" 1917echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1918echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1919if test "${ac_cv_prog_cc_g+set}" = set; then 1920 echo $ECHO_N "(cached) $ECHO_C" >&6 1921else 1922 cat >conftest.$ac_ext <<_ACEOF 1923/* confdefs.h. */ 1924_ACEOF 1925cat confdefs.h >>conftest.$ac_ext 1926cat >>conftest.$ac_ext <<_ACEOF 1927/* end confdefs.h. */ 1928 1929int 1930main () 1931{ 1932 1933 ; 1934 return 0; 1935} 1936_ACEOF 1937rm -f conftest.$ac_objext 1938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1939 (eval $ac_compile) 2>conftest.er1 1940 ac_status=$? 1941 grep -v '^ *+' conftest.er1 >conftest.err 1942 rm -f conftest.er1 1943 cat conftest.err >&5 1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1945 (exit $ac_status); } && 1946 { ac_try='test -z "$ac_c_werror_flag" 1947 || test ! -s conftest.err' 1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1949 (eval $ac_try) 2>&5 1950 ac_status=$? 1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1952 (exit $ac_status); }; } && 1953 { ac_try='test -s conftest.$ac_objext' 1954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1955 (eval $ac_try) 2>&5 1956 ac_status=$? 1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1958 (exit $ac_status); }; }; then 1959 ac_cv_prog_cc_g=yes 1960else 1961 echo "$as_me: failed program was:" >&5 1962sed 's/^/| /' conftest.$ac_ext >&5 1963 1964ac_cv_prog_cc_g=no 1965fi 1966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1967fi 1968echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1969echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1970if test "$ac_test_CFLAGS" = set; then 1971 CFLAGS=$ac_save_CFLAGS 1972elif test $ac_cv_prog_cc_g = yes; then 1973 if test "$GCC" = yes; then 1974 CFLAGS="-g -O2" 1975 else 1976 CFLAGS="-g" 1977 fi 1978else 1979 if test "$GCC" = yes; then 1980 CFLAGS="-O2" 1981 else 1982 CFLAGS= 1983 fi 1984fi 1985echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 1986echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1987if test "${ac_cv_prog_cc_stdc+set}" = set; then 1988 echo $ECHO_N "(cached) $ECHO_C" >&6 1989else 1990 ac_cv_prog_cc_stdc=no 1991ac_save_CC=$CC 1992cat >conftest.$ac_ext <<_ACEOF 1993/* confdefs.h. */ 1994_ACEOF 1995cat confdefs.h >>conftest.$ac_ext 1996cat >>conftest.$ac_ext <<_ACEOF 1997/* end confdefs.h. */ 1998#include <stdarg.h> 1999#include <stdio.h> 2000#include <sys/types.h> 2001#include <sys/stat.h> 2002/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2003struct buf { int x; }; 2004FILE * (*rcsopen) (struct buf *, struct stat *, int); 2005static char *e (p, i) 2006 char **p; 2007 int i; 2008{ 2009 return p[i]; 2010} 2011static char *f (char * (*g) (char **, int), char **p, ...) 2012{ 2013 char *s; 2014 va_list v; 2015 va_start (v,p); 2016 s = g (p, va_arg (v,int)); 2017 va_end (v); 2018 return s; 2019} 2020 2021/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2022 function prototypes and stuff, but not '\xHH' hex character constants. 2023 These don't provoke an error unfortunately, instead are silently treated 2024 as 'x'. The following induces an error, until -std1 is added to get 2025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2026 array size at least. It's necessary to write '\x00'==0 to get something 2027 that's true only with -std1. */ 2028int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2029 2030int test (int i, double x); 2031struct s1 {int (*f) (int a);}; 2032struct s2 {int (*f) (double a);}; 2033int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2034int argc; 2035char **argv; 2036int 2037main () 2038{ 2039return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2040 ; 2041 return 0; 2042} 2043_ACEOF 2044# Don't try gcc -ansi; that turns off useful extensions and 2045# breaks some systems' header files. 2046# AIX -qlanglvl=ansi 2047# Ultrix and OSF/1 -std1 2048# HP-UX 10.20 and later -Ae 2049# HP-UX older versions -Aa -D_HPUX_SOURCE 2050# SVR4 -Xc -D__EXTENSIONS__ 2051for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2052do 2053 CC="$ac_save_CC $ac_arg" 2054 rm -f conftest.$ac_objext 2055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2056 (eval $ac_compile) 2>conftest.er1 2057 ac_status=$? 2058 grep -v '^ *+' conftest.er1 >conftest.err 2059 rm -f conftest.er1 2060 cat conftest.err >&5 2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2062 (exit $ac_status); } && 2063 { ac_try='test -z "$ac_c_werror_flag" 2064 || test ! -s conftest.err' 2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2066 (eval $ac_try) 2>&5 2067 ac_status=$? 2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2069 (exit $ac_status); }; } && 2070 { ac_try='test -s conftest.$ac_objext' 2071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2072 (eval $ac_try) 2>&5 2073 ac_status=$? 2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2075 (exit $ac_status); }; }; then 2076 ac_cv_prog_cc_stdc=$ac_arg 2077break 2078else 2079 echo "$as_me: failed program was:" >&5 2080sed 's/^/| /' conftest.$ac_ext >&5 2081 2082fi 2083rm -f conftest.err conftest.$ac_objext 2084done 2085rm -f conftest.$ac_ext conftest.$ac_objext 2086CC=$ac_save_CC 2087 2088fi 2089 2090case "x$ac_cv_prog_cc_stdc" in 2091 x|xno) 2092 echo "$as_me:$LINENO: result: none needed" >&5 2093echo "${ECHO_T}none needed" >&6 ;; 2094 *) 2095 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2096echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2097 CC="$CC $ac_cv_prog_cc_stdc" ;; 2098esac 2099 2100# Some people use a C++ compiler to compile C. Since we use `exit', 2101# in C++ we need to declare it. In case someone uses the same compiler 2102# for both compiling C and C++ we need to have the C++ compiler decide 2103# the declaration of exit, since it's the most demanding environment. 2104cat >conftest.$ac_ext <<_ACEOF 2105#ifndef __cplusplus 2106 choke me 2107#endif 2108_ACEOF 2109rm -f conftest.$ac_objext 2110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2111 (eval $ac_compile) 2>conftest.er1 2112 ac_status=$? 2113 grep -v '^ *+' conftest.er1 >conftest.err 2114 rm -f conftest.er1 2115 cat conftest.err >&5 2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2117 (exit $ac_status); } && 2118 { ac_try='test -z "$ac_c_werror_flag" 2119 || test ! -s conftest.err' 2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2121 (eval $ac_try) 2>&5 2122 ac_status=$? 2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2124 (exit $ac_status); }; } && 2125 { ac_try='test -s conftest.$ac_objext' 2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2127 (eval $ac_try) 2>&5 2128 ac_status=$? 2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2130 (exit $ac_status); }; }; then 2131 for ac_declaration in \ 2132 '' \ 2133 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2134 'extern "C" void std::exit (int); using std::exit;' \ 2135 'extern "C" void exit (int) throw ();' \ 2136 'extern "C" void exit (int);' \ 2137 'void exit (int);' 2138do 2139 cat >conftest.$ac_ext <<_ACEOF 2140/* confdefs.h. */ 2141_ACEOF 2142cat confdefs.h >>conftest.$ac_ext 2143cat >>conftest.$ac_ext <<_ACEOF 2144/* end confdefs.h. */ 2145$ac_declaration 2146#include <stdlib.h> 2147int 2148main () 2149{ 2150exit (42); 2151 ; 2152 return 0; 2153} 2154_ACEOF 2155rm -f conftest.$ac_objext 2156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2157 (eval $ac_compile) 2>conftest.er1 2158 ac_status=$? 2159 grep -v '^ *+' conftest.er1 >conftest.err 2160 rm -f conftest.er1 2161 cat conftest.err >&5 2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2163 (exit $ac_status); } && 2164 { ac_try='test -z "$ac_c_werror_flag" 2165 || test ! -s conftest.err' 2166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2167 (eval $ac_try) 2>&5 2168 ac_status=$? 2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2170 (exit $ac_status); }; } && 2171 { ac_try='test -s conftest.$ac_objext' 2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2173 (eval $ac_try) 2>&5 2174 ac_status=$? 2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2176 (exit $ac_status); }; }; then 2177 : 2178else 2179 echo "$as_me: failed program was:" >&5 2180sed 's/^/| /' conftest.$ac_ext >&5 2181 2182continue 2183fi 2184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2185 cat >conftest.$ac_ext <<_ACEOF 2186/* confdefs.h. */ 2187_ACEOF 2188cat confdefs.h >>conftest.$ac_ext 2189cat >>conftest.$ac_ext <<_ACEOF 2190/* end confdefs.h. */ 2191$ac_declaration 2192int 2193main () 2194{ 2195exit (42); 2196 ; 2197 return 0; 2198} 2199_ACEOF 2200rm -f conftest.$ac_objext 2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2202 (eval $ac_compile) 2>conftest.er1 2203 ac_status=$? 2204 grep -v '^ *+' conftest.er1 >conftest.err 2205 rm -f conftest.er1 2206 cat conftest.err >&5 2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2208 (exit $ac_status); } && 2209 { ac_try='test -z "$ac_c_werror_flag" 2210 || test ! -s conftest.err' 2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2212 (eval $ac_try) 2>&5 2213 ac_status=$? 2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2215 (exit $ac_status); }; } && 2216 { ac_try='test -s conftest.$ac_objext' 2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2218 (eval $ac_try) 2>&5 2219 ac_status=$? 2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2221 (exit $ac_status); }; }; then 2222 break 2223else 2224 echo "$as_me: failed program was:" >&5 2225sed 's/^/| /' conftest.$ac_ext >&5 2226 2227fi 2228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2229done 2230rm -f conftest* 2231if test -n "$ac_declaration"; then 2232 echo '#ifdef __cplusplus' >>confdefs.h 2233 echo $ac_declaration >>confdefs.h 2234 echo '#endif' >>confdefs.h 2235fi 2236 2237else 2238 echo "$as_me: failed program was:" >&5 2239sed 's/^/| /' conftest.$ac_ext >&5 2240 2241fi 2242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2243ac_ext=c 2244ac_cpp='$CPP $CPPFLAGS' 2245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2247ac_compiler_gnu=$ac_cv_c_compiler_gnu 2248 2249echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2250echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2251set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2252if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2253 echo $ECHO_N "(cached) $ECHO_C" >&6 2254else 2255 cat >conftest.make <<\_ACEOF 2256all: 2257 @echo 'ac_maketemp="$(MAKE)"' 2258_ACEOF 2259# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2260eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2261if test -n "$ac_maketemp"; then 2262 eval ac_cv_prog_make_${ac_make}_set=yes 2263else 2264 eval ac_cv_prog_make_${ac_make}_set=no 2265fi 2266rm -f conftest.make 2267fi 2268if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2269 echo "$as_me:$LINENO: result: yes" >&5 2270echo "${ECHO_T}yes" >&6 2271 SET_MAKE= 2272else 2273 echo "$as_me:$LINENO: result: no" >&5 2274echo "${ECHO_T}no" >&6 2275 SET_MAKE="MAKE=${MAKE-make}" 2276fi 2277 2278 2279if test -z "$LD" ; then 2280 LD=$CC 2281fi 2282 2283 2284if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then 2285 { echo "$as_me:$LINENO: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&5 2286echo "$as_me: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&6;} 2287 CFLAGS="-Os -W -Wall" 2288fi 2289 2290# large file support is useful for scp 2291 2292# Check whether --enable-largefile or --disable-largefile was given. 2293if test "${enable_largefile+set}" = set; then 2294 enableval="$enable_largefile" 2295 2296fi; 2297if test "$enable_largefile" != no; then 2298 2299 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 2300echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 2301if test "${ac_cv_sys_largefile_CC+set}" = set; then 2302 echo $ECHO_N "(cached) $ECHO_C" >&6 2303else 2304 ac_cv_sys_largefile_CC=no 2305 if test "$GCC" != yes; then 2306 ac_save_CC=$CC 2307 while :; do 2308 # IRIX 6.2 and later do not support large files by default, 2309 # so use the C compiler's -n32 option if that helps. 2310 cat >conftest.$ac_ext <<_ACEOF 2311/* confdefs.h. */ 2312_ACEOF 2313cat confdefs.h >>conftest.$ac_ext 2314cat >>conftest.$ac_ext <<_ACEOF 2315/* end confdefs.h. */ 2316#include <sys/types.h> 2317 /* Check that off_t can represent 2**63 - 1 correctly. 2318 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2319 since some C++ compilers masquerading as C compilers 2320 incorrectly reject 9223372036854775807. */ 2321#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2322 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2323 && LARGE_OFF_T % 2147483647 == 1) 2324 ? 1 : -1]; 2325int 2326main () 2327{ 2328 2329 ; 2330 return 0; 2331} 2332_ACEOF 2333 rm -f conftest.$ac_objext 2334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2335 (eval $ac_compile) 2>conftest.er1 2336 ac_status=$? 2337 grep -v '^ *+' conftest.er1 >conftest.err 2338 rm -f conftest.er1 2339 cat conftest.err >&5 2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2341 (exit $ac_status); } && 2342 { ac_try='test -z "$ac_c_werror_flag" 2343 || test ! -s conftest.err' 2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2345 (eval $ac_try) 2>&5 2346 ac_status=$? 2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2348 (exit $ac_status); }; } && 2349 { ac_try='test -s conftest.$ac_objext' 2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2351 (eval $ac_try) 2>&5 2352 ac_status=$? 2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2354 (exit $ac_status); }; }; then 2355 break 2356else 2357 echo "$as_me: failed program was:" >&5 2358sed 's/^/| /' conftest.$ac_ext >&5 2359 2360fi 2361rm -f conftest.err conftest.$ac_objext 2362 CC="$CC -n32" 2363 rm -f conftest.$ac_objext 2364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2365 (eval $ac_compile) 2>conftest.er1 2366 ac_status=$? 2367 grep -v '^ *+' conftest.er1 >conftest.err 2368 rm -f conftest.er1 2369 cat conftest.err >&5 2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2371 (exit $ac_status); } && 2372 { ac_try='test -z "$ac_c_werror_flag" 2373 || test ! -s conftest.err' 2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2375 (eval $ac_try) 2>&5 2376 ac_status=$? 2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2378 (exit $ac_status); }; } && 2379 { ac_try='test -s conftest.$ac_objext' 2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2381 (eval $ac_try) 2>&5 2382 ac_status=$? 2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2384 (exit $ac_status); }; }; then 2385 ac_cv_sys_largefile_CC=' -n32'; break 2386else 2387 echo "$as_me: failed program was:" >&5 2388sed 's/^/| /' conftest.$ac_ext >&5 2389 2390fi 2391rm -f conftest.err conftest.$ac_objext 2392 break 2393 done 2394 CC=$ac_save_CC 2395 rm -f conftest.$ac_ext 2396 fi 2397fi 2398echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 2399echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 2400 if test "$ac_cv_sys_largefile_CC" != no; then 2401 CC=$CC$ac_cv_sys_largefile_CC 2402 fi 2403 2404 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 2405echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 2406if test "${ac_cv_sys_file_offset_bits+set}" = set; then 2407 echo $ECHO_N "(cached) $ECHO_C" >&6 2408else 2409 while :; do 2410 ac_cv_sys_file_offset_bits=no 2411 cat >conftest.$ac_ext <<_ACEOF 2412/* confdefs.h. */ 2413_ACEOF 2414cat confdefs.h >>conftest.$ac_ext 2415cat >>conftest.$ac_ext <<_ACEOF 2416/* end confdefs.h. */ 2417#include <sys/types.h> 2418 /* Check that off_t can represent 2**63 - 1 correctly. 2419 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2420 since some C++ compilers masquerading as C compilers 2421 incorrectly reject 9223372036854775807. */ 2422#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2423 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2424 && LARGE_OFF_T % 2147483647 == 1) 2425 ? 1 : -1]; 2426int 2427main () 2428{ 2429 2430 ; 2431 return 0; 2432} 2433_ACEOF 2434rm -f conftest.$ac_objext 2435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2436 (eval $ac_compile) 2>conftest.er1 2437 ac_status=$? 2438 grep -v '^ *+' conftest.er1 >conftest.err 2439 rm -f conftest.er1 2440 cat conftest.err >&5 2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2442 (exit $ac_status); } && 2443 { ac_try='test -z "$ac_c_werror_flag" 2444 || test ! -s conftest.err' 2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2446 (eval $ac_try) 2>&5 2447 ac_status=$? 2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2449 (exit $ac_status); }; } && 2450 { ac_try='test -s conftest.$ac_objext' 2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2452 (eval $ac_try) 2>&5 2453 ac_status=$? 2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2455 (exit $ac_status); }; }; then 2456 break 2457else 2458 echo "$as_me: failed program was:" >&5 2459sed 's/^/| /' conftest.$ac_ext >&5 2460 2461fi 2462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2463 cat >conftest.$ac_ext <<_ACEOF 2464/* confdefs.h. */ 2465_ACEOF 2466cat confdefs.h >>conftest.$ac_ext 2467cat >>conftest.$ac_ext <<_ACEOF 2468/* end confdefs.h. */ 2469#define _FILE_OFFSET_BITS 64 2470#include <sys/types.h> 2471 /* Check that off_t can represent 2**63 - 1 correctly. 2472 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2473 since some C++ compilers masquerading as C compilers 2474 incorrectly reject 9223372036854775807. */ 2475#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2476 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2477 && LARGE_OFF_T % 2147483647 == 1) 2478 ? 1 : -1]; 2479int 2480main () 2481{ 2482 2483 ; 2484 return 0; 2485} 2486_ACEOF 2487rm -f conftest.$ac_objext 2488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2489 (eval $ac_compile) 2>conftest.er1 2490 ac_status=$? 2491 grep -v '^ *+' conftest.er1 >conftest.err 2492 rm -f conftest.er1 2493 cat conftest.err >&5 2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2495 (exit $ac_status); } && 2496 { ac_try='test -z "$ac_c_werror_flag" 2497 || test ! -s conftest.err' 2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2499 (eval $ac_try) 2>&5 2500 ac_status=$? 2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2502 (exit $ac_status); }; } && 2503 { ac_try='test -s conftest.$ac_objext' 2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2505 (eval $ac_try) 2>&5 2506 ac_status=$? 2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2508 (exit $ac_status); }; }; then 2509 ac_cv_sys_file_offset_bits=64; break 2510else 2511 echo "$as_me: failed program was:" >&5 2512sed 's/^/| /' conftest.$ac_ext >&5 2513 2514fi 2515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2516 break 2517done 2518fi 2519echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 2520echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 2521if test "$ac_cv_sys_file_offset_bits" != no; then 2522 2523cat >>confdefs.h <<_ACEOF 2524#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 2525_ACEOF 2526 2527fi 2528rm -f conftest* 2529 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 2530echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 2531if test "${ac_cv_sys_large_files+set}" = set; then 2532 echo $ECHO_N "(cached) $ECHO_C" >&6 2533else 2534 while :; do 2535 ac_cv_sys_large_files=no 2536 cat >conftest.$ac_ext <<_ACEOF 2537/* confdefs.h. */ 2538_ACEOF 2539cat confdefs.h >>conftest.$ac_ext 2540cat >>conftest.$ac_ext <<_ACEOF 2541/* end confdefs.h. */ 2542#include <sys/types.h> 2543 /* Check that off_t can represent 2**63 - 1 correctly. 2544 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2545 since some C++ compilers masquerading as C compilers 2546 incorrectly reject 9223372036854775807. */ 2547#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2548 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2549 && LARGE_OFF_T % 2147483647 == 1) 2550 ? 1 : -1]; 2551int 2552main () 2553{ 2554 2555 ; 2556 return 0; 2557} 2558_ACEOF 2559rm -f conftest.$ac_objext 2560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2561 (eval $ac_compile) 2>conftest.er1 2562 ac_status=$? 2563 grep -v '^ *+' conftest.er1 >conftest.err 2564 rm -f conftest.er1 2565 cat conftest.err >&5 2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2567 (exit $ac_status); } && 2568 { ac_try='test -z "$ac_c_werror_flag" 2569 || test ! -s conftest.err' 2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2571 (eval $ac_try) 2>&5 2572 ac_status=$? 2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2574 (exit $ac_status); }; } && 2575 { ac_try='test -s conftest.$ac_objext' 2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2577 (eval $ac_try) 2>&5 2578 ac_status=$? 2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2580 (exit $ac_status); }; }; then 2581 break 2582else 2583 echo "$as_me: failed program was:" >&5 2584sed 's/^/| /' conftest.$ac_ext >&5 2585 2586fi 2587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2588 cat >conftest.$ac_ext <<_ACEOF 2589/* confdefs.h. */ 2590_ACEOF 2591cat confdefs.h >>conftest.$ac_ext 2592cat >>conftest.$ac_ext <<_ACEOF 2593/* end confdefs.h. */ 2594#define _LARGE_FILES 1 2595#include <sys/types.h> 2596 /* Check that off_t can represent 2**63 - 1 correctly. 2597 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2598 since some C++ compilers masquerading as C compilers 2599 incorrectly reject 9223372036854775807. */ 2600#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2601 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2602 && LARGE_OFF_T % 2147483647 == 1) 2603 ? 1 : -1]; 2604int 2605main () 2606{ 2607 2608 ; 2609 return 0; 2610} 2611_ACEOF 2612rm -f conftest.$ac_objext 2613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2614 (eval $ac_compile) 2>conftest.er1 2615 ac_status=$? 2616 grep -v '^ *+' conftest.er1 >conftest.err 2617 rm -f conftest.er1 2618 cat conftest.err >&5 2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2620 (exit $ac_status); } && 2621 { ac_try='test -z "$ac_c_werror_flag" 2622 || test ! -s conftest.err' 2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2624 (eval $ac_try) 2>&5 2625 ac_status=$? 2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2627 (exit $ac_status); }; } && 2628 { ac_try='test -s conftest.$ac_objext' 2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2630 (eval $ac_try) 2>&5 2631 ac_status=$? 2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2633 (exit $ac_status); }; }; then 2634 ac_cv_sys_large_files=1; break 2635else 2636 echo "$as_me: failed program was:" >&5 2637sed 's/^/| /' conftest.$ac_ext >&5 2638 2639fi 2640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2641 break 2642done 2643fi 2644echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 2645echo "${ECHO_T}$ac_cv_sys_large_files" >&6 2646if test "$ac_cv_sys_large_files" != no; then 2647 2648cat >>confdefs.h <<_ACEOF 2649#define _LARGE_FILES $ac_cv_sys_large_files 2650_ACEOF 2651 2652fi 2653rm -f conftest* 2654fi 2655 2656 2657# Host specific options 2658# this isn't a definitive list of hosts, they are just added as required 2659ac_aux_dir= 2660for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2661 if test -f $ac_dir/install-sh; then 2662 ac_aux_dir=$ac_dir 2663 ac_install_sh="$ac_aux_dir/install-sh -c" 2664 break 2665 elif test -f $ac_dir/install.sh; then 2666 ac_aux_dir=$ac_dir 2667 ac_install_sh="$ac_aux_dir/install.sh -c" 2668 break 2669 elif test -f $ac_dir/shtool; then 2670 ac_aux_dir=$ac_dir 2671 ac_install_sh="$ac_aux_dir/shtool install -c" 2672 break 2673 fi 2674done 2675if test -z "$ac_aux_dir"; then 2676 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2677echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2678 { (exit 1); exit 1; }; } 2679fi 2680ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2681ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2682ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2683 2684# Make sure we can run config.sub. 2685$ac_config_sub sun4 >/dev/null 2>&1 || 2686 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2687echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2688 { (exit 1); exit 1; }; } 2689 2690echo "$as_me:$LINENO: checking build system type" >&5 2691echo $ECHO_N "checking build system type... $ECHO_C" >&6 2692if test "${ac_cv_build+set}" = set; then 2693 echo $ECHO_N "(cached) $ECHO_C" >&6 2694else 2695 ac_cv_build_alias=$build_alias 2696test -z "$ac_cv_build_alias" && 2697 ac_cv_build_alias=`$ac_config_guess` 2698test -z "$ac_cv_build_alias" && 2699 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2700echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2701 { (exit 1); exit 1; }; } 2702ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2703 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2704echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2705 { (exit 1); exit 1; }; } 2706 2707fi 2708echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2709echo "${ECHO_T}$ac_cv_build" >&6 2710build=$ac_cv_build 2711build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2712build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2713build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2714 2715 2716echo "$as_me:$LINENO: checking host system type" >&5 2717echo $ECHO_N "checking host system type... $ECHO_C" >&6 2718if test "${ac_cv_host+set}" = set; then 2719 echo $ECHO_N "(cached) $ECHO_C" >&6 2720else 2721 ac_cv_host_alias=$host_alias 2722test -z "$ac_cv_host_alias" && 2723 ac_cv_host_alias=$ac_cv_build_alias 2724ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2725 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2726echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2727 { (exit 1); exit 1; }; } 2728 2729fi 2730echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2731echo "${ECHO_T}$ac_cv_host" >&6 2732host=$ac_cv_host 2733host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2734host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2735host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2736 2737 2738 2739case "$host" in 2740 2741*-*-linux*) 2742 no_ptmx_check=1 2743 ;; 2744 2745*-*-solaris*) 2746 CFLAGS="$CFLAGS -I/usr/local/include" 2747 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" 2748 conf_lastlog_location="/var/adm/lastlog" 2749 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 2750echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 2751 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` 2752 if test "$sol2ver" -ge 8; then 2753 echo "$as_me:$LINENO: result: yes" >&5 2754echo "${ECHO_T}yes" >&6 2755 2756cat >>confdefs.h <<\_ACEOF 2757#define DISABLE_UTMP 2758_ACEOF 2759 2760 2761cat >>confdefs.h <<\_ACEOF 2762#define DISABLE_WTMP 2763_ACEOF 2764 2765 else 2766 echo "$as_me:$LINENO: result: no" >&5 2767echo "${ECHO_T}no" >&6 2768 fi 2769 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 2770echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 2771if test "${ac_cv_lib_socket_socket+set}" = set; then 2772 echo $ECHO_N "(cached) $ECHO_C" >&6 2773else 2774 ac_check_lib_save_LIBS=$LIBS 2775LIBS="-lsocket $LIBS" 2776cat >conftest.$ac_ext <<_ACEOF 2777/* confdefs.h. */ 2778_ACEOF 2779cat confdefs.h >>conftest.$ac_ext 2780cat >>conftest.$ac_ext <<_ACEOF 2781/* end confdefs.h. */ 2782 2783/* Override any gcc2 internal prototype to avoid an error. */ 2784#ifdef __cplusplus 2785extern "C" 2786#endif 2787/* We use char because int might match the return type of a gcc2 2788 builtin and then its argument prototype would still apply. */ 2789char socket (); 2790int 2791main () 2792{ 2793socket (); 2794 ; 2795 return 0; 2796} 2797_ACEOF 2798rm -f conftest.$ac_objext conftest$ac_exeext 2799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2800 (eval $ac_link) 2>conftest.er1 2801 ac_status=$? 2802 grep -v '^ *+' conftest.er1 >conftest.err 2803 rm -f conftest.er1 2804 cat conftest.err >&5 2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2806 (exit $ac_status); } && 2807 { ac_try='test -z "$ac_c_werror_flag" 2808 || test ! -s conftest.err' 2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2810 (eval $ac_try) 2>&5 2811 ac_status=$? 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2813 (exit $ac_status); }; } && 2814 { ac_try='test -s conftest$ac_exeext' 2815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2816 (eval $ac_try) 2>&5 2817 ac_status=$? 2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2819 (exit $ac_status); }; }; then 2820 ac_cv_lib_socket_socket=yes 2821else 2822 echo "$as_me: failed program was:" >&5 2823sed 's/^/| /' conftest.$ac_ext >&5 2824 2825ac_cv_lib_socket_socket=no 2826fi 2827rm -f conftest.err conftest.$ac_objext \ 2828 conftest$ac_exeext conftest.$ac_ext 2829LIBS=$ac_check_lib_save_LIBS 2830fi 2831echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 2832echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 2833if test $ac_cv_lib_socket_socket = yes; then 2834 LIBS="$LIBS -lsocket" 2835fi 2836 2837 echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 2838echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 2839if test "${ac_cv_lib_nsl_yp_match+set}" = set; then 2840 echo $ECHO_N "(cached) $ECHO_C" >&6 2841else 2842 ac_check_lib_save_LIBS=$LIBS 2843LIBS="-lnsl $LIBS" 2844cat >conftest.$ac_ext <<_ACEOF 2845/* confdefs.h. */ 2846_ACEOF 2847cat confdefs.h >>conftest.$ac_ext 2848cat >>conftest.$ac_ext <<_ACEOF 2849/* end confdefs.h. */ 2850 2851/* Override any gcc2 internal prototype to avoid an error. */ 2852#ifdef __cplusplus 2853extern "C" 2854#endif 2855/* We use char because int might match the return type of a gcc2 2856 builtin and then its argument prototype would still apply. */ 2857char yp_match (); 2858int 2859main () 2860{ 2861yp_match (); 2862 ; 2863 return 0; 2864} 2865_ACEOF 2866rm -f conftest.$ac_objext conftest$ac_exeext 2867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2868 (eval $ac_link) 2>conftest.er1 2869 ac_status=$? 2870 grep -v '^ *+' conftest.er1 >conftest.err 2871 rm -f conftest.er1 2872 cat conftest.err >&5 2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2874 (exit $ac_status); } && 2875 { ac_try='test -z "$ac_c_werror_flag" 2876 || test ! -s conftest.err' 2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2878 (eval $ac_try) 2>&5 2879 ac_status=$? 2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2881 (exit $ac_status); }; } && 2882 { ac_try='test -s conftest$ac_exeext' 2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2884 (eval $ac_try) 2>&5 2885 ac_status=$? 2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2887 (exit $ac_status); }; }; then 2888 ac_cv_lib_nsl_yp_match=yes 2889else 2890 echo "$as_me: failed program was:" >&5 2891sed 's/^/| /' conftest.$ac_ext >&5 2892 2893ac_cv_lib_nsl_yp_match=no 2894fi 2895rm -f conftest.err conftest.$ac_objext \ 2896 conftest$ac_exeext conftest.$ac_ext 2897LIBS=$ac_check_lib_save_LIBS 2898fi 2899echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 2900echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 2901if test $ac_cv_lib_nsl_yp_match = yes; then 2902 LIBS="$LIBS -lnsl" 2903fi 2904 2905 ;; 2906 2907*-*-aix*) 2908 2909cat >>confdefs.h <<\_ACEOF 2910#define AIX 2911_ACEOF 2912 2913 # OpenSSH thinks it's broken. If it isn't, let me know. 2914 2915cat >>confdefs.h <<\_ACEOF 2916#define BROKEN_GETADDRINFO 2917_ACEOF 2918 2919 ;; 2920 2921*-*-hpux*) 2922 LIBS="$LIBS -lsec" 2923 # It's probably broken. 2924 2925cat >>confdefs.h <<\_ACEOF 2926#define BROKEN_GETADDRINFO 2927_ACEOF 2928 2929 ;; 2930*-dec-osf*) 2931 2932cat >>confdefs.h <<\_ACEOF 2933#define BROKEN_GETADDRINFO 2934_ACEOF 2935 2936 ;; 2937esac 2938 2939if test -n "$ac_tool_prefix"; then 2940 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2941set dummy ${ac_tool_prefix}ar; ac_word=$2 2942echo "$as_me:$LINENO: checking for $ac_word" >&5 2943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2944if test "${ac_cv_prog_AR+set}" = set; then 2945 echo $ECHO_N "(cached) $ECHO_C" >&6 2946else 2947 if test -n "$AR"; then 2948 ac_cv_prog_AR="$AR" # Let the user override the test. 2949else 2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951for as_dir in $PATH 2952do 2953 IFS=$as_save_IFS 2954 test -z "$as_dir" && as_dir=. 2955 for ac_exec_ext in '' $ac_executable_extensions; do 2956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2957 ac_cv_prog_AR="${ac_tool_prefix}ar" 2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2959 break 2 2960 fi 2961done 2962done 2963 2964fi 2965fi 2966AR=$ac_cv_prog_AR 2967if test -n "$AR"; then 2968 echo "$as_me:$LINENO: result: $AR" >&5 2969echo "${ECHO_T}$AR" >&6 2970else 2971 echo "$as_me:$LINENO: result: no" >&5 2972echo "${ECHO_T}no" >&6 2973fi 2974 2975fi 2976if test -z "$ac_cv_prog_AR"; then 2977 ac_ct_AR=$AR 2978 # Extract the first word of "ar", so it can be a program name with args. 2979set dummy ar; ac_word=$2 2980echo "$as_me:$LINENO: checking for $ac_word" >&5 2981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2982if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 2983 echo $ECHO_N "(cached) $ECHO_C" >&6 2984else 2985 if test -n "$ac_ct_AR"; then 2986 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 2987else 2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2989for as_dir in $PATH 2990do 2991 IFS=$as_save_IFS 2992 test -z "$as_dir" && as_dir=. 2993 for ac_exec_ext in '' $ac_executable_extensions; do 2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2995 ac_cv_prog_ac_ct_AR="ar" 2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2997 break 2 2998 fi 2999done 3000done 3001 3002 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":" 3003fi 3004fi 3005ac_ct_AR=$ac_cv_prog_ac_ct_AR 3006if test -n "$ac_ct_AR"; then 3007 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 3008echo "${ECHO_T}$ac_ct_AR" >&6 3009else 3010 echo "$as_me:$LINENO: result: no" >&5 3011echo "${ECHO_T}no" >&6 3012fi 3013 3014 AR=$ac_ct_AR 3015else 3016 AR="$ac_cv_prog_AR" 3017fi 3018 3019if test -n "$ac_tool_prefix"; then 3020 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3021set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3022echo "$as_me:$LINENO: checking for $ac_word" >&5 3023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3024if test "${ac_cv_prog_RANLIB+set}" = set; then 3025 echo $ECHO_N "(cached) $ECHO_C" >&6 3026else 3027 if test -n "$RANLIB"; then 3028 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3029else 3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031for as_dir in $PATH 3032do 3033 IFS=$as_save_IFS 3034 test -z "$as_dir" && as_dir=. 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3037 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3039 break 2 3040 fi 3041done 3042done 3043 3044fi 3045fi 3046RANLIB=$ac_cv_prog_RANLIB 3047if test -n "$RANLIB"; then 3048 echo "$as_me:$LINENO: result: $RANLIB" >&5 3049echo "${ECHO_T}$RANLIB" >&6 3050else 3051 echo "$as_me:$LINENO: result: no" >&5 3052echo "${ECHO_T}no" >&6 3053fi 3054 3055fi 3056if test -z "$ac_cv_prog_RANLIB"; then 3057 ac_ct_RANLIB=$RANLIB 3058 # Extract the first word of "ranlib", so it can be a program name with args. 3059set dummy ranlib; ac_word=$2 3060echo "$as_me:$LINENO: checking for $ac_word" >&5 3061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3062if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3063 echo $ECHO_N "(cached) $ECHO_C" >&6 3064else 3065 if test -n "$ac_ct_RANLIB"; then 3066 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3067else 3068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3069for as_dir in $PATH 3070do 3071 IFS=$as_save_IFS 3072 test -z "$as_dir" && as_dir=. 3073 for ac_exec_ext in '' $ac_executable_extensions; do 3074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3075 ac_cv_prog_ac_ct_RANLIB="ranlib" 3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3077 break 2 3078 fi 3079done 3080done 3081 3082 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3083fi 3084fi 3085ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3086if test -n "$ac_ct_RANLIB"; then 3087 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3088echo "${ECHO_T}$ac_ct_RANLIB" >&6 3089else 3090 echo "$as_me:$LINENO: result: no" >&5 3091echo "${ECHO_T}no" >&6 3092fi 3093 3094 RANLIB=$ac_ct_RANLIB 3095else 3096 RANLIB="$ac_cv_prog_RANLIB" 3097fi 3098 3099if test -n "$ac_tool_prefix"; then 3100 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3101set dummy ${ac_tool_prefix}strip; ac_word=$2 3102echo "$as_me:$LINENO: checking for $ac_word" >&5 3103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3104if test "${ac_cv_prog_STRIP+set}" = set; then 3105 echo $ECHO_N "(cached) $ECHO_C" >&6 3106else 3107 if test -n "$STRIP"; then 3108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3109else 3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3111for as_dir in $PATH 3112do 3113 IFS=$as_save_IFS 3114 test -z "$as_dir" && as_dir=. 3115 for ac_exec_ext in '' $ac_executable_extensions; do 3116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3117 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3119 break 2 3120 fi 3121done 3122done 3123 3124fi 3125fi 3126STRIP=$ac_cv_prog_STRIP 3127if test -n "$STRIP"; then 3128 echo "$as_me:$LINENO: result: $STRIP" >&5 3129echo "${ECHO_T}$STRIP" >&6 3130else 3131 echo "$as_me:$LINENO: result: no" >&5 3132echo "${ECHO_T}no" >&6 3133fi 3134 3135fi 3136if test -z "$ac_cv_prog_STRIP"; then 3137 ac_ct_STRIP=$STRIP 3138 # Extract the first word of "strip", so it can be a program name with args. 3139set dummy strip; ac_word=$2 3140echo "$as_me:$LINENO: checking for $ac_word" >&5 3141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3142if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 3143 echo $ECHO_N "(cached) $ECHO_C" >&6 3144else 3145 if test -n "$ac_ct_STRIP"; then 3146 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3147else 3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3149for as_dir in $PATH 3150do 3151 IFS=$as_save_IFS 3152 test -z "$as_dir" && as_dir=. 3153 for ac_exec_ext in '' $ac_executable_extensions; do 3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3155 ac_cv_prog_ac_ct_STRIP="strip" 3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3157 break 2 3158 fi 3159done 3160done 3161 3162 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 3163fi 3164fi 3165ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3166if test -n "$ac_ct_STRIP"; then 3167 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 3168echo "${ECHO_T}$ac_ct_STRIP" >&6 3169else 3170 echo "$as_me:$LINENO: result: no" >&5 3171echo "${ECHO_T}no" >&6 3172fi 3173 3174 STRIP=$ac_ct_STRIP 3175else 3176 STRIP="$ac_cv_prog_STRIP" 3177fi 3178 3179if test -n "$ac_tool_prefix"; then 3180 # Extract the first word of "${ac_tool_prefix}install", so it can be a program name with args. 3181set dummy ${ac_tool_prefix}install; ac_word=$2 3182echo "$as_me:$LINENO: checking for $ac_word" >&5 3183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3184if test "${ac_cv_prog_INSTALL+set}" = set; then 3185 echo $ECHO_N "(cached) $ECHO_C" >&6 3186else 3187 if test -n "$INSTALL"; then 3188 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. 3189else 3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3191for as_dir in $PATH 3192do 3193 IFS=$as_save_IFS 3194 test -z "$as_dir" && as_dir=. 3195 for ac_exec_ext in '' $ac_executable_extensions; do 3196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3197 ac_cv_prog_INSTALL="${ac_tool_prefix}install" 3198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3199 break 2 3200 fi 3201done 3202done 3203 3204fi 3205fi 3206INSTALL=$ac_cv_prog_INSTALL 3207if test -n "$INSTALL"; then 3208 echo "$as_me:$LINENO: result: $INSTALL" >&5 3209echo "${ECHO_T}$INSTALL" >&6 3210else 3211 echo "$as_me:$LINENO: result: no" >&5 3212echo "${ECHO_T}no" >&6 3213fi 3214 3215fi 3216if test -z "$ac_cv_prog_INSTALL"; then 3217 ac_ct_INSTALL=$INSTALL 3218 # Extract the first word of "install", so it can be a program name with args. 3219set dummy install; ac_word=$2 3220echo "$as_me:$LINENO: checking for $ac_word" >&5 3221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3222if test "${ac_cv_prog_ac_ct_INSTALL+set}" = set; then 3223 echo $ECHO_N "(cached) $ECHO_C" >&6 3224else 3225 if test -n "$ac_ct_INSTALL"; then 3226 ac_cv_prog_ac_ct_INSTALL="$ac_ct_INSTALL" # Let the user override the test. 3227else 3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3229for as_dir in $PATH 3230do 3231 IFS=$as_save_IFS 3232 test -z "$as_dir" && as_dir=. 3233 for ac_exec_ext in '' $ac_executable_extensions; do 3234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3235 ac_cv_prog_ac_ct_INSTALL="install" 3236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3237 break 2 3238 fi 3239done 3240done 3241 3242 test -z "$ac_cv_prog_ac_ct_INSTALL" && ac_cv_prog_ac_ct_INSTALL=":" 3243fi 3244fi 3245ac_ct_INSTALL=$ac_cv_prog_ac_ct_INSTALL 3246if test -n "$ac_ct_INSTALL"; then 3247 echo "$as_me:$LINENO: result: $ac_ct_INSTALL" >&5 3248echo "${ECHO_T}$ac_ct_INSTALL" >&6 3249else 3250 echo "$as_me:$LINENO: result: no" >&5 3251echo "${ECHO_T}no" >&6 3252fi 3253 3254 INSTALL=$ac_ct_INSTALL 3255else 3256 INSTALL="$ac_cv_prog_INSTALL" 3257fi 3258 3259 3260ac_ext=c 3261ac_cpp='$CPP $CPPFLAGS' 3262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3264ac_compiler_gnu=$ac_cv_c_compiler_gnu 3265echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3266echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3267# On Suns, sometimes $CPP names a directory. 3268if test -n "$CPP" && test -d "$CPP"; then 3269 CPP= 3270fi 3271if test -z "$CPP"; then 3272 if test "${ac_cv_prog_CPP+set}" = set; then 3273 echo $ECHO_N "(cached) $ECHO_C" >&6 3274else 3275 # Double quotes because CPP needs to be expanded 3276 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3277 do 3278 ac_preproc_ok=false 3279for ac_c_preproc_warn_flag in '' yes 3280do 3281 # Use a header file that comes with gcc, so configuring glibc 3282 # with a fresh cross-compiler works. 3283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3284 # <limits.h> exists even on freestanding compilers. 3285 # On the NeXT, cc -E runs the code through the compiler's parser, 3286 # not just through cpp. "Syntax error" is here to catch this case. 3287 cat >conftest.$ac_ext <<_ACEOF 3288/* confdefs.h. */ 3289_ACEOF 3290cat confdefs.h >>conftest.$ac_ext 3291cat >>conftest.$ac_ext <<_ACEOF 3292/* end confdefs.h. */ 3293#ifdef __STDC__ 3294# include <limits.h> 3295#else 3296# include <assert.h> 3297#endif 3298 Syntax error 3299_ACEOF 3300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3302 ac_status=$? 3303 grep -v '^ *+' conftest.er1 >conftest.err 3304 rm -f conftest.er1 3305 cat conftest.err >&5 3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3307 (exit $ac_status); } >/dev/null; then 3308 if test -s conftest.err; then 3309 ac_cpp_err=$ac_c_preproc_warn_flag 3310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3311 else 3312 ac_cpp_err= 3313 fi 3314else 3315 ac_cpp_err=yes 3316fi 3317if test -z "$ac_cpp_err"; then 3318 : 3319else 3320 echo "$as_me: failed program was:" >&5 3321sed 's/^/| /' conftest.$ac_ext >&5 3322 3323 # Broken: fails on valid input. 3324continue 3325fi 3326rm -f conftest.err conftest.$ac_ext 3327 3328 # OK, works on sane cases. Now check whether non-existent headers 3329 # can be detected and how. 3330 cat >conftest.$ac_ext <<_ACEOF 3331/* confdefs.h. */ 3332_ACEOF 3333cat confdefs.h >>conftest.$ac_ext 3334cat >>conftest.$ac_ext <<_ACEOF 3335/* end confdefs.h. */ 3336#include <ac_nonexistent.h> 3337_ACEOF 3338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3340 ac_status=$? 3341 grep -v '^ *+' conftest.er1 >conftest.err 3342 rm -f conftest.er1 3343 cat conftest.err >&5 3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3345 (exit $ac_status); } >/dev/null; then 3346 if test -s conftest.err; then 3347 ac_cpp_err=$ac_c_preproc_warn_flag 3348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3349 else 3350 ac_cpp_err= 3351 fi 3352else 3353 ac_cpp_err=yes 3354fi 3355if test -z "$ac_cpp_err"; then 3356 # Broken: success on invalid input. 3357continue 3358else 3359 echo "$as_me: failed program was:" >&5 3360sed 's/^/| /' conftest.$ac_ext >&5 3361 3362 # Passes both tests. 3363ac_preproc_ok=: 3364break 3365fi 3366rm -f conftest.err conftest.$ac_ext 3367 3368done 3369# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3370rm -f conftest.err conftest.$ac_ext 3371if $ac_preproc_ok; then 3372 break 3373fi 3374 3375 done 3376 ac_cv_prog_CPP=$CPP 3377 3378fi 3379 CPP=$ac_cv_prog_CPP 3380else 3381 ac_cv_prog_CPP=$CPP 3382fi 3383echo "$as_me:$LINENO: result: $CPP" >&5 3384echo "${ECHO_T}$CPP" >&6 3385ac_preproc_ok=false 3386for ac_c_preproc_warn_flag in '' yes 3387do 3388 # Use a header file that comes with gcc, so configuring glibc 3389 # with a fresh cross-compiler works. 3390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3391 # <limits.h> exists even on freestanding compilers. 3392 # On the NeXT, cc -E runs the code through the compiler's parser, 3393 # not just through cpp. "Syntax error" is here to catch this case. 3394 cat >conftest.$ac_ext <<_ACEOF 3395/* confdefs.h. */ 3396_ACEOF 3397cat confdefs.h >>conftest.$ac_ext 3398cat >>conftest.$ac_ext <<_ACEOF 3399/* end confdefs.h. */ 3400#ifdef __STDC__ 3401# include <limits.h> 3402#else 3403# include <assert.h> 3404#endif 3405 Syntax error 3406_ACEOF 3407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3409 ac_status=$? 3410 grep -v '^ *+' conftest.er1 >conftest.err 3411 rm -f conftest.er1 3412 cat conftest.err >&5 3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3414 (exit $ac_status); } >/dev/null; then 3415 if test -s conftest.err; then 3416 ac_cpp_err=$ac_c_preproc_warn_flag 3417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3418 else 3419 ac_cpp_err= 3420 fi 3421else 3422 ac_cpp_err=yes 3423fi 3424if test -z "$ac_cpp_err"; then 3425 : 3426else 3427 echo "$as_me: failed program was:" >&5 3428sed 's/^/| /' conftest.$ac_ext >&5 3429 3430 # Broken: fails on valid input. 3431continue 3432fi 3433rm -f conftest.err conftest.$ac_ext 3434 3435 # OK, works on sane cases. Now check whether non-existent headers 3436 # can be detected and how. 3437 cat >conftest.$ac_ext <<_ACEOF 3438/* confdefs.h. */ 3439_ACEOF 3440cat confdefs.h >>conftest.$ac_ext 3441cat >>conftest.$ac_ext <<_ACEOF 3442/* end confdefs.h. */ 3443#include <ac_nonexistent.h> 3444_ACEOF 3445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3447 ac_status=$? 3448 grep -v '^ *+' conftest.er1 >conftest.err 3449 rm -f conftest.er1 3450 cat conftest.err >&5 3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3452 (exit $ac_status); } >/dev/null; then 3453 if test -s conftest.err; then 3454 ac_cpp_err=$ac_c_preproc_warn_flag 3455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3456 else 3457 ac_cpp_err= 3458 fi 3459else 3460 ac_cpp_err=yes 3461fi 3462if test -z "$ac_cpp_err"; then 3463 # Broken: success on invalid input. 3464continue 3465else 3466 echo "$as_me: failed program was:" >&5 3467sed 's/^/| /' conftest.$ac_ext >&5 3468 3469 # Passes both tests. 3470ac_preproc_ok=: 3471break 3472fi 3473rm -f conftest.err conftest.$ac_ext 3474 3475done 3476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3477rm -f conftest.err conftest.$ac_ext 3478if $ac_preproc_ok; then 3479 : 3480else 3481 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3482See \`config.log' for more details." >&5 3483echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3484See \`config.log' for more details." >&2;} 3485 { (exit 1); exit 1; }; } 3486fi 3487 3488ac_ext=c 3489ac_cpp='$CPP $CPPFLAGS' 3490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3492ac_compiler_gnu=$ac_cv_c_compiler_gnu 3493 3494 3495echo "$as_me:$LINENO: checking for egrep" >&5 3496echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3497if test "${ac_cv_prog_egrep+set}" = set; then 3498 echo $ECHO_N "(cached) $ECHO_C" >&6 3499else 3500 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3501 then ac_cv_prog_egrep='grep -E' 3502 else ac_cv_prog_egrep='egrep' 3503 fi 3504fi 3505echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3506echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3507 EGREP=$ac_cv_prog_egrep 3508 3509 3510echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3511echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3512if test "${ac_cv_header_stdc+set}" = set; then 3513 echo $ECHO_N "(cached) $ECHO_C" >&6 3514else 3515 cat >conftest.$ac_ext <<_ACEOF 3516/* confdefs.h. */ 3517_ACEOF 3518cat confdefs.h >>conftest.$ac_ext 3519cat >>conftest.$ac_ext <<_ACEOF 3520/* end confdefs.h. */ 3521#include <stdlib.h> 3522#include <stdarg.h> 3523#include <string.h> 3524#include <float.h> 3525 3526int 3527main () 3528{ 3529 3530 ; 3531 return 0; 3532} 3533_ACEOF 3534rm -f conftest.$ac_objext 3535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3536 (eval $ac_compile) 2>conftest.er1 3537 ac_status=$? 3538 grep -v '^ *+' conftest.er1 >conftest.err 3539 rm -f conftest.er1 3540 cat conftest.err >&5 3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3542 (exit $ac_status); } && 3543 { ac_try='test -z "$ac_c_werror_flag" 3544 || test ! -s conftest.err' 3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3546 (eval $ac_try) 2>&5 3547 ac_status=$? 3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3549 (exit $ac_status); }; } && 3550 { ac_try='test -s conftest.$ac_objext' 3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3552 (eval $ac_try) 2>&5 3553 ac_status=$? 3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3555 (exit $ac_status); }; }; then 3556 ac_cv_header_stdc=yes 3557else 3558 echo "$as_me: failed program was:" >&5 3559sed 's/^/| /' conftest.$ac_ext >&5 3560 3561ac_cv_header_stdc=no 3562fi 3563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3564 3565if test $ac_cv_header_stdc = yes; then 3566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3567 cat >conftest.$ac_ext <<_ACEOF 3568/* confdefs.h. */ 3569_ACEOF 3570cat confdefs.h >>conftest.$ac_ext 3571cat >>conftest.$ac_ext <<_ACEOF 3572/* end confdefs.h. */ 3573#include <string.h> 3574 3575_ACEOF 3576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3577 $EGREP "memchr" >/dev/null 2>&1; then 3578 : 3579else 3580 ac_cv_header_stdc=no 3581fi 3582rm -f conftest* 3583 3584fi 3585 3586if test $ac_cv_header_stdc = yes; then 3587 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3588 cat >conftest.$ac_ext <<_ACEOF 3589/* confdefs.h. */ 3590_ACEOF 3591cat confdefs.h >>conftest.$ac_ext 3592cat >>conftest.$ac_ext <<_ACEOF 3593/* end confdefs.h. */ 3594#include <stdlib.h> 3595 3596_ACEOF 3597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3598 $EGREP "free" >/dev/null 2>&1; then 3599 : 3600else 3601 ac_cv_header_stdc=no 3602fi 3603rm -f conftest* 3604 3605fi 3606 3607if test $ac_cv_header_stdc = yes; then 3608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3609 if test "$cross_compiling" = yes; then 3610 : 3611else 3612 cat >conftest.$ac_ext <<_ACEOF 3613/* confdefs.h. */ 3614_ACEOF 3615cat confdefs.h >>conftest.$ac_ext 3616cat >>conftest.$ac_ext <<_ACEOF 3617/* end confdefs.h. */ 3618#include <ctype.h> 3619#if ((' ' & 0x0FF) == 0x020) 3620# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3621# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3622#else 3623# define ISLOWER(c) \ 3624 (('a' <= (c) && (c) <= 'i') \ 3625 || ('j' <= (c) && (c) <= 'r') \ 3626 || ('s' <= (c) && (c) <= 'z')) 3627# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3628#endif 3629 3630#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3631int 3632main () 3633{ 3634 int i; 3635 for (i = 0; i < 256; i++) 3636 if (XOR (islower (i), ISLOWER (i)) 3637 || toupper (i) != TOUPPER (i)) 3638 exit(2); 3639 exit (0); 3640} 3641_ACEOF 3642rm -f conftest$ac_exeext 3643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3644 (eval $ac_link) 2>&5 3645 ac_status=$? 3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3649 (eval $ac_try) 2>&5 3650 ac_status=$? 3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3652 (exit $ac_status); }; }; then 3653 : 3654else 3655 echo "$as_me: program exited with status $ac_status" >&5 3656echo "$as_me: failed program was:" >&5 3657sed 's/^/| /' conftest.$ac_ext >&5 3658 3659( exit $ac_status ) 3660ac_cv_header_stdc=no 3661fi 3662rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3663fi 3664fi 3665fi 3666echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3667echo "${ECHO_T}$ac_cv_header_stdc" >&6 3668if test $ac_cv_header_stdc = yes; then 3669 3670cat >>confdefs.h <<\_ACEOF 3671#define STDC_HEADERS 1 3672_ACEOF 3673 3674fi 3675 3676# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3687 inttypes.h stdint.h unistd.h 3688do 3689as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3690echo "$as_me:$LINENO: checking for $ac_header" >&5 3691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3692if eval "test \"\${$as_ac_Header+set}\" = set"; then 3693 echo $ECHO_N "(cached) $ECHO_C" >&6 3694else 3695 cat >conftest.$ac_ext <<_ACEOF 3696/* confdefs.h. */ 3697_ACEOF 3698cat confdefs.h >>conftest.$ac_ext 3699cat >>conftest.$ac_ext <<_ACEOF 3700/* end confdefs.h. */ 3701$ac_includes_default 3702 3703#include <$ac_header> 3704_ACEOF 3705rm -f conftest.$ac_objext 3706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3707 (eval $ac_compile) 2>conftest.er1 3708 ac_status=$? 3709 grep -v '^ *+' conftest.er1 >conftest.err 3710 rm -f conftest.er1 3711 cat conftest.err >&5 3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3713 (exit $ac_status); } && 3714 { ac_try='test -z "$ac_c_werror_flag" 3715 || test ! -s conftest.err' 3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3717 (eval $ac_try) 2>&5 3718 ac_status=$? 3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3720 (exit $ac_status); }; } && 3721 { ac_try='test -s conftest.$ac_objext' 3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3723 (eval $ac_try) 2>&5 3724 ac_status=$? 3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3726 (exit $ac_status); }; }; then 3727 eval "$as_ac_Header=yes" 3728else 3729 echo "$as_me: failed program was:" >&5 3730sed 's/^/| /' conftest.$ac_ext >&5 3731 3732eval "$as_ac_Header=no" 3733fi 3734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3735fi 3736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3738if test `eval echo '${'$as_ac_Header'}'` = yes; then 3739 cat >>confdefs.h <<_ACEOF 3740#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3741_ACEOF 3742 3743fi 3744 3745done 3746 3747 3748echo "$as_me:$LINENO: checking whether __UCLIBC__ is declared" >&5 3749echo $ECHO_N "checking whether __UCLIBC__ is declared... $ECHO_C" >&6 3750if test "${ac_cv_have_decl___UCLIBC__+set}" = set; then 3751 echo $ECHO_N "(cached) $ECHO_C" >&6 3752else 3753 cat >conftest.$ac_ext <<_ACEOF 3754/* confdefs.h. */ 3755_ACEOF 3756cat confdefs.h >>conftest.$ac_ext 3757cat >>conftest.$ac_ext <<_ACEOF 3758/* end confdefs.h. */ 3759$ac_includes_default 3760int 3761main () 3762{ 3763#ifndef __UCLIBC__ 3764 char *p = (char *) __UCLIBC__; 3765#endif 3766 3767 ; 3768 return 0; 3769} 3770_ACEOF 3771rm -f conftest.$ac_objext 3772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3773 (eval $ac_compile) 2>conftest.er1 3774 ac_status=$? 3775 grep -v '^ *+' conftest.er1 >conftest.err 3776 rm -f conftest.er1 3777 cat conftest.err >&5 3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3779 (exit $ac_status); } && 3780 { ac_try='test -z "$ac_c_werror_flag" 3781 || test ! -s conftest.err' 3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3783 (eval $ac_try) 2>&5 3784 ac_status=$? 3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3786 (exit $ac_status); }; } && 3787 { ac_try='test -s conftest.$ac_objext' 3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3789 (eval $ac_try) 2>&5 3790 ac_status=$? 3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3792 (exit $ac_status); }; }; then 3793 ac_cv_have_decl___UCLIBC__=yes 3794else 3795 echo "$as_me: failed program was:" >&5 3796sed 's/^/| /' conftest.$ac_ext >&5 3797 3798ac_cv_have_decl___UCLIBC__=no 3799fi 3800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3801fi 3802echo "$as_me:$LINENO: result: $ac_cv_have_decl___UCLIBC__" >&5 3803echo "${ECHO_T}$ac_cv_have_decl___UCLIBC__" >&6 3804if test $ac_cv_have_decl___UCLIBC__ = yes; then 3805 3806 no_loginfunc_check=1 3807 { echo "$as_me:$LINENO: Using uClibc - login() and logout() probably don't work, so we won't use them." >&5 3808echo "$as_me: Using uClibc - login() and logout() probably don't work, so we won't use them." >&6;} 3809 3810fi 3811 3812 3813# Checks for libraries. 3814echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 3815echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 3816if test "${ac_cv_lib_crypt_crypt+set}" = set; then 3817 echo $ECHO_N "(cached) $ECHO_C" >&6 3818else 3819 ac_check_lib_save_LIBS=$LIBS 3820LIBS="-lcrypt $LIBS" 3821cat >conftest.$ac_ext <<_ACEOF 3822/* confdefs.h. */ 3823_ACEOF 3824cat confdefs.h >>conftest.$ac_ext 3825cat >>conftest.$ac_ext <<_ACEOF 3826/* end confdefs.h. */ 3827 3828/* Override any gcc2 internal prototype to avoid an error. */ 3829#ifdef __cplusplus 3830extern "C" 3831#endif 3832/* We use char because int might match the return type of a gcc2 3833 builtin and then its argument prototype would still apply. */ 3834char crypt (); 3835int 3836main () 3837{ 3838crypt (); 3839 ; 3840 return 0; 3841} 3842_ACEOF 3843rm -f conftest.$ac_objext conftest$ac_exeext 3844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3845 (eval $ac_link) 2>conftest.er1 3846 ac_status=$? 3847 grep -v '^ *+' conftest.er1 >conftest.err 3848 rm -f conftest.er1 3849 cat conftest.err >&5 3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3851 (exit $ac_status); } && 3852 { ac_try='test -z "$ac_c_werror_flag" 3853 || test ! -s conftest.err' 3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3855 (eval $ac_try) 2>&5 3856 ac_status=$? 3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3858 (exit $ac_status); }; } && 3859 { ac_try='test -s conftest$ac_exeext' 3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3861 (eval $ac_try) 2>&5 3862 ac_status=$? 3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3864 (exit $ac_status); }; }; then 3865 ac_cv_lib_crypt_crypt=yes 3866else 3867 echo "$as_me: failed program was:" >&5 3868sed 's/^/| /' conftest.$ac_ext >&5 3869 3870ac_cv_lib_crypt_crypt=no 3871fi 3872rm -f conftest.err conftest.$ac_objext \ 3873 conftest$ac_exeext conftest.$ac_ext 3874LIBS=$ac_check_lib_save_LIBS 3875fi 3876echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 3877echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 3878if test $ac_cv_lib_crypt_crypt = yes; then 3879 LIBS="$LIBS -lcrypt" 3880fi 3881 3882 3883# Check if zlib is needed 3884 3885# Check whether --with-zlib or --without-zlib was given. 3886if test "${with_zlib+set}" = set; then 3887 withval="$with_zlib" 3888 3889 # option is given 3890 if test -d "$withval/lib"; then 3891 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 3892 else 3893 LDFLAGS="-L${withval} ${LDFLAGS}" 3894 fi 3895 if test -d "$withval/include"; then 3896 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" 3897 else 3898 CPPFLAGS="-I${withval} ${CPPFLAGS}" 3899 fi 3900 3901 3902fi; 3903 3904# Check whether --enable-zlib or --disable-zlib was given. 3905if test "${enable_zlib+set}" = set; then 3906 enableval="$enable_zlib" 3907 3908 if test "x$enableval" = "xno"; then 3909 3910cat >>confdefs.h <<\_ACEOF 3911#define DISABLE_ZLIB 3912_ACEOF 3913 3914 { echo "$as_me:$LINENO: Disabling zlib" >&5 3915echo "$as_me: Disabling zlib" >&6;} 3916 else 3917 3918echo "$as_me:$LINENO: checking for deflate in -lz" >&5 3919echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 3920if test "${ac_cv_lib_z_deflate+set}" = set; then 3921 echo $ECHO_N "(cached) $ECHO_C" >&6 3922else 3923 ac_check_lib_save_LIBS=$LIBS 3924LIBS="-lz $LIBS" 3925cat >conftest.$ac_ext <<_ACEOF 3926/* confdefs.h. */ 3927_ACEOF 3928cat confdefs.h >>conftest.$ac_ext 3929cat >>conftest.$ac_ext <<_ACEOF 3930/* end confdefs.h. */ 3931 3932/* Override any gcc2 internal prototype to avoid an error. */ 3933#ifdef __cplusplus 3934extern "C" 3935#endif 3936/* We use char because int might match the return type of a gcc2 3937 builtin and then its argument prototype would still apply. */ 3938char deflate (); 3939int 3940main () 3941{ 3942deflate (); 3943 ; 3944 return 0; 3945} 3946_ACEOF 3947rm -f conftest.$ac_objext conftest$ac_exeext 3948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3949 (eval $ac_link) 2>conftest.er1 3950 ac_status=$? 3951 grep -v '^ *+' conftest.er1 >conftest.err 3952 rm -f conftest.er1 3953 cat conftest.err >&5 3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3955 (exit $ac_status); } && 3956 { ac_try='test -z "$ac_c_werror_flag" 3957 || test ! -s conftest.err' 3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3959 (eval $ac_try) 2>&5 3960 ac_status=$? 3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3962 (exit $ac_status); }; } && 3963 { ac_try='test -s conftest$ac_exeext' 3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3965 (eval $ac_try) 2>&5 3966 ac_status=$? 3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3968 (exit $ac_status); }; }; then 3969 ac_cv_lib_z_deflate=yes 3970else 3971 echo "$as_me: failed program was:" >&5 3972sed 's/^/| /' conftest.$ac_ext >&5 3973 3974ac_cv_lib_z_deflate=no 3975fi 3976rm -f conftest.err conftest.$ac_objext \ 3977 conftest$ac_exeext conftest.$ac_ext 3978LIBS=$ac_check_lib_save_LIBS 3979fi 3980echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 3981echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 3982if test $ac_cv_lib_z_deflate = yes; then 3983 cat >>confdefs.h <<_ACEOF 3984#define HAVE_LIBZ 1 3985_ACEOF 3986 3987 LIBS="-lz $LIBS" 3988 3989else 3990 { { echo "$as_me:$LINENO: error: *** zlib missing - install first or check config.log ***" >&5 3991echo "$as_me: error: *** zlib missing - install first or check config.log ***" >&2;} 3992 { (exit 1); exit 1; }; } 3993fi 3994 3995 { echo "$as_me:$LINENO: Enabling zlib" >&5 3996echo "$as_me: Enabling zlib" >&6;} 3997 fi 3998 3999else 4000 4001 # if not disabled, check for zlib 4002 4003echo "$as_me:$LINENO: checking for deflate in -lz" >&5 4004echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 4005if test "${ac_cv_lib_z_deflate+set}" = set; then 4006 echo $ECHO_N "(cached) $ECHO_C" >&6 4007else 4008 ac_check_lib_save_LIBS=$LIBS 4009LIBS="-lz $LIBS" 4010cat >conftest.$ac_ext <<_ACEOF 4011/* confdefs.h. */ 4012_ACEOF 4013cat confdefs.h >>conftest.$ac_ext 4014cat >>conftest.$ac_ext <<_ACEOF 4015/* end confdefs.h. */ 4016 4017/* Override any gcc2 internal prototype to avoid an error. */ 4018#ifdef __cplusplus 4019extern "C" 4020#endif 4021/* We use char because int might match the return type of a gcc2 4022 builtin and then its argument prototype would still apply. */ 4023char deflate (); 4024int 4025main () 4026{ 4027deflate (); 4028 ; 4029 return 0; 4030} 4031_ACEOF 4032rm -f conftest.$ac_objext conftest$ac_exeext 4033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4034 (eval $ac_link) 2>conftest.er1 4035 ac_status=$? 4036 grep -v '^ *+' conftest.er1 >conftest.err 4037 rm -f conftest.er1 4038 cat conftest.err >&5 4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4040 (exit $ac_status); } && 4041 { ac_try='test -z "$ac_c_werror_flag" 4042 || test ! -s conftest.err' 4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4044 (eval $ac_try) 2>&5 4045 ac_status=$? 4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4047 (exit $ac_status); }; } && 4048 { ac_try='test -s conftest$ac_exeext' 4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4050 (eval $ac_try) 2>&5 4051 ac_status=$? 4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4053 (exit $ac_status); }; }; then 4054 ac_cv_lib_z_deflate=yes 4055else 4056 echo "$as_me: failed program was:" >&5 4057sed 's/^/| /' conftest.$ac_ext >&5 4058 4059ac_cv_lib_z_deflate=no 4060fi 4061rm -f conftest.err conftest.$ac_objext \ 4062 conftest$ac_exeext conftest.$ac_ext 4063LIBS=$ac_check_lib_save_LIBS 4064fi 4065echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 4066echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 4067if test $ac_cv_lib_z_deflate = yes; then 4068 cat >>confdefs.h <<_ACEOF 4069#define HAVE_LIBZ 1 4070_ACEOF 4071 4072 LIBS="-lz $LIBS" 4073 4074else 4075 { { echo "$as_me:$LINENO: error: *** zlib missing - install first or check config.log ***" >&5 4076echo "$as_me: error: *** zlib missing - install first or check config.log ***" >&2;} 4077 { (exit 1); exit 1; }; } 4078fi 4079 4080 { echo "$as_me:$LINENO: Enabling zlib" >&5 4081echo "$as_me: Enabling zlib" >&6;} 4082 4083 4084fi; 4085 4086# Check if pam is needed 4087 4088# Check whether --with-pam or --without-pam was given. 4089if test "${with_pam+set}" = set; then 4090 withval="$with_pam" 4091 4092 # option is given 4093 if test -d "$withval/lib"; then 4094 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 4095 else 4096 LDFLAGS="-L${withval} ${LDFLAGS}" 4097 fi 4098 if test -d "$withval/include"; then 4099 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" 4100 else 4101 CPPFLAGS="-I${withval} ${CPPFLAGS}" 4102 fi 4103 4104 4105fi; 4106 4107 4108# Check whether --enable-pam or --disable-pam was given. 4109if test "${enable_pam+set}" = set; then 4110 enableval="$enable_pam" 4111 4112 if test "x$enableval" = "xyes"; then 4113 4114echo "$as_me:$LINENO: checking for pam_authenticate in -lpam" >&5 4115echo $ECHO_N "checking for pam_authenticate in -lpam... $ECHO_C" >&6 4116if test "${ac_cv_lib_pam_pam_authenticate+set}" = set; then 4117 echo $ECHO_N "(cached) $ECHO_C" >&6 4118else 4119 ac_check_lib_save_LIBS=$LIBS 4120LIBS="-lpam $LIBS" 4121cat >conftest.$ac_ext <<_ACEOF 4122/* confdefs.h. */ 4123_ACEOF 4124cat confdefs.h >>conftest.$ac_ext 4125cat >>conftest.$ac_ext <<_ACEOF 4126/* end confdefs.h. */ 4127 4128/* Override any gcc2 internal prototype to avoid an error. */ 4129#ifdef __cplusplus 4130extern "C" 4131#endif 4132/* We use char because int might match the return type of a gcc2 4133 builtin and then its argument prototype would still apply. */ 4134char pam_authenticate (); 4135int 4136main () 4137{ 4138pam_authenticate (); 4139 ; 4140 return 0; 4141} 4142_ACEOF 4143rm -f conftest.$ac_objext conftest$ac_exeext 4144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4145 (eval $ac_link) 2>conftest.er1 4146 ac_status=$? 4147 grep -v '^ *+' conftest.er1 >conftest.err 4148 rm -f conftest.er1 4149 cat conftest.err >&5 4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4151 (exit $ac_status); } && 4152 { ac_try='test -z "$ac_c_werror_flag" 4153 || test ! -s conftest.err' 4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4155 (eval $ac_try) 2>&5 4156 ac_status=$? 4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4158 (exit $ac_status); }; } && 4159 { ac_try='test -s conftest$ac_exeext' 4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4161 (eval $ac_try) 2>&5 4162 ac_status=$? 4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4164 (exit $ac_status); }; }; then 4165 ac_cv_lib_pam_pam_authenticate=yes 4166else 4167 echo "$as_me: failed program was:" >&5 4168sed 's/^/| /' conftest.$ac_ext >&5 4169 4170ac_cv_lib_pam_pam_authenticate=no 4171fi 4172rm -f conftest.err conftest.$ac_objext \ 4173 conftest$ac_exeext conftest.$ac_ext 4174LIBS=$ac_check_lib_save_LIBS 4175fi 4176echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_authenticate" >&5 4177echo "${ECHO_T}$ac_cv_lib_pam_pam_authenticate" >&6 4178if test $ac_cv_lib_pam_pam_authenticate = yes; then 4179 cat >>confdefs.h <<_ACEOF 4180#define HAVE_LIBPAM 1 4181_ACEOF 4182 4183 LIBS="-lpam $LIBS" 4184 4185else 4186 { { echo "$as_me:$LINENO: error: *** PAM missing - install first or check config.log ***" >&5 4187echo "$as_me: error: *** PAM missing - install first or check config.log ***" >&2;} 4188 { (exit 1); exit 1; }; } 4189fi 4190 4191 { echo "$as_me:$LINENO: Enabling PAM" >&5 4192echo "$as_me: Enabling PAM" >&6;} 4193 else 4194 4195cat >>confdefs.h <<\_ACEOF 4196#define DISABLE_PAM 4197_ACEOF 4198 4199 { echo "$as_me:$LINENO: Disabling PAM" >&5 4200echo "$as_me: Disabling PAM" >&6;} 4201 fi 4202 4203else 4204 4205 # disable it by default 4206 4207cat >>confdefs.h <<\_ACEOF 4208#define DISABLE_PAM 4209_ACEOF 4210 4211 { echo "$as_me:$LINENO: Disabling PAM" >&5 4212echo "$as_me: Disabling PAM" >&6;} 4213 4214 4215fi; 4216 4217# Check whether --enable-openpty or --disable-openpty was given. 4218if test "${enable_openpty+set}" = set; then 4219 enableval="$enable_openpty" 4220 4221 if test "x$enableval" = "xno"; then 4222 { echo "$as_me:$LINENO: Not using openpty" >&5 4223echo "$as_me: Not using openpty" >&6;} 4224 else 4225 { echo "$as_me:$LINENO: Using openpty if available" >&5 4226echo "$as_me: Using openpty if available" >&6;} 4227 echo "$as_me:$LINENO: checking for library containing openpty" >&5 4228echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6 4229if test "${ac_cv_search_openpty+set}" = set; then 4230 echo $ECHO_N "(cached) $ECHO_C" >&6 4231else 4232 ac_func_search_save_LIBS=$LIBS 4233ac_cv_search_openpty=no 4234cat >conftest.$ac_ext <<_ACEOF 4235/* confdefs.h. */ 4236_ACEOF 4237cat confdefs.h >>conftest.$ac_ext 4238cat >>conftest.$ac_ext <<_ACEOF 4239/* end confdefs.h. */ 4240 4241/* Override any gcc2 internal prototype to avoid an error. */ 4242#ifdef __cplusplus 4243extern "C" 4244#endif 4245/* We use char because int might match the return type of a gcc2 4246 builtin and then its argument prototype would still apply. */ 4247char openpty (); 4248int 4249main () 4250{ 4251openpty (); 4252 ; 4253 return 0; 4254} 4255_ACEOF 4256rm -f conftest.$ac_objext conftest$ac_exeext 4257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4258 (eval $ac_link) 2>conftest.er1 4259 ac_status=$? 4260 grep -v '^ *+' conftest.er1 >conftest.err 4261 rm -f conftest.er1 4262 cat conftest.err >&5 4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4264 (exit $ac_status); } && 4265 { ac_try='test -z "$ac_c_werror_flag" 4266 || test ! -s conftest.err' 4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4268 (eval $ac_try) 2>&5 4269 ac_status=$? 4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4271 (exit $ac_status); }; } && 4272 { ac_try='test -s conftest$ac_exeext' 4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4274 (eval $ac_try) 2>&5 4275 ac_status=$? 4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4277 (exit $ac_status); }; }; then 4278 ac_cv_search_openpty="none required" 4279else 4280 echo "$as_me: failed program was:" >&5 4281sed 's/^/| /' conftest.$ac_ext >&5 4282 4283fi 4284rm -f conftest.err conftest.$ac_objext \ 4285 conftest$ac_exeext conftest.$ac_ext 4286if test "$ac_cv_search_openpty" = no; then 4287 for ac_lib in util; do 4288 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4289 cat >conftest.$ac_ext <<_ACEOF 4290/* confdefs.h. */ 4291_ACEOF 4292cat confdefs.h >>conftest.$ac_ext 4293cat >>conftest.$ac_ext <<_ACEOF 4294/* end confdefs.h. */ 4295 4296/* Override any gcc2 internal prototype to avoid an error. */ 4297#ifdef __cplusplus 4298extern "C" 4299#endif 4300/* We use char because int might match the return type of a gcc2 4301 builtin and then its argument prototype would still apply. */ 4302char openpty (); 4303int 4304main () 4305{ 4306openpty (); 4307 ; 4308 return 0; 4309} 4310_ACEOF 4311rm -f conftest.$ac_objext conftest$ac_exeext 4312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4313 (eval $ac_link) 2>conftest.er1 4314 ac_status=$? 4315 grep -v '^ *+' conftest.er1 >conftest.err 4316 rm -f conftest.er1 4317 cat conftest.err >&5 4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4319 (exit $ac_status); } && 4320 { ac_try='test -z "$ac_c_werror_flag" 4321 || test ! -s conftest.err' 4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4323 (eval $ac_try) 2>&5 4324 ac_status=$? 4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4326 (exit $ac_status); }; } && 4327 { ac_try='test -s conftest$ac_exeext' 4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4329 (eval $ac_try) 2>&5 4330 ac_status=$? 4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4332 (exit $ac_status); }; }; then 4333 ac_cv_search_openpty="-l$ac_lib" 4334break 4335else 4336 echo "$as_me: failed program was:" >&5 4337sed 's/^/| /' conftest.$ac_ext >&5 4338 4339fi 4340rm -f conftest.err conftest.$ac_objext \ 4341 conftest$ac_exeext conftest.$ac_ext 4342 done 4343fi 4344LIBS=$ac_func_search_save_LIBS 4345fi 4346echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5 4347echo "${ECHO_T}$ac_cv_search_openpty" >&6 4348if test "$ac_cv_search_openpty" != no; then 4349 test "$ac_cv_search_openpty" = "none required" || LIBS="$ac_cv_search_openpty $LIBS" 4350 4351cat >>confdefs.h <<\_ACEOF 4352#define HAVE_OPENPTY 4353_ACEOF 4354 4355fi 4356 4357 fi 4358 4359else 4360 4361 { echo "$as_me:$LINENO: Using openpty if available" >&5 4362echo "$as_me: Using openpty if available" >&6;} 4363 echo "$as_me:$LINENO: checking for library containing openpty" >&5 4364echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6 4365if test "${ac_cv_search_openpty+set}" = set; then 4366 echo $ECHO_N "(cached) $ECHO_C" >&6 4367else 4368 ac_func_search_save_LIBS=$LIBS 4369ac_cv_search_openpty=no 4370cat >conftest.$ac_ext <<_ACEOF 4371/* confdefs.h. */ 4372_ACEOF 4373cat confdefs.h >>conftest.$ac_ext 4374cat >>conftest.$ac_ext <<_ACEOF 4375/* end confdefs.h. */ 4376 4377/* Override any gcc2 internal prototype to avoid an error. */ 4378#ifdef __cplusplus 4379extern "C" 4380#endif 4381/* We use char because int might match the return type of a gcc2 4382 builtin and then its argument prototype would still apply. */ 4383char openpty (); 4384int 4385main () 4386{ 4387openpty (); 4388 ; 4389 return 0; 4390} 4391_ACEOF 4392rm -f conftest.$ac_objext conftest$ac_exeext 4393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4394 (eval $ac_link) 2>conftest.er1 4395 ac_status=$? 4396 grep -v '^ *+' conftest.er1 >conftest.err 4397 rm -f conftest.er1 4398 cat conftest.err >&5 4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4400 (exit $ac_status); } && 4401 { ac_try='test -z "$ac_c_werror_flag" 4402 || test ! -s conftest.err' 4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4404 (eval $ac_try) 2>&5 4405 ac_status=$? 4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4407 (exit $ac_status); }; } && 4408 { ac_try='test -s conftest$ac_exeext' 4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4410 (eval $ac_try) 2>&5 4411 ac_status=$? 4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4413 (exit $ac_status); }; }; then 4414 ac_cv_search_openpty="none required" 4415else 4416 echo "$as_me: failed program was:" >&5 4417sed 's/^/| /' conftest.$ac_ext >&5 4418 4419fi 4420rm -f conftest.err conftest.$ac_objext \ 4421 conftest$ac_exeext conftest.$ac_ext 4422if test "$ac_cv_search_openpty" = no; then 4423 for ac_lib in util; do 4424 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4425 cat >conftest.$ac_ext <<_ACEOF 4426/* confdefs.h. */ 4427_ACEOF 4428cat confdefs.h >>conftest.$ac_ext 4429cat >>conftest.$ac_ext <<_ACEOF 4430/* end confdefs.h. */ 4431 4432/* Override any gcc2 internal prototype to avoid an error. */ 4433#ifdef __cplusplus 4434extern "C" 4435#endif 4436/* We use char because int might match the return type of a gcc2 4437 builtin and then its argument prototype would still apply. */ 4438char openpty (); 4439int 4440main () 4441{ 4442openpty (); 4443 ; 4444 return 0; 4445} 4446_ACEOF 4447rm -f conftest.$ac_objext conftest$ac_exeext 4448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4449 (eval $ac_link) 2>conftest.er1 4450 ac_status=$? 4451 grep -v '^ *+' conftest.er1 >conftest.err 4452 rm -f conftest.er1 4453 cat conftest.err >&5 4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4455 (exit $ac_status); } && 4456 { ac_try='test -z "$ac_c_werror_flag" 4457 || test ! -s conftest.err' 4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4459 (eval $ac_try) 2>&5 4460 ac_status=$? 4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4462 (exit $ac_status); }; } && 4463 { ac_try='test -s conftest$ac_exeext' 4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4465 (eval $ac_try) 2>&5 4466 ac_status=$? 4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4468 (exit $ac_status); }; }; then 4469 ac_cv_search_openpty="-l$ac_lib" 4470break 4471else 4472 echo "$as_me: failed program was:" >&5 4473sed 's/^/| /' conftest.$ac_ext >&5 4474 4475fi 4476rm -f conftest.err conftest.$ac_objext \ 4477 conftest$ac_exeext conftest.$ac_ext 4478 done 4479fi 4480LIBS=$ac_func_search_save_LIBS 4481fi 4482echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5 4483echo "${ECHO_T}$ac_cv_search_openpty" >&6 4484if test "$ac_cv_search_openpty" != no; then 4485 test "$ac_cv_search_openpty" = "none required" || LIBS="$ac_cv_search_openpty $LIBS" 4486 cat >>confdefs.h <<\_ACEOF 4487#define HAVE_OPENPTY 1 4488_ACEOF 4489 4490fi 4491 4492 4493 4494fi; 4495 4496 4497# Check whether --enable-syslog or --disable-syslog was given. 4498if test "${enable_syslog+set}" = set; then 4499 enableval="$enable_syslog" 4500 4501 if test "x$enableval" = "xno"; then 4502 4503cat >>confdefs.h <<\_ACEOF 4504#define DISABLE_SYSLOG 4505_ACEOF 4506 4507 { echo "$as_me:$LINENO: Disabling syslog" >&5 4508echo "$as_me: Disabling syslog" >&6;} 4509 else 4510 { echo "$as_me:$LINENO: Enabling syslog" >&5 4511echo "$as_me: Enabling syslog" >&6;} 4512 fi 4513 4514else 4515 4516 { echo "$as_me:$LINENO: Enabling syslog" >&5 4517echo "$as_me: Enabling syslog" >&6;} 4518 4519 4520fi; 4521 4522# Check whether --enable-shadow or --disable-shadow was given. 4523if test "${enable_shadow+set}" = set; then 4524 enableval="$enable_shadow" 4525 4526 if test "x$enableval" = "xno"; then 4527 { echo "$as_me:$LINENO: Not using shadow passwords" >&5 4528echo "$as_me: Not using shadow passwords" >&6;} 4529 else 4530 4531for ac_header in shadow.h 4532do 4533as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4534if eval "test \"\${$as_ac_Header+set}\" = set"; then 4535 echo "$as_me:$LINENO: checking for $ac_header" >&5 4536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4537if eval "test \"\${$as_ac_Header+set}\" = set"; then 4538 echo $ECHO_N "(cached) $ECHO_C" >&6 4539fi 4540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4542else 4543 # Is the header compilable? 4544echo "$as_me:$LINENO: checking $ac_header usability" >&5 4545echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4546cat >conftest.$ac_ext <<_ACEOF 4547/* confdefs.h. */ 4548_ACEOF 4549cat confdefs.h >>conftest.$ac_ext 4550cat >>conftest.$ac_ext <<_ACEOF 4551/* end confdefs.h. */ 4552$ac_includes_default 4553#include <$ac_header> 4554_ACEOF 4555rm -f conftest.$ac_objext 4556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4557 (eval $ac_compile) 2>conftest.er1 4558 ac_status=$? 4559 grep -v '^ *+' conftest.er1 >conftest.err 4560 rm -f conftest.er1 4561 cat conftest.err >&5 4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4563 (exit $ac_status); } && 4564 { ac_try='test -z "$ac_c_werror_flag" 4565 || test ! -s conftest.err' 4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4567 (eval $ac_try) 2>&5 4568 ac_status=$? 4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4570 (exit $ac_status); }; } && 4571 { ac_try='test -s conftest.$ac_objext' 4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4573 (eval $ac_try) 2>&5 4574 ac_status=$? 4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4576 (exit $ac_status); }; }; then 4577 ac_header_compiler=yes 4578else 4579 echo "$as_me: failed program was:" >&5 4580sed 's/^/| /' conftest.$ac_ext >&5 4581 4582ac_header_compiler=no 4583fi 4584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4585echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4586echo "${ECHO_T}$ac_header_compiler" >&6 4587 4588# Is the header present? 4589echo "$as_me:$LINENO: checking $ac_header presence" >&5 4590echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4591cat >conftest.$ac_ext <<_ACEOF 4592/* confdefs.h. */ 4593_ACEOF 4594cat confdefs.h >>conftest.$ac_ext 4595cat >>conftest.$ac_ext <<_ACEOF 4596/* end confdefs.h. */ 4597#include <$ac_header> 4598_ACEOF 4599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4601 ac_status=$? 4602 grep -v '^ *+' conftest.er1 >conftest.err 4603 rm -f conftest.er1 4604 cat conftest.err >&5 4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4606 (exit $ac_status); } >/dev/null; then 4607 if test -s conftest.err; then 4608 ac_cpp_err=$ac_c_preproc_warn_flag 4609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4610 else 4611 ac_cpp_err= 4612 fi 4613else 4614 ac_cpp_err=yes 4615fi 4616if test -z "$ac_cpp_err"; then 4617 ac_header_preproc=yes 4618else 4619 echo "$as_me: failed program was:" >&5 4620sed 's/^/| /' conftest.$ac_ext >&5 4621 4622 ac_header_preproc=no 4623fi 4624rm -f conftest.err conftest.$ac_ext 4625echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4626echo "${ECHO_T}$ac_header_preproc" >&6 4627 4628# So? What about this header? 4629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4630 yes:no: ) 4631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4632echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4634echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4635 ac_header_preproc=yes 4636 ;; 4637 no:yes:* ) 4638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4639echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4641echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4643echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4645echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4647echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4649echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4650 ( 4651 cat <<\_ASBOX 4652## ------------------------------------------ ## 4653## Report this to the AC_PACKAGE_NAME lists. ## 4654## ------------------------------------------ ## 4655_ASBOX 4656 ) | 4657 sed "s/^/$as_me: WARNING: /" >&2 4658 ;; 4659esac 4660echo "$as_me:$LINENO: checking for $ac_header" >&5 4661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4662if eval "test \"\${$as_ac_Header+set}\" = set"; then 4663 echo $ECHO_N "(cached) $ECHO_C" >&6 4664else 4665 eval "$as_ac_Header=\$ac_header_preproc" 4666fi 4667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4669 4670fi 4671if test `eval echo '${'$as_ac_Header'}'` = yes; then 4672 cat >>confdefs.h <<_ACEOF 4673#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4674_ACEOF 4675 4676fi 4677 4678done 4679 4680 { echo "$as_me:$LINENO: Using shadow passwords if available" >&5 4681echo "$as_me: Using shadow passwords if available" >&6;} 4682 fi 4683 4684else 4685 4686 4687for ac_header in shadow.h 4688do 4689as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4690if eval "test \"\${$as_ac_Header+set}\" = set"; then 4691 echo "$as_me:$LINENO: checking for $ac_header" >&5 4692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4693if eval "test \"\${$as_ac_Header+set}\" = set"; then 4694 echo $ECHO_N "(cached) $ECHO_C" >&6 4695fi 4696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4698else 4699 # Is the header compilable? 4700echo "$as_me:$LINENO: checking $ac_header usability" >&5 4701echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4702cat >conftest.$ac_ext <<_ACEOF 4703/* confdefs.h. */ 4704_ACEOF 4705cat confdefs.h >>conftest.$ac_ext 4706cat >>conftest.$ac_ext <<_ACEOF 4707/* end confdefs.h. */ 4708$ac_includes_default 4709#include <$ac_header> 4710_ACEOF 4711rm -f conftest.$ac_objext 4712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4713 (eval $ac_compile) 2>conftest.er1 4714 ac_status=$? 4715 grep -v '^ *+' conftest.er1 >conftest.err 4716 rm -f conftest.er1 4717 cat conftest.err >&5 4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4719 (exit $ac_status); } && 4720 { ac_try='test -z "$ac_c_werror_flag" 4721 || test ! -s conftest.err' 4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4723 (eval $ac_try) 2>&5 4724 ac_status=$? 4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4726 (exit $ac_status); }; } && 4727 { ac_try='test -s conftest.$ac_objext' 4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4729 (eval $ac_try) 2>&5 4730 ac_status=$? 4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4732 (exit $ac_status); }; }; then 4733 ac_header_compiler=yes 4734else 4735 echo "$as_me: failed program was:" >&5 4736sed 's/^/| /' conftest.$ac_ext >&5 4737 4738ac_header_compiler=no 4739fi 4740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4741echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4742echo "${ECHO_T}$ac_header_compiler" >&6 4743 4744# Is the header present? 4745echo "$as_me:$LINENO: checking $ac_header presence" >&5 4746echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4747cat >conftest.$ac_ext <<_ACEOF 4748/* confdefs.h. */ 4749_ACEOF 4750cat confdefs.h >>conftest.$ac_ext 4751cat >>conftest.$ac_ext <<_ACEOF 4752/* end confdefs.h. */ 4753#include <$ac_header> 4754_ACEOF 4755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4757 ac_status=$? 4758 grep -v '^ *+' conftest.er1 >conftest.err 4759 rm -f conftest.er1 4760 cat conftest.err >&5 4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4762 (exit $ac_status); } >/dev/null; then 4763 if test -s conftest.err; then 4764 ac_cpp_err=$ac_c_preproc_warn_flag 4765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4766 else 4767 ac_cpp_err= 4768 fi 4769else 4770 ac_cpp_err=yes 4771fi 4772if test -z "$ac_cpp_err"; then 4773 ac_header_preproc=yes 4774else 4775 echo "$as_me: failed program was:" >&5 4776sed 's/^/| /' conftest.$ac_ext >&5 4777 4778 ac_header_preproc=no 4779fi 4780rm -f conftest.err conftest.$ac_ext 4781echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4782echo "${ECHO_T}$ac_header_preproc" >&6 4783 4784# So? What about this header? 4785case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4786 yes:no: ) 4787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4788echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4790echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4791 ac_header_preproc=yes 4792 ;; 4793 no:yes:* ) 4794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4795echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4797echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4799echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4801echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4805echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4806 ( 4807 cat <<\_ASBOX 4808## ------------------------------------------ ## 4809## Report this to the AC_PACKAGE_NAME lists. ## 4810## ------------------------------------------ ## 4811_ASBOX 4812 ) | 4813 sed "s/^/$as_me: WARNING: /" >&2 4814 ;; 4815esac 4816echo "$as_me:$LINENO: checking for $ac_header" >&5 4817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4818if eval "test \"\${$as_ac_Header+set}\" = set"; then 4819 echo $ECHO_N "(cached) $ECHO_C" >&6 4820else 4821 eval "$as_ac_Header=\$ac_header_preproc" 4822fi 4823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4825 4826fi 4827if test `eval echo '${'$as_ac_Header'}'` = yes; then 4828 cat >>confdefs.h <<_ACEOF 4829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4830_ACEOF 4831 4832fi 4833 4834done 4835 4836 { echo "$as_me:$LINENO: Using shadow passwords if available" >&5 4837echo "$as_me: Using shadow passwords if available" >&6;} 4838 4839 4840fi; 4841 4842 4843# Checks for header files. 4844echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4845echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4846if test "${ac_cv_header_stdc+set}" = set; then 4847 echo $ECHO_N "(cached) $ECHO_C" >&6 4848else 4849 cat >conftest.$ac_ext <<_ACEOF 4850/* confdefs.h. */ 4851_ACEOF 4852cat confdefs.h >>conftest.$ac_ext 4853cat >>conftest.$ac_ext <<_ACEOF 4854/* end confdefs.h. */ 4855#include <stdlib.h> 4856#include <stdarg.h> 4857#include <string.h> 4858#include <float.h> 4859 4860int 4861main () 4862{ 4863 4864 ; 4865 return 0; 4866} 4867_ACEOF 4868rm -f conftest.$ac_objext 4869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4870 (eval $ac_compile) 2>conftest.er1 4871 ac_status=$? 4872 grep -v '^ *+' conftest.er1 >conftest.err 4873 rm -f conftest.er1 4874 cat conftest.err >&5 4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4876 (exit $ac_status); } && 4877 { ac_try='test -z "$ac_c_werror_flag" 4878 || test ! -s conftest.err' 4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4880 (eval $ac_try) 2>&5 4881 ac_status=$? 4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4883 (exit $ac_status); }; } && 4884 { ac_try='test -s conftest.$ac_objext' 4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4886 (eval $ac_try) 2>&5 4887 ac_status=$? 4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4889 (exit $ac_status); }; }; then 4890 ac_cv_header_stdc=yes 4891else 4892 echo "$as_me: failed program was:" >&5 4893sed 's/^/| /' conftest.$ac_ext >&5 4894 4895ac_cv_header_stdc=no 4896fi 4897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4898 4899if test $ac_cv_header_stdc = yes; then 4900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4901 cat >conftest.$ac_ext <<_ACEOF 4902/* confdefs.h. */ 4903_ACEOF 4904cat confdefs.h >>conftest.$ac_ext 4905cat >>conftest.$ac_ext <<_ACEOF 4906/* end confdefs.h. */ 4907#include <string.h> 4908 4909_ACEOF 4910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4911 $EGREP "memchr" >/dev/null 2>&1; then 4912 : 4913else 4914 ac_cv_header_stdc=no 4915fi 4916rm -f conftest* 4917 4918fi 4919 4920if test $ac_cv_header_stdc = yes; then 4921 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4922 cat >conftest.$ac_ext <<_ACEOF 4923/* confdefs.h. */ 4924_ACEOF 4925cat confdefs.h >>conftest.$ac_ext 4926cat >>conftest.$ac_ext <<_ACEOF 4927/* end confdefs.h. */ 4928#include <stdlib.h> 4929 4930_ACEOF 4931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4932 $EGREP "free" >/dev/null 2>&1; then 4933 : 4934else 4935 ac_cv_header_stdc=no 4936fi 4937rm -f conftest* 4938 4939fi 4940 4941if test $ac_cv_header_stdc = yes; then 4942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4943 if test "$cross_compiling" = yes; then 4944 : 4945else 4946 cat >conftest.$ac_ext <<_ACEOF 4947/* confdefs.h. */ 4948_ACEOF 4949cat confdefs.h >>conftest.$ac_ext 4950cat >>conftest.$ac_ext <<_ACEOF 4951/* end confdefs.h. */ 4952#include <ctype.h> 4953#if ((' ' & 0x0FF) == 0x020) 4954# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4955# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4956#else 4957# define ISLOWER(c) \ 4958 (('a' <= (c) && (c) <= 'i') \ 4959 || ('j' <= (c) && (c) <= 'r') \ 4960 || ('s' <= (c) && (c) <= 'z')) 4961# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4962#endif 4963 4964#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4965int 4966main () 4967{ 4968 int i; 4969 for (i = 0; i < 256; i++) 4970 if (XOR (islower (i), ISLOWER (i)) 4971 || toupper (i) != TOUPPER (i)) 4972 exit(2); 4973 exit (0); 4974} 4975_ACEOF 4976rm -f conftest$ac_exeext 4977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4978 (eval $ac_link) 2>&5 4979 ac_status=$? 4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4983 (eval $ac_try) 2>&5 4984 ac_status=$? 4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4986 (exit $ac_status); }; }; then 4987 : 4988else 4989 echo "$as_me: program exited with status $ac_status" >&5 4990echo "$as_me: failed program was:" >&5 4991sed 's/^/| /' conftest.$ac_ext >&5 4992 4993( exit $ac_status ) 4994ac_cv_header_stdc=no 4995fi 4996rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4997fi 4998fi 4999fi 5000echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5001echo "${ECHO_T}$ac_cv_header_stdc" >&6 5002if test $ac_cv_header_stdc = yes; then 5003 5004cat >>confdefs.h <<\_ACEOF 5005#define STDC_HEADERS 1 5006_ACEOF 5007 5008fi 5009 5010echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 5011echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 5012if test "${ac_cv_header_sys_wait_h+set}" = set; then 5013 echo $ECHO_N "(cached) $ECHO_C" >&6 5014else 5015 cat >conftest.$ac_ext <<_ACEOF 5016/* confdefs.h. */ 5017_ACEOF 5018cat confdefs.h >>conftest.$ac_ext 5019cat >>conftest.$ac_ext <<_ACEOF 5020/* end confdefs.h. */ 5021#include <sys/types.h> 5022#include <sys/wait.h> 5023#ifndef WEXITSTATUS 5024# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 5025#endif 5026#ifndef WIFEXITED 5027# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 5028#endif 5029 5030int 5031main () 5032{ 5033 int s; 5034 wait (&s); 5035 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 5036 ; 5037 return 0; 5038} 5039_ACEOF 5040rm -f conftest.$ac_objext 5041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5042 (eval $ac_compile) 2>conftest.er1 5043 ac_status=$? 5044 grep -v '^ *+' conftest.er1 >conftest.err 5045 rm -f conftest.er1 5046 cat conftest.err >&5 5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5048 (exit $ac_status); } && 5049 { ac_try='test -z "$ac_c_werror_flag" 5050 || test ! -s conftest.err' 5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5052 (eval $ac_try) 2>&5 5053 ac_status=$? 5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5055 (exit $ac_status); }; } && 5056 { ac_try='test -s conftest.$ac_objext' 5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5058 (eval $ac_try) 2>&5 5059 ac_status=$? 5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5061 (exit $ac_status); }; }; then 5062 ac_cv_header_sys_wait_h=yes 5063else 5064 echo "$as_me: failed program was:" >&5 5065sed 's/^/| /' conftest.$ac_ext >&5 5066 5067ac_cv_header_sys_wait_h=no 5068fi 5069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5070fi 5071echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 5072echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 5073if test $ac_cv_header_sys_wait_h = yes; then 5074 5075cat >>confdefs.h <<\_ACEOF 5076#define HAVE_SYS_WAIT_H 1 5077_ACEOF 5078 5079fi 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107for ac_header in fcntl.h limits.h netinet/in.h netinet/tcp.h stdlib.h string.h sys/socket.h sys/time.h termios.h unistd.h crypt.h pty.h ioctl.h libutil.h libgen.h inttypes.h stropts.h utmp.h utmpx.h lastlog.h paths.h util.h netdb.h security/pam_appl.h pam/pam_appl.h netinet/in_systm.h 5108do 5109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5110if eval "test \"\${$as_ac_Header+set}\" = set"; then 5111 echo "$as_me:$LINENO: checking for $ac_header" >&5 5112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5113if eval "test \"\${$as_ac_Header+set}\" = set"; then 5114 echo $ECHO_N "(cached) $ECHO_C" >&6 5115fi 5116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5118else 5119 # Is the header compilable? 5120echo "$as_me:$LINENO: checking $ac_header usability" >&5 5121echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5122cat >conftest.$ac_ext <<_ACEOF 5123/* confdefs.h. */ 5124_ACEOF 5125cat confdefs.h >>conftest.$ac_ext 5126cat >>conftest.$ac_ext <<_ACEOF 5127/* end confdefs.h. */ 5128$ac_includes_default 5129#include <$ac_header> 5130_ACEOF 5131rm -f conftest.$ac_objext 5132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5133 (eval $ac_compile) 2>conftest.er1 5134 ac_status=$? 5135 grep -v '^ *+' conftest.er1 >conftest.err 5136 rm -f conftest.er1 5137 cat conftest.err >&5 5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5139 (exit $ac_status); } && 5140 { ac_try='test -z "$ac_c_werror_flag" 5141 || test ! -s conftest.err' 5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5143 (eval $ac_try) 2>&5 5144 ac_status=$? 5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5146 (exit $ac_status); }; } && 5147 { ac_try='test -s conftest.$ac_objext' 5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5149 (eval $ac_try) 2>&5 5150 ac_status=$? 5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5152 (exit $ac_status); }; }; then 5153 ac_header_compiler=yes 5154else 5155 echo "$as_me: failed program was:" >&5 5156sed 's/^/| /' conftest.$ac_ext >&5 5157 5158ac_header_compiler=no 5159fi 5160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5161echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5162echo "${ECHO_T}$ac_header_compiler" >&6 5163 5164# Is the header present? 5165echo "$as_me:$LINENO: checking $ac_header presence" >&5 5166echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5167cat >conftest.$ac_ext <<_ACEOF 5168/* confdefs.h. */ 5169_ACEOF 5170cat confdefs.h >>conftest.$ac_ext 5171cat >>conftest.$ac_ext <<_ACEOF 5172/* end confdefs.h. */ 5173#include <$ac_header> 5174_ACEOF 5175if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5177 ac_status=$? 5178 grep -v '^ *+' conftest.er1 >conftest.err 5179 rm -f conftest.er1 5180 cat conftest.err >&5 5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5182 (exit $ac_status); } >/dev/null; then 5183 if test -s conftest.err; then 5184 ac_cpp_err=$ac_c_preproc_warn_flag 5185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5186 else 5187 ac_cpp_err= 5188 fi 5189else 5190 ac_cpp_err=yes 5191fi 5192if test -z "$ac_cpp_err"; then 5193 ac_header_preproc=yes 5194else 5195 echo "$as_me: failed program was:" >&5 5196sed 's/^/| /' conftest.$ac_ext >&5 5197 5198 ac_header_preproc=no 5199fi 5200rm -f conftest.err conftest.$ac_ext 5201echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5202echo "${ECHO_T}$ac_header_preproc" >&6 5203 5204# So? What about this header? 5205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5206 yes:no: ) 5207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5208echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5210echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5211 ac_header_preproc=yes 5212 ;; 5213 no:yes:* ) 5214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5215echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5217echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5219echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5221echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5223echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5225echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5226 ( 5227 cat <<\_ASBOX 5228## ------------------------------------------ ## 5229## Report this to the AC_PACKAGE_NAME lists. ## 5230## ------------------------------------------ ## 5231_ASBOX 5232 ) | 5233 sed "s/^/$as_me: WARNING: /" >&2 5234 ;; 5235esac 5236echo "$as_me:$LINENO: checking for $ac_header" >&5 5237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5238if eval "test \"\${$as_ac_Header+set}\" = set"; then 5239 echo $ECHO_N "(cached) $ECHO_C" >&6 5240else 5241 eval "$as_ac_Header=\$ac_header_preproc" 5242fi 5243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5245 5246fi 5247if test `eval echo '${'$as_ac_Header'}'` = yes; then 5248 cat >>confdefs.h <<_ACEOF 5249#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5250_ACEOF 5251 5252fi 5253 5254done 5255 5256 5257# Checks for typedefs, structures, and compiler characteristics. 5258echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 5259echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 5260if test "${ac_cv_c_const+set}" = set; then 5261 echo $ECHO_N "(cached) $ECHO_C" >&6 5262else 5263 cat >conftest.$ac_ext <<_ACEOF 5264/* confdefs.h. */ 5265_ACEOF 5266cat confdefs.h >>conftest.$ac_ext 5267cat >>conftest.$ac_ext <<_ACEOF 5268/* end confdefs.h. */ 5269 5270int 5271main () 5272{ 5273/* FIXME: Include the comments suggested by Paul. */ 5274#ifndef __cplusplus 5275 /* Ultrix mips cc rejects this. */ 5276 typedef int charset[2]; 5277 const charset x; 5278 /* SunOS 4.1.1 cc rejects this. */ 5279 char const *const *ccp; 5280 char **p; 5281 /* NEC SVR4.0.2 mips cc rejects this. */ 5282 struct point {int x, y;}; 5283 static struct point const zero = {0,0}; 5284 /* AIX XL C 1.02.0.0 rejects this. 5285 It does not let you subtract one const X* pointer from another in 5286 an arm of an if-expression whose if-part is not a constant 5287 expression */ 5288 const char *g = "string"; 5289 ccp = &g + (g ? g-g : 0); 5290 /* HPUX 7.0 cc rejects these. */ 5291 ++ccp; 5292 p = (char**) ccp; 5293 ccp = (char const *const *) p; 5294 { /* SCO 3.2v4 cc rejects this. */ 5295 char *t; 5296 char const *s = 0 ? (char *) 0 : (char const *) 0; 5297 5298 *t++ = 0; 5299 } 5300 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5301 int x[] = {25, 17}; 5302 const int *foo = &x[0]; 5303 ++foo; 5304 } 5305 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5306 typedef const int *iptr; 5307 iptr p = 0; 5308 ++p; 5309 } 5310 { /* AIX XL C 1.02.0.0 rejects this saying 5311 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5312 struct s { int j; const int *ap[3]; }; 5313 struct s *b; b->j = 5; 5314 } 5315 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5316 const int foo = 10; 5317 } 5318#endif 5319 5320 ; 5321 return 0; 5322} 5323_ACEOF 5324rm -f conftest.$ac_objext 5325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5326 (eval $ac_compile) 2>conftest.er1 5327 ac_status=$? 5328 grep -v '^ *+' conftest.er1 >conftest.err 5329 rm -f conftest.er1 5330 cat conftest.err >&5 5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5332 (exit $ac_status); } && 5333 { ac_try='test -z "$ac_c_werror_flag" 5334 || test ! -s conftest.err' 5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5336 (eval $ac_try) 2>&5 5337 ac_status=$? 5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5339 (exit $ac_status); }; } && 5340 { ac_try='test -s conftest.$ac_objext' 5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5342 (eval $ac_try) 2>&5 5343 ac_status=$? 5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5345 (exit $ac_status); }; }; then 5346 ac_cv_c_const=yes 5347else 5348 echo "$as_me: failed program was:" >&5 5349sed 's/^/| /' conftest.$ac_ext >&5 5350 5351ac_cv_c_const=no 5352fi 5353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5354fi 5355echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5356echo "${ECHO_T}$ac_cv_c_const" >&6 5357if test $ac_cv_c_const = no; then 5358 5359cat >>confdefs.h <<\_ACEOF 5360#define const 5361_ACEOF 5362 5363fi 5364 5365echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 5366echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 5367if test "${ac_cv_type_uid_t+set}" = set; then 5368 echo $ECHO_N "(cached) $ECHO_C" >&6 5369else 5370 cat >conftest.$ac_ext <<_ACEOF 5371/* confdefs.h. */ 5372_ACEOF 5373cat confdefs.h >>conftest.$ac_ext 5374cat >>conftest.$ac_ext <<_ACEOF 5375/* end confdefs.h. */ 5376#include <sys/types.h> 5377 5378_ACEOF 5379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5380 $EGREP "uid_t" >/dev/null 2>&1; then 5381 ac_cv_type_uid_t=yes 5382else 5383 ac_cv_type_uid_t=no 5384fi 5385rm -f conftest* 5386 5387fi 5388echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 5389echo "${ECHO_T}$ac_cv_type_uid_t" >&6 5390if test $ac_cv_type_uid_t = no; then 5391 5392cat >>confdefs.h <<\_ACEOF 5393#define uid_t int 5394_ACEOF 5395 5396 5397cat >>confdefs.h <<\_ACEOF 5398#define gid_t int 5399_ACEOF 5400 5401fi 5402 5403echo "$as_me:$LINENO: checking for mode_t" >&5 5404echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 5405if test "${ac_cv_type_mode_t+set}" = set; then 5406 echo $ECHO_N "(cached) $ECHO_C" >&6 5407else 5408 cat >conftest.$ac_ext <<_ACEOF 5409/* confdefs.h. */ 5410_ACEOF 5411cat confdefs.h >>conftest.$ac_ext 5412cat >>conftest.$ac_ext <<_ACEOF 5413/* end confdefs.h. */ 5414$ac_includes_default 5415int 5416main () 5417{ 5418if ((mode_t *) 0) 5419 return 0; 5420if (sizeof (mode_t)) 5421 return 0; 5422 ; 5423 return 0; 5424} 5425_ACEOF 5426rm -f conftest.$ac_objext 5427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5428 (eval $ac_compile) 2>conftest.er1 5429 ac_status=$? 5430 grep -v '^ *+' conftest.er1 >conftest.err 5431 rm -f conftest.er1 5432 cat conftest.err >&5 5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5434 (exit $ac_status); } && 5435 { ac_try='test -z "$ac_c_werror_flag" 5436 || test ! -s conftest.err' 5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5438 (eval $ac_try) 2>&5 5439 ac_status=$? 5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5441 (exit $ac_status); }; } && 5442 { ac_try='test -s conftest.$ac_objext' 5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5444 (eval $ac_try) 2>&5 5445 ac_status=$? 5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5447 (exit $ac_status); }; }; then 5448 ac_cv_type_mode_t=yes 5449else 5450 echo "$as_me: failed program was:" >&5 5451sed 's/^/| /' conftest.$ac_ext >&5 5452 5453ac_cv_type_mode_t=no 5454fi 5455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5456fi 5457echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 5458echo "${ECHO_T}$ac_cv_type_mode_t" >&6 5459if test $ac_cv_type_mode_t = yes; then 5460 : 5461else 5462 5463cat >>confdefs.h <<_ACEOF 5464#define mode_t int 5465_ACEOF 5466 5467fi 5468 5469echo "$as_me:$LINENO: checking for pid_t" >&5 5470echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 5471if test "${ac_cv_type_pid_t+set}" = set; then 5472 echo $ECHO_N "(cached) $ECHO_C" >&6 5473else 5474 cat >conftest.$ac_ext <<_ACEOF 5475/* confdefs.h. */ 5476_ACEOF 5477cat confdefs.h >>conftest.$ac_ext 5478cat >>conftest.$ac_ext <<_ACEOF 5479/* end confdefs.h. */ 5480$ac_includes_default 5481int 5482main () 5483{ 5484if ((pid_t *) 0) 5485 return 0; 5486if (sizeof (pid_t)) 5487 return 0; 5488 ; 5489 return 0; 5490} 5491_ACEOF 5492rm -f conftest.$ac_objext 5493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5494 (eval $ac_compile) 2>conftest.er1 5495 ac_status=$? 5496 grep -v '^ *+' conftest.er1 >conftest.err 5497 rm -f conftest.er1 5498 cat conftest.err >&5 5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5500 (exit $ac_status); } && 5501 { ac_try='test -z "$ac_c_werror_flag" 5502 || test ! -s conftest.err' 5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5504 (eval $ac_try) 2>&5 5505 ac_status=$? 5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5507 (exit $ac_status); }; } && 5508 { ac_try='test -s conftest.$ac_objext' 5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5510 (eval $ac_try) 2>&5 5511 ac_status=$? 5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5513 (exit $ac_status); }; }; then 5514 ac_cv_type_pid_t=yes 5515else 5516 echo "$as_me: failed program was:" >&5 5517sed 's/^/| /' conftest.$ac_ext >&5 5518 5519ac_cv_type_pid_t=no 5520fi 5521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5522fi 5523echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 5524echo "${ECHO_T}$ac_cv_type_pid_t" >&6 5525if test $ac_cv_type_pid_t = yes; then 5526 : 5527else 5528 5529cat >>confdefs.h <<_ACEOF 5530#define pid_t int 5531_ACEOF 5532 5533fi 5534 5535echo "$as_me:$LINENO: checking for size_t" >&5 5536echo $ECHO_N "checking for size_t... $ECHO_C" >&6 5537if test "${ac_cv_type_size_t+set}" = set; then 5538 echo $ECHO_N "(cached) $ECHO_C" >&6 5539else 5540 cat >conftest.$ac_ext <<_ACEOF 5541/* confdefs.h. */ 5542_ACEOF 5543cat confdefs.h >>conftest.$ac_ext 5544cat >>conftest.$ac_ext <<_ACEOF 5545/* end confdefs.h. */ 5546$ac_includes_default 5547int 5548main () 5549{ 5550if ((size_t *) 0) 5551 return 0; 5552if (sizeof (size_t)) 5553 return 0; 5554 ; 5555 return 0; 5556} 5557_ACEOF 5558rm -f conftest.$ac_objext 5559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5560 (eval $ac_compile) 2>conftest.er1 5561 ac_status=$? 5562 grep -v '^ *+' conftest.er1 >conftest.err 5563 rm -f conftest.er1 5564 cat conftest.err >&5 5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5566 (exit $ac_status); } && 5567 { ac_try='test -z "$ac_c_werror_flag" 5568 || test ! -s conftest.err' 5569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5570 (eval $ac_try) 2>&5 5571 ac_status=$? 5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5573 (exit $ac_status); }; } && 5574 { ac_try='test -s conftest.$ac_objext' 5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5576 (eval $ac_try) 2>&5 5577 ac_status=$? 5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5579 (exit $ac_status); }; }; then 5580 ac_cv_type_size_t=yes 5581else 5582 echo "$as_me: failed program was:" >&5 5583sed 's/^/| /' conftest.$ac_ext >&5 5584 5585ac_cv_type_size_t=no 5586fi 5587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5588fi 5589echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 5590echo "${ECHO_T}$ac_cv_type_size_t" >&6 5591if test $ac_cv_type_size_t = yes; then 5592 : 5593else 5594 5595cat >>confdefs.h <<_ACEOF 5596#define size_t unsigned 5597_ACEOF 5598 5599fi 5600 5601echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 5602echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 5603if test "${ac_cv_header_time+set}" = set; then 5604 echo $ECHO_N "(cached) $ECHO_C" >&6 5605else 5606 cat >conftest.$ac_ext <<_ACEOF 5607/* confdefs.h. */ 5608_ACEOF 5609cat confdefs.h >>conftest.$ac_ext 5610cat >>conftest.$ac_ext <<_ACEOF 5611/* end confdefs.h. */ 5612#include <sys/types.h> 5613#include <sys/time.h> 5614#include <time.h> 5615 5616int 5617main () 5618{ 5619if ((struct tm *) 0) 5620return 0; 5621 ; 5622 return 0; 5623} 5624_ACEOF 5625rm -f conftest.$ac_objext 5626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5627 (eval $ac_compile) 2>conftest.er1 5628 ac_status=$? 5629 grep -v '^ *+' conftest.er1 >conftest.err 5630 rm -f conftest.er1 5631 cat conftest.err >&5 5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5633 (exit $ac_status); } && 5634 { ac_try='test -z "$ac_c_werror_flag" 5635 || test ! -s conftest.err' 5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5637 (eval $ac_try) 2>&5 5638 ac_status=$? 5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5640 (exit $ac_status); }; } && 5641 { ac_try='test -s conftest.$ac_objext' 5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5643 (eval $ac_try) 2>&5 5644 ac_status=$? 5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5646 (exit $ac_status); }; }; then 5647 ac_cv_header_time=yes 5648else 5649 echo "$as_me: failed program was:" >&5 5650sed 's/^/| /' conftest.$ac_ext >&5 5651 5652ac_cv_header_time=no 5653fi 5654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5655fi 5656echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 5657echo "${ECHO_T}$ac_cv_header_time" >&6 5658if test $ac_cv_header_time = yes; then 5659 5660cat >>confdefs.h <<\_ACEOF 5661#define TIME_WITH_SYS_TIME 1 5662_ACEOF 5663 5664fi 5665 5666 5667echo "$as_me:$LINENO: checking for uint16_t" >&5 5668echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 5669if test "${ac_cv_type_uint16_t+set}" = set; then 5670 echo $ECHO_N "(cached) $ECHO_C" >&6 5671else 5672 cat >conftest.$ac_ext <<_ACEOF 5673/* confdefs.h. */ 5674_ACEOF 5675cat confdefs.h >>conftest.$ac_ext 5676cat >>conftest.$ac_ext <<_ACEOF 5677/* end confdefs.h. */ 5678$ac_includes_default 5679int 5680main () 5681{ 5682if ((uint16_t *) 0) 5683 return 0; 5684if (sizeof (uint16_t)) 5685 return 0; 5686 ; 5687 return 0; 5688} 5689_ACEOF 5690rm -f conftest.$ac_objext 5691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5692 (eval $ac_compile) 2>conftest.er1 5693 ac_status=$? 5694 grep -v '^ *+' conftest.er1 >conftest.err 5695 rm -f conftest.er1 5696 cat conftest.err >&5 5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5698 (exit $ac_status); } && 5699 { ac_try='test -z "$ac_c_werror_flag" 5700 || test ! -s conftest.err' 5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5702 (eval $ac_try) 2>&5 5703 ac_status=$? 5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5705 (exit $ac_status); }; } && 5706 { ac_try='test -s conftest.$ac_objext' 5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5708 (eval $ac_try) 2>&5 5709 ac_status=$? 5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5711 (exit $ac_status); }; }; then 5712 ac_cv_type_uint16_t=yes 5713else 5714 echo "$as_me: failed program was:" >&5 5715sed 's/^/| /' conftest.$ac_ext >&5 5716 5717ac_cv_type_uint16_t=no 5718fi 5719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5720fi 5721echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 5722echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 5723if test $ac_cv_type_uint16_t = yes; then 5724 5725cat >>confdefs.h <<_ACEOF 5726#define HAVE_UINT16_T 1 5727_ACEOF 5728 5729 5730fi 5731echo "$as_me:$LINENO: checking for u_int16_t" >&5 5732echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 5733if test "${ac_cv_type_u_int16_t+set}" = set; then 5734 echo $ECHO_N "(cached) $ECHO_C" >&6 5735else 5736 cat >conftest.$ac_ext <<_ACEOF 5737/* confdefs.h. */ 5738_ACEOF 5739cat confdefs.h >>conftest.$ac_ext 5740cat >>conftest.$ac_ext <<_ACEOF 5741/* end confdefs.h. */ 5742$ac_includes_default 5743int 5744main () 5745{ 5746if ((u_int16_t *) 0) 5747 return 0; 5748if (sizeof (u_int16_t)) 5749 return 0; 5750 ; 5751 return 0; 5752} 5753_ACEOF 5754rm -f conftest.$ac_objext 5755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5756 (eval $ac_compile) 2>conftest.er1 5757 ac_status=$? 5758 grep -v '^ *+' conftest.er1 >conftest.err 5759 rm -f conftest.er1 5760 cat conftest.err >&5 5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5762 (exit $ac_status); } && 5763 { ac_try='test -z "$ac_c_werror_flag" 5764 || test ! -s conftest.err' 5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5766 (eval $ac_try) 2>&5 5767 ac_status=$? 5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5769 (exit $ac_status); }; } && 5770 { ac_try='test -s conftest.$ac_objext' 5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5772 (eval $ac_try) 2>&5 5773 ac_status=$? 5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5775 (exit $ac_status); }; }; then 5776 ac_cv_type_u_int16_t=yes 5777else 5778 echo "$as_me: failed program was:" >&5 5779sed 's/^/| /' conftest.$ac_ext >&5 5780 5781ac_cv_type_u_int16_t=no 5782fi 5783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5784fi 5785echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 5786echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 5787if test $ac_cv_type_u_int16_t = yes; then 5788 5789cat >>confdefs.h <<_ACEOF 5790#define HAVE_U_INT16_T 1 5791_ACEOF 5792 5793 5794fi 5795echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 5796echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 5797if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then 5798 echo $ECHO_N "(cached) $ECHO_C" >&6 5799else 5800 cat >conftest.$ac_ext <<_ACEOF 5801/* confdefs.h. */ 5802_ACEOF 5803cat confdefs.h >>conftest.$ac_ext 5804cat >>conftest.$ac_ext <<_ACEOF 5805/* end confdefs.h. */ 5806$ac_includes_default 5807int 5808main () 5809{ 5810if ((struct sockaddr_storage *) 0) 5811 return 0; 5812if (sizeof (struct sockaddr_storage)) 5813 return 0; 5814 ; 5815 return 0; 5816} 5817_ACEOF 5818rm -f conftest.$ac_objext 5819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5820 (eval $ac_compile) 2>conftest.er1 5821 ac_status=$? 5822 grep -v '^ *+' conftest.er1 >conftest.err 5823 rm -f conftest.er1 5824 cat conftest.err >&5 5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5826 (exit $ac_status); } && 5827 { ac_try='test -z "$ac_c_werror_flag" 5828 || test ! -s conftest.err' 5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5830 (eval $ac_try) 2>&5 5831 ac_status=$? 5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5833 (exit $ac_status); }; } && 5834 { ac_try='test -s conftest.$ac_objext' 5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5836 (eval $ac_try) 2>&5 5837 ac_status=$? 5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5839 (exit $ac_status); }; }; then 5840 ac_cv_type_struct_sockaddr_storage=yes 5841else 5842 echo "$as_me: failed program was:" >&5 5843sed 's/^/| /' conftest.$ac_ext >&5 5844 5845ac_cv_type_struct_sockaddr_storage=no 5846fi 5847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5848fi 5849echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5 5850echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6 5851if test $ac_cv_type_struct_sockaddr_storage = yes; then 5852 5853cat >>confdefs.h <<_ACEOF 5854#define HAVE_STRUCT_SOCKADDR_STORAGE 1 5855_ACEOF 5856 5857 5858fi 5859 5860echo "$as_me:$LINENO: checking for socklen_t" >&5 5861echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 5862if test "${ac_cv_type_socklen_t+set}" = set; then 5863 echo $ECHO_N "(cached) $ECHO_C" >&6 5864else 5865 cat >conftest.$ac_ext <<_ACEOF 5866/* confdefs.h. */ 5867_ACEOF 5868cat confdefs.h >>conftest.$ac_ext 5869cat >>conftest.$ac_ext <<_ACEOF 5870/* end confdefs.h. */ 5871#include <sys/types.h> 5872 #include <sys/socket.h> 5873 5874int 5875main () 5876{ 5877if ((socklen_t *) 0) 5878 return 0; 5879if (sizeof (socklen_t)) 5880 return 0; 5881 ; 5882 return 0; 5883} 5884_ACEOF 5885rm -f conftest.$ac_objext 5886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5887 (eval $ac_compile) 2>conftest.er1 5888 ac_status=$? 5889 grep -v '^ *+' conftest.er1 >conftest.err 5890 rm -f conftest.er1 5891 cat conftest.err >&5 5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5893 (exit $ac_status); } && 5894 { ac_try='test -z "$ac_c_werror_flag" 5895 || test ! -s conftest.err' 5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5897 (eval $ac_try) 2>&5 5898 ac_status=$? 5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5900 (exit $ac_status); }; } && 5901 { ac_try='test -s conftest.$ac_objext' 5902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5903 (eval $ac_try) 2>&5 5904 ac_status=$? 5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5906 (exit $ac_status); }; }; then 5907 ac_cv_type_socklen_t=yes 5908else 5909 echo "$as_me: failed program was:" >&5 5910sed 's/^/| /' conftest.$ac_ext >&5 5911 5912ac_cv_type_socklen_t=no 5913fi 5914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5915fi 5916echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 5917echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 5918if test $ac_cv_type_socklen_t = yes; then 5919 : 5920else 5921 5922 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 5923echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 5924 if test "${curl_cv_socklen_t_equiv+set}" = set; then 5925 echo $ECHO_N "(cached) $ECHO_C" >&6 5926else 5927 5928 # Systems have either "struct sockaddr *" or 5929 # "void *" as the second argument to getpeername 5930 curl_cv_socklen_t_equiv= 5931 for arg2 in "struct sockaddr" void; do 5932 for t in int size_t unsigned long "unsigned long"; do 5933 cat >conftest.$ac_ext <<_ACEOF 5934/* confdefs.h. */ 5935_ACEOF 5936cat confdefs.h >>conftest.$ac_ext 5937cat >>conftest.$ac_ext <<_ACEOF 5938/* end confdefs.h. */ 5939 5940 #include <sys/types.h> 5941 #include <sys/socket.h> 5942 5943 int getpeername (int, $arg2 *, $t *); 5944 5945int 5946main () 5947{ 5948 5949 $t len; 5950 getpeername(0,0,&len); 5951 5952 ; 5953 return 0; 5954} 5955_ACEOF 5956rm -f conftest.$ac_objext 5957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5958 (eval $ac_compile) 2>conftest.er1 5959 ac_status=$? 5960 grep -v '^ *+' conftest.er1 >conftest.err 5961 rm -f conftest.er1 5962 cat conftest.err >&5 5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5964 (exit $ac_status); } && 5965 { ac_try='test -z "$ac_c_werror_flag" 5966 || test ! -s conftest.err' 5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5968 (eval $ac_try) 2>&5 5969 ac_status=$? 5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5971 (exit $ac_status); }; } && 5972 { ac_try='test -s conftest.$ac_objext' 5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5974 (eval $ac_try) 2>&5 5975 ac_status=$? 5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5977 (exit $ac_status); }; }; then 5978 5979 curl_cv_socklen_t_equiv="$t" 5980 break 5981 5982else 5983 echo "$as_me: failed program was:" >&5 5984sed 's/^/| /' conftest.$ac_ext >&5 5985 5986fi 5987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5988 done 5989 done 5990 5991 if test "x$curl_cv_socklen_t_equiv" = x; then 5992 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 5993echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} 5994 { (exit 1); exit 1; }; } 5995 fi 5996 5997fi 5998 5999 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 6000echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 6001 6002cat >>confdefs.h <<_ACEOF 6003#define socklen_t $curl_cv_socklen_t_equiv 6004_ACEOF 6005 6006fi 6007 6008 6009# for the fake-rfc2553 stuff - straight from OpenSSH 6010 6011echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 6012echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 6013if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then 6014 echo $ECHO_N "(cached) $ECHO_C" >&6 6015else 6016 6017 cat >conftest.$ac_ext <<_ACEOF 6018/* confdefs.h. */ 6019_ACEOF 6020cat confdefs.h >>conftest.$ac_ext 6021cat >>conftest.$ac_ext <<_ACEOF 6022/* end confdefs.h. */ 6023 6024#include <sys/types.h> 6025#include <sys/socket.h> 6026 6027int 6028main () 6029{ 6030 struct sockaddr_storage s; 6031 ; 6032 return 0; 6033} 6034_ACEOF 6035rm -f conftest.$ac_objext 6036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6037 (eval $ac_compile) 2>conftest.er1 6038 ac_status=$? 6039 grep -v '^ *+' conftest.er1 >conftest.err 6040 rm -f conftest.er1 6041 cat conftest.err >&5 6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6043 (exit $ac_status); } && 6044 { ac_try='test -z "$ac_c_werror_flag" 6045 || test ! -s conftest.err' 6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6047 (eval $ac_try) 2>&5 6048 ac_status=$? 6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6050 (exit $ac_status); }; } && 6051 { ac_try='test -s conftest.$ac_objext' 6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6053 (eval $ac_try) 2>&5 6054 ac_status=$? 6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6056 (exit $ac_status); }; }; then 6057 ac_cv_have_struct_sockaddr_storage="yes" 6058else 6059 echo "$as_me: failed program was:" >&5 6060sed 's/^/| /' conftest.$ac_ext >&5 6061 6062 ac_cv_have_struct_sockaddr_storage="no" 6063 6064fi 6065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6066 6067fi 6068echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 6069echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 6070if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then 6071 cat >>confdefs.h <<\_ACEOF 6072#define HAVE_STRUCT_SOCKADDR_STORAGE 1 6073_ACEOF 6074 6075fi 6076 6077echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 6078echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 6079if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then 6080 echo $ECHO_N "(cached) $ECHO_C" >&6 6081else 6082 6083 cat >conftest.$ac_ext <<_ACEOF 6084/* confdefs.h. */ 6085_ACEOF 6086cat confdefs.h >>conftest.$ac_ext 6087cat >>conftest.$ac_ext <<_ACEOF 6088/* end confdefs.h. */ 6089 6090#include <sys/types.h> 6091#include <netinet/in.h> 6092 6093int 6094main () 6095{ 6096 struct sockaddr_in6 s; s.sin6_family = 0; 6097 ; 6098 return 0; 6099} 6100_ACEOF 6101rm -f conftest.$ac_objext 6102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6103 (eval $ac_compile) 2>conftest.er1 6104 ac_status=$? 6105 grep -v '^ *+' conftest.er1 >conftest.err 6106 rm -f conftest.er1 6107 cat conftest.err >&5 6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6109 (exit $ac_status); } && 6110 { ac_try='test -z "$ac_c_werror_flag" 6111 || test ! -s conftest.err' 6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6113 (eval $ac_try) 2>&5 6114 ac_status=$? 6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6116 (exit $ac_status); }; } && 6117 { ac_try='test -s conftest.$ac_objext' 6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6119 (eval $ac_try) 2>&5 6120 ac_status=$? 6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6122 (exit $ac_status); }; }; then 6123 ac_cv_have_struct_sockaddr_in6="yes" 6124else 6125 echo "$as_me: failed program was:" >&5 6126sed 's/^/| /' conftest.$ac_ext >&5 6127 6128 ac_cv_have_struct_sockaddr_in6="no" 6129 6130fi 6131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6132 6133fi 6134echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 6135echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 6136if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then 6137 6138cat >>confdefs.h <<\_ACEOF 6139#define HAVE_STRUCT_SOCKADDR_IN6 6140_ACEOF 6141 6142fi 6143 6144echo "$as_me:$LINENO: checking for struct in6_addr" >&5 6145echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 6146if test "${ac_cv_have_struct_in6_addr+set}" = set; then 6147 echo $ECHO_N "(cached) $ECHO_C" >&6 6148else 6149 6150 cat >conftest.$ac_ext <<_ACEOF 6151/* confdefs.h. */ 6152_ACEOF 6153cat confdefs.h >>conftest.$ac_ext 6154cat >>conftest.$ac_ext <<_ACEOF 6155/* end confdefs.h. */ 6156 6157#include <sys/types.h> 6158#include <netinet/in.h> 6159 6160int 6161main () 6162{ 6163 struct in6_addr s; s.s6_addr[0] = 0; 6164 ; 6165 return 0; 6166} 6167_ACEOF 6168rm -f conftest.$ac_objext 6169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6170 (eval $ac_compile) 2>conftest.er1 6171 ac_status=$? 6172 grep -v '^ *+' conftest.er1 >conftest.err 6173 rm -f conftest.er1 6174 cat conftest.err >&5 6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6176 (exit $ac_status); } && 6177 { ac_try='test -z "$ac_c_werror_flag" 6178 || test ! -s conftest.err' 6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6180 (eval $ac_try) 2>&5 6181 ac_status=$? 6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6183 (exit $ac_status); }; } && 6184 { ac_try='test -s conftest.$ac_objext' 6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6186 (eval $ac_try) 2>&5 6187 ac_status=$? 6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6189 (exit $ac_status); }; }; then 6190 ac_cv_have_struct_in6_addr="yes" 6191else 6192 echo "$as_me: failed program was:" >&5 6193sed 's/^/| /' conftest.$ac_ext >&5 6194 6195 ac_cv_have_struct_in6_addr="no" 6196 6197fi 6198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6199 6200fi 6201echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 6202echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 6203if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then 6204 6205cat >>confdefs.h <<\_ACEOF 6206#define HAVE_STRUCT_IN6_ADDR 6207_ACEOF 6208 6209fi 6210 6211echo "$as_me:$LINENO: checking for struct addrinfo" >&5 6212echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 6213if test "${ac_cv_have_struct_addrinfo+set}" = set; then 6214 echo $ECHO_N "(cached) $ECHO_C" >&6 6215else 6216 6217 cat >conftest.$ac_ext <<_ACEOF 6218/* confdefs.h. */ 6219_ACEOF 6220cat confdefs.h >>conftest.$ac_ext 6221cat >>conftest.$ac_ext <<_ACEOF 6222/* end confdefs.h. */ 6223 6224#include <sys/types.h> 6225#include <sys/socket.h> 6226#include <netdb.h> 6227 6228int 6229main () 6230{ 6231 struct addrinfo s; s.ai_flags = AI_PASSIVE; 6232 ; 6233 return 0; 6234} 6235_ACEOF 6236rm -f conftest.$ac_objext 6237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6238 (eval $ac_compile) 2>conftest.er1 6239 ac_status=$? 6240 grep -v '^ *+' conftest.er1 >conftest.err 6241 rm -f conftest.er1 6242 cat conftest.err >&5 6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6244 (exit $ac_status); } && 6245 { ac_try='test -z "$ac_c_werror_flag" 6246 || test ! -s conftest.err' 6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6248 (eval $ac_try) 2>&5 6249 ac_status=$? 6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6251 (exit $ac_status); }; } && 6252 { ac_try='test -s conftest.$ac_objext' 6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6254 (eval $ac_try) 2>&5 6255 ac_status=$? 6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6257 (exit $ac_status); }; }; then 6258 ac_cv_have_struct_addrinfo="yes" 6259else 6260 echo "$as_me: failed program was:" >&5 6261sed 's/^/| /' conftest.$ac_ext >&5 6262 6263 ac_cv_have_struct_addrinfo="no" 6264 6265fi 6266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6267 6268fi 6269echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 6270echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 6271if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then 6272 6273cat >>confdefs.h <<\_ACEOF 6274#define HAVE_STRUCT_ADDRINFO 6275_ACEOF 6276 6277fi 6278 6279 6280# IRIX has a const char return value for gai_strerror() 6281 6282for ac_func in gai_strerror 6283do 6284as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6285echo "$as_me:$LINENO: checking for $ac_func" >&5 6286echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6287if eval "test \"\${$as_ac_var+set}\" = set"; then 6288 echo $ECHO_N "(cached) $ECHO_C" >&6 6289else 6290 cat >conftest.$ac_ext <<_ACEOF 6291/* confdefs.h. */ 6292_ACEOF 6293cat confdefs.h >>conftest.$ac_ext 6294cat >>conftest.$ac_ext <<_ACEOF 6295/* end confdefs.h. */ 6296/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6297 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6298#define $ac_func innocuous_$ac_func 6299 6300/* System header to define __stub macros and hopefully few prototypes, 6301 which can conflict with char $ac_func (); below. 6302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6303 <limits.h> exists even on freestanding compilers. */ 6304 6305#ifdef __STDC__ 6306# include <limits.h> 6307#else 6308# include <assert.h> 6309#endif 6310 6311#undef $ac_func 6312 6313/* Override any gcc2 internal prototype to avoid an error. */ 6314#ifdef __cplusplus 6315extern "C" 6316{ 6317#endif 6318/* We use char because int might match the return type of a gcc2 6319 builtin and then its argument prototype would still apply. */ 6320char $ac_func (); 6321/* The GNU C library defines this for functions which it implements 6322 to always fail with ENOSYS. Some functions are actually named 6323 something starting with __ and the normal name is an alias. */ 6324#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6325choke me 6326#else 6327char (*f) () = $ac_func; 6328#endif 6329#ifdef __cplusplus 6330} 6331#endif 6332 6333int 6334main () 6335{ 6336return f != $ac_func; 6337 ; 6338 return 0; 6339} 6340_ACEOF 6341rm -f conftest.$ac_objext conftest$ac_exeext 6342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6343 (eval $ac_link) 2>conftest.er1 6344 ac_status=$? 6345 grep -v '^ *+' conftest.er1 >conftest.err 6346 rm -f conftest.er1 6347 cat conftest.err >&5 6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6349 (exit $ac_status); } && 6350 { ac_try='test -z "$ac_c_werror_flag" 6351 || test ! -s conftest.err' 6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6353 (eval $ac_try) 2>&5 6354 ac_status=$? 6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6356 (exit $ac_status); }; } && 6357 { ac_try='test -s conftest$ac_exeext' 6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6359 (eval $ac_try) 2>&5 6360 ac_status=$? 6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6362 (exit $ac_status); }; }; then 6363 eval "$as_ac_var=yes" 6364else 6365 echo "$as_me: failed program was:" >&5 6366sed 's/^/| /' conftest.$ac_ext >&5 6367 6368eval "$as_ac_var=no" 6369fi 6370rm -f conftest.err conftest.$ac_objext \ 6371 conftest$ac_exeext conftest.$ac_ext 6372fi 6373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6374echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6375if test `eval echo '${'$as_ac_var'}'` = yes; then 6376 cat >>confdefs.h <<_ACEOF 6377#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6378_ACEOF 6379 6380 cat >>confdefs.h <<\_ACEOF 6381#define HAVE_GAI_STRERROR 1 6382_ACEOF 6383 6384 cat >conftest.$ac_ext <<_ACEOF 6385/* confdefs.h. */ 6386_ACEOF 6387cat confdefs.h >>conftest.$ac_ext 6388cat >>conftest.$ac_ext <<_ACEOF 6389/* end confdefs.h. */ 6390 6391#include <sys/types.h> 6392#include <sys/socket.h> 6393#include <netdb.h> 6394 6395const char *gai_strerror(int); 6396int 6397main () 6398{ 6399 6400char *str; 6401 6402str = gai_strerror(0); 6403 ; 6404 return 0; 6405} 6406_ACEOF 6407rm -f conftest.$ac_objext 6408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6409 (eval $ac_compile) 2>conftest.er1 6410 ac_status=$? 6411 grep -v '^ *+' conftest.er1 >conftest.err 6412 rm -f conftest.er1 6413 cat conftest.err >&5 6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6415 (exit $ac_status); } && 6416 { ac_try='test -z "$ac_c_werror_flag" 6417 || test ! -s conftest.err' 6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6419 (eval $ac_try) 2>&5 6420 ac_status=$? 6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6422 (exit $ac_status); }; } && 6423 { ac_try='test -s conftest.$ac_objext' 6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6425 (eval $ac_try) 2>&5 6426 ac_status=$? 6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6428 (exit $ac_status); }; }; then 6429 6430 6431cat >>confdefs.h <<\_ACEOF 6432#define HAVE_CONST_GAI_STRERROR_PROTO 1 6433_ACEOF 6434 6435else 6436 echo "$as_me: failed program was:" >&5 6437sed 's/^/| /' conftest.$ac_ext >&5 6438 6439fi 6440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6441fi 6442done 6443 6444 6445# for loginrec.c 6446 6447echo "$as_me:$LINENO: checking for struct utmp.ut_host" >&5 6448echo $ECHO_N "checking for struct utmp.ut_host... $ECHO_C" >&6 6449if test "${ac_cv_member_struct_utmp_ut_host+set}" = set; then 6450 echo $ECHO_N "(cached) $ECHO_C" >&6 6451else 6452 cat >conftest.$ac_ext <<_ACEOF 6453/* confdefs.h. */ 6454_ACEOF 6455cat confdefs.h >>conftest.$ac_ext 6456cat >>conftest.$ac_ext <<_ACEOF 6457/* end confdefs.h. */ 6458 6459#include <sys/types.h> 6460#if HAVE_UTMP_H 6461#include <utmp.h> 6462#endif 6463 6464 6465int 6466main () 6467{ 6468static struct utmp ac_aggr; 6469if (ac_aggr.ut_host) 6470return 0; 6471 ; 6472 return 0; 6473} 6474_ACEOF 6475rm -f conftest.$ac_objext 6476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6477 (eval $ac_compile) 2>conftest.er1 6478 ac_status=$? 6479 grep -v '^ *+' conftest.er1 >conftest.err 6480 rm -f conftest.er1 6481 cat conftest.err >&5 6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6483 (exit $ac_status); } && 6484 { ac_try='test -z "$ac_c_werror_flag" 6485 || test ! -s conftest.err' 6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6487 (eval $ac_try) 2>&5 6488 ac_status=$? 6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6490 (exit $ac_status); }; } && 6491 { ac_try='test -s conftest.$ac_objext' 6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6493 (eval $ac_try) 2>&5 6494 ac_status=$? 6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6496 (exit $ac_status); }; }; then 6497 ac_cv_member_struct_utmp_ut_host=yes 6498else 6499 echo "$as_me: failed program was:" >&5 6500sed 's/^/| /' conftest.$ac_ext >&5 6501 6502cat >conftest.$ac_ext <<_ACEOF 6503/* confdefs.h. */ 6504_ACEOF 6505cat confdefs.h >>conftest.$ac_ext 6506cat >>conftest.$ac_ext <<_ACEOF 6507/* end confdefs.h. */ 6508 6509#include <sys/types.h> 6510#if HAVE_UTMP_H 6511#include <utmp.h> 6512#endif 6513 6514 6515int 6516main () 6517{ 6518static struct utmp ac_aggr; 6519if (sizeof ac_aggr.ut_host) 6520return 0; 6521 ; 6522 return 0; 6523} 6524_ACEOF 6525rm -f conftest.$ac_objext 6526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6527 (eval $ac_compile) 2>conftest.er1 6528 ac_status=$? 6529 grep -v '^ *+' conftest.er1 >conftest.err 6530 rm -f conftest.er1 6531 cat conftest.err >&5 6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6533 (exit $ac_status); } && 6534 { ac_try='test -z "$ac_c_werror_flag" 6535 || test ! -s conftest.err' 6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6537 (eval $ac_try) 2>&5 6538 ac_status=$? 6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6540 (exit $ac_status); }; } && 6541 { ac_try='test -s conftest.$ac_objext' 6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6543 (eval $ac_try) 2>&5 6544 ac_status=$? 6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6546 (exit $ac_status); }; }; then 6547 ac_cv_member_struct_utmp_ut_host=yes 6548else 6549 echo "$as_me: failed program was:" >&5 6550sed 's/^/| /' conftest.$ac_ext >&5 6551 6552ac_cv_member_struct_utmp_ut_host=no 6553fi 6554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6555fi 6556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6557fi 6558echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_host" >&5 6559echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_host" >&6 6560if test $ac_cv_member_struct_utmp_ut_host = yes; then 6561 6562cat >>confdefs.h <<_ACEOF 6563#define HAVE_STRUCT_UTMP_UT_HOST 1 6564_ACEOF 6565 6566 6567fi 6568echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5 6569echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6 6570if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then 6571 echo $ECHO_N "(cached) $ECHO_C" >&6 6572else 6573 cat >conftest.$ac_ext <<_ACEOF 6574/* confdefs.h. */ 6575_ACEOF 6576cat confdefs.h >>conftest.$ac_ext 6577cat >>conftest.$ac_ext <<_ACEOF 6578/* end confdefs.h. */ 6579 6580#include <sys/types.h> 6581#if HAVE_UTMP_H 6582#include <utmp.h> 6583#endif 6584 6585 6586int 6587main () 6588{ 6589static struct utmp ac_aggr; 6590if (ac_aggr.ut_pid) 6591return 0; 6592 ; 6593 return 0; 6594} 6595_ACEOF 6596rm -f conftest.$ac_objext 6597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6598 (eval $ac_compile) 2>conftest.er1 6599 ac_status=$? 6600 grep -v '^ *+' conftest.er1 >conftest.err 6601 rm -f conftest.er1 6602 cat conftest.err >&5 6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6604 (exit $ac_status); } && 6605 { ac_try='test -z "$ac_c_werror_flag" 6606 || test ! -s conftest.err' 6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6608 (eval $ac_try) 2>&5 6609 ac_status=$? 6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6611 (exit $ac_status); }; } && 6612 { ac_try='test -s conftest.$ac_objext' 6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6614 (eval $ac_try) 2>&5 6615 ac_status=$? 6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6617 (exit $ac_status); }; }; then 6618 ac_cv_member_struct_utmp_ut_pid=yes 6619else 6620 echo "$as_me: failed program was:" >&5 6621sed 's/^/| /' conftest.$ac_ext >&5 6622 6623cat >conftest.$ac_ext <<_ACEOF 6624/* confdefs.h. */ 6625_ACEOF 6626cat confdefs.h >>conftest.$ac_ext 6627cat >>conftest.$ac_ext <<_ACEOF 6628/* end confdefs.h. */ 6629 6630#include <sys/types.h> 6631#if HAVE_UTMP_H 6632#include <utmp.h> 6633#endif 6634 6635 6636int 6637main () 6638{ 6639static struct utmp ac_aggr; 6640if (sizeof ac_aggr.ut_pid) 6641return 0; 6642 ; 6643 return 0; 6644} 6645_ACEOF 6646rm -f conftest.$ac_objext 6647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6648 (eval $ac_compile) 2>conftest.er1 6649 ac_status=$? 6650 grep -v '^ *+' conftest.er1 >conftest.err 6651 rm -f conftest.er1 6652 cat conftest.err >&5 6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6654 (exit $ac_status); } && 6655 { ac_try='test -z "$ac_c_werror_flag" 6656 || test ! -s conftest.err' 6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6658 (eval $ac_try) 2>&5 6659 ac_status=$? 6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6661 (exit $ac_status); }; } && 6662 { ac_try='test -s conftest.$ac_objext' 6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6664 (eval $ac_try) 2>&5 6665 ac_status=$? 6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6667 (exit $ac_status); }; }; then 6668 ac_cv_member_struct_utmp_ut_pid=yes 6669else 6670 echo "$as_me: failed program was:" >&5 6671sed 's/^/| /' conftest.$ac_ext >&5 6672 6673ac_cv_member_struct_utmp_ut_pid=no 6674fi 6675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6676fi 6677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6678fi 6679echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5 6680echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6 6681if test $ac_cv_member_struct_utmp_ut_pid = yes; then 6682 6683cat >>confdefs.h <<_ACEOF 6684#define HAVE_STRUCT_UTMP_UT_PID 1 6685_ACEOF 6686 6687 6688fi 6689echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5 6690echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6 6691if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then 6692 echo $ECHO_N "(cached) $ECHO_C" >&6 6693else 6694 cat >conftest.$ac_ext <<_ACEOF 6695/* confdefs.h. */ 6696_ACEOF 6697cat confdefs.h >>conftest.$ac_ext 6698cat >>conftest.$ac_ext <<_ACEOF 6699/* end confdefs.h. */ 6700 6701#include <sys/types.h> 6702#if HAVE_UTMP_H 6703#include <utmp.h> 6704#endif 6705 6706 6707int 6708main () 6709{ 6710static struct utmp ac_aggr; 6711if (ac_aggr.ut_type) 6712return 0; 6713 ; 6714 return 0; 6715} 6716_ACEOF 6717rm -f conftest.$ac_objext 6718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6719 (eval $ac_compile) 2>conftest.er1 6720 ac_status=$? 6721 grep -v '^ *+' conftest.er1 >conftest.err 6722 rm -f conftest.er1 6723 cat conftest.err >&5 6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6725 (exit $ac_status); } && 6726 { ac_try='test -z "$ac_c_werror_flag" 6727 || test ! -s conftest.err' 6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6729 (eval $ac_try) 2>&5 6730 ac_status=$? 6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6732 (exit $ac_status); }; } && 6733 { ac_try='test -s conftest.$ac_objext' 6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6735 (eval $ac_try) 2>&5 6736 ac_status=$? 6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6738 (exit $ac_status); }; }; then 6739 ac_cv_member_struct_utmp_ut_type=yes 6740else 6741 echo "$as_me: failed program was:" >&5 6742sed 's/^/| /' conftest.$ac_ext >&5 6743 6744cat >conftest.$ac_ext <<_ACEOF 6745/* confdefs.h. */ 6746_ACEOF 6747cat confdefs.h >>conftest.$ac_ext 6748cat >>conftest.$ac_ext <<_ACEOF 6749/* end confdefs.h. */ 6750 6751#include <sys/types.h> 6752#if HAVE_UTMP_H 6753#include <utmp.h> 6754#endif 6755 6756 6757int 6758main () 6759{ 6760static struct utmp ac_aggr; 6761if (sizeof ac_aggr.ut_type) 6762return 0; 6763 ; 6764 return 0; 6765} 6766_ACEOF 6767rm -f conftest.$ac_objext 6768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6769 (eval $ac_compile) 2>conftest.er1 6770 ac_status=$? 6771 grep -v '^ *+' conftest.er1 >conftest.err 6772 rm -f conftest.er1 6773 cat conftest.err >&5 6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6775 (exit $ac_status); } && 6776 { ac_try='test -z "$ac_c_werror_flag" 6777 || test ! -s conftest.err' 6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6779 (eval $ac_try) 2>&5 6780 ac_status=$? 6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6782 (exit $ac_status); }; } && 6783 { ac_try='test -s conftest.$ac_objext' 6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6785 (eval $ac_try) 2>&5 6786 ac_status=$? 6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6788 (exit $ac_status); }; }; then 6789 ac_cv_member_struct_utmp_ut_type=yes 6790else 6791 echo "$as_me: failed program was:" >&5 6792sed 's/^/| /' conftest.$ac_ext >&5 6793 6794ac_cv_member_struct_utmp_ut_type=no 6795fi 6796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6797fi 6798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6799fi 6800echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5 6801echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6 6802if test $ac_cv_member_struct_utmp_ut_type = yes; then 6803 6804cat >>confdefs.h <<_ACEOF 6805#define HAVE_STRUCT_UTMP_UT_TYPE 1 6806_ACEOF 6807 6808 6809fi 6810echo "$as_me:$LINENO: checking for struct utmp.ut_tv" >&5 6811echo $ECHO_N "checking for struct utmp.ut_tv... $ECHO_C" >&6 6812if test "${ac_cv_member_struct_utmp_ut_tv+set}" = set; then 6813 echo $ECHO_N "(cached) $ECHO_C" >&6 6814else 6815 cat >conftest.$ac_ext <<_ACEOF 6816/* confdefs.h. */ 6817_ACEOF 6818cat confdefs.h >>conftest.$ac_ext 6819cat >>conftest.$ac_ext <<_ACEOF 6820/* end confdefs.h. */ 6821 6822#include <sys/types.h> 6823#if HAVE_UTMP_H 6824#include <utmp.h> 6825#endif 6826 6827 6828int 6829main () 6830{ 6831static struct utmp ac_aggr; 6832if (ac_aggr.ut_tv) 6833return 0; 6834 ; 6835 return 0; 6836} 6837_ACEOF 6838rm -f conftest.$ac_objext 6839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6840 (eval $ac_compile) 2>conftest.er1 6841 ac_status=$? 6842 grep -v '^ *+' conftest.er1 >conftest.err 6843 rm -f conftest.er1 6844 cat conftest.err >&5 6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6846 (exit $ac_status); } && 6847 { ac_try='test -z "$ac_c_werror_flag" 6848 || test ! -s conftest.err' 6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6850 (eval $ac_try) 2>&5 6851 ac_status=$? 6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6853 (exit $ac_status); }; } && 6854 { ac_try='test -s conftest.$ac_objext' 6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6856 (eval $ac_try) 2>&5 6857 ac_status=$? 6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6859 (exit $ac_status); }; }; then 6860 ac_cv_member_struct_utmp_ut_tv=yes 6861else 6862 echo "$as_me: failed program was:" >&5 6863sed 's/^/| /' conftest.$ac_ext >&5 6864 6865cat >conftest.$ac_ext <<_ACEOF 6866/* confdefs.h. */ 6867_ACEOF 6868cat confdefs.h >>conftest.$ac_ext 6869cat >>conftest.$ac_ext <<_ACEOF 6870/* end confdefs.h. */ 6871 6872#include <sys/types.h> 6873#if HAVE_UTMP_H 6874#include <utmp.h> 6875#endif 6876 6877 6878int 6879main () 6880{ 6881static struct utmp ac_aggr; 6882if (sizeof ac_aggr.ut_tv) 6883return 0; 6884 ; 6885 return 0; 6886} 6887_ACEOF 6888rm -f conftest.$ac_objext 6889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6890 (eval $ac_compile) 2>conftest.er1 6891 ac_status=$? 6892 grep -v '^ *+' conftest.er1 >conftest.err 6893 rm -f conftest.er1 6894 cat conftest.err >&5 6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6896 (exit $ac_status); } && 6897 { ac_try='test -z "$ac_c_werror_flag" 6898 || test ! -s conftest.err' 6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6900 (eval $ac_try) 2>&5 6901 ac_status=$? 6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6903 (exit $ac_status); }; } && 6904 { ac_try='test -s conftest.$ac_objext' 6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6906 (eval $ac_try) 2>&5 6907 ac_status=$? 6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6909 (exit $ac_status); }; }; then 6910 ac_cv_member_struct_utmp_ut_tv=yes 6911else 6912 echo "$as_me: failed program was:" >&5 6913sed 's/^/| /' conftest.$ac_ext >&5 6914 6915ac_cv_member_struct_utmp_ut_tv=no 6916fi 6917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6918fi 6919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6920fi 6921echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_tv" >&5 6922echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_tv" >&6 6923if test $ac_cv_member_struct_utmp_ut_tv = yes; then 6924 6925cat >>confdefs.h <<_ACEOF 6926#define HAVE_STRUCT_UTMP_UT_TV 1 6927_ACEOF 6928 6929 6930fi 6931echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5 6932echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6 6933if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then 6934 echo $ECHO_N "(cached) $ECHO_C" >&6 6935else 6936 cat >conftest.$ac_ext <<_ACEOF 6937/* confdefs.h. */ 6938_ACEOF 6939cat confdefs.h >>conftest.$ac_ext 6940cat >>conftest.$ac_ext <<_ACEOF 6941/* end confdefs.h. */ 6942 6943#include <sys/types.h> 6944#if HAVE_UTMP_H 6945#include <utmp.h> 6946#endif 6947 6948 6949int 6950main () 6951{ 6952static struct utmp ac_aggr; 6953if (ac_aggr.ut_id) 6954return 0; 6955 ; 6956 return 0; 6957} 6958_ACEOF 6959rm -f conftest.$ac_objext 6960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6961 (eval $ac_compile) 2>conftest.er1 6962 ac_status=$? 6963 grep -v '^ *+' conftest.er1 >conftest.err 6964 rm -f conftest.er1 6965 cat conftest.err >&5 6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6967 (exit $ac_status); } && 6968 { ac_try='test -z "$ac_c_werror_flag" 6969 || test ! -s conftest.err' 6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6971 (eval $ac_try) 2>&5 6972 ac_status=$? 6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6974 (exit $ac_status); }; } && 6975 { ac_try='test -s conftest.$ac_objext' 6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6977 (eval $ac_try) 2>&5 6978 ac_status=$? 6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6980 (exit $ac_status); }; }; then 6981 ac_cv_member_struct_utmp_ut_id=yes 6982else 6983 echo "$as_me: failed program was:" >&5 6984sed 's/^/| /' conftest.$ac_ext >&5 6985 6986cat >conftest.$ac_ext <<_ACEOF 6987/* confdefs.h. */ 6988_ACEOF 6989cat confdefs.h >>conftest.$ac_ext 6990cat >>conftest.$ac_ext <<_ACEOF 6991/* end confdefs.h. */ 6992 6993#include <sys/types.h> 6994#if HAVE_UTMP_H 6995#include <utmp.h> 6996#endif 6997 6998 6999int 7000main () 7001{ 7002static struct utmp ac_aggr; 7003if (sizeof ac_aggr.ut_id) 7004return 0; 7005 ; 7006 return 0; 7007} 7008_ACEOF 7009rm -f conftest.$ac_objext 7010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7011 (eval $ac_compile) 2>conftest.er1 7012 ac_status=$? 7013 grep -v '^ *+' conftest.er1 >conftest.err 7014 rm -f conftest.er1 7015 cat conftest.err >&5 7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7017 (exit $ac_status); } && 7018 { ac_try='test -z "$ac_c_werror_flag" 7019 || test ! -s conftest.err' 7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7021 (eval $ac_try) 2>&5 7022 ac_status=$? 7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7024 (exit $ac_status); }; } && 7025 { ac_try='test -s conftest.$ac_objext' 7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7027 (eval $ac_try) 2>&5 7028 ac_status=$? 7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7030 (exit $ac_status); }; }; then 7031 ac_cv_member_struct_utmp_ut_id=yes 7032else 7033 echo "$as_me: failed program was:" >&5 7034sed 's/^/| /' conftest.$ac_ext >&5 7035 7036ac_cv_member_struct_utmp_ut_id=no 7037fi 7038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7039fi 7040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7041fi 7042echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5 7043echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6 7044if test $ac_cv_member_struct_utmp_ut_id = yes; then 7045 7046cat >>confdefs.h <<_ACEOF 7047#define HAVE_STRUCT_UTMP_UT_ID 1 7048_ACEOF 7049 7050 7051fi 7052echo "$as_me:$LINENO: checking for struct utmp.ut_addr" >&5 7053echo $ECHO_N "checking for struct utmp.ut_addr... $ECHO_C" >&6 7054if test "${ac_cv_member_struct_utmp_ut_addr+set}" = set; then 7055 echo $ECHO_N "(cached) $ECHO_C" >&6 7056else 7057 cat >conftest.$ac_ext <<_ACEOF 7058/* confdefs.h. */ 7059_ACEOF 7060cat confdefs.h >>conftest.$ac_ext 7061cat >>conftest.$ac_ext <<_ACEOF 7062/* end confdefs.h. */ 7063 7064#include <sys/types.h> 7065#if HAVE_UTMP_H 7066#include <utmp.h> 7067#endif 7068 7069 7070int 7071main () 7072{ 7073static struct utmp ac_aggr; 7074if (ac_aggr.ut_addr) 7075return 0; 7076 ; 7077 return 0; 7078} 7079_ACEOF 7080rm -f conftest.$ac_objext 7081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7082 (eval $ac_compile) 2>conftest.er1 7083 ac_status=$? 7084 grep -v '^ *+' conftest.er1 >conftest.err 7085 rm -f conftest.er1 7086 cat conftest.err >&5 7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7088 (exit $ac_status); } && 7089 { ac_try='test -z "$ac_c_werror_flag" 7090 || test ! -s conftest.err' 7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7092 (eval $ac_try) 2>&5 7093 ac_status=$? 7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7095 (exit $ac_status); }; } && 7096 { ac_try='test -s conftest.$ac_objext' 7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7098 (eval $ac_try) 2>&5 7099 ac_status=$? 7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7101 (exit $ac_status); }; }; then 7102 ac_cv_member_struct_utmp_ut_addr=yes 7103else 7104 echo "$as_me: failed program was:" >&5 7105sed 's/^/| /' conftest.$ac_ext >&5 7106 7107cat >conftest.$ac_ext <<_ACEOF 7108/* confdefs.h. */ 7109_ACEOF 7110cat confdefs.h >>conftest.$ac_ext 7111cat >>conftest.$ac_ext <<_ACEOF 7112/* end confdefs.h. */ 7113 7114#include <sys/types.h> 7115#if HAVE_UTMP_H 7116#include <utmp.h> 7117#endif 7118 7119 7120int 7121main () 7122{ 7123static struct utmp ac_aggr; 7124if (sizeof ac_aggr.ut_addr) 7125return 0; 7126 ; 7127 return 0; 7128} 7129_ACEOF 7130rm -f conftest.$ac_objext 7131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7132 (eval $ac_compile) 2>conftest.er1 7133 ac_status=$? 7134 grep -v '^ *+' conftest.er1 >conftest.err 7135 rm -f conftest.er1 7136 cat conftest.err >&5 7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7138 (exit $ac_status); } && 7139 { ac_try='test -z "$ac_c_werror_flag" 7140 || test ! -s conftest.err' 7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7142 (eval $ac_try) 2>&5 7143 ac_status=$? 7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7145 (exit $ac_status); }; } && 7146 { ac_try='test -s conftest.$ac_objext' 7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7148 (eval $ac_try) 2>&5 7149 ac_status=$? 7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7151 (exit $ac_status); }; }; then 7152 ac_cv_member_struct_utmp_ut_addr=yes 7153else 7154 echo "$as_me: failed program was:" >&5 7155sed 's/^/| /' conftest.$ac_ext >&5 7156 7157ac_cv_member_struct_utmp_ut_addr=no 7158fi 7159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7160fi 7161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7162fi 7163echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_addr" >&5 7164echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_addr" >&6 7165if test $ac_cv_member_struct_utmp_ut_addr = yes; then 7166 7167cat >>confdefs.h <<_ACEOF 7168#define HAVE_STRUCT_UTMP_UT_ADDR 1 7169_ACEOF 7170 7171 7172fi 7173echo "$as_me:$LINENO: checking for struct utmp.ut_addr_v6" >&5 7174echo $ECHO_N "checking for struct utmp.ut_addr_v6... $ECHO_C" >&6 7175if test "${ac_cv_member_struct_utmp_ut_addr_v6+set}" = set; then 7176 echo $ECHO_N "(cached) $ECHO_C" >&6 7177else 7178 cat >conftest.$ac_ext <<_ACEOF 7179/* confdefs.h. */ 7180_ACEOF 7181cat confdefs.h >>conftest.$ac_ext 7182cat >>conftest.$ac_ext <<_ACEOF 7183/* end confdefs.h. */ 7184 7185#include <sys/types.h> 7186#if HAVE_UTMP_H 7187#include <utmp.h> 7188#endif 7189 7190 7191int 7192main () 7193{ 7194static struct utmp ac_aggr; 7195if (ac_aggr.ut_addr_v6) 7196return 0; 7197 ; 7198 return 0; 7199} 7200_ACEOF 7201rm -f conftest.$ac_objext 7202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7203 (eval $ac_compile) 2>conftest.er1 7204 ac_status=$? 7205 grep -v '^ *+' conftest.er1 >conftest.err 7206 rm -f conftest.er1 7207 cat conftest.err >&5 7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7209 (exit $ac_status); } && 7210 { ac_try='test -z "$ac_c_werror_flag" 7211 || test ! -s conftest.err' 7212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7213 (eval $ac_try) 2>&5 7214 ac_status=$? 7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7216 (exit $ac_status); }; } && 7217 { ac_try='test -s conftest.$ac_objext' 7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7219 (eval $ac_try) 2>&5 7220 ac_status=$? 7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7222 (exit $ac_status); }; }; then 7223 ac_cv_member_struct_utmp_ut_addr_v6=yes 7224else 7225 echo "$as_me: failed program was:" >&5 7226sed 's/^/| /' conftest.$ac_ext >&5 7227 7228cat >conftest.$ac_ext <<_ACEOF 7229/* confdefs.h. */ 7230_ACEOF 7231cat confdefs.h >>conftest.$ac_ext 7232cat >>conftest.$ac_ext <<_ACEOF 7233/* end confdefs.h. */ 7234 7235#include <sys/types.h> 7236#if HAVE_UTMP_H 7237#include <utmp.h> 7238#endif 7239 7240 7241int 7242main () 7243{ 7244static struct utmp ac_aggr; 7245if (sizeof ac_aggr.ut_addr_v6) 7246return 0; 7247 ; 7248 return 0; 7249} 7250_ACEOF 7251rm -f conftest.$ac_objext 7252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7253 (eval $ac_compile) 2>conftest.er1 7254 ac_status=$? 7255 grep -v '^ *+' conftest.er1 >conftest.err 7256 rm -f conftest.er1 7257 cat conftest.err >&5 7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7259 (exit $ac_status); } && 7260 { ac_try='test -z "$ac_c_werror_flag" 7261 || test ! -s conftest.err' 7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7263 (eval $ac_try) 2>&5 7264 ac_status=$? 7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7266 (exit $ac_status); }; } && 7267 { ac_try='test -s conftest.$ac_objext' 7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7269 (eval $ac_try) 2>&5 7270 ac_status=$? 7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7272 (exit $ac_status); }; }; then 7273 ac_cv_member_struct_utmp_ut_addr_v6=yes 7274else 7275 echo "$as_me: failed program was:" >&5 7276sed 's/^/| /' conftest.$ac_ext >&5 7277 7278ac_cv_member_struct_utmp_ut_addr_v6=no 7279fi 7280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7281fi 7282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7283fi 7284echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_addr_v6" >&5 7285echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_addr_v6" >&6 7286if test $ac_cv_member_struct_utmp_ut_addr_v6 = yes; then 7287 7288cat >>confdefs.h <<_ACEOF 7289#define HAVE_STRUCT_UTMP_UT_ADDR_V6 1 7290_ACEOF 7291 7292 7293fi 7294echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5 7295echo $ECHO_N "checking for struct utmp.ut_exit... $ECHO_C" >&6 7296if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then 7297 echo $ECHO_N "(cached) $ECHO_C" >&6 7298else 7299 cat >conftest.$ac_ext <<_ACEOF 7300/* confdefs.h. */ 7301_ACEOF 7302cat confdefs.h >>conftest.$ac_ext 7303cat >>conftest.$ac_ext <<_ACEOF 7304/* end confdefs.h. */ 7305 7306#include <sys/types.h> 7307#if HAVE_UTMP_H 7308#include <utmp.h> 7309#endif 7310 7311 7312int 7313main () 7314{ 7315static struct utmp ac_aggr; 7316if (ac_aggr.ut_exit) 7317return 0; 7318 ; 7319 return 0; 7320} 7321_ACEOF 7322rm -f conftest.$ac_objext 7323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7324 (eval $ac_compile) 2>conftest.er1 7325 ac_status=$? 7326 grep -v '^ *+' conftest.er1 >conftest.err 7327 rm -f conftest.er1 7328 cat conftest.err >&5 7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7330 (exit $ac_status); } && 7331 { ac_try='test -z "$ac_c_werror_flag" 7332 || test ! -s conftest.err' 7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7334 (eval $ac_try) 2>&5 7335 ac_status=$? 7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7337 (exit $ac_status); }; } && 7338 { ac_try='test -s conftest.$ac_objext' 7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7340 (eval $ac_try) 2>&5 7341 ac_status=$? 7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7343 (exit $ac_status); }; }; then 7344 ac_cv_member_struct_utmp_ut_exit=yes 7345else 7346 echo "$as_me: failed program was:" >&5 7347sed 's/^/| /' conftest.$ac_ext >&5 7348 7349cat >conftest.$ac_ext <<_ACEOF 7350/* confdefs.h. */ 7351_ACEOF 7352cat confdefs.h >>conftest.$ac_ext 7353cat >>conftest.$ac_ext <<_ACEOF 7354/* end confdefs.h. */ 7355 7356#include <sys/types.h> 7357#if HAVE_UTMP_H 7358#include <utmp.h> 7359#endif 7360 7361 7362int 7363main () 7364{ 7365static struct utmp ac_aggr; 7366if (sizeof ac_aggr.ut_exit) 7367return 0; 7368 ; 7369 return 0; 7370} 7371_ACEOF 7372rm -f conftest.$ac_objext 7373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7374 (eval $ac_compile) 2>conftest.er1 7375 ac_status=$? 7376 grep -v '^ *+' conftest.er1 >conftest.err 7377 rm -f conftest.er1 7378 cat conftest.err >&5 7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7380 (exit $ac_status); } && 7381 { ac_try='test -z "$ac_c_werror_flag" 7382 || test ! -s conftest.err' 7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7384 (eval $ac_try) 2>&5 7385 ac_status=$? 7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7387 (exit $ac_status); }; } && 7388 { ac_try='test -s conftest.$ac_objext' 7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7390 (eval $ac_try) 2>&5 7391 ac_status=$? 7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7393 (exit $ac_status); }; }; then 7394 ac_cv_member_struct_utmp_ut_exit=yes 7395else 7396 echo "$as_me: failed program was:" >&5 7397sed 's/^/| /' conftest.$ac_ext >&5 7398 7399ac_cv_member_struct_utmp_ut_exit=no 7400fi 7401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7402fi 7403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7404fi 7405echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5 7406echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit" >&6 7407if test $ac_cv_member_struct_utmp_ut_exit = yes; then 7408 7409cat >>confdefs.h <<_ACEOF 7410#define HAVE_STRUCT_UTMP_UT_EXIT 1 7411_ACEOF 7412 7413 7414fi 7415echo "$as_me:$LINENO: checking for struct utmp.ut_time" >&5 7416echo $ECHO_N "checking for struct utmp.ut_time... $ECHO_C" >&6 7417if test "${ac_cv_member_struct_utmp_ut_time+set}" = set; then 7418 echo $ECHO_N "(cached) $ECHO_C" >&6 7419else 7420 cat >conftest.$ac_ext <<_ACEOF 7421/* confdefs.h. */ 7422_ACEOF 7423cat confdefs.h >>conftest.$ac_ext 7424cat >>conftest.$ac_ext <<_ACEOF 7425/* end confdefs.h. */ 7426 7427#include <sys/types.h> 7428#if HAVE_UTMP_H 7429#include <utmp.h> 7430#endif 7431 7432 7433int 7434main () 7435{ 7436static struct utmp ac_aggr; 7437if (ac_aggr.ut_time) 7438return 0; 7439 ; 7440 return 0; 7441} 7442_ACEOF 7443rm -f conftest.$ac_objext 7444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7445 (eval $ac_compile) 2>conftest.er1 7446 ac_status=$? 7447 grep -v '^ *+' conftest.er1 >conftest.err 7448 rm -f conftest.er1 7449 cat conftest.err >&5 7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7451 (exit $ac_status); } && 7452 { ac_try='test -z "$ac_c_werror_flag" 7453 || test ! -s conftest.err' 7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7455 (eval $ac_try) 2>&5 7456 ac_status=$? 7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7458 (exit $ac_status); }; } && 7459 { ac_try='test -s conftest.$ac_objext' 7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7461 (eval $ac_try) 2>&5 7462 ac_status=$? 7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7464 (exit $ac_status); }; }; then 7465 ac_cv_member_struct_utmp_ut_time=yes 7466else 7467 echo "$as_me: failed program was:" >&5 7468sed 's/^/| /' conftest.$ac_ext >&5 7469 7470cat >conftest.$ac_ext <<_ACEOF 7471/* confdefs.h. */ 7472_ACEOF 7473cat confdefs.h >>conftest.$ac_ext 7474cat >>conftest.$ac_ext <<_ACEOF 7475/* end confdefs.h. */ 7476 7477#include <sys/types.h> 7478#if HAVE_UTMP_H 7479#include <utmp.h> 7480#endif 7481 7482 7483int 7484main () 7485{ 7486static struct utmp ac_aggr; 7487if (sizeof ac_aggr.ut_time) 7488return 0; 7489 ; 7490 return 0; 7491} 7492_ACEOF 7493rm -f conftest.$ac_objext 7494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7495 (eval $ac_compile) 2>conftest.er1 7496 ac_status=$? 7497 grep -v '^ *+' conftest.er1 >conftest.err 7498 rm -f conftest.er1 7499 cat conftest.err >&5 7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7501 (exit $ac_status); } && 7502 { ac_try='test -z "$ac_c_werror_flag" 7503 || test ! -s conftest.err' 7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7505 (eval $ac_try) 2>&5 7506 ac_status=$? 7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7508 (exit $ac_status); }; } && 7509 { ac_try='test -s conftest.$ac_objext' 7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7511 (eval $ac_try) 2>&5 7512 ac_status=$? 7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7514 (exit $ac_status); }; }; then 7515 ac_cv_member_struct_utmp_ut_time=yes 7516else 7517 echo "$as_me: failed program was:" >&5 7518sed 's/^/| /' conftest.$ac_ext >&5 7519 7520ac_cv_member_struct_utmp_ut_time=no 7521fi 7522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7523fi 7524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7525fi 7526echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_time" >&5 7527echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_time" >&6 7528if test $ac_cv_member_struct_utmp_ut_time = yes; then 7529 7530cat >>confdefs.h <<_ACEOF 7531#define HAVE_STRUCT_UTMP_UT_TIME 1 7532_ACEOF 7533 7534 7535fi 7536 7537 7538echo "$as_me:$LINENO: checking for struct utmpx.ut_host" >&5 7539echo $ECHO_N "checking for struct utmpx.ut_host... $ECHO_C" >&6 7540if test "${ac_cv_member_struct_utmpx_ut_host+set}" = set; then 7541 echo $ECHO_N "(cached) $ECHO_C" >&6 7542else 7543 cat >conftest.$ac_ext <<_ACEOF 7544/* confdefs.h. */ 7545_ACEOF 7546cat confdefs.h >>conftest.$ac_ext 7547cat >>conftest.$ac_ext <<_ACEOF 7548/* end confdefs.h. */ 7549 7550#include <sys/types.h> 7551#include <sys/socket.h> 7552#if HAVE_UTMPX_H 7553#include <utmpx.h> 7554#endif 7555 7556 7557int 7558main () 7559{ 7560static struct utmpx ac_aggr; 7561if (ac_aggr.ut_host) 7562return 0; 7563 ; 7564 return 0; 7565} 7566_ACEOF 7567rm -f conftest.$ac_objext 7568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7569 (eval $ac_compile) 2>conftest.er1 7570 ac_status=$? 7571 grep -v '^ *+' conftest.er1 >conftest.err 7572 rm -f conftest.er1 7573 cat conftest.err >&5 7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7575 (exit $ac_status); } && 7576 { ac_try='test -z "$ac_c_werror_flag" 7577 || test ! -s conftest.err' 7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7579 (eval $ac_try) 2>&5 7580 ac_status=$? 7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7582 (exit $ac_status); }; } && 7583 { ac_try='test -s conftest.$ac_objext' 7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7585 (eval $ac_try) 2>&5 7586 ac_status=$? 7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7588 (exit $ac_status); }; }; then 7589 ac_cv_member_struct_utmpx_ut_host=yes 7590else 7591 echo "$as_me: failed program was:" >&5 7592sed 's/^/| /' conftest.$ac_ext >&5 7593 7594cat >conftest.$ac_ext <<_ACEOF 7595/* confdefs.h. */ 7596_ACEOF 7597cat confdefs.h >>conftest.$ac_ext 7598cat >>conftest.$ac_ext <<_ACEOF 7599/* end confdefs.h. */ 7600 7601#include <sys/types.h> 7602#include <sys/socket.h> 7603#if HAVE_UTMPX_H 7604#include <utmpx.h> 7605#endif 7606 7607 7608int 7609main () 7610{ 7611static struct utmpx ac_aggr; 7612if (sizeof ac_aggr.ut_host) 7613return 0; 7614 ; 7615 return 0; 7616} 7617_ACEOF 7618rm -f conftest.$ac_objext 7619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7620 (eval $ac_compile) 2>conftest.er1 7621 ac_status=$? 7622 grep -v '^ *+' conftest.er1 >conftest.err 7623 rm -f conftest.er1 7624 cat conftest.err >&5 7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7626 (exit $ac_status); } && 7627 { ac_try='test -z "$ac_c_werror_flag" 7628 || test ! -s conftest.err' 7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7630 (eval $ac_try) 2>&5 7631 ac_status=$? 7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7633 (exit $ac_status); }; } && 7634 { ac_try='test -s conftest.$ac_objext' 7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7636 (eval $ac_try) 2>&5 7637 ac_status=$? 7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7639 (exit $ac_status); }; }; then 7640 ac_cv_member_struct_utmpx_ut_host=yes 7641else 7642 echo "$as_me: failed program was:" >&5 7643sed 's/^/| /' conftest.$ac_ext >&5 7644 7645ac_cv_member_struct_utmpx_ut_host=no 7646fi 7647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7648fi 7649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7650fi 7651echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_host" >&5 7652echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_host" >&6 7653if test $ac_cv_member_struct_utmpx_ut_host = yes; then 7654 7655cat >>confdefs.h <<_ACEOF 7656#define HAVE_STRUCT_UTMPX_UT_HOST 1 7657_ACEOF 7658 7659 7660fi 7661echo "$as_me:$LINENO: checking for struct utmpx.ut_syslen" >&5 7662echo $ECHO_N "checking for struct utmpx.ut_syslen... $ECHO_C" >&6 7663if test "${ac_cv_member_struct_utmpx_ut_syslen+set}" = set; then 7664 echo $ECHO_N "(cached) $ECHO_C" >&6 7665else 7666 cat >conftest.$ac_ext <<_ACEOF 7667/* confdefs.h. */ 7668_ACEOF 7669cat confdefs.h >>conftest.$ac_ext 7670cat >>conftest.$ac_ext <<_ACEOF 7671/* end confdefs.h. */ 7672 7673#include <sys/types.h> 7674#include <sys/socket.h> 7675#if HAVE_UTMPX_H 7676#include <utmpx.h> 7677#endif 7678 7679 7680int 7681main () 7682{ 7683static struct utmpx ac_aggr; 7684if (ac_aggr.ut_syslen) 7685return 0; 7686 ; 7687 return 0; 7688} 7689_ACEOF 7690rm -f conftest.$ac_objext 7691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7692 (eval $ac_compile) 2>conftest.er1 7693 ac_status=$? 7694 grep -v '^ *+' conftest.er1 >conftest.err 7695 rm -f conftest.er1 7696 cat conftest.err >&5 7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7698 (exit $ac_status); } && 7699 { ac_try='test -z "$ac_c_werror_flag" 7700 || test ! -s conftest.err' 7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7702 (eval $ac_try) 2>&5 7703 ac_status=$? 7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7705 (exit $ac_status); }; } && 7706 { ac_try='test -s conftest.$ac_objext' 7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7708 (eval $ac_try) 2>&5 7709 ac_status=$? 7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7711 (exit $ac_status); }; }; then 7712 ac_cv_member_struct_utmpx_ut_syslen=yes 7713else 7714 echo "$as_me: failed program was:" >&5 7715sed 's/^/| /' conftest.$ac_ext >&5 7716 7717cat >conftest.$ac_ext <<_ACEOF 7718/* confdefs.h. */ 7719_ACEOF 7720cat confdefs.h >>conftest.$ac_ext 7721cat >>conftest.$ac_ext <<_ACEOF 7722/* end confdefs.h. */ 7723 7724#include <sys/types.h> 7725#include <sys/socket.h> 7726#if HAVE_UTMPX_H 7727#include <utmpx.h> 7728#endif 7729 7730 7731int 7732main () 7733{ 7734static struct utmpx ac_aggr; 7735if (sizeof ac_aggr.ut_syslen) 7736return 0; 7737 ; 7738 return 0; 7739} 7740_ACEOF 7741rm -f conftest.$ac_objext 7742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7743 (eval $ac_compile) 2>conftest.er1 7744 ac_status=$? 7745 grep -v '^ *+' conftest.er1 >conftest.err 7746 rm -f conftest.er1 7747 cat conftest.err >&5 7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7749 (exit $ac_status); } && 7750 { ac_try='test -z "$ac_c_werror_flag" 7751 || test ! -s conftest.err' 7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7753 (eval $ac_try) 2>&5 7754 ac_status=$? 7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7756 (exit $ac_status); }; } && 7757 { ac_try='test -s conftest.$ac_objext' 7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7759 (eval $ac_try) 2>&5 7760 ac_status=$? 7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7762 (exit $ac_status); }; }; then 7763 ac_cv_member_struct_utmpx_ut_syslen=yes 7764else 7765 echo "$as_me: failed program was:" >&5 7766sed 's/^/| /' conftest.$ac_ext >&5 7767 7768ac_cv_member_struct_utmpx_ut_syslen=no 7769fi 7770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7771fi 7772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7773fi 7774echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_syslen" >&5 7775echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_syslen" >&6 7776if test $ac_cv_member_struct_utmpx_ut_syslen = yes; then 7777 7778cat >>confdefs.h <<_ACEOF 7779#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1 7780_ACEOF 7781 7782 7783fi 7784echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5 7785echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6 7786if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then 7787 echo $ECHO_N "(cached) $ECHO_C" >&6 7788else 7789 cat >conftest.$ac_ext <<_ACEOF 7790/* confdefs.h. */ 7791_ACEOF 7792cat confdefs.h >>conftest.$ac_ext 7793cat >>conftest.$ac_ext <<_ACEOF 7794/* end confdefs.h. */ 7795 7796#include <sys/types.h> 7797#include <sys/socket.h> 7798#if HAVE_UTMPX_H 7799#include <utmpx.h> 7800#endif 7801 7802 7803int 7804main () 7805{ 7806static struct utmpx ac_aggr; 7807if (ac_aggr.ut_type) 7808return 0; 7809 ; 7810 return 0; 7811} 7812_ACEOF 7813rm -f conftest.$ac_objext 7814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7815 (eval $ac_compile) 2>conftest.er1 7816 ac_status=$? 7817 grep -v '^ *+' conftest.er1 >conftest.err 7818 rm -f conftest.er1 7819 cat conftest.err >&5 7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7821 (exit $ac_status); } && 7822 { ac_try='test -z "$ac_c_werror_flag" 7823 || test ! -s conftest.err' 7824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7825 (eval $ac_try) 2>&5 7826 ac_status=$? 7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7828 (exit $ac_status); }; } && 7829 { ac_try='test -s conftest.$ac_objext' 7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7831 (eval $ac_try) 2>&5 7832 ac_status=$? 7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7834 (exit $ac_status); }; }; then 7835 ac_cv_member_struct_utmpx_ut_type=yes 7836else 7837 echo "$as_me: failed program was:" >&5 7838sed 's/^/| /' conftest.$ac_ext >&5 7839 7840cat >conftest.$ac_ext <<_ACEOF 7841/* confdefs.h. */ 7842_ACEOF 7843cat confdefs.h >>conftest.$ac_ext 7844cat >>conftest.$ac_ext <<_ACEOF 7845/* end confdefs.h. */ 7846 7847#include <sys/types.h> 7848#include <sys/socket.h> 7849#if HAVE_UTMPX_H 7850#include <utmpx.h> 7851#endif 7852 7853 7854int 7855main () 7856{ 7857static struct utmpx ac_aggr; 7858if (sizeof ac_aggr.ut_type) 7859return 0; 7860 ; 7861 return 0; 7862} 7863_ACEOF 7864rm -f conftest.$ac_objext 7865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7866 (eval $ac_compile) 2>conftest.er1 7867 ac_status=$? 7868 grep -v '^ *+' conftest.er1 >conftest.err 7869 rm -f conftest.er1 7870 cat conftest.err >&5 7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7872 (exit $ac_status); } && 7873 { ac_try='test -z "$ac_c_werror_flag" 7874 || test ! -s conftest.err' 7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7876 (eval $ac_try) 2>&5 7877 ac_status=$? 7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7879 (exit $ac_status); }; } && 7880 { ac_try='test -s conftest.$ac_objext' 7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7882 (eval $ac_try) 2>&5 7883 ac_status=$? 7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7885 (exit $ac_status); }; }; then 7886 ac_cv_member_struct_utmpx_ut_type=yes 7887else 7888 echo "$as_me: failed program was:" >&5 7889sed 's/^/| /' conftest.$ac_ext >&5 7890 7891ac_cv_member_struct_utmpx_ut_type=no 7892fi 7893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7894fi 7895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7896fi 7897echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5 7898echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6 7899if test $ac_cv_member_struct_utmpx_ut_type = yes; then 7900 7901cat >>confdefs.h <<_ACEOF 7902#define HAVE_STRUCT_UTMPX_UT_TYPE 1 7903_ACEOF 7904 7905 7906fi 7907echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5 7908echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6 7909if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then 7910 echo $ECHO_N "(cached) $ECHO_C" >&6 7911else 7912 cat >conftest.$ac_ext <<_ACEOF 7913/* confdefs.h. */ 7914_ACEOF 7915cat confdefs.h >>conftest.$ac_ext 7916cat >>conftest.$ac_ext <<_ACEOF 7917/* end confdefs.h. */ 7918 7919#include <sys/types.h> 7920#include <sys/socket.h> 7921#if HAVE_UTMPX_H 7922#include <utmpx.h> 7923#endif 7924 7925 7926int 7927main () 7928{ 7929static struct utmpx ac_aggr; 7930if (ac_aggr.ut_id) 7931return 0; 7932 ; 7933 return 0; 7934} 7935_ACEOF 7936rm -f conftest.$ac_objext 7937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7938 (eval $ac_compile) 2>conftest.er1 7939 ac_status=$? 7940 grep -v '^ *+' conftest.er1 >conftest.err 7941 rm -f conftest.er1 7942 cat conftest.err >&5 7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7944 (exit $ac_status); } && 7945 { ac_try='test -z "$ac_c_werror_flag" 7946 || test ! -s conftest.err' 7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7948 (eval $ac_try) 2>&5 7949 ac_status=$? 7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7951 (exit $ac_status); }; } && 7952 { ac_try='test -s conftest.$ac_objext' 7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7954 (eval $ac_try) 2>&5 7955 ac_status=$? 7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7957 (exit $ac_status); }; }; then 7958 ac_cv_member_struct_utmpx_ut_id=yes 7959else 7960 echo "$as_me: failed program was:" >&5 7961sed 's/^/| /' conftest.$ac_ext >&5 7962 7963cat >conftest.$ac_ext <<_ACEOF 7964/* confdefs.h. */ 7965_ACEOF 7966cat confdefs.h >>conftest.$ac_ext 7967cat >>conftest.$ac_ext <<_ACEOF 7968/* end confdefs.h. */ 7969 7970#include <sys/types.h> 7971#include <sys/socket.h> 7972#if HAVE_UTMPX_H 7973#include <utmpx.h> 7974#endif 7975 7976 7977int 7978main () 7979{ 7980static struct utmpx ac_aggr; 7981if (sizeof ac_aggr.ut_id) 7982return 0; 7983 ; 7984 return 0; 7985} 7986_ACEOF 7987rm -f conftest.$ac_objext 7988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7989 (eval $ac_compile) 2>conftest.er1 7990 ac_status=$? 7991 grep -v '^ *+' conftest.er1 >conftest.err 7992 rm -f conftest.er1 7993 cat conftest.err >&5 7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7995 (exit $ac_status); } && 7996 { ac_try='test -z "$ac_c_werror_flag" 7997 || test ! -s conftest.err' 7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7999 (eval $ac_try) 2>&5 8000 ac_status=$? 8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8002 (exit $ac_status); }; } && 8003 { ac_try='test -s conftest.$ac_objext' 8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8005 (eval $ac_try) 2>&5 8006 ac_status=$? 8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8008 (exit $ac_status); }; }; then 8009 ac_cv_member_struct_utmpx_ut_id=yes 8010else 8011 echo "$as_me: failed program was:" >&5 8012sed 's/^/| /' conftest.$ac_ext >&5 8013 8014ac_cv_member_struct_utmpx_ut_id=no 8015fi 8016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8017fi 8018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8019fi 8020echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5 8021echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6 8022if test $ac_cv_member_struct_utmpx_ut_id = yes; then 8023 8024cat >>confdefs.h <<_ACEOF 8025#define HAVE_STRUCT_UTMPX_UT_ID 1 8026_ACEOF 8027 8028 8029fi 8030echo "$as_me:$LINENO: checking for struct utmpx.ut_addr" >&5 8031echo $ECHO_N "checking for struct utmpx.ut_addr... $ECHO_C" >&6 8032if test "${ac_cv_member_struct_utmpx_ut_addr+set}" = set; then 8033 echo $ECHO_N "(cached) $ECHO_C" >&6 8034else 8035 cat >conftest.$ac_ext <<_ACEOF 8036/* confdefs.h. */ 8037_ACEOF 8038cat confdefs.h >>conftest.$ac_ext 8039cat >>conftest.$ac_ext <<_ACEOF 8040/* end confdefs.h. */ 8041 8042#include <sys/types.h> 8043#include <sys/socket.h> 8044#if HAVE_UTMPX_H 8045#include <utmpx.h> 8046#endif 8047 8048 8049int 8050main () 8051{ 8052static struct utmpx ac_aggr; 8053if (ac_aggr.ut_addr) 8054return 0; 8055 ; 8056 return 0; 8057} 8058_ACEOF 8059rm -f conftest.$ac_objext 8060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8061 (eval $ac_compile) 2>conftest.er1 8062 ac_status=$? 8063 grep -v '^ *+' conftest.er1 >conftest.err 8064 rm -f conftest.er1 8065 cat conftest.err >&5 8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8067 (exit $ac_status); } && 8068 { ac_try='test -z "$ac_c_werror_flag" 8069 || test ! -s conftest.err' 8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8071 (eval $ac_try) 2>&5 8072 ac_status=$? 8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8074 (exit $ac_status); }; } && 8075 { ac_try='test -s conftest.$ac_objext' 8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8077 (eval $ac_try) 2>&5 8078 ac_status=$? 8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8080 (exit $ac_status); }; }; then 8081 ac_cv_member_struct_utmpx_ut_addr=yes 8082else 8083 echo "$as_me: failed program was:" >&5 8084sed 's/^/| /' conftest.$ac_ext >&5 8085 8086cat >conftest.$ac_ext <<_ACEOF 8087/* confdefs.h. */ 8088_ACEOF 8089cat confdefs.h >>conftest.$ac_ext 8090cat >>conftest.$ac_ext <<_ACEOF 8091/* end confdefs.h. */ 8092 8093#include <sys/types.h> 8094#include <sys/socket.h> 8095#if HAVE_UTMPX_H 8096#include <utmpx.h> 8097#endif 8098 8099 8100int 8101main () 8102{ 8103static struct utmpx ac_aggr; 8104if (sizeof ac_aggr.ut_addr) 8105return 0; 8106 ; 8107 return 0; 8108} 8109_ACEOF 8110rm -f conftest.$ac_objext 8111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8112 (eval $ac_compile) 2>conftest.er1 8113 ac_status=$? 8114 grep -v '^ *+' conftest.er1 >conftest.err 8115 rm -f conftest.er1 8116 cat conftest.err >&5 8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8118 (exit $ac_status); } && 8119 { ac_try='test -z "$ac_c_werror_flag" 8120 || test ! -s conftest.err' 8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8122 (eval $ac_try) 2>&5 8123 ac_status=$? 8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8125 (exit $ac_status); }; } && 8126 { ac_try='test -s conftest.$ac_objext' 8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8128 (eval $ac_try) 2>&5 8129 ac_status=$? 8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8131 (exit $ac_status); }; }; then 8132 ac_cv_member_struct_utmpx_ut_addr=yes 8133else 8134 echo "$as_me: failed program was:" >&5 8135sed 's/^/| /' conftest.$ac_ext >&5 8136 8137ac_cv_member_struct_utmpx_ut_addr=no 8138fi 8139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8140fi 8141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8142fi 8143echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_addr" >&5 8144echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_addr" >&6 8145if test $ac_cv_member_struct_utmpx_ut_addr = yes; then 8146 8147cat >>confdefs.h <<_ACEOF 8148#define HAVE_STRUCT_UTMPX_UT_ADDR 1 8149_ACEOF 8150 8151 8152fi 8153echo "$as_me:$LINENO: checking for struct utmpx.ut_addr_v6" >&5 8154echo $ECHO_N "checking for struct utmpx.ut_addr_v6... $ECHO_C" >&6 8155if test "${ac_cv_member_struct_utmpx_ut_addr_v6+set}" = set; then 8156 echo $ECHO_N "(cached) $ECHO_C" >&6 8157else 8158 cat >conftest.$ac_ext <<_ACEOF 8159/* confdefs.h. */ 8160_ACEOF 8161cat confdefs.h >>conftest.$ac_ext 8162cat >>conftest.$ac_ext <<_ACEOF 8163/* end confdefs.h. */ 8164 8165#include <sys/types.h> 8166#include <sys/socket.h> 8167#if HAVE_UTMPX_H 8168#include <utmpx.h> 8169#endif 8170 8171 8172int 8173main () 8174{ 8175static struct utmpx ac_aggr; 8176if (ac_aggr.ut_addr_v6) 8177return 0; 8178 ; 8179 return 0; 8180} 8181_ACEOF 8182rm -f conftest.$ac_objext 8183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8184 (eval $ac_compile) 2>conftest.er1 8185 ac_status=$? 8186 grep -v '^ *+' conftest.er1 >conftest.err 8187 rm -f conftest.er1 8188 cat conftest.err >&5 8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8190 (exit $ac_status); } && 8191 { ac_try='test -z "$ac_c_werror_flag" 8192 || test ! -s conftest.err' 8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8194 (eval $ac_try) 2>&5 8195 ac_status=$? 8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8197 (exit $ac_status); }; } && 8198 { ac_try='test -s conftest.$ac_objext' 8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8200 (eval $ac_try) 2>&5 8201 ac_status=$? 8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8203 (exit $ac_status); }; }; then 8204 ac_cv_member_struct_utmpx_ut_addr_v6=yes 8205else 8206 echo "$as_me: failed program was:" >&5 8207sed 's/^/| /' conftest.$ac_ext >&5 8208 8209cat >conftest.$ac_ext <<_ACEOF 8210/* confdefs.h. */ 8211_ACEOF 8212cat confdefs.h >>conftest.$ac_ext 8213cat >>conftest.$ac_ext <<_ACEOF 8214/* end confdefs.h. */ 8215 8216#include <sys/types.h> 8217#include <sys/socket.h> 8218#if HAVE_UTMPX_H 8219#include <utmpx.h> 8220#endif 8221 8222 8223int 8224main () 8225{ 8226static struct utmpx ac_aggr; 8227if (sizeof ac_aggr.ut_addr_v6) 8228return 0; 8229 ; 8230 return 0; 8231} 8232_ACEOF 8233rm -f conftest.$ac_objext 8234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8235 (eval $ac_compile) 2>conftest.er1 8236 ac_status=$? 8237 grep -v '^ *+' conftest.er1 >conftest.err 8238 rm -f conftest.er1 8239 cat conftest.err >&5 8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8241 (exit $ac_status); } && 8242 { ac_try='test -z "$ac_c_werror_flag" 8243 || test ! -s conftest.err' 8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8245 (eval $ac_try) 2>&5 8246 ac_status=$? 8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8248 (exit $ac_status); }; } && 8249 { ac_try='test -s conftest.$ac_objext' 8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8251 (eval $ac_try) 2>&5 8252 ac_status=$? 8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8254 (exit $ac_status); }; }; then 8255 ac_cv_member_struct_utmpx_ut_addr_v6=yes 8256else 8257 echo "$as_me: failed program was:" >&5 8258sed 's/^/| /' conftest.$ac_ext >&5 8259 8260ac_cv_member_struct_utmpx_ut_addr_v6=no 8261fi 8262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8263fi 8264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8265fi 8266echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_addr_v6" >&5 8267echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_addr_v6" >&6 8268if test $ac_cv_member_struct_utmpx_ut_addr_v6 = yes; then 8269 8270cat >>confdefs.h <<_ACEOF 8271#define HAVE_STRUCT_UTMPX_UT_ADDR_V6 1 8272_ACEOF 8273 8274 8275fi 8276echo "$as_me:$LINENO: checking for struct utmpx.ut_time" >&5 8277echo $ECHO_N "checking for struct utmpx.ut_time... $ECHO_C" >&6 8278if test "${ac_cv_member_struct_utmpx_ut_time+set}" = set; then 8279 echo $ECHO_N "(cached) $ECHO_C" >&6 8280else 8281 cat >conftest.$ac_ext <<_ACEOF 8282/* confdefs.h. */ 8283_ACEOF 8284cat confdefs.h >>conftest.$ac_ext 8285cat >>conftest.$ac_ext <<_ACEOF 8286/* end confdefs.h. */ 8287 8288#include <sys/types.h> 8289#include <sys/socket.h> 8290#if HAVE_UTMPX_H 8291#include <utmpx.h> 8292#endif 8293 8294 8295int 8296main () 8297{ 8298static struct utmpx ac_aggr; 8299if (ac_aggr.ut_time) 8300return 0; 8301 ; 8302 return 0; 8303} 8304_ACEOF 8305rm -f conftest.$ac_objext 8306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8307 (eval $ac_compile) 2>conftest.er1 8308 ac_status=$? 8309 grep -v '^ *+' conftest.er1 >conftest.err 8310 rm -f conftest.er1 8311 cat conftest.err >&5 8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8313 (exit $ac_status); } && 8314 { ac_try='test -z "$ac_c_werror_flag" 8315 || test ! -s conftest.err' 8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8317 (eval $ac_try) 2>&5 8318 ac_status=$? 8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8320 (exit $ac_status); }; } && 8321 { ac_try='test -s conftest.$ac_objext' 8322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8323 (eval $ac_try) 2>&5 8324 ac_status=$? 8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8326 (exit $ac_status); }; }; then 8327 ac_cv_member_struct_utmpx_ut_time=yes 8328else 8329 echo "$as_me: failed program was:" >&5 8330sed 's/^/| /' conftest.$ac_ext >&5 8331 8332cat >conftest.$ac_ext <<_ACEOF 8333/* confdefs.h. */ 8334_ACEOF 8335cat confdefs.h >>conftest.$ac_ext 8336cat >>conftest.$ac_ext <<_ACEOF 8337/* end confdefs.h. */ 8338 8339#include <sys/types.h> 8340#include <sys/socket.h> 8341#if HAVE_UTMPX_H 8342#include <utmpx.h> 8343#endif 8344 8345 8346int 8347main () 8348{ 8349static struct utmpx ac_aggr; 8350if (sizeof ac_aggr.ut_time) 8351return 0; 8352 ; 8353 return 0; 8354} 8355_ACEOF 8356rm -f conftest.$ac_objext 8357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8358 (eval $ac_compile) 2>conftest.er1 8359 ac_status=$? 8360 grep -v '^ *+' conftest.er1 >conftest.err 8361 rm -f conftest.er1 8362 cat conftest.err >&5 8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8364 (exit $ac_status); } && 8365 { ac_try='test -z "$ac_c_werror_flag" 8366 || test ! -s conftest.err' 8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8368 (eval $ac_try) 2>&5 8369 ac_status=$? 8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8371 (exit $ac_status); }; } && 8372 { ac_try='test -s conftest.$ac_objext' 8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8374 (eval $ac_try) 2>&5 8375 ac_status=$? 8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8377 (exit $ac_status); }; }; then 8378 ac_cv_member_struct_utmpx_ut_time=yes 8379else 8380 echo "$as_me: failed program was:" >&5 8381sed 's/^/| /' conftest.$ac_ext >&5 8382 8383ac_cv_member_struct_utmpx_ut_time=no 8384fi 8385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8386fi 8387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8388fi 8389echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_time" >&5 8390echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_time" >&6 8391if test $ac_cv_member_struct_utmpx_ut_time = yes; then 8392 8393cat >>confdefs.h <<_ACEOF 8394#define HAVE_STRUCT_UTMPX_UT_TIME 1 8395_ACEOF 8396 8397 8398fi 8399echo "$as_me:$LINENO: checking for struct utmpx.ut_tv" >&5 8400echo $ECHO_N "checking for struct utmpx.ut_tv... $ECHO_C" >&6 8401if test "${ac_cv_member_struct_utmpx_ut_tv+set}" = set; then 8402 echo $ECHO_N "(cached) $ECHO_C" >&6 8403else 8404 cat >conftest.$ac_ext <<_ACEOF 8405/* confdefs.h. */ 8406_ACEOF 8407cat confdefs.h >>conftest.$ac_ext 8408cat >>conftest.$ac_ext <<_ACEOF 8409/* end confdefs.h. */ 8410 8411#include <sys/types.h> 8412#include <sys/socket.h> 8413#if HAVE_UTMPX_H 8414#include <utmpx.h> 8415#endif 8416 8417 8418int 8419main () 8420{ 8421static struct utmpx ac_aggr; 8422if (ac_aggr.ut_tv) 8423return 0; 8424 ; 8425 return 0; 8426} 8427_ACEOF 8428rm -f conftest.$ac_objext 8429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8430 (eval $ac_compile) 2>conftest.er1 8431 ac_status=$? 8432 grep -v '^ *+' conftest.er1 >conftest.err 8433 rm -f conftest.er1 8434 cat conftest.err >&5 8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8436 (exit $ac_status); } && 8437 { ac_try='test -z "$ac_c_werror_flag" 8438 || test ! -s conftest.err' 8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8440 (eval $ac_try) 2>&5 8441 ac_status=$? 8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8443 (exit $ac_status); }; } && 8444 { ac_try='test -s conftest.$ac_objext' 8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8446 (eval $ac_try) 2>&5 8447 ac_status=$? 8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8449 (exit $ac_status); }; }; then 8450 ac_cv_member_struct_utmpx_ut_tv=yes 8451else 8452 echo "$as_me: failed program was:" >&5 8453sed 's/^/| /' conftest.$ac_ext >&5 8454 8455cat >conftest.$ac_ext <<_ACEOF 8456/* confdefs.h. */ 8457_ACEOF 8458cat confdefs.h >>conftest.$ac_ext 8459cat >>conftest.$ac_ext <<_ACEOF 8460/* end confdefs.h. */ 8461 8462#include <sys/types.h> 8463#include <sys/socket.h> 8464#if HAVE_UTMPX_H 8465#include <utmpx.h> 8466#endif 8467 8468 8469int 8470main () 8471{ 8472static struct utmpx ac_aggr; 8473if (sizeof ac_aggr.ut_tv) 8474return 0; 8475 ; 8476 return 0; 8477} 8478_ACEOF 8479rm -f conftest.$ac_objext 8480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8481 (eval $ac_compile) 2>conftest.er1 8482 ac_status=$? 8483 grep -v '^ *+' conftest.er1 >conftest.err 8484 rm -f conftest.er1 8485 cat conftest.err >&5 8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8487 (exit $ac_status); } && 8488 { ac_try='test -z "$ac_c_werror_flag" 8489 || test ! -s conftest.err' 8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8491 (eval $ac_try) 2>&5 8492 ac_status=$? 8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8494 (exit $ac_status); }; } && 8495 { ac_try='test -s conftest.$ac_objext' 8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8497 (eval $ac_try) 2>&5 8498 ac_status=$? 8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8500 (exit $ac_status); }; }; then 8501 ac_cv_member_struct_utmpx_ut_tv=yes 8502else 8503 echo "$as_me: failed program was:" >&5 8504sed 's/^/| /' conftest.$ac_ext >&5 8505 8506ac_cv_member_struct_utmpx_ut_tv=no 8507fi 8508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8509fi 8510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8511fi 8512echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_tv" >&5 8513echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_tv" >&6 8514if test $ac_cv_member_struct_utmpx_ut_tv = yes; then 8515 8516cat >>confdefs.h <<_ACEOF 8517#define HAVE_STRUCT_UTMPX_UT_TV 1 8518_ACEOF 8519 8520 8521fi 8522 8523 8524echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5 8525echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6 8526if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then 8527 echo $ECHO_N "(cached) $ECHO_C" >&6 8528else 8529 cat >conftest.$ac_ext <<_ACEOF 8530/* confdefs.h. */ 8531_ACEOF 8532cat confdefs.h >>conftest.$ac_ext 8533cat >>conftest.$ac_ext <<_ACEOF 8534/* end confdefs.h. */ 8535 8536#include <sys/types.h> 8537#include <sys/socket.h> 8538 8539 8540int 8541main () 8542{ 8543static struct sockaddr_storage ac_aggr; 8544if (ac_aggr.ss_family) 8545return 0; 8546 ; 8547 return 0; 8548} 8549_ACEOF 8550rm -f conftest.$ac_objext 8551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8552 (eval $ac_compile) 2>conftest.er1 8553 ac_status=$? 8554 grep -v '^ *+' conftest.er1 >conftest.err 8555 rm -f conftest.er1 8556 cat conftest.err >&5 8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8558 (exit $ac_status); } && 8559 { ac_try='test -z "$ac_c_werror_flag" 8560 || test ! -s conftest.err' 8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8562 (eval $ac_try) 2>&5 8563 ac_status=$? 8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8565 (exit $ac_status); }; } && 8566 { ac_try='test -s conftest.$ac_objext' 8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8568 (eval $ac_try) 2>&5 8569 ac_status=$? 8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8571 (exit $ac_status); }; }; then 8572 ac_cv_member_struct_sockaddr_storage_ss_family=yes 8573else 8574 echo "$as_me: failed program was:" >&5 8575sed 's/^/| /' conftest.$ac_ext >&5 8576 8577cat >conftest.$ac_ext <<_ACEOF 8578/* confdefs.h. */ 8579_ACEOF 8580cat confdefs.h >>conftest.$ac_ext 8581cat >>conftest.$ac_ext <<_ACEOF 8582/* end confdefs.h. */ 8583 8584#include <sys/types.h> 8585#include <sys/socket.h> 8586 8587 8588int 8589main () 8590{ 8591static struct sockaddr_storage ac_aggr; 8592if (sizeof ac_aggr.ss_family) 8593return 0; 8594 ; 8595 return 0; 8596} 8597_ACEOF 8598rm -f conftest.$ac_objext 8599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8600 (eval $ac_compile) 2>conftest.er1 8601 ac_status=$? 8602 grep -v '^ *+' conftest.er1 >conftest.err 8603 rm -f conftest.er1 8604 cat conftest.err >&5 8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8606 (exit $ac_status); } && 8607 { ac_try='test -z "$ac_c_werror_flag" 8608 || test ! -s conftest.err' 8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8610 (eval $ac_try) 2>&5 8611 ac_status=$? 8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8613 (exit $ac_status); }; } && 8614 { ac_try='test -s conftest.$ac_objext' 8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8616 (eval $ac_try) 2>&5 8617 ac_status=$? 8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8619 (exit $ac_status); }; }; then 8620 ac_cv_member_struct_sockaddr_storage_ss_family=yes 8621else 8622 echo "$as_me: failed program was:" >&5 8623sed 's/^/| /' conftest.$ac_ext >&5 8624 8625ac_cv_member_struct_sockaddr_storage_ss_family=no 8626fi 8627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8628fi 8629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8630fi 8631echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5 8632echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6 8633if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then 8634 8635cat >>confdefs.h <<_ACEOF 8636#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 8637_ACEOF 8638 8639 8640fi 8641 8642 8643 8644 8645 8646 8647 8648 8649for ac_func in endutent getutent getutid getutline pututline setutent 8650do 8651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8652echo "$as_me:$LINENO: checking for $ac_func" >&5 8653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8654if eval "test \"\${$as_ac_var+set}\" = set"; then 8655 echo $ECHO_N "(cached) $ECHO_C" >&6 8656else 8657 cat >conftest.$ac_ext <<_ACEOF 8658/* confdefs.h. */ 8659_ACEOF 8660cat confdefs.h >>conftest.$ac_ext 8661cat >>conftest.$ac_ext <<_ACEOF 8662/* end confdefs.h. */ 8663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8664 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8665#define $ac_func innocuous_$ac_func 8666 8667/* System header to define __stub macros and hopefully few prototypes, 8668 which can conflict with char $ac_func (); below. 8669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8670 <limits.h> exists even on freestanding compilers. */ 8671 8672#ifdef __STDC__ 8673# include <limits.h> 8674#else 8675# include <assert.h> 8676#endif 8677 8678#undef $ac_func 8679 8680/* Override any gcc2 internal prototype to avoid an error. */ 8681#ifdef __cplusplus 8682extern "C" 8683{ 8684#endif 8685/* We use char because int might match the return type of a gcc2 8686 builtin and then its argument prototype would still apply. */ 8687char $ac_func (); 8688/* The GNU C library defines this for functions which it implements 8689 to always fail with ENOSYS. Some functions are actually named 8690 something starting with __ and the normal name is an alias. */ 8691#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8692choke me 8693#else 8694char (*f) () = $ac_func; 8695#endif 8696#ifdef __cplusplus 8697} 8698#endif 8699 8700int 8701main () 8702{ 8703return f != $ac_func; 8704 ; 8705 return 0; 8706} 8707_ACEOF 8708rm -f conftest.$ac_objext conftest$ac_exeext 8709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8710 (eval $ac_link) 2>conftest.er1 8711 ac_status=$? 8712 grep -v '^ *+' conftest.er1 >conftest.err 8713 rm -f conftest.er1 8714 cat conftest.err >&5 8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8716 (exit $ac_status); } && 8717 { ac_try='test -z "$ac_c_werror_flag" 8718 || test ! -s conftest.err' 8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8720 (eval $ac_try) 2>&5 8721 ac_status=$? 8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8723 (exit $ac_status); }; } && 8724 { ac_try='test -s conftest$ac_exeext' 8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8726 (eval $ac_try) 2>&5 8727 ac_status=$? 8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8729 (exit $ac_status); }; }; then 8730 eval "$as_ac_var=yes" 8731else 8732 echo "$as_me: failed program was:" >&5 8733sed 's/^/| /' conftest.$ac_ext >&5 8734 8735eval "$as_ac_var=no" 8736fi 8737rm -f conftest.err conftest.$ac_objext \ 8738 conftest$ac_exeext conftest.$ac_ext 8739fi 8740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8741echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8742if test `eval echo '${'$as_ac_var'}'` = yes; then 8743 cat >>confdefs.h <<_ACEOF 8744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8745_ACEOF 8746 8747fi 8748done 8749 8750 8751for ac_func in utmpname 8752do 8753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8754echo "$as_me:$LINENO: checking for $ac_func" >&5 8755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8756if eval "test \"\${$as_ac_var+set}\" = set"; then 8757 echo $ECHO_N "(cached) $ECHO_C" >&6 8758else 8759 cat >conftest.$ac_ext <<_ACEOF 8760/* confdefs.h. */ 8761_ACEOF 8762cat confdefs.h >>conftest.$ac_ext 8763cat >>conftest.$ac_ext <<_ACEOF 8764/* end confdefs.h. */ 8765/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8766 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8767#define $ac_func innocuous_$ac_func 8768 8769/* System header to define __stub macros and hopefully few prototypes, 8770 which can conflict with char $ac_func (); below. 8771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8772 <limits.h> exists even on freestanding compilers. */ 8773 8774#ifdef __STDC__ 8775# include <limits.h> 8776#else 8777# include <assert.h> 8778#endif 8779 8780#undef $ac_func 8781 8782/* Override any gcc2 internal prototype to avoid an error. */ 8783#ifdef __cplusplus 8784extern "C" 8785{ 8786#endif 8787/* We use char because int might match the return type of a gcc2 8788 builtin and then its argument prototype would still apply. */ 8789char $ac_func (); 8790/* The GNU C library defines this for functions which it implements 8791 to always fail with ENOSYS. Some functions are actually named 8792 something starting with __ and the normal name is an alias. */ 8793#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8794choke me 8795#else 8796char (*f) () = $ac_func; 8797#endif 8798#ifdef __cplusplus 8799} 8800#endif 8801 8802int 8803main () 8804{ 8805return f != $ac_func; 8806 ; 8807 return 0; 8808} 8809_ACEOF 8810rm -f conftest.$ac_objext conftest$ac_exeext 8811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8812 (eval $ac_link) 2>conftest.er1 8813 ac_status=$? 8814 grep -v '^ *+' conftest.er1 >conftest.err 8815 rm -f conftest.er1 8816 cat conftest.err >&5 8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8818 (exit $ac_status); } && 8819 { ac_try='test -z "$ac_c_werror_flag" 8820 || test ! -s conftest.err' 8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8822 (eval $ac_try) 2>&5 8823 ac_status=$? 8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8825 (exit $ac_status); }; } && 8826 { ac_try='test -s conftest$ac_exeext' 8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8828 (eval $ac_try) 2>&5 8829 ac_status=$? 8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8831 (exit $ac_status); }; }; then 8832 eval "$as_ac_var=yes" 8833else 8834 echo "$as_me: failed program was:" >&5 8835sed 's/^/| /' conftest.$ac_ext >&5 8836 8837eval "$as_ac_var=no" 8838fi 8839rm -f conftest.err conftest.$ac_objext \ 8840 conftest$ac_exeext conftest.$ac_ext 8841fi 8842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8843echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8844if test `eval echo '${'$as_ac_var'}'` = yes; then 8845 cat >>confdefs.h <<_ACEOF 8846#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8847_ACEOF 8848 8849fi 8850done 8851 8852 8853 8854 8855 8856 8857for ac_func in endutxent getutxent getutxid getutxline pututxline 8858do 8859as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8860echo "$as_me:$LINENO: checking for $ac_func" >&5 8861echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8862if eval "test \"\${$as_ac_var+set}\" = set"; then 8863 echo $ECHO_N "(cached) $ECHO_C" >&6 8864else 8865 cat >conftest.$ac_ext <<_ACEOF 8866/* confdefs.h. */ 8867_ACEOF 8868cat confdefs.h >>conftest.$ac_ext 8869cat >>conftest.$ac_ext <<_ACEOF 8870/* end confdefs.h. */ 8871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8872 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8873#define $ac_func innocuous_$ac_func 8874 8875/* System header to define __stub macros and hopefully few prototypes, 8876 which can conflict with char $ac_func (); below. 8877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8878 <limits.h> exists even on freestanding compilers. */ 8879 8880#ifdef __STDC__ 8881# include <limits.h> 8882#else 8883# include <assert.h> 8884#endif 8885 8886#undef $ac_func 8887 8888/* Override any gcc2 internal prototype to avoid an error. */ 8889#ifdef __cplusplus 8890extern "C" 8891{ 8892#endif 8893/* We use char because int might match the return type of a gcc2 8894 builtin and then its argument prototype would still apply. */ 8895char $ac_func (); 8896/* The GNU C library defines this for functions which it implements 8897 to always fail with ENOSYS. Some functions are actually named 8898 something starting with __ and the normal name is an alias. */ 8899#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8900choke me 8901#else 8902char (*f) () = $ac_func; 8903#endif 8904#ifdef __cplusplus 8905} 8906#endif 8907 8908int 8909main () 8910{ 8911return f != $ac_func; 8912 ; 8913 return 0; 8914} 8915_ACEOF 8916rm -f conftest.$ac_objext conftest$ac_exeext 8917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8918 (eval $ac_link) 2>conftest.er1 8919 ac_status=$? 8920 grep -v '^ *+' conftest.er1 >conftest.err 8921 rm -f conftest.er1 8922 cat conftest.err >&5 8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8924 (exit $ac_status); } && 8925 { ac_try='test -z "$ac_c_werror_flag" 8926 || test ! -s conftest.err' 8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8928 (eval $ac_try) 2>&5 8929 ac_status=$? 8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8931 (exit $ac_status); }; } && 8932 { ac_try='test -s conftest$ac_exeext' 8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8934 (eval $ac_try) 2>&5 8935 ac_status=$? 8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8937 (exit $ac_status); }; }; then 8938 eval "$as_ac_var=yes" 8939else 8940 echo "$as_me: failed program was:" >&5 8941sed 's/^/| /' conftest.$ac_ext >&5 8942 8943eval "$as_ac_var=no" 8944fi 8945rm -f conftest.err conftest.$ac_objext \ 8946 conftest$ac_exeext conftest.$ac_ext 8947fi 8948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8949echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8950if test `eval echo '${'$as_ac_var'}'` = yes; then 8951 cat >>confdefs.h <<_ACEOF 8952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8953_ACEOF 8954 8955fi 8956done 8957 8958 8959 8960for ac_func in setutxent utmpxname 8961do 8962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8963echo "$as_me:$LINENO: checking for $ac_func" >&5 8964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8965if eval "test \"\${$as_ac_var+set}\" = set"; then 8966 echo $ECHO_N "(cached) $ECHO_C" >&6 8967else 8968 cat >conftest.$ac_ext <<_ACEOF 8969/* confdefs.h. */ 8970_ACEOF 8971cat confdefs.h >>conftest.$ac_ext 8972cat >>conftest.$ac_ext <<_ACEOF 8973/* end confdefs.h. */ 8974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8975 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8976#define $ac_func innocuous_$ac_func 8977 8978/* System header to define __stub macros and hopefully few prototypes, 8979 which can conflict with char $ac_func (); below. 8980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8981 <limits.h> exists even on freestanding compilers. */ 8982 8983#ifdef __STDC__ 8984# include <limits.h> 8985#else 8986# include <assert.h> 8987#endif 8988 8989#undef $ac_func 8990 8991/* Override any gcc2 internal prototype to avoid an error. */ 8992#ifdef __cplusplus 8993extern "C" 8994{ 8995#endif 8996/* We use char because int might match the return type of a gcc2 8997 builtin and then its argument prototype would still apply. */ 8998char $ac_func (); 8999/* The GNU C library defines this for functions which it implements 9000 to always fail with ENOSYS. Some functions are actually named 9001 something starting with __ and the normal name is an alias. */ 9002#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9003choke me 9004#else 9005char (*f) () = $ac_func; 9006#endif 9007#ifdef __cplusplus 9008} 9009#endif 9010 9011int 9012main () 9013{ 9014return f != $ac_func; 9015 ; 9016 return 0; 9017} 9018_ACEOF 9019rm -f conftest.$ac_objext conftest$ac_exeext 9020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9021 (eval $ac_link) 2>conftest.er1 9022 ac_status=$? 9023 grep -v '^ *+' conftest.er1 >conftest.err 9024 rm -f conftest.er1 9025 cat conftest.err >&5 9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9027 (exit $ac_status); } && 9028 { ac_try='test -z "$ac_c_werror_flag" 9029 || test ! -s conftest.err' 9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9031 (eval $ac_try) 2>&5 9032 ac_status=$? 9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9034 (exit $ac_status); }; } && 9035 { ac_try='test -s conftest$ac_exeext' 9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9037 (eval $ac_try) 2>&5 9038 ac_status=$? 9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9040 (exit $ac_status); }; }; then 9041 eval "$as_ac_var=yes" 9042else 9043 echo "$as_me: failed program was:" >&5 9044sed 's/^/| /' conftest.$ac_ext >&5 9045 9046eval "$as_ac_var=no" 9047fi 9048rm -f conftest.err conftest.$ac_objext \ 9049 conftest$ac_exeext conftest.$ac_ext 9050fi 9051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9052echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9053if test `eval echo '${'$as_ac_var'}'` = yes; then 9054 cat >>confdefs.h <<_ACEOF 9055#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9056_ACEOF 9057 9058fi 9059done 9060 9061 9062 9063 9064for ac_func in logout updwtmp logwtmp 9065do 9066as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9067echo "$as_me:$LINENO: checking for $ac_func" >&5 9068echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9069if eval "test \"\${$as_ac_var+set}\" = set"; then 9070 echo $ECHO_N "(cached) $ECHO_C" >&6 9071else 9072 cat >conftest.$ac_ext <<_ACEOF 9073/* confdefs.h. */ 9074_ACEOF 9075cat confdefs.h >>conftest.$ac_ext 9076cat >>conftest.$ac_ext <<_ACEOF 9077/* end confdefs.h. */ 9078/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9079 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9080#define $ac_func innocuous_$ac_func 9081 9082/* System header to define __stub macros and hopefully few prototypes, 9083 which can conflict with char $ac_func (); below. 9084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9085 <limits.h> exists even on freestanding compilers. */ 9086 9087#ifdef __STDC__ 9088# include <limits.h> 9089#else 9090# include <assert.h> 9091#endif 9092 9093#undef $ac_func 9094 9095/* Override any gcc2 internal prototype to avoid an error. */ 9096#ifdef __cplusplus 9097extern "C" 9098{ 9099#endif 9100/* We use char because int might match the return type of a gcc2 9101 builtin and then its argument prototype would still apply. */ 9102char $ac_func (); 9103/* The GNU C library defines this for functions which it implements 9104 to always fail with ENOSYS. Some functions are actually named 9105 something starting with __ and the normal name is an alias. */ 9106#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9107choke me 9108#else 9109char (*f) () = $ac_func; 9110#endif 9111#ifdef __cplusplus 9112} 9113#endif 9114 9115int 9116main () 9117{ 9118return f != $ac_func; 9119 ; 9120 return 0; 9121} 9122_ACEOF 9123rm -f conftest.$ac_objext conftest$ac_exeext 9124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9125 (eval $ac_link) 2>conftest.er1 9126 ac_status=$? 9127 grep -v '^ *+' conftest.er1 >conftest.err 9128 rm -f conftest.er1 9129 cat conftest.err >&5 9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9131 (exit $ac_status); } && 9132 { ac_try='test -z "$ac_c_werror_flag" 9133 || test ! -s conftest.err' 9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9135 (eval $ac_try) 2>&5 9136 ac_status=$? 9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9138 (exit $ac_status); }; } && 9139 { ac_try='test -s conftest$ac_exeext' 9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9141 (eval $ac_try) 2>&5 9142 ac_status=$? 9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9144 (exit $ac_status); }; }; then 9145 eval "$as_ac_var=yes" 9146else 9147 echo "$as_me: failed program was:" >&5 9148sed 's/^/| /' conftest.$ac_ext >&5 9149 9150eval "$as_ac_var=no" 9151fi 9152rm -f conftest.err conftest.$ac_objext \ 9153 conftest$ac_exeext conftest.$ac_ext 9154fi 9155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9156echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9157if test `eval echo '${'$as_ac_var'}'` = yes; then 9158 cat >>confdefs.h <<_ACEOF 9159#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9160_ACEOF 9161 9162fi 9163done 9164 9165 9166 9167# Check whether --enable-lastlog or --disable-lastlog was given. 9168if test "${enable_lastlog+set}" = set; then 9169 enableval="$enable_lastlog" 9170 9171cat >>confdefs.h <<\_ACEOF 9172#define DISABLE_LASTLOG 9173_ACEOF 9174 9175 9176fi; 9177# Check whether --enable-utmp or --disable-utmp was given. 9178if test "${enable_utmp+set}" = set; then 9179 enableval="$enable_utmp" 9180 9181cat >>confdefs.h <<\_ACEOF 9182#define DISABLE_UTMP 9183_ACEOF 9184 9185 9186fi; 9187# Check whether --enable-utmpx or --disable-utmpx was given. 9188if test "${enable_utmpx+set}" = set; then 9189 enableval="$enable_utmpx" 9190 9191cat >>confdefs.h <<\_ACEOF 9192#define DISABLE_UTMPX 9193_ACEOF 9194 9195 9196fi; 9197# Check whether --enable-wtmp or --disable-wtmp was given. 9198if test "${enable_wtmp+set}" = set; then 9199 enableval="$enable_wtmp" 9200 9201cat >>confdefs.h <<\_ACEOF 9202#define DISABLE_WTMP 9203_ACEOF 9204 9205 9206fi; 9207# Check whether --enable-wtmpx or --disable-wtmpx was given. 9208if test "${enable_wtmpx+set}" = set; then 9209 enableval="$enable_wtmpx" 9210 9211cat >>confdefs.h <<\_ACEOF 9212#define DISABLE_WTMPX 9213_ACEOF 9214 9215 9216fi; 9217# Check whether --enable-loginfunc or --disable-loginfunc was given. 9218if test "${enable_loginfunc+set}" = set; then 9219 enableval="$enable_loginfunc" 9220 no_loginfunc_check=1 9221 { echo "$as_me:$LINENO: Not using login() etc" >&5 9222echo "$as_me: Not using login() etc" >&6;} 9223 9224fi; 9225# Check whether --enable-pututline or --disable-pututline was given. 9226if test "${enable_pututline+set}" = set; then 9227 enableval="$enable_pututline" 9228 9229cat >>confdefs.h <<\_ACEOF 9230#define DISABLE_PUTUTLINE 9231_ACEOF 9232 9233 9234fi; 9235# Check whether --enable-pututxline or --disable-pututxline was given. 9236if test "${enable_pututxline+set}" = set; then 9237 enableval="$enable_pututxline" 9238 9239cat >>confdefs.h <<\_ACEOF 9240#define DISABLE_PUTUTXLINE 9241_ACEOF 9242 9243 9244fi; 9245 9246# Check whether --with-lastlog or --without-lastlog was given. 9247if test "${with_lastlog+set}" = set; then 9248 withval="$with_lastlog" 9249 9250 if test "x$withval" = "xno" ; then 9251 cat >>confdefs.h <<\_ACEOF 9252#define DISABLE_LASTLOG 1 9253_ACEOF 9254 9255 else 9256 conf_lastlog_location=$withval 9257 fi 9258 9259 9260fi; 9261 9262if test -z "$no_loginfunc_check"; then 9263 echo "$as_me:$LINENO: checking for library containing login" >&5 9264echo $ECHO_N "checking for library containing login... $ECHO_C" >&6 9265if test "${ac_cv_search_login+set}" = set; then 9266 echo $ECHO_N "(cached) $ECHO_C" >&6 9267else 9268 ac_func_search_save_LIBS=$LIBS 9269ac_cv_search_login=no 9270cat >conftest.$ac_ext <<_ACEOF 9271/* confdefs.h. */ 9272_ACEOF 9273cat confdefs.h >>conftest.$ac_ext 9274cat >>conftest.$ac_ext <<_ACEOF 9275/* end confdefs.h. */ 9276 9277/* Override any gcc2 internal prototype to avoid an error. */ 9278#ifdef __cplusplus 9279extern "C" 9280#endif 9281/* We use char because int might match the return type of a gcc2 9282 builtin and then its argument prototype would still apply. */ 9283char login (); 9284int 9285main () 9286{ 9287login (); 9288 ; 9289 return 0; 9290} 9291_ACEOF 9292rm -f conftest.$ac_objext conftest$ac_exeext 9293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9294 (eval $ac_link) 2>conftest.er1 9295 ac_status=$? 9296 grep -v '^ *+' conftest.er1 >conftest.err 9297 rm -f conftest.er1 9298 cat conftest.err >&5 9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9300 (exit $ac_status); } && 9301 { ac_try='test -z "$ac_c_werror_flag" 9302 || test ! -s conftest.err' 9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9304 (eval $ac_try) 2>&5 9305 ac_status=$? 9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9307 (exit $ac_status); }; } && 9308 { ac_try='test -s conftest$ac_exeext' 9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9310 (eval $ac_try) 2>&5 9311 ac_status=$? 9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9313 (exit $ac_status); }; }; then 9314 ac_cv_search_login="none required" 9315else 9316 echo "$as_me: failed program was:" >&5 9317sed 's/^/| /' conftest.$ac_ext >&5 9318 9319fi 9320rm -f conftest.err conftest.$ac_objext \ 9321 conftest$ac_exeext conftest.$ac_ext 9322if test "$ac_cv_search_login" = no; then 9323 for ac_lib in util bsd; do 9324 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9325 cat >conftest.$ac_ext <<_ACEOF 9326/* confdefs.h. */ 9327_ACEOF 9328cat confdefs.h >>conftest.$ac_ext 9329cat >>conftest.$ac_ext <<_ACEOF 9330/* end confdefs.h. */ 9331 9332/* Override any gcc2 internal prototype to avoid an error. */ 9333#ifdef __cplusplus 9334extern "C" 9335#endif 9336/* We use char because int might match the return type of a gcc2 9337 builtin and then its argument prototype would still apply. */ 9338char login (); 9339int 9340main () 9341{ 9342login (); 9343 ; 9344 return 0; 9345} 9346_ACEOF 9347rm -f conftest.$ac_objext conftest$ac_exeext 9348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9349 (eval $ac_link) 2>conftest.er1 9350 ac_status=$? 9351 grep -v '^ *+' conftest.er1 >conftest.err 9352 rm -f conftest.er1 9353 cat conftest.err >&5 9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9355 (exit $ac_status); } && 9356 { ac_try='test -z "$ac_c_werror_flag" 9357 || test ! -s conftest.err' 9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9359 (eval $ac_try) 2>&5 9360 ac_status=$? 9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9362 (exit $ac_status); }; } && 9363 { ac_try='test -s conftest$ac_exeext' 9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9365 (eval $ac_try) 2>&5 9366 ac_status=$? 9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9368 (exit $ac_status); }; }; then 9369 ac_cv_search_login="-l$ac_lib" 9370break 9371else 9372 echo "$as_me: failed program was:" >&5 9373sed 's/^/| /' conftest.$ac_ext >&5 9374 9375fi 9376rm -f conftest.err conftest.$ac_objext \ 9377 conftest$ac_exeext conftest.$ac_ext 9378 done 9379fi 9380LIBS=$ac_func_search_save_LIBS 9381fi 9382echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 9383echo "${ECHO_T}$ac_cv_search_login" >&6 9384if test "$ac_cv_search_login" != no; then 9385 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS" 9386 9387cat >>confdefs.h <<\_ACEOF 9388#define HAVE_LOGIN 9389_ACEOF 9390 9391fi 9392 9393 9394 9395 9396for ac_func in logout updwtmp logwtmp 9397do 9398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9399echo "$as_me:$LINENO: checking for $ac_func" >&5 9400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9401if eval "test \"\${$as_ac_var+set}\" = set"; then 9402 echo $ECHO_N "(cached) $ECHO_C" >&6 9403else 9404 cat >conftest.$ac_ext <<_ACEOF 9405/* confdefs.h. */ 9406_ACEOF 9407cat confdefs.h >>conftest.$ac_ext 9408cat >>conftest.$ac_ext <<_ACEOF 9409/* end confdefs.h. */ 9410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9411 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9412#define $ac_func innocuous_$ac_func 9413 9414/* System header to define __stub macros and hopefully few prototypes, 9415 which can conflict with char $ac_func (); below. 9416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9417 <limits.h> exists even on freestanding compilers. */ 9418 9419#ifdef __STDC__ 9420# include <limits.h> 9421#else 9422# include <assert.h> 9423#endif 9424 9425#undef $ac_func 9426 9427/* Override any gcc2 internal prototype to avoid an error. */ 9428#ifdef __cplusplus 9429extern "C" 9430{ 9431#endif 9432/* We use char because int might match the return type of a gcc2 9433 builtin and then its argument prototype would still apply. */ 9434char $ac_func (); 9435/* The GNU C library defines this for functions which it implements 9436 to always fail with ENOSYS. Some functions are actually named 9437 something starting with __ and the normal name is an alias. */ 9438#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9439choke me 9440#else 9441char (*f) () = $ac_func; 9442#endif 9443#ifdef __cplusplus 9444} 9445#endif 9446 9447int 9448main () 9449{ 9450return f != $ac_func; 9451 ; 9452 return 0; 9453} 9454_ACEOF 9455rm -f conftest.$ac_objext conftest$ac_exeext 9456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9457 (eval $ac_link) 2>conftest.er1 9458 ac_status=$? 9459 grep -v '^ *+' conftest.er1 >conftest.err 9460 rm -f conftest.er1 9461 cat conftest.err >&5 9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9463 (exit $ac_status); } && 9464 { ac_try='test -z "$ac_c_werror_flag" 9465 || test ! -s conftest.err' 9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9467 (eval $ac_try) 2>&5 9468 ac_status=$? 9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9470 (exit $ac_status); }; } && 9471 { ac_try='test -s conftest$ac_exeext' 9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9473 (eval $ac_try) 2>&5 9474 ac_status=$? 9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9476 (exit $ac_status); }; }; then 9477 eval "$as_ac_var=yes" 9478else 9479 echo "$as_me: failed program was:" >&5 9480sed 's/^/| /' conftest.$ac_ext >&5 9481 9482eval "$as_ac_var=no" 9483fi 9484rm -f conftest.err conftest.$ac_objext \ 9485 conftest$ac_exeext conftest.$ac_ext 9486fi 9487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9489if test `eval echo '${'$as_ac_var'}'` = yes; then 9490 cat >>confdefs.h <<_ACEOF 9491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9492_ACEOF 9493 9494fi 9495done 9496 9497fi 9498 9499 9500echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 9501echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6 9502cat >conftest.$ac_ext <<_ACEOF 9503/* confdefs.h. */ 9504_ACEOF 9505cat confdefs.h >>conftest.$ac_ext 9506cat >>conftest.$ac_ext <<_ACEOF 9507/* end confdefs.h. */ 9508 9509#include <sys/types.h> 9510#include <utmp.h> 9511#ifdef HAVE_LASTLOG_H 9512# include <lastlog.h> 9513#endif 9514#ifdef HAVE_PATHS_H 9515# include <paths.h> 9516#endif 9517#ifdef HAVE_LOGIN_H 9518# include <login.h> 9519#endif 9520 9521int 9522main () 9523{ 9524 char *lastlog = LASTLOG_FILE; 9525 ; 9526 return 0; 9527} 9528_ACEOF 9529rm -f conftest.$ac_objext 9530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9531 (eval $ac_compile) 2>conftest.er1 9532 ac_status=$? 9533 grep -v '^ *+' conftest.er1 >conftest.err 9534 rm -f conftest.er1 9535 cat conftest.err >&5 9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9537 (exit $ac_status); } && 9538 { ac_try='test -z "$ac_c_werror_flag" 9539 || test ! -s conftest.err' 9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9541 (eval $ac_try) 2>&5 9542 ac_status=$? 9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9544 (exit $ac_status); }; } && 9545 { ac_try='test -s conftest.$ac_objext' 9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9547 (eval $ac_try) 2>&5 9548 ac_status=$? 9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9550 (exit $ac_status); }; }; then 9551 echo "$as_me:$LINENO: result: yes" >&5 9552echo "${ECHO_T}yes" >&6 9553else 9554 echo "$as_me: failed program was:" >&5 9555sed 's/^/| /' conftest.$ac_ext >&5 9556 9557 9558 echo "$as_me:$LINENO: result: no" >&5 9559echo "${ECHO_T}no" >&6 9560 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 9561echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6 9562 cat >conftest.$ac_ext <<_ACEOF 9563/* confdefs.h. */ 9564_ACEOF 9565cat confdefs.h >>conftest.$ac_ext 9566cat >>conftest.$ac_ext <<_ACEOF 9567/* end confdefs.h. */ 9568 9569#include <sys/types.h> 9570#include <utmp.h> 9571#ifdef HAVE_LASTLOG_H 9572# include <lastlog.h> 9573#endif 9574#ifdef HAVE_PATHS_H 9575# include <paths.h> 9576#endif 9577 9578int 9579main () 9580{ 9581 char *lastlog = _PATH_LASTLOG; 9582 ; 9583 return 0; 9584} 9585_ACEOF 9586rm -f conftest.$ac_objext 9587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9588 (eval $ac_compile) 2>conftest.er1 9589 ac_status=$? 9590 grep -v '^ *+' conftest.er1 >conftest.err 9591 rm -f conftest.er1 9592 cat conftest.err >&5 9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9594 (exit $ac_status); } && 9595 { ac_try='test -z "$ac_c_werror_flag" 9596 || test ! -s conftest.err' 9597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9598 (eval $ac_try) 2>&5 9599 ac_status=$? 9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9601 (exit $ac_status); }; } && 9602 { ac_try='test -s conftest.$ac_objext' 9603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9604 (eval $ac_try) 2>&5 9605 ac_status=$? 9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9607 (exit $ac_status); }; }; then 9608 echo "$as_me:$LINENO: result: yes" >&5 9609echo "${ECHO_T}yes" >&6 9610else 9611 echo "$as_me: failed program was:" >&5 9612sed 's/^/| /' conftest.$ac_ext >&5 9613 9614 9615 echo "$as_me:$LINENO: result: no" >&5 9616echo "${ECHO_T}no" >&6 9617 system_lastlog_path=no 9618 9619fi 9620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9621 9622 9623fi 9624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9625 9626if test -z "$conf_lastlog_location"; then 9627 if test x"$system_lastlog_path" = x"no" ; then 9628 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do 9629 if (test -d "$f" || test -f "$f") ; then 9630 conf_lastlog_location=$f 9631 fi 9632 done 9633 if test -z "$conf_lastlog_location"; then 9634 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 9635echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} 9636 fi 9637 fi 9638fi 9639 9640if test -n "$conf_lastlog_location"; then 9641 9642cat >>confdefs.h <<_ACEOF 9643#define CONF_LASTLOG_FILE "$conf_lastlog_location" 9644_ACEOF 9645 9646fi 9647 9648echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 9649echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6 9650cat >conftest.$ac_ext <<_ACEOF 9651/* confdefs.h. */ 9652_ACEOF 9653cat confdefs.h >>conftest.$ac_ext 9654cat >>conftest.$ac_ext <<_ACEOF 9655/* end confdefs.h. */ 9656 9657#include <sys/types.h> 9658#include <utmp.h> 9659#ifdef HAVE_PATHS_H 9660# include <paths.h> 9661#endif 9662 9663int 9664main () 9665{ 9666 char *utmp = UTMP_FILE; 9667 ; 9668 return 0; 9669} 9670_ACEOF 9671rm -f conftest.$ac_objext 9672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9673 (eval $ac_compile) 2>conftest.er1 9674 ac_status=$? 9675 grep -v '^ *+' conftest.er1 >conftest.err 9676 rm -f conftest.er1 9677 cat conftest.err >&5 9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9679 (exit $ac_status); } && 9680 { ac_try='test -z "$ac_c_werror_flag" 9681 || test ! -s conftest.err' 9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9683 (eval $ac_try) 2>&5 9684 ac_status=$? 9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9686 (exit $ac_status); }; } && 9687 { ac_try='test -s conftest.$ac_objext' 9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9689 (eval $ac_try) 2>&5 9690 ac_status=$? 9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9692 (exit $ac_status); }; }; then 9693 echo "$as_me:$LINENO: result: yes" >&5 9694echo "${ECHO_T}yes" >&6 9695else 9696 echo "$as_me: failed program was:" >&5 9697sed 's/^/| /' conftest.$ac_ext >&5 9698 9699 echo "$as_me:$LINENO: result: no" >&5 9700echo "${ECHO_T}no" >&6 9701 system_utmp_path=no 9702 9703fi 9704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9705if test -z "$conf_utmp_location"; then 9706 if test x"$system_utmp_path" = x"no" ; then 9707 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do 9708 if test -f $f ; then 9709 conf_utmp_location=$f 9710 fi 9711 done 9712 if test -z "$conf_utmp_location"; then 9713 cat >>confdefs.h <<\_ACEOF 9714#define DISABLE_UTMP 1 9715_ACEOF 9716 9717 fi 9718 fi 9719fi 9720if test -n "$conf_utmp_location"; then 9721 9722cat >>confdefs.h <<_ACEOF 9723#define CONF_UTMP_FILE "$conf_utmp_location" 9724_ACEOF 9725 9726fi 9727 9728echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 9729echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6 9730cat >conftest.$ac_ext <<_ACEOF 9731/* confdefs.h. */ 9732_ACEOF 9733cat confdefs.h >>conftest.$ac_ext 9734cat >>conftest.$ac_ext <<_ACEOF 9735/* end confdefs.h. */ 9736 9737#include <sys/types.h> 9738#include <utmp.h> 9739#ifdef HAVE_PATHS_H 9740# include <paths.h> 9741#endif 9742 9743int 9744main () 9745{ 9746 char *wtmp = WTMP_FILE; 9747 ; 9748 return 0; 9749} 9750_ACEOF 9751rm -f conftest.$ac_objext 9752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9753 (eval $ac_compile) 2>conftest.er1 9754 ac_status=$? 9755 grep -v '^ *+' conftest.er1 >conftest.err 9756 rm -f conftest.er1 9757 cat conftest.err >&5 9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9759 (exit $ac_status); } && 9760 { ac_try='test -z "$ac_c_werror_flag" 9761 || test ! -s conftest.err' 9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9763 (eval $ac_try) 2>&5 9764 ac_status=$? 9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9766 (exit $ac_status); }; } && 9767 { ac_try='test -s conftest.$ac_objext' 9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9769 (eval $ac_try) 2>&5 9770 ac_status=$? 9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9772 (exit $ac_status); }; }; then 9773 echo "$as_me:$LINENO: result: yes" >&5 9774echo "${ECHO_T}yes" >&6 9775else 9776 echo "$as_me: failed program was:" >&5 9777sed 's/^/| /' conftest.$ac_ext >&5 9778 9779 echo "$as_me:$LINENO: result: no" >&5 9780echo "${ECHO_T}no" >&6 9781 system_wtmp_path=no 9782 9783fi 9784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9785if test -z "$conf_wtmp_location"; then 9786 if test x"$system_wtmp_path" = x"no" ; then 9787 for f in /usr/adm/wtmp /var/log/wtmp; do 9788 if test -f $f ; then 9789 conf_wtmp_location=$f 9790 fi 9791 done 9792 if test -z "$conf_wtmp_location"; then 9793 cat >>confdefs.h <<\_ACEOF 9794#define DISABLE_WTMP 1 9795_ACEOF 9796 9797 fi 9798 fi 9799fi 9800if test -n "$conf_wtmp_location"; then 9801 9802cat >>confdefs.h <<_ACEOF 9803#define CONF_WTMP_FILE "$conf_wtmp_location" 9804_ACEOF 9805 9806fi 9807 9808 9809echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 9810echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6 9811cat >conftest.$ac_ext <<_ACEOF 9812/* confdefs.h. */ 9813_ACEOF 9814cat confdefs.h >>conftest.$ac_ext 9815cat >>conftest.$ac_ext <<_ACEOF 9816/* end confdefs.h. */ 9817 9818#include <sys/types.h> 9819#include <utmp.h> 9820#ifdef HAVE_UTMPX_H 9821#include <utmpx.h> 9822#endif 9823#ifdef HAVE_PATHS_H 9824# include <paths.h> 9825#endif 9826 9827int 9828main () 9829{ 9830 char *utmpx = UTMPX_FILE; 9831 ; 9832 return 0; 9833} 9834_ACEOF 9835rm -f conftest.$ac_objext 9836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9837 (eval $ac_compile) 2>conftest.er1 9838 ac_status=$? 9839 grep -v '^ *+' conftest.er1 >conftest.err 9840 rm -f conftest.er1 9841 cat conftest.err >&5 9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9843 (exit $ac_status); } && 9844 { ac_try='test -z "$ac_c_werror_flag" 9845 || test ! -s conftest.err' 9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9847 (eval $ac_try) 2>&5 9848 ac_status=$? 9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9850 (exit $ac_status); }; } && 9851 { ac_try='test -s conftest.$ac_objext' 9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9853 (eval $ac_try) 2>&5 9854 ac_status=$? 9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9856 (exit $ac_status); }; }; then 9857 echo "$as_me:$LINENO: result: yes" >&5 9858echo "${ECHO_T}yes" >&6 9859else 9860 echo "$as_me: failed program was:" >&5 9861sed 's/^/| /' conftest.$ac_ext >&5 9862 9863 echo "$as_me:$LINENO: result: no" >&5 9864echo "${ECHO_T}no" >&6 9865 system_utmpx_path=no 9866 9867fi 9868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9869if test -z "$conf_utmpx_location"; then 9870 if test x"$system_utmpx_path" = x"no" ; then 9871 cat >>confdefs.h <<\_ACEOF 9872#define DISABLE_UTMPX 1 9873_ACEOF 9874 9875 fi 9876else 9877 9878cat >>confdefs.h <<_ACEOF 9879#define CONF_UTMPX_FILE "$conf_utmpx_location" 9880_ACEOF 9881 9882fi 9883 9884echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 9885echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6 9886cat >conftest.$ac_ext <<_ACEOF 9887/* confdefs.h. */ 9888_ACEOF 9889cat confdefs.h >>conftest.$ac_ext 9890cat >>conftest.$ac_ext <<_ACEOF 9891/* end confdefs.h. */ 9892 9893#include <sys/types.h> 9894#include <utmp.h> 9895#ifdef HAVE_UTMPX_H 9896#include <utmpx.h> 9897#endif 9898#ifdef HAVE_PATHS_H 9899# include <paths.h> 9900#endif 9901 9902int 9903main () 9904{ 9905 char *wtmpx = WTMPX_FILE; 9906 ; 9907 return 0; 9908} 9909_ACEOF 9910rm -f conftest.$ac_objext 9911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9912 (eval $ac_compile) 2>conftest.er1 9913 ac_status=$? 9914 grep -v '^ *+' conftest.er1 >conftest.err 9915 rm -f conftest.er1 9916 cat conftest.err >&5 9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9918 (exit $ac_status); } && 9919 { ac_try='test -z "$ac_c_werror_flag" 9920 || test ! -s conftest.err' 9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9922 (eval $ac_try) 2>&5 9923 ac_status=$? 9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9925 (exit $ac_status); }; } && 9926 { ac_try='test -s conftest.$ac_objext' 9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9928 (eval $ac_try) 2>&5 9929 ac_status=$? 9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9931 (exit $ac_status); }; }; then 9932 echo "$as_me:$LINENO: result: yes" >&5 9933echo "${ECHO_T}yes" >&6 9934else 9935 echo "$as_me: failed program was:" >&5 9936sed 's/^/| /' conftest.$ac_ext >&5 9937 9938 echo "$as_me:$LINENO: result: no" >&5 9939echo "${ECHO_T}no" >&6 9940 system_wtmpx_path=no 9941 9942fi 9943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9944if test -z "$conf_wtmpx_location"; then 9945 if test x"$system_wtmpx_path" = x"no" ; then 9946 cat >>confdefs.h <<\_ACEOF 9947#define DISABLE_WTMPX 1 9948_ACEOF 9949 9950 fi 9951else 9952 9953cat >>confdefs.h <<_ACEOF 9954#define CONF_WTMPX_FILE "$conf_wtmpx_location" 9955_ACEOF 9956 9957fi 9958 9959# Checks for library functions. 9960if test $ac_cv_c_compiler_gnu = yes; then 9961 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 9962echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 9963if test "${ac_cv_prog_gcc_traditional+set}" = set; then 9964 echo $ECHO_N "(cached) $ECHO_C" >&6 9965else 9966 ac_pattern="Autoconf.*'x'" 9967 cat >conftest.$ac_ext <<_ACEOF 9968/* confdefs.h. */ 9969_ACEOF 9970cat confdefs.h >>conftest.$ac_ext 9971cat >>conftest.$ac_ext <<_ACEOF 9972/* end confdefs.h. */ 9973#include <sgtty.h> 9974Autoconf TIOCGETP 9975_ACEOF 9976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9977 $EGREP "$ac_pattern" >/dev/null 2>&1; then 9978 ac_cv_prog_gcc_traditional=yes 9979else 9980 ac_cv_prog_gcc_traditional=no 9981fi 9982rm -f conftest* 9983 9984 9985 if test $ac_cv_prog_gcc_traditional = no; then 9986 cat >conftest.$ac_ext <<_ACEOF 9987/* confdefs.h. */ 9988_ACEOF 9989cat confdefs.h >>conftest.$ac_ext 9990cat >>conftest.$ac_ext <<_ACEOF 9991/* end confdefs.h. */ 9992#include <termio.h> 9993Autoconf TCGETA 9994_ACEOF 9995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9996 $EGREP "$ac_pattern" >/dev/null 2>&1; then 9997 ac_cv_prog_gcc_traditional=yes 9998fi 9999rm -f conftest* 10000 10001 fi 10002fi 10003echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 10004echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 10005 if test $ac_cv_prog_gcc_traditional = yes; then 10006 CC="$CC -traditional" 10007 fi 10008fi 10009 10010echo "$as_me:$LINENO: checking for working memcmp" >&5 10011echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 10012if test "${ac_cv_func_memcmp_working+set}" = set; then 10013 echo $ECHO_N "(cached) $ECHO_C" >&6 10014else 10015 if test "$cross_compiling" = yes; then 10016 ac_cv_func_memcmp_working=no 10017else 10018 cat >conftest.$ac_ext <<_ACEOF 10019/* confdefs.h. */ 10020_ACEOF 10021cat confdefs.h >>conftest.$ac_ext 10022cat >>conftest.$ac_ext <<_ACEOF 10023/* end confdefs.h. */ 10024$ac_includes_default 10025int 10026main () 10027{ 10028 10029 /* Some versions of memcmp are not 8-bit clean. */ 10030 char c0 = 0x40, c1 = 0x80, c2 = 0x81; 10031 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 10032 exit (1); 10033 10034 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 10035 or more and with at least one buffer not starting on a 4-byte boundary. 10036 William Lewis provided this test program. */ 10037 { 10038 char foo[21]; 10039 char bar[21]; 10040 int i; 10041 for (i = 0; i < 4; i++) 10042 { 10043 char *a = foo + i; 10044 char *b = bar + i; 10045 strcpy (a, "--------01111111"); 10046 strcpy (b, "--------10000000"); 10047 if (memcmp (a, b, 16) >= 0) 10048 exit (1); 10049 } 10050 exit (0); 10051 } 10052 10053 ; 10054 return 0; 10055} 10056_ACEOF 10057rm -f conftest$ac_exeext 10058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10059 (eval $ac_link) 2>&5 10060 ac_status=$? 10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10064 (eval $ac_try) 2>&5 10065 ac_status=$? 10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10067 (exit $ac_status); }; }; then 10068 ac_cv_func_memcmp_working=yes 10069else 10070 echo "$as_me: program exited with status $ac_status" >&5 10071echo "$as_me: failed program was:" >&5 10072sed 's/^/| /' conftest.$ac_ext >&5 10073 10074( exit $ac_status ) 10075ac_cv_func_memcmp_working=no 10076fi 10077rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10078fi 10079fi 10080echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 10081echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 10082test $ac_cv_func_memcmp_working = no && case $LIBOBJS in 10083 "memcmp.$ac_objext" | \ 10084 *" memcmp.$ac_objext" | \ 10085 "memcmp.$ac_objext "* | \ 10086 *" memcmp.$ac_objext "* ) ;; 10087 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; 10088esac 10089 10090 10091 10092 10093for ac_header in sys/select.h sys/socket.h 10094do 10095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10096if eval "test \"\${$as_ac_Header+set}\" = set"; then 10097 echo "$as_me:$LINENO: checking for $ac_header" >&5 10098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10099if eval "test \"\${$as_ac_Header+set}\" = set"; then 10100 echo $ECHO_N "(cached) $ECHO_C" >&6 10101fi 10102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10104else 10105 # Is the header compilable? 10106echo "$as_me:$LINENO: checking $ac_header usability" >&5 10107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10108cat >conftest.$ac_ext <<_ACEOF 10109/* confdefs.h. */ 10110_ACEOF 10111cat confdefs.h >>conftest.$ac_ext 10112cat >>conftest.$ac_ext <<_ACEOF 10113/* end confdefs.h. */ 10114$ac_includes_default 10115#include <$ac_header> 10116_ACEOF 10117rm -f conftest.$ac_objext 10118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10119 (eval $ac_compile) 2>conftest.er1 10120 ac_status=$? 10121 grep -v '^ *+' conftest.er1 >conftest.err 10122 rm -f conftest.er1 10123 cat conftest.err >&5 10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10125 (exit $ac_status); } && 10126 { ac_try='test -z "$ac_c_werror_flag" 10127 || test ! -s conftest.err' 10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10129 (eval $ac_try) 2>&5 10130 ac_status=$? 10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10132 (exit $ac_status); }; } && 10133 { ac_try='test -s conftest.$ac_objext' 10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10135 (eval $ac_try) 2>&5 10136 ac_status=$? 10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10138 (exit $ac_status); }; }; then 10139 ac_header_compiler=yes 10140else 10141 echo "$as_me: failed program was:" >&5 10142sed 's/^/| /' conftest.$ac_ext >&5 10143 10144ac_header_compiler=no 10145fi 10146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10147echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10148echo "${ECHO_T}$ac_header_compiler" >&6 10149 10150# Is the header present? 10151echo "$as_me:$LINENO: checking $ac_header presence" >&5 10152echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10153cat >conftest.$ac_ext <<_ACEOF 10154/* confdefs.h. */ 10155_ACEOF 10156cat confdefs.h >>conftest.$ac_ext 10157cat >>conftest.$ac_ext <<_ACEOF 10158/* end confdefs.h. */ 10159#include <$ac_header> 10160_ACEOF 10161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10163 ac_status=$? 10164 grep -v '^ *+' conftest.er1 >conftest.err 10165 rm -f conftest.er1 10166 cat conftest.err >&5 10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10168 (exit $ac_status); } >/dev/null; then 10169 if test -s conftest.err; then 10170 ac_cpp_err=$ac_c_preproc_warn_flag 10171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10172 else 10173 ac_cpp_err= 10174 fi 10175else 10176 ac_cpp_err=yes 10177fi 10178if test -z "$ac_cpp_err"; then 10179 ac_header_preproc=yes 10180else 10181 echo "$as_me: failed program was:" >&5 10182sed 's/^/| /' conftest.$ac_ext >&5 10183 10184 ac_header_preproc=no 10185fi 10186rm -f conftest.err conftest.$ac_ext 10187echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10188echo "${ECHO_T}$ac_header_preproc" >&6 10189 10190# So? What about this header? 10191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10192 yes:no: ) 10193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10194echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10196echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10197 ac_header_preproc=yes 10198 ;; 10199 no:yes:* ) 10200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10201echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10203echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10205echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10207echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10209echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10211echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10212 ( 10213 cat <<\_ASBOX 10214## ------------------------------------------ ## 10215## Report this to the AC_PACKAGE_NAME lists. ## 10216## ------------------------------------------ ## 10217_ASBOX 10218 ) | 10219 sed "s/^/$as_me: WARNING: /" >&2 10220 ;; 10221esac 10222echo "$as_me:$LINENO: checking for $ac_header" >&5 10223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10224if eval "test \"\${$as_ac_Header+set}\" = set"; then 10225 echo $ECHO_N "(cached) $ECHO_C" >&6 10226else 10227 eval "$as_ac_Header=\$ac_header_preproc" 10228fi 10229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10230echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10231 10232fi 10233if test `eval echo '${'$as_ac_Header'}'` = yes; then 10234 cat >>confdefs.h <<_ACEOF 10235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10236_ACEOF 10237 10238fi 10239 10240done 10241 10242echo "$as_me:$LINENO: checking types of arguments for select" >&5 10243echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6 10244if test "${ac_cv_func_select_args+set}" = set; then 10245 echo $ECHO_N "(cached) $ECHO_C" >&6 10246else 10247 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 10248 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do 10249 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 10250 cat >conftest.$ac_ext <<_ACEOF 10251/* confdefs.h. */ 10252_ACEOF 10253cat confdefs.h >>conftest.$ac_ext 10254cat >>conftest.$ac_ext <<_ACEOF 10255/* end confdefs.h. */ 10256$ac_includes_default 10257#if HAVE_SYS_SELECT_H 10258# include <sys/select.h> 10259#endif 10260#if HAVE_SYS_SOCKET_H 10261# include <sys/socket.h> 10262#endif 10263 10264int 10265main () 10266{ 10267extern int select ($ac_arg1, 10268 $ac_arg234, $ac_arg234, $ac_arg234, 10269 $ac_arg5); 10270 ; 10271 return 0; 10272} 10273_ACEOF 10274rm -f conftest.$ac_objext 10275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10276 (eval $ac_compile) 2>conftest.er1 10277 ac_status=$? 10278 grep -v '^ *+' conftest.er1 >conftest.err 10279 rm -f conftest.er1 10280 cat conftest.err >&5 10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10282 (exit $ac_status); } && 10283 { ac_try='test -z "$ac_c_werror_flag" 10284 || test ! -s conftest.err' 10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10286 (eval $ac_try) 2>&5 10287 ac_status=$? 10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10289 (exit $ac_status); }; } && 10290 { ac_try='test -s conftest.$ac_objext' 10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10292 (eval $ac_try) 2>&5 10293 ac_status=$? 10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10295 (exit $ac_status); }; }; then 10296 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 10297else 10298 echo "$as_me: failed program was:" >&5 10299sed 's/^/| /' conftest.$ac_ext >&5 10300 10301fi 10302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10303 done 10304 done 10305done 10306# Provide a safe default value. 10307: ${ac_cv_func_select_args='int,int *,struct timeval *'} 10308 10309fi 10310echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 10311echo "${ECHO_T}$ac_cv_func_select_args" >&6 10312ac_save_IFS=$IFS; IFS=',' 10313set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 10314IFS=$ac_save_IFS 10315shift 10316 10317cat >>confdefs.h <<_ACEOF 10318#define SELECT_TYPE_ARG1 $1 10319_ACEOF 10320 10321 10322cat >>confdefs.h <<_ACEOF 10323#define SELECT_TYPE_ARG234 ($2) 10324_ACEOF 10325 10326 10327cat >>confdefs.h <<_ACEOF 10328#define SELECT_TYPE_ARG5 ($3) 10329_ACEOF 10330 10331rm -f conftest* 10332 10333echo "$as_me:$LINENO: checking return type of signal handlers" >&5 10334echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 10335if test "${ac_cv_type_signal+set}" = set; then 10336 echo $ECHO_N "(cached) $ECHO_C" >&6 10337else 10338 cat >conftest.$ac_ext <<_ACEOF 10339/* confdefs.h. */ 10340_ACEOF 10341cat confdefs.h >>conftest.$ac_ext 10342cat >>conftest.$ac_ext <<_ACEOF 10343/* end confdefs.h. */ 10344#include <sys/types.h> 10345#include <signal.h> 10346#ifdef signal 10347# undef signal 10348#endif 10349#ifdef __cplusplus 10350extern "C" void (*signal (int, void (*)(int)))(int); 10351#else 10352void (*signal ()) (); 10353#endif 10354 10355int 10356main () 10357{ 10358int i; 10359 ; 10360 return 0; 10361} 10362_ACEOF 10363rm -f conftest.$ac_objext 10364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10365 (eval $ac_compile) 2>conftest.er1 10366 ac_status=$? 10367 grep -v '^ *+' conftest.er1 >conftest.err 10368 rm -f conftest.er1 10369 cat conftest.err >&5 10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10371 (exit $ac_status); } && 10372 { ac_try='test -z "$ac_c_werror_flag" 10373 || test ! -s conftest.err' 10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10375 (eval $ac_try) 2>&5 10376 ac_status=$? 10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10378 (exit $ac_status); }; } && 10379 { ac_try='test -s conftest.$ac_objext' 10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10381 (eval $ac_try) 2>&5 10382 ac_status=$? 10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10384 (exit $ac_status); }; }; then 10385 ac_cv_type_signal=void 10386else 10387 echo "$as_me: failed program was:" >&5 10388sed 's/^/| /' conftest.$ac_ext >&5 10389 10390ac_cv_type_signal=int 10391fi 10392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10393fi 10394echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 10395echo "${ECHO_T}$ac_cv_type_signal" >&6 10396 10397cat >>confdefs.h <<_ACEOF 10398#define RETSIGTYPE $ac_cv_type_signal 10399_ACEOF 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419for ac_func in dup2 getspnam getusershell memset putenv select socket strdup clearenv strlcpy strlcat daemon basename _getpty getaddrinfo freeaddrinfo getnameinfo 10420do 10421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10422echo "$as_me:$LINENO: checking for $ac_func" >&5 10423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10424if eval "test \"\${$as_ac_var+set}\" = set"; then 10425 echo $ECHO_N "(cached) $ECHO_C" >&6 10426else 10427 cat >conftest.$ac_ext <<_ACEOF 10428/* confdefs.h. */ 10429_ACEOF 10430cat confdefs.h >>conftest.$ac_ext 10431cat >>conftest.$ac_ext <<_ACEOF 10432/* end confdefs.h. */ 10433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10434 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10435#define $ac_func innocuous_$ac_func 10436 10437/* System header to define __stub macros and hopefully few prototypes, 10438 which can conflict with char $ac_func (); below. 10439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10440 <limits.h> exists even on freestanding compilers. */ 10441 10442#ifdef __STDC__ 10443# include <limits.h> 10444#else 10445# include <assert.h> 10446#endif 10447 10448#undef $ac_func 10449 10450/* Override any gcc2 internal prototype to avoid an error. */ 10451#ifdef __cplusplus 10452extern "C" 10453{ 10454#endif 10455/* We use char because int might match the return type of a gcc2 10456 builtin and then its argument prototype would still apply. */ 10457char $ac_func (); 10458/* The GNU C library defines this for functions which it implements 10459 to always fail with ENOSYS. Some functions are actually named 10460 something starting with __ and the normal name is an alias. */ 10461#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10462choke me 10463#else 10464char (*f) () = $ac_func; 10465#endif 10466#ifdef __cplusplus 10467} 10468#endif 10469 10470int 10471main () 10472{ 10473return f != $ac_func; 10474 ; 10475 return 0; 10476} 10477_ACEOF 10478rm -f conftest.$ac_objext conftest$ac_exeext 10479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10480 (eval $ac_link) 2>conftest.er1 10481 ac_status=$? 10482 grep -v '^ *+' conftest.er1 >conftest.err 10483 rm -f conftest.er1 10484 cat conftest.err >&5 10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10486 (exit $ac_status); } && 10487 { ac_try='test -z "$ac_c_werror_flag" 10488 || test ! -s conftest.err' 10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10490 (eval $ac_try) 2>&5 10491 ac_status=$? 10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10493 (exit $ac_status); }; } && 10494 { ac_try='test -s conftest$ac_exeext' 10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10496 (eval $ac_try) 2>&5 10497 ac_status=$? 10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10499 (exit $ac_status); }; }; then 10500 eval "$as_ac_var=yes" 10501else 10502 echo "$as_me: failed program was:" >&5 10503sed 's/^/| /' conftest.$ac_ext >&5 10504 10505eval "$as_ac_var=no" 10506fi 10507rm -f conftest.err conftest.$ac_objext \ 10508 conftest$ac_exeext conftest.$ac_ext 10509fi 10510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10511echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10512if test `eval echo '${'$as_ac_var'}'` = yes; then 10513 cat >>confdefs.h <<_ACEOF 10514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10515_ACEOF 10516 10517fi 10518done 10519 10520 10521echo "$as_me:$LINENO: checking for library containing basename" >&5 10522echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6 10523if test "${ac_cv_search_basename+set}" = set; then 10524 echo $ECHO_N "(cached) $ECHO_C" >&6 10525else 10526 ac_func_search_save_LIBS=$LIBS 10527ac_cv_search_basename=no 10528cat >conftest.$ac_ext <<_ACEOF 10529/* confdefs.h. */ 10530_ACEOF 10531cat confdefs.h >>conftest.$ac_ext 10532cat >>conftest.$ac_ext <<_ACEOF 10533/* end confdefs.h. */ 10534 10535/* Override any gcc2 internal prototype to avoid an error. */ 10536#ifdef __cplusplus 10537extern "C" 10538#endif 10539/* We use char because int might match the return type of a gcc2 10540 builtin and then its argument prototype would still apply. */ 10541char basename (); 10542int 10543main () 10544{ 10545basename (); 10546 ; 10547 return 0; 10548} 10549_ACEOF 10550rm -f conftest.$ac_objext conftest$ac_exeext 10551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10552 (eval $ac_link) 2>conftest.er1 10553 ac_status=$? 10554 grep -v '^ *+' conftest.er1 >conftest.err 10555 rm -f conftest.er1 10556 cat conftest.err >&5 10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10558 (exit $ac_status); } && 10559 { ac_try='test -z "$ac_c_werror_flag" 10560 || test ! -s conftest.err' 10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10562 (eval $ac_try) 2>&5 10563 ac_status=$? 10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10565 (exit $ac_status); }; } && 10566 { ac_try='test -s conftest$ac_exeext' 10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10568 (eval $ac_try) 2>&5 10569 ac_status=$? 10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10571 (exit $ac_status); }; }; then 10572 ac_cv_search_basename="none required" 10573else 10574 echo "$as_me: failed program was:" >&5 10575sed 's/^/| /' conftest.$ac_ext >&5 10576 10577fi 10578rm -f conftest.err conftest.$ac_objext \ 10579 conftest$ac_exeext conftest.$ac_ext 10580if test "$ac_cv_search_basename" = no; then 10581 for ac_lib in gen; do 10582 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10583 cat >conftest.$ac_ext <<_ACEOF 10584/* confdefs.h. */ 10585_ACEOF 10586cat confdefs.h >>conftest.$ac_ext 10587cat >>conftest.$ac_ext <<_ACEOF 10588/* end confdefs.h. */ 10589 10590/* Override any gcc2 internal prototype to avoid an error. */ 10591#ifdef __cplusplus 10592extern "C" 10593#endif 10594/* We use char because int might match the return type of a gcc2 10595 builtin and then its argument prototype would still apply. */ 10596char basename (); 10597int 10598main () 10599{ 10600basename (); 10601 ; 10602 return 0; 10603} 10604_ACEOF 10605rm -f conftest.$ac_objext conftest$ac_exeext 10606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10607 (eval $ac_link) 2>conftest.er1 10608 ac_status=$? 10609 grep -v '^ *+' conftest.er1 >conftest.err 10610 rm -f conftest.er1 10611 cat conftest.err >&5 10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10613 (exit $ac_status); } && 10614 { ac_try='test -z "$ac_c_werror_flag" 10615 || test ! -s conftest.err' 10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10617 (eval $ac_try) 2>&5 10618 ac_status=$? 10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10620 (exit $ac_status); }; } && 10621 { ac_try='test -s conftest$ac_exeext' 10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10623 (eval $ac_try) 2>&5 10624 ac_status=$? 10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10626 (exit $ac_status); }; }; then 10627 ac_cv_search_basename="-l$ac_lib" 10628break 10629else 10630 echo "$as_me: failed program was:" >&5 10631sed 's/^/| /' conftest.$ac_ext >&5 10632 10633fi 10634rm -f conftest.err conftest.$ac_objext \ 10635 conftest$ac_exeext conftest.$ac_ext 10636 done 10637fi 10638LIBS=$ac_func_search_save_LIBS 10639fi 10640echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 10641echo "${ECHO_T}$ac_cv_search_basename" >&6 10642if test "$ac_cv_search_basename" != no; then 10643 test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS" 10644 cat >>confdefs.h <<\_ACEOF 10645#define HAVE_BASENAME 1 10646_ACEOF 10647 10648fi 10649 10650 10651# Solaris needs ptmx 10652if test -z "$no_ptmx_check" ; then 10653 if test x"$cross_compiling" = x"no" ; then 10654 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 10655echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6 10656if test "${ac_cv_file___dev_ptmx_+set}" = set; then 10657 echo $ECHO_N "(cached) $ECHO_C" >&6 10658else 10659 test "$cross_compiling" = yes && 10660 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 10661echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 10662 { (exit 1); exit 1; }; } 10663if test -r ""/dev/ptmx""; then 10664 ac_cv_file___dev_ptmx_=yes 10665else 10666 ac_cv_file___dev_ptmx_=no 10667fi 10668fi 10669echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 10670echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6 10671if test $ac_cv_file___dev_ptmx_ = yes; then 10672 10673cat >>confdefs.h <<\_ACEOF 10674#define USE_DEV_PTMX 10675_ACEOF 10676 10677fi 10678 10679 else 10680 { echo "$as_me:$LINENO: Not checking for /dev/ptmx, we're cross-compiling" >&5 10681echo "$as_me: Not checking for /dev/ptmx, we're cross-compiling" >&6;} 10682 fi 10683fi 10684 10685if test -z "$no_ptc_check" ; then 10686 if test x"$cross_compiling" = x"no" ; then 10687 echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 10688echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6 10689if test "${ac_cv_file___dev_ptc_+set}" = set; then 10690 echo $ECHO_N "(cached) $ECHO_C" >&6 10691else 10692 test "$cross_compiling" = yes && 10693 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 10694echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 10695 { (exit 1); exit 1; }; } 10696if test -r ""/dev/ptc""; then 10697 ac_cv_file___dev_ptc_=yes 10698else 10699 ac_cv_file___dev_ptc_=no 10700fi 10701fi 10702echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 10703echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6 10704if test $ac_cv_file___dev_ptc_ = yes; then 10705 10706cat >>confdefs.h <<\_ACEOF 10707#define HAVE_DEV_PTS_AND_PTC 10708_ACEOF 10709 10710fi 10711 10712 else 10713 { echo "$as_me:$LINENO: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&5 10714echo "$as_me: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&6;} 10715 fi 10716fi 10717 10718 10719 10720# XXX there must be a nicer way to do this 10721{ if $as_mkdir_p; then 10722 mkdir -p libtomcrypt/src/ciphers/aes 10723 else 10724 as_dir=libtomcrypt/src/ciphers/aes 10725 as_dirs= 10726 while test ! -d "$as_dir"; do 10727 as_dirs="$as_dir $as_dirs" 10728 as_dir=`(dirname "$as_dir") 2>/dev/null || 10729$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10730 X"$as_dir" : 'X\(//\)[^/]' \| \ 10731 X"$as_dir" : 'X\(//\)$' \| \ 10732 X"$as_dir" : 'X\(/\)' \| \ 10733 . : '\(.\)' 2>/dev/null || 10734echo X"$as_dir" | 10735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10736 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10737 /^X\(\/\/\)$/{ s//\1/; q; } 10738 /^X\(\/\).*/{ s//\1/; q; } 10739 s/.*/./; q'` 10740 done 10741 test ! -n "$as_dirs" || mkdir $as_dirs 10742 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/ciphers/aes" >&5 10743echo "$as_me: error: cannot create directory libtomcrypt/src/ciphers/aes" >&2;} 10744 { (exit 1); exit 1; }; }; } 10745 10746{ if $as_mkdir_p; then 10747 mkdir -p libtomcrypt/src/ciphers/safer 10748 else 10749 as_dir=libtomcrypt/src/ciphers/safer 10750 as_dirs= 10751 while test ! -d "$as_dir"; do 10752 as_dirs="$as_dir $as_dirs" 10753 as_dir=`(dirname "$as_dir") 2>/dev/null || 10754$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10755 X"$as_dir" : 'X\(//\)[^/]' \| \ 10756 X"$as_dir" : 'X\(//\)$' \| \ 10757 X"$as_dir" : 'X\(/\)' \| \ 10758 . : '\(.\)' 2>/dev/null || 10759echo X"$as_dir" | 10760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10761 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10762 /^X\(\/\/\)$/{ s//\1/; q; } 10763 /^X\(\/\).*/{ s//\1/; q; } 10764 s/.*/./; q'` 10765 done 10766 test ! -n "$as_dirs" || mkdir $as_dirs 10767 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/ciphers/safer" >&5 10768echo "$as_me: error: cannot create directory libtomcrypt/src/ciphers/safer" >&2;} 10769 { (exit 1); exit 1; }; }; } 10770 10771{ if $as_mkdir_p; then 10772 mkdir -p libtomcrypt/src/ciphers/twofish 10773 else 10774 as_dir=libtomcrypt/src/ciphers/twofish 10775 as_dirs= 10776 while test ! -d "$as_dir"; do 10777 as_dirs="$as_dir $as_dirs" 10778 as_dir=`(dirname "$as_dir") 2>/dev/null || 10779$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10780 X"$as_dir" : 'X\(//\)[^/]' \| \ 10781 X"$as_dir" : 'X\(//\)$' \| \ 10782 X"$as_dir" : 'X\(/\)' \| \ 10783 . : '\(.\)' 2>/dev/null || 10784echo X"$as_dir" | 10785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10786 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10787 /^X\(\/\/\)$/{ s//\1/; q; } 10788 /^X\(\/\).*/{ s//\1/; q; } 10789 s/.*/./; q'` 10790 done 10791 test ! -n "$as_dirs" || mkdir $as_dirs 10792 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/ciphers/twofish" >&5 10793echo "$as_me: error: cannot create directory libtomcrypt/src/ciphers/twofish" >&2;} 10794 { (exit 1); exit 1; }; }; } 10795 10796{ if $as_mkdir_p; then 10797 mkdir -p libtomcrypt/src/encauth/ccm 10798 else 10799 as_dir=libtomcrypt/src/encauth/ccm 10800 as_dirs= 10801 while test ! -d "$as_dir"; do 10802 as_dirs="$as_dir $as_dirs" 10803 as_dir=`(dirname "$as_dir") 2>/dev/null || 10804$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10805 X"$as_dir" : 'X\(//\)[^/]' \| \ 10806 X"$as_dir" : 'X\(//\)$' \| \ 10807 X"$as_dir" : 'X\(/\)' \| \ 10808 . : '\(.\)' 2>/dev/null || 10809echo X"$as_dir" | 10810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10811 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10812 /^X\(\/\/\)$/{ s//\1/; q; } 10813 /^X\(\/\).*/{ s//\1/; q; } 10814 s/.*/./; q'` 10815 done 10816 test ! -n "$as_dirs" || mkdir $as_dirs 10817 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/encauth/ccm" >&5 10818echo "$as_me: error: cannot create directory libtomcrypt/src/encauth/ccm" >&2;} 10819 { (exit 1); exit 1; }; }; } 10820 10821{ if $as_mkdir_p; then 10822 mkdir -p libtomcrypt/src/encauth/eax 10823 else 10824 as_dir=libtomcrypt/src/encauth/eax 10825 as_dirs= 10826 while test ! -d "$as_dir"; do 10827 as_dirs="$as_dir $as_dirs" 10828 as_dir=`(dirname "$as_dir") 2>/dev/null || 10829$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10830 X"$as_dir" : 'X\(//\)[^/]' \| \ 10831 X"$as_dir" : 'X\(//\)$' \| \ 10832 X"$as_dir" : 'X\(/\)' \| \ 10833 . : '\(.\)' 2>/dev/null || 10834echo X"$as_dir" | 10835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10836 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10837 /^X\(\/\/\)$/{ s//\1/; q; } 10838 /^X\(\/\).*/{ s//\1/; q; } 10839 s/.*/./; q'` 10840 done 10841 test ! -n "$as_dirs" || mkdir $as_dirs 10842 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/encauth/eax" >&5 10843echo "$as_me: error: cannot create directory libtomcrypt/src/encauth/eax" >&2;} 10844 { (exit 1); exit 1; }; }; } 10845 10846{ if $as_mkdir_p; then 10847 mkdir -p libtomcrypt/src/encauth/gcm 10848 else 10849 as_dir=libtomcrypt/src/encauth/gcm 10850 as_dirs= 10851 while test ! -d "$as_dir"; do 10852 as_dirs="$as_dir $as_dirs" 10853 as_dir=`(dirname "$as_dir") 2>/dev/null || 10854$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10855 X"$as_dir" : 'X\(//\)[^/]' \| \ 10856 X"$as_dir" : 'X\(//\)$' \| \ 10857 X"$as_dir" : 'X\(/\)' \| \ 10858 . : '\(.\)' 2>/dev/null || 10859echo X"$as_dir" | 10860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10861 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10862 /^X\(\/\/\)$/{ s//\1/; q; } 10863 /^X\(\/\).*/{ s//\1/; q; } 10864 s/.*/./; q'` 10865 done 10866 test ! -n "$as_dirs" || mkdir $as_dirs 10867 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/encauth/gcm" >&5 10868echo "$as_me: error: cannot create directory libtomcrypt/src/encauth/gcm" >&2;} 10869 { (exit 1); exit 1; }; }; } 10870 10871{ if $as_mkdir_p; then 10872 mkdir -p libtomcrypt/src/encauth/ocb 10873 else 10874 as_dir=libtomcrypt/src/encauth/ocb 10875 as_dirs= 10876 while test ! -d "$as_dir"; do 10877 as_dirs="$as_dir $as_dirs" 10878 as_dir=`(dirname "$as_dir") 2>/dev/null || 10879$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10880 X"$as_dir" : 'X\(//\)[^/]' \| \ 10881 X"$as_dir" : 'X\(//\)$' \| \ 10882 X"$as_dir" : 'X\(/\)' \| \ 10883 . : '\(.\)' 2>/dev/null || 10884echo X"$as_dir" | 10885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10886 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10887 /^X\(\/\/\)$/{ s//\1/; q; } 10888 /^X\(\/\).*/{ s//\1/; q; } 10889 s/.*/./; q'` 10890 done 10891 test ! -n "$as_dirs" || mkdir $as_dirs 10892 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/encauth/ocb" >&5 10893echo "$as_me: error: cannot create directory libtomcrypt/src/encauth/ocb" >&2;} 10894 { (exit 1); exit 1; }; }; } 10895 10896{ if $as_mkdir_p; then 10897 mkdir -p libtomcrypt/src/hashes 10898 else 10899 as_dir=libtomcrypt/src/hashes 10900 as_dirs= 10901 while test ! -d "$as_dir"; do 10902 as_dirs="$as_dir $as_dirs" 10903 as_dir=`(dirname "$as_dir") 2>/dev/null || 10904$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10905 X"$as_dir" : 'X\(//\)[^/]' \| \ 10906 X"$as_dir" : 'X\(//\)$' \| \ 10907 X"$as_dir" : 'X\(/\)' \| \ 10908 . : '\(.\)' 2>/dev/null || 10909echo X"$as_dir" | 10910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10911 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10912 /^X\(\/\/\)$/{ s//\1/; q; } 10913 /^X\(\/\).*/{ s//\1/; q; } 10914 s/.*/./; q'` 10915 done 10916 test ! -n "$as_dirs" || mkdir $as_dirs 10917 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/hashes" >&5 10918echo "$as_me: error: cannot create directory libtomcrypt/src/hashes" >&2;} 10919 { (exit 1); exit 1; }; }; } 10920 10921{ if $as_mkdir_p; then 10922 mkdir -p libtomcrypt/src/hashes/chc 10923 else 10924 as_dir=libtomcrypt/src/hashes/chc 10925 as_dirs= 10926 while test ! -d "$as_dir"; do 10927 as_dirs="$as_dir $as_dirs" 10928 as_dir=`(dirname "$as_dir") 2>/dev/null || 10929$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10930 X"$as_dir" : 'X\(//\)[^/]' \| \ 10931 X"$as_dir" : 'X\(//\)$' \| \ 10932 X"$as_dir" : 'X\(/\)' \| \ 10933 . : '\(.\)' 2>/dev/null || 10934echo X"$as_dir" | 10935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10936 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10937 /^X\(\/\/\)$/{ s//\1/; q; } 10938 /^X\(\/\).*/{ s//\1/; q; } 10939 s/.*/./; q'` 10940 done 10941 test ! -n "$as_dirs" || mkdir $as_dirs 10942 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/hashes/chc" >&5 10943echo "$as_me: error: cannot create directory libtomcrypt/src/hashes/chc" >&2;} 10944 { (exit 1); exit 1; }; }; } 10945 10946{ if $as_mkdir_p; then 10947 mkdir -p libtomcrypt/src/hashes/helper 10948 else 10949 as_dir=libtomcrypt/src/hashes/helper 10950 as_dirs= 10951 while test ! -d "$as_dir"; do 10952 as_dirs="$as_dir $as_dirs" 10953 as_dir=`(dirname "$as_dir") 2>/dev/null || 10954$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10955 X"$as_dir" : 'X\(//\)[^/]' \| \ 10956 X"$as_dir" : 'X\(//\)$' \| \ 10957 X"$as_dir" : 'X\(/\)' \| \ 10958 . : '\(.\)' 2>/dev/null || 10959echo X"$as_dir" | 10960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10961 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10962 /^X\(\/\/\)$/{ s//\1/; q; } 10963 /^X\(\/\).*/{ s//\1/; q; } 10964 s/.*/./; q'` 10965 done 10966 test ! -n "$as_dirs" || mkdir $as_dirs 10967 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/hashes/helper" >&5 10968echo "$as_me: error: cannot create directory libtomcrypt/src/hashes/helper" >&2;} 10969 { (exit 1); exit 1; }; }; } 10970 10971{ if $as_mkdir_p; then 10972 mkdir -p libtomcrypt/src/hashes/sha2 10973 else 10974 as_dir=libtomcrypt/src/hashes/sha2 10975 as_dirs= 10976 while test ! -d "$as_dir"; do 10977 as_dirs="$as_dir $as_dirs" 10978 as_dir=`(dirname "$as_dir") 2>/dev/null || 10979$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10980 X"$as_dir" : 'X\(//\)[^/]' \| \ 10981 X"$as_dir" : 'X\(//\)$' \| \ 10982 X"$as_dir" : 'X\(/\)' \| \ 10983 . : '\(.\)' 2>/dev/null || 10984echo X"$as_dir" | 10985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10986 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10987 /^X\(\/\/\)$/{ s//\1/; q; } 10988 /^X\(\/\).*/{ s//\1/; q; } 10989 s/.*/./; q'` 10990 done 10991 test ! -n "$as_dirs" || mkdir $as_dirs 10992 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/hashes/sha2" >&5 10993echo "$as_me: error: cannot create directory libtomcrypt/src/hashes/sha2" >&2;} 10994 { (exit 1); exit 1; }; }; } 10995 10996{ if $as_mkdir_p; then 10997 mkdir -p libtomcrypt/src/hashes/whirl 10998 else 10999 as_dir=libtomcrypt/src/hashes/whirl 11000 as_dirs= 11001 while test ! -d "$as_dir"; do 11002 as_dirs="$as_dir $as_dirs" 11003 as_dir=`(dirname "$as_dir") 2>/dev/null || 11004$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11005 X"$as_dir" : 'X\(//\)[^/]' \| \ 11006 X"$as_dir" : 'X\(//\)$' \| \ 11007 X"$as_dir" : 'X\(/\)' \| \ 11008 . : '\(.\)' 2>/dev/null || 11009echo X"$as_dir" | 11010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11011 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11012 /^X\(\/\/\)$/{ s//\1/; q; } 11013 /^X\(\/\).*/{ s//\1/; q; } 11014 s/.*/./; q'` 11015 done 11016 test ! -n "$as_dirs" || mkdir $as_dirs 11017 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/hashes/whirl" >&5 11018echo "$as_me: error: cannot create directory libtomcrypt/src/hashes/whirl" >&2;} 11019 { (exit 1); exit 1; }; }; } 11020 11021{ if $as_mkdir_p; then 11022 mkdir -p libtomcrypt/src/mac/hmac 11023 else 11024 as_dir=libtomcrypt/src/mac/hmac 11025 as_dirs= 11026 while test ! -d "$as_dir"; do 11027 as_dirs="$as_dir $as_dirs" 11028 as_dir=`(dirname "$as_dir") 2>/dev/null || 11029$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11030 X"$as_dir" : 'X\(//\)[^/]' \| \ 11031 X"$as_dir" : 'X\(//\)$' \| \ 11032 X"$as_dir" : 'X\(/\)' \| \ 11033 . : '\(.\)' 2>/dev/null || 11034echo X"$as_dir" | 11035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11036 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11037 /^X\(\/\/\)$/{ s//\1/; q; } 11038 /^X\(\/\).*/{ s//\1/; q; } 11039 s/.*/./; q'` 11040 done 11041 test ! -n "$as_dirs" || mkdir $as_dirs 11042 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/mac/hmac" >&5 11043echo "$as_me: error: cannot create directory libtomcrypt/src/mac/hmac" >&2;} 11044 { (exit 1); exit 1; }; }; } 11045 11046{ if $as_mkdir_p; then 11047 mkdir -p libtomcrypt/src/mac/omac 11048 else 11049 as_dir=libtomcrypt/src/mac/omac 11050 as_dirs= 11051 while test ! -d "$as_dir"; do 11052 as_dirs="$as_dir $as_dirs" 11053 as_dir=`(dirname "$as_dir") 2>/dev/null || 11054$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11055 X"$as_dir" : 'X\(//\)[^/]' \| \ 11056 X"$as_dir" : 'X\(//\)$' \| \ 11057 X"$as_dir" : 'X\(/\)' \| \ 11058 . : '\(.\)' 2>/dev/null || 11059echo X"$as_dir" | 11060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11061 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11062 /^X\(\/\/\)$/{ s//\1/; q; } 11063 /^X\(\/\).*/{ s//\1/; q; } 11064 s/.*/./; q'` 11065 done 11066 test ! -n "$as_dirs" || mkdir $as_dirs 11067 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/mac/omac" >&5 11068echo "$as_me: error: cannot create directory libtomcrypt/src/mac/omac" >&2;} 11069 { (exit 1); exit 1; }; }; } 11070 11071{ if $as_mkdir_p; then 11072 mkdir -p libtomcrypt/src/mac/pelican 11073 else 11074 as_dir=libtomcrypt/src/mac/pelican 11075 as_dirs= 11076 while test ! -d "$as_dir"; do 11077 as_dirs="$as_dir $as_dirs" 11078 as_dir=`(dirname "$as_dir") 2>/dev/null || 11079$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11080 X"$as_dir" : 'X\(//\)[^/]' \| \ 11081 X"$as_dir" : 'X\(//\)$' \| \ 11082 X"$as_dir" : 'X\(/\)' \| \ 11083 . : '\(.\)' 2>/dev/null || 11084echo X"$as_dir" | 11085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11086 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11087 /^X\(\/\/\)$/{ s//\1/; q; } 11088 /^X\(\/\).*/{ s//\1/; q; } 11089 s/.*/./; q'` 11090 done 11091 test ! -n "$as_dirs" || mkdir $as_dirs 11092 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/mac/pelican" >&5 11093echo "$as_me: error: cannot create directory libtomcrypt/src/mac/pelican" >&2;} 11094 { (exit 1); exit 1; }; }; } 11095 11096{ if $as_mkdir_p; then 11097 mkdir -p libtomcrypt/src/mac/pmac 11098 else 11099 as_dir=libtomcrypt/src/mac/pmac 11100 as_dirs= 11101 while test ! -d "$as_dir"; do 11102 as_dirs="$as_dir $as_dirs" 11103 as_dir=`(dirname "$as_dir") 2>/dev/null || 11104$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11105 X"$as_dir" : 'X\(//\)[^/]' \| \ 11106 X"$as_dir" : 'X\(//\)$' \| \ 11107 X"$as_dir" : 'X\(/\)' \| \ 11108 . : '\(.\)' 2>/dev/null || 11109echo X"$as_dir" | 11110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11111 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11112 /^X\(\/\/\)$/{ s//\1/; q; } 11113 /^X\(\/\).*/{ s//\1/; q; } 11114 s/.*/./; q'` 11115 done 11116 test ! -n "$as_dirs" || mkdir $as_dirs 11117 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/mac/pmac" >&5 11118echo "$as_me: error: cannot create directory libtomcrypt/src/mac/pmac" >&2;} 11119 { (exit 1); exit 1; }; }; } 11120 11121{ if $as_mkdir_p; then 11122 mkdir -p libtomcrypt/src/misc/base64 11123 else 11124 as_dir=libtomcrypt/src/misc/base64 11125 as_dirs= 11126 while test ! -d "$as_dir"; do 11127 as_dirs="$as_dir $as_dirs" 11128 as_dir=`(dirname "$as_dir") 2>/dev/null || 11129$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11130 X"$as_dir" : 'X\(//\)[^/]' \| \ 11131 X"$as_dir" : 'X\(//\)$' \| \ 11132 X"$as_dir" : 'X\(/\)' \| \ 11133 . : '\(.\)' 2>/dev/null || 11134echo X"$as_dir" | 11135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11136 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11137 /^X\(\/\/\)$/{ s//\1/; q; } 11138 /^X\(\/\).*/{ s//\1/; q; } 11139 s/.*/./; q'` 11140 done 11141 test ! -n "$as_dirs" || mkdir $as_dirs 11142 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/misc/base64" >&5 11143echo "$as_me: error: cannot create directory libtomcrypt/src/misc/base64" >&2;} 11144 { (exit 1); exit 1; }; }; } 11145 11146{ if $as_mkdir_p; then 11147 mkdir -p libtomcrypt/src/misc/crypt 11148 else 11149 as_dir=libtomcrypt/src/misc/crypt 11150 as_dirs= 11151 while test ! -d "$as_dir"; do 11152 as_dirs="$as_dir $as_dirs" 11153 as_dir=`(dirname "$as_dir") 2>/dev/null || 11154$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11155 X"$as_dir" : 'X\(//\)[^/]' \| \ 11156 X"$as_dir" : 'X\(//\)$' \| \ 11157 X"$as_dir" : 'X\(/\)' \| \ 11158 . : '\(.\)' 2>/dev/null || 11159echo X"$as_dir" | 11160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11161 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11162 /^X\(\/\/\)$/{ s//\1/; q; } 11163 /^X\(\/\).*/{ s//\1/; q; } 11164 s/.*/./; q'` 11165 done 11166 test ! -n "$as_dirs" || mkdir $as_dirs 11167 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/misc/crypt" >&5 11168echo "$as_me: error: cannot create directory libtomcrypt/src/misc/crypt" >&2;} 11169 { (exit 1); exit 1; }; }; } 11170 11171{ if $as_mkdir_p; then 11172 mkdir -p libtomcrypt/src/misc/mpi 11173 else 11174 as_dir=libtomcrypt/src/misc/mpi 11175 as_dirs= 11176 while test ! -d "$as_dir"; do 11177 as_dirs="$as_dir $as_dirs" 11178 as_dir=`(dirname "$as_dir") 2>/dev/null || 11179$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11180 X"$as_dir" : 'X\(//\)[^/]' \| \ 11181 X"$as_dir" : 'X\(//\)$' \| \ 11182 X"$as_dir" : 'X\(/\)' \| \ 11183 . : '\(.\)' 2>/dev/null || 11184echo X"$as_dir" | 11185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11186 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11187 /^X\(\/\/\)$/{ s//\1/; q; } 11188 /^X\(\/\).*/{ s//\1/; q; } 11189 s/.*/./; q'` 11190 done 11191 test ! -n "$as_dirs" || mkdir $as_dirs 11192 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/misc/mpi" >&5 11193echo "$as_me: error: cannot create directory libtomcrypt/src/misc/mpi" >&2;} 11194 { (exit 1); exit 1; }; }; } 11195 11196{ if $as_mkdir_p; then 11197 mkdir -p libtomcrypt/src/misc/pkcs5 11198 else 11199 as_dir=libtomcrypt/src/misc/pkcs5 11200 as_dirs= 11201 while test ! -d "$as_dir"; do 11202 as_dirs="$as_dir $as_dirs" 11203 as_dir=`(dirname "$as_dir") 2>/dev/null || 11204$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11205 X"$as_dir" : 'X\(//\)[^/]' \| \ 11206 X"$as_dir" : 'X\(//\)$' \| \ 11207 X"$as_dir" : 'X\(/\)' \| \ 11208 . : '\(.\)' 2>/dev/null || 11209echo X"$as_dir" | 11210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11211 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11212 /^X\(\/\/\)$/{ s//\1/; q; } 11213 /^X\(\/\).*/{ s//\1/; q; } 11214 s/.*/./; q'` 11215 done 11216 test ! -n "$as_dirs" || mkdir $as_dirs 11217 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/misc/pkcs5" >&5 11218echo "$as_me: error: cannot create directory libtomcrypt/src/misc/pkcs5" >&2;} 11219 { (exit 1); exit 1; }; }; } 11220 11221{ if $as_mkdir_p; then 11222 mkdir -p libtomcrypt/src/modes/cbc 11223 else 11224 as_dir=libtomcrypt/src/modes/cbc 11225 as_dirs= 11226 while test ! -d "$as_dir"; do 11227 as_dirs="$as_dir $as_dirs" 11228 as_dir=`(dirname "$as_dir") 2>/dev/null || 11229$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11230 X"$as_dir" : 'X\(//\)[^/]' \| \ 11231 X"$as_dir" : 'X\(//\)$' \| \ 11232 X"$as_dir" : 'X\(/\)' \| \ 11233 . : '\(.\)' 2>/dev/null || 11234echo X"$as_dir" | 11235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11236 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11237 /^X\(\/\/\)$/{ s//\1/; q; } 11238 /^X\(\/\).*/{ s//\1/; q; } 11239 s/.*/./; q'` 11240 done 11241 test ! -n "$as_dirs" || mkdir $as_dirs 11242 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/modes/cbc" >&5 11243echo "$as_me: error: cannot create directory libtomcrypt/src/modes/cbc" >&2;} 11244 { (exit 1); exit 1; }; }; } 11245 11246{ if $as_mkdir_p; then 11247 mkdir -p libtomcrypt/src/modes/cfb 11248 else 11249 as_dir=libtomcrypt/src/modes/cfb 11250 as_dirs= 11251 while test ! -d "$as_dir"; do 11252 as_dirs="$as_dir $as_dirs" 11253 as_dir=`(dirname "$as_dir") 2>/dev/null || 11254$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11255 X"$as_dir" : 'X\(//\)[^/]' \| \ 11256 X"$as_dir" : 'X\(//\)$' \| \ 11257 X"$as_dir" : 'X\(/\)' \| \ 11258 . : '\(.\)' 2>/dev/null || 11259echo X"$as_dir" | 11260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11261 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11262 /^X\(\/\/\)$/{ s//\1/; q; } 11263 /^X\(\/\).*/{ s//\1/; q; } 11264 s/.*/./; q'` 11265 done 11266 test ! -n "$as_dirs" || mkdir $as_dirs 11267 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/modes/cfb" >&5 11268echo "$as_me: error: cannot create directory libtomcrypt/src/modes/cfb" >&2;} 11269 { (exit 1); exit 1; }; }; } 11270 11271{ if $as_mkdir_p; then 11272 mkdir -p libtomcrypt/src/modes/ctr 11273 else 11274 as_dir=libtomcrypt/src/modes/ctr 11275 as_dirs= 11276 while test ! -d "$as_dir"; do 11277 as_dirs="$as_dir $as_dirs" 11278 as_dir=`(dirname "$as_dir") 2>/dev/null || 11279$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11280 X"$as_dir" : 'X\(//\)[^/]' \| \ 11281 X"$as_dir" : 'X\(//\)$' \| \ 11282 X"$as_dir" : 'X\(/\)' \| \ 11283 . : '\(.\)' 2>/dev/null || 11284echo X"$as_dir" | 11285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11286 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11287 /^X\(\/\/\)$/{ s//\1/; q; } 11288 /^X\(\/\).*/{ s//\1/; q; } 11289 s/.*/./; q'` 11290 done 11291 test ! -n "$as_dirs" || mkdir $as_dirs 11292 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/modes/ctr" >&5 11293echo "$as_me: error: cannot create directory libtomcrypt/src/modes/ctr" >&2;} 11294 { (exit 1); exit 1; }; }; } 11295 11296{ if $as_mkdir_p; then 11297 mkdir -p libtomcrypt/src/modes/ecb 11298 else 11299 as_dir=libtomcrypt/src/modes/ecb 11300 as_dirs= 11301 while test ! -d "$as_dir"; do 11302 as_dirs="$as_dir $as_dirs" 11303 as_dir=`(dirname "$as_dir") 2>/dev/null || 11304$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11305 X"$as_dir" : 'X\(//\)[^/]' \| \ 11306 X"$as_dir" : 'X\(//\)$' \| \ 11307 X"$as_dir" : 'X\(/\)' \| \ 11308 . : '\(.\)' 2>/dev/null || 11309echo X"$as_dir" | 11310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11311 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11312 /^X\(\/\/\)$/{ s//\1/; q; } 11313 /^X\(\/\).*/{ s//\1/; q; } 11314 s/.*/./; q'` 11315 done 11316 test ! -n "$as_dirs" || mkdir $as_dirs 11317 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/modes/ecb" >&5 11318echo "$as_me: error: cannot create directory libtomcrypt/src/modes/ecb" >&2;} 11319 { (exit 1); exit 1; }; }; } 11320 11321{ if $as_mkdir_p; then 11322 mkdir -p libtomcrypt/src/modes/ofb 11323 else 11324 as_dir=libtomcrypt/src/modes/ofb 11325 as_dirs= 11326 while test ! -d "$as_dir"; do 11327 as_dirs="$as_dir $as_dirs" 11328 as_dir=`(dirname "$as_dir") 2>/dev/null || 11329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11330 X"$as_dir" : 'X\(//\)[^/]' \| \ 11331 X"$as_dir" : 'X\(//\)$' \| \ 11332 X"$as_dir" : 'X\(/\)' \| \ 11333 . : '\(.\)' 2>/dev/null || 11334echo X"$as_dir" | 11335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11336 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11337 /^X\(\/\/\)$/{ s//\1/; q; } 11338 /^X\(\/\).*/{ s//\1/; q; } 11339 s/.*/./; q'` 11340 done 11341 test ! -n "$as_dirs" || mkdir $as_dirs 11342 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/modes/ofb" >&5 11343echo "$as_me: error: cannot create directory libtomcrypt/src/modes/ofb" >&2;} 11344 { (exit 1); exit 1; }; }; } 11345 11346{ if $as_mkdir_p; then 11347 mkdir -p libtomcrypt/src/pk/asn1/der/bit 11348 else 11349 as_dir=libtomcrypt/src/pk/asn1/der/bit 11350 as_dirs= 11351 while test ! -d "$as_dir"; do 11352 as_dirs="$as_dir $as_dirs" 11353 as_dir=`(dirname "$as_dir") 2>/dev/null || 11354$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11355 X"$as_dir" : 'X\(//\)[^/]' \| \ 11356 X"$as_dir" : 'X\(//\)$' \| \ 11357 X"$as_dir" : 'X\(/\)' \| \ 11358 . : '\(.\)' 2>/dev/null || 11359echo X"$as_dir" | 11360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11361 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11362 /^X\(\/\/\)$/{ s//\1/; q; } 11363 /^X\(\/\).*/{ s//\1/; q; } 11364 s/.*/./; q'` 11365 done 11366 test ! -n "$as_dirs" || mkdir $as_dirs 11367 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/pk/asn1/der/bit" >&5 11368echo "$as_me: error: cannot create directory libtomcrypt/src/pk/asn1/der/bit" >&2;} 11369 { (exit 1); exit 1; }; }; } 11370 11371{ if $as_mkdir_p; then 11372 mkdir -p libtomcrypt/src/pk/asn1/der/choice 11373 else 11374 as_dir=libtomcrypt/src/pk/asn1/der/choice 11375 as_dirs= 11376 while test ! -d "$as_dir"; do 11377 as_dirs="$as_dir $as_dirs" 11378 as_dir=`(dirname "$as_dir") 2>/dev/null || 11379$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11380 X"$as_dir" : 'X\(//\)[^/]' \| \ 11381 X"$as_dir" : 'X\(//\)$' \| \ 11382 X"$as_dir" : 'X\(/\)' \| \ 11383 . : '\(.\)' 2>/dev/null || 11384echo X"$as_dir" | 11385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11386 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11387 /^X\(\/\/\)$/{ s//\1/; q; } 11388 /^X\(\/\).*/{ s//\1/; q; } 11389 s/.*/./; q'` 11390 done 11391 test ! -n "$as_dirs" || mkdir $as_dirs 11392 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/pk/asn1/der/choice" >&5 11393echo "$as_me: error: cannot create directory libtomcrypt/src/pk/asn1/der/choice" >&2;} 11394 { (exit 1); exit 1; }; }; } 11395 11396{ if $as_mkdir_p; then 11397 mkdir -p libtomcrypt/src/pk/asn1/der/ia5 11398 else 11399 as_dir=libtomcrypt/src/pk/asn1/der/ia5 11400 as_dirs= 11401 while test ! -d "$as_dir"; do 11402 as_dirs="$as_dir $as_dirs" 11403 as_dir=`(dirname "$as_dir") 2>/dev/null || 11404$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11405 X"$as_dir" : 'X\(//\)[^/]' \| \ 11406 X"$as_dir" : 'X\(//\)$' \| \ 11407 X"$as_dir" : 'X\(/\)' \| \ 11408 . : '\(.\)' 2>/dev/null || 11409echo X"$as_dir" | 11410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11411 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11412 /^X\(\/\/\)$/{ s//\1/; q; } 11413 /^X\(\/\).*/{ s//\1/; q; } 11414 s/.*/./; q'` 11415 done 11416 test ! -n "$as_dirs" || mkdir $as_dirs 11417 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/pk/asn1/der/ia5" >&5 11418echo "$as_me: error: cannot create directory libtomcrypt/src/pk/asn1/der/ia5" >&2;} 11419 { (exit 1); exit 1; }; }; } 11420 11421{ if $as_mkdir_p; then 11422 mkdir -p libtomcrypt/src/pk/asn1/der/integer 11423 else 11424 as_dir=libtomcrypt/src/pk/asn1/der/integer 11425 as_dirs= 11426 while test ! -d "$as_dir"; do 11427 as_dirs="$as_dir $as_dirs" 11428 as_dir=`(dirname "$as_dir") 2>/dev/null || 11429$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11430 X"$as_dir" : 'X\(//\)[^/]' \| \ 11431 X"$as_dir" : 'X\(//\)$' \| \ 11432 X"$as_dir" : 'X\(/\)' \| \ 11433 . : '\(.\)' 2>/dev/null || 11434echo X"$as_dir" | 11435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11436 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11437 /^X\(\/\/\)$/{ s//\1/; q; } 11438 /^X\(\/\).*/{ s//\1/; q; } 11439 s/.*/./; q'` 11440 done 11441 test ! -n "$as_dirs" || mkdir $as_dirs 11442 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/pk/asn1/der/integer" >&5 11443echo "$as_me: error: cannot create directory libtomcrypt/src/pk/asn1/der/integer" >&2;} 11444 { (exit 1); exit 1; }; }; } 11445 11446{ if $as_mkdir_p; then 11447 mkdir -p libtomcrypt/src/pk/asn1/der/object_identifier 11448 else 11449 as_dir=libtomcrypt/src/pk/asn1/der/object_identifier 11450 as_dirs= 11451 while test ! -d "$as_dir"; do 11452 as_dirs="$as_dir $as_dirs" 11453 as_dir=`(dirname "$as_dir") 2>/dev/null || 11454$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11455 X"$as_dir" : 'X\(//\)[^/]' \| \ 11456 X"$as_dir" : 'X\(//\)$' \| \ 11457 X"$as_dir" : 'X\(/\)' \| \ 11458 . : '\(.\)' 2>/dev/null || 11459echo X"$as_dir" | 11460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11461 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11462 /^X\(\/\/\)$/{ s//\1/; q; } 11463 /^X\(\/\).*/{ s//\1/; q; } 11464 s/.*/./; q'` 11465 done 11466 test ! -n "$as_dirs" || mkdir $as_dirs 11467 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/pk/asn1/der/object_identifier" >&5 11468echo "$as_me: error: cannot create directory libtomcrypt/src/pk/asn1/der/object_identifier" >&2;} 11469 { (exit 1); exit 1; }; }; } 11470 11471{ if $as_mkdir_p; then 11472 mkdir -p libtomcrypt/src/pk/asn1/der/octet 11473 else 11474 as_dir=libtomcrypt/src/pk/asn1/der/octet 11475 as_dirs= 11476 while test ! -d "$as_dir"; do 11477 as_dirs="$as_dir $as_dirs" 11478 as_dir=`(dirname "$as_dir") 2>/dev/null || 11479$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11480 X"$as_dir" : 'X\(//\)[^/]' \| \ 11481 X"$as_dir" : 'X\(//\)$' \| \ 11482 X"$as_dir" : 'X\(/\)' \| \ 11483 . : '\(.\)' 2>/dev/null || 11484echo X"$as_dir" | 11485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11486 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11487 /^X\(\/\/\)$/{ s//\1/; q; } 11488 /^X\(\/\).*/{ s//\1/; q; } 11489 s/.*/./; q'` 11490 done 11491 test ! -n "$as_dirs" || mkdir $as_dirs 11492 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/pk/asn1/der/octet" >&5 11493echo "$as_me: error: cannot create directory libtomcrypt/src/pk/asn1/der/octet" >&2;} 11494 { (exit 1); exit 1; }; }; } 11495 11496{ if $as_mkdir_p; then 11497 mkdir -p libtomcrypt/src/pk/asn1/der/printable_string 11498 else 11499 as_dir=libtomcrypt/src/pk/asn1/der/printable_string 11500 as_dirs= 11501 while test ! -d "$as_dir"; do 11502 as_dirs="$as_dir $as_dirs" 11503 as_dir=`(dirname "$as_dir") 2>/dev/null || 11504$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11505 X"$as_dir" : 'X\(//\)[^/]' \| \ 11506 X"$as_dir" : 'X\(//\)$' \| \ 11507 X"$as_dir" : 'X\(/\)' \| \ 11508 . : '\(.\)' 2>/dev/null || 11509echo X"$as_dir" | 11510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11511 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11512 /^X\(\/\/\)$/{ s//\1/; q; } 11513 /^X\(\/\).*/{ s//\1/; q; } 11514 s/.*/./; q'` 11515 done 11516 test ! -n "$as_dirs" || mkdir $as_dirs 11517 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/pk/asn1/der/printable_string" >&5 11518echo "$as_me: error: cannot create directory libtomcrypt/src/pk/asn1/der/printable_string" >&2;} 11519 { (exit 1); exit 1; }; }; } 11520 11521{ if $as_mkdir_p; then 11522 mkdir -p libtomcrypt/src/pk/asn1/der/sequence 11523 else 11524 as_dir=libtomcrypt/src/pk/asn1/der/sequence 11525 as_dirs= 11526 while test ! -d "$as_dir"; do 11527 as_dirs="$as_dir $as_dirs" 11528 as_dir=`(dirname "$as_dir") 2>/dev/null || 11529$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11530 X"$as_dir" : 'X\(//\)[^/]' \| \ 11531 X"$as_dir" : 'X\(//\)$' \| \ 11532 X"$as_dir" : 'X\(/\)' \| \ 11533 . : '\(.\)' 2>/dev/null || 11534echo X"$as_dir" | 11535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11536 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11537 /^X\(\/\/\)$/{ s//\1/; q; } 11538 /^X\(\/\).*/{ s//\1/; q; } 11539 s/.*/./; q'` 11540 done 11541 test ! -n "$as_dirs" || mkdir $as_dirs 11542 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/pk/asn1/der/sequence" >&5 11543echo "$as_me: error: cannot create directory libtomcrypt/src/pk/asn1/der/sequence" >&2;} 11544 { (exit 1); exit 1; }; }; } 11545 11546{ if $as_mkdir_p; then 11547 mkdir -p libtomcrypt/src/pk/asn1/der/short_integer 11548 else 11549 as_dir=libtomcrypt/src/pk/asn1/der/short_integer 11550 as_dirs= 11551 while test ! -d "$as_dir"; do 11552 as_dirs="$as_dir $as_dirs" 11553 as_dir=`(dirname "$as_dir") 2>/dev/null || 11554$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11555 X"$as_dir" : 'X\(//\)[^/]' \| \ 11556 X"$as_dir" : 'X\(//\)$' \| \ 11557 X"$as_dir" : 'X\(/\)' \| \ 11558 . : '\(.\)' 2>/dev/null || 11559echo X"$as_dir" | 11560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11561 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11562 /^X\(\/\/\)$/{ s//\1/; q; } 11563 /^X\(\/\).*/{ s//\1/; q; } 11564 s/.*/./; q'` 11565 done 11566 test ! -n "$as_dirs" || mkdir $as_dirs 11567 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/pk/asn1/der/short_integer" >&5 11568echo "$as_me: error: cannot create directory libtomcrypt/src/pk/asn1/der/short_integer" >&2;} 11569 { (exit 1); exit 1; }; }; } 11570 11571{ if $as_mkdir_p; then 11572 mkdir -p libtomcrypt/src/pk/asn1/der/utctime 11573 else 11574 as_dir=libtomcrypt/src/pk/asn1/der/utctime 11575 as_dirs= 11576 while test ! -d "$as_dir"; do 11577 as_dirs="$as_dir $as_dirs" 11578 as_dir=`(dirname "$as_dir") 2>/dev/null || 11579$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11580 X"$as_dir" : 'X\(//\)[^/]' \| \ 11581 X"$as_dir" : 'X\(//\)$' \| \ 11582 X"$as_dir" : 'X\(/\)' \| \ 11583 . : '\(.\)' 2>/dev/null || 11584echo X"$as_dir" | 11585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11586 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11587 /^X\(\/\/\)$/{ s//\1/; q; } 11588 /^X\(\/\).*/{ s//\1/; q; } 11589 s/.*/./; q'` 11590 done 11591 test ! -n "$as_dirs" || mkdir $as_dirs 11592 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/pk/asn1/der/utctime" >&5 11593echo "$as_me: error: cannot create directory libtomcrypt/src/pk/asn1/der/utctime" >&2;} 11594 { (exit 1); exit 1; }; }; } 11595 11596{ if $as_mkdir_p; then 11597 mkdir -p libtomcrypt/src/pk/dh 11598 else 11599 as_dir=libtomcrypt/src/pk/dh 11600 as_dirs= 11601 while test ! -d "$as_dir"; do 11602 as_dirs="$as_dir $as_dirs" 11603 as_dir=`(dirname "$as_dir") 2>/dev/null || 11604$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11605 X"$as_dir" : 'X\(//\)[^/]' \| \ 11606 X"$as_dir" : 'X\(//\)$' \| \ 11607 X"$as_dir" : 'X\(/\)' \| \ 11608 . : '\(.\)' 2>/dev/null || 11609echo X"$as_dir" | 11610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11611 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11612 /^X\(\/\/\)$/{ s//\1/; q; } 11613 /^X\(\/\).*/{ s//\1/; q; } 11614 s/.*/./; q'` 11615 done 11616 test ! -n "$as_dirs" || mkdir $as_dirs 11617 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/pk/dh" >&5 11618echo "$as_me: error: cannot create directory libtomcrypt/src/pk/dh" >&2;} 11619 { (exit 1); exit 1; }; }; } 11620 11621{ if $as_mkdir_p; then 11622 mkdir -p libtomcrypt/src/pk/dsa 11623 else 11624 as_dir=libtomcrypt/src/pk/dsa 11625 as_dirs= 11626 while test ! -d "$as_dir"; do 11627 as_dirs="$as_dir $as_dirs" 11628 as_dir=`(dirname "$as_dir") 2>/dev/null || 11629$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11630 X"$as_dir" : 'X\(//\)[^/]' \| \ 11631 X"$as_dir" : 'X\(//\)$' \| \ 11632 X"$as_dir" : 'X\(/\)' \| \ 11633 . : '\(.\)' 2>/dev/null || 11634echo X"$as_dir" | 11635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11636 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11637 /^X\(\/\/\)$/{ s//\1/; q; } 11638 /^X\(\/\).*/{ s//\1/; q; } 11639 s/.*/./; q'` 11640 done 11641 test ! -n "$as_dirs" || mkdir $as_dirs 11642 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/pk/dsa" >&5 11643echo "$as_me: error: cannot create directory libtomcrypt/src/pk/dsa" >&2;} 11644 { (exit 1); exit 1; }; }; } 11645 11646{ if $as_mkdir_p; then 11647 mkdir -p libtomcrypt/src/pk/ecc 11648 else 11649 as_dir=libtomcrypt/src/pk/ecc 11650 as_dirs= 11651 while test ! -d "$as_dir"; do 11652 as_dirs="$as_dir $as_dirs" 11653 as_dir=`(dirname "$as_dir") 2>/dev/null || 11654$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11655 X"$as_dir" : 'X\(//\)[^/]' \| \ 11656 X"$as_dir" : 'X\(//\)$' \| \ 11657 X"$as_dir" : 'X\(/\)' \| \ 11658 . : '\(.\)' 2>/dev/null || 11659echo X"$as_dir" | 11660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11661 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11662 /^X\(\/\/\)$/{ s//\1/; q; } 11663 /^X\(\/\).*/{ s//\1/; q; } 11664 s/.*/./; q'` 11665 done 11666 test ! -n "$as_dirs" || mkdir $as_dirs 11667 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/pk/ecc" >&5 11668echo "$as_me: error: cannot create directory libtomcrypt/src/pk/ecc" >&2;} 11669 { (exit 1); exit 1; }; }; } 11670 11671{ if $as_mkdir_p; then 11672 mkdir -p libtomcrypt/src/pk/pkcs1 11673 else 11674 as_dir=libtomcrypt/src/pk/pkcs1 11675 as_dirs= 11676 while test ! -d "$as_dir"; do 11677 as_dirs="$as_dir $as_dirs" 11678 as_dir=`(dirname "$as_dir") 2>/dev/null || 11679$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11680 X"$as_dir" : 'X\(//\)[^/]' \| \ 11681 X"$as_dir" : 'X\(//\)$' \| \ 11682 X"$as_dir" : 'X\(/\)' \| \ 11683 . : '\(.\)' 2>/dev/null || 11684echo X"$as_dir" | 11685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11686 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11687 /^X\(\/\/\)$/{ s//\1/; q; } 11688 /^X\(\/\).*/{ s//\1/; q; } 11689 s/.*/./; q'` 11690 done 11691 test ! -n "$as_dirs" || mkdir $as_dirs 11692 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/pk/pkcs1" >&5 11693echo "$as_me: error: cannot create directory libtomcrypt/src/pk/pkcs1" >&2;} 11694 { (exit 1); exit 1; }; }; } 11695 11696{ if $as_mkdir_p; then 11697 mkdir -p libtomcrypt/src/pk/rsa 11698 else 11699 as_dir=libtomcrypt/src/pk/rsa 11700 as_dirs= 11701 while test ! -d "$as_dir"; do 11702 as_dirs="$as_dir $as_dirs" 11703 as_dir=`(dirname "$as_dir") 2>/dev/null || 11704$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11705 X"$as_dir" : 'X\(//\)[^/]' \| \ 11706 X"$as_dir" : 'X\(//\)$' \| \ 11707 X"$as_dir" : 'X\(/\)' \| \ 11708 . : '\(.\)' 2>/dev/null || 11709echo X"$as_dir" | 11710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11711 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11712 /^X\(\/\/\)$/{ s//\1/; q; } 11713 /^X\(\/\).*/{ s//\1/; q; } 11714 s/.*/./; q'` 11715 done 11716 test ! -n "$as_dirs" || mkdir $as_dirs 11717 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/pk/rsa" >&5 11718echo "$as_me: error: cannot create directory libtomcrypt/src/pk/rsa" >&2;} 11719 { (exit 1); exit 1; }; }; } 11720 11721{ if $as_mkdir_p; then 11722 mkdir -p libtomcrypt/src/prng 11723 else 11724 as_dir=libtomcrypt/src/prng 11725 as_dirs= 11726 while test ! -d "$as_dir"; do 11727 as_dirs="$as_dir $as_dirs" 11728 as_dir=`(dirname "$as_dir") 2>/dev/null || 11729$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11730 X"$as_dir" : 'X\(//\)[^/]' \| \ 11731 X"$as_dir" : 'X\(//\)$' \| \ 11732 X"$as_dir" : 'X\(/\)' \| \ 11733 . : '\(.\)' 2>/dev/null || 11734echo X"$as_dir" | 11735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11736 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11737 /^X\(\/\/\)$/{ s//\1/; q; } 11738 /^X\(\/\).*/{ s//\1/; q; } 11739 s/.*/./; q'` 11740 done 11741 test ! -n "$as_dirs" || mkdir $as_dirs 11742 fi || { { echo "$as_me:$LINENO: error: cannot create directory libtomcrypt/src/prng" >&5 11743echo "$as_me: error: cannot create directory libtomcrypt/src/prng" >&2;} 11744 { (exit 1); exit 1; }; }; } 11745 11746 ac_config_headers="$ac_config_headers config.h" 11747 11748 ac_config_files="$ac_config_files Makefile" 11749cat >confcache <<\_ACEOF 11750# This file is a shell script that caches the results of configure 11751# tests run on this system so they can be shared between configure 11752# scripts and configure runs, see configure's option --config-cache. 11753# It is not useful on other systems. If it contains results you don't 11754# want to keep, you may remove or edit it. 11755# 11756# config.status only pays attention to the cache file if you give it 11757# the --recheck option to rerun configure. 11758# 11759# `ac_cv_env_foo' variables (set or unset) will be overridden when 11760# loading this file, other *unset* `ac_cv_foo' will be assigned the 11761# following values. 11762 11763_ACEOF 11764 11765# The following way of writing the cache mishandles newlines in values, 11766# but we know of no workaround that is simple, portable, and efficient. 11767# So, don't put newlines in cache variables' values. 11768# Ultrix sh set writes to stderr and can't be redirected directly, 11769# and sets the high bit in the cache file unless we assign to the vars. 11770{ 11771 (set) 2>&1 | 11772 case `(ac_space=' '; set | grep ac_space) 2>&1` in 11773 *ac_space=\ *) 11774 # `set' does not quote correctly, so add quotes (double-quote 11775 # substitution turns \\\\ into \\, and sed turns \\ into \). 11776 sed -n \ 11777 "s/'/'\\\\''/g; 11778 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11779 ;; 11780 *) 11781 # `set' quotes correctly as required by POSIX, so do not add quotes. 11782 sed -n \ 11783 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 11784 ;; 11785 esac; 11786} | 11787 sed ' 11788 t clear 11789 : clear 11790 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11791 t end 11792 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11793 : end' >>confcache 11794if diff $cache_file confcache >/dev/null 2>&1; then :; else 11795 if test -w $cache_file; then 11796 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 11797 cat confcache >$cache_file 11798 else 11799 echo "not updating unwritable cache $cache_file" 11800 fi 11801fi 11802rm -f confcache 11803 11804test "x$prefix" = xNONE && prefix=$ac_default_prefix 11805# Let make expand exec_prefix. 11806test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11807 11808# VPATH may cause trouble with some makes, so we remove $(srcdir), 11809# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11810# trailing colons and then remove the whole line if VPATH becomes empty 11811# (actually we leave an empty line to preserve line numbers). 11812if test "x$srcdir" = x.; then 11813 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11814s/:*\$(srcdir):*/:/; 11815s/:*\${srcdir}:*/:/; 11816s/:*@srcdir@:*/:/; 11817s/^\([^=]*=[ ]*\):*/\1/; 11818s/:*$//; 11819s/^[^=]*=[ ]*$//; 11820}' 11821fi 11822 11823DEFS=-DHAVE_CONFIG_H 11824 11825ac_libobjs= 11826ac_ltlibobjs= 11827for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11828 # 1. Remove the extension, and $U if already installed. 11829 ac_i=`echo "$ac_i" | 11830 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 11831 # 2. Add them. 11832 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 11833 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 11834done 11835LIBOBJS=$ac_libobjs 11836 11837LTLIBOBJS=$ac_ltlibobjs 11838 11839 11840 11841: ${CONFIG_STATUS=./config.status} 11842ac_clean_files_save=$ac_clean_files 11843ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11844{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11845echo "$as_me: creating $CONFIG_STATUS" >&6;} 11846cat >$CONFIG_STATUS <<_ACEOF 11847#! $SHELL 11848# Generated by $as_me. 11849# Run this file to recreate the current configuration. 11850# Compiler output produced by configure, useful for debugging 11851# configure, is in config.log if it exists. 11852 11853debug=false 11854ac_cs_recheck=false 11855ac_cs_silent=false 11856SHELL=\${CONFIG_SHELL-$SHELL} 11857_ACEOF 11858 11859cat >>$CONFIG_STATUS <<\_ACEOF 11860## --------------------- ## 11861## M4sh Initialization. ## 11862## --------------------- ## 11863 11864# Be Bourne compatible 11865if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11866 emulate sh 11867 NULLCMD=: 11868 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11869 # is contrary to our usage. Disable this feature. 11870 alias -g '${1+"$@"}'='"$@"' 11871elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 11872 set -o posix 11873fi 11874DUALCASE=1; export DUALCASE # for MKS sh 11875 11876# Support unset when possible. 11877if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11878 as_unset=unset 11879else 11880 as_unset=false 11881fi 11882 11883 11884# Work around bugs in pre-3.0 UWIN ksh. 11885$as_unset ENV MAIL MAILPATH 11886PS1='$ ' 11887PS2='> ' 11888PS4='+ ' 11889 11890# NLS nuisances. 11891for as_var in \ 11892 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11893 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11894 LC_TELEPHONE LC_TIME 11895do 11896 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11897 eval $as_var=C; export $as_var 11898 else 11899 $as_unset $as_var 11900 fi 11901done 11902 11903# Required to use basename. 11904if expr a : '\(a\)' >/dev/null 2>&1; then 11905 as_expr=expr 11906else 11907 as_expr=false 11908fi 11909 11910if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 11911 as_basename=basename 11912else 11913 as_basename=false 11914fi 11915 11916 11917# Name of the executable. 11918as_me=`$as_basename "$0" || 11919$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11920 X"$0" : 'X\(//\)$' \| \ 11921 X"$0" : 'X\(/\)$' \| \ 11922 . : '\(.\)' 2>/dev/null || 11923echo X/"$0" | 11924 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 11925 /^X\/\(\/\/\)$/{ s//\1/; q; } 11926 /^X\/\(\/\).*/{ s//\1/; q; } 11927 s/.*/./; q'` 11928 11929 11930# PATH needs CR, and LINENO needs CR and PATH. 11931# Avoid depending upon Character Ranges. 11932as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11933as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11934as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11935as_cr_digits='0123456789' 11936as_cr_alnum=$as_cr_Letters$as_cr_digits 11937 11938# The user is always right. 11939if test "${PATH_SEPARATOR+set}" != set; then 11940 echo "#! /bin/sh" >conf$$.sh 11941 echo "exit 0" >>conf$$.sh 11942 chmod +x conf$$.sh 11943 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11944 PATH_SEPARATOR=';' 11945 else 11946 PATH_SEPARATOR=: 11947 fi 11948 rm -f conf$$.sh 11949fi 11950 11951 11952 as_lineno_1=$LINENO 11953 as_lineno_2=$LINENO 11954 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11955 test "x$as_lineno_1" != "x$as_lineno_2" && 11956 test "x$as_lineno_3" = "x$as_lineno_2" || { 11957 # Find who we are. Look in the path if we contain no path at all 11958 # relative or not. 11959 case $0 in 11960 *[\\/]* ) as_myself=$0 ;; 11961 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11962for as_dir in $PATH 11963do 11964 IFS=$as_save_IFS 11965 test -z "$as_dir" && as_dir=. 11966 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11967done 11968 11969 ;; 11970 esac 11971 # We did not find ourselves, most probably we were run as `sh COMMAND' 11972 # in which case we are not to be found in the path. 11973 if test "x$as_myself" = x; then 11974 as_myself=$0 11975 fi 11976 if test ! -f "$as_myself"; then 11977 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 11978echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 11979 { (exit 1); exit 1; }; } 11980 fi 11981 case $CONFIG_SHELL in 11982 '') 11983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11984for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 11985do 11986 IFS=$as_save_IFS 11987 test -z "$as_dir" && as_dir=. 11988 for as_base in sh bash ksh sh5; do 11989 case $as_dir in 11990 /*) 11991 if ("$as_dir/$as_base" -c ' 11992 as_lineno_1=$LINENO 11993 as_lineno_2=$LINENO 11994 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11995 test "x$as_lineno_1" != "x$as_lineno_2" && 11996 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 11997 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 11998 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 11999 CONFIG_SHELL=$as_dir/$as_base 12000 export CONFIG_SHELL 12001 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 12002 fi;; 12003 esac 12004 done 12005done 12006;; 12007 esac 12008 12009 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 12010 # uniformly replaced by the line number. The first 'sed' inserts a 12011 # line-number line before each line; the second 'sed' does the real 12012 # work. The second script uses 'N' to pair each line-number line 12013 # with the numbered line, and appends trailing '-' during 12014 # substitution so that $LINENO is not a special case at line end. 12015 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 12016 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 12017 sed '=' <$as_myself | 12018 sed ' 12019 N 12020 s,$,-, 12021 : loop 12022 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 12023 t loop 12024 s,-$,, 12025 s,^['$as_cr_digits']*\n,, 12026 ' >$as_me.lineno && 12027 chmod +x $as_me.lineno || 12028 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 12029echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 12030 { (exit 1); exit 1; }; } 12031 12032 # Don't try to exec as it changes $[0], causing all sort of problems 12033 # (the dirname of $[0] is not the place where we might find the 12034 # original and so on. Autoconf is especially sensible to this). 12035 . ./$as_me.lineno 12036 # Exit status is that of the last command. 12037 exit 12038} 12039 12040 12041case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 12042 *c*,-n*) ECHO_N= ECHO_C=' 12043' ECHO_T=' ' ;; 12044 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 12045 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 12046esac 12047 12048if expr a : '\(a\)' >/dev/null 2>&1; then 12049 as_expr=expr 12050else 12051 as_expr=false 12052fi 12053 12054rm -f conf$$ conf$$.exe conf$$.file 12055echo >conf$$.file 12056if ln -s conf$$.file conf$$ 2>/dev/null; then 12057 # We could just check for DJGPP; but this test a) works b) is more generic 12058 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 12059 if test -f conf$$.exe; then 12060 # Don't use ln at all; we don't have any links 12061 as_ln_s='cp -p' 12062 else 12063 as_ln_s='ln -s' 12064 fi 12065elif ln conf$$.file conf$$ 2>/dev/null; then 12066 as_ln_s=ln 12067else 12068 as_ln_s='cp -p' 12069fi 12070rm -f conf$$ conf$$.exe conf$$.file 12071 12072if mkdir -p . 2>/dev/null; then 12073 as_mkdir_p=: 12074else 12075 test -d ./-p && rmdir ./-p 12076 as_mkdir_p=false 12077fi 12078 12079as_executable_p="test -f" 12080 12081# Sed expression to map a string onto a valid CPP name. 12082as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12083 12084# Sed expression to map a string onto a valid variable name. 12085as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12086 12087 12088# IFS 12089# We need space, tab and new line, in precisely that order. 12090as_nl=' 12091' 12092IFS=" $as_nl" 12093 12094# CDPATH. 12095$as_unset CDPATH 12096 12097exec 6>&1 12098 12099# Open the log real soon, to keep \$[0] and so on meaningful, and to 12100# report actual input values of CONFIG_FILES etc. instead of their 12101# values after options handling. Logging --version etc. is OK. 12102exec 5>>config.log 12103{ 12104 echo 12105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12106## Running $as_me. ## 12107_ASBOX 12108} >&5 12109cat >&5 <<_CSEOF 12110 12111This file was extended by $as_me, which was 12112generated by GNU Autoconf 2.59. Invocation command line was 12113 12114 CONFIG_FILES = $CONFIG_FILES 12115 CONFIG_HEADERS = $CONFIG_HEADERS 12116 CONFIG_LINKS = $CONFIG_LINKS 12117 CONFIG_COMMANDS = $CONFIG_COMMANDS 12118 $ $0 $@ 12119 12120_CSEOF 12121echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 12122echo >&5 12123_ACEOF 12124 12125# Files that config.status was made for. 12126if test -n "$ac_config_files"; then 12127 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 12128fi 12129 12130if test -n "$ac_config_headers"; then 12131 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 12132fi 12133 12134if test -n "$ac_config_links"; then 12135 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 12136fi 12137 12138if test -n "$ac_config_commands"; then 12139 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 12140fi 12141 12142cat >>$CONFIG_STATUS <<\_ACEOF 12143 12144ac_cs_usage="\ 12145\`$as_me' instantiates files from templates according to the 12146current configuration. 12147 12148Usage: $0 [OPTIONS] [FILE]... 12149 12150 -h, --help print this help, then exit 12151 -V, --version print version number, then exit 12152 -q, --quiet do not print progress messages 12153 -d, --debug don't remove temporary files 12154 --recheck update $as_me by reconfiguring in the same conditions 12155 --file=FILE[:TEMPLATE] 12156 instantiate the configuration file FILE 12157 --header=FILE[:TEMPLATE] 12158 instantiate the configuration header FILE 12159 12160Configuration files: 12161$config_files 12162 12163Configuration headers: 12164$config_headers 12165 12166Report bugs to <bug-autoconf@gnu.org>." 12167_ACEOF 12168 12169cat >>$CONFIG_STATUS <<_ACEOF 12170ac_cs_version="\\ 12171config.status 12172configured by $0, generated by GNU Autoconf 2.59, 12173 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 12174 12175Copyright (C) 2003 Free Software Foundation, Inc. 12176This config.status script is free software; the Free Software Foundation 12177gives unlimited permission to copy, distribute and modify it." 12178srcdir=$srcdir 12179_ACEOF 12180 12181cat >>$CONFIG_STATUS <<\_ACEOF 12182# If no file are specified by the user, then we need to provide default 12183# value. By we need to know if files were specified by the user. 12184ac_need_defaults=: 12185while test $# != 0 12186do 12187 case $1 in 12188 --*=*) 12189 ac_option=`expr "x$1" : 'x\([^=]*\)='` 12190 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 12191 ac_shift=: 12192 ;; 12193 -*) 12194 ac_option=$1 12195 ac_optarg=$2 12196 ac_shift=shift 12197 ;; 12198 *) # This is not an option, so the user has probably given explicit 12199 # arguments. 12200 ac_option=$1 12201 ac_need_defaults=false;; 12202 esac 12203 12204 case $ac_option in 12205 # Handling of the options. 12206_ACEOF 12207cat >>$CONFIG_STATUS <<\_ACEOF 12208 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12209 ac_cs_recheck=: ;; 12210 --version | --vers* | -V ) 12211 echo "$ac_cs_version"; exit 0 ;; 12212 --he | --h) 12213 # Conflict between --help and --header 12214 { { echo "$as_me:$LINENO: error: ambiguous option: $1 12215Try \`$0 --help' for more information." >&5 12216echo "$as_me: error: ambiguous option: $1 12217Try \`$0 --help' for more information." >&2;} 12218 { (exit 1); exit 1; }; };; 12219 --help | --hel | -h ) 12220 echo "$ac_cs_usage"; exit 0 ;; 12221 --debug | --d* | -d ) 12222 debug=: ;; 12223 --file | --fil | --fi | --f ) 12224 $ac_shift 12225 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12226 ac_need_defaults=false;; 12227 --header | --heade | --head | --hea ) 12228 $ac_shift 12229 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 12230 ac_need_defaults=false;; 12231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12232 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12233 ac_cs_silent=: ;; 12234 12235 # This is an error. 12236 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 12237Try \`$0 --help' for more information." >&5 12238echo "$as_me: error: unrecognized option: $1 12239Try \`$0 --help' for more information." >&2;} 12240 { (exit 1); exit 1; }; } ;; 12241 12242 *) ac_config_targets="$ac_config_targets $1" ;; 12243 12244 esac 12245 shift 12246done 12247 12248ac_configure_extra_args= 12249 12250if $ac_cs_silent; then 12251 exec 6>/dev/null 12252 ac_configure_extra_args="$ac_configure_extra_args --silent" 12253fi 12254 12255_ACEOF 12256cat >>$CONFIG_STATUS <<_ACEOF 12257if \$ac_cs_recheck; then 12258 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 12259 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12260fi 12261 12262_ACEOF 12263 12264 12265 12266 12267 12268cat >>$CONFIG_STATUS <<\_ACEOF 12269for ac_config_target in $ac_config_targets 12270do 12271 case "$ac_config_target" in 12272 # Handling of arguments. 12273 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12274 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12275 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12276echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12277 { (exit 1); exit 1; }; };; 12278 esac 12279done 12280 12281# If the user did not use the arguments to specify the items to instantiate, 12282# then the envvar interface is used. Set only those that are not. 12283# We use the long form for the default assignment because of an extremely 12284# bizarre bug on SunOS 4.1.3. 12285if $ac_need_defaults; then 12286 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12287 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12288fi 12289 12290# Have a temporary directory for convenience. Make it in the build tree 12291# simply because there is no reason to put it here, and in addition, 12292# creating and moving files from /tmp can sometimes cause problems. 12293# Create a temporary directory, and hook for its removal unless debugging. 12294$debug || 12295{ 12296 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 12297 trap '{ (exit 1); exit 1; }' 1 2 13 15 12298} 12299 12300# Create a (secure) tmp directory for tmp files. 12301 12302{ 12303 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 12304 test -n "$tmp" && test -d "$tmp" 12305} || 12306{ 12307 tmp=./confstat$$-$RANDOM 12308 (umask 077 && mkdir $tmp) 12309} || 12310{ 12311 echo "$me: cannot create a temporary directory in ." >&2 12312 { (exit 1); exit 1; } 12313} 12314 12315_ACEOF 12316 12317cat >>$CONFIG_STATUS <<_ACEOF 12318 12319# 12320# CONFIG_FILES section. 12321# 12322 12323# No need to generate the scripts if there are no CONFIG_FILES. 12324# This happens for instance when ./config.status config.h 12325if test -n "\$CONFIG_FILES"; then 12326 # Protect against being on the right side of a sed subst in config.status. 12327 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 12328 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 12329s,@SHELL@,$SHELL,;t t 12330s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 12331s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 12332s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 12333s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 12334s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 12335s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 12336s,@exec_prefix@,$exec_prefix,;t t 12337s,@prefix@,$prefix,;t t 12338s,@program_transform_name@,$program_transform_name,;t t 12339s,@bindir@,$bindir,;t t 12340s,@sbindir@,$sbindir,;t t 12341s,@libexecdir@,$libexecdir,;t t 12342s,@datadir@,$datadir,;t t 12343s,@sysconfdir@,$sysconfdir,;t t 12344s,@sharedstatedir@,$sharedstatedir,;t t 12345s,@localstatedir@,$localstatedir,;t t 12346s,@libdir@,$libdir,;t t 12347s,@includedir@,$includedir,;t t 12348s,@oldincludedir@,$oldincludedir,;t t 12349s,@infodir@,$infodir,;t t 12350s,@mandir@,$mandir,;t t 12351s,@build_alias@,$build_alias,;t t 12352s,@host_alias@,$host_alias,;t t 12353s,@target_alias@,$target_alias,;t t 12354s,@DEFS@,$DEFS,;t t 12355s,@ECHO_C@,$ECHO_C,;t t 12356s,@ECHO_N@,$ECHO_N,;t t 12357s,@ECHO_T@,$ECHO_T,;t t 12358s,@LIBS@,$LIBS,;t t 12359s,@CC@,$CC,;t t 12360s,@CFLAGS@,$CFLAGS,;t t 12361s,@LDFLAGS@,$LDFLAGS,;t t 12362s,@CPPFLAGS@,$CPPFLAGS,;t t 12363s,@ac_ct_CC@,$ac_ct_CC,;t t 12364s,@EXEEXT@,$EXEEXT,;t t 12365s,@OBJEXT@,$OBJEXT,;t t 12366s,@SET_MAKE@,$SET_MAKE,;t t 12367s,@LD@,$LD,;t t 12368s,@build@,$build,;t t 12369s,@build_cpu@,$build_cpu,;t t 12370s,@build_vendor@,$build_vendor,;t t 12371s,@build_os@,$build_os,;t t 12372s,@host@,$host,;t t 12373s,@host_cpu@,$host_cpu,;t t 12374s,@host_vendor@,$host_vendor,;t t 12375s,@host_os@,$host_os,;t t 12376s,@AR@,$AR,;t t 12377s,@ac_ct_AR@,$ac_ct_AR,;t t 12378s,@RANLIB@,$RANLIB,;t t 12379s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 12380s,@STRIP@,$STRIP,;t t 12381s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 12382s,@INSTALL@,$INSTALL,;t t 12383s,@ac_ct_INSTALL@,$ac_ct_INSTALL,;t t 12384s,@CPP@,$CPP,;t t 12385s,@EGREP@,$EGREP,;t t 12386s,@LIBOBJS@,$LIBOBJS,;t t 12387s,@LTLIBOBJS@,$LTLIBOBJS,;t t 12388CEOF 12389 12390_ACEOF 12391 12392 cat >>$CONFIG_STATUS <<\_ACEOF 12393 # Split the substitutions into bite-sized pieces for seds with 12394 # small command number limits, like on Digital OSF/1 and HP-UX. 12395 ac_max_sed_lines=48 12396 ac_sed_frag=1 # Number of current file. 12397 ac_beg=1 # First line for current file. 12398 ac_end=$ac_max_sed_lines # Line after last line for current file. 12399 ac_more_lines=: 12400 ac_sed_cmds= 12401 while $ac_more_lines; do 12402 if test $ac_beg -gt 1; then 12403 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12404 else 12405 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12406 fi 12407 if test ! -s $tmp/subs.frag; then 12408 ac_more_lines=false 12409 else 12410 # The purpose of the label and of the branching condition is to 12411 # speed up the sed processing (if there are no `@' at all, there 12412 # is no need to browse any of the substitutions). 12413 # These are the two extra sed commands mentioned above. 12414 (echo ':t 12415 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 12416 if test -z "$ac_sed_cmds"; then 12417 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 12418 else 12419 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 12420 fi 12421 ac_sed_frag=`expr $ac_sed_frag + 1` 12422 ac_beg=$ac_end 12423 ac_end=`expr $ac_end + $ac_max_sed_lines` 12424 fi 12425 done 12426 if test -z "$ac_sed_cmds"; then 12427 ac_sed_cmds=cat 12428 fi 12429fi # test -n "$CONFIG_FILES" 12430 12431_ACEOF 12432cat >>$CONFIG_STATUS <<\_ACEOF 12433for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 12434 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12435 case $ac_file in 12436 - | *:- | *:-:* ) # input from stdin 12437 cat >$tmp/stdin 12438 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12439 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12440 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12441 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12442 * ) ac_file_in=$ac_file.in ;; 12443 esac 12444 12445 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 12446 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12447$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12448 X"$ac_file" : 'X\(//\)[^/]' \| \ 12449 X"$ac_file" : 'X\(//\)$' \| \ 12450 X"$ac_file" : 'X\(/\)' \| \ 12451 . : '\(.\)' 2>/dev/null || 12452echo X"$ac_file" | 12453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12454 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12455 /^X\(\/\/\)$/{ s//\1/; q; } 12456 /^X\(\/\).*/{ s//\1/; q; } 12457 s/.*/./; q'` 12458 { if $as_mkdir_p; then 12459 mkdir -p "$ac_dir" 12460 else 12461 as_dir="$ac_dir" 12462 as_dirs= 12463 while test ! -d "$as_dir"; do 12464 as_dirs="$as_dir $as_dirs" 12465 as_dir=`(dirname "$as_dir") 2>/dev/null || 12466$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12467 X"$as_dir" : 'X\(//\)[^/]' \| \ 12468 X"$as_dir" : 'X\(//\)$' \| \ 12469 X"$as_dir" : 'X\(/\)' \| \ 12470 . : '\(.\)' 2>/dev/null || 12471echo X"$as_dir" | 12472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12473 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12474 /^X\(\/\/\)$/{ s//\1/; q; } 12475 /^X\(\/\).*/{ s//\1/; q; } 12476 s/.*/./; q'` 12477 done 12478 test ! -n "$as_dirs" || mkdir $as_dirs 12479 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12480echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12481 { (exit 1); exit 1; }; }; } 12482 12483 ac_builddir=. 12484 12485if test "$ac_dir" != .; then 12486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12487 # A "../" for each directory in $ac_dir_suffix. 12488 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12489else 12490 ac_dir_suffix= ac_top_builddir= 12491fi 12492 12493case $srcdir in 12494 .) # No --srcdir option. We are building in place. 12495 ac_srcdir=. 12496 if test -z "$ac_top_builddir"; then 12497 ac_top_srcdir=. 12498 else 12499 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12500 fi ;; 12501 [\\/]* | ?:[\\/]* ) # Absolute path. 12502 ac_srcdir=$srcdir$ac_dir_suffix; 12503 ac_top_srcdir=$srcdir ;; 12504 *) # Relative path. 12505 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12506 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12507esac 12508 12509# Do not use `cd foo && pwd` to compute absolute paths, because 12510# the directories may not exist. 12511case `pwd` in 12512.) ac_abs_builddir="$ac_dir";; 12513*) 12514 case "$ac_dir" in 12515 .) ac_abs_builddir=`pwd`;; 12516 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 12517 *) ac_abs_builddir=`pwd`/"$ac_dir";; 12518 esac;; 12519esac 12520case $ac_abs_builddir in 12521.) ac_abs_top_builddir=${ac_top_builddir}.;; 12522*) 12523 case ${ac_top_builddir}. in 12524 .) ac_abs_top_builddir=$ac_abs_builddir;; 12525 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 12526 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 12527 esac;; 12528esac 12529case $ac_abs_builddir in 12530.) ac_abs_srcdir=$ac_srcdir;; 12531*) 12532 case $ac_srcdir in 12533 .) ac_abs_srcdir=$ac_abs_builddir;; 12534 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 12535 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 12536 esac;; 12537esac 12538case $ac_abs_builddir in 12539.) ac_abs_top_srcdir=$ac_top_srcdir;; 12540*) 12541 case $ac_top_srcdir in 12542 .) ac_abs_top_srcdir=$ac_abs_builddir;; 12543 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 12544 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 12545 esac;; 12546esac 12547 12548 12549 12550 if test x"$ac_file" != x-; then 12551 { echo "$as_me:$LINENO: creating $ac_file" >&5 12552echo "$as_me: creating $ac_file" >&6;} 12553 rm -f "$ac_file" 12554 fi 12555 # Let's still pretend it is `configure' which instantiates (i.e., don't 12556 # use $as_me), people would be surprised to read: 12557 # /* config.h. Generated by config.status. */ 12558 if test x"$ac_file" = x-; then 12559 configure_input= 12560 else 12561 configure_input="$ac_file. " 12562 fi 12563 configure_input=$configure_input"Generated from `echo $ac_file_in | 12564 sed 's,.*/,,'` by configure." 12565 12566 # First look for the input files in the build tree, otherwise in the 12567 # src tree. 12568 ac_file_inputs=`IFS=: 12569 for f in $ac_file_in; do 12570 case $f in 12571 -) echo $tmp/stdin ;; 12572 [\\/$]*) 12573 # Absolute (can't be DOS-style, as IFS=:) 12574 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12575echo "$as_me: error: cannot find input file: $f" >&2;} 12576 { (exit 1); exit 1; }; } 12577 echo "$f";; 12578 *) # Relative 12579 if test -f "$f"; then 12580 # Build tree 12581 echo "$f" 12582 elif test -f "$srcdir/$f"; then 12583 # Source tree 12584 echo "$srcdir/$f" 12585 else 12586 # /dev/null tree 12587 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12588echo "$as_me: error: cannot find input file: $f" >&2;} 12589 { (exit 1); exit 1; }; } 12590 fi;; 12591 esac 12592 done` || { (exit 1); exit 1; } 12593_ACEOF 12594cat >>$CONFIG_STATUS <<_ACEOF 12595 sed "$ac_vpsub 12596$extrasub 12597_ACEOF 12598cat >>$CONFIG_STATUS <<\_ACEOF 12599:t 12600/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12601s,@configure_input@,$configure_input,;t t 12602s,@srcdir@,$ac_srcdir,;t t 12603s,@abs_srcdir@,$ac_abs_srcdir,;t t 12604s,@top_srcdir@,$ac_top_srcdir,;t t 12605s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 12606s,@builddir@,$ac_builddir,;t t 12607s,@abs_builddir@,$ac_abs_builddir,;t t 12608s,@top_builddir@,$ac_top_builddir,;t t 12609s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 12610" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 12611 rm -f $tmp/stdin 12612 if test x"$ac_file" != x-; then 12613 mv $tmp/out $ac_file 12614 else 12615 cat $tmp/out 12616 rm -f $tmp/out 12617 fi 12618 12619done 12620_ACEOF 12621cat >>$CONFIG_STATUS <<\_ACEOF 12622 12623# 12624# CONFIG_HEADER section. 12625# 12626 12627# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 12628# NAME is the cpp macro being defined and VALUE is the value it is being given. 12629# 12630# ac_d sets the value in "#define NAME VALUE" lines. 12631ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 12632ac_dB='[ ].*$,\1#\2' 12633ac_dC=' ' 12634ac_dD=',;t' 12635# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 12636ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 12637ac_uB='$,\1#\2define\3' 12638ac_uC=' ' 12639ac_uD=',;t' 12640 12641for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 12642 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12643 case $ac_file in 12644 - | *:- | *:-:* ) # input from stdin 12645 cat >$tmp/stdin 12646 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12647 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12648 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12649 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12650 * ) ac_file_in=$ac_file.in ;; 12651 esac 12652 12653 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 12654echo "$as_me: creating $ac_file" >&6;} 12655 12656 # First look for the input files in the build tree, otherwise in the 12657 # src tree. 12658 ac_file_inputs=`IFS=: 12659 for f in $ac_file_in; do 12660 case $f in 12661 -) echo $tmp/stdin ;; 12662 [\\/$]*) 12663 # Absolute (can't be DOS-style, as IFS=:) 12664 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12665echo "$as_me: error: cannot find input file: $f" >&2;} 12666 { (exit 1); exit 1; }; } 12667 # Do quote $f, to prevent DOS paths from being IFS'd. 12668 echo "$f";; 12669 *) # Relative 12670 if test -f "$f"; then 12671 # Build tree 12672 echo "$f" 12673 elif test -f "$srcdir/$f"; then 12674 # Source tree 12675 echo "$srcdir/$f" 12676 else 12677 # /dev/null tree 12678 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12679echo "$as_me: error: cannot find input file: $f" >&2;} 12680 { (exit 1); exit 1; }; } 12681 fi;; 12682 esac 12683 done` || { (exit 1); exit 1; } 12684 # Remove the trailing spaces. 12685 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 12686 12687_ACEOF 12688 12689# Transform confdefs.h into two sed scripts, `conftest.defines' and 12690# `conftest.undefs', that substitutes the proper values into 12691# config.h.in to produce config.h. The first handles `#define' 12692# templates, and the second `#undef' templates. 12693# And first: Protect against being on the right side of a sed subst in 12694# config.status. Protect against being in an unquoted here document 12695# in config.status. 12696rm -f conftest.defines conftest.undefs 12697# Using a here document instead of a string reduces the quoting nightmare. 12698# Putting comments in sed scripts is not portable. 12699# 12700# `end' is used to avoid that the second main sed command (meant for 12701# 0-ary CPP macros) applies to n-ary macro definitions. 12702# See the Autoconf documentation for `clear'. 12703cat >confdef2sed.sed <<\_ACEOF 12704s/[\\&,]/\\&/g 12705s,[\\$`],\\&,g 12706t clear 12707: clear 12708s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 12709t end 12710s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 12711: end 12712_ACEOF 12713# If some macros were called several times there might be several times 12714# the same #defines, which is useless. Nevertheless, we may not want to 12715# sort them, since we want the *last* AC-DEFINE to be honored. 12716uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 12717sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 12718rm -f confdef2sed.sed 12719 12720# This sed command replaces #undef with comments. This is necessary, for 12721# example, in the case of _POSIX_SOURCE, which is predefined and required 12722# on some systems where configure will not decide to define it. 12723cat >>conftest.undefs <<\_ACEOF 12724s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 12725_ACEOF 12726 12727# Break up conftest.defines because some shells have a limit on the size 12728# of here documents, and old seds have small limits too (100 cmds). 12729echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 12730echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 12731echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 12732echo ' :' >>$CONFIG_STATUS 12733rm -f conftest.tail 12734while grep . conftest.defines >/dev/null 12735do 12736 # Write a limited-size here document to $tmp/defines.sed. 12737 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 12738 # Speed up: don't consider the non `#define' lines. 12739 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 12740 # Work around the forget-to-reset-the-flag bug. 12741 echo 't clr' >>$CONFIG_STATUS 12742 echo ': clr' >>$CONFIG_STATUS 12743 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 12744 echo 'CEOF 12745 sed -f $tmp/defines.sed $tmp/in >$tmp/out 12746 rm -f $tmp/in 12747 mv $tmp/out $tmp/in 12748' >>$CONFIG_STATUS 12749 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 12750 rm -f conftest.defines 12751 mv conftest.tail conftest.defines 12752done 12753rm -f conftest.defines 12754echo ' fi # grep' >>$CONFIG_STATUS 12755echo >>$CONFIG_STATUS 12756 12757# Break up conftest.undefs because some shells have a limit on the size 12758# of here documents, and old seds have small limits too (100 cmds). 12759echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 12760rm -f conftest.tail 12761while grep . conftest.undefs >/dev/null 12762do 12763 # Write a limited-size here document to $tmp/undefs.sed. 12764 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 12765 # Speed up: don't consider the non `#undef' 12766 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 12767 # Work around the forget-to-reset-the-flag bug. 12768 echo 't clr' >>$CONFIG_STATUS 12769 echo ': clr' >>$CONFIG_STATUS 12770 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 12771 echo 'CEOF 12772 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 12773 rm -f $tmp/in 12774 mv $tmp/out $tmp/in 12775' >>$CONFIG_STATUS 12776 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 12777 rm -f conftest.undefs 12778 mv conftest.tail conftest.undefs 12779done 12780rm -f conftest.undefs 12781 12782cat >>$CONFIG_STATUS <<\_ACEOF 12783 # Let's still pretend it is `configure' which instantiates (i.e., don't 12784 # use $as_me), people would be surprised to read: 12785 # /* config.h. Generated by config.status. */ 12786 if test x"$ac_file" = x-; then 12787 echo "/* Generated by configure. */" >$tmp/config.h 12788 else 12789 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 12790 fi 12791 cat $tmp/in >>$tmp/config.h 12792 rm -f $tmp/in 12793 if test x"$ac_file" != x-; then 12794 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 12795 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 12796echo "$as_me: $ac_file is unchanged" >&6;} 12797 else 12798 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12799$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12800 X"$ac_file" : 'X\(//\)[^/]' \| \ 12801 X"$ac_file" : 'X\(//\)$' \| \ 12802 X"$ac_file" : 'X\(/\)' \| \ 12803 . : '\(.\)' 2>/dev/null || 12804echo X"$ac_file" | 12805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12806 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12807 /^X\(\/\/\)$/{ s//\1/; q; } 12808 /^X\(\/\).*/{ s//\1/; q; } 12809 s/.*/./; q'` 12810 { if $as_mkdir_p; then 12811 mkdir -p "$ac_dir" 12812 else 12813 as_dir="$ac_dir" 12814 as_dirs= 12815 while test ! -d "$as_dir"; do 12816 as_dirs="$as_dir $as_dirs" 12817 as_dir=`(dirname "$as_dir") 2>/dev/null || 12818$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12819 X"$as_dir" : 'X\(//\)[^/]' \| \ 12820 X"$as_dir" : 'X\(//\)$' \| \ 12821 X"$as_dir" : 'X\(/\)' \| \ 12822 . : '\(.\)' 2>/dev/null || 12823echo X"$as_dir" | 12824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12825 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12826 /^X\(\/\/\)$/{ s//\1/; q; } 12827 /^X\(\/\).*/{ s//\1/; q; } 12828 s/.*/./; q'` 12829 done 12830 test ! -n "$as_dirs" || mkdir $as_dirs 12831 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12832echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12833 { (exit 1); exit 1; }; }; } 12834 12835 rm -f $ac_file 12836 mv $tmp/config.h $ac_file 12837 fi 12838 else 12839 cat $tmp/config.h 12840 rm -f $tmp/config.h 12841 fi 12842done 12843_ACEOF 12844 12845cat >>$CONFIG_STATUS <<\_ACEOF 12846 12847{ (exit 0); exit 0; } 12848_ACEOF 12849chmod +x $CONFIG_STATUS 12850ac_clean_files=$ac_clean_files_save 12851 12852 12853# configure is writing to config.log, and then calls config.status. 12854# config.status does its own redirection, appending to config.log. 12855# Unfortunately, on DOS this fails, as config.log is still kept open 12856# by configure, so config.status won't be able to write to it; its 12857# output is simply discarded. So we exec the FD to /dev/null, 12858# effectively closing config.log, so it can be properly (re)opened and 12859# appended to by config.status. When coming back to configure, we 12860# need to make the FD available again. 12861if test "$no_create" != yes; then 12862 ac_cs_success=: 12863 ac_config_status_args= 12864 test "$silent" = yes && 12865 ac_config_status_args="$ac_config_status_args --quiet" 12866 exec 5>/dev/null 12867 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12868 exec 5>>config.log 12869 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12870 # would make configure fail if this is the last instruction. 12871 $ac_cs_success || { (exit 1); exit 1; } 12872fi 12873 12874 ac_config_files="$ac_config_files libtomcrypt/Makefile" 12875cat >confcache <<\_ACEOF 12876# This file is a shell script that caches the results of configure 12877# tests run on this system so they can be shared between configure 12878# scripts and configure runs, see configure's option --config-cache. 12879# It is not useful on other systems. If it contains results you don't 12880# want to keep, you may remove or edit it. 12881# 12882# config.status only pays attention to the cache file if you give it 12883# the --recheck option to rerun configure. 12884# 12885# `ac_cv_env_foo' variables (set or unset) will be overridden when 12886# loading this file, other *unset* `ac_cv_foo' will be assigned the 12887# following values. 12888 12889_ACEOF 12890 12891# The following way of writing the cache mishandles newlines in values, 12892# but we know of no workaround that is simple, portable, and efficient. 12893# So, don't put newlines in cache variables' values. 12894# Ultrix sh set writes to stderr and can't be redirected directly, 12895# and sets the high bit in the cache file unless we assign to the vars. 12896{ 12897 (set) 2>&1 | 12898 case `(ac_space=' '; set | grep ac_space) 2>&1` in 12899 *ac_space=\ *) 12900 # `set' does not quote correctly, so add quotes (double-quote 12901 # substitution turns \\\\ into \\, and sed turns \\ into \). 12902 sed -n \ 12903 "s/'/'\\\\''/g; 12904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12905 ;; 12906 *) 12907 # `set' quotes correctly as required by POSIX, so do not add quotes. 12908 sed -n \ 12909 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 12910 ;; 12911 esac; 12912} | 12913 sed ' 12914 t clear 12915 : clear 12916 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12917 t end 12918 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12919 : end' >>confcache 12920if diff $cache_file confcache >/dev/null 2>&1; then :; else 12921 if test -w $cache_file; then 12922 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 12923 cat confcache >$cache_file 12924 else 12925 echo "not updating unwritable cache $cache_file" 12926 fi 12927fi 12928rm -f confcache 12929 12930test "x$prefix" = xNONE && prefix=$ac_default_prefix 12931# Let make expand exec_prefix. 12932test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12933 12934# VPATH may cause trouble with some makes, so we remove $(srcdir), 12935# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12936# trailing colons and then remove the whole line if VPATH becomes empty 12937# (actually we leave an empty line to preserve line numbers). 12938if test "x$srcdir" = x.; then 12939 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12940s/:*\$(srcdir):*/:/; 12941s/:*\${srcdir}:*/:/; 12942s/:*@srcdir@:*/:/; 12943s/^\([^=]*=[ ]*\):*/\1/; 12944s/:*$//; 12945s/^[^=]*=[ ]*$//; 12946}' 12947fi 12948 12949DEFS=-DHAVE_CONFIG_H 12950 12951ac_libobjs= 12952ac_ltlibobjs= 12953for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12954 # 1. Remove the extension, and $U if already installed. 12955 ac_i=`echo "$ac_i" | 12956 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 12957 # 2. Add them. 12958 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 12959 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 12960done 12961LIBOBJS=$ac_libobjs 12962 12963LTLIBOBJS=$ac_ltlibobjs 12964 12965 12966 12967: ${CONFIG_STATUS=./config.status} 12968ac_clean_files_save=$ac_clean_files 12969ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12970{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 12971echo "$as_me: creating $CONFIG_STATUS" >&6;} 12972cat >$CONFIG_STATUS <<_ACEOF 12973#! $SHELL 12974# Generated by $as_me. 12975# Run this file to recreate the current configuration. 12976# Compiler output produced by configure, useful for debugging 12977# configure, is in config.log if it exists. 12978 12979debug=false 12980ac_cs_recheck=false 12981ac_cs_silent=false 12982SHELL=\${CONFIG_SHELL-$SHELL} 12983_ACEOF 12984 12985cat >>$CONFIG_STATUS <<\_ACEOF 12986## --------------------- ## 12987## M4sh Initialization. ## 12988## --------------------- ## 12989 12990# Be Bourne compatible 12991if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12992 emulate sh 12993 NULLCMD=: 12994 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 12995 # is contrary to our usage. Disable this feature. 12996 alias -g '${1+"$@"}'='"$@"' 12997elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 12998 set -o posix 12999fi 13000DUALCASE=1; export DUALCASE # for MKS sh 13001 13002# Support unset when possible. 13003if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13004 as_unset=unset 13005else 13006 as_unset=false 13007fi 13008 13009 13010# Work around bugs in pre-3.0 UWIN ksh. 13011$as_unset ENV MAIL MAILPATH 13012PS1='$ ' 13013PS2='> ' 13014PS4='+ ' 13015 13016# NLS nuisances. 13017for as_var in \ 13018 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 13019 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 13020 LC_TELEPHONE LC_TIME 13021do 13022 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 13023 eval $as_var=C; export $as_var 13024 else 13025 $as_unset $as_var 13026 fi 13027done 13028 13029# Required to use basename. 13030if expr a : '\(a\)' >/dev/null 2>&1; then 13031 as_expr=expr 13032else 13033 as_expr=false 13034fi 13035 13036if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 13037 as_basename=basename 13038else 13039 as_basename=false 13040fi 13041 13042 13043# Name of the executable. 13044as_me=`$as_basename "$0" || 13045$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13046 X"$0" : 'X\(//\)$' \| \ 13047 X"$0" : 'X\(/\)$' \| \ 13048 . : '\(.\)' 2>/dev/null || 13049echo X/"$0" | 13050 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 13051 /^X\/\(\/\/\)$/{ s//\1/; q; } 13052 /^X\/\(\/\).*/{ s//\1/; q; } 13053 s/.*/./; q'` 13054 13055 13056# PATH needs CR, and LINENO needs CR and PATH. 13057# Avoid depending upon Character Ranges. 13058as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13059as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13060as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13061as_cr_digits='0123456789' 13062as_cr_alnum=$as_cr_Letters$as_cr_digits 13063 13064# The user is always right. 13065if test "${PATH_SEPARATOR+set}" != set; then 13066 echo "#! /bin/sh" >conf$$.sh 13067 echo "exit 0" >>conf$$.sh 13068 chmod +x conf$$.sh 13069 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13070 PATH_SEPARATOR=';' 13071 else 13072 PATH_SEPARATOR=: 13073 fi 13074 rm -f conf$$.sh 13075fi 13076 13077 13078 as_lineno_1=$LINENO 13079 as_lineno_2=$LINENO 13080 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 13081 test "x$as_lineno_1" != "x$as_lineno_2" && 13082 test "x$as_lineno_3" = "x$as_lineno_2" || { 13083 # Find who we are. Look in the path if we contain no path at all 13084 # relative or not. 13085 case $0 in 13086 *[\\/]* ) as_myself=$0 ;; 13087 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13088for as_dir in $PATH 13089do 13090 IFS=$as_save_IFS 13091 test -z "$as_dir" && as_dir=. 13092 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13093done 13094 13095 ;; 13096 esac 13097 # We did not find ourselves, most probably we were run as `sh COMMAND' 13098 # in which case we are not to be found in the path. 13099 if test "x$as_myself" = x; then 13100 as_myself=$0 13101 fi 13102 if test ! -f "$as_myself"; then 13103 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 13104echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 13105 { (exit 1); exit 1; }; } 13106 fi 13107 case $CONFIG_SHELL in 13108 '') 13109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13110for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 13111do 13112 IFS=$as_save_IFS 13113 test -z "$as_dir" && as_dir=. 13114 for as_base in sh bash ksh sh5; do 13115 case $as_dir in 13116 /*) 13117 if ("$as_dir/$as_base" -c ' 13118 as_lineno_1=$LINENO 13119 as_lineno_2=$LINENO 13120 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 13121 test "x$as_lineno_1" != "x$as_lineno_2" && 13122 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 13123 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 13124 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 13125 CONFIG_SHELL=$as_dir/$as_base 13126 export CONFIG_SHELL 13127 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 13128 fi;; 13129 esac 13130 done 13131done 13132;; 13133 esac 13134 13135 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13136 # uniformly replaced by the line number. The first 'sed' inserts a 13137 # line-number line before each line; the second 'sed' does the real 13138 # work. The second script uses 'N' to pair each line-number line 13139 # with the numbered line, and appends trailing '-' during 13140 # substitution so that $LINENO is not a special case at line end. 13141 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13142 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 13143 sed '=' <$as_myself | 13144 sed ' 13145 N 13146 s,$,-, 13147 : loop 13148 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 13149 t loop 13150 s,-$,, 13151 s,^['$as_cr_digits']*\n,, 13152 ' >$as_me.lineno && 13153 chmod +x $as_me.lineno || 13154 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 13155echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 13156 { (exit 1); exit 1; }; } 13157 13158 # Don't try to exec as it changes $[0], causing all sort of problems 13159 # (the dirname of $[0] is not the place where we might find the 13160 # original and so on. Autoconf is especially sensible to this). 13161 . ./$as_me.lineno 13162 # Exit status is that of the last command. 13163 exit 13164} 13165 13166 13167case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 13168 *c*,-n*) ECHO_N= ECHO_C=' 13169' ECHO_T=' ' ;; 13170 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 13171 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 13172esac 13173 13174if expr a : '\(a\)' >/dev/null 2>&1; then 13175 as_expr=expr 13176else 13177 as_expr=false 13178fi 13179 13180rm -f conf$$ conf$$.exe conf$$.file 13181echo >conf$$.file 13182if ln -s conf$$.file conf$$ 2>/dev/null; then 13183 # We could just check for DJGPP; but this test a) works b) is more generic 13184 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 13185 if test -f conf$$.exe; then 13186 # Don't use ln at all; we don't have any links 13187 as_ln_s='cp -p' 13188 else 13189 as_ln_s='ln -s' 13190 fi 13191elif ln conf$$.file conf$$ 2>/dev/null; then 13192 as_ln_s=ln 13193else 13194 as_ln_s='cp -p' 13195fi 13196rm -f conf$$ conf$$.exe conf$$.file 13197 13198if mkdir -p . 2>/dev/null; then 13199 as_mkdir_p=: 13200else 13201 test -d ./-p && rmdir ./-p 13202 as_mkdir_p=false 13203fi 13204 13205as_executable_p="test -f" 13206 13207# Sed expression to map a string onto a valid CPP name. 13208as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13209 13210# Sed expression to map a string onto a valid variable name. 13211as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13212 13213 13214# IFS 13215# We need space, tab and new line, in precisely that order. 13216as_nl=' 13217' 13218IFS=" $as_nl" 13219 13220# CDPATH. 13221$as_unset CDPATH 13222 13223exec 6>&1 13224 13225# Open the log real soon, to keep \$[0] and so on meaningful, and to 13226# report actual input values of CONFIG_FILES etc. instead of their 13227# values after options handling. Logging --version etc. is OK. 13228exec 5>>config.log 13229{ 13230 echo 13231 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13232## Running $as_me. ## 13233_ASBOX 13234} >&5 13235cat >&5 <<_CSEOF 13236 13237This file was extended by $as_me, which was 13238generated by GNU Autoconf 2.59. Invocation command line was 13239 13240 CONFIG_FILES = $CONFIG_FILES 13241 CONFIG_HEADERS = $CONFIG_HEADERS 13242 CONFIG_LINKS = $CONFIG_LINKS 13243 CONFIG_COMMANDS = $CONFIG_COMMANDS 13244 $ $0 $@ 13245 13246_CSEOF 13247echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 13248echo >&5 13249_ACEOF 13250 13251# Files that config.status was made for. 13252if test -n "$ac_config_files"; then 13253 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 13254fi 13255 13256if test -n "$ac_config_headers"; then 13257 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 13258fi 13259 13260if test -n "$ac_config_links"; then 13261 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 13262fi 13263 13264if test -n "$ac_config_commands"; then 13265 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 13266fi 13267 13268cat >>$CONFIG_STATUS <<\_ACEOF 13269 13270ac_cs_usage="\ 13271\`$as_me' instantiates files from templates according to the 13272current configuration. 13273 13274Usage: $0 [OPTIONS] [FILE]... 13275 13276 -h, --help print this help, then exit 13277 -V, --version print version number, then exit 13278 -q, --quiet do not print progress messages 13279 -d, --debug don't remove temporary files 13280 --recheck update $as_me by reconfiguring in the same conditions 13281 --file=FILE[:TEMPLATE] 13282 instantiate the configuration file FILE 13283 --header=FILE[:TEMPLATE] 13284 instantiate the configuration header FILE 13285 13286Configuration files: 13287$config_files 13288 13289Configuration headers: 13290$config_headers 13291 13292Report bugs to <bug-autoconf@gnu.org>." 13293_ACEOF 13294 13295cat >>$CONFIG_STATUS <<_ACEOF 13296ac_cs_version="\\ 13297config.status 13298configured by $0, generated by GNU Autoconf 2.59, 13299 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 13300 13301Copyright (C) 2003 Free Software Foundation, Inc. 13302This config.status script is free software; the Free Software Foundation 13303gives unlimited permission to copy, distribute and modify it." 13304srcdir=$srcdir 13305_ACEOF 13306 13307cat >>$CONFIG_STATUS <<\_ACEOF 13308# If no file are specified by the user, then we need to provide default 13309# value. By we need to know if files were specified by the user. 13310ac_need_defaults=: 13311while test $# != 0 13312do 13313 case $1 in 13314 --*=*) 13315 ac_option=`expr "x$1" : 'x\([^=]*\)='` 13316 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 13317 ac_shift=: 13318 ;; 13319 -*) 13320 ac_option=$1 13321 ac_optarg=$2 13322 ac_shift=shift 13323 ;; 13324 *) # This is not an option, so the user has probably given explicit 13325 # arguments. 13326 ac_option=$1 13327 ac_need_defaults=false;; 13328 esac 13329 13330 case $ac_option in 13331 # Handling of the options. 13332_ACEOF 13333cat >>$CONFIG_STATUS <<\_ACEOF 13334 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13335 ac_cs_recheck=: ;; 13336 --version | --vers* | -V ) 13337 echo "$ac_cs_version"; exit 0 ;; 13338 --he | --h) 13339 # Conflict between --help and --header 13340 { { echo "$as_me:$LINENO: error: ambiguous option: $1 13341Try \`$0 --help' for more information." >&5 13342echo "$as_me: error: ambiguous option: $1 13343Try \`$0 --help' for more information." >&2;} 13344 { (exit 1); exit 1; }; };; 13345 --help | --hel | -h ) 13346 echo "$ac_cs_usage"; exit 0 ;; 13347 --debug | --d* | -d ) 13348 debug=: ;; 13349 --file | --fil | --fi | --f ) 13350 $ac_shift 13351 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 13352 ac_need_defaults=false;; 13353 --header | --heade | --head | --hea ) 13354 $ac_shift 13355 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 13356 ac_need_defaults=false;; 13357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13358 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13359 ac_cs_silent=: ;; 13360 13361 # This is an error. 13362 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 13363Try \`$0 --help' for more information." >&5 13364echo "$as_me: error: unrecognized option: $1 13365Try \`$0 --help' for more information." >&2;} 13366 { (exit 1); exit 1; }; } ;; 13367 13368 *) ac_config_targets="$ac_config_targets $1" ;; 13369 13370 esac 13371 shift 13372done 13373 13374ac_configure_extra_args= 13375 13376if $ac_cs_silent; then 13377 exec 6>/dev/null 13378 ac_configure_extra_args="$ac_configure_extra_args --silent" 13379fi 13380 13381_ACEOF 13382cat >>$CONFIG_STATUS <<_ACEOF 13383if \$ac_cs_recheck; then 13384 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 13385 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13386fi 13387 13388_ACEOF 13389 13390 13391 13392 13393 13394cat >>$CONFIG_STATUS <<\_ACEOF 13395for ac_config_target in $ac_config_targets 13396do 13397 case "$ac_config_target" in 13398 # Handling of arguments. 13399 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13400 "libtomcrypt/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtomcrypt/Makefile" ;; 13401 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13402 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13403echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13404 { (exit 1); exit 1; }; };; 13405 esac 13406done 13407 13408# If the user did not use the arguments to specify the items to instantiate, 13409# then the envvar interface is used. Set only those that are not. 13410# We use the long form for the default assignment because of an extremely 13411# bizarre bug on SunOS 4.1.3. 13412if $ac_need_defaults; then 13413 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13414 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13415fi 13416 13417# Have a temporary directory for convenience. Make it in the build tree 13418# simply because there is no reason to put it here, and in addition, 13419# creating and moving files from /tmp can sometimes cause problems. 13420# Create a temporary directory, and hook for its removal unless debugging. 13421$debug || 13422{ 13423 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 13424 trap '{ (exit 1); exit 1; }' 1 2 13 15 13425} 13426 13427# Create a (secure) tmp directory for tmp files. 13428 13429{ 13430 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 13431 test -n "$tmp" && test -d "$tmp" 13432} || 13433{ 13434 tmp=./confstat$$-$RANDOM 13435 (umask 077 && mkdir $tmp) 13436} || 13437{ 13438 echo "$me: cannot create a temporary directory in ." >&2 13439 { (exit 1); exit 1; } 13440} 13441 13442_ACEOF 13443 13444cat >>$CONFIG_STATUS <<_ACEOF 13445 13446# 13447# CONFIG_FILES section. 13448# 13449 13450# No need to generate the scripts if there are no CONFIG_FILES. 13451# This happens for instance when ./config.status config.h 13452if test -n "\$CONFIG_FILES"; then 13453 # Protect against being on the right side of a sed subst in config.status. 13454 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 13455 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 13456s,@SHELL@,$SHELL,;t t 13457s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 13458s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 13459s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 13460s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 13461s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 13462s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 13463s,@exec_prefix@,$exec_prefix,;t t 13464s,@prefix@,$prefix,;t t 13465s,@program_transform_name@,$program_transform_name,;t t 13466s,@bindir@,$bindir,;t t 13467s,@sbindir@,$sbindir,;t t 13468s,@libexecdir@,$libexecdir,;t t 13469s,@datadir@,$datadir,;t t 13470s,@sysconfdir@,$sysconfdir,;t t 13471s,@sharedstatedir@,$sharedstatedir,;t t 13472s,@localstatedir@,$localstatedir,;t t 13473s,@libdir@,$libdir,;t t 13474s,@includedir@,$includedir,;t t 13475s,@oldincludedir@,$oldincludedir,;t t 13476s,@infodir@,$infodir,;t t 13477s,@mandir@,$mandir,;t t 13478s,@build_alias@,$build_alias,;t t 13479s,@host_alias@,$host_alias,;t t 13480s,@target_alias@,$target_alias,;t t 13481s,@DEFS@,$DEFS,;t t 13482s,@ECHO_C@,$ECHO_C,;t t 13483s,@ECHO_N@,$ECHO_N,;t t 13484s,@ECHO_T@,$ECHO_T,;t t 13485s,@LIBS@,$LIBS,;t t 13486s,@CC@,$CC,;t t 13487s,@CFLAGS@,$CFLAGS,;t t 13488s,@LDFLAGS@,$LDFLAGS,;t t 13489s,@CPPFLAGS@,$CPPFLAGS,;t t 13490s,@ac_ct_CC@,$ac_ct_CC,;t t 13491s,@EXEEXT@,$EXEEXT,;t t 13492s,@OBJEXT@,$OBJEXT,;t t 13493s,@SET_MAKE@,$SET_MAKE,;t t 13494s,@LD@,$LD,;t t 13495s,@build@,$build,;t t 13496s,@build_cpu@,$build_cpu,;t t 13497s,@build_vendor@,$build_vendor,;t t 13498s,@build_os@,$build_os,;t t 13499s,@host@,$host,;t t 13500s,@host_cpu@,$host_cpu,;t t 13501s,@host_vendor@,$host_vendor,;t t 13502s,@host_os@,$host_os,;t t 13503s,@AR@,$AR,;t t 13504s,@ac_ct_AR@,$ac_ct_AR,;t t 13505s,@RANLIB@,$RANLIB,;t t 13506s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 13507s,@STRIP@,$STRIP,;t t 13508s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 13509s,@INSTALL@,$INSTALL,;t t 13510s,@ac_ct_INSTALL@,$ac_ct_INSTALL,;t t 13511s,@CPP@,$CPP,;t t 13512s,@EGREP@,$EGREP,;t t 13513s,@LIBOBJS@,$LIBOBJS,;t t 13514s,@LTLIBOBJS@,$LTLIBOBJS,;t t 13515CEOF 13516 13517_ACEOF 13518 13519 cat >>$CONFIG_STATUS <<\_ACEOF 13520 # Split the substitutions into bite-sized pieces for seds with 13521 # small command number limits, like on Digital OSF/1 and HP-UX. 13522 ac_max_sed_lines=48 13523 ac_sed_frag=1 # Number of current file. 13524 ac_beg=1 # First line for current file. 13525 ac_end=$ac_max_sed_lines # Line after last line for current file. 13526 ac_more_lines=: 13527 ac_sed_cmds= 13528 while $ac_more_lines; do 13529 if test $ac_beg -gt 1; then 13530 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 13531 else 13532 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 13533 fi 13534 if test ! -s $tmp/subs.frag; then 13535 ac_more_lines=false 13536 else 13537 # The purpose of the label and of the branching condition is to 13538 # speed up the sed processing (if there are no `@' at all, there 13539 # is no need to browse any of the substitutions). 13540 # These are the two extra sed commands mentioned above. 13541 (echo ':t 13542 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 13543 if test -z "$ac_sed_cmds"; then 13544 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 13545 else 13546 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 13547 fi 13548 ac_sed_frag=`expr $ac_sed_frag + 1` 13549 ac_beg=$ac_end 13550 ac_end=`expr $ac_end + $ac_max_sed_lines` 13551 fi 13552 done 13553 if test -z "$ac_sed_cmds"; then 13554 ac_sed_cmds=cat 13555 fi 13556fi # test -n "$CONFIG_FILES" 13557 13558_ACEOF 13559cat >>$CONFIG_STATUS <<\_ACEOF 13560for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 13561 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 13562 case $ac_file in 13563 - | *:- | *:-:* ) # input from stdin 13564 cat >$tmp/stdin 13565 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 13566 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 13567 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 13568 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 13569 * ) ac_file_in=$ac_file.in ;; 13570 esac 13571 13572 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 13573 ac_dir=`(dirname "$ac_file") 2>/dev/null || 13574$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13575 X"$ac_file" : 'X\(//\)[^/]' \| \ 13576 X"$ac_file" : 'X\(//\)$' \| \ 13577 X"$ac_file" : 'X\(/\)' \| \ 13578 . : '\(.\)' 2>/dev/null || 13579echo X"$ac_file" | 13580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13581 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13582 /^X\(\/\/\)$/{ s//\1/; q; } 13583 /^X\(\/\).*/{ s//\1/; q; } 13584 s/.*/./; q'` 13585 { if $as_mkdir_p; then 13586 mkdir -p "$ac_dir" 13587 else 13588 as_dir="$ac_dir" 13589 as_dirs= 13590 while test ! -d "$as_dir"; do 13591 as_dirs="$as_dir $as_dirs" 13592 as_dir=`(dirname "$as_dir") 2>/dev/null || 13593$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13594 X"$as_dir" : 'X\(//\)[^/]' \| \ 13595 X"$as_dir" : 'X\(//\)$' \| \ 13596 X"$as_dir" : 'X\(/\)' \| \ 13597 . : '\(.\)' 2>/dev/null || 13598echo X"$as_dir" | 13599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13600 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13601 /^X\(\/\/\)$/{ s//\1/; q; } 13602 /^X\(\/\).*/{ s//\1/; q; } 13603 s/.*/./; q'` 13604 done 13605 test ! -n "$as_dirs" || mkdir $as_dirs 13606 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 13607echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 13608 { (exit 1); exit 1; }; }; } 13609 13610 ac_builddir=. 13611 13612if test "$ac_dir" != .; then 13613 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 13614 # A "../" for each directory in $ac_dir_suffix. 13615 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 13616else 13617 ac_dir_suffix= ac_top_builddir= 13618fi 13619 13620case $srcdir in 13621 .) # No --srcdir option. We are building in place. 13622 ac_srcdir=. 13623 if test -z "$ac_top_builddir"; then 13624 ac_top_srcdir=. 13625 else 13626 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 13627 fi ;; 13628 [\\/]* | ?:[\\/]* ) # Absolute path. 13629 ac_srcdir=$srcdir$ac_dir_suffix; 13630 ac_top_srcdir=$srcdir ;; 13631 *) # Relative path. 13632 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 13633 ac_top_srcdir=$ac_top_builddir$srcdir ;; 13634esac 13635 13636# Do not use `cd foo && pwd` to compute absolute paths, because 13637# the directories may not exist. 13638case `pwd` in 13639.) ac_abs_builddir="$ac_dir";; 13640*) 13641 case "$ac_dir" in 13642 .) ac_abs_builddir=`pwd`;; 13643 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 13644 *) ac_abs_builddir=`pwd`/"$ac_dir";; 13645 esac;; 13646esac 13647case $ac_abs_builddir in 13648.) ac_abs_top_builddir=${ac_top_builddir}.;; 13649*) 13650 case ${ac_top_builddir}. in 13651 .) ac_abs_top_builddir=$ac_abs_builddir;; 13652 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 13653 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 13654 esac;; 13655esac 13656case $ac_abs_builddir in 13657.) ac_abs_srcdir=$ac_srcdir;; 13658*) 13659 case $ac_srcdir in 13660 .) ac_abs_srcdir=$ac_abs_builddir;; 13661 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 13662 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 13663 esac;; 13664esac 13665case $ac_abs_builddir in 13666.) ac_abs_top_srcdir=$ac_top_srcdir;; 13667*) 13668 case $ac_top_srcdir in 13669 .) ac_abs_top_srcdir=$ac_abs_builddir;; 13670 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 13671 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 13672 esac;; 13673esac 13674 13675 13676 13677 if test x"$ac_file" != x-; then 13678 { echo "$as_me:$LINENO: creating $ac_file" >&5 13679echo "$as_me: creating $ac_file" >&6;} 13680 rm -f "$ac_file" 13681 fi 13682 # Let's still pretend it is `configure' which instantiates (i.e., don't 13683 # use $as_me), people would be surprised to read: 13684 # /* config.h. Generated by config.status. */ 13685 if test x"$ac_file" = x-; then 13686 configure_input= 13687 else 13688 configure_input="$ac_file. " 13689 fi 13690 configure_input=$configure_input"Generated from `echo $ac_file_in | 13691 sed 's,.*/,,'` by configure." 13692 13693 # First look for the input files in the build tree, otherwise in the 13694 # src tree. 13695 ac_file_inputs=`IFS=: 13696 for f in $ac_file_in; do 13697 case $f in 13698 -) echo $tmp/stdin ;; 13699 [\\/$]*) 13700 # Absolute (can't be DOS-style, as IFS=:) 13701 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 13702echo "$as_me: error: cannot find input file: $f" >&2;} 13703 { (exit 1); exit 1; }; } 13704 echo "$f";; 13705 *) # Relative 13706 if test -f "$f"; then 13707 # Build tree 13708 echo "$f" 13709 elif test -f "$srcdir/$f"; then 13710 # Source tree 13711 echo "$srcdir/$f" 13712 else 13713 # /dev/null tree 13714 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 13715echo "$as_me: error: cannot find input file: $f" >&2;} 13716 { (exit 1); exit 1; }; } 13717 fi;; 13718 esac 13719 done` || { (exit 1); exit 1; } 13720_ACEOF 13721cat >>$CONFIG_STATUS <<_ACEOF 13722 sed "$ac_vpsub 13723$extrasub 13724_ACEOF 13725cat >>$CONFIG_STATUS <<\_ACEOF 13726:t 13727/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13728s,@configure_input@,$configure_input,;t t 13729s,@srcdir@,$ac_srcdir,;t t 13730s,@abs_srcdir@,$ac_abs_srcdir,;t t 13731s,@top_srcdir@,$ac_top_srcdir,;t t 13732s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 13733s,@builddir@,$ac_builddir,;t t 13734s,@abs_builddir@,$ac_abs_builddir,;t t 13735s,@top_builddir@,$ac_top_builddir,;t t 13736s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 13737" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 13738 rm -f $tmp/stdin 13739 if test x"$ac_file" != x-; then 13740 mv $tmp/out $ac_file 13741 else 13742 cat $tmp/out 13743 rm -f $tmp/out 13744 fi 13745 13746done 13747_ACEOF 13748cat >>$CONFIG_STATUS <<\_ACEOF 13749 13750# 13751# CONFIG_HEADER section. 13752# 13753 13754# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 13755# NAME is the cpp macro being defined and VALUE is the value it is being given. 13756# 13757# ac_d sets the value in "#define NAME VALUE" lines. 13758ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 13759ac_dB='[ ].*$,\1#\2' 13760ac_dC=' ' 13761ac_dD=',;t' 13762# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 13763ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 13764ac_uB='$,\1#\2define\3' 13765ac_uC=' ' 13766ac_uD=',;t' 13767 13768for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 13769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 13770 case $ac_file in 13771 - | *:- | *:-:* ) # input from stdin 13772 cat >$tmp/stdin 13773 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 13774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 13775 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 13776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 13777 * ) ac_file_in=$ac_file.in ;; 13778 esac 13779 13780 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 13781echo "$as_me: creating $ac_file" >&6;} 13782 13783 # First look for the input files in the build tree, otherwise in the 13784 # src tree. 13785 ac_file_inputs=`IFS=: 13786 for f in $ac_file_in; do 13787 case $f in 13788 -) echo $tmp/stdin ;; 13789 [\\/$]*) 13790 # Absolute (can't be DOS-style, as IFS=:) 13791 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 13792echo "$as_me: error: cannot find input file: $f" >&2;} 13793 { (exit 1); exit 1; }; } 13794 # Do quote $f, to prevent DOS paths from being IFS'd. 13795 echo "$f";; 13796 *) # Relative 13797 if test -f "$f"; then 13798 # Build tree 13799 echo "$f" 13800 elif test -f "$srcdir/$f"; then 13801 # Source tree 13802 echo "$srcdir/$f" 13803 else 13804 # /dev/null tree 13805 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 13806echo "$as_me: error: cannot find input file: $f" >&2;} 13807 { (exit 1); exit 1; }; } 13808 fi;; 13809 esac 13810 done` || { (exit 1); exit 1; } 13811 # Remove the trailing spaces. 13812 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 13813 13814_ACEOF 13815 13816# Transform confdefs.h into two sed scripts, `conftest.defines' and 13817# `conftest.undefs', that substitutes the proper values into 13818# config.h.in to produce config.h. The first handles `#define' 13819# templates, and the second `#undef' templates. 13820# And first: Protect against being on the right side of a sed subst in 13821# config.status. Protect against being in an unquoted here document 13822# in config.status. 13823rm -f conftest.defines conftest.undefs 13824# Using a here document instead of a string reduces the quoting nightmare. 13825# Putting comments in sed scripts is not portable. 13826# 13827# `end' is used to avoid that the second main sed command (meant for 13828# 0-ary CPP macros) applies to n-ary macro definitions. 13829# See the Autoconf documentation for `clear'. 13830cat >confdef2sed.sed <<\_ACEOF 13831s/[\\&,]/\\&/g 13832s,[\\$`],\\&,g 13833t clear 13834: clear 13835s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 13836t end 13837s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 13838: end 13839_ACEOF 13840# If some macros were called several times there might be several times 13841# the same #defines, which is useless. Nevertheless, we may not want to 13842# sort them, since we want the *last* AC-DEFINE to be honored. 13843uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 13844sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 13845rm -f confdef2sed.sed 13846 13847# This sed command replaces #undef with comments. This is necessary, for 13848# example, in the case of _POSIX_SOURCE, which is predefined and required 13849# on some systems where configure will not decide to define it. 13850cat >>conftest.undefs <<\_ACEOF 13851s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 13852_ACEOF 13853 13854# Break up conftest.defines because some shells have a limit on the size 13855# of here documents, and old seds have small limits too (100 cmds). 13856echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 13857echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 13858echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 13859echo ' :' >>$CONFIG_STATUS 13860rm -f conftest.tail 13861while grep . conftest.defines >/dev/null 13862do 13863 # Write a limited-size here document to $tmp/defines.sed. 13864 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 13865 # Speed up: don't consider the non `#define' lines. 13866 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 13867 # Work around the forget-to-reset-the-flag bug. 13868 echo 't clr' >>$CONFIG_STATUS 13869 echo ': clr' >>$CONFIG_STATUS 13870 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 13871 echo 'CEOF 13872 sed -f $tmp/defines.sed $tmp/in >$tmp/out 13873 rm -f $tmp/in 13874 mv $tmp/out $tmp/in 13875' >>$CONFIG_STATUS 13876 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 13877 rm -f conftest.defines 13878 mv conftest.tail conftest.defines 13879done 13880rm -f conftest.defines 13881echo ' fi # grep' >>$CONFIG_STATUS 13882echo >>$CONFIG_STATUS 13883 13884# Break up conftest.undefs because some shells have a limit on the size 13885# of here documents, and old seds have small limits too (100 cmds). 13886echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 13887rm -f conftest.tail 13888while grep . conftest.undefs >/dev/null 13889do 13890 # Write a limited-size here document to $tmp/undefs.sed. 13891 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 13892 # Speed up: don't consider the non `#undef' 13893 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 13894 # Work around the forget-to-reset-the-flag bug. 13895 echo 't clr' >>$CONFIG_STATUS 13896 echo ': clr' >>$CONFIG_STATUS 13897 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 13898 echo 'CEOF 13899 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 13900 rm -f $tmp/in 13901 mv $tmp/out $tmp/in 13902' >>$CONFIG_STATUS 13903 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 13904 rm -f conftest.undefs 13905 mv conftest.tail conftest.undefs 13906done 13907rm -f conftest.undefs 13908 13909cat >>$CONFIG_STATUS <<\_ACEOF 13910 # Let's still pretend it is `configure' which instantiates (i.e., don't 13911 # use $as_me), people would be surprised to read: 13912 # /* config.h. Generated by config.status. */ 13913 if test x"$ac_file" = x-; then 13914 echo "/* Generated by configure. */" >$tmp/config.h 13915 else 13916 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 13917 fi 13918 cat $tmp/in >>$tmp/config.h 13919 rm -f $tmp/in 13920 if test x"$ac_file" != x-; then 13921 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 13922 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 13923echo "$as_me: $ac_file is unchanged" >&6;} 13924 else 13925 ac_dir=`(dirname "$ac_file") 2>/dev/null || 13926$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13927 X"$ac_file" : 'X\(//\)[^/]' \| \ 13928 X"$ac_file" : 'X\(//\)$' \| \ 13929 X"$ac_file" : 'X\(/\)' \| \ 13930 . : '\(.\)' 2>/dev/null || 13931echo X"$ac_file" | 13932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13933 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13934 /^X\(\/\/\)$/{ s//\1/; q; } 13935 /^X\(\/\).*/{ s//\1/; q; } 13936 s/.*/./; q'` 13937 { if $as_mkdir_p; then 13938 mkdir -p "$ac_dir" 13939 else 13940 as_dir="$ac_dir" 13941 as_dirs= 13942 while test ! -d "$as_dir"; do 13943 as_dirs="$as_dir $as_dirs" 13944 as_dir=`(dirname "$as_dir") 2>/dev/null || 13945$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13946 X"$as_dir" : 'X\(//\)[^/]' \| \ 13947 X"$as_dir" : 'X\(//\)$' \| \ 13948 X"$as_dir" : 'X\(/\)' \| \ 13949 . : '\(.\)' 2>/dev/null || 13950echo X"$as_dir" | 13951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13952 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13953 /^X\(\/\/\)$/{ s//\1/; q; } 13954 /^X\(\/\).*/{ s//\1/; q; } 13955 s/.*/./; q'` 13956 done 13957 test ! -n "$as_dirs" || mkdir $as_dirs 13958 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 13959echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 13960 { (exit 1); exit 1; }; }; } 13961 13962 rm -f $ac_file 13963 mv $tmp/config.h $ac_file 13964 fi 13965 else 13966 cat $tmp/config.h 13967 rm -f $tmp/config.h 13968 fi 13969done 13970_ACEOF 13971 13972cat >>$CONFIG_STATUS <<\_ACEOF 13973 13974{ (exit 0); exit 0; } 13975_ACEOF 13976chmod +x $CONFIG_STATUS 13977ac_clean_files=$ac_clean_files_save 13978 13979 13980# configure is writing to config.log, and then calls config.status. 13981# config.status does its own redirection, appending to config.log. 13982# Unfortunately, on DOS this fails, as config.log is still kept open 13983# by configure, so config.status won't be able to write to it; its 13984# output is simply discarded. So we exec the FD to /dev/null, 13985# effectively closing config.log, so it can be properly (re)opened and 13986# appended to by config.status. When coming back to configure, we 13987# need to make the FD available again. 13988if test "$no_create" != yes; then 13989 ac_cs_success=: 13990 ac_config_status_args= 13991 test "$silent" = yes && 13992 ac_config_status_args="$ac_config_status_args --quiet" 13993 exec 5>/dev/null 13994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13995 exec 5>>config.log 13996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13997 # would make configure fail if this is the last instruction. 13998 $ac_cs_success || { (exit 1); exit 1; } 13999fi 14000 14001 ac_config_files="$ac_config_files libtommath/Makefile" 14002cat >confcache <<\_ACEOF 14003# This file is a shell script that caches the results of configure 14004# tests run on this system so they can be shared between configure 14005# scripts and configure runs, see configure's option --config-cache. 14006# It is not useful on other systems. If it contains results you don't 14007# want to keep, you may remove or edit it. 14008# 14009# config.status only pays attention to the cache file if you give it 14010# the --recheck option to rerun configure. 14011# 14012# `ac_cv_env_foo' variables (set or unset) will be overridden when 14013# loading this file, other *unset* `ac_cv_foo' will be assigned the 14014# following values. 14015 14016_ACEOF 14017 14018# The following way of writing the cache mishandles newlines in values, 14019# but we know of no workaround that is simple, portable, and efficient. 14020# So, don't put newlines in cache variables' values. 14021# Ultrix sh set writes to stderr and can't be redirected directly, 14022# and sets the high bit in the cache file unless we assign to the vars. 14023{ 14024 (set) 2>&1 | 14025 case `(ac_space=' '; set | grep ac_space) 2>&1` in 14026 *ac_space=\ *) 14027 # `set' does not quote correctly, so add quotes (double-quote 14028 # substitution turns \\\\ into \\, and sed turns \\ into \). 14029 sed -n \ 14030 "s/'/'\\\\''/g; 14031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14032 ;; 14033 *) 14034 # `set' quotes correctly as required by POSIX, so do not add quotes. 14035 sed -n \ 14036 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 14037 ;; 14038 esac; 14039} | 14040 sed ' 14041 t clear 14042 : clear 14043 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14044 t end 14045 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14046 : end' >>confcache 14047if diff $cache_file confcache >/dev/null 2>&1; then :; else 14048 if test -w $cache_file; then 14049 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 14050 cat confcache >$cache_file 14051 else 14052 echo "not updating unwritable cache $cache_file" 14053 fi 14054fi 14055rm -f confcache 14056 14057test "x$prefix" = xNONE && prefix=$ac_default_prefix 14058# Let make expand exec_prefix. 14059test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14060 14061# VPATH may cause trouble with some makes, so we remove $(srcdir), 14062# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14063# trailing colons and then remove the whole line if VPATH becomes empty 14064# (actually we leave an empty line to preserve line numbers). 14065if test "x$srcdir" = x.; then 14066 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14067s/:*\$(srcdir):*/:/; 14068s/:*\${srcdir}:*/:/; 14069s/:*@srcdir@:*/:/; 14070s/^\([^=]*=[ ]*\):*/\1/; 14071s/:*$//; 14072s/^[^=]*=[ ]*$//; 14073}' 14074fi 14075 14076DEFS=-DHAVE_CONFIG_H 14077 14078ac_libobjs= 14079ac_ltlibobjs= 14080for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14081 # 1. Remove the extension, and $U if already installed. 14082 ac_i=`echo "$ac_i" | 14083 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 14084 # 2. Add them. 14085 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 14086 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 14087done 14088LIBOBJS=$ac_libobjs 14089 14090LTLIBOBJS=$ac_ltlibobjs 14091 14092 14093 14094: ${CONFIG_STATUS=./config.status} 14095ac_clean_files_save=$ac_clean_files 14096ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14097{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 14098echo "$as_me: creating $CONFIG_STATUS" >&6;} 14099cat >$CONFIG_STATUS <<_ACEOF 14100#! $SHELL 14101# Generated by $as_me. 14102# Run this file to recreate the current configuration. 14103# Compiler output produced by configure, useful for debugging 14104# configure, is in config.log if it exists. 14105 14106debug=false 14107ac_cs_recheck=false 14108ac_cs_silent=false 14109SHELL=\${CONFIG_SHELL-$SHELL} 14110_ACEOF 14111 14112cat >>$CONFIG_STATUS <<\_ACEOF 14113## --------------------- ## 14114## M4sh Initialization. ## 14115## --------------------- ## 14116 14117# Be Bourne compatible 14118if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14119 emulate sh 14120 NULLCMD=: 14121 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 14122 # is contrary to our usage. Disable this feature. 14123 alias -g '${1+"$@"}'='"$@"' 14124elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 14125 set -o posix 14126fi 14127DUALCASE=1; export DUALCASE # for MKS sh 14128 14129# Support unset when possible. 14130if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14131 as_unset=unset 14132else 14133 as_unset=false 14134fi 14135 14136 14137# Work around bugs in pre-3.0 UWIN ksh. 14138$as_unset ENV MAIL MAILPATH 14139PS1='$ ' 14140PS2='> ' 14141PS4='+ ' 14142 14143# NLS nuisances. 14144for as_var in \ 14145 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 14146 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 14147 LC_TELEPHONE LC_TIME 14148do 14149 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 14150 eval $as_var=C; export $as_var 14151 else 14152 $as_unset $as_var 14153 fi 14154done 14155 14156# Required to use basename. 14157if expr a : '\(a\)' >/dev/null 2>&1; then 14158 as_expr=expr 14159else 14160 as_expr=false 14161fi 14162 14163if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 14164 as_basename=basename 14165else 14166 as_basename=false 14167fi 14168 14169 14170# Name of the executable. 14171as_me=`$as_basename "$0" || 14172$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14173 X"$0" : 'X\(//\)$' \| \ 14174 X"$0" : 'X\(/\)$' \| \ 14175 . : '\(.\)' 2>/dev/null || 14176echo X/"$0" | 14177 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 14178 /^X\/\(\/\/\)$/{ s//\1/; q; } 14179 /^X\/\(\/\).*/{ s//\1/; q; } 14180 s/.*/./; q'` 14181 14182 14183# PATH needs CR, and LINENO needs CR and PATH. 14184# Avoid depending upon Character Ranges. 14185as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14186as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14187as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14188as_cr_digits='0123456789' 14189as_cr_alnum=$as_cr_Letters$as_cr_digits 14190 14191# The user is always right. 14192if test "${PATH_SEPARATOR+set}" != set; then 14193 echo "#! /bin/sh" >conf$$.sh 14194 echo "exit 0" >>conf$$.sh 14195 chmod +x conf$$.sh 14196 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 14197 PATH_SEPARATOR=';' 14198 else 14199 PATH_SEPARATOR=: 14200 fi 14201 rm -f conf$$.sh 14202fi 14203 14204 14205 as_lineno_1=$LINENO 14206 as_lineno_2=$LINENO 14207 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 14208 test "x$as_lineno_1" != "x$as_lineno_2" && 14209 test "x$as_lineno_3" = "x$as_lineno_2" || { 14210 # Find who we are. Look in the path if we contain no path at all 14211 # relative or not. 14212 case $0 in 14213 *[\\/]* ) as_myself=$0 ;; 14214 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14215for as_dir in $PATH 14216do 14217 IFS=$as_save_IFS 14218 test -z "$as_dir" && as_dir=. 14219 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14220done 14221 14222 ;; 14223 esac 14224 # We did not find ourselves, most probably we were run as `sh COMMAND' 14225 # in which case we are not to be found in the path. 14226 if test "x$as_myself" = x; then 14227 as_myself=$0 14228 fi 14229 if test ! -f "$as_myself"; then 14230 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 14231echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 14232 { (exit 1); exit 1; }; } 14233 fi 14234 case $CONFIG_SHELL in 14235 '') 14236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14237for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 14238do 14239 IFS=$as_save_IFS 14240 test -z "$as_dir" && as_dir=. 14241 for as_base in sh bash ksh sh5; do 14242 case $as_dir in 14243 /*) 14244 if ("$as_dir/$as_base" -c ' 14245 as_lineno_1=$LINENO 14246 as_lineno_2=$LINENO 14247 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 14248 test "x$as_lineno_1" != "x$as_lineno_2" && 14249 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 14250 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 14251 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 14252 CONFIG_SHELL=$as_dir/$as_base 14253 export CONFIG_SHELL 14254 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 14255 fi;; 14256 esac 14257 done 14258done 14259;; 14260 esac 14261 14262 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14263 # uniformly replaced by the line number. The first 'sed' inserts a 14264 # line-number line before each line; the second 'sed' does the real 14265 # work. The second script uses 'N' to pair each line-number line 14266 # with the numbered line, and appends trailing '-' during 14267 # substitution so that $LINENO is not a special case at line end. 14268 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14269 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 14270 sed '=' <$as_myself | 14271 sed ' 14272 N 14273 s,$,-, 14274 : loop 14275 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 14276 t loop 14277 s,-$,, 14278 s,^['$as_cr_digits']*\n,, 14279 ' >$as_me.lineno && 14280 chmod +x $as_me.lineno || 14281 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 14282echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 14283 { (exit 1); exit 1; }; } 14284 14285 # Don't try to exec as it changes $[0], causing all sort of problems 14286 # (the dirname of $[0] is not the place where we might find the 14287 # original and so on. Autoconf is especially sensible to this). 14288 . ./$as_me.lineno 14289 # Exit status is that of the last command. 14290 exit 14291} 14292 14293 14294case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 14295 *c*,-n*) ECHO_N= ECHO_C=' 14296' ECHO_T=' ' ;; 14297 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 14298 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 14299esac 14300 14301if expr a : '\(a\)' >/dev/null 2>&1; then 14302 as_expr=expr 14303else 14304 as_expr=false 14305fi 14306 14307rm -f conf$$ conf$$.exe conf$$.file 14308echo >conf$$.file 14309if ln -s conf$$.file conf$$ 2>/dev/null; then 14310 # We could just check for DJGPP; but this test a) works b) is more generic 14311 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 14312 if test -f conf$$.exe; then 14313 # Don't use ln at all; we don't have any links 14314 as_ln_s='cp -p' 14315 else 14316 as_ln_s='ln -s' 14317 fi 14318elif ln conf$$.file conf$$ 2>/dev/null; then 14319 as_ln_s=ln 14320else 14321 as_ln_s='cp -p' 14322fi 14323rm -f conf$$ conf$$.exe conf$$.file 14324 14325if mkdir -p . 2>/dev/null; then 14326 as_mkdir_p=: 14327else 14328 test -d ./-p && rmdir ./-p 14329 as_mkdir_p=false 14330fi 14331 14332as_executable_p="test -f" 14333 14334# Sed expression to map a string onto a valid CPP name. 14335as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14336 14337# Sed expression to map a string onto a valid variable name. 14338as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14339 14340 14341# IFS 14342# We need space, tab and new line, in precisely that order. 14343as_nl=' 14344' 14345IFS=" $as_nl" 14346 14347# CDPATH. 14348$as_unset CDPATH 14349 14350exec 6>&1 14351 14352# Open the log real soon, to keep \$[0] and so on meaningful, and to 14353# report actual input values of CONFIG_FILES etc. instead of their 14354# values after options handling. Logging --version etc. is OK. 14355exec 5>>config.log 14356{ 14357 echo 14358 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14359## Running $as_me. ## 14360_ASBOX 14361} >&5 14362cat >&5 <<_CSEOF 14363 14364This file was extended by $as_me, which was 14365generated by GNU Autoconf 2.59. Invocation command line was 14366 14367 CONFIG_FILES = $CONFIG_FILES 14368 CONFIG_HEADERS = $CONFIG_HEADERS 14369 CONFIG_LINKS = $CONFIG_LINKS 14370 CONFIG_COMMANDS = $CONFIG_COMMANDS 14371 $ $0 $@ 14372 14373_CSEOF 14374echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 14375echo >&5 14376_ACEOF 14377 14378# Files that config.status was made for. 14379if test -n "$ac_config_files"; then 14380 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 14381fi 14382 14383if test -n "$ac_config_headers"; then 14384 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 14385fi 14386 14387if test -n "$ac_config_links"; then 14388 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 14389fi 14390 14391if test -n "$ac_config_commands"; then 14392 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 14393fi 14394 14395cat >>$CONFIG_STATUS <<\_ACEOF 14396 14397ac_cs_usage="\ 14398\`$as_me' instantiates files from templates according to the 14399current configuration. 14400 14401Usage: $0 [OPTIONS] [FILE]... 14402 14403 -h, --help print this help, then exit 14404 -V, --version print version number, then exit 14405 -q, --quiet do not print progress messages 14406 -d, --debug don't remove temporary files 14407 --recheck update $as_me by reconfiguring in the same conditions 14408 --file=FILE[:TEMPLATE] 14409 instantiate the configuration file FILE 14410 --header=FILE[:TEMPLATE] 14411 instantiate the configuration header FILE 14412 14413Configuration files: 14414$config_files 14415 14416Configuration headers: 14417$config_headers 14418 14419Report bugs to <bug-autoconf@gnu.org>." 14420_ACEOF 14421 14422cat >>$CONFIG_STATUS <<_ACEOF 14423ac_cs_version="\\ 14424config.status 14425configured by $0, generated by GNU Autoconf 2.59, 14426 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 14427 14428Copyright (C) 2003 Free Software Foundation, Inc. 14429This config.status script is free software; the Free Software Foundation 14430gives unlimited permission to copy, distribute and modify it." 14431srcdir=$srcdir 14432_ACEOF 14433 14434cat >>$CONFIG_STATUS <<\_ACEOF 14435# If no file are specified by the user, then we need to provide default 14436# value. By we need to know if files were specified by the user. 14437ac_need_defaults=: 14438while test $# != 0 14439do 14440 case $1 in 14441 --*=*) 14442 ac_option=`expr "x$1" : 'x\([^=]*\)='` 14443 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 14444 ac_shift=: 14445 ;; 14446 -*) 14447 ac_option=$1 14448 ac_optarg=$2 14449 ac_shift=shift 14450 ;; 14451 *) # This is not an option, so the user has probably given explicit 14452 # arguments. 14453 ac_option=$1 14454 ac_need_defaults=false;; 14455 esac 14456 14457 case $ac_option in 14458 # Handling of the options. 14459_ACEOF 14460cat >>$CONFIG_STATUS <<\_ACEOF 14461 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14462 ac_cs_recheck=: ;; 14463 --version | --vers* | -V ) 14464 echo "$ac_cs_version"; exit 0 ;; 14465 --he | --h) 14466 # Conflict between --help and --header 14467 { { echo "$as_me:$LINENO: error: ambiguous option: $1 14468Try \`$0 --help' for more information." >&5 14469echo "$as_me: error: ambiguous option: $1 14470Try \`$0 --help' for more information." >&2;} 14471 { (exit 1); exit 1; }; };; 14472 --help | --hel | -h ) 14473 echo "$ac_cs_usage"; exit 0 ;; 14474 --debug | --d* | -d ) 14475 debug=: ;; 14476 --file | --fil | --fi | --f ) 14477 $ac_shift 14478 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 14479 ac_need_defaults=false;; 14480 --header | --heade | --head | --hea ) 14481 $ac_shift 14482 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 14483 ac_need_defaults=false;; 14484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14485 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14486 ac_cs_silent=: ;; 14487 14488 # This is an error. 14489 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 14490Try \`$0 --help' for more information." >&5 14491echo "$as_me: error: unrecognized option: $1 14492Try \`$0 --help' for more information." >&2;} 14493 { (exit 1); exit 1; }; } ;; 14494 14495 *) ac_config_targets="$ac_config_targets $1" ;; 14496 14497 esac 14498 shift 14499done 14500 14501ac_configure_extra_args= 14502 14503if $ac_cs_silent; then 14504 exec 6>/dev/null 14505 ac_configure_extra_args="$ac_configure_extra_args --silent" 14506fi 14507 14508_ACEOF 14509cat >>$CONFIG_STATUS <<_ACEOF 14510if \$ac_cs_recheck; then 14511 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 14512 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14513fi 14514 14515_ACEOF 14516 14517 14518 14519 14520 14521cat >>$CONFIG_STATUS <<\_ACEOF 14522for ac_config_target in $ac_config_targets 14523do 14524 case "$ac_config_target" in 14525 # Handling of arguments. 14526 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14527 "libtomcrypt/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtomcrypt/Makefile" ;; 14528 "libtommath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtommath/Makefile" ;; 14529 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14530 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14531echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14532 { (exit 1); exit 1; }; };; 14533 esac 14534done 14535 14536# If the user did not use the arguments to specify the items to instantiate, 14537# then the envvar interface is used. Set only those that are not. 14538# We use the long form for the default assignment because of an extremely 14539# bizarre bug on SunOS 4.1.3. 14540if $ac_need_defaults; then 14541 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14542 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14543fi 14544 14545# Have a temporary directory for convenience. Make it in the build tree 14546# simply because there is no reason to put it here, and in addition, 14547# creating and moving files from /tmp can sometimes cause problems. 14548# Create a temporary directory, and hook for its removal unless debugging. 14549$debug || 14550{ 14551 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 14552 trap '{ (exit 1); exit 1; }' 1 2 13 15 14553} 14554 14555# Create a (secure) tmp directory for tmp files. 14556 14557{ 14558 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 14559 test -n "$tmp" && test -d "$tmp" 14560} || 14561{ 14562 tmp=./confstat$$-$RANDOM 14563 (umask 077 && mkdir $tmp) 14564} || 14565{ 14566 echo "$me: cannot create a temporary directory in ." >&2 14567 { (exit 1); exit 1; } 14568} 14569 14570_ACEOF 14571 14572cat >>$CONFIG_STATUS <<_ACEOF 14573 14574# 14575# CONFIG_FILES section. 14576# 14577 14578# No need to generate the scripts if there are no CONFIG_FILES. 14579# This happens for instance when ./config.status config.h 14580if test -n "\$CONFIG_FILES"; then 14581 # Protect against being on the right side of a sed subst in config.status. 14582 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 14583 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 14584s,@SHELL@,$SHELL,;t t 14585s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 14586s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 14587s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 14588s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 14589s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 14590s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 14591s,@exec_prefix@,$exec_prefix,;t t 14592s,@prefix@,$prefix,;t t 14593s,@program_transform_name@,$program_transform_name,;t t 14594s,@bindir@,$bindir,;t t 14595s,@sbindir@,$sbindir,;t t 14596s,@libexecdir@,$libexecdir,;t t 14597s,@datadir@,$datadir,;t t 14598s,@sysconfdir@,$sysconfdir,;t t 14599s,@sharedstatedir@,$sharedstatedir,;t t 14600s,@localstatedir@,$localstatedir,;t t 14601s,@libdir@,$libdir,;t t 14602s,@includedir@,$includedir,;t t 14603s,@oldincludedir@,$oldincludedir,;t t 14604s,@infodir@,$infodir,;t t 14605s,@mandir@,$mandir,;t t 14606s,@build_alias@,$build_alias,;t t 14607s,@host_alias@,$host_alias,;t t 14608s,@target_alias@,$target_alias,;t t 14609s,@DEFS@,$DEFS,;t t 14610s,@ECHO_C@,$ECHO_C,;t t 14611s,@ECHO_N@,$ECHO_N,;t t 14612s,@ECHO_T@,$ECHO_T,;t t 14613s,@LIBS@,$LIBS,;t t 14614s,@CC@,$CC,;t t 14615s,@CFLAGS@,$CFLAGS,;t t 14616s,@LDFLAGS@,$LDFLAGS,;t t 14617s,@CPPFLAGS@,$CPPFLAGS,;t t 14618s,@ac_ct_CC@,$ac_ct_CC,;t t 14619s,@EXEEXT@,$EXEEXT,;t t 14620s,@OBJEXT@,$OBJEXT,;t t 14621s,@SET_MAKE@,$SET_MAKE,;t t 14622s,@LD@,$LD,;t t 14623s,@build@,$build,;t t 14624s,@build_cpu@,$build_cpu,;t t 14625s,@build_vendor@,$build_vendor,;t t 14626s,@build_os@,$build_os,;t t 14627s,@host@,$host,;t t 14628s,@host_cpu@,$host_cpu,;t t 14629s,@host_vendor@,$host_vendor,;t t 14630s,@host_os@,$host_os,;t t 14631s,@AR@,$AR,;t t 14632s,@ac_ct_AR@,$ac_ct_AR,;t t 14633s,@RANLIB@,$RANLIB,;t t 14634s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 14635s,@STRIP@,$STRIP,;t t 14636s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 14637s,@INSTALL@,$INSTALL,;t t 14638s,@ac_ct_INSTALL@,$ac_ct_INSTALL,;t t 14639s,@CPP@,$CPP,;t t 14640s,@EGREP@,$EGREP,;t t 14641s,@LIBOBJS@,$LIBOBJS,;t t 14642s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14643CEOF 14644 14645_ACEOF 14646 14647 cat >>$CONFIG_STATUS <<\_ACEOF 14648 # Split the substitutions into bite-sized pieces for seds with 14649 # small command number limits, like on Digital OSF/1 and HP-UX. 14650 ac_max_sed_lines=48 14651 ac_sed_frag=1 # Number of current file. 14652 ac_beg=1 # First line for current file. 14653 ac_end=$ac_max_sed_lines # Line after last line for current file. 14654 ac_more_lines=: 14655 ac_sed_cmds= 14656 while $ac_more_lines; do 14657 if test $ac_beg -gt 1; then 14658 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 14659 else 14660 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 14661 fi 14662 if test ! -s $tmp/subs.frag; then 14663 ac_more_lines=false 14664 else 14665 # The purpose of the label and of the branching condition is to 14666 # speed up the sed processing (if there are no `@' at all, there 14667 # is no need to browse any of the substitutions). 14668 # These are the two extra sed commands mentioned above. 14669 (echo ':t 14670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 14671 if test -z "$ac_sed_cmds"; then 14672 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 14673 else 14674 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 14675 fi 14676 ac_sed_frag=`expr $ac_sed_frag + 1` 14677 ac_beg=$ac_end 14678 ac_end=`expr $ac_end + $ac_max_sed_lines` 14679 fi 14680 done 14681 if test -z "$ac_sed_cmds"; then 14682 ac_sed_cmds=cat 14683 fi 14684fi # test -n "$CONFIG_FILES" 14685 14686_ACEOF 14687cat >>$CONFIG_STATUS <<\_ACEOF 14688for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 14689 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14690 case $ac_file in 14691 - | *:- | *:-:* ) # input from stdin 14692 cat >$tmp/stdin 14693 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14694 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14695 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14696 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14697 * ) ac_file_in=$ac_file.in ;; 14698 esac 14699 14700 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 14701 ac_dir=`(dirname "$ac_file") 2>/dev/null || 14702$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14703 X"$ac_file" : 'X\(//\)[^/]' \| \ 14704 X"$ac_file" : 'X\(//\)$' \| \ 14705 X"$ac_file" : 'X\(/\)' \| \ 14706 . : '\(.\)' 2>/dev/null || 14707echo X"$ac_file" | 14708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14709 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14710 /^X\(\/\/\)$/{ s//\1/; q; } 14711 /^X\(\/\).*/{ s//\1/; q; } 14712 s/.*/./; q'` 14713 { if $as_mkdir_p; then 14714 mkdir -p "$ac_dir" 14715 else 14716 as_dir="$ac_dir" 14717 as_dirs= 14718 while test ! -d "$as_dir"; do 14719 as_dirs="$as_dir $as_dirs" 14720 as_dir=`(dirname "$as_dir") 2>/dev/null || 14721$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14722 X"$as_dir" : 'X\(//\)[^/]' \| \ 14723 X"$as_dir" : 'X\(//\)$' \| \ 14724 X"$as_dir" : 'X\(/\)' \| \ 14725 . : '\(.\)' 2>/dev/null || 14726echo X"$as_dir" | 14727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14728 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14729 /^X\(\/\/\)$/{ s//\1/; q; } 14730 /^X\(\/\).*/{ s//\1/; q; } 14731 s/.*/./; q'` 14732 done 14733 test ! -n "$as_dirs" || mkdir $as_dirs 14734 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14735echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14736 { (exit 1); exit 1; }; }; } 14737 14738 ac_builddir=. 14739 14740if test "$ac_dir" != .; then 14741 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14742 # A "../" for each directory in $ac_dir_suffix. 14743 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 14744else 14745 ac_dir_suffix= ac_top_builddir= 14746fi 14747 14748case $srcdir in 14749 .) # No --srcdir option. We are building in place. 14750 ac_srcdir=. 14751 if test -z "$ac_top_builddir"; then 14752 ac_top_srcdir=. 14753 else 14754 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 14755 fi ;; 14756 [\\/]* | ?:[\\/]* ) # Absolute path. 14757 ac_srcdir=$srcdir$ac_dir_suffix; 14758 ac_top_srcdir=$srcdir ;; 14759 *) # Relative path. 14760 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 14761 ac_top_srcdir=$ac_top_builddir$srcdir ;; 14762esac 14763 14764# Do not use `cd foo && pwd` to compute absolute paths, because 14765# the directories may not exist. 14766case `pwd` in 14767.) ac_abs_builddir="$ac_dir";; 14768*) 14769 case "$ac_dir" in 14770 .) ac_abs_builddir=`pwd`;; 14771 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 14772 *) ac_abs_builddir=`pwd`/"$ac_dir";; 14773 esac;; 14774esac 14775case $ac_abs_builddir in 14776.) ac_abs_top_builddir=${ac_top_builddir}.;; 14777*) 14778 case ${ac_top_builddir}. in 14779 .) ac_abs_top_builddir=$ac_abs_builddir;; 14780 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 14781 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 14782 esac;; 14783esac 14784case $ac_abs_builddir in 14785.) ac_abs_srcdir=$ac_srcdir;; 14786*) 14787 case $ac_srcdir in 14788 .) ac_abs_srcdir=$ac_abs_builddir;; 14789 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 14790 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 14791 esac;; 14792esac 14793case $ac_abs_builddir in 14794.) ac_abs_top_srcdir=$ac_top_srcdir;; 14795*) 14796 case $ac_top_srcdir in 14797 .) ac_abs_top_srcdir=$ac_abs_builddir;; 14798 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 14799 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 14800 esac;; 14801esac 14802 14803 14804 14805 if test x"$ac_file" != x-; then 14806 { echo "$as_me:$LINENO: creating $ac_file" >&5 14807echo "$as_me: creating $ac_file" >&6;} 14808 rm -f "$ac_file" 14809 fi 14810 # Let's still pretend it is `configure' which instantiates (i.e., don't 14811 # use $as_me), people would be surprised to read: 14812 # /* config.h. Generated by config.status. */ 14813 if test x"$ac_file" = x-; then 14814 configure_input= 14815 else 14816 configure_input="$ac_file. " 14817 fi 14818 configure_input=$configure_input"Generated from `echo $ac_file_in | 14819 sed 's,.*/,,'` by configure." 14820 14821 # First look for the input files in the build tree, otherwise in the 14822 # src tree. 14823 ac_file_inputs=`IFS=: 14824 for f in $ac_file_in; do 14825 case $f in 14826 -) echo $tmp/stdin ;; 14827 [\\/$]*) 14828 # Absolute (can't be DOS-style, as IFS=:) 14829 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14830echo "$as_me: error: cannot find input file: $f" >&2;} 14831 { (exit 1); exit 1; }; } 14832 echo "$f";; 14833 *) # Relative 14834 if test -f "$f"; then 14835 # Build tree 14836 echo "$f" 14837 elif test -f "$srcdir/$f"; then 14838 # Source tree 14839 echo "$srcdir/$f" 14840 else 14841 # /dev/null tree 14842 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14843echo "$as_me: error: cannot find input file: $f" >&2;} 14844 { (exit 1); exit 1; }; } 14845 fi;; 14846 esac 14847 done` || { (exit 1); exit 1; } 14848_ACEOF 14849cat >>$CONFIG_STATUS <<_ACEOF 14850 sed "$ac_vpsub 14851$extrasub 14852_ACEOF 14853cat >>$CONFIG_STATUS <<\_ACEOF 14854:t 14855/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14856s,@configure_input@,$configure_input,;t t 14857s,@srcdir@,$ac_srcdir,;t t 14858s,@abs_srcdir@,$ac_abs_srcdir,;t t 14859s,@top_srcdir@,$ac_top_srcdir,;t t 14860s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 14861s,@builddir@,$ac_builddir,;t t 14862s,@abs_builddir@,$ac_abs_builddir,;t t 14863s,@top_builddir@,$ac_top_builddir,;t t 14864s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 14865" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 14866 rm -f $tmp/stdin 14867 if test x"$ac_file" != x-; then 14868 mv $tmp/out $ac_file 14869 else 14870 cat $tmp/out 14871 rm -f $tmp/out 14872 fi 14873 14874done 14875_ACEOF 14876cat >>$CONFIG_STATUS <<\_ACEOF 14877 14878# 14879# CONFIG_HEADER section. 14880# 14881 14882# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 14883# NAME is the cpp macro being defined and VALUE is the value it is being given. 14884# 14885# ac_d sets the value in "#define NAME VALUE" lines. 14886ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 14887ac_dB='[ ].*$,\1#\2' 14888ac_dC=' ' 14889ac_dD=',;t' 14890# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 14891ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 14892ac_uB='$,\1#\2define\3' 14893ac_uC=' ' 14894ac_uD=',;t' 14895 14896for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 14897 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14898 case $ac_file in 14899 - | *:- | *:-:* ) # input from stdin 14900 cat >$tmp/stdin 14901 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14903 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14904 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14905 * ) ac_file_in=$ac_file.in ;; 14906 esac 14907 14908 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 14909echo "$as_me: creating $ac_file" >&6;} 14910 14911 # First look for the input files in the build tree, otherwise in the 14912 # src tree. 14913 ac_file_inputs=`IFS=: 14914 for f in $ac_file_in; do 14915 case $f in 14916 -) echo $tmp/stdin ;; 14917 [\\/$]*) 14918 # Absolute (can't be DOS-style, as IFS=:) 14919 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14920echo "$as_me: error: cannot find input file: $f" >&2;} 14921 { (exit 1); exit 1; }; } 14922 # Do quote $f, to prevent DOS paths from being IFS'd. 14923 echo "$f";; 14924 *) # Relative 14925 if test -f "$f"; then 14926 # Build tree 14927 echo "$f" 14928 elif test -f "$srcdir/$f"; then 14929 # Source tree 14930 echo "$srcdir/$f" 14931 else 14932 # /dev/null tree 14933 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14934echo "$as_me: error: cannot find input file: $f" >&2;} 14935 { (exit 1); exit 1; }; } 14936 fi;; 14937 esac 14938 done` || { (exit 1); exit 1; } 14939 # Remove the trailing spaces. 14940 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 14941 14942_ACEOF 14943 14944# Transform confdefs.h into two sed scripts, `conftest.defines' and 14945# `conftest.undefs', that substitutes the proper values into 14946# config.h.in to produce config.h. The first handles `#define' 14947# templates, and the second `#undef' templates. 14948# And first: Protect against being on the right side of a sed subst in 14949# config.status. Protect against being in an unquoted here document 14950# in config.status. 14951rm -f conftest.defines conftest.undefs 14952# Using a here document instead of a string reduces the quoting nightmare. 14953# Putting comments in sed scripts is not portable. 14954# 14955# `end' is used to avoid that the second main sed command (meant for 14956# 0-ary CPP macros) applies to n-ary macro definitions. 14957# See the Autoconf documentation for `clear'. 14958cat >confdef2sed.sed <<\_ACEOF 14959s/[\\&,]/\\&/g 14960s,[\\$`],\\&,g 14961t clear 14962: clear 14963s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 14964t end 14965s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 14966: end 14967_ACEOF 14968# If some macros were called several times there might be several times 14969# the same #defines, which is useless. Nevertheless, we may not want to 14970# sort them, since we want the *last* AC-DEFINE to be honored. 14971uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 14972sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 14973rm -f confdef2sed.sed 14974 14975# This sed command replaces #undef with comments. This is necessary, for 14976# example, in the case of _POSIX_SOURCE, which is predefined and required 14977# on some systems where configure will not decide to define it. 14978cat >>conftest.undefs <<\_ACEOF 14979s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 14980_ACEOF 14981 14982# Break up conftest.defines because some shells have a limit on the size 14983# of here documents, and old seds have small limits too (100 cmds). 14984echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 14985echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 14986echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 14987echo ' :' >>$CONFIG_STATUS 14988rm -f conftest.tail 14989while grep . conftest.defines >/dev/null 14990do 14991 # Write a limited-size here document to $tmp/defines.sed. 14992 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 14993 # Speed up: don't consider the non `#define' lines. 14994 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 14995 # Work around the forget-to-reset-the-flag bug. 14996 echo 't clr' >>$CONFIG_STATUS 14997 echo ': clr' >>$CONFIG_STATUS 14998 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 14999 echo 'CEOF 15000 sed -f $tmp/defines.sed $tmp/in >$tmp/out 15001 rm -f $tmp/in 15002 mv $tmp/out $tmp/in 15003' >>$CONFIG_STATUS 15004 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 15005 rm -f conftest.defines 15006 mv conftest.tail conftest.defines 15007done 15008rm -f conftest.defines 15009echo ' fi # grep' >>$CONFIG_STATUS 15010echo >>$CONFIG_STATUS 15011 15012# Break up conftest.undefs because some shells have a limit on the size 15013# of here documents, and old seds have small limits too (100 cmds). 15014echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 15015rm -f conftest.tail 15016while grep . conftest.undefs >/dev/null 15017do 15018 # Write a limited-size here document to $tmp/undefs.sed. 15019 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 15020 # Speed up: don't consider the non `#undef' 15021 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 15022 # Work around the forget-to-reset-the-flag bug. 15023 echo 't clr' >>$CONFIG_STATUS 15024 echo ': clr' >>$CONFIG_STATUS 15025 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 15026 echo 'CEOF 15027 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 15028 rm -f $tmp/in 15029 mv $tmp/out $tmp/in 15030' >>$CONFIG_STATUS 15031 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 15032 rm -f conftest.undefs 15033 mv conftest.tail conftest.undefs 15034done 15035rm -f conftest.undefs 15036 15037cat >>$CONFIG_STATUS <<\_ACEOF 15038 # Let's still pretend it is `configure' which instantiates (i.e., don't 15039 # use $as_me), people would be surprised to read: 15040 # /* config.h. Generated by config.status. */ 15041 if test x"$ac_file" = x-; then 15042 echo "/* Generated by configure. */" >$tmp/config.h 15043 else 15044 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 15045 fi 15046 cat $tmp/in >>$tmp/config.h 15047 rm -f $tmp/in 15048 if test x"$ac_file" != x-; then 15049 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 15050 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 15051echo "$as_me: $ac_file is unchanged" >&6;} 15052 else 15053 ac_dir=`(dirname "$ac_file") 2>/dev/null || 15054$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15055 X"$ac_file" : 'X\(//\)[^/]' \| \ 15056 X"$ac_file" : 'X\(//\)$' \| \ 15057 X"$ac_file" : 'X\(/\)' \| \ 15058 . : '\(.\)' 2>/dev/null || 15059echo X"$ac_file" | 15060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15061 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15062 /^X\(\/\/\)$/{ s//\1/; q; } 15063 /^X\(\/\).*/{ s//\1/; q; } 15064 s/.*/./; q'` 15065 { if $as_mkdir_p; then 15066 mkdir -p "$ac_dir" 15067 else 15068 as_dir="$ac_dir" 15069 as_dirs= 15070 while test ! -d "$as_dir"; do 15071 as_dirs="$as_dir $as_dirs" 15072 as_dir=`(dirname "$as_dir") 2>/dev/null || 15073$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15074 X"$as_dir" : 'X\(//\)[^/]' \| \ 15075 X"$as_dir" : 'X\(//\)$' \| \ 15076 X"$as_dir" : 'X\(/\)' \| \ 15077 . : '\(.\)' 2>/dev/null || 15078echo X"$as_dir" | 15079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15080 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15081 /^X\(\/\/\)$/{ s//\1/; q; } 15082 /^X\(\/\).*/{ s//\1/; q; } 15083 s/.*/./; q'` 15084 done 15085 test ! -n "$as_dirs" || mkdir $as_dirs 15086 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 15087echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 15088 { (exit 1); exit 1; }; }; } 15089 15090 rm -f $ac_file 15091 mv $tmp/config.h $ac_file 15092 fi 15093 else 15094 cat $tmp/config.h 15095 rm -f $tmp/config.h 15096 fi 15097done 15098_ACEOF 15099 15100cat >>$CONFIG_STATUS <<\_ACEOF 15101 15102{ (exit 0); exit 0; } 15103_ACEOF 15104chmod +x $CONFIG_STATUS 15105ac_clean_files=$ac_clean_files_save 15106 15107 15108# configure is writing to config.log, and then calls config.status. 15109# config.status does its own redirection, appending to config.log. 15110# Unfortunately, on DOS this fails, as config.log is still kept open 15111# by configure, so config.status won't be able to write to it; its 15112# output is simply discarded. So we exec the FD to /dev/null, 15113# effectively closing config.log, so it can be properly (re)opened and 15114# appended to by config.status. When coming back to configure, we 15115# need to make the FD available again. 15116if test "$no_create" != yes; then 15117 ac_cs_success=: 15118 ac_config_status_args= 15119 test "$silent" = yes && 15120 ac_config_status_args="$ac_config_status_args --quiet" 15121 exec 5>/dev/null 15122 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15123 exec 5>>config.log 15124 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15125 # would make configure fail if this is the last instruction. 15126 $ac_cs_success || { (exit 1); exit 1; } 15127fi 15128 15129{ echo "$as_me:$LINENO: " >&5 15130echo "$as_me: " >&6;} 15131{ echo "$as_me:$LINENO: Now edit options.h to choose features." >&5 15132echo "$as_me: Now edit options.h to choose features." >&6;} 15133