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