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