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