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