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