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