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