1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for unbound 1.13.2. 4# 5# Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: unbound-bugs@nlnetlabs.nl or 279$0: https://github.com/NLnetLabs/unbound/issues about your 280$0: system, including any error possibly output before this 281$0: message. Then install a modern shell, or manually run 282$0: the script under such a shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='unbound' 593PACKAGE_TARNAME='unbound' 594PACKAGE_VERSION='1.13.2' 595PACKAGE_STRING='unbound 1.13.2' 596PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues' 597PACKAGE_URL='' 598 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='LTLIBOBJS 636date 637version 638INSTALLTARGET 639ALLTARGET 640SOURCEFILE 641SOURCEDETERMINE 642IPSET_OBJ 643IPSET_SRC 644IPSECMOD_HEADER 645IPSECMOD_OBJ 646CACHEDB_OBJ 647CACHEDB_SRC 648DNSCRYPT_OBJ 649DNSCRYPT_SRC 650ENABLE_DNSCRYPT 651ENABLE_DNSCRYPT_XCHACHA20 652DNSTAP_OBJ 653DNSTAP_SRC 654DNSTAP_SOCKET_TESTBIN 655DNSTAP_SOCKET_PATH 656opt_dnstap_socket_path 657ENABLE_DNSTAP 658PROTOC_C 659UBSYMS 660EXTRALINK 661COMMON_OBJ_ALL_SYMBOLS 662LIBOBJ_WITHOUT_CTIME 663LIBOBJ_WITHOUT_CTIMEARC4 664WIN_CHECKCONF_OBJ_LINK 665WIN_CONTROL_OBJ_LINK 666WIN_UBANCHOR_OBJ_LINK 667WIN_HOST_OBJ_LINK 668WIN_DAEMON_OBJ_LINK 669WIN_DAEMON_OBJ 670WIN_DAEMON_SRC 671WINAPPS 672WINDRES 673CHECKLOCK_OBJ 674staticexe 675PC_LIBEVENT_DEPENDENCY 676UNBOUND_EVENT_UNINSTALL 677UNBOUND_EVENT_INSTALL 678SUBNET_HEADER 679SUBNET_OBJ 680PC_LIBBSD_DEPENDENCY 681SSLLIB 682HAVE_SSL 683PC_CRYPTO_DEPENDENCY 684CONFIG_DATE 685NETBSD_LINTFLAGS 686PYUNBOUND_UNINSTALL 687PYUNBOUND_INSTALL 688PYUNBOUND_TARGET 689PYUNBOUND_OBJ 690WITH_PYUNBOUND 691PYTHONMOD_UNINSTALL 692PYTHONMOD_INSTALL 693PYTHONMOD_HEADER 694PYTHONMOD_OBJ 695WITH_PYTHONMODULE 696swig 697SWIG_LIB 698SWIG 699PC_PY_DEPENDENCY 700PY_MAJOR_VERSION 701PYTHON_SITE_PKG 702PYTHON_LDFLAGS 703PYTHON_CPPFLAGS 704PYTHON 705PYTHON_VERSION 706DYNLIBMOD_EXTRALIBS 707DYNLIBMOD_HEADER 708DYNLIBMOD_OBJ 709WITH_DYNLIBMODULE 710PTHREAD_CFLAGS_ONLY 711PTHREAD_CFLAGS 712PTHREAD_LIBS 713PTHREAD_CC 714ax_pthread_config 715ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ 716SLDNS_ALLOCCHECK_EXTRA_OBJ 717USE_SYSTEMD_FALSE 718USE_SYSTEMD_TRUE 719SYSTEMD_DAEMON_LIBS 720SYSTEMD_DAEMON_CFLAGS 721SYSTEMD_LIBS 722SYSTEMD_CFLAGS 723RUNTIME_PATH 724LIBOBJS 725PKG_CONFIG_LIBDIR 726PKG_CONFIG_PATH 727PKG_CONFIG 728LT_SYS_LIBRARY_PATH 729OTOOL64 730OTOOL 731LIPO 732NMEDIT 733DSYMUTIL 734MANIFEST_TOOL 735AWK 736RANLIB 737ac_ct_AR 738DLLTOOL 739OBJDUMP 740LN_S 741NM 742ac_ct_DUMPBIN 743DUMPBIN 744LD 745FGREP 746SED 747LIBTOOL 748AR 749host_os 750host_vendor 751host_cpu 752host 753build_os 754build_vendor 755build_cpu 756build 757libtool 758STRIP 759doxygen 760YFLAGS 761YACC 762LEXLIB 763LEX_OUTPUT_ROOT 764LEX 765debug_enabled 766DEPFLAG 767UNBOUND_USERNAME 768UNBOUND_ROOTCERT_FILE 769UNBOUND_ROOTKEY_FILE 770UNBOUND_PIDFILE 771UNBOUND_SHARE_DIR 772UNBOUND_CHROOT_DIR 773UNBOUND_RUN_DIR 774ub_conf_dir 775ub_conf_file 776UNBOUND_LOCALSTATE_DIR 777UNBOUND_SYSCONF_DIR 778UNBOUND_SBIN_DIR 779EGREP 780GREP 781CPP 782OBJEXT 783EXEEXT 784ac_ct_CC 785CPPFLAGS 786LDFLAGS 787CFLAGS 788CC 789LIBUNBOUND_AGE 790LIBUNBOUND_REVISION 791LIBUNBOUND_CURRENT 792UNBOUND_VERSION_MICRO 793UNBOUND_VERSION_MINOR 794UNBOUND_VERSION_MAJOR 795target_alias 796host_alias 797build_alias 798LIBS 799ECHO_T 800ECHO_N 801ECHO_C 802DEFS 803mandir 804localedir 805libdir 806psdir 807pdfdir 808dvidir 809htmldir 810infodir 811docdir 812oldincludedir 813includedir 814localstatedir 815sharedstatedir 816sysconfdir 817datadir 818datarootdir 819libexecdir 820sbindir 821bindir 822program_transform_name 823prefix 824exec_prefix 825PACKAGE_URL 826PACKAGE_BUGREPORT 827PACKAGE_STRING 828PACKAGE_VERSION 829PACKAGE_TARNAME 830PACKAGE_NAME 831PATH_SEPARATOR 832SHELL' 833ac_subst_files='' 834ac_user_opts=' 835enable_option_checking 836with_conf_file 837with_run_dir 838with_chroot_dir 839with_share_dir 840with_pidfile 841with_rootkey_file 842with_rootcert_file 843with_username 844enable_checking 845enable_debug 846enable_flto 847enable_pie 848enable_relro_now 849enable_shared 850enable_static 851with_pic 852enable_fast_install 853with_aix_soname 854with_gnu_ld 855with_sysroot 856enable_libtool_lock 857enable_rpath 858enable_largefile 859enable_systemd 860enable_alloc_checks 861enable_alloc_lite 862enable_alloc_nonregional 863with_pthreads 864with_solaris_threads 865with_syslog_facility 866with_dynlibmodule 867with_pyunbound 868with_pythonmodule 869enable_swig_version_check 870with_nss 871with_nettle 872with_ssl 873with_libbsd 874enable_sha1 875enable_sha2 876enable_subnet 877enable_gost 878enable_ecdsa 879enable_dsa 880with_deprecate_rsa_1024 881enable_ed25519 882enable_ed448 883enable_event_api 884enable_tfo_client 885enable_tfo_server 886with_libevent 887with_libexpat 888with_libhiredis 889with_libnghttp2 890enable_static_exe 891enable_fully_static 892enable_lock_checks 893enable_allsymbols 894enable_dnstap 895with_dnstap_socket_path 896with_protobuf_c 897enable_dnscrypt 898with_libsodium 899enable_cachedb 900enable_ipsecmod 901enable_ipset 902with_libmnl 903enable_explicit_port_randomisation 904enable_linux_ip_local_port_range 905with_libunbound_only 906' 907 ac_precious_vars='build_alias 908host_alias 909target_alias 910CC 911CFLAGS 912LDFLAGS 913LIBS 914CPPFLAGS 915CPP 916YACC 917YFLAGS 918LT_SYS_LIBRARY_PATH 919PKG_CONFIG 920PKG_CONFIG_PATH 921PKG_CONFIG_LIBDIR 922SYSTEMD_CFLAGS 923SYSTEMD_LIBS 924SYSTEMD_DAEMON_CFLAGS 925SYSTEMD_DAEMON_LIBS 926PYTHON_VERSION' 927 928 929# Initialize some variables set by options. 930ac_init_help= 931ac_init_version=false 932ac_unrecognized_opts= 933ac_unrecognized_sep= 934# The variables have the same names as the options, with 935# dashes changed to underlines. 936cache_file=/dev/null 937exec_prefix=NONE 938no_create= 939no_recursion= 940prefix=NONE 941program_prefix=NONE 942program_suffix=NONE 943program_transform_name=s,x,x, 944silent= 945site= 946srcdir= 947verbose= 948x_includes=NONE 949x_libraries=NONE 950 951# Installation directory options. 952# These are left unexpanded so users can "make install exec_prefix=/foo" 953# and all the variables that are supposed to be based on exec_prefix 954# by default will actually change. 955# Use braces instead of parens because sh, perl, etc. also accept them. 956# (The list follows the same order as the GNU Coding Standards.) 957bindir='${exec_prefix}/bin' 958sbindir='${exec_prefix}/sbin' 959libexecdir='${exec_prefix}/libexec' 960datarootdir='${prefix}/share' 961datadir='${datarootdir}' 962sysconfdir='${prefix}/etc' 963sharedstatedir='${prefix}/com' 964localstatedir='${prefix}/var' 965includedir='${prefix}/include' 966oldincludedir='/usr/include' 967docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 968infodir='${datarootdir}/info' 969htmldir='${docdir}' 970dvidir='${docdir}' 971pdfdir='${docdir}' 972psdir='${docdir}' 973libdir='${exec_prefix}/lib' 974localedir='${datarootdir}/locale' 975mandir='${datarootdir}/man' 976 977ac_prev= 978ac_dashdash= 979for ac_option 980do 981 # If the previous option needs an argument, assign it. 982 if test -n "$ac_prev"; then 983 eval $ac_prev=\$ac_option 984 ac_prev= 985 continue 986 fi 987 988 case $ac_option in 989 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 990 *=) ac_optarg= ;; 991 *) ac_optarg=yes ;; 992 esac 993 994 # Accept the important Cygnus configure options, so we can diagnose typos. 995 996 case $ac_dashdash$ac_option in 997 --) 998 ac_dashdash=yes ;; 999 1000 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1001 ac_prev=bindir ;; 1002 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1003 bindir=$ac_optarg ;; 1004 1005 -build | --build | --buil | --bui | --bu) 1006 ac_prev=build_alias ;; 1007 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1008 build_alias=$ac_optarg ;; 1009 1010 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1011 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1012 ac_prev=cache_file ;; 1013 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1014 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1015 cache_file=$ac_optarg ;; 1016 1017 --config-cache | -C) 1018 cache_file=config.cache ;; 1019 1020 -datadir | --datadir | --datadi | --datad) 1021 ac_prev=datadir ;; 1022 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1023 datadir=$ac_optarg ;; 1024 1025 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1026 | --dataroo | --dataro | --datar) 1027 ac_prev=datarootdir ;; 1028 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1029 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1030 datarootdir=$ac_optarg ;; 1031 1032 -disable-* | --disable-*) 1033 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1034 # Reject names that are not valid shell variable names. 1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1036 as_fn_error $? "invalid feature name: $ac_useropt" 1037 ac_useropt_orig=$ac_useropt 1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1039 case $ac_user_opts in 1040 *" 1041"enable_$ac_useropt" 1042"*) ;; 1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1044 ac_unrecognized_sep=', ';; 1045 esac 1046 eval enable_$ac_useropt=no ;; 1047 1048 -docdir | --docdir | --docdi | --doc | --do) 1049 ac_prev=docdir ;; 1050 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1051 docdir=$ac_optarg ;; 1052 1053 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1054 ac_prev=dvidir ;; 1055 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1056 dvidir=$ac_optarg ;; 1057 1058 -enable-* | --enable-*) 1059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1060 # Reject names that are not valid shell variable names. 1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1062 as_fn_error $? "invalid feature name: $ac_useropt" 1063 ac_useropt_orig=$ac_useropt 1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1065 case $ac_user_opts in 1066 *" 1067"enable_$ac_useropt" 1068"*) ;; 1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1070 ac_unrecognized_sep=', ';; 1071 esac 1072 eval enable_$ac_useropt=\$ac_optarg ;; 1073 1074 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1075 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1076 | --exec | --exe | --ex) 1077 ac_prev=exec_prefix ;; 1078 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1079 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1080 | --exec=* | --exe=* | --ex=*) 1081 exec_prefix=$ac_optarg ;; 1082 1083 -gas | --gas | --ga | --g) 1084 # Obsolete; use --with-gas. 1085 with_gas=yes ;; 1086 1087 -help | --help | --hel | --he | -h) 1088 ac_init_help=long ;; 1089 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1090 ac_init_help=recursive ;; 1091 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1092 ac_init_help=short ;; 1093 1094 -host | --host | --hos | --ho) 1095 ac_prev=host_alias ;; 1096 -host=* | --host=* | --hos=* | --ho=*) 1097 host_alias=$ac_optarg ;; 1098 1099 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1100 ac_prev=htmldir ;; 1101 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1102 | --ht=*) 1103 htmldir=$ac_optarg ;; 1104 1105 -includedir | --includedir | --includedi | --included | --include \ 1106 | --includ | --inclu | --incl | --inc) 1107 ac_prev=includedir ;; 1108 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1109 | --includ=* | --inclu=* | --incl=* | --inc=*) 1110 includedir=$ac_optarg ;; 1111 1112 -infodir | --infodir | --infodi | --infod | --info | --inf) 1113 ac_prev=infodir ;; 1114 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1115 infodir=$ac_optarg ;; 1116 1117 -libdir | --libdir | --libdi | --libd) 1118 ac_prev=libdir ;; 1119 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1120 libdir=$ac_optarg ;; 1121 1122 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1123 | --libexe | --libex | --libe) 1124 ac_prev=libexecdir ;; 1125 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1126 | --libexe=* | --libex=* | --libe=*) 1127 libexecdir=$ac_optarg ;; 1128 1129 -localedir | --localedir | --localedi | --localed | --locale) 1130 ac_prev=localedir ;; 1131 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1132 localedir=$ac_optarg ;; 1133 1134 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1135 | --localstate | --localstat | --localsta | --localst | --locals) 1136 ac_prev=localstatedir ;; 1137 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1138 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1139 localstatedir=$ac_optarg ;; 1140 1141 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1142 ac_prev=mandir ;; 1143 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1144 mandir=$ac_optarg ;; 1145 1146 -nfp | --nfp | --nf) 1147 # Obsolete; use --without-fp. 1148 with_fp=no ;; 1149 1150 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1151 | --no-cr | --no-c | -n) 1152 no_create=yes ;; 1153 1154 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1155 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1156 no_recursion=yes ;; 1157 1158 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1159 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1160 | --oldin | --oldi | --old | --ol | --o) 1161 ac_prev=oldincludedir ;; 1162 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1163 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1164 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1165 oldincludedir=$ac_optarg ;; 1166 1167 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1168 ac_prev=prefix ;; 1169 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1170 prefix=$ac_optarg ;; 1171 1172 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1173 | --program-pre | --program-pr | --program-p) 1174 ac_prev=program_prefix ;; 1175 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1176 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1177 program_prefix=$ac_optarg ;; 1178 1179 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1180 | --program-suf | --program-su | --program-s) 1181 ac_prev=program_suffix ;; 1182 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1183 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1184 program_suffix=$ac_optarg ;; 1185 1186 -program-transform-name | --program-transform-name \ 1187 | --program-transform-nam | --program-transform-na \ 1188 | --program-transform-n | --program-transform- \ 1189 | --program-transform | --program-transfor \ 1190 | --program-transfo | --program-transf \ 1191 | --program-trans | --program-tran \ 1192 | --progr-tra | --program-tr | --program-t) 1193 ac_prev=program_transform_name ;; 1194 -program-transform-name=* | --program-transform-name=* \ 1195 | --program-transform-nam=* | --program-transform-na=* \ 1196 | --program-transform-n=* | --program-transform-=* \ 1197 | --program-transform=* | --program-transfor=* \ 1198 | --program-transfo=* | --program-transf=* \ 1199 | --program-trans=* | --program-tran=* \ 1200 | --progr-tra=* | --program-tr=* | --program-t=*) 1201 program_transform_name=$ac_optarg ;; 1202 1203 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1204 ac_prev=pdfdir ;; 1205 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1206 pdfdir=$ac_optarg ;; 1207 1208 -psdir | --psdir | --psdi | --psd | --ps) 1209 ac_prev=psdir ;; 1210 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1211 psdir=$ac_optarg ;; 1212 1213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1214 | -silent | --silent | --silen | --sile | --sil) 1215 silent=yes ;; 1216 1217 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1218 ac_prev=sbindir ;; 1219 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1220 | --sbi=* | --sb=*) 1221 sbindir=$ac_optarg ;; 1222 1223 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1224 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1225 | --sharedst | --shareds | --shared | --share | --shar \ 1226 | --sha | --sh) 1227 ac_prev=sharedstatedir ;; 1228 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1229 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1230 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1231 | --sha=* | --sh=*) 1232 sharedstatedir=$ac_optarg ;; 1233 1234 -site | --site | --sit) 1235 ac_prev=site ;; 1236 -site=* | --site=* | --sit=*) 1237 site=$ac_optarg ;; 1238 1239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1240 ac_prev=srcdir ;; 1241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1242 srcdir=$ac_optarg ;; 1243 1244 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1245 | --syscon | --sysco | --sysc | --sys | --sy) 1246 ac_prev=sysconfdir ;; 1247 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1248 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1249 sysconfdir=$ac_optarg ;; 1250 1251 -target | --target | --targe | --targ | --tar | --ta | --t) 1252 ac_prev=target_alias ;; 1253 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1254 target_alias=$ac_optarg ;; 1255 1256 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1257 verbose=yes ;; 1258 1259 -version | --version | --versio | --versi | --vers | -V) 1260 ac_init_version=: ;; 1261 1262 -with-* | --with-*) 1263 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1264 # Reject names that are not valid shell variable names. 1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1266 as_fn_error $? "invalid package name: $ac_useropt" 1267 ac_useropt_orig=$ac_useropt 1268 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1269 case $ac_user_opts in 1270 *" 1271"with_$ac_useropt" 1272"*) ;; 1273 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1274 ac_unrecognized_sep=', ';; 1275 esac 1276 eval with_$ac_useropt=\$ac_optarg ;; 1277 1278 -without-* | --without-*) 1279 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1280 # Reject names that are not valid shell variable names. 1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1282 as_fn_error $? "invalid package name: $ac_useropt" 1283 ac_useropt_orig=$ac_useropt 1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1285 case $ac_user_opts in 1286 *" 1287"with_$ac_useropt" 1288"*) ;; 1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1290 ac_unrecognized_sep=', ';; 1291 esac 1292 eval with_$ac_useropt=no ;; 1293 1294 --x) 1295 # Obsolete; use --with-x. 1296 with_x=yes ;; 1297 1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1299 | --x-incl | --x-inc | --x-in | --x-i) 1300 ac_prev=x_includes ;; 1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1303 x_includes=$ac_optarg ;; 1304 1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1307 ac_prev=x_libraries ;; 1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1310 x_libraries=$ac_optarg ;; 1311 1312 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1313Try \`$0 --help' for more information" 1314 ;; 1315 1316 *=*) 1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1318 # Reject names that are not valid shell variable names. 1319 case $ac_envvar in #( 1320 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1321 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1322 esac 1323 eval $ac_envvar=\$ac_optarg 1324 export $ac_envvar ;; 1325 1326 *) 1327 # FIXME: should be removed in autoconf 3.0. 1328 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1330 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1331 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1332 ;; 1333 1334 esac 1335done 1336 1337if test -n "$ac_prev"; then 1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1339 as_fn_error $? "missing argument to $ac_option" 1340fi 1341 1342if test -n "$ac_unrecognized_opts"; then 1343 case $enable_option_checking in 1344 no) ;; 1345 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1346 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1347 esac 1348fi 1349 1350# Check all directory arguments for consistency. 1351for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1352 datadir sysconfdir sharedstatedir localstatedir includedir \ 1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1354 libdir localedir mandir 1355do 1356 eval ac_val=\$$ac_var 1357 # Remove trailing slashes. 1358 case $ac_val in 1359 */ ) 1360 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1361 eval $ac_var=\$ac_val;; 1362 esac 1363 # Be sure to have absolute directory names. 1364 case $ac_val in 1365 [\\/$]* | ?:[\\/]* ) continue;; 1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1367 esac 1368 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1369done 1370 1371# There might be people who depend on the old broken behavior: `$host' 1372# used to hold the argument of --host etc. 1373# FIXME: To remove some day. 1374build=$build_alias 1375host=$host_alias 1376target=$target_alias 1377 1378# FIXME: To remove some day. 1379if test "x$host_alias" != x; then 1380 if test "x$build_alias" = x; then 1381 cross_compiling=maybe 1382 elif test "x$build_alias" != "x$host_alias"; then 1383 cross_compiling=yes 1384 fi 1385fi 1386 1387ac_tool_prefix= 1388test -n "$host_alias" && ac_tool_prefix=$host_alias- 1389 1390test "$silent" = yes && exec 6>/dev/null 1391 1392 1393ac_pwd=`pwd` && test -n "$ac_pwd" && 1394ac_ls_di=`ls -di .` && 1395ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1396 as_fn_error $? "working directory cannot be determined" 1397test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1398 as_fn_error $? "pwd does not report name of working directory" 1399 1400 1401# Find the source files, if location was not specified. 1402if test -z "$srcdir"; then 1403 ac_srcdir_defaulted=yes 1404 # Try the directory containing this script, then the parent directory. 1405 ac_confdir=`$as_dirname -- "$as_myself" || 1406$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1407 X"$as_myself" : 'X\(//\)[^/]' \| \ 1408 X"$as_myself" : 'X\(//\)$' \| \ 1409 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1410$as_echo X"$as_myself" | 1411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1412 s//\1/ 1413 q 1414 } 1415 /^X\(\/\/\)[^/].*/{ 1416 s//\1/ 1417 q 1418 } 1419 /^X\(\/\/\)$/{ 1420 s//\1/ 1421 q 1422 } 1423 /^X\(\/\).*/{ 1424 s//\1/ 1425 q 1426 } 1427 s/.*/./; q'` 1428 srcdir=$ac_confdir 1429 if test ! -r "$srcdir/$ac_unique_file"; then 1430 srcdir=.. 1431 fi 1432else 1433 ac_srcdir_defaulted=no 1434fi 1435if test ! -r "$srcdir/$ac_unique_file"; then 1436 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1437 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1438fi 1439ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1440ac_abs_confdir=`( 1441 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1442 pwd)` 1443# When building in place, set srcdir=. 1444if test "$ac_abs_confdir" = "$ac_pwd"; then 1445 srcdir=. 1446fi 1447# Remove unnecessary trailing slashes from srcdir. 1448# Double slashes in file names in object file debugging info 1449# mess up M-x gdb in Emacs. 1450case $srcdir in 1451*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1452esac 1453for ac_var in $ac_precious_vars; do 1454 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1455 eval ac_env_${ac_var}_value=\$${ac_var} 1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1457 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1458done 1459 1460# 1461# Report the --help message. 1462# 1463if test "$ac_init_help" = "long"; then 1464 # Omit some internal or obsolete options to make the list less imposing. 1465 # This message is too long to be a string in the A/UX 3.1 sh. 1466 cat <<_ACEOF 1467\`configure' configures unbound 1.13.2 to adapt to many kinds of systems. 1468 1469Usage: $0 [OPTION]... [VAR=VALUE]... 1470 1471To assign environment variables (e.g., CC, CFLAGS...), specify them as 1472VAR=VALUE. See below for descriptions of some of the useful variables. 1473 1474Defaults for the options are specified in brackets. 1475 1476Configuration: 1477 -h, --help display this help and exit 1478 --help=short display options specific to this package 1479 --help=recursive display the short help of all the included packages 1480 -V, --version display version information and exit 1481 -q, --quiet, --silent do not print \`checking ...' messages 1482 --cache-file=FILE cache test results in FILE [disabled] 1483 -C, --config-cache alias for \`--cache-file=config.cache' 1484 -n, --no-create do not create output files 1485 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1486 1487Installation directories: 1488 --prefix=PREFIX install architecture-independent files in PREFIX 1489 [$ac_default_prefix] 1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1491 [PREFIX] 1492 1493By default, \`make install' will install all the files in 1494\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1495an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1496for instance \`--prefix=\$HOME'. 1497 1498For better control, use the options below. 1499 1500Fine tuning of the installation directories: 1501 --bindir=DIR user executables [EPREFIX/bin] 1502 --sbindir=DIR system admin executables [EPREFIX/sbin] 1503 --libexecdir=DIR program executables [EPREFIX/libexec] 1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1507 --libdir=DIR object code libraries [EPREFIX/lib] 1508 --includedir=DIR C header files [PREFIX/include] 1509 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1512 --infodir=DIR info documentation [DATAROOTDIR/info] 1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1514 --mandir=DIR man documentation [DATAROOTDIR/man] 1515 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound] 1516 --htmldir=DIR html documentation [DOCDIR] 1517 --dvidir=DIR dvi documentation [DOCDIR] 1518 --pdfdir=DIR pdf documentation [DOCDIR] 1519 --psdir=DIR ps documentation [DOCDIR] 1520_ACEOF 1521 1522 cat <<\_ACEOF 1523 1524System types: 1525 --build=BUILD configure for building on BUILD [guessed] 1526 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1527_ACEOF 1528fi 1529 1530if test -n "$ac_init_help"; then 1531 case $ac_init_help in 1532 short | recursive ) echo "Configuration of unbound 1.13.2:";; 1533 esac 1534 cat <<\_ACEOF 1535 1536Optional Features: 1537 --disable-option-checking ignore unrecognized --enable/--with options 1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1540 --enable-checking Enable warnings, asserts, makefile-dependencies 1541 --enable-debug same as enable-checking 1542 --disable-flto Disable link-time optimization (gcc specific option) 1543 --enable-pie Enable Position-Independent Executable (eg. to fully 1544 benefit from ASLR, small performance penalty) 1545 --enable-relro-now Enable full relocation binding at load-time (RELRO 1546 NOW, to protect GOT and .dtor areas) 1547 --enable-shared[=PKGS] build shared libraries [default=yes] 1548 --enable-static[=PKGS] build static libraries [default=yes] 1549 --enable-fast-install[=PKGS] 1550 optimize for fast installation [default=yes] 1551 --disable-libtool-lock avoid locking (might break parallel builds) 1552 --disable-rpath disable hardcoded rpath (default=enabled) 1553 --disable-largefile omit support for large files 1554 --enable-systemd compile with systemd support 1555 --enable-alloc-checks enable to memory allocation statistics, for debug 1556 purposes 1557 --enable-alloc-lite enable for lightweight alloc assertions, for debug 1558 purposes 1559 --enable-alloc-nonregional 1560 enable nonregional allocs, slow but exposes regional 1561 allocations to other memory purifiers, for debug 1562 purposes 1563 --disable-swig-version-check 1564 Disable swig version check to build python modules 1565 with older swig even though that is unreliable 1566 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3 1567 support 1568 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1569 --enable-subnet Enable client subnet 1570 --disable-gost Disable GOST support 1571 --disable-ecdsa Disable ECDSA support 1572 --disable-dsa Disable DSA support 1573 --disable-ed25519 Disable ED25519 support 1574 --disable-ed448 Disable ED448 support 1575 --enable-event-api Enable (experimental) pluggable event base 1576 libunbound API installed to unbound-event.h 1577 --enable-tfo-client Enable TCP Fast Open for client mode 1578 --enable-tfo-server Enable TCP Fast Open for server mode 1579 --enable-static-exe enable to compile executables statically against 1580 (event) uninstalled libs, for debug purposes 1581 --enable-fully-static enable to compile fully static 1582 --enable-lock-checks enable to check lock and unlock calls, for debug 1583 purposes 1584 --enable-allsymbols export all symbols from libunbound and link binaries 1585 to it, smaller install size but libunbound export 1586 table is polluted by internal symbols 1587 --enable-dnstap Enable dnstap support (requires protobuf-c) 1588 --enable-dnscrypt Enable dnscrypt support (requires libsodium) 1589 --enable-cachedb enable cachedb module that can use external cache 1590 storage 1591 --enable-ipsecmod Enable ipsecmod module that facilitates 1592 opportunistic IPsec 1593 --enable-ipset enable ipset module 1594 --disable-explicit-port-randomisation 1595 disable explicit source port randomisation and rely 1596 on the kernel to provide random source ports 1597 --enable-linux-ip-local-port-range 1598 Define this to enable use of 1599 /proc/sys/net/ipv4/ip_local_port_range as a default 1600 outgoing port range. This is only for the libunbound 1601 on Linux and does not affect unbound resolving 1602 daemon itself. This may severely limit the number of 1603 available outgoing ports and thus decrease 1604 randomness. Define this only when the target system 1605 restricts (e.g. some of SELinux enabled 1606 distributions) the use of non-ephemeral ports. 1607 1608Optional Packages: 1609 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1610 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1611 --with-conf-file=path Pathname to the Unbound configuration file 1612 --with-run-dir=path set default directory to chdir to (by default dir 1613 part of cfg file) 1614 --with-chroot-dir=path set default directory to chroot to (by default same 1615 as run-dir) 1616 --with-share-dir=path set default directory with shared data (by default 1617 same as share/unbound) 1618 --with-pidfile=filename set default pathname to unbound pidfile (default 1619 run-dir/unbound.pid) 1620 --with-rootkey-file=filename 1621 set default pathname to root key file (default 1622 run-dir/root.key). This file is read and written. 1623 --with-rootcert-file=filename 1624 set default pathname to root update certificate file 1625 (default run-dir/icannbundle.pem). This file need 1626 not exist if you are content with the builtin. 1627 --with-username=user set default user that unbound changes to (default 1628 user is unbound) 1629 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1630 both] 1631 --with-aix-soname=aix|svr4|both 1632 shared library versioning (aka "SONAME") variant to 1633 provide on AIX, [default=aix]. 1634 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1635 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1636 compiler's sysroot if not specified). 1637 --with-pthreads use pthreads library, or --without-pthreads to 1638 disable threading support. 1639 --with-solaris-threads use solaris native thread library. 1640 --with-syslog-facility=LOCAL0 - LOCAL7 1641 set SYSLOG_FACILITY, default DAEMON 1642 --with-dynlibmodule build dynamic library module, or 1643 --without-dynlibmodule to disable it. (default=no) 1644 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it. 1645 (default=no) 1646 --with-pythonmodule build Python module, or --without-pythonmodule to 1647 disable script engine. (default=no) 1648 --with-nss=path use libnss instead of openssl, installed at path. 1649 --with-nettle=path use libnettle as crypto library, installed at path. 1650 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1651 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1652 /usr) 1653 --with-libbsd Use portable libbsd functions 1654 --with-deprecate-rsa-1024 1655 Deprecate RSA 1024 bit length, makes that an 1656 unsupported key, for use when OpenSSL FIPS refuses 1657 1024 bit verification 1658 --with-libevent=pathname 1659 use libevent (will check /usr/local /opt/local 1660 /usr/lib /usr/pkg /usr/sfw /usr or you can specify 1661 an explicit path). Slower, but allows use of large 1662 outgoing port ranges. 1663 --with-libexpat=path specify explicit path for libexpat. 1664 --with-libhiredis=path specify explicit path for libhiredis. 1665 --with-libnghttp2=path specify explicit path for libnghttp2. 1666 --with-dnstap-socket-path=pathname 1667 set default dnstap socket path 1668 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap 1669 --with-libsodium=path Path where libsodium is installed, for dnscrypt 1670 --with-libmnl=path specify explicit path for libmnl. 1671 --with-libunbound-only do not build daemon and tool programs 1672 1673Some influential environment variables: 1674 CC C compiler command 1675 CFLAGS C compiler flags 1676 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1677 nonstandard directory <lib dir> 1678 LIBS libraries to pass to the linker, e.g. -l<library> 1679 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1680 you have headers in a nonstandard directory <include dir> 1681 CPP C preprocessor 1682 YACC The `Yet Another Compiler Compiler' implementation to use. 1683 Defaults to the first program found out of: `bison -y', `byacc', 1684 `yacc'. 1685 YFLAGS The list of arguments that will be passed by default to $YACC. 1686 This script will default YFLAGS to the empty string to avoid a 1687 default value of `-d' given by some make applications. 1688 LT_SYS_LIBRARY_PATH 1689 User-defined run-time library search path. 1690 PKG_CONFIG path to pkg-config utility 1691 PKG_CONFIG_PATH 1692 directories to add to pkg-config's search path 1693 PKG_CONFIG_LIBDIR 1694 path overriding pkg-config's built-in search path 1695 SYSTEMD_CFLAGS 1696 C compiler flags for SYSTEMD, overriding pkg-config 1697 SYSTEMD_LIBS 1698 linker flags for SYSTEMD, overriding pkg-config 1699 SYSTEMD_DAEMON_CFLAGS 1700 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 1701 SYSTEMD_DAEMON_LIBS 1702 linker flags for SYSTEMD_DAEMON, overriding pkg-config 1703 PYTHON_VERSION 1704 The installed Python version to use, for example '2.3'. This 1705 string will be appended to the Python interpreter canonical 1706 name. 1707 1708Use these variables to override the choices made by `configure' or to help 1709it to find libraries and programs with nonstandard names/locations. 1710 1711Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>. 1712_ACEOF 1713ac_status=$? 1714fi 1715 1716if test "$ac_init_help" = "recursive"; then 1717 # If there are subdirs, report their specific --help. 1718 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1719 test -d "$ac_dir" || 1720 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1721 continue 1722 ac_builddir=. 1723 1724case "$ac_dir" in 1725.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1726*) 1727 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1728 # A ".." for each directory in $ac_dir_suffix. 1729 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1730 case $ac_top_builddir_sub in 1731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1733 esac ;; 1734esac 1735ac_abs_top_builddir=$ac_pwd 1736ac_abs_builddir=$ac_pwd$ac_dir_suffix 1737# for backward compatibility: 1738ac_top_builddir=$ac_top_build_prefix 1739 1740case $srcdir in 1741 .) # We are building in place. 1742 ac_srcdir=. 1743 ac_top_srcdir=$ac_top_builddir_sub 1744 ac_abs_top_srcdir=$ac_pwd ;; 1745 [\\/]* | ?:[\\/]* ) # Absolute name. 1746 ac_srcdir=$srcdir$ac_dir_suffix; 1747 ac_top_srcdir=$srcdir 1748 ac_abs_top_srcdir=$srcdir ;; 1749 *) # Relative name. 1750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1751 ac_top_srcdir=$ac_top_build_prefix$srcdir 1752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1753esac 1754ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1755 1756 cd "$ac_dir" || { ac_status=$?; continue; } 1757 # Check for guested configure. 1758 if test -f "$ac_srcdir/configure.gnu"; then 1759 echo && 1760 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1761 elif test -f "$ac_srcdir/configure"; then 1762 echo && 1763 $SHELL "$ac_srcdir/configure" --help=recursive 1764 else 1765 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1766 fi || ac_status=$? 1767 cd "$ac_pwd" || { ac_status=$?; break; } 1768 done 1769fi 1770 1771test -n "$ac_init_help" && exit $ac_status 1772if $ac_init_version; then 1773 cat <<\_ACEOF 1774unbound configure 1.13.2 1775generated by GNU Autoconf 2.69 1776 1777Copyright (C) 2012 Free Software Foundation, Inc. 1778This configure script is free software; the Free Software Foundation 1779gives unlimited permission to copy, distribute and modify it. 1780_ACEOF 1781 exit 1782fi 1783 1784## ------------------------ ## 1785## Autoconf initialization. ## 1786## ------------------------ ## 1787 1788# ac_fn_c_try_compile LINENO 1789# -------------------------- 1790# Try to compile conftest.$ac_ext, and return whether this succeeded. 1791ac_fn_c_try_compile () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 rm -f conftest.$ac_objext 1795 if { { ac_try="$ac_compile" 1796case "(($ac_try" in 1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1798 *) ac_try_echo=$ac_try;; 1799esac 1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1801$as_echo "$ac_try_echo"; } >&5 1802 (eval "$ac_compile") 2>conftest.err 1803 ac_status=$? 1804 if test -s conftest.err; then 1805 grep -v '^ *+' conftest.err >conftest.er1 1806 cat conftest.er1 >&5 1807 mv -f conftest.er1 conftest.err 1808 fi 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; } && { 1811 test -z "$ac_c_werror_flag" || 1812 test ! -s conftest.err 1813 } && test -s conftest.$ac_objext; then : 1814 ac_retval=0 1815else 1816 $as_echo "$as_me: failed program was:" >&5 1817sed 's/^/| /' conftest.$ac_ext >&5 1818 1819 ac_retval=1 1820fi 1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1822 as_fn_set_status $ac_retval 1823 1824} # ac_fn_c_try_compile 1825 1826# ac_fn_c_try_cpp LINENO 1827# ---------------------- 1828# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1829ac_fn_c_try_cpp () 1830{ 1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1832 if { { ac_try="$ac_cpp conftest.$ac_ext" 1833case "(($ac_try" in 1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1835 *) ac_try_echo=$ac_try;; 1836esac 1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1838$as_echo "$ac_try_echo"; } >&5 1839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1840 ac_status=$? 1841 if test -s conftest.err; then 1842 grep -v '^ *+' conftest.err >conftest.er1 1843 cat conftest.er1 >&5 1844 mv -f conftest.er1 conftest.err 1845 fi 1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1847 test $ac_status = 0; } > conftest.i && { 1848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1849 test ! -s conftest.err 1850 }; then : 1851 ac_retval=0 1852else 1853 $as_echo "$as_me: failed program was:" >&5 1854sed 's/^/| /' conftest.$ac_ext >&5 1855 1856 ac_retval=1 1857fi 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1859 as_fn_set_status $ac_retval 1860 1861} # ac_fn_c_try_cpp 1862 1863# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1864# ------------------------------------------------------- 1865# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1866# the include files in INCLUDES and setting the cache variable VAR 1867# accordingly. 1868ac_fn_c_check_header_mongrel () 1869{ 1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1871 if eval \${$3+:} false; then : 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1873$as_echo_n "checking for $2... " >&6; } 1874if eval \${$3+:} false; then : 1875 $as_echo_n "(cached) " >&6 1876fi 1877eval ac_res=\$$3 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1879$as_echo "$ac_res" >&6; } 1880else 1881 # Is the header compilable? 1882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1883$as_echo_n "checking $2 usability... " >&6; } 1884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1885/* end confdefs.h. */ 1886$4 1887#include <$2> 1888_ACEOF 1889if ac_fn_c_try_compile "$LINENO"; then : 1890 ac_header_compiler=yes 1891else 1892 ac_header_compiler=no 1893fi 1894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1896$as_echo "$ac_header_compiler" >&6; } 1897 1898# Is the header present? 1899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1900$as_echo_n "checking $2 presence... " >&6; } 1901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1902/* end confdefs.h. */ 1903#include <$2> 1904_ACEOF 1905if ac_fn_c_try_cpp "$LINENO"; then : 1906 ac_header_preproc=yes 1907else 1908 ac_header_preproc=no 1909fi 1910rm -f conftest.err conftest.i conftest.$ac_ext 1911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1912$as_echo "$ac_header_preproc" >&6; } 1913 1914# So? What about this header? 1915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1916 yes:no: ) 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1918$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1920$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1921 ;; 1922 no:yes:* ) 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1924$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1926$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1928$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1930$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1932$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1933( $as_echo "## --------------------------------------------------------------------------------------- ## 1934## Report this to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues ## 1935## --------------------------------------------------------------------------------------- ##" 1936 ) | sed "s/^/$as_me: WARNING: /" >&2 1937 ;; 1938esac 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1940$as_echo_n "checking for $2... " >&6; } 1941if eval \${$3+:} false; then : 1942 $as_echo_n "(cached) " >&6 1943else 1944 eval "$3=\$ac_header_compiler" 1945fi 1946eval ac_res=\$$3 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1948$as_echo "$ac_res" >&6; } 1949fi 1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1951 1952} # ac_fn_c_check_header_mongrel 1953 1954# ac_fn_c_try_run LINENO 1955# ---------------------- 1956# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1957# that executables *can* be run. 1958ac_fn_c_try_run () 1959{ 1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1961 if { { ac_try="$ac_link" 1962case "(($ac_try" in 1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1964 *) ac_try_echo=$ac_try;; 1965esac 1966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1967$as_echo "$ac_try_echo"; } >&5 1968 (eval "$ac_link") 2>&5 1969 ac_status=$? 1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1971 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1972 { { case "(($ac_try" in 1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1974 *) ac_try_echo=$ac_try;; 1975esac 1976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1977$as_echo "$ac_try_echo"; } >&5 1978 (eval "$ac_try") 2>&5 1979 ac_status=$? 1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1981 test $ac_status = 0; }; }; then : 1982 ac_retval=0 1983else 1984 $as_echo "$as_me: program exited with status $ac_status" >&5 1985 $as_echo "$as_me: failed program was:" >&5 1986sed 's/^/| /' conftest.$ac_ext >&5 1987 1988 ac_retval=$ac_status 1989fi 1990 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1992 as_fn_set_status $ac_retval 1993 1994} # ac_fn_c_try_run 1995 1996# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1997# ------------------------------------------------------- 1998# Tests whether HEADER exists and can be compiled using the include files in 1999# INCLUDES, setting the cache variable VAR accordingly. 2000ac_fn_c_check_header_compile () 2001{ 2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2004$as_echo_n "checking for $2... " >&6; } 2005if eval \${$3+:} false; then : 2006 $as_echo_n "(cached) " >&6 2007else 2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2009/* end confdefs.h. */ 2010$4 2011#include <$2> 2012_ACEOF 2013if ac_fn_c_try_compile "$LINENO"; then : 2014 eval "$3=yes" 2015else 2016 eval "$3=no" 2017fi 2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2019fi 2020eval ac_res=\$$3 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2022$as_echo "$ac_res" >&6; } 2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2024 2025} # ac_fn_c_check_header_compile 2026 2027# ac_fn_c_try_link LINENO 2028# ----------------------- 2029# Try to link conftest.$ac_ext, and return whether this succeeded. 2030ac_fn_c_try_link () 2031{ 2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2033 rm -f conftest.$ac_objext conftest$ac_exeext 2034 if { { ac_try="$ac_link" 2035case "(($ac_try" in 2036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2037 *) ac_try_echo=$ac_try;; 2038esac 2039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2040$as_echo "$ac_try_echo"; } >&5 2041 (eval "$ac_link") 2>conftest.err 2042 ac_status=$? 2043 if test -s conftest.err; then 2044 grep -v '^ *+' conftest.err >conftest.er1 2045 cat conftest.er1 >&5 2046 mv -f conftest.er1 conftest.err 2047 fi 2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2049 test $ac_status = 0; } && { 2050 test -z "$ac_c_werror_flag" || 2051 test ! -s conftest.err 2052 } && test -s conftest$ac_exeext && { 2053 test "$cross_compiling" = yes || 2054 test -x conftest$ac_exeext 2055 }; then : 2056 ac_retval=0 2057else 2058 $as_echo "$as_me: failed program was:" >&5 2059sed 's/^/| /' conftest.$ac_ext >&5 2060 2061 ac_retval=1 2062fi 2063 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2064 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2065 # interfere with the next link command; also delete a directory that is 2066 # left behind by Apple's compiler. We do this before executing the actions. 2067 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2069 as_fn_set_status $ac_retval 2070 2071} # ac_fn_c_try_link 2072 2073# ac_fn_c_check_func LINENO FUNC VAR 2074# ---------------------------------- 2075# Tests whether FUNC exists, setting the cache variable VAR accordingly 2076ac_fn_c_check_func () 2077{ 2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2080$as_echo_n "checking for $2... " >&6; } 2081if eval \${$3+:} false; then : 2082 $as_echo_n "(cached) " >&6 2083else 2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2085/* end confdefs.h. */ 2086/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2087 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2088#define $2 innocuous_$2 2089 2090/* System header to define __stub macros and hopefully few prototypes, 2091 which can conflict with char $2 (); below. 2092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2093 <limits.h> exists even on freestanding compilers. */ 2094 2095#ifdef __STDC__ 2096# include <limits.h> 2097#else 2098# include <assert.h> 2099#endif 2100 2101#undef $2 2102 2103/* Override any GCC internal prototype to avoid an error. 2104 Use char because int might match the return type of a GCC 2105 builtin and then its argument prototype would still apply. */ 2106#ifdef __cplusplus 2107extern "C" 2108#endif 2109char $2 (); 2110/* The GNU C library defines this for functions which it implements 2111 to always fail with ENOSYS. Some functions are actually named 2112 something starting with __ and the normal name is an alias. */ 2113#if defined __stub_$2 || defined __stub___$2 2114choke me 2115#endif 2116 2117int 2118main () 2119{ 2120return $2 (); 2121 ; 2122 return 0; 2123} 2124_ACEOF 2125if ac_fn_c_try_link "$LINENO"; then : 2126 eval "$3=yes" 2127else 2128 eval "$3=no" 2129fi 2130rm -f core conftest.err conftest.$ac_objext \ 2131 conftest$ac_exeext conftest.$ac_ext 2132fi 2133eval ac_res=\$$3 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2135$as_echo "$ac_res" >&6; } 2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2137 2138} # ac_fn_c_check_func 2139 2140# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2141# ------------------------------------------- 2142# Tests whether TYPE exists after having included INCLUDES, setting cache 2143# variable VAR accordingly. 2144ac_fn_c_check_type () 2145{ 2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2148$as_echo_n "checking for $2... " >&6; } 2149if eval \${$3+:} false; then : 2150 $as_echo_n "(cached) " >&6 2151else 2152 eval "$3=no" 2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2154/* end confdefs.h. */ 2155$4 2156int 2157main () 2158{ 2159if (sizeof ($2)) 2160 return 0; 2161 ; 2162 return 0; 2163} 2164_ACEOF 2165if ac_fn_c_try_compile "$LINENO"; then : 2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2167/* end confdefs.h. */ 2168$4 2169int 2170main () 2171{ 2172if (sizeof (($2))) 2173 return 0; 2174 ; 2175 return 0; 2176} 2177_ACEOF 2178if ac_fn_c_try_compile "$LINENO"; then : 2179 2180else 2181 eval "$3=yes" 2182fi 2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2184fi 2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2186fi 2187eval ac_res=\$$3 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2189$as_echo "$ac_res" >&6; } 2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2191 2192} # ac_fn_c_check_type 2193 2194# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2195# -------------------------------------------- 2196# Tries to find the compile-time value of EXPR in a program that includes 2197# INCLUDES, setting VAR accordingly. Returns whether the value could be 2198# computed 2199ac_fn_c_compute_int () 2200{ 2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2202 if test "$cross_compiling" = yes; then 2203 # Depending upon the size, compute the lo and hi bounds. 2204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2205/* end confdefs.h. */ 2206$4 2207int 2208main () 2209{ 2210static int test_array [1 - 2 * !(($2) >= 0)]; 2211test_array [0] = 0; 2212return test_array [0]; 2213 2214 ; 2215 return 0; 2216} 2217_ACEOF 2218if ac_fn_c_try_compile "$LINENO"; then : 2219 ac_lo=0 ac_mid=0 2220 while :; do 2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2222/* end confdefs.h. */ 2223$4 2224int 2225main () 2226{ 2227static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2228test_array [0] = 0; 2229return test_array [0]; 2230 2231 ; 2232 return 0; 2233} 2234_ACEOF 2235if ac_fn_c_try_compile "$LINENO"; then : 2236 ac_hi=$ac_mid; break 2237else 2238 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2239 if test $ac_lo -le $ac_mid; then 2240 ac_lo= ac_hi= 2241 break 2242 fi 2243 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2244fi 2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2246 done 2247else 2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2249/* end confdefs.h. */ 2250$4 2251int 2252main () 2253{ 2254static int test_array [1 - 2 * !(($2) < 0)]; 2255test_array [0] = 0; 2256return test_array [0]; 2257 2258 ; 2259 return 0; 2260} 2261_ACEOF 2262if ac_fn_c_try_compile "$LINENO"; then : 2263 ac_hi=-1 ac_mid=-1 2264 while :; do 2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2266/* end confdefs.h. */ 2267$4 2268int 2269main () 2270{ 2271static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2272test_array [0] = 0; 2273return test_array [0]; 2274 2275 ; 2276 return 0; 2277} 2278_ACEOF 2279if ac_fn_c_try_compile "$LINENO"; then : 2280 ac_lo=$ac_mid; break 2281else 2282 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2283 if test $ac_mid -le $ac_hi; then 2284 ac_lo= ac_hi= 2285 break 2286 fi 2287 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2288fi 2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2290 done 2291else 2292 ac_lo= ac_hi= 2293fi 2294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2295fi 2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2297# Binary search between lo and hi bounds. 2298while test "x$ac_lo" != "x$ac_hi"; do 2299 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2301/* end confdefs.h. */ 2302$4 2303int 2304main () 2305{ 2306static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2307test_array [0] = 0; 2308return test_array [0]; 2309 2310 ; 2311 return 0; 2312} 2313_ACEOF 2314if ac_fn_c_try_compile "$LINENO"; then : 2315 ac_hi=$ac_mid 2316else 2317 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2318fi 2319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2320done 2321case $ac_lo in #(( 2322?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2323'') ac_retval=1 ;; 2324esac 2325 else 2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2327/* end confdefs.h. */ 2328$4 2329static long int longval () { return $2; } 2330static unsigned long int ulongval () { return $2; } 2331#include <stdio.h> 2332#include <stdlib.h> 2333int 2334main () 2335{ 2336 2337 FILE *f = fopen ("conftest.val", "w"); 2338 if (! f) 2339 return 1; 2340 if (($2) < 0) 2341 { 2342 long int i = longval (); 2343 if (i != ($2)) 2344 return 1; 2345 fprintf (f, "%ld", i); 2346 } 2347 else 2348 { 2349 unsigned long int i = ulongval (); 2350 if (i != ($2)) 2351 return 1; 2352 fprintf (f, "%lu", i); 2353 } 2354 /* Do not output a trailing newline, as this causes \r\n confusion 2355 on some platforms. */ 2356 return ferror (f) || fclose (f) != 0; 2357 2358 ; 2359 return 0; 2360} 2361_ACEOF 2362if ac_fn_c_try_run "$LINENO"; then : 2363 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2364else 2365 ac_retval=1 2366fi 2367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2368 conftest.$ac_objext conftest.beam conftest.$ac_ext 2369rm -f conftest.val 2370 2371 fi 2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2373 as_fn_set_status $ac_retval 2374 2375} # ac_fn_c_compute_int 2376 2377# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2378# --------------------------------------------- 2379# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2380# accordingly. 2381ac_fn_c_check_decl () 2382{ 2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2384 as_decl_name=`echo $2|sed 's/ *(.*//'` 2385 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2387$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2388if eval \${$3+:} false; then : 2389 $as_echo_n "(cached) " >&6 2390else 2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2392/* end confdefs.h. */ 2393$4 2394int 2395main () 2396{ 2397#ifndef $as_decl_name 2398#ifdef __cplusplus 2399 (void) $as_decl_use; 2400#else 2401 (void) $as_decl_name; 2402#endif 2403#endif 2404 2405 ; 2406 return 0; 2407} 2408_ACEOF 2409if ac_fn_c_try_compile "$LINENO"; then : 2410 eval "$3=yes" 2411else 2412 eval "$3=no" 2413fi 2414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2415fi 2416eval ac_res=\$$3 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2418$as_echo "$ac_res" >&6; } 2419 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2420 2421} # ac_fn_c_check_decl 2422 2423# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2424# ---------------------------------------------------- 2425# Tries to find if the field MEMBER exists in type AGGR, after including 2426# INCLUDES, setting cache variable VAR accordingly. 2427ac_fn_c_check_member () 2428{ 2429 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2431$as_echo_n "checking for $2.$3... " >&6; } 2432if eval \${$4+:} false; then : 2433 $as_echo_n "(cached) " >&6 2434else 2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2436/* end confdefs.h. */ 2437$5 2438int 2439main () 2440{ 2441static $2 ac_aggr; 2442if (ac_aggr.$3) 2443return 0; 2444 ; 2445 return 0; 2446} 2447_ACEOF 2448if ac_fn_c_try_compile "$LINENO"; then : 2449 eval "$4=yes" 2450else 2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2452/* end confdefs.h. */ 2453$5 2454int 2455main () 2456{ 2457static $2 ac_aggr; 2458if (sizeof ac_aggr.$3) 2459return 0; 2460 ; 2461 return 0; 2462} 2463_ACEOF 2464if ac_fn_c_try_compile "$LINENO"; then : 2465 eval "$4=yes" 2466else 2467 eval "$4=no" 2468fi 2469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2470fi 2471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2472fi 2473eval ac_res=\$$4 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2475$as_echo "$ac_res" >&6; } 2476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2477 2478} # ac_fn_c_check_member 2479cat >config.log <<_ACEOF 2480This file contains any messages produced by compilers while 2481running configure, to aid debugging if configure makes a mistake. 2482 2483It was created by unbound $as_me 1.13.2, which was 2484generated by GNU Autoconf 2.69. Invocation command line was 2485 2486 $ $0 $@ 2487 2488_ACEOF 2489exec 5>>config.log 2490{ 2491cat <<_ASUNAME 2492## --------- ## 2493## Platform. ## 2494## --------- ## 2495 2496hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2497uname -m = `(uname -m) 2>/dev/null || echo unknown` 2498uname -r = `(uname -r) 2>/dev/null || echo unknown` 2499uname -s = `(uname -s) 2>/dev/null || echo unknown` 2500uname -v = `(uname -v) 2>/dev/null || echo unknown` 2501 2502/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2503/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2504 2505/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2506/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2507/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2508/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2509/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2510/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2511/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2512 2513_ASUNAME 2514 2515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2516for as_dir in $PATH 2517do 2518 IFS=$as_save_IFS 2519 test -z "$as_dir" && as_dir=. 2520 $as_echo "PATH: $as_dir" 2521 done 2522IFS=$as_save_IFS 2523 2524} >&5 2525 2526cat >&5 <<_ACEOF 2527 2528 2529## ----------- ## 2530## Core tests. ## 2531## ----------- ## 2532 2533_ACEOF 2534 2535 2536# Keep a trace of the command line. 2537# Strip out --no-create and --no-recursion so they do not pile up. 2538# Strip out --silent because we don't want to record it for future runs. 2539# Also quote any args containing shell meta-characters. 2540# Make two passes to allow for proper duplicate-argument suppression. 2541ac_configure_args= 2542ac_configure_args0= 2543ac_configure_args1= 2544ac_must_keep_next=false 2545for ac_pass in 1 2 2546do 2547 for ac_arg 2548 do 2549 case $ac_arg in 2550 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2551 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2552 | -silent | --silent | --silen | --sile | --sil) 2553 continue ;; 2554 *\'*) 2555 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2556 esac 2557 case $ac_pass in 2558 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2559 2) 2560 as_fn_append ac_configure_args1 " '$ac_arg'" 2561 if test $ac_must_keep_next = true; then 2562 ac_must_keep_next=false # Got value, back to normal. 2563 else 2564 case $ac_arg in 2565 *=* | --config-cache | -C | -disable-* | --disable-* \ 2566 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2567 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2568 | -with-* | --with-* | -without-* | --without-* | --x) 2569 case "$ac_configure_args0 " in 2570 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2571 esac 2572 ;; 2573 -* ) ac_must_keep_next=true ;; 2574 esac 2575 fi 2576 as_fn_append ac_configure_args " '$ac_arg'" 2577 ;; 2578 esac 2579 done 2580done 2581{ ac_configure_args0=; unset ac_configure_args0;} 2582{ ac_configure_args1=; unset ac_configure_args1;} 2583 2584# When interrupted or exit'd, cleanup temporary files, and complete 2585# config.log. We remove comments because anyway the quotes in there 2586# would cause problems or look ugly. 2587# WARNING: Use '\'' to represent an apostrophe within the trap. 2588# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2589trap 'exit_status=$? 2590 # Save into config.log some information that might help in debugging. 2591 { 2592 echo 2593 2594 $as_echo "## ---------------- ## 2595## Cache variables. ## 2596## ---------------- ##" 2597 echo 2598 # The following way of writing the cache mishandles newlines in values, 2599( 2600 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2601 eval ac_val=\$$ac_var 2602 case $ac_val in #( 2603 *${as_nl}*) 2604 case $ac_var in #( 2605 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2606$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2607 esac 2608 case $ac_var in #( 2609 _ | IFS | as_nl) ;; #( 2610 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2611 *) { eval $ac_var=; unset $ac_var;} ;; 2612 esac ;; 2613 esac 2614 done 2615 (set) 2>&1 | 2616 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2617 *${as_nl}ac_space=\ *) 2618 sed -n \ 2619 "s/'\''/'\''\\\\'\'''\''/g; 2620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2621 ;; #( 2622 *) 2623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2624 ;; 2625 esac | 2626 sort 2627) 2628 echo 2629 2630 $as_echo "## ----------------- ## 2631## Output variables. ## 2632## ----------------- ##" 2633 echo 2634 for ac_var in $ac_subst_vars 2635 do 2636 eval ac_val=\$$ac_var 2637 case $ac_val in 2638 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2639 esac 2640 $as_echo "$ac_var='\''$ac_val'\''" 2641 done | sort 2642 echo 2643 2644 if test -n "$ac_subst_files"; then 2645 $as_echo "## ------------------- ## 2646## File substitutions. ## 2647## ------------------- ##" 2648 echo 2649 for ac_var in $ac_subst_files 2650 do 2651 eval ac_val=\$$ac_var 2652 case $ac_val in 2653 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2654 esac 2655 $as_echo "$ac_var='\''$ac_val'\''" 2656 done | sort 2657 echo 2658 fi 2659 2660 if test -s confdefs.h; then 2661 $as_echo "## ----------- ## 2662## confdefs.h. ## 2663## ----------- ##" 2664 echo 2665 cat confdefs.h 2666 echo 2667 fi 2668 test "$ac_signal" != 0 && 2669 $as_echo "$as_me: caught signal $ac_signal" 2670 $as_echo "$as_me: exit $exit_status" 2671 } >&5 2672 rm -f core *.core core.conftest.* && 2673 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2674 exit $exit_status 2675' 0 2676for ac_signal in 1 2 13 15; do 2677 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2678done 2679ac_signal=0 2680 2681# confdefs.h avoids OS command line length limits that DEFS can exceed. 2682rm -f -r conftest* confdefs.h 2683 2684$as_echo "/* confdefs.h */" > confdefs.h 2685 2686# Predefined preprocessor variables. 2687 2688cat >>confdefs.h <<_ACEOF 2689#define PACKAGE_NAME "$PACKAGE_NAME" 2690_ACEOF 2691 2692cat >>confdefs.h <<_ACEOF 2693#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2694_ACEOF 2695 2696cat >>confdefs.h <<_ACEOF 2697#define PACKAGE_VERSION "$PACKAGE_VERSION" 2698_ACEOF 2699 2700cat >>confdefs.h <<_ACEOF 2701#define PACKAGE_STRING "$PACKAGE_STRING" 2702_ACEOF 2703 2704cat >>confdefs.h <<_ACEOF 2705#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2706_ACEOF 2707 2708cat >>confdefs.h <<_ACEOF 2709#define PACKAGE_URL "$PACKAGE_URL" 2710_ACEOF 2711 2712 2713# Let the site file select an alternate cache file if it wants to. 2714# Prefer an explicitly selected file to automatically selected ones. 2715ac_site_file1=NONE 2716ac_site_file2=NONE 2717if test -n "$CONFIG_SITE"; then 2718 # We do not want a PATH search for config.site. 2719 case $CONFIG_SITE in #(( 2720 -*) ac_site_file1=./$CONFIG_SITE;; 2721 */*) ac_site_file1=$CONFIG_SITE;; 2722 *) ac_site_file1=./$CONFIG_SITE;; 2723 esac 2724elif test "x$prefix" != xNONE; then 2725 ac_site_file1=$prefix/share/config.site 2726 ac_site_file2=$prefix/etc/config.site 2727else 2728 ac_site_file1=$ac_default_prefix/share/config.site 2729 ac_site_file2=$ac_default_prefix/etc/config.site 2730fi 2731for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2732do 2733 test "x$ac_site_file" = xNONE && continue 2734 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2736$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2737 sed 's/^/| /' "$ac_site_file" >&5 2738 . "$ac_site_file" \ 2739 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2741as_fn_error $? "failed to load site script $ac_site_file 2742See \`config.log' for more details" "$LINENO" 5; } 2743 fi 2744done 2745 2746if test -r "$cache_file"; then 2747 # Some versions of bash will fail to source /dev/null (special files 2748 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2749 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2751$as_echo "$as_me: loading cache $cache_file" >&6;} 2752 case $cache_file in 2753 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2754 *) . "./$cache_file";; 2755 esac 2756 fi 2757else 2758 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2759$as_echo "$as_me: creating cache $cache_file" >&6;} 2760 >$cache_file 2761fi 2762 2763# Check that the precious variables saved in the cache have kept the same 2764# value. 2765ac_cache_corrupted=false 2766for ac_var in $ac_precious_vars; do 2767 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2768 eval ac_new_set=\$ac_env_${ac_var}_set 2769 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2770 eval ac_new_val=\$ac_env_${ac_var}_value 2771 case $ac_old_set,$ac_new_set in 2772 set,) 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2774$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2775 ac_cache_corrupted=: ;; 2776 ,set) 2777 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2778$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2779 ac_cache_corrupted=: ;; 2780 ,);; 2781 *) 2782 if test "x$ac_old_val" != "x$ac_new_val"; then 2783 # differences in whitespace do not lead to failure. 2784 ac_old_val_w=`echo x $ac_old_val` 2785 ac_new_val_w=`echo x $ac_new_val` 2786 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2788$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2789 ac_cache_corrupted=: 2790 else 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2792$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2793 eval $ac_var=\$ac_old_val 2794 fi 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2796$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2798$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2799 fi;; 2800 esac 2801 # Pass precious variables to config.status. 2802 if test "$ac_new_set" = set; then 2803 case $ac_new_val in 2804 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2805 *) ac_arg=$ac_var=$ac_new_val ;; 2806 esac 2807 case " $ac_configure_args " in 2808 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2809 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2810 esac 2811 fi 2812done 2813if $ac_cache_corrupted; then 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2817$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2818 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2819fi 2820## -------------------- ## 2821## Main body of script. ## 2822## -------------------- ## 2823 2824ac_ext=c 2825ac_cpp='$CPP $CPPFLAGS' 2826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2828ac_compiler_gnu=$ac_cv_c_compiler_gnu 2829 2830 2831UNBOUND_VERSION_MAJOR=1 2832 2833UNBOUND_VERSION_MINOR=13 2834 2835UNBOUND_VERSION_MICRO=2 2836 2837 2838LIBUNBOUND_CURRENT=9 2839LIBUNBOUND_REVISION=13 2840LIBUNBOUND_AGE=1 2841# 1.0.0 had 0:12:0 2842# 1.0.1 had 0:13:0 2843# 1.0.2 had 0:14:0 2844# 1.1.0 had 0:15:0 2845# 1.1.1 had 0:16:0 2846# 1.2.0 had 0:17:0 2847# 1.2.1 had 0:18:0 2848# 1.3.0 had 1:0:0 # ub_cancel and -export-symbols. 2849# 1.3.1 had 1:1:0 2850# 1.3.2 had 1:2:0 2851# 1.3.3 had 1:3:0 2852# 1.3.4 had 1:4:0 2853# 1.4.0-snapshots had 1:5:0 2854# 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus 2855# 1.4.1 had 2:1:0 2856# 1.4.2 had 2:2:0 2857# 1.4.3 had 2:3:0 2858# 1.4.4 had 2:4:0 2859# 1.4.5 had 2:5:0 2860# 1.4.6 had 2:6:0 2861# 1.4.7 had 2:7:0 2862# 1.4.8 had 2:8:0 2863# 1.4.9 had 2:9:0 2864# 1.4.10 had 2:10:0 2865# 1.4.11 had 2:11:0 2866# 1.4.12 had 2:12:0 2867# 1.4.13 had 2:13:0 2868# and 1.4.13p1 and 1.4.13.p2 2869# 1.4.14 had 2:14:0 2870# 1.4.15 had 3:0:1 # adds ub_version() 2871# 1.4.16 had 3:1:1 2872# 1.4.17 had 3:2:1 2873# 1.4.18 had 3:3:1 2874# 1.4.19 had 3:4:1 2875# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1 2876# 1.4.21 had 4:1:2 2877# 1.4.22 had 4:1:2 2878# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr 2879# 1.5.1 had 5:3:3 2880# 1.5.2 had 5:5:3 2881# 1.5.3 had 5:6:3 2882# 1.5.4 had 5:7:3 2883# 1.5.5 had 5:8:3 2884# 1.5.6 had 5:9:3 2885# 1.5.7 had 5:10:3 2886# 1.5.8 had 6:0:4 # adds ub_ctx_set_stub 2887# 1.5.9 had 6:1:4 2888# 1.5.10 had 6:2:4 2889# 1.6.0 had 6:3:4 2890# 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type 2891# 1.6.2 had 7:1:5 2892# 1.6.3 had 7:2:5 2893# 1.6.4 had 7:3:5 2894# 1.6.5 had 7:4:5 2895# 1.6.6 had 7:5:5 2896# 1.6.7 had 7:6:5 2897# 1.6.8 had 7:7:5 2898# 1.7.0 had 7:8:5 2899# 1.7.1 had 7:9:5 2900# 1.7.2 had 7:10:5 2901# 1.7.3 had 7:11:5 2902# 1.8.0 had 8:0:0 # changes the event callback function signature 2903# 1.8.1 had 8:1:0 2904# 1.8.2 had 8:2:0 2905# 1.8.3 had 8:3:0 2906# 1.9.0 had 9:0:1 # add ub_ctx_set_tls 2907# 1.9.1 had 9:1:1 2908# 1.9.2 had 9:2:1 2909# 1.9.3 had 9:3:1 2910# 1.9.4 had 9:4:1 2911# 1.9.5 had 9:5:1 2912# 1.9.6 had 9:6:1 2913# 1.10.0 had 9:7:1 2914# 1.10.1 had 9:8:1 2915# 1.11.0 had 9:9:1 2916# 1.12.0 had 9:10:1 2917# 1.13.0 had 9:11:1 2918# 1.13.1 had 9:12:1 2919# 1.13.2 had 9:13:1 2920 2921# Current -- the number of the binary API that we're implementing 2922# Revision -- which iteration of the implementation of the binary 2923# API are we supplying? 2924# Age -- How many previous binary API versions do we also 2925# support? 2926# 2927# If we release a new version that does not change the binary API, 2928# increment Revision. 2929# 2930# If we release a new version that changes the binary API, but does 2931# not break programs compiled against the old binary API, increment 2932# Current and Age. Set Revision to 0, since this is the first 2933# implementation of the new API. 2934# 2935# Otherwise, we're changing the binary API and breaking backward 2936# compatibility with old binaries. Increment Current. Set Age to 0, 2937# since we're backward compatible with no previous APIs. Set Revision 2938# to 0 too. 2939 2940 2941 2942 2943 2944cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`" 2945 2946cat >>confdefs.h <<_ACEOF 2947#define CONFCMDLINE "$cmdln" 2948_ACEOF 2949 2950 2951CFLAGS="$CFLAGS" 2952ac_ext=c 2953ac_cpp='$CPP $CPPFLAGS' 2954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2956ac_compiler_gnu=$ac_cv_c_compiler_gnu 2957if test -n "$ac_tool_prefix"; then 2958 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2959set dummy ${ac_tool_prefix}gcc; ac_word=$2 2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2961$as_echo_n "checking for $ac_word... " >&6; } 2962if ${ac_cv_prog_CC+:} false; then : 2963 $as_echo_n "(cached) " >&6 2964else 2965 if test -n "$CC"; then 2966 ac_cv_prog_CC="$CC" # Let the user override the test. 2967else 2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2969for as_dir in $PATH 2970do 2971 IFS=$as_save_IFS 2972 test -z "$as_dir" && as_dir=. 2973 for ac_exec_ext in '' $ac_executable_extensions; do 2974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2975 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2977 break 2 2978 fi 2979done 2980 done 2981IFS=$as_save_IFS 2982 2983fi 2984fi 2985CC=$ac_cv_prog_CC 2986if test -n "$CC"; then 2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2988$as_echo "$CC" >&6; } 2989else 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2991$as_echo "no" >&6; } 2992fi 2993 2994 2995fi 2996if test -z "$ac_cv_prog_CC"; then 2997 ac_ct_CC=$CC 2998 # Extract the first word of "gcc", so it can be a program name with args. 2999set dummy gcc; ac_word=$2 3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3001$as_echo_n "checking for $ac_word... " >&6; } 3002if ${ac_cv_prog_ac_ct_CC+:} false; then : 3003 $as_echo_n "(cached) " >&6 3004else 3005 if test -n "$ac_ct_CC"; then 3006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3007else 3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3009for as_dir in $PATH 3010do 3011 IFS=$as_save_IFS 3012 test -z "$as_dir" && as_dir=. 3013 for ac_exec_ext in '' $ac_executable_extensions; do 3014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3015 ac_cv_prog_ac_ct_CC="gcc" 3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3017 break 2 3018 fi 3019done 3020 done 3021IFS=$as_save_IFS 3022 3023fi 3024fi 3025ac_ct_CC=$ac_cv_prog_ac_ct_CC 3026if test -n "$ac_ct_CC"; then 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3028$as_echo "$ac_ct_CC" >&6; } 3029else 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3031$as_echo "no" >&6; } 3032fi 3033 3034 if test "x$ac_ct_CC" = x; then 3035 CC="" 3036 else 3037 case $cross_compiling:$ac_tool_warned in 3038yes:) 3039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3041ac_tool_warned=yes ;; 3042esac 3043 CC=$ac_ct_CC 3044 fi 3045else 3046 CC="$ac_cv_prog_CC" 3047fi 3048 3049if test -z "$CC"; then 3050 if test -n "$ac_tool_prefix"; then 3051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3052set dummy ${ac_tool_prefix}cc; ac_word=$2 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3054$as_echo_n "checking for $ac_word... " >&6; } 3055if ${ac_cv_prog_CC+:} false; then : 3056 $as_echo_n "(cached) " >&6 3057else 3058 if test -n "$CC"; then 3059 ac_cv_prog_CC="$CC" # Let the user override the test. 3060else 3061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3062for as_dir in $PATH 3063do 3064 IFS=$as_save_IFS 3065 test -z "$as_dir" && as_dir=. 3066 for ac_exec_ext in '' $ac_executable_extensions; do 3067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3068 ac_cv_prog_CC="${ac_tool_prefix}cc" 3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3070 break 2 3071 fi 3072done 3073 done 3074IFS=$as_save_IFS 3075 3076fi 3077fi 3078CC=$ac_cv_prog_CC 3079if test -n "$CC"; then 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3081$as_echo "$CC" >&6; } 3082else 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3084$as_echo "no" >&6; } 3085fi 3086 3087 3088 fi 3089fi 3090if test -z "$CC"; then 3091 # Extract the first word of "cc", so it can be a program name with args. 3092set dummy cc; ac_word=$2 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3094$as_echo_n "checking for $ac_word... " >&6; } 3095if ${ac_cv_prog_CC+:} false; then : 3096 $as_echo_n "(cached) " >&6 3097else 3098 if test -n "$CC"; then 3099 ac_cv_prog_CC="$CC" # Let the user override the test. 3100else 3101 ac_prog_rejected=no 3102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3103for as_dir in $PATH 3104do 3105 IFS=$as_save_IFS 3106 test -z "$as_dir" && as_dir=. 3107 for ac_exec_ext in '' $ac_executable_extensions; do 3108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3109 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3110 ac_prog_rejected=yes 3111 continue 3112 fi 3113 ac_cv_prog_CC="cc" 3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3115 break 2 3116 fi 3117done 3118 done 3119IFS=$as_save_IFS 3120 3121if test $ac_prog_rejected = yes; then 3122 # We found a bogon in the path, so make sure we never use it. 3123 set dummy $ac_cv_prog_CC 3124 shift 3125 if test $# != 0; then 3126 # We chose a different compiler from the bogus one. 3127 # However, it has the same basename, so the bogon will be chosen 3128 # first if we set CC to just the basename; use the full file name. 3129 shift 3130 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3131 fi 3132fi 3133fi 3134fi 3135CC=$ac_cv_prog_CC 3136if test -n "$CC"; then 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3138$as_echo "$CC" >&6; } 3139else 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3141$as_echo "no" >&6; } 3142fi 3143 3144 3145fi 3146if test -z "$CC"; then 3147 if test -n "$ac_tool_prefix"; then 3148 for ac_prog in cl.exe 3149 do 3150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3151set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3153$as_echo_n "checking for $ac_word... " >&6; } 3154if ${ac_cv_prog_CC+:} false; then : 3155 $as_echo_n "(cached) " >&6 3156else 3157 if test -n "$CC"; then 3158 ac_cv_prog_CC="$CC" # Let the user override the test. 3159else 3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3161for as_dir in $PATH 3162do 3163 IFS=$as_save_IFS 3164 test -z "$as_dir" && as_dir=. 3165 for ac_exec_ext in '' $ac_executable_extensions; do 3166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3167 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3169 break 2 3170 fi 3171done 3172 done 3173IFS=$as_save_IFS 3174 3175fi 3176fi 3177CC=$ac_cv_prog_CC 3178if test -n "$CC"; then 3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3180$as_echo "$CC" >&6; } 3181else 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3183$as_echo "no" >&6; } 3184fi 3185 3186 3187 test -n "$CC" && break 3188 done 3189fi 3190if test -z "$CC"; then 3191 ac_ct_CC=$CC 3192 for ac_prog in cl.exe 3193do 3194 # Extract the first word of "$ac_prog", so it can be a program name with args. 3195set dummy $ac_prog; ac_word=$2 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3197$as_echo_n "checking for $ac_word... " >&6; } 3198if ${ac_cv_prog_ac_ct_CC+:} false; then : 3199 $as_echo_n "(cached) " >&6 3200else 3201 if test -n "$ac_ct_CC"; then 3202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3203else 3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3205for as_dir in $PATH 3206do 3207 IFS=$as_save_IFS 3208 test -z "$as_dir" && as_dir=. 3209 for ac_exec_ext in '' $ac_executable_extensions; do 3210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3211 ac_cv_prog_ac_ct_CC="$ac_prog" 3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3213 break 2 3214 fi 3215done 3216 done 3217IFS=$as_save_IFS 3218 3219fi 3220fi 3221ac_ct_CC=$ac_cv_prog_ac_ct_CC 3222if test -n "$ac_ct_CC"; then 3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3224$as_echo "$ac_ct_CC" >&6; } 3225else 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3227$as_echo "no" >&6; } 3228fi 3229 3230 3231 test -n "$ac_ct_CC" && break 3232done 3233 3234 if test "x$ac_ct_CC" = x; then 3235 CC="" 3236 else 3237 case $cross_compiling:$ac_tool_warned in 3238yes:) 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3241ac_tool_warned=yes ;; 3242esac 3243 CC=$ac_ct_CC 3244 fi 3245fi 3246 3247fi 3248 3249 3250test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3252as_fn_error $? "no acceptable C compiler found in \$PATH 3253See \`config.log' for more details" "$LINENO" 5; } 3254 3255# Provide some information about the compiler. 3256$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3257set X $ac_compile 3258ac_compiler=$2 3259for ac_option in --version -v -V -qversion; do 3260 { { ac_try="$ac_compiler $ac_option >&5" 3261case "(($ac_try" in 3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3263 *) ac_try_echo=$ac_try;; 3264esac 3265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3266$as_echo "$ac_try_echo"; } >&5 3267 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3268 ac_status=$? 3269 if test -s conftest.err; then 3270 sed '10a\ 3271... rest of stderr output deleted ... 3272 10q' conftest.err >conftest.er1 3273 cat conftest.er1 >&5 3274 fi 3275 rm -f conftest.er1 conftest.err 3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3277 test $ac_status = 0; } 3278done 3279 3280cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3281/* end confdefs.h. */ 3282 3283int 3284main () 3285{ 3286 3287 ; 3288 return 0; 3289} 3290_ACEOF 3291ac_clean_files_save=$ac_clean_files 3292ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3293# Try to create an executable without -o first, disregard a.out. 3294# It will help us diagnose broken compilers, and finding out an intuition 3295# of exeext. 3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3297$as_echo_n "checking whether the C compiler works... " >&6; } 3298ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3299 3300# The possible output files: 3301ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3302 3303ac_rmfiles= 3304for ac_file in $ac_files 3305do 3306 case $ac_file in 3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3308 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3309 esac 3310done 3311rm -f $ac_rmfiles 3312 3313if { { ac_try="$ac_link_default" 3314case "(($ac_try" in 3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3316 *) ac_try_echo=$ac_try;; 3317esac 3318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3319$as_echo "$ac_try_echo"; } >&5 3320 (eval "$ac_link_default") 2>&5 3321 ac_status=$? 3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3323 test $ac_status = 0; }; then : 3324 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3325# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3326# in a Makefile. We should not override ac_cv_exeext if it was cached, 3327# so that the user can short-circuit this test for compilers unknown to 3328# Autoconf. 3329for ac_file in $ac_files '' 3330do 3331 test -f "$ac_file" || continue 3332 case $ac_file in 3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3334 ;; 3335 [ab].out ) 3336 # We found the default executable, but exeext='' is most 3337 # certainly right. 3338 break;; 3339 *.* ) 3340 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3341 then :; else 3342 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3343 fi 3344 # We set ac_cv_exeext here because the later test for it is not 3345 # safe: cross compilers may not add the suffix if given an `-o' 3346 # argument, so we may need to know it at that point already. 3347 # Even if this section looks crufty: it has the advantage of 3348 # actually working. 3349 break;; 3350 * ) 3351 break;; 3352 esac 3353done 3354test "$ac_cv_exeext" = no && ac_cv_exeext= 3355 3356else 3357 ac_file='' 3358fi 3359if test -z "$ac_file"; then : 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3361$as_echo "no" >&6; } 3362$as_echo "$as_me: failed program was:" >&5 3363sed 's/^/| /' conftest.$ac_ext >&5 3364 3365{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3367as_fn_error 77 "C compiler cannot create executables 3368See \`config.log' for more details" "$LINENO" 5; } 3369else 3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3371$as_echo "yes" >&6; } 3372fi 3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3374$as_echo_n "checking for C compiler default output file name... " >&6; } 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3376$as_echo "$ac_file" >&6; } 3377ac_exeext=$ac_cv_exeext 3378 3379rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3380ac_clean_files=$ac_clean_files_save 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3382$as_echo_n "checking for suffix of executables... " >&6; } 3383if { { ac_try="$ac_link" 3384case "(($ac_try" in 3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3386 *) ac_try_echo=$ac_try;; 3387esac 3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3389$as_echo "$ac_try_echo"; } >&5 3390 (eval "$ac_link") 2>&5 3391 ac_status=$? 3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3393 test $ac_status = 0; }; then : 3394 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3395# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3396# work properly (i.e., refer to `conftest.exe'), while it won't with 3397# `rm'. 3398for ac_file in conftest.exe conftest conftest.*; do 3399 test -f "$ac_file" || continue 3400 case $ac_file in 3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3402 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3403 break;; 3404 * ) break;; 3405 esac 3406done 3407else 3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3410as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3411See \`config.log' for more details" "$LINENO" 5; } 3412fi 3413rm -f conftest conftest$ac_cv_exeext 3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3415$as_echo "$ac_cv_exeext" >&6; } 3416 3417rm -f conftest.$ac_ext 3418EXEEXT=$ac_cv_exeext 3419ac_exeext=$EXEEXT 3420cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3421/* end confdefs.h. */ 3422#include <stdio.h> 3423int 3424main () 3425{ 3426FILE *f = fopen ("conftest.out", "w"); 3427 return ferror (f) || fclose (f) != 0; 3428 3429 ; 3430 return 0; 3431} 3432_ACEOF 3433ac_clean_files="$ac_clean_files conftest.out" 3434# Check that the compiler produces executables we can run. If not, either 3435# the compiler is broken, or we cross compile. 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3437$as_echo_n "checking whether we are cross compiling... " >&6; } 3438if test "$cross_compiling" != yes; then 3439 { { ac_try="$ac_link" 3440case "(($ac_try" in 3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3442 *) ac_try_echo=$ac_try;; 3443esac 3444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3445$as_echo "$ac_try_echo"; } >&5 3446 (eval "$ac_link") 2>&5 3447 ac_status=$? 3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3449 test $ac_status = 0; } 3450 if { ac_try='./conftest$ac_cv_exeext' 3451 { { case "(($ac_try" in 3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3453 *) ac_try_echo=$ac_try;; 3454esac 3455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3456$as_echo "$ac_try_echo"; } >&5 3457 (eval "$ac_try") 2>&5 3458 ac_status=$? 3459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3460 test $ac_status = 0; }; }; then 3461 cross_compiling=no 3462 else 3463 if test "$cross_compiling" = maybe; then 3464 cross_compiling=yes 3465 else 3466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3468as_fn_error $? "cannot run C compiled programs. 3469If you meant to cross compile, use \`--host'. 3470See \`config.log' for more details" "$LINENO" 5; } 3471 fi 3472 fi 3473fi 3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3475$as_echo "$cross_compiling" >&6; } 3476 3477rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3478ac_clean_files=$ac_clean_files_save 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3480$as_echo_n "checking for suffix of object files... " >&6; } 3481if ${ac_cv_objext+:} false; then : 3482 $as_echo_n "(cached) " >&6 3483else 3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3485/* end confdefs.h. */ 3486 3487int 3488main () 3489{ 3490 3491 ; 3492 return 0; 3493} 3494_ACEOF 3495rm -f conftest.o conftest.obj 3496if { { ac_try="$ac_compile" 3497case "(($ac_try" in 3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3499 *) ac_try_echo=$ac_try;; 3500esac 3501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3502$as_echo "$ac_try_echo"; } >&5 3503 (eval "$ac_compile") 2>&5 3504 ac_status=$? 3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3506 test $ac_status = 0; }; then : 3507 for ac_file in conftest.o conftest.obj conftest.*; do 3508 test -f "$ac_file" || continue; 3509 case $ac_file in 3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3512 break;; 3513 esac 3514done 3515else 3516 $as_echo "$as_me: failed program was:" >&5 3517sed 's/^/| /' conftest.$ac_ext >&5 3518 3519{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3521as_fn_error $? "cannot compute suffix of object files: cannot compile 3522See \`config.log' for more details" "$LINENO" 5; } 3523fi 3524rm -f conftest.$ac_cv_objext conftest.$ac_ext 3525fi 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3527$as_echo "$ac_cv_objext" >&6; } 3528OBJEXT=$ac_cv_objext 3529ac_objext=$OBJEXT 3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3531$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3532if ${ac_cv_c_compiler_gnu+:} false; then : 3533 $as_echo_n "(cached) " >&6 3534else 3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3536/* end confdefs.h. */ 3537 3538int 3539main () 3540{ 3541#ifndef __GNUC__ 3542 choke me 3543#endif 3544 3545 ; 3546 return 0; 3547} 3548_ACEOF 3549if ac_fn_c_try_compile "$LINENO"; then : 3550 ac_compiler_gnu=yes 3551else 3552 ac_compiler_gnu=no 3553fi 3554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3555ac_cv_c_compiler_gnu=$ac_compiler_gnu 3556 3557fi 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3559$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3560if test $ac_compiler_gnu = yes; then 3561 GCC=yes 3562else 3563 GCC= 3564fi 3565ac_test_CFLAGS=${CFLAGS+set} 3566ac_save_CFLAGS=$CFLAGS 3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3568$as_echo_n "checking whether $CC accepts -g... " >&6; } 3569if ${ac_cv_prog_cc_g+:} false; then : 3570 $as_echo_n "(cached) " >&6 3571else 3572 ac_save_c_werror_flag=$ac_c_werror_flag 3573 ac_c_werror_flag=yes 3574 ac_cv_prog_cc_g=no 3575 CFLAGS="-g" 3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3577/* end confdefs.h. */ 3578 3579int 3580main () 3581{ 3582 3583 ; 3584 return 0; 3585} 3586_ACEOF 3587if ac_fn_c_try_compile "$LINENO"; then : 3588 ac_cv_prog_cc_g=yes 3589else 3590 CFLAGS="" 3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3592/* end confdefs.h. */ 3593 3594int 3595main () 3596{ 3597 3598 ; 3599 return 0; 3600} 3601_ACEOF 3602if ac_fn_c_try_compile "$LINENO"; then : 3603 3604else 3605 ac_c_werror_flag=$ac_save_c_werror_flag 3606 CFLAGS="-g" 3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3608/* end confdefs.h. */ 3609 3610int 3611main () 3612{ 3613 3614 ; 3615 return 0; 3616} 3617_ACEOF 3618if ac_fn_c_try_compile "$LINENO"; then : 3619 ac_cv_prog_cc_g=yes 3620fi 3621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3622fi 3623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3624fi 3625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3626 ac_c_werror_flag=$ac_save_c_werror_flag 3627fi 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3629$as_echo "$ac_cv_prog_cc_g" >&6; } 3630if test "$ac_test_CFLAGS" = set; then 3631 CFLAGS=$ac_save_CFLAGS 3632elif test $ac_cv_prog_cc_g = yes; then 3633 if test "$GCC" = yes; then 3634 CFLAGS="-g -O2" 3635 else 3636 CFLAGS="-g" 3637 fi 3638else 3639 if test "$GCC" = yes; then 3640 CFLAGS="-O2" 3641 else 3642 CFLAGS= 3643 fi 3644fi 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3646$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3647if ${ac_cv_prog_cc_c89+:} false; then : 3648 $as_echo_n "(cached) " >&6 3649else 3650 ac_cv_prog_cc_c89=no 3651ac_save_CC=$CC 3652cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3653/* end confdefs.h. */ 3654#include <stdarg.h> 3655#include <stdio.h> 3656struct stat; 3657/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3658struct buf { int x; }; 3659FILE * (*rcsopen) (struct buf *, struct stat *, int); 3660static char *e (p, i) 3661 char **p; 3662 int i; 3663{ 3664 return p[i]; 3665} 3666static char *f (char * (*g) (char **, int), char **p, ...) 3667{ 3668 char *s; 3669 va_list v; 3670 va_start (v,p); 3671 s = g (p, va_arg (v,int)); 3672 va_end (v); 3673 return s; 3674} 3675 3676/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3677 function prototypes and stuff, but not '\xHH' hex character constants. 3678 These don't provoke an error unfortunately, instead are silently treated 3679 as 'x'. The following induces an error, until -std is added to get 3680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3681 array size at least. It's necessary to write '\x00'==0 to get something 3682 that's true only with -std. */ 3683int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3684 3685/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3686 inside strings and character constants. */ 3687#define FOO(x) 'x' 3688int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3689 3690int test (int i, double x); 3691struct s1 {int (*f) (int a);}; 3692struct s2 {int (*f) (double a);}; 3693int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3694int argc; 3695char **argv; 3696int 3697main () 3698{ 3699return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3700 ; 3701 return 0; 3702} 3703_ACEOF 3704for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3706do 3707 CC="$ac_save_CC $ac_arg" 3708 if ac_fn_c_try_compile "$LINENO"; then : 3709 ac_cv_prog_cc_c89=$ac_arg 3710fi 3711rm -f core conftest.err conftest.$ac_objext 3712 test "x$ac_cv_prog_cc_c89" != "xno" && break 3713done 3714rm -f conftest.$ac_ext 3715CC=$ac_save_CC 3716 3717fi 3718# AC_CACHE_VAL 3719case "x$ac_cv_prog_cc_c89" in 3720 x) 3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3722$as_echo "none needed" >&6; } ;; 3723 xno) 3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3725$as_echo "unsupported" >&6; } ;; 3726 *) 3727 CC="$CC $ac_cv_prog_cc_c89" 3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3729$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3730esac 3731if test "x$ac_cv_prog_cc_c89" != xno; then : 3732 3733fi 3734 3735ac_ext=c 3736ac_cpp='$CPP $CPPFLAGS' 3737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3739ac_compiler_gnu=$ac_cv_c_compiler_gnu 3740 3741 3742ac_ext=c 3743ac_cpp='$CPP $CPPFLAGS' 3744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3746ac_compiler_gnu=$ac_cv_c_compiler_gnu 3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3748$as_echo_n "checking how to run the C preprocessor... " >&6; } 3749# On Suns, sometimes $CPP names a directory. 3750if test -n "$CPP" && test -d "$CPP"; then 3751 CPP= 3752fi 3753if test -z "$CPP"; then 3754 if ${ac_cv_prog_CPP+:} false; then : 3755 $as_echo_n "(cached) " >&6 3756else 3757 # Double quotes because CPP needs to be expanded 3758 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3759 do 3760 ac_preproc_ok=false 3761for ac_c_preproc_warn_flag in '' yes 3762do 3763 # Use a header file that comes with gcc, so configuring glibc 3764 # with a fresh cross-compiler works. 3765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3766 # <limits.h> exists even on freestanding compilers. 3767 # On the NeXT, cc -E runs the code through the compiler's parser, 3768 # not just through cpp. "Syntax error" is here to catch this case. 3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3770/* end confdefs.h. */ 3771#ifdef __STDC__ 3772# include <limits.h> 3773#else 3774# include <assert.h> 3775#endif 3776 Syntax error 3777_ACEOF 3778if ac_fn_c_try_cpp "$LINENO"; then : 3779 3780else 3781 # Broken: fails on valid input. 3782continue 3783fi 3784rm -f conftest.err conftest.i conftest.$ac_ext 3785 3786 # OK, works on sane cases. Now check whether nonexistent headers 3787 # can be detected and how. 3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3789/* end confdefs.h. */ 3790#include <ac_nonexistent.h> 3791_ACEOF 3792if ac_fn_c_try_cpp "$LINENO"; then : 3793 # Broken: success on invalid input. 3794continue 3795else 3796 # Passes both tests. 3797ac_preproc_ok=: 3798break 3799fi 3800rm -f conftest.err conftest.i conftest.$ac_ext 3801 3802done 3803# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3804rm -f conftest.i conftest.err conftest.$ac_ext 3805if $ac_preproc_ok; then : 3806 break 3807fi 3808 3809 done 3810 ac_cv_prog_CPP=$CPP 3811 3812fi 3813 CPP=$ac_cv_prog_CPP 3814else 3815 ac_cv_prog_CPP=$CPP 3816fi 3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3818$as_echo "$CPP" >&6; } 3819ac_preproc_ok=false 3820for ac_c_preproc_warn_flag in '' yes 3821do 3822 # Use a header file that comes with gcc, so configuring glibc 3823 # with a fresh cross-compiler works. 3824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3825 # <limits.h> exists even on freestanding compilers. 3826 # On the NeXT, cc -E runs the code through the compiler's parser, 3827 # not just through cpp. "Syntax error" is here to catch this case. 3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3829/* end confdefs.h. */ 3830#ifdef __STDC__ 3831# include <limits.h> 3832#else 3833# include <assert.h> 3834#endif 3835 Syntax error 3836_ACEOF 3837if ac_fn_c_try_cpp "$LINENO"; then : 3838 3839else 3840 # Broken: fails on valid input. 3841continue 3842fi 3843rm -f conftest.err conftest.i conftest.$ac_ext 3844 3845 # OK, works on sane cases. Now check whether nonexistent headers 3846 # can be detected and how. 3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3848/* end confdefs.h. */ 3849#include <ac_nonexistent.h> 3850_ACEOF 3851if ac_fn_c_try_cpp "$LINENO"; then : 3852 # Broken: success on invalid input. 3853continue 3854else 3855 # Passes both tests. 3856ac_preproc_ok=: 3857break 3858fi 3859rm -f conftest.err conftest.i conftest.$ac_ext 3860 3861done 3862# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3863rm -f conftest.i conftest.err conftest.$ac_ext 3864if $ac_preproc_ok; then : 3865 3866else 3867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3869as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3870See \`config.log' for more details" "$LINENO" 5; } 3871fi 3872 3873ac_ext=c 3874ac_cpp='$CPP $CPPFLAGS' 3875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3877ac_compiler_gnu=$ac_cv_c_compiler_gnu 3878 3879 3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3881$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3882if ${ac_cv_path_GREP+:} false; then : 3883 $as_echo_n "(cached) " >&6 3884else 3885 if test -z "$GREP"; then 3886 ac_path_GREP_found=false 3887 # Loop through the user's path and test for each of PROGNAME-LIST 3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3889for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3890do 3891 IFS=$as_save_IFS 3892 test -z "$as_dir" && as_dir=. 3893 for ac_prog in grep ggrep; do 3894 for ac_exec_ext in '' $ac_executable_extensions; do 3895 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3896 as_fn_executable_p "$ac_path_GREP" || continue 3897# Check for GNU ac_path_GREP and select it if it is found. 3898 # Check for GNU $ac_path_GREP 3899case `"$ac_path_GREP" --version 2>&1` in 3900*GNU*) 3901 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3902*) 3903 ac_count=0 3904 $as_echo_n 0123456789 >"conftest.in" 3905 while : 3906 do 3907 cat "conftest.in" "conftest.in" >"conftest.tmp" 3908 mv "conftest.tmp" "conftest.in" 3909 cp "conftest.in" "conftest.nl" 3910 $as_echo 'GREP' >> "conftest.nl" 3911 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3913 as_fn_arith $ac_count + 1 && ac_count=$as_val 3914 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3915 # Best one so far, save it but keep looking for a better one 3916 ac_cv_path_GREP="$ac_path_GREP" 3917 ac_path_GREP_max=$ac_count 3918 fi 3919 # 10*(2^10) chars as input seems more than enough 3920 test $ac_count -gt 10 && break 3921 done 3922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3923esac 3924 3925 $ac_path_GREP_found && break 3 3926 done 3927 done 3928 done 3929IFS=$as_save_IFS 3930 if test -z "$ac_cv_path_GREP"; then 3931 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3932 fi 3933else 3934 ac_cv_path_GREP=$GREP 3935fi 3936 3937fi 3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3939$as_echo "$ac_cv_path_GREP" >&6; } 3940 GREP="$ac_cv_path_GREP" 3941 3942 3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3944$as_echo_n "checking for egrep... " >&6; } 3945if ${ac_cv_path_EGREP+:} false; then : 3946 $as_echo_n "(cached) " >&6 3947else 3948 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3949 then ac_cv_path_EGREP="$GREP -E" 3950 else 3951 if test -z "$EGREP"; then 3952 ac_path_EGREP_found=false 3953 # Loop through the user's path and test for each of PROGNAME-LIST 3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3955for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3956do 3957 IFS=$as_save_IFS 3958 test -z "$as_dir" && as_dir=. 3959 for ac_prog in egrep; do 3960 for ac_exec_ext in '' $ac_executable_extensions; do 3961 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3962 as_fn_executable_p "$ac_path_EGREP" || continue 3963# Check for GNU ac_path_EGREP and select it if it is found. 3964 # Check for GNU $ac_path_EGREP 3965case `"$ac_path_EGREP" --version 2>&1` in 3966*GNU*) 3967 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3968*) 3969 ac_count=0 3970 $as_echo_n 0123456789 >"conftest.in" 3971 while : 3972 do 3973 cat "conftest.in" "conftest.in" >"conftest.tmp" 3974 mv "conftest.tmp" "conftest.in" 3975 cp "conftest.in" "conftest.nl" 3976 $as_echo 'EGREP' >> "conftest.nl" 3977 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3979 as_fn_arith $ac_count + 1 && ac_count=$as_val 3980 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3981 # Best one so far, save it but keep looking for a better one 3982 ac_cv_path_EGREP="$ac_path_EGREP" 3983 ac_path_EGREP_max=$ac_count 3984 fi 3985 # 10*(2^10) chars as input seems more than enough 3986 test $ac_count -gt 10 && break 3987 done 3988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3989esac 3990 3991 $ac_path_EGREP_found && break 3 3992 done 3993 done 3994 done 3995IFS=$as_save_IFS 3996 if test -z "$ac_cv_path_EGREP"; then 3997 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3998 fi 3999else 4000 ac_cv_path_EGREP=$EGREP 4001fi 4002 4003 fi 4004fi 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4006$as_echo "$ac_cv_path_EGREP" >&6; } 4007 EGREP="$ac_cv_path_EGREP" 4008 4009 4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4011$as_echo_n "checking for ANSI C header files... " >&6; } 4012if ${ac_cv_header_stdc+:} false; then : 4013 $as_echo_n "(cached) " >&6 4014else 4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4016/* end confdefs.h. */ 4017#include <stdlib.h> 4018#include <stdarg.h> 4019#include <string.h> 4020#include <float.h> 4021 4022int 4023main () 4024{ 4025 4026 ; 4027 return 0; 4028} 4029_ACEOF 4030if ac_fn_c_try_compile "$LINENO"; then : 4031 ac_cv_header_stdc=yes 4032else 4033 ac_cv_header_stdc=no 4034fi 4035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4036 4037if test $ac_cv_header_stdc = yes; then 4038 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4040/* end confdefs.h. */ 4041#include <string.h> 4042 4043_ACEOF 4044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4045 $EGREP "memchr" >/dev/null 2>&1; then : 4046 4047else 4048 ac_cv_header_stdc=no 4049fi 4050rm -f conftest* 4051 4052fi 4053 4054if test $ac_cv_header_stdc = yes; then 4055 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4057/* end confdefs.h. */ 4058#include <stdlib.h> 4059 4060_ACEOF 4061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4062 $EGREP "free" >/dev/null 2>&1; then : 4063 4064else 4065 ac_cv_header_stdc=no 4066fi 4067rm -f conftest* 4068 4069fi 4070 4071if test $ac_cv_header_stdc = yes; then 4072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4073 if test "$cross_compiling" = yes; then : 4074 : 4075else 4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4077/* end confdefs.h. */ 4078#include <ctype.h> 4079#include <stdlib.h> 4080#if ((' ' & 0x0FF) == 0x020) 4081# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4082# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4083#else 4084# define ISLOWER(c) \ 4085 (('a' <= (c) && (c) <= 'i') \ 4086 || ('j' <= (c) && (c) <= 'r') \ 4087 || ('s' <= (c) && (c) <= 'z')) 4088# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4089#endif 4090 4091#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4092int 4093main () 4094{ 4095 int i; 4096 for (i = 0; i < 256; i++) 4097 if (XOR (islower (i), ISLOWER (i)) 4098 || toupper (i) != TOUPPER (i)) 4099 return 2; 4100 return 0; 4101} 4102_ACEOF 4103if ac_fn_c_try_run "$LINENO"; then : 4104 4105else 4106 ac_cv_header_stdc=no 4107fi 4108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4109 conftest.$ac_objext conftest.beam conftest.$ac_ext 4110fi 4111 4112fi 4113fi 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4115$as_echo "$ac_cv_header_stdc" >&6; } 4116if test $ac_cv_header_stdc = yes; then 4117 4118$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4119 4120fi 4121 4122# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4123for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4124 inttypes.h stdint.h unistd.h 4125do : 4126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4127ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4128" 4129if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4130 cat >>confdefs.h <<_ACEOF 4131#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4132_ACEOF 4133 4134fi 4135 4136done 4137 4138 4139 4140 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4141if test "x$ac_cv_header_minix_config_h" = xyes; then : 4142 MINIX=yes 4143else 4144 MINIX= 4145fi 4146 4147 4148 if test "$MINIX" = yes; then 4149 4150$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4151 4152 4153$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4154 4155 4156$as_echo "#define _MINIX 1" >>confdefs.h 4157 4158 fi 4159 4160 4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4162$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4163if ${ac_cv_safe_to_define___extensions__+:} false; then : 4164 $as_echo_n "(cached) " >&6 4165else 4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4167/* end confdefs.h. */ 4168 4169# define __EXTENSIONS__ 1 4170 $ac_includes_default 4171int 4172main () 4173{ 4174 4175 ; 4176 return 0; 4177} 4178_ACEOF 4179if ac_fn_c_try_compile "$LINENO"; then : 4180 ac_cv_safe_to_define___extensions__=yes 4181else 4182 ac_cv_safe_to_define___extensions__=no 4183fi 4184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4185fi 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4187$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4188 test $ac_cv_safe_to_define___extensions__ = yes && 4189 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4190 4191 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4192 4193 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4194 4195 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4196 4197 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4198 4199 4200if test "$ac_cv_header_minix_config_h" = "yes"; then 4201 4202$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 4203 4204fi 4205 4206case "$prefix" in 4207 NONE) 4208 prefix="/usr/local" 4209 ;; 4210esac 4211case "$exec_prefix" in 4212 NONE) 4213 exec_prefix="$prefix" 4214 ;; 4215esac 4216 4217# are we on MinGW? 4218if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes" 4219else 4220 if echo $host | grep mingw >/dev/null; then on_mingw="yes" 4221 else on_mingw="no"; fi 4222fi 4223 4224# 4225# Determine configuration file 4226# the eval is to evaluate shell expansion twice 4227UNBOUND_SBIN_DIR=`eval echo "${sbindir}"` 4228 4229UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"` 4230 4231UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"` 4232 4233if test $on_mingw = "no"; then 4234 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"` 4235else 4236 ub_conf_file="C:\\Program Files\\Unbound\\service.conf" 4237fi 4238 4239# Check whether --with-conf_file was given. 4240if test "${with_conf_file+set}" = set; then : 4241 withval=$with_conf_file; ub_conf_file="$withval" 4242fi 4243 4244 4245hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`" 4246 4247 4248cat >>confdefs.h <<_ACEOF 4249#define CONFIGFILE "$hdr_config" 4250_ACEOF 4251 4252ub_conf_dir=`$as_dirname -- "$ub_conf_file" || 4253$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4254 X"$ub_conf_file" : 'X\(//\)[^/]' \| \ 4255 X"$ub_conf_file" : 'X\(//\)$' \| \ 4256 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null || 4257$as_echo X"$ub_conf_file" | 4258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4259 s//\1/ 4260 q 4261 } 4262 /^X\(\/\/\)[^/].*/{ 4263 s//\1/ 4264 q 4265 } 4266 /^X\(\/\/\)$/{ 4267 s//\1/ 4268 q 4269 } 4270 /^X\(\/\).*/{ 4271 s//\1/ 4272 q 4273 } 4274 s/.*/./; q'` 4275 4276 4277# Determine run, chroot directory and pidfile locations 4278 4279# Check whether --with-run-dir was given. 4280if test "${with_run_dir+set}" = set; then : 4281 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval" 4282else 4283 if test $on_mingw = no; then 4284 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"` 4285else 4286 UNBOUND_RUN_DIR="" 4287fi 4288 4289fi 4290 4291 4292hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4293 4294 4295cat >>confdefs.h <<_ACEOF 4296#define RUN_DIR "$hdr_run" 4297_ACEOF 4298 4299 4300 4301# Check whether --with-chroot-dir was given. 4302if test "${with_chroot_dir+set}" = set; then : 4303 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval" 4304else 4305 if test $on_mingw = no; then 4306 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR" 4307else 4308 UNBOUND_CHROOT_DIR="" 4309fi 4310 4311fi 4312 4313 4314hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4315 4316 4317cat >>confdefs.h <<_ACEOF 4318#define CHROOT_DIR "$hdr_chroot" 4319_ACEOF 4320 4321 4322 4323# Check whether --with-share-dir was given. 4324if test "${with_share_dir+set}" = set; then : 4325 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval" 4326else 4327 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR" 4328fi 4329 4330 4331 4332cat >>confdefs.h <<_ACEOF 4333#define SHARE_DIR "$UNBOUND_SHARE_DIR" 4334_ACEOF 4335 4336 4337 4338# Check whether --with-pidfile was given. 4339if test "${with_pidfile+set}" = set; then : 4340 withval=$with_pidfile; UNBOUND_PIDFILE="$withval" 4341else 4342 if test $on_mingw = no; then 4343 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid" 4344else 4345 UNBOUND_PIDFILE="" 4346fi 4347 4348fi 4349 4350 4351hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4352 4353 4354cat >>confdefs.h <<_ACEOF 4355#define PIDFILE "$hdr_pid" 4356_ACEOF 4357 4358 4359 4360# Check whether --with-rootkey-file was given. 4361if test "${with_rootkey_file+set}" = set; then : 4362 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval" 4363else 4364 if test $on_mingw = no; then 4365 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key" 4366else 4367 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key" 4368fi 4369 4370fi 4371 4372 4373hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4374 4375 4376cat >>confdefs.h <<_ACEOF 4377#define ROOT_ANCHOR_FILE "$hdr_rkey" 4378_ACEOF 4379 4380 4381 4382# Check whether --with-rootcert-file was given. 4383if test "${with_rootcert_file+set}" = set; then : 4384 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval" 4385else 4386 if test $on_mingw = no; then 4387 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem" 4388else 4389 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem" 4390fi 4391 4392fi 4393 4394 4395hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4396 4397 4398cat >>confdefs.h <<_ACEOF 4399#define ROOT_CERT_FILE "$hdr_rpem" 4400_ACEOF 4401 4402 4403 4404# Check whether --with-username was given. 4405if test "${with_username+set}" = set; then : 4406 withval=$with_username; UNBOUND_USERNAME="$withval" 4407else 4408 UNBOUND_USERNAME="unbound" 4409fi 4410 4411 4412 4413cat >>confdefs.h <<_ACEOF 4414#define UB_USERNAME "$UNBOUND_USERNAME" 4415_ACEOF 4416 4417 4418 4419$as_echo "#define WINVER 0x0502" >>confdefs.h 4420 4421wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\).*$/\1,\2,\3,\4/' -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1,\2,\3,0/' ` 4422 4423 4424cat >>confdefs.h <<_ACEOF 4425#define RSRC_PACKAGE_VERSION $wnvs 4426_ACEOF 4427 4428 4429# Checks for typedefs, structures, and compiler characteristics. 4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4431$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4432if ${ac_cv_c_const+:} false; then : 4433 $as_echo_n "(cached) " >&6 4434else 4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4436/* end confdefs.h. */ 4437 4438int 4439main () 4440{ 4441 4442#ifndef __cplusplus 4443 /* Ultrix mips cc rejects this sort of thing. */ 4444 typedef int charset[2]; 4445 const charset cs = { 0, 0 }; 4446 /* SunOS 4.1.1 cc rejects this. */ 4447 char const *const *pcpcc; 4448 char **ppc; 4449 /* NEC SVR4.0.2 mips cc rejects this. */ 4450 struct point {int x, y;}; 4451 static struct point const zero = {0,0}; 4452 /* AIX XL C 1.02.0.0 rejects this. 4453 It does not let you subtract one const X* pointer from another in 4454 an arm of an if-expression whose if-part is not a constant 4455 expression */ 4456 const char *g = "string"; 4457 pcpcc = &g + (g ? g-g : 0); 4458 /* HPUX 7.0 cc rejects these. */ 4459 ++pcpcc; 4460 ppc = (char**) pcpcc; 4461 pcpcc = (char const *const *) ppc; 4462 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4463 char tx; 4464 char *t = &tx; 4465 char const *s = 0 ? (char *) 0 : (char const *) 0; 4466 4467 *t++ = 0; 4468 if (s) return 0; 4469 } 4470 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4471 int x[] = {25, 17}; 4472 const int *foo = &x[0]; 4473 ++foo; 4474 } 4475 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4476 typedef const int *iptr; 4477 iptr p = 0; 4478 ++p; 4479 } 4480 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4481 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4482 struct s { int j; const int *ap[3]; } bx; 4483 struct s *b = &bx; b->j = 5; 4484 } 4485 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4486 const int foo = 10; 4487 if (!foo) return 0; 4488 } 4489 return !cs[0] && !zero.x; 4490#endif 4491 4492 ; 4493 return 0; 4494} 4495_ACEOF 4496if ac_fn_c_try_compile "$LINENO"; then : 4497 ac_cv_c_const=yes 4498else 4499 ac_cv_c_const=no 4500fi 4501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4502fi 4503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4504$as_echo "$ac_cv_c_const" >&6; } 4505if test $ac_cv_c_const = no; then 4506 4507$as_echo "#define const /**/" >>confdefs.h 4508 4509fi 4510 4511ac_ext=c 4512ac_cpp='$CPP $CPPFLAGS' 4513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4515ac_compiler_gnu=$ac_cv_c_compiler_gnu 4516 4517# allow user to override the -g -O2 flags. 4518default_cflags=no 4519if test "x$CFLAGS" = "x" ; then 4520 4521 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4523$as_echo_n "checking whether $CC supports -g... " >&6; } 4524cache=`echo g | sed 'y%.=/+-%___p_%'` 4525if eval \${cv_prog_cc_flag_$cache+:} false; then : 4526 $as_echo_n "(cached) " >&6 4527else 4528 4529echo 'void f(void){}' >conftest.c 4530if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4531eval "cv_prog_cc_flag_$cache=yes" 4532else 4533eval "cv_prog_cc_flag_$cache=no" 4534fi 4535rm -f conftest conftest.o conftest.c 4536 4537fi 4538 4539if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4541$as_echo "yes" >&6; } 4542: 4543CFLAGS="$CFLAGS -g" 4544else 4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4546$as_echo "no" >&6; } 4547: 4548 4549fi 4550 4551 4552 4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4554$as_echo_n "checking whether $CC supports -O2... " >&6; } 4555cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4556if eval \${cv_prog_cc_flag_$cache+:} false; then : 4557 $as_echo_n "(cached) " >&6 4558else 4559 4560echo 'void f(void){}' >conftest.c 4561if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4562eval "cv_prog_cc_flag_$cache=yes" 4563else 4564eval "cv_prog_cc_flag_$cache=no" 4565fi 4566rm -f conftest conftest.o conftest.c 4567 4568fi 4569 4570if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4572$as_echo "yes" >&6; } 4573: 4574CFLAGS="$CFLAGS -O2" 4575else 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4577$as_echo "no" >&6; } 4578: 4579 4580fi 4581 4582default_cflags=yes 4583fi 4584ac_ext=c 4585ac_cpp='$CPP $CPPFLAGS' 4586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4588ac_compiler_gnu=$ac_cv_c_compiler_gnu 4589if test -n "$ac_tool_prefix"; then 4590 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4591set dummy ${ac_tool_prefix}gcc; ac_word=$2 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4593$as_echo_n "checking for $ac_word... " >&6; } 4594if ${ac_cv_prog_CC+:} false; then : 4595 $as_echo_n "(cached) " >&6 4596else 4597 if test -n "$CC"; then 4598 ac_cv_prog_CC="$CC" # Let the user override the test. 4599else 4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4601for as_dir in $PATH 4602do 4603 IFS=$as_save_IFS 4604 test -z "$as_dir" && as_dir=. 4605 for ac_exec_ext in '' $ac_executable_extensions; do 4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4607 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4609 break 2 4610 fi 4611done 4612 done 4613IFS=$as_save_IFS 4614 4615fi 4616fi 4617CC=$ac_cv_prog_CC 4618if test -n "$CC"; then 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4620$as_echo "$CC" >&6; } 4621else 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4623$as_echo "no" >&6; } 4624fi 4625 4626 4627fi 4628if test -z "$ac_cv_prog_CC"; then 4629 ac_ct_CC=$CC 4630 # Extract the first word of "gcc", so it can be a program name with args. 4631set dummy gcc; ac_word=$2 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4633$as_echo_n "checking for $ac_word... " >&6; } 4634if ${ac_cv_prog_ac_ct_CC+:} false; then : 4635 $as_echo_n "(cached) " >&6 4636else 4637 if test -n "$ac_ct_CC"; then 4638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4639else 4640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4641for as_dir in $PATH 4642do 4643 IFS=$as_save_IFS 4644 test -z "$as_dir" && as_dir=. 4645 for ac_exec_ext in '' $ac_executable_extensions; do 4646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4647 ac_cv_prog_ac_ct_CC="gcc" 4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4649 break 2 4650 fi 4651done 4652 done 4653IFS=$as_save_IFS 4654 4655fi 4656fi 4657ac_ct_CC=$ac_cv_prog_ac_ct_CC 4658if test -n "$ac_ct_CC"; then 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4660$as_echo "$ac_ct_CC" >&6; } 4661else 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4663$as_echo "no" >&6; } 4664fi 4665 4666 if test "x$ac_ct_CC" = x; then 4667 CC="" 4668 else 4669 case $cross_compiling:$ac_tool_warned in 4670yes:) 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4673ac_tool_warned=yes ;; 4674esac 4675 CC=$ac_ct_CC 4676 fi 4677else 4678 CC="$ac_cv_prog_CC" 4679fi 4680 4681if test -z "$CC"; then 4682 if test -n "$ac_tool_prefix"; then 4683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4684set dummy ${ac_tool_prefix}cc; ac_word=$2 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4686$as_echo_n "checking for $ac_word... " >&6; } 4687if ${ac_cv_prog_CC+:} false; then : 4688 $as_echo_n "(cached) " >&6 4689else 4690 if test -n "$CC"; then 4691 ac_cv_prog_CC="$CC" # Let the user override the test. 4692else 4693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4694for as_dir in $PATH 4695do 4696 IFS=$as_save_IFS 4697 test -z "$as_dir" && as_dir=. 4698 for ac_exec_ext in '' $ac_executable_extensions; do 4699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4700 ac_cv_prog_CC="${ac_tool_prefix}cc" 4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4702 break 2 4703 fi 4704done 4705 done 4706IFS=$as_save_IFS 4707 4708fi 4709fi 4710CC=$ac_cv_prog_CC 4711if test -n "$CC"; then 4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4713$as_echo "$CC" >&6; } 4714else 4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4716$as_echo "no" >&6; } 4717fi 4718 4719 4720 fi 4721fi 4722if test -z "$CC"; then 4723 # Extract the first word of "cc", so it can be a program name with args. 4724set dummy cc; ac_word=$2 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4726$as_echo_n "checking for $ac_word... " >&6; } 4727if ${ac_cv_prog_CC+:} false; then : 4728 $as_echo_n "(cached) " >&6 4729else 4730 if test -n "$CC"; then 4731 ac_cv_prog_CC="$CC" # Let the user override the test. 4732else 4733 ac_prog_rejected=no 4734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4735for as_dir in $PATH 4736do 4737 IFS=$as_save_IFS 4738 test -z "$as_dir" && as_dir=. 4739 for ac_exec_ext in '' $ac_executable_extensions; do 4740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4741 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4742 ac_prog_rejected=yes 4743 continue 4744 fi 4745 ac_cv_prog_CC="cc" 4746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4747 break 2 4748 fi 4749done 4750 done 4751IFS=$as_save_IFS 4752 4753if test $ac_prog_rejected = yes; then 4754 # We found a bogon in the path, so make sure we never use it. 4755 set dummy $ac_cv_prog_CC 4756 shift 4757 if test $# != 0; then 4758 # We chose a different compiler from the bogus one. 4759 # However, it has the same basename, so the bogon will be chosen 4760 # first if we set CC to just the basename; use the full file name. 4761 shift 4762 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4763 fi 4764fi 4765fi 4766fi 4767CC=$ac_cv_prog_CC 4768if test -n "$CC"; then 4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4770$as_echo "$CC" >&6; } 4771else 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4773$as_echo "no" >&6; } 4774fi 4775 4776 4777fi 4778if test -z "$CC"; then 4779 if test -n "$ac_tool_prefix"; then 4780 for ac_prog in cl.exe 4781 do 4782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4783set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4785$as_echo_n "checking for $ac_word... " >&6; } 4786if ${ac_cv_prog_CC+:} false; then : 4787 $as_echo_n "(cached) " >&6 4788else 4789 if test -n "$CC"; then 4790 ac_cv_prog_CC="$CC" # Let the user override the test. 4791else 4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4793for as_dir in $PATH 4794do 4795 IFS=$as_save_IFS 4796 test -z "$as_dir" && as_dir=. 4797 for ac_exec_ext in '' $ac_executable_extensions; do 4798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4799 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4801 break 2 4802 fi 4803done 4804 done 4805IFS=$as_save_IFS 4806 4807fi 4808fi 4809CC=$ac_cv_prog_CC 4810if test -n "$CC"; then 4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4812$as_echo "$CC" >&6; } 4813else 4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4815$as_echo "no" >&6; } 4816fi 4817 4818 4819 test -n "$CC" && break 4820 done 4821fi 4822if test -z "$CC"; then 4823 ac_ct_CC=$CC 4824 for ac_prog in cl.exe 4825do 4826 # Extract the first word of "$ac_prog", so it can be a program name with args. 4827set dummy $ac_prog; ac_word=$2 4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4829$as_echo_n "checking for $ac_word... " >&6; } 4830if ${ac_cv_prog_ac_ct_CC+:} false; then : 4831 $as_echo_n "(cached) " >&6 4832else 4833 if test -n "$ac_ct_CC"; then 4834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4835else 4836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4837for as_dir in $PATH 4838do 4839 IFS=$as_save_IFS 4840 test -z "$as_dir" && as_dir=. 4841 for ac_exec_ext in '' $ac_executable_extensions; do 4842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4843 ac_cv_prog_ac_ct_CC="$ac_prog" 4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4845 break 2 4846 fi 4847done 4848 done 4849IFS=$as_save_IFS 4850 4851fi 4852fi 4853ac_ct_CC=$ac_cv_prog_ac_ct_CC 4854if test -n "$ac_ct_CC"; then 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4856$as_echo "$ac_ct_CC" >&6; } 4857else 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4859$as_echo "no" >&6; } 4860fi 4861 4862 4863 test -n "$ac_ct_CC" && break 4864done 4865 4866 if test "x$ac_ct_CC" = x; then 4867 CC="" 4868 else 4869 case $cross_compiling:$ac_tool_warned in 4870yes:) 4871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4873ac_tool_warned=yes ;; 4874esac 4875 CC=$ac_ct_CC 4876 fi 4877fi 4878 4879fi 4880 4881 4882test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4884as_fn_error $? "no acceptable C compiler found in \$PATH 4885See \`config.log' for more details" "$LINENO" 5; } 4886 4887# Provide some information about the compiler. 4888$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4889set X $ac_compile 4890ac_compiler=$2 4891for ac_option in --version -v -V -qversion; do 4892 { { ac_try="$ac_compiler $ac_option >&5" 4893case "(($ac_try" in 4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4895 *) ac_try_echo=$ac_try;; 4896esac 4897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4898$as_echo "$ac_try_echo"; } >&5 4899 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4900 ac_status=$? 4901 if test -s conftest.err; then 4902 sed '10a\ 4903... rest of stderr output deleted ... 4904 10q' conftest.err >conftest.er1 4905 cat conftest.er1 >&5 4906 fi 4907 rm -f conftest.er1 conftest.err 4908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4909 test $ac_status = 0; } 4910done 4911 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4913$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4914if ${ac_cv_c_compiler_gnu+:} false; then : 4915 $as_echo_n "(cached) " >&6 4916else 4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4918/* end confdefs.h. */ 4919 4920int 4921main () 4922{ 4923#ifndef __GNUC__ 4924 choke me 4925#endif 4926 4927 ; 4928 return 0; 4929} 4930_ACEOF 4931if ac_fn_c_try_compile "$LINENO"; then : 4932 ac_compiler_gnu=yes 4933else 4934 ac_compiler_gnu=no 4935fi 4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4937ac_cv_c_compiler_gnu=$ac_compiler_gnu 4938 4939fi 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4941$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4942if test $ac_compiler_gnu = yes; then 4943 GCC=yes 4944else 4945 GCC= 4946fi 4947ac_test_CFLAGS=${CFLAGS+set} 4948ac_save_CFLAGS=$CFLAGS 4949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4950$as_echo_n "checking whether $CC accepts -g... " >&6; } 4951if ${ac_cv_prog_cc_g+:} false; then : 4952 $as_echo_n "(cached) " >&6 4953else 4954 ac_save_c_werror_flag=$ac_c_werror_flag 4955 ac_c_werror_flag=yes 4956 ac_cv_prog_cc_g=no 4957 CFLAGS="-g" 4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4959/* end confdefs.h. */ 4960 4961int 4962main () 4963{ 4964 4965 ; 4966 return 0; 4967} 4968_ACEOF 4969if ac_fn_c_try_compile "$LINENO"; then : 4970 ac_cv_prog_cc_g=yes 4971else 4972 CFLAGS="" 4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4974/* end confdefs.h. */ 4975 4976int 4977main () 4978{ 4979 4980 ; 4981 return 0; 4982} 4983_ACEOF 4984if ac_fn_c_try_compile "$LINENO"; then : 4985 4986else 4987 ac_c_werror_flag=$ac_save_c_werror_flag 4988 CFLAGS="-g" 4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4990/* end confdefs.h. */ 4991 4992int 4993main () 4994{ 4995 4996 ; 4997 return 0; 4998} 4999_ACEOF 5000if ac_fn_c_try_compile "$LINENO"; then : 5001 ac_cv_prog_cc_g=yes 5002fi 5003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5004fi 5005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5006fi 5007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5008 ac_c_werror_flag=$ac_save_c_werror_flag 5009fi 5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5011$as_echo "$ac_cv_prog_cc_g" >&6; } 5012if test "$ac_test_CFLAGS" = set; then 5013 CFLAGS=$ac_save_CFLAGS 5014elif test $ac_cv_prog_cc_g = yes; then 5015 if test "$GCC" = yes; then 5016 CFLAGS="-g -O2" 5017 else 5018 CFLAGS="-g" 5019 fi 5020else 5021 if test "$GCC" = yes; then 5022 CFLAGS="-O2" 5023 else 5024 CFLAGS= 5025 fi 5026fi 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5028$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5029if ${ac_cv_prog_cc_c89+:} false; then : 5030 $as_echo_n "(cached) " >&6 5031else 5032 ac_cv_prog_cc_c89=no 5033ac_save_CC=$CC 5034cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5035/* end confdefs.h. */ 5036#include <stdarg.h> 5037#include <stdio.h> 5038struct stat; 5039/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5040struct buf { int x; }; 5041FILE * (*rcsopen) (struct buf *, struct stat *, int); 5042static char *e (p, i) 5043 char **p; 5044 int i; 5045{ 5046 return p[i]; 5047} 5048static char *f (char * (*g) (char **, int), char **p, ...) 5049{ 5050 char *s; 5051 va_list v; 5052 va_start (v,p); 5053 s = g (p, va_arg (v,int)); 5054 va_end (v); 5055 return s; 5056} 5057 5058/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5059 function prototypes and stuff, but not '\xHH' hex character constants. 5060 These don't provoke an error unfortunately, instead are silently treated 5061 as 'x'. The following induces an error, until -std is added to get 5062 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5063 array size at least. It's necessary to write '\x00'==0 to get something 5064 that's true only with -std. */ 5065int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5066 5067/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5068 inside strings and character constants. */ 5069#define FOO(x) 'x' 5070int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5071 5072int test (int i, double x); 5073struct s1 {int (*f) (int a);}; 5074struct s2 {int (*f) (double a);}; 5075int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5076int argc; 5077char **argv; 5078int 5079main () 5080{ 5081return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5082 ; 5083 return 0; 5084} 5085_ACEOF 5086for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5087 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5088do 5089 CC="$ac_save_CC $ac_arg" 5090 if ac_fn_c_try_compile "$LINENO"; then : 5091 ac_cv_prog_cc_c89=$ac_arg 5092fi 5093rm -f core conftest.err conftest.$ac_objext 5094 test "x$ac_cv_prog_cc_c89" != "xno" && break 5095done 5096rm -f conftest.$ac_ext 5097CC=$ac_save_CC 5098 5099fi 5100# AC_CACHE_VAL 5101case "x$ac_cv_prog_cc_c89" in 5102 x) 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5104$as_echo "none needed" >&6; } ;; 5105 xno) 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5107$as_echo "unsupported" >&6; } ;; 5108 *) 5109 CC="$CC $ac_cv_prog_cc_c89" 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5111$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5112esac 5113if test "x$ac_cv_prog_cc_c89" != xno; then : 5114 5115fi 5116 5117ac_ext=c 5118ac_cpp='$CPP $CPPFLAGS' 5119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5121ac_compiler_gnu=$ac_cv_c_compiler_gnu 5122 5123 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 5125$as_echo_n "checking $CC dependency flag... " >&6; } 5126echo 'void f(){}' >conftest.c 5127if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5128 DEPFLAG="-MM" 5129else 5130 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5131 DEPFLAG="-xM1" 5132 else 5133 DEPFLAG="-MM" # dunno do something 5134 fi 5135fi 5136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 5137$as_echo "$DEPFLAG" >&6; } 5138rm -f conftest.c 5139 5140 5141 5142 5143 5144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 5145$as_echo_n "checking whether $CC supports -Werror... " >&6; } 5146cache=`echo Werror | sed 'y%.=/+-%___p_%'` 5147if eval \${cv_prog_cc_flag_$cache+:} false; then : 5148 $as_echo_n "(cached) " >&6 5149else 5150 5151echo 'void f(void){}' >conftest.c 5152if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 5153eval "cv_prog_cc_flag_$cache=yes" 5154else 5155eval "cv_prog_cc_flag_$cache=no" 5156fi 5157rm -f conftest conftest.o conftest.c 5158 5159fi 5160 5161if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5163$as_echo "yes" >&6; } 5164: 5165ERRFLAG="-Werror" 5166else 5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5168$as_echo "no" >&6; } 5169: 5170ERRFLAG="-errwarn" 5171fi 5172 5173 5174 5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5176$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5177cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5178if eval \${cv_prog_cc_flag_$cache+:} false; then : 5179 $as_echo_n "(cached) " >&6 5180else 5181 5182echo 'void f(void){}' >conftest.c 5183if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5184eval "cv_prog_cc_flag_$cache=yes" 5185else 5186eval "cv_prog_cc_flag_$cache=no" 5187fi 5188rm -f conftest conftest.o conftest.c 5189 5190fi 5191 5192if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5194$as_echo "yes" >&6; } 5195: 5196ERRFLAG="$ERRFLAG -Wall" 5197else 5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5199$as_echo "no" >&6; } 5200: 5201ERRFLAG="$ERRFLAG -errfmt" 5202fi 5203 5204 5205 5206 5207 5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 5209$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 5210cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 5211if eval \${cv_prog_cc_flag_$cache+:} false; then : 5212 $as_echo_n "(cached) " >&6 5213else 5214 5215echo 'void f(void){}' >conftest.c 5216if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 5217eval "cv_prog_cc_flag_$cache=yes" 5218else 5219eval "cv_prog_cc_flag_$cache=no" 5220fi 5221rm -f conftest conftest.o conftest.c 5222 5223fi 5224 5225if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5227$as_echo "yes" >&6; } 5228: 5229C99FLAG="-std=c99" 5230else 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5232$as_echo "no" >&6; } 5233: 5234 5235fi 5236 5237 5238 5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 5240$as_echo_n "checking whether $CC supports -xc99... " >&6; } 5241cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 5242if eval \${cv_prog_cc_flag_$cache+:} false; then : 5243 $as_echo_n "(cached) " >&6 5244else 5245 5246echo 'void f(void){}' >conftest.c 5247if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 5248eval "cv_prog_cc_flag_$cache=yes" 5249else 5250eval "cv_prog_cc_flag_$cache=no" 5251fi 5252rm -f conftest conftest.o conftest.c 5253 5254fi 5255 5256if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5258$as_echo "yes" >&6; } 5259: 5260C99FLAG="-xc99" 5261else 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5263$as_echo "no" >&6; } 5264: 5265 5266fi 5267 5268 5269for ac_header in getopt.h time.h 5270do : 5271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5272ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5273" 5274if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5275 cat >>confdefs.h <<_ACEOF 5276#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5277_ACEOF 5278 5279fi 5280 5281done 5282 5283 5284 5285 5286 5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5 5288$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; } 5289cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh` 5290if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5291 $as_echo_n "(cached) " >&6 5292else 5293 5294echo ' 5295#include "confdefs.h" 5296#include <stdlib.h> 5297#include <ctype.h> 5298#include <sys/time.h> 5299#ifdef HAVE_TIME_H 5300#include <time.h> 5301#endif 5302#include <unistd.h> 5303#include <netdb.h> 5304#ifdef HAVE_GETOPT_H 5305#include <getopt.h> 5306#endif 5307 5308int test() { 5309 int a; 5310 char **opts = NULL; 5311 struct timeval tv; 5312 char *t; 5313 time_t time = 0; 5314 char *buf = NULL; 5315 const char* str = NULL; 5316 struct msghdr msg; 5317 msg.msg_control = 0; 5318 t = ctime_r(&time, buf); 5319 tv.tv_usec = 10; 5320 srandom(32); 5321 a = getopt(2, opts, "a"); 5322 a = isascii(32); 5323 str = gai_strerror(0); 5324 if(str && t && tv.tv_usec && msg.msg_control) 5325 a = 0; 5326 return a; 5327} 5328' > conftest.c 5329echo 'void f(){}' >>conftest.c 5330if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5331eval "cv_prog_cc_flag_needed_$cache=no" 5332else 5333 5334if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5335eval "cv_prog_cc_flag_needed_$cache=yes" 5336else 5337eval "cv_prog_cc_flag_needed_$cache=fail" 5338#echo 'Test with flag fails too!' 5339#cat conftest.c 5340#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5341#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5342#exit 1 5343fi 5344 5345fi 5346rm -f conftest conftest.c conftest.o 5347 5348fi 5349 5350if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5352$as_echo "yes" >&6; } 5353: 5354CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" 5355else 5356if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5358$as_echo "no" >&6; } 5359#echo 'Test with flag is no!' 5360#cat conftest.c 5361#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5362#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5363#exit 1 5364: 5365 5366else 5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5368$as_echo "failed" >&6; } 5369: 5370 5371fi 5372fi 5373 5374 5375 5376 5377 5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5 5379$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; } 5380cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 5381if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5382 $as_echo_n "(cached) " >&6 5383else 5384 5385echo ' 5386#include "confdefs.h" 5387#include <stdlib.h> 5388#include <ctype.h> 5389#include <sys/time.h> 5390#ifdef HAVE_TIME_H 5391#include <time.h> 5392#endif 5393#include <unistd.h> 5394#include <netdb.h> 5395#ifdef HAVE_GETOPT_H 5396#include <getopt.h> 5397#endif 5398 5399int test() { 5400 int a; 5401 char **opts = NULL; 5402 struct timeval tv; 5403 char *t; 5404 time_t time = 0; 5405 char *buf = NULL; 5406 const char* str = NULL; 5407 struct msghdr msg; 5408 msg.msg_control = 0; 5409 t = ctime_r(&time, buf); 5410 tv.tv_usec = 10; 5411 srandom(32); 5412 a = getopt(2, opts, "a"); 5413 a = isascii(32); 5414 str = gai_strerror(0); 5415 if(str && t && tv.tv_usec && msg.msg_control) 5416 a = 0; 5417 return a; 5418} 5419' > conftest.c 5420echo 'void f(){}' >>conftest.c 5421if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5422eval "cv_prog_cc_flag_needed_$cache=no" 5423else 5424 5425if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5426eval "cv_prog_cc_flag_needed_$cache=yes" 5427else 5428eval "cv_prog_cc_flag_needed_$cache=fail" 5429#echo 'Test with flag fails too!' 5430#cat conftest.c 5431#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5432#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5433#exit 1 5434fi 5435 5436fi 5437rm -f conftest conftest.c conftest.o 5438 5439fi 5440 5441if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5443$as_echo "yes" >&6; } 5444: 5445CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 5446else 5447if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5449$as_echo "no" >&6; } 5450#echo 'Test with flag is no!' 5451#cat conftest.c 5452#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5453#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5454#exit 1 5455: 5456 5457else 5458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5459$as_echo "failed" >&6; } 5460: 5461 5462fi 5463fi 5464 5465 5466 5467 5468 5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 5470$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 5471cache=`$as_echo "$C99FLAG" | $as_tr_sh` 5472if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5473 $as_echo_n "(cached) " >&6 5474else 5475 5476echo ' 5477#include <stdbool.h> 5478#include <ctype.h> 5479int test() { 5480 int a = 0; 5481 return a; 5482} 5483' > conftest.c 5484echo 'void f(){}' >>conftest.c 5485if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5486eval "cv_prog_cc_flag_needed_$cache=no" 5487else 5488 5489if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 5490eval "cv_prog_cc_flag_needed_$cache=yes" 5491else 5492eval "cv_prog_cc_flag_needed_$cache=fail" 5493#echo 'Test with flag fails too!' 5494#cat conftest.c 5495#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5496#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5497#exit 1 5498fi 5499 5500fi 5501rm -f conftest conftest.c conftest.o 5502 5503fi 5504 5505if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5507$as_echo "yes" >&6; } 5508: 5509CFLAGS="$CFLAGS $C99FLAG" 5510else 5511if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5513$as_echo "no" >&6; } 5514#echo 'Test with flag is no!' 5515#cat conftest.c 5516#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5517#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5518#exit 1 5519: 5520 5521else 5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5523$as_echo "failed" >&6; } 5524: 5525 5526fi 5527fi 5528 5529 5530 5531 5532 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5 5534$as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; } 5535cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE 5536if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5537 $as_echo_n "(cached) " >&6 5538else 5539 5540echo ' 5541#include <ctype.h> 5542 5543int test() { 5544 int a; 5545 a = isascii(32); 5546 return a; 5547} 5548' > conftest.c 5549echo 'void f(){}' >>conftest.c 5550if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5551eval "cv_prog_cc_flag_needed_$cache=no" 5552else 5553 5554if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5555eval "cv_prog_cc_flag_needed_$cache=yes" 5556else 5557eval "cv_prog_cc_flag_needed_$cache=fail" 5558#echo 'Test with flag fails too!' 5559#cat conftest.c 5560#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 5561#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 5562#exit 1 5563fi 5564 5565fi 5566rm -f conftest conftest.c conftest.o 5567 5568fi 5569 5570if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5572$as_echo "yes" >&6; } 5573: 5574CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE" 5575else 5576if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5578$as_echo "no" >&6; } 5579#echo 'Test with flag is no!' 5580#cat conftest.c 5581#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 5582#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 5583#exit 1 5584: 5585 5586else 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5588$as_echo "failed" >&6; } 5589: 5590 5591fi 5592fi 5593 5594 5595 5596 5597 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 5599$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 5600cache=_D_GNU_SOURCE 5601if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5602 $as_echo_n "(cached) " >&6 5603else 5604 5605echo ' 5606#include <netinet/in.h> 5607 5608int test() { 5609 struct in6_pktinfo inf; 5610 int a = (int)sizeof(inf); 5611 return a; 5612} 5613' > conftest.c 5614echo 'void f(){}' >>conftest.c 5615if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5616eval "cv_prog_cc_flag_needed_$cache=no" 5617else 5618 5619if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5620eval "cv_prog_cc_flag_needed_$cache=yes" 5621else 5622eval "cv_prog_cc_flag_needed_$cache=fail" 5623#echo 'Test with flag fails too!' 5624#cat conftest.c 5625#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5626#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5627#exit 1 5628fi 5629 5630fi 5631rm -f conftest conftest.c conftest.o 5632 5633fi 5634 5635if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5637$as_echo "yes" >&6; } 5638: 5639CFLAGS="$CFLAGS -D_GNU_SOURCE" 5640else 5641if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5643$as_echo "no" >&6; } 5644#echo 'Test with flag is no!' 5645#cat conftest.c 5646#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5647#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5648#exit 1 5649: 5650 5651else 5652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5653$as_echo "failed" >&6; } 5654: 5655 5656fi 5657fi 5658 5659 5660# check again for GNU_SOURCE for setresgid. May fail if setresgid 5661# is not available at all. -D_FRSRESGID is to make this check unique. 5662# otherwise we would get the previous cached result. 5663 5664 5665 5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 5667$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 5668cache=_D_GNU_SOURCE__D_FRSRESGID 5669if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5670 $as_echo_n "(cached) " >&6 5671else 5672 5673echo ' 5674#include <unistd.h> 5675 5676int test() { 5677 int a = setresgid(0,0,0); 5678 a = setresuid(0,0,0); 5679 return a; 5680} 5681' > conftest.c 5682echo 'void f(){}' >>conftest.c 5683if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5684eval "cv_prog_cc_flag_needed_$cache=no" 5685else 5686 5687if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 5688eval "cv_prog_cc_flag_needed_$cache=yes" 5689else 5690eval "cv_prog_cc_flag_needed_$cache=fail" 5691#echo 'Test with flag fails too!' 5692#cat conftest.c 5693#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5694#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5695#exit 1 5696fi 5697 5698fi 5699rm -f conftest conftest.c conftest.o 5700 5701fi 5702 5703if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5705$as_echo "yes" >&6; } 5706: 5707CFLAGS="$CFLAGS -D_GNU_SOURCE" 5708else 5709if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5711$as_echo "no" >&6; } 5712#echo 'Test with flag is no!' 5713#cat conftest.c 5714#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5715#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5716#exit 1 5717: 5718 5719else 5720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5721$as_echo "failed" >&6; } 5722: 5723 5724fi 5725fi 5726 5727 5728 5729 5730 5731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 5732$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 5733cache=_D_POSIX_C_SOURCE_200112 5734if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5735 $as_echo_n "(cached) " >&6 5736else 5737 5738echo ' 5739#include "confdefs.h" 5740#ifdef HAVE_TIME_H 5741#include <time.h> 5742#endif 5743#include <netdb.h> 5744 5745int test() { 5746 int a = 0; 5747 char *t; 5748 time_t time = 0; 5749 char *buf = NULL; 5750 const char* str = NULL; 5751 t = ctime_r(&time, buf); 5752 str = gai_strerror(0); 5753 if(t && str) 5754 a = 0; 5755 return a; 5756} 5757' > conftest.c 5758echo 'void f(){}' >>conftest.c 5759if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5760eval "cv_prog_cc_flag_needed_$cache=no" 5761else 5762 5763if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 5764eval "cv_prog_cc_flag_needed_$cache=yes" 5765else 5766eval "cv_prog_cc_flag_needed_$cache=fail" 5767#echo 'Test with flag fails too!' 5768#cat conftest.c 5769#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5770#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5771#exit 1 5772fi 5773 5774fi 5775rm -f conftest conftest.c conftest.o 5776 5777fi 5778 5779if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5781$as_echo "yes" >&6; } 5782: 5783CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 5784else 5785if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5787$as_echo "no" >&6; } 5788#echo 'Test with flag is no!' 5789#cat conftest.c 5790#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5791#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5792#exit 1 5793: 5794 5795else 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5797$as_echo "failed" >&6; } 5798: 5799 5800fi 5801fi 5802 5803 5804 5805 5806 5807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 5808$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 5809cache=_D__EXTENSIONS__ 5810if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5811 $as_echo_n "(cached) " >&6 5812else 5813 5814echo ' 5815#include "confdefs.h" 5816#include <stdlib.h> 5817#include <ctype.h> 5818#include <sys/time.h> 5819#ifdef HAVE_TIME_H 5820#include <time.h> 5821#endif 5822#include <unistd.h> 5823#ifdef HAVE_GETOPT_H 5824#include <getopt.h> 5825#endif 5826 5827int test() { 5828 int a; 5829 char **opts = NULL; 5830 struct timeval tv; 5831 tv.tv_usec = 10; 5832 srandom(32); 5833 a = getopt(2, opts, "a"); 5834 a = isascii(32); 5835 if(tv.tv_usec) 5836 a = 0; 5837 return a; 5838} 5839' > conftest.c 5840echo 'void f(){}' >>conftest.c 5841if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5842eval "cv_prog_cc_flag_needed_$cache=no" 5843else 5844 5845if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 5846eval "cv_prog_cc_flag_needed_$cache=yes" 5847else 5848eval "cv_prog_cc_flag_needed_$cache=fail" 5849#echo 'Test with flag fails too!' 5850#cat conftest.c 5851#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5852#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5853#exit 1 5854fi 5855 5856fi 5857rm -f conftest conftest.c conftest.o 5858 5859fi 5860 5861if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5863$as_echo "yes" >&6; } 5864: 5865CFLAGS="$CFLAGS -D__EXTENSIONS__" 5866else 5867if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5869$as_echo "no" >&6; } 5870#echo 'Test with flag is no!' 5871#cat conftest.c 5872#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5873#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5874#exit 1 5875: 5876 5877else 5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5879$as_echo "failed" >&6; } 5880: 5881 5882fi 5883fi 5884 5885 5886 5887 5888# debug mode flags warnings 5889# Check whether --enable-checking was given. 5890if test "${enable_checking+set}" = set; then : 5891 enableval=$enable_checking; 5892fi 5893 5894# Check whether --enable-debug was given. 5895if test "${enable_debug+set}" = set; then : 5896 enableval=$enable_debug; 5897fi 5898 5899if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; 5900else debug_enabled="$enable_checking"; fi 5901 5902case "$debug_enabled" in 5903 yes) 5904 5905 5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 5907$as_echo_n "checking whether $CC supports -W... " >&6; } 5908cache=`echo W | sed 'y%.=/+-%___p_%'` 5909if eval \${cv_prog_cc_flag_$cache+:} false; then : 5910 $as_echo_n "(cached) " >&6 5911else 5912 5913echo 'void f(void){}' >conftest.c 5914if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 5915eval "cv_prog_cc_flag_$cache=yes" 5916else 5917eval "cv_prog_cc_flag_$cache=no" 5918fi 5919rm -f conftest conftest.o conftest.c 5920 5921fi 5922 5923if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5925$as_echo "yes" >&6; } 5926: 5927CFLAGS="$CFLAGS -W" 5928else 5929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5930$as_echo "no" >&6; } 5931: 5932 5933fi 5934 5935 5936 5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5938$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5939cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5940if eval \${cv_prog_cc_flag_$cache+:} false; then : 5941 $as_echo_n "(cached) " >&6 5942else 5943 5944echo 'void f(void){}' >conftest.c 5945if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5946eval "cv_prog_cc_flag_$cache=yes" 5947else 5948eval "cv_prog_cc_flag_$cache=no" 5949fi 5950rm -f conftest conftest.o conftest.c 5951 5952fi 5953 5954if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5956$as_echo "yes" >&6; } 5957: 5958CFLAGS="$CFLAGS -Wall" 5959else 5960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5961$as_echo "no" >&6; } 5962: 5963 5964fi 5965 5966 5967 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 5969$as_echo_n "checking whether $CC supports -Wextra... " >&6; } 5970cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 5971if eval \${cv_prog_cc_flag_$cache+:} false; then : 5972 $as_echo_n "(cached) " >&6 5973else 5974 5975echo 'void f(void){}' >conftest.c 5976if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then 5977eval "cv_prog_cc_flag_$cache=yes" 5978else 5979eval "cv_prog_cc_flag_$cache=no" 5980fi 5981rm -f conftest conftest.o conftest.c 5982 5983fi 5984 5985if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5987$as_echo "yes" >&6; } 5988: 5989CFLAGS="$CFLAGS -Wextra" 5990else 5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5992$as_echo "no" >&6; } 5993: 5994 5995fi 5996 5997 5998 5999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 6000$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 6001cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'` 6002if eval \${cv_prog_cc_flag_$cache+:} false; then : 6003 $as_echo_n "(cached) " >&6 6004else 6005 6006echo 'void f(void){}' >conftest.c 6007if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 6008eval "cv_prog_cc_flag_$cache=yes" 6009else 6010eval "cv_prog_cc_flag_$cache=no" 6011fi 6012rm -f conftest conftest.o conftest.c 6013 6014fi 6015 6016if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6018$as_echo "yes" >&6; } 6019: 6020CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6021else 6022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6023$as_echo "no" >&6; } 6024: 6025 6026fi 6027 6028 6029$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h 6030 6031 ;; 6032 no|*) 6033 # nothing to do. 6034 ;; 6035esac 6036if test "$default_cflags" = "yes"; then 6037 # only when CFLAGS was "" at the start, if the users wants to 6038 # override we shouldn't add default cflags, because they wouldn't 6039 # be able to turn off these options and set the CFLAGS wanted. 6040 6041 # Check whether --enable-flto was given. 6042if test "${enable_flto+set}" = set; then : 6043 enableval=$enable_flto; 6044fi 6045 6046 if test "x$enable_flto" != "xno"; then : 6047 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 6049$as_echo_n "checking if $CC supports -flto... " >&6; } 6050 BAKCFLAGS="$CFLAGS" 6051 CFLAGS="$CFLAGS -flto" 6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6053/* end confdefs.h. */ 6054 6055int 6056main () 6057{ 6058 6059 ; 6060 return 0; 6061} 6062_ACEOF 6063if ac_fn_c_try_link "$LINENO"; then : 6064 6065 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then 6066 CFLAGS="$BAKCFLAGS" 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6068$as_echo "no" >&6; } 6069 else 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6071$as_echo "yes" >&6; } 6072 fi 6073 rm -f conftest conftest.c conftest.o 6074 6075else 6076 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6077$as_echo "no" >&6; } 6078fi 6079rm -f core conftest.err conftest.$ac_objext \ 6080 conftest$ac_exeext conftest.$ac_ext 6081 6082fi 6083 6084 6085 # Check whether --enable-pie was given. 6086if test "${enable_pie+set}" = set; then : 6087 enableval=$enable_pie; 6088fi 6089 6090 if test "x$enable_pie" = "xyes"; then : 6091 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5 6093$as_echo_n "checking if $CC supports PIE... " >&6; } 6094 BAKLDFLAGS="$LDFLAGS" 6095 BAKCFLAGS="$CFLAGS" 6096 LDFLAGS="$LDFLAGS -pie" 6097 CFLAGS="$CFLAGS -fPIE" 6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6099/* end confdefs.h. */ 6100 6101int 6102main () 6103{ 6104 6105 ; 6106 return 0; 6107} 6108_ACEOF 6109if ac_fn_c_try_link "$LINENO"; then : 6110 6111 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6112 LDFLAGS="$BAKLDFLAGS" 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6114$as_echo "no" >&6; } 6115 else 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6117$as_echo "yes" >&6; } 6118 fi 6119 rm -f conftest conftest.c conftest.o 6120 6121else 6122 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6123$as_echo "no" >&6; } 6124fi 6125rm -f core conftest.err conftest.$ac_objext \ 6126 conftest$ac_exeext conftest.$ac_ext 6127 6128fi 6129 6130 6131 # Check whether --enable-relro_now was given. 6132if test "${enable_relro_now+set}" = set; then : 6133 enableval=$enable_relro_now; 6134fi 6135 6136 if test "x$enable_relro_now" = "xyes"; then : 6137 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5 6139$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; } 6140 BAKLDFLAGS="$LDFLAGS" 6141 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now" 6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6143/* end confdefs.h. */ 6144 6145int 6146main () 6147{ 6148 6149 ; 6150 return 0; 6151} 6152_ACEOF 6153if ac_fn_c_try_link "$LINENO"; then : 6154 6155 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6156 LDFLAGS="$BAKLDFLAGS" 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6158$as_echo "no" >&6; } 6159 else 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6161$as_echo "yes" >&6; } 6162 fi 6163 rm -f conftest conftest.c conftest.o 6164 6165else 6166 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6167$as_echo "no" >&6; } 6168fi 6169rm -f core conftest.err conftest.$ac_objext \ 6170 conftest$ac_exeext conftest.$ac_ext 6171 6172fi 6173 6174fi 6175 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6177$as_echo_n "checking for inline... " >&6; } 6178if ${ac_cv_c_inline+:} false; then : 6179 $as_echo_n "(cached) " >&6 6180else 6181 ac_cv_c_inline=no 6182for ac_kw in inline __inline__ __inline; do 6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6184/* end confdefs.h. */ 6185#ifndef __cplusplus 6186typedef int foo_t; 6187static $ac_kw foo_t static_foo () {return 0; } 6188$ac_kw foo_t foo () {return 0; } 6189#endif 6190 6191_ACEOF 6192if ac_fn_c_try_compile "$LINENO"; then : 6193 ac_cv_c_inline=$ac_kw 6194fi 6195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6196 test "$ac_cv_c_inline" != no && break 6197done 6198 6199fi 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6201$as_echo "$ac_cv_c_inline" >&6; } 6202 6203case $ac_cv_c_inline in 6204 inline | yes) ;; 6205 *) 6206 case $ac_cv_c_inline in 6207 no) ac_val=;; 6208 *) ac_val=$ac_cv_c_inline;; 6209 esac 6210 cat >>confdefs.h <<_ACEOF 6211#ifndef __cplusplus 6212#define inline $ac_val 6213#endif 6214_ACEOF 6215 ;; 6216esac 6217 6218 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 6220$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 6221if ${ac_cv_c_format_attribute+:} false; then : 6222 $as_echo_n "(cached) " >&6 6223else 6224 ac_cv_c_format_attribute=no 6225cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6226/* end confdefs.h. */ 6227#include <stdio.h> 6228void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6229void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6230 6231int 6232main () 6233{ 6234 6235 f ("%s", "str"); 6236 6237 ; 6238 return 0; 6239} 6240_ACEOF 6241if ac_fn_c_try_compile "$LINENO"; then : 6242 ac_cv_c_format_attribute="yes" 6243else 6244 ac_cv_c_format_attribute="no" 6245fi 6246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6247 6248fi 6249 6250 6251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 6252$as_echo "$ac_cv_c_format_attribute" >&6; } 6253if test $ac_cv_c_format_attribute = yes; then 6254 6255$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 6256 6257fi 6258 6259 6260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 6261$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 6262if ${ac_cv_c_unused_attribute+:} false; then : 6263 $as_echo_n "(cached) " >&6 6264else 6265 ac_cv_c_unused_attribute=no 6266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6267/* end confdefs.h. */ 6268#include <stdio.h> 6269void f (char *u __attribute__((unused))); 6270 6271int 6272main () 6273{ 6274 6275 f ("x"); 6276 6277 ; 6278 return 0; 6279} 6280_ACEOF 6281if ac_fn_c_try_compile "$LINENO"; then : 6282 ac_cv_c_unused_attribute="yes" 6283else 6284 ac_cv_c_unused_attribute="no" 6285fi 6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6287 6288fi 6289 6290 6291 6292 6293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 6294$as_echo "$ac_cv_c_unused_attribute" >&6; } 6295if test $ac_cv_c_unused_attribute = yes; then 6296 6297$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 6298 6299fi 6300 6301 6302 6303 6304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5 6305$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; } 6306if ${ac_cv_c_weak_attribute+:} false; then : 6307 $as_echo_n "(cached) " >&6 6308else 6309 ac_cv_c_weak_attribute=no 6310cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6311/* end confdefs.h. */ 6312 #include <stdio.h> 6313__attribute__((weak)) void f(int x) { printf("%d", x); } 6314 6315int 6316main () 6317{ 6318 6319 f(1); 6320 6321 ; 6322 return 0; 6323} 6324_ACEOF 6325if ac_fn_c_try_compile "$LINENO"; then : 6326 ac_cv_c_weak_attribute="yes" 6327else 6328 ac_cv_c_weak_attribute="no" 6329fi 6330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6331 6332fi 6333 6334 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5 6336$as_echo "$ac_cv_c_weak_attribute" >&6; } 6337if test $ac_cv_c_weak_attribute = yes; then 6338 6339$as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h 6340 6341 6342$as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h 6343 6344fi 6345 6346 6347 6348 6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5 6350$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; } 6351if ${ac_cv_c_noreturn_attribute+:} false; then : 6352 $as_echo_n "(cached) " >&6 6353else 6354 ac_cv_c_noreturn_attribute=no 6355cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6356/* end confdefs.h. */ 6357 #include <stdio.h> 6358__attribute__((noreturn)) void f(int x) { printf("%d", x); } 6359 6360int 6361main () 6362{ 6363 6364 f(1); 6365 6366 ; 6367 return 0; 6368} 6369_ACEOF 6370if ac_fn_c_try_compile "$LINENO"; then : 6371 ac_cv_c_noreturn_attribute="yes" 6372else 6373 ac_cv_c_noreturn_attribute="no" 6374fi 6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6376 6377fi 6378 6379 6380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5 6381$as_echo "$ac_cv_c_noreturn_attribute" >&6; } 6382if test $ac_cv_c_noreturn_attribute = yes; then 6383 6384$as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h 6385 6386 6387$as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h 6388 6389fi 6390 6391 6392if test "$srcdir" != "."; then 6393 CPPFLAGS="$CPPFLAGS -I$srcdir" 6394fi 6395 6396 6397 6398 6399 6400for ac_prog in flex lex 6401do 6402 # Extract the first word of "$ac_prog", so it can be a program name with args. 6403set dummy $ac_prog; ac_word=$2 6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6405$as_echo_n "checking for $ac_word... " >&6; } 6406if ${ac_cv_prog_LEX+:} false; then : 6407 $as_echo_n "(cached) " >&6 6408else 6409 if test -n "$LEX"; then 6410 ac_cv_prog_LEX="$LEX" # Let the user override the test. 6411else 6412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6413for as_dir in $PATH 6414do 6415 IFS=$as_save_IFS 6416 test -z "$as_dir" && as_dir=. 6417 for ac_exec_ext in '' $ac_executable_extensions; do 6418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6419 ac_cv_prog_LEX="$ac_prog" 6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6421 break 2 6422 fi 6423done 6424 done 6425IFS=$as_save_IFS 6426 6427fi 6428fi 6429LEX=$ac_cv_prog_LEX 6430if test -n "$LEX"; then 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 6432$as_echo "$LEX" >&6; } 6433else 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6435$as_echo "no" >&6; } 6436fi 6437 6438 6439 test -n "$LEX" && break 6440done 6441test -n "$LEX" || LEX=":" 6442 6443if test "x$LEX" != "x:"; then 6444 cat >conftest.l <<_ACEOF 6445%% 6446a { ECHO; } 6447b { REJECT; } 6448c { yymore (); } 6449d { yyless (1); } 6450e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 6451 yyless ((input () != 0)); } 6452f { unput (yytext[0]); } 6453. { BEGIN INITIAL; } 6454%% 6455#ifdef YYTEXT_POINTER 6456extern char *yytext; 6457#endif 6458int 6459main (void) 6460{ 6461 return ! yylex () + ! yywrap (); 6462} 6463_ACEOF 6464{ { ac_try="$LEX conftest.l" 6465case "(($ac_try" in 6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6467 *) ac_try_echo=$ac_try;; 6468esac 6469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6470$as_echo "$ac_try_echo"; } >&5 6471 (eval "$LEX conftest.l") 2>&5 6472 ac_status=$? 6473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6474 test $ac_status = 0; } 6475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 6476$as_echo_n "checking lex output file root... " >&6; } 6477if ${ac_cv_prog_lex_root+:} false; then : 6478 $as_echo_n "(cached) " >&6 6479else 6480 6481if test -f lex.yy.c; then 6482 ac_cv_prog_lex_root=lex.yy 6483elif test -f lexyy.c; then 6484 ac_cv_prog_lex_root=lexyy 6485else 6486 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 6487fi 6488fi 6489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 6490$as_echo "$ac_cv_prog_lex_root" >&6; } 6491LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 6492 6493if test -z "${LEXLIB+set}"; then 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 6495$as_echo_n "checking lex library... " >&6; } 6496if ${ac_cv_lib_lex+:} false; then : 6497 $as_echo_n "(cached) " >&6 6498else 6499 6500 ac_save_LIBS=$LIBS 6501 ac_cv_lib_lex='none needed' 6502 for ac_lib in '' -lfl -ll; do 6503 LIBS="$ac_lib $ac_save_LIBS" 6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6505/* end confdefs.h. */ 6506`cat $LEX_OUTPUT_ROOT.c` 6507_ACEOF 6508if ac_fn_c_try_link "$LINENO"; then : 6509 ac_cv_lib_lex=$ac_lib 6510fi 6511rm -f core conftest.err conftest.$ac_objext \ 6512 conftest$ac_exeext conftest.$ac_ext 6513 test "$ac_cv_lib_lex" != 'none needed' && break 6514 done 6515 LIBS=$ac_save_LIBS 6516 6517fi 6518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 6519$as_echo "$ac_cv_lib_lex" >&6; } 6520 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 6521fi 6522 6523 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 6525$as_echo_n "checking whether yytext is a pointer... " >&6; } 6526if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 6527 $as_echo_n "(cached) " >&6 6528else 6529 # POSIX says lex can declare yytext either as a pointer or an array; the 6530# default is implementation-dependent. Figure out which it is, since 6531# not all implementations provide the %pointer and %array declarations. 6532ac_cv_prog_lex_yytext_pointer=no 6533ac_save_LIBS=$LIBS 6534LIBS="$LEXLIB $ac_save_LIBS" 6535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6536/* end confdefs.h. */ 6537 6538 #define YYTEXT_POINTER 1 6539`cat $LEX_OUTPUT_ROOT.c` 6540_ACEOF 6541if ac_fn_c_try_link "$LINENO"; then : 6542 ac_cv_prog_lex_yytext_pointer=yes 6543fi 6544rm -f core conftest.err conftest.$ac_objext \ 6545 conftest$ac_exeext conftest.$ac_ext 6546LIBS=$ac_save_LIBS 6547 6548fi 6549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 6550$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 6551if test $ac_cv_prog_lex_yytext_pointer = yes; then 6552 6553$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 6554 6555fi 6556rm -f conftest.l $LEX_OUTPUT_ROOT.c 6557 6558fi 6559if test "$LEX" != "" -a "$LEX" != ":"; then 6560 6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5 6562$as_echo_n "checking for yylex_destroy... " >&6; } 6563 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then 6564 6565$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h 6566 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6568$as_echo "yes" >&6; } 6569 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6570$as_echo "no" >&6; }; 6571 LEX=":" 6572 fi 6573 6574fi 6575if test "$LEX" != "" -a "$LEX" != ":"; then 6576 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5 6578$as_echo_n "checking for lex %option... " >&6; } 6579 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then 6580%option nounput 6581%% 6582EOF 6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6584$as_echo "yes" >&6; } 6585 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6586$as_echo "no" >&6; }; 6587 LEX=":" 6588 fi 6589 6590fi 6591for ac_prog in 'bison -y' byacc 6592do 6593 # Extract the first word of "$ac_prog", so it can be a program name with args. 6594set dummy $ac_prog; ac_word=$2 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6596$as_echo_n "checking for $ac_word... " >&6; } 6597if ${ac_cv_prog_YACC+:} false; then : 6598 $as_echo_n "(cached) " >&6 6599else 6600 if test -n "$YACC"; then 6601 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6602else 6603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6604for as_dir in $PATH 6605do 6606 IFS=$as_save_IFS 6607 test -z "$as_dir" && as_dir=. 6608 for ac_exec_ext in '' $ac_executable_extensions; do 6609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6610 ac_cv_prog_YACC="$ac_prog" 6611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6612 break 2 6613 fi 6614done 6615 done 6616IFS=$as_save_IFS 6617 6618fi 6619fi 6620YACC=$ac_cv_prog_YACC 6621if test -n "$YACC"; then 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 6623$as_echo "$YACC" >&6; } 6624else 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6626$as_echo "no" >&6; } 6627fi 6628 6629 6630 test -n "$YACC" && break 6631done 6632test -n "$YACC" || YACC="yacc" 6633 6634# Extract the first word of "doxygen", so it can be a program name with args. 6635set dummy doxygen; ac_word=$2 6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6637$as_echo_n "checking for $ac_word... " >&6; } 6638if ${ac_cv_prog_doxygen+:} false; then : 6639 $as_echo_n "(cached) " >&6 6640else 6641 if test -n "$doxygen"; then 6642 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 6643else 6644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6645for as_dir in $PATH 6646do 6647 IFS=$as_save_IFS 6648 test -z "$as_dir" && as_dir=. 6649 for ac_exec_ext in '' $ac_executable_extensions; do 6650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6651 ac_cv_prog_doxygen="doxygen" 6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6653 break 2 6654 fi 6655done 6656 done 6657IFS=$as_save_IFS 6658 6659fi 6660fi 6661doxygen=$ac_cv_prog_doxygen 6662if test -n "$doxygen"; then 6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 6664$as_echo "$doxygen" >&6; } 6665else 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6667$as_echo "no" >&6; } 6668fi 6669 6670 6671if test -n "$ac_tool_prefix"; then 6672 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6673set dummy ${ac_tool_prefix}strip; ac_word=$2 6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6675$as_echo_n "checking for $ac_word... " >&6; } 6676if ${ac_cv_prog_STRIP+:} false; then : 6677 $as_echo_n "(cached) " >&6 6678else 6679 if test -n "$STRIP"; then 6680 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6681else 6682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6683for as_dir in $PATH 6684do 6685 IFS=$as_save_IFS 6686 test -z "$as_dir" && as_dir=. 6687 for ac_exec_ext in '' $ac_executable_extensions; do 6688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6689 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6691 break 2 6692 fi 6693done 6694 done 6695IFS=$as_save_IFS 6696 6697fi 6698fi 6699STRIP=$ac_cv_prog_STRIP 6700if test -n "$STRIP"; then 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6702$as_echo "$STRIP" >&6; } 6703else 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6705$as_echo "no" >&6; } 6706fi 6707 6708 6709fi 6710if test -z "$ac_cv_prog_STRIP"; then 6711 ac_ct_STRIP=$STRIP 6712 # Extract the first word of "strip", so it can be a program name with args. 6713set dummy strip; ac_word=$2 6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6715$as_echo_n "checking for $ac_word... " >&6; } 6716if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6717 $as_echo_n "(cached) " >&6 6718else 6719 if test -n "$ac_ct_STRIP"; then 6720 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6721else 6722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6723for as_dir in $PATH 6724do 6725 IFS=$as_save_IFS 6726 test -z "$as_dir" && as_dir=. 6727 for ac_exec_ext in '' $ac_executable_extensions; do 6728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6729 ac_cv_prog_ac_ct_STRIP="strip" 6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6731 break 2 6732 fi 6733done 6734 done 6735IFS=$as_save_IFS 6736 6737fi 6738fi 6739ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6740if test -n "$ac_ct_STRIP"; then 6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6742$as_echo "$ac_ct_STRIP" >&6; } 6743else 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6745$as_echo "no" >&6; } 6746fi 6747 6748 if test "x$ac_ct_STRIP" = x; then 6749 STRIP="" 6750 else 6751 case $cross_compiling:$ac_tool_warned in 6752yes:) 6753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6755ac_tool_warned=yes ;; 6756esac 6757 STRIP=$ac_ct_STRIP 6758 fi 6759else 6760 STRIP="$ac_cv_prog_STRIP" 6761fi 6762 6763ac_aux_dir= 6764for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 6765 if test -f "$ac_dir/install-sh"; then 6766 ac_aux_dir=$ac_dir 6767 ac_install_sh="$ac_aux_dir/install-sh -c" 6768 break 6769 elif test -f "$ac_dir/install.sh"; then 6770 ac_aux_dir=$ac_dir 6771 ac_install_sh="$ac_aux_dir/install.sh -c" 6772 break 6773 elif test -f "$ac_dir/shtool"; then 6774 ac_aux_dir=$ac_dir 6775 ac_install_sh="$ac_aux_dir/shtool install -c" 6776 break 6777 fi 6778done 6779if test -z "$ac_aux_dir"; then 6780 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 6781fi 6782 6783# These three variables are undocumented and unsupported, 6784# and are intended to be withdrawn in a future Autoconf release. 6785# They can cause serious problems if a builder's source tree is in a directory 6786# whose full name contains unusual characters. 6787ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 6788ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 6789ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 6790 6791 6792# Make sure we can run config.sub. 6793$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6794 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6795 6796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6797$as_echo_n "checking build system type... " >&6; } 6798if ${ac_cv_build+:} false; then : 6799 $as_echo_n "(cached) " >&6 6800else 6801 ac_build_alias=$build_alias 6802test "x$ac_build_alias" = x && 6803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6804test "x$ac_build_alias" = x && 6805 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6806ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6808 6809fi 6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6811$as_echo "$ac_cv_build" >&6; } 6812case $ac_cv_build in 6813*-*-*) ;; 6814*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6815esac 6816build=$ac_cv_build 6817ac_save_IFS=$IFS; IFS='-' 6818set x $ac_cv_build 6819shift 6820build_cpu=$1 6821build_vendor=$2 6822shift; shift 6823# Remember, the first character of IFS is used to create $*, 6824# except with old shells: 6825build_os=$* 6826IFS=$ac_save_IFS 6827case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6828 6829 6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6831$as_echo_n "checking host system type... " >&6; } 6832if ${ac_cv_host+:} false; then : 6833 $as_echo_n "(cached) " >&6 6834else 6835 if test "x$host_alias" = x; then 6836 ac_cv_host=$ac_cv_build 6837else 6838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6840fi 6841 6842fi 6843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6844$as_echo "$ac_cv_host" >&6; } 6845case $ac_cv_host in 6846*-*-*) ;; 6847*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6848esac 6849host=$ac_cv_host 6850ac_save_IFS=$IFS; IFS='-' 6851set x $ac_cv_host 6852shift 6853host_cpu=$1 6854host_vendor=$2 6855shift; shift 6856# Remember, the first character of IFS is used to create $*, 6857# except with old shells: 6858host_os=$* 6859IFS=$ac_save_IFS 6860case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6861 6862 6863 6864# skip these tests, we do not need them. 6865 6866 6867 6868 6869 6870 6871 6872 6873# always use ./libtool unless override from commandline (libtool=mylibtool) 6874if test -z "$libtool"; then 6875 libtool="./libtool" 6876fi 6877 6878# avoid libtool max commandline length test on systems that fork slowly. 6879 6880if echo "$host_os" | grep "sunos4" >/dev/null; then 6881 lt_cv_sys_max_cmd_len=32750; 6882fi 6883if test -n "$ac_tool_prefix"; then 6884 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6885set dummy ${ac_tool_prefix}ar; ac_word=$2 6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6887$as_echo_n "checking for $ac_word... " >&6; } 6888if ${ac_cv_path_AR+:} false; then : 6889 $as_echo_n "(cached) " >&6 6890else 6891 case $AR in 6892 [\\/]* | ?:[\\/]*) 6893 ac_cv_path_AR="$AR" # Let the user override the test with a path. 6894 ;; 6895 *) 6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6897for as_dir in $PATH 6898do 6899 IFS=$as_save_IFS 6900 test -z "$as_dir" && as_dir=. 6901 for ac_exec_ext in '' $ac_executable_extensions; do 6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6903 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6905 break 2 6906 fi 6907done 6908 done 6909IFS=$as_save_IFS 6910 6911 ;; 6912esac 6913fi 6914AR=$ac_cv_path_AR 6915if test -n "$AR"; then 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6917$as_echo "$AR" >&6; } 6918else 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6920$as_echo "no" >&6; } 6921fi 6922 6923 6924fi 6925if test -z "$ac_cv_path_AR"; then 6926 ac_pt_AR=$AR 6927 # Extract the first word of "ar", so it can be a program name with args. 6928set dummy ar; ac_word=$2 6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6930$as_echo_n "checking for $ac_word... " >&6; } 6931if ${ac_cv_path_ac_pt_AR+:} false; then : 6932 $as_echo_n "(cached) " >&6 6933else 6934 case $ac_pt_AR in 6935 [\\/]* | ?:[\\/]*) 6936 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 6937 ;; 6938 *) 6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6940for as_dir in $PATH 6941do 6942 IFS=$as_save_IFS 6943 test -z "$as_dir" && as_dir=. 6944 for ac_exec_ext in '' $ac_executable_extensions; do 6945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6946 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6948 break 2 6949 fi 6950done 6951 done 6952IFS=$as_save_IFS 6953 6954 ;; 6955esac 6956fi 6957ac_pt_AR=$ac_cv_path_ac_pt_AR 6958if test -n "$ac_pt_AR"; then 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 6960$as_echo "$ac_pt_AR" >&6; } 6961else 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6963$as_echo "no" >&6; } 6964fi 6965 6966 if test "x$ac_pt_AR" = x; then 6967 AR="false" 6968 else 6969 case $cross_compiling:$ac_tool_warned in 6970yes:) 6971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6973ac_tool_warned=yes ;; 6974esac 6975 AR=$ac_pt_AR 6976 fi 6977else 6978 AR="$ac_cv_path_AR" 6979fi 6980 6981if test $AR = false; then 6982 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 6983fi 6984 6985case `pwd` in 6986 *\ * | *\ *) 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6988$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6989esac 6990 6991 6992 6993macro_version='2.4.6' 6994macro_revision='2.4.6' 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008ltmain=$ac_aux_dir/ltmain.sh 7009 7010# Backslashify metacharacters that are still active within 7011# double-quoted strings. 7012sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7013 7014# Same as above, but do not quote variable references. 7015double_quote_subst='s/\(["`\\]\)/\\\1/g' 7016 7017# Sed substitution to delay expansion of an escaped shell variable in a 7018# double_quote_subst'ed string. 7019delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7020 7021# Sed substitution to delay expansion of an escaped single quote. 7022delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7023 7024# Sed substitution to avoid accidental globbing in evaled expressions 7025no_glob_subst='s/\*/\\\*/g' 7026 7027ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7028ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7029ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7030 7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7032$as_echo_n "checking how to print strings... " >&6; } 7033# Test print first, because it will be a builtin if present. 7034if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7035 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7036 ECHO='print -r --' 7037elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7038 ECHO='printf %s\n' 7039else 7040 # Use this function as a fallback that always works. 7041 func_fallback_echo () 7042 { 7043 eval 'cat <<_LTECHO_EOF 7044$1 7045_LTECHO_EOF' 7046 } 7047 ECHO='func_fallback_echo' 7048fi 7049 7050# func_echo_all arg... 7051# Invoke $ECHO with all args, space-separated. 7052func_echo_all () 7053{ 7054 $ECHO "" 7055} 7056 7057case $ECHO in 7058 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7059$as_echo "printf" >&6; } ;; 7060 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7061$as_echo "print -r" >&6; } ;; 7062 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7063$as_echo "cat" >&6; } ;; 7064esac 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7080$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7081if ${ac_cv_path_SED+:} false; then : 7082 $as_echo_n "(cached) " >&6 7083else 7084 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7085 for ac_i in 1 2 3 4 5 6 7; do 7086 ac_script="$ac_script$as_nl$ac_script" 7087 done 7088 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7089 { ac_script=; unset ac_script;} 7090 if test -z "$SED"; then 7091 ac_path_SED_found=false 7092 # Loop through the user's path and test for each of PROGNAME-LIST 7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7094for as_dir in $PATH 7095do 7096 IFS=$as_save_IFS 7097 test -z "$as_dir" && as_dir=. 7098 for ac_prog in sed gsed; do 7099 for ac_exec_ext in '' $ac_executable_extensions; do 7100 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7101 as_fn_executable_p "$ac_path_SED" || continue 7102# Check for GNU ac_path_SED and select it if it is found. 7103 # Check for GNU $ac_path_SED 7104case `"$ac_path_SED" --version 2>&1` in 7105*GNU*) 7106 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7107*) 7108 ac_count=0 7109 $as_echo_n 0123456789 >"conftest.in" 7110 while : 7111 do 7112 cat "conftest.in" "conftest.in" >"conftest.tmp" 7113 mv "conftest.tmp" "conftest.in" 7114 cp "conftest.in" "conftest.nl" 7115 $as_echo '' >> "conftest.nl" 7116 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7118 as_fn_arith $ac_count + 1 && ac_count=$as_val 7119 if test $ac_count -gt ${ac_path_SED_max-0}; then 7120 # Best one so far, save it but keep looking for a better one 7121 ac_cv_path_SED="$ac_path_SED" 7122 ac_path_SED_max=$ac_count 7123 fi 7124 # 10*(2^10) chars as input seems more than enough 7125 test $ac_count -gt 10 && break 7126 done 7127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7128esac 7129 7130 $ac_path_SED_found && break 3 7131 done 7132 done 7133 done 7134IFS=$as_save_IFS 7135 if test -z "$ac_cv_path_SED"; then 7136 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7137 fi 7138else 7139 ac_cv_path_SED=$SED 7140fi 7141 7142fi 7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7144$as_echo "$ac_cv_path_SED" >&6; } 7145 SED="$ac_cv_path_SED" 7146 rm -f conftest.sed 7147 7148test -z "$SED" && SED=sed 7149Xsed="$SED -e 1s/^X//" 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7162$as_echo_n "checking for fgrep... " >&6; } 7163if ${ac_cv_path_FGREP+:} false; then : 7164 $as_echo_n "(cached) " >&6 7165else 7166 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7167 then ac_cv_path_FGREP="$GREP -F" 7168 else 7169 if test -z "$FGREP"; then 7170 ac_path_FGREP_found=false 7171 # Loop through the user's path and test for each of PROGNAME-LIST 7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7173for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7174do 7175 IFS=$as_save_IFS 7176 test -z "$as_dir" && as_dir=. 7177 for ac_prog in fgrep; do 7178 for ac_exec_ext in '' $ac_executable_extensions; do 7179 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7180 as_fn_executable_p "$ac_path_FGREP" || continue 7181# Check for GNU ac_path_FGREP and select it if it is found. 7182 # Check for GNU $ac_path_FGREP 7183case `"$ac_path_FGREP" --version 2>&1` in 7184*GNU*) 7185 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7186*) 7187 ac_count=0 7188 $as_echo_n 0123456789 >"conftest.in" 7189 while : 7190 do 7191 cat "conftest.in" "conftest.in" >"conftest.tmp" 7192 mv "conftest.tmp" "conftest.in" 7193 cp "conftest.in" "conftest.nl" 7194 $as_echo 'FGREP' >> "conftest.nl" 7195 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7197 as_fn_arith $ac_count + 1 && ac_count=$as_val 7198 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7199 # Best one so far, save it but keep looking for a better one 7200 ac_cv_path_FGREP="$ac_path_FGREP" 7201 ac_path_FGREP_max=$ac_count 7202 fi 7203 # 10*(2^10) chars as input seems more than enough 7204 test $ac_count -gt 10 && break 7205 done 7206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7207esac 7208 7209 $ac_path_FGREP_found && break 3 7210 done 7211 done 7212 done 7213IFS=$as_save_IFS 7214 if test -z "$ac_cv_path_FGREP"; then 7215 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7216 fi 7217else 7218 ac_cv_path_FGREP=$FGREP 7219fi 7220 7221 fi 7222fi 7223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7224$as_echo "$ac_cv_path_FGREP" >&6; } 7225 FGREP="$ac_cv_path_FGREP" 7226 7227 7228test -z "$GREP" && GREP=grep 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248# Check whether --with-gnu-ld was given. 7249if test "${with_gnu_ld+set}" = set; then : 7250 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7251else 7252 with_gnu_ld=no 7253fi 7254 7255ac_prog=ld 7256if test yes = "$GCC"; then 7257 # Check if gcc -print-prog-name=ld gives a path. 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7259$as_echo_n "checking for ld used by $CC... " >&6; } 7260 case $host in 7261 *-*-mingw*) 7262 # gcc leaves a trailing carriage return, which upsets mingw 7263 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7264 *) 7265 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7266 esac 7267 case $ac_prog in 7268 # Accept absolute paths. 7269 [\\/]* | ?:[\\/]*) 7270 re_direlt='/[^/][^/]*/\.\./' 7271 # Canonicalize the pathname of ld 7272 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7273 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7274 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7275 done 7276 test -z "$LD" && LD=$ac_prog 7277 ;; 7278 "") 7279 # If it fails, then pretend we aren't using GCC. 7280 ac_prog=ld 7281 ;; 7282 *) 7283 # If it is relative, then search for the first ld in PATH. 7284 with_gnu_ld=unknown 7285 ;; 7286 esac 7287elif test yes = "$with_gnu_ld"; then 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7289$as_echo_n "checking for GNU ld... " >&6; } 7290else 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7292$as_echo_n "checking for non-GNU ld... " >&6; } 7293fi 7294if ${lt_cv_path_LD+:} false; then : 7295 $as_echo_n "(cached) " >&6 7296else 7297 if test -z "$LD"; then 7298 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7299 for ac_dir in $PATH; do 7300 IFS=$lt_save_ifs 7301 test -z "$ac_dir" && ac_dir=. 7302 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7303 lt_cv_path_LD=$ac_dir/$ac_prog 7304 # Check to see if the program is GNU ld. I'd rather use --version, 7305 # but apparently some variants of GNU ld only accept -v. 7306 # Break only if it was the GNU/non-GNU ld that we prefer. 7307 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7308 *GNU* | *'with BFD'*) 7309 test no != "$with_gnu_ld" && break 7310 ;; 7311 *) 7312 test yes != "$with_gnu_ld" && break 7313 ;; 7314 esac 7315 fi 7316 done 7317 IFS=$lt_save_ifs 7318else 7319 lt_cv_path_LD=$LD # Let the user override the test with a path. 7320fi 7321fi 7322 7323LD=$lt_cv_path_LD 7324if test -n "$LD"; then 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7326$as_echo "$LD" >&6; } 7327else 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7329$as_echo "no" >&6; } 7330fi 7331test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7333$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7334if ${lt_cv_prog_gnu_ld+:} false; then : 7335 $as_echo_n "(cached) " >&6 7336else 7337 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7338case `$LD -v 2>&1 </dev/null` in 7339*GNU* | *'with BFD'*) 7340 lt_cv_prog_gnu_ld=yes 7341 ;; 7342*) 7343 lt_cv_prog_gnu_ld=no 7344 ;; 7345esac 7346fi 7347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7348$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7349with_gnu_ld=$lt_cv_prog_gnu_ld 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7360$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7361if ${lt_cv_path_NM+:} false; then : 7362 $as_echo_n "(cached) " >&6 7363else 7364 if test -n "$NM"; then 7365 # Let the user override the test. 7366 lt_cv_path_NM=$NM 7367else 7368 lt_nm_to_check=${ac_tool_prefix}nm 7369 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7370 lt_nm_to_check="$lt_nm_to_check nm" 7371 fi 7372 for lt_tmp_nm in $lt_nm_to_check; do 7373 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7374 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7375 IFS=$lt_save_ifs 7376 test -z "$ac_dir" && ac_dir=. 7377 tmp_nm=$ac_dir/$lt_tmp_nm 7378 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7379 # Check to see if the nm accepts a BSD-compat flag. 7380 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7381 # nm: unknown option "B" ignored 7382 # Tru64's nm complains that /dev/null is an invalid object file 7383 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7384 case $build_os in 7385 mingw*) lt_bad_file=conftest.nm/nofile ;; 7386 *) lt_bad_file=/dev/null ;; 7387 esac 7388 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7389 *$lt_bad_file* | *'Invalid file or object type'*) 7390 lt_cv_path_NM="$tmp_nm -B" 7391 break 2 7392 ;; 7393 *) 7394 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7395 */dev/null*) 7396 lt_cv_path_NM="$tmp_nm -p" 7397 break 2 7398 ;; 7399 *) 7400 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7401 continue # so that we can try to find one that supports BSD flags 7402 ;; 7403 esac 7404 ;; 7405 esac 7406 fi 7407 done 7408 IFS=$lt_save_ifs 7409 done 7410 : ${lt_cv_path_NM=no} 7411fi 7412fi 7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7414$as_echo "$lt_cv_path_NM" >&6; } 7415if test no != "$lt_cv_path_NM"; then 7416 NM=$lt_cv_path_NM 7417else 7418 # Didn't find any BSD compatible name lister, look for dumpbin. 7419 if test -n "$DUMPBIN"; then : 7420 # Let the user override the test. 7421 else 7422 if test -n "$ac_tool_prefix"; then 7423 for ac_prog in dumpbin "link -dump" 7424 do 7425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7426set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7428$as_echo_n "checking for $ac_word... " >&6; } 7429if ${ac_cv_prog_DUMPBIN+:} false; then : 7430 $as_echo_n "(cached) " >&6 7431else 7432 if test -n "$DUMPBIN"; then 7433 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7434else 7435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7436for as_dir in $PATH 7437do 7438 IFS=$as_save_IFS 7439 test -z "$as_dir" && as_dir=. 7440 for ac_exec_ext in '' $ac_executable_extensions; do 7441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7442 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7444 break 2 7445 fi 7446done 7447 done 7448IFS=$as_save_IFS 7449 7450fi 7451fi 7452DUMPBIN=$ac_cv_prog_DUMPBIN 7453if test -n "$DUMPBIN"; then 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7455$as_echo "$DUMPBIN" >&6; } 7456else 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7458$as_echo "no" >&6; } 7459fi 7460 7461 7462 test -n "$DUMPBIN" && break 7463 done 7464fi 7465if test -z "$DUMPBIN"; then 7466 ac_ct_DUMPBIN=$DUMPBIN 7467 for ac_prog in dumpbin "link -dump" 7468do 7469 # Extract the first word of "$ac_prog", so it can be a program name with args. 7470set dummy $ac_prog; ac_word=$2 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7472$as_echo_n "checking for $ac_word... " >&6; } 7473if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7474 $as_echo_n "(cached) " >&6 7475else 7476 if test -n "$ac_ct_DUMPBIN"; then 7477 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7478else 7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7480for as_dir in $PATH 7481do 7482 IFS=$as_save_IFS 7483 test -z "$as_dir" && as_dir=. 7484 for ac_exec_ext in '' $ac_executable_extensions; do 7485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7486 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7488 break 2 7489 fi 7490done 7491 done 7492IFS=$as_save_IFS 7493 7494fi 7495fi 7496ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7497if test -n "$ac_ct_DUMPBIN"; then 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7499$as_echo "$ac_ct_DUMPBIN" >&6; } 7500else 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7502$as_echo "no" >&6; } 7503fi 7504 7505 7506 test -n "$ac_ct_DUMPBIN" && break 7507done 7508 7509 if test "x$ac_ct_DUMPBIN" = x; then 7510 DUMPBIN=":" 7511 else 7512 case $cross_compiling:$ac_tool_warned in 7513yes:) 7514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7516ac_tool_warned=yes ;; 7517esac 7518 DUMPBIN=$ac_ct_DUMPBIN 7519 fi 7520fi 7521 7522 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7523 *COFF*) 7524 DUMPBIN="$DUMPBIN -symbols -headers" 7525 ;; 7526 *) 7527 DUMPBIN=: 7528 ;; 7529 esac 7530 fi 7531 7532 if test : != "$DUMPBIN"; then 7533 NM=$DUMPBIN 7534 fi 7535fi 7536test -z "$NM" && NM=nm 7537 7538 7539 7540 7541 7542 7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7544$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7545if ${lt_cv_nm_interface+:} false; then : 7546 $as_echo_n "(cached) " >&6 7547else 7548 lt_cv_nm_interface="BSD nm" 7549 echo "int some_variable = 0;" > conftest.$ac_ext 7550 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7551 (eval "$ac_compile" 2>conftest.err) 7552 cat conftest.err >&5 7553 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7554 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7555 cat conftest.err >&5 7556 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7557 cat conftest.out >&5 7558 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7559 lt_cv_nm_interface="MS dumpbin" 7560 fi 7561 rm -f conftest* 7562fi 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7564$as_echo "$lt_cv_nm_interface" >&6; } 7565 7566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7567$as_echo_n "checking whether ln -s works... " >&6; } 7568LN_S=$as_ln_s 7569if test "$LN_S" = "ln -s"; then 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7571$as_echo "yes" >&6; } 7572else 7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7574$as_echo "no, using $LN_S" >&6; } 7575fi 7576 7577# find the maximum length of command line arguments 7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7579$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7580if ${lt_cv_sys_max_cmd_len+:} false; then : 7581 $as_echo_n "(cached) " >&6 7582else 7583 i=0 7584 teststring=ABCD 7585 7586 case $build_os in 7587 msdosdjgpp*) 7588 # On DJGPP, this test can blow up pretty badly due to problems in libc 7589 # (any single argument exceeding 2000 bytes causes a buffer overrun 7590 # during glob expansion). Even if it were fixed, the result of this 7591 # check would be larger than it should be. 7592 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7593 ;; 7594 7595 gnu*) 7596 # Under GNU Hurd, this test is not required because there is 7597 # no limit to the length of command line arguments. 7598 # Libtool will interpret -1 as no limit whatsoever 7599 lt_cv_sys_max_cmd_len=-1; 7600 ;; 7601 7602 cygwin* | mingw* | cegcc*) 7603 # On Win9x/ME, this test blows up -- it succeeds, but takes 7604 # about 5 minutes as the teststring grows exponentially. 7605 # Worse, since 9x/ME are not pre-emptively multitasking, 7606 # you end up with a "frozen" computer, even though with patience 7607 # the test eventually succeeds (with a max line length of 256k). 7608 # Instead, let's just punt: use the minimum linelength reported by 7609 # all of the supported platforms: 8192 (on NT/2K/XP). 7610 lt_cv_sys_max_cmd_len=8192; 7611 ;; 7612 7613 mint*) 7614 # On MiNT this can take a long time and run out of memory. 7615 lt_cv_sys_max_cmd_len=8192; 7616 ;; 7617 7618 amigaos*) 7619 # On AmigaOS with pdksh, this test takes hours, literally. 7620 # So we just punt and use a minimum line length of 8192. 7621 lt_cv_sys_max_cmd_len=8192; 7622 ;; 7623 7624 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7625 # This has been around since 386BSD, at least. Likely further. 7626 if test -x /sbin/sysctl; then 7627 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7628 elif test -x /usr/sbin/sysctl; then 7629 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7630 else 7631 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7632 fi 7633 # And add a safety zone 7634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7636 ;; 7637 7638 interix*) 7639 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7640 lt_cv_sys_max_cmd_len=196608 7641 ;; 7642 7643 os2*) 7644 # The test takes a long time on OS/2. 7645 lt_cv_sys_max_cmd_len=8192 7646 ;; 7647 7648 osf*) 7649 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7650 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7651 # nice to cause kernel panics so lets avoid the loop below. 7652 # First set a reasonable default. 7653 lt_cv_sys_max_cmd_len=16384 7654 # 7655 if test -x /sbin/sysconfig; then 7656 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7657 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7658 esac 7659 fi 7660 ;; 7661 sco3.2v5*) 7662 lt_cv_sys_max_cmd_len=102400 7663 ;; 7664 sysv5* | sco5v6* | sysv4.2uw2*) 7665 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7666 if test -n "$kargmax"; then 7667 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7668 else 7669 lt_cv_sys_max_cmd_len=32768 7670 fi 7671 ;; 7672 *) 7673 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7674 if test -n "$lt_cv_sys_max_cmd_len" && \ 7675 test undefined != "$lt_cv_sys_max_cmd_len"; then 7676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7678 else 7679 # Make teststring a little bigger before we do anything with it. 7680 # a 1K string should be a reasonable start. 7681 for i in 1 2 3 4 5 6 7 8; do 7682 teststring=$teststring$teststring 7683 done 7684 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7685 # If test is not a shell built-in, we'll probably end up computing a 7686 # maximum length that is only half of the actual maximum length, but 7687 # we can't tell. 7688 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7689 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7690 test 17 != "$i" # 1/2 MB should be enough 7691 do 7692 i=`expr $i + 1` 7693 teststring=$teststring$teststring 7694 done 7695 # Only check the string length outside the loop. 7696 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7697 teststring= 7698 # Add a significant safety factor because C++ compilers can tack on 7699 # massive amounts of additional arguments before passing them to the 7700 # linker. It appears as though 1/2 is a usable value. 7701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7702 fi 7703 ;; 7704 esac 7705 7706fi 7707 7708if test -n "$lt_cv_sys_max_cmd_len"; then 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7710$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7711else 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7713$as_echo "none" >&6; } 7714fi 7715max_cmd_len=$lt_cv_sys_max_cmd_len 7716 7717 7718 7719 7720 7721 7722: ${CP="cp -f"} 7723: ${MV="mv -f"} 7724: ${RM="rm -f"} 7725 7726if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7727 lt_unset=unset 7728else 7729 lt_unset=false 7730fi 7731 7732 7733 7734 7735 7736# test EBCDIC or ASCII 7737case `echo X|tr X '\101'` in 7738 A) # ASCII based system 7739 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7740 lt_SP2NL='tr \040 \012' 7741 lt_NL2SP='tr \015\012 \040\040' 7742 ;; 7743 *) # EBCDIC based system 7744 lt_SP2NL='tr \100 \n' 7745 lt_NL2SP='tr \r\n \100\100' 7746 ;; 7747esac 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7758$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7759if ${lt_cv_to_host_file_cmd+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761else 7762 case $host in 7763 *-*-mingw* ) 7764 case $build in 7765 *-*-mingw* ) # actually msys 7766 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7767 ;; 7768 *-*-cygwin* ) 7769 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7770 ;; 7771 * ) # otherwise, assume *nix 7772 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7773 ;; 7774 esac 7775 ;; 7776 *-*-cygwin* ) 7777 case $build in 7778 *-*-mingw* ) # actually msys 7779 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7780 ;; 7781 *-*-cygwin* ) 7782 lt_cv_to_host_file_cmd=func_convert_file_noop 7783 ;; 7784 * ) # otherwise, assume *nix 7785 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7786 ;; 7787 esac 7788 ;; 7789 * ) # unhandled hosts (and "normal" native builds) 7790 lt_cv_to_host_file_cmd=func_convert_file_noop 7791 ;; 7792esac 7793 7794fi 7795 7796to_host_file_cmd=$lt_cv_to_host_file_cmd 7797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7798$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7799 7800 7801 7802 7803 7804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7805$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7806if ${lt_cv_to_tool_file_cmd+:} false; then : 7807 $as_echo_n "(cached) " >&6 7808else 7809 #assume ordinary cross tools, or native build. 7810lt_cv_to_tool_file_cmd=func_convert_file_noop 7811case $host in 7812 *-*-mingw* ) 7813 case $build in 7814 *-*-mingw* ) # actually msys 7815 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7816 ;; 7817 esac 7818 ;; 7819esac 7820 7821fi 7822 7823to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7825$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7826 7827 7828 7829 7830 7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7832$as_echo_n "checking for $LD option to reload object files... " >&6; } 7833if ${lt_cv_ld_reload_flag+:} false; then : 7834 $as_echo_n "(cached) " >&6 7835else 7836 lt_cv_ld_reload_flag='-r' 7837fi 7838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7839$as_echo "$lt_cv_ld_reload_flag" >&6; } 7840reload_flag=$lt_cv_ld_reload_flag 7841case $reload_flag in 7842"" | " "*) ;; 7843*) reload_flag=" $reload_flag" ;; 7844esac 7845reload_cmds='$LD$reload_flag -o $output$reload_objs' 7846case $host_os in 7847 cygwin* | mingw* | pw32* | cegcc*) 7848 if test yes != "$GCC"; then 7849 reload_cmds=false 7850 fi 7851 ;; 7852 darwin*) 7853 if test yes = "$GCC"; then 7854 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7855 else 7856 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7857 fi 7858 ;; 7859esac 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869if test -n "$ac_tool_prefix"; then 7870 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7871set dummy ${ac_tool_prefix}objdump; ac_word=$2 7872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7873$as_echo_n "checking for $ac_word... " >&6; } 7874if ${ac_cv_prog_OBJDUMP+:} false; then : 7875 $as_echo_n "(cached) " >&6 7876else 7877 if test -n "$OBJDUMP"; then 7878 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7879else 7880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7881for as_dir in $PATH 7882do 7883 IFS=$as_save_IFS 7884 test -z "$as_dir" && as_dir=. 7885 for ac_exec_ext in '' $ac_executable_extensions; do 7886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7887 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7889 break 2 7890 fi 7891done 7892 done 7893IFS=$as_save_IFS 7894 7895fi 7896fi 7897OBJDUMP=$ac_cv_prog_OBJDUMP 7898if test -n "$OBJDUMP"; then 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7900$as_echo "$OBJDUMP" >&6; } 7901else 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7903$as_echo "no" >&6; } 7904fi 7905 7906 7907fi 7908if test -z "$ac_cv_prog_OBJDUMP"; then 7909 ac_ct_OBJDUMP=$OBJDUMP 7910 # Extract the first word of "objdump", so it can be a program name with args. 7911set dummy objdump; ac_word=$2 7912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7913$as_echo_n "checking for $ac_word... " >&6; } 7914if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7915 $as_echo_n "(cached) " >&6 7916else 7917 if test -n "$ac_ct_OBJDUMP"; then 7918 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7919else 7920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7921for as_dir in $PATH 7922do 7923 IFS=$as_save_IFS 7924 test -z "$as_dir" && as_dir=. 7925 for ac_exec_ext in '' $ac_executable_extensions; do 7926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7927 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7929 break 2 7930 fi 7931done 7932 done 7933IFS=$as_save_IFS 7934 7935fi 7936fi 7937ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7938if test -n "$ac_ct_OBJDUMP"; then 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7940$as_echo "$ac_ct_OBJDUMP" >&6; } 7941else 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7943$as_echo "no" >&6; } 7944fi 7945 7946 if test "x$ac_ct_OBJDUMP" = x; then 7947 OBJDUMP="false" 7948 else 7949 case $cross_compiling:$ac_tool_warned in 7950yes:) 7951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7953ac_tool_warned=yes ;; 7954esac 7955 OBJDUMP=$ac_ct_OBJDUMP 7956 fi 7957else 7958 OBJDUMP="$ac_cv_prog_OBJDUMP" 7959fi 7960 7961test -z "$OBJDUMP" && OBJDUMP=objdump 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7972$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7973if ${lt_cv_deplibs_check_method+:} false; then : 7974 $as_echo_n "(cached) " >&6 7975else 7976 lt_cv_file_magic_cmd='$MAGIC_CMD' 7977lt_cv_file_magic_test_file= 7978lt_cv_deplibs_check_method='unknown' 7979# Need to set the preceding variable on all platforms that support 7980# interlibrary dependencies. 7981# 'none' -- dependencies not supported. 7982# 'unknown' -- same as none, but documents that we really don't know. 7983# 'pass_all' -- all dependencies passed with no checks. 7984# 'test_compile' -- check by making test program. 7985# 'file_magic [[regex]]' -- check by looking for files in library path 7986# that responds to the $file_magic_cmd with a given extended regex. 7987# If you have 'file' or equivalent on your system and you're not sure 7988# whether 'pass_all' will *always* work, you probably want this one. 7989 7990case $host_os in 7991aix[4-9]*) 7992 lt_cv_deplibs_check_method=pass_all 7993 ;; 7994 7995beos*) 7996 lt_cv_deplibs_check_method=pass_all 7997 ;; 7998 7999bsdi[45]*) 8000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8001 lt_cv_file_magic_cmd='/usr/bin/file -L' 8002 lt_cv_file_magic_test_file=/shlib/libc.so 8003 ;; 8004 8005cygwin*) 8006 # func_win32_libid is a shell function defined in ltmain.sh 8007 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8008 lt_cv_file_magic_cmd='func_win32_libid' 8009 ;; 8010 8011mingw* | pw32*) 8012 # Base MSYS/MinGW do not provide the 'file' command needed by 8013 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8014 # unless we find 'file', for example because we are cross-compiling. 8015 if ( file / ) >/dev/null 2>&1; then 8016 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8017 lt_cv_file_magic_cmd='func_win32_libid' 8018 else 8019 # Keep this pattern in sync with the one in func_win32_libid. 8020 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8021 lt_cv_file_magic_cmd='$OBJDUMP -f' 8022 fi 8023 ;; 8024 8025cegcc*) 8026 # use the weaker test based on 'objdump'. See mingw*. 8027 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8028 lt_cv_file_magic_cmd='$OBJDUMP -f' 8029 ;; 8030 8031darwin* | rhapsody*) 8032 lt_cv_deplibs_check_method=pass_all 8033 ;; 8034 8035freebsd* | dragonfly*) 8036 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8037 case $host_cpu in 8038 i*86 ) 8039 # Not sure whether the presence of OpenBSD here was a mistake. 8040 # Let's accept both of them until this is cleared up. 8041 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8042 lt_cv_file_magic_cmd=/usr/bin/file 8043 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8044 ;; 8045 esac 8046 else 8047 lt_cv_deplibs_check_method=pass_all 8048 fi 8049 ;; 8050 8051haiku*) 8052 lt_cv_deplibs_check_method=pass_all 8053 ;; 8054 8055hpux10.20* | hpux11*) 8056 lt_cv_file_magic_cmd=/usr/bin/file 8057 case $host_cpu in 8058 ia64*) 8059 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8060 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8061 ;; 8062 hppa*64*) 8063 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 8064 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8065 ;; 8066 *) 8067 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8068 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8069 ;; 8070 esac 8071 ;; 8072 8073interix[3-9]*) 8074 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8076 ;; 8077 8078irix5* | irix6* | nonstopux*) 8079 case $LD in 8080 *-32|*"-32 ") libmagic=32-bit;; 8081 *-n32|*"-n32 ") libmagic=N32;; 8082 *-64|*"-64 ") libmagic=64-bit;; 8083 *) libmagic=never-match;; 8084 esac 8085 lt_cv_deplibs_check_method=pass_all 8086 ;; 8087 8088# This must be glibc/ELF. 8089linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8090 lt_cv_deplibs_check_method=pass_all 8091 ;; 8092 8093netbsd*) 8094 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8096 else 8097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8098 fi 8099 ;; 8100 8101newos6*) 8102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8103 lt_cv_file_magic_cmd=/usr/bin/file 8104 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8105 ;; 8106 8107*nto* | *qnx*) 8108 lt_cv_deplibs_check_method=pass_all 8109 ;; 8110 8111openbsd* | bitrig*) 8112 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8114 else 8115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8116 fi 8117 ;; 8118 8119osf3* | osf4* | osf5*) 8120 lt_cv_deplibs_check_method=pass_all 8121 ;; 8122 8123rdos*) 8124 lt_cv_deplibs_check_method=pass_all 8125 ;; 8126 8127solaris*) 8128 lt_cv_deplibs_check_method=pass_all 8129 ;; 8130 8131sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8132 lt_cv_deplibs_check_method=pass_all 8133 ;; 8134 8135sysv4 | sysv4.3*) 8136 case $host_vendor in 8137 motorola) 8138 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 8139 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8140 ;; 8141 ncr) 8142 lt_cv_deplibs_check_method=pass_all 8143 ;; 8144 sequent) 8145 lt_cv_file_magic_cmd='/bin/file' 8146 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8147 ;; 8148 sni) 8149 lt_cv_file_magic_cmd='/bin/file' 8150 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8151 lt_cv_file_magic_test_file=/lib/libc.so 8152 ;; 8153 siemens) 8154 lt_cv_deplibs_check_method=pass_all 8155 ;; 8156 pc) 8157 lt_cv_deplibs_check_method=pass_all 8158 ;; 8159 esac 8160 ;; 8161 8162tpf*) 8163 lt_cv_deplibs_check_method=pass_all 8164 ;; 8165os2*) 8166 lt_cv_deplibs_check_method=pass_all 8167 ;; 8168esac 8169 8170fi 8171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8172$as_echo "$lt_cv_deplibs_check_method" >&6; } 8173 8174file_magic_glob= 8175want_nocaseglob=no 8176if test "$build" = "$host"; then 8177 case $host_os in 8178 mingw* | pw32*) 8179 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8180 want_nocaseglob=yes 8181 else 8182 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8183 fi 8184 ;; 8185 esac 8186fi 8187 8188file_magic_cmd=$lt_cv_file_magic_cmd 8189deplibs_check_method=$lt_cv_deplibs_check_method 8190test -z "$deplibs_check_method" && deplibs_check_method=unknown 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213if test -n "$ac_tool_prefix"; then 8214 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8215set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8217$as_echo_n "checking for $ac_word... " >&6; } 8218if ${ac_cv_prog_DLLTOOL+:} false; then : 8219 $as_echo_n "(cached) " >&6 8220else 8221 if test -n "$DLLTOOL"; then 8222 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8223else 8224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8225for as_dir in $PATH 8226do 8227 IFS=$as_save_IFS 8228 test -z "$as_dir" && as_dir=. 8229 for ac_exec_ext in '' $ac_executable_extensions; do 8230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8231 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8233 break 2 8234 fi 8235done 8236 done 8237IFS=$as_save_IFS 8238 8239fi 8240fi 8241DLLTOOL=$ac_cv_prog_DLLTOOL 8242if test -n "$DLLTOOL"; then 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8244$as_echo "$DLLTOOL" >&6; } 8245else 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8247$as_echo "no" >&6; } 8248fi 8249 8250 8251fi 8252if test -z "$ac_cv_prog_DLLTOOL"; then 8253 ac_ct_DLLTOOL=$DLLTOOL 8254 # Extract the first word of "dlltool", so it can be a program name with args. 8255set dummy dlltool; ac_word=$2 8256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8257$as_echo_n "checking for $ac_word... " >&6; } 8258if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8259 $as_echo_n "(cached) " >&6 8260else 8261 if test -n "$ac_ct_DLLTOOL"; then 8262 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8263else 8264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8265for as_dir in $PATH 8266do 8267 IFS=$as_save_IFS 8268 test -z "$as_dir" && as_dir=. 8269 for ac_exec_ext in '' $ac_executable_extensions; do 8270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8271 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8273 break 2 8274 fi 8275done 8276 done 8277IFS=$as_save_IFS 8278 8279fi 8280fi 8281ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8282if test -n "$ac_ct_DLLTOOL"; then 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8284$as_echo "$ac_ct_DLLTOOL" >&6; } 8285else 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8287$as_echo "no" >&6; } 8288fi 8289 8290 if test "x$ac_ct_DLLTOOL" = x; then 8291 DLLTOOL="false" 8292 else 8293 case $cross_compiling:$ac_tool_warned in 8294yes:) 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8297ac_tool_warned=yes ;; 8298esac 8299 DLLTOOL=$ac_ct_DLLTOOL 8300 fi 8301else 8302 DLLTOOL="$ac_cv_prog_DLLTOOL" 8303fi 8304 8305test -z "$DLLTOOL" && DLLTOOL=dlltool 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8317$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8318if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8319 $as_echo_n "(cached) " >&6 8320else 8321 lt_cv_sharedlib_from_linklib_cmd='unknown' 8322 8323case $host_os in 8324cygwin* | mingw* | pw32* | cegcc*) 8325 # two different shell functions defined in ltmain.sh; 8326 # decide which one to use based on capabilities of $DLLTOOL 8327 case `$DLLTOOL --help 2>&1` in 8328 *--identify-strict*) 8329 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8330 ;; 8331 *) 8332 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8333 ;; 8334 esac 8335 ;; 8336*) 8337 # fallback: assume linklib IS sharedlib 8338 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8339 ;; 8340esac 8341 8342fi 8343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8344$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8345sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8346test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8347 8348 8349 8350 8351 8352 8353 8354if test -n "$ac_tool_prefix"; then 8355 for ac_prog in ar 8356 do 8357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8358set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8360$as_echo_n "checking for $ac_word... " >&6; } 8361if ${ac_cv_prog_AR+:} false; then : 8362 $as_echo_n "(cached) " >&6 8363else 8364 if test -n "$AR"; then 8365 ac_cv_prog_AR="$AR" # Let the user override the test. 8366else 8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8368for as_dir in $PATH 8369do 8370 IFS=$as_save_IFS 8371 test -z "$as_dir" && as_dir=. 8372 for ac_exec_ext in '' $ac_executable_extensions; do 8373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8374 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8376 break 2 8377 fi 8378done 8379 done 8380IFS=$as_save_IFS 8381 8382fi 8383fi 8384AR=$ac_cv_prog_AR 8385if test -n "$AR"; then 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8387$as_echo "$AR" >&6; } 8388else 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8390$as_echo "no" >&6; } 8391fi 8392 8393 8394 test -n "$AR" && break 8395 done 8396fi 8397if test -z "$AR"; then 8398 ac_ct_AR=$AR 8399 for ac_prog in ar 8400do 8401 # Extract the first word of "$ac_prog", so it can be a program name with args. 8402set dummy $ac_prog; ac_word=$2 8403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8404$as_echo_n "checking for $ac_word... " >&6; } 8405if ${ac_cv_prog_ac_ct_AR+:} false; then : 8406 $as_echo_n "(cached) " >&6 8407else 8408 if test -n "$ac_ct_AR"; then 8409 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8410else 8411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8412for as_dir in $PATH 8413do 8414 IFS=$as_save_IFS 8415 test -z "$as_dir" && as_dir=. 8416 for ac_exec_ext in '' $ac_executable_extensions; do 8417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8418 ac_cv_prog_ac_ct_AR="$ac_prog" 8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8420 break 2 8421 fi 8422done 8423 done 8424IFS=$as_save_IFS 8425 8426fi 8427fi 8428ac_ct_AR=$ac_cv_prog_ac_ct_AR 8429if test -n "$ac_ct_AR"; then 8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8431$as_echo "$ac_ct_AR" >&6; } 8432else 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8434$as_echo "no" >&6; } 8435fi 8436 8437 8438 test -n "$ac_ct_AR" && break 8439done 8440 8441 if test "x$ac_ct_AR" = x; then 8442 AR="false" 8443 else 8444 case $cross_compiling:$ac_tool_warned in 8445yes:) 8446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8448ac_tool_warned=yes ;; 8449esac 8450 AR=$ac_ct_AR 8451 fi 8452fi 8453 8454: ${AR=ar} 8455: ${AR_FLAGS=cru} 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8468$as_echo_n "checking for archiver @FILE support... " >&6; } 8469if ${lt_cv_ar_at_file+:} false; then : 8470 $as_echo_n "(cached) " >&6 8471else 8472 lt_cv_ar_at_file=no 8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8474/* end confdefs.h. */ 8475 8476int 8477main () 8478{ 8479 8480 ; 8481 return 0; 8482} 8483_ACEOF 8484if ac_fn_c_try_compile "$LINENO"; then : 8485 echo conftest.$ac_objext > conftest.lst 8486 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8488 (eval $lt_ar_try) 2>&5 8489 ac_status=$? 8490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8491 test $ac_status = 0; } 8492 if test 0 -eq "$ac_status"; then 8493 # Ensure the archiver fails upon bogus file names. 8494 rm -f conftest.$ac_objext libconftest.a 8495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8496 (eval $lt_ar_try) 2>&5 8497 ac_status=$? 8498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8499 test $ac_status = 0; } 8500 if test 0 -ne "$ac_status"; then 8501 lt_cv_ar_at_file=@ 8502 fi 8503 fi 8504 rm -f conftest.* libconftest.a 8505 8506fi 8507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8508 8509fi 8510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8511$as_echo "$lt_cv_ar_at_file" >&6; } 8512 8513if test no = "$lt_cv_ar_at_file"; then 8514 archiver_list_spec= 8515else 8516 archiver_list_spec=$lt_cv_ar_at_file 8517fi 8518 8519 8520 8521 8522 8523 8524 8525if test -n "$ac_tool_prefix"; then 8526 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8527set dummy ${ac_tool_prefix}strip; ac_word=$2 8528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8529$as_echo_n "checking for $ac_word... " >&6; } 8530if ${ac_cv_prog_STRIP+:} false; then : 8531 $as_echo_n "(cached) " >&6 8532else 8533 if test -n "$STRIP"; then 8534 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8535else 8536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8537for as_dir in $PATH 8538do 8539 IFS=$as_save_IFS 8540 test -z "$as_dir" && as_dir=. 8541 for ac_exec_ext in '' $ac_executable_extensions; do 8542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8543 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8545 break 2 8546 fi 8547done 8548 done 8549IFS=$as_save_IFS 8550 8551fi 8552fi 8553STRIP=$ac_cv_prog_STRIP 8554if test -n "$STRIP"; then 8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8556$as_echo "$STRIP" >&6; } 8557else 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8559$as_echo "no" >&6; } 8560fi 8561 8562 8563fi 8564if test -z "$ac_cv_prog_STRIP"; then 8565 ac_ct_STRIP=$STRIP 8566 # Extract the first word of "strip", so it can be a program name with args. 8567set dummy strip; ac_word=$2 8568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8569$as_echo_n "checking for $ac_word... " >&6; } 8570if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8571 $as_echo_n "(cached) " >&6 8572else 8573 if test -n "$ac_ct_STRIP"; then 8574 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8575else 8576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8577for as_dir in $PATH 8578do 8579 IFS=$as_save_IFS 8580 test -z "$as_dir" && as_dir=. 8581 for ac_exec_ext in '' $ac_executable_extensions; do 8582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8583 ac_cv_prog_ac_ct_STRIP="strip" 8584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8585 break 2 8586 fi 8587done 8588 done 8589IFS=$as_save_IFS 8590 8591fi 8592fi 8593ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8594if test -n "$ac_ct_STRIP"; then 8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8596$as_echo "$ac_ct_STRIP" >&6; } 8597else 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8599$as_echo "no" >&6; } 8600fi 8601 8602 if test "x$ac_ct_STRIP" = x; then 8603 STRIP=":" 8604 else 8605 case $cross_compiling:$ac_tool_warned in 8606yes:) 8607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8609ac_tool_warned=yes ;; 8610esac 8611 STRIP=$ac_ct_STRIP 8612 fi 8613else 8614 STRIP="$ac_cv_prog_STRIP" 8615fi 8616 8617test -z "$STRIP" && STRIP=: 8618 8619 8620 8621 8622 8623 8624if test -n "$ac_tool_prefix"; then 8625 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8626set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8628$as_echo_n "checking for $ac_word... " >&6; } 8629if ${ac_cv_prog_RANLIB+:} false; then : 8630 $as_echo_n "(cached) " >&6 8631else 8632 if test -n "$RANLIB"; then 8633 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8634else 8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8636for as_dir in $PATH 8637do 8638 IFS=$as_save_IFS 8639 test -z "$as_dir" && as_dir=. 8640 for ac_exec_ext in '' $ac_executable_extensions; do 8641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8642 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8644 break 2 8645 fi 8646done 8647 done 8648IFS=$as_save_IFS 8649 8650fi 8651fi 8652RANLIB=$ac_cv_prog_RANLIB 8653if test -n "$RANLIB"; then 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8655$as_echo "$RANLIB" >&6; } 8656else 8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8658$as_echo "no" >&6; } 8659fi 8660 8661 8662fi 8663if test -z "$ac_cv_prog_RANLIB"; then 8664 ac_ct_RANLIB=$RANLIB 8665 # Extract the first word of "ranlib", so it can be a program name with args. 8666set dummy ranlib; ac_word=$2 8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8668$as_echo_n "checking for $ac_word... " >&6; } 8669if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8670 $as_echo_n "(cached) " >&6 8671else 8672 if test -n "$ac_ct_RANLIB"; then 8673 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8674else 8675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8676for as_dir in $PATH 8677do 8678 IFS=$as_save_IFS 8679 test -z "$as_dir" && as_dir=. 8680 for ac_exec_ext in '' $ac_executable_extensions; do 8681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8682 ac_cv_prog_ac_ct_RANLIB="ranlib" 8683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8684 break 2 8685 fi 8686done 8687 done 8688IFS=$as_save_IFS 8689 8690fi 8691fi 8692ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8693if test -n "$ac_ct_RANLIB"; then 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8695$as_echo "$ac_ct_RANLIB" >&6; } 8696else 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8698$as_echo "no" >&6; } 8699fi 8700 8701 if test "x$ac_ct_RANLIB" = x; then 8702 RANLIB=":" 8703 else 8704 case $cross_compiling:$ac_tool_warned in 8705yes:) 8706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8708ac_tool_warned=yes ;; 8709esac 8710 RANLIB=$ac_ct_RANLIB 8711 fi 8712else 8713 RANLIB="$ac_cv_prog_RANLIB" 8714fi 8715 8716test -z "$RANLIB" && RANLIB=: 8717 8718 8719 8720 8721 8722 8723# Determine commands to create old-style static archives. 8724old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8725old_postinstall_cmds='chmod 644 $oldlib' 8726old_postuninstall_cmds= 8727 8728if test -n "$RANLIB"; then 8729 case $host_os in 8730 bitrig* | openbsd*) 8731 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8732 ;; 8733 *) 8734 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8735 ;; 8736 esac 8737 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8738fi 8739 8740case $host_os in 8741 darwin*) 8742 lock_old_archive_extraction=yes ;; 8743 *) 8744 lock_old_archive_extraction=no ;; 8745esac 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767for ac_prog in gawk mawk nawk awk 8768do 8769 # Extract the first word of "$ac_prog", so it can be a program name with args. 8770set dummy $ac_prog; ac_word=$2 8771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8772$as_echo_n "checking for $ac_word... " >&6; } 8773if ${ac_cv_prog_AWK+:} false; then : 8774 $as_echo_n "(cached) " >&6 8775else 8776 if test -n "$AWK"; then 8777 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8778else 8779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8780for as_dir in $PATH 8781do 8782 IFS=$as_save_IFS 8783 test -z "$as_dir" && as_dir=. 8784 for ac_exec_ext in '' $ac_executable_extensions; do 8785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8786 ac_cv_prog_AWK="$ac_prog" 8787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8788 break 2 8789 fi 8790done 8791 done 8792IFS=$as_save_IFS 8793 8794fi 8795fi 8796AWK=$ac_cv_prog_AWK 8797if test -n "$AWK"; then 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8799$as_echo "$AWK" >&6; } 8800else 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8802$as_echo "no" >&6; } 8803fi 8804 8805 8806 test -n "$AWK" && break 8807done 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827# If no C compiler was specified, use CC. 8828LTCC=${LTCC-"$CC"} 8829 8830# If no C compiler flags were specified, use CFLAGS. 8831LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8832 8833# Allow CC to be a program name with arguments. 8834compiler=$CC 8835 8836 8837# Check for command to grab the raw symbol name followed by C symbol from nm. 8838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8839$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8840if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8841 $as_echo_n "(cached) " >&6 8842else 8843 8844# These are sane defaults that work on at least a few old systems. 8845# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8846 8847# Character class describing NM global symbol codes. 8848symcode='[BCDEGRST]' 8849 8850# Regexp to match symbols that can be accessed directly from C. 8851sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8852 8853# Define system-specific variables. 8854case $host_os in 8855aix*) 8856 symcode='[BCDT]' 8857 ;; 8858cygwin* | mingw* | pw32* | cegcc*) 8859 symcode='[ABCDGISTW]' 8860 ;; 8861hpux*) 8862 if test ia64 = "$host_cpu"; then 8863 symcode='[ABCDEGRST]' 8864 fi 8865 ;; 8866irix* | nonstopux*) 8867 symcode='[BCDEGRST]' 8868 ;; 8869osf*) 8870 symcode='[BCDEGQRST]' 8871 ;; 8872solaris*) 8873 symcode='[BDRT]' 8874 ;; 8875sco3.2v5*) 8876 symcode='[DT]' 8877 ;; 8878sysv4.2uw2*) 8879 symcode='[DT]' 8880 ;; 8881sysv5* | sco5v6* | unixware* | OpenUNIX*) 8882 symcode='[ABDT]' 8883 ;; 8884sysv4) 8885 symcode='[DFNSTU]' 8886 ;; 8887esac 8888 8889# If we're using GNU nm, then use its standard symbol codes. 8890case `$NM -V 2>&1` in 8891*GNU* | *'with BFD'*) 8892 symcode='[ABCDGIRSTW]' ;; 8893esac 8894 8895if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8896 # Gets list of data symbols to import. 8897 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8898 # Adjust the below global symbol transforms to fixup imported variables. 8899 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8900 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8901 lt_c_name_lib_hook="\ 8902 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8903 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8904else 8905 # Disable hooks by default. 8906 lt_cv_sys_global_symbol_to_import= 8907 lt_cdecl_hook= 8908 lt_c_name_hook= 8909 lt_c_name_lib_hook= 8910fi 8911 8912# Transform an extracted symbol line into a proper C declaration. 8913# Some systems (esp. on ia64) link data and code symbols differently, 8914# so use this general approach. 8915lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8916$lt_cdecl_hook\ 8917" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8918" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8919 8920# Transform an extracted symbol line into symbol name and symbol address 8921lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8922$lt_c_name_hook\ 8923" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8924" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8925 8926# Transform an extracted symbol line into symbol name with lib prefix and 8927# symbol address. 8928lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8929$lt_c_name_lib_hook\ 8930" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8931" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8932" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8933 8934# Handle CRLF in mingw tool chain 8935opt_cr= 8936case $build_os in 8937mingw*) 8938 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8939 ;; 8940esac 8941 8942# Try without a prefix underscore, then with it. 8943for ac_symprfx in "" "_"; do 8944 8945 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8946 symxfrm="\\1 $ac_symprfx\\2 \\2" 8947 8948 # Write the raw and C identifiers. 8949 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8950 # Fake it for dumpbin and say T for any non-static function, 8951 # D for any global variable and I for any imported variable. 8952 # Also find C++ and __fastcall symbols from MSVC++, 8953 # which start with @ or ?. 8954 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8955" {last_section=section; section=\$ 3};"\ 8956" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8957" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8958" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8959" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8960" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8961" \$ 0!~/External *\|/{next};"\ 8962" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8963" {if(hide[section]) next};"\ 8964" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8965" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8966" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8967" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8968" ' prfx=^$ac_symprfx" 8969 else 8970 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8971 fi 8972 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8973 8974 # Check to see that the pipe works correctly. 8975 pipe_works=no 8976 8977 rm -f conftest* 8978 cat > conftest.$ac_ext <<_LT_EOF 8979#ifdef __cplusplus 8980extern "C" { 8981#endif 8982char nm_test_var; 8983void nm_test_func(void); 8984void nm_test_func(void){} 8985#ifdef __cplusplus 8986} 8987#endif 8988int main(){nm_test_var='a';nm_test_func();return(0);} 8989_LT_EOF 8990 8991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8992 (eval $ac_compile) 2>&5 8993 ac_status=$? 8994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8995 test $ac_status = 0; }; then 8996 # Now try to grab the symbols. 8997 nlist=conftest.nm 8998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8999 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9000 ac_status=$? 9001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9002 test $ac_status = 0; } && test -s "$nlist"; then 9003 # Try sorting and uniquifying the output. 9004 if sort "$nlist" | uniq > "$nlist"T; then 9005 mv -f "$nlist"T "$nlist" 9006 else 9007 rm -f "$nlist"T 9008 fi 9009 9010 # Make sure that we snagged all the symbols we need. 9011 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9012 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9013 cat <<_LT_EOF > conftest.$ac_ext 9014/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9015#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9016/* DATA imports from DLLs on WIN32 can't be const, because runtime 9017 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9018# define LT_DLSYM_CONST 9019#elif defined __osf__ 9020/* This system does not cope well with relocations in const data. */ 9021# define LT_DLSYM_CONST 9022#else 9023# define LT_DLSYM_CONST const 9024#endif 9025 9026#ifdef __cplusplus 9027extern "C" { 9028#endif 9029 9030_LT_EOF 9031 # Now generate the symbol file. 9032 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9033 9034 cat <<_LT_EOF >> conftest.$ac_ext 9035 9036/* The mapping between symbol names and symbols. */ 9037LT_DLSYM_CONST struct { 9038 const char *name; 9039 void *address; 9040} 9041lt__PROGRAM__LTX_preloaded_symbols[] = 9042{ 9043 { "@PROGRAM@", (void *) 0 }, 9044_LT_EOF 9045 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9046 cat <<\_LT_EOF >> conftest.$ac_ext 9047 {0, (void *) 0} 9048}; 9049 9050/* This works around a problem in FreeBSD linker */ 9051#ifdef FREEBSD_WORKAROUND 9052static const void *lt_preloaded_setup() { 9053 return lt__PROGRAM__LTX_preloaded_symbols; 9054} 9055#endif 9056 9057#ifdef __cplusplus 9058} 9059#endif 9060_LT_EOF 9061 # Now try linking the two files. 9062 mv conftest.$ac_objext conftstm.$ac_objext 9063 lt_globsym_save_LIBS=$LIBS 9064 lt_globsym_save_CFLAGS=$CFLAGS 9065 LIBS=conftstm.$ac_objext 9066 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9068 (eval $ac_link) 2>&5 9069 ac_status=$? 9070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9071 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9072 pipe_works=yes 9073 fi 9074 LIBS=$lt_globsym_save_LIBS 9075 CFLAGS=$lt_globsym_save_CFLAGS 9076 else 9077 echo "cannot find nm_test_func in $nlist" >&5 9078 fi 9079 else 9080 echo "cannot find nm_test_var in $nlist" >&5 9081 fi 9082 else 9083 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9084 fi 9085 else 9086 echo "$progname: failed program was:" >&5 9087 cat conftest.$ac_ext >&5 9088 fi 9089 rm -rf conftest* conftst* 9090 9091 # Do not use the global_symbol_pipe unless it works. 9092 if test yes = "$pipe_works"; then 9093 break 9094 else 9095 lt_cv_sys_global_symbol_pipe= 9096 fi 9097done 9098 9099fi 9100 9101if test -z "$lt_cv_sys_global_symbol_pipe"; then 9102 lt_cv_sys_global_symbol_to_cdecl= 9103fi 9104if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9106$as_echo "failed" >&6; } 9107else 9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9109$as_echo "ok" >&6; } 9110fi 9111 9112# Response file support. 9113if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9114 nm_file_list_spec='@' 9115elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9116 nm_file_list_spec='@' 9117fi 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9156$as_echo_n "checking for sysroot... " >&6; } 9157 9158# Check whether --with-sysroot was given. 9159if test "${with_sysroot+set}" = set; then : 9160 withval=$with_sysroot; 9161else 9162 with_sysroot=no 9163fi 9164 9165 9166lt_sysroot= 9167case $with_sysroot in #( 9168 yes) 9169 if test yes = "$GCC"; then 9170 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9171 fi 9172 ;; #( 9173 /*) 9174 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9175 ;; #( 9176 no|'') 9177 ;; #( 9178 *) 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9180$as_echo "$with_sysroot" >&6; } 9181 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9182 ;; 9183esac 9184 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9186$as_echo "${lt_sysroot:-no}" >&6; } 9187 9188 9189 9190 9191 9192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9193$as_echo_n "checking for a working dd... " >&6; } 9194if ${ac_cv_path_lt_DD+:} false; then : 9195 $as_echo_n "(cached) " >&6 9196else 9197 printf 0123456789abcdef0123456789abcdef >conftest.i 9198cat conftest.i conftest.i >conftest2.i 9199: ${lt_DD:=$DD} 9200if test -z "$lt_DD"; then 9201 ac_path_lt_DD_found=false 9202 # Loop through the user's path and test for each of PROGNAME-LIST 9203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9204for as_dir in $PATH 9205do 9206 IFS=$as_save_IFS 9207 test -z "$as_dir" && as_dir=. 9208 for ac_prog in dd; do 9209 for ac_exec_ext in '' $ac_executable_extensions; do 9210 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9211 as_fn_executable_p "$ac_path_lt_DD" || continue 9212if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9213 cmp -s conftest.i conftest.out \ 9214 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9215fi 9216 $ac_path_lt_DD_found && break 3 9217 done 9218 done 9219 done 9220IFS=$as_save_IFS 9221 if test -z "$ac_cv_path_lt_DD"; then 9222 : 9223 fi 9224else 9225 ac_cv_path_lt_DD=$lt_DD 9226fi 9227 9228rm -f conftest.i conftest2.i conftest.out 9229fi 9230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9231$as_echo "$ac_cv_path_lt_DD" >&6; } 9232 9233 9234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9235$as_echo_n "checking how to truncate binary pipes... " >&6; } 9236if ${lt_cv_truncate_bin+:} false; then : 9237 $as_echo_n "(cached) " >&6 9238else 9239 printf 0123456789abcdef0123456789abcdef >conftest.i 9240cat conftest.i conftest.i >conftest2.i 9241lt_cv_truncate_bin= 9242if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9243 cmp -s conftest.i conftest.out \ 9244 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9245fi 9246rm -f conftest.i conftest2.i conftest.out 9247test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9248fi 9249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9250$as_echo "$lt_cv_truncate_bin" >&6; } 9251 9252 9253 9254 9255 9256 9257 9258# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9259func_cc_basename () 9260{ 9261 for cc_temp in $*""; do 9262 case $cc_temp in 9263 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9264 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9265 \-*) ;; 9266 *) break;; 9267 esac 9268 done 9269 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9270} 9271 9272# Check whether --enable-libtool-lock was given. 9273if test "${enable_libtool_lock+set}" = set; then : 9274 enableval=$enable_libtool_lock; 9275fi 9276 9277test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9278 9279# Some flags need to be propagated to the compiler or linker for good 9280# libtool support. 9281case $host in 9282ia64-*-hpux*) 9283 # Find out what ABI is being produced by ac_compile, and set mode 9284 # options accordingly. 9285 echo 'int i;' > conftest.$ac_ext 9286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9287 (eval $ac_compile) 2>&5 9288 ac_status=$? 9289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9290 test $ac_status = 0; }; then 9291 case `/usr/bin/file conftest.$ac_objext` in 9292 *ELF-32*) 9293 HPUX_IA64_MODE=32 9294 ;; 9295 *ELF-64*) 9296 HPUX_IA64_MODE=64 9297 ;; 9298 esac 9299 fi 9300 rm -rf conftest* 9301 ;; 9302*-*-irix6*) 9303 # Find out what ABI is being produced by ac_compile, and set linker 9304 # options accordingly. 9305 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9307 (eval $ac_compile) 2>&5 9308 ac_status=$? 9309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9310 test $ac_status = 0; }; then 9311 if test yes = "$lt_cv_prog_gnu_ld"; then 9312 case `/usr/bin/file conftest.$ac_objext` in 9313 *32-bit*) 9314 LD="${LD-ld} -melf32bsmip" 9315 ;; 9316 *N32*) 9317 LD="${LD-ld} -melf32bmipn32" 9318 ;; 9319 *64-bit*) 9320 LD="${LD-ld} -melf64bmip" 9321 ;; 9322 esac 9323 else 9324 case `/usr/bin/file conftest.$ac_objext` in 9325 *32-bit*) 9326 LD="${LD-ld} -32" 9327 ;; 9328 *N32*) 9329 LD="${LD-ld} -n32" 9330 ;; 9331 *64-bit*) 9332 LD="${LD-ld} -64" 9333 ;; 9334 esac 9335 fi 9336 fi 9337 rm -rf conftest* 9338 ;; 9339 9340mips64*-*linux*) 9341 # Find out what ABI is being produced by ac_compile, and set linker 9342 # options accordingly. 9343 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9345 (eval $ac_compile) 2>&5 9346 ac_status=$? 9347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9348 test $ac_status = 0; }; then 9349 emul=elf 9350 case `/usr/bin/file conftest.$ac_objext` in 9351 *32-bit*) 9352 emul="${emul}32" 9353 ;; 9354 *64-bit*) 9355 emul="${emul}64" 9356 ;; 9357 esac 9358 case `/usr/bin/file conftest.$ac_objext` in 9359 *MSB*) 9360 emul="${emul}btsmip" 9361 ;; 9362 *LSB*) 9363 emul="${emul}ltsmip" 9364 ;; 9365 esac 9366 case `/usr/bin/file conftest.$ac_objext` in 9367 *N32*) 9368 emul="${emul}n32" 9369 ;; 9370 esac 9371 LD="${LD-ld} -m $emul" 9372 fi 9373 rm -rf conftest* 9374 ;; 9375 9376x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9377s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9378 # Find out what ABI is being produced by ac_compile, and set linker 9379 # options accordingly. Note that the listed cases only cover the 9380 # situations where additional linker options are needed (such as when 9381 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9382 # vice versa); the common cases where no linker options are needed do 9383 # not appear in the list. 9384 echo 'int i;' > conftest.$ac_ext 9385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9386 (eval $ac_compile) 2>&5 9387 ac_status=$? 9388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9389 test $ac_status = 0; }; then 9390 case `/usr/bin/file conftest.o` in 9391 *32-bit*) 9392 case $host in 9393 x86_64-*kfreebsd*-gnu) 9394 LD="${LD-ld} -m elf_i386_fbsd" 9395 ;; 9396 x86_64-*linux*) 9397 case `/usr/bin/file conftest.o` in 9398 *x86-64*) 9399 LD="${LD-ld} -m elf32_x86_64" 9400 ;; 9401 *) 9402 LD="${LD-ld} -m elf_i386" 9403 ;; 9404 esac 9405 ;; 9406 powerpc64le-*linux*) 9407 LD="${LD-ld} -m elf32lppclinux" 9408 ;; 9409 powerpc64-*linux*) 9410 LD="${LD-ld} -m elf32ppclinux" 9411 ;; 9412 s390x-*linux*) 9413 LD="${LD-ld} -m elf_s390" 9414 ;; 9415 sparc64-*linux*) 9416 LD="${LD-ld} -m elf32_sparc" 9417 ;; 9418 esac 9419 ;; 9420 *64-bit*) 9421 case $host in 9422 x86_64-*kfreebsd*-gnu) 9423 LD="${LD-ld} -m elf_x86_64_fbsd" 9424 ;; 9425 x86_64-*linux*) 9426 LD="${LD-ld} -m elf_x86_64" 9427 ;; 9428 powerpcle-*linux*) 9429 LD="${LD-ld} -m elf64lppc" 9430 ;; 9431 powerpc-*linux*) 9432 LD="${LD-ld} -m elf64ppc" 9433 ;; 9434 s390*-*linux*|s390*-*tpf*) 9435 LD="${LD-ld} -m elf64_s390" 9436 ;; 9437 sparc*-*linux*) 9438 LD="${LD-ld} -m elf64_sparc" 9439 ;; 9440 esac 9441 ;; 9442 esac 9443 fi 9444 rm -rf conftest* 9445 ;; 9446 9447*-*-sco3.2v5*) 9448 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9449 SAVE_CFLAGS=$CFLAGS 9450 CFLAGS="$CFLAGS -belf" 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9452$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9453if ${lt_cv_cc_needs_belf+:} false; then : 9454 $as_echo_n "(cached) " >&6 9455else 9456 ac_ext=c 9457ac_cpp='$CPP $CPPFLAGS' 9458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9460ac_compiler_gnu=$ac_cv_c_compiler_gnu 9461 9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9463/* end confdefs.h. */ 9464 9465int 9466main () 9467{ 9468 9469 ; 9470 return 0; 9471} 9472_ACEOF 9473if ac_fn_c_try_link "$LINENO"; then : 9474 lt_cv_cc_needs_belf=yes 9475else 9476 lt_cv_cc_needs_belf=no 9477fi 9478rm -f core conftest.err conftest.$ac_objext \ 9479 conftest$ac_exeext conftest.$ac_ext 9480 ac_ext=c 9481ac_cpp='$CPP $CPPFLAGS' 9482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9484ac_compiler_gnu=$ac_cv_c_compiler_gnu 9485 9486fi 9487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9488$as_echo "$lt_cv_cc_needs_belf" >&6; } 9489 if test yes != "$lt_cv_cc_needs_belf"; then 9490 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9491 CFLAGS=$SAVE_CFLAGS 9492 fi 9493 ;; 9494*-*solaris*) 9495 # Find out what ABI is being produced by ac_compile, and set linker 9496 # options accordingly. 9497 echo 'int i;' > conftest.$ac_ext 9498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9499 (eval $ac_compile) 2>&5 9500 ac_status=$? 9501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9502 test $ac_status = 0; }; then 9503 case `/usr/bin/file conftest.o` in 9504 *64-bit*) 9505 case $lt_cv_prog_gnu_ld in 9506 yes*) 9507 case $host in 9508 i?86-*-solaris*|x86_64-*-solaris*) 9509 LD="${LD-ld} -m elf_x86_64" 9510 ;; 9511 sparc*-*-solaris*) 9512 LD="${LD-ld} -m elf64_sparc" 9513 ;; 9514 esac 9515 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9516 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9517 LD=${LD-ld}_sol2 9518 fi 9519 ;; 9520 *) 9521 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9522 LD="${LD-ld} -64" 9523 fi 9524 ;; 9525 esac 9526 ;; 9527 esac 9528 fi 9529 rm -rf conftest* 9530 ;; 9531esac 9532 9533need_locks=$enable_libtool_lock 9534 9535if test -n "$ac_tool_prefix"; then 9536 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9537set dummy ${ac_tool_prefix}mt; ac_word=$2 9538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9539$as_echo_n "checking for $ac_word... " >&6; } 9540if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9541 $as_echo_n "(cached) " >&6 9542else 9543 if test -n "$MANIFEST_TOOL"; then 9544 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9545else 9546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9547for as_dir in $PATH 9548do 9549 IFS=$as_save_IFS 9550 test -z "$as_dir" && as_dir=. 9551 for ac_exec_ext in '' $ac_executable_extensions; do 9552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9553 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9555 break 2 9556 fi 9557done 9558 done 9559IFS=$as_save_IFS 9560 9561fi 9562fi 9563MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9564if test -n "$MANIFEST_TOOL"; then 9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9566$as_echo "$MANIFEST_TOOL" >&6; } 9567else 9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9569$as_echo "no" >&6; } 9570fi 9571 9572 9573fi 9574if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9575 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9576 # Extract the first word of "mt", so it can be a program name with args. 9577set dummy mt; ac_word=$2 9578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9579$as_echo_n "checking for $ac_word... " >&6; } 9580if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9581 $as_echo_n "(cached) " >&6 9582else 9583 if test -n "$ac_ct_MANIFEST_TOOL"; then 9584 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9585else 9586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9587for as_dir in $PATH 9588do 9589 IFS=$as_save_IFS 9590 test -z "$as_dir" && as_dir=. 9591 for ac_exec_ext in '' $ac_executable_extensions; do 9592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9593 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9595 break 2 9596 fi 9597done 9598 done 9599IFS=$as_save_IFS 9600 9601fi 9602fi 9603ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9604if test -n "$ac_ct_MANIFEST_TOOL"; then 9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9606$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9607else 9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9609$as_echo "no" >&6; } 9610fi 9611 9612 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9613 MANIFEST_TOOL=":" 9614 else 9615 case $cross_compiling:$ac_tool_warned in 9616yes:) 9617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9619ac_tool_warned=yes ;; 9620esac 9621 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9622 fi 9623else 9624 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9625fi 9626 9627test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9629$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9630if ${lt_cv_path_mainfest_tool+:} false; then : 9631 $as_echo_n "(cached) " >&6 9632else 9633 lt_cv_path_mainfest_tool=no 9634 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9635 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9636 cat conftest.err >&5 9637 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9638 lt_cv_path_mainfest_tool=yes 9639 fi 9640 rm -f conftest* 9641fi 9642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9643$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9644if test yes != "$lt_cv_path_mainfest_tool"; then 9645 MANIFEST_TOOL=: 9646fi 9647 9648 9649 9650 9651 9652 9653 case $host_os in 9654 rhapsody* | darwin*) 9655 if test -n "$ac_tool_prefix"; then 9656 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9657set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9659$as_echo_n "checking for $ac_word... " >&6; } 9660if ${ac_cv_prog_DSYMUTIL+:} false; then : 9661 $as_echo_n "(cached) " >&6 9662else 9663 if test -n "$DSYMUTIL"; then 9664 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9665else 9666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9667for as_dir in $PATH 9668do 9669 IFS=$as_save_IFS 9670 test -z "$as_dir" && as_dir=. 9671 for ac_exec_ext in '' $ac_executable_extensions; do 9672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9673 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9675 break 2 9676 fi 9677done 9678 done 9679IFS=$as_save_IFS 9680 9681fi 9682fi 9683DSYMUTIL=$ac_cv_prog_DSYMUTIL 9684if test -n "$DSYMUTIL"; then 9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9686$as_echo "$DSYMUTIL" >&6; } 9687else 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9689$as_echo "no" >&6; } 9690fi 9691 9692 9693fi 9694if test -z "$ac_cv_prog_DSYMUTIL"; then 9695 ac_ct_DSYMUTIL=$DSYMUTIL 9696 # Extract the first word of "dsymutil", so it can be a program name with args. 9697set dummy dsymutil; ac_word=$2 9698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9699$as_echo_n "checking for $ac_word... " >&6; } 9700if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9701 $as_echo_n "(cached) " >&6 9702else 9703 if test -n "$ac_ct_DSYMUTIL"; then 9704 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9705else 9706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9707for as_dir in $PATH 9708do 9709 IFS=$as_save_IFS 9710 test -z "$as_dir" && as_dir=. 9711 for ac_exec_ext in '' $ac_executable_extensions; do 9712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9713 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9715 break 2 9716 fi 9717done 9718 done 9719IFS=$as_save_IFS 9720 9721fi 9722fi 9723ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9724if test -n "$ac_ct_DSYMUTIL"; then 9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9726$as_echo "$ac_ct_DSYMUTIL" >&6; } 9727else 9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9729$as_echo "no" >&6; } 9730fi 9731 9732 if test "x$ac_ct_DSYMUTIL" = x; then 9733 DSYMUTIL=":" 9734 else 9735 case $cross_compiling:$ac_tool_warned in 9736yes:) 9737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9739ac_tool_warned=yes ;; 9740esac 9741 DSYMUTIL=$ac_ct_DSYMUTIL 9742 fi 9743else 9744 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9745fi 9746 9747 if test -n "$ac_tool_prefix"; then 9748 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9749set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9751$as_echo_n "checking for $ac_word... " >&6; } 9752if ${ac_cv_prog_NMEDIT+:} false; then : 9753 $as_echo_n "(cached) " >&6 9754else 9755 if test -n "$NMEDIT"; then 9756 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9757else 9758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9759for as_dir in $PATH 9760do 9761 IFS=$as_save_IFS 9762 test -z "$as_dir" && as_dir=. 9763 for ac_exec_ext in '' $ac_executable_extensions; do 9764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9765 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9767 break 2 9768 fi 9769done 9770 done 9771IFS=$as_save_IFS 9772 9773fi 9774fi 9775NMEDIT=$ac_cv_prog_NMEDIT 9776if test -n "$NMEDIT"; then 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9778$as_echo "$NMEDIT" >&6; } 9779else 9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9781$as_echo "no" >&6; } 9782fi 9783 9784 9785fi 9786if test -z "$ac_cv_prog_NMEDIT"; then 9787 ac_ct_NMEDIT=$NMEDIT 9788 # Extract the first word of "nmedit", so it can be a program name with args. 9789set dummy nmedit; ac_word=$2 9790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9791$as_echo_n "checking for $ac_word... " >&6; } 9792if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9793 $as_echo_n "(cached) " >&6 9794else 9795 if test -n "$ac_ct_NMEDIT"; then 9796 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9797else 9798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9799for as_dir in $PATH 9800do 9801 IFS=$as_save_IFS 9802 test -z "$as_dir" && as_dir=. 9803 for ac_exec_ext in '' $ac_executable_extensions; do 9804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9805 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9807 break 2 9808 fi 9809done 9810 done 9811IFS=$as_save_IFS 9812 9813fi 9814fi 9815ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9816if test -n "$ac_ct_NMEDIT"; then 9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9818$as_echo "$ac_ct_NMEDIT" >&6; } 9819else 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9821$as_echo "no" >&6; } 9822fi 9823 9824 if test "x$ac_ct_NMEDIT" = x; then 9825 NMEDIT=":" 9826 else 9827 case $cross_compiling:$ac_tool_warned in 9828yes:) 9829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9831ac_tool_warned=yes ;; 9832esac 9833 NMEDIT=$ac_ct_NMEDIT 9834 fi 9835else 9836 NMEDIT="$ac_cv_prog_NMEDIT" 9837fi 9838 9839 if test -n "$ac_tool_prefix"; then 9840 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9841set dummy ${ac_tool_prefix}lipo; ac_word=$2 9842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9843$as_echo_n "checking for $ac_word... " >&6; } 9844if ${ac_cv_prog_LIPO+:} false; then : 9845 $as_echo_n "(cached) " >&6 9846else 9847 if test -n "$LIPO"; then 9848 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9849else 9850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9851for as_dir in $PATH 9852do 9853 IFS=$as_save_IFS 9854 test -z "$as_dir" && as_dir=. 9855 for ac_exec_ext in '' $ac_executable_extensions; do 9856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9857 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9859 break 2 9860 fi 9861done 9862 done 9863IFS=$as_save_IFS 9864 9865fi 9866fi 9867LIPO=$ac_cv_prog_LIPO 9868if test -n "$LIPO"; then 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9870$as_echo "$LIPO" >&6; } 9871else 9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9873$as_echo "no" >&6; } 9874fi 9875 9876 9877fi 9878if test -z "$ac_cv_prog_LIPO"; then 9879 ac_ct_LIPO=$LIPO 9880 # Extract the first word of "lipo", so it can be a program name with args. 9881set dummy lipo; ac_word=$2 9882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9883$as_echo_n "checking for $ac_word... " >&6; } 9884if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9885 $as_echo_n "(cached) " >&6 9886else 9887 if test -n "$ac_ct_LIPO"; then 9888 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9889else 9890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9891for as_dir in $PATH 9892do 9893 IFS=$as_save_IFS 9894 test -z "$as_dir" && as_dir=. 9895 for ac_exec_ext in '' $ac_executable_extensions; do 9896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9897 ac_cv_prog_ac_ct_LIPO="lipo" 9898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9899 break 2 9900 fi 9901done 9902 done 9903IFS=$as_save_IFS 9904 9905fi 9906fi 9907ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9908if test -n "$ac_ct_LIPO"; then 9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9910$as_echo "$ac_ct_LIPO" >&6; } 9911else 9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9913$as_echo "no" >&6; } 9914fi 9915 9916 if test "x$ac_ct_LIPO" = x; then 9917 LIPO=":" 9918 else 9919 case $cross_compiling:$ac_tool_warned in 9920yes:) 9921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9923ac_tool_warned=yes ;; 9924esac 9925 LIPO=$ac_ct_LIPO 9926 fi 9927else 9928 LIPO="$ac_cv_prog_LIPO" 9929fi 9930 9931 if test -n "$ac_tool_prefix"; then 9932 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9933set dummy ${ac_tool_prefix}otool; ac_word=$2 9934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9935$as_echo_n "checking for $ac_word... " >&6; } 9936if ${ac_cv_prog_OTOOL+:} false; then : 9937 $as_echo_n "(cached) " >&6 9938else 9939 if test -n "$OTOOL"; then 9940 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9941else 9942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9943for as_dir in $PATH 9944do 9945 IFS=$as_save_IFS 9946 test -z "$as_dir" && as_dir=. 9947 for ac_exec_ext in '' $ac_executable_extensions; do 9948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9949 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9951 break 2 9952 fi 9953done 9954 done 9955IFS=$as_save_IFS 9956 9957fi 9958fi 9959OTOOL=$ac_cv_prog_OTOOL 9960if test -n "$OTOOL"; then 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9962$as_echo "$OTOOL" >&6; } 9963else 9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9965$as_echo "no" >&6; } 9966fi 9967 9968 9969fi 9970if test -z "$ac_cv_prog_OTOOL"; then 9971 ac_ct_OTOOL=$OTOOL 9972 # Extract the first word of "otool", so it can be a program name with args. 9973set dummy otool; ac_word=$2 9974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9975$as_echo_n "checking for $ac_word... " >&6; } 9976if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9977 $as_echo_n "(cached) " >&6 9978else 9979 if test -n "$ac_ct_OTOOL"; then 9980 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9981else 9982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9983for as_dir in $PATH 9984do 9985 IFS=$as_save_IFS 9986 test -z "$as_dir" && as_dir=. 9987 for ac_exec_ext in '' $ac_executable_extensions; do 9988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9989 ac_cv_prog_ac_ct_OTOOL="otool" 9990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9991 break 2 9992 fi 9993done 9994 done 9995IFS=$as_save_IFS 9996 9997fi 9998fi 9999ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10000if test -n "$ac_ct_OTOOL"; then 10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10002$as_echo "$ac_ct_OTOOL" >&6; } 10003else 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10005$as_echo "no" >&6; } 10006fi 10007 10008 if test "x$ac_ct_OTOOL" = x; then 10009 OTOOL=":" 10010 else 10011 case $cross_compiling:$ac_tool_warned in 10012yes:) 10013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10015ac_tool_warned=yes ;; 10016esac 10017 OTOOL=$ac_ct_OTOOL 10018 fi 10019else 10020 OTOOL="$ac_cv_prog_OTOOL" 10021fi 10022 10023 if test -n "$ac_tool_prefix"; then 10024 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10025set dummy ${ac_tool_prefix}otool64; ac_word=$2 10026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10027$as_echo_n "checking for $ac_word... " >&6; } 10028if ${ac_cv_prog_OTOOL64+:} false; then : 10029 $as_echo_n "(cached) " >&6 10030else 10031 if test -n "$OTOOL64"; then 10032 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10033else 10034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10035for as_dir in $PATH 10036do 10037 IFS=$as_save_IFS 10038 test -z "$as_dir" && as_dir=. 10039 for ac_exec_ext in '' $ac_executable_extensions; do 10040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10041 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10043 break 2 10044 fi 10045done 10046 done 10047IFS=$as_save_IFS 10048 10049fi 10050fi 10051OTOOL64=$ac_cv_prog_OTOOL64 10052if test -n "$OTOOL64"; then 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10054$as_echo "$OTOOL64" >&6; } 10055else 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10057$as_echo "no" >&6; } 10058fi 10059 10060 10061fi 10062if test -z "$ac_cv_prog_OTOOL64"; then 10063 ac_ct_OTOOL64=$OTOOL64 10064 # Extract the first word of "otool64", so it can be a program name with args. 10065set dummy otool64; ac_word=$2 10066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10067$as_echo_n "checking for $ac_word... " >&6; } 10068if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10069 $as_echo_n "(cached) " >&6 10070else 10071 if test -n "$ac_ct_OTOOL64"; then 10072 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10073else 10074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10075for as_dir in $PATH 10076do 10077 IFS=$as_save_IFS 10078 test -z "$as_dir" && as_dir=. 10079 for ac_exec_ext in '' $ac_executable_extensions; do 10080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10081 ac_cv_prog_ac_ct_OTOOL64="otool64" 10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10083 break 2 10084 fi 10085done 10086 done 10087IFS=$as_save_IFS 10088 10089fi 10090fi 10091ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10092if test -n "$ac_ct_OTOOL64"; then 10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10094$as_echo "$ac_ct_OTOOL64" >&6; } 10095else 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10097$as_echo "no" >&6; } 10098fi 10099 10100 if test "x$ac_ct_OTOOL64" = x; then 10101 OTOOL64=":" 10102 else 10103 case $cross_compiling:$ac_tool_warned in 10104yes:) 10105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10107ac_tool_warned=yes ;; 10108esac 10109 OTOOL64=$ac_ct_OTOOL64 10110 fi 10111else 10112 OTOOL64="$ac_cv_prog_OTOOL64" 10113fi 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10142$as_echo_n "checking for -single_module linker flag... " >&6; } 10143if ${lt_cv_apple_cc_single_mod+:} false; then : 10144 $as_echo_n "(cached) " >&6 10145else 10146 lt_cv_apple_cc_single_mod=no 10147 if test -z "$LT_MULTI_MODULE"; then 10148 # By default we will add the -single_module flag. You can override 10149 # by either setting the environment variable LT_MULTI_MODULE 10150 # non-empty at configure time, or by adding -multi_module to the 10151 # link flags. 10152 rm -rf libconftest.dylib* 10153 echo "int foo(void){return 1;}" > conftest.c 10154 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10155-dynamiclib -Wl,-single_module conftest.c" >&5 10156 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10157 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10158 _lt_result=$? 10159 # If there is a non-empty error log, and "single_module" 10160 # appears in it, assume the flag caused a linker warning 10161 if test -s conftest.err && $GREP single_module conftest.err; then 10162 cat conftest.err >&5 10163 # Otherwise, if the output was created with a 0 exit code from 10164 # the compiler, it worked. 10165 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10166 lt_cv_apple_cc_single_mod=yes 10167 else 10168 cat conftest.err >&5 10169 fi 10170 rm -rf libconftest.dylib* 10171 rm -f conftest.* 10172 fi 10173fi 10174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10175$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10176 10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10178$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10179if ${lt_cv_ld_exported_symbols_list+:} false; then : 10180 $as_echo_n "(cached) " >&6 10181else 10182 lt_cv_ld_exported_symbols_list=no 10183 save_LDFLAGS=$LDFLAGS 10184 echo "_main" > conftest.sym 10185 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10187/* end confdefs.h. */ 10188 10189int 10190main () 10191{ 10192 10193 ; 10194 return 0; 10195} 10196_ACEOF 10197if ac_fn_c_try_link "$LINENO"; then : 10198 lt_cv_ld_exported_symbols_list=yes 10199else 10200 lt_cv_ld_exported_symbols_list=no 10201fi 10202rm -f core conftest.err conftest.$ac_objext \ 10203 conftest$ac_exeext conftest.$ac_ext 10204 LDFLAGS=$save_LDFLAGS 10205 10206fi 10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10208$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10209 10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10211$as_echo_n "checking for -force_load linker flag... " >&6; } 10212if ${lt_cv_ld_force_load+:} false; then : 10213 $as_echo_n "(cached) " >&6 10214else 10215 lt_cv_ld_force_load=no 10216 cat > conftest.c << _LT_EOF 10217int forced_loaded() { return 2;} 10218_LT_EOF 10219 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10220 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10221 echo "$AR cru libconftest.a conftest.o" >&5 10222 $AR cru libconftest.a conftest.o 2>&5 10223 echo "$RANLIB libconftest.a" >&5 10224 $RANLIB libconftest.a 2>&5 10225 cat > conftest.c << _LT_EOF 10226int main() { return 0;} 10227_LT_EOF 10228 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10229 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10230 _lt_result=$? 10231 if test -s conftest.err && $GREP force_load conftest.err; then 10232 cat conftest.err >&5 10233 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10234 lt_cv_ld_force_load=yes 10235 else 10236 cat conftest.err >&5 10237 fi 10238 rm -f conftest.err libconftest.a conftest conftest.c 10239 rm -rf conftest.dSYM 10240 10241fi 10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10243$as_echo "$lt_cv_ld_force_load" >&6; } 10244 case $host_os in 10245 rhapsody* | darwin1.[012]) 10246 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10247 darwin1.*) 10248 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10249 darwin*) # darwin 5.x on 10250 # if running on 10.5 or later, the deployment target defaults 10251 # to the OS version, if on x86, and 10.4, the deployment 10252 # target defaults to 10.4. Don't you love it? 10253 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10254 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10255 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10256 10.[012][,.]*) 10257 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10258 10.*) 10259 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10260 esac 10261 ;; 10262 esac 10263 if test yes = "$lt_cv_apple_cc_single_mod"; then 10264 _lt_dar_single_mod='$single_module' 10265 fi 10266 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10267 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10268 else 10269 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10270 fi 10271 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10272 _lt_dsymutil='~$DSYMUTIL $lib || :' 10273 else 10274 _lt_dsymutil= 10275 fi 10276 ;; 10277 esac 10278 10279# func_munge_path_list VARIABLE PATH 10280# ----------------------------------- 10281# VARIABLE is name of variable containing _space_ separated list of 10282# directories to be munged by the contents of PATH, which is string 10283# having a format: 10284# "DIR[:DIR]:" 10285# string "DIR[ DIR]" will be prepended to VARIABLE 10286# ":DIR[:DIR]" 10287# string "DIR[ DIR]" will be appended to VARIABLE 10288# "DIRP[:DIRP]::[DIRA:]DIRA" 10289# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10290# "DIRA[ DIRA]" will be appended to VARIABLE 10291# "DIR[:DIR]" 10292# VARIABLE will be replaced by "DIR[ DIR]" 10293func_munge_path_list () 10294{ 10295 case x$2 in 10296 x) 10297 ;; 10298 *:) 10299 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10300 ;; 10301 x:*) 10302 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10303 ;; 10304 *::*) 10305 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10306 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10307 ;; 10308 *) 10309 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10310 ;; 10311 esac 10312} 10313 10314for ac_header in dlfcn.h 10315do : 10316 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10317" 10318if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10319 cat >>confdefs.h <<_ACEOF 10320#define HAVE_DLFCN_H 1 10321_ACEOF 10322 10323fi 10324 10325done 10326 10327 10328 10329 10330 10331 10332 10333# Set options 10334 10335 10336 10337 enable_dlopen=no 10338 10339 10340 enable_win32_dll=no 10341 10342 10343 # Check whether --enable-shared was given. 10344if test "${enable_shared+set}" = set; then : 10345 enableval=$enable_shared; p=${PACKAGE-default} 10346 case $enableval in 10347 yes) enable_shared=yes ;; 10348 no) enable_shared=no ;; 10349 *) 10350 enable_shared=no 10351 # Look at the argument we got. We use all the common list separators. 10352 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10353 for pkg in $enableval; do 10354 IFS=$lt_save_ifs 10355 if test "X$pkg" = "X$p"; then 10356 enable_shared=yes 10357 fi 10358 done 10359 IFS=$lt_save_ifs 10360 ;; 10361 esac 10362else 10363 enable_shared=yes 10364fi 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 # Check whether --enable-static was given. 10375if test "${enable_static+set}" = set; then : 10376 enableval=$enable_static; p=${PACKAGE-default} 10377 case $enableval in 10378 yes) enable_static=yes ;; 10379 no) enable_static=no ;; 10380 *) 10381 enable_static=no 10382 # Look at the argument we got. We use all the common list separators. 10383 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10384 for pkg in $enableval; do 10385 IFS=$lt_save_ifs 10386 if test "X$pkg" = "X$p"; then 10387 enable_static=yes 10388 fi 10389 done 10390 IFS=$lt_save_ifs 10391 ;; 10392 esac 10393else 10394 enable_static=yes 10395fi 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406# Check whether --with-pic was given. 10407if test "${with_pic+set}" = set; then : 10408 withval=$with_pic; lt_p=${PACKAGE-default} 10409 case $withval in 10410 yes|no) pic_mode=$withval ;; 10411 *) 10412 pic_mode=default 10413 # Look at the argument we got. We use all the common list separators. 10414 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10415 for lt_pkg in $withval; do 10416 IFS=$lt_save_ifs 10417 if test "X$lt_pkg" = "X$lt_p"; then 10418 pic_mode=yes 10419 fi 10420 done 10421 IFS=$lt_save_ifs 10422 ;; 10423 esac 10424else 10425 pic_mode=default 10426fi 10427 10428 10429 10430 10431 10432 10433 10434 10435 # Check whether --enable-fast-install was given. 10436if test "${enable_fast_install+set}" = set; then : 10437 enableval=$enable_fast_install; p=${PACKAGE-default} 10438 case $enableval in 10439 yes) enable_fast_install=yes ;; 10440 no) enable_fast_install=no ;; 10441 *) 10442 enable_fast_install=no 10443 # Look at the argument we got. We use all the common list separators. 10444 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10445 for pkg in $enableval; do 10446 IFS=$lt_save_ifs 10447 if test "X$pkg" = "X$p"; then 10448 enable_fast_install=yes 10449 fi 10450 done 10451 IFS=$lt_save_ifs 10452 ;; 10453 esac 10454else 10455 enable_fast_install=yes 10456fi 10457 10458 10459 10460 10461 10462 10463 10464 10465 shared_archive_member_spec= 10466case $host,$enable_shared in 10467power*-*-aix[5-9]*,yes) 10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10469$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 10470 10471# Check whether --with-aix-soname was given. 10472if test "${with_aix_soname+set}" = set; then : 10473 withval=$with_aix_soname; case $withval in 10474 aix|svr4|both) 10475 ;; 10476 *) 10477 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10478 ;; 10479 esac 10480 lt_cv_with_aix_soname=$with_aix_soname 10481else 10482 if ${lt_cv_with_aix_soname+:} false; then : 10483 $as_echo_n "(cached) " >&6 10484else 10485 lt_cv_with_aix_soname=aix 10486fi 10487 10488 with_aix_soname=$lt_cv_with_aix_soname 10489fi 10490 10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10492$as_echo "$with_aix_soname" >&6; } 10493 if test aix != "$with_aix_soname"; then 10494 # For the AIX way of multilib, we name the shared archive member 10495 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10496 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10497 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10498 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10499 if test 64 = "${OBJECT_MODE-32}"; then 10500 shared_archive_member_spec=shr_64 10501 else 10502 shared_archive_member_spec=shr 10503 fi 10504 fi 10505 ;; 10506*) 10507 with_aix_soname=aix 10508 ;; 10509esac 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520# This can be used to rebuild libtool when needed 10521LIBTOOL_DEPS=$ltmain 10522 10523# Always use our own libtool. 10524LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555test -z "$LN_S" && LN_S="ln -s" 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570if test -n "${ZSH_VERSION+set}"; then 10571 setopt NO_GLOB_SUBST 10572fi 10573 10574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10575$as_echo_n "checking for objdir... " >&6; } 10576if ${lt_cv_objdir+:} false; then : 10577 $as_echo_n "(cached) " >&6 10578else 10579 rm -f .libs 2>/dev/null 10580mkdir .libs 2>/dev/null 10581if test -d .libs; then 10582 lt_cv_objdir=.libs 10583else 10584 # MS-DOS does not allow filenames that begin with a dot. 10585 lt_cv_objdir=_libs 10586fi 10587rmdir .libs 2>/dev/null 10588fi 10589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10590$as_echo "$lt_cv_objdir" >&6; } 10591objdir=$lt_cv_objdir 10592 10593 10594 10595 10596 10597cat >>confdefs.h <<_ACEOF 10598#define LT_OBJDIR "$lt_cv_objdir/" 10599_ACEOF 10600 10601 10602 10603 10604case $host_os in 10605aix3*) 10606 # AIX sometimes has problems with the GCC collect2 program. For some 10607 # reason, if we set the COLLECT_NAMES environment variable, the problems 10608 # vanish in a puff of smoke. 10609 if test set != "${COLLECT_NAMES+set}"; then 10610 COLLECT_NAMES= 10611 export COLLECT_NAMES 10612 fi 10613 ;; 10614esac 10615 10616# Global variables: 10617ofile=libtool 10618can_build_shared=yes 10619 10620# All known linkers require a '.a' archive for static linking (except MSVC, 10621# which needs '.lib'). 10622libext=a 10623 10624with_gnu_ld=$lt_cv_prog_gnu_ld 10625 10626old_CC=$CC 10627old_CFLAGS=$CFLAGS 10628 10629# Set sane defaults for various variables 10630test -z "$CC" && CC=cc 10631test -z "$LTCC" && LTCC=$CC 10632test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10633test -z "$LD" && LD=ld 10634test -z "$ac_objext" && ac_objext=o 10635 10636func_cc_basename $compiler 10637cc_basename=$func_cc_basename_result 10638 10639 10640# Only perform the check for file, if the check method requires it 10641test -z "$MAGIC_CMD" && MAGIC_CMD=file 10642case $deplibs_check_method in 10643file_magic*) 10644 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10646$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10647if ${lt_cv_path_MAGIC_CMD+:} false; then : 10648 $as_echo_n "(cached) " >&6 10649else 10650 case $MAGIC_CMD in 10651[\\/*] | ?:[\\/]*) 10652 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10653 ;; 10654*) 10655 lt_save_MAGIC_CMD=$MAGIC_CMD 10656 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10657 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10658 for ac_dir in $ac_dummy; do 10659 IFS=$lt_save_ifs 10660 test -z "$ac_dir" && ac_dir=. 10661 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10662 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10663 if test -n "$file_magic_test_file"; then 10664 case $deplibs_check_method in 10665 "file_magic "*) 10666 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10667 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10668 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10669 $EGREP "$file_magic_regex" > /dev/null; then 10670 : 10671 else 10672 cat <<_LT_EOF 1>&2 10673 10674*** Warning: the command libtool uses to detect shared libraries, 10675*** $file_magic_cmd, produces output that libtool cannot recognize. 10676*** The result is that libtool may fail to recognize shared libraries 10677*** as such. This will affect the creation of libtool libraries that 10678*** depend on shared libraries, but programs linked with such libtool 10679*** libraries will work regardless of this problem. Nevertheless, you 10680*** may want to report the problem to your system manager and/or to 10681*** bug-libtool@gnu.org 10682 10683_LT_EOF 10684 fi ;; 10685 esac 10686 fi 10687 break 10688 fi 10689 done 10690 IFS=$lt_save_ifs 10691 MAGIC_CMD=$lt_save_MAGIC_CMD 10692 ;; 10693esac 10694fi 10695 10696MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10697if test -n "$MAGIC_CMD"; then 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10699$as_echo "$MAGIC_CMD" >&6; } 10700else 10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10702$as_echo "no" >&6; } 10703fi 10704 10705 10706 10707 10708 10709if test -z "$lt_cv_path_MAGIC_CMD"; then 10710 if test -n "$ac_tool_prefix"; then 10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10712$as_echo_n "checking for file... " >&6; } 10713if ${lt_cv_path_MAGIC_CMD+:} false; then : 10714 $as_echo_n "(cached) " >&6 10715else 10716 case $MAGIC_CMD in 10717[\\/*] | ?:[\\/]*) 10718 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10719 ;; 10720*) 10721 lt_save_MAGIC_CMD=$MAGIC_CMD 10722 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10723 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10724 for ac_dir in $ac_dummy; do 10725 IFS=$lt_save_ifs 10726 test -z "$ac_dir" && ac_dir=. 10727 if test -f "$ac_dir/file"; then 10728 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10729 if test -n "$file_magic_test_file"; then 10730 case $deplibs_check_method in 10731 "file_magic "*) 10732 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10733 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10734 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10735 $EGREP "$file_magic_regex" > /dev/null; then 10736 : 10737 else 10738 cat <<_LT_EOF 1>&2 10739 10740*** Warning: the command libtool uses to detect shared libraries, 10741*** $file_magic_cmd, produces output that libtool cannot recognize. 10742*** The result is that libtool may fail to recognize shared libraries 10743*** as such. This will affect the creation of libtool libraries that 10744*** depend on shared libraries, but programs linked with such libtool 10745*** libraries will work regardless of this problem. Nevertheless, you 10746*** may want to report the problem to your system manager and/or to 10747*** bug-libtool@gnu.org 10748 10749_LT_EOF 10750 fi ;; 10751 esac 10752 fi 10753 break 10754 fi 10755 done 10756 IFS=$lt_save_ifs 10757 MAGIC_CMD=$lt_save_MAGIC_CMD 10758 ;; 10759esac 10760fi 10761 10762MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10763if test -n "$MAGIC_CMD"; then 10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10765$as_echo "$MAGIC_CMD" >&6; } 10766else 10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10768$as_echo "no" >&6; } 10769fi 10770 10771 10772 else 10773 MAGIC_CMD=: 10774 fi 10775fi 10776 10777 fi 10778 ;; 10779esac 10780 10781# Use C for the default configuration in the libtool script 10782 10783lt_save_CC=$CC 10784ac_ext=c 10785ac_cpp='$CPP $CPPFLAGS' 10786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10788ac_compiler_gnu=$ac_cv_c_compiler_gnu 10789 10790 10791# Source file extension for C test sources. 10792ac_ext=c 10793 10794# Object file extension for compiled C test sources. 10795objext=o 10796objext=$objext 10797 10798# Code to be used in simple compile tests 10799lt_simple_compile_test_code="int some_variable = 0;" 10800 10801# Code to be used in simple link tests 10802lt_simple_link_test_code='int main(){return(0);}' 10803 10804 10805 10806 10807 10808 10809 10810# If no C compiler was specified, use CC. 10811LTCC=${LTCC-"$CC"} 10812 10813# If no C compiler flags were specified, use CFLAGS. 10814LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10815 10816# Allow CC to be a program name with arguments. 10817compiler=$CC 10818 10819# Save the default compiler, since it gets overwritten when the other 10820# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10821compiler_DEFAULT=$CC 10822 10823# save warnings/boilerplate of simple test code 10824ac_outfile=conftest.$ac_objext 10825echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10826eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10827_lt_compiler_boilerplate=`cat conftest.err` 10828$RM conftest* 10829 10830ac_outfile=conftest.$ac_objext 10831echo "$lt_simple_link_test_code" >conftest.$ac_ext 10832eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10833_lt_linker_boilerplate=`cat conftest.err` 10834$RM -r conftest* 10835 10836 10837if test -n "$compiler"; then 10838 10839lt_prog_compiler_no_builtin_flag= 10840 10841if test yes = "$GCC"; then 10842 case $cc_basename in 10843 nvcc*) 10844 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10845 *) 10846 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10847 esac 10848 10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10850$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10851if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10852 $as_echo_n "(cached) " >&6 10853else 10854 lt_cv_prog_compiler_rtti_exceptions=no 10855 ac_outfile=conftest.$ac_objext 10856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10857 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10858 # Insert the option either (1) after the last *FLAGS variable, or 10859 # (2) before a word containing "conftest.", or (3) at the end. 10860 # Note that $ac_compile itself does not contain backslashes and begins 10861 # with a dollar sign (not a hyphen), so the echo should work correctly. 10862 # The option is referenced via a variable to avoid confusing sed. 10863 lt_compile=`echo "$ac_compile" | $SED \ 10864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10866 -e 's:$: $lt_compiler_flag:'` 10867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10868 (eval "$lt_compile" 2>conftest.err) 10869 ac_status=$? 10870 cat conftest.err >&5 10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10872 if (exit $ac_status) && test -s "$ac_outfile"; then 10873 # The compiler can only warn and ignore the option if not recognized 10874 # So say no if there are warnings other than the usual output. 10875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10877 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10878 lt_cv_prog_compiler_rtti_exceptions=yes 10879 fi 10880 fi 10881 $RM conftest* 10882 10883fi 10884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10885$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10886 10887if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10888 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10889else 10890 : 10891fi 10892 10893fi 10894 10895 10896 10897 10898 10899 10900 lt_prog_compiler_wl= 10901lt_prog_compiler_pic= 10902lt_prog_compiler_static= 10903 10904 10905 if test yes = "$GCC"; then 10906 lt_prog_compiler_wl='-Wl,' 10907 lt_prog_compiler_static='-static' 10908 10909 case $host_os in 10910 aix*) 10911 # All AIX code is PIC. 10912 if test ia64 = "$host_cpu"; then 10913 # AIX 5 now supports IA64 processor 10914 lt_prog_compiler_static='-Bstatic' 10915 fi 10916 lt_prog_compiler_pic='-fPIC' 10917 ;; 10918 10919 amigaos*) 10920 case $host_cpu in 10921 powerpc) 10922 # see comment about AmigaOS4 .so support 10923 lt_prog_compiler_pic='-fPIC' 10924 ;; 10925 m68k) 10926 # FIXME: we need at least 68020 code to build shared libraries, but 10927 # adding the '-m68020' flag to GCC prevents building anything better, 10928 # like '-m68040'. 10929 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10930 ;; 10931 esac 10932 ;; 10933 10934 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10935 # PIC is the default for these OSes. 10936 ;; 10937 10938 mingw* | cygwin* | pw32* | os2* | cegcc*) 10939 # This hack is so that the source file can tell whether it is being 10940 # built for inclusion in a dll (and should export symbols for example). 10941 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10942 # (--disable-auto-import) libraries 10943 lt_prog_compiler_pic='-DDLL_EXPORT' 10944 case $host_os in 10945 os2*) 10946 lt_prog_compiler_static='$wl-static' 10947 ;; 10948 esac 10949 ;; 10950 10951 darwin* | rhapsody*) 10952 # PIC is the default on this platform 10953 # Common symbols not allowed in MH_DYLIB files 10954 lt_prog_compiler_pic='-fno-common' 10955 ;; 10956 10957 haiku*) 10958 # PIC is the default for Haiku. 10959 # The "-static" flag exists, but is broken. 10960 lt_prog_compiler_static= 10961 ;; 10962 10963 hpux*) 10964 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10965 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10966 # sets the default TLS model and affects inlining. 10967 case $host_cpu in 10968 hppa*64*) 10969 # +Z the default 10970 ;; 10971 *) 10972 lt_prog_compiler_pic='-fPIC' 10973 ;; 10974 esac 10975 ;; 10976 10977 interix[3-9]*) 10978 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10979 # Instead, we relocate shared libraries at runtime. 10980 ;; 10981 10982 msdosdjgpp*) 10983 # Just because we use GCC doesn't mean we suddenly get shared libraries 10984 # on systems that don't support them. 10985 lt_prog_compiler_can_build_shared=no 10986 enable_shared=no 10987 ;; 10988 10989 *nto* | *qnx*) 10990 # QNX uses GNU C++, but need to define -shared option too, otherwise 10991 # it will coredump. 10992 lt_prog_compiler_pic='-fPIC -shared' 10993 ;; 10994 10995 sysv4*MP*) 10996 if test -d /usr/nec; then 10997 lt_prog_compiler_pic=-Kconform_pic 10998 fi 10999 ;; 11000 11001 *) 11002 lt_prog_compiler_pic='-fPIC' 11003 ;; 11004 esac 11005 11006 case $cc_basename in 11007 nvcc*) # Cuda Compiler Driver 2.2 11008 lt_prog_compiler_wl='-Xlinker ' 11009 if test -n "$lt_prog_compiler_pic"; then 11010 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11011 fi 11012 ;; 11013 esac 11014 else 11015 # PORTME Check for flag to pass linker flags through the system compiler. 11016 case $host_os in 11017 aix*) 11018 lt_prog_compiler_wl='-Wl,' 11019 if test ia64 = "$host_cpu"; then 11020 # AIX 5 now supports IA64 processor 11021 lt_prog_compiler_static='-Bstatic' 11022 else 11023 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11024 fi 11025 ;; 11026 11027 darwin* | rhapsody*) 11028 # PIC is the default on this platform 11029 # Common symbols not allowed in MH_DYLIB files 11030 lt_prog_compiler_pic='-fno-common' 11031 case $cc_basename in 11032 nagfor*) 11033 # NAG Fortran compiler 11034 lt_prog_compiler_wl='-Wl,-Wl,,' 11035 lt_prog_compiler_pic='-PIC' 11036 lt_prog_compiler_static='-Bstatic' 11037 ;; 11038 esac 11039 ;; 11040 11041 mingw* | cygwin* | pw32* | os2* | cegcc*) 11042 # This hack is so that the source file can tell whether it is being 11043 # built for inclusion in a dll (and should export symbols for example). 11044 lt_prog_compiler_pic='-DDLL_EXPORT' 11045 case $host_os in 11046 os2*) 11047 lt_prog_compiler_static='$wl-static' 11048 ;; 11049 esac 11050 ;; 11051 11052 hpux9* | hpux10* | hpux11*) 11053 lt_prog_compiler_wl='-Wl,' 11054 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11055 # not for PA HP-UX. 11056 case $host_cpu in 11057 hppa*64*|ia64*) 11058 # +Z the default 11059 ;; 11060 *) 11061 lt_prog_compiler_pic='+Z' 11062 ;; 11063 esac 11064 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11065 lt_prog_compiler_static='$wl-a ${wl}archive' 11066 ;; 11067 11068 irix5* | irix6* | nonstopux*) 11069 lt_prog_compiler_wl='-Wl,' 11070 # PIC (with -KPIC) is the default. 11071 lt_prog_compiler_static='-non_shared' 11072 ;; 11073 11074 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11075 case $cc_basename in 11076 # old Intel for x86_64, which still supported -KPIC. 11077 ecc*) 11078 lt_prog_compiler_wl='-Wl,' 11079 lt_prog_compiler_pic='-KPIC' 11080 lt_prog_compiler_static='-static' 11081 ;; 11082 # icc used to be incompatible with GCC. 11083 # ICC 10 doesn't accept -KPIC any more. 11084 icc* | ifort*) 11085 lt_prog_compiler_wl='-Wl,' 11086 lt_prog_compiler_pic='-fPIC' 11087 lt_prog_compiler_static='-static' 11088 ;; 11089 # Lahey Fortran 8.1. 11090 lf95*) 11091 lt_prog_compiler_wl='-Wl,' 11092 lt_prog_compiler_pic='--shared' 11093 lt_prog_compiler_static='--static' 11094 ;; 11095 nagfor*) 11096 # NAG Fortran compiler 11097 lt_prog_compiler_wl='-Wl,-Wl,,' 11098 lt_prog_compiler_pic='-PIC' 11099 lt_prog_compiler_static='-Bstatic' 11100 ;; 11101 tcc*) 11102 # Fabrice Bellard et al's Tiny C Compiler 11103 lt_prog_compiler_wl='-Wl,' 11104 lt_prog_compiler_pic='-fPIC' 11105 lt_prog_compiler_static='-static' 11106 ;; 11107 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11108 # Portland Group compilers (*not* the Pentium gcc compiler, 11109 # which looks to be a dead project) 11110 lt_prog_compiler_wl='-Wl,' 11111 lt_prog_compiler_pic='-fpic' 11112 lt_prog_compiler_static='-Bstatic' 11113 ;; 11114 ccc*) 11115 lt_prog_compiler_wl='-Wl,' 11116 # All Alpha code is PIC. 11117 lt_prog_compiler_static='-non_shared' 11118 ;; 11119 xl* | bgxl* | bgf* | mpixl*) 11120 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11121 lt_prog_compiler_wl='-Wl,' 11122 lt_prog_compiler_pic='-qpic' 11123 lt_prog_compiler_static='-qstaticlink' 11124 ;; 11125 *) 11126 case `$CC -V 2>&1 | sed 5q` in 11127 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11128 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11129 lt_prog_compiler_pic='-KPIC' 11130 lt_prog_compiler_static='-Bstatic' 11131 lt_prog_compiler_wl='' 11132 ;; 11133 *Sun\ F* | *Sun*Fortran*) 11134 lt_prog_compiler_pic='-KPIC' 11135 lt_prog_compiler_static='-Bstatic' 11136 lt_prog_compiler_wl='-Qoption ld ' 11137 ;; 11138 *Sun\ C*) 11139 # Sun C 5.9 11140 lt_prog_compiler_pic='-KPIC' 11141 lt_prog_compiler_static='-Bstatic' 11142 lt_prog_compiler_wl='-Wl,' 11143 ;; 11144 *Intel*\ [CF]*Compiler*) 11145 lt_prog_compiler_wl='-Wl,' 11146 lt_prog_compiler_pic='-fPIC' 11147 lt_prog_compiler_static='-static' 11148 ;; 11149 *Portland\ Group*) 11150 lt_prog_compiler_wl='-Wl,' 11151 lt_prog_compiler_pic='-fpic' 11152 lt_prog_compiler_static='-Bstatic' 11153 ;; 11154 esac 11155 ;; 11156 esac 11157 ;; 11158 11159 newsos6) 11160 lt_prog_compiler_pic='-KPIC' 11161 lt_prog_compiler_static='-Bstatic' 11162 ;; 11163 11164 *nto* | *qnx*) 11165 # QNX uses GNU C++, but need to define -shared option too, otherwise 11166 # it will coredump. 11167 lt_prog_compiler_pic='-fPIC -shared' 11168 ;; 11169 11170 osf3* | osf4* | osf5*) 11171 lt_prog_compiler_wl='-Wl,' 11172 # All OSF/1 code is PIC. 11173 lt_prog_compiler_static='-non_shared' 11174 ;; 11175 11176 rdos*) 11177 lt_prog_compiler_static='-non_shared' 11178 ;; 11179 11180 solaris*) 11181 lt_prog_compiler_pic='-KPIC' 11182 lt_prog_compiler_static='-Bstatic' 11183 case $cc_basename in 11184 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11185 lt_prog_compiler_wl='-Qoption ld ';; 11186 *) 11187 lt_prog_compiler_wl='-Wl,';; 11188 esac 11189 ;; 11190 11191 sunos4*) 11192 lt_prog_compiler_wl='-Qoption ld ' 11193 lt_prog_compiler_pic='-PIC' 11194 lt_prog_compiler_static='-Bstatic' 11195 ;; 11196 11197 sysv4 | sysv4.2uw2* | sysv4.3*) 11198 lt_prog_compiler_wl='-Wl,' 11199 lt_prog_compiler_pic='-KPIC' 11200 lt_prog_compiler_static='-Bstatic' 11201 ;; 11202 11203 sysv4*MP*) 11204 if test -d /usr/nec; then 11205 lt_prog_compiler_pic='-Kconform_pic' 11206 lt_prog_compiler_static='-Bstatic' 11207 fi 11208 ;; 11209 11210 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11211 lt_prog_compiler_wl='-Wl,' 11212 lt_prog_compiler_pic='-KPIC' 11213 lt_prog_compiler_static='-Bstatic' 11214 ;; 11215 11216 unicos*) 11217 lt_prog_compiler_wl='-Wl,' 11218 lt_prog_compiler_can_build_shared=no 11219 ;; 11220 11221 uts4*) 11222 lt_prog_compiler_pic='-pic' 11223 lt_prog_compiler_static='-Bstatic' 11224 ;; 11225 11226 *) 11227 lt_prog_compiler_can_build_shared=no 11228 ;; 11229 esac 11230 fi 11231 11232case $host_os in 11233 # For platforms that do not support PIC, -DPIC is meaningless: 11234 *djgpp*) 11235 lt_prog_compiler_pic= 11236 ;; 11237 *) 11238 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11239 ;; 11240esac 11241 11242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11243$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11244if ${lt_cv_prog_compiler_pic+:} false; then : 11245 $as_echo_n "(cached) " >&6 11246else 11247 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11248fi 11249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11250$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11251lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11252 11253# 11254# Check to make sure the PIC flag actually works. 11255# 11256if test -n "$lt_prog_compiler_pic"; then 11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11258$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11259if ${lt_cv_prog_compiler_pic_works+:} false; then : 11260 $as_echo_n "(cached) " >&6 11261else 11262 lt_cv_prog_compiler_pic_works=no 11263 ac_outfile=conftest.$ac_objext 11264 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11265 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11266 # Insert the option either (1) after the last *FLAGS variable, or 11267 # (2) before a word containing "conftest.", or (3) at the end. 11268 # Note that $ac_compile itself does not contain backslashes and begins 11269 # with a dollar sign (not a hyphen), so the echo should work correctly. 11270 # The option is referenced via a variable to avoid confusing sed. 11271 lt_compile=`echo "$ac_compile" | $SED \ 11272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11274 -e 's:$: $lt_compiler_flag:'` 11275 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11276 (eval "$lt_compile" 2>conftest.err) 11277 ac_status=$? 11278 cat conftest.err >&5 11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11280 if (exit $ac_status) && test -s "$ac_outfile"; then 11281 # The compiler can only warn and ignore the option if not recognized 11282 # So say no if there are warnings other than the usual output. 11283 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11284 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11285 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11286 lt_cv_prog_compiler_pic_works=yes 11287 fi 11288 fi 11289 $RM conftest* 11290 11291fi 11292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11293$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11294 11295if test yes = "$lt_cv_prog_compiler_pic_works"; then 11296 case $lt_prog_compiler_pic in 11297 "" | " "*) ;; 11298 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11299 esac 11300else 11301 lt_prog_compiler_pic= 11302 lt_prog_compiler_can_build_shared=no 11303fi 11304 11305fi 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317# 11318# Check to make sure the static flag actually works. 11319# 11320wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11322$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11323if ${lt_cv_prog_compiler_static_works+:} false; then : 11324 $as_echo_n "(cached) " >&6 11325else 11326 lt_cv_prog_compiler_static_works=no 11327 save_LDFLAGS=$LDFLAGS 11328 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11329 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11330 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11331 # The linker can only warn and ignore the option if not recognized 11332 # So say no if there are warnings 11333 if test -s conftest.err; then 11334 # Append any errors to the config.log. 11335 cat conftest.err 1>&5 11336 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11338 if diff conftest.exp conftest.er2 >/dev/null; then 11339 lt_cv_prog_compiler_static_works=yes 11340 fi 11341 else 11342 lt_cv_prog_compiler_static_works=yes 11343 fi 11344 fi 11345 $RM -r conftest* 11346 LDFLAGS=$save_LDFLAGS 11347 11348fi 11349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11350$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11351 11352if test yes = "$lt_cv_prog_compiler_static_works"; then 11353 : 11354else 11355 lt_prog_compiler_static= 11356fi 11357 11358 11359 11360 11361 11362 11363 11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11365$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11366if ${lt_cv_prog_compiler_c_o+:} false; then : 11367 $as_echo_n "(cached) " >&6 11368else 11369 lt_cv_prog_compiler_c_o=no 11370 $RM -r conftest 2>/dev/null 11371 mkdir conftest 11372 cd conftest 11373 mkdir out 11374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11375 11376 lt_compiler_flag="-o out/conftest2.$ac_objext" 11377 # Insert the option either (1) after the last *FLAGS variable, or 11378 # (2) before a word containing "conftest.", or (3) at the end. 11379 # Note that $ac_compile itself does not contain backslashes and begins 11380 # with a dollar sign (not a hyphen), so the echo should work correctly. 11381 lt_compile=`echo "$ac_compile" | $SED \ 11382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11384 -e 's:$: $lt_compiler_flag:'` 11385 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11386 (eval "$lt_compile" 2>out/conftest.err) 11387 ac_status=$? 11388 cat out/conftest.err >&5 11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11390 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11391 then 11392 # The compiler can only warn and ignore the option if not recognized 11393 # So say no if there are warnings 11394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11397 lt_cv_prog_compiler_c_o=yes 11398 fi 11399 fi 11400 chmod u+w . 2>&5 11401 $RM conftest* 11402 # SGI C++ compiler will create directory out/ii_files/ for 11403 # template instantiation 11404 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11405 $RM out/* && rmdir out 11406 cd .. 11407 $RM -r conftest 11408 $RM conftest* 11409 11410fi 11411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11412$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11413 11414 11415 11416 11417 11418 11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11420$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11421if ${lt_cv_prog_compiler_c_o+:} false; then : 11422 $as_echo_n "(cached) " >&6 11423else 11424 lt_cv_prog_compiler_c_o=no 11425 $RM -r conftest 2>/dev/null 11426 mkdir conftest 11427 cd conftest 11428 mkdir out 11429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11430 11431 lt_compiler_flag="-o out/conftest2.$ac_objext" 11432 # Insert the option either (1) after the last *FLAGS variable, or 11433 # (2) before a word containing "conftest.", or (3) at the end. 11434 # Note that $ac_compile itself does not contain backslashes and begins 11435 # with a dollar sign (not a hyphen), so the echo should work correctly. 11436 lt_compile=`echo "$ac_compile" | $SED \ 11437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11439 -e 's:$: $lt_compiler_flag:'` 11440 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11441 (eval "$lt_compile" 2>out/conftest.err) 11442 ac_status=$? 11443 cat out/conftest.err >&5 11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11445 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11446 then 11447 # The compiler can only warn and ignore the option if not recognized 11448 # So say no if there are warnings 11449 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11450 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11451 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11452 lt_cv_prog_compiler_c_o=yes 11453 fi 11454 fi 11455 chmod u+w . 2>&5 11456 $RM conftest* 11457 # SGI C++ compiler will create directory out/ii_files/ for 11458 # template instantiation 11459 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11460 $RM out/* && rmdir out 11461 cd .. 11462 $RM -r conftest 11463 $RM conftest* 11464 11465fi 11466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11467$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11468 11469 11470 11471 11472hard_links=nottested 11473if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11474 # do not overwrite the value of need_locks provided by the user 11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11476$as_echo_n "checking if we can lock with hard links... " >&6; } 11477 hard_links=yes 11478 $RM conftest* 11479 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11480 touch conftest.a 11481 ln conftest.a conftest.b 2>&5 || hard_links=no 11482 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11484$as_echo "$hard_links" >&6; } 11485 if test no = "$hard_links"; then 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11487$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11488 need_locks=warn 11489 fi 11490else 11491 need_locks=no 11492fi 11493 11494 11495 11496 11497 11498 11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11500$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11501 11502 runpath_var= 11503 allow_undefined_flag= 11504 always_export_symbols=no 11505 archive_cmds= 11506 archive_expsym_cmds= 11507 compiler_needs_object=no 11508 enable_shared_with_static_runtimes=no 11509 export_dynamic_flag_spec= 11510 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11511 hardcode_automatic=no 11512 hardcode_direct=no 11513 hardcode_direct_absolute=no 11514 hardcode_libdir_flag_spec= 11515 hardcode_libdir_separator= 11516 hardcode_minus_L=no 11517 hardcode_shlibpath_var=unsupported 11518 inherit_rpath=no 11519 link_all_deplibs=unknown 11520 module_cmds= 11521 module_expsym_cmds= 11522 old_archive_from_new_cmds= 11523 old_archive_from_expsyms_cmds= 11524 thread_safe_flag_spec= 11525 whole_archive_flag_spec= 11526 # include_expsyms should be a list of space-separated symbols to be *always* 11527 # included in the symbol list 11528 include_expsyms= 11529 # exclude_expsyms can be an extended regexp of symbols to exclude 11530 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11531 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11532 # as well as any symbol that contains 'd'. 11533 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11534 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11535 # platforms (ab)use it in PIC code, but their linkers get confused if 11536 # the symbol is explicitly referenced. Since portable code cannot 11537 # rely on this symbol name, it's probably fine to never include it in 11538 # preloaded symbol tables. 11539 # Exclude shared library initialization/finalization symbols. 11540 extract_expsyms_cmds= 11541 11542 case $host_os in 11543 cygwin* | mingw* | pw32* | cegcc*) 11544 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11545 # When not using gcc, we currently assume that we are using 11546 # Microsoft Visual C++. 11547 if test yes != "$GCC"; then 11548 with_gnu_ld=no 11549 fi 11550 ;; 11551 interix*) 11552 # we just hope/assume this is gcc and not c89 (= MSVC++) 11553 with_gnu_ld=yes 11554 ;; 11555 openbsd* | bitrig*) 11556 with_gnu_ld=no 11557 ;; 11558 esac 11559 11560 ld_shlibs=yes 11561 11562 # On some targets, GNU ld is compatible enough with the native linker 11563 # that we're better off using the native interface for both. 11564 lt_use_gnu_ld_interface=no 11565 if test yes = "$with_gnu_ld"; then 11566 case $host_os in 11567 aix*) 11568 # The AIX port of GNU ld has always aspired to compatibility 11569 # with the native linker. However, as the warning in the GNU ld 11570 # block says, versions before 2.19.5* couldn't really create working 11571 # shared libraries, regardless of the interface used. 11572 case `$LD -v 2>&1` in 11573 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11574 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11575 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11576 *) 11577 lt_use_gnu_ld_interface=yes 11578 ;; 11579 esac 11580 ;; 11581 *) 11582 lt_use_gnu_ld_interface=yes 11583 ;; 11584 esac 11585 fi 11586 11587 if test yes = "$lt_use_gnu_ld_interface"; then 11588 # If archive_cmds runs LD, not CC, wlarc should be empty 11589 wlarc='$wl' 11590 11591 # Set some defaults for GNU ld with shared library support. These 11592 # are reset later if shared libraries are not supported. Putting them 11593 # here allows them to be overridden if necessary. 11594 runpath_var=LD_RUN_PATH 11595 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11596 export_dynamic_flag_spec='$wl--export-dynamic' 11597 # ancient GNU ld didn't support --whole-archive et. al. 11598 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11599 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11600 else 11601 whole_archive_flag_spec= 11602 fi 11603 supports_anon_versioning=no 11604 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 11605 *GNU\ gold*) supports_anon_versioning=yes ;; 11606 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11607 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11608 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11609 *\ 2.11.*) ;; # other 2.11 versions 11610 *) supports_anon_versioning=yes ;; 11611 esac 11612 11613 # See if GNU ld supports shared libraries. 11614 case $host_os in 11615 aix[3-9]*) 11616 # On AIX/PPC, the GNU linker is very broken 11617 if test ia64 != "$host_cpu"; then 11618 ld_shlibs=no 11619 cat <<_LT_EOF 1>&2 11620 11621*** Warning: the GNU linker, at least up to release 2.19, is reported 11622*** to be unable to reliably create shared libraries on AIX. 11623*** Therefore, libtool is disabling shared libraries support. If you 11624*** really care for shared libraries, you may want to install binutils 11625*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11626*** You will then need to restart the configuration process. 11627 11628_LT_EOF 11629 fi 11630 ;; 11631 11632 amigaos*) 11633 case $host_cpu in 11634 powerpc) 11635 # see comment about AmigaOS4 .so support 11636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11637 archive_expsym_cmds='' 11638 ;; 11639 m68k) 11640 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 11641 hardcode_libdir_flag_spec='-L$libdir' 11642 hardcode_minus_L=yes 11643 ;; 11644 esac 11645 ;; 11646 11647 beos*) 11648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11649 allow_undefined_flag=unsupported 11650 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11651 # support --undefined. This deserves some investigation. FIXME 11652 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11653 else 11654 ld_shlibs=no 11655 fi 11656 ;; 11657 11658 cygwin* | mingw* | pw32* | cegcc*) 11659 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11660 # as there is no search path for DLLs. 11661 hardcode_libdir_flag_spec='-L$libdir' 11662 export_dynamic_flag_spec='$wl--export-all-symbols' 11663 allow_undefined_flag=unsupported 11664 always_export_symbols=no 11665 enable_shared_with_static_runtimes=yes 11666 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 11667 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11668 11669 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11671 # If the export-symbols file already is a .def file, use it as 11672 # is; otherwise, prepend EXPORTS... 11673 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11674 cp $export_symbols $output_objdir/$soname.def; 11675 else 11676 echo EXPORTS > $output_objdir/$soname.def; 11677 cat $export_symbols >> $output_objdir/$soname.def; 11678 fi~ 11679 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11680 else 11681 ld_shlibs=no 11682 fi 11683 ;; 11684 11685 haiku*) 11686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11687 link_all_deplibs=yes 11688 ;; 11689 11690 os2*) 11691 hardcode_libdir_flag_spec='-L$libdir' 11692 hardcode_minus_L=yes 11693 allow_undefined_flag=unsupported 11694 shrext_cmds=.dll 11695 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11696 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11697 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11698 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11699 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11700 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11701 emximp -o $lib $output_objdir/$libname.def' 11702 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11703 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11704 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11705 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11706 prefix_cmds="$SED"~ 11707 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11708 prefix_cmds="$prefix_cmds -e 1d"; 11709 fi~ 11710 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11711 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11712 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11713 emximp -o $lib $output_objdir/$libname.def' 11714 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11715 enable_shared_with_static_runtimes=yes 11716 ;; 11717 11718 interix[3-9]*) 11719 hardcode_direct=no 11720 hardcode_shlibpath_var=no 11721 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11722 export_dynamic_flag_spec='$wl-E' 11723 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11724 # Instead, shared libraries are loaded at an image base (0x10000000 by 11725 # default) and relocated if they conflict, which is a slow very memory 11726 # consuming and fragmenting process. To avoid this, we pick a random, 11727 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11728 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11729 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11730 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11731 ;; 11732 11733 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11734 tmp_diet=no 11735 if test linux-dietlibc = "$host_os"; then 11736 case $cc_basename in 11737 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11738 esac 11739 fi 11740 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11741 && test no = "$tmp_diet" 11742 then 11743 tmp_addflag=' $pic_flag' 11744 tmp_sharedflag='-shared' 11745 case $cc_basename,$host_cpu in 11746 pgcc*) # Portland Group C compiler 11747 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11748 tmp_addflag=' $pic_flag' 11749 ;; 11750 pgf77* | pgf90* | pgf95* | pgfortran*) 11751 # Portland Group f77 and f90 compilers 11752 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11753 tmp_addflag=' $pic_flag -Mnomain' ;; 11754 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11755 tmp_addflag=' -i_dynamic' ;; 11756 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11757 tmp_addflag=' -i_dynamic -nofor_main' ;; 11758 ifc* | ifort*) # Intel Fortran compiler 11759 tmp_addflag=' -nofor_main' ;; 11760 lf95*) # Lahey Fortran 8.1 11761 whole_archive_flag_spec= 11762 tmp_sharedflag='--shared' ;; 11763 nagfor*) # NAGFOR 5.3 11764 tmp_sharedflag='-Wl,-shared' ;; 11765 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11766 tmp_sharedflag='-qmkshrobj' 11767 tmp_addflag= ;; 11768 nvcc*) # Cuda Compiler Driver 2.2 11769 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11770 compiler_needs_object=yes 11771 ;; 11772 esac 11773 case `$CC -V 2>&1 | sed 5q` in 11774 *Sun\ C*) # Sun C 5.9 11775 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11776 compiler_needs_object=yes 11777 tmp_sharedflag='-G' ;; 11778 *Sun\ F*) # Sun Fortran 8.3 11779 tmp_sharedflag='-G' ;; 11780 esac 11781 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11782 11783 if test yes = "$supports_anon_versioning"; then 11784 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11785 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11786 echo "local: *; };" >> $output_objdir/$libname.ver~ 11787 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11788 fi 11789 11790 case $cc_basename in 11791 tcc*) 11792 export_dynamic_flag_spec='-rdynamic' 11793 ;; 11794 xlf* | bgf* | bgxlf* | mpixlf*) 11795 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11796 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11797 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11798 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11799 if test yes = "$supports_anon_versioning"; then 11800 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11802 echo "local: *; };" >> $output_objdir/$libname.ver~ 11803 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11804 fi 11805 ;; 11806 esac 11807 else 11808 ld_shlibs=no 11809 fi 11810 ;; 11811 11812 netbsd*) 11813 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11814 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11815 wlarc= 11816 else 11817 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11818 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11819 fi 11820 ;; 11821 11822 solaris*) 11823 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11824 ld_shlibs=no 11825 cat <<_LT_EOF 1>&2 11826 11827*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11828*** create shared libraries on Solaris systems. Therefore, libtool 11829*** is disabling shared libraries support. We urge you to upgrade GNU 11830*** binutils to release 2.9.1 or newer. Another option is to modify 11831*** your PATH or compiler configuration so that the native linker is 11832*** used, and then restart. 11833 11834_LT_EOF 11835 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11837 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11838 else 11839 ld_shlibs=no 11840 fi 11841 ;; 11842 11843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11844 case `$LD -v 2>&1` in 11845 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11846 ld_shlibs=no 11847 cat <<_LT_EOF 1>&2 11848 11849*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11850*** reliably create shared libraries on SCO systems. Therefore, libtool 11851*** is disabling shared libraries support. We urge you to upgrade GNU 11852*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11853*** your PATH or compiler configuration so that the native linker is 11854*** used, and then restart. 11855 11856_LT_EOF 11857 ;; 11858 *) 11859 # For security reasons, it is highly recommended that you always 11860 # use absolute paths for naming shared libraries, and exclude the 11861 # DT_RUNPATH tag from executables and libraries. But doing so 11862 # requires that you compile everything twice, which is a pain. 11863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11864 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11866 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11867 else 11868 ld_shlibs=no 11869 fi 11870 ;; 11871 esac 11872 ;; 11873 11874 sunos4*) 11875 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11876 wlarc= 11877 hardcode_direct=yes 11878 hardcode_shlibpath_var=no 11879 ;; 11880 11881 *) 11882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11883 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11884 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11885 else 11886 ld_shlibs=no 11887 fi 11888 ;; 11889 esac 11890 11891 if test no = "$ld_shlibs"; then 11892 runpath_var= 11893 hardcode_libdir_flag_spec= 11894 export_dynamic_flag_spec= 11895 whole_archive_flag_spec= 11896 fi 11897 else 11898 # PORTME fill in a description of your system's linker (not GNU ld) 11899 case $host_os in 11900 aix3*) 11901 allow_undefined_flag=unsupported 11902 always_export_symbols=yes 11903 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 11904 # Note: this linker hardcodes the directories in LIBPATH if there 11905 # are no directories specified by -L. 11906 hardcode_minus_L=yes 11907 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11908 # Neither direct hardcoding nor static linking is supported with a 11909 # broken collect2. 11910 hardcode_direct=unsupported 11911 fi 11912 ;; 11913 11914 aix[4-9]*) 11915 if test ia64 = "$host_cpu"; then 11916 # On IA64, the linker does run time linking by default, so we don't 11917 # have to do anything special. 11918 aix_use_runtimelinking=no 11919 exp_sym_flag='-Bexport' 11920 no_entry_flag= 11921 else 11922 # If we're using GNU nm, then we don't want the "-C" option. 11923 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11924 # Without the "-l" option, or with the "-B" option, AIX nm treats 11925 # weak defined symbols like other global defined symbols, whereas 11926 # GNU nm marks them as "W". 11927 # While the 'weak' keyword is ignored in the Export File, we need 11928 # it in the Import File for the 'aix-soname' feature, so we have 11929 # to replace the "-B" option with "-P" for AIX nm. 11930 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11931 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 11932 else 11933 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 11934 fi 11935 aix_use_runtimelinking=no 11936 11937 # Test if we are trying to use run time linking or normal 11938 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11939 # have runtime linking enabled, and use it for executables. 11940 # For shared libraries, we enable/disable runtime linking 11941 # depending on the kind of the shared library created - 11942 # when "with_aix_soname,aix_use_runtimelinking" is: 11943 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11944 # "aix,yes" lib.so shared, rtl:yes, for executables 11945 # lib.a static archive 11946 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11947 # lib.a(lib.so.V) shared, rtl:no, for executables 11948 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11949 # lib.a(lib.so.V) shared, rtl:no 11950 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11951 # lib.a static archive 11952 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11953 for ld_flag in $LDFLAGS; do 11954 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11955 aix_use_runtimelinking=yes 11956 break 11957 fi 11958 done 11959 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11960 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11961 # so we don't have lib.a shared libs to link our executables. 11962 # We have to force runtime linking in this case. 11963 aix_use_runtimelinking=yes 11964 LDFLAGS="$LDFLAGS -Wl,-brtl" 11965 fi 11966 ;; 11967 esac 11968 11969 exp_sym_flag='-bexport' 11970 no_entry_flag='-bnoentry' 11971 fi 11972 11973 # When large executables or shared objects are built, AIX ld can 11974 # have problems creating the table of contents. If linking a library 11975 # or program results in "error TOC overflow" add -mminimal-toc to 11976 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11977 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11978 11979 archive_cmds='' 11980 hardcode_direct=yes 11981 hardcode_direct_absolute=yes 11982 hardcode_libdir_separator=':' 11983 link_all_deplibs=yes 11984 file_list_spec='$wl-f,' 11985 case $with_aix_soname,$aix_use_runtimelinking in 11986 aix,*) ;; # traditional, no import file 11987 svr4,* | *,yes) # use import file 11988 # The Import File defines what to hardcode. 11989 hardcode_direct=no 11990 hardcode_direct_absolute=no 11991 ;; 11992 esac 11993 11994 if test yes = "$GCC"; then 11995 case $host_os in aix4.[012]|aix4.[012].*) 11996 # We only want to do this on AIX 4.2 and lower, the check 11997 # below for broken collect2 doesn't work under 4.3+ 11998 collect2name=`$CC -print-prog-name=collect2` 11999 if test -f "$collect2name" && 12000 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12001 then 12002 # We have reworked collect2 12003 : 12004 else 12005 # We have old collect2 12006 hardcode_direct=unsupported 12007 # It fails to find uninstalled libraries when the uninstalled 12008 # path is not listed in the libpath. Setting hardcode_minus_L 12009 # to unsupported forces relinking 12010 hardcode_minus_L=yes 12011 hardcode_libdir_flag_spec='-L$libdir' 12012 hardcode_libdir_separator= 12013 fi 12014 ;; 12015 esac 12016 shared_flag='-shared' 12017 if test yes = "$aix_use_runtimelinking"; then 12018 shared_flag="$shared_flag "'$wl-G' 12019 fi 12020 # Need to ensure runtime linking is disabled for the traditional 12021 # shared library, or the linker may eventually find shared libraries 12022 # /with/ Import File - we do not want to mix them. 12023 shared_flag_aix='-shared' 12024 shared_flag_svr4='-shared $wl-G' 12025 else 12026 # not using gcc 12027 if test ia64 = "$host_cpu"; then 12028 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12029 # chokes on -Wl,-G. The following line is correct: 12030 shared_flag='-G' 12031 else 12032 if test yes = "$aix_use_runtimelinking"; then 12033 shared_flag='$wl-G' 12034 else 12035 shared_flag='$wl-bM:SRE' 12036 fi 12037 shared_flag_aix='$wl-bM:SRE' 12038 shared_flag_svr4='$wl-G' 12039 fi 12040 fi 12041 12042 export_dynamic_flag_spec='$wl-bexpall' 12043 # It seems that -bexpall does not export symbols beginning with 12044 # underscore (_), so it is better to generate a list of symbols to export. 12045 always_export_symbols=yes 12046 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12047 # Warning - without using the other runtime loading flags (-brtl), 12048 # -berok will link without error, but may produce a broken library. 12049 allow_undefined_flag='-berok' 12050 # Determine the default libpath from the value encoded in an 12051 # empty executable. 12052 if test set = "${lt_cv_aix_libpath+set}"; then 12053 aix_libpath=$lt_cv_aix_libpath 12054else 12055 if ${lt_cv_aix_libpath_+:} false; then : 12056 $as_echo_n "(cached) " >&6 12057else 12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12059/* end confdefs.h. */ 12060 12061int 12062main () 12063{ 12064 12065 ; 12066 return 0; 12067} 12068_ACEOF 12069if ac_fn_c_try_link "$LINENO"; then : 12070 12071 lt_aix_libpath_sed=' 12072 /Import File Strings/,/^$/ { 12073 /^0/ { 12074 s/^0 *\([^ ]*\) *$/\1/ 12075 p 12076 } 12077 }' 12078 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12079 # Check for a 64-bit object if we didn't find anything. 12080 if test -z "$lt_cv_aix_libpath_"; then 12081 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12082 fi 12083fi 12084rm -f core conftest.err conftest.$ac_objext \ 12085 conftest$ac_exeext conftest.$ac_ext 12086 if test -z "$lt_cv_aix_libpath_"; then 12087 lt_cv_aix_libpath_=/usr/lib:/lib 12088 fi 12089 12090fi 12091 12092 aix_libpath=$lt_cv_aix_libpath_ 12093fi 12094 12095 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12096 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 12097 else 12098 if test ia64 = "$host_cpu"; then 12099 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12100 allow_undefined_flag="-z nodefs" 12101 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 12102 else 12103 # Determine the default libpath from the value encoded in an 12104 # empty executable. 12105 if test set = "${lt_cv_aix_libpath+set}"; then 12106 aix_libpath=$lt_cv_aix_libpath 12107else 12108 if ${lt_cv_aix_libpath_+:} false; then : 12109 $as_echo_n "(cached) " >&6 12110else 12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12112/* end confdefs.h. */ 12113 12114int 12115main () 12116{ 12117 12118 ; 12119 return 0; 12120} 12121_ACEOF 12122if ac_fn_c_try_link "$LINENO"; then : 12123 12124 lt_aix_libpath_sed=' 12125 /Import File Strings/,/^$/ { 12126 /^0/ { 12127 s/^0 *\([^ ]*\) *$/\1/ 12128 p 12129 } 12130 }' 12131 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12132 # Check for a 64-bit object if we didn't find anything. 12133 if test -z "$lt_cv_aix_libpath_"; then 12134 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12135 fi 12136fi 12137rm -f core conftest.err conftest.$ac_objext \ 12138 conftest$ac_exeext conftest.$ac_ext 12139 if test -z "$lt_cv_aix_libpath_"; then 12140 lt_cv_aix_libpath_=/usr/lib:/lib 12141 fi 12142 12143fi 12144 12145 aix_libpath=$lt_cv_aix_libpath_ 12146fi 12147 12148 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12149 # Warning - without using the other run time loading flags, 12150 # -berok will link without error, but may produce a broken library. 12151 no_undefined_flag=' $wl-bernotok' 12152 allow_undefined_flag=' $wl-berok' 12153 if test yes = "$with_gnu_ld"; then 12154 # We only use this code for GNU lds that support --whole-archive. 12155 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12156 else 12157 # Exported symbols can be pulled into shared objects from archives 12158 whole_archive_flag_spec='$convenience' 12159 fi 12160 archive_cmds_need_lc=yes 12161 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12162 # -brtl affects multiple linker settings, -berok does not and is overridden later 12163 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12164 if test svr4 != "$with_aix_soname"; then 12165 # This is similar to how AIX traditionally builds its shared libraries. 12166 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 12167 fi 12168 if test aix != "$with_aix_soname"; then 12169 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 12170 else 12171 # used by -dlpreopen to get the symbols 12172 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12173 fi 12174 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12175 fi 12176 fi 12177 ;; 12178 12179 amigaos*) 12180 case $host_cpu in 12181 powerpc) 12182 # see comment about AmigaOS4 .so support 12183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12184 archive_expsym_cmds='' 12185 ;; 12186 m68k) 12187 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 12188 hardcode_libdir_flag_spec='-L$libdir' 12189 hardcode_minus_L=yes 12190 ;; 12191 esac 12192 ;; 12193 12194 bsdi[45]*) 12195 export_dynamic_flag_spec=-rdynamic 12196 ;; 12197 12198 cygwin* | mingw* | pw32* | cegcc*) 12199 # When not using gcc, we currently assume that we are using 12200 # Microsoft Visual C++. 12201 # hardcode_libdir_flag_spec is actually meaningless, as there is 12202 # no search path for DLLs. 12203 case $cc_basename in 12204 cl*) 12205 # Native MSVC 12206 hardcode_libdir_flag_spec=' ' 12207 allow_undefined_flag=unsupported 12208 always_export_symbols=yes 12209 file_list_spec='@' 12210 # Tell ltmain to make .lib files, not .a files. 12211 libext=lib 12212 # Tell ltmain to make .dll files, not .so files. 12213 shrext_cmds=.dll 12214 # FIXME: Setting linknames here is a bad hack. 12215 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12216 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12217 cp "$export_symbols" "$output_objdir/$soname.def"; 12218 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12219 else 12220 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12221 fi~ 12222 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12223 linknames=' 12224 # The linker will not automatically build a static lib if we build a DLL. 12225 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12226 enable_shared_with_static_runtimes=yes 12227 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12228 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12229 # Don't use ranlib 12230 old_postinstall_cmds='chmod 644 $oldlib' 12231 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12232 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12233 case $lt_outputfile in 12234 *.exe|*.EXE) ;; 12235 *) 12236 lt_outputfile=$lt_outputfile.exe 12237 lt_tool_outputfile=$lt_tool_outputfile.exe 12238 ;; 12239 esac~ 12240 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12241 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12242 $RM "$lt_outputfile.manifest"; 12243 fi' 12244 ;; 12245 *) 12246 # Assume MSVC wrapper 12247 hardcode_libdir_flag_spec=' ' 12248 allow_undefined_flag=unsupported 12249 # Tell ltmain to make .lib files, not .a files. 12250 libext=lib 12251 # Tell ltmain to make .dll files, not .so files. 12252 shrext_cmds=.dll 12253 # FIXME: Setting linknames here is a bad hack. 12254 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12255 # The linker will automatically build a .lib file if we build a DLL. 12256 old_archive_from_new_cmds='true' 12257 # FIXME: Should let the user specify the lib program. 12258 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12259 enable_shared_with_static_runtimes=yes 12260 ;; 12261 esac 12262 ;; 12263 12264 darwin* | rhapsody*) 12265 12266 12267 archive_cmds_need_lc=no 12268 hardcode_direct=no 12269 hardcode_automatic=yes 12270 hardcode_shlibpath_var=unsupported 12271 if test yes = "$lt_cv_ld_force_load"; then 12272 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 12273 12274 else 12275 whole_archive_flag_spec='' 12276 fi 12277 link_all_deplibs=yes 12278 allow_undefined_flag=$_lt_dar_allow_undefined 12279 case $cc_basename in 12280 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12281 *) _lt_dar_can_shared=$GCC ;; 12282 esac 12283 if test yes = "$_lt_dar_can_shared"; then 12284 output_verbose_link_cmd=func_echo_all 12285 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12286 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12287 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 12288 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 12289 12290 else 12291 ld_shlibs=no 12292 fi 12293 12294 ;; 12295 12296 dgux*) 12297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12298 hardcode_libdir_flag_spec='-L$libdir' 12299 hardcode_shlibpath_var=no 12300 ;; 12301 12302 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12303 # support. Future versions do this automatically, but an explicit c++rt0.o 12304 # does not break anything, and helps significantly (at the cost of a little 12305 # extra space). 12306 freebsd2.2*) 12307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12308 hardcode_libdir_flag_spec='-R$libdir' 12309 hardcode_direct=yes 12310 hardcode_shlibpath_var=no 12311 ;; 12312 12313 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12314 freebsd2.*) 12315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12316 hardcode_direct=yes 12317 hardcode_minus_L=yes 12318 hardcode_shlibpath_var=no 12319 ;; 12320 12321 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12322 freebsd* | dragonfly*) 12323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12324 hardcode_libdir_flag_spec='-R$libdir' 12325 hardcode_direct=yes 12326 hardcode_shlibpath_var=no 12327 ;; 12328 12329 hpux9*) 12330 if test yes = "$GCC"; then 12331 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12332 else 12333 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12334 fi 12335 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12336 hardcode_libdir_separator=: 12337 hardcode_direct=yes 12338 12339 # hardcode_minus_L: Not really in the search PATH, 12340 # but as the default location of the library. 12341 hardcode_minus_L=yes 12342 export_dynamic_flag_spec='$wl-E' 12343 ;; 12344 12345 hpux10*) 12346 if test yes,no = "$GCC,$with_gnu_ld"; then 12347 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12348 else 12349 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12350 fi 12351 if test no = "$with_gnu_ld"; then 12352 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12353 hardcode_libdir_separator=: 12354 hardcode_direct=yes 12355 hardcode_direct_absolute=yes 12356 export_dynamic_flag_spec='$wl-E' 12357 # hardcode_minus_L: Not really in the search PATH, 12358 # but as the default location of the library. 12359 hardcode_minus_L=yes 12360 fi 12361 ;; 12362 12363 hpux11*) 12364 if test yes,no = "$GCC,$with_gnu_ld"; then 12365 case $host_cpu in 12366 hppa*64*) 12367 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12368 ;; 12369 ia64*) 12370 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12371 ;; 12372 *) 12373 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12374 ;; 12375 esac 12376 else 12377 case $host_cpu in 12378 hppa*64*) 12379 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12380 ;; 12381 ia64*) 12382 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12383 ;; 12384 *) 12385 12386 # Older versions of the 11.00 compiler do not understand -b yet 12387 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12389$as_echo_n "checking if $CC understands -b... " >&6; } 12390if ${lt_cv_prog_compiler__b+:} false; then : 12391 $as_echo_n "(cached) " >&6 12392else 12393 lt_cv_prog_compiler__b=no 12394 save_LDFLAGS=$LDFLAGS 12395 LDFLAGS="$LDFLAGS -b" 12396 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12397 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12398 # The linker can only warn and ignore the option if not recognized 12399 # So say no if there are warnings 12400 if test -s conftest.err; then 12401 # Append any errors to the config.log. 12402 cat conftest.err 1>&5 12403 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12405 if diff conftest.exp conftest.er2 >/dev/null; then 12406 lt_cv_prog_compiler__b=yes 12407 fi 12408 else 12409 lt_cv_prog_compiler__b=yes 12410 fi 12411 fi 12412 $RM -r conftest* 12413 LDFLAGS=$save_LDFLAGS 12414 12415fi 12416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12417$as_echo "$lt_cv_prog_compiler__b" >&6; } 12418 12419if test yes = "$lt_cv_prog_compiler__b"; then 12420 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12421else 12422 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12423fi 12424 12425 ;; 12426 esac 12427 fi 12428 if test no = "$with_gnu_ld"; then 12429 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12430 hardcode_libdir_separator=: 12431 12432 case $host_cpu in 12433 hppa*64*|ia64*) 12434 hardcode_direct=no 12435 hardcode_shlibpath_var=no 12436 ;; 12437 *) 12438 hardcode_direct=yes 12439 hardcode_direct_absolute=yes 12440 export_dynamic_flag_spec='$wl-E' 12441 12442 # hardcode_minus_L: Not really in the search PATH, 12443 # but as the default location of the library. 12444 hardcode_minus_L=yes 12445 ;; 12446 esac 12447 fi 12448 ;; 12449 12450 irix5* | irix6* | nonstopux*) 12451 if test yes = "$GCC"; then 12452 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 12453 # Try to use the -exported_symbol ld option, if it does not 12454 # work, assume that -exports_file does not work either and 12455 # implicitly export all symbols. 12456 # This should be the same for all languages, so no per-tag cache variable. 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12458$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12459if ${lt_cv_irix_exported_symbol+:} false; then : 12460 $as_echo_n "(cached) " >&6 12461else 12462 save_LDFLAGS=$LDFLAGS 12463 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12465/* end confdefs.h. */ 12466int foo (void) { return 0; } 12467_ACEOF 12468if ac_fn_c_try_link "$LINENO"; then : 12469 lt_cv_irix_exported_symbol=yes 12470else 12471 lt_cv_irix_exported_symbol=no 12472fi 12473rm -f core conftest.err conftest.$ac_objext \ 12474 conftest$ac_exeext conftest.$ac_ext 12475 LDFLAGS=$save_LDFLAGS 12476fi 12477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12478$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12479 if test yes = "$lt_cv_irix_exported_symbol"; then 12480 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 12481 fi 12482 else 12483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 12484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 12485 fi 12486 archive_cmds_need_lc='no' 12487 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12488 hardcode_libdir_separator=: 12489 inherit_rpath=yes 12490 link_all_deplibs=yes 12491 ;; 12492 12493 linux*) 12494 case $cc_basename in 12495 tcc*) 12496 # Fabrice Bellard et al's Tiny C Compiler 12497 ld_shlibs=yes 12498 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12499 ;; 12500 esac 12501 ;; 12502 12503 netbsd*) 12504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12505 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12506 else 12507 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12508 fi 12509 hardcode_libdir_flag_spec='-R$libdir' 12510 hardcode_direct=yes 12511 hardcode_shlibpath_var=no 12512 ;; 12513 12514 newsos6) 12515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12516 hardcode_direct=yes 12517 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12518 hardcode_libdir_separator=: 12519 hardcode_shlibpath_var=no 12520 ;; 12521 12522 *nto* | *qnx*) 12523 ;; 12524 12525 openbsd* | bitrig*) 12526 if test -f /usr/libexec/ld.so; then 12527 hardcode_direct=yes 12528 hardcode_shlibpath_var=no 12529 hardcode_direct_absolute=yes 12530 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12531 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12532 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12533 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12534 export_dynamic_flag_spec='$wl-E' 12535 else 12536 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12537 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12538 fi 12539 else 12540 ld_shlibs=no 12541 fi 12542 ;; 12543 12544 os2*) 12545 hardcode_libdir_flag_spec='-L$libdir' 12546 hardcode_minus_L=yes 12547 allow_undefined_flag=unsupported 12548 shrext_cmds=.dll 12549 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12550 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12551 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12552 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12553 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12554 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12555 emximp -o $lib $output_objdir/$libname.def' 12556 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12557 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12558 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12559 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12560 prefix_cmds="$SED"~ 12561 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12562 prefix_cmds="$prefix_cmds -e 1d"; 12563 fi~ 12564 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12565 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12566 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12567 emximp -o $lib $output_objdir/$libname.def' 12568 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12569 enable_shared_with_static_runtimes=yes 12570 ;; 12571 12572 osf3*) 12573 if test yes = "$GCC"; then 12574 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12575 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 12576 else 12577 allow_undefined_flag=' -expect_unresolved \*' 12578 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 12579 fi 12580 archive_cmds_need_lc='no' 12581 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12582 hardcode_libdir_separator=: 12583 ;; 12584 12585 osf4* | osf5*) # as osf3* with the addition of -msym flag 12586 if test yes = "$GCC"; then 12587 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12588 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 12589 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12590 else 12591 allow_undefined_flag=' -expect_unresolved \*' 12592 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 12593 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 12594 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 12595 12596 # Both c and cxx compiler support -rpath directly 12597 hardcode_libdir_flag_spec='-rpath $libdir' 12598 fi 12599 archive_cmds_need_lc='no' 12600 hardcode_libdir_separator=: 12601 ;; 12602 12603 solaris*) 12604 no_undefined_flag=' -z defs' 12605 if test yes = "$GCC"; then 12606 wlarc='$wl' 12607 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12608 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12609 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12610 else 12611 case `$CC -V 2>&1` in 12612 *"Compilers 5.0"*) 12613 wlarc='' 12614 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12615 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12616 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12617 ;; 12618 *) 12619 wlarc='$wl' 12620 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12621 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12622 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12623 ;; 12624 esac 12625 fi 12626 hardcode_libdir_flag_spec='-R$libdir' 12627 hardcode_shlibpath_var=no 12628 case $host_os in 12629 solaris2.[0-5] | solaris2.[0-5].*) ;; 12630 *) 12631 # The compiler driver will combine and reorder linker options, 12632 # but understands '-z linker_flag'. GCC discards it without '$wl', 12633 # but is careful enough not to reorder. 12634 # Supported since Solaris 2.6 (maybe 2.5.1?) 12635 if test yes = "$GCC"; then 12636 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 12637 else 12638 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12639 fi 12640 ;; 12641 esac 12642 link_all_deplibs=yes 12643 ;; 12644 12645 sunos4*) 12646 if test sequent = "$host_vendor"; then 12647 # Use $CC to link under sequent, because it throws in some extra .o 12648 # files that make .init and .fini sections work. 12649 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12650 else 12651 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12652 fi 12653 hardcode_libdir_flag_spec='-L$libdir' 12654 hardcode_direct=yes 12655 hardcode_minus_L=yes 12656 hardcode_shlibpath_var=no 12657 ;; 12658 12659 sysv4) 12660 case $host_vendor in 12661 sni) 12662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12663 hardcode_direct=yes # is this really true??? 12664 ;; 12665 siemens) 12666 ## LD is ld it makes a PLAMLIB 12667 ## CC just makes a GrossModule. 12668 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12669 reload_cmds='$CC -r -o $output$reload_objs' 12670 hardcode_direct=no 12671 ;; 12672 motorola) 12673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12674 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12675 ;; 12676 esac 12677 runpath_var='LD_RUN_PATH' 12678 hardcode_shlibpath_var=no 12679 ;; 12680 12681 sysv4.3*) 12682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12683 hardcode_shlibpath_var=no 12684 export_dynamic_flag_spec='-Bexport' 12685 ;; 12686 12687 sysv4*MP*) 12688 if test -d /usr/nec; then 12689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12690 hardcode_shlibpath_var=no 12691 runpath_var=LD_RUN_PATH 12692 hardcode_runpath_var=yes 12693 ld_shlibs=yes 12694 fi 12695 ;; 12696 12697 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12698 no_undefined_flag='$wl-z,text' 12699 archive_cmds_need_lc=no 12700 hardcode_shlibpath_var=no 12701 runpath_var='LD_RUN_PATH' 12702 12703 if test yes = "$GCC"; then 12704 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12705 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12706 else 12707 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12708 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12709 fi 12710 ;; 12711 12712 sysv5* | sco3.2v5* | sco5v6*) 12713 # Note: We CANNOT use -z defs as we might desire, because we do not 12714 # link with -lc, and that would cause any symbols used from libc to 12715 # always be unresolved, which means just about no library would 12716 # ever link correctly. If we're not using GNU ld we use -z text 12717 # though, which does catch some bad symbols but isn't as heavy-handed 12718 # as -z defs. 12719 no_undefined_flag='$wl-z,text' 12720 allow_undefined_flag='$wl-z,nodefs' 12721 archive_cmds_need_lc=no 12722 hardcode_shlibpath_var=no 12723 hardcode_libdir_flag_spec='$wl-R,$libdir' 12724 hardcode_libdir_separator=':' 12725 link_all_deplibs=yes 12726 export_dynamic_flag_spec='$wl-Bexport' 12727 runpath_var='LD_RUN_PATH' 12728 12729 if test yes = "$GCC"; then 12730 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12731 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12732 else 12733 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12734 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12735 fi 12736 ;; 12737 12738 uts4*) 12739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12740 hardcode_libdir_flag_spec='-L$libdir' 12741 hardcode_shlibpath_var=no 12742 ;; 12743 12744 *) 12745 ld_shlibs=no 12746 ;; 12747 esac 12748 12749 if test sni = "$host_vendor"; then 12750 case $host in 12751 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12752 export_dynamic_flag_spec='$wl-Blargedynsym' 12753 ;; 12754 esac 12755 fi 12756 fi 12757 12758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12759$as_echo "$ld_shlibs" >&6; } 12760test no = "$ld_shlibs" && can_build_shared=no 12761 12762with_gnu_ld=$with_gnu_ld 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778# 12779# Do we need to explicitly link libc? 12780# 12781case "x$archive_cmds_need_lc" in 12782x|xyes) 12783 # Assume -lc should be added 12784 archive_cmds_need_lc=yes 12785 12786 if test yes,yes = "$GCC,$enable_shared"; then 12787 case $archive_cmds in 12788 *'~'*) 12789 # FIXME: we may have to deal with multi-command sequences. 12790 ;; 12791 '$CC '*) 12792 # Test whether the compiler implicitly links with -lc since on some 12793 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12794 # to ld, don't add -lc before -lgcc. 12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12796$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12797if ${lt_cv_archive_cmds_need_lc+:} false; then : 12798 $as_echo_n "(cached) " >&6 12799else 12800 $RM conftest* 12801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12802 12803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12804 (eval $ac_compile) 2>&5 12805 ac_status=$? 12806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12807 test $ac_status = 0; } 2>conftest.err; then 12808 soname=conftest 12809 lib=conftest 12810 libobjs=conftest.$ac_objext 12811 deplibs= 12812 wl=$lt_prog_compiler_wl 12813 pic_flag=$lt_prog_compiler_pic 12814 compiler_flags=-v 12815 linker_flags=-v 12816 verstring= 12817 output_objdir=. 12818 libname=conftest 12819 lt_save_allow_undefined_flag=$allow_undefined_flag 12820 allow_undefined_flag= 12821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12822 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12823 ac_status=$? 12824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12825 test $ac_status = 0; } 12826 then 12827 lt_cv_archive_cmds_need_lc=no 12828 else 12829 lt_cv_archive_cmds_need_lc=yes 12830 fi 12831 allow_undefined_flag=$lt_save_allow_undefined_flag 12832 else 12833 cat conftest.err 1>&5 12834 fi 12835 $RM conftest* 12836 12837fi 12838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12839$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12840 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12841 ;; 12842 esac 12843 fi 12844 ;; 12845esac 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12999$as_echo_n "checking dynamic linker characteristics... " >&6; } 13000 13001if test yes = "$GCC"; then 13002 case $host_os in 13003 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13004 *) lt_awk_arg='/^libraries:/' ;; 13005 esac 13006 case $host_os in 13007 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13008 *) lt_sed_strip_eq='s|=/|/|g' ;; 13009 esac 13010 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13011 case $lt_search_path_spec in 13012 *\;*) 13013 # if the path contains ";" then we assume it to be the separator 13014 # otherwise default to the standard path separator (i.e. ":") - it is 13015 # assumed that no part of a normal pathname contains ";" but that should 13016 # okay in the real world where ";" in dirpaths is itself problematic. 13017 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13018 ;; 13019 *) 13020 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13021 ;; 13022 esac 13023 # Ok, now we have the path, separated by spaces, we can step through it 13024 # and add multilib dir if necessary... 13025 lt_tmp_lt_search_path_spec= 13026 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13027 # ...but if some path component already ends with the multilib dir we assume 13028 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13029 case "$lt_multi_os_dir; $lt_search_path_spec " in 13030 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13031 lt_multi_os_dir= 13032 ;; 13033 esac 13034 for lt_sys_path in $lt_search_path_spec; do 13035 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13036 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13037 elif test -n "$lt_multi_os_dir"; then 13038 test -d "$lt_sys_path" && \ 13039 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13040 fi 13041 done 13042 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13043BEGIN {RS = " "; FS = "/|\n";} { 13044 lt_foo = ""; 13045 lt_count = 0; 13046 for (lt_i = NF; lt_i > 0; lt_i--) { 13047 if ($lt_i != "" && $lt_i != ".") { 13048 if ($lt_i == "..") { 13049 lt_count++; 13050 } else { 13051 if (lt_count == 0) { 13052 lt_foo = "/" $lt_i lt_foo; 13053 } else { 13054 lt_count--; 13055 } 13056 } 13057 } 13058 } 13059 if (lt_foo != "") { lt_freq[lt_foo]++; } 13060 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13061}'` 13062 # AWK program above erroneously prepends '/' to C:/dos/paths 13063 # for these hosts. 13064 case $host_os in 13065 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13066 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13067 esac 13068 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13069else 13070 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13071fi 13072library_names_spec= 13073libname_spec='lib$name' 13074soname_spec= 13075shrext_cmds=.so 13076postinstall_cmds= 13077postuninstall_cmds= 13078finish_cmds= 13079finish_eval= 13080shlibpath_var= 13081shlibpath_overrides_runpath=unknown 13082version_type=none 13083dynamic_linker="$host_os ld.so" 13084sys_lib_dlsearch_path_spec="/lib /usr/lib" 13085need_lib_prefix=unknown 13086hardcode_into_libs=no 13087 13088# when you set need_version to no, make sure it does not cause -set_version 13089# flags to be left without arguments 13090need_version=unknown 13091 13092 13093 13094case $host_os in 13095aix3*) 13096 version_type=linux # correct to gnu/linux during the next big refactor 13097 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13098 shlibpath_var=LIBPATH 13099 13100 # AIX 3 has no versioning support, so we append a major version to the name. 13101 soname_spec='$libname$release$shared_ext$major' 13102 ;; 13103 13104aix[4-9]*) 13105 version_type=linux # correct to gnu/linux during the next big refactor 13106 need_lib_prefix=no 13107 need_version=no 13108 hardcode_into_libs=yes 13109 if test ia64 = "$host_cpu"; then 13110 # AIX 5 supports IA64 13111 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13112 shlibpath_var=LD_LIBRARY_PATH 13113 else 13114 # With GCC up to 2.95.x, collect2 would create an import file 13115 # for dependence libraries. The import file would start with 13116 # the line '#! .'. This would cause the generated library to 13117 # depend on '.', always an invalid library. This was fixed in 13118 # development snapshots of GCC prior to 3.0. 13119 case $host_os in 13120 aix4 | aix4.[01] | aix4.[01].*) 13121 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13122 echo ' yes ' 13123 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13124 : 13125 else 13126 can_build_shared=no 13127 fi 13128 ;; 13129 esac 13130 # Using Import Files as archive members, it is possible to support 13131 # filename-based versioning of shared library archives on AIX. While 13132 # this would work for both with and without runtime linking, it will 13133 # prevent static linking of such archives. So we do filename-based 13134 # shared library versioning with .so extension only, which is used 13135 # when both runtime linking and shared linking is enabled. 13136 # Unfortunately, runtime linking may impact performance, so we do 13137 # not want this to be the default eventually. Also, we use the 13138 # versioned .so libs for executables only if there is the -brtl 13139 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13140 # To allow for filename-based versioning support, we need to create 13141 # libNAME.so.V as an archive file, containing: 13142 # *) an Import File, referring to the versioned filename of the 13143 # archive as well as the shared archive member, telling the 13144 # bitwidth (32 or 64) of that shared object, and providing the 13145 # list of exported symbols of that shared object, eventually 13146 # decorated with the 'weak' keyword 13147 # *) the shared object with the F_LOADONLY flag set, to really avoid 13148 # it being seen by the linker. 13149 # At run time we better use the real file rather than another symlink, 13150 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13151 13152 case $with_aix_soname,$aix_use_runtimelinking in 13153 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13154 # soname into executable. Probably we can add versioning support to 13155 # collect2, so additional links can be useful in future. 13156 aix,yes) # traditional libtool 13157 dynamic_linker='AIX unversionable lib.so' 13158 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13159 # instead of lib<name>.a to let people know that these are not 13160 # typical AIX shared libraries. 13161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13162 ;; 13163 aix,no) # traditional AIX only 13164 dynamic_linker='AIX lib.a(lib.so.V)' 13165 # We preserve .a as extension for shared libraries through AIX4.2 13166 # and later when we are not doing run time linking. 13167 library_names_spec='$libname$release.a $libname.a' 13168 soname_spec='$libname$release$shared_ext$major' 13169 ;; 13170 svr4,*) # full svr4 only 13171 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13172 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13173 # We do not specify a path in Import Files, so LIBPATH fires. 13174 shlibpath_overrides_runpath=yes 13175 ;; 13176 *,yes) # both, prefer svr4 13177 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13178 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13179 # unpreferred sharedlib libNAME.a needs extra handling 13180 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 13181 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 13182 # We do not specify a path in Import Files, so LIBPATH fires. 13183 shlibpath_overrides_runpath=yes 13184 ;; 13185 *,no) # both, prefer aix 13186 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13187 library_names_spec='$libname$release.a $libname.a' 13188 soname_spec='$libname$release$shared_ext$major' 13189 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13190 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 13191 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 13192 ;; 13193 esac 13194 shlibpath_var=LIBPATH 13195 fi 13196 ;; 13197 13198amigaos*) 13199 case $host_cpu in 13200 powerpc) 13201 # Since July 2007 AmigaOS4 officially supports .so libraries. 13202 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13204 ;; 13205 m68k) 13206 library_names_spec='$libname.ixlibrary $libname.a' 13207 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13208 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 13209 ;; 13210 esac 13211 ;; 13212 13213beos*) 13214 library_names_spec='$libname$shared_ext' 13215 dynamic_linker="$host_os ld.so" 13216 shlibpath_var=LIBRARY_PATH 13217 ;; 13218 13219bsdi[45]*) 13220 version_type=linux # correct to gnu/linux during the next big refactor 13221 need_version=no 13222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13223 soname_spec='$libname$release$shared_ext$major' 13224 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13225 shlibpath_var=LD_LIBRARY_PATH 13226 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13227 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13228 # the default ld.so.conf also contains /usr/contrib/lib and 13229 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13230 # libtool to hard-code these into programs 13231 ;; 13232 13233cygwin* | mingw* | pw32* | cegcc*) 13234 version_type=windows 13235 shrext_cmds=.dll 13236 need_version=no 13237 need_lib_prefix=no 13238 13239 case $GCC,$cc_basename in 13240 yes,*) 13241 # gcc 13242 library_names_spec='$libname.dll.a' 13243 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13244 postinstall_cmds='base_file=`basename \$file`~ 13245 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13246 dldir=$destdir/`dirname \$dlpath`~ 13247 test -d \$dldir || mkdir -p \$dldir~ 13248 $install_prog $dir/$dlname \$dldir/$dlname~ 13249 chmod a+x \$dldir/$dlname~ 13250 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13251 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13252 fi' 13253 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13254 dlpath=$dir/\$dldll~ 13255 $RM \$dlpath' 13256 shlibpath_overrides_runpath=yes 13257 13258 case $host_os in 13259 cygwin*) 13260 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13261 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13262 13263 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13264 ;; 13265 mingw* | cegcc*) 13266 # MinGW DLLs use traditional 'lib' prefix 13267 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13268 ;; 13269 pw32*) 13270 # pw32 DLLs use 'pw' prefix rather than 'lib' 13271 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13272 ;; 13273 esac 13274 dynamic_linker='Win32 ld.exe' 13275 ;; 13276 13277 *,cl*) 13278 # Native MSVC 13279 libname_spec='$name' 13280 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13281 library_names_spec='$libname.dll.lib' 13282 13283 case $build_os in 13284 mingw*) 13285 sys_lib_search_path_spec= 13286 lt_save_ifs=$IFS 13287 IFS=';' 13288 for lt_path in $LIB 13289 do 13290 IFS=$lt_save_ifs 13291 # Let DOS variable expansion print the short 8.3 style file name. 13292 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13293 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13294 done 13295 IFS=$lt_save_ifs 13296 # Convert to MSYS style. 13297 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13298 ;; 13299 cygwin*) 13300 # Convert to unix form, then to dos form, then back to unix form 13301 # but this time dos style (no spaces!) so that the unix form looks 13302 # like /cygdrive/c/PROGRA~1:/cygdr... 13303 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13304 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13305 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13306 ;; 13307 *) 13308 sys_lib_search_path_spec=$LIB 13309 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13310 # It is most probably a Windows format PATH. 13311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13312 else 13313 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13314 fi 13315 # FIXME: find the short name or the path components, as spaces are 13316 # common. (e.g. "Program Files" -> "PROGRA~1") 13317 ;; 13318 esac 13319 13320 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13321 postinstall_cmds='base_file=`basename \$file`~ 13322 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13323 dldir=$destdir/`dirname \$dlpath`~ 13324 test -d \$dldir || mkdir -p \$dldir~ 13325 $install_prog $dir/$dlname \$dldir/$dlname' 13326 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13327 dlpath=$dir/\$dldll~ 13328 $RM \$dlpath' 13329 shlibpath_overrides_runpath=yes 13330 dynamic_linker='Win32 link.exe' 13331 ;; 13332 13333 *) 13334 # Assume MSVC wrapper 13335 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13336 dynamic_linker='Win32 ld.exe' 13337 ;; 13338 esac 13339 # FIXME: first we should search . and the directory the executable is in 13340 shlibpath_var=PATH 13341 ;; 13342 13343darwin* | rhapsody*) 13344 dynamic_linker="$host_os dyld" 13345 version_type=darwin 13346 need_lib_prefix=no 13347 need_version=no 13348 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13349 soname_spec='$libname$release$major$shared_ext' 13350 shlibpath_overrides_runpath=yes 13351 shlibpath_var=DYLD_LIBRARY_PATH 13352 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13353 13354 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13355 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13356 ;; 13357 13358dgux*) 13359 version_type=linux # correct to gnu/linux during the next big refactor 13360 need_lib_prefix=no 13361 need_version=no 13362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13363 soname_spec='$libname$release$shared_ext$major' 13364 shlibpath_var=LD_LIBRARY_PATH 13365 ;; 13366 13367freebsd* | dragonfly*) 13368 # DragonFly does not have aout. When/if they implement a new 13369 # versioning mechanism, adjust this. 13370 if test -x /usr/bin/objformat; then 13371 objformat=`/usr/bin/objformat` 13372 else 13373 case $host_os in 13374 freebsd[23].*) objformat=aout ;; 13375 *) objformat=elf ;; 13376 esac 13377 fi 13378 version_type=freebsd-$objformat 13379 case $version_type in 13380 freebsd-elf*) 13381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13382 soname_spec='$libname$release$shared_ext$major' 13383 need_version=no 13384 need_lib_prefix=no 13385 ;; 13386 freebsd-*) 13387 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13388 need_version=yes 13389 ;; 13390 esac 13391 shlibpath_var=LD_LIBRARY_PATH 13392 case $host_os in 13393 freebsd2.*) 13394 shlibpath_overrides_runpath=yes 13395 ;; 13396 freebsd3.[01]* | freebsdelf3.[01]*) 13397 shlibpath_overrides_runpath=yes 13398 hardcode_into_libs=yes 13399 ;; 13400 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13401 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13402 shlibpath_overrides_runpath=no 13403 hardcode_into_libs=yes 13404 ;; 13405 *) # from 4.6 on, and DragonFly 13406 shlibpath_overrides_runpath=yes 13407 hardcode_into_libs=yes 13408 ;; 13409 esac 13410 ;; 13411 13412haiku*) 13413 version_type=linux # correct to gnu/linux during the next big refactor 13414 need_lib_prefix=no 13415 need_version=no 13416 dynamic_linker="$host_os runtime_loader" 13417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13418 soname_spec='$libname$release$shared_ext$major' 13419 shlibpath_var=LIBRARY_PATH 13420 shlibpath_overrides_runpath=no 13421 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13422 hardcode_into_libs=yes 13423 ;; 13424 13425hpux9* | hpux10* | hpux11*) 13426 # Give a soname corresponding to the major version so that dld.sl refuses to 13427 # link against other versions. 13428 version_type=sunos 13429 need_lib_prefix=no 13430 need_version=no 13431 case $host_cpu in 13432 ia64*) 13433 shrext_cmds='.so' 13434 hardcode_into_libs=yes 13435 dynamic_linker="$host_os dld.so" 13436 shlibpath_var=LD_LIBRARY_PATH 13437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13439 soname_spec='$libname$release$shared_ext$major' 13440 if test 32 = "$HPUX_IA64_MODE"; then 13441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13442 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13443 else 13444 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13445 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13446 fi 13447 ;; 13448 hppa*64*) 13449 shrext_cmds='.sl' 13450 hardcode_into_libs=yes 13451 dynamic_linker="$host_os dld.sl" 13452 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13455 soname_spec='$libname$release$shared_ext$major' 13456 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13458 ;; 13459 *) 13460 shrext_cmds='.sl' 13461 dynamic_linker="$host_os dld.sl" 13462 shlibpath_var=SHLIB_PATH 13463 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13465 soname_spec='$libname$release$shared_ext$major' 13466 ;; 13467 esac 13468 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13469 postinstall_cmds='chmod 555 $lib' 13470 # or fails outright, so override atomically: 13471 install_override_mode=555 13472 ;; 13473 13474interix[3-9]*) 13475 version_type=linux # correct to gnu/linux during the next big refactor 13476 need_lib_prefix=no 13477 need_version=no 13478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13479 soname_spec='$libname$release$shared_ext$major' 13480 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13481 shlibpath_var=LD_LIBRARY_PATH 13482 shlibpath_overrides_runpath=no 13483 hardcode_into_libs=yes 13484 ;; 13485 13486irix5* | irix6* | nonstopux*) 13487 case $host_os in 13488 nonstopux*) version_type=nonstopux ;; 13489 *) 13490 if test yes = "$lt_cv_prog_gnu_ld"; then 13491 version_type=linux # correct to gnu/linux during the next big refactor 13492 else 13493 version_type=irix 13494 fi ;; 13495 esac 13496 need_lib_prefix=no 13497 need_version=no 13498 soname_spec='$libname$release$shared_ext$major' 13499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13500 case $host_os in 13501 irix5* | nonstopux*) 13502 libsuff= shlibsuff= 13503 ;; 13504 *) 13505 case $LD in # libtool.m4 will add one of these switches to LD 13506 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13507 libsuff= shlibsuff= libmagic=32-bit;; 13508 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13509 libsuff=32 shlibsuff=N32 libmagic=N32;; 13510 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13511 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13512 *) libsuff= shlibsuff= libmagic=never-match;; 13513 esac 13514 ;; 13515 esac 13516 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13517 shlibpath_overrides_runpath=no 13518 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13519 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13520 hardcode_into_libs=yes 13521 ;; 13522 13523# No shared lib support for Linux oldld, aout, or coff. 13524linux*oldld* | linux*aout* | linux*coff*) 13525 dynamic_linker=no 13526 ;; 13527 13528linux*android*) 13529 version_type=none # Android doesn't support versioned libraries. 13530 need_lib_prefix=no 13531 need_version=no 13532 library_names_spec='$libname$release$shared_ext' 13533 soname_spec='$libname$release$shared_ext' 13534 finish_cmds= 13535 shlibpath_var=LD_LIBRARY_PATH 13536 shlibpath_overrides_runpath=yes 13537 13538 # This implies no fast_install, which is unacceptable. 13539 # Some rework will be needed to allow for fast_install 13540 # before this can be enabled. 13541 hardcode_into_libs=yes 13542 13543 dynamic_linker='Android linker' 13544 # Don't embed -rpath directories since the linker doesn't support them. 13545 hardcode_libdir_flag_spec='-L$libdir' 13546 ;; 13547 13548# This must be glibc/ELF. 13549linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13550 version_type=linux # correct to gnu/linux during the next big refactor 13551 need_lib_prefix=no 13552 need_version=no 13553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13554 soname_spec='$libname$release$shared_ext$major' 13555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13556 shlibpath_var=LD_LIBRARY_PATH 13557 shlibpath_overrides_runpath=no 13558 13559 # Some binutils ld are patched to set DT_RUNPATH 13560 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13561 $as_echo_n "(cached) " >&6 13562else 13563 lt_cv_shlibpath_overrides_runpath=no 13564 save_LDFLAGS=$LDFLAGS 13565 save_libdir=$libdir 13566 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13567 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13569/* end confdefs.h. */ 13570 13571int 13572main () 13573{ 13574 13575 ; 13576 return 0; 13577} 13578_ACEOF 13579if ac_fn_c_try_link "$LINENO"; then : 13580 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13581 lt_cv_shlibpath_overrides_runpath=yes 13582fi 13583fi 13584rm -f core conftest.err conftest.$ac_objext \ 13585 conftest$ac_exeext conftest.$ac_ext 13586 LDFLAGS=$save_LDFLAGS 13587 libdir=$save_libdir 13588 13589fi 13590 13591 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13592 13593 # This implies no fast_install, which is unacceptable. 13594 # Some rework will be needed to allow for fast_install 13595 # before this can be enabled. 13596 hardcode_into_libs=yes 13597 13598 # Add ABI-specific directories to the system library path. 13599 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 13600 13601 # Ideally, we could use ldconfig to report *all* directores which are 13602 # searched for libraries, however this is still not possible. Aside from not 13603 # being certain /sbin/ldconfig is available, command 13604 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13605 # even though it is searched at run-time. Try to do the best guess by 13606 # appending ld.so.conf contents (and includes) to the search path. 13607 if test -f /etc/ld.so.conf; then 13608 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 13609 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13610 fi 13611 13612 # We used to test for /lib/ld.so.1 and disable shared libraries on 13613 # powerpc, because MkLinux only supported shared libraries with the 13614 # GNU dynamic linker. Since this was broken with cross compilers, 13615 # most powerpc-linux boxes support dynamic linking these days and 13616 # people can always --disable-shared, the test was removed, and we 13617 # assume the GNU/Linux dynamic linker is in use. 13618 dynamic_linker='GNU/Linux ld.so' 13619 ;; 13620 13621netbsd*) 13622 version_type=sunos 13623 need_lib_prefix=no 13624 need_version=no 13625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13626 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13628 dynamic_linker='NetBSD (a.out) ld.so' 13629 else 13630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13631 soname_spec='$libname$release$shared_ext$major' 13632 dynamic_linker='NetBSD ld.elf_so' 13633 fi 13634 shlibpath_var=LD_LIBRARY_PATH 13635 shlibpath_overrides_runpath=yes 13636 hardcode_into_libs=yes 13637 ;; 13638 13639newsos6) 13640 version_type=linux # correct to gnu/linux during the next big refactor 13641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13642 shlibpath_var=LD_LIBRARY_PATH 13643 shlibpath_overrides_runpath=yes 13644 ;; 13645 13646*nto* | *qnx*) 13647 version_type=qnx 13648 need_lib_prefix=no 13649 need_version=no 13650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13651 soname_spec='$libname$release$shared_ext$major' 13652 shlibpath_var=LD_LIBRARY_PATH 13653 shlibpath_overrides_runpath=no 13654 hardcode_into_libs=yes 13655 dynamic_linker='ldqnx.so' 13656 ;; 13657 13658openbsd* | bitrig*) 13659 version_type=sunos 13660 sys_lib_dlsearch_path_spec=/usr/lib 13661 need_lib_prefix=no 13662 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13663 need_version=no 13664 else 13665 need_version=yes 13666 fi 13667 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13669 shlibpath_var=LD_LIBRARY_PATH 13670 shlibpath_overrides_runpath=yes 13671 ;; 13672 13673os2*) 13674 libname_spec='$name' 13675 version_type=windows 13676 shrext_cmds=.dll 13677 need_version=no 13678 need_lib_prefix=no 13679 # OS/2 can only load a DLL with a base name of 8 characters or less. 13680 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13681 v=$($ECHO $release$versuffix | tr -d .-); 13682 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13683 $ECHO $n$v`$shared_ext' 13684 library_names_spec='${libname}_dll.$libext' 13685 dynamic_linker='OS/2 ld.exe' 13686 shlibpath_var=BEGINLIBPATH 13687 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13689 postinstall_cmds='base_file=`basename \$file`~ 13690 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13691 dldir=$destdir/`dirname \$dlpath`~ 13692 test -d \$dldir || mkdir -p \$dldir~ 13693 $install_prog $dir/$dlname \$dldir/$dlname~ 13694 chmod a+x \$dldir/$dlname~ 13695 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13696 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13697 fi' 13698 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13699 dlpath=$dir/\$dldll~ 13700 $RM \$dlpath' 13701 ;; 13702 13703osf3* | osf4* | osf5*) 13704 version_type=osf 13705 need_lib_prefix=no 13706 need_version=no 13707 soname_spec='$libname$release$shared_ext$major' 13708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13709 shlibpath_var=LD_LIBRARY_PATH 13710 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13711 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13712 ;; 13713 13714rdos*) 13715 dynamic_linker=no 13716 ;; 13717 13718solaris*) 13719 version_type=linux # correct to gnu/linux during the next big refactor 13720 need_lib_prefix=no 13721 need_version=no 13722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13723 soname_spec='$libname$release$shared_ext$major' 13724 shlibpath_var=LD_LIBRARY_PATH 13725 shlibpath_overrides_runpath=yes 13726 hardcode_into_libs=yes 13727 # ldd complains unless libraries are executable 13728 postinstall_cmds='chmod +x $lib' 13729 ;; 13730 13731sunos4*) 13732 version_type=sunos 13733 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13734 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13735 shlibpath_var=LD_LIBRARY_PATH 13736 shlibpath_overrides_runpath=yes 13737 if test yes = "$with_gnu_ld"; then 13738 need_lib_prefix=no 13739 fi 13740 need_version=yes 13741 ;; 13742 13743sysv4 | sysv4.3*) 13744 version_type=linux # correct to gnu/linux during the next big refactor 13745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13746 soname_spec='$libname$release$shared_ext$major' 13747 shlibpath_var=LD_LIBRARY_PATH 13748 case $host_vendor in 13749 sni) 13750 shlibpath_overrides_runpath=no 13751 need_lib_prefix=no 13752 runpath_var=LD_RUN_PATH 13753 ;; 13754 siemens) 13755 need_lib_prefix=no 13756 ;; 13757 motorola) 13758 need_lib_prefix=no 13759 need_version=no 13760 shlibpath_overrides_runpath=no 13761 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13762 ;; 13763 esac 13764 ;; 13765 13766sysv4*MP*) 13767 if test -d /usr/nec; then 13768 version_type=linux # correct to gnu/linux during the next big refactor 13769 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13770 soname_spec='$libname$shared_ext.$major' 13771 shlibpath_var=LD_LIBRARY_PATH 13772 fi 13773 ;; 13774 13775sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13776 version_type=sco 13777 need_lib_prefix=no 13778 need_version=no 13779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13780 soname_spec='$libname$release$shared_ext$major' 13781 shlibpath_var=LD_LIBRARY_PATH 13782 shlibpath_overrides_runpath=yes 13783 hardcode_into_libs=yes 13784 if test yes = "$with_gnu_ld"; then 13785 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13786 else 13787 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13788 case $host_os in 13789 sco3.2v5*) 13790 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13791 ;; 13792 esac 13793 fi 13794 sys_lib_dlsearch_path_spec='/usr/lib' 13795 ;; 13796 13797tpf*) 13798 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13799 version_type=linux # correct to gnu/linux during the next big refactor 13800 need_lib_prefix=no 13801 need_version=no 13802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13803 shlibpath_var=LD_LIBRARY_PATH 13804 shlibpath_overrides_runpath=no 13805 hardcode_into_libs=yes 13806 ;; 13807 13808uts4*) 13809 version_type=linux # correct to gnu/linux during the next big refactor 13810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13811 soname_spec='$libname$release$shared_ext$major' 13812 shlibpath_var=LD_LIBRARY_PATH 13813 ;; 13814 13815*) 13816 dynamic_linker=no 13817 ;; 13818esac 13819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13820$as_echo "$dynamic_linker" >&6; } 13821test no = "$dynamic_linker" && can_build_shared=no 13822 13823variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13824if test yes = "$GCC"; then 13825 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13826fi 13827 13828if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13829 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13830fi 13831 13832if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13833 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13834fi 13835 13836# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13837configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13838 13839# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13840func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13841 13842# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13843configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13942$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13943hardcode_action= 13944if test -n "$hardcode_libdir_flag_spec" || 13945 test -n "$runpath_var" || 13946 test yes = "$hardcode_automatic"; then 13947 13948 # We can hardcode non-existent directories. 13949 if test no != "$hardcode_direct" && 13950 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13951 # have to relink, otherwise we might link with an installed library 13952 # when we should be linking with a yet-to-be-installed one 13953 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13954 test no != "$hardcode_minus_L"; then 13955 # Linking always hardcodes the temporary library directory. 13956 hardcode_action=relink 13957 else 13958 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13959 hardcode_action=immediate 13960 fi 13961else 13962 # We cannot hardcode anything, or else we can only hardcode existing 13963 # directories. 13964 hardcode_action=unsupported 13965fi 13966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13967$as_echo "$hardcode_action" >&6; } 13968 13969if test relink = "$hardcode_action" || 13970 test yes = "$inherit_rpath"; then 13971 # Fast installation is not supported 13972 enable_fast_install=no 13973elif test yes = "$shlibpath_overrides_runpath" || 13974 test no = "$enable_shared"; then 13975 # Fast installation is not necessary 13976 enable_fast_install=needless 13977fi 13978 13979 13980 13981 13982 13983 13984 if test yes != "$enable_dlopen"; then 13985 enable_dlopen=unknown 13986 enable_dlopen_self=unknown 13987 enable_dlopen_self_static=unknown 13988else 13989 lt_cv_dlopen=no 13990 lt_cv_dlopen_libs= 13991 13992 case $host_os in 13993 beos*) 13994 lt_cv_dlopen=load_add_on 13995 lt_cv_dlopen_libs= 13996 lt_cv_dlopen_self=yes 13997 ;; 13998 13999 mingw* | pw32* | cegcc*) 14000 lt_cv_dlopen=LoadLibrary 14001 lt_cv_dlopen_libs= 14002 ;; 14003 14004 cygwin*) 14005 lt_cv_dlopen=dlopen 14006 lt_cv_dlopen_libs= 14007 ;; 14008 14009 darwin*) 14010 # if libdl is installed we need to link against it 14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14012$as_echo_n "checking for dlopen in -ldl... " >&6; } 14013if ${ac_cv_lib_dl_dlopen+:} false; then : 14014 $as_echo_n "(cached) " >&6 14015else 14016 ac_check_lib_save_LIBS=$LIBS 14017LIBS="-ldl $LIBS" 14018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14019/* end confdefs.h. */ 14020 14021/* Override any GCC internal prototype to avoid an error. 14022 Use char because int might match the return type of a GCC 14023 builtin and then its argument prototype would still apply. */ 14024#ifdef __cplusplus 14025extern "C" 14026#endif 14027char dlopen (); 14028int 14029main () 14030{ 14031return dlopen (); 14032 ; 14033 return 0; 14034} 14035_ACEOF 14036if ac_fn_c_try_link "$LINENO"; then : 14037 ac_cv_lib_dl_dlopen=yes 14038else 14039 ac_cv_lib_dl_dlopen=no 14040fi 14041rm -f core conftest.err conftest.$ac_objext \ 14042 conftest$ac_exeext conftest.$ac_ext 14043LIBS=$ac_check_lib_save_LIBS 14044fi 14045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14046$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14047if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14048 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14049else 14050 14051 lt_cv_dlopen=dyld 14052 lt_cv_dlopen_libs= 14053 lt_cv_dlopen_self=yes 14054 14055fi 14056 14057 ;; 14058 14059 tpf*) 14060 # Don't try to run any link tests for TPF. We know it's impossible 14061 # because TPF is a cross-compiler, and we know how we open DSOs. 14062 lt_cv_dlopen=dlopen 14063 lt_cv_dlopen_libs= 14064 lt_cv_dlopen_self=no 14065 ;; 14066 14067 *) 14068 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14069if test "x$ac_cv_func_shl_load" = xyes; then : 14070 lt_cv_dlopen=shl_load 14071else 14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14073$as_echo_n "checking for shl_load in -ldld... " >&6; } 14074if ${ac_cv_lib_dld_shl_load+:} false; then : 14075 $as_echo_n "(cached) " >&6 14076else 14077 ac_check_lib_save_LIBS=$LIBS 14078LIBS="-ldld $LIBS" 14079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14080/* end confdefs.h. */ 14081 14082/* Override any GCC internal prototype to avoid an error. 14083 Use char because int might match the return type of a GCC 14084 builtin and then its argument prototype would still apply. */ 14085#ifdef __cplusplus 14086extern "C" 14087#endif 14088char shl_load (); 14089int 14090main () 14091{ 14092return shl_load (); 14093 ; 14094 return 0; 14095} 14096_ACEOF 14097if ac_fn_c_try_link "$LINENO"; then : 14098 ac_cv_lib_dld_shl_load=yes 14099else 14100 ac_cv_lib_dld_shl_load=no 14101fi 14102rm -f core conftest.err conftest.$ac_objext \ 14103 conftest$ac_exeext conftest.$ac_ext 14104LIBS=$ac_check_lib_save_LIBS 14105fi 14106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14107$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14108if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14109 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14110else 14111 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14112if test "x$ac_cv_func_dlopen" = xyes; then : 14113 lt_cv_dlopen=dlopen 14114else 14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14116$as_echo_n "checking for dlopen in -ldl... " >&6; } 14117if ${ac_cv_lib_dl_dlopen+:} false; then : 14118 $as_echo_n "(cached) " >&6 14119else 14120 ac_check_lib_save_LIBS=$LIBS 14121LIBS="-ldl $LIBS" 14122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14123/* end confdefs.h. */ 14124 14125/* Override any GCC internal prototype to avoid an error. 14126 Use char because int might match the return type of a GCC 14127 builtin and then its argument prototype would still apply. */ 14128#ifdef __cplusplus 14129extern "C" 14130#endif 14131char dlopen (); 14132int 14133main () 14134{ 14135return dlopen (); 14136 ; 14137 return 0; 14138} 14139_ACEOF 14140if ac_fn_c_try_link "$LINENO"; then : 14141 ac_cv_lib_dl_dlopen=yes 14142else 14143 ac_cv_lib_dl_dlopen=no 14144fi 14145rm -f core conftest.err conftest.$ac_objext \ 14146 conftest$ac_exeext conftest.$ac_ext 14147LIBS=$ac_check_lib_save_LIBS 14148fi 14149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14150$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14151if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14152 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14153else 14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14155$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14156if ${ac_cv_lib_svld_dlopen+:} false; then : 14157 $as_echo_n "(cached) " >&6 14158else 14159 ac_check_lib_save_LIBS=$LIBS 14160LIBS="-lsvld $LIBS" 14161cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14162/* end confdefs.h. */ 14163 14164/* Override any GCC internal prototype to avoid an error. 14165 Use char because int might match the return type of a GCC 14166 builtin and then its argument prototype would still apply. */ 14167#ifdef __cplusplus 14168extern "C" 14169#endif 14170char dlopen (); 14171int 14172main () 14173{ 14174return dlopen (); 14175 ; 14176 return 0; 14177} 14178_ACEOF 14179if ac_fn_c_try_link "$LINENO"; then : 14180 ac_cv_lib_svld_dlopen=yes 14181else 14182 ac_cv_lib_svld_dlopen=no 14183fi 14184rm -f core conftest.err conftest.$ac_objext \ 14185 conftest$ac_exeext conftest.$ac_ext 14186LIBS=$ac_check_lib_save_LIBS 14187fi 14188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14189$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14190if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14191 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14192else 14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14194$as_echo_n "checking for dld_link in -ldld... " >&6; } 14195if ${ac_cv_lib_dld_dld_link+:} false; then : 14196 $as_echo_n "(cached) " >&6 14197else 14198 ac_check_lib_save_LIBS=$LIBS 14199LIBS="-ldld $LIBS" 14200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14201/* end confdefs.h. */ 14202 14203/* Override any GCC internal prototype to avoid an error. 14204 Use char because int might match the return type of a GCC 14205 builtin and then its argument prototype would still apply. */ 14206#ifdef __cplusplus 14207extern "C" 14208#endif 14209char dld_link (); 14210int 14211main () 14212{ 14213return dld_link (); 14214 ; 14215 return 0; 14216} 14217_ACEOF 14218if ac_fn_c_try_link "$LINENO"; then : 14219 ac_cv_lib_dld_dld_link=yes 14220else 14221 ac_cv_lib_dld_dld_link=no 14222fi 14223rm -f core conftest.err conftest.$ac_objext \ 14224 conftest$ac_exeext conftest.$ac_ext 14225LIBS=$ac_check_lib_save_LIBS 14226fi 14227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14228$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14229if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14230 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14231fi 14232 14233 14234fi 14235 14236 14237fi 14238 14239 14240fi 14241 14242 14243fi 14244 14245 14246fi 14247 14248 ;; 14249 esac 14250 14251 if test no = "$lt_cv_dlopen"; then 14252 enable_dlopen=no 14253 else 14254 enable_dlopen=yes 14255 fi 14256 14257 case $lt_cv_dlopen in 14258 dlopen) 14259 save_CPPFLAGS=$CPPFLAGS 14260 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14261 14262 save_LDFLAGS=$LDFLAGS 14263 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14264 14265 save_LIBS=$LIBS 14266 LIBS="$lt_cv_dlopen_libs $LIBS" 14267 14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14269$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14270if ${lt_cv_dlopen_self+:} false; then : 14271 $as_echo_n "(cached) " >&6 14272else 14273 if test yes = "$cross_compiling"; then : 14274 lt_cv_dlopen_self=cross 14275else 14276 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14277 lt_status=$lt_dlunknown 14278 cat > conftest.$ac_ext <<_LT_EOF 14279#line $LINENO "configure" 14280#include "confdefs.h" 14281 14282#if HAVE_DLFCN_H 14283#include <dlfcn.h> 14284#endif 14285 14286#include <stdio.h> 14287 14288#ifdef RTLD_GLOBAL 14289# define LT_DLGLOBAL RTLD_GLOBAL 14290#else 14291# ifdef DL_GLOBAL 14292# define LT_DLGLOBAL DL_GLOBAL 14293# else 14294# define LT_DLGLOBAL 0 14295# endif 14296#endif 14297 14298/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14299 find out it does not work in some platform. */ 14300#ifndef LT_DLLAZY_OR_NOW 14301# ifdef RTLD_LAZY 14302# define LT_DLLAZY_OR_NOW RTLD_LAZY 14303# else 14304# ifdef DL_LAZY 14305# define LT_DLLAZY_OR_NOW DL_LAZY 14306# else 14307# ifdef RTLD_NOW 14308# define LT_DLLAZY_OR_NOW RTLD_NOW 14309# else 14310# ifdef DL_NOW 14311# define LT_DLLAZY_OR_NOW DL_NOW 14312# else 14313# define LT_DLLAZY_OR_NOW 0 14314# endif 14315# endif 14316# endif 14317# endif 14318#endif 14319 14320/* When -fvisibility=hidden is used, assume the code has been annotated 14321 correspondingly for the symbols needed. */ 14322#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14323int fnord () __attribute__((visibility("default"))); 14324#endif 14325 14326int fnord () { return 42; } 14327int main () 14328{ 14329 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14330 int status = $lt_dlunknown; 14331 14332 if (self) 14333 { 14334 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14335 else 14336 { 14337 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14338 else puts (dlerror ()); 14339 } 14340 /* dlclose (self); */ 14341 } 14342 else 14343 puts (dlerror ()); 14344 14345 return status; 14346} 14347_LT_EOF 14348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14349 (eval $ac_link) 2>&5 14350 ac_status=$? 14351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14352 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14353 (./conftest; exit; ) >&5 2>/dev/null 14354 lt_status=$? 14355 case x$lt_status in 14356 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14357 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14358 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14359 esac 14360 else : 14361 # compilation failed 14362 lt_cv_dlopen_self=no 14363 fi 14364fi 14365rm -fr conftest* 14366 14367 14368fi 14369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14370$as_echo "$lt_cv_dlopen_self" >&6; } 14371 14372 if test yes = "$lt_cv_dlopen_self"; then 14373 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14375$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14376if ${lt_cv_dlopen_self_static+:} false; then : 14377 $as_echo_n "(cached) " >&6 14378else 14379 if test yes = "$cross_compiling"; then : 14380 lt_cv_dlopen_self_static=cross 14381else 14382 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14383 lt_status=$lt_dlunknown 14384 cat > conftest.$ac_ext <<_LT_EOF 14385#line $LINENO "configure" 14386#include "confdefs.h" 14387 14388#if HAVE_DLFCN_H 14389#include <dlfcn.h> 14390#endif 14391 14392#include <stdio.h> 14393 14394#ifdef RTLD_GLOBAL 14395# define LT_DLGLOBAL RTLD_GLOBAL 14396#else 14397# ifdef DL_GLOBAL 14398# define LT_DLGLOBAL DL_GLOBAL 14399# else 14400# define LT_DLGLOBAL 0 14401# endif 14402#endif 14403 14404/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14405 find out it does not work in some platform. */ 14406#ifndef LT_DLLAZY_OR_NOW 14407# ifdef RTLD_LAZY 14408# define LT_DLLAZY_OR_NOW RTLD_LAZY 14409# else 14410# ifdef DL_LAZY 14411# define LT_DLLAZY_OR_NOW DL_LAZY 14412# else 14413# ifdef RTLD_NOW 14414# define LT_DLLAZY_OR_NOW RTLD_NOW 14415# else 14416# ifdef DL_NOW 14417# define LT_DLLAZY_OR_NOW DL_NOW 14418# else 14419# define LT_DLLAZY_OR_NOW 0 14420# endif 14421# endif 14422# endif 14423# endif 14424#endif 14425 14426/* When -fvisibility=hidden is used, assume the code has been annotated 14427 correspondingly for the symbols needed. */ 14428#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14429int fnord () __attribute__((visibility("default"))); 14430#endif 14431 14432int fnord () { return 42; } 14433int main () 14434{ 14435 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14436 int status = $lt_dlunknown; 14437 14438 if (self) 14439 { 14440 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14441 else 14442 { 14443 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14444 else puts (dlerror ()); 14445 } 14446 /* dlclose (self); */ 14447 } 14448 else 14449 puts (dlerror ()); 14450 14451 return status; 14452} 14453_LT_EOF 14454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14455 (eval $ac_link) 2>&5 14456 ac_status=$? 14457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14458 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14459 (./conftest; exit; ) >&5 2>/dev/null 14460 lt_status=$? 14461 case x$lt_status in 14462 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14463 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14464 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14465 esac 14466 else : 14467 # compilation failed 14468 lt_cv_dlopen_self_static=no 14469 fi 14470fi 14471rm -fr conftest* 14472 14473 14474fi 14475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14476$as_echo "$lt_cv_dlopen_self_static" >&6; } 14477 fi 14478 14479 CPPFLAGS=$save_CPPFLAGS 14480 LDFLAGS=$save_LDFLAGS 14481 LIBS=$save_LIBS 14482 ;; 14483 esac 14484 14485 case $lt_cv_dlopen_self in 14486 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14487 *) enable_dlopen_self=unknown ;; 14488 esac 14489 14490 case $lt_cv_dlopen_self_static in 14491 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14492 *) enable_dlopen_self_static=unknown ;; 14493 esac 14494fi 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512striplib= 14513old_striplib= 14514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14515$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14516if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14517 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14518 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14520$as_echo "yes" >&6; } 14521else 14522# FIXME - insert some real tests, host_os isn't really good enough 14523 case $host_os in 14524 darwin*) 14525 if test -n "$STRIP"; then 14526 striplib="$STRIP -x" 14527 old_striplib="$STRIP -S" 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14529$as_echo "yes" >&6; } 14530 else 14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14532$as_echo "no" >&6; } 14533 fi 14534 ;; 14535 *) 14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14537$as_echo "no" >&6; } 14538 ;; 14539 esac 14540fi 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 # Report what library types will actually be built 14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14555$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14557$as_echo "$can_build_shared" >&6; } 14558 14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14560$as_echo_n "checking whether to build shared libraries... " >&6; } 14561 test no = "$can_build_shared" && enable_shared=no 14562 14563 # On AIX, shared libraries and static libraries use the same namespace, and 14564 # are all built from PIC. 14565 case $host_os in 14566 aix3*) 14567 test yes = "$enable_shared" && enable_static=no 14568 if test -n "$RANLIB"; then 14569 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14570 postinstall_cmds='$RANLIB $lib' 14571 fi 14572 ;; 14573 14574 aix[4-9]*) 14575 if test ia64 != "$host_cpu"; then 14576 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14577 yes,aix,yes) ;; # shared object as lib.so file only 14578 yes,svr4,*) ;; # shared object as lib.so archive member only 14579 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14580 esac 14581 fi 14582 ;; 14583 esac 14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14585$as_echo "$enable_shared" >&6; } 14586 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14588$as_echo_n "checking whether to build static libraries... " >&6; } 14589 # Make sure either enable_shared or enable_static is yes. 14590 test yes = "$enable_shared" || enable_static=yes 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14592$as_echo "$enable_static" >&6; } 14593 14594 14595 14596 14597fi 14598ac_ext=c 14599ac_cpp='$CPP $CPPFLAGS' 14600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14602ac_compiler_gnu=$ac_cv_c_compiler_gnu 14603 14604CC=$lt_save_CC 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 ac_config_commands="$ac_config_commands libtool" 14621 14622 14623 14624 14625# Only expand once: 14626 14627 14628 14629 14630# pkg-config is only needed for these options, do not require it otherwise 14631if test "$enable_systemd" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then 14632 14633 14634 14635 14636 14637 14638 14639if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14640 if test -n "$ac_tool_prefix"; then 14641 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14642set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14644$as_echo_n "checking for $ac_word... " >&6; } 14645if ${ac_cv_path_PKG_CONFIG+:} false; then : 14646 $as_echo_n "(cached) " >&6 14647else 14648 case $PKG_CONFIG in 14649 [\\/]* | ?:[\\/]*) 14650 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14651 ;; 14652 *) 14653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14654for as_dir in $PATH 14655do 14656 IFS=$as_save_IFS 14657 test -z "$as_dir" && as_dir=. 14658 for ac_exec_ext in '' $ac_executable_extensions; do 14659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14660 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14662 break 2 14663 fi 14664done 14665 done 14666IFS=$as_save_IFS 14667 14668 ;; 14669esac 14670fi 14671PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14672if test -n "$PKG_CONFIG"; then 14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14674$as_echo "$PKG_CONFIG" >&6; } 14675else 14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14677$as_echo "no" >&6; } 14678fi 14679 14680 14681fi 14682if test -z "$ac_cv_path_PKG_CONFIG"; then 14683 ac_pt_PKG_CONFIG=$PKG_CONFIG 14684 # Extract the first word of "pkg-config", so it can be a program name with args. 14685set dummy pkg-config; ac_word=$2 14686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14687$as_echo_n "checking for $ac_word... " >&6; } 14688if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 14689 $as_echo_n "(cached) " >&6 14690else 14691 case $ac_pt_PKG_CONFIG in 14692 [\\/]* | ?:[\\/]*) 14693 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14694 ;; 14695 *) 14696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14697for as_dir in $PATH 14698do 14699 IFS=$as_save_IFS 14700 test -z "$as_dir" && as_dir=. 14701 for ac_exec_ext in '' $ac_executable_extensions; do 14702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14703 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14705 break 2 14706 fi 14707done 14708 done 14709IFS=$as_save_IFS 14710 14711 ;; 14712esac 14713fi 14714ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14715if test -n "$ac_pt_PKG_CONFIG"; then 14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14717$as_echo "$ac_pt_PKG_CONFIG" >&6; } 14718else 14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14720$as_echo "no" >&6; } 14721fi 14722 14723 if test "x$ac_pt_PKG_CONFIG" = x; then 14724 PKG_CONFIG="" 14725 else 14726 case $cross_compiling:$ac_tool_warned in 14727yes:) 14728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14730ac_tool_warned=yes ;; 14731esac 14732 PKG_CONFIG=$ac_pt_PKG_CONFIG 14733 fi 14734else 14735 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14736fi 14737 14738fi 14739if test -n "$PKG_CONFIG"; then 14740 _pkg_min_version=0.9.0 14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 14742$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 14743 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14745$as_echo "yes" >&6; } 14746 else 14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14748$as_echo "no" >&6; } 14749 PKG_CONFIG="" 14750 fi 14751fi 14752fi 14753 14754# Checks for header files. 14755for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/select.h sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h sys/endian.h libkern/OSByteOrder.h sys/ipc.h sys/shm.h ifaddrs.h 14756do : 14757 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14758ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 14759" 14760if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14761 cat >>confdefs.h <<_ACEOF 14762#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14763_ACEOF 14764 14765fi 14766 14767done 14768 14769# net/if.h portability for Darwin see: 14770# https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html 14771for ac_header in net/if.h 14772do : 14773 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 14774#include <stdio.h> 14775#ifdef STDC_HEADERS 14776# include <stdlib.h> 14777# include <stddef.h> 14778#else 14779# ifdef HAVE_STDLIB_H 14780# include <stdlib.h> 14781# endif 14782#endif 14783#ifdef HAVE_SYS_SOCKET_H 14784# include <sys/socket.h> 14785#endif 14786 14787" 14788if test "x$ac_cv_header_net_if_h" = xyes; then : 14789 cat >>confdefs.h <<_ACEOF 14790#define HAVE_NET_IF_H 1 14791_ACEOF 14792 14793fi 14794 14795done 14796 14797 14798# Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH 14799for ac_header in TargetConditionals.h 14800do : 14801 ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default 14802" 14803if test "x$ac_cv_header_TargetConditionals_h" = xyes; then : 14804 cat >>confdefs.h <<_ACEOF 14805#define HAVE_TARGETCONDITIONALS_H 1 14806_ACEOF 14807 14808fi 14809 14810done 14811 14812 14813# check for types. 14814# Using own tests for int64* because autoconf builtin only give 32bit. 14815ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 14816if test "x$ac_cv_type_int8_t" = xyes; then : 14817 14818else 14819 14820cat >>confdefs.h <<_ACEOF 14821#define int8_t signed char 14822_ACEOF 14823 14824fi 14825 14826ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 14827if test "x$ac_cv_type_int16_t" = xyes; then : 14828 14829else 14830 14831cat >>confdefs.h <<_ACEOF 14832#define int16_t short 14833_ACEOF 14834 14835fi 14836 14837ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 14838if test "x$ac_cv_type_int32_t" = xyes; then : 14839 14840else 14841 14842cat >>confdefs.h <<_ACEOF 14843#define int32_t int 14844_ACEOF 14845 14846fi 14847 14848ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 14849if test "x$ac_cv_type_int64_t" = xyes; then : 14850 14851else 14852 14853cat >>confdefs.h <<_ACEOF 14854#define int64_t long long 14855_ACEOF 14856 14857fi 14858 14859ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 14860if test "x$ac_cv_type_uint8_t" = xyes; then : 14861 14862else 14863 14864cat >>confdefs.h <<_ACEOF 14865#define uint8_t unsigned char 14866_ACEOF 14867 14868fi 14869 14870ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 14871if test "x$ac_cv_type_uint16_t" = xyes; then : 14872 14873else 14874 14875cat >>confdefs.h <<_ACEOF 14876#define uint16_t unsigned short 14877_ACEOF 14878 14879fi 14880 14881ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 14882if test "x$ac_cv_type_uint32_t" = xyes; then : 14883 14884else 14885 14886cat >>confdefs.h <<_ACEOF 14887#define uint32_t unsigned int 14888_ACEOF 14889 14890fi 14891 14892ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 14893if test "x$ac_cv_type_uint64_t" = xyes; then : 14894 14895else 14896 14897cat >>confdefs.h <<_ACEOF 14898#define uint64_t unsigned long long 14899_ACEOF 14900 14901fi 14902 14903ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14904if test "x$ac_cv_type_size_t" = xyes; then : 14905 14906else 14907 14908cat >>confdefs.h <<_ACEOF 14909#define size_t unsigned int 14910_ACEOF 14911 14912fi 14913 14914ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14915if test "x$ac_cv_type_ssize_t" = xyes; then : 14916 14917else 14918 14919cat >>confdefs.h <<_ACEOF 14920#define ssize_t int 14921_ACEOF 14922 14923fi 14924 14925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 14926$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 14927if ${ac_cv_type_uid_t+:} false; then : 14928 $as_echo_n "(cached) " >&6 14929else 14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14931/* end confdefs.h. */ 14932#include <sys/types.h> 14933 14934_ACEOF 14935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14936 $EGREP "uid_t" >/dev/null 2>&1; then : 14937 ac_cv_type_uid_t=yes 14938else 14939 ac_cv_type_uid_t=no 14940fi 14941rm -f conftest* 14942 14943fi 14944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 14945$as_echo "$ac_cv_type_uid_t" >&6; } 14946if test $ac_cv_type_uid_t = no; then 14947 14948$as_echo "#define uid_t int" >>confdefs.h 14949 14950 14951$as_echo "#define gid_t int" >>confdefs.h 14952 14953fi 14954 14955ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 14956if test "x$ac_cv_type_pid_t" = xyes; then : 14957 14958else 14959 14960cat >>confdefs.h <<_ACEOF 14961#define pid_t int 14962_ACEOF 14963 14964fi 14965 14966ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 14967if test "x$ac_cv_type_off_t" = xyes; then : 14968 14969else 14970 14971cat >>confdefs.h <<_ACEOF 14972#define off_t long int 14973_ACEOF 14974 14975fi 14976 14977ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" " 14978$ac_includes_default 14979#ifdef HAVE_WINSOCK2_H 14980# include <winsock2.h> 14981#endif 14982 14983" 14984if test "x$ac_cv_type_u_char" = xyes; then : 14985 14986else 14987 14988$as_echo "#define u_char unsigned char" >>confdefs.h 14989 14990fi 14991 14992ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " 14993$ac_includes_default 14994#ifdef HAVE_SYS_RESOURCE_H 14995# include <sys/resource.h> 14996#endif 14997 14998" 14999if test "x$ac_cv_type_rlim_t" = xyes; then : 15000 15001else 15002 15003$as_echo "#define rlim_t unsigned long" >>confdefs.h 15004 15005fi 15006 15007 15008ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 15009$ac_includes_default 15010#ifdef HAVE_SYS_SOCKET_H 15011# include <sys/socket.h> 15012#endif 15013#ifdef HAVE_WS2TCPIP_H 15014# include <ws2tcpip.h> 15015#endif 15016 15017" 15018if test "x$ac_cv_type_socklen_t" = xyes; then : 15019 15020else 15021 15022$as_echo "#define socklen_t int" >>confdefs.h 15023 15024fi 15025 15026 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 15027$ac_includes_default 15028#ifdef HAVE_SYS_TYPES_H 15029# include <sys/types.h> 15030#endif 15031#ifdef HAVE_NETINET_IN_H 15032# include <netinet/in.h> 15033#endif 15034 15035" 15036if test "x$ac_cv_type_in_addr_t" = xyes; then : 15037 15038else 15039 15040$as_echo "#define in_addr_t uint32_t" >>confdefs.h 15041 15042fi 15043 15044 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 15045$ac_includes_default 15046#ifdef HAVE_SYS_TYPES_H 15047# include <sys/types.h> 15048#endif 15049#ifdef HAVE_NETINET_IN_H 15050# include <netinet/in.h> 15051#endif 15052 15053" 15054if test "x$ac_cv_type_in_port_t" = xyes; then : 15055 15056else 15057 15058$as_echo "#define in_port_t uint16_t" >>confdefs.h 15059 15060fi 15061 15062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 15063$as_echo_n "checking if memcmp compares unsigned... " >&6; } 15064if test "$cross_compiling" = yes; then : 15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 15066$as_echo "cross-compile no" >&6; } 15067 15068$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 15069 15070 case " $LIBOBJS " in 15071 *" memcmp.$ac_objext "* ) ;; 15072 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 15073 ;; 15074esac 15075 15076 15077else 15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15079/* end confdefs.h. */ 15080 15081#include <stdio.h> 15082#include <stdlib.h> 15083#include <string.h> 15084int main(void) 15085{ 15086 char a = 255, b = 0; 15087 if(memcmp(&a, &b, 1) < 0) 15088 return 1; 15089 return 0; 15090} 15091 15092_ACEOF 15093if ac_fn_c_try_run "$LINENO"; then : 15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15095$as_echo "yes" >&6; } 15096else 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15098$as_echo "no" >&6; } 15099 15100$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 15101 15102 case " $LIBOBJS " in 15103 *" memcmp.$ac_objext "* ) ;; 15104 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 15105 ;; 15106esac 15107 15108 15109fi 15110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15111 conftest.$ac_objext conftest.beam conftest.$ac_ext 15112fi 15113 15114 15115# The cast to long int works around a bug in the HP C Compiler 15116# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15117# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15118# This bug is HP SR number 8606223364. 15119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 15120$as_echo_n "checking size of time_t... " >&6; } 15121if ${ac_cv_sizeof_time_t+:} false; then : 15122 $as_echo_n "(cached) " >&6 15123else 15124 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 15125$ac_includes_default 15126#ifdef TIME_WITH_SYS_TIME 15127# include <sys/time.h> 15128# include <time.h> 15129#else 15130# ifdef HAVE_SYS_TIME_H 15131# include <sys/time.h> 15132# else 15133# include <time.h> 15134# endif 15135#endif 15136 15137"; then : 15138 15139else 15140 if test "$ac_cv_type_time_t" = yes; then 15141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15143as_fn_error 77 "cannot compute sizeof (time_t) 15144See \`config.log' for more details" "$LINENO" 5; } 15145 else 15146 ac_cv_sizeof_time_t=0 15147 fi 15148fi 15149 15150fi 15151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 15152$as_echo "$ac_cv_sizeof_time_t" >&6; } 15153 15154 15155 15156cat >>confdefs.h <<_ACEOF 15157#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 15158_ACEOF 15159 15160 15161# The cast to long int works around a bug in the HP C Compiler 15162# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15163# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15164# This bug is HP SR number 8606223364. 15165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 15166$as_echo_n "checking size of size_t... " >&6; } 15167if ${ac_cv_sizeof_size_t+:} false; then : 15168 $as_echo_n "(cached) " >&6 15169else 15170 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 15171 15172else 15173 if test "$ac_cv_type_size_t" = yes; then 15174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15176as_fn_error 77 "cannot compute sizeof (size_t) 15177See \`config.log' for more details" "$LINENO" 5; } 15178 else 15179 ac_cv_sizeof_size_t=0 15180 fi 15181fi 15182 15183fi 15184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 15185$as_echo "$ac_cv_sizeof_size_t" >&6; } 15186 15187 15188 15189cat >>confdefs.h <<_ACEOF 15190#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 15191_ACEOF 15192 15193 15194 15195# add option to disable the evil rpath 15196 15197# Check whether --enable-rpath was given. 15198if test "${enable_rpath+set}" = set; then : 15199 enableval=$enable_rpath; enable_rpath=$enableval 15200else 15201 enable_rpath=yes 15202fi 15203 15204if test "x$enable_rpath" = xno; then 15205 ac_config_commands="$ac_config_commands disable-rpath" 15206 15207fi 15208 15209 15210 15211# check to see if libraries are needed for these functions. 15212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 15213$as_echo_n "checking for library containing inet_pton... " >&6; } 15214if ${ac_cv_search_inet_pton+:} false; then : 15215 $as_echo_n "(cached) " >&6 15216else 15217 ac_func_search_save_LIBS=$LIBS 15218cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15219/* end confdefs.h. */ 15220 15221/* Override any GCC internal prototype to avoid an error. 15222 Use char because int might match the return type of a GCC 15223 builtin and then its argument prototype would still apply. */ 15224#ifdef __cplusplus 15225extern "C" 15226#endif 15227char inet_pton (); 15228int 15229main () 15230{ 15231return inet_pton (); 15232 ; 15233 return 0; 15234} 15235_ACEOF 15236for ac_lib in '' nsl; do 15237 if test -z "$ac_lib"; then 15238 ac_res="none required" 15239 else 15240 ac_res=-l$ac_lib 15241 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15242 fi 15243 if ac_fn_c_try_link "$LINENO"; then : 15244 ac_cv_search_inet_pton=$ac_res 15245fi 15246rm -f core conftest.err conftest.$ac_objext \ 15247 conftest$ac_exeext 15248 if ${ac_cv_search_inet_pton+:} false; then : 15249 break 15250fi 15251done 15252if ${ac_cv_search_inet_pton+:} false; then : 15253 15254else 15255 ac_cv_search_inet_pton=no 15256fi 15257rm conftest.$ac_ext 15258LIBS=$ac_func_search_save_LIBS 15259fi 15260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 15261$as_echo "$ac_cv_search_inet_pton" >&6; } 15262ac_res=$ac_cv_search_inet_pton 15263if test "$ac_res" != no; then : 15264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15265 15266fi 15267 15268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 15269$as_echo_n "checking for library containing socket... " >&6; } 15270if ${ac_cv_search_socket+:} false; then : 15271 $as_echo_n "(cached) " >&6 15272else 15273 ac_func_search_save_LIBS=$LIBS 15274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15275/* end confdefs.h. */ 15276 15277/* Override any GCC internal prototype to avoid an error. 15278 Use char because int might match the return type of a GCC 15279 builtin and then its argument prototype would still apply. */ 15280#ifdef __cplusplus 15281extern "C" 15282#endif 15283char socket (); 15284int 15285main () 15286{ 15287return socket (); 15288 ; 15289 return 0; 15290} 15291_ACEOF 15292for ac_lib in '' socket; do 15293 if test -z "$ac_lib"; then 15294 ac_res="none required" 15295 else 15296 ac_res=-l$ac_lib 15297 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15298 fi 15299 if ac_fn_c_try_link "$LINENO"; then : 15300 ac_cv_search_socket=$ac_res 15301fi 15302rm -f core conftest.err conftest.$ac_objext \ 15303 conftest$ac_exeext 15304 if ${ac_cv_search_socket+:} false; then : 15305 break 15306fi 15307done 15308if ${ac_cv_search_socket+:} false; then : 15309 15310else 15311 ac_cv_search_socket=no 15312fi 15313rm conftest.$ac_ext 15314LIBS=$ac_func_search_save_LIBS 15315fi 15316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 15317$as_echo "$ac_cv_search_socket" >&6; } 15318ac_res=$ac_cv_search_socket 15319if test "$ac_res" != no; then : 15320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15321 15322fi 15323 15324 15325# check wether strptime also works 15326 15327# check some functions of the OS before linking libs (while still runnable). 15328for ac_header in unistd.h 15329do : 15330 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 15331if test "x$ac_cv_header_unistd_h" = xyes; then : 15332 cat >>confdefs.h <<_ACEOF 15333#define HAVE_UNISTD_H 1 15334_ACEOF 15335 15336fi 15337 15338done 15339 15340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 15341$as_echo_n "checking for working chown... " >&6; } 15342if ${ac_cv_func_chown_works+:} false; then : 15343 $as_echo_n "(cached) " >&6 15344else 15345 if test "$cross_compiling" = yes; then : 15346 ac_cv_func_chown_works=no 15347else 15348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15349/* end confdefs.h. */ 15350$ac_includes_default 15351#include <fcntl.h> 15352 15353int 15354main () 15355{ 15356 char *f = "conftest.chown"; 15357 struct stat before, after; 15358 15359 if (creat (f, 0600) < 0) 15360 return 1; 15361 if (stat (f, &before) < 0) 15362 return 1; 15363 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 15364 return 1; 15365 if (stat (f, &after) < 0) 15366 return 1; 15367 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 15368 15369 ; 15370 return 0; 15371} 15372_ACEOF 15373if ac_fn_c_try_run "$LINENO"; then : 15374 ac_cv_func_chown_works=yes 15375else 15376 ac_cv_func_chown_works=no 15377fi 15378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15379 conftest.$ac_objext conftest.beam conftest.$ac_ext 15380fi 15381 15382rm -f conftest.chown 15383 15384fi 15385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 15386$as_echo "$ac_cv_func_chown_works" >&6; } 15387if test $ac_cv_func_chown_works = yes; then 15388 15389$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 15390 15391fi 15392 15393for ac_header in vfork.h 15394do : 15395 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 15396if test "x$ac_cv_header_vfork_h" = xyes; then : 15397 cat >>confdefs.h <<_ACEOF 15398#define HAVE_VFORK_H 1 15399_ACEOF 15400 15401fi 15402 15403done 15404 15405for ac_func in fork vfork 15406do : 15407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15408ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15409if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15410 cat >>confdefs.h <<_ACEOF 15411#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15412_ACEOF 15413 15414fi 15415done 15416 15417if test "x$ac_cv_func_fork" = xyes; then 15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 15419$as_echo_n "checking for working fork... " >&6; } 15420if ${ac_cv_func_fork_works+:} false; then : 15421 $as_echo_n "(cached) " >&6 15422else 15423 if test "$cross_compiling" = yes; then : 15424 ac_cv_func_fork_works=cross 15425else 15426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15427/* end confdefs.h. */ 15428$ac_includes_default 15429int 15430main () 15431{ 15432 15433 /* By Ruediger Kuhlmann. */ 15434 return fork () < 0; 15435 15436 ; 15437 return 0; 15438} 15439_ACEOF 15440if ac_fn_c_try_run "$LINENO"; then : 15441 ac_cv_func_fork_works=yes 15442else 15443 ac_cv_func_fork_works=no 15444fi 15445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15446 conftest.$ac_objext conftest.beam conftest.$ac_ext 15447fi 15448 15449fi 15450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 15451$as_echo "$ac_cv_func_fork_works" >&6; } 15452 15453else 15454 ac_cv_func_fork_works=$ac_cv_func_fork 15455fi 15456if test "x$ac_cv_func_fork_works" = xcross; then 15457 case $host in 15458 *-*-amigaos* | *-*-msdosdjgpp*) 15459 # Override, as these systems have only a dummy fork() stub 15460 ac_cv_func_fork_works=no 15461 ;; 15462 *) 15463 ac_cv_func_fork_works=yes 15464 ;; 15465 esac 15466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 15467$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 15468fi 15469ac_cv_func_vfork_works=$ac_cv_func_vfork 15470if test "x$ac_cv_func_vfork" = xyes; then 15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 15472$as_echo_n "checking for working vfork... " >&6; } 15473if ${ac_cv_func_vfork_works+:} false; then : 15474 $as_echo_n "(cached) " >&6 15475else 15476 if test "$cross_compiling" = yes; then : 15477 ac_cv_func_vfork_works=cross 15478else 15479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15480/* end confdefs.h. */ 15481/* Thanks to Paul Eggert for this test. */ 15482$ac_includes_default 15483#include <sys/wait.h> 15484#ifdef HAVE_VFORK_H 15485# include <vfork.h> 15486#endif 15487/* On some sparc systems, changes by the child to local and incoming 15488 argument registers are propagated back to the parent. The compiler 15489 is told about this with #include <vfork.h>, but some compilers 15490 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 15491 static variable whose address is put into a register that is 15492 clobbered by the vfork. */ 15493static void 15494#ifdef __cplusplus 15495sparc_address_test (int arg) 15496# else 15497sparc_address_test (arg) int arg; 15498#endif 15499{ 15500 static pid_t child; 15501 if (!child) { 15502 child = vfork (); 15503 if (child < 0) { 15504 perror ("vfork"); 15505 _exit(2); 15506 } 15507 if (!child) { 15508 arg = getpid(); 15509 write(-1, "", 0); 15510 _exit (arg); 15511 } 15512 } 15513} 15514 15515int 15516main () 15517{ 15518 pid_t parent = getpid (); 15519 pid_t child; 15520 15521 sparc_address_test (0); 15522 15523 child = vfork (); 15524 15525 if (child == 0) { 15526 /* Here is another test for sparc vfork register problems. This 15527 test uses lots of local variables, at least as many local 15528 variables as main has allocated so far including compiler 15529 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 15530 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 15531 reuse the register of parent for one of the local variables, 15532 since it will think that parent can't possibly be used any more 15533 in this routine. Assigning to the local variable will thus 15534 munge parent in the parent process. */ 15535 pid_t 15536 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 15537 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 15538 /* Convince the compiler that p..p7 are live; otherwise, it might 15539 use the same hardware register for all 8 local variables. */ 15540 if (p != p1 || p != p2 || p != p3 || p != p4 15541 || p != p5 || p != p6 || p != p7) 15542 _exit(1); 15543 15544 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 15545 from child file descriptors. If the child closes a descriptor 15546 before it execs or exits, this munges the parent's descriptor 15547 as well. Test for this by closing stdout in the child. */ 15548 _exit(close(fileno(stdout)) != 0); 15549 } else { 15550 int status; 15551 struct stat st; 15552 15553 while (wait(&status) != child) 15554 ; 15555 return ( 15556 /* Was there some problem with vforking? */ 15557 child < 0 15558 15559 /* Did the child fail? (This shouldn't happen.) */ 15560 || status 15561 15562 /* Did the vfork/compiler bug occur? */ 15563 || parent != getpid() 15564 15565 /* Did the file descriptor bug occur? */ 15566 || fstat(fileno(stdout), &st) != 0 15567 ); 15568 } 15569} 15570_ACEOF 15571if ac_fn_c_try_run "$LINENO"; then : 15572 ac_cv_func_vfork_works=yes 15573else 15574 ac_cv_func_vfork_works=no 15575fi 15576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15577 conftest.$ac_objext conftest.beam conftest.$ac_ext 15578fi 15579 15580fi 15581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 15582$as_echo "$ac_cv_func_vfork_works" >&6; } 15583 15584fi; 15585if test "x$ac_cv_func_fork_works" = xcross; then 15586 ac_cv_func_vfork_works=$ac_cv_func_vfork 15587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 15588$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 15589fi 15590 15591if test "x$ac_cv_func_vfork_works" = xyes; then 15592 15593$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 15594 15595else 15596 15597$as_echo "#define vfork fork" >>confdefs.h 15598 15599fi 15600if test "x$ac_cv_func_fork_works" = xyes; then 15601 15602$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 15603 15604fi 15605 15606 15607$as_echo "#define RETSIGTYPE void" >>confdefs.h 15608 15609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 15610$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 15611if ${ac_cv_sys_largefile_source+:} false; then : 15612 $as_echo_n "(cached) " >&6 15613else 15614 while :; do 15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15616/* end confdefs.h. */ 15617#include <sys/types.h> /* for off_t */ 15618 #include <stdio.h> 15619int 15620main () 15621{ 15622int (*fp) (FILE *, off_t, int) = fseeko; 15623 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15624 ; 15625 return 0; 15626} 15627_ACEOF 15628if ac_fn_c_try_link "$LINENO"; then : 15629 ac_cv_sys_largefile_source=no; break 15630fi 15631rm -f core conftest.err conftest.$ac_objext \ 15632 conftest$ac_exeext conftest.$ac_ext 15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15634/* end confdefs.h. */ 15635#define _LARGEFILE_SOURCE 1 15636#include <sys/types.h> /* for off_t */ 15637 #include <stdio.h> 15638int 15639main () 15640{ 15641int (*fp) (FILE *, off_t, int) = fseeko; 15642 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15643 ; 15644 return 0; 15645} 15646_ACEOF 15647if ac_fn_c_try_link "$LINENO"; then : 15648 ac_cv_sys_largefile_source=1; break 15649fi 15650rm -f core conftest.err conftest.$ac_objext \ 15651 conftest$ac_exeext conftest.$ac_ext 15652 ac_cv_sys_largefile_source=unknown 15653 break 15654done 15655fi 15656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 15657$as_echo "$ac_cv_sys_largefile_source" >&6; } 15658case $ac_cv_sys_largefile_source in #( 15659 no | unknown) ;; 15660 *) 15661cat >>confdefs.h <<_ACEOF 15662#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 15663_ACEOF 15664;; 15665esac 15666rm -rf conftest* 15667 15668# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 15669# in glibc 2.1.3, but that breaks too many other things. 15670# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 15671if test $ac_cv_sys_largefile_source != unknown; then 15672 15673$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 15674 15675fi 15676 15677 15678# Check whether --enable-largefile was given. 15679if test "${enable_largefile+set}" = set; then : 15680 enableval=$enable_largefile; 15681fi 15682 15683if test "$enable_largefile" != no; then 15684 15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 15686$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 15687if ${ac_cv_sys_largefile_CC+:} false; then : 15688 $as_echo_n "(cached) " >&6 15689else 15690 ac_cv_sys_largefile_CC=no 15691 if test "$GCC" != yes; then 15692 ac_save_CC=$CC 15693 while :; do 15694 # IRIX 6.2 and later do not support large files by default, 15695 # so use the C compiler's -n32 option if that helps. 15696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15697/* end confdefs.h. */ 15698#include <sys/types.h> 15699 /* Check that off_t can represent 2**63 - 1 correctly. 15700 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15701 since some C++ compilers masquerading as C compilers 15702 incorrectly reject 9223372036854775807. */ 15703#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15705 && LARGE_OFF_T % 2147483647 == 1) 15706 ? 1 : -1]; 15707int 15708main () 15709{ 15710 15711 ; 15712 return 0; 15713} 15714_ACEOF 15715 if ac_fn_c_try_compile "$LINENO"; then : 15716 break 15717fi 15718rm -f core conftest.err conftest.$ac_objext 15719 CC="$CC -n32" 15720 if ac_fn_c_try_compile "$LINENO"; then : 15721 ac_cv_sys_largefile_CC=' -n32'; break 15722fi 15723rm -f core conftest.err conftest.$ac_objext 15724 break 15725 done 15726 CC=$ac_save_CC 15727 rm -f conftest.$ac_ext 15728 fi 15729fi 15730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 15731$as_echo "$ac_cv_sys_largefile_CC" >&6; } 15732 if test "$ac_cv_sys_largefile_CC" != no; then 15733 CC=$CC$ac_cv_sys_largefile_CC 15734 fi 15735 15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 15737$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 15738if ${ac_cv_sys_file_offset_bits+:} false; then : 15739 $as_echo_n "(cached) " >&6 15740else 15741 while :; do 15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15743/* end confdefs.h. */ 15744#include <sys/types.h> 15745 /* Check that off_t can represent 2**63 - 1 correctly. 15746 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15747 since some C++ compilers masquerading as C compilers 15748 incorrectly reject 9223372036854775807. */ 15749#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15750 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15751 && LARGE_OFF_T % 2147483647 == 1) 15752 ? 1 : -1]; 15753int 15754main () 15755{ 15756 15757 ; 15758 return 0; 15759} 15760_ACEOF 15761if ac_fn_c_try_compile "$LINENO"; then : 15762 ac_cv_sys_file_offset_bits=no; break 15763fi 15764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15766/* end confdefs.h. */ 15767#define _FILE_OFFSET_BITS 64 15768#include <sys/types.h> 15769 /* Check that off_t can represent 2**63 - 1 correctly. 15770 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15771 since some C++ compilers masquerading as C compilers 15772 incorrectly reject 9223372036854775807. */ 15773#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15775 && LARGE_OFF_T % 2147483647 == 1) 15776 ? 1 : -1]; 15777int 15778main () 15779{ 15780 15781 ; 15782 return 0; 15783} 15784_ACEOF 15785if ac_fn_c_try_compile "$LINENO"; then : 15786 ac_cv_sys_file_offset_bits=64; break 15787fi 15788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15789 ac_cv_sys_file_offset_bits=unknown 15790 break 15791done 15792fi 15793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 15794$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 15795case $ac_cv_sys_file_offset_bits in #( 15796 no | unknown) ;; 15797 *) 15798cat >>confdefs.h <<_ACEOF 15799#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 15800_ACEOF 15801;; 15802esac 15803rm -rf conftest* 15804 if test $ac_cv_sys_file_offset_bits = unknown; then 15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 15806$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 15807if ${ac_cv_sys_large_files+:} false; then : 15808 $as_echo_n "(cached) " >&6 15809else 15810 while :; do 15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15812/* end confdefs.h. */ 15813#include <sys/types.h> 15814 /* Check that off_t can represent 2**63 - 1 correctly. 15815 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15816 since some C++ compilers masquerading as C compilers 15817 incorrectly reject 9223372036854775807. */ 15818#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15819 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15820 && LARGE_OFF_T % 2147483647 == 1) 15821 ? 1 : -1]; 15822int 15823main () 15824{ 15825 15826 ; 15827 return 0; 15828} 15829_ACEOF 15830if ac_fn_c_try_compile "$LINENO"; then : 15831 ac_cv_sys_large_files=no; break 15832fi 15833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15835/* end confdefs.h. */ 15836#define _LARGE_FILES 1 15837#include <sys/types.h> 15838 /* Check that off_t can represent 2**63 - 1 correctly. 15839 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15840 since some C++ compilers masquerading as C compilers 15841 incorrectly reject 9223372036854775807. */ 15842#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15843 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15844 && LARGE_OFF_T % 2147483647 == 1) 15845 ? 1 : -1]; 15846int 15847main () 15848{ 15849 15850 ; 15851 return 0; 15852} 15853_ACEOF 15854if ac_fn_c_try_compile "$LINENO"; then : 15855 ac_cv_sys_large_files=1; break 15856fi 15857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15858 ac_cv_sys_large_files=unknown 15859 break 15860done 15861fi 15862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 15863$as_echo "$ac_cv_sys_large_files" >&6; } 15864case $ac_cv_sys_large_files in #( 15865 no | unknown) ;; 15866 *) 15867cat >>confdefs.h <<_ACEOF 15868#define _LARGE_FILES $ac_cv_sys_large_files 15869_ACEOF 15870;; 15871esac 15872rm -rf conftest* 15873 fi 15874 15875 15876fi 15877 15878 15879 15880 15881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5 15882$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; } 15883cache=_D_LARGEFILE_SOURCE_1 15884if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 15885 $as_echo_n "(cached) " >&6 15886else 15887 15888echo ' 15889#include <stdio.h> 15890int test() { 15891 int a = fseeko(stdin, 0, 0); 15892 return a; 15893} 15894' > conftest.c 15895echo 'void f(){}' >>conftest.c 15896if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 15897eval "cv_prog_cc_flag_needed_$cache=no" 15898else 15899 15900if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then 15901eval "cv_prog_cc_flag_needed_$cache=yes" 15902else 15903eval "cv_prog_cc_flag_needed_$cache=fail" 15904#echo 'Test with flag fails too!' 15905#cat conftest.c 15906#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 15907#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 15908#exit 1 15909fi 15910 15911fi 15912rm -f conftest conftest.c conftest.o 15913 15914fi 15915 15916if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 15917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15918$as_echo "yes" >&6; } 15919: 15920CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1" 15921else 15922if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 15923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15924$as_echo "no" >&6; } 15925#echo 'Test with flag is no!' 15926#cat conftest.c 15927#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 15928#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 15929#exit 1 15930: 15931 15932else 15933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 15934$as_echo "failed" >&6; } 15935: 15936 15937fi 15938fi 15939 15940 15941 15942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 15943$as_echo_n "checking if nonblocking sockets work... " >&6; } 15944if echo $host | grep mingw >/dev/null; then 15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 15946$as_echo "no (windows)" >&6; } 15947 15948$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 15949 15950else 15951if test "$cross_compiling" = yes; then : 15952 15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 15954$as_echo "crosscompile(yes)" >&6; } 15955 15956else 15957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15958/* end confdefs.h. */ 15959 15960 15961#include <stdio.h> 15962#include <string.h> 15963#include <stdlib.h> 15964#include <fcntl.h> 15965#include <errno.h> 15966#ifdef HAVE_SYS_TYPES_H 15967#include <sys/types.h> 15968#endif 15969#ifdef HAVE_SYS_SOCKET_H 15970#include <sys/socket.h> 15971#endif 15972#ifdef HAVE_NETINET_IN_H 15973#include <netinet/in.h> 15974#endif 15975#ifdef HAVE_ARPA_INET_H 15976#include <arpa/inet.h> 15977#endif 15978#ifdef HAVE_UNISTD_H 15979#include <unistd.h> 15980#endif 15981#ifdef HAVE_TIME_H 15982#include <time.h> 15983#endif 15984 15985int main(void) 15986{ 15987 int port; 15988 int sfd, cfd; 15989 int num = 10; 15990 int i, p; 15991 struct sockaddr_in a; 15992 /* test if select and nonblocking reads work well together */ 15993 /* open port. 15994 fork child to send 10 messages. 15995 select to read. 15996 then try to nonblocking read the 10 messages 15997 then, nonblocking read must give EAGAIN 15998 */ 15999 16000 port = 12345 + (time(0)%32); 16001 sfd = socket(PF_INET, SOCK_DGRAM, 0); 16002 if(sfd == -1) { 16003 perror("socket"); 16004 return 1; 16005 } 16006 memset(&a, 0, sizeof(a)); 16007 a.sin_family = AF_INET; 16008 a.sin_port = htons(port); 16009 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 16010 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 16011 perror("bind"); 16012 return 1; 16013 } 16014 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 16015 perror("fcntl"); 16016 return 1; 16017 } 16018 16019 cfd = socket(PF_INET, SOCK_DGRAM, 0); 16020 if(cfd == -1) { 16021 perror("client socket"); 16022 return 1; 16023 } 16024 a.sin_port = 0; 16025 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 16026 perror("client bind"); 16027 return 1; 16028 } 16029 a.sin_port = htons(port); 16030 16031 /* no handler, causes exit in 10 seconds */ 16032 alarm(10); 16033 16034 /* send and receive on the socket */ 16035 if((p=fork()) == 0) { 16036 for(i=0; i<num; i++) { 16037 if(sendto(cfd, &i, sizeof(i), 0, 16038 (struct sockaddr*)&a, sizeof(a)) < 0) { 16039 perror("sendto"); 16040 return 1; 16041 } 16042 } 16043 } else { 16044 /* parent */ 16045 fd_set rset; 16046 int x; 16047 if(p == -1) { 16048 perror("fork"); 16049 return 1; 16050 } 16051 FD_ZERO(&rset); 16052 FD_SET(sfd, &rset); 16053 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 16054 perror("select"); 16055 return 1; 16056 } 16057 i = 0; 16058 while(i < num) { 16059 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 16060 if(errno == EAGAIN) 16061 continue; 16062 perror("recv"); 16063 return 1; 16064 } 16065 i++; 16066 } 16067 /* now we want to get EAGAIN: nonblocking goodness */ 16068 errno = 0; 16069 recv(sfd, &x, sizeof(x), 0); 16070 if(errno != EAGAIN) { 16071 perror("trying to recv again"); 16072 return 1; 16073 } 16074 /* EAGAIN encountered */ 16075 } 16076 16077 close(sfd); 16078 close(cfd); 16079 return 0; 16080} 16081 16082_ACEOF 16083if ac_fn_c_try_run "$LINENO"; then : 16084 16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16086$as_echo "yes" >&6; } 16087 16088else 16089 16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16091$as_echo "no" >&6; } 16092 16093$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 16094 16095 16096fi 16097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16098 conftest.$ac_objext conftest.beam conftest.$ac_ext 16099fi 16100 16101fi 16102 16103 16104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 16105$as_echo_n "checking whether mkdir has one arg... " >&6; } 16106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16107/* end confdefs.h. */ 16108 16109#include <stdio.h> 16110#include <unistd.h> 16111#ifdef HAVE_WINSOCK2_H 16112#include <winsock2.h> 16113#endif 16114#ifdef HAVE_SYS_STAT_H 16115#include <sys/stat.h> 16116#endif 16117 16118int 16119main () 16120{ 16121 16122 (void)mkdir("directory"); 16123 16124 ; 16125 return 0; 16126} 16127_ACEOF 16128if ac_fn_c_try_compile "$LINENO"; then : 16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16130$as_echo "yes" >&6; } 16131 16132$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 16133 16134 16135else 16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16137$as_echo "no" >&6; } 16138 16139fi 16140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16141 16142for ac_func in strptime 16143do : 16144 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 16145if test "x$ac_cv_func_strptime" = xyes; then : 16146 cat >>confdefs.h <<_ACEOF 16147#define HAVE_STRPTIME 1 16148_ACEOF 16149 16150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 16151$as_echo_n "checking whether strptime works... " >&6; } 16152if test c${cross_compiling} = cno; then 16153if test "$cross_compiling" = yes; then : 16154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16156as_fn_error $? "cannot run test program while cross compiling 16157See \`config.log' for more details" "$LINENO" 5; } 16158else 16159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16160/* end confdefs.h. */ 16161 16162#define _XOPEN_SOURCE 600 16163#include <time.h> 16164int main(void) { struct tm tm; char *res; 16165res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm); 16166if (!res) return 2; 16167res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 16168if (!res) return 1; return 0; } 16169 16170_ACEOF 16171if ac_fn_c_try_run "$LINENO"; then : 16172 eval "ac_cv_c_strptime_works=yes" 16173else 16174 eval "ac_cv_c_strptime_works=no" 16175fi 16176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16177 conftest.$ac_objext conftest.beam conftest.$ac_ext 16178fi 16179 16180else 16181eval "ac_cv_c_strptime_works=maybe" 16182fi 16183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 16184$as_echo "$ac_cv_c_strptime_works" >&6; } 16185if test $ac_cv_c_strptime_works = no; then 16186case " $LIBOBJS " in 16187 *" strptime.$ac_objext "* ) ;; 16188 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 16189 ;; 16190esac 16191 16192else 16193 16194cat >>confdefs.h <<_ACEOF 16195#define STRPTIME_WORKS 1 16196_ACEOF 16197 16198fi 16199 16200else 16201 case " $LIBOBJS " in 16202 *" strptime.$ac_objext "* ) ;; 16203 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 16204 ;; 16205esac 16206 16207fi 16208done 16209 16210 16211# check if we can use SO_REUSEPORT 16212reuseport_default=0 16213if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi 16214if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi 16215if test "$reuseport_default" = 1; then 16216 16217$as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h 16218 16219else 16220 16221$as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h 16222 16223fi 16224 16225# Include systemd.m4 - begin 16226# macros for configuring systemd 16227# Copyright 2015, Sami Kerola, CloudFlare. 16228# BSD licensed. 16229# Check whether --enable-systemd was given. 16230if test "${enable_systemd+set}" = set; then : 16231 enableval=$enable_systemd; 16232else 16233 enable_systemd=no 16234fi 16235 16236have_systemd=no 16237if test "x$enable_systemd" != xno; then : 16238 16239 16240 16241pkg_failed=no 16242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 16243$as_echo_n "checking for SYSTEMD... " >&6; } 16244 16245if test -n "$SYSTEMD_CFLAGS"; then 16246 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" 16247 elif test -n "$PKG_CONFIG"; then 16248 if test -n "$PKG_CONFIG" && \ 16249 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 16250 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 16251 ac_status=$? 16252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16253 test $ac_status = 0; }; then 16254 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 16255 test "x$?" != "x0" && pkg_failed=yes 16256else 16257 pkg_failed=yes 16258fi 16259 else 16260 pkg_failed=untried 16261fi 16262if test -n "$SYSTEMD_LIBS"; then 16263 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" 16264 elif test -n "$PKG_CONFIG"; then 16265 if test -n "$PKG_CONFIG" && \ 16266 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 16267 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 16268 ac_status=$? 16269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16270 test $ac_status = 0; }; then 16271 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 16272 test "x$?" != "x0" && pkg_failed=yes 16273else 16274 pkg_failed=yes 16275fi 16276 else 16277 pkg_failed=untried 16278fi 16279 16280 16281 16282if test $pkg_failed = yes; then 16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16284$as_echo "no" >&6; } 16285 16286if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16287 _pkg_short_errors_supported=yes 16288else 16289 _pkg_short_errors_supported=no 16290fi 16291 if test $_pkg_short_errors_supported = yes; then 16292 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 16293 else 16294 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 16295 fi 16296 # Put the nasty error message in config.log where it belongs 16297 echo "$SYSTEMD_PKG_ERRORS" >&5 16298 16299 have_systemd=no 16300elif test $pkg_failed = untried; then 16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16302$as_echo "no" >&6; } 16303 have_systemd=no 16304else 16305 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS 16306 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS 16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16308$as_echo "yes" >&6; } 16309 have_systemd=yes 16310fi 16311 if test "x$have_systemd" != "xyes"; then : 16312 16313 16314pkg_failed=no 16315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 16316$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 16317 16318if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 16319 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 16320 elif test -n "$PKG_CONFIG"; then 16321 if test -n "$PKG_CONFIG" && \ 16322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 16323 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 16324 ac_status=$? 16325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16326 test $ac_status = 0; }; then 16327 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 16328 test "x$?" != "x0" && pkg_failed=yes 16329else 16330 pkg_failed=yes 16331fi 16332 else 16333 pkg_failed=untried 16334fi 16335if test -n "$SYSTEMD_DAEMON_LIBS"; then 16336 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 16337 elif test -n "$PKG_CONFIG"; then 16338 if test -n "$PKG_CONFIG" && \ 16339 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 16340 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 16341 ac_status=$? 16342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16343 test $ac_status = 0; }; then 16344 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 16345 test "x$?" != "x0" && pkg_failed=yes 16346else 16347 pkg_failed=yes 16348fi 16349 else 16350 pkg_failed=untried 16351fi 16352 16353 16354 16355if test $pkg_failed = yes; then 16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16357$as_echo "no" >&6; } 16358 16359if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16360 _pkg_short_errors_supported=yes 16361else 16362 _pkg_short_errors_supported=no 16363fi 16364 if test $_pkg_short_errors_supported = yes; then 16365 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 16366 else 16367 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 16368 fi 16369 # Put the nasty error message in config.log where it belongs 16370 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 16371 16372 have_systemd_daemon=no 16373elif test $pkg_failed = untried; then 16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16375$as_echo "no" >&6; } 16376 have_systemd_daemon=no 16377else 16378 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 16379 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16381$as_echo "yes" >&6; } 16382 have_systemd_daemon=yes 16383fi 16384 if test "x$have_systemd_daemon" = "xyes"; then : 16385 have_systemd=yes 16386fi 16387 16388fi 16389 case $enable_systemd:$have_systemd in #( 16390 yes:no) : 16391 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #( 16392 *:yes) : 16393 16394$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h 16395 16396 LIBS="$LIBS $SYSTEMD_LIBS" 16397 16398 ;; #( 16399 *) : 16400 ;; 16401esac 16402 16403 16404fi 16405 if test "x$have_systemd" = xyes; then 16406 USE_SYSTEMD_TRUE= 16407 USE_SYSTEMD_FALSE='#' 16408else 16409 USE_SYSTEMD_TRUE='#' 16410 USE_SYSTEMD_FALSE= 16411fi 16412 16413 16414# Include systemd.m4 - end 16415 16416# set memory allocation checking if requested 16417# Check whether --enable-alloc-checks was given. 16418if test "${enable_alloc_checks+set}" = set; then : 16419 enableval=$enable_alloc_checks; 16420fi 16421 16422# Check whether --enable-alloc-lite was given. 16423if test "${enable_alloc_lite+set}" = set; then : 16424 enableval=$enable_alloc_lite; 16425fi 16426 16427# Check whether --enable-alloc-nonregional was given. 16428if test "${enable_alloc_nonregional+set}" = set; then : 16429 enableval=$enable_alloc_nonregional; 16430fi 16431 16432if test x_$enable_alloc_nonregional = x_yes; then 16433 16434$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h 16435 16436fi 16437if test x_$enable_alloc_checks = x_yes; then 16438 16439$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h 16440 16441 SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo" 16442 16443 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo" 16444 16445else 16446 if test x_$enable_alloc_lite = x_yes; then 16447 16448$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h 16449 16450 else 16451 16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 16453$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 16454 if test "$cross_compiling" = yes; then : 16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5 16456$as_echo "no (crosscompile)" >&6; } 16457 case " $LIBOBJS " in 16458 *" malloc.$ac_objext "* ) ;; 16459 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 16460 ;; 16461esac 16462 16463 16464cat >>confdefs.h <<_ACEOF 16465#define malloc rpl_malloc_unbound 16466_ACEOF 16467 16468else 16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16470/* end confdefs.h. */ 16471#if defined STDC_HEADERS || defined HAVE_STDLIB_H 16472#include <stdlib.h> 16473#else 16474char *malloc (); 16475#endif 16476 16477int 16478main () 16479{ 16480 if(malloc(0) != 0) return 1; 16481 ; 16482 return 0; 16483} 16484 16485_ACEOF 16486if ac_fn_c_try_run "$LINENO"; then : 16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16488$as_echo "no" >&6; } 16489 case " $LIBOBJS " in 16490 *" malloc.$ac_objext "* ) ;; 16491 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 16492 ;; 16493esac 16494 16495 16496cat >>confdefs.h <<_ACEOF 16497#define malloc rpl_malloc_unbound 16498_ACEOF 16499 16500else 16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16502$as_echo "yes" >&6; } 16503 16504$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 16505 16506fi 16507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16508 conftest.$ac_objext conftest.beam conftest.$ac_ext 16509fi 16510 16511 16512 fi 16513fi 16514 16515# check windows threads (we use them, not pthreads, on windows). 16516if test "$on_mingw" = "yes"; then 16517# check windows threads 16518 for ac_header in windows.h 16519do : 16520 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 16521" 16522if test "x$ac_cv_header_windows_h" = xyes; then : 16523 cat >>confdefs.h <<_ACEOF 16524#define HAVE_WINDOWS_H 1 16525_ACEOF 16526 16527fi 16528 16529done 16530 16531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5 16532$as_echo_n "checking for CreateThread... " >&6; } 16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16534/* end confdefs.h. */ 16535 16536#ifdef HAVE_WINDOWS_H 16537#include <windows.h> 16538#endif 16539 16540int 16541main () 16542{ 16543 16544 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 16545 16546 ; 16547 return 0; 16548} 16549_ACEOF 16550if ac_fn_c_try_compile "$LINENO"; then : 16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16552$as_echo "yes" >&6; } 16553 16554$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h 16555 16556 16557else 16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16559$as_echo "no" >&6; } 16560 16561fi 16562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16563 16564else 16565# not on mingw, check thread libraries. 16566 16567# check for thread library. 16568# check this first, so that the pthread lib does not get linked in via 16569# libssl or libpython, and thus distorts the tests, and we end up using 16570# the non-threadsafe C libraries. 16571 16572# Check whether --with-pthreads was given. 16573if test "${with_pthreads+set}" = set; then : 16574 withval=$with_pthreads; 16575else 16576 withval="yes" 16577fi 16578 16579ub_have_pthreads=no 16580if test x_$withval != x_no; then 16581 16582 16583ac_ext=c 16584ac_cpp='$CPP $CPPFLAGS' 16585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16587ac_compiler_gnu=$ac_cv_c_compiler_gnu 16588 16589ax_pthread_ok=no 16590 16591# We used to check for pthread.h first, but this fails if pthread.h 16592# requires special compiler flags (e.g. on True64 or Sequent). 16593# It gets checked for in the link test anyway. 16594 16595# First of all, check if the user has set any of the PTHREAD_LIBS, 16596# etcetera environment variables, and if threads linking works using 16597# them: 16598if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 16599 save_CFLAGS="$CFLAGS" 16600 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16601 save_LIBS="$LIBS" 16602 LIBS="$PTHREAD_LIBS $LIBS" 16603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 16604$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16606/* end confdefs.h. */ 16607 16608/* Override any GCC internal prototype to avoid an error. 16609 Use char because int might match the return type of a GCC 16610 builtin and then its argument prototype would still apply. */ 16611#ifdef __cplusplus 16612extern "C" 16613#endif 16614char pthread_join (); 16615int 16616main () 16617{ 16618return pthread_join (); 16619 ; 16620 return 0; 16621} 16622_ACEOF 16623if ac_fn_c_try_link "$LINENO"; then : 16624 ax_pthread_ok=yes 16625fi 16626rm -f core conftest.err conftest.$ac_objext \ 16627 conftest$ac_exeext conftest.$ac_ext 16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 16629$as_echo "$ax_pthread_ok" >&6; } 16630 if test x"$ax_pthread_ok" = xno; then 16631 PTHREAD_LIBS="" 16632 PTHREAD_CFLAGS="" 16633 fi 16634 LIBS="$save_LIBS" 16635 CFLAGS="$save_CFLAGS" 16636fi 16637 16638# We must check for the threads library under a number of different 16639# names; the ordering is very important because some systems 16640# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 16641# libraries is broken (non-POSIX). 16642 16643# Create a list of thread flags to try. Items starting with a "-" are 16644# C compiler flags, and other items are library names, except for "none" 16645# which indicates that we try without any flags at all, and "pthread-config" 16646# which is a program returning the flags for the Pth emulation library. 16647 16648ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 16649 16650# The ordering *is* (sometimes) important. Some notes on the 16651# individual items follow: 16652 16653# pthreads: AIX (must check this before -lpthread) 16654# none: in case threads are in libc; should be tried before -Kthread and 16655# other compiler flags to prevent continual compiler warnings 16656# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 16657# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 16658# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 16659# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 16660# -pthreads: Solaris/gcc 16661# -mthreads: Mingw32/gcc, Lynx/gcc 16662# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 16663# doesn't hurt to check since this sometimes defines pthreads too; 16664# also defines -D_REENTRANT) 16665# ... -mt is also the pthreads flag for HP/aCC 16666# pthread: Linux, etcetera 16667# --thread-safe: KAI C++ 16668# pthread-config: use pthread-config program (for GNU Pth library) 16669 16670case ${host_os} in 16671 solaris*) 16672 16673 # On Solaris (at least, for some versions), libc contains stubbed 16674 # (non-functional) versions of the pthreads routines, so link-based 16675 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 16676 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 16677 # a function called by this macro, so we could check for that, but 16678 # who knows whether they'll stub that too in a future libc.) So, 16679 # we'll just look for -pthreads and -lpthread first: 16680 16681 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 16682 ;; 16683 16684 darwin*) 16685 ax_pthread_flags="-pthread $ax_pthread_flags" 16686 ;; 16687esac 16688 16689# Clang doesn't consider unrecognized options an error unless we specify 16690# -Werror. We throw in some extra Clang-specific options to ensure that 16691# this doesn't happen for GCC, which also accepts -Werror. 16692 16693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 16694$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 16695save_CFLAGS="$CFLAGS" 16696ax_pthread_extra_flags="-Werror" 16697CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 16698cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16699/* end confdefs.h. */ 16700int foo(void); 16701int 16702main () 16703{ 16704foo() 16705 ; 16706 return 0; 16707} 16708_ACEOF 16709if ac_fn_c_try_compile "$LINENO"; then : 16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16711$as_echo "yes" >&6; } 16712else 16713 ax_pthread_extra_flags= 16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16715$as_echo "no" >&6; } 16716fi 16717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16718CFLAGS="$save_CFLAGS" 16719 16720if test x"$ax_pthread_ok" = xno; then 16721for flag in $ax_pthread_flags; do 16722 16723 case $flag in 16724 none) 16725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 16726$as_echo_n "checking whether pthreads work without any flags... " >&6; } 16727 ;; 16728 16729 -*) 16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 16731$as_echo_n "checking whether pthreads work with $flag... " >&6; } 16732 PTHREAD_CFLAGS="$flag" 16733 ;; 16734 16735 pthread-config) 16736 # Extract the first word of "pthread-config", so it can be a program name with args. 16737set dummy pthread-config; ac_word=$2 16738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16739$as_echo_n "checking for $ac_word... " >&6; } 16740if ${ac_cv_prog_ax_pthread_config+:} false; then : 16741 $as_echo_n "(cached) " >&6 16742else 16743 if test -n "$ax_pthread_config"; then 16744 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 16745else 16746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16747for as_dir in $PATH 16748do 16749 IFS=$as_save_IFS 16750 test -z "$as_dir" && as_dir=. 16751 for ac_exec_ext in '' $ac_executable_extensions; do 16752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16753 ac_cv_prog_ax_pthread_config="yes" 16754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16755 break 2 16756 fi 16757done 16758 done 16759IFS=$as_save_IFS 16760 16761 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 16762fi 16763fi 16764ax_pthread_config=$ac_cv_prog_ax_pthread_config 16765if test -n "$ax_pthread_config"; then 16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 16767$as_echo "$ax_pthread_config" >&6; } 16768else 16769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16770$as_echo "no" >&6; } 16771fi 16772 16773 16774 if test x"$ax_pthread_config" = xno; then continue; fi 16775 PTHREAD_CFLAGS="`pthread-config --cflags`" 16776 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 16777 ;; 16778 16779 *) 16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 16781$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 16782 PTHREAD_LIBS="-l$flag" 16783 ;; 16784 esac 16785 16786 save_LIBS="$LIBS" 16787 save_CFLAGS="$CFLAGS" 16788 LIBS="$PTHREAD_LIBS $LIBS" 16789 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 16790 16791 # Check for various functions. We must include pthread.h, 16792 # since some functions may be macros. (On the Sequent, we 16793 # need a special flag -Kthread to make this header compile.) 16794 # We check for pthread_join because it is in -lpthread on IRIX 16795 # while pthread_create is in libc. We check for pthread_attr_init 16796 # due to DEC craziness with -lpthreads. We check for 16797 # pthread_cleanup_push because it is one of the few pthread 16798 # functions on Solaris that doesn't have a non-functional libc stub. 16799 # We try pthread_create on general principles. 16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16801/* end confdefs.h. */ 16802#include <pthread.h> 16803 static void routine(void *a) { *((int*)a) = 0; } 16804 static void *start_routine(void *a) { return a; } 16805int 16806main () 16807{ 16808pthread_t th; pthread_attr_t attr; 16809 pthread_create(&th, 0, start_routine, 0); 16810 pthread_join(th, 0); 16811 pthread_attr_init(&attr); 16812 pthread_cleanup_push(routine, 0); 16813 pthread_cleanup_pop(0) /* ; */ 16814 ; 16815 return 0; 16816} 16817_ACEOF 16818if ac_fn_c_try_link "$LINENO"; then : 16819 ax_pthread_ok=yes 16820fi 16821rm -f core conftest.err conftest.$ac_objext \ 16822 conftest$ac_exeext conftest.$ac_ext 16823 16824 LIBS="$save_LIBS" 16825 CFLAGS="$save_CFLAGS" 16826 16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 16828$as_echo "$ax_pthread_ok" >&6; } 16829 if test "x$ax_pthread_ok" = xyes; then 16830 break; 16831 fi 16832 16833 PTHREAD_LIBS="" 16834 PTHREAD_CFLAGS="" 16835done 16836fi 16837 16838# Various other checks: 16839if test "x$ax_pthread_ok" = xyes; then 16840 save_LIBS="$LIBS" 16841 LIBS="$PTHREAD_LIBS $LIBS" 16842 save_CFLAGS="$CFLAGS" 16843 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16844 16845 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 16847$as_echo_n "checking for joinable pthread attribute... " >&6; } 16848 attr_name=unknown 16849 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 16850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16851/* end confdefs.h. */ 16852#include <pthread.h> 16853int 16854main () 16855{ 16856int attr = $attr; return attr /* ; */ 16857 ; 16858 return 0; 16859} 16860_ACEOF 16861if ac_fn_c_try_link "$LINENO"; then : 16862 attr_name=$attr; break 16863fi 16864rm -f core conftest.err conftest.$ac_objext \ 16865 conftest$ac_exeext conftest.$ac_ext 16866 done 16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 16868$as_echo "$attr_name" >&6; } 16869 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 16870 16871cat >>confdefs.h <<_ACEOF 16872#define PTHREAD_CREATE_JOINABLE $attr_name 16873_ACEOF 16874 16875 fi 16876 16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 16878$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 16879 flag=no 16880 case ${host_os} in 16881 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 16882 osf* | hpux*) flag="-D_REENTRANT";; 16883 solaris*) 16884 if test "$GCC" = "yes"; then 16885 flag="-D_REENTRANT" 16886 else 16887 # TODO: What about Clang on Solaris? 16888 flag="-mt -D_REENTRANT" 16889 fi 16890 ;; 16891 esac 16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 16893$as_echo "$flag" >&6; } 16894 if test "x$flag" != xno; then 16895 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 16896 fi 16897 16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 16899$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 16900if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 16901 $as_echo_n "(cached) " >&6 16902else 16903 16904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16905/* end confdefs.h. */ 16906#include <pthread.h> 16907int 16908main () 16909{ 16910int i = PTHREAD_PRIO_INHERIT; 16911 ; 16912 return 0; 16913} 16914_ACEOF 16915if ac_fn_c_try_link "$LINENO"; then : 16916 ax_cv_PTHREAD_PRIO_INHERIT=yes 16917else 16918 ax_cv_PTHREAD_PRIO_INHERIT=no 16919fi 16920rm -f core conftest.err conftest.$ac_objext \ 16921 conftest$ac_exeext conftest.$ac_ext 16922 16923fi 16924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 16925$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 16926 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 16927 16928$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 16929 16930fi 16931 16932 LIBS="$save_LIBS" 16933 CFLAGS="$save_CFLAGS" 16934 16935 # More AIX lossage: compile with *_r variant 16936 if test "x$GCC" != xyes; then 16937 case $host_os in 16938 aix*) 16939 case "x/$CC" in #( 16940 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 16941 #handle absolute path differently from PATH based program lookup 16942 case "x$CC" in #( 16943 x/*) : 16944 if as_fn_executable_p ${CC}_r; then : 16945 PTHREAD_CC="${CC}_r" 16946fi ;; #( 16947 *) : 16948 for ac_prog in ${CC}_r 16949do 16950 # Extract the first word of "$ac_prog", so it can be a program name with args. 16951set dummy $ac_prog; ac_word=$2 16952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16953$as_echo_n "checking for $ac_word... " >&6; } 16954if ${ac_cv_prog_PTHREAD_CC+:} false; then : 16955 $as_echo_n "(cached) " >&6 16956else 16957 if test -n "$PTHREAD_CC"; then 16958 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 16959else 16960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16961for as_dir in $PATH 16962do 16963 IFS=$as_save_IFS 16964 test -z "$as_dir" && as_dir=. 16965 for ac_exec_ext in '' $ac_executable_extensions; do 16966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16967 ac_cv_prog_PTHREAD_CC="$ac_prog" 16968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16969 break 2 16970 fi 16971done 16972 done 16973IFS=$as_save_IFS 16974 16975fi 16976fi 16977PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 16978if test -n "$PTHREAD_CC"; then 16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 16980$as_echo "$PTHREAD_CC" >&6; } 16981else 16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16983$as_echo "no" >&6; } 16984fi 16985 16986 16987 test -n "$PTHREAD_CC" && break 16988done 16989test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 16990 ;; 16991esac ;; #( 16992 *) : 16993 ;; 16994esac 16995 ;; 16996 esac 16997 fi 16998fi 16999 17000test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 17001 17002 17003 17004 17005 17006# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 17007if test x"$ax_pthread_ok" = xyes; then 17008 17009 17010$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 17011 17012 if test -n "$PTHREAD_LIBS"; then 17013 LIBS="$PTHREAD_LIBS $LIBS" 17014 fi 17015 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17016 CC="$PTHREAD_CC" 17017 ub_have_pthreads=yes 17018 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h> 17019" 17020if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then : 17021 17022cat >>confdefs.h <<_ACEOF 17023#define HAVE_PTHREAD_SPINLOCK_T 1 17024_ACEOF 17025 17026 17027fi 17028ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 17029" 17030if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 17031 17032cat >>confdefs.h <<_ACEOF 17033#define HAVE_PTHREAD_RWLOCK_T 1 17034_ACEOF 17035 17036 17037fi 17038 17039 17040 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then 17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5 17042$as_echo_n "checking if -pthread unused during linking... " >&6; } 17043 # catch clang warning 'argument unused during compilation' 17044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17045/* end confdefs.h. */ 17046$ac_includes_default 17047 17048int main(void) {return 0;} 17049 17050_ACEOF 17051 pthread_unused="yes" 17052 # first compile 17053 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5 17054 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5 17055 if test $? = 0; then 17056 # then link 17057 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5 17058 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5 17059 if test $? -ne 0; then 17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17061$as_echo "yes" >&6; } 17062 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'` 17063 PTHREAD_CFLAGS_ONLY="-pthread" 17064 17065 else 17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17067$as_echo "no" >&6; } 17068 fi 17069 else 17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17071$as_echo "no" >&6; } 17072 fi # endif cc successful 17073 rm -f conftest conftest.c conftest.o 17074 fi # endif -pthread in CFLAGS 17075 17076 17077 : 17078else 17079 ax_pthread_ok=no 17080 17081fi 17082ac_ext=c 17083ac_cpp='$CPP $CPPFLAGS' 17084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17086ac_compiler_gnu=$ac_cv_c_compiler_gnu 17087 17088 17089fi 17090 17091# check solaris thread library 17092 17093# Check whether --with-solaris-threads was given. 17094if test "${with_solaris_threads+set}" = set; then : 17095 withval=$with_solaris_threads; 17096else 17097 withval="no" 17098fi 17099 17100ub_have_sol_threads=no 17101if test x_$withval != x_no; then 17102 if test x_$ub_have_pthreads != x_no; then 17103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5 17104$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;} 17105 else 17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5 17107$as_echo_n "checking for library containing thr_create... " >&6; } 17108if ${ac_cv_search_thr_create+:} false; then : 17109 $as_echo_n "(cached) " >&6 17110else 17111 ac_func_search_save_LIBS=$LIBS 17112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17113/* end confdefs.h. */ 17114 17115/* Override any GCC internal prototype to avoid an error. 17116 Use char because int might match the return type of a GCC 17117 builtin and then its argument prototype would still apply. */ 17118#ifdef __cplusplus 17119extern "C" 17120#endif 17121char thr_create (); 17122int 17123main () 17124{ 17125return thr_create (); 17126 ; 17127 return 0; 17128} 17129_ACEOF 17130for ac_lib in '' thread; do 17131 if test -z "$ac_lib"; then 17132 ac_res="none required" 17133 else 17134 ac_res=-l$ac_lib 17135 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17136 fi 17137 if ac_fn_c_try_link "$LINENO"; then : 17138 ac_cv_search_thr_create=$ac_res 17139fi 17140rm -f core conftest.err conftest.$ac_objext \ 17141 conftest$ac_exeext 17142 if ${ac_cv_search_thr_create+:} false; then : 17143 break 17144fi 17145done 17146if ${ac_cv_search_thr_create+:} false; then : 17147 17148else 17149 ac_cv_search_thr_create=no 17150fi 17151rm conftest.$ac_ext 17152LIBS=$ac_func_search_save_LIBS 17153fi 17154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5 17155$as_echo "$ac_cv_search_thr_create" >&6; } 17156ac_res=$ac_cv_search_thr_create 17157if test "$ac_res" != no; then : 17158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17159 17160 17161$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h 17162 17163 17164 17165 17166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5 17167$as_echo_n "checking whether $CC supports -mt... " >&6; } 17168cache=`echo mt | sed 'y%.=/+-%___p_%'` 17169if eval \${cv_prog_cc_flag_$cache+:} false; then : 17170 $as_echo_n "(cached) " >&6 17171else 17172 17173echo 'void f(void){}' >conftest.c 17174if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then 17175eval "cv_prog_cc_flag_$cache=yes" 17176else 17177eval "cv_prog_cc_flag_$cache=no" 17178fi 17179rm -f conftest conftest.o conftest.c 17180 17181fi 17182 17183if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 17184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17185$as_echo "yes" >&6; } 17186: 17187CFLAGS="$CFLAGS -mt" 17188else 17189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17190$as_echo "no" >&6; } 17191: 17192CFLAGS="$CFLAGS -D_REENTRANT" 17193fi 17194 17195 ub_have_sol_threads=yes 17196 17197else 17198 17199 as_fn_error $? "no solaris threads found." "$LINENO" 5 17200 17201fi 17202 17203 fi 17204fi 17205 17206fi # end of non-mingw check of thread libraries 17207 17208# Check for SYSLOG_FACILITY 17209 17210# Check whether --with-syslog-facility was given. 17211if test "${with_syslog_facility+set}" = set; then : 17212 withval=$with_syslog_facility; UNBOUND_SYSLOG_FACILITY="$withval" 17213fi 17214 17215case "${UNBOUND_SYSLOG_FACILITY}" in 17216 17217 LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;; 17218 17219 *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;; 17220 17221esac 17222 17223cat >>confdefs.h <<_ACEOF 17224#define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY} 17225_ACEOF 17226 17227 17228# Check for dynamic library module 17229 17230# Check whether --with-dynlibmodule was given. 17231if test "${with_dynlibmodule+set}" = set; then : 17232 withval=$with_dynlibmodule; 17233else 17234 withval="no" 17235fi 17236 17237 17238if test x_$withval != x_no; then 17239 17240$as_echo "#define WITH_DYNLIBMODULE 1" >>confdefs.h 17241 17242 WITH_DYNLIBMODULE=yes 17243 17244 DYNLIBMOD_OBJ="dynlibmod.lo" 17245 17246 DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h' 17247 17248 if test $on_mingw = "no"; then 17249 # link with -ldl if not already there, for all executables because 17250 # dlopen call is in the dynlib module. For unbound executable, also 17251 # export symbols. 17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 17253$as_echo_n "checking for library containing dlopen... " >&6; } 17254if ${ac_cv_search_dlopen+:} false; then : 17255 $as_echo_n "(cached) " >&6 17256else 17257 ac_func_search_save_LIBS=$LIBS 17258cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17259/* end confdefs.h. */ 17260 17261/* Override any GCC internal prototype to avoid an error. 17262 Use char because int might match the return type of a GCC 17263 builtin and then its argument prototype would still apply. */ 17264#ifdef __cplusplus 17265extern "C" 17266#endif 17267char dlopen (); 17268int 17269main () 17270{ 17271return dlopen (); 17272 ; 17273 return 0; 17274} 17275_ACEOF 17276for ac_lib in '' dl; do 17277 if test -z "$ac_lib"; then 17278 ac_res="none required" 17279 else 17280 ac_res=-l$ac_lib 17281 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17282 fi 17283 if ac_fn_c_try_link "$LINENO"; then : 17284 ac_cv_search_dlopen=$ac_res 17285fi 17286rm -f core conftest.err conftest.$ac_objext \ 17287 conftest$ac_exeext 17288 if ${ac_cv_search_dlopen+:} false; then : 17289 break 17290fi 17291done 17292if ${ac_cv_search_dlopen+:} false; then : 17293 17294else 17295 ac_cv_search_dlopen=no 17296fi 17297rm conftest.$ac_ext 17298LIBS=$ac_func_search_save_LIBS 17299fi 17300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 17301$as_echo "$ac_cv_search_dlopen" >&6; } 17302ac_res=$ac_cv_search_dlopen 17303if test "$ac_res" != no; then : 17304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17305 17306fi 17307 17308 DYNLIBMOD_EXTRALIBS="-export-dynamic" 17309 else 17310 DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a" 17311 fi 17312 17313fi 17314 17315# Check for PyUnbound 17316 17317# Check whether --with-pyunbound was given. 17318if test "${with_pyunbound+set}" = set; then : 17319 withval=$with_pyunbound; 17320else 17321 withval="no" 17322fi 17323 17324 17325ub_test_python=no 17326ub_with_pyunbound=no 17327if test x_$withval != x_no; then 17328 ub_with_pyunbound=yes 17329 ub_test_python=yes 17330fi 17331 17332# Check for Python module 17333 17334# Check whether --with-pythonmodule was given. 17335if test "${with_pythonmodule+set}" = set; then : 17336 withval=$with_pythonmodule; 17337else 17338 withval="no" 17339fi 17340 17341 17342ub_with_pythonmod=no 17343if test x_$withval != x_no; then 17344 ub_with_pythonmod=yes 17345 ub_test_python=yes 17346fi 17347 17348# Check for Python & SWIG only on PyUnbound or PyModule 17349if test x_$ub_test_python != x_no; then 17350 17351 # Check for Python 17352 ub_have_python=no 17353 ac_save_LIBS="$LIBS" 17354 # 17355 # Allow the use of a (user set) custom python version 17356 # 17357 17358 17359 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 17360set dummy python$PYTHON_VERSION; ac_word=$2 17361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17362$as_echo_n "checking for $ac_word... " >&6; } 17363if ${ac_cv_path_PYTHON+:} false; then : 17364 $as_echo_n "(cached) " >&6 17365else 17366 case $PYTHON in 17367 [\\/]* | ?:[\\/]*) 17368 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 17369 ;; 17370 *) 17371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17372for as_dir in $PATH 17373do 17374 IFS=$as_save_IFS 17375 test -z "$as_dir" && as_dir=. 17376 for ac_exec_ext in '' $ac_executable_extensions; do 17377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17378 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 17379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17380 break 2 17381 fi 17382done 17383 done 17384IFS=$as_save_IFS 17385 17386 ;; 17387esac 17388fi 17389PYTHON=$ac_cv_path_PYTHON 17390if test -n "$PYTHON"; then 17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 17392$as_echo "$PYTHON" >&6; } 17393else 17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17395$as_echo "no" >&6; } 17396fi 17397 17398 17399 if test -z "$PYTHON"; then 17400 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 17401 PYTHON_VERSION="" 17402 fi 17403 17404 if test -z "$PYTHON_VERSION"; then 17405 PYTHON_VERSION=`$PYTHON -c "import sys; \ 17406 print(sys.version.split()[0])"` 17407 fi 17408 17409 # 17410 # Check if you have distutils, else fail 17411 # 17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 17413$as_echo_n "checking for the distutils Python package... " >&6; } 17414 if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then 17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17416$as_echo "yes" >&6; } 17417 else 17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17419$as_echo "no" >&6; } 17420 as_fn_error $? "cannot import Python module \"distutils\". 17421Please check your Python installation. The error was: 17422$ac_distutils_result" "$LINENO" 5 17423 PYTHON_VERSION="" 17424 fi 17425 17426 # 17427 # Check for Python include path 17428 # 17429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 17430$as_echo_n "checking for Python include path... " >&6; } 17431 if test -z "$PYTHON_CPPFLAGS"; then 17432 python_path=`$PYTHON -c "import distutils.sysconfig; \ 17433 print(distutils.sysconfig.get_python_inc());"` 17434 if test -n "${python_path}"; then 17435 python_path="-I$python_path" 17436 fi 17437 PYTHON_CPPFLAGS=$python_path 17438 fi 17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 17440$as_echo "$PYTHON_CPPFLAGS" >&6; } 17441 17442 17443 # 17444 # Check for Python library path 17445 # 17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 17447$as_echo_n "checking for Python library path... " >&6; } 17448 if test -z "$PYTHON_LDFLAGS"; then 17449 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \ 17450 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"` 17451 fi 17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 17453$as_echo "$PYTHON_LDFLAGS" >&6; } 17454 17455 17456 if test -z "$PYTHON_LIBDIR"; then 17457 PYTHON_LIBDIR=`$PYTHON -c "from distutils.sysconfig import *; \ 17458 print(get_config_var('LIBDIR'));"` 17459 fi 17460 17461 # 17462 # Check for site packages 17463 # 17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 17465$as_echo_n "checking for Python site-packages path... " >&6; } 17466 if test -z "$PYTHON_SITE_PKG"; then 17467 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 17468 print(distutils.sysconfig.get_python_lib(1,0));"` 17469 fi 17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 17471$as_echo "$PYTHON_SITE_PKG" >&6; } 17472 17473 17474 # 17475 # final check to see if everything compiles alright 17476 # 17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 17478$as_echo_n "checking consistency of all components of python development environment... " >&6; } 17479 ac_ext=c 17480ac_cpp='$CPP $CPPFLAGS' 17481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17483ac_compiler_gnu=$ac_cv_c_compiler_gnu 17484 17485 # save current global flags 17486 ac_save_LIBS="$LIBS" 17487 ac_save_CPPFLAGS="$CPPFLAGS" 17488 17489 LIBS="$LIBS $PYTHON_LDFLAGS" 17490 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 17491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17492/* end confdefs.h. */ 17493 17494 #include <Python.h> 17495 17496int 17497main () 17498{ 17499 17500 Py_Initialize(); 17501 17502 ; 17503 return 0; 17504} 17505_ACEOF 17506if ac_fn_c_try_link "$LINENO"; then : 17507 pythonexists=yes 17508else 17509 pythonexists=no 17510fi 17511rm -f core conftest.err conftest.$ac_objext \ 17512 conftest$ac_exeext conftest.$ac_ext 17513 17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 17515$as_echo "$pythonexists" >&6; } 17516 17517 if test ! "$pythonexists" = "yes"; then 17518 as_fn_error $? " 17519 Could not link test program to Python. Maybe the main Python library has been 17520 installed in some non-standard library path. If so, pass it to configure, 17521 via the LDFLAGS environment variable. 17522 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 17523 ============================================================================ 17524 ERROR! 17525 You probably have to install the development version of the Python package 17526 for your distribution. The exact name of this package varies among them. 17527 ============================================================================ 17528 " "$LINENO" 5 17529 PYTHON_VERSION="" 17530 fi 17531 ac_ext=c 17532ac_cpp='$CPP $CPPFLAGS' 17533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17535ac_compiler_gnu=$ac_cv_c_compiler_gnu 17536 17537 # turn back to default flags 17538 CPPFLAGS="$ac_save_CPPFLAGS" 17539 LIBS="$ac_save_LIBS" 17540 17541 # 17542 # all done! 17543 # 17544 17545 if test ! -z "$PYTHON_VERSION"; then 17546 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then 17547 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5 17548 fi 17549 17550 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`" 17551 17552 # Have Python 17553 17554$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 17555 17556 if test -n "$LIBS"; then 17557 LIBS="$PYTHON_LDFLAGS $LIBS" 17558 else 17559 LIBS="$PYTHON_LDFLAGS" 17560 fi 17561 if test -n "$CPPFLAGS"; then 17562 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 17563 else 17564 CPPFLAGS="$PYTHON_CPPFLAGS" 17565 fi 17566 if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then 17567 17568 if test "x$enable_rpath" = xyes; then 17569 if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then 17570 RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR" 17571 fi 17572 fi 17573 17574 fi 17575 ub_have_python=yes 17576 if test -n "$PKG_CONFIG" && \ 17577 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5 17578 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5 17579 ac_status=$? 17580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17581 test $ac_status = 0; }; then 17582 PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}" 17583else 17584 PC_PY_DEPENDENCY="python" 17585fi 17586 17587 17588 # Check for SWIG 17589 ub_have_swig=no 17590 # Check whether --enable-swig-version-check was given. 17591if test "${enable_swig_version_check+set}" = set; then : 17592 enableval=$enable_swig_version_check; 17593fi 17594 17595 if test "$enable_swig_version_check" = "yes"; then 17596 17597 # Extract the first word of "swig", so it can be a program name with args. 17598set dummy swig; ac_word=$2 17599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17600$as_echo_n "checking for $ac_word... " >&6; } 17601if ${ac_cv_path_SWIG+:} false; then : 17602 $as_echo_n "(cached) " >&6 17603else 17604 case $SWIG in 17605 [\\/]* | ?:[\\/]*) 17606 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 17607 ;; 17608 *) 17609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17610for as_dir in $PATH 17611do 17612 IFS=$as_save_IFS 17613 test -z "$as_dir" && as_dir=. 17614 for ac_exec_ext in '' $ac_executable_extensions; do 17615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17616 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 17617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17618 break 2 17619 fi 17620done 17621 done 17622IFS=$as_save_IFS 17623 17624 ;; 17625esac 17626fi 17627SWIG=$ac_cv_path_SWIG 17628if test -n "$SWIG"; then 17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 17630$as_echo "$SWIG" >&6; } 17631else 17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17633$as_echo "no" >&6; } 17634fi 17635 17636 17637 if test -z "$SWIG" ; then 17638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 17639$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 17640 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 17641 elif test -n "2.0.1" ; then 17642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 17643$as_echo_n "checking for SWIG version... " >&6; } 17644 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` 17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 17646$as_echo "$swig_version" >&6; } 17647 if test -n "$swig_version" ; then 17648 # Calculate the required version number components 17649 required=2.0.1 17650 required_major=`echo $required | sed 's/[^0-9].*//'` 17651 if test -z "$required_major" ; then 17652 required_major=0 17653 fi 17654 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17655 required_minor=`echo $required | sed 's/[^0-9].*//'` 17656 if test -z "$required_minor" ; then 17657 required_minor=0 17658 fi 17659 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17660 required_patch=`echo $required | sed 's/[^0-9].*//'` 17661 if test -z "$required_patch" ; then 17662 required_patch=0 17663 fi 17664 # Calculate the available version number components 17665 available=$swig_version 17666 available_major=`echo $available | sed 's/[^0-9].*//'` 17667 if test -z "$available_major" ; then 17668 available_major=0 17669 fi 17670 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17671 available_minor=`echo $available | sed 's/[^0-9].*//'` 17672 if test -z "$available_minor" ; then 17673 available_minor=0 17674 fi 17675 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17676 available_patch=`echo $available | sed 's/[^0-9].*//'` 17677 if test -z "$available_patch" ; then 17678 available_patch=0 17679 fi 17680 badversion=0 17681 if test $available_major -lt $required_major ; then 17682 badversion=1 17683 fi 17684 if test $available_major -eq $required_major \ 17685 -a $available_minor -lt $required_minor ; then 17686 badversion=1 17687 fi 17688 if test $available_major -eq $required_major \ 17689 -a $available_minor -eq $required_minor \ 17690 -a $available_patch -lt $required_patch ; then 17691 badversion=1 17692 fi 17693 if test $badversion -eq 1 ; then 17694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version. You should look at http://www.swig.org" >&5 17695$as_echo "$as_me: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 17696 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 17697 else 17698 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 17699$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 17700 SWIG_LIB=`$SWIG -swiglib` 17701 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 17702$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 17703 fi 17704 else 17705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 17706$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 17707 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 17708 fi 17709 fi 17710 17711 17712 else 17713 17714 # Extract the first word of "swig", so it can be a program name with args. 17715set dummy swig; ac_word=$2 17716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17717$as_echo_n "checking for $ac_word... " >&6; } 17718if ${ac_cv_path_SWIG+:} false; then : 17719 $as_echo_n "(cached) " >&6 17720else 17721 case $SWIG in 17722 [\\/]* | ?:[\\/]*) 17723 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 17724 ;; 17725 *) 17726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17727for as_dir in $PATH 17728do 17729 IFS=$as_save_IFS 17730 test -z "$as_dir" && as_dir=. 17731 for ac_exec_ext in '' $ac_executable_extensions; do 17732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17733 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 17734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17735 break 2 17736 fi 17737done 17738 done 17739IFS=$as_save_IFS 17740 17741 ;; 17742esac 17743fi 17744SWIG=$ac_cv_path_SWIG 17745if test -n "$SWIG"; then 17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 17747$as_echo "$SWIG" >&6; } 17748else 17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17750$as_echo "no" >&6; } 17751fi 17752 17753 17754 if test -z "$SWIG" ; then 17755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 17756$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 17757 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 17758 elif test -n "" ; then 17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 17760$as_echo_n "checking for SWIG version... " >&6; } 17761 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` 17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 17763$as_echo "$swig_version" >&6; } 17764 if test -n "$swig_version" ; then 17765 # Calculate the required version number components 17766 required= 17767 required_major=`echo $required | sed 's/[^0-9].*//'` 17768 if test -z "$required_major" ; then 17769 required_major=0 17770 fi 17771 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17772 required_minor=`echo $required | sed 's/[^0-9].*//'` 17773 if test -z "$required_minor" ; then 17774 required_minor=0 17775 fi 17776 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17777 required_patch=`echo $required | sed 's/[^0-9].*//'` 17778 if test -z "$required_patch" ; then 17779 required_patch=0 17780 fi 17781 # Calculate the available version number components 17782 available=$swig_version 17783 available_major=`echo $available | sed 's/[^0-9].*//'` 17784 if test -z "$available_major" ; then 17785 available_major=0 17786 fi 17787 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17788 available_minor=`echo $available | sed 's/[^0-9].*//'` 17789 if test -z "$available_minor" ; then 17790 available_minor=0 17791 fi 17792 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17793 available_patch=`echo $available | sed 's/[^0-9].*//'` 17794 if test -z "$available_patch" ; then 17795 available_patch=0 17796 fi 17797 badversion=0 17798 if test $available_major -lt $required_major ; then 17799 badversion=1 17800 fi 17801 if test $available_major -eq $required_major \ 17802 -a $available_minor -lt $required_minor ; then 17803 badversion=1 17804 fi 17805 if test $available_major -eq $required_major \ 17806 -a $available_minor -eq $required_minor \ 17807 -a $available_patch -lt $required_patch ; then 17808 badversion=1 17809 fi 17810 if test $badversion -eq 1 ; then 17811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&5 17812$as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 17813 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 17814 else 17815 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 17816$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 17817 SWIG_LIB=`$SWIG -swiglib` 17818 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 17819$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 17820 fi 17821 else 17822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 17823$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 17824 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 17825 fi 17826 fi 17827 17828 17829 fi 17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5 17831$as_echo_n "checking SWIG... " >&6; } 17832 if test ! -x "$SWIG"; then 17833 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5 17834 else 17835 17836$as_echo "#define HAVE_SWIG 1" >>confdefs.h 17837 17838 swig="$SWIG" 17839 17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 17841$as_echo "present" >&6; } 17842 17843 # If have Python & SWIG 17844 # Declare PythonMod 17845 if test x_$ub_with_pythonmod != x_no; then 17846 17847$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h 17848 17849 WITH_PYTHONMODULE=yes 17850 17851 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo" 17852 17853 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h' 17854 17855 PYTHONMOD_INSTALL=pythonmod-install 17856 17857 PYTHONMOD_UNINSTALL=pythonmod-uninstall 17858 17859 fi 17860 17861 # Declare PyUnbound 17862 if test x_$ub_with_pyunbound != x_no; then 17863 17864$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h 17865 17866 WITH_PYUNBOUND=yes 17867 17868 PYUNBOUND_OBJ="libunbound_wrap.lo" 17869 17870 PYUNBOUND_TARGET="_unbound.la" 17871 17872 PYUNBOUND_INSTALL=pyunbound-install 17873 17874 PYUNBOUND_UNINSTALL=pyunbound-uninstall 17875 17876 fi 17877 fi 17878 else 17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5 17880$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; } 17881 ub_with_pyunbound=no 17882 ub_with_pythonmod=no 17883 fi 17884fi 17885 17886if test "`uname`" = "NetBSD"; then 17887 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_' 17888 17889fi 17890CONFIG_DATE=`date +%Y%m%d` 17891 17892 17893# Checks for libraries. 17894 17895# libnss 17896USE_NSS="no" 17897 17898# Check whether --with-nss was given. 17899if test "${with_nss+set}" = set; then : 17900 withval=$with_nss; 17901 USE_NSS="yes" 17902 17903$as_echo "#define HAVE_NSS 1" >>confdefs.h 17904 17905 if test "$withval" != "" -a "$withval" != "yes"; then 17906 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3" 17907 LDFLAGS="$LDFLAGS -L$withval/lib" 17908 17909 if test "x$enable_rpath" = xyes; then 17910 if echo "$withval/lib" | grep "^/" >/dev/null; then 17911 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 17912 fi 17913 fi 17914 17915 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" 17916 else 17917 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" 17918 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" 17919 fi 17920 LIBS="$LIBS -lnss3 -lnspr4" 17921 SSLLIB="" 17922 PC_CRYPTO_DEPENDENCY="nss nspr" 17923 17924 17925 17926fi 17927 17928 17929# libnettle 17930USE_NETTLE="no" 17931 17932# Check whether --with-nettle was given. 17933if test "${with_nettle+set}" = set; then : 17934 withval=$with_nettle; 17935 USE_NETTLE="yes" 17936 17937$as_echo "#define HAVE_NETTLE 1" >>confdefs.h 17938 17939 for ac_header in nettle/dsa-compat.h 17940do : 17941 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default 17942" 17943if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then : 17944 cat >>confdefs.h <<_ACEOF 17945#define HAVE_NETTLE_DSA_COMPAT_H 1 17946_ACEOF 17947 17948fi 17949 17950done 17951 17952 if test "$withval" != "" -a "$withval" != "yes"; then 17953 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle" 17954 LDFLAGS="$LDFLAGS -L$withval/lib" 17955 17956 if test "x$enable_rpath" = xyes; then 17957 if echo "$withval/lib" | grep "^/" >/dev/null; then 17958 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 17959 fi 17960 fi 17961 17962 else 17963 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle" 17964 fi 17965 LIBS="$LIBS -lhogweed -lnettle -lgmp" 17966 SSLLIB="" 17967 PC_CRYPTO_DEPENDENCY="hogweed nettle" 17968 17969 17970 17971fi 17972 17973 17974# openssl 17975if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 17976 17977 17978# Check whether --with-ssl was given. 17979if test "${with_ssl+set}" = set; then : 17980 withval=$with_ssl; 17981 17982else 17983 17984 withval="yes" 17985 17986fi 17987 17988 if test x_$withval = x_no; then 17989 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5 17990 fi 17991 17992 withval=$withval 17993 if test x_$withval != x_no; then 17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 17995$as_echo_n "checking for SSL... " >&6; } 17996 if test x_$withval = x_ -o x_$withval = x_yes; then 17997 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 17998 fi 17999 for dir in $withval; do 18000 ssldir="$dir" 18001 if test -f "$dir/include/openssl/ssl.h"; then 18002 found_ssl="yes" 18003 18004cat >>confdefs.h <<_ACEOF 18005#define HAVE_SSL /**/ 18006_ACEOF 18007 18008 if test "$ssldir" != "/usr"; then 18009 CPPFLAGS="$CPPFLAGS -I$ssldir/include" 18010 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include" 18011 fi 18012 break; 18013 fi 18014 done 18015 if test x_$found_ssl != x_yes; then 18016 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 18017 else 18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 18019$as_echo "found in $ssldir" >&6; } 18020 HAVE_SSL=yes 18021 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then 18022 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then 18023 LDFLAGS="$LDFLAGS -L$ssldir/lib64" 18024 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib64" 18025 18026 if test "x$enable_rpath" = xyes; then 18027 if echo "$ssldir/lib64" | grep "^/" >/dev/null; then 18028 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib64" 18029 fi 18030 fi 18031 18032 else 18033 LDFLAGS="$LDFLAGS -L$ssldir/lib" 18034 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib" 18035 18036 if test "x$enable_rpath" = xyes; then 18037 if echo "$ssldir/lib" | grep "^/" >/dev/null; then 18038 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib" 18039 fi 18040 fi 18041 18042 fi 18043 fi 18044 18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5 18046$as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; } 18047 LIBS="$LIBS -lcrypto" 18048 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 18049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18050/* end confdefs.h. */ 18051 18052int 18053main () 18054{ 18055 18056 int EVP_sha256(void); 18057 (void)EVP_sha256(); 18058 18059 ; 18060 return 0; 18061} 18062_ACEOF 18063if ac_fn_c_try_link "$LINENO"; then : 18064 18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18066$as_echo "yes" >&6; } 18067 18068$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 18069 18070 18071else 18072 18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18074$as_echo "no" >&6; } 18075 # check if -lwsock32 or -lgdi32 are needed. 18076 BAKLIBS="$LIBS" 18077 BAKSSLLIBS="$LIBSSL_LIBS" 18078 LIBS="$LIBS -lgdi32 -lws2_32" 18079 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32" 18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 18081$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; } 18082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18083/* end confdefs.h. */ 18084 18085int 18086main () 18087{ 18088 18089 int EVP_sha256(void); 18090 (void)EVP_sha256(); 18091 18092 ; 18093 return 0; 18094} 18095_ACEOF 18096if ac_fn_c_try_link "$LINENO"; then : 18097 18098 18099$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 18100 18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18102$as_echo "yes" >&6; } 18103 18104else 18105 18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18107$as_echo "no" >&6; } 18108 LIBS="$BAKLIBS" 18109 LIBSSL_LIBS="$BAKSSLLIBS" 18110 LIBS="$LIBS -ldl" 18111 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 18113$as_echo_n "checking if -lcrypto needs -ldl... " >&6; } 18114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18115/* end confdefs.h. */ 18116 18117int 18118main () 18119{ 18120 18121 int EVP_sha256(void); 18122 (void)EVP_sha256(); 18123 18124 ; 18125 return 0; 18126} 18127_ACEOF 18128if ac_fn_c_try_link "$LINENO"; then : 18129 18130 18131$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 18132 18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18134$as_echo "yes" >&6; } 18135 18136else 18137 18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18139$as_echo "no" >&6; } 18140 LIBS="$BAKLIBS" 18141 LIBSSL_LIBS="$BAKSSLLIBS" 18142 LIBS="$LIBS -ldl -pthread" 18143 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread" 18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5 18145$as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; } 18146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18147/* end confdefs.h. */ 18148 18149int 18150main () 18151{ 18152 18153 int EVP_sha256(void); 18154 (void)EVP_sha256(); 18155 18156 ; 18157 return 0; 18158} 18159_ACEOF 18160if ac_fn_c_try_link "$LINENO"; then : 18161 18162 18163$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 18164 18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18166$as_echo "yes" >&6; } 18167 18168else 18169 18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18171$as_echo "no" >&6; } 18172 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 18173 18174fi 18175rm -f core conftest.err conftest.$ac_objext \ 18176 conftest$ac_exeext conftest.$ac_ext 18177 18178fi 18179rm -f core conftest.err conftest.$ac_objext \ 18180 conftest$ac_exeext conftest.$ac_ext 18181 18182fi 18183rm -f core conftest.err conftest.$ac_objext \ 18184 conftest$ac_exeext conftest.$ac_ext 18185 18186fi 18187rm -f core conftest.err conftest.$ac_objext \ 18188 conftest$ac_exeext conftest.$ac_ext 18189 fi 18190 18191 18192 fi 18193for ac_header in openssl/ssl.h 18194do : 18195 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 18196" 18197if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 18198 cat >>confdefs.h <<_ACEOF 18199#define HAVE_OPENSSL_SSL_H 1 18200_ACEOF 18201 18202fi 18203 18204done 18205 18206for ac_header in openssl/err.h 18207do : 18208 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 18209" 18210if test "x$ac_cv_header_openssl_err_h" = xyes; then : 18211 cat >>confdefs.h <<_ACEOF 18212#define HAVE_OPENSSL_ERR_H 1 18213_ACEOF 18214 18215fi 18216 18217done 18218 18219for ac_header in openssl/rand.h 18220do : 18221 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 18222" 18223if test "x$ac_cv_header_openssl_rand_h" = xyes; then : 18224 cat >>confdefs.h <<_ACEOF 18225#define HAVE_OPENSSL_RAND_H 1 18226_ACEOF 18227 18228fi 18229 18230done 18231 18232 18233 18234 18235# check if libssl needs libdl 18236BAKLIBS="$LIBS" 18237LIBS="-lssl $LIBS" 18238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 18239$as_echo_n "checking if libssl needs libdl... " >&6; } 18240cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18241/* end confdefs.h. */ 18242 18243/* Override any GCC internal prototype to avoid an error. 18244 Use char because int might match the return type of a GCC 18245 builtin and then its argument prototype would still apply. */ 18246#ifdef __cplusplus 18247extern "C" 18248#endif 18249char SSL_CTX_new (); 18250int 18251main () 18252{ 18253return SSL_CTX_new (); 18254 ; 18255 return 0; 18256} 18257_ACEOF 18258if ac_fn_c_try_link "$LINENO"; then : 18259 18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18261$as_echo "no" >&6; } 18262 LIBS="$BAKLIBS" 18263 18264else 18265 18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18267$as_echo "yes" >&6; } 18268 LIBS="$BAKLIBS" 18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 18270$as_echo_n "checking for library containing dlopen... " >&6; } 18271if ${ac_cv_search_dlopen+:} false; then : 18272 $as_echo_n "(cached) " >&6 18273else 18274 ac_func_search_save_LIBS=$LIBS 18275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18276/* end confdefs.h. */ 18277 18278/* Override any GCC internal prototype to avoid an error. 18279 Use char because int might match the return type of a GCC 18280 builtin and then its argument prototype would still apply. */ 18281#ifdef __cplusplus 18282extern "C" 18283#endif 18284char dlopen (); 18285int 18286main () 18287{ 18288return dlopen (); 18289 ; 18290 return 0; 18291} 18292_ACEOF 18293for ac_lib in '' dl; do 18294 if test -z "$ac_lib"; then 18295 ac_res="none required" 18296 else 18297 ac_res=-l$ac_lib 18298 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18299 fi 18300 if ac_fn_c_try_link "$LINENO"; then : 18301 ac_cv_search_dlopen=$ac_res 18302fi 18303rm -f core conftest.err conftest.$ac_objext \ 18304 conftest$ac_exeext 18305 if ${ac_cv_search_dlopen+:} false; then : 18306 break 18307fi 18308done 18309if ${ac_cv_search_dlopen+:} false; then : 18310 18311else 18312 ac_cv_search_dlopen=no 18313fi 18314rm conftest.$ac_ext 18315LIBS=$ac_func_search_save_LIBS 18316fi 18317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 18318$as_echo "$ac_cv_search_dlopen" >&6; } 18319ac_res=$ac_cv_search_dlopen 18320if test "$ac_res" != no; then : 18321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18322 18323fi 18324 18325 18326fi 18327rm -f core conftest.err conftest.$ac_objext \ 18328 conftest$ac_exeext conftest.$ac_ext 18329SSLLIB="-lssl" 18330 18331PC_CRYPTO_DEPENDENCY="libcrypto libssl" 18332 18333 18334# check if -lcrypt32 is needed because CAPIENG needs that. (on windows) 18335BAKLIBS="$LIBS" 18336LIBS="-lssl $LIBS" 18337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5 18338$as_echo_n "checking if libssl needs -lcrypt32... " >&6; } 18339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18340/* end confdefs.h. */ 18341 18342int 18343main () 18344{ 18345 18346 int EVP_sha256(void); 18347 (void)EVP_sha256(); 18348 18349 ; 18350 return 0; 18351} 18352_ACEOF 18353if ac_fn_c_try_link "$LINENO"; then : 18354 18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18356$as_echo "no" >&6; } 18357 LIBS="$BAKLIBS" 18358 18359else 18360 18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18362$as_echo "yes" >&6; } 18363 LIBS="$BAKLIBS" 18364 LIBS="$LIBS -lcrypt32" 18365 18366fi 18367rm -f core conftest.err conftest.$ac_objext \ 18368 conftest$ac_exeext conftest.$ac_ext 18369 18370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5 18371$as_echo_n "checking for LibreSSL... " >&6; } 18372if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then 18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18374$as_echo "yes" >&6; } 18375 18376$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h 18377 18378 # libressl provides these compat functions, but they may also be 18379 # declared by the OS in libc. See if they have been declared. 18380 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" 18381if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 18382 ac_have_decl=1 18383else 18384 ac_have_decl=0 18385fi 18386 18387cat >>confdefs.h <<_ACEOF 18388#define HAVE_DECL_STRLCPY $ac_have_decl 18389_ACEOF 18390ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" 18391if test "x$ac_cv_have_decl_strlcat" = xyes; then : 18392 ac_have_decl=1 18393else 18394 ac_have_decl=0 18395fi 18396 18397cat >>confdefs.h <<_ACEOF 18398#define HAVE_DECL_STRLCAT $ac_have_decl 18399_ACEOF 18400ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default" 18401if test "x$ac_cv_have_decl_arc4random" = xyes; then : 18402 ac_have_decl=1 18403else 18404 ac_have_decl=0 18405fi 18406 18407cat >>confdefs.h <<_ACEOF 18408#define HAVE_DECL_ARC4RANDOM $ac_have_decl 18409_ACEOF 18410ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default" 18411if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then : 18412 ac_have_decl=1 18413else 18414 ac_have_decl=0 18415fi 18416 18417cat >>confdefs.h <<_ACEOF 18418#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl 18419_ACEOF 18420 18421else 18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18423$as_echo "no" >&6; } 18424fi 18425for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h openssl/core_names.h openssl/param_build.h 18426do : 18427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18428ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 18429" 18430if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18431 cat >>confdefs.h <<_ACEOF 18432#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18433_ACEOF 18434 18435fi 18436 18437done 18438 18439for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ENGINE_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify EVP_aes_256_cbc EVP_EncryptInit_ex HMAC_Init_ex CRYPTO_THREADID_set_callback EVP_MAC_CTX_set_params OSSL_PARAM_BLD_new 18440do : 18441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18442ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18443if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18444 cat >>confdefs.h <<_ACEOF 18445#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18446_ACEOF 18447 18448fi 18449done 18450 18451 18452# these check_funcs need -lssl 18453BAKLIBS="$LIBS" 18454LIBS="-lssl $LIBS" 18455for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level SSL_set1_host SSL_get0_peername X509_VERIFY_PARAM_set1_host SSL_CTX_set_ciphersuites SSL_CTX_set_tlsext_ticket_key_evp_cb SSL_CTX_set_alpn_select_cb SSL_get0_alpn_selected SSL_CTX_set_alpn_protos SSL_get1_peer_certificate 18456do : 18457 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18458ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18459if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18460 cat >>confdefs.h <<_ACEOF 18461#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18462_ACEOF 18463 18464fi 18465done 18466 18467LIBS="$BAKLIBS" 18468 18469ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" " 18470$ac_includes_default 18471#ifdef HAVE_OPENSSL_ERR_H 18472#include <openssl/err.h> 18473#endif 18474 18475#ifdef HAVE_OPENSSL_RAND_H 18476#include <openssl/rand.h> 18477#endif 18478 18479#ifdef HAVE_OPENSSL_CONF_H 18480#include <openssl/conf.h> 18481#endif 18482 18483#ifdef HAVE_OPENSSL_ENGINE_H 18484#include <openssl/engine.h> 18485#endif 18486#include <openssl/ssl.h> 18487#include <openssl/evp.h> 18488 18489" 18490if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then : 18491 ac_have_decl=1 18492else 18493 ac_have_decl=0 18494fi 18495 18496cat >>confdefs.h <<_ACEOF 18497#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl 18498_ACEOF 18499ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" " 18500$ac_includes_default 18501#ifdef HAVE_OPENSSL_ERR_H 18502#include <openssl/err.h> 18503#endif 18504 18505#ifdef HAVE_OPENSSL_RAND_H 18506#include <openssl/rand.h> 18507#endif 18508 18509#ifdef HAVE_OPENSSL_CONF_H 18510#include <openssl/conf.h> 18511#endif 18512 18513#ifdef HAVE_OPENSSL_ENGINE_H 18514#include <openssl/engine.h> 18515#endif 18516#include <openssl/ssl.h> 18517#include <openssl/evp.h> 18518 18519" 18520if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then : 18521 ac_have_decl=1 18522else 18523 ac_have_decl=0 18524fi 18525 18526cat >>confdefs.h <<_ACEOF 18527#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl 18528_ACEOF 18529ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" " 18530$ac_includes_default 18531#ifdef HAVE_OPENSSL_ERR_H 18532#include <openssl/err.h> 18533#endif 18534 18535#ifdef HAVE_OPENSSL_RAND_H 18536#include <openssl/rand.h> 18537#endif 18538 18539#ifdef HAVE_OPENSSL_CONF_H 18540#include <openssl/conf.h> 18541#endif 18542 18543#ifdef HAVE_OPENSSL_ENGINE_H 18544#include <openssl/engine.h> 18545#endif 18546#include <openssl/ssl.h> 18547#include <openssl/evp.h> 18548 18549" 18550if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then : 18551 ac_have_decl=1 18552else 18553 ac_have_decl=0 18554fi 18555 18556cat >>confdefs.h <<_ACEOF 18557#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl 18558_ACEOF 18559 18560 18561if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then 18562# check function return type. 18563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5 18564$as_echo_n "checking the return type of HMAC_Init_ex... " >&6; } 18565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18566/* end confdefs.h. */ 18567 18568#ifdef HAVE_OPENSSL_ERR_H 18569#include <openssl/err.h> 18570#endif 18571 18572#ifdef HAVE_OPENSSL_RAND_H 18573#include <openssl/rand.h> 18574#endif 18575 18576#ifdef HAVE_OPENSSL_CONF_H 18577#include <openssl/conf.h> 18578#endif 18579 18580#ifdef HAVE_OPENSSL_ENGINE_H 18581#include <openssl/engine.h> 18582#endif 18583#include <openssl/ssl.h> 18584#include <openssl/evp.h> 18585 18586int 18587main () 18588{ 18589 18590 HMAC_CTX* hmac_ctx = NULL; 18591 void* hmac_key = NULL; 18592 const EVP_MD* digest = NULL; 18593 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL); 18594 (void)x; 18595 18596 ; 18597 return 0; 18598} 18599_ACEOF 18600if ac_fn_c_try_compile "$LINENO"; then : 18601 18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 18603$as_echo "int" >&6; } 18604 18605else 18606 18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5 18608$as_echo "void" >&6; } 18609 18610$as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h 18611 18612 18613fi 18614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18615fi 18616 18617fi 18618 18619 18620# libbsd 18621 18622# Check whether --with-libbsd was given. 18623if test "${with_libbsd+set}" = set; then : 18624 withval=$with_libbsd; 18625 for ac_header in bsd/string.h bsd/stdlib.h 18626do : 18627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18628ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 18629" 18630if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18631 cat >>confdefs.h <<_ACEOF 18632#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18633_ACEOF 18634 18635fi 18636 18637done 18638 18639 if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then 18640 for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do 18641 as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh` 18642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5 18643$as_echo_n "checking for library containing $func... " >&6; } 18644if eval \${$as_ac_Search+:} false; then : 18645 $as_echo_n "(cached) " >&6 18646else 18647 ac_func_search_save_LIBS=$LIBS 18648cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18649/* end confdefs.h. */ 18650 18651/* Override any GCC internal prototype to avoid an error. 18652 Use char because int might match the return type of a GCC 18653 builtin and then its argument prototype would still apply. */ 18654#ifdef __cplusplus 18655extern "C" 18656#endif 18657char $func (); 18658int 18659main () 18660{ 18661return $func (); 18662 ; 18663 return 0; 18664} 18665_ACEOF 18666for ac_lib in '' bsd; do 18667 if test -z "$ac_lib"; then 18668 ac_res="none required" 18669 else 18670 ac_res=-l$ac_lib 18671 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18672 fi 18673 if ac_fn_c_try_link "$LINENO"; then : 18674 eval "$as_ac_Search=\$ac_res" 18675fi 18676rm -f core conftest.err conftest.$ac_objext \ 18677 conftest$ac_exeext 18678 if eval \${$as_ac_Search+:} false; then : 18679 break 18680fi 18681done 18682if eval \${$as_ac_Search+:} false; then : 18683 18684else 18685 eval "$as_ac_Search=no" 18686fi 18687rm conftest.$ac_ext 18688LIBS=$ac_func_search_save_LIBS 18689fi 18690eval ac_res=\$$as_ac_Search 18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18692$as_echo "$ac_res" >&6; } 18693eval ac_res=\$$as_ac_Search 18694if test "$ac_res" != no; then : 18695 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18696 18697 18698$as_echo "#define HAVE_LIBBSD 1" >>confdefs.h 18699 18700 PC_LIBBSD_DEPENDENCY=libbsd 18701 18702 18703fi 18704 18705 done 18706 fi 18707 18708fi 18709 18710 18711# Check whether --enable-sha1 was given. 18712if test "${enable_sha1+set}" = set; then : 18713 enableval=$enable_sha1; 18714fi 18715 18716case "$enable_sha1" in 18717 no) 18718 ;; 18719 yes|*) 18720 18721$as_echo "#define USE_SHA1 1" >>confdefs.h 18722 18723 ;; 18724esac 18725 18726 18727# Check whether --enable-sha2 was given. 18728if test "${enable_sha2+set}" = set; then : 18729 enableval=$enable_sha2; 18730fi 18731 18732case "$enable_sha2" in 18733 no) 18734 ;; 18735 yes|*) 18736 18737$as_echo "#define USE_SHA2 1" >>confdefs.h 18738 18739 ;; 18740esac 18741 18742# Check whether --enable-subnet was given. 18743if test "${enable_subnet+set}" = set; then : 18744 enableval=$enable_subnet; 18745fi 18746 18747case "$enable_subnet" in 18748 yes) 18749 18750$as_echo "#define CLIENT_SUBNET 1" >>confdefs.h 18751 18752 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo" 18753 18754 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h' 18755 18756 ;; 18757 no|*) 18758 ;; 18759esac 18760 18761# check wether gost also works 18762 18763# Check whether --enable-gost was given. 18764if test "${enable_gost+set}" = set; then : 18765 enableval=$enable_gost; 18766fi 18767 18768use_gost="no" 18769if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 18770case "$enable_gost" in 18771 no) 18772 ;; 18773 *) 18774 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 18775if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then : 18776 : 18777else 18778 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5 18779fi 18780 18781 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 18782if test "x$ac_cv_func_EC_KEY_new" = xyes; then : 18783 18784else 18785 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5 18786fi 18787 18788 18789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 18790$as_echo_n "checking if GOST works... " >&6; } 18791if test c${cross_compiling} = cno; then 18792BAKCFLAGS="$CFLAGS" 18793if test -n "$ssldir"; then 18794 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib" 18795fi 18796if test "$cross_compiling" = yes; then : 18797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18799as_fn_error $? "cannot run test program while cross compiling 18800See \`config.log' for more details" "$LINENO" 5; } 18801else 18802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18803/* end confdefs.h. */ 18804 18805#include <string.h> 18806#include <openssl/ssl.h> 18807#include <openssl/evp.h> 18808#include <openssl/engine.h> 18809#include <openssl/conf.h> 18810/* routine to load gost (from sldns) */ 18811int load_gost_id(void) 18812{ 18813 static int gost_id = 0; 18814 const EVP_PKEY_ASN1_METHOD* meth; 18815 ENGINE* e; 18816 18817 if(gost_id) return gost_id; 18818 18819 /* see if configuration loaded gost implementation from other engine*/ 18820 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 18821 if(meth) { 18822 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 18823 return gost_id; 18824 } 18825 18826 /* see if engine can be loaded already */ 18827 e = ENGINE_by_id("gost"); 18828 if(!e) { 18829 /* load it ourself, in case statically linked */ 18830 ENGINE_load_builtin_engines(); 18831 ENGINE_load_dynamic(); 18832 e = ENGINE_by_id("gost"); 18833 } 18834 if(!e) { 18835 /* no gost engine in openssl */ 18836 return 0; 18837 } 18838 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 18839 ENGINE_finish(e); 18840 ENGINE_free(e); 18841 return 0; 18842 } 18843 18844 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 18845 if(!meth) { 18846 /* algo not found */ 18847 ENGINE_finish(e); 18848 ENGINE_free(e); 18849 return 0; 18850 } 18851 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 18852 return gost_id; 18853} 18854int main(void) { 18855 EVP_MD_CTX* ctx; 18856 const EVP_MD* md; 18857 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 18858 const char* str = "Hello world"; 18859 const unsigned char check[] = { 18860 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 18861 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 18862 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 18863 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 18864 }; 18865 OPENSSL_config(NULL); 18866 (void)load_gost_id(); 18867 md = EVP_get_digestbyname("md_gost94"); 18868 if(!md) return 1; 18869 memset(digest, 0, sizeof(digest)); 18870 ctx = EVP_MD_CTX_create(); 18871 if(!ctx) return 2; 18872 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 18873 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 18874 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 18875 /* uncomment to see the hash calculated. 18876 {int i; 18877 for(i=0; i<32; i++) 18878 printf(" %2.2x", (int)digest[i]); 18879 printf("\n");} 18880 */ 18881 if(memcmp(digest, check, sizeof(check)) != 0) 18882 return 6; 18883 return 0; 18884} 18885 18886_ACEOF 18887if ac_fn_c_try_run "$LINENO"; then : 18888 eval "ac_cv_c_gost_works=yes" 18889else 18890 eval "ac_cv_c_gost_works=no" 18891fi 18892rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18893 conftest.$ac_objext conftest.beam conftest.$ac_ext 18894fi 18895 18896CFLAGS="$BAKCFLAGS" 18897else 18898eval "ac_cv_c_gost_works=maybe" 18899fi 18900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5 18901$as_echo "$ac_cv_c_gost_works" >&6; } 18902 18903 if test "$ac_cv_c_gost_works" != no; then 18904 use_gost="yes" 18905 18906$as_echo "#define USE_GOST 1" >>confdefs.h 18907 18908 fi 18909 ;; 18910esac 18911fi 18912# Check whether --enable-ecdsa was given. 18913if test "${enable_ecdsa+set}" = set; then : 18914 enableval=$enable_ecdsa; 18915fi 18916 18917use_ecdsa="no" 18918case "$enable_ecdsa" in 18919 no) 18920 ;; 18921 *) 18922 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 18923 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 18924if test "x$ac_cv_func_ECDSA_sign" = xyes; then : 18925 18926else 18927 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18928fi 18929 18930 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 18931if test "x$ac_cv_func_SHA384_Init" = xyes; then : 18932 18933else 18934 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18935fi 18936 18937 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 18938#include <openssl/evp.h> 18939 18940" 18941if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then : 18942 ac_have_decl=1 18943else 18944 ac_have_decl=0 18945fi 18946 18947cat >>confdefs.h <<_ACEOF 18948#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl 18949_ACEOF 18950if test $ac_have_decl = 1; then : 18951 18952else 18953 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18954fi 18955ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 18956#include <openssl/evp.h> 18957 18958" 18959if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then : 18960 ac_have_decl=1 18961else 18962 ac_have_decl=0 18963fi 18964 18965cat >>confdefs.h <<_ACEOF 18966#define HAVE_DECL_NID_SECP384R1 $ac_have_decl 18967_ACEOF 18968if test $ac_have_decl = 1; then : 18969 18970else 18971 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18972fi 18973 18974 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency) 18975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5 18976$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; } 18977 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then 18978 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then 18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18980$as_echo "no" >&6; } 18981 18982cat >>confdefs.h <<_ACEOF 18983#define USE_ECDSA_EVP_WORKAROUND 1 18984_ACEOF 18985 18986 else 18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18988$as_echo "yes" >&6; } 18989 fi 18990 else 18991 # not OpenSSL, thus likely LibreSSL, which supports it 18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18993$as_echo "yes" >&6; } 18994 fi 18995 fi 18996 # we now know we have ECDSA and the required curves. 18997 18998cat >>confdefs.h <<_ACEOF 18999#define USE_ECDSA 1 19000_ACEOF 19001 19002 use_ecdsa="yes" 19003 ;; 19004esac 19005 19006# Check whether --enable-dsa was given. 19007if test "${enable_dsa+set}" = set; then : 19008 enableval=$enable_dsa; 19009fi 19010 19011use_dsa="no" 19012case "$enable_dsa" in 19013 yes) 19014 # detect if DSA is supported, and turn it off if not. 19015 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 19016 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new" 19017if test "x$ac_cv_func_DSA_SIG_new" = xyes; then : 19018 19019 as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh` 19020ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" " 19021$ac_includes_default 19022#ifdef HAVE_OPENSSL_ERR_H 19023#include <openssl/err.h> 19024#endif 19025 19026#ifdef HAVE_OPENSSL_RAND_H 19027#include <openssl/rand.h> 19028#endif 19029 19030#ifdef HAVE_OPENSSL_CONF_H 19031#include <openssl/conf.h> 19032#endif 19033 19034#ifdef HAVE_OPENSSL_ENGINE_H 19035#include <openssl/engine.h> 19036#endif 19037 19038" 19039if eval test \"x\$"$as_ac_Type"\" = x"yes"; then : 19040 19041 19042cat >>confdefs.h <<_ACEOF 19043#define USE_DSA 1 19044_ACEOF 19045 19046 19047else 19048 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 19049 fi 19050fi 19051 19052 19053else 19054 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 19055 fi 19056fi 19057 19058 else 19059 19060cat >>confdefs.h <<_ACEOF 19061#define USE_DSA 1 19062_ACEOF 19063 19064 fi 19065 ;; 19066 *) 19067 # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT 19068 # support DSA for DNSSEC Validation. 19069 ;; 19070esac 19071 19072 19073# Check whether --with-deprecate-rsa-1024 was given. 19074if test "${with_deprecate_rsa_1024+set}" = set; then : 19075 withval=$with_deprecate_rsa_1024; 19076fi 19077 19078if test "$with_deprecate_rsa_1024" = "yes"; then 19079 19080$as_echo "#define DEPRECATE_RSA_1024 1" >>confdefs.h 19081 19082fi 19083 19084# Check whether --enable-ed25519 was given. 19085if test "${enable_ed25519+set}" = set; then : 19086 enableval=$enable_ed25519; 19087fi 19088 19089use_ed25519="no" 19090case "$enable_ed25519" in 19091 no) 19092 ;; 19093 *) 19094 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 19095 ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default 19096#include <openssl/evp.h> 19097 19098" 19099if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then : 19100 ac_have_decl=1 19101else 19102 ac_have_decl=0 19103fi 19104 19105cat >>confdefs.h <<_ACEOF 19106#define HAVE_DECL_NID_ED25519 $ac_have_decl 19107_ACEOF 19108if test $ac_have_decl = 1; then : 19109 19110 use_ed25519="yes" 19111 19112else 19113 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5 19114 fi 19115fi 19116 19117 fi 19118 if test $USE_NETTLE = "yes"; then 19119 for ac_header in nettle/eddsa.h 19120do : 19121 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default 19122" 19123if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then : 19124 cat >>confdefs.h <<_ACEOF 19125#define HAVE_NETTLE_EDDSA_H 1 19126_ACEOF 19127 use_ed25519="yes" 19128fi 19129 19130done 19131 19132 fi 19133 if test $use_ed25519 = "yes"; then 19134 19135cat >>confdefs.h <<_ACEOF 19136#define USE_ED25519 1 19137_ACEOF 19138 19139 fi 19140 ;; 19141esac 19142 19143# Check whether --enable-ed448 was given. 19144if test "${enable_ed448+set}" = set; then : 19145 enableval=$enable_ed448; 19146fi 19147 19148use_ed448="no" 19149case "$enable_ed448" in 19150 no) 19151 ;; 19152 *) 19153 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 19154 ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default 19155#include <openssl/evp.h> 19156 19157" 19158if test "x$ac_cv_have_decl_NID_ED448" = xyes; then : 19159 ac_have_decl=1 19160else 19161 ac_have_decl=0 19162fi 19163 19164cat >>confdefs.h <<_ACEOF 19165#define HAVE_DECL_NID_ED448 $ac_have_decl 19166_ACEOF 19167if test $ac_have_decl = 1; then : 19168 19169 use_ed448="yes" 19170 19171else 19172 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5 19173 fi 19174fi 19175 19176 fi 19177 if test $use_ed448 = "yes"; then 19178 19179cat >>confdefs.h <<_ACEOF 19180#define USE_ED448 1 19181_ACEOF 19182 19183 fi 19184 ;; 19185esac 19186 19187# Check whether --enable-event-api was given. 19188if test "${enable_event_api+set}" = set; then : 19189 enableval=$enable_event_api; 19190fi 19191 19192case "$enable_event_api" in 19193 yes) 19194 UNBOUND_EVENT_INSTALL=unbound-event-install 19195 19196 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall 19197 19198 ;; 19199 *) 19200 ;; 19201esac 19202 19203# Check whether --enable-tfo-client was given. 19204if test "${enable_tfo_client+set}" = set; then : 19205 enableval=$enable_tfo_client; 19206fi 19207 19208case "$enable_tfo_client" in 19209 yes) 19210 case "$host_os" in 19211 linux*) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default 19212#include <netinet/tcp.h> 19213 19214" 19215if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then : 19216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 19217$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 19218else 19219 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 19220fi 19221 19222 19223cat >>confdefs.h <<_ACEOF 19224#define USE_MSG_FASTOPEN 1 19225_ACEOF 19226 19227 ;; 19228 darwin*) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default 19229#include <sys/socket.h> 19230 19231" 19232if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then : 19233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 19234$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 19235else 19236 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 19237fi 19238 19239 19240cat >>confdefs.h <<_ACEOF 19241#define USE_OSX_MSG_FASTOPEN 1 19242_ACEOF 19243 19244 ;; 19245 esac 19246 ;; 19247 no|*) 19248 ;; 19249esac 19250 19251# Check whether --enable-tfo-server was given. 19252if test "${enable_tfo_server+set}" = set; then : 19253 enableval=$enable_tfo_server; 19254fi 19255 19256case "$enable_tfo_server" in 19257 yes) 19258 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default 19259#include <netinet/tcp.h> 19260 19261" 19262if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then : 19263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5 19264$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;} 19265else 19266 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5 19267fi 19268 19269 19270cat >>confdefs.h <<_ACEOF 19271#define USE_TCP_FASTOPEN 1 19272_ACEOF 19273 19274 ;; 19275 no|*) 19276 ;; 19277esac 19278 19279# check for libevent 19280 19281# Check whether --with-libevent was given. 19282if test "${with_libevent+set}" = set; then : 19283 withval=$with_libevent; 19284else 19285 with_libevent="no" 19286fi 19287 19288if test "x_$with_libevent" != x_no; then 19289 19290$as_echo "#define USE_LIBEVENT 1" >>confdefs.h 19291 19292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 19293$as_echo_n "checking for libevent... " >&6; } 19294 if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then 19295 with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19296 fi 19297 for dir in $with_libevent; do 19298 thedir="$dir" 19299 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 19300 found_libevent="yes" 19301 if test "$thedir" != "/usr"; then 19302 CPPFLAGS="$CPPFLAGS -I$thedir/include" 19303 fi 19304 break; 19305 fi 19306 done 19307 if test x_$found_libevent != x_yes; then 19308 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 19309 # libevent source directory 19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 19311$as_echo "found in $thedir" >&6; } 19312 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 19313 BAK_LDFLAGS_SET="1" 19314 BAK_LDFLAGS="$LDFLAGS" 19315 # remove evdns from linking 19316 mkdir build >/dev/null 2>&1 19317 mkdir build/libevent >/dev/null 2>&1 19318 mkdir build/libevent/.libs >/dev/null 2>&1 19319 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 19320 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo` 19321 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 19322 cp $ev_files_o build/libevent 19323 cp $ev_files_lo build/libevent 19324 cp $ev_files_libso build/libevent/.libs 19325 LATE_LDFLAGS="build/libevent/*.lo -lm" 19326 LDFLAGS="build/libevent/*.o $LDFLAGS -lm" 19327 else 19328 as_fn_error $? "Cannot find the libevent library in $with_libevent 19329You can restart ./configure --with-libevent=no to use a builtin alternative. 19330Please note that this alternative is not as capable as libevent when using 19331large outgoing port ranges. " "$LINENO" 5 19332 fi 19333 else 19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 19335$as_echo "found in $thedir" >&6; } 19336 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 19337 LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 19338 19339 if test "x$enable_rpath" = xyes; then 19340 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 19341 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 19342 fi 19343 fi 19344 19345 else 19346 if test "$thedir" != "/usr" -a "$thedir" != ""; then 19347 LDFLAGS="$LDFLAGS -L$thedir/lib" 19348 19349 if test "x$enable_rpath" = xyes; then 19350 if echo "$thedir/lib" | grep "^/" >/dev/null; then 19351 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 19352 fi 19353 fi 19354 19355 fi 19356 fi 19357 fi 19358 # check for library used by libevent after 1.3c 19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 19360$as_echo_n "checking for library containing clock_gettime... " >&6; } 19361if ${ac_cv_search_clock_gettime+:} false; then : 19362 $as_echo_n "(cached) " >&6 19363else 19364 ac_func_search_save_LIBS=$LIBS 19365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19366/* end confdefs.h. */ 19367 19368/* Override any GCC internal prototype to avoid an error. 19369 Use char because int might match the return type of a GCC 19370 builtin and then its argument prototype would still apply. */ 19371#ifdef __cplusplus 19372extern "C" 19373#endif 19374char clock_gettime (); 19375int 19376main () 19377{ 19378return clock_gettime (); 19379 ; 19380 return 0; 19381} 19382_ACEOF 19383for ac_lib in '' rt; do 19384 if test -z "$ac_lib"; then 19385 ac_res="none required" 19386 else 19387 ac_res=-l$ac_lib 19388 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19389 fi 19390 if ac_fn_c_try_link "$LINENO"; then : 19391 ac_cv_search_clock_gettime=$ac_res 19392fi 19393rm -f core conftest.err conftest.$ac_objext \ 19394 conftest$ac_exeext 19395 if ${ac_cv_search_clock_gettime+:} false; then : 19396 break 19397fi 19398done 19399if ${ac_cv_search_clock_gettime+:} false; then : 19400 19401else 19402 ac_cv_search_clock_gettime=no 19403fi 19404rm conftest.$ac_ext 19405LIBS=$ac_func_search_save_LIBS 19406fi 19407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 19408$as_echo "$ac_cv_search_clock_gettime" >&6; } 19409ac_res=$ac_cv_search_clock_gettime 19410if test "$ac_res" != no; then : 19411 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19412 19413fi 19414 19415 19416 # is the event.h header libev or libevent? 19417 for ac_header in event.h 19418do : 19419 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 19420" 19421if test "x$ac_cv_header_event_h" = xyes; then : 19422 cat >>confdefs.h <<_ACEOF 19423#define HAVE_EVENT_H 1 19424_ACEOF 19425 19426fi 19427 19428done 19429 19430 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 19431#include <event.h> 19432 19433" 19434if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then : 19435 19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 19437$as_echo_n "checking for library containing event_set... " >&6; } 19438if ${ac_cv_search_event_set+:} false; then : 19439 $as_echo_n "(cached) " >&6 19440else 19441 ac_func_search_save_LIBS=$LIBS 19442cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19443/* end confdefs.h. */ 19444 19445/* Override any GCC internal prototype to avoid an error. 19446 Use char because int might match the return type of a GCC 19447 builtin and then its argument prototype would still apply. */ 19448#ifdef __cplusplus 19449extern "C" 19450#endif 19451char event_set (); 19452int 19453main () 19454{ 19455return event_set (); 19456 ; 19457 return 0; 19458} 19459_ACEOF 19460for ac_lib in '' ev; do 19461 if test -z "$ac_lib"; then 19462 ac_res="none required" 19463 else 19464 ac_res=-l$ac_lib 19465 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19466 fi 19467 if ac_fn_c_try_link "$LINENO"; then : 19468 ac_cv_search_event_set=$ac_res 19469fi 19470rm -f core conftest.err conftest.$ac_objext \ 19471 conftest$ac_exeext 19472 if ${ac_cv_search_event_set+:} false; then : 19473 break 19474fi 19475done 19476if ${ac_cv_search_event_set+:} false; then : 19477 19478else 19479 ac_cv_search_event_set=no 19480fi 19481rm conftest.$ac_ext 19482LIBS=$ac_func_search_save_LIBS 19483fi 19484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 19485$as_echo "$ac_cv_search_event_set" >&6; } 19486ac_res=$ac_cv_search_event_set 19487if test "$ac_res" != no; then : 19488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19489 19490fi 19491 19492 19493else 19494 19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 19496$as_echo_n "checking for library containing event_set... " >&6; } 19497if ${ac_cv_search_event_set+:} false; then : 19498 $as_echo_n "(cached) " >&6 19499else 19500 ac_func_search_save_LIBS=$LIBS 19501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19502/* end confdefs.h. */ 19503 19504/* Override any GCC internal prototype to avoid an error. 19505 Use char because int might match the return type of a GCC 19506 builtin and then its argument prototype would still apply. */ 19507#ifdef __cplusplus 19508extern "C" 19509#endif 19510char event_set (); 19511int 19512main () 19513{ 19514return event_set (); 19515 ; 19516 return 0; 19517} 19518_ACEOF 19519for ac_lib in '' event; do 19520 if test -z "$ac_lib"; then 19521 ac_res="none required" 19522 else 19523 ac_res=-l$ac_lib 19524 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19525 fi 19526 if ac_fn_c_try_link "$LINENO"; then : 19527 ac_cv_search_event_set=$ac_res 19528fi 19529rm -f core conftest.err conftest.$ac_objext \ 19530 conftest$ac_exeext 19531 if ${ac_cv_search_event_set+:} false; then : 19532 break 19533fi 19534done 19535if ${ac_cv_search_event_set+:} false; then : 19536 19537else 19538 ac_cv_search_event_set=no 19539fi 19540rm conftest.$ac_ext 19541LIBS=$ac_func_search_save_LIBS 19542fi 19543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 19544$as_echo "$ac_cv_search_event_set" >&6; } 19545ac_res=$ac_cv_search_event_set 19546if test "$ac_res" != no; then : 19547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19548 19549fi 19550 19551 19552fi 19553 19554 for ac_func in event_base_free 19555do : 19556 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 19557if test "x$ac_cv_func_event_base_free" = xyes; then : 19558 cat >>confdefs.h <<_ACEOF 19559#define HAVE_EVENT_BASE_FREE 1 19560_ACEOF 19561 19562fi 19563done 19564 # only in libevent 1.2 and later 19565 for ac_func in event_base_once 19566do : 19567 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 19568if test "x$ac_cv_func_event_base_once" = xyes; then : 19569 cat >>confdefs.h <<_ACEOF 19570#define HAVE_EVENT_BASE_ONCE 1 19571_ACEOF 19572 19573fi 19574done 19575 # only in libevent 1.4.1 and later 19576 for ac_func in event_base_new 19577do : 19578 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 19579if test "x$ac_cv_func_event_base_new" = xyes; then : 19580 cat >>confdefs.h <<_ACEOF 19581#define HAVE_EVENT_BASE_NEW 1 19582_ACEOF 19583 19584fi 19585done 19586 # only in libevent 1.4.1 and later 19587 for ac_func in event_base_get_method 19588do : 19589 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 19590if test "x$ac_cv_func_event_base_get_method" = xyes; then : 19591 cat >>confdefs.h <<_ACEOF 19592#define HAVE_EVENT_BASE_GET_METHOD 1 19593_ACEOF 19594 19595fi 19596done 19597 # only in libevent 1.4.3 and later 19598 for ac_func in ev_loop 19599do : 19600 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 19601if test "x$ac_cv_func_ev_loop" = xyes; then : 19602 cat >>confdefs.h <<_ACEOF 19603#define HAVE_EV_LOOP 1 19604_ACEOF 19605 19606fi 19607done 19608 # only in libev. (tested on 3.51) 19609 for ac_func in ev_default_loop 19610do : 19611 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 19612if test "x$ac_cv_func_ev_default_loop" = xyes; then : 19613 cat >>confdefs.h <<_ACEOF 19614#define HAVE_EV_DEFAULT_LOOP 1 19615_ACEOF 19616 19617fi 19618done 19619 # only in libev. (tested on 4.00) 19620 for ac_func in event_assign 19621do : 19622 ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign" 19623if test "x$ac_cv_func_event_assign" = xyes; then : 19624 cat >>confdefs.h <<_ACEOF 19625#define HAVE_EVENT_ASSIGN 1 19626_ACEOF 19627 19628fi 19629done 19630 # in libevent, for thread-safety 19631 ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default 19632#ifdef HAVE_EVENT_H 19633# include <event.h> 19634#else 19635# include \"event2/event.h\" 19636#endif 19637 19638" 19639if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then : 19640 ac_have_decl=1 19641else 19642 ac_have_decl=0 19643fi 19644 19645cat >>confdefs.h <<_ACEOF 19646#define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl 19647_ACEOF 19648 19649 PC_LIBEVENT_DEPENDENCY="libevent" 19650 19651 if test -n "$BAK_LDFLAGS_SET"; then 19652 LDFLAGS="$BAK_LDFLAGS" 19653 fi 19654else 19655 19656$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h 19657 19658fi 19659 19660# check for libexpat 19661 19662# Check whether --with-libexpat was given. 19663if test "${with_libexpat+set}" = set; then : 19664 withval=$with_libexpat; 19665else 19666 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19667fi 19668 19669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 19670$as_echo_n "checking for libexpat... " >&6; } 19671found_libexpat="no" 19672for dir in $withval ; do 19673 if test -f "$dir/include/expat.h"; then 19674 found_libexpat="yes" 19675 if test "$dir" != "/usr"; then 19676 CPPFLAGS="$CPPFLAGS -I$dir/include" 19677 LDFLAGS="$LDFLAGS -L$dir/lib" 19678 fi 19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 19680$as_echo "found in $dir" >&6; } 19681 break; 19682 fi 19683done 19684if test x_$found_libexpat != x_yes; then 19685 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5 19686fi 19687for ac_header in expat.h 19688do : 19689 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default 19690" 19691if test "x$ac_cv_header_expat_h" = xyes; then : 19692 cat >>confdefs.h <<_ACEOF 19693#define HAVE_EXPAT_H 1 19694_ACEOF 19695 19696fi 19697 19698done 19699 19700ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default 19701#include <expat.h> 19702 19703" 19704if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then : 19705 ac_have_decl=1 19706else 19707 ac_have_decl=0 19708fi 19709 19710cat >>confdefs.h <<_ACEOF 19711#define HAVE_DECL_XML_STOPPARSER $ac_have_decl 19712_ACEOF 19713 19714 19715# hiredis (redis C client for cachedb) 19716 19717# Check whether --with-libhiredis was given. 19718if test "${with_libhiredis+set}" = set; then : 19719 withval=$with_libhiredis; 19720else 19721 withval="no" 19722fi 19723 19724found_libhiredis="no" 19725if test x_$withval = x_yes -o x_$withval != x_no; then 19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5 19727$as_echo_n "checking for libhiredis... " >&6; } 19728 if test x_$withval = x_ -o x_$withval = x_yes; then 19729 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19730 fi 19731 for dir in $withval ; do 19732 if test -f "$dir/include/hiredis/hiredis.h"; then 19733 found_libhiredis="yes" 19734 if test "$dir" != "/usr"; then 19735 CPPFLAGS="$CPPFLAGS -I$dir/include" 19736 LDFLAGS="$LDFLAGS -L$dir/lib" 19737 fi 19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 19739$as_echo "found in $dir" >&6; } 19740 19741$as_echo "#define USE_REDIS 1" >>confdefs.h 19742 19743 LIBS="$LIBS -lhiredis" 19744 break; 19745 fi 19746 done 19747 if test x_$found_libhiredis != x_yes; then 19748 as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5 19749 fi 19750 for ac_header in hiredis/hiredis.h 19751do : 19752 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default 19753" 19754if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then : 19755 cat >>confdefs.h <<_ACEOF 19756#define HAVE_HIREDIS_HIREDIS_H 1 19757_ACEOF 19758 19759fi 19760 19761done 19762 19763 ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default 19764 #include <hiredis/hiredis.h> 19765 19766" 19767if test "x$ac_cv_have_decl_redisConnect" = xyes; then : 19768 ac_have_decl=1 19769else 19770 ac_have_decl=0 19771fi 19772 19773cat >>confdefs.h <<_ACEOF 19774#define HAVE_DECL_REDISCONNECT $ac_have_decl 19775_ACEOF 19776 19777fi 19778 19779# nghttp2 19780 19781# Check whether --with-libnghttp2 was given. 19782if test "${with_libnghttp2+set}" = set; then : 19783 withval=$with_libnghttp2; 19784else 19785 withval="no" 19786fi 19787 19788found_libnghttp2="no" 19789if test x_$withval = x_yes -o x_$withval != x_no; then 19790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5 19791$as_echo_n "checking for libnghttp2... " >&6; } 19792 if test x_$withval = x_ -o x_$withval = x_yes; then 19793 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19794 fi 19795 for dir in $withval ; do 19796 if test -f "$dir/include/nghttp2/nghttp2.h"; then 19797 found_libnghttp2="yes" 19798 if test "$dir" != "/usr"; then 19799 CPPFLAGS="$CPPFLAGS -I$dir/include" 19800 LDFLAGS="$LDFLAGS -L$dir/lib" 19801 fi 19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 19803$as_echo "found in $dir" >&6; } 19804 19805$as_echo "#define HAVE_NGHTTP2 1" >>confdefs.h 19806 19807 LIBS="$LIBS -lnghttp2" 19808 break; 19809 fi 19810 done 19811 if test x_$found_libnghttp2 != x_yes; then 19812 as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5 19813 fi 19814 for ac_header in nghttp2/nghttp2.h 19815do : 19816 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default 19817" 19818if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then : 19819 cat >>confdefs.h <<_ACEOF 19820#define HAVE_NGHTTP2_NGHTTP2_H 1 19821_ACEOF 19822 19823fi 19824 19825done 19826 19827 ac_fn_c_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default 19828 #include <nghttp2/nghttp2.h> 19829 19830" 19831if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes; then : 19832 ac_have_decl=1 19833else 19834 ac_have_decl=0 19835fi 19836 19837cat >>confdefs.h <<_ACEOF 19838#define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl 19839_ACEOF 19840 19841fi 19842 19843# set static linking for uninstalled libraries if requested 19844 19845staticexe="" 19846# Check whether --enable-static-exe was given. 19847if test "${enable_static_exe+set}" = set; then : 19848 enableval=$enable_static_exe; 19849fi 19850 19851if test x_$enable_static_exe = x_yes; then 19852 staticexe="-static" 19853 if test "$on_mingw" = yes; then 19854 staticexe="-all-static" 19855 # for static compile, include gdi32 and zlib here. 19856 if echo $LIBS | grep 'lgdi32' >/dev/null; then 19857 : 19858 else 19859 LIBS="$LIBS -lgdi32" 19860 fi 19861 LIBS="$LIBS -lz" 19862 LIBS="$LIBS -l:libssp.a" 19863 fi 19864fi 19865 19866# set full static linking if requested 19867# Check whether --enable-fully-static was given. 19868if test "${enable_fully_static+set}" = set; then : 19869 enableval=$enable_fully_static; 19870fi 19871 19872if test x_$enable_fully_static = x_yes; then 19873 staticexe="-all-static" 19874 if test "$on_mingw" = yes; then 19875 # for static compile, include gdi32 and zlib here. 19876 if echo $LIBS | grep 'lgdi32' >/dev/null; then 19877 : 19878 else 19879 LIBS="$LIBS -lgdi32" 19880 fi 19881 LIBS="$LIBS -lz" 19882 LIBS="$LIBS -l:libssp.a" 19883 fi 19884fi 19885 19886# set lock checking if requested 19887# Check whether --enable-lock_checks was given. 19888if test "${enable_lock_checks+set}" = set; then : 19889 enableval=$enable_lock_checks; 19890fi 19891 19892if test x_$enable_lock_checks = x_yes; then 19893 19894$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h 19895 19896 CHECKLOCK_OBJ="checklocks.lo" 19897 19898fi 19899 19900 19901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 19902$as_echo_n "checking for getaddrinfo... " >&6; } 19903ac_cv_func_getaddrinfo=no 19904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19905/* end confdefs.h. */ 19906 19907#ifdef __cplusplus 19908extern "C" 19909{ 19910#endif 19911char* getaddrinfo(); 19912char* (*f) () = getaddrinfo; 19913#ifdef __cplusplus 19914} 19915#endif 19916int main() { 19917 ; 19918 return 0; 19919} 19920 19921_ACEOF 19922if ac_fn_c_try_link "$LINENO"; then : 19923 ac_cv_func_getaddrinfo="yes" 19924if test "$ac_cv_header_windows_h" = "yes"; then 19925 19926$as_echo "#define USE_WINSOCK 1" >>confdefs.h 19927 19928 USE_WINSOCK="1" 19929 if echo $LIBS | grep 'lws2_32' >/dev/null; then 19930 : 19931 else 19932 LIBS="$LIBS -lws2_32" 19933 fi 19934fi 19935 19936else 19937 ORIGLIBS="$LIBS" 19938LIBS="$LIBS -lws2_32" 19939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19940/* end confdefs.h. */ 19941 19942#ifdef HAVE_WS2TCPIP_H 19943#include <ws2tcpip.h> 19944#endif 19945 19946int 19947main () 19948{ 19949 19950 (void)getaddrinfo(NULL, NULL, NULL, NULL); 19951 19952 19953 ; 19954 return 0; 19955} 19956_ACEOF 19957if ac_fn_c_try_link "$LINENO"; then : 19958 19959ac_cv_func_getaddrinfo="yes" 19960 19961$as_echo "#define USE_WINSOCK 1" >>confdefs.h 19962 19963USE_WINSOCK="1" 19964 19965else 19966 19967ac_cv_func_getaddrinfo="no" 19968LIBS="$ORIGLIBS" 19969 19970fi 19971rm -f core conftest.err conftest.$ac_objext \ 19972 conftest$ac_exeext conftest.$ac_ext 19973 19974fi 19975rm -f core conftest.err conftest.$ac_objext \ 19976 conftest$ac_exeext conftest.$ac_ext 19977 19978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 19979$as_echo "$ac_cv_func_getaddrinfo" >&6; } 19980if test $ac_cv_func_getaddrinfo = yes; then 19981 19982$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 19983 19984fi 19985 19986if test "$USE_WINSOCK" = 1; then 19987 19988$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h 19989 19990 for ac_header in iphlpapi.h 19991do : 19992 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default 19993#include <windows.h> 19994 19995" 19996if test "x$ac_cv_header_iphlpapi_h" = xyes; then : 19997 cat >>confdefs.h <<_ACEOF 19998#define HAVE_IPHLPAPI_H 1 19999_ACEOF 20000 20001fi 20002 20003done 20004 20005 if test -n "$ac_tool_prefix"; then 20006 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 20007set dummy ${ac_tool_prefix}windres; ac_word=$2 20008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20009$as_echo_n "checking for $ac_word... " >&6; } 20010if ${ac_cv_prog_WINDRES+:} false; then : 20011 $as_echo_n "(cached) " >&6 20012else 20013 if test -n "$WINDRES"; then 20014 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 20015else 20016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20017for as_dir in $PATH 20018do 20019 IFS=$as_save_IFS 20020 test -z "$as_dir" && as_dir=. 20021 for ac_exec_ext in '' $ac_executable_extensions; do 20022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20023 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 20024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20025 break 2 20026 fi 20027done 20028 done 20029IFS=$as_save_IFS 20030 20031fi 20032fi 20033WINDRES=$ac_cv_prog_WINDRES 20034if test -n "$WINDRES"; then 20035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 20036$as_echo "$WINDRES" >&6; } 20037else 20038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20039$as_echo "no" >&6; } 20040fi 20041 20042 20043fi 20044if test -z "$ac_cv_prog_WINDRES"; then 20045 ac_ct_WINDRES=$WINDRES 20046 # Extract the first word of "windres", so it can be a program name with args. 20047set dummy windres; ac_word=$2 20048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20049$as_echo_n "checking for $ac_word... " >&6; } 20050if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 20051 $as_echo_n "(cached) " >&6 20052else 20053 if test -n "$ac_ct_WINDRES"; then 20054 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 20055else 20056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20057for as_dir in $PATH 20058do 20059 IFS=$as_save_IFS 20060 test -z "$as_dir" && as_dir=. 20061 for ac_exec_ext in '' $ac_executable_extensions; do 20062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20063 ac_cv_prog_ac_ct_WINDRES="windres" 20064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20065 break 2 20066 fi 20067done 20068 done 20069IFS=$as_save_IFS 20070 20071fi 20072fi 20073ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 20074if test -n "$ac_ct_WINDRES"; then 20075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 20076$as_echo "$ac_ct_WINDRES" >&6; } 20077else 20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20079$as_echo "no" >&6; } 20080fi 20081 20082 if test "x$ac_ct_WINDRES" = x; then 20083 WINDRES="" 20084 else 20085 case $cross_compiling:$ac_tool_warned in 20086yes:) 20087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20089ac_tool_warned=yes ;; 20090esac 20091 WINDRES=$ac_ct_WINDRES 20092 fi 20093else 20094 WINDRES="$ac_cv_prog_WINDRES" 20095fi 20096 20097 LIBS="$LIBS -liphlpapi -lcrypt32" 20098 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe" 20099 20100 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c" 20101 20102 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo" 20103 20104 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o" 20105 20106 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o" 20107 20108 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo" 20109 20110 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o" 20111 20112 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o" 20113 20114fi 20115if test $ac_cv_func_getaddrinfo = no; then 20116 case " $LIBOBJS " in 20117 *" fake-rfc2553.$ac_objext "* ) ;; 20118 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 20119 ;; 20120esac 20121 20122fi 20123# check after getaddrinfo for its libraries 20124 20125# check ioctlsocket 20126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 20127$as_echo_n "checking for ioctlsocket... " >&6; } 20128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20129/* end confdefs.h. */ 20130 20131#ifdef HAVE_WINSOCK2_H 20132#include <winsock2.h> 20133#endif 20134 20135int 20136main () 20137{ 20138 20139 (void)ioctlsocket(0, 0, NULL); 20140 20141 ; 20142 return 0; 20143} 20144_ACEOF 20145if ac_fn_c_try_link "$LINENO"; then : 20146 20147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20148$as_echo "yes" >&6; } 20149 20150$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 20151 20152 20153else 20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20155$as_echo "no" >&6; } 20156fi 20157rm -f core conftest.err conftest.$ac_objext \ 20158 conftest$ac_exeext conftest.$ac_ext 20159 20160 20161# see if daemon(3) exists, and if it is deprecated. 20162for ac_func in daemon 20163do : 20164 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 20165if test "x$ac_cv_func_daemon" = xyes; then : 20166 cat >>confdefs.h <<_ACEOF 20167#define HAVE_DAEMON 1 20168_ACEOF 20169 20170fi 20171done 20172 20173if test $ac_cv_func_daemon = yes; then 20174 20175 20176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5 20177$as_echo_n "checking if daemon is deprecated... " >&6; } 20178cache=`echo daemon | sed 'y%.=/+-%___p_%'` 20179if eval \${cv_cc_deprecated_$cache+:} false; then : 20180 $as_echo_n "(cached) " >&6 20181else 20182 20183echo ' 20184#include <stdlib.h> 20185#include <unistd.h> 20186' >conftest.c 20187echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c 20188if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then 20189eval "cv_cc_deprecated_$cache=no" 20190else 20191eval "cv_cc_deprecated_$cache=yes" 20192fi 20193rm -f conftest conftest.o conftest.c 20194 20195fi 20196 20197if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 20198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20199$as_echo "yes" >&6; } 20200 20201cat >>confdefs.h <<_ACEOF 20202#define DEPRECATED_DAEMON 1 20203_ACEOF 20204 20205: 20206 20207else 20208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20209$as_echo "no" >&6; } 20210: 20211 20212fi 20213 20214fi 20215 20216ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " 20217$ac_includes_default 20218#ifdef HAVE_SYS_UN_H 20219#include <sys/un.h> 20220#endif 20221 20222" 20223if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : 20224 20225cat >>confdefs.h <<_ACEOF 20226#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 20227_ACEOF 20228 20229 20230fi 20231 20232ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" " 20233$ac_includes_default 20234#if HAVE_SYS_PARAM_H 20235#include <sys/param.h> 20236#endif 20237 20238#ifdef HAVE_SYS_SOCKET_H 20239#include <sys/socket.h> 20240#endif 20241 20242#ifdef HAVE_SYS_UIO_H 20243#include <sys/uio.h> 20244#endif 20245 20246#ifdef HAVE_NETINET_IN_H 20247#include <netinet/in.h> 20248#endif 20249 20250#ifdef HAVE_NETINET_TCP_H 20251#include <netinet/tcp.h> 20252#endif 20253 20254#ifdef HAVE_ARPA_INET_H 20255#include <arpa/inet.h> 20256#endif 20257 20258#ifdef HAVE_WINSOCK2_H 20259#include <winsock2.h> 20260#endif 20261 20262#ifdef HAVE_WS2TCPIP_H 20263#include <ws2tcpip.h> 20264#endif 20265 20266" 20267if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then : 20268 20269cat >>confdefs.h <<_ACEOF 20270#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1 20271_ACEOF 20272 20273 20274fi 20275 20276 20277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5 20278$as_echo_n "checking for htobe64... " >&6; } 20279cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20280/* end confdefs.h. */ 20281 20282#include <stdio.h> 20283#ifdef HAVE_ENDIAN_H 20284# include <endian.h> 20285#endif 20286#ifdef HAVE_SYS_ENDIAN_H 20287# include <sys/endian.h> 20288#endif 20289 20290int 20291main () 20292{ 20293unsigned long long x = htobe64(0); printf("%u", (unsigned)x); 20294 ; 20295 return 0; 20296} 20297_ACEOF 20298if ac_fn_c_try_link "$LINENO"; then : 20299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20300$as_echo "yes" >&6; } 20301 20302$as_echo "#define HAVE_HTOBE64 1" >>confdefs.h 20303 20304else 20305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20306$as_echo "no" >&6; } 20307fi 20308rm -f core conftest.err conftest.$ac_objext \ 20309 conftest$ac_exeext conftest.$ac_ext 20310 20311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5 20312$as_echo_n "checking for be64toh... " >&6; } 20313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20314/* end confdefs.h. */ 20315 20316#include <stdio.h> 20317#ifdef HAVE_ENDIAN_H 20318# include <endian.h> 20319#endif 20320#ifdef HAVE_SYS_ENDIAN_H 20321# include <sys/endian.h> 20322#endif 20323 20324int 20325main () 20326{ 20327unsigned long long x = be64toh(0); printf("%u", (unsigned)x); 20328 ; 20329 return 0; 20330} 20331_ACEOF 20332if ac_fn_c_try_link "$LINENO"; then : 20333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20334$as_echo "yes" >&6; } 20335 20336$as_echo "#define HAVE_BE64TOH 1" >>confdefs.h 20337 20338else 20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20340$as_echo "no" >&6; } 20341fi 20342rm -f core conftest.err conftest.$ac_objext \ 20343 conftest$ac_exeext conftest.$ac_ext 20344 20345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 20346$as_echo_n "checking for library containing setusercontext... " >&6; } 20347if ${ac_cv_search_setusercontext+:} false; then : 20348 $as_echo_n "(cached) " >&6 20349else 20350 ac_func_search_save_LIBS=$LIBS 20351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20352/* end confdefs.h. */ 20353 20354/* Override any GCC internal prototype to avoid an error. 20355 Use char because int might match the return type of a GCC 20356 builtin and then its argument prototype would still apply. */ 20357#ifdef __cplusplus 20358extern "C" 20359#endif 20360char setusercontext (); 20361int 20362main () 20363{ 20364return setusercontext (); 20365 ; 20366 return 0; 20367} 20368_ACEOF 20369for ac_lib in '' util; do 20370 if test -z "$ac_lib"; then 20371 ac_res="none required" 20372 else 20373 ac_res=-l$ac_lib 20374 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20375 fi 20376 if ac_fn_c_try_link "$LINENO"; then : 20377 ac_cv_search_setusercontext=$ac_res 20378fi 20379rm -f core conftest.err conftest.$ac_objext \ 20380 conftest$ac_exeext 20381 if ${ac_cv_search_setusercontext+:} false; then : 20382 break 20383fi 20384done 20385if ${ac_cv_search_setusercontext+:} false; then : 20386 20387else 20388 ac_cv_search_setusercontext=no 20389fi 20390rm conftest.$ac_ext 20391LIBS=$ac_func_search_save_LIBS 20392fi 20393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 20394$as_echo "$ac_cv_search_setusercontext" >&6; } 20395ac_res=$ac_cv_search_setusercontext 20396if test "$ac_res" != no; then : 20397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20398 20399fi 20400 20401for ac_func in tzset sigprocmask fcntl getpwnam endpwent getrlimit setrlimit setsid chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent fsync shmget accept4 getifaddrs 20402do : 20403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20404ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20405if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20406 cat >>confdefs.h <<_ACEOF 20407#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20408_ACEOF 20409 20410fi 20411done 20412 20413for ac_func in setresuid 20414do : 20415 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 20416if test "x$ac_cv_func_setresuid" = xyes; then : 20417 cat >>confdefs.h <<_ACEOF 20418#define HAVE_SETRESUID 1 20419_ACEOF 20420 20421else 20422 for ac_func in setreuid 20423do : 20424 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 20425if test "x$ac_cv_func_setreuid" = xyes; then : 20426 cat >>confdefs.h <<_ACEOF 20427#define HAVE_SETREUID 1 20428_ACEOF 20429 20430fi 20431done 20432 20433fi 20434done 20435 20436for ac_func in setresgid 20437do : 20438 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 20439if test "x$ac_cv_func_setresgid" = xyes; then : 20440 cat >>confdefs.h <<_ACEOF 20441#define HAVE_SETRESGID 1 20442_ACEOF 20443 20444else 20445 for ac_func in setregid 20446do : 20447 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 20448if test "x$ac_cv_func_setregid" = xyes; then : 20449 cat >>confdefs.h <<_ACEOF 20450#define HAVE_SETREGID 1 20451_ACEOF 20452 20453fi 20454done 20455 20456fi 20457done 20458 20459 20460# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 20461if echo $host_os | grep darwin8 > /dev/null; then 20462 20463$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 20464 20465fi 20466ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" " 20467$ac_includes_default 20468#ifdef HAVE_NETINET_IN_H 20469#include <netinet/in.h> 20470#endif 20471 20472#ifdef HAVE_NETINET_TCP_H 20473#include <netinet/tcp.h> 20474#endif 20475 20476#ifdef HAVE_ARPA_INET_H 20477#include <arpa/inet.h> 20478#endif 20479 20480#ifdef HAVE_WINSOCK2_H 20481#include <winsock2.h> 20482#endif 20483 20484#ifdef HAVE_WS2TCPIP_H 20485#include <ws2tcpip.h> 20486#endif 20487 20488" 20489if test "x$ac_cv_have_decl_inet_pton" = xyes; then : 20490 ac_have_decl=1 20491else 20492 ac_have_decl=0 20493fi 20494 20495cat >>confdefs.h <<_ACEOF 20496#define HAVE_DECL_INET_PTON $ac_have_decl 20497_ACEOF 20498ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" " 20499$ac_includes_default 20500#ifdef HAVE_NETINET_IN_H 20501#include <netinet/in.h> 20502#endif 20503 20504#ifdef HAVE_NETINET_TCP_H 20505#include <netinet/tcp.h> 20506#endif 20507 20508#ifdef HAVE_ARPA_INET_H 20509#include <arpa/inet.h> 20510#endif 20511 20512#ifdef HAVE_WINSOCK2_H 20513#include <winsock2.h> 20514#endif 20515 20516#ifdef HAVE_WS2TCPIP_H 20517#include <ws2tcpip.h> 20518#endif 20519 20520" 20521if test "x$ac_cv_have_decl_inet_ntop" = xyes; then : 20522 ac_have_decl=1 20523else 20524 ac_have_decl=0 20525fi 20526 20527cat >>confdefs.h <<_ACEOF 20528#define HAVE_DECL_INET_NTOP $ac_have_decl 20529_ACEOF 20530 20531ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 20532if test "x$ac_cv_func_inet_aton" = xyes; then : 20533 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 20534 20535else 20536 case " $LIBOBJS " in 20537 *" inet_aton.$ac_objext "* ) ;; 20538 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 20539 ;; 20540esac 20541 20542fi 20543 20544 20545ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 20546if test "x$ac_cv_func_inet_pton" = xyes; then : 20547 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 20548 20549else 20550 case " $LIBOBJS " in 20551 *" inet_pton.$ac_objext "* ) ;; 20552 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 20553 ;; 20554esac 20555 20556fi 20557 20558 20559ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 20560if test "x$ac_cv_func_inet_ntop" = xyes; then : 20561 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 20562 20563else 20564 case " $LIBOBJS " in 20565 *" inet_ntop.$ac_objext "* ) ;; 20566 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 20567 ;; 20568esac 20569 20570fi 20571 20572 20573ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 20574if test "x$ac_cv_func_snprintf" = xyes; then : 20575 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 20576 20577else 20578 case " $LIBOBJS " in 20579 *" snprintf.$ac_objext "* ) ;; 20580 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20581 ;; 20582esac 20583 20584fi 20585 20586 20587# test if snprintf return the proper length 20588if test "x$ac_cv_func_snprintf" = xyes; then 20589 if test c${cross_compiling} = cno; then 20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5 20591$as_echo_n "checking for correct snprintf return value... " >&6; } 20592 if test "$cross_compiling" = yes; then : 20593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20595as_fn_error $? "cannot run test program while cross compiling 20596See \`config.log' for more details" "$LINENO" 5; } 20597else 20598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20599/* end confdefs.h. */ 20600$ac_includes_default 20601 20602int main(void) { return !(snprintf(NULL, 0, "test") == 4); } 20603 20604_ACEOF 20605if ac_fn_c_try_run "$LINENO"; then : 20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20607$as_echo "yes" >&6; } 20608else 20609 20610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20611$as_echo "no" >&6; } 20612 20613$as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h 20614 20615 case " $LIBOBJS " in 20616 *" snprintf.$ac_objext "* ) ;; 20617 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20618 ;; 20619esac 20620 20621 20622fi 20623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20624 conftest.$ac_objext conftest.beam conftest.$ac_ext 20625fi 20626 20627 fi 20628fi 20629ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 20630if test "x$ac_cv_func_strlcat" = xyes; then : 20631 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 20632 20633else 20634 case " $LIBOBJS " in 20635 *" strlcat.$ac_objext "* ) ;; 20636 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 20637 ;; 20638esac 20639 20640fi 20641 20642 20643ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20644if test "x$ac_cv_func_strlcpy" = xyes; then : 20645 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 20646 20647else 20648 case " $LIBOBJS " in 20649 *" strlcpy.$ac_objext "* ) ;; 20650 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 20651 ;; 20652esac 20653 20654fi 20655 20656 20657ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 20658if test "x$ac_cv_func_memmove" = xyes; then : 20659 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 20660 20661else 20662 case " $LIBOBJS " in 20663 *" memmove.$ac_objext "* ) ;; 20664 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 20665 ;; 20666esac 20667 20668fi 20669 20670 20671ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 20672if test "x$ac_cv_func_gmtime_r" = xyes; then : 20673 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 20674 20675else 20676 case " $LIBOBJS " in 20677 *" gmtime_r.$ac_objext "* ) ;; 20678 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 20679 ;; 20680esac 20681 20682fi 20683 20684 20685ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" 20686if test "x$ac_cv_func_isblank" = xyes; then : 20687 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h 20688 20689else 20690 case " $LIBOBJS " in 20691 *" isblank.$ac_objext "* ) ;; 20692 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 20693 ;; 20694esac 20695 20696fi 20697 20698 20699ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 20700if test "x$ac_cv_func_explicit_bzero" = xyes; then : 20701 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 20702 20703else 20704 case " $LIBOBJS " in 20705 *" explicit_bzero.$ac_objext "* ) ;; 20706 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" 20707 ;; 20708esac 20709 20710fi 20711 20712 20713LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS" 20714 20715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5 20716$as_echo_n "checking for reallocarray... " >&6; } 20717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20718/* end confdefs.h. */ 20719$ac_includes_default 20720 20721#ifndef _OPENBSD_SOURCE 20722#define _OPENBSD_SOURCE 1 20723#endif 20724#include <stdlib.h> 20725int main(void) { 20726 void* p = reallocarray(NULL, 10, 100); 20727 free(p); 20728 return 0; 20729} 20730 20731_ACEOF 20732if ac_fn_c_try_link "$LINENO"; then : 20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20734$as_echo "yes" >&6; } 20735 20736$as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h 20737 20738 20739else 20740 20741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20742$as_echo "no" >&6; } 20743 case " $LIBOBJS " in 20744 *" reallocarray.$ac_objext "* ) ;; 20745 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 20746 ;; 20747esac 20748 20749 20750fi 20751rm -f core conftest.err conftest.$ac_objext \ 20752 conftest$ac_exeext conftest.$ac_ext 20753ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default" 20754if test "x$ac_cv_have_decl_reallocarray" = xyes; then : 20755 ac_have_decl=1 20756else 20757 ac_have_decl=0 20758fi 20759 20760cat >>confdefs.h <<_ACEOF 20761#define HAVE_DECL_REALLOCARRAY $ac_have_decl 20762_ACEOF 20763 20764if test "$USE_NSS" = "no"; then 20765 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 20766if test "x$ac_cv_func_arc4random" = xyes; then : 20767 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h 20768 20769else 20770 case " $LIBOBJS " in 20771 *" arc4random.$ac_objext "* ) ;; 20772 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext" 20773 ;; 20774esac 20775 20776fi 20777 20778 20779 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform" 20780if test "x$ac_cv_func_arc4random_uniform" = xyes; then : 20781 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h 20782 20783else 20784 case " $LIBOBJS " in 20785 *" arc4random_uniform.$ac_objext "* ) ;; 20786 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext" 20787 ;; 20788esac 20789 20790fi 20791 20792 20793 if test "$ac_cv_func_arc4random" = "no"; then 20794 case " $LIBOBJS " in 20795 *" arc4_lock.$ac_objext "* ) ;; 20796 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext" 20797 ;; 20798esac 20799 20800 for ac_func in getentropy 20801do : 20802 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 20803if test "x$ac_cv_func_getentropy" = xyes; then : 20804 cat >>confdefs.h <<_ACEOF 20805#define HAVE_GETENTROPY 1 20806_ACEOF 20807 20808else 20809 20810 if test "$USE_WINSOCK" = 1; then 20811 case " $LIBOBJS " in 20812 *" getentropy_win.$ac_objext "* ) ;; 20813 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext" 20814 ;; 20815esac 20816 20817 else 20818 case "$host" in 20819 Darwin|*darwin*) 20820 case " $LIBOBJS " in 20821 *" getentropy_osx.$ac_objext "* ) ;; 20822 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext" 20823 ;; 20824esac 20825 20826 ;; 20827 *solaris*|*sunos*|SunOS) 20828 case " $LIBOBJS " in 20829 *" getentropy_solaris.$ac_objext "* ) ;; 20830 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext" 20831 ;; 20832esac 20833 20834 for ac_header in sys/sha2.h 20835do : 20836 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default 20837" 20838if test "x$ac_cv_header_sys_sha2_h" = xyes; then : 20839 cat >>confdefs.h <<_ACEOF 20840#define HAVE_SYS_SHA2_H 1 20841_ACEOF 20842 20843else 20844 20845 for ac_func in SHA512_Update 20846do : 20847 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 20848if test "x$ac_cv_func_SHA512_Update" = xyes; then : 20849 cat >>confdefs.h <<_ACEOF 20850#define HAVE_SHA512_UPDATE 1 20851_ACEOF 20852 20853else 20854 20855 case " $LIBOBJS " in 20856 *" sha512.$ac_objext "* ) ;; 20857 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 20858 ;; 20859esac 20860 20861 20862fi 20863done 20864 20865 20866fi 20867 20868done 20869 20870 if test "$ac_cv_header_sys_sha2_h" = "yes"; then 20871 # this lib needed for sha2 on solaris 20872 LIBS="$LIBS -lmd" 20873 fi 20874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 20875$as_echo_n "checking for library containing clock_gettime... " >&6; } 20876if ${ac_cv_search_clock_gettime+:} false; then : 20877 $as_echo_n "(cached) " >&6 20878else 20879 ac_func_search_save_LIBS=$LIBS 20880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20881/* end confdefs.h. */ 20882 20883/* Override any GCC internal prototype to avoid an error. 20884 Use char because int might match the return type of a GCC 20885 builtin and then its argument prototype would still apply. */ 20886#ifdef __cplusplus 20887extern "C" 20888#endif 20889char clock_gettime (); 20890int 20891main () 20892{ 20893return clock_gettime (); 20894 ; 20895 return 0; 20896} 20897_ACEOF 20898for ac_lib in '' rt; do 20899 if test -z "$ac_lib"; then 20900 ac_res="none required" 20901 else 20902 ac_res=-l$ac_lib 20903 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20904 fi 20905 if ac_fn_c_try_link "$LINENO"; then : 20906 ac_cv_search_clock_gettime=$ac_res 20907fi 20908rm -f core conftest.err conftest.$ac_objext \ 20909 conftest$ac_exeext 20910 if ${ac_cv_search_clock_gettime+:} false; then : 20911 break 20912fi 20913done 20914if ${ac_cv_search_clock_gettime+:} false; then : 20915 20916else 20917 ac_cv_search_clock_gettime=no 20918fi 20919rm conftest.$ac_ext 20920LIBS=$ac_func_search_save_LIBS 20921fi 20922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 20923$as_echo "$ac_cv_search_clock_gettime" >&6; } 20924ac_res=$ac_cv_search_clock_gettime 20925if test "$ac_res" != no; then : 20926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20927 20928fi 20929 20930 ;; 20931 *freebsd*|*FreeBSD) 20932 case " $LIBOBJS " in 20933 *" getentropy_freebsd.$ac_objext "* ) ;; 20934 *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext" 20935 ;; 20936esac 20937 20938 ;; 20939 *linux*|Linux|*) 20940 case " $LIBOBJS " in 20941 *" getentropy_linux.$ac_objext "* ) ;; 20942 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext" 20943 ;; 20944esac 20945 20946 for ac_func in SHA512_Update 20947do : 20948 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 20949if test "x$ac_cv_func_SHA512_Update" = xyes; then : 20950 cat >>confdefs.h <<_ACEOF 20951#define HAVE_SHA512_UPDATE 1 20952_ACEOF 20953 20954else 20955 20956 20957$as_echo "#define COMPAT_SHA512 1" >>confdefs.h 20958 20959 case " $LIBOBJS " in 20960 *" sha512.$ac_objext "* ) ;; 20961 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 20962 ;; 20963esac 20964 20965 20966fi 20967done 20968 20969 for ac_header in sys/sysctl.h 20970do : 20971 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 20972" 20973if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 20974 cat >>confdefs.h <<_ACEOF 20975#define HAVE_SYS_SYSCTL_H 1 20976_ACEOF 20977 20978fi 20979 20980done 20981 20982 for ac_func in getauxval 20983do : 20984 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval" 20985if test "x$ac_cv_func_getauxval" = xyes; then : 20986 cat >>confdefs.h <<_ACEOF 20987#define HAVE_GETAUXVAL 1 20988_ACEOF 20989 20990fi 20991done 20992 20993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 20994$as_echo_n "checking for library containing clock_gettime... " >&6; } 20995if ${ac_cv_search_clock_gettime+:} false; then : 20996 $as_echo_n "(cached) " >&6 20997else 20998 ac_func_search_save_LIBS=$LIBS 20999cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21000/* end confdefs.h. */ 21001 21002/* Override any GCC internal prototype to avoid an error. 21003 Use char because int might match the return type of a GCC 21004 builtin and then its argument prototype would still apply. */ 21005#ifdef __cplusplus 21006extern "C" 21007#endif 21008char clock_gettime (); 21009int 21010main () 21011{ 21012return clock_gettime (); 21013 ; 21014 return 0; 21015} 21016_ACEOF 21017for ac_lib in '' rt; do 21018 if test -z "$ac_lib"; then 21019 ac_res="none required" 21020 else 21021 ac_res=-l$ac_lib 21022 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21023 fi 21024 if ac_fn_c_try_link "$LINENO"; then : 21025 ac_cv_search_clock_gettime=$ac_res 21026fi 21027rm -f core conftest.err conftest.$ac_objext \ 21028 conftest$ac_exeext 21029 if ${ac_cv_search_clock_gettime+:} false; then : 21030 break 21031fi 21032done 21033if ${ac_cv_search_clock_gettime+:} false; then : 21034 21035else 21036 ac_cv_search_clock_gettime=no 21037fi 21038rm conftest.$ac_ext 21039LIBS=$ac_func_search_save_LIBS 21040fi 21041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 21042$as_echo "$ac_cv_search_clock_gettime" >&6; } 21043ac_res=$ac_cv_search_clock_gettime 21044if test "$ac_res" != no; then : 21045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21046 21047fi 21048 21049 ;; 21050 esac 21051 fi 21052 21053fi 21054done 21055 21056 fi 21057fi 21058LIBOBJ_WITHOUT_CTIME="$LIBOBJS" 21059 21060ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 21061if test "x$ac_cv_func_ctime_r" = xyes; then : 21062 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 21063 21064else 21065 case " $LIBOBJS " in 21066 *" ctime_r.$ac_objext "* ) ;; 21067 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 21068 ;; 21069esac 21070 21071fi 21072 21073 21074ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 21075if test "x$ac_cv_func_strsep" = xyes; then : 21076 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h 21077 21078else 21079 case " $LIBOBJS " in 21080 *" strsep.$ac_objext "* ) ;; 21081 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 21082 ;; 21083esac 21084 21085fi 21086 21087 21088 21089# Check whether --enable-allsymbols was given. 21090if test "${enable_allsymbols+set}" = set; then : 21091 enableval=$enable_allsymbols; 21092fi 21093 21094case "$enable_allsymbols" in 21095 yes) 21096 COMMON_OBJ_ALL_SYMBOLS="" 21097 UBSYMS="" 21098 EXTRALINK="libunbound.la" 21099 21100$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h 21101 21102 ;; 21103 no|*) 21104 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)' 21105 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def' 21106 EXTRALINK="" 21107 ;; 21108esac 21109 21110 21111 21112if test x_$enable_lock_checks = x_yes; then 21113 UBSYMS="-export-symbols clubsyms.def" 21114 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def 21115 echo lock_protect >> clubsyms.def 21116 echo lock_unprotect >> clubsyms.def 21117 echo lock_get_mem >> clubsyms.def 21118 echo checklock_start >> clubsyms.def 21119 echo checklock_stop >> clubsyms.def 21120 echo checklock_lock >> clubsyms.def 21121 echo checklock_unlock >> clubsyms.def 21122 echo checklock_init >> clubsyms.def 21123 echo checklock_thrcreate >> clubsyms.def 21124 echo checklock_thrjoin >> clubsyms.def 21125fi 21126 21127# check for dnstap if requested 21128 21129 # Check whether --enable-dnstap was given. 21130if test "${enable_dnstap+set}" = set; then : 21131 enableval=$enable_dnstap; opt_dnstap=$enableval 21132else 21133 opt_dnstap=no 21134fi 21135 21136 21137 21138# Check whether --with-dnstap-socket-path was given. 21139if test "${with_dnstap_socket_path+set}" = set; then : 21140 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval 21141else 21142 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock" 21143fi 21144 21145 21146 if test "x$opt_dnstap" != "xno"; then 21147 # Extract the first word of "protoc-c", so it can be a program name with args. 21148set dummy protoc-c; ac_word=$2 21149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21150$as_echo_n "checking for $ac_word... " >&6; } 21151if ${ac_cv_path_PROTOC_C+:} false; then : 21152 $as_echo_n "(cached) " >&6 21153else 21154 case $PROTOC_C in 21155 [\\/]* | ?:[\\/]*) 21156 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 21157 ;; 21158 *) 21159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21160for as_dir in $PATH 21161do 21162 IFS=$as_save_IFS 21163 test -z "$as_dir" && as_dir=. 21164 for ac_exec_ext in '' $ac_executable_extensions; do 21165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21166 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext" 21167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21168 break 2 21169 fi 21170done 21171 done 21172IFS=$as_save_IFS 21173 21174 ;; 21175esac 21176fi 21177PROTOC_C=$ac_cv_path_PROTOC_C 21178if test -n "$PROTOC_C"; then 21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 21180$as_echo "$PROTOC_C" >&6; } 21181else 21182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21183$as_echo "no" >&6; } 21184fi 21185 21186 21187 if test -z "$PROTOC_C"; then 21188 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5 21189 fi 21190 21191# Check whether --with-protobuf-c was given. 21192if test "${with_protobuf_c+set}" = set; then : 21193 withval=$with_protobuf_c; 21194 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 21195 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then 21196 CFLAGS="$CFLAGS -I$withval/include/google" 21197 else 21198 CFLAGS="$CFLAGS -I$withval/include" 21199 fi 21200 LDFLAGS="$LDFLAGS -L$withval/lib" 21201 21202else 21203 21204 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 21205 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 21206 CFLAGS="$CFLAGS -I/usr/include/google" 21207 else 21208 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 21209 CFLAGS="$CFLAGS -I/usr/local/include/google" 21210 LDFLAGS="$LDFLAGS -L/usr/local/lib" 21211 fi 21212 fi 21213 21214fi 21215 21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5 21217$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; } 21218if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 21219 $as_echo_n "(cached) " >&6 21220else 21221 ac_func_search_save_LIBS=$LIBS 21222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21223/* end confdefs.h. */ 21224 21225/* Override any GCC internal prototype to avoid an error. 21226 Use char because int might match the return type of a GCC 21227 builtin and then its argument prototype would still apply. */ 21228#ifdef __cplusplus 21229extern "C" 21230#endif 21231char protobuf_c_message_pack (); 21232int 21233main () 21234{ 21235return protobuf_c_message_pack (); 21236 ; 21237 return 0; 21238} 21239_ACEOF 21240for ac_lib in '' protobuf-c; do 21241 if test -z "$ac_lib"; then 21242 ac_res="none required" 21243 else 21244 ac_res=-l$ac_lib 21245 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21246 fi 21247 if ac_fn_c_try_link "$LINENO"; then : 21248 ac_cv_search_protobuf_c_message_pack=$ac_res 21249fi 21250rm -f core conftest.err conftest.$ac_objext \ 21251 conftest$ac_exeext 21252 if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 21253 break 21254fi 21255done 21256if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 21257 21258else 21259 ac_cv_search_protobuf_c_message_pack=no 21260fi 21261rm conftest.$ac_ext 21262LIBS=$ac_func_search_save_LIBS 21263fi 21264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5 21265$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; } 21266ac_res=$ac_cv_search_protobuf_c_message_pack 21267if test "$ac_res" != no; then : 21268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21269 21270else 21271 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5 21272fi 21273 21274 21275 21276$as_echo "#define USE_DNSTAP 1" >>confdefs.h 21277 21278 ENABLE_DNSTAP=1 21279 21280 21281 21282 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`" 21283 21284 21285cat >>confdefs.h <<_ACEOF 21286#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path" 21287_ACEOF 21288 21289 DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path" 21290 21291 DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)' 21292 21293 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c" 21294 21295 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo" 21296 21297 21298 else 21299 21300 ENABLE_DNSTAP=0 21301 21302 21303 21304 fi 21305 21306 21307# check for dnscrypt if requested 21308 21309 # Check whether --enable-dnscrypt was given. 21310if test "${enable_dnscrypt+set}" = set; then : 21311 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval 21312else 21313 opt_dnscrypt=no 21314fi 21315 21316 21317 if test "x$opt_dnscrypt" != "xno"; then 21318 21319# Check whether --with-libsodium was given. 21320if test "${with_libsodium+set}" = set; then : 21321 withval=$with_libsodium; 21322 CFLAGS="$CFLAGS -I$withval/include" 21323 LDFLAGS="$LDFLAGS -L$withval/lib" 21324 21325fi 21326 21327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5 21328$as_echo_n "checking for library containing sodium_init... " >&6; } 21329if ${ac_cv_search_sodium_init+:} false; then : 21330 $as_echo_n "(cached) " >&6 21331else 21332 ac_func_search_save_LIBS=$LIBS 21333cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21334/* end confdefs.h. */ 21335 21336/* Override any GCC internal prototype to avoid an error. 21337 Use char because int might match the return type of a GCC 21338 builtin and then its argument prototype would still apply. */ 21339#ifdef __cplusplus 21340extern "C" 21341#endif 21342char sodium_init (); 21343int 21344main () 21345{ 21346return sodium_init (); 21347 ; 21348 return 0; 21349} 21350_ACEOF 21351for ac_lib in '' sodium; do 21352 if test -z "$ac_lib"; then 21353 ac_res="none required" 21354 else 21355 ac_res=-l$ac_lib 21356 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21357 fi 21358 if ac_fn_c_try_link "$LINENO"; then : 21359 ac_cv_search_sodium_init=$ac_res 21360fi 21361rm -f core conftest.err conftest.$ac_objext \ 21362 conftest$ac_exeext 21363 if ${ac_cv_search_sodium_init+:} false; then : 21364 break 21365fi 21366done 21367if ${ac_cv_search_sodium_init+:} false; then : 21368 21369else 21370 ac_cv_search_sodium_init=no 21371fi 21372rm conftest.$ac_ext 21373LIBS=$ac_func_search_save_LIBS 21374fi 21375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5 21376$as_echo "$ac_cv_search_sodium_init" >&6; } 21377ac_res=$ac_cv_search_sodium_init 21378if test "$ac_res" != no; then : 21379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21380 21381else 21382 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5 21383fi 21384 21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5 21386$as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; } 21387if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then : 21388 $as_echo_n "(cached) " >&6 21389else 21390 ac_func_search_save_LIBS=$LIBS 21391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21392/* end confdefs.h. */ 21393 21394/* Override any GCC internal prototype to avoid an error. 21395 Use char because int might match the return type of a GCC 21396 builtin and then its argument prototype would still apply. */ 21397#ifdef __cplusplus 21398extern "C" 21399#endif 21400char crypto_box_curve25519xchacha20poly1305_beforenm (); 21401int 21402main () 21403{ 21404return crypto_box_curve25519xchacha20poly1305_beforenm (); 21405 ; 21406 return 0; 21407} 21408_ACEOF 21409for ac_lib in '' sodium; do 21410 if test -z "$ac_lib"; then 21411 ac_res="none required" 21412 else 21413 ac_res=-l$ac_lib 21414 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21415 fi 21416 if ac_fn_c_try_link "$LINENO"; then : 21417 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res 21418fi 21419rm -f core conftest.err conftest.$ac_objext \ 21420 conftest$ac_exeext 21421 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then : 21422 break 21423fi 21424done 21425if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then : 21426 21427else 21428 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no 21429fi 21430rm conftest.$ac_ext 21431LIBS=$ac_func_search_save_LIBS 21432fi 21433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5 21434$as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; } 21435ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm 21436if test "$ac_res" != no; then : 21437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21438 21439 ENABLE_DNSCRYPT_XCHACHA20=1 21440 21441 21442$as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h 21443 21444 21445else 21446 21447 ENABLE_DNSCRYPT_XCHACHA20=0 21448 21449 21450fi 21451 21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5 21453$as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; } 21454if ${ac_cv_search_sodium_set_misuse_handler+:} false; then : 21455 $as_echo_n "(cached) " >&6 21456else 21457 ac_func_search_save_LIBS=$LIBS 21458cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21459/* end confdefs.h. */ 21460 21461/* Override any GCC internal prototype to avoid an error. 21462 Use char because int might match the return type of a GCC 21463 builtin and then its argument prototype would still apply. */ 21464#ifdef __cplusplus 21465extern "C" 21466#endif 21467char sodium_set_misuse_handler (); 21468int 21469main () 21470{ 21471return sodium_set_misuse_handler (); 21472 ; 21473 return 0; 21474} 21475_ACEOF 21476for ac_lib in '' sodium; do 21477 if test -z "$ac_lib"; then 21478 ac_res="none required" 21479 else 21480 ac_res=-l$ac_lib 21481 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21482 fi 21483 if ac_fn_c_try_link "$LINENO"; then : 21484 ac_cv_search_sodium_set_misuse_handler=$ac_res 21485fi 21486rm -f core conftest.err conftest.$ac_objext \ 21487 conftest$ac_exeext 21488 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then : 21489 break 21490fi 21491done 21492if ${ac_cv_search_sodium_set_misuse_handler+:} false; then : 21493 21494else 21495 ac_cv_search_sodium_set_misuse_handler=no 21496fi 21497rm conftest.$ac_ext 21498LIBS=$ac_func_search_save_LIBS 21499fi 21500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5 21501$as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; } 21502ac_res=$ac_cv_search_sodium_set_misuse_handler 21503if test "$ac_res" != no; then : 21504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21505 21506 21507$as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h 21508 21509 21510fi 21511 21512 21513 21514$as_echo "#define USE_DNSCRYPT 1" >>confdefs.h 21515 21516 ENABLE_DNSCRYPT=1 21517 21518 21519 DNSCRYPT_SRC="dnscrypt/dnscrypt.c" 21520 21521 DNSCRYPT_OBJ="dnscrypt.lo" 21522 21523 21524 else 21525 ENABLE_DNSCRYPT_XCHACHA20=0 21526 21527 21528 ENABLE_DNSCRYPT=0 21529 21530 21531 21532 fi 21533 21534 21535# check for cachedb if requested 21536# Check whether --enable-cachedb was given. 21537if test "${enable_cachedb+set}" = set; then : 21538 enableval=$enable_cachedb; 21539fi 21540 21541# turn on cachedb when hiredis support is enabled. 21542if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi 21543case "$enable_cachedb" in 21544 yes) 21545 21546$as_echo "#define USE_CACHEDB 1" >>confdefs.h 21547 21548 CACHEDB_SRC="cachedb/cachedb.c cachedb/redis.c" 21549 21550 CACHEDB_OBJ="cachedb.lo redis.lo" 21551 21552 ;; 21553 no|*) 21554 # nothing 21555 ;; 21556esac 21557 21558# check for ipsecmod if requested 21559# Check whether --enable-ipsecmod was given. 21560if test "${enable_ipsecmod+set}" = set; then : 21561 enableval=$enable_ipsecmod; 21562fi 21563 21564case "$enable_ipsecmod" in 21565 yes) 21566 21567$as_echo "#define USE_IPSECMOD 1" >>confdefs.h 21568 21569 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo" 21570 21571 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h' 21572 21573 ;; 21574 no|*) 21575 # nothing 21576 ;; 21577esac 21578 21579# check for ipset if requested 21580# Check whether --enable-ipset was given. 21581if test "${enable_ipset+set}" = set; then : 21582 enableval=$enable_ipset; 21583fi 21584 21585case "$enable_ipset" in 21586 yes) 21587 21588$as_echo "#define USE_IPSET 1" >>confdefs.h 21589 21590 IPSET_SRC="ipset/ipset.c" 21591 21592 IPSET_OBJ="ipset.lo" 21593 21594 21595 # mnl 21596 21597# Check whether --with-libmnl was given. 21598if test "${with_libmnl+set}" = set; then : 21599 withval=$with_libmnl; 21600else 21601 withval="yes" 21602fi 21603 21604 found_libmnl="no" 21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5 21606$as_echo_n "checking for libmnl... " >&6; } 21607 if test x_$withval = x_ -o x_$withval = x_yes; then 21608 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 21609 fi 21610 for dir in $withval ; do 21611 if test -f "$dir/include/libmnl/libmnl.h"; then 21612 found_libmnl="yes" 21613 if test "$dir" != "/usr"; then 21614 CPPFLAGS="$CPPFLAGS -I$dir/include" 21615 LDFLAGS="$LDFLAGS -L$dir/lib" 21616 fi 21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 21618$as_echo "found in $dir" >&6; } 21619 LIBS="$LIBS -lmnl" 21620 break; 21621 fi 21622 done 21623 if test x_$found_libmnl != x_yes; then 21624 as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5 21625 fi 21626 ;; 21627 no|*) 21628 # nothing 21629 ;; 21630esac 21631# Check whether --enable-explicit-port-randomisation was given. 21632if test "${enable_explicit_port_randomisation+set}" = set; then : 21633 enableval=$enable_explicit_port_randomisation; 21634fi 21635 21636case "$enable_explicit_port_randomisation" in 21637 no) 21638 21639$as_echo "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h 21640 21641 ;; 21642 yes|*) 21643 ;; 21644esac 21645 21646if echo "$host" | $GREP -i -e linux >/dev/null; then 21647 # Check whether --enable-linux-ip-local-port-range was given. 21648if test "${enable_linux_ip_local_port_range+set}" = set; then : 21649 enableval=$enable_linux_ip_local_port_range; 21650fi 21651 21652 case "$enable_linux_ip_local_port_range" in 21653 yes) 21654 21655$as_echo "#define USE_LINUX_IP_LOCAL_PORT_RANGE 1" >>confdefs.h 21656 21657 ;; 21658 no|*) 21659 ;; 21660 esac 21661fi 21662 21663 21664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5 21665$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; } 21666# on openBSD, the implicit rule make $< work. 21667# on Solaris, it does not work ($? is changed sources, $^ lists dependencies). 21668# gmake works. 21669cat >conftest.make <<EOF 21670all: conftest.lo 21671 21672conftest.lo foo.lo bla.lo: 21673 if test -f "\$<"; then touch \$@; fi 21674 21675.SUFFIXES: .lo 21676.c.lo: 21677 if test -f "\$<"; then touch \$@; fi 21678 21679conftest.lo: conftest.dir/conftest.c 21680EOF 21681mkdir conftest.dir 21682touch conftest.dir/conftest.c 21683rm -f conftest.lo conftest.c 21684${MAKE:-make} -f conftest.make >/dev/null 21685rm -f conftest.make conftest.c conftest.dir/conftest.c 21686rm -rf conftest.dir 21687if test ! -f conftest.lo; then 21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21689$as_echo "no" >&6; } 21690 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source' 21691 SOURCEFILE='`cat .source`' 21692else 21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21694$as_echo "yes" >&6; } 21695 SOURCEDETERMINE=':' 21696 SOURCEFILE='$<' 21697fi 21698rm -f conftest.lo 21699 21700 21701 21702# see if we want to build the library or everything 21703ALLTARGET="alltargets" 21704INSTALLTARGET="install-all" 21705 21706# Check whether --with-libunbound-only was given. 21707if test "${with_libunbound_only+set}" = set; then : 21708 withval=$with_libunbound_only; 21709 if test "$withval" = "yes"; then 21710 ALLTARGET="lib" 21711 INSTALLTARGET="install-lib" 21712 fi 21713 21714fi 21715 21716if test $ALLTARGET = "alltargets"; then 21717 if test $USE_NSS = "yes"; then 21718 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5 21719 fi 21720 if test $USE_NETTLE = "yes"; then 21721 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5 21722 fi 21723fi 21724 21725 21726 21727 21728 21729 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5 21730$as_echo "$as_me: Stripping extension flags..." >&6;} 21731 21732 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then 21733 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`" 21734 21735$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h 21736 21737 fi 21738 21739 21740 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then 21741 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`" 21742 21743$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h 21744 21745 fi 21746 21747 21748 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then 21749 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`" 21750 21751$as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h 21752 21753 fi 21754 21755 21756 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then 21757 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`" 21758 21759$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h 21760 21761 fi 21762 21763 21764 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then 21765 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`" 21766 21767$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h 21768 21769 fi 21770 21771 21772 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then 21773 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`" 21774 21775$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h 21776 21777 fi 21778 21779 21780 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then 21781 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`" 21782 21783$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h 21784 21785 fi 21786 21787 21788 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then 21789 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`" 21790 21791$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h 21792 21793 fi 21794 21795 21796 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then 21797 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`" 21798 21799$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h 21800 21801 fi 21802 21803 21804if test -n "$LATE_LDFLAGS"; then 21805 LDFLAGS="$LATE_LDFLAGS $LDFLAGS" 21806fi 21807# remove start spaces 21808LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'` 21809LIBS=`echo "$LIBS"|sed -e 's/^ *//'` 21810 21811 21812cat >>confdefs.h <<_ACEOF 21813#define MAXSYSLOGMSGLEN 10240 21814_ACEOF 21815 21816 21817 21818 21819version=1.13.2 21820 21821date=`date +'%b %e, %Y'` 21822 21823 21824ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h contrib/libunbound.pc contrib/unbound.socket contrib/unbound.service contrib/unbound_portable.service" 21825 21826ac_config_headers="$ac_config_headers config.h" 21827 21828cat >confcache <<\_ACEOF 21829# This file is a shell script that caches the results of configure 21830# tests run on this system so they can be shared between configure 21831# scripts and configure runs, see configure's option --config-cache. 21832# It is not useful on other systems. If it contains results you don't 21833# want to keep, you may remove or edit it. 21834# 21835# config.status only pays attention to the cache file if you give it 21836# the --recheck option to rerun configure. 21837# 21838# `ac_cv_env_foo' variables (set or unset) will be overridden when 21839# loading this file, other *unset* `ac_cv_foo' will be assigned the 21840# following values. 21841 21842_ACEOF 21843 21844# The following way of writing the cache mishandles newlines in values, 21845# but we know of no workaround that is simple, portable, and efficient. 21846# So, we kill variables containing newlines. 21847# Ultrix sh set writes to stderr and can't be redirected directly, 21848# and sets the high bit in the cache file unless we assign to the vars. 21849( 21850 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21851 eval ac_val=\$$ac_var 21852 case $ac_val in #( 21853 *${as_nl}*) 21854 case $ac_var in #( 21855 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21856$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21857 esac 21858 case $ac_var in #( 21859 _ | IFS | as_nl) ;; #( 21860 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21861 *) { eval $ac_var=; unset $ac_var;} ;; 21862 esac ;; 21863 esac 21864 done 21865 21866 (set) 2>&1 | 21867 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21868 *${as_nl}ac_space=\ *) 21869 # `set' does not quote correctly, so add quotes: double-quote 21870 # substitution turns \\\\ into \\, and sed turns \\ into \. 21871 sed -n \ 21872 "s/'/'\\\\''/g; 21873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21874 ;; #( 21875 *) 21876 # `set' quotes correctly as required by POSIX, so do not add quotes. 21877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21878 ;; 21879 esac | 21880 sort 21881) | 21882 sed ' 21883 /^ac_cv_env_/b end 21884 t clear 21885 :clear 21886 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21887 t end 21888 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21889 :end' >>confcache 21890if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21891 if test -w "$cache_file"; then 21892 if test "x$cache_file" != "x/dev/null"; then 21893 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21894$as_echo "$as_me: updating cache $cache_file" >&6;} 21895 if test ! -f "$cache_file" || test -h "$cache_file"; then 21896 cat confcache >"$cache_file" 21897 else 21898 case $cache_file in #( 21899 */* | ?:*) 21900 mv -f confcache "$cache_file"$$ && 21901 mv -f "$cache_file"$$ "$cache_file" ;; #( 21902 *) 21903 mv -f confcache "$cache_file" ;; 21904 esac 21905 fi 21906 fi 21907 else 21908 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21909$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21910 fi 21911fi 21912rm -f confcache 21913 21914test "x$prefix" = xNONE && prefix=$ac_default_prefix 21915# Let make expand exec_prefix. 21916test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21917 21918DEFS=-DHAVE_CONFIG_H 21919 21920ac_libobjs= 21921ac_ltlibobjs= 21922U= 21923for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21924 # 1. Remove the extension, and $U if already installed. 21925 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21926 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21927 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21928 # will be set to the directory where LIBOBJS objects are built. 21929 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21930 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21931done 21932LIBOBJS=$ac_libobjs 21933 21934LTLIBOBJS=$ac_ltlibobjs 21935 21936 21937if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then 21938 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined. 21939Usually this means the macro was only invoked conditionally." "$LINENO" 5 21940fi 21941 21942: "${CONFIG_STATUS=./config.status}" 21943ac_write_fail=0 21944ac_clean_files_save=$ac_clean_files 21945ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21946{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21947$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21948as_write_fail=0 21949cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21950#! $SHELL 21951# Generated by $as_me. 21952# Run this file to recreate the current configuration. 21953# Compiler output produced by configure, useful for debugging 21954# configure, is in config.log if it exists. 21955 21956debug=false 21957ac_cs_recheck=false 21958ac_cs_silent=false 21959 21960SHELL=\${CONFIG_SHELL-$SHELL} 21961export SHELL 21962_ASEOF 21963cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21964## -------------------- ## 21965## M4sh Initialization. ## 21966## -------------------- ## 21967 21968# Be more Bourne compatible 21969DUALCASE=1; export DUALCASE # for MKS sh 21970if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21971 emulate sh 21972 NULLCMD=: 21973 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21974 # is contrary to our usage. Disable this feature. 21975 alias -g '${1+"$@"}'='"$@"' 21976 setopt NO_GLOB_SUBST 21977else 21978 case `(set -o) 2>/dev/null` in #( 21979 *posix*) : 21980 set -o posix ;; #( 21981 *) : 21982 ;; 21983esac 21984fi 21985 21986 21987as_nl=' 21988' 21989export as_nl 21990# Printing a long string crashes Solaris 7 /usr/bin/printf. 21991as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21992as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21993as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21994# Prefer a ksh shell builtin over an external printf program on Solaris, 21995# but without wasting forks for bash or zsh. 21996if test -z "$BASH_VERSION$ZSH_VERSION" \ 21997 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21998 as_echo='print -r --' 21999 as_echo_n='print -rn --' 22000elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22001 as_echo='printf %s\n' 22002 as_echo_n='printf %s' 22003else 22004 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22005 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22006 as_echo_n='/usr/ucb/echo -n' 22007 else 22008 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22009 as_echo_n_body='eval 22010 arg=$1; 22011 case $arg in #( 22012 *"$as_nl"*) 22013 expr "X$arg" : "X\\(.*\\)$as_nl"; 22014 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22015 esac; 22016 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22017 ' 22018 export as_echo_n_body 22019 as_echo_n='sh -c $as_echo_n_body as_echo' 22020 fi 22021 export as_echo_body 22022 as_echo='sh -c $as_echo_body as_echo' 22023fi 22024 22025# The user is always right. 22026if test "${PATH_SEPARATOR+set}" != set; then 22027 PATH_SEPARATOR=: 22028 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22029 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22030 PATH_SEPARATOR=';' 22031 } 22032fi 22033 22034 22035# IFS 22036# We need space, tab and new line, in precisely that order. Quoting is 22037# there to prevent editors from complaining about space-tab. 22038# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22039# splitting by setting IFS to empty value.) 22040IFS=" "" $as_nl" 22041 22042# Find who we are. Look in the path if we contain no directory separator. 22043as_myself= 22044case $0 in #(( 22045 *[\\/]* ) as_myself=$0 ;; 22046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22047for as_dir in $PATH 22048do 22049 IFS=$as_save_IFS 22050 test -z "$as_dir" && as_dir=. 22051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22052 done 22053IFS=$as_save_IFS 22054 22055 ;; 22056esac 22057# We did not find ourselves, most probably we were run as `sh COMMAND' 22058# in which case we are not to be found in the path. 22059if test "x$as_myself" = x; then 22060 as_myself=$0 22061fi 22062if test ! -f "$as_myself"; then 22063 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22064 exit 1 22065fi 22066 22067# Unset variables that we do not need and which cause bugs (e.g. in 22068# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22069# suppresses any "Segmentation fault" message there. '((' could 22070# trigger a bug in pdksh 5.2.14. 22071for as_var in BASH_ENV ENV MAIL MAILPATH 22072do eval test x\${$as_var+set} = xset \ 22073 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22074done 22075PS1='$ ' 22076PS2='> ' 22077PS4='+ ' 22078 22079# NLS nuisances. 22080LC_ALL=C 22081export LC_ALL 22082LANGUAGE=C 22083export LANGUAGE 22084 22085# CDPATH. 22086(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22087 22088 22089# as_fn_error STATUS ERROR [LINENO LOG_FD] 22090# ---------------------------------------- 22091# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22092# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22093# script with STATUS, using 1 if that was 0. 22094as_fn_error () 22095{ 22096 as_status=$1; test $as_status -eq 0 && as_status=1 22097 if test "$4"; then 22098 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22099 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22100 fi 22101 $as_echo "$as_me: error: $2" >&2 22102 as_fn_exit $as_status 22103} # as_fn_error 22104 22105 22106# as_fn_set_status STATUS 22107# ----------------------- 22108# Set $? to STATUS, without forking. 22109as_fn_set_status () 22110{ 22111 return $1 22112} # as_fn_set_status 22113 22114# as_fn_exit STATUS 22115# ----------------- 22116# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22117as_fn_exit () 22118{ 22119 set +e 22120 as_fn_set_status $1 22121 exit $1 22122} # as_fn_exit 22123 22124# as_fn_unset VAR 22125# --------------- 22126# Portably unset VAR. 22127as_fn_unset () 22128{ 22129 { eval $1=; unset $1;} 22130} 22131as_unset=as_fn_unset 22132# as_fn_append VAR VALUE 22133# ---------------------- 22134# Append the text in VALUE to the end of the definition contained in VAR. Take 22135# advantage of any shell optimizations that allow amortized linear growth over 22136# repeated appends, instead of the typical quadratic growth present in naive 22137# implementations. 22138if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22139 eval 'as_fn_append () 22140 { 22141 eval $1+=\$2 22142 }' 22143else 22144 as_fn_append () 22145 { 22146 eval $1=\$$1\$2 22147 } 22148fi # as_fn_append 22149 22150# as_fn_arith ARG... 22151# ------------------ 22152# Perform arithmetic evaluation on the ARGs, and store the result in the 22153# global $as_val. Take advantage of shells that can avoid forks. The arguments 22154# must be portable across $(()) and expr. 22155if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22156 eval 'as_fn_arith () 22157 { 22158 as_val=$(( $* )) 22159 }' 22160else 22161 as_fn_arith () 22162 { 22163 as_val=`expr "$@" || test $? -eq 1` 22164 } 22165fi # as_fn_arith 22166 22167 22168if expr a : '\(a\)' >/dev/null 2>&1 && 22169 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22170 as_expr=expr 22171else 22172 as_expr=false 22173fi 22174 22175if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22176 as_basename=basename 22177else 22178 as_basename=false 22179fi 22180 22181if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22182 as_dirname=dirname 22183else 22184 as_dirname=false 22185fi 22186 22187as_me=`$as_basename -- "$0" || 22188$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22189 X"$0" : 'X\(//\)$' \| \ 22190 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22191$as_echo X/"$0" | 22192 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22193 s//\1/ 22194 q 22195 } 22196 /^X\/\(\/\/\)$/{ 22197 s//\1/ 22198 q 22199 } 22200 /^X\/\(\/\).*/{ 22201 s//\1/ 22202 q 22203 } 22204 s/.*/./; q'` 22205 22206# Avoid depending upon Character Ranges. 22207as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22208as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22209as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22210as_cr_digits='0123456789' 22211as_cr_alnum=$as_cr_Letters$as_cr_digits 22212 22213ECHO_C= ECHO_N= ECHO_T= 22214case `echo -n x` in #((((( 22215-n*) 22216 case `echo 'xy\c'` in 22217 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22218 xy) ECHO_C='\c';; 22219 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22220 ECHO_T=' ';; 22221 esac;; 22222*) 22223 ECHO_N='-n';; 22224esac 22225 22226rm -f conf$$ conf$$.exe conf$$.file 22227if test -d conf$$.dir; then 22228 rm -f conf$$.dir/conf$$.file 22229else 22230 rm -f conf$$.dir 22231 mkdir conf$$.dir 2>/dev/null 22232fi 22233if (echo >conf$$.file) 2>/dev/null; then 22234 if ln -s conf$$.file conf$$ 2>/dev/null; then 22235 as_ln_s='ln -s' 22236 # ... but there are two gotchas: 22237 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22238 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22239 # In both cases, we have to default to `cp -pR'. 22240 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22241 as_ln_s='cp -pR' 22242 elif ln conf$$.file conf$$ 2>/dev/null; then 22243 as_ln_s=ln 22244 else 22245 as_ln_s='cp -pR' 22246 fi 22247else 22248 as_ln_s='cp -pR' 22249fi 22250rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22251rmdir conf$$.dir 2>/dev/null 22252 22253 22254# as_fn_mkdir_p 22255# ------------- 22256# Create "$as_dir" as a directory, including parents if necessary. 22257as_fn_mkdir_p () 22258{ 22259 22260 case $as_dir in #( 22261 -*) as_dir=./$as_dir;; 22262 esac 22263 test -d "$as_dir" || eval $as_mkdir_p || { 22264 as_dirs= 22265 while :; do 22266 case $as_dir in #( 22267 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22268 *) as_qdir=$as_dir;; 22269 esac 22270 as_dirs="'$as_qdir' $as_dirs" 22271 as_dir=`$as_dirname -- "$as_dir" || 22272$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22273 X"$as_dir" : 'X\(//\)[^/]' \| \ 22274 X"$as_dir" : 'X\(//\)$' \| \ 22275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22276$as_echo X"$as_dir" | 22277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22278 s//\1/ 22279 q 22280 } 22281 /^X\(\/\/\)[^/].*/{ 22282 s//\1/ 22283 q 22284 } 22285 /^X\(\/\/\)$/{ 22286 s//\1/ 22287 q 22288 } 22289 /^X\(\/\).*/{ 22290 s//\1/ 22291 q 22292 } 22293 s/.*/./; q'` 22294 test -d "$as_dir" && break 22295 done 22296 test -z "$as_dirs" || eval "mkdir $as_dirs" 22297 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22298 22299 22300} # as_fn_mkdir_p 22301if mkdir -p . 2>/dev/null; then 22302 as_mkdir_p='mkdir -p "$as_dir"' 22303else 22304 test -d ./-p && rmdir ./-p 22305 as_mkdir_p=false 22306fi 22307 22308 22309# as_fn_executable_p FILE 22310# ----------------------- 22311# Test if FILE is an executable regular file. 22312as_fn_executable_p () 22313{ 22314 test -f "$1" && test -x "$1" 22315} # as_fn_executable_p 22316as_test_x='test -x' 22317as_executable_p=as_fn_executable_p 22318 22319# Sed expression to map a string onto a valid CPP name. 22320as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22321 22322# Sed expression to map a string onto a valid variable name. 22323as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22324 22325 22326exec 6>&1 22327## ----------------------------------- ## 22328## Main body of $CONFIG_STATUS script. ## 22329## ----------------------------------- ## 22330_ASEOF 22331test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22332 22333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22334# Save the log message, to keep $0 and so on meaningful, and to 22335# report actual input values of CONFIG_FILES etc. instead of their 22336# values after options handling. 22337ac_log=" 22338This file was extended by unbound $as_me 1.13.2, which was 22339generated by GNU Autoconf 2.69. Invocation command line was 22340 22341 CONFIG_FILES = $CONFIG_FILES 22342 CONFIG_HEADERS = $CONFIG_HEADERS 22343 CONFIG_LINKS = $CONFIG_LINKS 22344 CONFIG_COMMANDS = $CONFIG_COMMANDS 22345 $ $0 $@ 22346 22347on `(hostname || uname -n) 2>/dev/null | sed 1q` 22348" 22349 22350_ACEOF 22351 22352case $ac_config_files in *" 22353"*) set x $ac_config_files; shift; ac_config_files=$*;; 22354esac 22355 22356case $ac_config_headers in *" 22357"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22358esac 22359 22360 22361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22362# Files that config.status was made for. 22363config_files="$ac_config_files" 22364config_headers="$ac_config_headers" 22365config_commands="$ac_config_commands" 22366 22367_ACEOF 22368 22369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22370ac_cs_usage="\ 22371\`$as_me' instantiates files and other configuration actions 22372from templates according to the current configuration. Unless the files 22373and actions are specified as TAGs, all are instantiated by default. 22374 22375Usage: $0 [OPTION]... [TAG]... 22376 22377 -h, --help print this help, then exit 22378 -V, --version print version number and configuration settings, then exit 22379 --config print configuration, then exit 22380 -q, --quiet, --silent 22381 do not print progress messages 22382 -d, --debug don't remove temporary files 22383 --recheck update $as_me by reconfiguring in the same conditions 22384 --file=FILE[:TEMPLATE] 22385 instantiate the configuration file FILE 22386 --header=FILE[:TEMPLATE] 22387 instantiate the configuration header FILE 22388 22389Configuration files: 22390$config_files 22391 22392Configuration headers: 22393$config_headers 22394 22395Configuration commands: 22396$config_commands 22397 22398Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>." 22399 22400_ACEOF 22401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22402ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22403ac_cs_version="\\ 22404unbound config.status 1.13.2 22405configured by $0, generated by GNU Autoconf 2.69, 22406 with options \\"\$ac_cs_config\\" 22407 22408Copyright (C) 2012 Free Software Foundation, Inc. 22409This config.status script is free software; the Free Software Foundation 22410gives unlimited permission to copy, distribute and modify it." 22411 22412ac_pwd='$ac_pwd' 22413srcdir='$srcdir' 22414AWK='$AWK' 22415test -n "\$AWK" || AWK=awk 22416_ACEOF 22417 22418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22419# The default lists apply if the user does not specify any file. 22420ac_need_defaults=: 22421while test $# != 0 22422do 22423 case $1 in 22424 --*=?*) 22425 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22426 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22427 ac_shift=: 22428 ;; 22429 --*=) 22430 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22431 ac_optarg= 22432 ac_shift=: 22433 ;; 22434 *) 22435 ac_option=$1 22436 ac_optarg=$2 22437 ac_shift=shift 22438 ;; 22439 esac 22440 22441 case $ac_option in 22442 # Handling of the options. 22443 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22444 ac_cs_recheck=: ;; 22445 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22446 $as_echo "$ac_cs_version"; exit ;; 22447 --config | --confi | --conf | --con | --co | --c ) 22448 $as_echo "$ac_cs_config"; exit ;; 22449 --debug | --debu | --deb | --de | --d | -d ) 22450 debug=: ;; 22451 --file | --fil | --fi | --f ) 22452 $ac_shift 22453 case $ac_optarg in 22454 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22455 '') as_fn_error $? "missing file argument" ;; 22456 esac 22457 as_fn_append CONFIG_FILES " '$ac_optarg'" 22458 ac_need_defaults=false;; 22459 --header | --heade | --head | --hea ) 22460 $ac_shift 22461 case $ac_optarg in 22462 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22463 esac 22464 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22465 ac_need_defaults=false;; 22466 --he | --h) 22467 # Conflict between --help and --header 22468 as_fn_error $? "ambiguous option: \`$1' 22469Try \`$0 --help' for more information.";; 22470 --help | --hel | -h ) 22471 $as_echo "$ac_cs_usage"; exit ;; 22472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22473 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22474 ac_cs_silent=: ;; 22475 22476 # This is an error. 22477 -*) as_fn_error $? "unrecognized option: \`$1' 22478Try \`$0 --help' for more information." ;; 22479 22480 *) as_fn_append ac_config_targets " $1" 22481 ac_need_defaults=false ;; 22482 22483 esac 22484 shift 22485done 22486 22487ac_configure_extra_args= 22488 22489if $ac_cs_silent; then 22490 exec 6>/dev/null 22491 ac_configure_extra_args="$ac_configure_extra_args --silent" 22492fi 22493 22494_ACEOF 22495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22496if \$ac_cs_recheck; then 22497 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22498 shift 22499 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22500 CONFIG_SHELL='$SHELL' 22501 export CONFIG_SHELL 22502 exec "\$@" 22503fi 22504 22505_ACEOF 22506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22507exec 5>>config.log 22508{ 22509 echo 22510 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22511## Running $as_me. ## 22512_ASBOX 22513 $as_echo "$ac_log" 22514} >&5 22515 22516_ACEOF 22517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22518# 22519# INIT-COMMANDS 22520# 22521 22522 22523# The HP-UX ksh and POSIX shell print the target directory to stdout 22524# if CDPATH is set. 22525(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22526 22527sed_quote_subst='$sed_quote_subst' 22528double_quote_subst='$double_quote_subst' 22529delay_variable_subst='$delay_variable_subst' 22530macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22531macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22532enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22533enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22534pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22535enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22536shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22537SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22538ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22539PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22540host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22541host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22542host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22543build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22544build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22545build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22546SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22547Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22548GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22549EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22550FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22551LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22552NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22553LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22554max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22555ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22556exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22557lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22558lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22559lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22560lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22561lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22562reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22563reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22564OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22565deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22566file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22567file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22568want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22569DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22570sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22571AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22572AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22573archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22574STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22575RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22576old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22577old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22578old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22579lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22580CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22581CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22582compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22583GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22584lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22585lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22586lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22587lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22588lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 22589lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22590nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22591lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22592lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22593objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22594MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22595lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22596lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22597lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22598lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22599lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22600need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22601MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22602DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22603NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22604LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22605OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22606OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22607libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22608shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22609extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22610archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22611enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22612export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22613whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22614compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22615old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22616old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22617archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22618archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22619module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22620module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22621with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22622allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22623no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22624hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22625hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22626hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22627hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22628hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22629hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22630hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22631inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22632link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22633always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22634export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22635exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22636include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22637prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22638postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22639file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22640variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22641need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22642need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22643version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22644runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22645shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22646shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22647libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22648library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22649soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22650install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22651postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22652postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22653finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22654finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22655hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22656sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22657configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22658configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22659hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22660enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22661enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22662enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22663old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22664striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22665 22666LTCC='$LTCC' 22667LTCFLAGS='$LTCFLAGS' 22668compiler='$compiler_DEFAULT' 22669 22670# A function that is used when there is no print builtin or printf. 22671func_fallback_echo () 22672{ 22673 eval 'cat <<_LTECHO_EOF 22674\$1 22675_LTECHO_EOF' 22676} 22677 22678# Quote evaled strings. 22679for var in SHELL \ 22680ECHO \ 22681PATH_SEPARATOR \ 22682SED \ 22683GREP \ 22684EGREP \ 22685FGREP \ 22686LD \ 22687NM \ 22688LN_S \ 22689lt_SP2NL \ 22690lt_NL2SP \ 22691reload_flag \ 22692OBJDUMP \ 22693deplibs_check_method \ 22694file_magic_cmd \ 22695file_magic_glob \ 22696want_nocaseglob \ 22697DLLTOOL \ 22698sharedlib_from_linklib_cmd \ 22699AR \ 22700AR_FLAGS \ 22701archiver_list_spec \ 22702STRIP \ 22703RANLIB \ 22704CC \ 22705CFLAGS \ 22706compiler \ 22707lt_cv_sys_global_symbol_pipe \ 22708lt_cv_sys_global_symbol_to_cdecl \ 22709lt_cv_sys_global_symbol_to_import \ 22710lt_cv_sys_global_symbol_to_c_name_address \ 22711lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22712lt_cv_nm_interface \ 22713nm_file_list_spec \ 22714lt_cv_truncate_bin \ 22715lt_prog_compiler_no_builtin_flag \ 22716lt_prog_compiler_pic \ 22717lt_prog_compiler_wl \ 22718lt_prog_compiler_static \ 22719lt_cv_prog_compiler_c_o \ 22720need_locks \ 22721MANIFEST_TOOL \ 22722DSYMUTIL \ 22723NMEDIT \ 22724LIPO \ 22725OTOOL \ 22726OTOOL64 \ 22727shrext_cmds \ 22728export_dynamic_flag_spec \ 22729whole_archive_flag_spec \ 22730compiler_needs_object \ 22731with_gnu_ld \ 22732allow_undefined_flag \ 22733no_undefined_flag \ 22734hardcode_libdir_flag_spec \ 22735hardcode_libdir_separator \ 22736exclude_expsyms \ 22737include_expsyms \ 22738file_list_spec \ 22739variables_saved_for_relink \ 22740libname_spec \ 22741library_names_spec \ 22742soname_spec \ 22743install_override_mode \ 22744finish_eval \ 22745old_striplib \ 22746striplib; do 22747 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22748 *[\\\\\\\`\\"\\\$]*) 22749 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22750 ;; 22751 *) 22752 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22753 ;; 22754 esac 22755done 22756 22757# Double-quote double-evaled strings. 22758for var in reload_cmds \ 22759old_postinstall_cmds \ 22760old_postuninstall_cmds \ 22761old_archive_cmds \ 22762extract_expsyms_cmds \ 22763old_archive_from_new_cmds \ 22764old_archive_from_expsyms_cmds \ 22765archive_cmds \ 22766archive_expsym_cmds \ 22767module_cmds \ 22768module_expsym_cmds \ 22769export_symbols_cmds \ 22770prelink_cmds \ 22771postlink_cmds \ 22772postinstall_cmds \ 22773postuninstall_cmds \ 22774finish_cmds \ 22775sys_lib_search_path_spec \ 22776configure_time_dlsearch_path \ 22777configure_time_lt_sys_library_path; do 22778 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22779 *[\\\\\\\`\\"\\\$]*) 22780 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22781 ;; 22782 *) 22783 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22784 ;; 22785 esac 22786done 22787 22788ac_aux_dir='$ac_aux_dir' 22789 22790# See if we are running on zsh, and set the options that allow our 22791# commands through without removal of \ escapes INIT. 22792if test -n "\${ZSH_VERSION+set}"; then 22793 setopt NO_GLOB_SUBST 22794fi 22795 22796 22797 PACKAGE='$PACKAGE' 22798 VERSION='$VERSION' 22799 RM='$RM' 22800 ofile='$ofile' 22801 22802 22803 22804 22805_ACEOF 22806 22807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22808 22809# Handling of arguments. 22810for ac_config_target in $ac_config_targets 22811do 22812 case $ac_config_target in 22813 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22814 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 22815 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22816 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; 22817 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;; 22818 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;; 22819 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;; 22820 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;; 22821 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;; 22822 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;; 22823 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;; 22824 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;; 22825 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;; 22826 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;; 22827 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;; 22828 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;; 22829 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;; 22830 "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;; 22831 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22832 22833 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22834 esac 22835done 22836 22837 22838# If the user did not use the arguments to specify the items to instantiate, 22839# then the envvar interface is used. Set only those that are not. 22840# We use the long form for the default assignment because of an extremely 22841# bizarre bug on SunOS 4.1.3. 22842if $ac_need_defaults; then 22843 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22844 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22845 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22846fi 22847 22848# Have a temporary directory for convenience. Make it in the build tree 22849# simply because there is no reason against having it here, and in addition, 22850# creating and moving files from /tmp can sometimes cause problems. 22851# Hook for its removal unless debugging. 22852# Note that there is a small window in which the directory will not be cleaned: 22853# after its creation but before its name has been assigned to `$tmp'. 22854$debug || 22855{ 22856 tmp= ac_tmp= 22857 trap 'exit_status=$? 22858 : "${ac_tmp:=$tmp}" 22859 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22860' 0 22861 trap 'as_fn_exit 1' 1 2 13 15 22862} 22863# Create a (secure) tmp directory for tmp files. 22864 22865{ 22866 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22867 test -d "$tmp" 22868} || 22869{ 22870 tmp=./conf$$-$RANDOM 22871 (umask 077 && mkdir "$tmp") 22872} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22873ac_tmp=$tmp 22874 22875# Set up the scripts for CONFIG_FILES section. 22876# No need to generate them if there are no CONFIG_FILES. 22877# This happens for instance with `./config.status config.h'. 22878if test -n "$CONFIG_FILES"; then 22879 22880 22881ac_cr=`echo X | tr X '\015'` 22882# On cygwin, bash can eat \r inside `` if the user requested igncr. 22883# But we know of no other shell where ac_cr would be empty at this 22884# point, so we can use a bashism as a fallback. 22885if test "x$ac_cr" = x; then 22886 eval ac_cr=\$\'\\r\' 22887fi 22888ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22889if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22890 ac_cs_awk_cr='\\r' 22891else 22892 ac_cs_awk_cr=$ac_cr 22893fi 22894 22895echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22896_ACEOF 22897 22898 22899{ 22900 echo "cat >conf$$subs.awk <<_ACEOF" && 22901 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22902 echo "_ACEOF" 22903} >conf$$subs.sh || 22904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22905ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22906ac_delim='%!_!# ' 22907for ac_last_try in false false false false false :; do 22908 . ./conf$$subs.sh || 22909 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22910 22911 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22912 if test $ac_delim_n = $ac_delim_num; then 22913 break 22914 elif $ac_last_try; then 22915 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22916 else 22917 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22918 fi 22919done 22920rm -f conf$$subs.sh 22921 22922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22923cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22924_ACEOF 22925sed -n ' 22926h 22927s/^/S["/; s/!.*/"]=/ 22928p 22929g 22930s/^[^!]*!// 22931:repl 22932t repl 22933s/'"$ac_delim"'$// 22934t delim 22935:nl 22936h 22937s/\(.\{148\}\)..*/\1/ 22938t more1 22939s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22940p 22941n 22942b repl 22943:more1 22944s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22945p 22946g 22947s/.\{148\}// 22948t nl 22949:delim 22950h 22951s/\(.\{148\}\)..*/\1/ 22952t more2 22953s/["\\]/\\&/g; s/^/"/; s/$/"/ 22954p 22955b 22956:more2 22957s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22958p 22959g 22960s/.\{148\}// 22961t delim 22962' <conf$$subs.awk | sed ' 22963/^[^""]/{ 22964 N 22965 s/\n// 22966} 22967' >>$CONFIG_STATUS || ac_write_fail=1 22968rm -f conf$$subs.awk 22969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22970_ACAWK 22971cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22972 for (key in S) S_is_set[key] = 1 22973 FS = "" 22974 22975} 22976{ 22977 line = $ 0 22978 nfields = split(line, field, "@") 22979 substed = 0 22980 len = length(field[1]) 22981 for (i = 2; i < nfields; i++) { 22982 key = field[i] 22983 keylen = length(key) 22984 if (S_is_set[key]) { 22985 value = S[key] 22986 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22987 len += length(value) + length(field[++i]) 22988 substed = 1 22989 } else 22990 len += 1 + keylen 22991 } 22992 22993 print line 22994} 22995 22996_ACAWK 22997_ACEOF 22998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22999if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23000 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23001else 23002 cat 23003fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23004 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23005_ACEOF 23006 23007# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23008# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23009# trailing colons and then remove the whole line if VPATH becomes empty 23010# (actually we leave an empty line to preserve line numbers). 23011if test "x$srcdir" = x.; then 23012 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23013h 23014s/// 23015s/^/:/ 23016s/[ ]*$/:/ 23017s/:\$(srcdir):/:/g 23018s/:\${srcdir}:/:/g 23019s/:@srcdir@:/:/g 23020s/^:*// 23021s/:*$// 23022x 23023s/\(=[ ]*\).*/\1/ 23024G 23025s/\n// 23026s/^[^=]*=[ ]*$// 23027}' 23028fi 23029 23030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23031fi # test -n "$CONFIG_FILES" 23032 23033# Set up the scripts for CONFIG_HEADERS section. 23034# No need to generate them if there are no CONFIG_HEADERS. 23035# This happens for instance with `./config.status Makefile'. 23036if test -n "$CONFIG_HEADERS"; then 23037cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23038BEGIN { 23039_ACEOF 23040 23041# Transform confdefs.h into an awk script `defines.awk', embedded as 23042# here-document in config.status, that substitutes the proper values into 23043# config.h.in to produce config.h. 23044 23045# Create a delimiter string that does not exist in confdefs.h, to ease 23046# handling of long lines. 23047ac_delim='%!_!# ' 23048for ac_last_try in false false :; do 23049 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23050 if test -z "$ac_tt"; then 23051 break 23052 elif $ac_last_try; then 23053 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23054 else 23055 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23056 fi 23057done 23058 23059# For the awk script, D is an array of macro values keyed by name, 23060# likewise P contains macro parameters if any. Preserve backslash 23061# newline sequences. 23062 23063ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23064sed -n ' 23065s/.\{148\}/&'"$ac_delim"'/g 23066t rset 23067:rset 23068s/^[ ]*#[ ]*define[ ][ ]*/ / 23069t def 23070d 23071:def 23072s/\\$// 23073t bsnl 23074s/["\\]/\\&/g 23075s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23076D["\1"]=" \3"/p 23077s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23078d 23079:bsnl 23080s/["\\]/\\&/g 23081s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23082D["\1"]=" \3\\\\\\n"\\/p 23083t cont 23084s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23085t cont 23086d 23087:cont 23088n 23089s/.\{148\}/&'"$ac_delim"'/g 23090t clear 23091:clear 23092s/\\$// 23093t bsnlc 23094s/["\\]/\\&/g; s/^/"/; s/$/"/p 23095d 23096:bsnlc 23097s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23098b cont 23099' <confdefs.h | sed ' 23100s/'"$ac_delim"'/"\\\ 23101"/g' >>$CONFIG_STATUS || ac_write_fail=1 23102 23103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23104 for (key in D) D_is_set[key] = 1 23105 FS = "" 23106} 23107/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23108 line = \$ 0 23109 split(line, arg, " ") 23110 if (arg[1] == "#") { 23111 defundef = arg[2] 23112 mac1 = arg[3] 23113 } else { 23114 defundef = substr(arg[1], 2) 23115 mac1 = arg[2] 23116 } 23117 split(mac1, mac2, "(") #) 23118 macro = mac2[1] 23119 prefix = substr(line, 1, index(line, defundef) - 1) 23120 if (D_is_set[macro]) { 23121 # Preserve the white space surrounding the "#". 23122 print prefix "define", macro P[macro] D[macro] 23123 next 23124 } else { 23125 # Replace #undef with comments. This is necessary, for example, 23126 # in the case of _POSIX_SOURCE, which is predefined and required 23127 # on some systems where configure will not decide to define it. 23128 if (defundef == "undef") { 23129 print "/*", prefix defundef, macro, "*/" 23130 next 23131 } 23132 } 23133} 23134{ print } 23135_ACAWK 23136_ACEOF 23137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23138 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23139fi # test -n "$CONFIG_HEADERS" 23140 23141 23142eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23143shift 23144for ac_tag 23145do 23146 case $ac_tag in 23147 :[FHLC]) ac_mode=$ac_tag; continue;; 23148 esac 23149 case $ac_mode$ac_tag in 23150 :[FHL]*:*);; 23151 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23152 :[FH]-) ac_tag=-:-;; 23153 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23154 esac 23155 ac_save_IFS=$IFS 23156 IFS=: 23157 set x $ac_tag 23158 IFS=$ac_save_IFS 23159 shift 23160 ac_file=$1 23161 shift 23162 23163 case $ac_mode in 23164 :L) ac_source=$1;; 23165 :[FH]) 23166 ac_file_inputs= 23167 for ac_f 23168 do 23169 case $ac_f in 23170 -) ac_f="$ac_tmp/stdin";; 23171 *) # Look for the file first in the build tree, then in the source tree 23172 # (if the path is not absolute). The absolute path cannot be DOS-style, 23173 # because $ac_f cannot contain `:'. 23174 test -f "$ac_f" || 23175 case $ac_f in 23176 [\\/$]*) false;; 23177 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23178 esac || 23179 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23180 esac 23181 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23182 as_fn_append ac_file_inputs " '$ac_f'" 23183 done 23184 23185 # Let's still pretend it is `configure' which instantiates (i.e., don't 23186 # use $as_me), people would be surprised to read: 23187 # /* config.h. Generated by config.status. */ 23188 configure_input='Generated from '` 23189 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23190 `' by configure.' 23191 if test x"$ac_file" != x-; then 23192 configure_input="$ac_file. $configure_input" 23193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23194$as_echo "$as_me: creating $ac_file" >&6;} 23195 fi 23196 # Neutralize special characters interpreted by sed in replacement strings. 23197 case $configure_input in #( 23198 *\&* | *\|* | *\\* ) 23199 ac_sed_conf_input=`$as_echo "$configure_input" | 23200 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23201 *) ac_sed_conf_input=$configure_input;; 23202 esac 23203 23204 case $ac_tag in 23205 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23207 esac 23208 ;; 23209 esac 23210 23211 ac_dir=`$as_dirname -- "$ac_file" || 23212$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23213 X"$ac_file" : 'X\(//\)[^/]' \| \ 23214 X"$ac_file" : 'X\(//\)$' \| \ 23215 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23216$as_echo X"$ac_file" | 23217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23218 s//\1/ 23219 q 23220 } 23221 /^X\(\/\/\)[^/].*/{ 23222 s//\1/ 23223 q 23224 } 23225 /^X\(\/\/\)$/{ 23226 s//\1/ 23227 q 23228 } 23229 /^X\(\/\).*/{ 23230 s//\1/ 23231 q 23232 } 23233 s/.*/./; q'` 23234 as_dir="$ac_dir"; as_fn_mkdir_p 23235 ac_builddir=. 23236 23237case "$ac_dir" in 23238.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23239*) 23240 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23241 # A ".." for each directory in $ac_dir_suffix. 23242 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23243 case $ac_top_builddir_sub in 23244 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23245 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23246 esac ;; 23247esac 23248ac_abs_top_builddir=$ac_pwd 23249ac_abs_builddir=$ac_pwd$ac_dir_suffix 23250# for backward compatibility: 23251ac_top_builddir=$ac_top_build_prefix 23252 23253case $srcdir in 23254 .) # We are building in place. 23255 ac_srcdir=. 23256 ac_top_srcdir=$ac_top_builddir_sub 23257 ac_abs_top_srcdir=$ac_pwd ;; 23258 [\\/]* | ?:[\\/]* ) # Absolute name. 23259 ac_srcdir=$srcdir$ac_dir_suffix; 23260 ac_top_srcdir=$srcdir 23261 ac_abs_top_srcdir=$srcdir ;; 23262 *) # Relative name. 23263 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23264 ac_top_srcdir=$ac_top_build_prefix$srcdir 23265 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23266esac 23267ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23268 23269 23270 case $ac_mode in 23271 :F) 23272 # 23273 # CONFIG_FILE 23274 # 23275 23276_ACEOF 23277 23278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23279# If the template does not know about datarootdir, expand it. 23280# FIXME: This hack should be removed a few years after 2.60. 23281ac_datarootdir_hack=; ac_datarootdir_seen= 23282ac_sed_dataroot=' 23283/datarootdir/ { 23284 p 23285 q 23286} 23287/@datadir@/p 23288/@docdir@/p 23289/@infodir@/p 23290/@localedir@/p 23291/@mandir@/p' 23292case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23293*datarootdir*) ac_datarootdir_seen=yes;; 23294*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23296$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23297_ACEOF 23298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23299 ac_datarootdir_hack=' 23300 s&@datadir@&$datadir&g 23301 s&@docdir@&$docdir&g 23302 s&@infodir@&$infodir&g 23303 s&@localedir@&$localedir&g 23304 s&@mandir@&$mandir&g 23305 s&\\\${datarootdir}&$datarootdir&g' ;; 23306esac 23307_ACEOF 23308 23309# Neutralize VPATH when `$srcdir' = `.'. 23310# Shell code in configure.ac might set extrasub. 23311# FIXME: do we really want to maintain this feature? 23312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23313ac_sed_extra="$ac_vpsub 23314$extrasub 23315_ACEOF 23316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23317:t 23318/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23319s|@configure_input@|$ac_sed_conf_input|;t t 23320s&@top_builddir@&$ac_top_builddir_sub&;t t 23321s&@top_build_prefix@&$ac_top_build_prefix&;t t 23322s&@srcdir@&$ac_srcdir&;t t 23323s&@abs_srcdir@&$ac_abs_srcdir&;t t 23324s&@top_srcdir@&$ac_top_srcdir&;t t 23325s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23326s&@builddir@&$ac_builddir&;t t 23327s&@abs_builddir@&$ac_abs_builddir&;t t 23328s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23329$ac_datarootdir_hack 23330" 23331eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23332 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23333 23334test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23335 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23336 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23337 "$ac_tmp/out"`; test -z "$ac_out"; } && 23338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23339which seems to be undefined. Please make sure it is defined" >&5 23340$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23341which seems to be undefined. Please make sure it is defined" >&2;} 23342 23343 rm -f "$ac_tmp/stdin" 23344 case $ac_file in 23345 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23346 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23347 esac \ 23348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23349 ;; 23350 :H) 23351 # 23352 # CONFIG_HEADER 23353 # 23354 if test x"$ac_file" != x-; then 23355 { 23356 $as_echo "/* $configure_input */" \ 23357 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23358 } >"$ac_tmp/config.h" \ 23359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23360 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23361 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23362$as_echo "$as_me: $ac_file is unchanged" >&6;} 23363 else 23364 rm -f "$ac_file" 23365 mv "$ac_tmp/config.h" "$ac_file" \ 23366 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23367 fi 23368 else 23369 $as_echo "/* $configure_input */" \ 23370 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23371 || as_fn_error $? "could not create -" "$LINENO" 5 23372 fi 23373 ;; 23374 23375 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23376$as_echo "$as_me: executing $ac_file commands" >&6;} 23377 ;; 23378 esac 23379 23380 23381 case $ac_file$ac_mode in 23382 "libtool":C) 23383 23384 # See if we are running on zsh, and set the options that allow our 23385 # commands through without removal of \ escapes. 23386 if test -n "${ZSH_VERSION+set}"; then 23387 setopt NO_GLOB_SUBST 23388 fi 23389 23390 cfgfile=${ofile}T 23391 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23392 $RM "$cfgfile" 23393 23394 cat <<_LT_EOF >> "$cfgfile" 23395#! $SHELL 23396# Generated automatically by $as_me ($PACKAGE) $VERSION 23397# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23398# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23399 23400# Provide generalized library-building support services. 23401# Written by Gordon Matzigkeit, 1996 23402 23403# Copyright (C) 2014 Free Software Foundation, Inc. 23404# This is free software; see the source for copying conditions. There is NO 23405# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23406 23407# GNU Libtool is free software; you can redistribute it and/or modify 23408# it under the terms of the GNU General Public License as published by 23409# the Free Software Foundation; either version 2 of of the License, or 23410# (at your option) any later version. 23411# 23412# As a special exception to the GNU General Public License, if you 23413# distribute this file as part of a program or library that is built 23414# using GNU Libtool, you may include this file under the same 23415# distribution terms that you use for the rest of that program. 23416# 23417# GNU Libtool is distributed in the hope that it will be useful, but 23418# WITHOUT ANY WARRANTY; without even the implied warranty of 23419# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23420# GNU General Public License for more details. 23421# 23422# You should have received a copy of the GNU General Public License 23423# along with this program. If not, see <http://www.gnu.org/licenses/>. 23424 23425 23426# The names of the tagged configurations supported by this script. 23427available_tags='' 23428 23429# Configured defaults for sys_lib_dlsearch_path munging. 23430: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23431 23432# ### BEGIN LIBTOOL CONFIG 23433 23434# Which release of libtool.m4 was used? 23435macro_version=$macro_version 23436macro_revision=$macro_revision 23437 23438# Whether or not to build shared libraries. 23439build_libtool_libs=$enable_shared 23440 23441# Whether or not to build static libraries. 23442build_old_libs=$enable_static 23443 23444# What type of objects to build. 23445pic_mode=$pic_mode 23446 23447# Whether or not to optimize for fast installation. 23448fast_install=$enable_fast_install 23449 23450# Shared archive member basename,for filename based shared library versioning on AIX. 23451shared_archive_member_spec=$shared_archive_member_spec 23452 23453# Shell to use when invoking shell scripts. 23454SHELL=$lt_SHELL 23455 23456# An echo program that protects backslashes. 23457ECHO=$lt_ECHO 23458 23459# The PATH separator for the build system. 23460PATH_SEPARATOR=$lt_PATH_SEPARATOR 23461 23462# The host system. 23463host_alias=$host_alias 23464host=$host 23465host_os=$host_os 23466 23467# The build system. 23468build_alias=$build_alias 23469build=$build 23470build_os=$build_os 23471 23472# A sed program that does not truncate output. 23473SED=$lt_SED 23474 23475# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23476Xsed="\$SED -e 1s/^X//" 23477 23478# A grep program that handles long lines. 23479GREP=$lt_GREP 23480 23481# An ERE matcher. 23482EGREP=$lt_EGREP 23483 23484# A literal string matcher. 23485FGREP=$lt_FGREP 23486 23487# A BSD- or MS-compatible name lister. 23488NM=$lt_NM 23489 23490# Whether we need soft or hard links. 23491LN_S=$lt_LN_S 23492 23493# What is the maximum length of a command? 23494max_cmd_len=$max_cmd_len 23495 23496# Object file suffix (normally "o"). 23497objext=$ac_objext 23498 23499# Executable file suffix (normally ""). 23500exeext=$exeext 23501 23502# whether the shell understands "unset". 23503lt_unset=$lt_unset 23504 23505# turn spaces into newlines. 23506SP2NL=$lt_lt_SP2NL 23507 23508# turn newlines into spaces. 23509NL2SP=$lt_lt_NL2SP 23510 23511# convert \$build file names to \$host format. 23512to_host_file_cmd=$lt_cv_to_host_file_cmd 23513 23514# convert \$build files to toolchain format. 23515to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23516 23517# An object symbol dumper. 23518OBJDUMP=$lt_OBJDUMP 23519 23520# Method to check whether dependent libraries are shared objects. 23521deplibs_check_method=$lt_deplibs_check_method 23522 23523# Command to use when deplibs_check_method = "file_magic". 23524file_magic_cmd=$lt_file_magic_cmd 23525 23526# How to find potential files when deplibs_check_method = "file_magic". 23527file_magic_glob=$lt_file_magic_glob 23528 23529# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23530want_nocaseglob=$lt_want_nocaseglob 23531 23532# DLL creation program. 23533DLLTOOL=$lt_DLLTOOL 23534 23535# Command to associate shared and link libraries. 23536sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23537 23538# The archiver. 23539AR=$lt_AR 23540 23541# Flags to create an archive. 23542AR_FLAGS=$lt_AR_FLAGS 23543 23544# How to feed a file listing to the archiver. 23545archiver_list_spec=$lt_archiver_list_spec 23546 23547# A symbol stripping program. 23548STRIP=$lt_STRIP 23549 23550# Commands used to install an old-style archive. 23551RANLIB=$lt_RANLIB 23552old_postinstall_cmds=$lt_old_postinstall_cmds 23553old_postuninstall_cmds=$lt_old_postuninstall_cmds 23554 23555# Whether to use a lock for old archive extraction. 23556lock_old_archive_extraction=$lock_old_archive_extraction 23557 23558# A C compiler. 23559LTCC=$lt_CC 23560 23561# LTCC compiler flags. 23562LTCFLAGS=$lt_CFLAGS 23563 23564# Take the output of nm and produce a listing of raw symbols and C names. 23565global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23566 23567# Transform the output of nm in a proper C declaration. 23568global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23569 23570# Transform the output of nm into a list of symbols to manually relocate. 23571global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23572 23573# Transform the output of nm in a C name address pair. 23574global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23575 23576# Transform the output of nm in a C name address pair when lib prefix is needed. 23577global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23578 23579# The name lister interface. 23580nm_interface=$lt_lt_cv_nm_interface 23581 23582# Specify filename containing input files for \$NM. 23583nm_file_list_spec=$lt_nm_file_list_spec 23584 23585# The root where to search for dependent libraries,and where our libraries should be installed. 23586lt_sysroot=$lt_sysroot 23587 23588# Command to truncate a binary pipe. 23589lt_truncate_bin=$lt_lt_cv_truncate_bin 23590 23591# The name of the directory that contains temporary libtool files. 23592objdir=$objdir 23593 23594# Used to examine libraries when file_magic_cmd begins with "file". 23595MAGIC_CMD=$MAGIC_CMD 23596 23597# Must we lock files when doing compilation? 23598need_locks=$lt_need_locks 23599 23600# Manifest tool. 23601MANIFEST_TOOL=$lt_MANIFEST_TOOL 23602 23603# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23604DSYMUTIL=$lt_DSYMUTIL 23605 23606# Tool to change global to local symbols on Mac OS X. 23607NMEDIT=$lt_NMEDIT 23608 23609# Tool to manipulate fat objects and archives on Mac OS X. 23610LIPO=$lt_LIPO 23611 23612# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23613OTOOL=$lt_OTOOL 23614 23615# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23616OTOOL64=$lt_OTOOL64 23617 23618# Old archive suffix (normally "a"). 23619libext=$libext 23620 23621# Shared library suffix (normally ".so"). 23622shrext_cmds=$lt_shrext_cmds 23623 23624# The commands to extract the exported symbol list from a shared archive. 23625extract_expsyms_cmds=$lt_extract_expsyms_cmds 23626 23627# Variables whose values should be saved in libtool wrapper scripts and 23628# restored at link time. 23629variables_saved_for_relink=$lt_variables_saved_for_relink 23630 23631# Do we need the "lib" prefix for modules? 23632need_lib_prefix=$need_lib_prefix 23633 23634# Do we need a version for libraries? 23635need_version=$need_version 23636 23637# Library versioning type. 23638version_type=$version_type 23639 23640# Shared library runtime path variable. 23641runpath_var=$runpath_var 23642 23643# Shared library path variable. 23644shlibpath_var=$shlibpath_var 23645 23646# Is shlibpath searched before the hard-coded library search path? 23647shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23648 23649# Format of library name prefix. 23650libname_spec=$lt_libname_spec 23651 23652# List of archive names. First name is the real one, the rest are links. 23653# The last name is the one that the linker finds with -lNAME 23654library_names_spec=$lt_library_names_spec 23655 23656# The coded name of the library, if different from the real name. 23657soname_spec=$lt_soname_spec 23658 23659# Permission mode override for installation of shared libraries. 23660install_override_mode=$lt_install_override_mode 23661 23662# Command to use after installation of a shared archive. 23663postinstall_cmds=$lt_postinstall_cmds 23664 23665# Command to use after uninstallation of a shared archive. 23666postuninstall_cmds=$lt_postuninstall_cmds 23667 23668# Commands used to finish a libtool library installation in a directory. 23669finish_cmds=$lt_finish_cmds 23670 23671# As "finish_cmds", except a single script fragment to be evaled but 23672# not shown. 23673finish_eval=$lt_finish_eval 23674 23675# Whether we should hardcode library paths into libraries. 23676hardcode_into_libs=$hardcode_into_libs 23677 23678# Compile-time system search path for libraries. 23679sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23680 23681# Detected run-time system search path for libraries. 23682sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23683 23684# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23685configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23686 23687# Whether dlopen is supported. 23688dlopen_support=$enable_dlopen 23689 23690# Whether dlopen of programs is supported. 23691dlopen_self=$enable_dlopen_self 23692 23693# Whether dlopen of statically linked programs is supported. 23694dlopen_self_static=$enable_dlopen_self_static 23695 23696# Commands to strip libraries. 23697old_striplib=$lt_old_striplib 23698striplib=$lt_striplib 23699 23700 23701# The linker used to build libraries. 23702LD=$lt_LD 23703 23704# How to create reloadable object files. 23705reload_flag=$lt_reload_flag 23706reload_cmds=$lt_reload_cmds 23707 23708# Commands used to build an old-style archive. 23709old_archive_cmds=$lt_old_archive_cmds 23710 23711# A language specific compiler. 23712CC=$lt_compiler 23713 23714# Is the compiler the GNU compiler? 23715with_gcc=$GCC 23716 23717# Compiler flag to turn off builtin functions. 23718no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23719 23720# Additional compiler flags for building library objects. 23721pic_flag=$lt_lt_prog_compiler_pic 23722 23723# How to pass a linker flag through the compiler. 23724wl=$lt_lt_prog_compiler_wl 23725 23726# Compiler flag to prevent dynamic linking. 23727link_static_flag=$lt_lt_prog_compiler_static 23728 23729# Does compiler simultaneously support -c and -o options? 23730compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23731 23732# Whether or not to add -lc for building shared libraries. 23733build_libtool_need_lc=$archive_cmds_need_lc 23734 23735# Whether or not to disallow shared libs when runtime libs are static. 23736allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23737 23738# Compiler flag to allow reflexive dlopens. 23739export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23740 23741# Compiler flag to generate shared objects directly from archives. 23742whole_archive_flag_spec=$lt_whole_archive_flag_spec 23743 23744# Whether the compiler copes with passing no objects directly. 23745compiler_needs_object=$lt_compiler_needs_object 23746 23747# Create an old-style archive from a shared archive. 23748old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23749 23750# Create a temporary old-style archive to link instead of a shared archive. 23751old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23752 23753# Commands used to build a shared archive. 23754archive_cmds=$lt_archive_cmds 23755archive_expsym_cmds=$lt_archive_expsym_cmds 23756 23757# Commands used to build a loadable module if different from building 23758# a shared archive. 23759module_cmds=$lt_module_cmds 23760module_expsym_cmds=$lt_module_expsym_cmds 23761 23762# Whether we are building with GNU ld or not. 23763with_gnu_ld=$lt_with_gnu_ld 23764 23765# Flag that allows shared libraries with undefined symbols to be built. 23766allow_undefined_flag=$lt_allow_undefined_flag 23767 23768# Flag that enforces no undefined symbols. 23769no_undefined_flag=$lt_no_undefined_flag 23770 23771# Flag to hardcode \$libdir into a binary during linking. 23772# This must work even if \$libdir does not exist 23773hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23774 23775# Whether we need a single "-rpath" flag with a separated argument. 23776hardcode_libdir_separator=$lt_hardcode_libdir_separator 23777 23778# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23779# DIR into the resulting binary. 23780hardcode_direct=$hardcode_direct 23781 23782# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23783# DIR into the resulting binary and the resulting library dependency is 23784# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23785# library is relocated. 23786hardcode_direct_absolute=$hardcode_direct_absolute 23787 23788# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23789# into the resulting binary. 23790hardcode_minus_L=$hardcode_minus_L 23791 23792# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23793# into the resulting binary. 23794hardcode_shlibpath_var=$hardcode_shlibpath_var 23795 23796# Set to "yes" if building a shared library automatically hardcodes DIR 23797# into the library and all subsequent libraries and executables linked 23798# against it. 23799hardcode_automatic=$hardcode_automatic 23800 23801# Set to yes if linker adds runtime paths of dependent libraries 23802# to runtime path list. 23803inherit_rpath=$inherit_rpath 23804 23805# Whether libtool must link a program against all its dependency libraries. 23806link_all_deplibs=$link_all_deplibs 23807 23808# Set to "yes" if exported symbols are required. 23809always_export_symbols=$always_export_symbols 23810 23811# The commands to list exported symbols. 23812export_symbols_cmds=$lt_export_symbols_cmds 23813 23814# Symbols that should not be listed in the preloaded symbols. 23815exclude_expsyms=$lt_exclude_expsyms 23816 23817# Symbols that must always be exported. 23818include_expsyms=$lt_include_expsyms 23819 23820# Commands necessary for linking programs (against libraries) with templates. 23821prelink_cmds=$lt_prelink_cmds 23822 23823# Commands necessary for finishing linking programs. 23824postlink_cmds=$lt_postlink_cmds 23825 23826# Specify filename containing input files. 23827file_list_spec=$lt_file_list_spec 23828 23829# How to hardcode a shared library path into an executable. 23830hardcode_action=$hardcode_action 23831 23832# ### END LIBTOOL CONFIG 23833 23834_LT_EOF 23835 23836 cat <<'_LT_EOF' >> "$cfgfile" 23837 23838# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23839 23840# func_munge_path_list VARIABLE PATH 23841# ----------------------------------- 23842# VARIABLE is name of variable containing _space_ separated list of 23843# directories to be munged by the contents of PATH, which is string 23844# having a format: 23845# "DIR[:DIR]:" 23846# string "DIR[ DIR]" will be prepended to VARIABLE 23847# ":DIR[:DIR]" 23848# string "DIR[ DIR]" will be appended to VARIABLE 23849# "DIRP[:DIRP]::[DIRA:]DIRA" 23850# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23851# "DIRA[ DIRA]" will be appended to VARIABLE 23852# "DIR[:DIR]" 23853# VARIABLE will be replaced by "DIR[ DIR]" 23854func_munge_path_list () 23855{ 23856 case x$2 in 23857 x) 23858 ;; 23859 *:) 23860 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23861 ;; 23862 x:*) 23863 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23864 ;; 23865 *::*) 23866 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23867 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23868 ;; 23869 *) 23870 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23871 ;; 23872 esac 23873} 23874 23875 23876# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23877func_cc_basename () 23878{ 23879 for cc_temp in $*""; do 23880 case $cc_temp in 23881 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23882 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23883 \-*) ;; 23884 *) break;; 23885 esac 23886 done 23887 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23888} 23889 23890 23891# ### END FUNCTIONS SHARED WITH CONFIGURE 23892 23893_LT_EOF 23894 23895 case $host_os in 23896 aix3*) 23897 cat <<\_LT_EOF >> "$cfgfile" 23898# AIX sometimes has problems with the GCC collect2 program. For some 23899# reason, if we set the COLLECT_NAMES environment variable, the problems 23900# vanish in a puff of smoke. 23901if test set != "${COLLECT_NAMES+set}"; then 23902 COLLECT_NAMES= 23903 export COLLECT_NAMES 23904fi 23905_LT_EOF 23906 ;; 23907 esac 23908 23909 23910ltmain=$ac_aux_dir/ltmain.sh 23911 23912 23913 # We use sed instead of cat because bash on DJGPP gets confused if 23914 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23915 # text mode, it properly converts lines to CR/LF. This bash problem 23916 # is reportedly fixed, but why not run on old versions too? 23917 sed '$q' "$ltmain" >> "$cfgfile" \ 23918 || (rm -f "$cfgfile"; exit 1) 23919 23920 mv -f "$cfgfile" "$ofile" || 23921 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23922 chmod +x "$ofile" 23923 23924 ;; 23925 "disable-rpath":C) 23926 sed < libtool > libtool-2 \ 23927 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 23928 mv libtool-2 libtool 23929 chmod 755 libtool 23930 libtool="./libtool" 23931 ;; 23932 23933 esac 23934done # for ac_tag 23935 23936 23937as_fn_exit 0 23938_ACEOF 23939ac_clean_files=$ac_clean_files_save 23940 23941test $ac_write_fail = 0 || 23942 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23943 23944 23945# configure is writing to config.log, and then calls config.status. 23946# config.status does its own redirection, appending to config.log. 23947# Unfortunately, on DOS this fails, as config.log is still kept open 23948# by configure, so config.status won't be able to write to it; its 23949# output is simply discarded. So we exec the FD to /dev/null, 23950# effectively closing config.log, so it can be properly (re)opened and 23951# appended to by config.status. When coming back to configure, we 23952# need to make the FD available again. 23953if test "$no_create" != yes; then 23954 ac_cs_success=: 23955 ac_config_status_args= 23956 test "$silent" = yes && 23957 ac_config_status_args="$ac_config_status_args --quiet" 23958 exec 5>/dev/null 23959 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23960 exec 5>>config.log 23961 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23962 # would make configure fail if this is the last instruction. 23963 $ac_cs_success || as_fn_exit 1 23964fi 23965if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23967$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23968fi 23969 23970