1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for unbound 1.16.0. 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.16.0' 595PACKAGE_STRING='unbound 1.16.0' 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 685GCC_DOCKER_LINTFLAGS 686NETBSD_LINTFLAGS 687PYUNBOUND_UNINSTALL 688PYUNBOUND_INSTALL 689PYUNBOUND_TARGET 690PYUNBOUND_OBJ 691WITH_PYUNBOUND 692PYTHONMOD_UNINSTALL 693PYTHONMOD_INSTALL 694PYTHONMOD_HEADER 695PYTHONMOD_OBJ 696WITH_PYTHONMODULE 697swig 698SWIG_LIB 699SWIG 700PC_PY_DEPENDENCY 701PYTHON_LIBS 702PY_MAJOR_VERSION 703PYTHON_SITE_PKG 704PYTHON_LDFLAGS 705PYTHON_CPPFLAGS 706PYTHON 707PYTHON_VERSION 708DYNLIBMOD_EXTRALIBS 709DYNLIBMOD_HEADER 710DYNLIBMOD_OBJ 711WITH_DYNLIBMODULE 712PTHREAD_CFLAGS_ONLY 713PTHREAD_CFLAGS 714PTHREAD_LIBS 715PTHREAD_CC 716ax_pthread_config 717ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ 718SLDNS_ALLOCCHECK_EXTRA_OBJ 719USE_SYSTEMD_FALSE 720USE_SYSTEMD_TRUE 721SYSTEMD_DAEMON_LIBS 722SYSTEMD_DAEMON_CFLAGS 723SYSTEMD_LIBS 724SYSTEMD_CFLAGS 725RUNTIME_PATH 726LIBOBJS 727PKG_CONFIG_LIBDIR 728PKG_CONFIG_PATH 729PKG_CONFIG 730LT_SYS_LIBRARY_PATH 731OTOOL64 732OTOOL 733LIPO 734NMEDIT 735DSYMUTIL 736MANIFEST_TOOL 737AWK 738RANLIB 739ac_ct_AR 740DLLTOOL 741OBJDUMP 742LN_S 743NM 744ac_ct_DUMPBIN 745DUMPBIN 746LD 747FGREP 748SED 749LIBTOOL 750AR 751host_os 752host_vendor 753host_cpu 754host 755build_os 756build_vendor 757build_cpu 758build 759libtool 760STRIP 761doxygen 762YFLAGS 763YACC 764LEXLIB 765LEX_OUTPUT_ROOT 766LEX 767debug_enabled 768DEPFLAG 769UNBOUND_USERNAME 770UNBOUND_ROOTCERT_FILE 771UNBOUND_ROOTKEY_FILE 772UNBOUND_PIDFILE 773UNBOUND_SHARE_DIR 774UNBOUND_CHROOT_DIR 775UNBOUND_RUN_DIR 776ub_conf_dir 777ub_conf_file 778UNBOUND_LOCALSTATE_DIR 779UNBOUND_SYSCONF_DIR 780UNBOUND_SBIN_DIR 781EGREP 782GREP 783CPP 784OBJEXT 785EXEEXT 786ac_ct_CC 787CPPFLAGS 788LDFLAGS 789CFLAGS 790CC 791LIBUNBOUND_AGE 792LIBUNBOUND_REVISION 793LIBUNBOUND_CURRENT 794UNBOUND_VERSION_MICRO 795UNBOUND_VERSION_MINOR 796UNBOUND_VERSION_MAJOR 797target_alias 798host_alias 799build_alias 800LIBS 801ECHO_T 802ECHO_N 803ECHO_C 804DEFS 805mandir 806localedir 807libdir 808psdir 809pdfdir 810dvidir 811htmldir 812infodir 813docdir 814oldincludedir 815includedir 816runstatedir 817localstatedir 818sharedstatedir 819sysconfdir 820datadir 821datarootdir 822libexecdir 823sbindir 824bindir 825program_transform_name 826prefix 827exec_prefix 828PACKAGE_URL 829PACKAGE_BUGREPORT 830PACKAGE_STRING 831PACKAGE_VERSION 832PACKAGE_TARNAME 833PACKAGE_NAME 834PATH_SEPARATOR 835SHELL' 836ac_subst_files='' 837ac_user_opts=' 838enable_option_checking 839with_conf_file 840with_run_dir 841with_chroot_dir 842with_share_dir 843with_pidfile 844with_rootkey_file 845with_rootcert_file 846with_username 847enable_checking 848enable_debug 849enable_flto 850enable_pie 851enable_relro_now 852enable_shared 853enable_static 854with_pic 855enable_fast_install 856with_aix_soname 857with_gnu_ld 858with_sysroot 859enable_libtool_lock 860enable_rpath 861enable_largefile 862enable_systemd 863enable_alloc_checks 864enable_alloc_lite 865enable_alloc_nonregional 866with_pthreads 867with_solaris_threads 868with_syslog_facility 869with_dynlibmodule 870with_pyunbound 871with_pythonmodule 872enable_swig_version_check 873with_nss 874with_nettle 875with_ssl 876with_libbsd 877enable_sha1 878enable_sha2 879enable_subnet 880enable_gost 881enable_ecdsa 882enable_dsa 883with_deprecate_rsa_1024 884enable_ed25519 885enable_ed448 886enable_event_api 887enable_tfo_client 888enable_tfo_server 889with_libevent 890with_libexpat 891with_libhiredis 892with_libnghttp2 893enable_static_exe 894enable_fully_static 895enable_lock_checks 896enable_allsymbols 897enable_dnstap 898with_dnstap_socket_path 899with_protobuf_c 900enable_dnscrypt 901with_libsodium 902enable_cachedb 903enable_ipsecmod 904enable_ipset 905with_libmnl 906enable_explicit_port_randomisation 907enable_linux_ip_local_port_range 908with_libunbound_only 909' 910 ac_precious_vars='build_alias 911host_alias 912target_alias 913CC 914CFLAGS 915LDFLAGS 916LIBS 917CPPFLAGS 918CPP 919YACC 920YFLAGS 921LT_SYS_LIBRARY_PATH 922PKG_CONFIG 923PKG_CONFIG_PATH 924PKG_CONFIG_LIBDIR 925SYSTEMD_CFLAGS 926SYSTEMD_LIBS 927SYSTEMD_DAEMON_CFLAGS 928SYSTEMD_DAEMON_LIBS 929PYTHON_VERSION' 930 931 932# Initialize some variables set by options. 933ac_init_help= 934ac_init_version=false 935ac_unrecognized_opts= 936ac_unrecognized_sep= 937# The variables have the same names as the options, with 938# dashes changed to underlines. 939cache_file=/dev/null 940exec_prefix=NONE 941no_create= 942no_recursion= 943prefix=NONE 944program_prefix=NONE 945program_suffix=NONE 946program_transform_name=s,x,x, 947silent= 948site= 949srcdir= 950verbose= 951x_includes=NONE 952x_libraries=NONE 953 954# Installation directory options. 955# These are left unexpanded so users can "make install exec_prefix=/foo" 956# and all the variables that are supposed to be based on exec_prefix 957# by default will actually change. 958# Use braces instead of parens because sh, perl, etc. also accept them. 959# (The list follows the same order as the GNU Coding Standards.) 960bindir='${exec_prefix}/bin' 961sbindir='${exec_prefix}/sbin' 962libexecdir='${exec_prefix}/libexec' 963datarootdir='${prefix}/share' 964datadir='${datarootdir}' 965sysconfdir='${prefix}/etc' 966sharedstatedir='${prefix}/com' 967localstatedir='${prefix}/var' 968runstatedir='${localstatedir}/run' 969includedir='${prefix}/include' 970oldincludedir='/usr/include' 971docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 972infodir='${datarootdir}/info' 973htmldir='${docdir}' 974dvidir='${docdir}' 975pdfdir='${docdir}' 976psdir='${docdir}' 977libdir='${exec_prefix}/lib' 978localedir='${datarootdir}/locale' 979mandir='${datarootdir}/man' 980 981ac_prev= 982ac_dashdash= 983for ac_option 984do 985 # If the previous option needs an argument, assign it. 986 if test -n "$ac_prev"; then 987 eval $ac_prev=\$ac_option 988 ac_prev= 989 continue 990 fi 991 992 case $ac_option in 993 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 994 *=) ac_optarg= ;; 995 *) ac_optarg=yes ;; 996 esac 997 998 # Accept the important Cygnus configure options, so we can diagnose typos. 999 1000 case $ac_dashdash$ac_option in 1001 --) 1002 ac_dashdash=yes ;; 1003 1004 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1005 ac_prev=bindir ;; 1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1007 bindir=$ac_optarg ;; 1008 1009 -build | --build | --buil | --bui | --bu) 1010 ac_prev=build_alias ;; 1011 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1012 build_alias=$ac_optarg ;; 1013 1014 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1016 ac_prev=cache_file ;; 1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1019 cache_file=$ac_optarg ;; 1020 1021 --config-cache | -C) 1022 cache_file=config.cache ;; 1023 1024 -datadir | --datadir | --datadi | --datad) 1025 ac_prev=datadir ;; 1026 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1027 datadir=$ac_optarg ;; 1028 1029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1030 | --dataroo | --dataro | --datar) 1031 ac_prev=datarootdir ;; 1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1034 datarootdir=$ac_optarg ;; 1035 1036 -disable-* | --disable-*) 1037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1038 # Reject names that are not valid shell variable names. 1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1040 as_fn_error $? "invalid feature name: $ac_useropt" 1041 ac_useropt_orig=$ac_useropt 1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1043 case $ac_user_opts in 1044 *" 1045"enable_$ac_useropt" 1046"*) ;; 1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1048 ac_unrecognized_sep=', ';; 1049 esac 1050 eval enable_$ac_useropt=no ;; 1051 1052 -docdir | --docdir | --docdi | --doc | --do) 1053 ac_prev=docdir ;; 1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1055 docdir=$ac_optarg ;; 1056 1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1058 ac_prev=dvidir ;; 1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1060 dvidir=$ac_optarg ;; 1061 1062 -enable-* | --enable-*) 1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1064 # Reject names that are not valid shell variable names. 1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1066 as_fn_error $? "invalid feature name: $ac_useropt" 1067 ac_useropt_orig=$ac_useropt 1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1069 case $ac_user_opts in 1070 *" 1071"enable_$ac_useropt" 1072"*) ;; 1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1074 ac_unrecognized_sep=', ';; 1075 esac 1076 eval enable_$ac_useropt=\$ac_optarg ;; 1077 1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1080 | --exec | --exe | --ex) 1081 ac_prev=exec_prefix ;; 1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1084 | --exec=* | --exe=* | --ex=*) 1085 exec_prefix=$ac_optarg ;; 1086 1087 -gas | --gas | --ga | --g) 1088 # Obsolete; use --with-gas. 1089 with_gas=yes ;; 1090 1091 -help | --help | --hel | --he | -h) 1092 ac_init_help=long ;; 1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1094 ac_init_help=recursive ;; 1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1096 ac_init_help=short ;; 1097 1098 -host | --host | --hos | --ho) 1099 ac_prev=host_alias ;; 1100 -host=* | --host=* | --hos=* | --ho=*) 1101 host_alias=$ac_optarg ;; 1102 1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1104 ac_prev=htmldir ;; 1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1106 | --ht=*) 1107 htmldir=$ac_optarg ;; 1108 1109 -includedir | --includedir | --includedi | --included | --include \ 1110 | --includ | --inclu | --incl | --inc) 1111 ac_prev=includedir ;; 1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1113 | --includ=* | --inclu=* | --incl=* | --inc=*) 1114 includedir=$ac_optarg ;; 1115 1116 -infodir | --infodir | --infodi | --infod | --info | --inf) 1117 ac_prev=infodir ;; 1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1119 infodir=$ac_optarg ;; 1120 1121 -libdir | --libdir | --libdi | --libd) 1122 ac_prev=libdir ;; 1123 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1124 libdir=$ac_optarg ;; 1125 1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1127 | --libexe | --libex | --libe) 1128 ac_prev=libexecdir ;; 1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1130 | --libexe=* | --libex=* | --libe=*) 1131 libexecdir=$ac_optarg ;; 1132 1133 -localedir | --localedir | --localedi | --localed | --locale) 1134 ac_prev=localedir ;; 1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1136 localedir=$ac_optarg ;; 1137 1138 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1139 | --localstate | --localstat | --localsta | --localst | --locals) 1140 ac_prev=localstatedir ;; 1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1143 localstatedir=$ac_optarg ;; 1144 1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1146 ac_prev=mandir ;; 1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1148 mandir=$ac_optarg ;; 1149 1150 -nfp | --nfp | --nf) 1151 # Obsolete; use --without-fp. 1152 with_fp=no ;; 1153 1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1155 | --no-cr | --no-c | -n) 1156 no_create=yes ;; 1157 1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1160 no_recursion=yes ;; 1161 1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1164 | --oldin | --oldi | --old | --ol | --o) 1165 ac_prev=oldincludedir ;; 1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1169 oldincludedir=$ac_optarg ;; 1170 1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1172 ac_prev=prefix ;; 1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1174 prefix=$ac_optarg ;; 1175 1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1177 | --program-pre | --program-pr | --program-p) 1178 ac_prev=program_prefix ;; 1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1181 program_prefix=$ac_optarg ;; 1182 1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1184 | --program-suf | --program-su | --program-s) 1185 ac_prev=program_suffix ;; 1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1188 program_suffix=$ac_optarg ;; 1189 1190 -program-transform-name | --program-transform-name \ 1191 | --program-transform-nam | --program-transform-na \ 1192 | --program-transform-n | --program-transform- \ 1193 | --program-transform | --program-transfor \ 1194 | --program-transfo | --program-transf \ 1195 | --program-trans | --program-tran \ 1196 | --progr-tra | --program-tr | --program-t) 1197 ac_prev=program_transform_name ;; 1198 -program-transform-name=* | --program-transform-name=* \ 1199 | --program-transform-nam=* | --program-transform-na=* \ 1200 | --program-transform-n=* | --program-transform-=* \ 1201 | --program-transform=* | --program-transfor=* \ 1202 | --program-transfo=* | --program-transf=* \ 1203 | --program-trans=* | --program-tran=* \ 1204 | --progr-tra=* | --program-tr=* | --program-t=*) 1205 program_transform_name=$ac_optarg ;; 1206 1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1208 ac_prev=pdfdir ;; 1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1210 pdfdir=$ac_optarg ;; 1211 1212 -psdir | --psdir | --psdi | --psd | --ps) 1213 ac_prev=psdir ;; 1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1215 psdir=$ac_optarg ;; 1216 1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1218 | -silent | --silent | --silen | --sile | --sil) 1219 silent=yes ;; 1220 1221 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1222 | --runstate | --runstat | --runsta | --runst | --runs \ 1223 | --run | --ru | --r) 1224 ac_prev=runstatedir ;; 1225 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1226 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1227 | --run=* | --ru=* | --r=*) 1228 runstatedir=$ac_optarg ;; 1229 1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1231 ac_prev=sbindir ;; 1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1233 | --sbi=* | --sb=*) 1234 sbindir=$ac_optarg ;; 1235 1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1238 | --sharedst | --shareds | --shared | --share | --shar \ 1239 | --sha | --sh) 1240 ac_prev=sharedstatedir ;; 1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1244 | --sha=* | --sh=*) 1245 sharedstatedir=$ac_optarg ;; 1246 1247 -site | --site | --sit) 1248 ac_prev=site ;; 1249 -site=* | --site=* | --sit=*) 1250 site=$ac_optarg ;; 1251 1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1253 ac_prev=srcdir ;; 1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1255 srcdir=$ac_optarg ;; 1256 1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1258 | --syscon | --sysco | --sysc | --sys | --sy) 1259 ac_prev=sysconfdir ;; 1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1262 sysconfdir=$ac_optarg ;; 1263 1264 -target | --target | --targe | --targ | --tar | --ta | --t) 1265 ac_prev=target_alias ;; 1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1267 target_alias=$ac_optarg ;; 1268 1269 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1270 verbose=yes ;; 1271 1272 -version | --version | --versio | --versi | --vers | -V) 1273 ac_init_version=: ;; 1274 1275 -with-* | --with-*) 1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1277 # Reject names that are not valid shell variable names. 1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1279 as_fn_error $? "invalid package name: $ac_useropt" 1280 ac_useropt_orig=$ac_useropt 1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1282 case $ac_user_opts in 1283 *" 1284"with_$ac_useropt" 1285"*) ;; 1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1287 ac_unrecognized_sep=', ';; 1288 esac 1289 eval with_$ac_useropt=\$ac_optarg ;; 1290 1291 -without-* | --without-*) 1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1293 # Reject names that are not valid shell variable names. 1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1295 as_fn_error $? "invalid package name: $ac_useropt" 1296 ac_useropt_orig=$ac_useropt 1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1298 case $ac_user_opts in 1299 *" 1300"with_$ac_useropt" 1301"*) ;; 1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1303 ac_unrecognized_sep=', ';; 1304 esac 1305 eval with_$ac_useropt=no ;; 1306 1307 --x) 1308 # Obsolete; use --with-x. 1309 with_x=yes ;; 1310 1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1312 | --x-incl | --x-inc | --x-in | --x-i) 1313 ac_prev=x_includes ;; 1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1316 x_includes=$ac_optarg ;; 1317 1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1320 ac_prev=x_libraries ;; 1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1323 x_libraries=$ac_optarg ;; 1324 1325 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1326Try \`$0 --help' for more information" 1327 ;; 1328 1329 *=*) 1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1331 # Reject names that are not valid shell variable names. 1332 case $ac_envvar in #( 1333 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1334 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1335 esac 1336 eval $ac_envvar=\$ac_optarg 1337 export $ac_envvar ;; 1338 1339 *) 1340 # FIXME: should be removed in autoconf 3.0. 1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1344 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1345 ;; 1346 1347 esac 1348done 1349 1350if test -n "$ac_prev"; then 1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1352 as_fn_error $? "missing argument to $ac_option" 1353fi 1354 1355if test -n "$ac_unrecognized_opts"; then 1356 case $enable_option_checking in 1357 no) ;; 1358 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1360 esac 1361fi 1362 1363# Check all directory arguments for consistency. 1364for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1365 datadir sysconfdir sharedstatedir localstatedir includedir \ 1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1367 libdir localedir mandir runstatedir 1368do 1369 eval ac_val=\$$ac_var 1370 # Remove trailing slashes. 1371 case $ac_val in 1372 */ ) 1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1374 eval $ac_var=\$ac_val;; 1375 esac 1376 # Be sure to have absolute directory names. 1377 case $ac_val in 1378 [\\/$]* | ?:[\\/]* ) continue;; 1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1380 esac 1381 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1382done 1383 1384# There might be people who depend on the old broken behavior: `$host' 1385# used to hold the argument of --host etc. 1386# FIXME: To remove some day. 1387build=$build_alias 1388host=$host_alias 1389target=$target_alias 1390 1391# FIXME: To remove some day. 1392if test "x$host_alias" != x; then 1393 if test "x$build_alias" = x; then 1394 cross_compiling=maybe 1395 elif test "x$build_alias" != "x$host_alias"; then 1396 cross_compiling=yes 1397 fi 1398fi 1399 1400ac_tool_prefix= 1401test -n "$host_alias" && ac_tool_prefix=$host_alias- 1402 1403test "$silent" = yes && exec 6>/dev/null 1404 1405 1406ac_pwd=`pwd` && test -n "$ac_pwd" && 1407ac_ls_di=`ls -di .` && 1408ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1409 as_fn_error $? "working directory cannot be determined" 1410test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1411 as_fn_error $? "pwd does not report name of working directory" 1412 1413 1414# Find the source files, if location was not specified. 1415if test -z "$srcdir"; then 1416 ac_srcdir_defaulted=yes 1417 # Try the directory containing this script, then the parent directory. 1418 ac_confdir=`$as_dirname -- "$as_myself" || 1419$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1420 X"$as_myself" : 'X\(//\)[^/]' \| \ 1421 X"$as_myself" : 'X\(//\)$' \| \ 1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1423$as_echo X"$as_myself" | 1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1425 s//\1/ 1426 q 1427 } 1428 /^X\(\/\/\)[^/].*/{ 1429 s//\1/ 1430 q 1431 } 1432 /^X\(\/\/\)$/{ 1433 s//\1/ 1434 q 1435 } 1436 /^X\(\/\).*/{ 1437 s//\1/ 1438 q 1439 } 1440 s/.*/./; q'` 1441 srcdir=$ac_confdir 1442 if test ! -r "$srcdir/$ac_unique_file"; then 1443 srcdir=.. 1444 fi 1445else 1446 ac_srcdir_defaulted=no 1447fi 1448if test ! -r "$srcdir/$ac_unique_file"; then 1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1450 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1451fi 1452ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1453ac_abs_confdir=`( 1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1455 pwd)` 1456# When building in place, set srcdir=. 1457if test "$ac_abs_confdir" = "$ac_pwd"; then 1458 srcdir=. 1459fi 1460# Remove unnecessary trailing slashes from srcdir. 1461# Double slashes in file names in object file debugging info 1462# mess up M-x gdb in Emacs. 1463case $srcdir in 1464*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1465esac 1466for ac_var in $ac_precious_vars; do 1467 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1468 eval ac_env_${ac_var}_value=\$${ac_var} 1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1470 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1471done 1472 1473# 1474# Report the --help message. 1475# 1476if test "$ac_init_help" = "long"; then 1477 # Omit some internal or obsolete options to make the list less imposing. 1478 # This message is too long to be a string in the A/UX 3.1 sh. 1479 cat <<_ACEOF 1480\`configure' configures unbound 1.16.0 to adapt to many kinds of systems. 1481 1482Usage: $0 [OPTION]... [VAR=VALUE]... 1483 1484To assign environment variables (e.g., CC, CFLAGS...), specify them as 1485VAR=VALUE. See below for descriptions of some of the useful variables. 1486 1487Defaults for the options are specified in brackets. 1488 1489Configuration: 1490 -h, --help display this help and exit 1491 --help=short display options specific to this package 1492 --help=recursive display the short help of all the included packages 1493 -V, --version display version information and exit 1494 -q, --quiet, --silent do not print \`checking ...' messages 1495 --cache-file=FILE cache test results in FILE [disabled] 1496 -C, --config-cache alias for \`--cache-file=config.cache' 1497 -n, --no-create do not create output files 1498 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1499 1500Installation directories: 1501 --prefix=PREFIX install architecture-independent files in PREFIX 1502 [$ac_default_prefix] 1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1504 [PREFIX] 1505 1506By default, \`make install' will install all the files in 1507\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1508an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1509for instance \`--prefix=\$HOME'. 1510 1511For better control, use the options below. 1512 1513Fine tuning of the installation directories: 1514 --bindir=DIR user executables [EPREFIX/bin] 1515 --sbindir=DIR system admin executables [EPREFIX/sbin] 1516 --libexecdir=DIR program executables [EPREFIX/libexec] 1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1520 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1521 --libdir=DIR object code libraries [EPREFIX/lib] 1522 --includedir=DIR C header files [PREFIX/include] 1523 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1526 --infodir=DIR info documentation [DATAROOTDIR/info] 1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1528 --mandir=DIR man documentation [DATAROOTDIR/man] 1529 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound] 1530 --htmldir=DIR html documentation [DOCDIR] 1531 --dvidir=DIR dvi documentation [DOCDIR] 1532 --pdfdir=DIR pdf documentation [DOCDIR] 1533 --psdir=DIR ps documentation [DOCDIR] 1534_ACEOF 1535 1536 cat <<\_ACEOF 1537 1538System types: 1539 --build=BUILD configure for building on BUILD [guessed] 1540 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1541_ACEOF 1542fi 1543 1544if test -n "$ac_init_help"; then 1545 case $ac_init_help in 1546 short | recursive ) echo "Configuration of unbound 1.16.0:";; 1547 esac 1548 cat <<\_ACEOF 1549 1550Optional Features: 1551 --disable-option-checking ignore unrecognized --enable/--with options 1552 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1553 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1554 --enable-checking Enable warnings, asserts, makefile-dependencies 1555 --enable-debug same as enable-checking 1556 --disable-flto Disable link-time optimization (gcc specific option) 1557 --enable-pie Enable Position-Independent Executable (eg. to fully 1558 benefit from ASLR, small performance penalty) 1559 --enable-relro-now Enable full relocation binding at load-time (RELRO 1560 NOW, to protect GOT and .dtor areas) 1561 --enable-shared[=PKGS] build shared libraries [default=yes] 1562 --enable-static[=PKGS] build static libraries [default=yes] 1563 --enable-fast-install[=PKGS] 1564 optimize for fast installation [default=yes] 1565 --disable-libtool-lock avoid locking (might break parallel builds) 1566 --disable-rpath disable hardcoded rpath (default=enabled) 1567 --disable-largefile omit support for large files 1568 --enable-systemd compile with systemd support 1569 --enable-alloc-checks enable to memory allocation statistics, for debug 1570 purposes 1571 --enable-alloc-lite enable for lightweight alloc assertions, for debug 1572 purposes 1573 --enable-alloc-nonregional 1574 enable nonregional allocs, slow but exposes regional 1575 allocations to other memory purifiers, for debug 1576 purposes 1577 --disable-swig-version-check 1578 Disable swig version check to build python modules 1579 with older swig even though that is unreliable 1580 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3 1581 support 1582 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1583 --enable-subnet Enable client subnet 1584 --disable-gost Disable GOST support 1585 --disable-ecdsa Disable ECDSA support 1586 --disable-dsa Disable DSA support 1587 --disable-ed25519 Disable ED25519 support 1588 --disable-ed448 Disable ED448 support 1589 --enable-event-api Enable (experimental) pluggable event base 1590 libunbound API installed to unbound-event.h 1591 --enable-tfo-client Enable TCP Fast Open for client mode 1592 --enable-tfo-server Enable TCP Fast Open for server mode 1593 --enable-static-exe enable to compile executables statically against 1594 (event) uninstalled libs, for debug purposes 1595 --enable-fully-static enable to compile fully static 1596 --enable-lock-checks enable to check lock and unlock calls, for debug 1597 purposes 1598 --enable-allsymbols export all symbols from libunbound and link binaries 1599 to it, smaller install size but libunbound export 1600 table is polluted by internal symbols 1601 --enable-dnstap Enable dnstap support (requires protobuf-c) 1602 --enable-dnscrypt Enable dnscrypt support (requires libsodium) 1603 --enable-cachedb enable cachedb module that can use external cache 1604 storage 1605 --enable-ipsecmod Enable ipsecmod module that facilitates 1606 opportunistic IPsec 1607 --enable-ipset enable ipset module 1608 --disable-explicit-port-randomisation 1609 disable explicit source port randomisation and rely 1610 on the kernel to provide random source ports 1611 --enable-linux-ip-local-port-range 1612 Define this to enable use of 1613 /proc/sys/net/ipv4/ip_local_port_range as a default 1614 outgoing port range. This is only for the libunbound 1615 on Linux and does not affect unbound resolving 1616 daemon itself. This may severely limit the number of 1617 available outgoing ports and thus decrease 1618 randomness. Define this only when the target system 1619 restricts (e.g. some of SELinux enabled 1620 distributions) the use of non-ephemeral ports. 1621 1622Optional Packages: 1623 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1624 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1625 --with-conf-file=path Pathname to the Unbound configuration file 1626 --with-run-dir=path set default directory to chdir to (by default dir 1627 part of cfg file) 1628 --with-chroot-dir=path set default directory to chroot to (by default same 1629 as run-dir) 1630 --with-share-dir=path set default directory with shared data (by default 1631 same as share/unbound) 1632 --with-pidfile=filename set default pathname to unbound pidfile (default 1633 run-dir/unbound.pid) 1634 --with-rootkey-file=filename 1635 set default pathname to root key file (default 1636 run-dir/root.key). This file is read and written. 1637 --with-rootcert-file=filename 1638 set default pathname to root update certificate file 1639 (default run-dir/icannbundle.pem). This file need 1640 not exist if you are content with the builtin. 1641 --with-username=user set default user that unbound changes to (default 1642 user is unbound) 1643 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1644 both] 1645 --with-aix-soname=aix|svr4|both 1646 shared library versioning (aka "SONAME") variant to 1647 provide on AIX, [default=aix]. 1648 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1649 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1650 compiler's sysroot if not specified). 1651 --with-pthreads use pthreads library, or --without-pthreads to 1652 disable threading support. 1653 --with-solaris-threads use solaris native thread library. 1654 --with-syslog-facility=LOCAL0 - LOCAL7 1655 set SYSLOG_FACILITY, default DAEMON 1656 --with-dynlibmodule build dynamic library module, or 1657 --without-dynlibmodule to disable it. (default=no) 1658 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it. 1659 (default=no) 1660 --with-pythonmodule build Python module, or --without-pythonmodule to 1661 disable script engine. (default=no) 1662 --with-nss=path use libnss instead of openssl, installed at path. 1663 --with-nettle=path use libnettle as crypto library, installed at path. 1664 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1665 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1666 /usr or specify like /usr/include/openssl11) 1667 --with-libbsd Use portable libbsd functions 1668 --with-deprecate-rsa-1024 1669 Deprecate RSA 1024 bit length, makes that an 1670 unsupported key, for use when OpenSSL FIPS refuses 1671 1024 bit verification 1672 --with-libevent=pathname 1673 use libevent (will check /usr/local /opt/local 1674 /usr/lib /usr/pkg /usr/sfw /usr or you can specify 1675 an explicit path). Slower, but allows use of large 1676 outgoing port ranges. 1677 --with-libexpat=path specify explicit path for libexpat. 1678 --with-libhiredis=path specify explicit path for libhiredis. 1679 --with-libnghttp2=path specify explicit path for libnghttp2. 1680 --with-dnstap-socket-path=pathname 1681 set default dnstap socket path 1682 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap 1683 --with-libsodium=path Path where libsodium is installed, for dnscrypt 1684 --with-libmnl=path specify explicit path for libmnl. 1685 --with-libunbound-only do not build daemon and tool programs 1686 1687Some influential environment variables: 1688 CC C compiler command 1689 CFLAGS C compiler flags 1690 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1691 nonstandard directory <lib dir> 1692 LIBS libraries to pass to the linker, e.g. -l<library> 1693 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1694 you have headers in a nonstandard directory <include dir> 1695 CPP C preprocessor 1696 YACC The `Yet Another Compiler Compiler' implementation to use. 1697 Defaults to the first program found out of: `bison -y', `byacc', 1698 `yacc'. 1699 YFLAGS The list of arguments that will be passed by default to $YACC. 1700 This script will default YFLAGS to the empty string to avoid a 1701 default value of `-d' given by some make applications. 1702 LT_SYS_LIBRARY_PATH 1703 User-defined run-time library search path. 1704 PKG_CONFIG path to pkg-config utility 1705 PKG_CONFIG_PATH 1706 directories to add to pkg-config's search path 1707 PKG_CONFIG_LIBDIR 1708 path overriding pkg-config's built-in search path 1709 SYSTEMD_CFLAGS 1710 C compiler flags for SYSTEMD, overriding pkg-config 1711 SYSTEMD_LIBS 1712 linker flags for SYSTEMD, overriding pkg-config 1713 SYSTEMD_DAEMON_CFLAGS 1714 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 1715 SYSTEMD_DAEMON_LIBS 1716 linker flags for SYSTEMD_DAEMON, overriding pkg-config 1717 PYTHON_VERSION 1718 The installed Python version to use, for example '2.3'. This 1719 string will be appended to the Python interpreter canonical 1720 name. 1721 1722Use these variables to override the choices made by `configure' or to help 1723it to find libraries and programs with nonstandard names/locations. 1724 1725Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>. 1726_ACEOF 1727ac_status=$? 1728fi 1729 1730if test "$ac_init_help" = "recursive"; then 1731 # If there are subdirs, report their specific --help. 1732 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1733 test -d "$ac_dir" || 1734 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1735 continue 1736 ac_builddir=. 1737 1738case "$ac_dir" in 1739.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1740*) 1741 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1742 # A ".." for each directory in $ac_dir_suffix. 1743 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1744 case $ac_top_builddir_sub in 1745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1747 esac ;; 1748esac 1749ac_abs_top_builddir=$ac_pwd 1750ac_abs_builddir=$ac_pwd$ac_dir_suffix 1751# for backward compatibility: 1752ac_top_builddir=$ac_top_build_prefix 1753 1754case $srcdir in 1755 .) # We are building in place. 1756 ac_srcdir=. 1757 ac_top_srcdir=$ac_top_builddir_sub 1758 ac_abs_top_srcdir=$ac_pwd ;; 1759 [\\/]* | ?:[\\/]* ) # Absolute name. 1760 ac_srcdir=$srcdir$ac_dir_suffix; 1761 ac_top_srcdir=$srcdir 1762 ac_abs_top_srcdir=$srcdir ;; 1763 *) # Relative name. 1764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1765 ac_top_srcdir=$ac_top_build_prefix$srcdir 1766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1767esac 1768ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1769 1770 cd "$ac_dir" || { ac_status=$?; continue; } 1771 # Check for guested configure. 1772 if test -f "$ac_srcdir/configure.gnu"; then 1773 echo && 1774 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1775 elif test -f "$ac_srcdir/configure"; then 1776 echo && 1777 $SHELL "$ac_srcdir/configure" --help=recursive 1778 else 1779 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1780 fi || ac_status=$? 1781 cd "$ac_pwd" || { ac_status=$?; break; } 1782 done 1783fi 1784 1785test -n "$ac_init_help" && exit $ac_status 1786if $ac_init_version; then 1787 cat <<\_ACEOF 1788unbound configure 1.16.0 1789generated by GNU Autoconf 2.69 1790 1791Copyright (C) 2012 Free Software Foundation, Inc. 1792This configure script is free software; the Free Software Foundation 1793gives unlimited permission to copy, distribute and modify it. 1794_ACEOF 1795 exit 1796fi 1797 1798## ------------------------ ## 1799## Autoconf initialization. ## 1800## ------------------------ ## 1801 1802# ac_fn_c_try_compile LINENO 1803# -------------------------- 1804# Try to compile conftest.$ac_ext, and return whether this succeeded. 1805ac_fn_c_try_compile () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 rm -f conftest.$ac_objext 1809 if { { ac_try="$ac_compile" 1810case "(($ac_try" in 1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1812 *) ac_try_echo=$ac_try;; 1813esac 1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1815$as_echo "$ac_try_echo"; } >&5 1816 (eval "$ac_compile") 2>conftest.err 1817 ac_status=$? 1818 if test -s conftest.err; then 1819 grep -v '^ *+' conftest.err >conftest.er1 1820 cat conftest.er1 >&5 1821 mv -f conftest.er1 conftest.err 1822 fi 1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1824 test $ac_status = 0; } && { 1825 test -z "$ac_c_werror_flag" || 1826 test ! -s conftest.err 1827 } && test -s conftest.$ac_objext; then : 1828 ac_retval=0 1829else 1830 $as_echo "$as_me: failed program was:" >&5 1831sed 's/^/| /' conftest.$ac_ext >&5 1832 1833 ac_retval=1 1834fi 1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1836 as_fn_set_status $ac_retval 1837 1838} # ac_fn_c_try_compile 1839 1840# ac_fn_c_try_cpp LINENO 1841# ---------------------- 1842# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1843ac_fn_c_try_cpp () 1844{ 1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1846 if { { ac_try="$ac_cpp conftest.$ac_ext" 1847case "(($ac_try" in 1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1849 *) ac_try_echo=$ac_try;; 1850esac 1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1852$as_echo "$ac_try_echo"; } >&5 1853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1854 ac_status=$? 1855 if test -s conftest.err; then 1856 grep -v '^ *+' conftest.err >conftest.er1 1857 cat conftest.er1 >&5 1858 mv -f conftest.er1 conftest.err 1859 fi 1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1861 test $ac_status = 0; } > conftest.i && { 1862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1863 test ! -s conftest.err 1864 }; then : 1865 ac_retval=0 1866else 1867 $as_echo "$as_me: failed program was:" >&5 1868sed 's/^/| /' conftest.$ac_ext >&5 1869 1870 ac_retval=1 1871fi 1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1873 as_fn_set_status $ac_retval 1874 1875} # ac_fn_c_try_cpp 1876 1877# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1878# ------------------------------------------------------- 1879# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1880# the include files in INCLUDES and setting the cache variable VAR 1881# accordingly. 1882ac_fn_c_check_header_mongrel () 1883{ 1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1885 if eval \${$3+:} false; then : 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1887$as_echo_n "checking for $2... " >&6; } 1888if eval \${$3+:} false; then : 1889 $as_echo_n "(cached) " >&6 1890fi 1891eval ac_res=\$$3 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1893$as_echo "$ac_res" >&6; } 1894else 1895 # Is the header compilable? 1896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1897$as_echo_n "checking $2 usability... " >&6; } 1898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1899/* end confdefs.h. */ 1900$4 1901#include <$2> 1902_ACEOF 1903if ac_fn_c_try_compile "$LINENO"; then : 1904 ac_header_compiler=yes 1905else 1906 ac_header_compiler=no 1907fi 1908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1910$as_echo "$ac_header_compiler" >&6; } 1911 1912# Is the header present? 1913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1914$as_echo_n "checking $2 presence... " >&6; } 1915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1916/* end confdefs.h. */ 1917#include <$2> 1918_ACEOF 1919if ac_fn_c_try_cpp "$LINENO"; then : 1920 ac_header_preproc=yes 1921else 1922 ac_header_preproc=no 1923fi 1924rm -f conftest.err conftest.i conftest.$ac_ext 1925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1926$as_echo "$ac_header_preproc" >&6; } 1927 1928# So? What about this header? 1929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1930 yes:no: ) 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1932$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1934$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1935 ;; 1936 no:yes:* ) 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1938$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1940$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1942$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1944$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1946$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1947( $as_echo "## --------------------------------------------------------------------------------------- ## 1948## Report this to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues ## 1949## --------------------------------------------------------------------------------------- ##" 1950 ) | sed "s/^/$as_me: WARNING: /" >&2 1951 ;; 1952esac 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1954$as_echo_n "checking for $2... " >&6; } 1955if eval \${$3+:} false; then : 1956 $as_echo_n "(cached) " >&6 1957else 1958 eval "$3=\$ac_header_compiler" 1959fi 1960eval ac_res=\$$3 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1962$as_echo "$ac_res" >&6; } 1963fi 1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1965 1966} # ac_fn_c_check_header_mongrel 1967 1968# ac_fn_c_try_run LINENO 1969# ---------------------- 1970# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1971# that executables *can* be run. 1972ac_fn_c_try_run () 1973{ 1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1975 if { { ac_try="$ac_link" 1976case "(($ac_try" in 1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1978 *) ac_try_echo=$ac_try;; 1979esac 1980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1981$as_echo "$ac_try_echo"; } >&5 1982 (eval "$ac_link") 2>&5 1983 ac_status=$? 1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1985 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1986 { { case "(($ac_try" in 1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1988 *) ac_try_echo=$ac_try;; 1989esac 1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1991$as_echo "$ac_try_echo"; } >&5 1992 (eval "$ac_try") 2>&5 1993 ac_status=$? 1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1995 test $ac_status = 0; }; }; then : 1996 ac_retval=0 1997else 1998 $as_echo "$as_me: program exited with status $ac_status" >&5 1999 $as_echo "$as_me: failed program was:" >&5 2000sed 's/^/| /' conftest.$ac_ext >&5 2001 2002 ac_retval=$ac_status 2003fi 2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2006 as_fn_set_status $ac_retval 2007 2008} # ac_fn_c_try_run 2009 2010# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2011# ------------------------------------------------------- 2012# Tests whether HEADER exists and can be compiled using the include files in 2013# INCLUDES, setting the cache variable VAR accordingly. 2014ac_fn_c_check_header_compile () 2015{ 2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2018$as_echo_n "checking for $2... " >&6; } 2019if eval \${$3+:} false; then : 2020 $as_echo_n "(cached) " >&6 2021else 2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2023/* end confdefs.h. */ 2024$4 2025#include <$2> 2026_ACEOF 2027if ac_fn_c_try_compile "$LINENO"; then : 2028 eval "$3=yes" 2029else 2030 eval "$3=no" 2031fi 2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2033fi 2034eval ac_res=\$$3 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2036$as_echo "$ac_res" >&6; } 2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2038 2039} # ac_fn_c_check_header_compile 2040 2041# ac_fn_c_try_link LINENO 2042# ----------------------- 2043# Try to link conftest.$ac_ext, and return whether this succeeded. 2044ac_fn_c_try_link () 2045{ 2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2047 rm -f conftest.$ac_objext conftest$ac_exeext 2048 if { { ac_try="$ac_link" 2049case "(($ac_try" in 2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2051 *) ac_try_echo=$ac_try;; 2052esac 2053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2054$as_echo "$ac_try_echo"; } >&5 2055 (eval "$ac_link") 2>conftest.err 2056 ac_status=$? 2057 if test -s conftest.err; then 2058 grep -v '^ *+' conftest.err >conftest.er1 2059 cat conftest.er1 >&5 2060 mv -f conftest.er1 conftest.err 2061 fi 2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2063 test $ac_status = 0; } && { 2064 test -z "$ac_c_werror_flag" || 2065 test ! -s conftest.err 2066 } && test -s conftest$ac_exeext && { 2067 test "$cross_compiling" = yes || 2068 test -x conftest$ac_exeext 2069 }; then : 2070 ac_retval=0 2071else 2072 $as_echo "$as_me: failed program was:" >&5 2073sed 's/^/| /' conftest.$ac_ext >&5 2074 2075 ac_retval=1 2076fi 2077 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2078 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2079 # interfere with the next link command; also delete a directory that is 2080 # left behind by Apple's compiler. We do this before executing the actions. 2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2083 as_fn_set_status $ac_retval 2084 2085} # ac_fn_c_try_link 2086 2087# ac_fn_c_check_func LINENO FUNC VAR 2088# ---------------------------------- 2089# Tests whether FUNC exists, setting the cache variable VAR accordingly 2090ac_fn_c_check_func () 2091{ 2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2094$as_echo_n "checking for $2... " >&6; } 2095if eval \${$3+:} false; then : 2096 $as_echo_n "(cached) " >&6 2097else 2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2099/* end confdefs.h. */ 2100/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2101 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2102#define $2 innocuous_$2 2103 2104/* System header to define __stub macros and hopefully few prototypes, 2105 which can conflict with char $2 (); below. 2106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2107 <limits.h> exists even on freestanding compilers. */ 2108 2109#ifdef __STDC__ 2110# include <limits.h> 2111#else 2112# include <assert.h> 2113#endif 2114 2115#undef $2 2116 2117/* Override any GCC internal prototype to avoid an error. 2118 Use char because int might match the return type of a GCC 2119 builtin and then its argument prototype would still apply. */ 2120#ifdef __cplusplus 2121extern "C" 2122#endif 2123char $2 (); 2124/* The GNU C library defines this for functions which it implements 2125 to always fail with ENOSYS. Some functions are actually named 2126 something starting with __ and the normal name is an alias. */ 2127#if defined __stub_$2 || defined __stub___$2 2128choke me 2129#endif 2130 2131int 2132main () 2133{ 2134return $2 (); 2135 ; 2136 return 0; 2137} 2138_ACEOF 2139if ac_fn_c_try_link "$LINENO"; then : 2140 eval "$3=yes" 2141else 2142 eval "$3=no" 2143fi 2144rm -f core conftest.err conftest.$ac_objext \ 2145 conftest$ac_exeext conftest.$ac_ext 2146fi 2147eval ac_res=\$$3 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2149$as_echo "$ac_res" >&6; } 2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2151 2152} # ac_fn_c_check_func 2153 2154# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2155# ------------------------------------------- 2156# Tests whether TYPE exists after having included INCLUDES, setting cache 2157# variable VAR accordingly. 2158ac_fn_c_check_type () 2159{ 2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2162$as_echo_n "checking for $2... " >&6; } 2163if eval \${$3+:} false; then : 2164 $as_echo_n "(cached) " >&6 2165else 2166 eval "$3=no" 2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2168/* end confdefs.h. */ 2169$4 2170int 2171main () 2172{ 2173if (sizeof ($2)) 2174 return 0; 2175 ; 2176 return 0; 2177} 2178_ACEOF 2179if ac_fn_c_try_compile "$LINENO"; then : 2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2181/* end confdefs.h. */ 2182$4 2183int 2184main () 2185{ 2186if (sizeof (($2))) 2187 return 0; 2188 ; 2189 return 0; 2190} 2191_ACEOF 2192if ac_fn_c_try_compile "$LINENO"; then : 2193 2194else 2195 eval "$3=yes" 2196fi 2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2198fi 2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2200fi 2201eval ac_res=\$$3 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2203$as_echo "$ac_res" >&6; } 2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2205 2206} # ac_fn_c_check_type 2207 2208# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2209# -------------------------------------------- 2210# Tries to find the compile-time value of EXPR in a program that includes 2211# INCLUDES, setting VAR accordingly. Returns whether the value could be 2212# computed 2213ac_fn_c_compute_int () 2214{ 2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2216 if test "$cross_compiling" = yes; then 2217 # Depending upon the size, compute the lo and hi bounds. 2218cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2219/* end confdefs.h. */ 2220$4 2221int 2222main () 2223{ 2224static int test_array [1 - 2 * !(($2) >= 0)]; 2225test_array [0] = 0; 2226return test_array [0]; 2227 2228 ; 2229 return 0; 2230} 2231_ACEOF 2232if ac_fn_c_try_compile "$LINENO"; then : 2233 ac_lo=0 ac_mid=0 2234 while :; do 2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2236/* end confdefs.h. */ 2237$4 2238int 2239main () 2240{ 2241static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2242test_array [0] = 0; 2243return test_array [0]; 2244 2245 ; 2246 return 0; 2247} 2248_ACEOF 2249if ac_fn_c_try_compile "$LINENO"; then : 2250 ac_hi=$ac_mid; break 2251else 2252 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2253 if test $ac_lo -le $ac_mid; then 2254 ac_lo= ac_hi= 2255 break 2256 fi 2257 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2258fi 2259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2260 done 2261else 2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2263/* end confdefs.h. */ 2264$4 2265int 2266main () 2267{ 2268static int test_array [1 - 2 * !(($2) < 0)]; 2269test_array [0] = 0; 2270return test_array [0]; 2271 2272 ; 2273 return 0; 2274} 2275_ACEOF 2276if ac_fn_c_try_compile "$LINENO"; then : 2277 ac_hi=-1 ac_mid=-1 2278 while :; do 2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2280/* end confdefs.h. */ 2281$4 2282int 2283main () 2284{ 2285static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2286test_array [0] = 0; 2287return test_array [0]; 2288 2289 ; 2290 return 0; 2291} 2292_ACEOF 2293if ac_fn_c_try_compile "$LINENO"; then : 2294 ac_lo=$ac_mid; break 2295else 2296 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2297 if test $ac_mid -le $ac_hi; then 2298 ac_lo= ac_hi= 2299 break 2300 fi 2301 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2302fi 2303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2304 done 2305else 2306 ac_lo= ac_hi= 2307fi 2308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2309fi 2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2311# Binary search between lo and hi bounds. 2312while test "x$ac_lo" != "x$ac_hi"; do 2313 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2315/* end confdefs.h. */ 2316$4 2317int 2318main () 2319{ 2320static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2321test_array [0] = 0; 2322return test_array [0]; 2323 2324 ; 2325 return 0; 2326} 2327_ACEOF 2328if ac_fn_c_try_compile "$LINENO"; then : 2329 ac_hi=$ac_mid 2330else 2331 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2332fi 2333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2334done 2335case $ac_lo in #(( 2336?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2337'') ac_retval=1 ;; 2338esac 2339 else 2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2341/* end confdefs.h. */ 2342$4 2343static long int longval () { return $2; } 2344static unsigned long int ulongval () { return $2; } 2345#include <stdio.h> 2346#include <stdlib.h> 2347int 2348main () 2349{ 2350 2351 FILE *f = fopen ("conftest.val", "w"); 2352 if (! f) 2353 return 1; 2354 if (($2) < 0) 2355 { 2356 long int i = longval (); 2357 if (i != ($2)) 2358 return 1; 2359 fprintf (f, "%ld", i); 2360 } 2361 else 2362 { 2363 unsigned long int i = ulongval (); 2364 if (i != ($2)) 2365 return 1; 2366 fprintf (f, "%lu", i); 2367 } 2368 /* Do not output a trailing newline, as this causes \r\n confusion 2369 on some platforms. */ 2370 return ferror (f) || fclose (f) != 0; 2371 2372 ; 2373 return 0; 2374} 2375_ACEOF 2376if ac_fn_c_try_run "$LINENO"; then : 2377 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2378else 2379 ac_retval=1 2380fi 2381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2382 conftest.$ac_objext conftest.beam conftest.$ac_ext 2383rm -f conftest.val 2384 2385 fi 2386 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2387 as_fn_set_status $ac_retval 2388 2389} # ac_fn_c_compute_int 2390 2391# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2392# --------------------------------------------- 2393# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2394# accordingly. 2395ac_fn_c_check_decl () 2396{ 2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2398 as_decl_name=`echo $2|sed 's/ *(.*//'` 2399 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2401$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2402if eval \${$3+:} false; then : 2403 $as_echo_n "(cached) " >&6 2404else 2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2406/* end confdefs.h. */ 2407$4 2408int 2409main () 2410{ 2411#ifndef $as_decl_name 2412#ifdef __cplusplus 2413 (void) $as_decl_use; 2414#else 2415 (void) $as_decl_name; 2416#endif 2417#endif 2418 2419 ; 2420 return 0; 2421} 2422_ACEOF 2423if ac_fn_c_try_compile "$LINENO"; then : 2424 eval "$3=yes" 2425else 2426 eval "$3=no" 2427fi 2428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2429fi 2430eval ac_res=\$$3 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2432$as_echo "$ac_res" >&6; } 2433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2434 2435} # ac_fn_c_check_decl 2436 2437# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2438# ---------------------------------------------------- 2439# Tries to find if the field MEMBER exists in type AGGR, after including 2440# INCLUDES, setting cache variable VAR accordingly. 2441ac_fn_c_check_member () 2442{ 2443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2445$as_echo_n "checking for $2.$3... " >&6; } 2446if eval \${$4+:} false; then : 2447 $as_echo_n "(cached) " >&6 2448else 2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2450/* end confdefs.h. */ 2451$5 2452int 2453main () 2454{ 2455static $2 ac_aggr; 2456if (ac_aggr.$3) 2457return 0; 2458 ; 2459 return 0; 2460} 2461_ACEOF 2462if ac_fn_c_try_compile "$LINENO"; then : 2463 eval "$4=yes" 2464else 2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2466/* end confdefs.h. */ 2467$5 2468int 2469main () 2470{ 2471static $2 ac_aggr; 2472if (sizeof ac_aggr.$3) 2473return 0; 2474 ; 2475 return 0; 2476} 2477_ACEOF 2478if ac_fn_c_try_compile "$LINENO"; then : 2479 eval "$4=yes" 2480else 2481 eval "$4=no" 2482fi 2483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2484fi 2485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2486fi 2487eval ac_res=\$$4 2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2489$as_echo "$ac_res" >&6; } 2490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2491 2492} # ac_fn_c_check_member 2493cat >config.log <<_ACEOF 2494This file contains any messages produced by compilers while 2495running configure, to aid debugging if configure makes a mistake. 2496 2497It was created by unbound $as_me 1.16.0, which was 2498generated by GNU Autoconf 2.69. Invocation command line was 2499 2500 $ $0 $@ 2501 2502_ACEOF 2503exec 5>>config.log 2504{ 2505cat <<_ASUNAME 2506## --------- ## 2507## Platform. ## 2508## --------- ## 2509 2510hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2511uname -m = `(uname -m) 2>/dev/null || echo unknown` 2512uname -r = `(uname -r) 2>/dev/null || echo unknown` 2513uname -s = `(uname -s) 2>/dev/null || echo unknown` 2514uname -v = `(uname -v) 2>/dev/null || echo unknown` 2515 2516/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2517/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2518 2519/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2520/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2521/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2522/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2523/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2524/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2525/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2526 2527_ASUNAME 2528 2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2530for as_dir in $PATH 2531do 2532 IFS=$as_save_IFS 2533 test -z "$as_dir" && as_dir=. 2534 $as_echo "PATH: $as_dir" 2535 done 2536IFS=$as_save_IFS 2537 2538} >&5 2539 2540cat >&5 <<_ACEOF 2541 2542 2543## ----------- ## 2544## Core tests. ## 2545## ----------- ## 2546 2547_ACEOF 2548 2549 2550# Keep a trace of the command line. 2551# Strip out --no-create and --no-recursion so they do not pile up. 2552# Strip out --silent because we don't want to record it for future runs. 2553# Also quote any args containing shell meta-characters. 2554# Make two passes to allow for proper duplicate-argument suppression. 2555ac_configure_args= 2556ac_configure_args0= 2557ac_configure_args1= 2558ac_must_keep_next=false 2559for ac_pass in 1 2 2560do 2561 for ac_arg 2562 do 2563 case $ac_arg in 2564 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2566 | -silent | --silent | --silen | --sile | --sil) 2567 continue ;; 2568 *\'*) 2569 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2570 esac 2571 case $ac_pass in 2572 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2573 2) 2574 as_fn_append ac_configure_args1 " '$ac_arg'" 2575 if test $ac_must_keep_next = true; then 2576 ac_must_keep_next=false # Got value, back to normal. 2577 else 2578 case $ac_arg in 2579 *=* | --config-cache | -C | -disable-* | --disable-* \ 2580 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2581 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2582 | -with-* | --with-* | -without-* | --without-* | --x) 2583 case "$ac_configure_args0 " in 2584 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2585 esac 2586 ;; 2587 -* ) ac_must_keep_next=true ;; 2588 esac 2589 fi 2590 as_fn_append ac_configure_args " '$ac_arg'" 2591 ;; 2592 esac 2593 done 2594done 2595{ ac_configure_args0=; unset ac_configure_args0;} 2596{ ac_configure_args1=; unset ac_configure_args1;} 2597 2598# When interrupted or exit'd, cleanup temporary files, and complete 2599# config.log. We remove comments because anyway the quotes in there 2600# would cause problems or look ugly. 2601# WARNING: Use '\'' to represent an apostrophe within the trap. 2602# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2603trap 'exit_status=$? 2604 # Save into config.log some information that might help in debugging. 2605 { 2606 echo 2607 2608 $as_echo "## ---------------- ## 2609## Cache variables. ## 2610## ---------------- ##" 2611 echo 2612 # The following way of writing the cache mishandles newlines in values, 2613( 2614 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2615 eval ac_val=\$$ac_var 2616 case $ac_val in #( 2617 *${as_nl}*) 2618 case $ac_var in #( 2619 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2620$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2621 esac 2622 case $ac_var in #( 2623 _ | IFS | as_nl) ;; #( 2624 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2625 *) { eval $ac_var=; unset $ac_var;} ;; 2626 esac ;; 2627 esac 2628 done 2629 (set) 2>&1 | 2630 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2631 *${as_nl}ac_space=\ *) 2632 sed -n \ 2633 "s/'\''/'\''\\\\'\'''\''/g; 2634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2635 ;; #( 2636 *) 2637 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2638 ;; 2639 esac | 2640 sort 2641) 2642 echo 2643 2644 $as_echo "## ----------------- ## 2645## Output variables. ## 2646## ----------------- ##" 2647 echo 2648 for ac_var in $ac_subst_vars 2649 do 2650 eval ac_val=\$$ac_var 2651 case $ac_val in 2652 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2653 esac 2654 $as_echo "$ac_var='\''$ac_val'\''" 2655 done | sort 2656 echo 2657 2658 if test -n "$ac_subst_files"; then 2659 $as_echo "## ------------------- ## 2660## File substitutions. ## 2661## ------------------- ##" 2662 echo 2663 for ac_var in $ac_subst_files 2664 do 2665 eval ac_val=\$$ac_var 2666 case $ac_val in 2667 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2668 esac 2669 $as_echo "$ac_var='\''$ac_val'\''" 2670 done | sort 2671 echo 2672 fi 2673 2674 if test -s confdefs.h; then 2675 $as_echo "## ----------- ## 2676## confdefs.h. ## 2677## ----------- ##" 2678 echo 2679 cat confdefs.h 2680 echo 2681 fi 2682 test "$ac_signal" != 0 && 2683 $as_echo "$as_me: caught signal $ac_signal" 2684 $as_echo "$as_me: exit $exit_status" 2685 } >&5 2686 rm -f core *.core core.conftest.* && 2687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2688 exit $exit_status 2689' 0 2690for ac_signal in 1 2 13 15; do 2691 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2692done 2693ac_signal=0 2694 2695# confdefs.h avoids OS command line length limits that DEFS can exceed. 2696rm -f -r conftest* confdefs.h 2697 2698$as_echo "/* confdefs.h */" > confdefs.h 2699 2700# Predefined preprocessor variables. 2701 2702cat >>confdefs.h <<_ACEOF 2703#define PACKAGE_NAME "$PACKAGE_NAME" 2704_ACEOF 2705 2706cat >>confdefs.h <<_ACEOF 2707#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2708_ACEOF 2709 2710cat >>confdefs.h <<_ACEOF 2711#define PACKAGE_VERSION "$PACKAGE_VERSION" 2712_ACEOF 2713 2714cat >>confdefs.h <<_ACEOF 2715#define PACKAGE_STRING "$PACKAGE_STRING" 2716_ACEOF 2717 2718cat >>confdefs.h <<_ACEOF 2719#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2720_ACEOF 2721 2722cat >>confdefs.h <<_ACEOF 2723#define PACKAGE_URL "$PACKAGE_URL" 2724_ACEOF 2725 2726 2727# Let the site file select an alternate cache file if it wants to. 2728# Prefer an explicitly selected file to automatically selected ones. 2729ac_site_file1=NONE 2730ac_site_file2=NONE 2731if test -n "$CONFIG_SITE"; then 2732 # We do not want a PATH search for config.site. 2733 case $CONFIG_SITE in #(( 2734 -*) ac_site_file1=./$CONFIG_SITE;; 2735 */*) ac_site_file1=$CONFIG_SITE;; 2736 *) ac_site_file1=./$CONFIG_SITE;; 2737 esac 2738elif test "x$prefix" != xNONE; then 2739 ac_site_file1=$prefix/share/config.site 2740 ac_site_file2=$prefix/etc/config.site 2741else 2742 ac_site_file1=$ac_default_prefix/share/config.site 2743 ac_site_file2=$ac_default_prefix/etc/config.site 2744fi 2745for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2746do 2747 test "x$ac_site_file" = xNONE && continue 2748 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2750$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2751 sed 's/^/| /' "$ac_site_file" >&5 2752 . "$ac_site_file" \ 2753 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2755as_fn_error $? "failed to load site script $ac_site_file 2756See \`config.log' for more details" "$LINENO" 5; } 2757 fi 2758done 2759 2760if test -r "$cache_file"; then 2761 # Some versions of bash will fail to source /dev/null (special files 2762 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2763 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2764 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2765$as_echo "$as_me: loading cache $cache_file" >&6;} 2766 case $cache_file in 2767 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2768 *) . "./$cache_file";; 2769 esac 2770 fi 2771else 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2773$as_echo "$as_me: creating cache $cache_file" >&6;} 2774 >$cache_file 2775fi 2776 2777# Check that the precious variables saved in the cache have kept the same 2778# value. 2779ac_cache_corrupted=false 2780for ac_var in $ac_precious_vars; do 2781 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2782 eval ac_new_set=\$ac_env_${ac_var}_set 2783 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2784 eval ac_new_val=\$ac_env_${ac_var}_value 2785 case $ac_old_set,$ac_new_set in 2786 set,) 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2788$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2789 ac_cache_corrupted=: ;; 2790 ,set) 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2792$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2793 ac_cache_corrupted=: ;; 2794 ,);; 2795 *) 2796 if test "x$ac_old_val" != "x$ac_new_val"; then 2797 # differences in whitespace do not lead to failure. 2798 ac_old_val_w=`echo x $ac_old_val` 2799 ac_new_val_w=`echo x $ac_new_val` 2800 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2802$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2803 ac_cache_corrupted=: 2804 else 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2806$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2807 eval $ac_var=\$ac_old_val 2808 fi 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2810$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2812$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2813 fi;; 2814 esac 2815 # Pass precious variables to config.status. 2816 if test "$ac_new_set" = set; then 2817 case $ac_new_val in 2818 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2819 *) ac_arg=$ac_var=$ac_new_val ;; 2820 esac 2821 case " $ac_configure_args " in 2822 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2823 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2824 esac 2825 fi 2826done 2827if $ac_cache_corrupted; then 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2831$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2832 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2833fi 2834## -------------------- ## 2835## Main body of script. ## 2836## -------------------- ## 2837 2838ac_ext=c 2839ac_cpp='$CPP $CPPFLAGS' 2840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2842ac_compiler_gnu=$ac_cv_c_compiler_gnu 2843 2844 2845UNBOUND_VERSION_MAJOR=1 2846 2847UNBOUND_VERSION_MINOR=16 2848 2849UNBOUND_VERSION_MICRO=0 2850 2851 2852LIBUNBOUND_CURRENT=9 2853LIBUNBOUND_REVISION=16 2854LIBUNBOUND_AGE=1 2855# 1.0.0 had 0:12:0 2856# 1.0.1 had 0:13:0 2857# 1.0.2 had 0:14:0 2858# 1.1.0 had 0:15:0 2859# 1.1.1 had 0:16:0 2860# 1.2.0 had 0:17:0 2861# 1.2.1 had 0:18:0 2862# 1.3.0 had 1:0:0 # ub_cancel and -export-symbols. 2863# 1.3.1 had 1:1:0 2864# 1.3.2 had 1:2:0 2865# 1.3.3 had 1:3:0 2866# 1.3.4 had 1:4:0 2867# 1.4.0-snapshots had 1:5:0 2868# 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus 2869# 1.4.1 had 2:1:0 2870# 1.4.2 had 2:2:0 2871# 1.4.3 had 2:3:0 2872# 1.4.4 had 2:4:0 2873# 1.4.5 had 2:5:0 2874# 1.4.6 had 2:6:0 2875# 1.4.7 had 2:7:0 2876# 1.4.8 had 2:8:0 2877# 1.4.9 had 2:9:0 2878# 1.4.10 had 2:10:0 2879# 1.4.11 had 2:11:0 2880# 1.4.12 had 2:12:0 2881# 1.4.13 had 2:13:0 2882# and 1.4.13p1 and 1.4.13.p2 2883# 1.4.14 had 2:14:0 2884# 1.4.15 had 3:0:1 # adds ub_version() 2885# 1.4.16 had 3:1:1 2886# 1.4.17 had 3:2:1 2887# 1.4.18 had 3:3:1 2888# 1.4.19 had 3:4:1 2889# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1 2890# 1.4.21 had 4:1:2 2891# 1.4.22 had 4:1:2 2892# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr 2893# 1.5.1 had 5:3:3 2894# 1.5.2 had 5:5:3 2895# 1.5.3 had 5:6:3 2896# 1.5.4 had 5:7:3 2897# 1.5.5 had 5:8:3 2898# 1.5.6 had 5:9:3 2899# 1.5.7 had 5:10:3 2900# 1.5.8 had 6:0:4 # adds ub_ctx_set_stub 2901# 1.5.9 had 6:1:4 2902# 1.5.10 had 6:2:4 2903# 1.6.0 had 6:3:4 2904# 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type 2905# 1.6.2 had 7:1:5 2906# 1.6.3 had 7:2:5 2907# 1.6.4 had 7:3:5 2908# 1.6.5 had 7:4:5 2909# 1.6.6 had 7:5:5 2910# 1.6.7 had 7:6:5 2911# 1.6.8 had 7:7:5 2912# 1.7.0 had 7:8:5 2913# 1.7.1 had 7:9:5 2914# 1.7.2 had 7:10:5 2915# 1.7.3 had 7:11:5 2916# 1.8.0 had 8:0:0 # changes the event callback function signature 2917# 1.8.1 had 8:1:0 2918# 1.8.2 had 8:2:0 2919# 1.8.3 had 8:3:0 2920# 1.9.0 had 9:0:1 # add ub_ctx_set_tls 2921# 1.9.1 had 9:1:1 2922# 1.9.2 had 9:2:1 2923# 1.9.3 had 9:3:1 2924# 1.9.4 had 9:4:1 2925# 1.9.5 had 9:5:1 2926# 1.9.6 had 9:6:1 2927# 1.10.0 had 9:7:1 2928# 1.10.1 had 9:8:1 2929# 1.11.0 had 9:9:1 2930# 1.12.0 had 9:10:1 2931# 1.13.0 had 9:11:1 2932# 1.13.1 had 9:12:1 2933# 1.13.2 had 9:13:1 2934# 1.14.0 had 9:14:1 2935# 1.15.0 had 9:15:1 2936# 1.16.0 had 9:16:1 2937 2938# Current -- the number of the binary API that we're implementing 2939# Revision -- which iteration of the implementation of the binary 2940# API are we supplying? 2941# Age -- How many previous binary API versions do we also 2942# support? 2943# 2944# If we release a new version that does not change the binary API, 2945# increment Revision. 2946# 2947# If we release a new version that changes the binary API, but does 2948# not break programs compiled against the old binary API, increment 2949# Current and Age. Set Revision to 0, since this is the first 2950# implementation of the new API. 2951# 2952# Otherwise, we're changing the binary API and breaking backward 2953# compatibility with old binaries. Increment Current. Set Age to 0, 2954# since we're backward compatible with no previous APIs. Set Revision 2955# to 0 too. 2956 2957 2958 2959 2960 2961cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`" 2962 2963cat >>confdefs.h <<_ACEOF 2964#define CONFCMDLINE "$cmdln" 2965_ACEOF 2966 2967 2968CFLAGS="$CFLAGS" 2969ac_ext=c 2970ac_cpp='$CPP $CPPFLAGS' 2971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2973ac_compiler_gnu=$ac_cv_c_compiler_gnu 2974if test -n "$ac_tool_prefix"; then 2975 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2976set dummy ${ac_tool_prefix}gcc; ac_word=$2 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2978$as_echo_n "checking for $ac_word... " >&6; } 2979if ${ac_cv_prog_CC+:} false; then : 2980 $as_echo_n "(cached) " >&6 2981else 2982 if test -n "$CC"; then 2983 ac_cv_prog_CC="$CC" # Let the user override the test. 2984else 2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2986for as_dir in $PATH 2987do 2988 IFS=$as_save_IFS 2989 test -z "$as_dir" && as_dir=. 2990 for ac_exec_ext in '' $ac_executable_extensions; do 2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2992 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2994 break 2 2995 fi 2996done 2997 done 2998IFS=$as_save_IFS 2999 3000fi 3001fi 3002CC=$ac_cv_prog_CC 3003if test -n "$CC"; then 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3005$as_echo "$CC" >&6; } 3006else 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3008$as_echo "no" >&6; } 3009fi 3010 3011 3012fi 3013if test -z "$ac_cv_prog_CC"; then 3014 ac_ct_CC=$CC 3015 # Extract the first word of "gcc", so it can be a program name with args. 3016set dummy gcc; ac_word=$2 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3018$as_echo_n "checking for $ac_word... " >&6; } 3019if ${ac_cv_prog_ac_ct_CC+:} false; then : 3020 $as_echo_n "(cached) " >&6 3021else 3022 if test -n "$ac_ct_CC"; then 3023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3024else 3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3026for as_dir in $PATH 3027do 3028 IFS=$as_save_IFS 3029 test -z "$as_dir" && as_dir=. 3030 for ac_exec_ext in '' $ac_executable_extensions; do 3031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3032 ac_cv_prog_ac_ct_CC="gcc" 3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3034 break 2 3035 fi 3036done 3037 done 3038IFS=$as_save_IFS 3039 3040fi 3041fi 3042ac_ct_CC=$ac_cv_prog_ac_ct_CC 3043if test -n "$ac_ct_CC"; then 3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3045$as_echo "$ac_ct_CC" >&6; } 3046else 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3048$as_echo "no" >&6; } 3049fi 3050 3051 if test "x$ac_ct_CC" = x; then 3052 CC="" 3053 else 3054 case $cross_compiling:$ac_tool_warned in 3055yes:) 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3058ac_tool_warned=yes ;; 3059esac 3060 CC=$ac_ct_CC 3061 fi 3062else 3063 CC="$ac_cv_prog_CC" 3064fi 3065 3066if test -z "$CC"; then 3067 if test -n "$ac_tool_prefix"; then 3068 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3069set dummy ${ac_tool_prefix}cc; ac_word=$2 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3071$as_echo_n "checking for $ac_word... " >&6; } 3072if ${ac_cv_prog_CC+:} false; then : 3073 $as_echo_n "(cached) " >&6 3074else 3075 if test -n "$CC"; then 3076 ac_cv_prog_CC="$CC" # Let the user override the test. 3077else 3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3079for as_dir in $PATH 3080do 3081 IFS=$as_save_IFS 3082 test -z "$as_dir" && as_dir=. 3083 for ac_exec_ext in '' $ac_executable_extensions; do 3084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3085 ac_cv_prog_CC="${ac_tool_prefix}cc" 3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3087 break 2 3088 fi 3089done 3090 done 3091IFS=$as_save_IFS 3092 3093fi 3094fi 3095CC=$ac_cv_prog_CC 3096if test -n "$CC"; then 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3098$as_echo "$CC" >&6; } 3099else 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3101$as_echo "no" >&6; } 3102fi 3103 3104 3105 fi 3106fi 3107if test -z "$CC"; then 3108 # Extract the first word of "cc", so it can be a program name with args. 3109set dummy cc; ac_word=$2 3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3111$as_echo_n "checking for $ac_word... " >&6; } 3112if ${ac_cv_prog_CC+:} false; then : 3113 $as_echo_n "(cached) " >&6 3114else 3115 if test -n "$CC"; then 3116 ac_cv_prog_CC="$CC" # Let the user override the test. 3117else 3118 ac_prog_rejected=no 3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3120for as_dir in $PATH 3121do 3122 IFS=$as_save_IFS 3123 test -z "$as_dir" && as_dir=. 3124 for ac_exec_ext in '' $ac_executable_extensions; do 3125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3126 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3127 ac_prog_rejected=yes 3128 continue 3129 fi 3130 ac_cv_prog_CC="cc" 3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3132 break 2 3133 fi 3134done 3135 done 3136IFS=$as_save_IFS 3137 3138if test $ac_prog_rejected = yes; then 3139 # We found a bogon in the path, so make sure we never use it. 3140 set dummy $ac_cv_prog_CC 3141 shift 3142 if test $# != 0; then 3143 # We chose a different compiler from the bogus one. 3144 # However, it has the same basename, so the bogon will be chosen 3145 # first if we set CC to just the basename; use the full file name. 3146 shift 3147 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3148 fi 3149fi 3150fi 3151fi 3152CC=$ac_cv_prog_CC 3153if test -n "$CC"; then 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3155$as_echo "$CC" >&6; } 3156else 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3158$as_echo "no" >&6; } 3159fi 3160 3161 3162fi 3163if test -z "$CC"; then 3164 if test -n "$ac_tool_prefix"; then 3165 for ac_prog in cl.exe 3166 do 3167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3168set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3170$as_echo_n "checking for $ac_word... " >&6; } 3171if ${ac_cv_prog_CC+:} false; then : 3172 $as_echo_n "(cached) " >&6 3173else 3174 if test -n "$CC"; then 3175 ac_cv_prog_CC="$CC" # Let the user override the test. 3176else 3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3178for as_dir in $PATH 3179do 3180 IFS=$as_save_IFS 3181 test -z "$as_dir" && as_dir=. 3182 for ac_exec_ext in '' $ac_executable_extensions; do 3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3186 break 2 3187 fi 3188done 3189 done 3190IFS=$as_save_IFS 3191 3192fi 3193fi 3194CC=$ac_cv_prog_CC 3195if test -n "$CC"; then 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3197$as_echo "$CC" >&6; } 3198else 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3200$as_echo "no" >&6; } 3201fi 3202 3203 3204 test -n "$CC" && break 3205 done 3206fi 3207if test -z "$CC"; then 3208 ac_ct_CC=$CC 3209 for ac_prog in cl.exe 3210do 3211 # Extract the first word of "$ac_prog", so it can be a program name with args. 3212set dummy $ac_prog; ac_word=$2 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3214$as_echo_n "checking for $ac_word... " >&6; } 3215if ${ac_cv_prog_ac_ct_CC+:} false; then : 3216 $as_echo_n "(cached) " >&6 3217else 3218 if test -n "$ac_ct_CC"; then 3219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3220else 3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3222for as_dir in $PATH 3223do 3224 IFS=$as_save_IFS 3225 test -z "$as_dir" && as_dir=. 3226 for ac_exec_ext in '' $ac_executable_extensions; do 3227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3228 ac_cv_prog_ac_ct_CC="$ac_prog" 3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3230 break 2 3231 fi 3232done 3233 done 3234IFS=$as_save_IFS 3235 3236fi 3237fi 3238ac_ct_CC=$ac_cv_prog_ac_ct_CC 3239if test -n "$ac_ct_CC"; then 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3241$as_echo "$ac_ct_CC" >&6; } 3242else 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3244$as_echo "no" >&6; } 3245fi 3246 3247 3248 test -n "$ac_ct_CC" && break 3249done 3250 3251 if test "x$ac_ct_CC" = x; then 3252 CC="" 3253 else 3254 case $cross_compiling:$ac_tool_warned in 3255yes:) 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3258ac_tool_warned=yes ;; 3259esac 3260 CC=$ac_ct_CC 3261 fi 3262fi 3263 3264fi 3265 3266 3267test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3269as_fn_error $? "no acceptable C compiler found in \$PATH 3270See \`config.log' for more details" "$LINENO" 5; } 3271 3272# Provide some information about the compiler. 3273$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3274set X $ac_compile 3275ac_compiler=$2 3276for ac_option in --version -v -V -qversion; do 3277 { { ac_try="$ac_compiler $ac_option >&5" 3278case "(($ac_try" in 3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3280 *) ac_try_echo=$ac_try;; 3281esac 3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3283$as_echo "$ac_try_echo"; } >&5 3284 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3285 ac_status=$? 3286 if test -s conftest.err; then 3287 sed '10a\ 3288... rest of stderr output deleted ... 3289 10q' conftest.err >conftest.er1 3290 cat conftest.er1 >&5 3291 fi 3292 rm -f conftest.er1 conftest.err 3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3294 test $ac_status = 0; } 3295done 3296 3297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3298/* end confdefs.h. */ 3299 3300int 3301main () 3302{ 3303 3304 ; 3305 return 0; 3306} 3307_ACEOF 3308ac_clean_files_save=$ac_clean_files 3309ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3310# Try to create an executable without -o first, disregard a.out. 3311# It will help us diagnose broken compilers, and finding out an intuition 3312# of exeext. 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3314$as_echo_n "checking whether the C compiler works... " >&6; } 3315ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3316 3317# The possible output files: 3318ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3319 3320ac_rmfiles= 3321for ac_file in $ac_files 3322do 3323 case $ac_file in 3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3325 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3326 esac 3327done 3328rm -f $ac_rmfiles 3329 3330if { { ac_try="$ac_link_default" 3331case "(($ac_try" in 3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3333 *) ac_try_echo=$ac_try;; 3334esac 3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3336$as_echo "$ac_try_echo"; } >&5 3337 (eval "$ac_link_default") 2>&5 3338 ac_status=$? 3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3340 test $ac_status = 0; }; then : 3341 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3342# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3343# in a Makefile. We should not override ac_cv_exeext if it was cached, 3344# so that the user can short-circuit this test for compilers unknown to 3345# Autoconf. 3346for ac_file in $ac_files '' 3347do 3348 test -f "$ac_file" || continue 3349 case $ac_file in 3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3351 ;; 3352 [ab].out ) 3353 # We found the default executable, but exeext='' is most 3354 # certainly right. 3355 break;; 3356 *.* ) 3357 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3358 then :; else 3359 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3360 fi 3361 # We set ac_cv_exeext here because the later test for it is not 3362 # safe: cross compilers may not add the suffix if given an `-o' 3363 # argument, so we may need to know it at that point already. 3364 # Even if this section looks crufty: it has the advantage of 3365 # actually working. 3366 break;; 3367 * ) 3368 break;; 3369 esac 3370done 3371test "$ac_cv_exeext" = no && ac_cv_exeext= 3372 3373else 3374 ac_file='' 3375fi 3376if test -z "$ac_file"; then : 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3378$as_echo "no" >&6; } 3379$as_echo "$as_me: failed program was:" >&5 3380sed 's/^/| /' conftest.$ac_ext >&5 3381 3382{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3384as_fn_error 77 "C compiler cannot create executables 3385See \`config.log' for more details" "$LINENO" 5; } 3386else 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3388$as_echo "yes" >&6; } 3389fi 3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3391$as_echo_n "checking for C compiler default output file name... " >&6; } 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3393$as_echo "$ac_file" >&6; } 3394ac_exeext=$ac_cv_exeext 3395 3396rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3397ac_clean_files=$ac_clean_files_save 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3399$as_echo_n "checking for suffix of executables... " >&6; } 3400if { { ac_try="$ac_link" 3401case "(($ac_try" in 3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3403 *) ac_try_echo=$ac_try;; 3404esac 3405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3406$as_echo "$ac_try_echo"; } >&5 3407 (eval "$ac_link") 2>&5 3408 ac_status=$? 3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3410 test $ac_status = 0; }; then : 3411 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3412# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3413# work properly (i.e., refer to `conftest.exe'), while it won't with 3414# `rm'. 3415for ac_file in conftest.exe conftest conftest.*; do 3416 test -f "$ac_file" || continue 3417 case $ac_file in 3418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3419 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3420 break;; 3421 * ) break;; 3422 esac 3423done 3424else 3425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3427as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3428See \`config.log' for more details" "$LINENO" 5; } 3429fi 3430rm -f conftest conftest$ac_cv_exeext 3431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3432$as_echo "$ac_cv_exeext" >&6; } 3433 3434rm -f conftest.$ac_ext 3435EXEEXT=$ac_cv_exeext 3436ac_exeext=$EXEEXT 3437cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3438/* end confdefs.h. */ 3439#include <stdio.h> 3440int 3441main () 3442{ 3443FILE *f = fopen ("conftest.out", "w"); 3444 return ferror (f) || fclose (f) != 0; 3445 3446 ; 3447 return 0; 3448} 3449_ACEOF 3450ac_clean_files="$ac_clean_files conftest.out" 3451# Check that the compiler produces executables we can run. If not, either 3452# the compiler is broken, or we cross compile. 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3454$as_echo_n "checking whether we are cross compiling... " >&6; } 3455if test "$cross_compiling" != yes; then 3456 { { ac_try="$ac_link" 3457case "(($ac_try" in 3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3459 *) ac_try_echo=$ac_try;; 3460esac 3461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3462$as_echo "$ac_try_echo"; } >&5 3463 (eval "$ac_link") 2>&5 3464 ac_status=$? 3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3466 test $ac_status = 0; } 3467 if { ac_try='./conftest$ac_cv_exeext' 3468 { { case "(($ac_try" in 3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3470 *) ac_try_echo=$ac_try;; 3471esac 3472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3473$as_echo "$ac_try_echo"; } >&5 3474 (eval "$ac_try") 2>&5 3475 ac_status=$? 3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3477 test $ac_status = 0; }; }; then 3478 cross_compiling=no 3479 else 3480 if test "$cross_compiling" = maybe; then 3481 cross_compiling=yes 3482 else 3483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3485as_fn_error $? "cannot run C compiled programs. 3486If you meant to cross compile, use \`--host'. 3487See \`config.log' for more details" "$LINENO" 5; } 3488 fi 3489 fi 3490fi 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3492$as_echo "$cross_compiling" >&6; } 3493 3494rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3495ac_clean_files=$ac_clean_files_save 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3497$as_echo_n "checking for suffix of object files... " >&6; } 3498if ${ac_cv_objext+:} false; then : 3499 $as_echo_n "(cached) " >&6 3500else 3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3502/* end confdefs.h. */ 3503 3504int 3505main () 3506{ 3507 3508 ; 3509 return 0; 3510} 3511_ACEOF 3512rm -f conftest.o conftest.obj 3513if { { ac_try="$ac_compile" 3514case "(($ac_try" in 3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3516 *) ac_try_echo=$ac_try;; 3517esac 3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3519$as_echo "$ac_try_echo"; } >&5 3520 (eval "$ac_compile") 2>&5 3521 ac_status=$? 3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3523 test $ac_status = 0; }; then : 3524 for ac_file in conftest.o conftest.obj conftest.*; do 3525 test -f "$ac_file" || continue; 3526 case $ac_file in 3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3528 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3529 break;; 3530 esac 3531done 3532else 3533 $as_echo "$as_me: failed program was:" >&5 3534sed 's/^/| /' conftest.$ac_ext >&5 3535 3536{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3538as_fn_error $? "cannot compute suffix of object files: cannot compile 3539See \`config.log' for more details" "$LINENO" 5; } 3540fi 3541rm -f conftest.$ac_cv_objext conftest.$ac_ext 3542fi 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3544$as_echo "$ac_cv_objext" >&6; } 3545OBJEXT=$ac_cv_objext 3546ac_objext=$OBJEXT 3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3548$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3549if ${ac_cv_c_compiler_gnu+:} false; then : 3550 $as_echo_n "(cached) " >&6 3551else 3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3553/* end confdefs.h. */ 3554 3555int 3556main () 3557{ 3558#ifndef __GNUC__ 3559 choke me 3560#endif 3561 3562 ; 3563 return 0; 3564} 3565_ACEOF 3566if ac_fn_c_try_compile "$LINENO"; then : 3567 ac_compiler_gnu=yes 3568else 3569 ac_compiler_gnu=no 3570fi 3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3572ac_cv_c_compiler_gnu=$ac_compiler_gnu 3573 3574fi 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3576$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3577if test $ac_compiler_gnu = yes; then 3578 GCC=yes 3579else 3580 GCC= 3581fi 3582ac_test_CFLAGS=${CFLAGS+set} 3583ac_save_CFLAGS=$CFLAGS 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3585$as_echo_n "checking whether $CC accepts -g... " >&6; } 3586if ${ac_cv_prog_cc_g+:} false; then : 3587 $as_echo_n "(cached) " >&6 3588else 3589 ac_save_c_werror_flag=$ac_c_werror_flag 3590 ac_c_werror_flag=yes 3591 ac_cv_prog_cc_g=no 3592 CFLAGS="-g" 3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3594/* end confdefs.h. */ 3595 3596int 3597main () 3598{ 3599 3600 ; 3601 return 0; 3602} 3603_ACEOF 3604if ac_fn_c_try_compile "$LINENO"; then : 3605 ac_cv_prog_cc_g=yes 3606else 3607 CFLAGS="" 3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3609/* end confdefs.h. */ 3610 3611int 3612main () 3613{ 3614 3615 ; 3616 return 0; 3617} 3618_ACEOF 3619if ac_fn_c_try_compile "$LINENO"; then : 3620 3621else 3622 ac_c_werror_flag=$ac_save_c_werror_flag 3623 CFLAGS="-g" 3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3625/* end confdefs.h. */ 3626 3627int 3628main () 3629{ 3630 3631 ; 3632 return 0; 3633} 3634_ACEOF 3635if ac_fn_c_try_compile "$LINENO"; then : 3636 ac_cv_prog_cc_g=yes 3637fi 3638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3639fi 3640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3641fi 3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3643 ac_c_werror_flag=$ac_save_c_werror_flag 3644fi 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3646$as_echo "$ac_cv_prog_cc_g" >&6; } 3647if test "$ac_test_CFLAGS" = set; then 3648 CFLAGS=$ac_save_CFLAGS 3649elif test $ac_cv_prog_cc_g = yes; then 3650 if test "$GCC" = yes; then 3651 CFLAGS="-g -O2" 3652 else 3653 CFLAGS="-g" 3654 fi 3655else 3656 if test "$GCC" = yes; then 3657 CFLAGS="-O2" 3658 else 3659 CFLAGS= 3660 fi 3661fi 3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3663$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3664if ${ac_cv_prog_cc_c89+:} false; then : 3665 $as_echo_n "(cached) " >&6 3666else 3667 ac_cv_prog_cc_c89=no 3668ac_save_CC=$CC 3669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3670/* end confdefs.h. */ 3671#include <stdarg.h> 3672#include <stdio.h> 3673struct stat; 3674/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3675struct buf { int x; }; 3676FILE * (*rcsopen) (struct buf *, struct stat *, int); 3677static char *e (p, i) 3678 char **p; 3679 int i; 3680{ 3681 return p[i]; 3682} 3683static char *f (char * (*g) (char **, int), char **p, ...) 3684{ 3685 char *s; 3686 va_list v; 3687 va_start (v,p); 3688 s = g (p, va_arg (v,int)); 3689 va_end (v); 3690 return s; 3691} 3692 3693/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3694 function prototypes and stuff, but not '\xHH' hex character constants. 3695 These don't provoke an error unfortunately, instead are silently treated 3696 as 'x'. The following induces an error, until -std is added to get 3697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3698 array size at least. It's necessary to write '\x00'==0 to get something 3699 that's true only with -std. */ 3700int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3701 3702/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3703 inside strings and character constants. */ 3704#define FOO(x) 'x' 3705int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3706 3707int test (int i, double x); 3708struct s1 {int (*f) (int a);}; 3709struct s2 {int (*f) (double a);}; 3710int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3711int argc; 3712char **argv; 3713int 3714main () 3715{ 3716return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3717 ; 3718 return 0; 3719} 3720_ACEOF 3721for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3722 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3723do 3724 CC="$ac_save_CC $ac_arg" 3725 if ac_fn_c_try_compile "$LINENO"; then : 3726 ac_cv_prog_cc_c89=$ac_arg 3727fi 3728rm -f core conftest.err conftest.$ac_objext 3729 test "x$ac_cv_prog_cc_c89" != "xno" && break 3730done 3731rm -f conftest.$ac_ext 3732CC=$ac_save_CC 3733 3734fi 3735# AC_CACHE_VAL 3736case "x$ac_cv_prog_cc_c89" in 3737 x) 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3739$as_echo "none needed" >&6; } ;; 3740 xno) 3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3742$as_echo "unsupported" >&6; } ;; 3743 *) 3744 CC="$CC $ac_cv_prog_cc_c89" 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3746$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3747esac 3748if test "x$ac_cv_prog_cc_c89" != xno; then : 3749 3750fi 3751 3752ac_ext=c 3753ac_cpp='$CPP $CPPFLAGS' 3754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3756ac_compiler_gnu=$ac_cv_c_compiler_gnu 3757 3758 3759ac_ext=c 3760ac_cpp='$CPP $CPPFLAGS' 3761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3763ac_compiler_gnu=$ac_cv_c_compiler_gnu 3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3765$as_echo_n "checking how to run the C preprocessor... " >&6; } 3766# On Suns, sometimes $CPP names a directory. 3767if test -n "$CPP" && test -d "$CPP"; then 3768 CPP= 3769fi 3770if test -z "$CPP"; then 3771 if ${ac_cv_prog_CPP+:} false; then : 3772 $as_echo_n "(cached) " >&6 3773else 3774 # Double quotes because CPP needs to be expanded 3775 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3776 do 3777 ac_preproc_ok=false 3778for ac_c_preproc_warn_flag in '' yes 3779do 3780 # Use a header file that comes with gcc, so configuring glibc 3781 # with a fresh cross-compiler works. 3782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3783 # <limits.h> exists even on freestanding compilers. 3784 # On the NeXT, cc -E runs the code through the compiler's parser, 3785 # not just through cpp. "Syntax error" is here to catch this case. 3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787/* end confdefs.h. */ 3788#ifdef __STDC__ 3789# include <limits.h> 3790#else 3791# include <assert.h> 3792#endif 3793 Syntax error 3794_ACEOF 3795if ac_fn_c_try_cpp "$LINENO"; then : 3796 3797else 3798 # Broken: fails on valid input. 3799continue 3800fi 3801rm -f conftest.err conftest.i conftest.$ac_ext 3802 3803 # OK, works on sane cases. Now check whether nonexistent headers 3804 # can be detected and how. 3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3806/* end confdefs.h. */ 3807#include <ac_nonexistent.h> 3808_ACEOF 3809if ac_fn_c_try_cpp "$LINENO"; then : 3810 # Broken: success on invalid input. 3811continue 3812else 3813 # Passes both tests. 3814ac_preproc_ok=: 3815break 3816fi 3817rm -f conftest.err conftest.i conftest.$ac_ext 3818 3819done 3820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3821rm -f conftest.i conftest.err conftest.$ac_ext 3822if $ac_preproc_ok; then : 3823 break 3824fi 3825 3826 done 3827 ac_cv_prog_CPP=$CPP 3828 3829fi 3830 CPP=$ac_cv_prog_CPP 3831else 3832 ac_cv_prog_CPP=$CPP 3833fi 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3835$as_echo "$CPP" >&6; } 3836ac_preproc_ok=false 3837for ac_c_preproc_warn_flag in '' yes 3838do 3839 # Use a header file that comes with gcc, so configuring glibc 3840 # with a fresh cross-compiler works. 3841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3842 # <limits.h> exists even on freestanding compilers. 3843 # On the NeXT, cc -E runs the code through the compiler's parser, 3844 # not just through cpp. "Syntax error" is here to catch this case. 3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3846/* end confdefs.h. */ 3847#ifdef __STDC__ 3848# include <limits.h> 3849#else 3850# include <assert.h> 3851#endif 3852 Syntax error 3853_ACEOF 3854if ac_fn_c_try_cpp "$LINENO"; then : 3855 3856else 3857 # Broken: fails on valid input. 3858continue 3859fi 3860rm -f conftest.err conftest.i conftest.$ac_ext 3861 3862 # OK, works on sane cases. Now check whether nonexistent headers 3863 # can be detected and how. 3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3865/* end confdefs.h. */ 3866#include <ac_nonexistent.h> 3867_ACEOF 3868if ac_fn_c_try_cpp "$LINENO"; then : 3869 # Broken: success on invalid input. 3870continue 3871else 3872 # Passes both tests. 3873ac_preproc_ok=: 3874break 3875fi 3876rm -f conftest.err conftest.i conftest.$ac_ext 3877 3878done 3879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3880rm -f conftest.i conftest.err conftest.$ac_ext 3881if $ac_preproc_ok; then : 3882 3883else 3884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3886as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3887See \`config.log' for more details" "$LINENO" 5; } 3888fi 3889 3890ac_ext=c 3891ac_cpp='$CPP $CPPFLAGS' 3892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3894ac_compiler_gnu=$ac_cv_c_compiler_gnu 3895 3896 3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3898$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3899if ${ac_cv_path_GREP+:} false; then : 3900 $as_echo_n "(cached) " >&6 3901else 3902 if test -z "$GREP"; then 3903 ac_path_GREP_found=false 3904 # Loop through the user's path and test for each of PROGNAME-LIST 3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3906for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3907do 3908 IFS=$as_save_IFS 3909 test -z "$as_dir" && as_dir=. 3910 for ac_prog in grep ggrep; do 3911 for ac_exec_ext in '' $ac_executable_extensions; do 3912 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3913 as_fn_executable_p "$ac_path_GREP" || continue 3914# Check for GNU ac_path_GREP and select it if it is found. 3915 # Check for GNU $ac_path_GREP 3916case `"$ac_path_GREP" --version 2>&1` in 3917*GNU*) 3918 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3919*) 3920 ac_count=0 3921 $as_echo_n 0123456789 >"conftest.in" 3922 while : 3923 do 3924 cat "conftest.in" "conftest.in" >"conftest.tmp" 3925 mv "conftest.tmp" "conftest.in" 3926 cp "conftest.in" "conftest.nl" 3927 $as_echo 'GREP' >> "conftest.nl" 3928 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3930 as_fn_arith $ac_count + 1 && ac_count=$as_val 3931 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3932 # Best one so far, save it but keep looking for a better one 3933 ac_cv_path_GREP="$ac_path_GREP" 3934 ac_path_GREP_max=$ac_count 3935 fi 3936 # 10*(2^10) chars as input seems more than enough 3937 test $ac_count -gt 10 && break 3938 done 3939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3940esac 3941 3942 $ac_path_GREP_found && break 3 3943 done 3944 done 3945 done 3946IFS=$as_save_IFS 3947 if test -z "$ac_cv_path_GREP"; then 3948 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3949 fi 3950else 3951 ac_cv_path_GREP=$GREP 3952fi 3953 3954fi 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3956$as_echo "$ac_cv_path_GREP" >&6; } 3957 GREP="$ac_cv_path_GREP" 3958 3959 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3961$as_echo_n "checking for egrep... " >&6; } 3962if ${ac_cv_path_EGREP+:} false; then : 3963 $as_echo_n "(cached) " >&6 3964else 3965 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3966 then ac_cv_path_EGREP="$GREP -E" 3967 else 3968 if test -z "$EGREP"; then 3969 ac_path_EGREP_found=false 3970 # Loop through the user's path and test for each of PROGNAME-LIST 3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3972for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3973do 3974 IFS=$as_save_IFS 3975 test -z "$as_dir" && as_dir=. 3976 for ac_prog in egrep; do 3977 for ac_exec_ext in '' $ac_executable_extensions; do 3978 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3979 as_fn_executable_p "$ac_path_EGREP" || continue 3980# Check for GNU ac_path_EGREP and select it if it is found. 3981 # Check for GNU $ac_path_EGREP 3982case `"$ac_path_EGREP" --version 2>&1` in 3983*GNU*) 3984 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3985*) 3986 ac_count=0 3987 $as_echo_n 0123456789 >"conftest.in" 3988 while : 3989 do 3990 cat "conftest.in" "conftest.in" >"conftest.tmp" 3991 mv "conftest.tmp" "conftest.in" 3992 cp "conftest.in" "conftest.nl" 3993 $as_echo 'EGREP' >> "conftest.nl" 3994 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3996 as_fn_arith $ac_count + 1 && ac_count=$as_val 3997 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3998 # Best one so far, save it but keep looking for a better one 3999 ac_cv_path_EGREP="$ac_path_EGREP" 4000 ac_path_EGREP_max=$ac_count 4001 fi 4002 # 10*(2^10) chars as input seems more than enough 4003 test $ac_count -gt 10 && break 4004 done 4005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4006esac 4007 4008 $ac_path_EGREP_found && break 3 4009 done 4010 done 4011 done 4012IFS=$as_save_IFS 4013 if test -z "$ac_cv_path_EGREP"; then 4014 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4015 fi 4016else 4017 ac_cv_path_EGREP=$EGREP 4018fi 4019 4020 fi 4021fi 4022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4023$as_echo "$ac_cv_path_EGREP" >&6; } 4024 EGREP="$ac_cv_path_EGREP" 4025 4026 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4028$as_echo_n "checking for ANSI C header files... " >&6; } 4029if ${ac_cv_header_stdc+:} false; then : 4030 $as_echo_n "(cached) " >&6 4031else 4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4033/* end confdefs.h. */ 4034#include <stdlib.h> 4035#include <stdarg.h> 4036#include <string.h> 4037#include <float.h> 4038 4039int 4040main () 4041{ 4042 4043 ; 4044 return 0; 4045} 4046_ACEOF 4047if ac_fn_c_try_compile "$LINENO"; then : 4048 ac_cv_header_stdc=yes 4049else 4050 ac_cv_header_stdc=no 4051fi 4052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4053 4054if test $ac_cv_header_stdc = yes; then 4055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4057/* end confdefs.h. */ 4058#include <string.h> 4059 4060_ACEOF 4061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4062 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4074/* end confdefs.h. */ 4075#include <stdlib.h> 4076 4077_ACEOF 4078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4079 $EGREP "free" >/dev/null 2>&1; then : 4080 4081else 4082 ac_cv_header_stdc=no 4083fi 4084rm -f conftest* 4085 4086fi 4087 4088if test $ac_cv_header_stdc = yes; then 4089 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4090 if test "$cross_compiling" = yes; then : 4091 : 4092else 4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4094/* end confdefs.h. */ 4095#include <ctype.h> 4096#include <stdlib.h> 4097#if ((' ' & 0x0FF) == 0x020) 4098# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4099# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4100#else 4101# define ISLOWER(c) \ 4102 (('a' <= (c) && (c) <= 'i') \ 4103 || ('j' <= (c) && (c) <= 'r') \ 4104 || ('s' <= (c) && (c) <= 'z')) 4105# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4106#endif 4107 4108#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4109int 4110main () 4111{ 4112 int i; 4113 for (i = 0; i < 256; i++) 4114 if (XOR (islower (i), ISLOWER (i)) 4115 || toupper (i) != TOUPPER (i)) 4116 return 2; 4117 return 0; 4118} 4119_ACEOF 4120if ac_fn_c_try_run "$LINENO"; then : 4121 4122else 4123 ac_cv_header_stdc=no 4124fi 4125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4126 conftest.$ac_objext conftest.beam conftest.$ac_ext 4127fi 4128 4129fi 4130fi 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4132$as_echo "$ac_cv_header_stdc" >&6; } 4133if test $ac_cv_header_stdc = yes; then 4134 4135$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4136 4137fi 4138 4139# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4140for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4141 inttypes.h stdint.h unistd.h 4142do : 4143 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4144ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4145" 4146if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4147 cat >>confdefs.h <<_ACEOF 4148#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4149_ACEOF 4150 4151fi 4152 4153done 4154 4155 4156 4157 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4158if test "x$ac_cv_header_minix_config_h" = xyes; then : 4159 MINIX=yes 4160else 4161 MINIX= 4162fi 4163 4164 4165 if test "$MINIX" = yes; then 4166 4167$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4168 4169 4170$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4171 4172 4173$as_echo "#define _MINIX 1" >>confdefs.h 4174 4175 fi 4176 4177 4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4179$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4180if ${ac_cv_safe_to_define___extensions__+:} false; then : 4181 $as_echo_n "(cached) " >&6 4182else 4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4184/* end confdefs.h. */ 4185 4186# define __EXTENSIONS__ 1 4187 $ac_includes_default 4188int 4189main () 4190{ 4191 4192 ; 4193 return 0; 4194} 4195_ACEOF 4196if ac_fn_c_try_compile "$LINENO"; then : 4197 ac_cv_safe_to_define___extensions__=yes 4198else 4199 ac_cv_safe_to_define___extensions__=no 4200fi 4201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4202fi 4203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4204$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4205 test $ac_cv_safe_to_define___extensions__ = yes && 4206 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4207 4208 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4209 4210 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4211 4212 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4213 4214 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4215 4216 4217if test "$ac_cv_header_minix_config_h" = "yes"; then 4218 4219$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 4220 4221fi 4222 4223case "$prefix" in 4224 NONE) 4225 prefix="/usr/local" 4226 ;; 4227esac 4228case "$exec_prefix" in 4229 NONE) 4230 exec_prefix="$prefix" 4231 ;; 4232esac 4233 4234# are we on MinGW? 4235if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes" 4236else 4237 if echo $host | grep mingw >/dev/null; then on_mingw="yes" 4238 else on_mingw="no"; fi 4239fi 4240 4241# 4242# Determine configuration file 4243# the eval is to evaluate shell expansion twice 4244UNBOUND_SBIN_DIR=`eval echo "${sbindir}"` 4245 4246UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"` 4247 4248UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"` 4249 4250if test $on_mingw = "no"; then 4251 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"` 4252else 4253 ub_conf_file="C:\\Program Files\\Unbound\\service.conf" 4254fi 4255 4256# Check whether --with-conf_file was given. 4257if test "${with_conf_file+set}" = set; then : 4258 withval=$with_conf_file; ub_conf_file="$withval" 4259fi 4260 4261 4262hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`" 4263 4264 4265cat >>confdefs.h <<_ACEOF 4266#define CONFIGFILE "$hdr_config" 4267_ACEOF 4268 4269ub_conf_dir=`$as_dirname -- "$ub_conf_file" || 4270$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4271 X"$ub_conf_file" : 'X\(//\)[^/]' \| \ 4272 X"$ub_conf_file" : 'X\(//\)$' \| \ 4273 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null || 4274$as_echo X"$ub_conf_file" | 4275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4276 s//\1/ 4277 q 4278 } 4279 /^X\(\/\/\)[^/].*/{ 4280 s//\1/ 4281 q 4282 } 4283 /^X\(\/\/\)$/{ 4284 s//\1/ 4285 q 4286 } 4287 /^X\(\/\).*/{ 4288 s//\1/ 4289 q 4290 } 4291 s/.*/./; q'` 4292 4293 4294# Determine run, chroot directory and pidfile locations 4295 4296# Check whether --with-run-dir was given. 4297if test "${with_run_dir+set}" = set; then : 4298 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval" 4299else 4300 if test $on_mingw = no; then 4301 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"` 4302else 4303 UNBOUND_RUN_DIR="" 4304fi 4305 4306fi 4307 4308 4309hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4310 4311 4312cat >>confdefs.h <<_ACEOF 4313#define RUN_DIR "$hdr_run" 4314_ACEOF 4315 4316 4317 4318# Check whether --with-chroot-dir was given. 4319if test "${with_chroot_dir+set}" = set; then : 4320 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval" 4321else 4322 if test $on_mingw = no; then 4323 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR" 4324else 4325 UNBOUND_CHROOT_DIR="" 4326fi 4327 4328fi 4329 4330 4331hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4332 4333 4334cat >>confdefs.h <<_ACEOF 4335#define CHROOT_DIR "$hdr_chroot" 4336_ACEOF 4337 4338 4339 4340# Check whether --with-share-dir was given. 4341if test "${with_share_dir+set}" = set; then : 4342 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval" 4343else 4344 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR" 4345fi 4346 4347 4348 4349cat >>confdefs.h <<_ACEOF 4350#define SHARE_DIR "$UNBOUND_SHARE_DIR" 4351_ACEOF 4352 4353 4354 4355# Check whether --with-pidfile was given. 4356if test "${with_pidfile+set}" = set; then : 4357 withval=$with_pidfile; UNBOUND_PIDFILE="$withval" 4358else 4359 if test $on_mingw = no; then 4360 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid" 4361else 4362 UNBOUND_PIDFILE="" 4363fi 4364 4365fi 4366 4367 4368hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4369 4370 4371cat >>confdefs.h <<_ACEOF 4372#define PIDFILE "$hdr_pid" 4373_ACEOF 4374 4375 4376 4377# Check whether --with-rootkey-file was given. 4378if test "${with_rootkey_file+set}" = set; then : 4379 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval" 4380else 4381 if test $on_mingw = no; then 4382 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key" 4383else 4384 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key" 4385fi 4386 4387fi 4388 4389 4390hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4391 4392 4393cat >>confdefs.h <<_ACEOF 4394#define ROOT_ANCHOR_FILE "$hdr_rkey" 4395_ACEOF 4396 4397 4398 4399# Check whether --with-rootcert-file was given. 4400if test "${with_rootcert_file+set}" = set; then : 4401 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval" 4402else 4403 if test $on_mingw = no; then 4404 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem" 4405else 4406 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem" 4407fi 4408 4409fi 4410 4411 4412hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4413 4414 4415cat >>confdefs.h <<_ACEOF 4416#define ROOT_CERT_FILE "$hdr_rpem" 4417_ACEOF 4418 4419 4420 4421# Check whether --with-username was given. 4422if test "${with_username+set}" = set; then : 4423 withval=$with_username; UNBOUND_USERNAME="$withval" 4424else 4425 UNBOUND_USERNAME="unbound" 4426fi 4427 4428 4429 4430cat >>confdefs.h <<_ACEOF 4431#define UB_USERNAME "$UNBOUND_USERNAME" 4432_ACEOF 4433 4434 4435 4436$as_echo "#define WINVER 0x0502" >>confdefs.h 4437 4438wnvs=`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/' ` 4439 4440 4441cat >>confdefs.h <<_ACEOF 4442#define RSRC_PACKAGE_VERSION $wnvs 4443_ACEOF 4444 4445 4446# Checks for typedefs, structures, and compiler characteristics. 4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4448$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4449if ${ac_cv_c_const+:} false; then : 4450 $as_echo_n "(cached) " >&6 4451else 4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4453/* end confdefs.h. */ 4454 4455int 4456main () 4457{ 4458 4459#ifndef __cplusplus 4460 /* Ultrix mips cc rejects this sort of thing. */ 4461 typedef int charset[2]; 4462 const charset cs = { 0, 0 }; 4463 /* SunOS 4.1.1 cc rejects this. */ 4464 char const *const *pcpcc; 4465 char **ppc; 4466 /* NEC SVR4.0.2 mips cc rejects this. */ 4467 struct point {int x, y;}; 4468 static struct point const zero = {0,0}; 4469 /* AIX XL C 1.02.0.0 rejects this. 4470 It does not let you subtract one const X* pointer from another in 4471 an arm of an if-expression whose if-part is not a constant 4472 expression */ 4473 const char *g = "string"; 4474 pcpcc = &g + (g ? g-g : 0); 4475 /* HPUX 7.0 cc rejects these. */ 4476 ++pcpcc; 4477 ppc = (char**) pcpcc; 4478 pcpcc = (char const *const *) ppc; 4479 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4480 char tx; 4481 char *t = &tx; 4482 char const *s = 0 ? (char *) 0 : (char const *) 0; 4483 4484 *t++ = 0; 4485 if (s) return 0; 4486 } 4487 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4488 int x[] = {25, 17}; 4489 const int *foo = &x[0]; 4490 ++foo; 4491 } 4492 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4493 typedef const int *iptr; 4494 iptr p = 0; 4495 ++p; 4496 } 4497 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4498 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4499 struct s { int j; const int *ap[3]; } bx; 4500 struct s *b = &bx; b->j = 5; 4501 } 4502 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4503 const int foo = 10; 4504 if (!foo) return 0; 4505 } 4506 return !cs[0] && !zero.x; 4507#endif 4508 4509 ; 4510 return 0; 4511} 4512_ACEOF 4513if ac_fn_c_try_compile "$LINENO"; then : 4514 ac_cv_c_const=yes 4515else 4516 ac_cv_c_const=no 4517fi 4518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4519fi 4520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4521$as_echo "$ac_cv_c_const" >&6; } 4522if test $ac_cv_c_const = no; then 4523 4524$as_echo "#define const /**/" >>confdefs.h 4525 4526fi 4527 4528ac_ext=c 4529ac_cpp='$CPP $CPPFLAGS' 4530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4532ac_compiler_gnu=$ac_cv_c_compiler_gnu 4533 4534# allow user to override the -g -O2 flags. 4535default_cflags=no 4536if test "x$CFLAGS" = "x" ; then 4537 4538 4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4540$as_echo_n "checking whether $CC supports -g... " >&6; } 4541cache=`echo g | sed 'y%.=/+-%___p_%'` 4542if eval \${cv_prog_cc_flag_$cache+:} false; then : 4543 $as_echo_n "(cached) " >&6 4544else 4545 4546echo 'void f(void){}' >conftest.c 4547if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4548eval "cv_prog_cc_flag_$cache=yes" 4549else 4550eval "cv_prog_cc_flag_$cache=no" 4551fi 4552rm -f conftest conftest.o conftest.c 4553 4554fi 4555 4556if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4558$as_echo "yes" >&6; } 4559: 4560CFLAGS="$CFLAGS -g" 4561else 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4563$as_echo "no" >&6; } 4564: 4565 4566fi 4567 4568 4569 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4571$as_echo_n "checking whether $CC supports -O2... " >&6; } 4572cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4573if eval \${cv_prog_cc_flag_$cache+:} false; then : 4574 $as_echo_n "(cached) " >&6 4575else 4576 4577echo 'void f(void){}' >conftest.c 4578if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4579eval "cv_prog_cc_flag_$cache=yes" 4580else 4581eval "cv_prog_cc_flag_$cache=no" 4582fi 4583rm -f conftest conftest.o conftest.c 4584 4585fi 4586 4587if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4589$as_echo "yes" >&6; } 4590: 4591CFLAGS="$CFLAGS -O2" 4592else 4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4594$as_echo "no" >&6; } 4595: 4596 4597fi 4598 4599default_cflags=yes 4600fi 4601ac_ext=c 4602ac_cpp='$CPP $CPPFLAGS' 4603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4605ac_compiler_gnu=$ac_cv_c_compiler_gnu 4606if test -n "$ac_tool_prefix"; then 4607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4608set dummy ${ac_tool_prefix}gcc; ac_word=$2 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4610$as_echo_n "checking for $ac_word... " >&6; } 4611if ${ac_cv_prog_CC+:} false; then : 4612 $as_echo_n "(cached) " >&6 4613else 4614 if test -n "$CC"; then 4615 ac_cv_prog_CC="$CC" # Let the user override the test. 4616else 4617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4618for as_dir in $PATH 4619do 4620 IFS=$as_save_IFS 4621 test -z "$as_dir" && as_dir=. 4622 for ac_exec_ext in '' $ac_executable_extensions; do 4623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4624 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4626 break 2 4627 fi 4628done 4629 done 4630IFS=$as_save_IFS 4631 4632fi 4633fi 4634CC=$ac_cv_prog_CC 4635if test -n "$CC"; then 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4637$as_echo "$CC" >&6; } 4638else 4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4640$as_echo "no" >&6; } 4641fi 4642 4643 4644fi 4645if test -z "$ac_cv_prog_CC"; then 4646 ac_ct_CC=$CC 4647 # Extract the first word of "gcc", so it can be a program name with args. 4648set dummy gcc; ac_word=$2 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4650$as_echo_n "checking for $ac_word... " >&6; } 4651if ${ac_cv_prog_ac_ct_CC+:} false; then : 4652 $as_echo_n "(cached) " >&6 4653else 4654 if test -n "$ac_ct_CC"; then 4655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4656else 4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4658for as_dir in $PATH 4659do 4660 IFS=$as_save_IFS 4661 test -z "$as_dir" && as_dir=. 4662 for ac_exec_ext in '' $ac_executable_extensions; do 4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4664 ac_cv_prog_ac_ct_CC="gcc" 4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4666 break 2 4667 fi 4668done 4669 done 4670IFS=$as_save_IFS 4671 4672fi 4673fi 4674ac_ct_CC=$ac_cv_prog_ac_ct_CC 4675if test -n "$ac_ct_CC"; then 4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4677$as_echo "$ac_ct_CC" >&6; } 4678else 4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4680$as_echo "no" >&6; } 4681fi 4682 4683 if test "x$ac_ct_CC" = x; then 4684 CC="" 4685 else 4686 case $cross_compiling:$ac_tool_warned in 4687yes:) 4688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4690ac_tool_warned=yes ;; 4691esac 4692 CC=$ac_ct_CC 4693 fi 4694else 4695 CC="$ac_cv_prog_CC" 4696fi 4697 4698if test -z "$CC"; then 4699 if test -n "$ac_tool_prefix"; then 4700 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4701set dummy ${ac_tool_prefix}cc; ac_word=$2 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4703$as_echo_n "checking for $ac_word... " >&6; } 4704if ${ac_cv_prog_CC+:} false; then : 4705 $as_echo_n "(cached) " >&6 4706else 4707 if test -n "$CC"; then 4708 ac_cv_prog_CC="$CC" # Let the user override the test. 4709else 4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4711for as_dir in $PATH 4712do 4713 IFS=$as_save_IFS 4714 test -z "$as_dir" && as_dir=. 4715 for ac_exec_ext in '' $ac_executable_extensions; do 4716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4717 ac_cv_prog_CC="${ac_tool_prefix}cc" 4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4719 break 2 4720 fi 4721done 4722 done 4723IFS=$as_save_IFS 4724 4725fi 4726fi 4727CC=$ac_cv_prog_CC 4728if test -n "$CC"; then 4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4730$as_echo "$CC" >&6; } 4731else 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4733$as_echo "no" >&6; } 4734fi 4735 4736 4737 fi 4738fi 4739if test -z "$CC"; then 4740 # Extract the first word of "cc", so it can be a program name with args. 4741set dummy cc; ac_word=$2 4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4743$as_echo_n "checking for $ac_word... " >&6; } 4744if ${ac_cv_prog_CC+:} false; then : 4745 $as_echo_n "(cached) " >&6 4746else 4747 if test -n "$CC"; then 4748 ac_cv_prog_CC="$CC" # Let the user override the test. 4749else 4750 ac_prog_rejected=no 4751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4752for as_dir in $PATH 4753do 4754 IFS=$as_save_IFS 4755 test -z "$as_dir" && as_dir=. 4756 for ac_exec_ext in '' $ac_executable_extensions; do 4757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4758 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4759 ac_prog_rejected=yes 4760 continue 4761 fi 4762 ac_cv_prog_CC="cc" 4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4764 break 2 4765 fi 4766done 4767 done 4768IFS=$as_save_IFS 4769 4770if test $ac_prog_rejected = yes; then 4771 # We found a bogon in the path, so make sure we never use it. 4772 set dummy $ac_cv_prog_CC 4773 shift 4774 if test $# != 0; then 4775 # We chose a different compiler from the bogus one. 4776 # However, it has the same basename, so the bogon will be chosen 4777 # first if we set CC to just the basename; use the full file name. 4778 shift 4779 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4780 fi 4781fi 4782fi 4783fi 4784CC=$ac_cv_prog_CC 4785if test -n "$CC"; then 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4787$as_echo "$CC" >&6; } 4788else 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4790$as_echo "no" >&6; } 4791fi 4792 4793 4794fi 4795if test -z "$CC"; then 4796 if test -n "$ac_tool_prefix"; then 4797 for ac_prog in cl.exe 4798 do 4799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4800set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4802$as_echo_n "checking for $ac_word... " >&6; } 4803if ${ac_cv_prog_CC+:} false; then : 4804 $as_echo_n "(cached) " >&6 4805else 4806 if test -n "$CC"; then 4807 ac_cv_prog_CC="$CC" # Let the user override the test. 4808else 4809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4810for as_dir in $PATH 4811do 4812 IFS=$as_save_IFS 4813 test -z "$as_dir" && as_dir=. 4814 for ac_exec_ext in '' $ac_executable_extensions; do 4815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4816 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4818 break 2 4819 fi 4820done 4821 done 4822IFS=$as_save_IFS 4823 4824fi 4825fi 4826CC=$ac_cv_prog_CC 4827if test -n "$CC"; then 4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4829$as_echo "$CC" >&6; } 4830else 4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4832$as_echo "no" >&6; } 4833fi 4834 4835 4836 test -n "$CC" && break 4837 done 4838fi 4839if test -z "$CC"; then 4840 ac_ct_CC=$CC 4841 for ac_prog in cl.exe 4842do 4843 # Extract the first word of "$ac_prog", so it can be a program name with args. 4844set dummy $ac_prog; ac_word=$2 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4846$as_echo_n "checking for $ac_word... " >&6; } 4847if ${ac_cv_prog_ac_ct_CC+:} false; then : 4848 $as_echo_n "(cached) " >&6 4849else 4850 if test -n "$ac_ct_CC"; then 4851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4852else 4853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4854for as_dir in $PATH 4855do 4856 IFS=$as_save_IFS 4857 test -z "$as_dir" && as_dir=. 4858 for ac_exec_ext in '' $ac_executable_extensions; do 4859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4860 ac_cv_prog_ac_ct_CC="$ac_prog" 4861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4862 break 2 4863 fi 4864done 4865 done 4866IFS=$as_save_IFS 4867 4868fi 4869fi 4870ac_ct_CC=$ac_cv_prog_ac_ct_CC 4871if test -n "$ac_ct_CC"; then 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4873$as_echo "$ac_ct_CC" >&6; } 4874else 4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4876$as_echo "no" >&6; } 4877fi 4878 4879 4880 test -n "$ac_ct_CC" && break 4881done 4882 4883 if test "x$ac_ct_CC" = x; then 4884 CC="" 4885 else 4886 case $cross_compiling:$ac_tool_warned in 4887yes:) 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4890ac_tool_warned=yes ;; 4891esac 4892 CC=$ac_ct_CC 4893 fi 4894fi 4895 4896fi 4897 4898 4899test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4901as_fn_error $? "no acceptable C compiler found in \$PATH 4902See \`config.log' for more details" "$LINENO" 5; } 4903 4904# Provide some information about the compiler. 4905$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4906set X $ac_compile 4907ac_compiler=$2 4908for ac_option in --version -v -V -qversion; do 4909 { { ac_try="$ac_compiler $ac_option >&5" 4910case "(($ac_try" in 4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4912 *) ac_try_echo=$ac_try;; 4913esac 4914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4915$as_echo "$ac_try_echo"; } >&5 4916 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4917 ac_status=$? 4918 if test -s conftest.err; then 4919 sed '10a\ 4920... rest of stderr output deleted ... 4921 10q' conftest.err >conftest.er1 4922 cat conftest.er1 >&5 4923 fi 4924 rm -f conftest.er1 conftest.err 4925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4926 test $ac_status = 0; } 4927done 4928 4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4930$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4931if ${ac_cv_c_compiler_gnu+:} false; then : 4932 $as_echo_n "(cached) " >&6 4933else 4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4935/* end confdefs.h. */ 4936 4937int 4938main () 4939{ 4940#ifndef __GNUC__ 4941 choke me 4942#endif 4943 4944 ; 4945 return 0; 4946} 4947_ACEOF 4948if ac_fn_c_try_compile "$LINENO"; then : 4949 ac_compiler_gnu=yes 4950else 4951 ac_compiler_gnu=no 4952fi 4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4954ac_cv_c_compiler_gnu=$ac_compiler_gnu 4955 4956fi 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4958$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4959if test $ac_compiler_gnu = yes; then 4960 GCC=yes 4961else 4962 GCC= 4963fi 4964ac_test_CFLAGS=${CFLAGS+set} 4965ac_save_CFLAGS=$CFLAGS 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4967$as_echo_n "checking whether $CC accepts -g... " >&6; } 4968if ${ac_cv_prog_cc_g+:} false; then : 4969 $as_echo_n "(cached) " >&6 4970else 4971 ac_save_c_werror_flag=$ac_c_werror_flag 4972 ac_c_werror_flag=yes 4973 ac_cv_prog_cc_g=no 4974 CFLAGS="-g" 4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4976/* end confdefs.h. */ 4977 4978int 4979main () 4980{ 4981 4982 ; 4983 return 0; 4984} 4985_ACEOF 4986if ac_fn_c_try_compile "$LINENO"; then : 4987 ac_cv_prog_cc_g=yes 4988else 4989 CFLAGS="" 4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4991/* end confdefs.h. */ 4992 4993int 4994main () 4995{ 4996 4997 ; 4998 return 0; 4999} 5000_ACEOF 5001if ac_fn_c_try_compile "$LINENO"; then : 5002 5003else 5004 ac_c_werror_flag=$ac_save_c_werror_flag 5005 CFLAGS="-g" 5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5007/* end confdefs.h. */ 5008 5009int 5010main () 5011{ 5012 5013 ; 5014 return 0; 5015} 5016_ACEOF 5017if ac_fn_c_try_compile "$LINENO"; then : 5018 ac_cv_prog_cc_g=yes 5019fi 5020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5021fi 5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5023fi 5024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5025 ac_c_werror_flag=$ac_save_c_werror_flag 5026fi 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5028$as_echo "$ac_cv_prog_cc_g" >&6; } 5029if test "$ac_test_CFLAGS" = set; then 5030 CFLAGS=$ac_save_CFLAGS 5031elif test $ac_cv_prog_cc_g = yes; then 5032 if test "$GCC" = yes; then 5033 CFLAGS="-g -O2" 5034 else 5035 CFLAGS="-g" 5036 fi 5037else 5038 if test "$GCC" = yes; then 5039 CFLAGS="-O2" 5040 else 5041 CFLAGS= 5042 fi 5043fi 5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5045$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5046if ${ac_cv_prog_cc_c89+:} false; then : 5047 $as_echo_n "(cached) " >&6 5048else 5049 ac_cv_prog_cc_c89=no 5050ac_save_CC=$CC 5051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5052/* end confdefs.h. */ 5053#include <stdarg.h> 5054#include <stdio.h> 5055struct stat; 5056/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5057struct buf { int x; }; 5058FILE * (*rcsopen) (struct buf *, struct stat *, int); 5059static char *e (p, i) 5060 char **p; 5061 int i; 5062{ 5063 return p[i]; 5064} 5065static char *f (char * (*g) (char **, int), char **p, ...) 5066{ 5067 char *s; 5068 va_list v; 5069 va_start (v,p); 5070 s = g (p, va_arg (v,int)); 5071 va_end (v); 5072 return s; 5073} 5074 5075/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5076 function prototypes and stuff, but not '\xHH' hex character constants. 5077 These don't provoke an error unfortunately, instead are silently treated 5078 as 'x'. The following induces an error, until -std is added to get 5079 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5080 array size at least. It's necessary to write '\x00'==0 to get something 5081 that's true only with -std. */ 5082int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5083 5084/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5085 inside strings and character constants. */ 5086#define FOO(x) 'x' 5087int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5088 5089int test (int i, double x); 5090struct s1 {int (*f) (int a);}; 5091struct s2 {int (*f) (double a);}; 5092int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5093int argc; 5094char **argv; 5095int 5096main () 5097{ 5098return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5099 ; 5100 return 0; 5101} 5102_ACEOF 5103for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5104 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5105do 5106 CC="$ac_save_CC $ac_arg" 5107 if ac_fn_c_try_compile "$LINENO"; then : 5108 ac_cv_prog_cc_c89=$ac_arg 5109fi 5110rm -f core conftest.err conftest.$ac_objext 5111 test "x$ac_cv_prog_cc_c89" != "xno" && break 5112done 5113rm -f conftest.$ac_ext 5114CC=$ac_save_CC 5115 5116fi 5117# AC_CACHE_VAL 5118case "x$ac_cv_prog_cc_c89" in 5119 x) 5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5121$as_echo "none needed" >&6; } ;; 5122 xno) 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5124$as_echo "unsupported" >&6; } ;; 5125 *) 5126 CC="$CC $ac_cv_prog_cc_c89" 5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5128$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5129esac 5130if test "x$ac_cv_prog_cc_c89" != xno; then : 5131 5132fi 5133 5134ac_ext=c 5135ac_cpp='$CPP $CPPFLAGS' 5136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5138ac_compiler_gnu=$ac_cv_c_compiler_gnu 5139 5140 5141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 5142$as_echo_n "checking $CC dependency flag... " >&6; } 5143echo 'void f(){}' >conftest.c 5144if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5145 DEPFLAG="-MM" 5146else 5147 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5148 DEPFLAG="-xM1" 5149 else 5150 DEPFLAG="-MM" # dunno do something 5151 fi 5152fi 5153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 5154$as_echo "$DEPFLAG" >&6; } 5155rm -f conftest.c 5156 5157 5158 5159 5160 5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 5162$as_echo_n "checking whether $CC supports -Werror... " >&6; } 5163cache=`echo Werror | sed 'y%.=/+-%___p_%'` 5164if eval \${cv_prog_cc_flag_$cache+:} false; then : 5165 $as_echo_n "(cached) " >&6 5166else 5167 5168echo 'void f(void){}' >conftest.c 5169if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 5170eval "cv_prog_cc_flag_$cache=yes" 5171else 5172eval "cv_prog_cc_flag_$cache=no" 5173fi 5174rm -f conftest conftest.o conftest.c 5175 5176fi 5177 5178if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5180$as_echo "yes" >&6; } 5181: 5182ERRFLAG="-Werror" 5183else 5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5185$as_echo "no" >&6; } 5186: 5187ERRFLAG="-errwarn" 5188fi 5189 5190 5191 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5193$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5194cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5195if eval \${cv_prog_cc_flag_$cache+:} false; then : 5196 $as_echo_n "(cached) " >&6 5197else 5198 5199echo 'void f(void){}' >conftest.c 5200if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5201eval "cv_prog_cc_flag_$cache=yes" 5202else 5203eval "cv_prog_cc_flag_$cache=no" 5204fi 5205rm -f conftest conftest.o conftest.c 5206 5207fi 5208 5209if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5211$as_echo "yes" >&6; } 5212: 5213ERRFLAG="$ERRFLAG -Wall" 5214else 5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5216$as_echo "no" >&6; } 5217: 5218ERRFLAG="$ERRFLAG -errfmt" 5219fi 5220 5221 5222 5223 5224 5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 5226$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 5227cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 5228if eval \${cv_prog_cc_flag_$cache+:} false; then : 5229 $as_echo_n "(cached) " >&6 5230else 5231 5232echo 'void f(void){}' >conftest.c 5233if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 5234eval "cv_prog_cc_flag_$cache=yes" 5235else 5236eval "cv_prog_cc_flag_$cache=no" 5237fi 5238rm -f conftest conftest.o conftest.c 5239 5240fi 5241 5242if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5244$as_echo "yes" >&6; } 5245: 5246C99FLAG="-std=c99" 5247else 5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5249$as_echo "no" >&6; } 5250: 5251 5252fi 5253 5254 5255 5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 5257$as_echo_n "checking whether $CC supports -xc99... " >&6; } 5258cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 5259if eval \${cv_prog_cc_flag_$cache+:} false; then : 5260 $as_echo_n "(cached) " >&6 5261else 5262 5263echo 'void f(void){}' >conftest.c 5264if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 5265eval "cv_prog_cc_flag_$cache=yes" 5266else 5267eval "cv_prog_cc_flag_$cache=no" 5268fi 5269rm -f conftest conftest.o conftest.c 5270 5271fi 5272 5273if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5275$as_echo "yes" >&6; } 5276: 5277C99FLAG="-xc99" 5278else 5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5280$as_echo "no" >&6; } 5281: 5282 5283fi 5284 5285 5286for ac_header in getopt.h time.h 5287do : 5288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5289ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5290" 5291if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5292 cat >>confdefs.h <<_ACEOF 5293#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5294_ACEOF 5295 5296fi 5297 5298done 5299 5300 5301 5302 5303 5304{ $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 5305$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; } 5306cache=`$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` 5307if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5308 $as_echo_n "(cached) " >&6 5309else 5310 5311echo ' 5312#include "confdefs.h" 5313#include <stdlib.h> 5314#include <ctype.h> 5315#include <sys/time.h> 5316#ifdef HAVE_TIME_H 5317#include <time.h> 5318#endif 5319#include <unistd.h> 5320#include <netdb.h> 5321#ifdef HAVE_GETOPT_H 5322#include <getopt.h> 5323#endif 5324 5325int test() { 5326 int a; 5327 char **opts = NULL; 5328 struct timeval tv; 5329 char *t; 5330 time_t time = 0; 5331 char *buf = NULL; 5332 const char* str = NULL; 5333 struct msghdr msg; 5334 msg.msg_control = 0; 5335 t = ctime_r(&time, buf); 5336 tv.tv_usec = 10; 5337 srandom(32); 5338 a = getopt(2, opts, "a"); 5339 a = isascii(32); 5340 str = gai_strerror(0); 5341 if(str && t && tv.tv_usec && msg.msg_control) 5342 a = 0; 5343 return a; 5344} 5345' > conftest.c 5346echo 'void f(){}' >>conftest.c 5347if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5348eval "cv_prog_cc_flag_needed_$cache=no" 5349else 5350 5351if 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 5352eval "cv_prog_cc_flag_needed_$cache=yes" 5353else 5354eval "cv_prog_cc_flag_needed_$cache=fail" 5355#echo 'Test with flag fails too!' 5356#cat conftest.c 5357#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" 5358#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` 5359#exit 1 5360fi 5361 5362fi 5363rm -f conftest conftest.c conftest.o 5364 5365fi 5366 5367if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5369$as_echo "yes" >&6; } 5370: 5371CFLAGS="$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" 5372else 5373if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5375$as_echo "no" >&6; } 5376#echo 'Test with flag is no!' 5377#cat conftest.c 5378#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" 5379#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` 5380#exit 1 5381: 5382 5383else 5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5385$as_echo "failed" >&6; } 5386: 5387 5388fi 5389fi 5390 5391 5392 5393 5394 5395{ $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 5396$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; } 5397cache=`$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` 5398if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5399 $as_echo_n "(cached) " >&6 5400else 5401 5402echo ' 5403#include "confdefs.h" 5404#include <stdlib.h> 5405#include <ctype.h> 5406#include <sys/time.h> 5407#ifdef HAVE_TIME_H 5408#include <time.h> 5409#endif 5410#include <unistd.h> 5411#include <netdb.h> 5412#ifdef HAVE_GETOPT_H 5413#include <getopt.h> 5414#endif 5415 5416int test() { 5417 int a; 5418 char **opts = NULL; 5419 struct timeval tv; 5420 char *t; 5421 time_t time = 0; 5422 char *buf = NULL; 5423 const char* str = NULL; 5424 struct msghdr msg; 5425 msg.msg_control = 0; 5426 t = ctime_r(&time, buf); 5427 tv.tv_usec = 10; 5428 srandom(32); 5429 a = getopt(2, opts, "a"); 5430 a = isascii(32); 5431 str = gai_strerror(0); 5432 if(str && t && tv.tv_usec && msg.msg_control) 5433 a = 0; 5434 return a; 5435} 5436' > conftest.c 5437echo 'void f(){}' >>conftest.c 5438if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5439eval "cv_prog_cc_flag_needed_$cache=no" 5440else 5441 5442if 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 5443eval "cv_prog_cc_flag_needed_$cache=yes" 5444else 5445eval "cv_prog_cc_flag_needed_$cache=fail" 5446#echo 'Test with flag fails too!' 5447#cat conftest.c 5448#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" 5449#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` 5450#exit 1 5451fi 5452 5453fi 5454rm -f conftest conftest.c conftest.o 5455 5456fi 5457 5458if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5460$as_echo "yes" >&6; } 5461: 5462CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 5463else 5464if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5466$as_echo "no" >&6; } 5467#echo 'Test with flag is no!' 5468#cat conftest.c 5469#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" 5470#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` 5471#exit 1 5472: 5473 5474else 5475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5476$as_echo "failed" >&6; } 5477: 5478 5479fi 5480fi 5481 5482 5483 5484 5485 5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 5487$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 5488cache=`$as_echo "$C99FLAG" | $as_tr_sh` 5489if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5490 $as_echo_n "(cached) " >&6 5491else 5492 5493echo ' 5494#include <stdbool.h> 5495#include <ctype.h> 5496int test() { 5497 int a = 0; 5498 return a; 5499} 5500' > conftest.c 5501echo 'void f(){}' >>conftest.c 5502if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5503eval "cv_prog_cc_flag_needed_$cache=no" 5504else 5505 5506if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 5507eval "cv_prog_cc_flag_needed_$cache=yes" 5508else 5509eval "cv_prog_cc_flag_needed_$cache=fail" 5510#echo 'Test with flag fails too!' 5511#cat conftest.c 5512#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5513#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5514#exit 1 5515fi 5516 5517fi 5518rm -f conftest conftest.c conftest.o 5519 5520fi 5521 5522if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5524$as_echo "yes" >&6; } 5525: 5526CFLAGS="$CFLAGS $C99FLAG" 5527else 5528if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5530$as_echo "no" >&6; } 5531#echo 'Test with flag is no!' 5532#cat conftest.c 5533#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5534#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5535#exit 1 5536: 5537 5538else 5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5540$as_echo "failed" >&6; } 5541: 5542 5543fi 5544fi 5545 5546 5547 5548 5549 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5 5551$as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; } 5552cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE 5553if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 5557echo ' 5558#include <ctype.h> 5559 5560int test() { 5561 int a; 5562 a = isascii(32); 5563 return a; 5564} 5565' > conftest.c 5566echo 'void f(){}' >>conftest.c 5567if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5568eval "cv_prog_cc_flag_needed_$cache=no" 5569else 5570 5571if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5572eval "cv_prog_cc_flag_needed_$cache=yes" 5573else 5574eval "cv_prog_cc_flag_needed_$cache=fail" 5575#echo 'Test with flag fails too!' 5576#cat conftest.c 5577#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 5578#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 5579#exit 1 5580fi 5581 5582fi 5583rm -f conftest conftest.c conftest.o 5584 5585fi 5586 5587if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5589$as_echo "yes" >&6; } 5590: 5591CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE" 5592else 5593if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5595$as_echo "no" >&6; } 5596#echo 'Test with flag is no!' 5597#cat conftest.c 5598#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 5599#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 5600#exit 1 5601: 5602 5603else 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5605$as_echo "failed" >&6; } 5606: 5607 5608fi 5609fi 5610 5611 5612 5613 5614 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 5616$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 5617cache=_D_GNU_SOURCE 5618if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5619 $as_echo_n "(cached) " >&6 5620else 5621 5622echo ' 5623#include <netinet/in.h> 5624 5625int test() { 5626 struct in6_pktinfo inf; 5627 int a = (int)sizeof(inf); 5628 return a; 5629} 5630' > conftest.c 5631echo 'void f(){}' >>conftest.c 5632if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5633eval "cv_prog_cc_flag_needed_$cache=no" 5634else 5635 5636if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5637eval "cv_prog_cc_flag_needed_$cache=yes" 5638else 5639eval "cv_prog_cc_flag_needed_$cache=fail" 5640#echo 'Test with flag fails too!' 5641#cat conftest.c 5642#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5643#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5644#exit 1 5645fi 5646 5647fi 5648rm -f conftest conftest.c conftest.o 5649 5650fi 5651 5652if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5654$as_echo "yes" >&6; } 5655: 5656CFLAGS="$CFLAGS -D_GNU_SOURCE" 5657else 5658if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5660$as_echo "no" >&6; } 5661#echo 'Test with flag is no!' 5662#cat conftest.c 5663#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5664#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5665#exit 1 5666: 5667 5668else 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5670$as_echo "failed" >&6; } 5671: 5672 5673fi 5674fi 5675 5676 5677# check again for GNU_SOURCE for setresgid. May fail if setresgid 5678# is not available at all. -D_FRSRESGID is to make this check unique. 5679# otherwise we would get the previous cached result. 5680 5681 5682 5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 5684$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 5685cache=_D_GNU_SOURCE__D_FRSRESGID 5686if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5687 $as_echo_n "(cached) " >&6 5688else 5689 5690echo ' 5691#include <unistd.h> 5692 5693int test() { 5694 int a = setresgid(0,0,0); 5695 a = setresuid(0,0,0); 5696 return a; 5697} 5698' > conftest.c 5699echo 'void f(){}' >>conftest.c 5700if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5701eval "cv_prog_cc_flag_needed_$cache=no" 5702else 5703 5704if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 5705eval "cv_prog_cc_flag_needed_$cache=yes" 5706else 5707eval "cv_prog_cc_flag_needed_$cache=fail" 5708#echo 'Test with flag fails too!' 5709#cat conftest.c 5710#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5711#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5712#exit 1 5713fi 5714 5715fi 5716rm -f conftest conftest.c conftest.o 5717 5718fi 5719 5720if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5722$as_echo "yes" >&6; } 5723: 5724CFLAGS="$CFLAGS -D_GNU_SOURCE" 5725else 5726if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5728$as_echo "no" >&6; } 5729#echo 'Test with flag is no!' 5730#cat conftest.c 5731#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5732#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5733#exit 1 5734: 5735 5736else 5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5738$as_echo "failed" >&6; } 5739: 5740 5741fi 5742fi 5743 5744 5745 5746 5747 5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 5749$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 5750cache=_D_POSIX_C_SOURCE_200112 5751if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5752 $as_echo_n "(cached) " >&6 5753else 5754 5755echo ' 5756#include "confdefs.h" 5757#ifdef HAVE_TIME_H 5758#include <time.h> 5759#endif 5760#include <netdb.h> 5761 5762int test() { 5763 int a = 0; 5764 char *t; 5765 time_t time = 0; 5766 char *buf = NULL; 5767 const char* str = NULL; 5768 t = ctime_r(&time, buf); 5769 str = gai_strerror(0); 5770 if(t && str) 5771 a = 0; 5772 return a; 5773} 5774' > conftest.c 5775echo 'void f(){}' >>conftest.c 5776if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5777eval "cv_prog_cc_flag_needed_$cache=no" 5778else 5779 5780if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 5781eval "cv_prog_cc_flag_needed_$cache=yes" 5782else 5783eval "cv_prog_cc_flag_needed_$cache=fail" 5784#echo 'Test with flag fails too!' 5785#cat conftest.c 5786#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5787#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5788#exit 1 5789fi 5790 5791fi 5792rm -f conftest conftest.c conftest.o 5793 5794fi 5795 5796if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5798$as_echo "yes" >&6; } 5799: 5800CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 5801else 5802if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5804$as_echo "no" >&6; } 5805#echo 'Test with flag is no!' 5806#cat conftest.c 5807#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5808#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5809#exit 1 5810: 5811 5812else 5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5814$as_echo "failed" >&6; } 5815: 5816 5817fi 5818fi 5819 5820 5821 5822 5823 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 5825$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 5826cache=_D__EXTENSIONS__ 5827if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5828 $as_echo_n "(cached) " >&6 5829else 5830 5831echo ' 5832#include "confdefs.h" 5833#include <stdlib.h> 5834#include <ctype.h> 5835#include <sys/time.h> 5836#ifdef HAVE_TIME_H 5837#include <time.h> 5838#endif 5839#include <unistd.h> 5840#ifdef HAVE_GETOPT_H 5841#include <getopt.h> 5842#endif 5843 5844int test() { 5845 int a; 5846 char **opts = NULL; 5847 struct timeval tv; 5848 tv.tv_usec = 10; 5849 srandom(32); 5850 a = getopt(2, opts, "a"); 5851 a = isascii(32); 5852 if(tv.tv_usec) 5853 a = 0; 5854 return a; 5855} 5856' > conftest.c 5857echo 'void f(){}' >>conftest.c 5858if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5859eval "cv_prog_cc_flag_needed_$cache=no" 5860else 5861 5862if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 5863eval "cv_prog_cc_flag_needed_$cache=yes" 5864else 5865eval "cv_prog_cc_flag_needed_$cache=fail" 5866#echo 'Test with flag fails too!' 5867#cat conftest.c 5868#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5869#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5870#exit 1 5871fi 5872 5873fi 5874rm -f conftest conftest.c conftest.o 5875 5876fi 5877 5878if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5880$as_echo "yes" >&6; } 5881: 5882CFLAGS="$CFLAGS -D__EXTENSIONS__" 5883else 5884if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5886$as_echo "no" >&6; } 5887#echo 'Test with flag is no!' 5888#cat conftest.c 5889#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5890#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5891#exit 1 5892: 5893 5894else 5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5896$as_echo "failed" >&6; } 5897: 5898 5899fi 5900fi 5901 5902 5903 5904 5905# debug mode flags warnings 5906# Check whether --enable-checking was given. 5907if test "${enable_checking+set}" = set; then : 5908 enableval=$enable_checking; 5909fi 5910 5911# Check whether --enable-debug was given. 5912if test "${enable_debug+set}" = set; then : 5913 enableval=$enable_debug; 5914fi 5915 5916if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; 5917else debug_enabled="$enable_checking"; fi 5918 5919case "$debug_enabled" in 5920 yes) 5921 5922 5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 5924$as_echo_n "checking whether $CC supports -W... " >&6; } 5925cache=`echo W | sed 'y%.=/+-%___p_%'` 5926if eval \${cv_prog_cc_flag_$cache+:} false; then : 5927 $as_echo_n "(cached) " >&6 5928else 5929 5930echo 'void f(void){}' >conftest.c 5931if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 5932eval "cv_prog_cc_flag_$cache=yes" 5933else 5934eval "cv_prog_cc_flag_$cache=no" 5935fi 5936rm -f conftest conftest.o conftest.c 5937 5938fi 5939 5940if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5942$as_echo "yes" >&6; } 5943: 5944CFLAGS="$CFLAGS -W" 5945else 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5947$as_echo "no" >&6; } 5948: 5949 5950fi 5951 5952 5953 5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5955$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5956cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5957if eval \${cv_prog_cc_flag_$cache+:} false; then : 5958 $as_echo_n "(cached) " >&6 5959else 5960 5961echo 'void f(void){}' >conftest.c 5962if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5963eval "cv_prog_cc_flag_$cache=yes" 5964else 5965eval "cv_prog_cc_flag_$cache=no" 5966fi 5967rm -f conftest conftest.o conftest.c 5968 5969fi 5970 5971if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5973$as_echo "yes" >&6; } 5974: 5975CFLAGS="$CFLAGS -Wall" 5976else 5977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5978$as_echo "no" >&6; } 5979: 5980 5981fi 5982 5983 5984 5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 5986$as_echo_n "checking whether $CC supports -Wextra... " >&6; } 5987cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 5988if eval \${cv_prog_cc_flag_$cache+:} false; then : 5989 $as_echo_n "(cached) " >&6 5990else 5991 5992echo 'void f(void){}' >conftest.c 5993if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then 5994eval "cv_prog_cc_flag_$cache=yes" 5995else 5996eval "cv_prog_cc_flag_$cache=no" 5997fi 5998rm -f conftest conftest.o conftest.c 5999 6000fi 6001 6002if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6004$as_echo "yes" >&6; } 6005: 6006CFLAGS="$CFLAGS -Wextra" 6007else 6008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6009$as_echo "no" >&6; } 6010: 6011 6012fi 6013 6014 6015 6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 6017$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 6018cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'` 6019if eval \${cv_prog_cc_flag_$cache+:} false; then : 6020 $as_echo_n "(cached) " >&6 6021else 6022 6023echo 'void f(void){}' >conftest.c 6024if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 6025eval "cv_prog_cc_flag_$cache=yes" 6026else 6027eval "cv_prog_cc_flag_$cache=no" 6028fi 6029rm -f conftest conftest.o conftest.c 6030 6031fi 6032 6033if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6035$as_echo "yes" >&6; } 6036: 6037CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6038else 6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6040$as_echo "no" >&6; } 6041: 6042 6043fi 6044 6045 6046$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h 6047 6048 ;; 6049 no|*) 6050 # nothing to do. 6051 ;; 6052esac 6053if test "$default_cflags" = "yes"; then 6054 # only when CFLAGS was "" at the start, if the users wants to 6055 # override we shouldn't add default cflags, because they wouldn't 6056 # be able to turn off these options and set the CFLAGS wanted. 6057 6058 # Check whether --enable-flto was given. 6059if test "${enable_flto+set}" = set; then : 6060 enableval=$enable_flto; 6061fi 6062 6063 if test "x$enable_flto" != "xno"; then : 6064 6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 6066$as_echo_n "checking if $CC supports -flto... " >&6; } 6067 BAKCFLAGS="$CFLAGS" 6068 CFLAGS="$CFLAGS -flto" 6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6070/* end confdefs.h. */ 6071 6072int 6073main () 6074{ 6075 6076 ; 6077 return 0; 6078} 6079_ACEOF 6080if ac_fn_c_try_link "$LINENO"; then : 6081 6082 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then 6083 CFLAGS="$BAKCFLAGS" 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6085$as_echo "no" >&6; } 6086 else 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6088$as_echo "yes" >&6; } 6089 fi 6090 rm -f conftest conftest.c conftest.o 6091 6092else 6093 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6094$as_echo "no" >&6; } 6095fi 6096rm -f core conftest.err conftest.$ac_objext \ 6097 conftest$ac_exeext conftest.$ac_ext 6098 6099fi 6100 6101 6102 # Check whether --enable-pie was given. 6103if test "${enable_pie+set}" = set; then : 6104 enableval=$enable_pie; 6105fi 6106 6107 if test "x$enable_pie" = "xyes"; then : 6108 6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5 6110$as_echo_n "checking if $CC supports PIE... " >&6; } 6111 BAKLDFLAGS="$LDFLAGS" 6112 BAKCFLAGS="$CFLAGS" 6113 LDFLAGS="$LDFLAGS -pie" 6114 CFLAGS="$CFLAGS -fPIE" 6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6116/* end confdefs.h. */ 6117 6118int 6119main () 6120{ 6121 6122 ; 6123 return 0; 6124} 6125_ACEOF 6126if ac_fn_c_try_link "$LINENO"; then : 6127 6128 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6129 LDFLAGS="$BAKLDFLAGS" 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6131$as_echo "no" >&6; } 6132 else 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6134$as_echo "yes" >&6; } 6135 fi 6136 rm -f conftest conftest.c conftest.o 6137 6138else 6139 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6140$as_echo "no" >&6; } 6141fi 6142rm -f core conftest.err conftest.$ac_objext \ 6143 conftest$ac_exeext conftest.$ac_ext 6144 6145fi 6146 6147 6148 # Check whether --enable-relro_now was given. 6149if test "${enable_relro_now+set}" = set; then : 6150 enableval=$enable_relro_now; 6151fi 6152 6153 if test "x$enable_relro_now" = "xyes"; then : 6154 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5 6156$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; } 6157 BAKLDFLAGS="$LDFLAGS" 6158 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now" 6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6160/* end confdefs.h. */ 6161 6162int 6163main () 6164{ 6165 6166 ; 6167 return 0; 6168} 6169_ACEOF 6170if ac_fn_c_try_link "$LINENO"; then : 6171 6172 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6173 LDFLAGS="$BAKLDFLAGS" 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6175$as_echo "no" >&6; } 6176 else 6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6178$as_echo "yes" >&6; } 6179 fi 6180 rm -f conftest conftest.c conftest.o 6181 6182else 6183 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6184$as_echo "no" >&6; } 6185fi 6186rm -f core conftest.err conftest.$ac_objext \ 6187 conftest$ac_exeext conftest.$ac_ext 6188 6189fi 6190 6191fi 6192 6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6194$as_echo_n "checking for inline... " >&6; } 6195if ${ac_cv_c_inline+:} false; then : 6196 $as_echo_n "(cached) " >&6 6197else 6198 ac_cv_c_inline=no 6199for ac_kw in inline __inline__ __inline; do 6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6201/* end confdefs.h. */ 6202#ifndef __cplusplus 6203typedef int foo_t; 6204static $ac_kw foo_t static_foo () {return 0; } 6205$ac_kw foo_t foo () {return 0; } 6206#endif 6207 6208_ACEOF 6209if ac_fn_c_try_compile "$LINENO"; then : 6210 ac_cv_c_inline=$ac_kw 6211fi 6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6213 test "$ac_cv_c_inline" != no && break 6214done 6215 6216fi 6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6218$as_echo "$ac_cv_c_inline" >&6; } 6219 6220case $ac_cv_c_inline in 6221 inline | yes) ;; 6222 *) 6223 case $ac_cv_c_inline in 6224 no) ac_val=;; 6225 *) ac_val=$ac_cv_c_inline;; 6226 esac 6227 cat >>confdefs.h <<_ACEOF 6228#ifndef __cplusplus 6229#define inline $ac_val 6230#endif 6231_ACEOF 6232 ;; 6233esac 6234 6235 6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 6237$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 6238if ${ac_cv_c_format_attribute+:} false; then : 6239 $as_echo_n "(cached) " >&6 6240else 6241 ac_cv_c_format_attribute=no 6242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6243/* end confdefs.h. */ 6244#include <stdio.h> 6245void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6246void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6247 6248int 6249main () 6250{ 6251 6252 f ("%s", "str"); 6253 6254 ; 6255 return 0; 6256} 6257_ACEOF 6258if ac_fn_c_try_compile "$LINENO"; then : 6259 ac_cv_c_format_attribute="yes" 6260else 6261 ac_cv_c_format_attribute="no" 6262fi 6263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6264 6265fi 6266 6267 6268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 6269$as_echo "$ac_cv_c_format_attribute" >&6; } 6270if test $ac_cv_c_format_attribute = yes; then 6271 6272$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 6273 6274fi 6275 6276 6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 6278$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 6279if ${ac_cv_c_unused_attribute+:} false; then : 6280 $as_echo_n "(cached) " >&6 6281else 6282 ac_cv_c_unused_attribute=no 6283cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6284/* end confdefs.h. */ 6285#include <stdio.h> 6286void f (char *u __attribute__((unused))); 6287 6288int 6289main () 6290{ 6291 6292 f ("x"); 6293 6294 ; 6295 return 0; 6296} 6297_ACEOF 6298if ac_fn_c_try_compile "$LINENO"; then : 6299 ac_cv_c_unused_attribute="yes" 6300else 6301 ac_cv_c_unused_attribute="no" 6302fi 6303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6304 6305fi 6306 6307 6308 6309 6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 6311$as_echo "$ac_cv_c_unused_attribute" >&6; } 6312if test $ac_cv_c_unused_attribute = yes; then 6313 6314$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 6315 6316fi 6317 6318 6319 6320 6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5 6322$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; } 6323if ${ac_cv_c_weak_attribute+:} false; then : 6324 $as_echo_n "(cached) " >&6 6325else 6326 ac_cv_c_weak_attribute=no 6327cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6328/* end confdefs.h. */ 6329 #include <stdio.h> 6330__attribute__((weak)) void f(int x) { printf("%d", x); } 6331 6332int 6333main () 6334{ 6335 6336 f(1); 6337 6338 ; 6339 return 0; 6340} 6341_ACEOF 6342if ac_fn_c_try_compile "$LINENO"; then : 6343 ac_cv_c_weak_attribute="yes" 6344else 6345 ac_cv_c_weak_attribute="no" 6346fi 6347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6348 6349fi 6350 6351 6352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5 6353$as_echo "$ac_cv_c_weak_attribute" >&6; } 6354if test $ac_cv_c_weak_attribute = yes; then 6355 6356$as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h 6357 6358 6359$as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h 6360 6361fi 6362 6363 6364 6365 6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5 6367$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; } 6368if ${ac_cv_c_noreturn_attribute+:} false; then : 6369 $as_echo_n "(cached) " >&6 6370else 6371 ac_cv_c_noreturn_attribute=no 6372cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6373/* end confdefs.h. */ 6374 #include <stdio.h> 6375__attribute__((noreturn)) void f(int x) { printf("%d", x); } 6376 6377int 6378main () 6379{ 6380 6381 f(1); 6382 6383 ; 6384 return 0; 6385} 6386_ACEOF 6387if ac_fn_c_try_compile "$LINENO"; then : 6388 ac_cv_c_noreturn_attribute="yes" 6389else 6390 ac_cv_c_noreturn_attribute="no" 6391fi 6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6393 6394fi 6395 6396 6397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5 6398$as_echo "$ac_cv_c_noreturn_attribute" >&6; } 6399if test $ac_cv_c_noreturn_attribute = yes; then 6400 6401$as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h 6402 6403 6404$as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h 6405 6406fi 6407 6408 6409if test "$srcdir" != "."; then 6410 CPPFLAGS="$CPPFLAGS -I$srcdir" 6411fi 6412 6413 6414 6415 6416 6417for ac_prog in flex lex 6418do 6419 # Extract the first word of "$ac_prog", so it can be a program name with args. 6420set dummy $ac_prog; ac_word=$2 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6422$as_echo_n "checking for $ac_word... " >&6; } 6423if ${ac_cv_prog_LEX+:} false; then : 6424 $as_echo_n "(cached) " >&6 6425else 6426 if test -n "$LEX"; then 6427 ac_cv_prog_LEX="$LEX" # Let the user override the test. 6428else 6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430for as_dir in $PATH 6431do 6432 IFS=$as_save_IFS 6433 test -z "$as_dir" && as_dir=. 6434 for ac_exec_ext in '' $ac_executable_extensions; do 6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6436 ac_cv_prog_LEX="$ac_prog" 6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6438 break 2 6439 fi 6440done 6441 done 6442IFS=$as_save_IFS 6443 6444fi 6445fi 6446LEX=$ac_cv_prog_LEX 6447if test -n "$LEX"; then 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 6449$as_echo "$LEX" >&6; } 6450else 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6452$as_echo "no" >&6; } 6453fi 6454 6455 6456 test -n "$LEX" && break 6457done 6458test -n "$LEX" || LEX=":" 6459 6460if test "x$LEX" != "x:"; then 6461 cat >conftest.l <<_ACEOF 6462%% 6463a { ECHO; } 6464b { REJECT; } 6465c { yymore (); } 6466d { yyless (1); } 6467e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 6468 yyless ((input () != 0)); } 6469f { unput (yytext[0]); } 6470. { BEGIN INITIAL; } 6471%% 6472#ifdef YYTEXT_POINTER 6473extern char *yytext; 6474#endif 6475int 6476main (void) 6477{ 6478 return ! yylex () + ! yywrap (); 6479} 6480_ACEOF 6481{ { ac_try="$LEX conftest.l" 6482case "(($ac_try" in 6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6484 *) ac_try_echo=$ac_try;; 6485esac 6486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6487$as_echo "$ac_try_echo"; } >&5 6488 (eval "$LEX conftest.l") 2>&5 6489 ac_status=$? 6490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6491 test $ac_status = 0; } 6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 6493$as_echo_n "checking lex output file root... " >&6; } 6494if ${ac_cv_prog_lex_root+:} false; then : 6495 $as_echo_n "(cached) " >&6 6496else 6497 6498if test -f lex.yy.c; then 6499 ac_cv_prog_lex_root=lex.yy 6500elif test -f lexyy.c; then 6501 ac_cv_prog_lex_root=lexyy 6502else 6503 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 6504fi 6505fi 6506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 6507$as_echo "$ac_cv_prog_lex_root" >&6; } 6508LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 6509 6510if test -z "${LEXLIB+set}"; then 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 6512$as_echo_n "checking lex library... " >&6; } 6513if ${ac_cv_lib_lex+:} false; then : 6514 $as_echo_n "(cached) " >&6 6515else 6516 6517 ac_save_LIBS=$LIBS 6518 ac_cv_lib_lex='none needed' 6519 for ac_lib in '' -lfl -ll; do 6520 LIBS="$ac_lib $ac_save_LIBS" 6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6522/* end confdefs.h. */ 6523`cat $LEX_OUTPUT_ROOT.c` 6524_ACEOF 6525if ac_fn_c_try_link "$LINENO"; then : 6526 ac_cv_lib_lex=$ac_lib 6527fi 6528rm -f core conftest.err conftest.$ac_objext \ 6529 conftest$ac_exeext conftest.$ac_ext 6530 test "$ac_cv_lib_lex" != 'none needed' && break 6531 done 6532 LIBS=$ac_save_LIBS 6533 6534fi 6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 6536$as_echo "$ac_cv_lib_lex" >&6; } 6537 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 6538fi 6539 6540 6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 6542$as_echo_n "checking whether yytext is a pointer... " >&6; } 6543if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 6544 $as_echo_n "(cached) " >&6 6545else 6546 # POSIX says lex can declare yytext either as a pointer or an array; the 6547# default is implementation-dependent. Figure out which it is, since 6548# not all implementations provide the %pointer and %array declarations. 6549ac_cv_prog_lex_yytext_pointer=no 6550ac_save_LIBS=$LIBS 6551LIBS="$LEXLIB $ac_save_LIBS" 6552cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6553/* end confdefs.h. */ 6554 6555 #define YYTEXT_POINTER 1 6556`cat $LEX_OUTPUT_ROOT.c` 6557_ACEOF 6558if ac_fn_c_try_link "$LINENO"; then : 6559 ac_cv_prog_lex_yytext_pointer=yes 6560fi 6561rm -f core conftest.err conftest.$ac_objext \ 6562 conftest$ac_exeext conftest.$ac_ext 6563LIBS=$ac_save_LIBS 6564 6565fi 6566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 6567$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 6568if test $ac_cv_prog_lex_yytext_pointer = yes; then 6569 6570$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 6571 6572fi 6573rm -f conftest.l $LEX_OUTPUT_ROOT.c 6574 6575fi 6576if test "$LEX" != "" -a "$LEX" != ":"; then 6577 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5 6579$as_echo_n "checking for yylex_destroy... " >&6; } 6580 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then 6581 6582$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h 6583 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6585$as_echo "yes" >&6; } 6586 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6587$as_echo "no" >&6; }; 6588 LEX=":" 6589 fi 6590 6591fi 6592if test "$LEX" != "" -a "$LEX" != ":"; then 6593 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5 6595$as_echo_n "checking for lex %option... " >&6; } 6596 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then 6597%option nounput 6598%% 6599EOF 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6601$as_echo "yes" >&6; } 6602 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6603$as_echo "no" >&6; }; 6604 LEX=":" 6605 fi 6606 6607fi 6608for ac_prog in 'bison -y' byacc 6609do 6610 # Extract the first word of "$ac_prog", so it can be a program name with args. 6611set dummy $ac_prog; ac_word=$2 6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6613$as_echo_n "checking for $ac_word... " >&6; } 6614if ${ac_cv_prog_YACC+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616else 6617 if test -n "$YACC"; then 6618 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6619else 6620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6621for as_dir in $PATH 6622do 6623 IFS=$as_save_IFS 6624 test -z "$as_dir" && as_dir=. 6625 for ac_exec_ext in '' $ac_executable_extensions; do 6626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6627 ac_cv_prog_YACC="$ac_prog" 6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6629 break 2 6630 fi 6631done 6632 done 6633IFS=$as_save_IFS 6634 6635fi 6636fi 6637YACC=$ac_cv_prog_YACC 6638if test -n "$YACC"; then 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 6640$as_echo "$YACC" >&6; } 6641else 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6643$as_echo "no" >&6; } 6644fi 6645 6646 6647 test -n "$YACC" && break 6648done 6649test -n "$YACC" || YACC="yacc" 6650 6651# Extract the first word of "doxygen", so it can be a program name with args. 6652set dummy doxygen; ac_word=$2 6653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6654$as_echo_n "checking for $ac_word... " >&6; } 6655if ${ac_cv_prog_doxygen+:} false; then : 6656 $as_echo_n "(cached) " >&6 6657else 6658 if test -n "$doxygen"; then 6659 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 6660else 6661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6662for as_dir in $PATH 6663do 6664 IFS=$as_save_IFS 6665 test -z "$as_dir" && as_dir=. 6666 for ac_exec_ext in '' $ac_executable_extensions; do 6667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6668 ac_cv_prog_doxygen="doxygen" 6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6670 break 2 6671 fi 6672done 6673 done 6674IFS=$as_save_IFS 6675 6676fi 6677fi 6678doxygen=$ac_cv_prog_doxygen 6679if test -n "$doxygen"; then 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 6681$as_echo "$doxygen" >&6; } 6682else 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6684$as_echo "no" >&6; } 6685fi 6686 6687 6688if test -n "$ac_tool_prefix"; then 6689 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6690set dummy ${ac_tool_prefix}strip; ac_word=$2 6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6692$as_echo_n "checking for $ac_word... " >&6; } 6693if ${ac_cv_prog_STRIP+:} false; then : 6694 $as_echo_n "(cached) " >&6 6695else 6696 if test -n "$STRIP"; then 6697 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6698else 6699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6700for as_dir in $PATH 6701do 6702 IFS=$as_save_IFS 6703 test -z "$as_dir" && as_dir=. 6704 for ac_exec_ext in '' $ac_executable_extensions; do 6705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6706 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6708 break 2 6709 fi 6710done 6711 done 6712IFS=$as_save_IFS 6713 6714fi 6715fi 6716STRIP=$ac_cv_prog_STRIP 6717if test -n "$STRIP"; then 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6719$as_echo "$STRIP" >&6; } 6720else 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6722$as_echo "no" >&6; } 6723fi 6724 6725 6726fi 6727if test -z "$ac_cv_prog_STRIP"; then 6728 ac_ct_STRIP=$STRIP 6729 # Extract the first word of "strip", so it can be a program name with args. 6730set dummy strip; ac_word=$2 6731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6732$as_echo_n "checking for $ac_word... " >&6; } 6733if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6734 $as_echo_n "(cached) " >&6 6735else 6736 if test -n "$ac_ct_STRIP"; then 6737 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6738else 6739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6740for as_dir in $PATH 6741do 6742 IFS=$as_save_IFS 6743 test -z "$as_dir" && as_dir=. 6744 for ac_exec_ext in '' $ac_executable_extensions; do 6745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6746 ac_cv_prog_ac_ct_STRIP="strip" 6747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6748 break 2 6749 fi 6750done 6751 done 6752IFS=$as_save_IFS 6753 6754fi 6755fi 6756ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6757if test -n "$ac_ct_STRIP"; then 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6759$as_echo "$ac_ct_STRIP" >&6; } 6760else 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6762$as_echo "no" >&6; } 6763fi 6764 6765 if test "x$ac_ct_STRIP" = x; then 6766 STRIP="" 6767 else 6768 case $cross_compiling:$ac_tool_warned in 6769yes:) 6770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6772ac_tool_warned=yes ;; 6773esac 6774 STRIP=$ac_ct_STRIP 6775 fi 6776else 6777 STRIP="$ac_cv_prog_STRIP" 6778fi 6779 6780ac_aux_dir= 6781for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 6782 if test -f "$ac_dir/install-sh"; then 6783 ac_aux_dir=$ac_dir 6784 ac_install_sh="$ac_aux_dir/install-sh -c" 6785 break 6786 elif test -f "$ac_dir/install.sh"; then 6787 ac_aux_dir=$ac_dir 6788 ac_install_sh="$ac_aux_dir/install.sh -c" 6789 break 6790 elif test -f "$ac_dir/shtool"; then 6791 ac_aux_dir=$ac_dir 6792 ac_install_sh="$ac_aux_dir/shtool install -c" 6793 break 6794 fi 6795done 6796if test -z "$ac_aux_dir"; then 6797 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 6798fi 6799 6800# These three variables are undocumented and unsupported, 6801# and are intended to be withdrawn in a future Autoconf release. 6802# They can cause serious problems if a builder's source tree is in a directory 6803# whose full name contains unusual characters. 6804ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 6805ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 6806ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 6807 6808 6809# Make sure we can run config.sub. 6810$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6811 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6812 6813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6814$as_echo_n "checking build system type... " >&6; } 6815if ${ac_cv_build+:} false; then : 6816 $as_echo_n "(cached) " >&6 6817else 6818 ac_build_alias=$build_alias 6819test "x$ac_build_alias" = x && 6820 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6821test "x$ac_build_alias" = x && 6822 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6823ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6824 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6825 6826fi 6827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6828$as_echo "$ac_cv_build" >&6; } 6829case $ac_cv_build in 6830*-*-*) ;; 6831*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6832esac 6833build=$ac_cv_build 6834ac_save_IFS=$IFS; IFS='-' 6835set x $ac_cv_build 6836shift 6837build_cpu=$1 6838build_vendor=$2 6839shift; shift 6840# Remember, the first character of IFS is used to create $*, 6841# except with old shells: 6842build_os=$* 6843IFS=$ac_save_IFS 6844case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6845 6846 6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6848$as_echo_n "checking host system type... " >&6; } 6849if ${ac_cv_host+:} false; then : 6850 $as_echo_n "(cached) " >&6 6851else 6852 if test "x$host_alias" = x; then 6853 ac_cv_host=$ac_cv_build 6854else 6855 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6856 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6857fi 6858 6859fi 6860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6861$as_echo "$ac_cv_host" >&6; } 6862case $ac_cv_host in 6863*-*-*) ;; 6864*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6865esac 6866host=$ac_cv_host 6867ac_save_IFS=$IFS; IFS='-' 6868set x $ac_cv_host 6869shift 6870host_cpu=$1 6871host_vendor=$2 6872shift; shift 6873# Remember, the first character of IFS is used to create $*, 6874# except with old shells: 6875host_os=$* 6876IFS=$ac_save_IFS 6877case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6878 6879 6880 6881# skip these tests, we do not need them. 6882 6883 6884 6885 6886 6887 6888 6889 6890# always use ./libtool unless override from commandline (libtool=mylibtool) 6891if test -z "$libtool"; then 6892 libtool="./libtool" 6893fi 6894 6895# avoid libtool max commandline length test on systems that fork slowly. 6896 6897if echo "$host_os" | grep "sunos4" >/dev/null; then 6898 lt_cv_sys_max_cmd_len=32750; 6899fi 6900if test -n "$ac_tool_prefix"; then 6901 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6902set dummy ${ac_tool_prefix}ar; ac_word=$2 6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6904$as_echo_n "checking for $ac_word... " >&6; } 6905if ${ac_cv_path_AR+:} false; then : 6906 $as_echo_n "(cached) " >&6 6907else 6908 case $AR in 6909 [\\/]* | ?:[\\/]*) 6910 ac_cv_path_AR="$AR" # Let the user override the test with a path. 6911 ;; 6912 *) 6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6914for as_dir in $PATH 6915do 6916 IFS=$as_save_IFS 6917 test -z "$as_dir" && as_dir=. 6918 for ac_exec_ext in '' $ac_executable_extensions; do 6919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6920 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 6921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6922 break 2 6923 fi 6924done 6925 done 6926IFS=$as_save_IFS 6927 6928 ;; 6929esac 6930fi 6931AR=$ac_cv_path_AR 6932if test -n "$AR"; then 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6934$as_echo "$AR" >&6; } 6935else 6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6937$as_echo "no" >&6; } 6938fi 6939 6940 6941fi 6942if test -z "$ac_cv_path_AR"; then 6943 ac_pt_AR=$AR 6944 # Extract the first word of "ar", so it can be a program name with args. 6945set dummy ar; ac_word=$2 6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6947$as_echo_n "checking for $ac_word... " >&6; } 6948if ${ac_cv_path_ac_pt_AR+:} false; then : 6949 $as_echo_n "(cached) " >&6 6950else 6951 case $ac_pt_AR in 6952 [\\/]* | ?:[\\/]*) 6953 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 6954 ;; 6955 *) 6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6957for as_dir in $PATH 6958do 6959 IFS=$as_save_IFS 6960 test -z "$as_dir" && as_dir=. 6961 for ac_exec_ext in '' $ac_executable_extensions; do 6962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6963 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6965 break 2 6966 fi 6967done 6968 done 6969IFS=$as_save_IFS 6970 6971 ;; 6972esac 6973fi 6974ac_pt_AR=$ac_cv_path_ac_pt_AR 6975if test -n "$ac_pt_AR"; then 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 6977$as_echo "$ac_pt_AR" >&6; } 6978else 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6980$as_echo "no" >&6; } 6981fi 6982 6983 if test "x$ac_pt_AR" = x; then 6984 AR="false" 6985 else 6986 case $cross_compiling:$ac_tool_warned in 6987yes:) 6988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6990ac_tool_warned=yes ;; 6991esac 6992 AR=$ac_pt_AR 6993 fi 6994else 6995 AR="$ac_cv_path_AR" 6996fi 6997 6998if test $AR = false; then 6999 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 7000fi 7001 7002case `pwd` in 7003 *\ * | *\ *) 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7005$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7006esac 7007 7008 7009 7010macro_version='2.4.6' 7011macro_revision='2.4.6' 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025ltmain=$ac_aux_dir/ltmain.sh 7026 7027# Backslashify metacharacters that are still active within 7028# double-quoted strings. 7029sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7030 7031# Same as above, but do not quote variable references. 7032double_quote_subst='s/\(["`\\]\)/\\\1/g' 7033 7034# Sed substitution to delay expansion of an escaped shell variable in a 7035# double_quote_subst'ed string. 7036delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7037 7038# Sed substitution to delay expansion of an escaped single quote. 7039delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7040 7041# Sed substitution to avoid accidental globbing in evaled expressions 7042no_glob_subst='s/\*/\\\*/g' 7043 7044ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7045ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7046ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7047 7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7049$as_echo_n "checking how to print strings... " >&6; } 7050# Test print first, because it will be a builtin if present. 7051if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7052 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7053 ECHO='print -r --' 7054elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7055 ECHO='printf %s\n' 7056else 7057 # Use this function as a fallback that always works. 7058 func_fallback_echo () 7059 { 7060 eval 'cat <<_LTECHO_EOF 7061$1 7062_LTECHO_EOF' 7063 } 7064 ECHO='func_fallback_echo' 7065fi 7066 7067# func_echo_all arg... 7068# Invoke $ECHO with all args, space-separated. 7069func_echo_all () 7070{ 7071 $ECHO "" 7072} 7073 7074case $ECHO in 7075 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7076$as_echo "printf" >&6; } ;; 7077 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7078$as_echo "print -r" >&6; } ;; 7079 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7080$as_echo "cat" >&6; } ;; 7081esac 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7097$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7098if ${ac_cv_path_SED+:} false; then : 7099 $as_echo_n "(cached) " >&6 7100else 7101 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7102 for ac_i in 1 2 3 4 5 6 7; do 7103 ac_script="$ac_script$as_nl$ac_script" 7104 done 7105 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7106 { ac_script=; unset ac_script;} 7107 if test -z "$SED"; then 7108 ac_path_SED_found=false 7109 # Loop through the user's path and test for each of PROGNAME-LIST 7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7111for as_dir in $PATH 7112do 7113 IFS=$as_save_IFS 7114 test -z "$as_dir" && as_dir=. 7115 for ac_prog in sed gsed; do 7116 for ac_exec_ext in '' $ac_executable_extensions; do 7117 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7118 as_fn_executable_p "$ac_path_SED" || continue 7119# Check for GNU ac_path_SED and select it if it is found. 7120 # Check for GNU $ac_path_SED 7121case `"$ac_path_SED" --version 2>&1` in 7122*GNU*) 7123 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7124*) 7125 ac_count=0 7126 $as_echo_n 0123456789 >"conftest.in" 7127 while : 7128 do 7129 cat "conftest.in" "conftest.in" >"conftest.tmp" 7130 mv "conftest.tmp" "conftest.in" 7131 cp "conftest.in" "conftest.nl" 7132 $as_echo '' >> "conftest.nl" 7133 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7135 as_fn_arith $ac_count + 1 && ac_count=$as_val 7136 if test $ac_count -gt ${ac_path_SED_max-0}; then 7137 # Best one so far, save it but keep looking for a better one 7138 ac_cv_path_SED="$ac_path_SED" 7139 ac_path_SED_max=$ac_count 7140 fi 7141 # 10*(2^10) chars as input seems more than enough 7142 test $ac_count -gt 10 && break 7143 done 7144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7145esac 7146 7147 $ac_path_SED_found && break 3 7148 done 7149 done 7150 done 7151IFS=$as_save_IFS 7152 if test -z "$ac_cv_path_SED"; then 7153 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7154 fi 7155else 7156 ac_cv_path_SED=$SED 7157fi 7158 7159fi 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7161$as_echo "$ac_cv_path_SED" >&6; } 7162 SED="$ac_cv_path_SED" 7163 rm -f conftest.sed 7164 7165test -z "$SED" && SED=sed 7166Xsed="$SED -e 1s/^X//" 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7179$as_echo_n "checking for fgrep... " >&6; } 7180if ${ac_cv_path_FGREP+:} false; then : 7181 $as_echo_n "(cached) " >&6 7182else 7183 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7184 then ac_cv_path_FGREP="$GREP -F" 7185 else 7186 if test -z "$FGREP"; then 7187 ac_path_FGREP_found=false 7188 # Loop through the user's path and test for each of PROGNAME-LIST 7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7190for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7191do 7192 IFS=$as_save_IFS 7193 test -z "$as_dir" && as_dir=. 7194 for ac_prog in fgrep; do 7195 for ac_exec_ext in '' $ac_executable_extensions; do 7196 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7197 as_fn_executable_p "$ac_path_FGREP" || continue 7198# Check for GNU ac_path_FGREP and select it if it is found. 7199 # Check for GNU $ac_path_FGREP 7200case `"$ac_path_FGREP" --version 2>&1` in 7201*GNU*) 7202 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7203*) 7204 ac_count=0 7205 $as_echo_n 0123456789 >"conftest.in" 7206 while : 7207 do 7208 cat "conftest.in" "conftest.in" >"conftest.tmp" 7209 mv "conftest.tmp" "conftest.in" 7210 cp "conftest.in" "conftest.nl" 7211 $as_echo 'FGREP' >> "conftest.nl" 7212 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7214 as_fn_arith $ac_count + 1 && ac_count=$as_val 7215 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7216 # Best one so far, save it but keep looking for a better one 7217 ac_cv_path_FGREP="$ac_path_FGREP" 7218 ac_path_FGREP_max=$ac_count 7219 fi 7220 # 10*(2^10) chars as input seems more than enough 7221 test $ac_count -gt 10 && break 7222 done 7223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7224esac 7225 7226 $ac_path_FGREP_found && break 3 7227 done 7228 done 7229 done 7230IFS=$as_save_IFS 7231 if test -z "$ac_cv_path_FGREP"; then 7232 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7233 fi 7234else 7235 ac_cv_path_FGREP=$FGREP 7236fi 7237 7238 fi 7239fi 7240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7241$as_echo "$ac_cv_path_FGREP" >&6; } 7242 FGREP="$ac_cv_path_FGREP" 7243 7244 7245test -z "$GREP" && GREP=grep 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265# Check whether --with-gnu-ld was given. 7266if test "${with_gnu_ld+set}" = set; then : 7267 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7268else 7269 with_gnu_ld=no 7270fi 7271 7272ac_prog=ld 7273if test yes = "$GCC"; then 7274 # Check if gcc -print-prog-name=ld gives a path. 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7276$as_echo_n "checking for ld used by $CC... " >&6; } 7277 case $host in 7278 *-*-mingw*) 7279 # gcc leaves a trailing carriage return, which upsets mingw 7280 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7281 *) 7282 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7283 esac 7284 case $ac_prog in 7285 # Accept absolute paths. 7286 [\\/]* | ?:[\\/]*) 7287 re_direlt='/[^/][^/]*/\.\./' 7288 # Canonicalize the pathname of ld 7289 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7290 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7291 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7292 done 7293 test -z "$LD" && LD=$ac_prog 7294 ;; 7295 "") 7296 # If it fails, then pretend we aren't using GCC. 7297 ac_prog=ld 7298 ;; 7299 *) 7300 # If it is relative, then search for the first ld in PATH. 7301 with_gnu_ld=unknown 7302 ;; 7303 esac 7304elif test yes = "$with_gnu_ld"; then 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7306$as_echo_n "checking for GNU ld... " >&6; } 7307else 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7309$as_echo_n "checking for non-GNU ld... " >&6; } 7310fi 7311if ${lt_cv_path_LD+:} false; then : 7312 $as_echo_n "(cached) " >&6 7313else 7314 if test -z "$LD"; then 7315 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7316 for ac_dir in $PATH; do 7317 IFS=$lt_save_ifs 7318 test -z "$ac_dir" && ac_dir=. 7319 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7320 lt_cv_path_LD=$ac_dir/$ac_prog 7321 # Check to see if the program is GNU ld. I'd rather use --version, 7322 # but apparently some variants of GNU ld only accept -v. 7323 # Break only if it was the GNU/non-GNU ld that we prefer. 7324 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7325 *GNU* | *'with BFD'*) 7326 test no != "$with_gnu_ld" && break 7327 ;; 7328 *) 7329 test yes != "$with_gnu_ld" && break 7330 ;; 7331 esac 7332 fi 7333 done 7334 IFS=$lt_save_ifs 7335else 7336 lt_cv_path_LD=$LD # Let the user override the test with a path. 7337fi 7338fi 7339 7340LD=$lt_cv_path_LD 7341if test -n "$LD"; then 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7343$as_echo "$LD" >&6; } 7344else 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7346$as_echo "no" >&6; } 7347fi 7348test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7350$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7351if ${lt_cv_prog_gnu_ld+:} false; then : 7352 $as_echo_n "(cached) " >&6 7353else 7354 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7355case `$LD -v 2>&1 </dev/null` in 7356*GNU* | *'with BFD'*) 7357 lt_cv_prog_gnu_ld=yes 7358 ;; 7359*) 7360 lt_cv_prog_gnu_ld=no 7361 ;; 7362esac 7363fi 7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7365$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7366with_gnu_ld=$lt_cv_prog_gnu_ld 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7377$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7378if ${lt_cv_path_NM+:} false; then : 7379 $as_echo_n "(cached) " >&6 7380else 7381 if test -n "$NM"; then 7382 # Let the user override the test. 7383 lt_cv_path_NM=$NM 7384else 7385 lt_nm_to_check=${ac_tool_prefix}nm 7386 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7387 lt_nm_to_check="$lt_nm_to_check nm" 7388 fi 7389 for lt_tmp_nm in $lt_nm_to_check; do 7390 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7391 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7392 IFS=$lt_save_ifs 7393 test -z "$ac_dir" && ac_dir=. 7394 tmp_nm=$ac_dir/$lt_tmp_nm 7395 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7396 # Check to see if the nm accepts a BSD-compat flag. 7397 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7398 # nm: unknown option "B" ignored 7399 # Tru64's nm complains that /dev/null is an invalid object file 7400 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7401 case $build_os in 7402 mingw*) lt_bad_file=conftest.nm/nofile ;; 7403 *) lt_bad_file=/dev/null ;; 7404 esac 7405 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7406 *$lt_bad_file* | *'Invalid file or object type'*) 7407 lt_cv_path_NM="$tmp_nm -B" 7408 break 2 7409 ;; 7410 *) 7411 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7412 */dev/null*) 7413 lt_cv_path_NM="$tmp_nm -p" 7414 break 2 7415 ;; 7416 *) 7417 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7418 continue # so that we can try to find one that supports BSD flags 7419 ;; 7420 esac 7421 ;; 7422 esac 7423 fi 7424 done 7425 IFS=$lt_save_ifs 7426 done 7427 : ${lt_cv_path_NM=no} 7428fi 7429fi 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7431$as_echo "$lt_cv_path_NM" >&6; } 7432if test no != "$lt_cv_path_NM"; then 7433 NM=$lt_cv_path_NM 7434else 7435 # Didn't find any BSD compatible name lister, look for dumpbin. 7436 if test -n "$DUMPBIN"; then : 7437 # Let the user override the test. 7438 else 7439 if test -n "$ac_tool_prefix"; then 7440 for ac_prog in dumpbin "link -dump" 7441 do 7442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7443set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7445$as_echo_n "checking for $ac_word... " >&6; } 7446if ${ac_cv_prog_DUMPBIN+:} false; then : 7447 $as_echo_n "(cached) " >&6 7448else 7449 if test -n "$DUMPBIN"; then 7450 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7451else 7452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7453for as_dir in $PATH 7454do 7455 IFS=$as_save_IFS 7456 test -z "$as_dir" && as_dir=. 7457 for ac_exec_ext in '' $ac_executable_extensions; do 7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7459 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7461 break 2 7462 fi 7463done 7464 done 7465IFS=$as_save_IFS 7466 7467fi 7468fi 7469DUMPBIN=$ac_cv_prog_DUMPBIN 7470if test -n "$DUMPBIN"; then 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7472$as_echo "$DUMPBIN" >&6; } 7473else 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7475$as_echo "no" >&6; } 7476fi 7477 7478 7479 test -n "$DUMPBIN" && break 7480 done 7481fi 7482if test -z "$DUMPBIN"; then 7483 ac_ct_DUMPBIN=$DUMPBIN 7484 for ac_prog in dumpbin "link -dump" 7485do 7486 # Extract the first word of "$ac_prog", so it can be a program name with args. 7487set dummy $ac_prog; ac_word=$2 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7489$as_echo_n "checking for $ac_word... " >&6; } 7490if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7491 $as_echo_n "(cached) " >&6 7492else 7493 if test -n "$ac_ct_DUMPBIN"; then 7494 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7495else 7496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7497for as_dir in $PATH 7498do 7499 IFS=$as_save_IFS 7500 test -z "$as_dir" && as_dir=. 7501 for ac_exec_ext in '' $ac_executable_extensions; do 7502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7503 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7505 break 2 7506 fi 7507done 7508 done 7509IFS=$as_save_IFS 7510 7511fi 7512fi 7513ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7514if test -n "$ac_ct_DUMPBIN"; then 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7516$as_echo "$ac_ct_DUMPBIN" >&6; } 7517else 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7519$as_echo "no" >&6; } 7520fi 7521 7522 7523 test -n "$ac_ct_DUMPBIN" && break 7524done 7525 7526 if test "x$ac_ct_DUMPBIN" = x; then 7527 DUMPBIN=":" 7528 else 7529 case $cross_compiling:$ac_tool_warned in 7530yes:) 7531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7533ac_tool_warned=yes ;; 7534esac 7535 DUMPBIN=$ac_ct_DUMPBIN 7536 fi 7537fi 7538 7539 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7540 *COFF*) 7541 DUMPBIN="$DUMPBIN -symbols -headers" 7542 ;; 7543 *) 7544 DUMPBIN=: 7545 ;; 7546 esac 7547 fi 7548 7549 if test : != "$DUMPBIN"; then 7550 NM=$DUMPBIN 7551 fi 7552fi 7553test -z "$NM" && NM=nm 7554 7555 7556 7557 7558 7559 7560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7561$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7562if ${lt_cv_nm_interface+:} false; then : 7563 $as_echo_n "(cached) " >&6 7564else 7565 lt_cv_nm_interface="BSD nm" 7566 echo "int some_variable = 0;" > conftest.$ac_ext 7567 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7568 (eval "$ac_compile" 2>conftest.err) 7569 cat conftest.err >&5 7570 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7571 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7572 cat conftest.err >&5 7573 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7574 cat conftest.out >&5 7575 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7576 lt_cv_nm_interface="MS dumpbin" 7577 fi 7578 rm -f conftest* 7579fi 7580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7581$as_echo "$lt_cv_nm_interface" >&6; } 7582 7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7584$as_echo_n "checking whether ln -s works... " >&6; } 7585LN_S=$as_ln_s 7586if test "$LN_S" = "ln -s"; then 7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7588$as_echo "yes" >&6; } 7589else 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7591$as_echo "no, using $LN_S" >&6; } 7592fi 7593 7594# find the maximum length of command line arguments 7595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7596$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7597if ${lt_cv_sys_max_cmd_len+:} false; then : 7598 $as_echo_n "(cached) " >&6 7599else 7600 i=0 7601 teststring=ABCD 7602 7603 case $build_os in 7604 msdosdjgpp*) 7605 # On DJGPP, this test can blow up pretty badly due to problems in libc 7606 # (any single argument exceeding 2000 bytes causes a buffer overrun 7607 # during glob expansion). Even if it were fixed, the result of this 7608 # check would be larger than it should be. 7609 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7610 ;; 7611 7612 gnu*) 7613 # Under GNU Hurd, this test is not required because there is 7614 # no limit to the length of command line arguments. 7615 # Libtool will interpret -1 as no limit whatsoever 7616 lt_cv_sys_max_cmd_len=-1; 7617 ;; 7618 7619 cygwin* | mingw* | cegcc*) 7620 # On Win9x/ME, this test blows up -- it succeeds, but takes 7621 # about 5 minutes as the teststring grows exponentially. 7622 # Worse, since 9x/ME are not pre-emptively multitasking, 7623 # you end up with a "frozen" computer, even though with patience 7624 # the test eventually succeeds (with a max line length of 256k). 7625 # Instead, let's just punt: use the minimum linelength reported by 7626 # all of the supported platforms: 8192 (on NT/2K/XP). 7627 lt_cv_sys_max_cmd_len=8192; 7628 ;; 7629 7630 mint*) 7631 # On MiNT this can take a long time and run out of memory. 7632 lt_cv_sys_max_cmd_len=8192; 7633 ;; 7634 7635 amigaos*) 7636 # On AmigaOS with pdksh, this test takes hours, literally. 7637 # So we just punt and use a minimum line length of 8192. 7638 lt_cv_sys_max_cmd_len=8192; 7639 ;; 7640 7641 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7642 # This has been around since 386BSD, at least. Likely further. 7643 if test -x /sbin/sysctl; then 7644 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7645 elif test -x /usr/sbin/sysctl; then 7646 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7647 else 7648 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7649 fi 7650 # And add a safety zone 7651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7653 ;; 7654 7655 interix*) 7656 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7657 lt_cv_sys_max_cmd_len=196608 7658 ;; 7659 7660 os2*) 7661 # The test takes a long time on OS/2. 7662 lt_cv_sys_max_cmd_len=8192 7663 ;; 7664 7665 osf*) 7666 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7667 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7668 # nice to cause kernel panics so lets avoid the loop below. 7669 # First set a reasonable default. 7670 lt_cv_sys_max_cmd_len=16384 7671 # 7672 if test -x /sbin/sysconfig; then 7673 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7674 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7675 esac 7676 fi 7677 ;; 7678 sco3.2v5*) 7679 lt_cv_sys_max_cmd_len=102400 7680 ;; 7681 sysv5* | sco5v6* | sysv4.2uw2*) 7682 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7683 if test -n "$kargmax"; then 7684 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7685 else 7686 lt_cv_sys_max_cmd_len=32768 7687 fi 7688 ;; 7689 *) 7690 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7691 if test -n "$lt_cv_sys_max_cmd_len" && \ 7692 test undefined != "$lt_cv_sys_max_cmd_len"; then 7693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7695 else 7696 # Make teststring a little bigger before we do anything with it. 7697 # a 1K string should be a reasonable start. 7698 for i in 1 2 3 4 5 6 7 8; do 7699 teststring=$teststring$teststring 7700 done 7701 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7702 # If test is not a shell built-in, we'll probably end up computing a 7703 # maximum length that is only half of the actual maximum length, but 7704 # we can't tell. 7705 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7706 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7707 test 17 != "$i" # 1/2 MB should be enough 7708 do 7709 i=`expr $i + 1` 7710 teststring=$teststring$teststring 7711 done 7712 # Only check the string length outside the loop. 7713 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7714 teststring= 7715 # Add a significant safety factor because C++ compilers can tack on 7716 # massive amounts of additional arguments before passing them to the 7717 # linker. It appears as though 1/2 is a usable value. 7718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7719 fi 7720 ;; 7721 esac 7722 7723fi 7724 7725if test -n "$lt_cv_sys_max_cmd_len"; then 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7727$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7728else 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7730$as_echo "none" >&6; } 7731fi 7732max_cmd_len=$lt_cv_sys_max_cmd_len 7733 7734 7735 7736 7737 7738 7739: ${CP="cp -f"} 7740: ${MV="mv -f"} 7741: ${RM="rm -f"} 7742 7743if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7744 lt_unset=unset 7745else 7746 lt_unset=false 7747fi 7748 7749 7750 7751 7752 7753# test EBCDIC or ASCII 7754case `echo X|tr X '\101'` in 7755 A) # ASCII based system 7756 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7757 lt_SP2NL='tr \040 \012' 7758 lt_NL2SP='tr \015\012 \040\040' 7759 ;; 7760 *) # EBCDIC based system 7761 lt_SP2NL='tr \100 \n' 7762 lt_NL2SP='tr \r\n \100\100' 7763 ;; 7764esac 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7775$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7776if ${lt_cv_to_host_file_cmd+:} false; then : 7777 $as_echo_n "(cached) " >&6 7778else 7779 case $host in 7780 *-*-mingw* ) 7781 case $build in 7782 *-*-mingw* ) # actually msys 7783 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7784 ;; 7785 *-*-cygwin* ) 7786 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7787 ;; 7788 * ) # otherwise, assume *nix 7789 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7790 ;; 7791 esac 7792 ;; 7793 *-*-cygwin* ) 7794 case $build in 7795 *-*-mingw* ) # actually msys 7796 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7797 ;; 7798 *-*-cygwin* ) 7799 lt_cv_to_host_file_cmd=func_convert_file_noop 7800 ;; 7801 * ) # otherwise, assume *nix 7802 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7803 ;; 7804 esac 7805 ;; 7806 * ) # unhandled hosts (and "normal" native builds) 7807 lt_cv_to_host_file_cmd=func_convert_file_noop 7808 ;; 7809esac 7810 7811fi 7812 7813to_host_file_cmd=$lt_cv_to_host_file_cmd 7814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7815$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7816 7817 7818 7819 7820 7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7822$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7823if ${lt_cv_to_tool_file_cmd+:} false; then : 7824 $as_echo_n "(cached) " >&6 7825else 7826 #assume ordinary cross tools, or native build. 7827lt_cv_to_tool_file_cmd=func_convert_file_noop 7828case $host in 7829 *-*-mingw* ) 7830 case $build in 7831 *-*-mingw* ) # actually msys 7832 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7833 ;; 7834 esac 7835 ;; 7836esac 7837 7838fi 7839 7840to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7842$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7843 7844 7845 7846 7847 7848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7849$as_echo_n "checking for $LD option to reload object files... " >&6; } 7850if ${lt_cv_ld_reload_flag+:} false; then : 7851 $as_echo_n "(cached) " >&6 7852else 7853 lt_cv_ld_reload_flag='-r' 7854fi 7855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7856$as_echo "$lt_cv_ld_reload_flag" >&6; } 7857reload_flag=$lt_cv_ld_reload_flag 7858case $reload_flag in 7859"" | " "*) ;; 7860*) reload_flag=" $reload_flag" ;; 7861esac 7862reload_cmds='$LD$reload_flag -o $output$reload_objs' 7863case $host_os in 7864 cygwin* | mingw* | pw32* | cegcc*) 7865 if test yes != "$GCC"; then 7866 reload_cmds=false 7867 fi 7868 ;; 7869 darwin*) 7870 if test yes = "$GCC"; then 7871 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7872 else 7873 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7874 fi 7875 ;; 7876esac 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886if test -n "$ac_tool_prefix"; then 7887 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7888set dummy ${ac_tool_prefix}objdump; ac_word=$2 7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7890$as_echo_n "checking for $ac_word... " >&6; } 7891if ${ac_cv_prog_OBJDUMP+:} false; then : 7892 $as_echo_n "(cached) " >&6 7893else 7894 if test -n "$OBJDUMP"; then 7895 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7896else 7897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7898for as_dir in $PATH 7899do 7900 IFS=$as_save_IFS 7901 test -z "$as_dir" && as_dir=. 7902 for ac_exec_ext in '' $ac_executable_extensions; do 7903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7904 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7906 break 2 7907 fi 7908done 7909 done 7910IFS=$as_save_IFS 7911 7912fi 7913fi 7914OBJDUMP=$ac_cv_prog_OBJDUMP 7915if test -n "$OBJDUMP"; then 7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7917$as_echo "$OBJDUMP" >&6; } 7918else 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7920$as_echo "no" >&6; } 7921fi 7922 7923 7924fi 7925if test -z "$ac_cv_prog_OBJDUMP"; then 7926 ac_ct_OBJDUMP=$OBJDUMP 7927 # Extract the first word of "objdump", so it can be a program name with args. 7928set dummy objdump; ac_word=$2 7929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7930$as_echo_n "checking for $ac_word... " >&6; } 7931if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7932 $as_echo_n "(cached) " >&6 7933else 7934 if test -n "$ac_ct_OBJDUMP"; then 7935 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7936else 7937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7938for as_dir in $PATH 7939do 7940 IFS=$as_save_IFS 7941 test -z "$as_dir" && as_dir=. 7942 for ac_exec_ext in '' $ac_executable_extensions; do 7943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7944 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7946 break 2 7947 fi 7948done 7949 done 7950IFS=$as_save_IFS 7951 7952fi 7953fi 7954ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7955if test -n "$ac_ct_OBJDUMP"; then 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7957$as_echo "$ac_ct_OBJDUMP" >&6; } 7958else 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7960$as_echo "no" >&6; } 7961fi 7962 7963 if test "x$ac_ct_OBJDUMP" = x; then 7964 OBJDUMP="false" 7965 else 7966 case $cross_compiling:$ac_tool_warned in 7967yes:) 7968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7970ac_tool_warned=yes ;; 7971esac 7972 OBJDUMP=$ac_ct_OBJDUMP 7973 fi 7974else 7975 OBJDUMP="$ac_cv_prog_OBJDUMP" 7976fi 7977 7978test -z "$OBJDUMP" && OBJDUMP=objdump 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7989$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7990if ${lt_cv_deplibs_check_method+:} false; then : 7991 $as_echo_n "(cached) " >&6 7992else 7993 lt_cv_file_magic_cmd='$MAGIC_CMD' 7994lt_cv_file_magic_test_file= 7995lt_cv_deplibs_check_method='unknown' 7996# Need to set the preceding variable on all platforms that support 7997# interlibrary dependencies. 7998# 'none' -- dependencies not supported. 7999# 'unknown' -- same as none, but documents that we really don't know. 8000# 'pass_all' -- all dependencies passed with no checks. 8001# 'test_compile' -- check by making test program. 8002# 'file_magic [[regex]]' -- check by looking for files in library path 8003# that responds to the $file_magic_cmd with a given extended regex. 8004# If you have 'file' or equivalent on your system and you're not sure 8005# whether 'pass_all' will *always* work, you probably want this one. 8006 8007case $host_os in 8008aix[4-9]*) 8009 lt_cv_deplibs_check_method=pass_all 8010 ;; 8011 8012beos*) 8013 lt_cv_deplibs_check_method=pass_all 8014 ;; 8015 8016bsdi[45]*) 8017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8018 lt_cv_file_magic_cmd='/usr/bin/file -L' 8019 lt_cv_file_magic_test_file=/shlib/libc.so 8020 ;; 8021 8022cygwin*) 8023 # func_win32_libid is a shell function defined in ltmain.sh 8024 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8025 lt_cv_file_magic_cmd='func_win32_libid' 8026 ;; 8027 8028mingw* | pw32*) 8029 # Base MSYS/MinGW do not provide the 'file' command needed by 8030 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8031 # unless we find 'file', for example because we are cross-compiling. 8032 if ( file / ) >/dev/null 2>&1; then 8033 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8034 lt_cv_file_magic_cmd='func_win32_libid' 8035 else 8036 # Keep this pattern in sync with the one in func_win32_libid. 8037 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8038 lt_cv_file_magic_cmd='$OBJDUMP -f' 8039 fi 8040 ;; 8041 8042cegcc*) 8043 # use the weaker test based on 'objdump'. See mingw*. 8044 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8045 lt_cv_file_magic_cmd='$OBJDUMP -f' 8046 ;; 8047 8048darwin* | rhapsody*) 8049 lt_cv_deplibs_check_method=pass_all 8050 ;; 8051 8052freebsd* | dragonfly*) 8053 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8054 case $host_cpu in 8055 i*86 ) 8056 # Not sure whether the presence of OpenBSD here was a mistake. 8057 # Let's accept both of them until this is cleared up. 8058 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8059 lt_cv_file_magic_cmd=/usr/bin/file 8060 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8061 ;; 8062 esac 8063 else 8064 lt_cv_deplibs_check_method=pass_all 8065 fi 8066 ;; 8067 8068haiku*) 8069 lt_cv_deplibs_check_method=pass_all 8070 ;; 8071 8072hpux10.20* | hpux11*) 8073 lt_cv_file_magic_cmd=/usr/bin/file 8074 case $host_cpu in 8075 ia64*) 8076 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8077 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8078 ;; 8079 hppa*64*) 8080 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]' 8081 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8082 ;; 8083 *) 8084 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8085 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8086 ;; 8087 esac 8088 ;; 8089 8090interix[3-9]*) 8091 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8093 ;; 8094 8095irix5* | irix6* | nonstopux*) 8096 case $LD in 8097 *-32|*"-32 ") libmagic=32-bit;; 8098 *-n32|*"-n32 ") libmagic=N32;; 8099 *-64|*"-64 ") libmagic=64-bit;; 8100 *) libmagic=never-match;; 8101 esac 8102 lt_cv_deplibs_check_method=pass_all 8103 ;; 8104 8105# This must be glibc/ELF. 8106linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8107 lt_cv_deplibs_check_method=pass_all 8108 ;; 8109 8110netbsd*) 8111 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8113 else 8114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8115 fi 8116 ;; 8117 8118newos6*) 8119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8120 lt_cv_file_magic_cmd=/usr/bin/file 8121 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8122 ;; 8123 8124*nto* | *qnx*) 8125 lt_cv_deplibs_check_method=pass_all 8126 ;; 8127 8128openbsd* | bitrig*) 8129 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8131 else 8132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8133 fi 8134 ;; 8135 8136osf3* | osf4* | osf5*) 8137 lt_cv_deplibs_check_method=pass_all 8138 ;; 8139 8140rdos*) 8141 lt_cv_deplibs_check_method=pass_all 8142 ;; 8143 8144solaris*) 8145 lt_cv_deplibs_check_method=pass_all 8146 ;; 8147 8148sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8149 lt_cv_deplibs_check_method=pass_all 8150 ;; 8151 8152sysv4 | sysv4.3*) 8153 case $host_vendor in 8154 motorola) 8155 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]' 8156 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8157 ;; 8158 ncr) 8159 lt_cv_deplibs_check_method=pass_all 8160 ;; 8161 sequent) 8162 lt_cv_file_magic_cmd='/bin/file' 8163 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8164 ;; 8165 sni) 8166 lt_cv_file_magic_cmd='/bin/file' 8167 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8168 lt_cv_file_magic_test_file=/lib/libc.so 8169 ;; 8170 siemens) 8171 lt_cv_deplibs_check_method=pass_all 8172 ;; 8173 pc) 8174 lt_cv_deplibs_check_method=pass_all 8175 ;; 8176 esac 8177 ;; 8178 8179tpf*) 8180 lt_cv_deplibs_check_method=pass_all 8181 ;; 8182os2*) 8183 lt_cv_deplibs_check_method=pass_all 8184 ;; 8185esac 8186 8187fi 8188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8189$as_echo "$lt_cv_deplibs_check_method" >&6; } 8190 8191file_magic_glob= 8192want_nocaseglob=no 8193if test "$build" = "$host"; then 8194 case $host_os in 8195 mingw* | pw32*) 8196 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8197 want_nocaseglob=yes 8198 else 8199 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8200 fi 8201 ;; 8202 esac 8203fi 8204 8205file_magic_cmd=$lt_cv_file_magic_cmd 8206deplibs_check_method=$lt_cv_deplibs_check_method 8207test -z "$deplibs_check_method" && deplibs_check_method=unknown 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230if test -n "$ac_tool_prefix"; then 8231 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8232set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8234$as_echo_n "checking for $ac_word... " >&6; } 8235if ${ac_cv_prog_DLLTOOL+:} false; then : 8236 $as_echo_n "(cached) " >&6 8237else 8238 if test -n "$DLLTOOL"; then 8239 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8240else 8241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8242for as_dir in $PATH 8243do 8244 IFS=$as_save_IFS 8245 test -z "$as_dir" && as_dir=. 8246 for ac_exec_ext in '' $ac_executable_extensions; do 8247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8248 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8250 break 2 8251 fi 8252done 8253 done 8254IFS=$as_save_IFS 8255 8256fi 8257fi 8258DLLTOOL=$ac_cv_prog_DLLTOOL 8259if test -n "$DLLTOOL"; then 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8261$as_echo "$DLLTOOL" >&6; } 8262else 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8264$as_echo "no" >&6; } 8265fi 8266 8267 8268fi 8269if test -z "$ac_cv_prog_DLLTOOL"; then 8270 ac_ct_DLLTOOL=$DLLTOOL 8271 # Extract the first word of "dlltool", so it can be a program name with args. 8272set dummy dlltool; ac_word=$2 8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8274$as_echo_n "checking for $ac_word... " >&6; } 8275if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8276 $as_echo_n "(cached) " >&6 8277else 8278 if test -n "$ac_ct_DLLTOOL"; then 8279 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8280else 8281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8282for as_dir in $PATH 8283do 8284 IFS=$as_save_IFS 8285 test -z "$as_dir" && as_dir=. 8286 for ac_exec_ext in '' $ac_executable_extensions; do 8287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8288 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8290 break 2 8291 fi 8292done 8293 done 8294IFS=$as_save_IFS 8295 8296fi 8297fi 8298ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8299if test -n "$ac_ct_DLLTOOL"; then 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8301$as_echo "$ac_ct_DLLTOOL" >&6; } 8302else 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8304$as_echo "no" >&6; } 8305fi 8306 8307 if test "x$ac_ct_DLLTOOL" = x; then 8308 DLLTOOL="false" 8309 else 8310 case $cross_compiling:$ac_tool_warned in 8311yes:) 8312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8314ac_tool_warned=yes ;; 8315esac 8316 DLLTOOL=$ac_ct_DLLTOOL 8317 fi 8318else 8319 DLLTOOL="$ac_cv_prog_DLLTOOL" 8320fi 8321 8322test -z "$DLLTOOL" && DLLTOOL=dlltool 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8334$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8335if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8336 $as_echo_n "(cached) " >&6 8337else 8338 lt_cv_sharedlib_from_linklib_cmd='unknown' 8339 8340case $host_os in 8341cygwin* | mingw* | pw32* | cegcc*) 8342 # two different shell functions defined in ltmain.sh; 8343 # decide which one to use based on capabilities of $DLLTOOL 8344 case `$DLLTOOL --help 2>&1` in 8345 *--identify-strict*) 8346 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8347 ;; 8348 *) 8349 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8350 ;; 8351 esac 8352 ;; 8353*) 8354 # fallback: assume linklib IS sharedlib 8355 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8356 ;; 8357esac 8358 8359fi 8360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8361$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8362sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8363test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8364 8365 8366 8367 8368 8369 8370 8371if test -n "$ac_tool_prefix"; then 8372 for ac_prog in ar 8373 do 8374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8375set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8377$as_echo_n "checking for $ac_word... " >&6; } 8378if ${ac_cv_prog_AR+:} false; then : 8379 $as_echo_n "(cached) " >&6 8380else 8381 if test -n "$AR"; then 8382 ac_cv_prog_AR="$AR" # Let the user override the test. 8383else 8384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8385for as_dir in $PATH 8386do 8387 IFS=$as_save_IFS 8388 test -z "$as_dir" && as_dir=. 8389 for ac_exec_ext in '' $ac_executable_extensions; do 8390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8391 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8393 break 2 8394 fi 8395done 8396 done 8397IFS=$as_save_IFS 8398 8399fi 8400fi 8401AR=$ac_cv_prog_AR 8402if test -n "$AR"; then 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8404$as_echo "$AR" >&6; } 8405else 8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8407$as_echo "no" >&6; } 8408fi 8409 8410 8411 test -n "$AR" && break 8412 done 8413fi 8414if test -z "$AR"; then 8415 ac_ct_AR=$AR 8416 for ac_prog in ar 8417do 8418 # Extract the first word of "$ac_prog", so it can be a program name with args. 8419set dummy $ac_prog; ac_word=$2 8420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8421$as_echo_n "checking for $ac_word... " >&6; } 8422if ${ac_cv_prog_ac_ct_AR+:} false; then : 8423 $as_echo_n "(cached) " >&6 8424else 8425 if test -n "$ac_ct_AR"; then 8426 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8427else 8428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8429for as_dir in $PATH 8430do 8431 IFS=$as_save_IFS 8432 test -z "$as_dir" && as_dir=. 8433 for ac_exec_ext in '' $ac_executable_extensions; do 8434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8435 ac_cv_prog_ac_ct_AR="$ac_prog" 8436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8437 break 2 8438 fi 8439done 8440 done 8441IFS=$as_save_IFS 8442 8443fi 8444fi 8445ac_ct_AR=$ac_cv_prog_ac_ct_AR 8446if test -n "$ac_ct_AR"; then 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8448$as_echo "$ac_ct_AR" >&6; } 8449else 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8451$as_echo "no" >&6; } 8452fi 8453 8454 8455 test -n "$ac_ct_AR" && break 8456done 8457 8458 if test "x$ac_ct_AR" = x; then 8459 AR="false" 8460 else 8461 case $cross_compiling:$ac_tool_warned in 8462yes:) 8463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8465ac_tool_warned=yes ;; 8466esac 8467 AR=$ac_ct_AR 8468 fi 8469fi 8470 8471: ${AR=ar} 8472: ${AR_FLAGS=cru} 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8485$as_echo_n "checking for archiver @FILE support... " >&6; } 8486if ${lt_cv_ar_at_file+:} false; then : 8487 $as_echo_n "(cached) " >&6 8488else 8489 lt_cv_ar_at_file=no 8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8491/* end confdefs.h. */ 8492 8493int 8494main () 8495{ 8496 8497 ; 8498 return 0; 8499} 8500_ACEOF 8501if ac_fn_c_try_compile "$LINENO"; then : 8502 echo conftest.$ac_objext > conftest.lst 8503 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8505 (eval $lt_ar_try) 2>&5 8506 ac_status=$? 8507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8508 test $ac_status = 0; } 8509 if test 0 -eq "$ac_status"; then 8510 # Ensure the archiver fails upon bogus file names. 8511 rm -f conftest.$ac_objext libconftest.a 8512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8513 (eval $lt_ar_try) 2>&5 8514 ac_status=$? 8515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8516 test $ac_status = 0; } 8517 if test 0 -ne "$ac_status"; then 8518 lt_cv_ar_at_file=@ 8519 fi 8520 fi 8521 rm -f conftest.* libconftest.a 8522 8523fi 8524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8525 8526fi 8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8528$as_echo "$lt_cv_ar_at_file" >&6; } 8529 8530if test no = "$lt_cv_ar_at_file"; then 8531 archiver_list_spec= 8532else 8533 archiver_list_spec=$lt_cv_ar_at_file 8534fi 8535 8536 8537 8538 8539 8540 8541 8542if test -n "$ac_tool_prefix"; then 8543 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8544set dummy ${ac_tool_prefix}strip; ac_word=$2 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8546$as_echo_n "checking for $ac_word... " >&6; } 8547if ${ac_cv_prog_STRIP+:} false; then : 8548 $as_echo_n "(cached) " >&6 8549else 8550 if test -n "$STRIP"; then 8551 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8552else 8553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8554for as_dir in $PATH 8555do 8556 IFS=$as_save_IFS 8557 test -z "$as_dir" && as_dir=. 8558 for ac_exec_ext in '' $ac_executable_extensions; do 8559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8560 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8562 break 2 8563 fi 8564done 8565 done 8566IFS=$as_save_IFS 8567 8568fi 8569fi 8570STRIP=$ac_cv_prog_STRIP 8571if test -n "$STRIP"; then 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8573$as_echo "$STRIP" >&6; } 8574else 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8576$as_echo "no" >&6; } 8577fi 8578 8579 8580fi 8581if test -z "$ac_cv_prog_STRIP"; then 8582 ac_ct_STRIP=$STRIP 8583 # Extract the first word of "strip", so it can be a program name with args. 8584set dummy strip; ac_word=$2 8585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8586$as_echo_n "checking for $ac_word... " >&6; } 8587if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8588 $as_echo_n "(cached) " >&6 8589else 8590 if test -n "$ac_ct_STRIP"; then 8591 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8592else 8593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8594for as_dir in $PATH 8595do 8596 IFS=$as_save_IFS 8597 test -z "$as_dir" && as_dir=. 8598 for ac_exec_ext in '' $ac_executable_extensions; do 8599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8600 ac_cv_prog_ac_ct_STRIP="strip" 8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8602 break 2 8603 fi 8604done 8605 done 8606IFS=$as_save_IFS 8607 8608fi 8609fi 8610ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8611if test -n "$ac_ct_STRIP"; then 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8613$as_echo "$ac_ct_STRIP" >&6; } 8614else 8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8616$as_echo "no" >&6; } 8617fi 8618 8619 if test "x$ac_ct_STRIP" = x; then 8620 STRIP=":" 8621 else 8622 case $cross_compiling:$ac_tool_warned in 8623yes:) 8624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8626ac_tool_warned=yes ;; 8627esac 8628 STRIP=$ac_ct_STRIP 8629 fi 8630else 8631 STRIP="$ac_cv_prog_STRIP" 8632fi 8633 8634test -z "$STRIP" && STRIP=: 8635 8636 8637 8638 8639 8640 8641if test -n "$ac_tool_prefix"; then 8642 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8643set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8645$as_echo_n "checking for $ac_word... " >&6; } 8646if ${ac_cv_prog_RANLIB+:} false; then : 8647 $as_echo_n "(cached) " >&6 8648else 8649 if test -n "$RANLIB"; then 8650 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8651else 8652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8653for as_dir in $PATH 8654do 8655 IFS=$as_save_IFS 8656 test -z "$as_dir" && as_dir=. 8657 for ac_exec_ext in '' $ac_executable_extensions; do 8658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8659 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8661 break 2 8662 fi 8663done 8664 done 8665IFS=$as_save_IFS 8666 8667fi 8668fi 8669RANLIB=$ac_cv_prog_RANLIB 8670if test -n "$RANLIB"; then 8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8672$as_echo "$RANLIB" >&6; } 8673else 8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8675$as_echo "no" >&6; } 8676fi 8677 8678 8679fi 8680if test -z "$ac_cv_prog_RANLIB"; then 8681 ac_ct_RANLIB=$RANLIB 8682 # Extract the first word of "ranlib", so it can be a program name with args. 8683set dummy ranlib; ac_word=$2 8684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8685$as_echo_n "checking for $ac_word... " >&6; } 8686if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8687 $as_echo_n "(cached) " >&6 8688else 8689 if test -n "$ac_ct_RANLIB"; then 8690 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8691else 8692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8693for as_dir in $PATH 8694do 8695 IFS=$as_save_IFS 8696 test -z "$as_dir" && as_dir=. 8697 for ac_exec_ext in '' $ac_executable_extensions; do 8698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8699 ac_cv_prog_ac_ct_RANLIB="ranlib" 8700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8701 break 2 8702 fi 8703done 8704 done 8705IFS=$as_save_IFS 8706 8707fi 8708fi 8709ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8710if test -n "$ac_ct_RANLIB"; then 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8712$as_echo "$ac_ct_RANLIB" >&6; } 8713else 8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8715$as_echo "no" >&6; } 8716fi 8717 8718 if test "x$ac_ct_RANLIB" = x; then 8719 RANLIB=":" 8720 else 8721 case $cross_compiling:$ac_tool_warned in 8722yes:) 8723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8725ac_tool_warned=yes ;; 8726esac 8727 RANLIB=$ac_ct_RANLIB 8728 fi 8729else 8730 RANLIB="$ac_cv_prog_RANLIB" 8731fi 8732 8733test -z "$RANLIB" && RANLIB=: 8734 8735 8736 8737 8738 8739 8740# Determine commands to create old-style static archives. 8741old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8742old_postinstall_cmds='chmod 644 $oldlib' 8743old_postuninstall_cmds= 8744 8745if test -n "$RANLIB"; then 8746 case $host_os in 8747 bitrig* | openbsd*) 8748 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8749 ;; 8750 *) 8751 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8752 ;; 8753 esac 8754 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8755fi 8756 8757case $host_os in 8758 darwin*) 8759 lock_old_archive_extraction=yes ;; 8760 *) 8761 lock_old_archive_extraction=no ;; 8762esac 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784for ac_prog in gawk mawk nawk awk 8785do 8786 # Extract the first word of "$ac_prog", so it can be a program name with args. 8787set dummy $ac_prog; ac_word=$2 8788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8789$as_echo_n "checking for $ac_word... " >&6; } 8790if ${ac_cv_prog_AWK+:} false; then : 8791 $as_echo_n "(cached) " >&6 8792else 8793 if test -n "$AWK"; then 8794 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8795else 8796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8797for as_dir in $PATH 8798do 8799 IFS=$as_save_IFS 8800 test -z "$as_dir" && as_dir=. 8801 for ac_exec_ext in '' $ac_executable_extensions; do 8802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8803 ac_cv_prog_AWK="$ac_prog" 8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8805 break 2 8806 fi 8807done 8808 done 8809IFS=$as_save_IFS 8810 8811fi 8812fi 8813AWK=$ac_cv_prog_AWK 8814if test -n "$AWK"; then 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8816$as_echo "$AWK" >&6; } 8817else 8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8819$as_echo "no" >&6; } 8820fi 8821 8822 8823 test -n "$AWK" && break 8824done 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844# If no C compiler was specified, use CC. 8845LTCC=${LTCC-"$CC"} 8846 8847# If no C compiler flags were specified, use CFLAGS. 8848LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8849 8850# Allow CC to be a program name with arguments. 8851compiler=$CC 8852 8853 8854# Check for command to grab the raw symbol name followed by C symbol from nm. 8855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8856$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8857if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8858 $as_echo_n "(cached) " >&6 8859else 8860 8861# These are sane defaults that work on at least a few old systems. 8862# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8863 8864# Character class describing NM global symbol codes. 8865symcode='[BCDEGRST]' 8866 8867# Regexp to match symbols that can be accessed directly from C. 8868sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8869 8870# Define system-specific variables. 8871case $host_os in 8872aix*) 8873 symcode='[BCDT]' 8874 ;; 8875cygwin* | mingw* | pw32* | cegcc*) 8876 symcode='[ABCDGISTW]' 8877 ;; 8878hpux*) 8879 if test ia64 = "$host_cpu"; then 8880 symcode='[ABCDEGRST]' 8881 fi 8882 ;; 8883irix* | nonstopux*) 8884 symcode='[BCDEGRST]' 8885 ;; 8886osf*) 8887 symcode='[BCDEGQRST]' 8888 ;; 8889solaris*) 8890 symcode='[BDRT]' 8891 ;; 8892sco3.2v5*) 8893 symcode='[DT]' 8894 ;; 8895sysv4.2uw2*) 8896 symcode='[DT]' 8897 ;; 8898sysv5* | sco5v6* | unixware* | OpenUNIX*) 8899 symcode='[ABDT]' 8900 ;; 8901sysv4) 8902 symcode='[DFNSTU]' 8903 ;; 8904esac 8905 8906# If we're using GNU nm, then use its standard symbol codes. 8907case `$NM -V 2>&1` in 8908*GNU* | *'with BFD'*) 8909 symcode='[ABCDGIRSTW]' ;; 8910esac 8911 8912if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8913 # Gets list of data symbols to import. 8914 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8915 # Adjust the below global symbol transforms to fixup imported variables. 8916 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8917 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8918 lt_c_name_lib_hook="\ 8919 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8920 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8921else 8922 # Disable hooks by default. 8923 lt_cv_sys_global_symbol_to_import= 8924 lt_cdecl_hook= 8925 lt_c_name_hook= 8926 lt_c_name_lib_hook= 8927fi 8928 8929# Transform an extracted symbol line into a proper C declaration. 8930# Some systems (esp. on ia64) link data and code symbols differently, 8931# so use this general approach. 8932lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8933$lt_cdecl_hook\ 8934" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8935" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8936 8937# Transform an extracted symbol line into symbol name and symbol address 8938lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8939$lt_c_name_hook\ 8940" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8941" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8942 8943# Transform an extracted symbol line into symbol name with lib prefix and 8944# symbol address. 8945lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8946$lt_c_name_lib_hook\ 8947" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8948" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8949" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8950 8951# Handle CRLF in mingw tool chain 8952opt_cr= 8953case $build_os in 8954mingw*) 8955 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8956 ;; 8957esac 8958 8959# Try without a prefix underscore, then with it. 8960for ac_symprfx in "" "_"; do 8961 8962 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8963 symxfrm="\\1 $ac_symprfx\\2 \\2" 8964 8965 # Write the raw and C identifiers. 8966 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8967 # Fake it for dumpbin and say T for any non-static function, 8968 # D for any global variable and I for any imported variable. 8969 # Also find C++ and __fastcall symbols from MSVC++, 8970 # which start with @ or ?. 8971 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8972" {last_section=section; section=\$ 3};"\ 8973" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8974" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8975" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8976" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8977" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8978" \$ 0!~/External *\|/{next};"\ 8979" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8980" {if(hide[section]) next};"\ 8981" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8982" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8983" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8984" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8985" ' prfx=^$ac_symprfx" 8986 else 8987 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8988 fi 8989 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8990 8991 # Check to see that the pipe works correctly. 8992 pipe_works=no 8993 8994 rm -f conftest* 8995 cat > conftest.$ac_ext <<_LT_EOF 8996#ifdef __cplusplus 8997extern "C" { 8998#endif 8999char nm_test_var; 9000void nm_test_func(void); 9001void nm_test_func(void){} 9002#ifdef __cplusplus 9003} 9004#endif 9005int main(){nm_test_var='a';nm_test_func();return(0);} 9006_LT_EOF 9007 9008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9009 (eval $ac_compile) 2>&5 9010 ac_status=$? 9011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9012 test $ac_status = 0; }; then 9013 # Now try to grab the symbols. 9014 nlist=conftest.nm 9015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9016 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9017 ac_status=$? 9018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9019 test $ac_status = 0; } && test -s "$nlist"; then 9020 # Try sorting and uniquifying the output. 9021 if sort "$nlist" | uniq > "$nlist"T; then 9022 mv -f "$nlist"T "$nlist" 9023 else 9024 rm -f "$nlist"T 9025 fi 9026 9027 # Make sure that we snagged all the symbols we need. 9028 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9029 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9030 cat <<_LT_EOF > conftest.$ac_ext 9031/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9032#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9033/* DATA imports from DLLs on WIN32 can't be const, because runtime 9034 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9035# define LT_DLSYM_CONST 9036#elif defined __osf__ 9037/* This system does not cope well with relocations in const data. */ 9038# define LT_DLSYM_CONST 9039#else 9040# define LT_DLSYM_CONST const 9041#endif 9042 9043#ifdef __cplusplus 9044extern "C" { 9045#endif 9046 9047_LT_EOF 9048 # Now generate the symbol file. 9049 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9050 9051 cat <<_LT_EOF >> conftest.$ac_ext 9052 9053/* The mapping between symbol names and symbols. */ 9054LT_DLSYM_CONST struct { 9055 const char *name; 9056 void *address; 9057} 9058lt__PROGRAM__LTX_preloaded_symbols[] = 9059{ 9060 { "@PROGRAM@", (void *) 0 }, 9061_LT_EOF 9062 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9063 cat <<\_LT_EOF >> conftest.$ac_ext 9064 {0, (void *) 0} 9065}; 9066 9067/* This works around a problem in FreeBSD linker */ 9068#ifdef FREEBSD_WORKAROUND 9069static const void *lt_preloaded_setup() { 9070 return lt__PROGRAM__LTX_preloaded_symbols; 9071} 9072#endif 9073 9074#ifdef __cplusplus 9075} 9076#endif 9077_LT_EOF 9078 # Now try linking the two files. 9079 mv conftest.$ac_objext conftstm.$ac_objext 9080 lt_globsym_save_LIBS=$LIBS 9081 lt_globsym_save_CFLAGS=$CFLAGS 9082 LIBS=conftstm.$ac_objext 9083 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9085 (eval $ac_link) 2>&5 9086 ac_status=$? 9087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9088 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9089 pipe_works=yes 9090 fi 9091 LIBS=$lt_globsym_save_LIBS 9092 CFLAGS=$lt_globsym_save_CFLAGS 9093 else 9094 echo "cannot find nm_test_func in $nlist" >&5 9095 fi 9096 else 9097 echo "cannot find nm_test_var in $nlist" >&5 9098 fi 9099 else 9100 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9101 fi 9102 else 9103 echo "$progname: failed program was:" >&5 9104 cat conftest.$ac_ext >&5 9105 fi 9106 rm -rf conftest* conftst* 9107 9108 # Do not use the global_symbol_pipe unless it works. 9109 if test yes = "$pipe_works"; then 9110 break 9111 else 9112 lt_cv_sys_global_symbol_pipe= 9113 fi 9114done 9115 9116fi 9117 9118if test -z "$lt_cv_sys_global_symbol_pipe"; then 9119 lt_cv_sys_global_symbol_to_cdecl= 9120fi 9121if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9123$as_echo "failed" >&6; } 9124else 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9126$as_echo "ok" >&6; } 9127fi 9128 9129# Response file support. 9130if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9131 nm_file_list_spec='@' 9132elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9133 nm_file_list_spec='@' 9134fi 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9173$as_echo_n "checking for sysroot... " >&6; } 9174 9175# Check whether --with-sysroot was given. 9176if test "${with_sysroot+set}" = set; then : 9177 withval=$with_sysroot; 9178else 9179 with_sysroot=no 9180fi 9181 9182 9183lt_sysroot= 9184case $with_sysroot in #( 9185 yes) 9186 if test yes = "$GCC"; then 9187 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9188 fi 9189 ;; #( 9190 /*) 9191 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9192 ;; #( 9193 no|'') 9194 ;; #( 9195 *) 9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9197$as_echo "$with_sysroot" >&6; } 9198 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9199 ;; 9200esac 9201 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9203$as_echo "${lt_sysroot:-no}" >&6; } 9204 9205 9206 9207 9208 9209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9210$as_echo_n "checking for a working dd... " >&6; } 9211if ${ac_cv_path_lt_DD+:} false; then : 9212 $as_echo_n "(cached) " >&6 9213else 9214 printf 0123456789abcdef0123456789abcdef >conftest.i 9215cat conftest.i conftest.i >conftest2.i 9216: ${lt_DD:=$DD} 9217if test -z "$lt_DD"; then 9218 ac_path_lt_DD_found=false 9219 # Loop through the user's path and test for each of PROGNAME-LIST 9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9221for as_dir in $PATH 9222do 9223 IFS=$as_save_IFS 9224 test -z "$as_dir" && as_dir=. 9225 for ac_prog in dd; do 9226 for ac_exec_ext in '' $ac_executable_extensions; do 9227 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9228 as_fn_executable_p "$ac_path_lt_DD" || continue 9229if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9230 cmp -s conftest.i conftest.out \ 9231 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9232fi 9233 $ac_path_lt_DD_found && break 3 9234 done 9235 done 9236 done 9237IFS=$as_save_IFS 9238 if test -z "$ac_cv_path_lt_DD"; then 9239 : 9240 fi 9241else 9242 ac_cv_path_lt_DD=$lt_DD 9243fi 9244 9245rm -f conftest.i conftest2.i conftest.out 9246fi 9247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9248$as_echo "$ac_cv_path_lt_DD" >&6; } 9249 9250 9251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9252$as_echo_n "checking how to truncate binary pipes... " >&6; } 9253if ${lt_cv_truncate_bin+:} false; then : 9254 $as_echo_n "(cached) " >&6 9255else 9256 printf 0123456789abcdef0123456789abcdef >conftest.i 9257cat conftest.i conftest.i >conftest2.i 9258lt_cv_truncate_bin= 9259if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9260 cmp -s conftest.i conftest.out \ 9261 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9262fi 9263rm -f conftest.i conftest2.i conftest.out 9264test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9265fi 9266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9267$as_echo "$lt_cv_truncate_bin" >&6; } 9268 9269 9270 9271 9272 9273 9274 9275# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9276func_cc_basename () 9277{ 9278 for cc_temp in $*""; do 9279 case $cc_temp in 9280 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9281 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9282 \-*) ;; 9283 *) break;; 9284 esac 9285 done 9286 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9287} 9288 9289# Check whether --enable-libtool-lock was given. 9290if test "${enable_libtool_lock+set}" = set; then : 9291 enableval=$enable_libtool_lock; 9292fi 9293 9294test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9295 9296# Some flags need to be propagated to the compiler or linker for good 9297# libtool support. 9298case $host in 9299ia64-*-hpux*) 9300 # Find out what ABI is being produced by ac_compile, and set mode 9301 # options accordingly. 9302 echo 'int i;' > conftest.$ac_ext 9303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9304 (eval $ac_compile) 2>&5 9305 ac_status=$? 9306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9307 test $ac_status = 0; }; then 9308 case `/usr/bin/file conftest.$ac_objext` in 9309 *ELF-32*) 9310 HPUX_IA64_MODE=32 9311 ;; 9312 *ELF-64*) 9313 HPUX_IA64_MODE=64 9314 ;; 9315 esac 9316 fi 9317 rm -rf conftest* 9318 ;; 9319*-*-irix6*) 9320 # Find out what ABI is being produced by ac_compile, and set linker 9321 # options accordingly. 9322 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9324 (eval $ac_compile) 2>&5 9325 ac_status=$? 9326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9327 test $ac_status = 0; }; then 9328 if test yes = "$lt_cv_prog_gnu_ld"; then 9329 case `/usr/bin/file conftest.$ac_objext` in 9330 *32-bit*) 9331 LD="${LD-ld} -melf32bsmip" 9332 ;; 9333 *N32*) 9334 LD="${LD-ld} -melf32bmipn32" 9335 ;; 9336 *64-bit*) 9337 LD="${LD-ld} -melf64bmip" 9338 ;; 9339 esac 9340 else 9341 case `/usr/bin/file conftest.$ac_objext` in 9342 *32-bit*) 9343 LD="${LD-ld} -32" 9344 ;; 9345 *N32*) 9346 LD="${LD-ld} -n32" 9347 ;; 9348 *64-bit*) 9349 LD="${LD-ld} -64" 9350 ;; 9351 esac 9352 fi 9353 fi 9354 rm -rf conftest* 9355 ;; 9356 9357mips64*-*linux*) 9358 # Find out what ABI is being produced by ac_compile, and set linker 9359 # options accordingly. 9360 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9362 (eval $ac_compile) 2>&5 9363 ac_status=$? 9364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9365 test $ac_status = 0; }; then 9366 emul=elf 9367 case `/usr/bin/file conftest.$ac_objext` in 9368 *32-bit*) 9369 emul="${emul}32" 9370 ;; 9371 *64-bit*) 9372 emul="${emul}64" 9373 ;; 9374 esac 9375 case `/usr/bin/file conftest.$ac_objext` in 9376 *MSB*) 9377 emul="${emul}btsmip" 9378 ;; 9379 *LSB*) 9380 emul="${emul}ltsmip" 9381 ;; 9382 esac 9383 case `/usr/bin/file conftest.$ac_objext` in 9384 *N32*) 9385 emul="${emul}n32" 9386 ;; 9387 esac 9388 LD="${LD-ld} -m $emul" 9389 fi 9390 rm -rf conftest* 9391 ;; 9392 9393x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9394s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9395 # Find out what ABI is being produced by ac_compile, and set linker 9396 # options accordingly. Note that the listed cases only cover the 9397 # situations where additional linker options are needed (such as when 9398 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9399 # vice versa); the common cases where no linker options are needed do 9400 # not appear in the list. 9401 echo 'int i;' > conftest.$ac_ext 9402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9403 (eval $ac_compile) 2>&5 9404 ac_status=$? 9405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9406 test $ac_status = 0; }; then 9407 case `/usr/bin/file conftest.o` in 9408 *32-bit*) 9409 case $host in 9410 x86_64-*kfreebsd*-gnu) 9411 LD="${LD-ld} -m elf_i386_fbsd" 9412 ;; 9413 x86_64-*linux*) 9414 case `/usr/bin/file conftest.o` in 9415 *x86-64*) 9416 LD="${LD-ld} -m elf32_x86_64" 9417 ;; 9418 *) 9419 LD="${LD-ld} -m elf_i386" 9420 ;; 9421 esac 9422 ;; 9423 powerpc64le-*linux*) 9424 LD="${LD-ld} -m elf32lppclinux" 9425 ;; 9426 powerpc64-*linux*) 9427 LD="${LD-ld} -m elf32ppclinux" 9428 ;; 9429 s390x-*linux*) 9430 LD="${LD-ld} -m elf_s390" 9431 ;; 9432 sparc64-*linux*) 9433 LD="${LD-ld} -m elf32_sparc" 9434 ;; 9435 esac 9436 ;; 9437 *64-bit*) 9438 case $host in 9439 x86_64-*kfreebsd*-gnu) 9440 LD="${LD-ld} -m elf_x86_64_fbsd" 9441 ;; 9442 x86_64-*linux*) 9443 LD="${LD-ld} -m elf_x86_64" 9444 ;; 9445 powerpcle-*linux*) 9446 LD="${LD-ld} -m elf64lppc" 9447 ;; 9448 powerpc-*linux*) 9449 LD="${LD-ld} -m elf64ppc" 9450 ;; 9451 s390*-*linux*|s390*-*tpf*) 9452 LD="${LD-ld} -m elf64_s390" 9453 ;; 9454 sparc*-*linux*) 9455 LD="${LD-ld} -m elf64_sparc" 9456 ;; 9457 esac 9458 ;; 9459 esac 9460 fi 9461 rm -rf conftest* 9462 ;; 9463 9464*-*-sco3.2v5*) 9465 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9466 SAVE_CFLAGS=$CFLAGS 9467 CFLAGS="$CFLAGS -belf" 9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9469$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9470if ${lt_cv_cc_needs_belf+:} false; then : 9471 $as_echo_n "(cached) " >&6 9472else 9473 ac_ext=c 9474ac_cpp='$CPP $CPPFLAGS' 9475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9477ac_compiler_gnu=$ac_cv_c_compiler_gnu 9478 9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9480/* end confdefs.h. */ 9481 9482int 9483main () 9484{ 9485 9486 ; 9487 return 0; 9488} 9489_ACEOF 9490if ac_fn_c_try_link "$LINENO"; then : 9491 lt_cv_cc_needs_belf=yes 9492else 9493 lt_cv_cc_needs_belf=no 9494fi 9495rm -f core conftest.err conftest.$ac_objext \ 9496 conftest$ac_exeext conftest.$ac_ext 9497 ac_ext=c 9498ac_cpp='$CPP $CPPFLAGS' 9499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9501ac_compiler_gnu=$ac_cv_c_compiler_gnu 9502 9503fi 9504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9505$as_echo "$lt_cv_cc_needs_belf" >&6; } 9506 if test yes != "$lt_cv_cc_needs_belf"; then 9507 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9508 CFLAGS=$SAVE_CFLAGS 9509 fi 9510 ;; 9511*-*solaris*) 9512 # Find out what ABI is being produced by ac_compile, and set linker 9513 # options accordingly. 9514 echo 'int i;' > conftest.$ac_ext 9515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9516 (eval $ac_compile) 2>&5 9517 ac_status=$? 9518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9519 test $ac_status = 0; }; then 9520 case `/usr/bin/file conftest.o` in 9521 *64-bit*) 9522 case $lt_cv_prog_gnu_ld in 9523 yes*) 9524 case $host in 9525 i?86-*-solaris*|x86_64-*-solaris*) 9526 LD="${LD-ld} -m elf_x86_64" 9527 ;; 9528 sparc*-*-solaris*) 9529 LD="${LD-ld} -m elf64_sparc" 9530 ;; 9531 esac 9532 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9533 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9534 LD=${LD-ld}_sol2 9535 fi 9536 ;; 9537 *) 9538 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9539 LD="${LD-ld} -64" 9540 fi 9541 ;; 9542 esac 9543 ;; 9544 esac 9545 fi 9546 rm -rf conftest* 9547 ;; 9548esac 9549 9550need_locks=$enable_libtool_lock 9551 9552if test -n "$ac_tool_prefix"; then 9553 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9554set dummy ${ac_tool_prefix}mt; ac_word=$2 9555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9556$as_echo_n "checking for $ac_word... " >&6; } 9557if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9558 $as_echo_n "(cached) " >&6 9559else 9560 if test -n "$MANIFEST_TOOL"; then 9561 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9562else 9563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9564for as_dir in $PATH 9565do 9566 IFS=$as_save_IFS 9567 test -z "$as_dir" && as_dir=. 9568 for ac_exec_ext in '' $ac_executable_extensions; do 9569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9570 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9572 break 2 9573 fi 9574done 9575 done 9576IFS=$as_save_IFS 9577 9578fi 9579fi 9580MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9581if test -n "$MANIFEST_TOOL"; then 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9583$as_echo "$MANIFEST_TOOL" >&6; } 9584else 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9586$as_echo "no" >&6; } 9587fi 9588 9589 9590fi 9591if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9592 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9593 # Extract the first word of "mt", so it can be a program name with args. 9594set dummy mt; ac_word=$2 9595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9596$as_echo_n "checking for $ac_word... " >&6; } 9597if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9598 $as_echo_n "(cached) " >&6 9599else 9600 if test -n "$ac_ct_MANIFEST_TOOL"; then 9601 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9602else 9603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9604for as_dir in $PATH 9605do 9606 IFS=$as_save_IFS 9607 test -z "$as_dir" && as_dir=. 9608 for ac_exec_ext in '' $ac_executable_extensions; do 9609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9610 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9612 break 2 9613 fi 9614done 9615 done 9616IFS=$as_save_IFS 9617 9618fi 9619fi 9620ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9621if test -n "$ac_ct_MANIFEST_TOOL"; then 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9623$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9624else 9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9626$as_echo "no" >&6; } 9627fi 9628 9629 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9630 MANIFEST_TOOL=":" 9631 else 9632 case $cross_compiling:$ac_tool_warned in 9633yes:) 9634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9636ac_tool_warned=yes ;; 9637esac 9638 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9639 fi 9640else 9641 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9642fi 9643 9644test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9646$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9647if ${lt_cv_path_mainfest_tool+:} false; then : 9648 $as_echo_n "(cached) " >&6 9649else 9650 lt_cv_path_mainfest_tool=no 9651 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9652 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9653 cat conftest.err >&5 9654 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9655 lt_cv_path_mainfest_tool=yes 9656 fi 9657 rm -f conftest* 9658fi 9659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9660$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9661if test yes != "$lt_cv_path_mainfest_tool"; then 9662 MANIFEST_TOOL=: 9663fi 9664 9665 9666 9667 9668 9669 9670 case $host_os in 9671 rhapsody* | darwin*) 9672 if test -n "$ac_tool_prefix"; then 9673 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9674set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9676$as_echo_n "checking for $ac_word... " >&6; } 9677if ${ac_cv_prog_DSYMUTIL+:} false; then : 9678 $as_echo_n "(cached) " >&6 9679else 9680 if test -n "$DSYMUTIL"; then 9681 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9682else 9683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9684for as_dir in $PATH 9685do 9686 IFS=$as_save_IFS 9687 test -z "$as_dir" && as_dir=. 9688 for ac_exec_ext in '' $ac_executable_extensions; do 9689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9690 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9692 break 2 9693 fi 9694done 9695 done 9696IFS=$as_save_IFS 9697 9698fi 9699fi 9700DSYMUTIL=$ac_cv_prog_DSYMUTIL 9701if test -n "$DSYMUTIL"; then 9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9703$as_echo "$DSYMUTIL" >&6; } 9704else 9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9706$as_echo "no" >&6; } 9707fi 9708 9709 9710fi 9711if test -z "$ac_cv_prog_DSYMUTIL"; then 9712 ac_ct_DSYMUTIL=$DSYMUTIL 9713 # Extract the first word of "dsymutil", so it can be a program name with args. 9714set dummy dsymutil; ac_word=$2 9715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9716$as_echo_n "checking for $ac_word... " >&6; } 9717if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9718 $as_echo_n "(cached) " >&6 9719else 9720 if test -n "$ac_ct_DSYMUTIL"; then 9721 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9722else 9723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9724for as_dir in $PATH 9725do 9726 IFS=$as_save_IFS 9727 test -z "$as_dir" && as_dir=. 9728 for ac_exec_ext in '' $ac_executable_extensions; do 9729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9730 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9732 break 2 9733 fi 9734done 9735 done 9736IFS=$as_save_IFS 9737 9738fi 9739fi 9740ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9741if test -n "$ac_ct_DSYMUTIL"; then 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9743$as_echo "$ac_ct_DSYMUTIL" >&6; } 9744else 9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9746$as_echo "no" >&6; } 9747fi 9748 9749 if test "x$ac_ct_DSYMUTIL" = x; then 9750 DSYMUTIL=":" 9751 else 9752 case $cross_compiling:$ac_tool_warned in 9753yes:) 9754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9756ac_tool_warned=yes ;; 9757esac 9758 DSYMUTIL=$ac_ct_DSYMUTIL 9759 fi 9760else 9761 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9762fi 9763 9764 if test -n "$ac_tool_prefix"; then 9765 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9766set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9768$as_echo_n "checking for $ac_word... " >&6; } 9769if ${ac_cv_prog_NMEDIT+:} false; then : 9770 $as_echo_n "(cached) " >&6 9771else 9772 if test -n "$NMEDIT"; then 9773 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9774else 9775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9776for as_dir in $PATH 9777do 9778 IFS=$as_save_IFS 9779 test -z "$as_dir" && as_dir=. 9780 for ac_exec_ext in '' $ac_executable_extensions; do 9781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9782 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9784 break 2 9785 fi 9786done 9787 done 9788IFS=$as_save_IFS 9789 9790fi 9791fi 9792NMEDIT=$ac_cv_prog_NMEDIT 9793if test -n "$NMEDIT"; then 9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9795$as_echo "$NMEDIT" >&6; } 9796else 9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9798$as_echo "no" >&6; } 9799fi 9800 9801 9802fi 9803if test -z "$ac_cv_prog_NMEDIT"; then 9804 ac_ct_NMEDIT=$NMEDIT 9805 # Extract the first word of "nmedit", so it can be a program name with args. 9806set dummy nmedit; ac_word=$2 9807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9808$as_echo_n "checking for $ac_word... " >&6; } 9809if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9810 $as_echo_n "(cached) " >&6 9811else 9812 if test -n "$ac_ct_NMEDIT"; then 9813 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9814else 9815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9816for as_dir in $PATH 9817do 9818 IFS=$as_save_IFS 9819 test -z "$as_dir" && as_dir=. 9820 for ac_exec_ext in '' $ac_executable_extensions; do 9821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9822 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9824 break 2 9825 fi 9826done 9827 done 9828IFS=$as_save_IFS 9829 9830fi 9831fi 9832ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9833if test -n "$ac_ct_NMEDIT"; then 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9835$as_echo "$ac_ct_NMEDIT" >&6; } 9836else 9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9838$as_echo "no" >&6; } 9839fi 9840 9841 if test "x$ac_ct_NMEDIT" = x; then 9842 NMEDIT=":" 9843 else 9844 case $cross_compiling:$ac_tool_warned in 9845yes:) 9846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9848ac_tool_warned=yes ;; 9849esac 9850 NMEDIT=$ac_ct_NMEDIT 9851 fi 9852else 9853 NMEDIT="$ac_cv_prog_NMEDIT" 9854fi 9855 9856 if test -n "$ac_tool_prefix"; then 9857 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9858set dummy ${ac_tool_prefix}lipo; ac_word=$2 9859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9860$as_echo_n "checking for $ac_word... " >&6; } 9861if ${ac_cv_prog_LIPO+:} false; then : 9862 $as_echo_n "(cached) " >&6 9863else 9864 if test -n "$LIPO"; then 9865 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9866else 9867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9868for as_dir in $PATH 9869do 9870 IFS=$as_save_IFS 9871 test -z "$as_dir" && as_dir=. 9872 for ac_exec_ext in '' $ac_executable_extensions; do 9873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9874 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9876 break 2 9877 fi 9878done 9879 done 9880IFS=$as_save_IFS 9881 9882fi 9883fi 9884LIPO=$ac_cv_prog_LIPO 9885if test -n "$LIPO"; then 9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9887$as_echo "$LIPO" >&6; } 9888else 9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9890$as_echo "no" >&6; } 9891fi 9892 9893 9894fi 9895if test -z "$ac_cv_prog_LIPO"; then 9896 ac_ct_LIPO=$LIPO 9897 # Extract the first word of "lipo", so it can be a program name with args. 9898set dummy lipo; ac_word=$2 9899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9900$as_echo_n "checking for $ac_word... " >&6; } 9901if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9902 $as_echo_n "(cached) " >&6 9903else 9904 if test -n "$ac_ct_LIPO"; then 9905 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9906else 9907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9908for as_dir in $PATH 9909do 9910 IFS=$as_save_IFS 9911 test -z "$as_dir" && as_dir=. 9912 for ac_exec_ext in '' $ac_executable_extensions; do 9913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9914 ac_cv_prog_ac_ct_LIPO="lipo" 9915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9916 break 2 9917 fi 9918done 9919 done 9920IFS=$as_save_IFS 9921 9922fi 9923fi 9924ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9925if test -n "$ac_ct_LIPO"; then 9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9927$as_echo "$ac_ct_LIPO" >&6; } 9928else 9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9930$as_echo "no" >&6; } 9931fi 9932 9933 if test "x$ac_ct_LIPO" = x; then 9934 LIPO=":" 9935 else 9936 case $cross_compiling:$ac_tool_warned in 9937yes:) 9938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9940ac_tool_warned=yes ;; 9941esac 9942 LIPO=$ac_ct_LIPO 9943 fi 9944else 9945 LIPO="$ac_cv_prog_LIPO" 9946fi 9947 9948 if test -n "$ac_tool_prefix"; then 9949 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9950set dummy ${ac_tool_prefix}otool; ac_word=$2 9951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9952$as_echo_n "checking for $ac_word... " >&6; } 9953if ${ac_cv_prog_OTOOL+:} false; then : 9954 $as_echo_n "(cached) " >&6 9955else 9956 if test -n "$OTOOL"; then 9957 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9958else 9959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9960for as_dir in $PATH 9961do 9962 IFS=$as_save_IFS 9963 test -z "$as_dir" && as_dir=. 9964 for ac_exec_ext in '' $ac_executable_extensions; do 9965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9966 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9968 break 2 9969 fi 9970done 9971 done 9972IFS=$as_save_IFS 9973 9974fi 9975fi 9976OTOOL=$ac_cv_prog_OTOOL 9977if test -n "$OTOOL"; then 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9979$as_echo "$OTOOL" >&6; } 9980else 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9982$as_echo "no" >&6; } 9983fi 9984 9985 9986fi 9987if test -z "$ac_cv_prog_OTOOL"; then 9988 ac_ct_OTOOL=$OTOOL 9989 # Extract the first word of "otool", so it can be a program name with args. 9990set dummy otool; ac_word=$2 9991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9992$as_echo_n "checking for $ac_word... " >&6; } 9993if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9994 $as_echo_n "(cached) " >&6 9995else 9996 if test -n "$ac_ct_OTOOL"; then 9997 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9998else 9999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10000for as_dir in $PATH 10001do 10002 IFS=$as_save_IFS 10003 test -z "$as_dir" && as_dir=. 10004 for ac_exec_ext in '' $ac_executable_extensions; do 10005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10006 ac_cv_prog_ac_ct_OTOOL="otool" 10007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10008 break 2 10009 fi 10010done 10011 done 10012IFS=$as_save_IFS 10013 10014fi 10015fi 10016ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10017if test -n "$ac_ct_OTOOL"; then 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10019$as_echo "$ac_ct_OTOOL" >&6; } 10020else 10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10022$as_echo "no" >&6; } 10023fi 10024 10025 if test "x$ac_ct_OTOOL" = x; then 10026 OTOOL=":" 10027 else 10028 case $cross_compiling:$ac_tool_warned in 10029yes:) 10030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10032ac_tool_warned=yes ;; 10033esac 10034 OTOOL=$ac_ct_OTOOL 10035 fi 10036else 10037 OTOOL="$ac_cv_prog_OTOOL" 10038fi 10039 10040 if test -n "$ac_tool_prefix"; then 10041 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10042set dummy ${ac_tool_prefix}otool64; ac_word=$2 10043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10044$as_echo_n "checking for $ac_word... " >&6; } 10045if ${ac_cv_prog_OTOOL64+:} false; then : 10046 $as_echo_n "(cached) " >&6 10047else 10048 if test -n "$OTOOL64"; then 10049 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10050else 10051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10052for as_dir in $PATH 10053do 10054 IFS=$as_save_IFS 10055 test -z "$as_dir" && as_dir=. 10056 for ac_exec_ext in '' $ac_executable_extensions; do 10057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10058 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10060 break 2 10061 fi 10062done 10063 done 10064IFS=$as_save_IFS 10065 10066fi 10067fi 10068OTOOL64=$ac_cv_prog_OTOOL64 10069if test -n "$OTOOL64"; then 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10071$as_echo "$OTOOL64" >&6; } 10072else 10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10074$as_echo "no" >&6; } 10075fi 10076 10077 10078fi 10079if test -z "$ac_cv_prog_OTOOL64"; then 10080 ac_ct_OTOOL64=$OTOOL64 10081 # Extract the first word of "otool64", so it can be a program name with args. 10082set dummy otool64; ac_word=$2 10083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10084$as_echo_n "checking for $ac_word... " >&6; } 10085if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10086 $as_echo_n "(cached) " >&6 10087else 10088 if test -n "$ac_ct_OTOOL64"; then 10089 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10090else 10091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10092for as_dir in $PATH 10093do 10094 IFS=$as_save_IFS 10095 test -z "$as_dir" && as_dir=. 10096 for ac_exec_ext in '' $ac_executable_extensions; do 10097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10098 ac_cv_prog_ac_ct_OTOOL64="otool64" 10099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10100 break 2 10101 fi 10102done 10103 done 10104IFS=$as_save_IFS 10105 10106fi 10107fi 10108ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10109if test -n "$ac_ct_OTOOL64"; then 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10111$as_echo "$ac_ct_OTOOL64" >&6; } 10112else 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10114$as_echo "no" >&6; } 10115fi 10116 10117 if test "x$ac_ct_OTOOL64" = x; then 10118 OTOOL64=":" 10119 else 10120 case $cross_compiling:$ac_tool_warned in 10121yes:) 10122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10124ac_tool_warned=yes ;; 10125esac 10126 OTOOL64=$ac_ct_OTOOL64 10127 fi 10128else 10129 OTOOL64="$ac_cv_prog_OTOOL64" 10130fi 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10159$as_echo_n "checking for -single_module linker flag... " >&6; } 10160if ${lt_cv_apple_cc_single_mod+:} false; then : 10161 $as_echo_n "(cached) " >&6 10162else 10163 lt_cv_apple_cc_single_mod=no 10164 if test -z "$LT_MULTI_MODULE"; then 10165 # By default we will add the -single_module flag. You can override 10166 # by either setting the environment variable LT_MULTI_MODULE 10167 # non-empty at configure time, or by adding -multi_module to the 10168 # link flags. 10169 rm -rf libconftest.dylib* 10170 echo "int foo(void){return 1;}" > conftest.c 10171 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10172-dynamiclib -Wl,-single_module conftest.c" >&5 10173 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10174 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10175 _lt_result=$? 10176 # If there is a non-empty error log, and "single_module" 10177 # appears in it, assume the flag caused a linker warning 10178 if test -s conftest.err && $GREP single_module conftest.err; then 10179 cat conftest.err >&5 10180 # Otherwise, if the output was created with a 0 exit code from 10181 # the compiler, it worked. 10182 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10183 lt_cv_apple_cc_single_mod=yes 10184 else 10185 cat conftest.err >&5 10186 fi 10187 rm -rf libconftest.dylib* 10188 rm -f conftest.* 10189 fi 10190fi 10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10192$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10193 10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10195$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10196if ${lt_cv_ld_exported_symbols_list+:} false; then : 10197 $as_echo_n "(cached) " >&6 10198else 10199 lt_cv_ld_exported_symbols_list=no 10200 save_LDFLAGS=$LDFLAGS 10201 echo "_main" > conftest.sym 10202 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10204/* end confdefs.h. */ 10205 10206int 10207main () 10208{ 10209 10210 ; 10211 return 0; 10212} 10213_ACEOF 10214if ac_fn_c_try_link "$LINENO"; then : 10215 lt_cv_ld_exported_symbols_list=yes 10216else 10217 lt_cv_ld_exported_symbols_list=no 10218fi 10219rm -f core conftest.err conftest.$ac_objext \ 10220 conftest$ac_exeext conftest.$ac_ext 10221 LDFLAGS=$save_LDFLAGS 10222 10223fi 10224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10225$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10226 10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10228$as_echo_n "checking for -force_load linker flag... " >&6; } 10229if ${lt_cv_ld_force_load+:} false; then : 10230 $as_echo_n "(cached) " >&6 10231else 10232 lt_cv_ld_force_load=no 10233 cat > conftest.c << _LT_EOF 10234int forced_loaded() { return 2;} 10235_LT_EOF 10236 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10237 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10238 echo "$AR cru libconftest.a conftest.o" >&5 10239 $AR cru libconftest.a conftest.o 2>&5 10240 echo "$RANLIB libconftest.a" >&5 10241 $RANLIB libconftest.a 2>&5 10242 cat > conftest.c << _LT_EOF 10243int main() { return 0;} 10244_LT_EOF 10245 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10246 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10247 _lt_result=$? 10248 if test -s conftest.err && $GREP force_load conftest.err; then 10249 cat conftest.err >&5 10250 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10251 lt_cv_ld_force_load=yes 10252 else 10253 cat conftest.err >&5 10254 fi 10255 rm -f conftest.err libconftest.a conftest conftest.c 10256 rm -rf conftest.dSYM 10257 10258fi 10259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10260$as_echo "$lt_cv_ld_force_load" >&6; } 10261 case $host_os in 10262 rhapsody* | darwin1.[012]) 10263 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10264 darwin1.*) 10265 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10266 darwin*) # darwin 5.x on 10267 # if running on 10.5 or later, the deployment target defaults 10268 # to the OS version, if on x86, and 10.4, the deployment 10269 # target defaults to 10.4. Don't you love it? 10270 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10271 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10272 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10273 10.[012][,.]*) 10274 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10275 10.*) 10276 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10277 esac 10278 ;; 10279 esac 10280 if test yes = "$lt_cv_apple_cc_single_mod"; then 10281 _lt_dar_single_mod='$single_module' 10282 fi 10283 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10284 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10285 else 10286 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10287 fi 10288 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10289 _lt_dsymutil='~$DSYMUTIL $lib || :' 10290 else 10291 _lt_dsymutil= 10292 fi 10293 ;; 10294 esac 10295 10296# func_munge_path_list VARIABLE PATH 10297# ----------------------------------- 10298# VARIABLE is name of variable containing _space_ separated list of 10299# directories to be munged by the contents of PATH, which is string 10300# having a format: 10301# "DIR[:DIR]:" 10302# string "DIR[ DIR]" will be prepended to VARIABLE 10303# ":DIR[:DIR]" 10304# string "DIR[ DIR]" will be appended to VARIABLE 10305# "DIRP[:DIRP]::[DIRA:]DIRA" 10306# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10307# "DIRA[ DIRA]" will be appended to VARIABLE 10308# "DIR[:DIR]" 10309# VARIABLE will be replaced by "DIR[ DIR]" 10310func_munge_path_list () 10311{ 10312 case x$2 in 10313 x) 10314 ;; 10315 *:) 10316 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10317 ;; 10318 x:*) 10319 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10320 ;; 10321 *::*) 10322 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10323 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10324 ;; 10325 *) 10326 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10327 ;; 10328 esac 10329} 10330 10331for ac_header in dlfcn.h 10332do : 10333 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10334" 10335if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10336 cat >>confdefs.h <<_ACEOF 10337#define HAVE_DLFCN_H 1 10338_ACEOF 10339 10340fi 10341 10342done 10343 10344 10345 10346 10347 10348 10349 10350# Set options 10351 10352 10353 10354 enable_dlopen=no 10355 10356 10357 enable_win32_dll=no 10358 10359 10360 # Check whether --enable-shared was given. 10361if test "${enable_shared+set}" = set; then : 10362 enableval=$enable_shared; p=${PACKAGE-default} 10363 case $enableval in 10364 yes) enable_shared=yes ;; 10365 no) enable_shared=no ;; 10366 *) 10367 enable_shared=no 10368 # Look at the argument we got. We use all the common list separators. 10369 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10370 for pkg in $enableval; do 10371 IFS=$lt_save_ifs 10372 if test "X$pkg" = "X$p"; then 10373 enable_shared=yes 10374 fi 10375 done 10376 IFS=$lt_save_ifs 10377 ;; 10378 esac 10379else 10380 enable_shared=yes 10381fi 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 # Check whether --enable-static was given. 10392if test "${enable_static+set}" = set; then : 10393 enableval=$enable_static; p=${PACKAGE-default} 10394 case $enableval in 10395 yes) enable_static=yes ;; 10396 no) enable_static=no ;; 10397 *) 10398 enable_static=no 10399 # Look at the argument we got. We use all the common list separators. 10400 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10401 for pkg in $enableval; do 10402 IFS=$lt_save_ifs 10403 if test "X$pkg" = "X$p"; then 10404 enable_static=yes 10405 fi 10406 done 10407 IFS=$lt_save_ifs 10408 ;; 10409 esac 10410else 10411 enable_static=yes 10412fi 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423# Check whether --with-pic was given. 10424if test "${with_pic+set}" = set; then : 10425 withval=$with_pic; lt_p=${PACKAGE-default} 10426 case $withval in 10427 yes|no) pic_mode=$withval ;; 10428 *) 10429 pic_mode=default 10430 # Look at the argument we got. We use all the common list separators. 10431 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10432 for lt_pkg in $withval; do 10433 IFS=$lt_save_ifs 10434 if test "X$lt_pkg" = "X$lt_p"; then 10435 pic_mode=yes 10436 fi 10437 done 10438 IFS=$lt_save_ifs 10439 ;; 10440 esac 10441else 10442 pic_mode=default 10443fi 10444 10445 10446 10447 10448 10449 10450 10451 10452 # Check whether --enable-fast-install was given. 10453if test "${enable_fast_install+set}" = set; then : 10454 enableval=$enable_fast_install; p=${PACKAGE-default} 10455 case $enableval in 10456 yes) enable_fast_install=yes ;; 10457 no) enable_fast_install=no ;; 10458 *) 10459 enable_fast_install=no 10460 # Look at the argument we got. We use all the common list separators. 10461 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10462 for pkg in $enableval; do 10463 IFS=$lt_save_ifs 10464 if test "X$pkg" = "X$p"; then 10465 enable_fast_install=yes 10466 fi 10467 done 10468 IFS=$lt_save_ifs 10469 ;; 10470 esac 10471else 10472 enable_fast_install=yes 10473fi 10474 10475 10476 10477 10478 10479 10480 10481 10482 shared_archive_member_spec= 10483case $host,$enable_shared in 10484power*-*-aix[5-9]*,yes) 10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10486$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 10487 10488# Check whether --with-aix-soname was given. 10489if test "${with_aix_soname+set}" = set; then : 10490 withval=$with_aix_soname; case $withval in 10491 aix|svr4|both) 10492 ;; 10493 *) 10494 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10495 ;; 10496 esac 10497 lt_cv_with_aix_soname=$with_aix_soname 10498else 10499 if ${lt_cv_with_aix_soname+:} false; then : 10500 $as_echo_n "(cached) " >&6 10501else 10502 lt_cv_with_aix_soname=aix 10503fi 10504 10505 with_aix_soname=$lt_cv_with_aix_soname 10506fi 10507 10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10509$as_echo "$with_aix_soname" >&6; } 10510 if test aix != "$with_aix_soname"; then 10511 # For the AIX way of multilib, we name the shared archive member 10512 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10513 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10514 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10515 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10516 if test 64 = "${OBJECT_MODE-32}"; then 10517 shared_archive_member_spec=shr_64 10518 else 10519 shared_archive_member_spec=shr 10520 fi 10521 fi 10522 ;; 10523*) 10524 with_aix_soname=aix 10525 ;; 10526esac 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537# This can be used to rebuild libtool when needed 10538LIBTOOL_DEPS=$ltmain 10539 10540# Always use our own libtool. 10541LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572test -z "$LN_S" && LN_S="ln -s" 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587if test -n "${ZSH_VERSION+set}"; then 10588 setopt NO_GLOB_SUBST 10589fi 10590 10591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10592$as_echo_n "checking for objdir... " >&6; } 10593if ${lt_cv_objdir+:} false; then : 10594 $as_echo_n "(cached) " >&6 10595else 10596 rm -f .libs 2>/dev/null 10597mkdir .libs 2>/dev/null 10598if test -d .libs; then 10599 lt_cv_objdir=.libs 10600else 10601 # MS-DOS does not allow filenames that begin with a dot. 10602 lt_cv_objdir=_libs 10603fi 10604rmdir .libs 2>/dev/null 10605fi 10606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10607$as_echo "$lt_cv_objdir" >&6; } 10608objdir=$lt_cv_objdir 10609 10610 10611 10612 10613 10614cat >>confdefs.h <<_ACEOF 10615#define LT_OBJDIR "$lt_cv_objdir/" 10616_ACEOF 10617 10618 10619 10620 10621case $host_os in 10622aix3*) 10623 # AIX sometimes has problems with the GCC collect2 program. For some 10624 # reason, if we set the COLLECT_NAMES environment variable, the problems 10625 # vanish in a puff of smoke. 10626 if test set != "${COLLECT_NAMES+set}"; then 10627 COLLECT_NAMES= 10628 export COLLECT_NAMES 10629 fi 10630 ;; 10631esac 10632 10633# Global variables: 10634ofile=libtool 10635can_build_shared=yes 10636 10637# All known linkers require a '.a' archive for static linking (except MSVC, 10638# which needs '.lib'). 10639libext=a 10640 10641with_gnu_ld=$lt_cv_prog_gnu_ld 10642 10643old_CC=$CC 10644old_CFLAGS=$CFLAGS 10645 10646# Set sane defaults for various variables 10647test -z "$CC" && CC=cc 10648test -z "$LTCC" && LTCC=$CC 10649test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10650test -z "$LD" && LD=ld 10651test -z "$ac_objext" && ac_objext=o 10652 10653func_cc_basename $compiler 10654cc_basename=$func_cc_basename_result 10655 10656 10657# Only perform the check for file, if the check method requires it 10658test -z "$MAGIC_CMD" && MAGIC_CMD=file 10659case $deplibs_check_method in 10660file_magic*) 10661 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10663$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10664if ${lt_cv_path_MAGIC_CMD+:} false; then : 10665 $as_echo_n "(cached) " >&6 10666else 10667 case $MAGIC_CMD in 10668[\\/*] | ?:[\\/]*) 10669 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10670 ;; 10671*) 10672 lt_save_MAGIC_CMD=$MAGIC_CMD 10673 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10674 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10675 for ac_dir in $ac_dummy; do 10676 IFS=$lt_save_ifs 10677 test -z "$ac_dir" && ac_dir=. 10678 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10679 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10680 if test -n "$file_magic_test_file"; then 10681 case $deplibs_check_method in 10682 "file_magic "*) 10683 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10684 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10685 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10686 $EGREP "$file_magic_regex" > /dev/null; then 10687 : 10688 else 10689 cat <<_LT_EOF 1>&2 10690 10691*** Warning: the command libtool uses to detect shared libraries, 10692*** $file_magic_cmd, produces output that libtool cannot recognize. 10693*** The result is that libtool may fail to recognize shared libraries 10694*** as such. This will affect the creation of libtool libraries that 10695*** depend on shared libraries, but programs linked with such libtool 10696*** libraries will work regardless of this problem. Nevertheless, you 10697*** may want to report the problem to your system manager and/or to 10698*** bug-libtool@gnu.org 10699 10700_LT_EOF 10701 fi ;; 10702 esac 10703 fi 10704 break 10705 fi 10706 done 10707 IFS=$lt_save_ifs 10708 MAGIC_CMD=$lt_save_MAGIC_CMD 10709 ;; 10710esac 10711fi 10712 10713MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10714if test -n "$MAGIC_CMD"; then 10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10716$as_echo "$MAGIC_CMD" >&6; } 10717else 10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10719$as_echo "no" >&6; } 10720fi 10721 10722 10723 10724 10725 10726if test -z "$lt_cv_path_MAGIC_CMD"; then 10727 if test -n "$ac_tool_prefix"; then 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10729$as_echo_n "checking for file... " >&6; } 10730if ${lt_cv_path_MAGIC_CMD+:} false; then : 10731 $as_echo_n "(cached) " >&6 10732else 10733 case $MAGIC_CMD in 10734[\\/*] | ?:[\\/]*) 10735 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10736 ;; 10737*) 10738 lt_save_MAGIC_CMD=$MAGIC_CMD 10739 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10740 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10741 for ac_dir in $ac_dummy; do 10742 IFS=$lt_save_ifs 10743 test -z "$ac_dir" && ac_dir=. 10744 if test -f "$ac_dir/file"; then 10745 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10746 if test -n "$file_magic_test_file"; then 10747 case $deplibs_check_method in 10748 "file_magic "*) 10749 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10750 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10751 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10752 $EGREP "$file_magic_regex" > /dev/null; then 10753 : 10754 else 10755 cat <<_LT_EOF 1>&2 10756 10757*** Warning: the command libtool uses to detect shared libraries, 10758*** $file_magic_cmd, produces output that libtool cannot recognize. 10759*** The result is that libtool may fail to recognize shared libraries 10760*** as such. This will affect the creation of libtool libraries that 10761*** depend on shared libraries, but programs linked with such libtool 10762*** libraries will work regardless of this problem. Nevertheless, you 10763*** may want to report the problem to your system manager and/or to 10764*** bug-libtool@gnu.org 10765 10766_LT_EOF 10767 fi ;; 10768 esac 10769 fi 10770 break 10771 fi 10772 done 10773 IFS=$lt_save_ifs 10774 MAGIC_CMD=$lt_save_MAGIC_CMD 10775 ;; 10776esac 10777fi 10778 10779MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10780if test -n "$MAGIC_CMD"; then 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10782$as_echo "$MAGIC_CMD" >&6; } 10783else 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10785$as_echo "no" >&6; } 10786fi 10787 10788 10789 else 10790 MAGIC_CMD=: 10791 fi 10792fi 10793 10794 fi 10795 ;; 10796esac 10797 10798# Use C for the default configuration in the libtool script 10799 10800lt_save_CC=$CC 10801ac_ext=c 10802ac_cpp='$CPP $CPPFLAGS' 10803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10805ac_compiler_gnu=$ac_cv_c_compiler_gnu 10806 10807 10808# Source file extension for C test sources. 10809ac_ext=c 10810 10811# Object file extension for compiled C test sources. 10812objext=o 10813objext=$objext 10814 10815# Code to be used in simple compile tests 10816lt_simple_compile_test_code="int some_variable = 0;" 10817 10818# Code to be used in simple link tests 10819lt_simple_link_test_code='int main(){return(0);}' 10820 10821 10822 10823 10824 10825 10826 10827# If no C compiler was specified, use CC. 10828LTCC=${LTCC-"$CC"} 10829 10830# If no C compiler flags were specified, use CFLAGS. 10831LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10832 10833# Allow CC to be a program name with arguments. 10834compiler=$CC 10835 10836# Save the default compiler, since it gets overwritten when the other 10837# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10838compiler_DEFAULT=$CC 10839 10840# save warnings/boilerplate of simple test code 10841ac_outfile=conftest.$ac_objext 10842echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10843eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10844_lt_compiler_boilerplate=`cat conftest.err` 10845$RM conftest* 10846 10847ac_outfile=conftest.$ac_objext 10848echo "$lt_simple_link_test_code" >conftest.$ac_ext 10849eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10850_lt_linker_boilerplate=`cat conftest.err` 10851$RM -r conftest* 10852 10853 10854if test -n "$compiler"; then 10855 10856lt_prog_compiler_no_builtin_flag= 10857 10858if test yes = "$GCC"; then 10859 case $cc_basename in 10860 nvcc*) 10861 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10862 *) 10863 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10864 esac 10865 10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10867$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10868if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10869 $as_echo_n "(cached) " >&6 10870else 10871 lt_cv_prog_compiler_rtti_exceptions=no 10872 ac_outfile=conftest.$ac_objext 10873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10874 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10875 # Insert the option either (1) after the last *FLAGS variable, or 10876 # (2) before a word containing "conftest.", or (3) at the end. 10877 # Note that $ac_compile itself does not contain backslashes and begins 10878 # with a dollar sign (not a hyphen), so the echo should work correctly. 10879 # The option is referenced via a variable to avoid confusing sed. 10880 lt_compile=`echo "$ac_compile" | $SED \ 10881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10883 -e 's:$: $lt_compiler_flag:'` 10884 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10885 (eval "$lt_compile" 2>conftest.err) 10886 ac_status=$? 10887 cat conftest.err >&5 10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10889 if (exit $ac_status) && test -s "$ac_outfile"; then 10890 # The compiler can only warn and ignore the option if not recognized 10891 # So say no if there are warnings other than the usual output. 10892 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10894 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10895 lt_cv_prog_compiler_rtti_exceptions=yes 10896 fi 10897 fi 10898 $RM conftest* 10899 10900fi 10901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10902$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10903 10904if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10905 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10906else 10907 : 10908fi 10909 10910fi 10911 10912 10913 10914 10915 10916 10917 lt_prog_compiler_wl= 10918lt_prog_compiler_pic= 10919lt_prog_compiler_static= 10920 10921 10922 if test yes = "$GCC"; then 10923 lt_prog_compiler_wl='-Wl,' 10924 lt_prog_compiler_static='-static' 10925 10926 case $host_os in 10927 aix*) 10928 # All AIX code is PIC. 10929 if test ia64 = "$host_cpu"; then 10930 # AIX 5 now supports IA64 processor 10931 lt_prog_compiler_static='-Bstatic' 10932 fi 10933 lt_prog_compiler_pic='-fPIC' 10934 ;; 10935 10936 amigaos*) 10937 case $host_cpu in 10938 powerpc) 10939 # see comment about AmigaOS4 .so support 10940 lt_prog_compiler_pic='-fPIC' 10941 ;; 10942 m68k) 10943 # FIXME: we need at least 68020 code to build shared libraries, but 10944 # adding the '-m68020' flag to GCC prevents building anything better, 10945 # like '-m68040'. 10946 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10947 ;; 10948 esac 10949 ;; 10950 10951 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10952 # PIC is the default for these OSes. 10953 ;; 10954 10955 mingw* | cygwin* | pw32* | os2* | cegcc*) 10956 # This hack is so that the source file can tell whether it is being 10957 # built for inclusion in a dll (and should export symbols for example). 10958 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10959 # (--disable-auto-import) libraries 10960 lt_prog_compiler_pic='-DDLL_EXPORT' 10961 case $host_os in 10962 os2*) 10963 lt_prog_compiler_static='$wl-static' 10964 ;; 10965 esac 10966 ;; 10967 10968 darwin* | rhapsody*) 10969 # PIC is the default on this platform 10970 # Common symbols not allowed in MH_DYLIB files 10971 lt_prog_compiler_pic='-fno-common' 10972 ;; 10973 10974 haiku*) 10975 # PIC is the default for Haiku. 10976 # The "-static" flag exists, but is broken. 10977 lt_prog_compiler_static= 10978 ;; 10979 10980 hpux*) 10981 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10982 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10983 # sets the default TLS model and affects inlining. 10984 case $host_cpu in 10985 hppa*64*) 10986 # +Z the default 10987 ;; 10988 *) 10989 lt_prog_compiler_pic='-fPIC' 10990 ;; 10991 esac 10992 ;; 10993 10994 interix[3-9]*) 10995 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10996 # Instead, we relocate shared libraries at runtime. 10997 ;; 10998 10999 msdosdjgpp*) 11000 # Just because we use GCC doesn't mean we suddenly get shared libraries 11001 # on systems that don't support them. 11002 lt_prog_compiler_can_build_shared=no 11003 enable_shared=no 11004 ;; 11005 11006 *nto* | *qnx*) 11007 # QNX uses GNU C++, but need to define -shared option too, otherwise 11008 # it will coredump. 11009 lt_prog_compiler_pic='-fPIC -shared' 11010 ;; 11011 11012 sysv4*MP*) 11013 if test -d /usr/nec; then 11014 lt_prog_compiler_pic=-Kconform_pic 11015 fi 11016 ;; 11017 11018 *) 11019 lt_prog_compiler_pic='-fPIC' 11020 ;; 11021 esac 11022 11023 case $cc_basename in 11024 nvcc*) # Cuda Compiler Driver 2.2 11025 lt_prog_compiler_wl='-Xlinker ' 11026 if test -n "$lt_prog_compiler_pic"; then 11027 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11028 fi 11029 ;; 11030 esac 11031 else 11032 # PORTME Check for flag to pass linker flags through the system compiler. 11033 case $host_os in 11034 aix*) 11035 lt_prog_compiler_wl='-Wl,' 11036 if test ia64 = "$host_cpu"; then 11037 # AIX 5 now supports IA64 processor 11038 lt_prog_compiler_static='-Bstatic' 11039 else 11040 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11041 fi 11042 ;; 11043 11044 darwin* | rhapsody*) 11045 # PIC is the default on this platform 11046 # Common symbols not allowed in MH_DYLIB files 11047 lt_prog_compiler_pic='-fno-common' 11048 case $cc_basename in 11049 nagfor*) 11050 # NAG Fortran compiler 11051 lt_prog_compiler_wl='-Wl,-Wl,,' 11052 lt_prog_compiler_pic='-PIC' 11053 lt_prog_compiler_static='-Bstatic' 11054 ;; 11055 esac 11056 ;; 11057 11058 mingw* | cygwin* | pw32* | os2* | cegcc*) 11059 # This hack is so that the source file can tell whether it is being 11060 # built for inclusion in a dll (and should export symbols for example). 11061 lt_prog_compiler_pic='-DDLL_EXPORT' 11062 case $host_os in 11063 os2*) 11064 lt_prog_compiler_static='$wl-static' 11065 ;; 11066 esac 11067 ;; 11068 11069 hpux9* | hpux10* | hpux11*) 11070 lt_prog_compiler_wl='-Wl,' 11071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11072 # not for PA HP-UX. 11073 case $host_cpu in 11074 hppa*64*|ia64*) 11075 # +Z the default 11076 ;; 11077 *) 11078 lt_prog_compiler_pic='+Z' 11079 ;; 11080 esac 11081 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11082 lt_prog_compiler_static='$wl-a ${wl}archive' 11083 ;; 11084 11085 irix5* | irix6* | nonstopux*) 11086 lt_prog_compiler_wl='-Wl,' 11087 # PIC (with -KPIC) is the default. 11088 lt_prog_compiler_static='-non_shared' 11089 ;; 11090 11091 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11092 case $cc_basename in 11093 # old Intel for x86_64, which still supported -KPIC. 11094 ecc*) 11095 lt_prog_compiler_wl='-Wl,' 11096 lt_prog_compiler_pic='-KPIC' 11097 lt_prog_compiler_static='-static' 11098 ;; 11099 # icc used to be incompatible with GCC. 11100 # ICC 10 doesn't accept -KPIC any more. 11101 icc* | ifort*) 11102 lt_prog_compiler_wl='-Wl,' 11103 lt_prog_compiler_pic='-fPIC' 11104 lt_prog_compiler_static='-static' 11105 ;; 11106 # Lahey Fortran 8.1. 11107 lf95*) 11108 lt_prog_compiler_wl='-Wl,' 11109 lt_prog_compiler_pic='--shared' 11110 lt_prog_compiler_static='--static' 11111 ;; 11112 nagfor*) 11113 # NAG Fortran compiler 11114 lt_prog_compiler_wl='-Wl,-Wl,,' 11115 lt_prog_compiler_pic='-PIC' 11116 lt_prog_compiler_static='-Bstatic' 11117 ;; 11118 tcc*) 11119 # Fabrice Bellard et al's Tiny C Compiler 11120 lt_prog_compiler_wl='-Wl,' 11121 lt_prog_compiler_pic='-fPIC' 11122 lt_prog_compiler_static='-static' 11123 ;; 11124 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11125 # Portland Group compilers (*not* the Pentium gcc compiler, 11126 # which looks to be a dead project) 11127 lt_prog_compiler_wl='-Wl,' 11128 lt_prog_compiler_pic='-fpic' 11129 lt_prog_compiler_static='-Bstatic' 11130 ;; 11131 ccc*) 11132 lt_prog_compiler_wl='-Wl,' 11133 # All Alpha code is PIC. 11134 lt_prog_compiler_static='-non_shared' 11135 ;; 11136 xl* | bgxl* | bgf* | mpixl*) 11137 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11138 lt_prog_compiler_wl='-Wl,' 11139 lt_prog_compiler_pic='-qpic' 11140 lt_prog_compiler_static='-qstaticlink' 11141 ;; 11142 *) 11143 case `$CC -V 2>&1 | sed 5q` in 11144 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11145 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11146 lt_prog_compiler_pic='-KPIC' 11147 lt_prog_compiler_static='-Bstatic' 11148 lt_prog_compiler_wl='' 11149 ;; 11150 *Sun\ F* | *Sun*Fortran*) 11151 lt_prog_compiler_pic='-KPIC' 11152 lt_prog_compiler_static='-Bstatic' 11153 lt_prog_compiler_wl='-Qoption ld ' 11154 ;; 11155 *Sun\ C*) 11156 # Sun C 5.9 11157 lt_prog_compiler_pic='-KPIC' 11158 lt_prog_compiler_static='-Bstatic' 11159 lt_prog_compiler_wl='-Wl,' 11160 ;; 11161 *Intel*\ [CF]*Compiler*) 11162 lt_prog_compiler_wl='-Wl,' 11163 lt_prog_compiler_pic='-fPIC' 11164 lt_prog_compiler_static='-static' 11165 ;; 11166 *Portland\ Group*) 11167 lt_prog_compiler_wl='-Wl,' 11168 lt_prog_compiler_pic='-fpic' 11169 lt_prog_compiler_static='-Bstatic' 11170 ;; 11171 esac 11172 ;; 11173 esac 11174 ;; 11175 11176 newsos6) 11177 lt_prog_compiler_pic='-KPIC' 11178 lt_prog_compiler_static='-Bstatic' 11179 ;; 11180 11181 *nto* | *qnx*) 11182 # QNX uses GNU C++, but need to define -shared option too, otherwise 11183 # it will coredump. 11184 lt_prog_compiler_pic='-fPIC -shared' 11185 ;; 11186 11187 osf3* | osf4* | osf5*) 11188 lt_prog_compiler_wl='-Wl,' 11189 # All OSF/1 code is PIC. 11190 lt_prog_compiler_static='-non_shared' 11191 ;; 11192 11193 rdos*) 11194 lt_prog_compiler_static='-non_shared' 11195 ;; 11196 11197 solaris*) 11198 lt_prog_compiler_pic='-KPIC' 11199 lt_prog_compiler_static='-Bstatic' 11200 case $cc_basename in 11201 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11202 lt_prog_compiler_wl='-Qoption ld ';; 11203 *) 11204 lt_prog_compiler_wl='-Wl,';; 11205 esac 11206 ;; 11207 11208 sunos4*) 11209 lt_prog_compiler_wl='-Qoption ld ' 11210 lt_prog_compiler_pic='-PIC' 11211 lt_prog_compiler_static='-Bstatic' 11212 ;; 11213 11214 sysv4 | sysv4.2uw2* | sysv4.3*) 11215 lt_prog_compiler_wl='-Wl,' 11216 lt_prog_compiler_pic='-KPIC' 11217 lt_prog_compiler_static='-Bstatic' 11218 ;; 11219 11220 sysv4*MP*) 11221 if test -d /usr/nec; then 11222 lt_prog_compiler_pic='-Kconform_pic' 11223 lt_prog_compiler_static='-Bstatic' 11224 fi 11225 ;; 11226 11227 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11228 lt_prog_compiler_wl='-Wl,' 11229 lt_prog_compiler_pic='-KPIC' 11230 lt_prog_compiler_static='-Bstatic' 11231 ;; 11232 11233 unicos*) 11234 lt_prog_compiler_wl='-Wl,' 11235 lt_prog_compiler_can_build_shared=no 11236 ;; 11237 11238 uts4*) 11239 lt_prog_compiler_pic='-pic' 11240 lt_prog_compiler_static='-Bstatic' 11241 ;; 11242 11243 *) 11244 lt_prog_compiler_can_build_shared=no 11245 ;; 11246 esac 11247 fi 11248 11249case $host_os in 11250 # For platforms that do not support PIC, -DPIC is meaningless: 11251 *djgpp*) 11252 lt_prog_compiler_pic= 11253 ;; 11254 *) 11255 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11256 ;; 11257esac 11258 11259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11260$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11261if ${lt_cv_prog_compiler_pic+:} false; then : 11262 $as_echo_n "(cached) " >&6 11263else 11264 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11265fi 11266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11267$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11268lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11269 11270# 11271# Check to make sure the PIC flag actually works. 11272# 11273if test -n "$lt_prog_compiler_pic"; then 11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11275$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11276if ${lt_cv_prog_compiler_pic_works+:} false; then : 11277 $as_echo_n "(cached) " >&6 11278else 11279 lt_cv_prog_compiler_pic_works=no 11280 ac_outfile=conftest.$ac_objext 11281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11282 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11283 # Insert the option either (1) after the last *FLAGS variable, or 11284 # (2) before a word containing "conftest.", or (3) at the end. 11285 # Note that $ac_compile itself does not contain backslashes and begins 11286 # with a dollar sign (not a hyphen), so the echo should work correctly. 11287 # The option is referenced via a variable to avoid confusing sed. 11288 lt_compile=`echo "$ac_compile" | $SED \ 11289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11291 -e 's:$: $lt_compiler_flag:'` 11292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11293 (eval "$lt_compile" 2>conftest.err) 11294 ac_status=$? 11295 cat conftest.err >&5 11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11297 if (exit $ac_status) && test -s "$ac_outfile"; then 11298 # The compiler can only warn and ignore the option if not recognized 11299 # So say no if there are warnings other than the usual output. 11300 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11303 lt_cv_prog_compiler_pic_works=yes 11304 fi 11305 fi 11306 $RM conftest* 11307 11308fi 11309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11310$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11311 11312if test yes = "$lt_cv_prog_compiler_pic_works"; then 11313 case $lt_prog_compiler_pic in 11314 "" | " "*) ;; 11315 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11316 esac 11317else 11318 lt_prog_compiler_pic= 11319 lt_prog_compiler_can_build_shared=no 11320fi 11321 11322fi 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334# 11335# Check to make sure the static flag actually works. 11336# 11337wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11339$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11340if ${lt_cv_prog_compiler_static_works+:} false; then : 11341 $as_echo_n "(cached) " >&6 11342else 11343 lt_cv_prog_compiler_static_works=no 11344 save_LDFLAGS=$LDFLAGS 11345 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11346 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11348 # The linker can only warn and ignore the option if not recognized 11349 # So say no if there are warnings 11350 if test -s conftest.err; then 11351 # Append any errors to the config.log. 11352 cat conftest.err 1>&5 11353 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11355 if diff conftest.exp conftest.er2 >/dev/null; then 11356 lt_cv_prog_compiler_static_works=yes 11357 fi 11358 else 11359 lt_cv_prog_compiler_static_works=yes 11360 fi 11361 fi 11362 $RM -r conftest* 11363 LDFLAGS=$save_LDFLAGS 11364 11365fi 11366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11367$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11368 11369if test yes = "$lt_cv_prog_compiler_static_works"; then 11370 : 11371else 11372 lt_prog_compiler_static= 11373fi 11374 11375 11376 11377 11378 11379 11380 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11382$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11383if ${lt_cv_prog_compiler_c_o+:} false; then : 11384 $as_echo_n "(cached) " >&6 11385else 11386 lt_cv_prog_compiler_c_o=no 11387 $RM -r conftest 2>/dev/null 11388 mkdir conftest 11389 cd conftest 11390 mkdir out 11391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11392 11393 lt_compiler_flag="-o out/conftest2.$ac_objext" 11394 # Insert the option either (1) after the last *FLAGS variable, or 11395 # (2) before a word containing "conftest.", or (3) at the end. 11396 # Note that $ac_compile itself does not contain backslashes and begins 11397 # with a dollar sign (not a hyphen), so the echo should work correctly. 11398 lt_compile=`echo "$ac_compile" | $SED \ 11399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11401 -e 's:$: $lt_compiler_flag:'` 11402 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11403 (eval "$lt_compile" 2>out/conftest.err) 11404 ac_status=$? 11405 cat out/conftest.err >&5 11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11407 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11408 then 11409 # The compiler can only warn and ignore the option if not recognized 11410 # So say no if there are warnings 11411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11412 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11413 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11414 lt_cv_prog_compiler_c_o=yes 11415 fi 11416 fi 11417 chmod u+w . 2>&5 11418 $RM conftest* 11419 # SGI C++ compiler will create directory out/ii_files/ for 11420 # template instantiation 11421 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11422 $RM out/* && rmdir out 11423 cd .. 11424 $RM -r conftest 11425 $RM conftest* 11426 11427fi 11428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11429$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11430 11431 11432 11433 11434 11435 11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11437$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11438if ${lt_cv_prog_compiler_c_o+:} false; then : 11439 $as_echo_n "(cached) " >&6 11440else 11441 lt_cv_prog_compiler_c_o=no 11442 $RM -r conftest 2>/dev/null 11443 mkdir conftest 11444 cd conftest 11445 mkdir out 11446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11447 11448 lt_compiler_flag="-o out/conftest2.$ac_objext" 11449 # Insert the option either (1) after the last *FLAGS variable, or 11450 # (2) before a word containing "conftest.", or (3) at the end. 11451 # Note that $ac_compile itself does not contain backslashes and begins 11452 # with a dollar sign (not a hyphen), so the echo should work correctly. 11453 lt_compile=`echo "$ac_compile" | $SED \ 11454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11456 -e 's:$: $lt_compiler_flag:'` 11457 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11458 (eval "$lt_compile" 2>out/conftest.err) 11459 ac_status=$? 11460 cat out/conftest.err >&5 11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11462 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11463 then 11464 # The compiler can only warn and ignore the option if not recognized 11465 # So say no if there are warnings 11466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11467 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11468 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11469 lt_cv_prog_compiler_c_o=yes 11470 fi 11471 fi 11472 chmod u+w . 2>&5 11473 $RM conftest* 11474 # SGI C++ compiler will create directory out/ii_files/ for 11475 # template instantiation 11476 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11477 $RM out/* && rmdir out 11478 cd .. 11479 $RM -r conftest 11480 $RM conftest* 11481 11482fi 11483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11484$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11485 11486 11487 11488 11489hard_links=nottested 11490if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11491 # do not overwrite the value of need_locks provided by the user 11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11493$as_echo_n "checking if we can lock with hard links... " >&6; } 11494 hard_links=yes 11495 $RM conftest* 11496 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11497 touch conftest.a 11498 ln conftest.a conftest.b 2>&5 || hard_links=no 11499 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11501$as_echo "$hard_links" >&6; } 11502 if test no = "$hard_links"; then 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11504$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11505 need_locks=warn 11506 fi 11507else 11508 need_locks=no 11509fi 11510 11511 11512 11513 11514 11515 11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11517$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11518 11519 runpath_var= 11520 allow_undefined_flag= 11521 always_export_symbols=no 11522 archive_cmds= 11523 archive_expsym_cmds= 11524 compiler_needs_object=no 11525 enable_shared_with_static_runtimes=no 11526 export_dynamic_flag_spec= 11527 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11528 hardcode_automatic=no 11529 hardcode_direct=no 11530 hardcode_direct_absolute=no 11531 hardcode_libdir_flag_spec= 11532 hardcode_libdir_separator= 11533 hardcode_minus_L=no 11534 hardcode_shlibpath_var=unsupported 11535 inherit_rpath=no 11536 link_all_deplibs=unknown 11537 module_cmds= 11538 module_expsym_cmds= 11539 old_archive_from_new_cmds= 11540 old_archive_from_expsyms_cmds= 11541 thread_safe_flag_spec= 11542 whole_archive_flag_spec= 11543 # include_expsyms should be a list of space-separated symbols to be *always* 11544 # included in the symbol list 11545 include_expsyms= 11546 # exclude_expsyms can be an extended regexp of symbols to exclude 11547 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11548 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11549 # as well as any symbol that contains 'd'. 11550 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11551 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11552 # platforms (ab)use it in PIC code, but their linkers get confused if 11553 # the symbol is explicitly referenced. Since portable code cannot 11554 # rely on this symbol name, it's probably fine to never include it in 11555 # preloaded symbol tables. 11556 # Exclude shared library initialization/finalization symbols. 11557 extract_expsyms_cmds= 11558 11559 case $host_os in 11560 cygwin* | mingw* | pw32* | cegcc*) 11561 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11562 # When not using gcc, we currently assume that we are using 11563 # Microsoft Visual C++. 11564 if test yes != "$GCC"; then 11565 with_gnu_ld=no 11566 fi 11567 ;; 11568 interix*) 11569 # we just hope/assume this is gcc and not c89 (= MSVC++) 11570 with_gnu_ld=yes 11571 ;; 11572 openbsd* | bitrig*) 11573 with_gnu_ld=no 11574 ;; 11575 esac 11576 11577 ld_shlibs=yes 11578 11579 # On some targets, GNU ld is compatible enough with the native linker 11580 # that we're better off using the native interface for both. 11581 lt_use_gnu_ld_interface=no 11582 if test yes = "$with_gnu_ld"; then 11583 case $host_os in 11584 aix*) 11585 # The AIX port of GNU ld has always aspired to compatibility 11586 # with the native linker. However, as the warning in the GNU ld 11587 # block says, versions before 2.19.5* couldn't really create working 11588 # shared libraries, regardless of the interface used. 11589 case `$LD -v 2>&1` in 11590 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11591 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11592 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11593 *) 11594 lt_use_gnu_ld_interface=yes 11595 ;; 11596 esac 11597 ;; 11598 *) 11599 lt_use_gnu_ld_interface=yes 11600 ;; 11601 esac 11602 fi 11603 11604 if test yes = "$lt_use_gnu_ld_interface"; then 11605 # If archive_cmds runs LD, not CC, wlarc should be empty 11606 wlarc='$wl' 11607 11608 # Set some defaults for GNU ld with shared library support. These 11609 # are reset later if shared libraries are not supported. Putting them 11610 # here allows them to be overridden if necessary. 11611 runpath_var=LD_RUN_PATH 11612 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11613 export_dynamic_flag_spec='$wl--export-dynamic' 11614 # ancient GNU ld didn't support --whole-archive et. al. 11615 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11616 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11617 else 11618 whole_archive_flag_spec= 11619 fi 11620 supports_anon_versioning=no 11621 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 11622 *GNU\ gold*) supports_anon_versioning=yes ;; 11623 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11624 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11625 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11626 *\ 2.11.*) ;; # other 2.11 versions 11627 *) supports_anon_versioning=yes ;; 11628 esac 11629 11630 # See if GNU ld supports shared libraries. 11631 case $host_os in 11632 aix[3-9]*) 11633 # On AIX/PPC, the GNU linker is very broken 11634 if test ia64 != "$host_cpu"; then 11635 ld_shlibs=no 11636 cat <<_LT_EOF 1>&2 11637 11638*** Warning: the GNU linker, at least up to release 2.19, is reported 11639*** to be unable to reliably create shared libraries on AIX. 11640*** Therefore, libtool is disabling shared libraries support. If you 11641*** really care for shared libraries, you may want to install binutils 11642*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11643*** You will then need to restart the configuration process. 11644 11645_LT_EOF 11646 fi 11647 ;; 11648 11649 amigaos*) 11650 case $host_cpu in 11651 powerpc) 11652 # see comment about AmigaOS4 .so support 11653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11654 archive_expsym_cmds='' 11655 ;; 11656 m68k) 11657 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)' 11658 hardcode_libdir_flag_spec='-L$libdir' 11659 hardcode_minus_L=yes 11660 ;; 11661 esac 11662 ;; 11663 11664 beos*) 11665 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11666 allow_undefined_flag=unsupported 11667 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11668 # support --undefined. This deserves some investigation. FIXME 11669 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11670 else 11671 ld_shlibs=no 11672 fi 11673 ;; 11674 11675 cygwin* | mingw* | pw32* | cegcc*) 11676 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11677 # as there is no search path for DLLs. 11678 hardcode_libdir_flag_spec='-L$libdir' 11679 export_dynamic_flag_spec='$wl--export-all-symbols' 11680 allow_undefined_flag=unsupported 11681 always_export_symbols=no 11682 enable_shared_with_static_runtimes=yes 11683 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' 11684 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11685 11686 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11688 # If the export-symbols file already is a .def file, use it as 11689 # is; otherwise, prepend EXPORTS... 11690 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11691 cp $export_symbols $output_objdir/$soname.def; 11692 else 11693 echo EXPORTS > $output_objdir/$soname.def; 11694 cat $export_symbols >> $output_objdir/$soname.def; 11695 fi~ 11696 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11697 else 11698 ld_shlibs=no 11699 fi 11700 ;; 11701 11702 haiku*) 11703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11704 link_all_deplibs=yes 11705 ;; 11706 11707 os2*) 11708 hardcode_libdir_flag_spec='-L$libdir' 11709 hardcode_minus_L=yes 11710 allow_undefined_flag=unsupported 11711 shrext_cmds=.dll 11712 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11713 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11714 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11715 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11716 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11717 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11718 emximp -o $lib $output_objdir/$libname.def' 11719 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11720 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11721 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11722 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11723 prefix_cmds="$SED"~ 11724 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11725 prefix_cmds="$prefix_cmds -e 1d"; 11726 fi~ 11727 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11728 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11729 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11730 emximp -o $lib $output_objdir/$libname.def' 11731 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11732 enable_shared_with_static_runtimes=yes 11733 ;; 11734 11735 interix[3-9]*) 11736 hardcode_direct=no 11737 hardcode_shlibpath_var=no 11738 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11739 export_dynamic_flag_spec='$wl-E' 11740 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11741 # Instead, shared libraries are loaded at an image base (0x10000000 by 11742 # default) and relocated if they conflict, which is a slow very memory 11743 # consuming and fragmenting process. To avoid this, we pick a random, 11744 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11745 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11746 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11747 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' 11748 ;; 11749 11750 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11751 tmp_diet=no 11752 if test linux-dietlibc = "$host_os"; then 11753 case $cc_basename in 11754 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11755 esac 11756 fi 11757 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11758 && test no = "$tmp_diet" 11759 then 11760 tmp_addflag=' $pic_flag' 11761 tmp_sharedflag='-shared' 11762 case $cc_basename,$host_cpu in 11763 pgcc*) # Portland Group C compiler 11764 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' 11765 tmp_addflag=' $pic_flag' 11766 ;; 11767 pgf77* | pgf90* | pgf95* | pgfortran*) 11768 # Portland Group f77 and f90 compilers 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 tmp_addflag=' $pic_flag -Mnomain' ;; 11771 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11772 tmp_addflag=' -i_dynamic' ;; 11773 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11774 tmp_addflag=' -i_dynamic -nofor_main' ;; 11775 ifc* | ifort*) # Intel Fortran compiler 11776 tmp_addflag=' -nofor_main' ;; 11777 lf95*) # Lahey Fortran 8.1 11778 whole_archive_flag_spec= 11779 tmp_sharedflag='--shared' ;; 11780 nagfor*) # NAGFOR 5.3 11781 tmp_sharedflag='-Wl,-shared' ;; 11782 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11783 tmp_sharedflag='-qmkshrobj' 11784 tmp_addflag= ;; 11785 nvcc*) # Cuda Compiler Driver 2.2 11786 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' 11787 compiler_needs_object=yes 11788 ;; 11789 esac 11790 case `$CC -V 2>&1 | sed 5q` in 11791 *Sun\ C*) # Sun C 5.9 11792 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' 11793 compiler_needs_object=yes 11794 tmp_sharedflag='-G' ;; 11795 *Sun\ F*) # Sun Fortran 8.3 11796 tmp_sharedflag='-G' ;; 11797 esac 11798 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11799 11800 if test yes = "$supports_anon_versioning"; then 11801 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11803 echo "local: *; };" >> $output_objdir/$libname.ver~ 11804 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11805 fi 11806 11807 case $cc_basename in 11808 tcc*) 11809 export_dynamic_flag_spec='-rdynamic' 11810 ;; 11811 xlf* | bgf* | bgxlf* | mpixlf*) 11812 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11813 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11814 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11815 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11816 if test yes = "$supports_anon_versioning"; then 11817 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11819 echo "local: *; };" >> $output_objdir/$libname.ver~ 11820 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11821 fi 11822 ;; 11823 esac 11824 else 11825 ld_shlibs=no 11826 fi 11827 ;; 11828 11829 netbsd*) 11830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11831 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11832 wlarc= 11833 else 11834 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11835 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11836 fi 11837 ;; 11838 11839 solaris*) 11840 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11841 ld_shlibs=no 11842 cat <<_LT_EOF 1>&2 11843 11844*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11845*** create shared libraries on Solaris systems. Therefore, libtool 11846*** is disabling shared libraries support. We urge you to upgrade GNU 11847*** binutils to release 2.9.1 or newer. Another option is to modify 11848*** your PATH or compiler configuration so that the native linker is 11849*** used, and then restart. 11850 11851_LT_EOF 11852 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11853 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11854 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11855 else 11856 ld_shlibs=no 11857 fi 11858 ;; 11859 11860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11861 case `$LD -v 2>&1` in 11862 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11863 ld_shlibs=no 11864 cat <<_LT_EOF 1>&2 11865 11866*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11867*** reliably create shared libraries on SCO systems. Therefore, libtool 11868*** is disabling shared libraries support. We urge you to upgrade GNU 11869*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11870*** your PATH or compiler configuration so that the native linker is 11871*** used, and then restart. 11872 11873_LT_EOF 11874 ;; 11875 *) 11876 # For security reasons, it is highly recommended that you always 11877 # use absolute paths for naming shared libraries, and exclude the 11878 # DT_RUNPATH tag from executables and libraries. But doing so 11879 # requires that you compile everything twice, which is a pain. 11880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11881 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11883 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11884 else 11885 ld_shlibs=no 11886 fi 11887 ;; 11888 esac 11889 ;; 11890 11891 sunos4*) 11892 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11893 wlarc= 11894 hardcode_direct=yes 11895 hardcode_shlibpath_var=no 11896 ;; 11897 11898 *) 11899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11900 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11901 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11902 else 11903 ld_shlibs=no 11904 fi 11905 ;; 11906 esac 11907 11908 if test no = "$ld_shlibs"; then 11909 runpath_var= 11910 hardcode_libdir_flag_spec= 11911 export_dynamic_flag_spec= 11912 whole_archive_flag_spec= 11913 fi 11914 else 11915 # PORTME fill in a description of your system's linker (not GNU ld) 11916 case $host_os in 11917 aix3*) 11918 allow_undefined_flag=unsupported 11919 always_export_symbols=yes 11920 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' 11921 # Note: this linker hardcodes the directories in LIBPATH if there 11922 # are no directories specified by -L. 11923 hardcode_minus_L=yes 11924 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11925 # Neither direct hardcoding nor static linking is supported with a 11926 # broken collect2. 11927 hardcode_direct=unsupported 11928 fi 11929 ;; 11930 11931 aix[4-9]*) 11932 if test ia64 = "$host_cpu"; then 11933 # On IA64, the linker does run time linking by default, so we don't 11934 # have to do anything special. 11935 aix_use_runtimelinking=no 11936 exp_sym_flag='-Bexport' 11937 no_entry_flag= 11938 else 11939 # If we're using GNU nm, then we don't want the "-C" option. 11940 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11941 # Without the "-l" option, or with the "-B" option, AIX nm treats 11942 # weak defined symbols like other global defined symbols, whereas 11943 # GNU nm marks them as "W". 11944 # While the 'weak' keyword is ignored in the Export File, we need 11945 # it in the Import File for the 'aix-soname' feature, so we have 11946 # to replace the "-B" option with "-P" for AIX nm. 11947 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11948 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' 11949 else 11950 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' 11951 fi 11952 aix_use_runtimelinking=no 11953 11954 # Test if we are trying to use run time linking or normal 11955 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11956 # have runtime linking enabled, and use it for executables. 11957 # For shared libraries, we enable/disable runtime linking 11958 # depending on the kind of the shared library created - 11959 # when "with_aix_soname,aix_use_runtimelinking" is: 11960 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11961 # "aix,yes" lib.so shared, rtl:yes, for executables 11962 # lib.a static archive 11963 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11964 # lib.a(lib.so.V) shared, rtl:no, for executables 11965 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11966 # lib.a(lib.so.V) shared, rtl:no 11967 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11968 # lib.a static archive 11969 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11970 for ld_flag in $LDFLAGS; do 11971 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11972 aix_use_runtimelinking=yes 11973 break 11974 fi 11975 done 11976 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11977 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11978 # so we don't have lib.a shared libs to link our executables. 11979 # We have to force runtime linking in this case. 11980 aix_use_runtimelinking=yes 11981 LDFLAGS="$LDFLAGS -Wl,-brtl" 11982 fi 11983 ;; 11984 esac 11985 11986 exp_sym_flag='-bexport' 11987 no_entry_flag='-bnoentry' 11988 fi 11989 11990 # When large executables or shared objects are built, AIX ld can 11991 # have problems creating the table of contents. If linking a library 11992 # or program results in "error TOC overflow" add -mminimal-toc to 11993 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11994 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11995 11996 archive_cmds='' 11997 hardcode_direct=yes 11998 hardcode_direct_absolute=yes 11999 hardcode_libdir_separator=':' 12000 link_all_deplibs=yes 12001 file_list_spec='$wl-f,' 12002 case $with_aix_soname,$aix_use_runtimelinking in 12003 aix,*) ;; # traditional, no import file 12004 svr4,* | *,yes) # use import file 12005 # The Import File defines what to hardcode. 12006 hardcode_direct=no 12007 hardcode_direct_absolute=no 12008 ;; 12009 esac 12010 12011 if test yes = "$GCC"; then 12012 case $host_os in aix4.[012]|aix4.[012].*) 12013 # We only want to do this on AIX 4.2 and lower, the check 12014 # below for broken collect2 doesn't work under 4.3+ 12015 collect2name=`$CC -print-prog-name=collect2` 12016 if test -f "$collect2name" && 12017 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12018 then 12019 # We have reworked collect2 12020 : 12021 else 12022 # We have old collect2 12023 hardcode_direct=unsupported 12024 # It fails to find uninstalled libraries when the uninstalled 12025 # path is not listed in the libpath. Setting hardcode_minus_L 12026 # to unsupported forces relinking 12027 hardcode_minus_L=yes 12028 hardcode_libdir_flag_spec='-L$libdir' 12029 hardcode_libdir_separator= 12030 fi 12031 ;; 12032 esac 12033 shared_flag='-shared' 12034 if test yes = "$aix_use_runtimelinking"; then 12035 shared_flag="$shared_flag "'$wl-G' 12036 fi 12037 # Need to ensure runtime linking is disabled for the traditional 12038 # shared library, or the linker may eventually find shared libraries 12039 # /with/ Import File - we do not want to mix them. 12040 shared_flag_aix='-shared' 12041 shared_flag_svr4='-shared $wl-G' 12042 else 12043 # not using gcc 12044 if test ia64 = "$host_cpu"; then 12045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12046 # chokes on -Wl,-G. The following line is correct: 12047 shared_flag='-G' 12048 else 12049 if test yes = "$aix_use_runtimelinking"; then 12050 shared_flag='$wl-G' 12051 else 12052 shared_flag='$wl-bM:SRE' 12053 fi 12054 shared_flag_aix='$wl-bM:SRE' 12055 shared_flag_svr4='$wl-G' 12056 fi 12057 fi 12058 12059 export_dynamic_flag_spec='$wl-bexpall' 12060 # It seems that -bexpall does not export symbols beginning with 12061 # underscore (_), so it is better to generate a list of symbols to export. 12062 always_export_symbols=yes 12063 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12064 # Warning - without using the other runtime loading flags (-brtl), 12065 # -berok will link without error, but may produce a broken library. 12066 allow_undefined_flag='-berok' 12067 # Determine the default libpath from the value encoded in an 12068 # empty executable. 12069 if test set = "${lt_cv_aix_libpath+set}"; then 12070 aix_libpath=$lt_cv_aix_libpath 12071else 12072 if ${lt_cv_aix_libpath_+:} false; then : 12073 $as_echo_n "(cached) " >&6 12074else 12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12076/* end confdefs.h. */ 12077 12078int 12079main () 12080{ 12081 12082 ; 12083 return 0; 12084} 12085_ACEOF 12086if ac_fn_c_try_link "$LINENO"; then : 12087 12088 lt_aix_libpath_sed=' 12089 /Import File Strings/,/^$/ { 12090 /^0/ { 12091 s/^0 *\([^ ]*\) *$/\1/ 12092 p 12093 } 12094 }' 12095 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12096 # Check for a 64-bit object if we didn't find anything. 12097 if test -z "$lt_cv_aix_libpath_"; then 12098 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12099 fi 12100fi 12101rm -f core conftest.err conftest.$ac_objext \ 12102 conftest$ac_exeext conftest.$ac_ext 12103 if test -z "$lt_cv_aix_libpath_"; then 12104 lt_cv_aix_libpath_=/usr/lib:/lib 12105 fi 12106 12107fi 12108 12109 aix_libpath=$lt_cv_aix_libpath_ 12110fi 12111 12112 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12113 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 12114 else 12115 if test ia64 = "$host_cpu"; then 12116 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12117 allow_undefined_flag="-z nodefs" 12118 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" 12119 else 12120 # Determine the default libpath from the value encoded in an 12121 # empty executable. 12122 if test set = "${lt_cv_aix_libpath+set}"; then 12123 aix_libpath=$lt_cv_aix_libpath 12124else 12125 if ${lt_cv_aix_libpath_+:} false; then : 12126 $as_echo_n "(cached) " >&6 12127else 12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12129/* end confdefs.h. */ 12130 12131int 12132main () 12133{ 12134 12135 ; 12136 return 0; 12137} 12138_ACEOF 12139if ac_fn_c_try_link "$LINENO"; then : 12140 12141 lt_aix_libpath_sed=' 12142 /Import File Strings/,/^$/ { 12143 /^0/ { 12144 s/^0 *\([^ ]*\) *$/\1/ 12145 p 12146 } 12147 }' 12148 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12149 # Check for a 64-bit object if we didn't find anything. 12150 if test -z "$lt_cv_aix_libpath_"; then 12151 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12152 fi 12153fi 12154rm -f core conftest.err conftest.$ac_objext \ 12155 conftest$ac_exeext conftest.$ac_ext 12156 if test -z "$lt_cv_aix_libpath_"; then 12157 lt_cv_aix_libpath_=/usr/lib:/lib 12158 fi 12159 12160fi 12161 12162 aix_libpath=$lt_cv_aix_libpath_ 12163fi 12164 12165 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12166 # Warning - without using the other run time loading flags, 12167 # -berok will link without error, but may produce a broken library. 12168 no_undefined_flag=' $wl-bernotok' 12169 allow_undefined_flag=' $wl-berok' 12170 if test yes = "$with_gnu_ld"; then 12171 # We only use this code for GNU lds that support --whole-archive. 12172 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12173 else 12174 # Exported symbols can be pulled into shared objects from archives 12175 whole_archive_flag_spec='$convenience' 12176 fi 12177 archive_cmds_need_lc=yes 12178 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12179 # -brtl affects multiple linker settings, -berok does not and is overridden later 12180 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12181 if test svr4 != "$with_aix_soname"; then 12182 # This is similar to how AIX traditionally builds its shared libraries. 12183 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' 12184 fi 12185 if test aix != "$with_aix_soname"; then 12186 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' 12187 else 12188 # used by -dlpreopen to get the symbols 12189 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12190 fi 12191 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12192 fi 12193 fi 12194 ;; 12195 12196 amigaos*) 12197 case $host_cpu in 12198 powerpc) 12199 # see comment about AmigaOS4 .so support 12200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12201 archive_expsym_cmds='' 12202 ;; 12203 m68k) 12204 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)' 12205 hardcode_libdir_flag_spec='-L$libdir' 12206 hardcode_minus_L=yes 12207 ;; 12208 esac 12209 ;; 12210 12211 bsdi[45]*) 12212 export_dynamic_flag_spec=-rdynamic 12213 ;; 12214 12215 cygwin* | mingw* | pw32* | cegcc*) 12216 # When not using gcc, we currently assume that we are using 12217 # Microsoft Visual C++. 12218 # hardcode_libdir_flag_spec is actually meaningless, as there is 12219 # no search path for DLLs. 12220 case $cc_basename in 12221 cl*) 12222 # Native MSVC 12223 hardcode_libdir_flag_spec=' ' 12224 allow_undefined_flag=unsupported 12225 always_export_symbols=yes 12226 file_list_spec='@' 12227 # Tell ltmain to make .lib files, not .a files. 12228 libext=lib 12229 # Tell ltmain to make .dll files, not .so files. 12230 shrext_cmds=.dll 12231 # FIXME: Setting linknames here is a bad hack. 12232 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12233 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12234 cp "$export_symbols" "$output_objdir/$soname.def"; 12235 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12236 else 12237 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12238 fi~ 12239 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12240 linknames=' 12241 # The linker will not automatically build a static lib if we build a DLL. 12242 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12243 enable_shared_with_static_runtimes=yes 12244 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12245 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12246 # Don't use ranlib 12247 old_postinstall_cmds='chmod 644 $oldlib' 12248 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12249 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12250 case $lt_outputfile in 12251 *.exe|*.EXE) ;; 12252 *) 12253 lt_outputfile=$lt_outputfile.exe 12254 lt_tool_outputfile=$lt_tool_outputfile.exe 12255 ;; 12256 esac~ 12257 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12258 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12259 $RM "$lt_outputfile.manifest"; 12260 fi' 12261 ;; 12262 *) 12263 # Assume MSVC wrapper 12264 hardcode_libdir_flag_spec=' ' 12265 allow_undefined_flag=unsupported 12266 # Tell ltmain to make .lib files, not .a files. 12267 libext=lib 12268 # Tell ltmain to make .dll files, not .so files. 12269 shrext_cmds=.dll 12270 # FIXME: Setting linknames here is a bad hack. 12271 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12272 # The linker will automatically build a .lib file if we build a DLL. 12273 old_archive_from_new_cmds='true' 12274 # FIXME: Should let the user specify the lib program. 12275 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12276 enable_shared_with_static_runtimes=yes 12277 ;; 12278 esac 12279 ;; 12280 12281 darwin* | rhapsody*) 12282 12283 12284 archive_cmds_need_lc=no 12285 hardcode_direct=no 12286 hardcode_automatic=yes 12287 hardcode_shlibpath_var=unsupported 12288 if test yes = "$lt_cv_ld_force_load"; then 12289 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\"`' 12290 12291 else 12292 whole_archive_flag_spec='' 12293 fi 12294 link_all_deplibs=yes 12295 allow_undefined_flag=$_lt_dar_allow_undefined 12296 case $cc_basename in 12297 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12298 *) _lt_dar_can_shared=$GCC ;; 12299 esac 12300 if test yes = "$_lt_dar_can_shared"; then 12301 output_verbose_link_cmd=func_echo_all 12302 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12303 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12304 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" 12305 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" 12306 12307 else 12308 ld_shlibs=no 12309 fi 12310 12311 ;; 12312 12313 dgux*) 12314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12315 hardcode_libdir_flag_spec='-L$libdir' 12316 hardcode_shlibpath_var=no 12317 ;; 12318 12319 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12320 # support. Future versions do this automatically, but an explicit c++rt0.o 12321 # does not break anything, and helps significantly (at the cost of a little 12322 # extra space). 12323 freebsd2.2*) 12324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12325 hardcode_libdir_flag_spec='-R$libdir' 12326 hardcode_direct=yes 12327 hardcode_shlibpath_var=no 12328 ;; 12329 12330 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12331 freebsd2.*) 12332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12333 hardcode_direct=yes 12334 hardcode_minus_L=yes 12335 hardcode_shlibpath_var=no 12336 ;; 12337 12338 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12339 freebsd* | dragonfly*) 12340 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12341 hardcode_libdir_flag_spec='-R$libdir' 12342 hardcode_direct=yes 12343 hardcode_shlibpath_var=no 12344 ;; 12345 12346 hpux9*) 12347 if test yes = "$GCC"; then 12348 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' 12349 else 12350 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' 12351 fi 12352 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12353 hardcode_libdir_separator=: 12354 hardcode_direct=yes 12355 12356 # hardcode_minus_L: Not really in the search PATH, 12357 # but as the default location of the library. 12358 hardcode_minus_L=yes 12359 export_dynamic_flag_spec='$wl-E' 12360 ;; 12361 12362 hpux10*) 12363 if test yes,no = "$GCC,$with_gnu_ld"; then 12364 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12365 else 12366 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12367 fi 12368 if test no = "$with_gnu_ld"; then 12369 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12370 hardcode_libdir_separator=: 12371 hardcode_direct=yes 12372 hardcode_direct_absolute=yes 12373 export_dynamic_flag_spec='$wl-E' 12374 # hardcode_minus_L: Not really in the search PATH, 12375 # but as the default location of the library. 12376 hardcode_minus_L=yes 12377 fi 12378 ;; 12379 12380 hpux11*) 12381 if test yes,no = "$GCC,$with_gnu_ld"; then 12382 case $host_cpu in 12383 hppa*64*) 12384 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12385 ;; 12386 ia64*) 12387 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12388 ;; 12389 *) 12390 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12391 ;; 12392 esac 12393 else 12394 case $host_cpu in 12395 hppa*64*) 12396 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12397 ;; 12398 ia64*) 12399 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12400 ;; 12401 *) 12402 12403 # Older versions of the 11.00 compiler do not understand -b yet 12404 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12406$as_echo_n "checking if $CC understands -b... " >&6; } 12407if ${lt_cv_prog_compiler__b+:} false; then : 12408 $as_echo_n "(cached) " >&6 12409else 12410 lt_cv_prog_compiler__b=no 12411 save_LDFLAGS=$LDFLAGS 12412 LDFLAGS="$LDFLAGS -b" 12413 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12414 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12415 # The linker can only warn and ignore the option if not recognized 12416 # So say no if there are warnings 12417 if test -s conftest.err; then 12418 # Append any errors to the config.log. 12419 cat conftest.err 1>&5 12420 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12422 if diff conftest.exp conftest.er2 >/dev/null; then 12423 lt_cv_prog_compiler__b=yes 12424 fi 12425 else 12426 lt_cv_prog_compiler__b=yes 12427 fi 12428 fi 12429 $RM -r conftest* 12430 LDFLAGS=$save_LDFLAGS 12431 12432fi 12433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12434$as_echo "$lt_cv_prog_compiler__b" >&6; } 12435 12436if test yes = "$lt_cv_prog_compiler__b"; then 12437 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12438else 12439 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12440fi 12441 12442 ;; 12443 esac 12444 fi 12445 if test no = "$with_gnu_ld"; then 12446 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12447 hardcode_libdir_separator=: 12448 12449 case $host_cpu in 12450 hppa*64*|ia64*) 12451 hardcode_direct=no 12452 hardcode_shlibpath_var=no 12453 ;; 12454 *) 12455 hardcode_direct=yes 12456 hardcode_direct_absolute=yes 12457 export_dynamic_flag_spec='$wl-E' 12458 12459 # hardcode_minus_L: Not really in the search PATH, 12460 # but as the default location of the library. 12461 hardcode_minus_L=yes 12462 ;; 12463 esac 12464 fi 12465 ;; 12466 12467 irix5* | irix6* | nonstopux*) 12468 if test yes = "$GCC"; then 12469 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' 12470 # Try to use the -exported_symbol ld option, if it does not 12471 # work, assume that -exports_file does not work either and 12472 # implicitly export all symbols. 12473 # This should be the same for all languages, so no per-tag cache variable. 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12475$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12476if ${lt_cv_irix_exported_symbol+:} false; then : 12477 $as_echo_n "(cached) " >&6 12478else 12479 save_LDFLAGS=$LDFLAGS 12480 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12482/* end confdefs.h. */ 12483int foo (void) { return 0; } 12484_ACEOF 12485if ac_fn_c_try_link "$LINENO"; then : 12486 lt_cv_irix_exported_symbol=yes 12487else 12488 lt_cv_irix_exported_symbol=no 12489fi 12490rm -f core conftest.err conftest.$ac_objext \ 12491 conftest$ac_exeext conftest.$ac_ext 12492 LDFLAGS=$save_LDFLAGS 12493fi 12494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12495$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12496 if test yes = "$lt_cv_irix_exported_symbol"; then 12497 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' 12498 fi 12499 else 12500 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' 12501 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' 12502 fi 12503 archive_cmds_need_lc='no' 12504 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12505 hardcode_libdir_separator=: 12506 inherit_rpath=yes 12507 link_all_deplibs=yes 12508 ;; 12509 12510 linux*) 12511 case $cc_basename in 12512 tcc*) 12513 # Fabrice Bellard et al's Tiny C Compiler 12514 ld_shlibs=yes 12515 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12516 ;; 12517 esac 12518 ;; 12519 12520 netbsd*) 12521 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12523 else 12524 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12525 fi 12526 hardcode_libdir_flag_spec='-R$libdir' 12527 hardcode_direct=yes 12528 hardcode_shlibpath_var=no 12529 ;; 12530 12531 newsos6) 12532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12533 hardcode_direct=yes 12534 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12535 hardcode_libdir_separator=: 12536 hardcode_shlibpath_var=no 12537 ;; 12538 12539 *nto* | *qnx*) 12540 ;; 12541 12542 openbsd* | bitrig*) 12543 if test -f /usr/libexec/ld.so; then 12544 hardcode_direct=yes 12545 hardcode_shlibpath_var=no 12546 hardcode_direct_absolute=yes 12547 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12549 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12550 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12551 export_dynamic_flag_spec='$wl-E' 12552 else 12553 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12554 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12555 fi 12556 else 12557 ld_shlibs=no 12558 fi 12559 ;; 12560 12561 os2*) 12562 hardcode_libdir_flag_spec='-L$libdir' 12563 hardcode_minus_L=yes 12564 allow_undefined_flag=unsupported 12565 shrext_cmds=.dll 12566 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12567 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12568 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12569 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12570 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12571 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12572 emximp -o $lib $output_objdir/$libname.def' 12573 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12574 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12575 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12576 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12577 prefix_cmds="$SED"~ 12578 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12579 prefix_cmds="$prefix_cmds -e 1d"; 12580 fi~ 12581 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12582 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12583 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12584 emximp -o $lib $output_objdir/$libname.def' 12585 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12586 enable_shared_with_static_runtimes=yes 12587 ;; 12588 12589 osf3*) 12590 if test yes = "$GCC"; then 12591 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12592 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' 12593 else 12594 allow_undefined_flag=' -expect_unresolved \*' 12595 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' 12596 fi 12597 archive_cmds_need_lc='no' 12598 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12599 hardcode_libdir_separator=: 12600 ;; 12601 12602 osf4* | osf5*) # as osf3* with the addition of -msym flag 12603 if test yes = "$GCC"; then 12604 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12605 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' 12606 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12607 else 12608 allow_undefined_flag=' -expect_unresolved \*' 12609 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' 12610 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~ 12611 $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' 12612 12613 # Both c and cxx compiler support -rpath directly 12614 hardcode_libdir_flag_spec='-rpath $libdir' 12615 fi 12616 archive_cmds_need_lc='no' 12617 hardcode_libdir_separator=: 12618 ;; 12619 12620 solaris*) 12621 no_undefined_flag=' -z defs' 12622 if test yes = "$GCC"; then 12623 wlarc='$wl' 12624 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12625 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12626 $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' 12627 else 12628 case `$CC -V 2>&1` in 12629 *"Compilers 5.0"*) 12630 wlarc='' 12631 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12633 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12634 ;; 12635 *) 12636 wlarc='$wl' 12637 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12639 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12640 ;; 12641 esac 12642 fi 12643 hardcode_libdir_flag_spec='-R$libdir' 12644 hardcode_shlibpath_var=no 12645 case $host_os in 12646 solaris2.[0-5] | solaris2.[0-5].*) ;; 12647 *) 12648 # The compiler driver will combine and reorder linker options, 12649 # but understands '-z linker_flag'. GCC discards it without '$wl', 12650 # but is careful enough not to reorder. 12651 # Supported since Solaris 2.6 (maybe 2.5.1?) 12652 if test yes = "$GCC"; then 12653 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 12654 else 12655 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12656 fi 12657 ;; 12658 esac 12659 link_all_deplibs=yes 12660 ;; 12661 12662 sunos4*) 12663 if test sequent = "$host_vendor"; then 12664 # Use $CC to link under sequent, because it throws in some extra .o 12665 # files that make .init and .fini sections work. 12666 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12667 else 12668 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12669 fi 12670 hardcode_libdir_flag_spec='-L$libdir' 12671 hardcode_direct=yes 12672 hardcode_minus_L=yes 12673 hardcode_shlibpath_var=no 12674 ;; 12675 12676 sysv4) 12677 case $host_vendor in 12678 sni) 12679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12680 hardcode_direct=yes # is this really true??? 12681 ;; 12682 siemens) 12683 ## LD is ld it makes a PLAMLIB 12684 ## CC just makes a GrossModule. 12685 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12686 reload_cmds='$CC -r -o $output$reload_objs' 12687 hardcode_direct=no 12688 ;; 12689 motorola) 12690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12691 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12692 ;; 12693 esac 12694 runpath_var='LD_RUN_PATH' 12695 hardcode_shlibpath_var=no 12696 ;; 12697 12698 sysv4.3*) 12699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12700 hardcode_shlibpath_var=no 12701 export_dynamic_flag_spec='-Bexport' 12702 ;; 12703 12704 sysv4*MP*) 12705 if test -d /usr/nec; then 12706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12707 hardcode_shlibpath_var=no 12708 runpath_var=LD_RUN_PATH 12709 hardcode_runpath_var=yes 12710 ld_shlibs=yes 12711 fi 12712 ;; 12713 12714 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12715 no_undefined_flag='$wl-z,text' 12716 archive_cmds_need_lc=no 12717 hardcode_shlibpath_var=no 12718 runpath_var='LD_RUN_PATH' 12719 12720 if test yes = "$GCC"; then 12721 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12722 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12723 else 12724 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12725 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12726 fi 12727 ;; 12728 12729 sysv5* | sco3.2v5* | sco5v6*) 12730 # Note: We CANNOT use -z defs as we might desire, because we do not 12731 # link with -lc, and that would cause any symbols used from libc to 12732 # always be unresolved, which means just about no library would 12733 # ever link correctly. If we're not using GNU ld we use -z text 12734 # though, which does catch some bad symbols but isn't as heavy-handed 12735 # as -z defs. 12736 no_undefined_flag='$wl-z,text' 12737 allow_undefined_flag='$wl-z,nodefs' 12738 archive_cmds_need_lc=no 12739 hardcode_shlibpath_var=no 12740 hardcode_libdir_flag_spec='$wl-R,$libdir' 12741 hardcode_libdir_separator=':' 12742 link_all_deplibs=yes 12743 export_dynamic_flag_spec='$wl-Bexport' 12744 runpath_var='LD_RUN_PATH' 12745 12746 if test yes = "$GCC"; then 12747 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12748 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12749 else 12750 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12751 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12752 fi 12753 ;; 12754 12755 uts4*) 12756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12757 hardcode_libdir_flag_spec='-L$libdir' 12758 hardcode_shlibpath_var=no 12759 ;; 12760 12761 *) 12762 ld_shlibs=no 12763 ;; 12764 esac 12765 12766 if test sni = "$host_vendor"; then 12767 case $host in 12768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12769 export_dynamic_flag_spec='$wl-Blargedynsym' 12770 ;; 12771 esac 12772 fi 12773 fi 12774 12775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12776$as_echo "$ld_shlibs" >&6; } 12777test no = "$ld_shlibs" && can_build_shared=no 12778 12779with_gnu_ld=$with_gnu_ld 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795# 12796# Do we need to explicitly link libc? 12797# 12798case "x$archive_cmds_need_lc" in 12799x|xyes) 12800 # Assume -lc should be added 12801 archive_cmds_need_lc=yes 12802 12803 if test yes,yes = "$GCC,$enable_shared"; then 12804 case $archive_cmds in 12805 *'~'*) 12806 # FIXME: we may have to deal with multi-command sequences. 12807 ;; 12808 '$CC '*) 12809 # Test whether the compiler implicitly links with -lc since on some 12810 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12811 # to ld, don't add -lc before -lgcc. 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12813$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12814if ${lt_cv_archive_cmds_need_lc+:} false; then : 12815 $as_echo_n "(cached) " >&6 12816else 12817 $RM conftest* 12818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12819 12820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12821 (eval $ac_compile) 2>&5 12822 ac_status=$? 12823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12824 test $ac_status = 0; } 2>conftest.err; then 12825 soname=conftest 12826 lib=conftest 12827 libobjs=conftest.$ac_objext 12828 deplibs= 12829 wl=$lt_prog_compiler_wl 12830 pic_flag=$lt_prog_compiler_pic 12831 compiler_flags=-v 12832 linker_flags=-v 12833 verstring= 12834 output_objdir=. 12835 libname=conftest 12836 lt_save_allow_undefined_flag=$allow_undefined_flag 12837 allow_undefined_flag= 12838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12839 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12840 ac_status=$? 12841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12842 test $ac_status = 0; } 12843 then 12844 lt_cv_archive_cmds_need_lc=no 12845 else 12846 lt_cv_archive_cmds_need_lc=yes 12847 fi 12848 allow_undefined_flag=$lt_save_allow_undefined_flag 12849 else 12850 cat conftest.err 1>&5 12851 fi 12852 $RM conftest* 12853 12854fi 12855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12856$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12857 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12858 ;; 12859 esac 12860 fi 12861 ;; 12862esac 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 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13016$as_echo_n "checking dynamic linker characteristics... " >&6; } 13017 13018if test yes = "$GCC"; then 13019 case $host_os in 13020 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13021 *) lt_awk_arg='/^libraries:/' ;; 13022 esac 13023 case $host_os in 13024 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13025 *) lt_sed_strip_eq='s|=/|/|g' ;; 13026 esac 13027 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13028 case $lt_search_path_spec in 13029 *\;*) 13030 # if the path contains ";" then we assume it to be the separator 13031 # otherwise default to the standard path separator (i.e. ":") - it is 13032 # assumed that no part of a normal pathname contains ";" but that should 13033 # okay in the real world where ";" in dirpaths is itself problematic. 13034 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13035 ;; 13036 *) 13037 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13038 ;; 13039 esac 13040 # Ok, now we have the path, separated by spaces, we can step through it 13041 # and add multilib dir if necessary... 13042 lt_tmp_lt_search_path_spec= 13043 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13044 # ...but if some path component already ends with the multilib dir we assume 13045 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13046 case "$lt_multi_os_dir; $lt_search_path_spec " in 13047 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13048 lt_multi_os_dir= 13049 ;; 13050 esac 13051 for lt_sys_path in $lt_search_path_spec; do 13052 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13053 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13054 elif test -n "$lt_multi_os_dir"; then 13055 test -d "$lt_sys_path" && \ 13056 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13057 fi 13058 done 13059 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13060BEGIN {RS = " "; FS = "/|\n";} { 13061 lt_foo = ""; 13062 lt_count = 0; 13063 for (lt_i = NF; lt_i > 0; lt_i--) { 13064 if ($lt_i != "" && $lt_i != ".") { 13065 if ($lt_i == "..") { 13066 lt_count++; 13067 } else { 13068 if (lt_count == 0) { 13069 lt_foo = "/" $lt_i lt_foo; 13070 } else { 13071 lt_count--; 13072 } 13073 } 13074 } 13075 } 13076 if (lt_foo != "") { lt_freq[lt_foo]++; } 13077 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13078}'` 13079 # AWK program above erroneously prepends '/' to C:/dos/paths 13080 # for these hosts. 13081 case $host_os in 13082 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13083 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13084 esac 13085 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13086else 13087 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13088fi 13089library_names_spec= 13090libname_spec='lib$name' 13091soname_spec= 13092shrext_cmds=.so 13093postinstall_cmds= 13094postuninstall_cmds= 13095finish_cmds= 13096finish_eval= 13097shlibpath_var= 13098shlibpath_overrides_runpath=unknown 13099version_type=none 13100dynamic_linker="$host_os ld.so" 13101sys_lib_dlsearch_path_spec="/lib /usr/lib" 13102need_lib_prefix=unknown 13103hardcode_into_libs=no 13104 13105# when you set need_version to no, make sure it does not cause -set_version 13106# flags to be left without arguments 13107need_version=unknown 13108 13109 13110 13111case $host_os in 13112aix3*) 13113 version_type=linux # correct to gnu/linux during the next big refactor 13114 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13115 shlibpath_var=LIBPATH 13116 13117 # AIX 3 has no versioning support, so we append a major version to the name. 13118 soname_spec='$libname$release$shared_ext$major' 13119 ;; 13120 13121aix[4-9]*) 13122 version_type=linux # correct to gnu/linux during the next big refactor 13123 need_lib_prefix=no 13124 need_version=no 13125 hardcode_into_libs=yes 13126 if test ia64 = "$host_cpu"; then 13127 # AIX 5 supports IA64 13128 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13129 shlibpath_var=LD_LIBRARY_PATH 13130 else 13131 # With GCC up to 2.95.x, collect2 would create an import file 13132 # for dependence libraries. The import file would start with 13133 # the line '#! .'. This would cause the generated library to 13134 # depend on '.', always an invalid library. This was fixed in 13135 # development snapshots of GCC prior to 3.0. 13136 case $host_os in 13137 aix4 | aix4.[01] | aix4.[01].*) 13138 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13139 echo ' yes ' 13140 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13141 : 13142 else 13143 can_build_shared=no 13144 fi 13145 ;; 13146 esac 13147 # Using Import Files as archive members, it is possible to support 13148 # filename-based versioning of shared library archives on AIX. While 13149 # this would work for both with and without runtime linking, it will 13150 # prevent static linking of such archives. So we do filename-based 13151 # shared library versioning with .so extension only, which is used 13152 # when both runtime linking and shared linking is enabled. 13153 # Unfortunately, runtime linking may impact performance, so we do 13154 # not want this to be the default eventually. Also, we use the 13155 # versioned .so libs for executables only if there is the -brtl 13156 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13157 # To allow for filename-based versioning support, we need to create 13158 # libNAME.so.V as an archive file, containing: 13159 # *) an Import File, referring to the versioned filename of the 13160 # archive as well as the shared archive member, telling the 13161 # bitwidth (32 or 64) of that shared object, and providing the 13162 # list of exported symbols of that shared object, eventually 13163 # decorated with the 'weak' keyword 13164 # *) the shared object with the F_LOADONLY flag set, to really avoid 13165 # it being seen by the linker. 13166 # At run time we better use the real file rather than another symlink, 13167 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13168 13169 case $with_aix_soname,$aix_use_runtimelinking in 13170 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13171 # soname into executable. Probably we can add versioning support to 13172 # collect2, so additional links can be useful in future. 13173 aix,yes) # traditional libtool 13174 dynamic_linker='AIX unversionable lib.so' 13175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13176 # instead of lib<name>.a to let people know that these are not 13177 # typical AIX shared libraries. 13178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13179 ;; 13180 aix,no) # traditional AIX only 13181 dynamic_linker='AIX lib.a(lib.so.V)' 13182 # We preserve .a as extension for shared libraries through AIX4.2 13183 # and later when we are not doing run time linking. 13184 library_names_spec='$libname$release.a $libname.a' 13185 soname_spec='$libname$release$shared_ext$major' 13186 ;; 13187 svr4,*) # full svr4 only 13188 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13189 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13190 # We do not specify a path in Import Files, so LIBPATH fires. 13191 shlibpath_overrides_runpath=yes 13192 ;; 13193 *,yes) # both, prefer svr4 13194 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13195 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13196 # unpreferred sharedlib libNAME.a needs extra handling 13197 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"' 13198 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"' 13199 # We do not specify a path in Import Files, so LIBPATH fires. 13200 shlibpath_overrides_runpath=yes 13201 ;; 13202 *,no) # both, prefer aix 13203 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13204 library_names_spec='$libname$release.a $libname.a' 13205 soname_spec='$libname$release$shared_ext$major' 13206 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13207 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)' 13208 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"' 13209 ;; 13210 esac 13211 shlibpath_var=LIBPATH 13212 fi 13213 ;; 13214 13215amigaos*) 13216 case $host_cpu in 13217 powerpc) 13218 # Since July 2007 AmigaOS4 officially supports .so libraries. 13219 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13221 ;; 13222 m68k) 13223 library_names_spec='$libname.ixlibrary $libname.a' 13224 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13225 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' 13226 ;; 13227 esac 13228 ;; 13229 13230beos*) 13231 library_names_spec='$libname$shared_ext' 13232 dynamic_linker="$host_os ld.so" 13233 shlibpath_var=LIBRARY_PATH 13234 ;; 13235 13236bsdi[45]*) 13237 version_type=linux # correct to gnu/linux during the next big refactor 13238 need_version=no 13239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13240 soname_spec='$libname$release$shared_ext$major' 13241 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13242 shlibpath_var=LD_LIBRARY_PATH 13243 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13244 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13245 # the default ld.so.conf also contains /usr/contrib/lib and 13246 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13247 # libtool to hard-code these into programs 13248 ;; 13249 13250cygwin* | mingw* | pw32* | cegcc*) 13251 version_type=windows 13252 shrext_cmds=.dll 13253 need_version=no 13254 need_lib_prefix=no 13255 13256 case $GCC,$cc_basename in 13257 yes,*) 13258 # gcc 13259 library_names_spec='$libname.dll.a' 13260 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13261 postinstall_cmds='base_file=`basename \$file`~ 13262 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13263 dldir=$destdir/`dirname \$dlpath`~ 13264 test -d \$dldir || mkdir -p \$dldir~ 13265 $install_prog $dir/$dlname \$dldir/$dlname~ 13266 chmod a+x \$dldir/$dlname~ 13267 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13268 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13269 fi' 13270 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13271 dlpath=$dir/\$dldll~ 13272 $RM \$dlpath' 13273 shlibpath_overrides_runpath=yes 13274 13275 case $host_os in 13276 cygwin*) 13277 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13278 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13279 13280 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13281 ;; 13282 mingw* | cegcc*) 13283 # MinGW DLLs use traditional 'lib' prefix 13284 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13285 ;; 13286 pw32*) 13287 # pw32 DLLs use 'pw' prefix rather than 'lib' 13288 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13289 ;; 13290 esac 13291 dynamic_linker='Win32 ld.exe' 13292 ;; 13293 13294 *,cl*) 13295 # Native MSVC 13296 libname_spec='$name' 13297 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13298 library_names_spec='$libname.dll.lib' 13299 13300 case $build_os in 13301 mingw*) 13302 sys_lib_search_path_spec= 13303 lt_save_ifs=$IFS 13304 IFS=';' 13305 for lt_path in $LIB 13306 do 13307 IFS=$lt_save_ifs 13308 # Let DOS variable expansion print the short 8.3 style file name. 13309 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13310 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13311 done 13312 IFS=$lt_save_ifs 13313 # Convert to MSYS style. 13314 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13315 ;; 13316 cygwin*) 13317 # Convert to unix form, then to dos form, then back to unix form 13318 # but this time dos style (no spaces!) so that the unix form looks 13319 # like /cygdrive/c/PROGRA~1:/cygdr... 13320 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13321 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13322 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13323 ;; 13324 *) 13325 sys_lib_search_path_spec=$LIB 13326 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13327 # It is most probably a Windows format PATH. 13328 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13329 else 13330 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13331 fi 13332 # FIXME: find the short name or the path components, as spaces are 13333 # common. (e.g. "Program Files" -> "PROGRA~1") 13334 ;; 13335 esac 13336 13337 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13338 postinstall_cmds='base_file=`basename \$file`~ 13339 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13340 dldir=$destdir/`dirname \$dlpath`~ 13341 test -d \$dldir || mkdir -p \$dldir~ 13342 $install_prog $dir/$dlname \$dldir/$dlname' 13343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13344 dlpath=$dir/\$dldll~ 13345 $RM \$dlpath' 13346 shlibpath_overrides_runpath=yes 13347 dynamic_linker='Win32 link.exe' 13348 ;; 13349 13350 *) 13351 # Assume MSVC wrapper 13352 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13353 dynamic_linker='Win32 ld.exe' 13354 ;; 13355 esac 13356 # FIXME: first we should search . and the directory the executable is in 13357 shlibpath_var=PATH 13358 ;; 13359 13360darwin* | rhapsody*) 13361 dynamic_linker="$host_os dyld" 13362 version_type=darwin 13363 need_lib_prefix=no 13364 need_version=no 13365 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13366 soname_spec='$libname$release$major$shared_ext' 13367 shlibpath_overrides_runpath=yes 13368 shlibpath_var=DYLD_LIBRARY_PATH 13369 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13370 13371 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13372 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13373 ;; 13374 13375dgux*) 13376 version_type=linux # correct to gnu/linux during the next big refactor 13377 need_lib_prefix=no 13378 need_version=no 13379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13380 soname_spec='$libname$release$shared_ext$major' 13381 shlibpath_var=LD_LIBRARY_PATH 13382 ;; 13383 13384freebsd* | dragonfly*) 13385 # DragonFly does not have aout. When/if they implement a new 13386 # versioning mechanism, adjust this. 13387 if test -x /usr/bin/objformat; then 13388 objformat=`/usr/bin/objformat` 13389 else 13390 case $host_os in 13391 freebsd[23].*) objformat=aout ;; 13392 *) objformat=elf ;; 13393 esac 13394 fi 13395 version_type=freebsd-$objformat 13396 case $version_type in 13397 freebsd-elf*) 13398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13399 soname_spec='$libname$release$shared_ext$major' 13400 need_version=no 13401 need_lib_prefix=no 13402 ;; 13403 freebsd-*) 13404 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13405 need_version=yes 13406 ;; 13407 esac 13408 shlibpath_var=LD_LIBRARY_PATH 13409 case $host_os in 13410 freebsd2.*) 13411 shlibpath_overrides_runpath=yes 13412 ;; 13413 freebsd3.[01]* | freebsdelf3.[01]*) 13414 shlibpath_overrides_runpath=yes 13415 hardcode_into_libs=yes 13416 ;; 13417 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13418 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13419 shlibpath_overrides_runpath=no 13420 hardcode_into_libs=yes 13421 ;; 13422 *) # from 4.6 on, and DragonFly 13423 shlibpath_overrides_runpath=yes 13424 hardcode_into_libs=yes 13425 ;; 13426 esac 13427 ;; 13428 13429haiku*) 13430 version_type=linux # correct to gnu/linux during the next big refactor 13431 need_lib_prefix=no 13432 need_version=no 13433 dynamic_linker="$host_os runtime_loader" 13434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13435 soname_spec='$libname$release$shared_ext$major' 13436 shlibpath_var=LIBRARY_PATH 13437 shlibpath_overrides_runpath=no 13438 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13439 hardcode_into_libs=yes 13440 ;; 13441 13442hpux9* | hpux10* | hpux11*) 13443 # Give a soname corresponding to the major version so that dld.sl refuses to 13444 # link against other versions. 13445 version_type=sunos 13446 need_lib_prefix=no 13447 need_version=no 13448 case $host_cpu in 13449 ia64*) 13450 shrext_cmds='.so' 13451 hardcode_into_libs=yes 13452 dynamic_linker="$host_os dld.so" 13453 shlibpath_var=LD_LIBRARY_PATH 13454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13456 soname_spec='$libname$release$shared_ext$major' 13457 if test 32 = "$HPUX_IA64_MODE"; then 13458 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13459 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13460 else 13461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13462 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13463 fi 13464 ;; 13465 hppa*64*) 13466 shrext_cmds='.sl' 13467 hardcode_into_libs=yes 13468 dynamic_linker="$host_os dld.sl" 13469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13472 soname_spec='$libname$release$shared_ext$major' 13473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13475 ;; 13476 *) 13477 shrext_cmds='.sl' 13478 dynamic_linker="$host_os dld.sl" 13479 shlibpath_var=SHLIB_PATH 13480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13482 soname_spec='$libname$release$shared_ext$major' 13483 ;; 13484 esac 13485 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13486 postinstall_cmds='chmod 555 $lib' 13487 # or fails outright, so override atomically: 13488 install_override_mode=555 13489 ;; 13490 13491interix[3-9]*) 13492 version_type=linux # correct to gnu/linux during the next big refactor 13493 need_lib_prefix=no 13494 need_version=no 13495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13496 soname_spec='$libname$release$shared_ext$major' 13497 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13498 shlibpath_var=LD_LIBRARY_PATH 13499 shlibpath_overrides_runpath=no 13500 hardcode_into_libs=yes 13501 ;; 13502 13503irix5* | irix6* | nonstopux*) 13504 case $host_os in 13505 nonstopux*) version_type=nonstopux ;; 13506 *) 13507 if test yes = "$lt_cv_prog_gnu_ld"; then 13508 version_type=linux # correct to gnu/linux during the next big refactor 13509 else 13510 version_type=irix 13511 fi ;; 13512 esac 13513 need_lib_prefix=no 13514 need_version=no 13515 soname_spec='$libname$release$shared_ext$major' 13516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13517 case $host_os in 13518 irix5* | nonstopux*) 13519 libsuff= shlibsuff= 13520 ;; 13521 *) 13522 case $LD in # libtool.m4 will add one of these switches to LD 13523 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13524 libsuff= shlibsuff= libmagic=32-bit;; 13525 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13526 libsuff=32 shlibsuff=N32 libmagic=N32;; 13527 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13528 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13529 *) libsuff= shlibsuff= libmagic=never-match;; 13530 esac 13531 ;; 13532 esac 13533 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13534 shlibpath_overrides_runpath=no 13535 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13536 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13537 hardcode_into_libs=yes 13538 ;; 13539 13540# No shared lib support for Linux oldld, aout, or coff. 13541linux*oldld* | linux*aout* | linux*coff*) 13542 dynamic_linker=no 13543 ;; 13544 13545linux*android*) 13546 version_type=none # Android doesn't support versioned libraries. 13547 need_lib_prefix=no 13548 need_version=no 13549 library_names_spec='$libname$release$shared_ext' 13550 soname_spec='$libname$release$shared_ext' 13551 finish_cmds= 13552 shlibpath_var=LD_LIBRARY_PATH 13553 shlibpath_overrides_runpath=yes 13554 13555 # This implies no fast_install, which is unacceptable. 13556 # Some rework will be needed to allow for fast_install 13557 # before this can be enabled. 13558 hardcode_into_libs=yes 13559 13560 dynamic_linker='Android linker' 13561 # Don't embed -rpath directories since the linker doesn't support them. 13562 hardcode_libdir_flag_spec='-L$libdir' 13563 ;; 13564 13565# This must be glibc/ELF. 13566linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13567 version_type=linux # correct to gnu/linux during the next big refactor 13568 need_lib_prefix=no 13569 need_version=no 13570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13571 soname_spec='$libname$release$shared_ext$major' 13572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13573 shlibpath_var=LD_LIBRARY_PATH 13574 shlibpath_overrides_runpath=no 13575 13576 # Some binutils ld are patched to set DT_RUNPATH 13577 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13578 $as_echo_n "(cached) " >&6 13579else 13580 lt_cv_shlibpath_overrides_runpath=no 13581 save_LDFLAGS=$LDFLAGS 13582 save_libdir=$libdir 13583 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13584 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13586/* end confdefs.h. */ 13587 13588int 13589main () 13590{ 13591 13592 ; 13593 return 0; 13594} 13595_ACEOF 13596if ac_fn_c_try_link "$LINENO"; then : 13597 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13598 lt_cv_shlibpath_overrides_runpath=yes 13599fi 13600fi 13601rm -f core conftest.err conftest.$ac_objext \ 13602 conftest$ac_exeext conftest.$ac_ext 13603 LDFLAGS=$save_LDFLAGS 13604 libdir=$save_libdir 13605 13606fi 13607 13608 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13609 13610 # This implies no fast_install, which is unacceptable. 13611 # Some rework will be needed to allow for fast_install 13612 # before this can be enabled. 13613 hardcode_into_libs=yes 13614 13615 # Add ABI-specific directories to the system library path. 13616 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 13617 13618 # Ideally, we could use ldconfig to report *all* directores which are 13619 # searched for libraries, however this is still not possible. Aside from not 13620 # being certain /sbin/ldconfig is available, command 13621 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13622 # even though it is searched at run-time. Try to do the best guess by 13623 # appending ld.so.conf contents (and includes) to the search path. 13624 if test -f /etc/ld.so.conf; then 13625 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' ' '` 13626 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13627 fi 13628 13629 # We used to test for /lib/ld.so.1 and disable shared libraries on 13630 # powerpc, because MkLinux only supported shared libraries with the 13631 # GNU dynamic linker. Since this was broken with cross compilers, 13632 # most powerpc-linux boxes support dynamic linking these days and 13633 # people can always --disable-shared, the test was removed, and we 13634 # assume the GNU/Linux dynamic linker is in use. 13635 dynamic_linker='GNU/Linux ld.so' 13636 ;; 13637 13638netbsd*) 13639 version_type=sunos 13640 need_lib_prefix=no 13641 need_version=no 13642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13643 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13645 dynamic_linker='NetBSD (a.out) ld.so' 13646 else 13647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13648 soname_spec='$libname$release$shared_ext$major' 13649 dynamic_linker='NetBSD ld.elf_so' 13650 fi 13651 shlibpath_var=LD_LIBRARY_PATH 13652 shlibpath_overrides_runpath=yes 13653 hardcode_into_libs=yes 13654 ;; 13655 13656newsos6) 13657 version_type=linux # correct to gnu/linux during the next big refactor 13658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13659 shlibpath_var=LD_LIBRARY_PATH 13660 shlibpath_overrides_runpath=yes 13661 ;; 13662 13663*nto* | *qnx*) 13664 version_type=qnx 13665 need_lib_prefix=no 13666 need_version=no 13667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13668 soname_spec='$libname$release$shared_ext$major' 13669 shlibpath_var=LD_LIBRARY_PATH 13670 shlibpath_overrides_runpath=no 13671 hardcode_into_libs=yes 13672 dynamic_linker='ldqnx.so' 13673 ;; 13674 13675openbsd* | bitrig*) 13676 version_type=sunos 13677 sys_lib_dlsearch_path_spec=/usr/lib 13678 need_lib_prefix=no 13679 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13680 need_version=no 13681 else 13682 need_version=yes 13683 fi 13684 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13686 shlibpath_var=LD_LIBRARY_PATH 13687 shlibpath_overrides_runpath=yes 13688 ;; 13689 13690os2*) 13691 libname_spec='$name' 13692 version_type=windows 13693 shrext_cmds=.dll 13694 need_version=no 13695 need_lib_prefix=no 13696 # OS/2 can only load a DLL with a base name of 8 characters or less. 13697 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13698 v=$($ECHO $release$versuffix | tr -d .-); 13699 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13700 $ECHO $n$v`$shared_ext' 13701 library_names_spec='${libname}_dll.$libext' 13702 dynamic_linker='OS/2 ld.exe' 13703 shlibpath_var=BEGINLIBPATH 13704 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13706 postinstall_cmds='base_file=`basename \$file`~ 13707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13708 dldir=$destdir/`dirname \$dlpath`~ 13709 test -d \$dldir || mkdir -p \$dldir~ 13710 $install_prog $dir/$dlname \$dldir/$dlname~ 13711 chmod a+x \$dldir/$dlname~ 13712 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13713 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13714 fi' 13715 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13716 dlpath=$dir/\$dldll~ 13717 $RM \$dlpath' 13718 ;; 13719 13720osf3* | osf4* | osf5*) 13721 version_type=osf 13722 need_lib_prefix=no 13723 need_version=no 13724 soname_spec='$libname$release$shared_ext$major' 13725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13726 shlibpath_var=LD_LIBRARY_PATH 13727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13729 ;; 13730 13731rdos*) 13732 dynamic_linker=no 13733 ;; 13734 13735solaris*) 13736 version_type=linux # correct to gnu/linux during the next big refactor 13737 need_lib_prefix=no 13738 need_version=no 13739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13740 soname_spec='$libname$release$shared_ext$major' 13741 shlibpath_var=LD_LIBRARY_PATH 13742 shlibpath_overrides_runpath=yes 13743 hardcode_into_libs=yes 13744 # ldd complains unless libraries are executable 13745 postinstall_cmds='chmod +x $lib' 13746 ;; 13747 13748sunos4*) 13749 version_type=sunos 13750 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13752 shlibpath_var=LD_LIBRARY_PATH 13753 shlibpath_overrides_runpath=yes 13754 if test yes = "$with_gnu_ld"; then 13755 need_lib_prefix=no 13756 fi 13757 need_version=yes 13758 ;; 13759 13760sysv4 | sysv4.3*) 13761 version_type=linux # correct to gnu/linux during the next big refactor 13762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13763 soname_spec='$libname$release$shared_ext$major' 13764 shlibpath_var=LD_LIBRARY_PATH 13765 case $host_vendor in 13766 sni) 13767 shlibpath_overrides_runpath=no 13768 need_lib_prefix=no 13769 runpath_var=LD_RUN_PATH 13770 ;; 13771 siemens) 13772 need_lib_prefix=no 13773 ;; 13774 motorola) 13775 need_lib_prefix=no 13776 need_version=no 13777 shlibpath_overrides_runpath=no 13778 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13779 ;; 13780 esac 13781 ;; 13782 13783sysv4*MP*) 13784 if test -d /usr/nec; then 13785 version_type=linux # correct to gnu/linux during the next big refactor 13786 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13787 soname_spec='$libname$shared_ext.$major' 13788 shlibpath_var=LD_LIBRARY_PATH 13789 fi 13790 ;; 13791 13792sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13793 version_type=sco 13794 need_lib_prefix=no 13795 need_version=no 13796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13797 soname_spec='$libname$release$shared_ext$major' 13798 shlibpath_var=LD_LIBRARY_PATH 13799 shlibpath_overrides_runpath=yes 13800 hardcode_into_libs=yes 13801 if test yes = "$with_gnu_ld"; then 13802 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13803 else 13804 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13805 case $host_os in 13806 sco3.2v5*) 13807 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13808 ;; 13809 esac 13810 fi 13811 sys_lib_dlsearch_path_spec='/usr/lib' 13812 ;; 13813 13814tpf*) 13815 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13816 version_type=linux # correct to gnu/linux during the next big refactor 13817 need_lib_prefix=no 13818 need_version=no 13819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13820 shlibpath_var=LD_LIBRARY_PATH 13821 shlibpath_overrides_runpath=no 13822 hardcode_into_libs=yes 13823 ;; 13824 13825uts4*) 13826 version_type=linux # correct to gnu/linux during the next big refactor 13827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13828 soname_spec='$libname$release$shared_ext$major' 13829 shlibpath_var=LD_LIBRARY_PATH 13830 ;; 13831 13832*) 13833 dynamic_linker=no 13834 ;; 13835esac 13836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13837$as_echo "$dynamic_linker" >&6; } 13838test no = "$dynamic_linker" && can_build_shared=no 13839 13840variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13841if test yes = "$GCC"; then 13842 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13843fi 13844 13845if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13846 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13847fi 13848 13849if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13850 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13851fi 13852 13853# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13854configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13855 13856# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13857func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13858 13859# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13860configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13959$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13960hardcode_action= 13961if test -n "$hardcode_libdir_flag_spec" || 13962 test -n "$runpath_var" || 13963 test yes = "$hardcode_automatic"; then 13964 13965 # We can hardcode non-existent directories. 13966 if test no != "$hardcode_direct" && 13967 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13968 # have to relink, otherwise we might link with an installed library 13969 # when we should be linking with a yet-to-be-installed one 13970 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13971 test no != "$hardcode_minus_L"; then 13972 # Linking always hardcodes the temporary library directory. 13973 hardcode_action=relink 13974 else 13975 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13976 hardcode_action=immediate 13977 fi 13978else 13979 # We cannot hardcode anything, or else we can only hardcode existing 13980 # directories. 13981 hardcode_action=unsupported 13982fi 13983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13984$as_echo "$hardcode_action" >&6; } 13985 13986if test relink = "$hardcode_action" || 13987 test yes = "$inherit_rpath"; then 13988 # Fast installation is not supported 13989 enable_fast_install=no 13990elif test yes = "$shlibpath_overrides_runpath" || 13991 test no = "$enable_shared"; then 13992 # Fast installation is not necessary 13993 enable_fast_install=needless 13994fi 13995 13996 13997 13998 13999 14000 14001 if test yes != "$enable_dlopen"; then 14002 enable_dlopen=unknown 14003 enable_dlopen_self=unknown 14004 enable_dlopen_self_static=unknown 14005else 14006 lt_cv_dlopen=no 14007 lt_cv_dlopen_libs= 14008 14009 case $host_os in 14010 beos*) 14011 lt_cv_dlopen=load_add_on 14012 lt_cv_dlopen_libs= 14013 lt_cv_dlopen_self=yes 14014 ;; 14015 14016 mingw* | pw32* | cegcc*) 14017 lt_cv_dlopen=LoadLibrary 14018 lt_cv_dlopen_libs= 14019 ;; 14020 14021 cygwin*) 14022 lt_cv_dlopen=dlopen 14023 lt_cv_dlopen_libs= 14024 ;; 14025 14026 darwin*) 14027 # if libdl is installed we need to link against it 14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14029$as_echo_n "checking for dlopen in -ldl... " >&6; } 14030if ${ac_cv_lib_dl_dlopen+:} false; then : 14031 $as_echo_n "(cached) " >&6 14032else 14033 ac_check_lib_save_LIBS=$LIBS 14034LIBS="-ldl $LIBS" 14035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14036/* end confdefs.h. */ 14037 14038/* Override any GCC internal prototype to avoid an error. 14039 Use char because int might match the return type of a GCC 14040 builtin and then its argument prototype would still apply. */ 14041#ifdef __cplusplus 14042extern "C" 14043#endif 14044char dlopen (); 14045int 14046main () 14047{ 14048return dlopen (); 14049 ; 14050 return 0; 14051} 14052_ACEOF 14053if ac_fn_c_try_link "$LINENO"; then : 14054 ac_cv_lib_dl_dlopen=yes 14055else 14056 ac_cv_lib_dl_dlopen=no 14057fi 14058rm -f core conftest.err conftest.$ac_objext \ 14059 conftest$ac_exeext conftest.$ac_ext 14060LIBS=$ac_check_lib_save_LIBS 14061fi 14062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14063$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14064if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14065 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14066else 14067 14068 lt_cv_dlopen=dyld 14069 lt_cv_dlopen_libs= 14070 lt_cv_dlopen_self=yes 14071 14072fi 14073 14074 ;; 14075 14076 tpf*) 14077 # Don't try to run any link tests for TPF. We know it's impossible 14078 # because TPF is a cross-compiler, and we know how we open DSOs. 14079 lt_cv_dlopen=dlopen 14080 lt_cv_dlopen_libs= 14081 lt_cv_dlopen_self=no 14082 ;; 14083 14084 *) 14085 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14086if test "x$ac_cv_func_shl_load" = xyes; then : 14087 lt_cv_dlopen=shl_load 14088else 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14090$as_echo_n "checking for shl_load in -ldld... " >&6; } 14091if ${ac_cv_lib_dld_shl_load+:} false; then : 14092 $as_echo_n "(cached) " >&6 14093else 14094 ac_check_lib_save_LIBS=$LIBS 14095LIBS="-ldld $LIBS" 14096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14097/* end confdefs.h. */ 14098 14099/* Override any GCC internal prototype to avoid an error. 14100 Use char because int might match the return type of a GCC 14101 builtin and then its argument prototype would still apply. */ 14102#ifdef __cplusplus 14103extern "C" 14104#endif 14105char shl_load (); 14106int 14107main () 14108{ 14109return shl_load (); 14110 ; 14111 return 0; 14112} 14113_ACEOF 14114if ac_fn_c_try_link "$LINENO"; then : 14115 ac_cv_lib_dld_shl_load=yes 14116else 14117 ac_cv_lib_dld_shl_load=no 14118fi 14119rm -f core conftest.err conftest.$ac_objext \ 14120 conftest$ac_exeext conftest.$ac_ext 14121LIBS=$ac_check_lib_save_LIBS 14122fi 14123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14124$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14125if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14126 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14127else 14128 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14129if test "x$ac_cv_func_dlopen" = xyes; then : 14130 lt_cv_dlopen=dlopen 14131else 14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14133$as_echo_n "checking for dlopen in -ldl... " >&6; } 14134if ${ac_cv_lib_dl_dlopen+:} false; then : 14135 $as_echo_n "(cached) " >&6 14136else 14137 ac_check_lib_save_LIBS=$LIBS 14138LIBS="-ldl $LIBS" 14139cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14140/* end confdefs.h. */ 14141 14142/* Override any GCC internal prototype to avoid an error. 14143 Use char because int might match the return type of a GCC 14144 builtin and then its argument prototype would still apply. */ 14145#ifdef __cplusplus 14146extern "C" 14147#endif 14148char dlopen (); 14149int 14150main () 14151{ 14152return dlopen (); 14153 ; 14154 return 0; 14155} 14156_ACEOF 14157if ac_fn_c_try_link "$LINENO"; then : 14158 ac_cv_lib_dl_dlopen=yes 14159else 14160 ac_cv_lib_dl_dlopen=no 14161fi 14162rm -f core conftest.err conftest.$ac_objext \ 14163 conftest$ac_exeext conftest.$ac_ext 14164LIBS=$ac_check_lib_save_LIBS 14165fi 14166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14167$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14168if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14169 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14170else 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14172$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14173if ${ac_cv_lib_svld_dlopen+:} false; then : 14174 $as_echo_n "(cached) " >&6 14175else 14176 ac_check_lib_save_LIBS=$LIBS 14177LIBS="-lsvld $LIBS" 14178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14179/* end confdefs.h. */ 14180 14181/* Override any GCC internal prototype to avoid an error. 14182 Use char because int might match the return type of a GCC 14183 builtin and then its argument prototype would still apply. */ 14184#ifdef __cplusplus 14185extern "C" 14186#endif 14187char dlopen (); 14188int 14189main () 14190{ 14191return dlopen (); 14192 ; 14193 return 0; 14194} 14195_ACEOF 14196if ac_fn_c_try_link "$LINENO"; then : 14197 ac_cv_lib_svld_dlopen=yes 14198else 14199 ac_cv_lib_svld_dlopen=no 14200fi 14201rm -f core conftest.err conftest.$ac_objext \ 14202 conftest$ac_exeext conftest.$ac_ext 14203LIBS=$ac_check_lib_save_LIBS 14204fi 14205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14206$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14207if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14208 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14209else 14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14211$as_echo_n "checking for dld_link in -ldld... " >&6; } 14212if ${ac_cv_lib_dld_dld_link+:} false; then : 14213 $as_echo_n "(cached) " >&6 14214else 14215 ac_check_lib_save_LIBS=$LIBS 14216LIBS="-ldld $LIBS" 14217cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14218/* end confdefs.h. */ 14219 14220/* Override any GCC internal prototype to avoid an error. 14221 Use char because int might match the return type of a GCC 14222 builtin and then its argument prototype would still apply. */ 14223#ifdef __cplusplus 14224extern "C" 14225#endif 14226char dld_link (); 14227int 14228main () 14229{ 14230return dld_link (); 14231 ; 14232 return 0; 14233} 14234_ACEOF 14235if ac_fn_c_try_link "$LINENO"; then : 14236 ac_cv_lib_dld_dld_link=yes 14237else 14238 ac_cv_lib_dld_dld_link=no 14239fi 14240rm -f core conftest.err conftest.$ac_objext \ 14241 conftest$ac_exeext conftest.$ac_ext 14242LIBS=$ac_check_lib_save_LIBS 14243fi 14244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14245$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14246if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14247 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14248fi 14249 14250 14251fi 14252 14253 14254fi 14255 14256 14257fi 14258 14259 14260fi 14261 14262 14263fi 14264 14265 ;; 14266 esac 14267 14268 if test no = "$lt_cv_dlopen"; then 14269 enable_dlopen=no 14270 else 14271 enable_dlopen=yes 14272 fi 14273 14274 case $lt_cv_dlopen in 14275 dlopen) 14276 save_CPPFLAGS=$CPPFLAGS 14277 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14278 14279 save_LDFLAGS=$LDFLAGS 14280 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14281 14282 save_LIBS=$LIBS 14283 LIBS="$lt_cv_dlopen_libs $LIBS" 14284 14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14286$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14287if ${lt_cv_dlopen_self+:} false; then : 14288 $as_echo_n "(cached) " >&6 14289else 14290 if test yes = "$cross_compiling"; then : 14291 lt_cv_dlopen_self=cross 14292else 14293 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14294 lt_status=$lt_dlunknown 14295 cat > conftest.$ac_ext <<_LT_EOF 14296#line $LINENO "configure" 14297#include "confdefs.h" 14298 14299#if HAVE_DLFCN_H 14300#include <dlfcn.h> 14301#endif 14302 14303#include <stdio.h> 14304 14305#ifdef RTLD_GLOBAL 14306# define LT_DLGLOBAL RTLD_GLOBAL 14307#else 14308# ifdef DL_GLOBAL 14309# define LT_DLGLOBAL DL_GLOBAL 14310# else 14311# define LT_DLGLOBAL 0 14312# endif 14313#endif 14314 14315/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14316 find out it does not work in some platform. */ 14317#ifndef LT_DLLAZY_OR_NOW 14318# ifdef RTLD_LAZY 14319# define LT_DLLAZY_OR_NOW RTLD_LAZY 14320# else 14321# ifdef DL_LAZY 14322# define LT_DLLAZY_OR_NOW DL_LAZY 14323# else 14324# ifdef RTLD_NOW 14325# define LT_DLLAZY_OR_NOW RTLD_NOW 14326# else 14327# ifdef DL_NOW 14328# define LT_DLLAZY_OR_NOW DL_NOW 14329# else 14330# define LT_DLLAZY_OR_NOW 0 14331# endif 14332# endif 14333# endif 14334# endif 14335#endif 14336 14337/* When -fvisibility=hidden is used, assume the code has been annotated 14338 correspondingly for the symbols needed. */ 14339#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14340int fnord () __attribute__((visibility("default"))); 14341#endif 14342 14343int fnord () { return 42; } 14344int main () 14345{ 14346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14347 int status = $lt_dlunknown; 14348 14349 if (self) 14350 { 14351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14352 else 14353 { 14354 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14355 else puts (dlerror ()); 14356 } 14357 /* dlclose (self); */ 14358 } 14359 else 14360 puts (dlerror ()); 14361 14362 return status; 14363} 14364_LT_EOF 14365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14366 (eval $ac_link) 2>&5 14367 ac_status=$? 14368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14369 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14370 (./conftest; exit; ) >&5 2>/dev/null 14371 lt_status=$? 14372 case x$lt_status in 14373 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14374 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14375 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14376 esac 14377 else : 14378 # compilation failed 14379 lt_cv_dlopen_self=no 14380 fi 14381fi 14382rm -fr conftest* 14383 14384 14385fi 14386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14387$as_echo "$lt_cv_dlopen_self" >&6; } 14388 14389 if test yes = "$lt_cv_dlopen_self"; then 14390 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14392$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14393if ${lt_cv_dlopen_self_static+:} false; then : 14394 $as_echo_n "(cached) " >&6 14395else 14396 if test yes = "$cross_compiling"; then : 14397 lt_cv_dlopen_self_static=cross 14398else 14399 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14400 lt_status=$lt_dlunknown 14401 cat > conftest.$ac_ext <<_LT_EOF 14402#line $LINENO "configure" 14403#include "confdefs.h" 14404 14405#if HAVE_DLFCN_H 14406#include <dlfcn.h> 14407#endif 14408 14409#include <stdio.h> 14410 14411#ifdef RTLD_GLOBAL 14412# define LT_DLGLOBAL RTLD_GLOBAL 14413#else 14414# ifdef DL_GLOBAL 14415# define LT_DLGLOBAL DL_GLOBAL 14416# else 14417# define LT_DLGLOBAL 0 14418# endif 14419#endif 14420 14421/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14422 find out it does not work in some platform. */ 14423#ifndef LT_DLLAZY_OR_NOW 14424# ifdef RTLD_LAZY 14425# define LT_DLLAZY_OR_NOW RTLD_LAZY 14426# else 14427# ifdef DL_LAZY 14428# define LT_DLLAZY_OR_NOW DL_LAZY 14429# else 14430# ifdef RTLD_NOW 14431# define LT_DLLAZY_OR_NOW RTLD_NOW 14432# else 14433# ifdef DL_NOW 14434# define LT_DLLAZY_OR_NOW DL_NOW 14435# else 14436# define LT_DLLAZY_OR_NOW 0 14437# endif 14438# endif 14439# endif 14440# endif 14441#endif 14442 14443/* When -fvisibility=hidden is used, assume the code has been annotated 14444 correspondingly for the symbols needed. */ 14445#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14446int fnord () __attribute__((visibility("default"))); 14447#endif 14448 14449int fnord () { return 42; } 14450int main () 14451{ 14452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14453 int status = $lt_dlunknown; 14454 14455 if (self) 14456 { 14457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14458 else 14459 { 14460 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14461 else puts (dlerror ()); 14462 } 14463 /* dlclose (self); */ 14464 } 14465 else 14466 puts (dlerror ()); 14467 14468 return status; 14469} 14470_LT_EOF 14471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14472 (eval $ac_link) 2>&5 14473 ac_status=$? 14474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14475 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14476 (./conftest; exit; ) >&5 2>/dev/null 14477 lt_status=$? 14478 case x$lt_status in 14479 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14480 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14481 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14482 esac 14483 else : 14484 # compilation failed 14485 lt_cv_dlopen_self_static=no 14486 fi 14487fi 14488rm -fr conftest* 14489 14490 14491fi 14492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14493$as_echo "$lt_cv_dlopen_self_static" >&6; } 14494 fi 14495 14496 CPPFLAGS=$save_CPPFLAGS 14497 LDFLAGS=$save_LDFLAGS 14498 LIBS=$save_LIBS 14499 ;; 14500 esac 14501 14502 case $lt_cv_dlopen_self in 14503 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14504 *) enable_dlopen_self=unknown ;; 14505 esac 14506 14507 case $lt_cv_dlopen_self_static in 14508 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14509 *) enable_dlopen_self_static=unknown ;; 14510 esac 14511fi 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529striplib= 14530old_striplib= 14531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14532$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14533if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14534 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14535 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14537$as_echo "yes" >&6; } 14538else 14539# FIXME - insert some real tests, host_os isn't really good enough 14540 case $host_os in 14541 darwin*) 14542 if test -n "$STRIP"; then 14543 striplib="$STRIP -x" 14544 old_striplib="$STRIP -S" 14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14546$as_echo "yes" >&6; } 14547 else 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14549$as_echo "no" >&6; } 14550 fi 14551 ;; 14552 *) 14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14554$as_echo "no" >&6; } 14555 ;; 14556 esac 14557fi 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 # Report what library types will actually be built 14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14572$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14574$as_echo "$can_build_shared" >&6; } 14575 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14577$as_echo_n "checking whether to build shared libraries... " >&6; } 14578 test no = "$can_build_shared" && enable_shared=no 14579 14580 # On AIX, shared libraries and static libraries use the same namespace, and 14581 # are all built from PIC. 14582 case $host_os in 14583 aix3*) 14584 test yes = "$enable_shared" && enable_static=no 14585 if test -n "$RANLIB"; then 14586 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14587 postinstall_cmds='$RANLIB $lib' 14588 fi 14589 ;; 14590 14591 aix[4-9]*) 14592 if test ia64 != "$host_cpu"; then 14593 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14594 yes,aix,yes) ;; # shared object as lib.so file only 14595 yes,svr4,*) ;; # shared object as lib.so archive member only 14596 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14597 esac 14598 fi 14599 ;; 14600 esac 14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14602$as_echo "$enable_shared" >&6; } 14603 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14605$as_echo_n "checking whether to build static libraries... " >&6; } 14606 # Make sure either enable_shared or enable_static is yes. 14607 test yes = "$enable_shared" || enable_static=yes 14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14609$as_echo "$enable_static" >&6; } 14610 14611 14612 14613 14614fi 14615ac_ext=c 14616ac_cpp='$CPP $CPPFLAGS' 14617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14619ac_compiler_gnu=$ac_cv_c_compiler_gnu 14620 14621CC=$lt_save_CC 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 ac_config_commands="$ac_config_commands libtool" 14638 14639 14640 14641 14642# Only expand once: 14643 14644 14645 14646 14647# pkg-config is only needed for these options, do not require it otherwise 14648if test "$enable_systemd" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then 14649 14650 14651 14652 14653 14654 14655 14656if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14657 if test -n "$ac_tool_prefix"; then 14658 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14659set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14661$as_echo_n "checking for $ac_word... " >&6; } 14662if ${ac_cv_path_PKG_CONFIG+:} false; then : 14663 $as_echo_n "(cached) " >&6 14664else 14665 case $PKG_CONFIG in 14666 [\\/]* | ?:[\\/]*) 14667 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14668 ;; 14669 *) 14670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14671for as_dir in $PATH 14672do 14673 IFS=$as_save_IFS 14674 test -z "$as_dir" && as_dir=. 14675 for ac_exec_ext in '' $ac_executable_extensions; do 14676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14677 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14679 break 2 14680 fi 14681done 14682 done 14683IFS=$as_save_IFS 14684 14685 ;; 14686esac 14687fi 14688PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14689if test -n "$PKG_CONFIG"; then 14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14691$as_echo "$PKG_CONFIG" >&6; } 14692else 14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14694$as_echo "no" >&6; } 14695fi 14696 14697 14698fi 14699if test -z "$ac_cv_path_PKG_CONFIG"; then 14700 ac_pt_PKG_CONFIG=$PKG_CONFIG 14701 # Extract the first word of "pkg-config", so it can be a program name with args. 14702set dummy pkg-config; ac_word=$2 14703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14704$as_echo_n "checking for $ac_word... " >&6; } 14705if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 14706 $as_echo_n "(cached) " >&6 14707else 14708 case $ac_pt_PKG_CONFIG in 14709 [\\/]* | ?:[\\/]*) 14710 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14711 ;; 14712 *) 14713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14714for as_dir in $PATH 14715do 14716 IFS=$as_save_IFS 14717 test -z "$as_dir" && as_dir=. 14718 for ac_exec_ext in '' $ac_executable_extensions; do 14719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14720 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14722 break 2 14723 fi 14724done 14725 done 14726IFS=$as_save_IFS 14727 14728 ;; 14729esac 14730fi 14731ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14732if test -n "$ac_pt_PKG_CONFIG"; then 14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14734$as_echo "$ac_pt_PKG_CONFIG" >&6; } 14735else 14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14737$as_echo "no" >&6; } 14738fi 14739 14740 if test "x$ac_pt_PKG_CONFIG" = x; then 14741 PKG_CONFIG="" 14742 else 14743 case $cross_compiling:$ac_tool_warned in 14744yes:) 14745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14747ac_tool_warned=yes ;; 14748esac 14749 PKG_CONFIG=$ac_pt_PKG_CONFIG 14750 fi 14751else 14752 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14753fi 14754 14755fi 14756if test -n "$PKG_CONFIG"; then 14757 _pkg_min_version=0.9.0 14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 14759$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 14760 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14762$as_echo "yes" >&6; } 14763 else 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14765$as_echo "no" >&6; } 14766 PKG_CONFIG="" 14767 fi 14768fi 14769fi 14770 14771# Checks for header files. 14772for 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 14773do : 14774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14775ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 14776" 14777if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14778 cat >>confdefs.h <<_ACEOF 14779#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14780_ACEOF 14781 14782fi 14783 14784done 14785 14786# net/if.h portability for Darwin see: 14787# https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html 14788for ac_header in net/if.h 14789do : 14790 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 14791#include <stdio.h> 14792#ifdef STDC_HEADERS 14793# include <stdlib.h> 14794# include <stddef.h> 14795#else 14796# ifdef HAVE_STDLIB_H 14797# include <stdlib.h> 14798# endif 14799#endif 14800#ifdef HAVE_SYS_SOCKET_H 14801# include <sys/socket.h> 14802#endif 14803 14804" 14805if test "x$ac_cv_header_net_if_h" = xyes; then : 14806 cat >>confdefs.h <<_ACEOF 14807#define HAVE_NET_IF_H 1 14808_ACEOF 14809 14810fi 14811 14812done 14813 14814 14815# Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH 14816for ac_header in TargetConditionals.h 14817do : 14818 ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default 14819" 14820if test "x$ac_cv_header_TargetConditionals_h" = xyes; then : 14821 cat >>confdefs.h <<_ACEOF 14822#define HAVE_TARGETCONDITIONALS_H 1 14823_ACEOF 14824 14825fi 14826 14827done 14828 14829for ac_header in netioapi.h 14830do : 14831 ac_fn_c_check_header_compile "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h" "$ac_includes_default 14832#if HAVE_SYS_PARAM_H 14833#include <sys/param.h> 14834#endif 14835 14836#ifdef HAVE_SYS_SOCKET_H 14837#include <sys/socket.h> 14838#endif 14839 14840#ifdef HAVE_SYS_UIO_H 14841#include <sys/uio.h> 14842#endif 14843 14844#ifdef HAVE_NETINET_IN_H 14845#include <netinet/in.h> 14846#endif 14847 14848#ifdef HAVE_NETINET_TCP_H 14849#include <netinet/tcp.h> 14850#endif 14851 14852#ifdef HAVE_ARPA_INET_H 14853#include <arpa/inet.h> 14854#endif 14855 14856#ifdef HAVE_WINSOCK2_H 14857#include <winsock2.h> 14858#endif 14859 14860#ifdef HAVE_WS2TCPIP_H 14861#include <ws2tcpip.h> 14862#endif 14863 14864" 14865if test "x$ac_cv_header_netioapi_h" = xyes; then : 14866 cat >>confdefs.h <<_ACEOF 14867#define HAVE_NETIOAPI_H 1 14868_ACEOF 14869 14870fi 14871 14872done 14873 14874 14875# check for types. 14876# Using own tests for int64* because autoconf builtin only give 32bit. 14877ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 14878if test "x$ac_cv_type_int8_t" = xyes; then : 14879 14880else 14881 14882cat >>confdefs.h <<_ACEOF 14883#define int8_t signed char 14884_ACEOF 14885 14886fi 14887 14888ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 14889if test "x$ac_cv_type_int16_t" = xyes; then : 14890 14891else 14892 14893cat >>confdefs.h <<_ACEOF 14894#define int16_t short 14895_ACEOF 14896 14897fi 14898 14899ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 14900if test "x$ac_cv_type_int32_t" = xyes; then : 14901 14902else 14903 14904cat >>confdefs.h <<_ACEOF 14905#define int32_t int 14906_ACEOF 14907 14908fi 14909 14910ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 14911if test "x$ac_cv_type_int64_t" = xyes; then : 14912 14913else 14914 14915cat >>confdefs.h <<_ACEOF 14916#define int64_t long long 14917_ACEOF 14918 14919fi 14920 14921ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 14922if test "x$ac_cv_type_uint8_t" = xyes; then : 14923 14924else 14925 14926cat >>confdefs.h <<_ACEOF 14927#define uint8_t unsigned char 14928_ACEOF 14929 14930fi 14931 14932ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 14933if test "x$ac_cv_type_uint16_t" = xyes; then : 14934 14935else 14936 14937cat >>confdefs.h <<_ACEOF 14938#define uint16_t unsigned short 14939_ACEOF 14940 14941fi 14942 14943ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 14944if test "x$ac_cv_type_uint32_t" = xyes; then : 14945 14946else 14947 14948cat >>confdefs.h <<_ACEOF 14949#define uint32_t unsigned int 14950_ACEOF 14951 14952fi 14953 14954ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 14955if test "x$ac_cv_type_uint64_t" = xyes; then : 14956 14957else 14958 14959cat >>confdefs.h <<_ACEOF 14960#define uint64_t unsigned long long 14961_ACEOF 14962 14963fi 14964 14965ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14966if test "x$ac_cv_type_size_t" = xyes; then : 14967 14968else 14969 14970cat >>confdefs.h <<_ACEOF 14971#define size_t unsigned int 14972_ACEOF 14973 14974fi 14975 14976ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14977if test "x$ac_cv_type_ssize_t" = xyes; then : 14978 14979else 14980 14981cat >>confdefs.h <<_ACEOF 14982#define ssize_t int 14983_ACEOF 14984 14985fi 14986 14987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 14988$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 14989if ${ac_cv_type_uid_t+:} false; then : 14990 $as_echo_n "(cached) " >&6 14991else 14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14993/* end confdefs.h. */ 14994#include <sys/types.h> 14995 14996_ACEOF 14997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14998 $EGREP "uid_t" >/dev/null 2>&1; then : 14999 ac_cv_type_uid_t=yes 15000else 15001 ac_cv_type_uid_t=no 15002fi 15003rm -f conftest* 15004 15005fi 15006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 15007$as_echo "$ac_cv_type_uid_t" >&6; } 15008if test $ac_cv_type_uid_t = no; then 15009 15010$as_echo "#define uid_t int" >>confdefs.h 15011 15012 15013$as_echo "#define gid_t int" >>confdefs.h 15014 15015fi 15016 15017ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 15018if test "x$ac_cv_type_pid_t" = xyes; then : 15019 15020else 15021 15022cat >>confdefs.h <<_ACEOF 15023#define pid_t int 15024_ACEOF 15025 15026fi 15027 15028ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 15029if test "x$ac_cv_type_off_t" = xyes; then : 15030 15031else 15032 15033cat >>confdefs.h <<_ACEOF 15034#define off_t long int 15035_ACEOF 15036 15037fi 15038 15039ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" " 15040$ac_includes_default 15041#ifdef HAVE_WINSOCK2_H 15042# include <winsock2.h> 15043#endif 15044 15045" 15046if test "x$ac_cv_type_u_char" = xyes; then : 15047 15048else 15049 15050$as_echo "#define u_char unsigned char" >>confdefs.h 15051 15052fi 15053 15054ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " 15055$ac_includes_default 15056#ifdef HAVE_SYS_RESOURCE_H 15057# include <sys/resource.h> 15058#endif 15059 15060" 15061if test "x$ac_cv_type_rlim_t" = xyes; then : 15062 15063else 15064 15065$as_echo "#define rlim_t unsigned long" >>confdefs.h 15066 15067fi 15068 15069 15070ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 15071$ac_includes_default 15072#ifdef HAVE_SYS_SOCKET_H 15073# include <sys/socket.h> 15074#endif 15075#ifdef HAVE_WS2TCPIP_H 15076# include <ws2tcpip.h> 15077#endif 15078 15079" 15080if test "x$ac_cv_type_socklen_t" = xyes; then : 15081 15082else 15083 15084$as_echo "#define socklen_t int" >>confdefs.h 15085 15086fi 15087 15088 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 15089$ac_includes_default 15090#ifdef HAVE_SYS_TYPES_H 15091# include <sys/types.h> 15092#endif 15093#ifdef HAVE_NETINET_IN_H 15094# include <netinet/in.h> 15095#endif 15096 15097" 15098if test "x$ac_cv_type_in_addr_t" = xyes; then : 15099 15100else 15101 15102$as_echo "#define in_addr_t uint32_t" >>confdefs.h 15103 15104fi 15105 15106 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 15107$ac_includes_default 15108#ifdef HAVE_SYS_TYPES_H 15109# include <sys/types.h> 15110#endif 15111#ifdef HAVE_NETINET_IN_H 15112# include <netinet/in.h> 15113#endif 15114 15115" 15116if test "x$ac_cv_type_in_port_t" = xyes; then : 15117 15118else 15119 15120$as_echo "#define in_port_t uint16_t" >>confdefs.h 15121 15122fi 15123 15124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 15125$as_echo_n "checking if memcmp compares unsigned... " >&6; } 15126if test "$cross_compiling" = yes; then : 15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 15128$as_echo "cross-compile no" >&6; } 15129 15130$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 15131 15132 case " $LIBOBJS " in 15133 *" memcmp.$ac_objext "* ) ;; 15134 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 15135 ;; 15136esac 15137 15138 15139else 15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15141/* end confdefs.h. */ 15142 15143#include <stdio.h> 15144#include <stdlib.h> 15145#include <string.h> 15146int main(void) 15147{ 15148 char a = 255, b = 0; 15149 if(memcmp(&a, &b, 1) < 0) 15150 return 1; 15151 return 0; 15152} 15153 15154_ACEOF 15155if ac_fn_c_try_run "$LINENO"; then : 15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15157$as_echo "yes" >&6; } 15158else 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15160$as_echo "no" >&6; } 15161 15162$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 15163 15164 case " $LIBOBJS " in 15165 *" memcmp.$ac_objext "* ) ;; 15166 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 15167 ;; 15168esac 15169 15170 15171fi 15172rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15173 conftest.$ac_objext conftest.beam conftest.$ac_ext 15174fi 15175 15176 15177# The cast to long int works around a bug in the HP C Compiler 15178# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15179# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15180# This bug is HP SR number 8606223364. 15181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 15182$as_echo_n "checking size of time_t... " >&6; } 15183if ${ac_cv_sizeof_time_t+:} false; then : 15184 $as_echo_n "(cached) " >&6 15185else 15186 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 15187$ac_includes_default 15188#ifdef TIME_WITH_SYS_TIME 15189# include <sys/time.h> 15190# include <time.h> 15191#else 15192# ifdef HAVE_SYS_TIME_H 15193# include <sys/time.h> 15194# else 15195# include <time.h> 15196# endif 15197#endif 15198 15199"; then : 15200 15201else 15202 if test "$ac_cv_type_time_t" = yes; then 15203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15205as_fn_error 77 "cannot compute sizeof (time_t) 15206See \`config.log' for more details" "$LINENO" 5; } 15207 else 15208 ac_cv_sizeof_time_t=0 15209 fi 15210fi 15211 15212fi 15213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 15214$as_echo "$ac_cv_sizeof_time_t" >&6; } 15215 15216 15217 15218cat >>confdefs.h <<_ACEOF 15219#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 15220_ACEOF 15221 15222 15223# The cast to long int works around a bug in the HP C Compiler 15224# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15225# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15226# This bug is HP SR number 8606223364. 15227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 15228$as_echo_n "checking size of size_t... " >&6; } 15229if ${ac_cv_sizeof_size_t+:} false; then : 15230 $as_echo_n "(cached) " >&6 15231else 15232 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 15233 15234else 15235 if test "$ac_cv_type_size_t" = yes; then 15236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15238as_fn_error 77 "cannot compute sizeof (size_t) 15239See \`config.log' for more details" "$LINENO" 5; } 15240 else 15241 ac_cv_sizeof_size_t=0 15242 fi 15243fi 15244 15245fi 15246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 15247$as_echo "$ac_cv_sizeof_size_t" >&6; } 15248 15249 15250 15251cat >>confdefs.h <<_ACEOF 15252#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 15253_ACEOF 15254 15255 15256 15257# add option to disable the evil rpath 15258 15259# Check whether --enable-rpath was given. 15260if test "${enable_rpath+set}" = set; then : 15261 enableval=$enable_rpath; enable_rpath=$enableval 15262else 15263 enable_rpath=yes 15264fi 15265 15266if test "x$enable_rpath" = xno; then 15267 ac_config_commands="$ac_config_commands disable-rpath" 15268 15269fi 15270 15271 15272 15273# check to see if libraries are needed for these functions. 15274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 15275$as_echo_n "checking for library containing inet_pton... " >&6; } 15276if ${ac_cv_search_inet_pton+:} false; then : 15277 $as_echo_n "(cached) " >&6 15278else 15279 ac_func_search_save_LIBS=$LIBS 15280cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15281/* end confdefs.h. */ 15282 15283/* Override any GCC internal prototype to avoid an error. 15284 Use char because int might match the return type of a GCC 15285 builtin and then its argument prototype would still apply. */ 15286#ifdef __cplusplus 15287extern "C" 15288#endif 15289char inet_pton (); 15290int 15291main () 15292{ 15293return inet_pton (); 15294 ; 15295 return 0; 15296} 15297_ACEOF 15298for ac_lib in '' nsl; do 15299 if test -z "$ac_lib"; then 15300 ac_res="none required" 15301 else 15302 ac_res=-l$ac_lib 15303 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15304 fi 15305 if ac_fn_c_try_link "$LINENO"; then : 15306 ac_cv_search_inet_pton=$ac_res 15307fi 15308rm -f core conftest.err conftest.$ac_objext \ 15309 conftest$ac_exeext 15310 if ${ac_cv_search_inet_pton+:} false; then : 15311 break 15312fi 15313done 15314if ${ac_cv_search_inet_pton+:} false; then : 15315 15316else 15317 ac_cv_search_inet_pton=no 15318fi 15319rm conftest.$ac_ext 15320LIBS=$ac_func_search_save_LIBS 15321fi 15322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 15323$as_echo "$ac_cv_search_inet_pton" >&6; } 15324ac_res=$ac_cv_search_inet_pton 15325if test "$ac_res" != no; then : 15326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15327 15328fi 15329 15330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 15331$as_echo_n "checking for library containing socket... " >&6; } 15332if ${ac_cv_search_socket+:} false; then : 15333 $as_echo_n "(cached) " >&6 15334else 15335 ac_func_search_save_LIBS=$LIBS 15336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15337/* end confdefs.h. */ 15338 15339/* Override any GCC internal prototype to avoid an error. 15340 Use char because int might match the return type of a GCC 15341 builtin and then its argument prototype would still apply. */ 15342#ifdef __cplusplus 15343extern "C" 15344#endif 15345char socket (); 15346int 15347main () 15348{ 15349return socket (); 15350 ; 15351 return 0; 15352} 15353_ACEOF 15354for ac_lib in '' socket; do 15355 if test -z "$ac_lib"; then 15356 ac_res="none required" 15357 else 15358 ac_res=-l$ac_lib 15359 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15360 fi 15361 if ac_fn_c_try_link "$LINENO"; then : 15362 ac_cv_search_socket=$ac_res 15363fi 15364rm -f core conftest.err conftest.$ac_objext \ 15365 conftest$ac_exeext 15366 if ${ac_cv_search_socket+:} false; then : 15367 break 15368fi 15369done 15370if ${ac_cv_search_socket+:} false; then : 15371 15372else 15373 ac_cv_search_socket=no 15374fi 15375rm conftest.$ac_ext 15376LIBS=$ac_func_search_save_LIBS 15377fi 15378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 15379$as_echo "$ac_cv_search_socket" >&6; } 15380ac_res=$ac_cv_search_socket 15381if test "$ac_res" != no; then : 15382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15383 15384fi 15385 15386 15387# check whether strptime also works 15388 15389# check some functions of the OS before linking libs (while still runnable). 15390for ac_header in unistd.h 15391do : 15392 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 15393if test "x$ac_cv_header_unistd_h" = xyes; then : 15394 cat >>confdefs.h <<_ACEOF 15395#define HAVE_UNISTD_H 1 15396_ACEOF 15397 15398fi 15399 15400done 15401 15402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 15403$as_echo_n "checking for working chown... " >&6; } 15404if ${ac_cv_func_chown_works+:} false; then : 15405 $as_echo_n "(cached) " >&6 15406else 15407 if test "$cross_compiling" = yes; then : 15408 ac_cv_func_chown_works=no 15409else 15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15411/* end confdefs.h. */ 15412$ac_includes_default 15413#include <fcntl.h> 15414 15415int 15416main () 15417{ 15418 char *f = "conftest.chown"; 15419 struct stat before, after; 15420 15421 if (creat (f, 0600) < 0) 15422 return 1; 15423 if (stat (f, &before) < 0) 15424 return 1; 15425 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 15426 return 1; 15427 if (stat (f, &after) < 0) 15428 return 1; 15429 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 15430 15431 ; 15432 return 0; 15433} 15434_ACEOF 15435if ac_fn_c_try_run "$LINENO"; then : 15436 ac_cv_func_chown_works=yes 15437else 15438 ac_cv_func_chown_works=no 15439fi 15440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15441 conftest.$ac_objext conftest.beam conftest.$ac_ext 15442fi 15443 15444rm -f conftest.chown 15445 15446fi 15447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 15448$as_echo "$ac_cv_func_chown_works" >&6; } 15449if test $ac_cv_func_chown_works = yes; then 15450 15451$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 15452 15453fi 15454 15455for ac_header in vfork.h 15456do : 15457 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 15458if test "x$ac_cv_header_vfork_h" = xyes; then : 15459 cat >>confdefs.h <<_ACEOF 15460#define HAVE_VFORK_H 1 15461_ACEOF 15462 15463fi 15464 15465done 15466 15467for ac_func in fork vfork 15468do : 15469 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15470ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15471if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15472 cat >>confdefs.h <<_ACEOF 15473#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15474_ACEOF 15475 15476fi 15477done 15478 15479if test "x$ac_cv_func_fork" = xyes; then 15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 15481$as_echo_n "checking for working fork... " >&6; } 15482if ${ac_cv_func_fork_works+:} false; then : 15483 $as_echo_n "(cached) " >&6 15484else 15485 if test "$cross_compiling" = yes; then : 15486 ac_cv_func_fork_works=cross 15487else 15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15489/* end confdefs.h. */ 15490$ac_includes_default 15491int 15492main () 15493{ 15494 15495 /* By Ruediger Kuhlmann. */ 15496 return fork () < 0; 15497 15498 ; 15499 return 0; 15500} 15501_ACEOF 15502if ac_fn_c_try_run "$LINENO"; then : 15503 ac_cv_func_fork_works=yes 15504else 15505 ac_cv_func_fork_works=no 15506fi 15507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15508 conftest.$ac_objext conftest.beam conftest.$ac_ext 15509fi 15510 15511fi 15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 15513$as_echo "$ac_cv_func_fork_works" >&6; } 15514 15515else 15516 ac_cv_func_fork_works=$ac_cv_func_fork 15517fi 15518if test "x$ac_cv_func_fork_works" = xcross; then 15519 case $host in 15520 *-*-amigaos* | *-*-msdosdjgpp*) 15521 # Override, as these systems have only a dummy fork() stub 15522 ac_cv_func_fork_works=no 15523 ;; 15524 *) 15525 ac_cv_func_fork_works=yes 15526 ;; 15527 esac 15528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 15529$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 15530fi 15531ac_cv_func_vfork_works=$ac_cv_func_vfork 15532if test "x$ac_cv_func_vfork" = xyes; then 15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 15534$as_echo_n "checking for working vfork... " >&6; } 15535if ${ac_cv_func_vfork_works+:} false; then : 15536 $as_echo_n "(cached) " >&6 15537else 15538 if test "$cross_compiling" = yes; then : 15539 ac_cv_func_vfork_works=cross 15540else 15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15542/* end confdefs.h. */ 15543/* Thanks to Paul Eggert for this test. */ 15544$ac_includes_default 15545#include <sys/wait.h> 15546#ifdef HAVE_VFORK_H 15547# include <vfork.h> 15548#endif 15549/* On some sparc systems, changes by the child to local and incoming 15550 argument registers are propagated back to the parent. The compiler 15551 is told about this with #include <vfork.h>, but some compilers 15552 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 15553 static variable whose address is put into a register that is 15554 clobbered by the vfork. */ 15555static void 15556#ifdef __cplusplus 15557sparc_address_test (int arg) 15558# else 15559sparc_address_test (arg) int arg; 15560#endif 15561{ 15562 static pid_t child; 15563 if (!child) { 15564 child = vfork (); 15565 if (child < 0) { 15566 perror ("vfork"); 15567 _exit(2); 15568 } 15569 if (!child) { 15570 arg = getpid(); 15571 write(-1, "", 0); 15572 _exit (arg); 15573 } 15574 } 15575} 15576 15577int 15578main () 15579{ 15580 pid_t parent = getpid (); 15581 pid_t child; 15582 15583 sparc_address_test (0); 15584 15585 child = vfork (); 15586 15587 if (child == 0) { 15588 /* Here is another test for sparc vfork register problems. This 15589 test uses lots of local variables, at least as many local 15590 variables as main has allocated so far including compiler 15591 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 15592 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 15593 reuse the register of parent for one of the local variables, 15594 since it will think that parent can't possibly be used any more 15595 in this routine. Assigning to the local variable will thus 15596 munge parent in the parent process. */ 15597 pid_t 15598 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 15599 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 15600 /* Convince the compiler that p..p7 are live; otherwise, it might 15601 use the same hardware register for all 8 local variables. */ 15602 if (p != p1 || p != p2 || p != p3 || p != p4 15603 || p != p5 || p != p6 || p != p7) 15604 _exit(1); 15605 15606 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 15607 from child file descriptors. If the child closes a descriptor 15608 before it execs or exits, this munges the parent's descriptor 15609 as well. Test for this by closing stdout in the child. */ 15610 _exit(close(fileno(stdout)) != 0); 15611 } else { 15612 int status; 15613 struct stat st; 15614 15615 while (wait(&status) != child) 15616 ; 15617 return ( 15618 /* Was there some problem with vforking? */ 15619 child < 0 15620 15621 /* Did the child fail? (This shouldn't happen.) */ 15622 || status 15623 15624 /* Did the vfork/compiler bug occur? */ 15625 || parent != getpid() 15626 15627 /* Did the file descriptor bug occur? */ 15628 || fstat(fileno(stdout), &st) != 0 15629 ); 15630 } 15631} 15632_ACEOF 15633if ac_fn_c_try_run "$LINENO"; then : 15634 ac_cv_func_vfork_works=yes 15635else 15636 ac_cv_func_vfork_works=no 15637fi 15638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15639 conftest.$ac_objext conftest.beam conftest.$ac_ext 15640fi 15641 15642fi 15643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 15644$as_echo "$ac_cv_func_vfork_works" >&6; } 15645 15646fi; 15647if test "x$ac_cv_func_fork_works" = xcross; then 15648 ac_cv_func_vfork_works=$ac_cv_func_vfork 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 15650$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 15651fi 15652 15653if test "x$ac_cv_func_vfork_works" = xyes; then 15654 15655$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 15656 15657else 15658 15659$as_echo "#define vfork fork" >>confdefs.h 15660 15661fi 15662if test "x$ac_cv_func_fork_works" = xyes; then 15663 15664$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 15665 15666fi 15667 15668 15669$as_echo "#define RETSIGTYPE void" >>confdefs.h 15670 15671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 15672$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 15673if ${ac_cv_sys_largefile_source+:} false; then : 15674 $as_echo_n "(cached) " >&6 15675else 15676 while :; do 15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15678/* end confdefs.h. */ 15679#include <sys/types.h> /* for off_t */ 15680 #include <stdio.h> 15681int 15682main () 15683{ 15684int (*fp) (FILE *, off_t, int) = fseeko; 15685 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15686 ; 15687 return 0; 15688} 15689_ACEOF 15690if ac_fn_c_try_link "$LINENO"; then : 15691 ac_cv_sys_largefile_source=no; break 15692fi 15693rm -f core conftest.err conftest.$ac_objext \ 15694 conftest$ac_exeext conftest.$ac_ext 15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15696/* end confdefs.h. */ 15697#define _LARGEFILE_SOURCE 1 15698#include <sys/types.h> /* for off_t */ 15699 #include <stdio.h> 15700int 15701main () 15702{ 15703int (*fp) (FILE *, off_t, int) = fseeko; 15704 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15705 ; 15706 return 0; 15707} 15708_ACEOF 15709if ac_fn_c_try_link "$LINENO"; then : 15710 ac_cv_sys_largefile_source=1; break 15711fi 15712rm -f core conftest.err conftest.$ac_objext \ 15713 conftest$ac_exeext conftest.$ac_ext 15714 ac_cv_sys_largefile_source=unknown 15715 break 15716done 15717fi 15718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 15719$as_echo "$ac_cv_sys_largefile_source" >&6; } 15720case $ac_cv_sys_largefile_source in #( 15721 no | unknown) ;; 15722 *) 15723cat >>confdefs.h <<_ACEOF 15724#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 15725_ACEOF 15726;; 15727esac 15728rm -rf conftest* 15729 15730# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 15731# in glibc 2.1.3, but that breaks too many other things. 15732# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 15733if test $ac_cv_sys_largefile_source != unknown; then 15734 15735$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 15736 15737fi 15738 15739 15740# Check whether --enable-largefile was given. 15741if test "${enable_largefile+set}" = set; then : 15742 enableval=$enable_largefile; 15743fi 15744 15745if test "$enable_largefile" != no; then 15746 15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 15748$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 15749if ${ac_cv_sys_largefile_CC+:} false; then : 15750 $as_echo_n "(cached) " >&6 15751else 15752 ac_cv_sys_largefile_CC=no 15753 if test "$GCC" != yes; then 15754 ac_save_CC=$CC 15755 while :; do 15756 # IRIX 6.2 and later do not support large files by default, 15757 # so use the C compiler's -n32 option if that helps. 15758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15759/* end confdefs.h. */ 15760#include <sys/types.h> 15761 /* Check that off_t can represent 2**63 - 1 correctly. 15762 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15763 since some C++ compilers masquerading as C compilers 15764 incorrectly reject 9223372036854775807. */ 15765#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15767 && LARGE_OFF_T % 2147483647 == 1) 15768 ? 1 : -1]; 15769int 15770main () 15771{ 15772 15773 ; 15774 return 0; 15775} 15776_ACEOF 15777 if ac_fn_c_try_compile "$LINENO"; then : 15778 break 15779fi 15780rm -f core conftest.err conftest.$ac_objext 15781 CC="$CC -n32" 15782 if ac_fn_c_try_compile "$LINENO"; then : 15783 ac_cv_sys_largefile_CC=' -n32'; break 15784fi 15785rm -f core conftest.err conftest.$ac_objext 15786 break 15787 done 15788 CC=$ac_save_CC 15789 rm -f conftest.$ac_ext 15790 fi 15791fi 15792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 15793$as_echo "$ac_cv_sys_largefile_CC" >&6; } 15794 if test "$ac_cv_sys_largefile_CC" != no; then 15795 CC=$CC$ac_cv_sys_largefile_CC 15796 fi 15797 15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 15799$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 15800if ${ac_cv_sys_file_offset_bits+:} false; then : 15801 $as_echo_n "(cached) " >&6 15802else 15803 while :; do 15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15805/* end confdefs.h. */ 15806#include <sys/types.h> 15807 /* Check that off_t can represent 2**63 - 1 correctly. 15808 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15809 since some C++ compilers masquerading as C compilers 15810 incorrectly reject 9223372036854775807. */ 15811#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15813 && LARGE_OFF_T % 2147483647 == 1) 15814 ? 1 : -1]; 15815int 15816main () 15817{ 15818 15819 ; 15820 return 0; 15821} 15822_ACEOF 15823if ac_fn_c_try_compile "$LINENO"; then : 15824 ac_cv_sys_file_offset_bits=no; break 15825fi 15826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15828/* end confdefs.h. */ 15829#define _FILE_OFFSET_BITS 64 15830#include <sys/types.h> 15831 /* Check that off_t can represent 2**63 - 1 correctly. 15832 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15833 since some C++ compilers masquerading as C compilers 15834 incorrectly reject 9223372036854775807. */ 15835#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15837 && LARGE_OFF_T % 2147483647 == 1) 15838 ? 1 : -1]; 15839int 15840main () 15841{ 15842 15843 ; 15844 return 0; 15845} 15846_ACEOF 15847if ac_fn_c_try_compile "$LINENO"; then : 15848 ac_cv_sys_file_offset_bits=64; break 15849fi 15850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15851 ac_cv_sys_file_offset_bits=unknown 15852 break 15853done 15854fi 15855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 15856$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 15857case $ac_cv_sys_file_offset_bits in #( 15858 no | unknown) ;; 15859 *) 15860cat >>confdefs.h <<_ACEOF 15861#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 15862_ACEOF 15863;; 15864esac 15865rm -rf conftest* 15866 if test $ac_cv_sys_file_offset_bits = unknown; then 15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 15868$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 15869if ${ac_cv_sys_large_files+:} false; then : 15870 $as_echo_n "(cached) " >&6 15871else 15872 while :; do 15873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15874/* end confdefs.h. */ 15875#include <sys/types.h> 15876 /* Check that off_t can represent 2**63 - 1 correctly. 15877 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15878 since some C++ compilers masquerading as C compilers 15879 incorrectly reject 9223372036854775807. */ 15880#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15882 && LARGE_OFF_T % 2147483647 == 1) 15883 ? 1 : -1]; 15884int 15885main () 15886{ 15887 15888 ; 15889 return 0; 15890} 15891_ACEOF 15892if ac_fn_c_try_compile "$LINENO"; then : 15893 ac_cv_sys_large_files=no; break 15894fi 15895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15897/* end confdefs.h. */ 15898#define _LARGE_FILES 1 15899#include <sys/types.h> 15900 /* Check that off_t can represent 2**63 - 1 correctly. 15901 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15902 since some C++ compilers masquerading as C compilers 15903 incorrectly reject 9223372036854775807. */ 15904#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15906 && LARGE_OFF_T % 2147483647 == 1) 15907 ? 1 : -1]; 15908int 15909main () 15910{ 15911 15912 ; 15913 return 0; 15914} 15915_ACEOF 15916if ac_fn_c_try_compile "$LINENO"; then : 15917 ac_cv_sys_large_files=1; break 15918fi 15919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15920 ac_cv_sys_large_files=unknown 15921 break 15922done 15923fi 15924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 15925$as_echo "$ac_cv_sys_large_files" >&6; } 15926case $ac_cv_sys_large_files in #( 15927 no | unknown) ;; 15928 *) 15929cat >>confdefs.h <<_ACEOF 15930#define _LARGE_FILES $ac_cv_sys_large_files 15931_ACEOF 15932;; 15933esac 15934rm -rf conftest* 15935 fi 15936 15937 15938fi 15939 15940 15941 15942 15943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5 15944$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; } 15945cache=_D_LARGEFILE_SOURCE_1 15946if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 15947 $as_echo_n "(cached) " >&6 15948else 15949 15950echo ' 15951#include <stdio.h> 15952int test() { 15953 int a = fseeko(stdin, 0, 0); 15954 return a; 15955} 15956' > conftest.c 15957echo 'void f(){}' >>conftest.c 15958if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 15959eval "cv_prog_cc_flag_needed_$cache=no" 15960else 15961 15962if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then 15963eval "cv_prog_cc_flag_needed_$cache=yes" 15964else 15965eval "cv_prog_cc_flag_needed_$cache=fail" 15966#echo 'Test with flag fails too!' 15967#cat conftest.c 15968#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 15969#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 15970#exit 1 15971fi 15972 15973fi 15974rm -f conftest conftest.c conftest.o 15975 15976fi 15977 15978if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 15979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15980$as_echo "yes" >&6; } 15981: 15982CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1" 15983else 15984if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 15985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15986$as_echo "no" >&6; } 15987#echo 'Test with flag is no!' 15988#cat conftest.c 15989#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 15990#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 15991#exit 1 15992: 15993 15994else 15995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 15996$as_echo "failed" >&6; } 15997: 15998 15999fi 16000fi 16001 16002 16003 16004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 16005$as_echo_n "checking if nonblocking sockets work... " >&6; } 16006if echo $host | grep mingw >/dev/null; then 16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 16008$as_echo "no (windows)" >&6; } 16009 16010$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 16011 16012else 16013if test "$cross_compiling" = yes; then : 16014 16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 16016$as_echo "crosscompile(yes)" >&6; } 16017 16018else 16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16020/* end confdefs.h. */ 16021 16022 16023#include <stdio.h> 16024#include <string.h> 16025#include <stdlib.h> 16026#include <fcntl.h> 16027#include <errno.h> 16028#ifdef HAVE_SYS_TYPES_H 16029#include <sys/types.h> 16030#endif 16031#ifdef HAVE_SYS_SOCKET_H 16032#include <sys/socket.h> 16033#endif 16034#ifdef HAVE_NETINET_IN_H 16035#include <netinet/in.h> 16036#endif 16037#ifdef HAVE_ARPA_INET_H 16038#include <arpa/inet.h> 16039#endif 16040#ifdef HAVE_UNISTD_H 16041#include <unistd.h> 16042#endif 16043#ifdef HAVE_TIME_H 16044#include <time.h> 16045#endif 16046 16047int main(void) 16048{ 16049 int port; 16050 int sfd, cfd; 16051 int num = 10; 16052 int i, p; 16053 struct sockaddr_in a; 16054 /* test if select and nonblocking reads work well together */ 16055 /* open port. 16056 fork child to send 10 messages. 16057 select to read. 16058 then try to nonblocking read the 10 messages 16059 then, nonblocking read must give EAGAIN 16060 */ 16061 16062 port = 12345 + (time(0)%32); 16063 sfd = socket(PF_INET, SOCK_DGRAM, 0); 16064 if(sfd == -1) { 16065 perror("socket"); 16066 return 1; 16067 } 16068 memset(&a, 0, sizeof(a)); 16069 a.sin_family = AF_INET; 16070 a.sin_port = htons(port); 16071 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 16072 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 16073 perror("bind"); 16074 return 1; 16075 } 16076 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 16077 perror("fcntl"); 16078 return 1; 16079 } 16080 16081 cfd = socket(PF_INET, SOCK_DGRAM, 0); 16082 if(cfd == -1) { 16083 perror("client socket"); 16084 return 1; 16085 } 16086 a.sin_port = 0; 16087 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 16088 perror("client bind"); 16089 return 1; 16090 } 16091 a.sin_port = htons(port); 16092 16093 /* no handler, causes exit in 10 seconds */ 16094 alarm(10); 16095 16096 /* send and receive on the socket */ 16097 if((p=fork()) == 0) { 16098 for(i=0; i<num; i++) { 16099 if(sendto(cfd, &i, sizeof(i), 0, 16100 (struct sockaddr*)&a, sizeof(a)) < 0) { 16101 perror("sendto"); 16102 return 1; 16103 } 16104 } 16105 } else { 16106 /* parent */ 16107 fd_set rset; 16108 int x; 16109 if(p == -1) { 16110 perror("fork"); 16111 return 1; 16112 } 16113 FD_ZERO(&rset); 16114 FD_SET(sfd, &rset); 16115 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 16116 perror("select"); 16117 return 1; 16118 } 16119 i = 0; 16120 while(i < num) { 16121 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 16122 if(errno == EAGAIN) 16123 continue; 16124 perror("recv"); 16125 return 1; 16126 } 16127 i++; 16128 } 16129 /* now we want to get EAGAIN: nonblocking goodness */ 16130 errno = 0; 16131 recv(sfd, &x, sizeof(x), 0); 16132 if(errno != EAGAIN) { 16133 perror("trying to recv again"); 16134 return 1; 16135 } 16136 /* EAGAIN encountered */ 16137 } 16138 16139 close(sfd); 16140 close(cfd); 16141 return 0; 16142} 16143 16144_ACEOF 16145if ac_fn_c_try_run "$LINENO"; then : 16146 16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16148$as_echo "yes" >&6; } 16149 16150else 16151 16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16153$as_echo "no" >&6; } 16154 16155$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 16156 16157 16158fi 16159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16160 conftest.$ac_objext conftest.beam conftest.$ac_ext 16161fi 16162 16163fi 16164 16165 16166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 16167$as_echo_n "checking whether mkdir has one arg... " >&6; } 16168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16169/* end confdefs.h. */ 16170 16171#include <stdio.h> 16172#include <unistd.h> 16173#ifdef HAVE_WINSOCK2_H 16174#include <winsock2.h> 16175#endif 16176#ifdef HAVE_SYS_STAT_H 16177#include <sys/stat.h> 16178#endif 16179 16180int 16181main () 16182{ 16183 16184 (void)mkdir("directory"); 16185 16186 ; 16187 return 0; 16188} 16189_ACEOF 16190if ac_fn_c_try_compile "$LINENO"; then : 16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16192$as_echo "yes" >&6; } 16193 16194$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 16195 16196 16197else 16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16199$as_echo "no" >&6; } 16200 16201fi 16202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16203 16204for ac_func in strptime 16205do : 16206 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 16207if test "x$ac_cv_func_strptime" = xyes; then : 16208 cat >>confdefs.h <<_ACEOF 16209#define HAVE_STRPTIME 1 16210_ACEOF 16211 16212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 16213$as_echo_n "checking whether strptime works... " >&6; } 16214if test c${cross_compiling} = cno; then 16215if test "$cross_compiling" = yes; then : 16216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16218as_fn_error $? "cannot run test program while cross compiling 16219See \`config.log' for more details" "$LINENO" 5; } 16220else 16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16222/* end confdefs.h. */ 16223 16224#define _XOPEN_SOURCE 600 16225#include <time.h> 16226int main(void) { struct tm tm; char *res; 16227res = 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); 16228if (!res) return 2; 16229res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 16230if (!res) return 1; return 0; } 16231 16232_ACEOF 16233if ac_fn_c_try_run "$LINENO"; then : 16234 eval "ac_cv_c_strptime_works=yes" 16235else 16236 eval "ac_cv_c_strptime_works=no" 16237fi 16238rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16239 conftest.$ac_objext conftest.beam conftest.$ac_ext 16240fi 16241 16242else 16243eval "ac_cv_c_strptime_works=maybe" 16244fi 16245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 16246$as_echo "$ac_cv_c_strptime_works" >&6; } 16247if test $ac_cv_c_strptime_works = no; then 16248case " $LIBOBJS " in 16249 *" strptime.$ac_objext "* ) ;; 16250 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 16251 ;; 16252esac 16253 16254else 16255 16256cat >>confdefs.h <<_ACEOF 16257#define STRPTIME_WORKS 1 16258_ACEOF 16259 16260fi 16261 16262else 16263 case " $LIBOBJS " in 16264 *" strptime.$ac_objext "* ) ;; 16265 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 16266 ;; 16267esac 16268 16269fi 16270done 16271 16272 16273# check if we can use SO_REUSEPORT 16274reuseport_default=0 16275if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi 16276if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi 16277if test "$reuseport_default" = 1; then 16278 16279$as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h 16280 16281else 16282 16283$as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h 16284 16285fi 16286 16287# Include systemd.m4 - begin 16288# macros for configuring systemd 16289# Copyright 2015, Sami Kerola, CloudFlare. 16290# BSD licensed. 16291# Check whether --enable-systemd was given. 16292if test "${enable_systemd+set}" = set; then : 16293 enableval=$enable_systemd; 16294else 16295 enable_systemd=no 16296fi 16297 16298have_systemd=no 16299if test "x$enable_systemd" != xno; then : 16300 16301 16302 16303pkg_failed=no 16304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 16305$as_echo_n "checking for SYSTEMD... " >&6; } 16306 16307if test -n "$SYSTEMD_CFLAGS"; then 16308 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" 16309 elif test -n "$PKG_CONFIG"; then 16310 if test -n "$PKG_CONFIG" && \ 16311 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 16312 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 16313 ac_status=$? 16314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16315 test $ac_status = 0; }; then 16316 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 16317 test "x$?" != "x0" && pkg_failed=yes 16318else 16319 pkg_failed=yes 16320fi 16321 else 16322 pkg_failed=untried 16323fi 16324if test -n "$SYSTEMD_LIBS"; then 16325 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" 16326 elif test -n "$PKG_CONFIG"; then 16327 if test -n "$PKG_CONFIG" && \ 16328 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 16329 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 16330 ac_status=$? 16331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16332 test $ac_status = 0; }; then 16333 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 16334 test "x$?" != "x0" && pkg_failed=yes 16335else 16336 pkg_failed=yes 16337fi 16338 else 16339 pkg_failed=untried 16340fi 16341 16342 16343 16344if test $pkg_failed = yes; then 16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16346$as_echo "no" >&6; } 16347 16348if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16349 _pkg_short_errors_supported=yes 16350else 16351 _pkg_short_errors_supported=no 16352fi 16353 if test $_pkg_short_errors_supported = yes; then 16354 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 16355 else 16356 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 16357 fi 16358 # Put the nasty error message in config.log where it belongs 16359 echo "$SYSTEMD_PKG_ERRORS" >&5 16360 16361 have_systemd=no 16362elif test $pkg_failed = untried; then 16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16364$as_echo "no" >&6; } 16365 have_systemd=no 16366else 16367 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS 16368 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS 16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16370$as_echo "yes" >&6; } 16371 have_systemd=yes 16372fi 16373 if test "x$have_systemd" != "xyes"; then : 16374 16375 16376pkg_failed=no 16377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 16378$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 16379 16380if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 16381 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 16382 elif test -n "$PKG_CONFIG"; then 16383 if test -n "$PKG_CONFIG" && \ 16384 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 16385 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 16386 ac_status=$? 16387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16388 test $ac_status = 0; }; then 16389 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 16390 test "x$?" != "x0" && pkg_failed=yes 16391else 16392 pkg_failed=yes 16393fi 16394 else 16395 pkg_failed=untried 16396fi 16397if test -n "$SYSTEMD_DAEMON_LIBS"; then 16398 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 16399 elif test -n "$PKG_CONFIG"; then 16400 if test -n "$PKG_CONFIG" && \ 16401 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 16402 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 16403 ac_status=$? 16404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16405 test $ac_status = 0; }; then 16406 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 16407 test "x$?" != "x0" && pkg_failed=yes 16408else 16409 pkg_failed=yes 16410fi 16411 else 16412 pkg_failed=untried 16413fi 16414 16415 16416 16417if test $pkg_failed = yes; then 16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16419$as_echo "no" >&6; } 16420 16421if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16422 _pkg_short_errors_supported=yes 16423else 16424 _pkg_short_errors_supported=no 16425fi 16426 if test $_pkg_short_errors_supported = yes; then 16427 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 16428 else 16429 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 16430 fi 16431 # Put the nasty error message in config.log where it belongs 16432 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 16433 16434 have_systemd_daemon=no 16435elif test $pkg_failed = untried; then 16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16437$as_echo "no" >&6; } 16438 have_systemd_daemon=no 16439else 16440 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 16441 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16443$as_echo "yes" >&6; } 16444 have_systemd_daemon=yes 16445fi 16446 if test "x$have_systemd_daemon" = "xyes"; then : 16447 have_systemd=yes 16448fi 16449 16450fi 16451 case $enable_systemd:$have_systemd in #( 16452 yes:no) : 16453 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #( 16454 *:yes) : 16455 16456$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h 16457 16458 LIBS="$LIBS $SYSTEMD_LIBS" 16459 16460 ;; #( 16461 *) : 16462 ;; 16463esac 16464 16465 16466fi 16467 if test "x$have_systemd" = xyes; then 16468 USE_SYSTEMD_TRUE= 16469 USE_SYSTEMD_FALSE='#' 16470else 16471 USE_SYSTEMD_TRUE='#' 16472 USE_SYSTEMD_FALSE= 16473fi 16474 16475 16476# Include systemd.m4 - end 16477 16478# set memory allocation checking if requested 16479# Check whether --enable-alloc-checks was given. 16480if test "${enable_alloc_checks+set}" = set; then : 16481 enableval=$enable_alloc_checks; 16482fi 16483 16484# Check whether --enable-alloc-lite was given. 16485if test "${enable_alloc_lite+set}" = set; then : 16486 enableval=$enable_alloc_lite; 16487fi 16488 16489# Check whether --enable-alloc-nonregional was given. 16490if test "${enable_alloc_nonregional+set}" = set; then : 16491 enableval=$enable_alloc_nonregional; 16492fi 16493 16494if test x_$enable_alloc_nonregional = x_yes; then 16495 16496$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h 16497 16498fi 16499if test x_$enable_alloc_checks = x_yes; then 16500 16501$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h 16502 16503 SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo" 16504 16505 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo" 16506 16507else 16508 if test x_$enable_alloc_lite = x_yes; then 16509 16510$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h 16511 16512 else 16513 16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 16515$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 16516 if test "$cross_compiling" = yes; then : 16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5 16518$as_echo "no (crosscompile)" >&6; } 16519 case " $LIBOBJS " in 16520 *" malloc.$ac_objext "* ) ;; 16521 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 16522 ;; 16523esac 16524 16525 16526cat >>confdefs.h <<_ACEOF 16527#define malloc rpl_malloc_unbound 16528_ACEOF 16529 16530else 16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16532/* end confdefs.h. */ 16533#if defined STDC_HEADERS || defined HAVE_STDLIB_H 16534#include <stdlib.h> 16535#else 16536char *malloc (); 16537#endif 16538 16539int 16540main () 16541{ 16542 if(malloc(0) != 0) return 1; 16543 ; 16544 return 0; 16545} 16546 16547_ACEOF 16548if ac_fn_c_try_run "$LINENO"; then : 16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16550$as_echo "no" >&6; } 16551 case " $LIBOBJS " in 16552 *" malloc.$ac_objext "* ) ;; 16553 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 16554 ;; 16555esac 16556 16557 16558cat >>confdefs.h <<_ACEOF 16559#define malloc rpl_malloc_unbound 16560_ACEOF 16561 16562else 16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16564$as_echo "yes" >&6; } 16565 16566$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 16567 16568fi 16569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16570 conftest.$ac_objext conftest.beam conftest.$ac_ext 16571fi 16572 16573 16574 fi 16575fi 16576 16577# check windows threads (we use them, not pthreads, on windows). 16578if test "$on_mingw" = "yes"; then 16579# check windows threads 16580 for ac_header in windows.h 16581do : 16582 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 16583" 16584if test "x$ac_cv_header_windows_h" = xyes; then : 16585 cat >>confdefs.h <<_ACEOF 16586#define HAVE_WINDOWS_H 1 16587_ACEOF 16588 16589fi 16590 16591done 16592 16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5 16594$as_echo_n "checking for CreateThread... " >&6; } 16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16596/* end confdefs.h. */ 16597 16598#ifdef HAVE_WINDOWS_H 16599#include <windows.h> 16600#endif 16601 16602int 16603main () 16604{ 16605 16606 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 16607 16608 ; 16609 return 0; 16610} 16611_ACEOF 16612if ac_fn_c_try_compile "$LINENO"; then : 16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16614$as_echo "yes" >&6; } 16615 16616$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h 16617 16618 16619else 16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16621$as_echo "no" >&6; } 16622 16623fi 16624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16625 16626else 16627# not on mingw, check thread libraries. 16628 16629# check for thread library. 16630# check this first, so that the pthread lib does not get linked in via 16631# libssl or libpython, and thus distorts the tests, and we end up using 16632# the non-threadsafe C libraries. 16633 16634# Check whether --with-pthreads was given. 16635if test "${with_pthreads+set}" = set; then : 16636 withval=$with_pthreads; 16637else 16638 withval="yes" 16639fi 16640 16641ub_have_pthreads=no 16642if test x_$withval != x_no; then 16643 16644 16645ac_ext=c 16646ac_cpp='$CPP $CPPFLAGS' 16647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16649ac_compiler_gnu=$ac_cv_c_compiler_gnu 16650 16651ax_pthread_ok=no 16652 16653# We used to check for pthread.h first, but this fails if pthread.h 16654# requires special compiler flags (e.g. on True64 or Sequent). 16655# It gets checked for in the link test anyway. 16656 16657# First of all, check if the user has set any of the PTHREAD_LIBS, 16658# etcetera environment variables, and if threads linking works using 16659# them: 16660if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 16661 save_CFLAGS="$CFLAGS" 16662 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16663 save_LIBS="$LIBS" 16664 LIBS="$PTHREAD_LIBS $LIBS" 16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 16666$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 16667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16668/* end confdefs.h. */ 16669 16670/* Override any GCC internal prototype to avoid an error. 16671 Use char because int might match the return type of a GCC 16672 builtin and then its argument prototype would still apply. */ 16673#ifdef __cplusplus 16674extern "C" 16675#endif 16676char pthread_join (); 16677int 16678main () 16679{ 16680return pthread_join (); 16681 ; 16682 return 0; 16683} 16684_ACEOF 16685if ac_fn_c_try_link "$LINENO"; then : 16686 ax_pthread_ok=yes 16687fi 16688rm -f core conftest.err conftest.$ac_objext \ 16689 conftest$ac_exeext conftest.$ac_ext 16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 16691$as_echo "$ax_pthread_ok" >&6; } 16692 if test x"$ax_pthread_ok" = xno; then 16693 PTHREAD_LIBS="" 16694 PTHREAD_CFLAGS="" 16695 fi 16696 LIBS="$save_LIBS" 16697 CFLAGS="$save_CFLAGS" 16698fi 16699 16700# We must check for the threads library under a number of different 16701# names; the ordering is very important because some systems 16702# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 16703# libraries is broken (non-POSIX). 16704 16705# Create a list of thread flags to try. Items starting with a "-" are 16706# C compiler flags, and other items are library names, except for "none" 16707# which indicates that we try without any flags at all, and "pthread-config" 16708# which is a program returning the flags for the Pth emulation library. 16709 16710ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 16711 16712# The ordering *is* (sometimes) important. Some notes on the 16713# individual items follow: 16714 16715# pthreads: AIX (must check this before -lpthread) 16716# none: in case threads are in libc; should be tried before -Kthread and 16717# other compiler flags to prevent continual compiler warnings 16718# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 16719# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 16720# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 16721# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 16722# -pthreads: Solaris/gcc 16723# -mthreads: Mingw32/gcc, Lynx/gcc 16724# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 16725# doesn't hurt to check since this sometimes defines pthreads too; 16726# also defines -D_REENTRANT) 16727# ... -mt is also the pthreads flag for HP/aCC 16728# pthread: Linux, etcetera 16729# --thread-safe: KAI C++ 16730# pthread-config: use pthread-config program (for GNU Pth library) 16731 16732case ${host_os} in 16733 solaris*) 16734 16735 # On Solaris (at least, for some versions), libc contains stubbed 16736 # (non-functional) versions of the pthreads routines, so link-based 16737 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 16738 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 16739 # a function called by this macro, so we could check for that, but 16740 # who knows whether they'll stub that too in a future libc.) So, 16741 # we'll just look for -pthreads and -lpthread first: 16742 16743 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 16744 ;; 16745 16746 darwin*) 16747 ax_pthread_flags="-pthread $ax_pthread_flags" 16748 ;; 16749esac 16750 16751# Clang doesn't consider unrecognized options an error unless we specify 16752# -Werror. We throw in some extra Clang-specific options to ensure that 16753# this doesn't happen for GCC, which also accepts -Werror. 16754 16755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 16756$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 16757save_CFLAGS="$CFLAGS" 16758ax_pthread_extra_flags="-Werror" 16759CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 16760cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16761/* end confdefs.h. */ 16762int foo(void); 16763int 16764main () 16765{ 16766foo() 16767 ; 16768 return 0; 16769} 16770_ACEOF 16771if ac_fn_c_try_compile "$LINENO"; then : 16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16773$as_echo "yes" >&6; } 16774else 16775 ax_pthread_extra_flags= 16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16777$as_echo "no" >&6; } 16778fi 16779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16780CFLAGS="$save_CFLAGS" 16781 16782if test x"$ax_pthread_ok" = xno; then 16783for flag in $ax_pthread_flags; do 16784 16785 case $flag in 16786 none) 16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 16788$as_echo_n "checking whether pthreads work without any flags... " >&6; } 16789 ;; 16790 16791 -*) 16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 16793$as_echo_n "checking whether pthreads work with $flag... " >&6; } 16794 PTHREAD_CFLAGS="$flag" 16795 ;; 16796 16797 pthread-config) 16798 # Extract the first word of "pthread-config", so it can be a program name with args. 16799set dummy pthread-config; ac_word=$2 16800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16801$as_echo_n "checking for $ac_word... " >&6; } 16802if ${ac_cv_prog_ax_pthread_config+:} false; then : 16803 $as_echo_n "(cached) " >&6 16804else 16805 if test -n "$ax_pthread_config"; then 16806 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 16807else 16808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16809for as_dir in $PATH 16810do 16811 IFS=$as_save_IFS 16812 test -z "$as_dir" && as_dir=. 16813 for ac_exec_ext in '' $ac_executable_extensions; do 16814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16815 ac_cv_prog_ax_pthread_config="yes" 16816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16817 break 2 16818 fi 16819done 16820 done 16821IFS=$as_save_IFS 16822 16823 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 16824fi 16825fi 16826ax_pthread_config=$ac_cv_prog_ax_pthread_config 16827if test -n "$ax_pthread_config"; then 16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 16829$as_echo "$ax_pthread_config" >&6; } 16830else 16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16832$as_echo "no" >&6; } 16833fi 16834 16835 16836 if test x"$ax_pthread_config" = xno; then continue; fi 16837 PTHREAD_CFLAGS="`pthread-config --cflags`" 16838 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 16839 ;; 16840 16841 *) 16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 16843$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 16844 PTHREAD_LIBS="-l$flag" 16845 ;; 16846 esac 16847 16848 save_LIBS="$LIBS" 16849 save_CFLAGS="$CFLAGS" 16850 LIBS="$PTHREAD_LIBS $LIBS" 16851 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 16852 16853 # Check for various functions. We must include pthread.h, 16854 # since some functions may be macros. (On the Sequent, we 16855 # need a special flag -Kthread to make this header compile.) 16856 # We check for pthread_join because it is in -lpthread on IRIX 16857 # while pthread_create is in libc. We check for pthread_attr_init 16858 # due to DEC craziness with -lpthreads. We check for 16859 # pthread_cleanup_push because it is one of the few pthread 16860 # functions on Solaris that doesn't have a non-functional libc stub. 16861 # We try pthread_create on general principles. 16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16863/* end confdefs.h. */ 16864#include <pthread.h> 16865 static void routine(void *a) { *((int*)a) = 0; } 16866 static void *start_routine(void *a) { return a; } 16867int 16868main () 16869{ 16870pthread_t th; pthread_attr_t attr; 16871 pthread_create(&th, 0, start_routine, 0); 16872 pthread_join(th, 0); 16873 pthread_attr_init(&attr); 16874 pthread_cleanup_push(routine, 0); 16875 pthread_cleanup_pop(0) /* ; */ 16876 ; 16877 return 0; 16878} 16879_ACEOF 16880if ac_fn_c_try_link "$LINENO"; then : 16881 ax_pthread_ok=yes 16882fi 16883rm -f core conftest.err conftest.$ac_objext \ 16884 conftest$ac_exeext conftest.$ac_ext 16885 16886 LIBS="$save_LIBS" 16887 CFLAGS="$save_CFLAGS" 16888 16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 16890$as_echo "$ax_pthread_ok" >&6; } 16891 if test "x$ax_pthread_ok" = xyes; then 16892 break; 16893 fi 16894 16895 PTHREAD_LIBS="" 16896 PTHREAD_CFLAGS="" 16897done 16898fi 16899 16900# Various other checks: 16901if test "x$ax_pthread_ok" = xyes; then 16902 save_LIBS="$LIBS" 16903 LIBS="$PTHREAD_LIBS $LIBS" 16904 save_CFLAGS="$CFLAGS" 16905 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16906 16907 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 16909$as_echo_n "checking for joinable pthread attribute... " >&6; } 16910 attr_name=unknown 16911 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 16912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16913/* end confdefs.h. */ 16914#include <pthread.h> 16915int 16916main () 16917{ 16918int attr = $attr; return attr /* ; */ 16919 ; 16920 return 0; 16921} 16922_ACEOF 16923if ac_fn_c_try_link "$LINENO"; then : 16924 attr_name=$attr; break 16925fi 16926rm -f core conftest.err conftest.$ac_objext \ 16927 conftest$ac_exeext conftest.$ac_ext 16928 done 16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 16930$as_echo "$attr_name" >&6; } 16931 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 16932 16933cat >>confdefs.h <<_ACEOF 16934#define PTHREAD_CREATE_JOINABLE $attr_name 16935_ACEOF 16936 16937 fi 16938 16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 16940$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 16941 flag=no 16942 case ${host_os} in 16943 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 16944 osf* | hpux*) flag="-D_REENTRANT";; 16945 solaris*) 16946 if test "$GCC" = "yes"; then 16947 flag="-D_REENTRANT" 16948 else 16949 # TODO: What about Clang on Solaris? 16950 flag="-mt -D_REENTRANT" 16951 fi 16952 ;; 16953 esac 16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 16955$as_echo "$flag" >&6; } 16956 if test "x$flag" != xno; then 16957 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 16958 fi 16959 16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 16961$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 16962if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 16963 $as_echo_n "(cached) " >&6 16964else 16965 16966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16967/* end confdefs.h. */ 16968#include <pthread.h> 16969int 16970main () 16971{ 16972int i = PTHREAD_PRIO_INHERIT; 16973 ; 16974 return 0; 16975} 16976_ACEOF 16977if ac_fn_c_try_link "$LINENO"; then : 16978 ax_cv_PTHREAD_PRIO_INHERIT=yes 16979else 16980 ax_cv_PTHREAD_PRIO_INHERIT=no 16981fi 16982rm -f core conftest.err conftest.$ac_objext \ 16983 conftest$ac_exeext conftest.$ac_ext 16984 16985fi 16986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 16987$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 16988 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 16989 16990$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 16991 16992fi 16993 16994 LIBS="$save_LIBS" 16995 CFLAGS="$save_CFLAGS" 16996 16997 # More AIX lossage: compile with *_r variant 16998 if test "x$GCC" != xyes; then 16999 case $host_os in 17000 aix*) 17001 case "x/$CC" in #( 17002 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 17003 #handle absolute path differently from PATH based program lookup 17004 case "x$CC" in #( 17005 x/*) : 17006 if as_fn_executable_p ${CC}_r; then : 17007 PTHREAD_CC="${CC}_r" 17008fi ;; #( 17009 *) : 17010 for ac_prog in ${CC}_r 17011do 17012 # Extract the first word of "$ac_prog", so it can be a program name with args. 17013set dummy $ac_prog; ac_word=$2 17014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17015$as_echo_n "checking for $ac_word... " >&6; } 17016if ${ac_cv_prog_PTHREAD_CC+:} false; then : 17017 $as_echo_n "(cached) " >&6 17018else 17019 if test -n "$PTHREAD_CC"; then 17020 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 17021else 17022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17023for as_dir in $PATH 17024do 17025 IFS=$as_save_IFS 17026 test -z "$as_dir" && as_dir=. 17027 for ac_exec_ext in '' $ac_executable_extensions; do 17028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17029 ac_cv_prog_PTHREAD_CC="$ac_prog" 17030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17031 break 2 17032 fi 17033done 17034 done 17035IFS=$as_save_IFS 17036 17037fi 17038fi 17039PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 17040if test -n "$PTHREAD_CC"; then 17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 17042$as_echo "$PTHREAD_CC" >&6; } 17043else 17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17045$as_echo "no" >&6; } 17046fi 17047 17048 17049 test -n "$PTHREAD_CC" && break 17050done 17051test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 17052 ;; 17053esac ;; #( 17054 *) : 17055 ;; 17056esac 17057 ;; 17058 esac 17059 fi 17060fi 17061 17062test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 17063 17064 17065 17066 17067 17068# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 17069if test x"$ax_pthread_ok" = xyes; then 17070 17071 17072$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 17073 17074 if test -n "$PTHREAD_LIBS"; then 17075 LIBS="$PTHREAD_LIBS $LIBS" 17076 fi 17077 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17078 CC="$PTHREAD_CC" 17079 ub_have_pthreads=yes 17080 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h> 17081" 17082if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then : 17083 17084cat >>confdefs.h <<_ACEOF 17085#define HAVE_PTHREAD_SPINLOCK_T 1 17086_ACEOF 17087 17088 17089fi 17090ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 17091" 17092if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 17093 17094cat >>confdefs.h <<_ACEOF 17095#define HAVE_PTHREAD_RWLOCK_T 1 17096_ACEOF 17097 17098 17099fi 17100 17101 17102 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then 17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5 17104$as_echo_n "checking if -pthread unused during linking... " >&6; } 17105 # catch clang warning 'argument unused during compilation' 17106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17107/* end confdefs.h. */ 17108$ac_includes_default 17109 17110int main(void) {return 0;} 17111 17112_ACEOF 17113 pthread_unused="yes" 17114 # first compile 17115 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5 17116 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5 17117 if test $? = 0; then 17118 # then link 17119 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5 17120 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5 17121 if test $? -ne 0; then 17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17123$as_echo "yes" >&6; } 17124 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'` 17125 PTHREAD_CFLAGS_ONLY="-pthread" 17126 17127 else 17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17129$as_echo "no" >&6; } 17130 fi 17131 else 17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17133$as_echo "no" >&6; } 17134 fi # endif cc successful 17135 rm -f conftest conftest.c conftest.o 17136 fi # endif -pthread in CFLAGS 17137 17138 17139 : 17140else 17141 ax_pthread_ok=no 17142 17143fi 17144ac_ext=c 17145ac_cpp='$CPP $CPPFLAGS' 17146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17148ac_compiler_gnu=$ac_cv_c_compiler_gnu 17149 17150 17151fi 17152 17153# check solaris thread library 17154 17155# Check whether --with-solaris-threads was given. 17156if test "${with_solaris_threads+set}" = set; then : 17157 withval=$with_solaris_threads; 17158else 17159 withval="no" 17160fi 17161 17162ub_have_sol_threads=no 17163if test x_$withval != x_no; then 17164 if test x_$ub_have_pthreads != x_no; then 17165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5 17166$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;} 17167 else 17168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5 17169$as_echo_n "checking for library containing thr_create... " >&6; } 17170if ${ac_cv_search_thr_create+:} false; then : 17171 $as_echo_n "(cached) " >&6 17172else 17173 ac_func_search_save_LIBS=$LIBS 17174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17175/* end confdefs.h. */ 17176 17177/* Override any GCC internal prototype to avoid an error. 17178 Use char because int might match the return type of a GCC 17179 builtin and then its argument prototype would still apply. */ 17180#ifdef __cplusplus 17181extern "C" 17182#endif 17183char thr_create (); 17184int 17185main () 17186{ 17187return thr_create (); 17188 ; 17189 return 0; 17190} 17191_ACEOF 17192for ac_lib in '' thread; do 17193 if test -z "$ac_lib"; then 17194 ac_res="none required" 17195 else 17196 ac_res=-l$ac_lib 17197 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17198 fi 17199 if ac_fn_c_try_link "$LINENO"; then : 17200 ac_cv_search_thr_create=$ac_res 17201fi 17202rm -f core conftest.err conftest.$ac_objext \ 17203 conftest$ac_exeext 17204 if ${ac_cv_search_thr_create+:} false; then : 17205 break 17206fi 17207done 17208if ${ac_cv_search_thr_create+:} false; then : 17209 17210else 17211 ac_cv_search_thr_create=no 17212fi 17213rm conftest.$ac_ext 17214LIBS=$ac_func_search_save_LIBS 17215fi 17216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5 17217$as_echo "$ac_cv_search_thr_create" >&6; } 17218ac_res=$ac_cv_search_thr_create 17219if test "$ac_res" != no; then : 17220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17221 17222 17223$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h 17224 17225 17226 17227 17228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5 17229$as_echo_n "checking whether $CC supports -mt... " >&6; } 17230cache=`echo mt | sed 'y%.=/+-%___p_%'` 17231if eval \${cv_prog_cc_flag_$cache+:} false; then : 17232 $as_echo_n "(cached) " >&6 17233else 17234 17235echo 'void f(void){}' >conftest.c 17236if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then 17237eval "cv_prog_cc_flag_$cache=yes" 17238else 17239eval "cv_prog_cc_flag_$cache=no" 17240fi 17241rm -f conftest conftest.o conftest.c 17242 17243fi 17244 17245if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 17246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17247$as_echo "yes" >&6; } 17248: 17249CFLAGS="$CFLAGS -mt" 17250else 17251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17252$as_echo "no" >&6; } 17253: 17254CFLAGS="$CFLAGS -D_REENTRANT" 17255fi 17256 17257 ub_have_sol_threads=yes 17258 17259else 17260 17261 as_fn_error $? "no solaris threads found." "$LINENO" 5 17262 17263fi 17264 17265 fi 17266fi 17267 17268fi # end of non-mingw check of thread libraries 17269 17270# Check for SYSLOG_FACILITY 17271 17272# Check whether --with-syslog-facility was given. 17273if test "${with_syslog_facility+set}" = set; then : 17274 withval=$with_syslog_facility; UNBOUND_SYSLOG_FACILITY="$withval" 17275fi 17276 17277case "${UNBOUND_SYSLOG_FACILITY}" in 17278 17279 LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;; 17280 17281 *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;; 17282 17283esac 17284 17285cat >>confdefs.h <<_ACEOF 17286#define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY} 17287_ACEOF 17288 17289 17290# Check for dynamic library module 17291 17292# Check whether --with-dynlibmodule was given. 17293if test "${with_dynlibmodule+set}" = set; then : 17294 withval=$with_dynlibmodule; 17295else 17296 withval="no" 17297fi 17298 17299 17300if test x_$withval != x_no; then 17301 17302$as_echo "#define WITH_DYNLIBMODULE 1" >>confdefs.h 17303 17304 WITH_DYNLIBMODULE=yes 17305 17306 DYNLIBMOD_OBJ="dynlibmod.lo" 17307 17308 DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h' 17309 17310 if test $on_mingw = "no"; then 17311 # link with -ldl if not already there, for all executables because 17312 # dlopen call is in the dynlib module. For unbound executable, also 17313 # export symbols. 17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 17315$as_echo_n "checking for library containing dlopen... " >&6; } 17316if ${ac_cv_search_dlopen+:} false; then : 17317 $as_echo_n "(cached) " >&6 17318else 17319 ac_func_search_save_LIBS=$LIBS 17320cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17321/* end confdefs.h. */ 17322 17323/* Override any GCC internal prototype to avoid an error. 17324 Use char because int might match the return type of a GCC 17325 builtin and then its argument prototype would still apply. */ 17326#ifdef __cplusplus 17327extern "C" 17328#endif 17329char dlopen (); 17330int 17331main () 17332{ 17333return dlopen (); 17334 ; 17335 return 0; 17336} 17337_ACEOF 17338for ac_lib in '' dl; do 17339 if test -z "$ac_lib"; then 17340 ac_res="none required" 17341 else 17342 ac_res=-l$ac_lib 17343 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17344 fi 17345 if ac_fn_c_try_link "$LINENO"; then : 17346 ac_cv_search_dlopen=$ac_res 17347fi 17348rm -f core conftest.err conftest.$ac_objext \ 17349 conftest$ac_exeext 17350 if ${ac_cv_search_dlopen+:} false; then : 17351 break 17352fi 17353done 17354if ${ac_cv_search_dlopen+:} false; then : 17355 17356else 17357 ac_cv_search_dlopen=no 17358fi 17359rm conftest.$ac_ext 17360LIBS=$ac_func_search_save_LIBS 17361fi 17362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 17363$as_echo "$ac_cv_search_dlopen" >&6; } 17364ac_res=$ac_cv_search_dlopen 17365if test "$ac_res" != no; then : 17366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17367 17368fi 17369 17370 DYNLIBMOD_EXTRALIBS="-export-dynamic" 17371 else 17372 DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a" 17373 fi 17374 17375fi 17376 17377# Check for PyUnbound 17378 17379# Check whether --with-pyunbound was given. 17380if test "${with_pyunbound+set}" = set; then : 17381 withval=$with_pyunbound; 17382else 17383 withval="no" 17384fi 17385 17386 17387ub_test_python=no 17388ub_with_pyunbound=no 17389if test x_$withval != x_no; then 17390 ub_with_pyunbound=yes 17391 ub_test_python=yes 17392fi 17393 17394# Check for Python module 17395 17396# Check whether --with-pythonmodule was given. 17397if test "${with_pythonmodule+set}" = set; then : 17398 withval=$with_pythonmodule; 17399else 17400 withval="no" 17401fi 17402 17403 17404ub_with_pythonmod=no 17405if test x_$withval != x_no; then 17406 ub_with_pythonmod=yes 17407 ub_test_python=yes 17408fi 17409 17410# Check for Python & SWIG only on PyUnbound or PyModule 17411if test x_$ub_test_python != x_no; then 17412 17413 # Check for Python 17414 ub_have_python=no 17415 ac_save_LIBS="$LIBS" 17416 # 17417 # Allow the use of a (user set) custom python version 17418 # 17419 17420 17421 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 17422set dummy python$PYTHON_VERSION; ac_word=$2 17423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17424$as_echo_n "checking for $ac_word... " >&6; } 17425if ${ac_cv_path_PYTHON+:} false; then : 17426 $as_echo_n "(cached) " >&6 17427else 17428 case $PYTHON in 17429 [\\/]* | ?:[\\/]*) 17430 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 17431 ;; 17432 *) 17433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17434for as_dir in $PATH 17435do 17436 IFS=$as_save_IFS 17437 test -z "$as_dir" && as_dir=. 17438 for ac_exec_ext in '' $ac_executable_extensions; do 17439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17440 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 17441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17442 break 2 17443 fi 17444done 17445 done 17446IFS=$as_save_IFS 17447 17448 ;; 17449esac 17450fi 17451PYTHON=$ac_cv_path_PYTHON 17452if test -n "$PYTHON"; then 17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 17454$as_echo "$PYTHON" >&6; } 17455else 17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17457$as_echo "no" >&6; } 17458fi 17459 17460 17461 if test -z "$PYTHON"; then 17462 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 17463 PYTHON_VERSION="" 17464 fi 17465 17466 if test -z "$PYTHON_VERSION"; then 17467 PYTHON_VERSION=`$PYTHON -c "import sys; \ 17468 print(sys.version.split()[0])"` 17469 fi 17470 17471 # Check if you have sysconfig 17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the sysconfig Python module" >&5 17473$as_echo_n "checking for the sysconfig Python module... " >&6; } 17474 if ac_sysconfig_result=`$PYTHON -c "import sysconfig" 2>&1`; then 17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17476$as_echo "yes" >&6; } 17477 sysconfig_module="sysconfig" 17478 # if yes, use sysconfig, because distutils is deprecated. 17479 else 17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17481$as_echo "no" >&6; } 17482 # if no, try to use distutils 17483 17484 # 17485 # Check if you have distutils, else fail 17486 # 17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 17488$as_echo_n "checking for the distutils Python package... " >&6; } 17489 if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then 17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17491$as_echo "yes" >&6; } 17492 else 17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17494$as_echo "no" >&6; } 17495 as_fn_error $? "cannot import Python module \"distutils\". 17496 Please check your Python installation. The error was: 17497 $ac_distutils_result" "$LINENO" 5 17498 PYTHON_VERSION="" 17499 fi 17500 17501 sysconfig_module="distutils.sysconfig" 17502 fi 17503 17504 # 17505 # Check for Python include path 17506 # 17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 17508$as_echo_n "checking for Python include path... " >&6; } 17509 if test -z "$PYTHON_CPPFLAGS"; then 17510 if test "$sysconfig_module" = "sysconfig"; then 17511 python_path=`$PYTHON -c 'import sysconfig; \ 17512 print(sysconfig.get_path("include"));'` 17513 else 17514 python_path=`$PYTHON -c "import distutils.sysconfig; \ 17515 print(distutils.sysconfig.get_python_inc());"` 17516 fi 17517 if test -n "${python_path}"; then 17518 python_path="-I$python_path" 17519 fi 17520 PYTHON_CPPFLAGS=$python_path 17521 fi 17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 17523$as_echo "$PYTHON_CPPFLAGS" >&6; } 17524 17525 17526 # 17527 # Check for Python library path 17528 # 17529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 17530$as_echo_n "checking for Python library path... " >&6; } 17531 if test -z "$PYTHON_LDFLAGS"; then 17532 PYTHON_LDFLAGS=`$PYTHON -c "from $sysconfig_module import *; \ 17533 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"` 17534 fi 17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 17536$as_echo "$PYTHON_LDFLAGS" >&6; } 17537 17538 17539 if test -z "$PYTHON_LIBDIR"; then 17540 PYTHON_LIBDIR=`$PYTHON -c "from $sysconfig_module import *; \ 17541 print(get_config_var('LIBDIR'));"` 17542 fi 17543 17544 # 17545 # Check for site packages 17546 # 17547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 17548$as_echo_n "checking for Python site-packages path... " >&6; } 17549 if test -z "$PYTHON_SITE_PKG"; then 17550 if test "$sysconfig_module" = "sysconfig"; then 17551 PYTHON_SITE_PKG=`$PYTHON -c 'import sysconfig; \ 17552 print(sysconfig.get_path("platlib"));'` 17553 else 17554 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 17555 print(distutils.sysconfig.get_python_lib(1,0));"` 17556 fi 17557 fi 17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 17559$as_echo "$PYTHON_SITE_PKG" >&6; } 17560 17561 17562 # 17563 # final check to see if everything compiles alright 17564 # 17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 17566$as_echo_n "checking consistency of all components of python development environment... " >&6; } 17567 ac_ext=c 17568ac_cpp='$CPP $CPPFLAGS' 17569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17571ac_compiler_gnu=$ac_cv_c_compiler_gnu 17572 17573 # save current global flags 17574 ac_save_LIBS="$LIBS" 17575 ac_save_CPPFLAGS="$CPPFLAGS" 17576 17577 LIBS="$LIBS $PYTHON_LDFLAGS" 17578 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17580/* end confdefs.h. */ 17581 17582 #include <Python.h> 17583 17584int 17585main () 17586{ 17587 17588 Py_Initialize(); 17589 17590 ; 17591 return 0; 17592} 17593_ACEOF 17594if ac_fn_c_try_link "$LINENO"; then : 17595 pythonexists=yes 17596else 17597 pythonexists=no 17598fi 17599rm -f core conftest.err conftest.$ac_objext \ 17600 conftest$ac_exeext conftest.$ac_ext 17601 17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 17603$as_echo "$pythonexists" >&6; } 17604 17605 if test ! "$pythonexists" = "yes"; then 17606 as_fn_error $? " 17607 Could not link test program to Python. Maybe the main Python library has been 17608 installed in some non-standard library path. If so, pass it to configure, 17609 via the LDFLAGS environment variable. 17610 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 17611 ============================================================================ 17612 ERROR! 17613 You probably have to install the development version of the Python package 17614 for your distribution. The exact name of this package varies among them. 17615 ============================================================================ 17616 " "$LINENO" 5 17617 PYTHON_VERSION="" 17618 fi 17619 ac_ext=c 17620ac_cpp='$CPP $CPPFLAGS' 17621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17623ac_compiler_gnu=$ac_cv_c_compiler_gnu 17624 17625 # turn back to default flags 17626 CPPFLAGS="$ac_save_CPPFLAGS" 17627 LIBS="$ac_save_LIBS" 17628 17629 # 17630 # all done! 17631 # 17632 17633 if test ! -z "$PYTHON_VERSION"; then 17634 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then 17635 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5 17636 fi 17637 17638 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`" 17639 17640 # Have Python 17641 17642$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 17643 17644 if test x_$ub_with_pythonmod != x_no; then 17645 if test -n "$LIBS"; then 17646 LIBS="$PYTHON_LDFLAGS $LIBS" 17647 else 17648 LIBS="$PYTHON_LDFLAGS" 17649 fi 17650 fi 17651 PYTHON_LIBS="$PYTHON_LDFLAGS" 17652 17653 if test -n "$CPPFLAGS"; then 17654 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 17655 else 17656 CPPFLAGS="$PYTHON_CPPFLAGS" 17657 fi 17658 if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then 17659 17660 if test "x$enable_rpath" = xyes; then 17661 if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then 17662 RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR" 17663 fi 17664 fi 17665 17666 fi 17667 ub_have_python=yes 17668 if test -n "$PKG_CONFIG" && \ 17669 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5 17670 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5 17671 ac_status=$? 17672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17673 test $ac_status = 0; }; then 17674 PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}" 17675else 17676 PC_PY_DEPENDENCY="python" 17677fi 17678 17679 17680 # Check for SWIG 17681 ub_have_swig=no 17682 # Check whether --enable-swig-version-check was given. 17683if test "${enable_swig_version_check+set}" = set; then : 17684 enableval=$enable_swig_version_check; 17685fi 17686 17687 if test "$enable_swig_version_check" = "yes"; then 17688 17689 # Extract the first word of "swig", so it can be a program name with args. 17690set dummy swig; ac_word=$2 17691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17692$as_echo_n "checking for $ac_word... " >&6; } 17693if ${ac_cv_path_SWIG+:} false; then : 17694 $as_echo_n "(cached) " >&6 17695else 17696 case $SWIG in 17697 [\\/]* | ?:[\\/]*) 17698 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 17699 ;; 17700 *) 17701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17702for as_dir in $PATH 17703do 17704 IFS=$as_save_IFS 17705 test -z "$as_dir" && as_dir=. 17706 for ac_exec_ext in '' $ac_executable_extensions; do 17707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17708 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 17709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17710 break 2 17711 fi 17712done 17713 done 17714IFS=$as_save_IFS 17715 17716 ;; 17717esac 17718fi 17719SWIG=$ac_cv_path_SWIG 17720if test -n "$SWIG"; then 17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 17722$as_echo "$SWIG" >&6; } 17723else 17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17725$as_echo "no" >&6; } 17726fi 17727 17728 17729 if test -z "$SWIG" ; then 17730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 17731$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 17732 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 17733 elif test -n "2.0.1" ; then 17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 17735$as_echo_n "checking for SWIG version... " >&6; } 17736 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'` 17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 17738$as_echo "$swig_version" >&6; } 17739 if test -n "$swig_version" ; then 17740 # Calculate the required version number components 17741 required=2.0.1 17742 required_major=`echo $required | sed 's/[^0-9].*//'` 17743 if test -z "$required_major" ; then 17744 required_major=0 17745 fi 17746 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17747 required_minor=`echo $required | sed 's/[^0-9].*//'` 17748 if test -z "$required_minor" ; then 17749 required_minor=0 17750 fi 17751 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17752 required_patch=`echo $required | sed 's/[^0-9].*//'` 17753 if test -z "$required_patch" ; then 17754 required_patch=0 17755 fi 17756 # Calculate the available version number components 17757 available=$swig_version 17758 available_major=`echo $available | sed 's/[^0-9].*//'` 17759 if test -z "$available_major" ; then 17760 available_major=0 17761 fi 17762 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17763 available_minor=`echo $available | sed 's/[^0-9].*//'` 17764 if test -z "$available_minor" ; then 17765 available_minor=0 17766 fi 17767 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17768 available_patch=`echo $available | sed 's/[^0-9].*//'` 17769 if test -z "$available_patch" ; then 17770 available_patch=0 17771 fi 17772 badversion=0 17773 if test $available_major -lt $required_major ; then 17774 badversion=1 17775 fi 17776 if test $available_major -eq $required_major \ 17777 -a $available_minor -lt $required_minor ; then 17778 badversion=1 17779 fi 17780 if test $available_major -eq $required_major \ 17781 -a $available_minor -eq $required_minor \ 17782 -a $available_patch -lt $required_patch ; then 17783 badversion=1 17784 fi 17785 if test $badversion -eq 1 ; then 17786 { $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 17787$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;} 17788 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 17789 else 17790 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 17791$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 17792 SWIG_LIB=`$SWIG -swiglib` 17793 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 17794$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 17795 fi 17796 else 17797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 17798$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 17799 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 17800 fi 17801 fi 17802 17803 17804 else 17805 17806 # Extract the first word of "swig", so it can be a program name with args. 17807set dummy swig; ac_word=$2 17808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17809$as_echo_n "checking for $ac_word... " >&6; } 17810if ${ac_cv_path_SWIG+:} false; then : 17811 $as_echo_n "(cached) " >&6 17812else 17813 case $SWIG in 17814 [\\/]* | ?:[\\/]*) 17815 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 17816 ;; 17817 *) 17818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17819for as_dir in $PATH 17820do 17821 IFS=$as_save_IFS 17822 test -z "$as_dir" && as_dir=. 17823 for ac_exec_ext in '' $ac_executable_extensions; do 17824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17825 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 17826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17827 break 2 17828 fi 17829done 17830 done 17831IFS=$as_save_IFS 17832 17833 ;; 17834esac 17835fi 17836SWIG=$ac_cv_path_SWIG 17837if test -n "$SWIG"; then 17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 17839$as_echo "$SWIG" >&6; } 17840else 17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17842$as_echo "no" >&6; } 17843fi 17844 17845 17846 if test -z "$SWIG" ; then 17847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 17848$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 17849 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 17850 elif test -n "" ; then 17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 17852$as_echo_n "checking for SWIG version... " >&6; } 17853 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'` 17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 17855$as_echo "$swig_version" >&6; } 17856 if test -n "$swig_version" ; then 17857 # Calculate the required version number components 17858 required= 17859 required_major=`echo $required | sed 's/[^0-9].*//'` 17860 if test -z "$required_major" ; then 17861 required_major=0 17862 fi 17863 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17864 required_minor=`echo $required | sed 's/[^0-9].*//'` 17865 if test -z "$required_minor" ; then 17866 required_minor=0 17867 fi 17868 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17869 required_patch=`echo $required | sed 's/[^0-9].*//'` 17870 if test -z "$required_patch" ; then 17871 required_patch=0 17872 fi 17873 # Calculate the available version number components 17874 available=$swig_version 17875 available_major=`echo $available | sed 's/[^0-9].*//'` 17876 if test -z "$available_major" ; then 17877 available_major=0 17878 fi 17879 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17880 available_minor=`echo $available | sed 's/[^0-9].*//'` 17881 if test -z "$available_minor" ; then 17882 available_minor=0 17883 fi 17884 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17885 available_patch=`echo $available | sed 's/[^0-9].*//'` 17886 if test -z "$available_patch" ; then 17887 available_patch=0 17888 fi 17889 badversion=0 17890 if test $available_major -lt $required_major ; then 17891 badversion=1 17892 fi 17893 if test $available_major -eq $required_major \ 17894 -a $available_minor -lt $required_minor ; then 17895 badversion=1 17896 fi 17897 if test $available_major -eq $required_major \ 17898 -a $available_minor -eq $required_minor \ 17899 -a $available_patch -lt $required_patch ; then 17900 badversion=1 17901 fi 17902 if test $badversion -eq 1 ; then 17903 { $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 17904$as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 17905 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 17906 else 17907 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 17908$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 17909 SWIG_LIB=`$SWIG -swiglib` 17910 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 17911$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 17912 fi 17913 else 17914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 17915$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 17916 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 17917 fi 17918 fi 17919 17920 17921 fi 17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5 17923$as_echo_n "checking SWIG... " >&6; } 17924 if test ! -x "$SWIG"; then 17925 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5 17926 else 17927 17928$as_echo "#define HAVE_SWIG 1" >>confdefs.h 17929 17930 swig="$SWIG" 17931 17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 17933$as_echo "present" >&6; } 17934 17935 # If have Python & SWIG 17936 # Declare PythonMod 17937 if test x_$ub_with_pythonmod != x_no; then 17938 17939$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h 17940 17941 WITH_PYTHONMODULE=yes 17942 17943 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo" 17944 17945 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h' 17946 17947 PYTHONMOD_INSTALL=pythonmod-install 17948 17949 PYTHONMOD_UNINSTALL=pythonmod-uninstall 17950 17951 fi 17952 17953 # Declare PyUnbound 17954 if test x_$ub_with_pyunbound != x_no; then 17955 17956$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h 17957 17958 WITH_PYUNBOUND=yes 17959 17960 PYUNBOUND_OBJ="libunbound_wrap.lo" 17961 17962 PYUNBOUND_TARGET="_unbound.la" 17963 17964 PYUNBOUND_INSTALL=pyunbound-install 17965 17966 PYUNBOUND_UNINSTALL=pyunbound-uninstall 17967 17968 fi 17969 fi 17970 else 17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5 17972$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; } 17973 ub_with_pyunbound=no 17974 ub_with_pythonmod=no 17975 fi 17976fi 17977 17978if test "`uname`" = "NetBSD"; then 17979 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_' 17980 17981fi 17982 17983if test "`uname`" = "Linux"; then 17984 # splint cannot parse modern c99 header files 17985 GCC_DOCKER_LINTFLAGS='-syntax' 17986 17987fi 17988CONFIG_DATE=`date +%Y%m%d` 17989 17990 17991# Checks for libraries. 17992 17993# libnss 17994USE_NSS="no" 17995 17996# Check whether --with-nss was given. 17997if test "${with_nss+set}" = set; then : 17998 withval=$with_nss; 17999 USE_NSS="yes" 18000 18001$as_echo "#define HAVE_NSS 1" >>confdefs.h 18002 18003 if test "$withval" != "" -a "$withval" != "yes"; then 18004 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3" 18005 LDFLAGS="$LDFLAGS -L$withval/lib" 18006 18007 if test "x$enable_rpath" = xyes; then 18008 if echo "$withval/lib" | grep "^/" >/dev/null; then 18009 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 18010 fi 18011 fi 18012 18013 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" 18014 else 18015 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" 18016 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" 18017 fi 18018 LIBS="$LIBS -lnss3 -lnspr4" 18019 SSLLIB="" 18020 PC_CRYPTO_DEPENDENCY="nss nspr" 18021 18022 18023 18024fi 18025 18026 18027# libnettle 18028USE_NETTLE="no" 18029 18030# Check whether --with-nettle was given. 18031if test "${with_nettle+set}" = set; then : 18032 withval=$with_nettle; 18033 USE_NETTLE="yes" 18034 18035$as_echo "#define HAVE_NETTLE 1" >>confdefs.h 18036 18037 for ac_header in nettle/dsa-compat.h 18038do : 18039 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default 18040" 18041if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then : 18042 cat >>confdefs.h <<_ACEOF 18043#define HAVE_NETTLE_DSA_COMPAT_H 1 18044_ACEOF 18045 18046fi 18047 18048done 18049 18050 if test "$withval" != "" -a "$withval" != "yes"; then 18051 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle" 18052 LDFLAGS="$LDFLAGS -L$withval/lib" 18053 18054 if test "x$enable_rpath" = xyes; then 18055 if echo "$withval/lib" | grep "^/" >/dev/null; then 18056 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 18057 fi 18058 fi 18059 18060 else 18061 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle" 18062 fi 18063 LIBS="$LIBS -lhogweed -lnettle -lgmp" 18064 SSLLIB="" 18065 PC_CRYPTO_DEPENDENCY="hogweed nettle" 18066 18067 18068 18069fi 18070 18071 18072# openssl 18073if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 18074 18075 18076# Check whether --with-ssl was given. 18077if test "${with_ssl+set}" = set; then : 18078 withval=$with_ssl; 18079 18080else 18081 18082 withval="yes" 18083 18084fi 18085 18086 if test x_$withval = x_no; then 18087 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5 18088 fi 18089 18090 withval=$withval 18091 if test x_$withval != x_no; then 18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 18093$as_echo_n "checking for SSL... " >&6; } 18094 if test -n "$withval"; then 18095 if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then 18096 ssldir="$withval" 18097 found_ssl="yes" 18098 withval="" 18099 ssldir_include="$ssldir" 18100 ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'` 18101 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 18102 : # found here 18103 else 18104 ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'` 18105 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 18106 : # found here 18107 else 18108 as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5 18109 fi 18110 fi 18111 fi 18112 fi 18113 if test x_$withval = x_ -o x_$withval = x_yes; then 18114 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 18115 fi 18116 for dir in $withval; do 18117 ssldir="$dir" 18118 if test -f "$dir/include/openssl/ssl.h"; then 18119 found_ssl="yes" 18120 ssldir_include="$ssldir/include" 18121 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then 18122 ssldir_lib="$ssldir/lib64" 18123 else 18124 ssldir_lib="$ssldir/lib" 18125 fi 18126 break; 18127 fi 18128 done 18129 if test x_$found_ssl != x_yes; then 18130 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 18131 else 18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 18133$as_echo "found in $ssldir" >&6; } 18134 18135cat >>confdefs.h <<_ACEOF 18136#define HAVE_SSL /**/ 18137_ACEOF 18138 18139 HAVE_SSL=yes 18140 if test "$ssldir" != "/usr"; then 18141 CPPFLAGS="$CPPFLAGS -I$ssldir_include" 18142 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir_include" 18143 LDFLAGS="$LDFLAGS -L$ssldir_lib" 18144 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir_lib" 18145 18146 if test "x$enable_rpath" = xyes; then 18147 if echo "$ssldir_lib" | grep "^/" >/dev/null; then 18148 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir_lib" 18149 fi 18150 fi 18151 18152 fi 18153 18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5 18155$as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; } 18156 LIBS="$LIBS -lcrypto" 18157 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 18158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18159/* end confdefs.h. */ 18160 18161int 18162main () 18163{ 18164 18165 int EVP_sha256(void); 18166 (void)EVP_sha256(); 18167 18168 ; 18169 return 0; 18170} 18171_ACEOF 18172if ac_fn_c_try_link "$LINENO"; then : 18173 18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18175$as_echo "yes" >&6; } 18176 18177$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 18178 18179 18180else 18181 18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18183$as_echo "no" >&6; } 18184 # check if -lwsock32 or -lgdi32 are needed. 18185 BAKLIBS="$LIBS" 18186 BAKSSLLIBS="$LIBSSL_LIBS" 18187 LIBS="$LIBS -lgdi32 -lws2_32" 18188 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32" 18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 18190$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; } 18191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18192/* end confdefs.h. */ 18193 18194int 18195main () 18196{ 18197 18198 int EVP_sha256(void); 18199 (void)EVP_sha256(); 18200 18201 ; 18202 return 0; 18203} 18204_ACEOF 18205if ac_fn_c_try_link "$LINENO"; then : 18206 18207 18208$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 18209 18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18211$as_echo "yes" >&6; } 18212 18213else 18214 18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18216$as_echo "no" >&6; } 18217 LIBS="$BAKLIBS" 18218 LIBSSL_LIBS="$BAKSSLLIBS" 18219 LIBS="$LIBS -ldl" 18220 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 18222$as_echo_n "checking if -lcrypto needs -ldl... " >&6; } 18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18224/* end confdefs.h. */ 18225 18226int 18227main () 18228{ 18229 18230 int EVP_sha256(void); 18231 (void)EVP_sha256(); 18232 18233 ; 18234 return 0; 18235} 18236_ACEOF 18237if ac_fn_c_try_link "$LINENO"; then : 18238 18239 18240$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 18241 18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18243$as_echo "yes" >&6; } 18244 18245else 18246 18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18248$as_echo "no" >&6; } 18249 LIBS="$BAKLIBS" 18250 LIBSSL_LIBS="$BAKSSLLIBS" 18251 LIBS="$LIBS -ldl -pthread" 18252 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread" 18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5 18254$as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; } 18255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18256/* end confdefs.h. */ 18257 18258int 18259main () 18260{ 18261 18262 int EVP_sha256(void); 18263 (void)EVP_sha256(); 18264 18265 ; 18266 return 0; 18267} 18268_ACEOF 18269if ac_fn_c_try_link "$LINENO"; then : 18270 18271 18272$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 18273 18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18275$as_echo "yes" >&6; } 18276 18277else 18278 18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18280$as_echo "no" >&6; } 18281 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 18282 18283fi 18284rm -f core conftest.err conftest.$ac_objext \ 18285 conftest$ac_exeext conftest.$ac_ext 18286 18287fi 18288rm -f core conftest.err conftest.$ac_objext \ 18289 conftest$ac_exeext conftest.$ac_ext 18290 18291fi 18292rm -f core conftest.err conftest.$ac_objext \ 18293 conftest$ac_exeext conftest.$ac_ext 18294 18295fi 18296rm -f core conftest.err conftest.$ac_objext \ 18297 conftest$ac_exeext conftest.$ac_ext 18298 fi 18299 18300 18301 fi 18302for ac_header in openssl/ssl.h 18303do : 18304 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 18305" 18306if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 18307 cat >>confdefs.h <<_ACEOF 18308#define HAVE_OPENSSL_SSL_H 1 18309_ACEOF 18310 18311fi 18312 18313done 18314 18315for ac_header in openssl/err.h 18316do : 18317 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 18318" 18319if test "x$ac_cv_header_openssl_err_h" = xyes; then : 18320 cat >>confdefs.h <<_ACEOF 18321#define HAVE_OPENSSL_ERR_H 1 18322_ACEOF 18323 18324fi 18325 18326done 18327 18328for ac_header in openssl/rand.h 18329do : 18330 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 18331" 18332if test "x$ac_cv_header_openssl_rand_h" = xyes; then : 18333 cat >>confdefs.h <<_ACEOF 18334#define HAVE_OPENSSL_RAND_H 1 18335_ACEOF 18336 18337fi 18338 18339done 18340 18341 18342 18343 18344# check if libssl needs libdl 18345BAKLIBS="$LIBS" 18346LIBS="-lssl $LIBS" 18347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 18348$as_echo_n "checking if libssl needs libdl... " >&6; } 18349cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18350/* end confdefs.h. */ 18351 18352/* Override any GCC internal prototype to avoid an error. 18353 Use char because int might match the return type of a GCC 18354 builtin and then its argument prototype would still apply. */ 18355#ifdef __cplusplus 18356extern "C" 18357#endif 18358char SSL_CTX_new (); 18359int 18360main () 18361{ 18362return SSL_CTX_new (); 18363 ; 18364 return 0; 18365} 18366_ACEOF 18367if ac_fn_c_try_link "$LINENO"; then : 18368 18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18370$as_echo "no" >&6; } 18371 LIBS="$BAKLIBS" 18372 18373else 18374 18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18376$as_echo "yes" >&6; } 18377 LIBS="$BAKLIBS" 18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 18379$as_echo_n "checking for library containing dlopen... " >&6; } 18380if ${ac_cv_search_dlopen+:} false; then : 18381 $as_echo_n "(cached) " >&6 18382else 18383 ac_func_search_save_LIBS=$LIBS 18384cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18385/* end confdefs.h. */ 18386 18387/* Override any GCC internal prototype to avoid an error. 18388 Use char because int might match the return type of a GCC 18389 builtin and then its argument prototype would still apply. */ 18390#ifdef __cplusplus 18391extern "C" 18392#endif 18393char dlopen (); 18394int 18395main () 18396{ 18397return dlopen (); 18398 ; 18399 return 0; 18400} 18401_ACEOF 18402for ac_lib in '' dl; do 18403 if test -z "$ac_lib"; then 18404 ac_res="none required" 18405 else 18406 ac_res=-l$ac_lib 18407 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18408 fi 18409 if ac_fn_c_try_link "$LINENO"; then : 18410 ac_cv_search_dlopen=$ac_res 18411fi 18412rm -f core conftest.err conftest.$ac_objext \ 18413 conftest$ac_exeext 18414 if ${ac_cv_search_dlopen+:} false; then : 18415 break 18416fi 18417done 18418if ${ac_cv_search_dlopen+:} false; then : 18419 18420else 18421 ac_cv_search_dlopen=no 18422fi 18423rm conftest.$ac_ext 18424LIBS=$ac_func_search_save_LIBS 18425fi 18426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 18427$as_echo "$ac_cv_search_dlopen" >&6; } 18428ac_res=$ac_cv_search_dlopen 18429if test "$ac_res" != no; then : 18430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18431 18432fi 18433 18434 18435fi 18436rm -f core conftest.err conftest.$ac_objext \ 18437 conftest$ac_exeext conftest.$ac_ext 18438SSLLIB="-lssl" 18439 18440PC_CRYPTO_DEPENDENCY="" 18441 18442 18443# check if -lcrypt32 is needed because CAPIENG needs that. (on windows) 18444BAKLIBS="$LIBS" 18445LIBS="-lssl $LIBS" 18446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5 18447$as_echo_n "checking if libssl needs -lcrypt32... " >&6; } 18448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18449/* end confdefs.h. */ 18450 18451int 18452main () 18453{ 18454 18455 int EVP_sha256(void); 18456 (void)EVP_sha256(); 18457 18458 ; 18459 return 0; 18460} 18461_ACEOF 18462if ac_fn_c_try_link "$LINENO"; then : 18463 18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18465$as_echo "no" >&6; } 18466 LIBS="$BAKLIBS" 18467 18468else 18469 18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18471$as_echo "yes" >&6; } 18472 LIBS="$BAKLIBS" 18473 LIBS="$LIBS -lcrypt32" 18474 18475fi 18476rm -f core conftest.err conftest.$ac_objext \ 18477 conftest$ac_exeext conftest.$ac_ext 18478 18479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5 18480$as_echo_n "checking for LibreSSL... " >&6; } 18481if grep VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then 18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18483$as_echo "yes" >&6; } 18484 18485$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h 18486 18487 # libressl provides these compat functions, but they may also be 18488 # declared by the OS in libc. See if they have been declared. 18489 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" 18490if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 18491 ac_have_decl=1 18492else 18493 ac_have_decl=0 18494fi 18495 18496cat >>confdefs.h <<_ACEOF 18497#define HAVE_DECL_STRLCPY $ac_have_decl 18498_ACEOF 18499ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" 18500if test "x$ac_cv_have_decl_strlcat" = xyes; then : 18501 ac_have_decl=1 18502else 18503 ac_have_decl=0 18504fi 18505 18506cat >>confdefs.h <<_ACEOF 18507#define HAVE_DECL_STRLCAT $ac_have_decl 18508_ACEOF 18509ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default" 18510if test "x$ac_cv_have_decl_arc4random" = xyes; then : 18511 ac_have_decl=1 18512else 18513 ac_have_decl=0 18514fi 18515 18516cat >>confdefs.h <<_ACEOF 18517#define HAVE_DECL_ARC4RANDOM $ac_have_decl 18518_ACEOF 18519ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default" 18520if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then : 18521 ac_have_decl=1 18522else 18523 ac_have_decl=0 18524fi 18525 18526cat >>confdefs.h <<_ACEOF 18527#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl 18528_ACEOF 18529 18530else 18531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18532$as_echo "no" >&6; } 18533fi 18534for 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 18535do : 18536 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18537ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 18538" 18539if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18540 cat >>confdefs.h <<_ACEOF 18541#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18542_ACEOF 18543 18544fi 18545 18546done 18547 18548for 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 BIO_set_callback_ex 18549do : 18550 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18551ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18552if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18553 cat >>confdefs.h <<_ACEOF 18554#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18555_ACEOF 18556 18557fi 18558done 18559 18560 18561# these check_funcs need -lssl 18562BAKLIBS="$LIBS" 18563LIBS="-lssl $LIBS" 18564for 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 18565do : 18566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18567ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18568if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18569 cat >>confdefs.h <<_ACEOF 18570#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18571_ACEOF 18572 18573fi 18574done 18575 18576LIBS="$BAKLIBS" 18577 18578ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" " 18579$ac_includes_default 18580#ifdef HAVE_OPENSSL_ERR_H 18581#include <openssl/err.h> 18582#endif 18583 18584#ifdef HAVE_OPENSSL_RAND_H 18585#include <openssl/rand.h> 18586#endif 18587 18588#ifdef HAVE_OPENSSL_CONF_H 18589#include <openssl/conf.h> 18590#endif 18591 18592#ifdef HAVE_OPENSSL_ENGINE_H 18593#include <openssl/engine.h> 18594#endif 18595#include <openssl/ssl.h> 18596#include <openssl/evp.h> 18597 18598" 18599if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then : 18600 ac_have_decl=1 18601else 18602 ac_have_decl=0 18603fi 18604 18605cat >>confdefs.h <<_ACEOF 18606#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl 18607_ACEOF 18608ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" " 18609$ac_includes_default 18610#ifdef HAVE_OPENSSL_ERR_H 18611#include <openssl/err.h> 18612#endif 18613 18614#ifdef HAVE_OPENSSL_RAND_H 18615#include <openssl/rand.h> 18616#endif 18617 18618#ifdef HAVE_OPENSSL_CONF_H 18619#include <openssl/conf.h> 18620#endif 18621 18622#ifdef HAVE_OPENSSL_ENGINE_H 18623#include <openssl/engine.h> 18624#endif 18625#include <openssl/ssl.h> 18626#include <openssl/evp.h> 18627 18628" 18629if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then : 18630 ac_have_decl=1 18631else 18632 ac_have_decl=0 18633fi 18634 18635cat >>confdefs.h <<_ACEOF 18636#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl 18637_ACEOF 18638ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" " 18639$ac_includes_default 18640#ifdef HAVE_OPENSSL_ERR_H 18641#include <openssl/err.h> 18642#endif 18643 18644#ifdef HAVE_OPENSSL_RAND_H 18645#include <openssl/rand.h> 18646#endif 18647 18648#ifdef HAVE_OPENSSL_CONF_H 18649#include <openssl/conf.h> 18650#endif 18651 18652#ifdef HAVE_OPENSSL_ENGINE_H 18653#include <openssl/engine.h> 18654#endif 18655#include <openssl/ssl.h> 18656#include <openssl/evp.h> 18657 18658" 18659if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then : 18660 ac_have_decl=1 18661else 18662 ac_have_decl=0 18663fi 18664 18665cat >>confdefs.h <<_ACEOF 18666#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl 18667_ACEOF 18668 18669 18670if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then 18671# check function return type. 18672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5 18673$as_echo_n "checking the return type of HMAC_Init_ex... " >&6; } 18674cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18675/* end confdefs.h. */ 18676 18677#ifdef HAVE_OPENSSL_ERR_H 18678#include <openssl/err.h> 18679#endif 18680 18681#ifdef HAVE_OPENSSL_RAND_H 18682#include <openssl/rand.h> 18683#endif 18684 18685#ifdef HAVE_OPENSSL_CONF_H 18686#include <openssl/conf.h> 18687#endif 18688 18689#ifdef HAVE_OPENSSL_ENGINE_H 18690#include <openssl/engine.h> 18691#endif 18692#include <openssl/ssl.h> 18693#include <openssl/evp.h> 18694 18695int 18696main () 18697{ 18698 18699 HMAC_CTX* hmac_ctx = NULL; 18700 void* hmac_key = NULL; 18701 const EVP_MD* digest = NULL; 18702 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL); 18703 (void)x; 18704 18705 ; 18706 return 0; 18707} 18708_ACEOF 18709if ac_fn_c_try_compile "$LINENO"; then : 18710 18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 18712$as_echo "int" >&6; } 18713 18714else 18715 18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5 18717$as_echo "void" >&6; } 18718 18719$as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h 18720 18721 18722fi 18723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18724fi 18725 18726fi 18727 18728 18729# libbsd 18730 18731# Check whether --with-libbsd was given. 18732if test "${with_libbsd+set}" = set; then : 18733 withval=$with_libbsd; 18734 for ac_header in bsd/string.h bsd/stdlib.h 18735do : 18736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18737ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 18738" 18739if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18740 cat >>confdefs.h <<_ACEOF 18741#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18742_ACEOF 18743 18744fi 18745 18746done 18747 18748 if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then 18749 for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do 18750 as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh` 18751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5 18752$as_echo_n "checking for library containing $func... " >&6; } 18753if eval \${$as_ac_Search+:} false; then : 18754 $as_echo_n "(cached) " >&6 18755else 18756 ac_func_search_save_LIBS=$LIBS 18757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18758/* end confdefs.h. */ 18759 18760/* Override any GCC internal prototype to avoid an error. 18761 Use char because int might match the return type of a GCC 18762 builtin and then its argument prototype would still apply. */ 18763#ifdef __cplusplus 18764extern "C" 18765#endif 18766char $func (); 18767int 18768main () 18769{ 18770return $func (); 18771 ; 18772 return 0; 18773} 18774_ACEOF 18775for ac_lib in '' bsd; do 18776 if test -z "$ac_lib"; then 18777 ac_res="none required" 18778 else 18779 ac_res=-l$ac_lib 18780 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18781 fi 18782 if ac_fn_c_try_link "$LINENO"; then : 18783 eval "$as_ac_Search=\$ac_res" 18784fi 18785rm -f core conftest.err conftest.$ac_objext \ 18786 conftest$ac_exeext 18787 if eval \${$as_ac_Search+:} false; then : 18788 break 18789fi 18790done 18791if eval \${$as_ac_Search+:} false; then : 18792 18793else 18794 eval "$as_ac_Search=no" 18795fi 18796rm conftest.$ac_ext 18797LIBS=$ac_func_search_save_LIBS 18798fi 18799eval ac_res=\$$as_ac_Search 18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18801$as_echo "$ac_res" >&6; } 18802eval ac_res=\$$as_ac_Search 18803if test "$ac_res" != no; then : 18804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18805 18806 18807$as_echo "#define HAVE_LIBBSD 1" >>confdefs.h 18808 18809 PC_LIBBSD_DEPENDENCY=libbsd 18810 18811 18812fi 18813 18814 done 18815 fi 18816 18817fi 18818 18819 18820# Check whether --enable-sha1 was given. 18821if test "${enable_sha1+set}" = set; then : 18822 enableval=$enable_sha1; 18823fi 18824 18825case "$enable_sha1" in 18826 no) 18827 ;; 18828 yes|*) 18829 18830$as_echo "#define USE_SHA1 1" >>confdefs.h 18831 18832 ;; 18833esac 18834 18835 18836# Check whether --enable-sha2 was given. 18837if test "${enable_sha2+set}" = set; then : 18838 enableval=$enable_sha2; 18839fi 18840 18841case "$enable_sha2" in 18842 no) 18843 ;; 18844 yes|*) 18845 18846$as_echo "#define USE_SHA2 1" >>confdefs.h 18847 18848 ;; 18849esac 18850 18851# Check whether --enable-subnet was given. 18852if test "${enable_subnet+set}" = set; then : 18853 enableval=$enable_subnet; 18854fi 18855 18856case "$enable_subnet" in 18857 yes) 18858 18859$as_echo "#define CLIENT_SUBNET 1" >>confdefs.h 18860 18861 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo" 18862 18863 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h' 18864 18865 ;; 18866 no|*) 18867 ;; 18868esac 18869 18870# check whether gost also works 18871 18872# Check whether --enable-gost was given. 18873if test "${enable_gost+set}" = set; then : 18874 enableval=$enable_gost; 18875fi 18876 18877use_gost="no" 18878if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 18879case "$enable_gost" in 18880 no) 18881 ;; 18882 *) 18883 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 18884if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then : 18885 : 18886else 18887 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5 18888fi 18889 18890 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 18891if test "x$ac_cv_func_EC_KEY_new" = xyes; then : 18892 18893else 18894 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5 18895fi 18896 18897 18898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 18899$as_echo_n "checking if GOST works... " >&6; } 18900if test c${cross_compiling} = cno; then 18901BAKCFLAGS="$CFLAGS" 18902if test -n "$ssldir"; then 18903 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir_lib" 18904fi 18905if test "$cross_compiling" = yes; then : 18906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18908as_fn_error $? "cannot run test program while cross compiling 18909See \`config.log' for more details" "$LINENO" 5; } 18910else 18911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18912/* end confdefs.h. */ 18913 18914#include <string.h> 18915#include <openssl/ssl.h> 18916#include <openssl/evp.h> 18917#include <openssl/engine.h> 18918#include <openssl/conf.h> 18919/* routine to load gost (from sldns) */ 18920int load_gost_id(void) 18921{ 18922 static int gost_id = 0; 18923 const EVP_PKEY_ASN1_METHOD* meth; 18924 ENGINE* e; 18925 18926 if(gost_id) return gost_id; 18927 18928 /* see if configuration loaded gost implementation from other engine*/ 18929 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 18930 if(meth) { 18931 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 18932 return gost_id; 18933 } 18934 18935 /* see if engine can be loaded already */ 18936 e = ENGINE_by_id("gost"); 18937 if(!e) { 18938 /* load it ourself, in case statically linked */ 18939 ENGINE_load_builtin_engines(); 18940 ENGINE_load_dynamic(); 18941 e = ENGINE_by_id("gost"); 18942 } 18943 if(!e) { 18944 /* no gost engine in openssl */ 18945 return 0; 18946 } 18947 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 18948 ENGINE_finish(e); 18949 ENGINE_free(e); 18950 return 0; 18951 } 18952 18953 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 18954 if(!meth) { 18955 /* algo not found */ 18956 ENGINE_finish(e); 18957 ENGINE_free(e); 18958 return 0; 18959 } 18960 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 18961 return gost_id; 18962} 18963int main(void) { 18964 EVP_MD_CTX* ctx; 18965 const EVP_MD* md; 18966 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 18967 const char* str = "Hello world"; 18968 const unsigned char check[] = { 18969 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 18970 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 18971 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 18972 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 18973 }; 18974 OPENSSL_config(NULL); 18975 (void)load_gost_id(); 18976 md = EVP_get_digestbyname("md_gost94"); 18977 if(!md) return 1; 18978 memset(digest, 0, sizeof(digest)); 18979 ctx = EVP_MD_CTX_create(); 18980 if(!ctx) return 2; 18981 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 18982 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 18983 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 18984 /* uncomment to see the hash calculated. 18985 {int i; 18986 for(i=0; i<32; i++) 18987 printf(" %2.2x", (int)digest[i]); 18988 printf("\n");} 18989 */ 18990 if(memcmp(digest, check, sizeof(check)) != 0) 18991 return 6; 18992 return 0; 18993} 18994 18995_ACEOF 18996if ac_fn_c_try_run "$LINENO"; then : 18997 eval "ac_cv_c_gost_works=yes" 18998else 18999 eval "ac_cv_c_gost_works=no" 19000fi 19001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19002 conftest.$ac_objext conftest.beam conftest.$ac_ext 19003fi 19004 19005CFLAGS="$BAKCFLAGS" 19006else 19007eval "ac_cv_c_gost_works=maybe" 19008fi 19009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5 19010$as_echo "$ac_cv_c_gost_works" >&6; } 19011 19012 if test "$ac_cv_c_gost_works" != no; then 19013 use_gost="yes" 19014 19015$as_echo "#define USE_GOST 1" >>confdefs.h 19016 19017 fi 19018 ;; 19019esac 19020fi 19021# Check whether --enable-ecdsa was given. 19022if test "${enable_ecdsa+set}" = set; then : 19023 enableval=$enable_ecdsa; 19024fi 19025 19026use_ecdsa="no" 19027case "$enable_ecdsa" in 19028 no) 19029 ;; 19030 *) 19031 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 19032 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 19033if test "x$ac_cv_func_ECDSA_sign" = xyes; then : 19034 19035else 19036 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 19037fi 19038 19039 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 19040if test "x$ac_cv_func_SHA384_Init" = xyes; then : 19041 19042else 19043 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 19044fi 19045 19046 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 19047#include <openssl/evp.h> 19048 19049" 19050if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then : 19051 ac_have_decl=1 19052else 19053 ac_have_decl=0 19054fi 19055 19056cat >>confdefs.h <<_ACEOF 19057#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl 19058_ACEOF 19059if test $ac_have_decl = 1; then : 19060 19061else 19062 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 19063fi 19064ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 19065#include <openssl/evp.h> 19066 19067" 19068if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then : 19069 ac_have_decl=1 19070else 19071 ac_have_decl=0 19072fi 19073 19074cat >>confdefs.h <<_ACEOF 19075#define HAVE_DECL_NID_SECP384R1 $ac_have_decl 19076_ACEOF 19077if test $ac_have_decl = 1; then : 19078 19079else 19080 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 19081fi 19082 19083 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency) 19084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5 19085$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; } 19086 if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then 19087 if grep OPENSSL_VERSION_NUMBER $ssldir_include/openssl/opensslv.h | grep 0x0 >/dev/null; then 19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19089$as_echo "no" >&6; } 19090 19091cat >>confdefs.h <<_ACEOF 19092#define USE_ECDSA_EVP_WORKAROUND 1 19093_ACEOF 19094 19095 else 19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19097$as_echo "yes" >&6; } 19098 fi 19099 else 19100 # not OpenSSL, thus likely LibreSSL, which supports it 19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19102$as_echo "yes" >&6; } 19103 fi 19104 fi 19105 # we now know we have ECDSA and the required curves. 19106 19107cat >>confdefs.h <<_ACEOF 19108#define USE_ECDSA 1 19109_ACEOF 19110 19111 use_ecdsa="yes" 19112 ;; 19113esac 19114 19115# Check whether --enable-dsa was given. 19116if test "${enable_dsa+set}" = set; then : 19117 enableval=$enable_dsa; 19118fi 19119 19120use_dsa="no" 19121case "$enable_dsa" in 19122 yes) 19123 # detect if DSA is supported, and turn it off if not. 19124 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 19125 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new" 19126if test "x$ac_cv_func_DSA_SIG_new" = xyes; then : 19127 19128 as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh` 19129ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" " 19130$ac_includes_default 19131#ifdef HAVE_OPENSSL_ERR_H 19132#include <openssl/err.h> 19133#endif 19134 19135#ifdef HAVE_OPENSSL_RAND_H 19136#include <openssl/rand.h> 19137#endif 19138 19139#ifdef HAVE_OPENSSL_CONF_H 19140#include <openssl/conf.h> 19141#endif 19142 19143#ifdef HAVE_OPENSSL_ENGINE_H 19144#include <openssl/engine.h> 19145#endif 19146 19147" 19148if eval test \"x\$"$as_ac_Type"\" = x"yes"; then : 19149 19150 19151cat >>confdefs.h <<_ACEOF 19152#define USE_DSA 1 19153_ACEOF 19154 19155 19156else 19157 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 19158 fi 19159fi 19160 19161 19162else 19163 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 19164 fi 19165fi 19166 19167 else 19168 19169cat >>confdefs.h <<_ACEOF 19170#define USE_DSA 1 19171_ACEOF 19172 19173 fi 19174 ;; 19175 *) 19176 # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT 19177 # support DSA for DNSSEC Validation. 19178 ;; 19179esac 19180 19181 19182# Check whether --with-deprecate-rsa-1024 was given. 19183if test "${with_deprecate_rsa_1024+set}" = set; then : 19184 withval=$with_deprecate_rsa_1024; 19185fi 19186 19187if test "$with_deprecate_rsa_1024" = "yes"; then 19188 19189$as_echo "#define DEPRECATE_RSA_1024 1" >>confdefs.h 19190 19191fi 19192 19193# Check whether --enable-ed25519 was given. 19194if test "${enable_ed25519+set}" = set; then : 19195 enableval=$enable_ed25519; 19196fi 19197 19198use_ed25519="no" 19199case "$enable_ed25519" in 19200 no) 19201 ;; 19202 *) 19203 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 19204 ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default 19205#include <openssl/evp.h> 19206 19207" 19208if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then : 19209 ac_have_decl=1 19210else 19211 ac_have_decl=0 19212fi 19213 19214cat >>confdefs.h <<_ACEOF 19215#define HAVE_DECL_NID_ED25519 $ac_have_decl 19216_ACEOF 19217if test $ac_have_decl = 1; then : 19218 19219 use_ed25519="yes" 19220 19221else 19222 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5 19223 fi 19224fi 19225 19226 fi 19227 if test $USE_NETTLE = "yes"; then 19228 for ac_header in nettle/eddsa.h 19229do : 19230 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default 19231" 19232if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then : 19233 cat >>confdefs.h <<_ACEOF 19234#define HAVE_NETTLE_EDDSA_H 1 19235_ACEOF 19236 use_ed25519="yes" 19237fi 19238 19239done 19240 19241 fi 19242 if test $use_ed25519 = "yes"; then 19243 19244cat >>confdefs.h <<_ACEOF 19245#define USE_ED25519 1 19246_ACEOF 19247 19248 fi 19249 ;; 19250esac 19251 19252# Check whether --enable-ed448 was given. 19253if test "${enable_ed448+set}" = set; then : 19254 enableval=$enable_ed448; 19255fi 19256 19257use_ed448="no" 19258case "$enable_ed448" in 19259 no) 19260 ;; 19261 *) 19262 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 19263 ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default 19264#include <openssl/evp.h> 19265 19266" 19267if test "x$ac_cv_have_decl_NID_ED448" = xyes; then : 19268 ac_have_decl=1 19269else 19270 ac_have_decl=0 19271fi 19272 19273cat >>confdefs.h <<_ACEOF 19274#define HAVE_DECL_NID_ED448 $ac_have_decl 19275_ACEOF 19276if test $ac_have_decl = 1; then : 19277 19278 use_ed448="yes" 19279 19280else 19281 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5 19282 fi 19283fi 19284 19285 fi 19286 if test $use_ed448 = "yes"; then 19287 19288cat >>confdefs.h <<_ACEOF 19289#define USE_ED448 1 19290_ACEOF 19291 19292 fi 19293 ;; 19294esac 19295 19296# Check whether --enable-event-api was given. 19297if test "${enable_event_api+set}" = set; then : 19298 enableval=$enable_event_api; 19299fi 19300 19301case "$enable_event_api" in 19302 yes) 19303 UNBOUND_EVENT_INSTALL=unbound-event-install 19304 19305 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall 19306 19307 ;; 19308 *) 19309 ;; 19310esac 19311 19312# Check whether --enable-tfo-client was given. 19313if test "${enable_tfo_client+set}" = set; then : 19314 enableval=$enable_tfo_client; 19315fi 19316 19317case "$enable_tfo_client" in 19318 yes) 19319 case "$host_os" in 19320 linux*) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default 19321#include <netinet/tcp.h> 19322 19323" 19324if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then : 19325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 19326$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 19327else 19328 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 19329fi 19330 19331 19332cat >>confdefs.h <<_ACEOF 19333#define USE_MSG_FASTOPEN 1 19334_ACEOF 19335 19336 ;; 19337 darwin*) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default 19338#include <sys/socket.h> 19339 19340" 19341if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then : 19342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 19343$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 19344else 19345 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 19346fi 19347 19348 19349cat >>confdefs.h <<_ACEOF 19350#define USE_OSX_MSG_FASTOPEN 1 19351_ACEOF 19352 19353 ;; 19354 esac 19355 ;; 19356 no|*) 19357 ;; 19358esac 19359 19360# Check whether --enable-tfo-server was given. 19361if test "${enable_tfo_server+set}" = set; then : 19362 enableval=$enable_tfo_server; 19363fi 19364 19365case "$enable_tfo_server" in 19366 yes) 19367 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default 19368#include <netinet/tcp.h> 19369 19370" 19371if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then : 19372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5 19373$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;} 19374else 19375 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5 19376fi 19377 19378 19379cat >>confdefs.h <<_ACEOF 19380#define USE_TCP_FASTOPEN 1 19381_ACEOF 19382 19383 ;; 19384 no|*) 19385 ;; 19386esac 19387 19388# check for libevent 19389 19390# Check whether --with-libevent was given. 19391if test "${with_libevent+set}" = set; then : 19392 withval=$with_libevent; 19393else 19394 with_libevent="no" 19395fi 19396 19397if test "x_$with_libevent" != x_no; then 19398 19399$as_echo "#define USE_LIBEVENT 1" >>confdefs.h 19400 19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 19402$as_echo_n "checking for libevent... " >&6; } 19403 if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then 19404 with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19405 fi 19406 for dir in $with_libevent; do 19407 thedir="$dir" 19408 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 19409 found_libevent="yes" 19410 if test "$thedir" != "/usr"; then 19411 CPPFLAGS="$CPPFLAGS -I$thedir/include" 19412 fi 19413 break; 19414 fi 19415 done 19416 if test x_$found_libevent != x_yes; then 19417 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 19418 # libevent source directory 19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 19420$as_echo "found in $thedir" >&6; } 19421 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 19422 BAK_LDFLAGS_SET="1" 19423 BAK_LDFLAGS="$LDFLAGS" 19424 # remove evdns from linking 19425 mkdir build >/dev/null 2>&1 19426 mkdir build/libevent >/dev/null 2>&1 19427 mkdir build/libevent/.libs >/dev/null 2>&1 19428 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 19429 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo` 19430 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 19431 cp $ev_files_o build/libevent 19432 cp $ev_files_lo build/libevent 19433 cp $ev_files_libso build/libevent/.libs 19434 LATE_LDFLAGS="build/libevent/*.lo -lm" 19435 LDFLAGS="build/libevent/*.o $LDFLAGS -lm" 19436 else 19437 as_fn_error $? "Cannot find the libevent library in $with_libevent 19438You can restart ./configure --with-libevent=no to use a builtin alternative. 19439Please note that this alternative is not as capable as libevent when using 19440large outgoing port ranges. " "$LINENO" 5 19441 fi 19442 else 19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 19444$as_echo "found in $thedir" >&6; } 19445 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 19446 LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 19447 19448 if test "x$enable_rpath" = xyes; then 19449 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 19450 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 19451 fi 19452 fi 19453 19454 else 19455 if test "$thedir" != "/usr" -a "$thedir" != ""; then 19456 LDFLAGS="$LDFLAGS -L$thedir/lib" 19457 19458 if test "x$enable_rpath" = xyes; then 19459 if echo "$thedir/lib" | grep "^/" >/dev/null; then 19460 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 19461 fi 19462 fi 19463 19464 fi 19465 fi 19466 fi 19467 # check for library used by libevent after 1.3c 19468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 19469$as_echo_n "checking for library containing clock_gettime... " >&6; } 19470if ${ac_cv_search_clock_gettime+:} false; then : 19471 $as_echo_n "(cached) " >&6 19472else 19473 ac_func_search_save_LIBS=$LIBS 19474cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19475/* end confdefs.h. */ 19476 19477/* Override any GCC internal prototype to avoid an error. 19478 Use char because int might match the return type of a GCC 19479 builtin and then its argument prototype would still apply. */ 19480#ifdef __cplusplus 19481extern "C" 19482#endif 19483char clock_gettime (); 19484int 19485main () 19486{ 19487return clock_gettime (); 19488 ; 19489 return 0; 19490} 19491_ACEOF 19492for ac_lib in '' rt; do 19493 if test -z "$ac_lib"; then 19494 ac_res="none required" 19495 else 19496 ac_res=-l$ac_lib 19497 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19498 fi 19499 if ac_fn_c_try_link "$LINENO"; then : 19500 ac_cv_search_clock_gettime=$ac_res 19501fi 19502rm -f core conftest.err conftest.$ac_objext \ 19503 conftest$ac_exeext 19504 if ${ac_cv_search_clock_gettime+:} false; then : 19505 break 19506fi 19507done 19508if ${ac_cv_search_clock_gettime+:} false; then : 19509 19510else 19511 ac_cv_search_clock_gettime=no 19512fi 19513rm conftest.$ac_ext 19514LIBS=$ac_func_search_save_LIBS 19515fi 19516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 19517$as_echo "$ac_cv_search_clock_gettime" >&6; } 19518ac_res=$ac_cv_search_clock_gettime 19519if test "$ac_res" != no; then : 19520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19521 19522fi 19523 19524 19525 # is the event.h header libev or libevent? 19526 for ac_header in event.h 19527do : 19528 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 19529" 19530if test "x$ac_cv_header_event_h" = xyes; then : 19531 cat >>confdefs.h <<_ACEOF 19532#define HAVE_EVENT_H 1 19533_ACEOF 19534 19535fi 19536 19537done 19538 19539 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 19540#include <event.h> 19541 19542" 19543if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then : 19544 19545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 19546$as_echo_n "checking for library containing event_set... " >&6; } 19547if ${ac_cv_search_event_set+:} false; then : 19548 $as_echo_n "(cached) " >&6 19549else 19550 ac_func_search_save_LIBS=$LIBS 19551cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19552/* end confdefs.h. */ 19553 19554/* Override any GCC internal prototype to avoid an error. 19555 Use char because int might match the return type of a GCC 19556 builtin and then its argument prototype would still apply. */ 19557#ifdef __cplusplus 19558extern "C" 19559#endif 19560char event_set (); 19561int 19562main () 19563{ 19564return event_set (); 19565 ; 19566 return 0; 19567} 19568_ACEOF 19569for ac_lib in '' ev; do 19570 if test -z "$ac_lib"; then 19571 ac_res="none required" 19572 else 19573 ac_res=-l$ac_lib 19574 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19575 fi 19576 if ac_fn_c_try_link "$LINENO"; then : 19577 ac_cv_search_event_set=$ac_res 19578fi 19579rm -f core conftest.err conftest.$ac_objext \ 19580 conftest$ac_exeext 19581 if ${ac_cv_search_event_set+:} false; then : 19582 break 19583fi 19584done 19585if ${ac_cv_search_event_set+:} false; then : 19586 19587else 19588 ac_cv_search_event_set=no 19589fi 19590rm conftest.$ac_ext 19591LIBS=$ac_func_search_save_LIBS 19592fi 19593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 19594$as_echo "$ac_cv_search_event_set" >&6; } 19595ac_res=$ac_cv_search_event_set 19596if test "$ac_res" != no; then : 19597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19598 19599fi 19600 19601 19602else 19603 19604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 19605$as_echo_n "checking for library containing event_set... " >&6; } 19606if ${ac_cv_search_event_set+:} false; then : 19607 $as_echo_n "(cached) " >&6 19608else 19609 ac_func_search_save_LIBS=$LIBS 19610cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19611/* end confdefs.h. */ 19612 19613/* Override any GCC internal prototype to avoid an error. 19614 Use char because int might match the return type of a GCC 19615 builtin and then its argument prototype would still apply. */ 19616#ifdef __cplusplus 19617extern "C" 19618#endif 19619char event_set (); 19620int 19621main () 19622{ 19623return event_set (); 19624 ; 19625 return 0; 19626} 19627_ACEOF 19628for ac_lib in '' event; do 19629 if test -z "$ac_lib"; then 19630 ac_res="none required" 19631 else 19632 ac_res=-l$ac_lib 19633 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19634 fi 19635 if ac_fn_c_try_link "$LINENO"; then : 19636 ac_cv_search_event_set=$ac_res 19637fi 19638rm -f core conftest.err conftest.$ac_objext \ 19639 conftest$ac_exeext 19640 if ${ac_cv_search_event_set+:} false; then : 19641 break 19642fi 19643done 19644if ${ac_cv_search_event_set+:} false; then : 19645 19646else 19647 ac_cv_search_event_set=no 19648fi 19649rm conftest.$ac_ext 19650LIBS=$ac_func_search_save_LIBS 19651fi 19652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 19653$as_echo "$ac_cv_search_event_set" >&6; } 19654ac_res=$ac_cv_search_event_set 19655if test "$ac_res" != no; then : 19656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19657 19658fi 19659 19660 19661fi 19662 19663 for ac_func in event_base_free 19664do : 19665 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 19666if test "x$ac_cv_func_event_base_free" = xyes; then : 19667 cat >>confdefs.h <<_ACEOF 19668#define HAVE_EVENT_BASE_FREE 1 19669_ACEOF 19670 19671fi 19672done 19673 # only in libevent 1.2 and later 19674 for ac_func in event_base_once 19675do : 19676 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 19677if test "x$ac_cv_func_event_base_once" = xyes; then : 19678 cat >>confdefs.h <<_ACEOF 19679#define HAVE_EVENT_BASE_ONCE 1 19680_ACEOF 19681 19682fi 19683done 19684 # only in libevent 1.4.1 and later 19685 for ac_func in event_base_new 19686do : 19687 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 19688if test "x$ac_cv_func_event_base_new" = xyes; then : 19689 cat >>confdefs.h <<_ACEOF 19690#define HAVE_EVENT_BASE_NEW 1 19691_ACEOF 19692 19693fi 19694done 19695 # only in libevent 1.4.1 and later 19696 for ac_func in event_base_get_method 19697do : 19698 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 19699if test "x$ac_cv_func_event_base_get_method" = xyes; then : 19700 cat >>confdefs.h <<_ACEOF 19701#define HAVE_EVENT_BASE_GET_METHOD 1 19702_ACEOF 19703 19704fi 19705done 19706 # only in libevent 1.4.3 and later 19707 for ac_func in ev_loop 19708do : 19709 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 19710if test "x$ac_cv_func_ev_loop" = xyes; then : 19711 cat >>confdefs.h <<_ACEOF 19712#define HAVE_EV_LOOP 1 19713_ACEOF 19714 19715fi 19716done 19717 # only in libev. (tested on 3.51) 19718 for ac_func in ev_default_loop 19719do : 19720 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 19721if test "x$ac_cv_func_ev_default_loop" = xyes; then : 19722 cat >>confdefs.h <<_ACEOF 19723#define HAVE_EV_DEFAULT_LOOP 1 19724_ACEOF 19725 19726fi 19727done 19728 # only in libev. (tested on 4.00) 19729 for ac_func in event_assign 19730do : 19731 ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign" 19732if test "x$ac_cv_func_event_assign" = xyes; then : 19733 cat >>confdefs.h <<_ACEOF 19734#define HAVE_EVENT_ASSIGN 1 19735_ACEOF 19736 19737fi 19738done 19739 # in libevent, for thread-safety 19740 ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default 19741#ifdef HAVE_EVENT_H 19742# include <event.h> 19743#else 19744# include \"event2/event.h\" 19745#endif 19746 19747" 19748if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then : 19749 ac_have_decl=1 19750else 19751 ac_have_decl=0 19752fi 19753 19754cat >>confdefs.h <<_ACEOF 19755#define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl 19756_ACEOF 19757 19758 PC_LIBEVENT_DEPENDENCY="libevent" 19759 19760 if test -n "$BAK_LDFLAGS_SET"; then 19761 LDFLAGS="$BAK_LDFLAGS" 19762 fi 19763else 19764 19765$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h 19766 19767fi 19768 19769# check for libexpat 19770 19771# Check whether --with-libexpat was given. 19772if test "${with_libexpat+set}" = set; then : 19773 withval=$with_libexpat; 19774else 19775 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19776fi 19777 19778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 19779$as_echo_n "checking for libexpat... " >&6; } 19780found_libexpat="no" 19781for dir in $withval ; do 19782 if test -f "$dir/include/expat.h"; then 19783 found_libexpat="yes" 19784 if test "$dir" != "/usr"; then 19785 CPPFLAGS="$CPPFLAGS -I$dir/include" 19786 LDFLAGS="$LDFLAGS -L$dir/lib" 19787 fi 19788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 19789$as_echo "found in $dir" >&6; } 19790 break; 19791 fi 19792done 19793if test x_$found_libexpat != x_yes; then 19794 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5 19795fi 19796for ac_header in expat.h 19797do : 19798 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default 19799" 19800if test "x$ac_cv_header_expat_h" = xyes; then : 19801 cat >>confdefs.h <<_ACEOF 19802#define HAVE_EXPAT_H 1 19803_ACEOF 19804 19805fi 19806 19807done 19808 19809ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default 19810#include <expat.h> 19811 19812" 19813if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then : 19814 ac_have_decl=1 19815else 19816 ac_have_decl=0 19817fi 19818 19819cat >>confdefs.h <<_ACEOF 19820#define HAVE_DECL_XML_STOPPARSER $ac_have_decl 19821_ACEOF 19822 19823 19824# hiredis (redis C client for cachedb) 19825 19826# Check whether --with-libhiredis was given. 19827if test "${with_libhiredis+set}" = set; then : 19828 withval=$with_libhiredis; 19829else 19830 withval="no" 19831fi 19832 19833found_libhiredis="no" 19834if test x_$withval = x_yes -o x_$withval != x_no; then 19835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5 19836$as_echo_n "checking for libhiredis... " >&6; } 19837 if test x_$withval = x_ -o x_$withval = x_yes; then 19838 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19839 fi 19840 for dir in $withval ; do 19841 if test -f "$dir/include/hiredis/hiredis.h"; then 19842 found_libhiredis="yes" 19843 if test "$dir" != "/usr"; then 19844 CPPFLAGS="$CPPFLAGS -I$dir/include" 19845 LDFLAGS="$LDFLAGS -L$dir/lib" 19846 fi 19847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 19848$as_echo "found in $dir" >&6; } 19849 19850$as_echo "#define USE_REDIS 1" >>confdefs.h 19851 19852 LIBS="$LIBS -lhiredis" 19853 break; 19854 fi 19855 done 19856 if test x_$found_libhiredis != x_yes; then 19857 as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5 19858 fi 19859 for ac_header in hiredis/hiredis.h 19860do : 19861 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default 19862" 19863if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then : 19864 cat >>confdefs.h <<_ACEOF 19865#define HAVE_HIREDIS_HIREDIS_H 1 19866_ACEOF 19867 19868fi 19869 19870done 19871 19872 ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default 19873 #include <hiredis/hiredis.h> 19874 19875" 19876if test "x$ac_cv_have_decl_redisConnect" = xyes; then : 19877 ac_have_decl=1 19878else 19879 ac_have_decl=0 19880fi 19881 19882cat >>confdefs.h <<_ACEOF 19883#define HAVE_DECL_REDISCONNECT $ac_have_decl 19884_ACEOF 19885 19886fi 19887 19888# nghttp2 19889 19890# Check whether --with-libnghttp2 was given. 19891if test "${with_libnghttp2+set}" = set; then : 19892 withval=$with_libnghttp2; 19893else 19894 withval="no" 19895fi 19896 19897found_libnghttp2="no" 19898if test x_$withval = x_yes -o x_$withval != x_no; then 19899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5 19900$as_echo_n "checking for libnghttp2... " >&6; } 19901 if test x_$withval = x_ -o x_$withval = x_yes; then 19902 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19903 fi 19904 for dir in $withval ; do 19905 if test -f "$dir/include/nghttp2/nghttp2.h"; then 19906 found_libnghttp2="yes" 19907 if test "$dir" != "/usr"; then 19908 CPPFLAGS="$CPPFLAGS -I$dir/include" 19909 LDFLAGS="$LDFLAGS -L$dir/lib" 19910 fi 19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 19912$as_echo "found in $dir" >&6; } 19913 19914$as_echo "#define HAVE_NGHTTP2 1" >>confdefs.h 19915 19916 LIBS="$LIBS -lnghttp2" 19917 break; 19918 fi 19919 done 19920 if test x_$found_libnghttp2 != x_yes; then 19921 as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5 19922 fi 19923 for ac_header in nghttp2/nghttp2.h 19924do : 19925 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default 19926" 19927if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then : 19928 cat >>confdefs.h <<_ACEOF 19929#define HAVE_NGHTTP2_NGHTTP2_H 1 19930_ACEOF 19931 19932fi 19933 19934done 19935 19936 ac_fn_c_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default 19937 #include <nghttp2/nghttp2.h> 19938 19939" 19940if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes; then : 19941 ac_have_decl=1 19942else 19943 ac_have_decl=0 19944fi 19945 19946cat >>confdefs.h <<_ACEOF 19947#define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl 19948_ACEOF 19949 19950fi 19951 19952# set static linking for uninstalled libraries if requested 19953 19954staticexe="" 19955# Check whether --enable-static-exe was given. 19956if test "${enable_static_exe+set}" = set; then : 19957 enableval=$enable_static_exe; 19958fi 19959 19960if test x_$enable_static_exe = x_yes; then 19961 staticexe="-static" 19962 if test "$on_mingw" = yes; then 19963 staticexe="-all-static" 19964 # for static compile, include gdi32 and zlib here. 19965 if echo $LIBS | grep 'lgdi32' >/dev/null; then 19966 : 19967 else 19968 LIBS="$LIBS -lgdi32" 19969 fi 19970 LIBS="$LIBS -lz" 19971 LIBS="$LIBS -l:libssp.a" 19972 fi 19973fi 19974 19975# set full static linking if requested 19976# Check whether --enable-fully-static was given. 19977if test "${enable_fully_static+set}" = set; then : 19978 enableval=$enable_fully_static; 19979fi 19980 19981if test x_$enable_fully_static = x_yes; then 19982 staticexe="-all-static" 19983 if test "$on_mingw" = yes; then 19984 # for static compile, include gdi32 and zlib here. 19985 if echo $LIBS | grep 'lgdi32' >/dev/null; then 19986 : 19987 else 19988 LIBS="$LIBS -lgdi32" 19989 fi 19990 LIBS="$LIBS -lz" 19991 LIBS="$LIBS -l:libssp.a" 19992 fi 19993fi 19994 19995# set lock checking if requested 19996# Check whether --enable-lock_checks was given. 19997if test "${enable_lock_checks+set}" = set; then : 19998 enableval=$enable_lock_checks; 19999fi 20000 20001if test x_$enable_lock_checks = x_yes; then 20002 20003$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h 20004 20005 CHECKLOCK_OBJ="checklocks.lo" 20006 20007fi 20008 20009 20010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 20011$as_echo_n "checking for getaddrinfo... " >&6; } 20012ac_cv_func_getaddrinfo=no 20013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20014/* end confdefs.h. */ 20015 20016#ifdef __cplusplus 20017extern "C" 20018{ 20019#endif 20020char* getaddrinfo(); 20021char* (*f) () = getaddrinfo; 20022#ifdef __cplusplus 20023} 20024#endif 20025int main() { 20026 ; 20027 return 0; 20028} 20029 20030_ACEOF 20031if ac_fn_c_try_link "$LINENO"; then : 20032 ac_cv_func_getaddrinfo="yes" 20033if test "$ac_cv_header_windows_h" = "yes"; then 20034 20035$as_echo "#define USE_WINSOCK 1" >>confdefs.h 20036 20037 USE_WINSOCK="1" 20038 if echo $LIBS | grep 'lws2_32' >/dev/null; then 20039 : 20040 else 20041 LIBS="$LIBS -lws2_32" 20042 fi 20043fi 20044 20045else 20046 ORIGLIBS="$LIBS" 20047LIBS="$LIBS -lws2_32" 20048cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20049/* end confdefs.h. */ 20050 20051#ifdef HAVE_WS2TCPIP_H 20052#include <ws2tcpip.h> 20053#endif 20054 20055int 20056main () 20057{ 20058 20059 (void)getaddrinfo(NULL, NULL, NULL, NULL); 20060 20061 20062 ; 20063 return 0; 20064} 20065_ACEOF 20066if ac_fn_c_try_link "$LINENO"; then : 20067 20068ac_cv_func_getaddrinfo="yes" 20069 20070$as_echo "#define USE_WINSOCK 1" >>confdefs.h 20071 20072USE_WINSOCK="1" 20073 20074else 20075 20076ac_cv_func_getaddrinfo="no" 20077LIBS="$ORIGLIBS" 20078 20079fi 20080rm -f core conftest.err conftest.$ac_objext \ 20081 conftest$ac_exeext conftest.$ac_ext 20082 20083fi 20084rm -f core conftest.err conftest.$ac_objext \ 20085 conftest$ac_exeext conftest.$ac_ext 20086 20087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 20088$as_echo "$ac_cv_func_getaddrinfo" >&6; } 20089if test $ac_cv_func_getaddrinfo = yes; then 20090 20091$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 20092 20093fi 20094 20095if test "$USE_WINSOCK" = 1; then 20096 20097$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h 20098 20099 for ac_header in iphlpapi.h 20100do : 20101 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default 20102#include <windows.h> 20103 20104" 20105if test "x$ac_cv_header_iphlpapi_h" = xyes; then : 20106 cat >>confdefs.h <<_ACEOF 20107#define HAVE_IPHLPAPI_H 1 20108_ACEOF 20109 20110fi 20111 20112done 20113 20114 if test -n "$ac_tool_prefix"; then 20115 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 20116set dummy ${ac_tool_prefix}windres; ac_word=$2 20117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20118$as_echo_n "checking for $ac_word... " >&6; } 20119if ${ac_cv_prog_WINDRES+:} false; then : 20120 $as_echo_n "(cached) " >&6 20121else 20122 if test -n "$WINDRES"; then 20123 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 20124else 20125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20126for as_dir in $PATH 20127do 20128 IFS=$as_save_IFS 20129 test -z "$as_dir" && as_dir=. 20130 for ac_exec_ext in '' $ac_executable_extensions; do 20131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20132 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 20133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20134 break 2 20135 fi 20136done 20137 done 20138IFS=$as_save_IFS 20139 20140fi 20141fi 20142WINDRES=$ac_cv_prog_WINDRES 20143if test -n "$WINDRES"; then 20144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 20145$as_echo "$WINDRES" >&6; } 20146else 20147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20148$as_echo "no" >&6; } 20149fi 20150 20151 20152fi 20153if test -z "$ac_cv_prog_WINDRES"; then 20154 ac_ct_WINDRES=$WINDRES 20155 # Extract the first word of "windres", so it can be a program name with args. 20156set dummy windres; ac_word=$2 20157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20158$as_echo_n "checking for $ac_word... " >&6; } 20159if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 20160 $as_echo_n "(cached) " >&6 20161else 20162 if test -n "$ac_ct_WINDRES"; then 20163 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 20164else 20165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20166for as_dir in $PATH 20167do 20168 IFS=$as_save_IFS 20169 test -z "$as_dir" && as_dir=. 20170 for ac_exec_ext in '' $ac_executable_extensions; do 20171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20172 ac_cv_prog_ac_ct_WINDRES="windres" 20173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20174 break 2 20175 fi 20176done 20177 done 20178IFS=$as_save_IFS 20179 20180fi 20181fi 20182ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 20183if test -n "$ac_ct_WINDRES"; then 20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 20185$as_echo "$ac_ct_WINDRES" >&6; } 20186else 20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20188$as_echo "no" >&6; } 20189fi 20190 20191 if test "x$ac_ct_WINDRES" = x; then 20192 WINDRES="" 20193 else 20194 case $cross_compiling:$ac_tool_warned in 20195yes:) 20196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20198ac_tool_warned=yes ;; 20199esac 20200 WINDRES=$ac_ct_WINDRES 20201 fi 20202else 20203 WINDRES="$ac_cv_prog_WINDRES" 20204fi 20205 20206 LIBS="$LIBS -liphlpapi -lcrypt32" 20207 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe" 20208 20209 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c" 20210 20211 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo" 20212 20213 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o" 20214 20215 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o" 20216 20217 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo" 20218 20219 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o" 20220 20221 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o" 20222 20223 20224$as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h 20225 20226fi 20227if test $ac_cv_func_getaddrinfo = no; then 20228 case " $LIBOBJS " in 20229 *" fake-rfc2553.$ac_objext "* ) ;; 20230 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 20231 ;; 20232esac 20233 20234fi 20235# check after getaddrinfo for its libraries 20236 20237# check ioctlsocket 20238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 20239$as_echo_n "checking for ioctlsocket... " >&6; } 20240cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20241/* end confdefs.h. */ 20242 20243#ifdef HAVE_WINSOCK2_H 20244#include <winsock2.h> 20245#endif 20246 20247int 20248main () 20249{ 20250 20251 (void)ioctlsocket(0, 0, NULL); 20252 20253 ; 20254 return 0; 20255} 20256_ACEOF 20257if ac_fn_c_try_link "$LINENO"; then : 20258 20259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20260$as_echo "yes" >&6; } 20261 20262$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 20263 20264 20265else 20266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20267$as_echo "no" >&6; } 20268fi 20269rm -f core conftest.err conftest.$ac_objext \ 20270 conftest$ac_exeext conftest.$ac_ext 20271 20272 20273# see if daemon(3) exists, and if it is deprecated. 20274for ac_func in daemon 20275do : 20276 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 20277if test "x$ac_cv_func_daemon" = xyes; then : 20278 cat >>confdefs.h <<_ACEOF 20279#define HAVE_DAEMON 1 20280_ACEOF 20281 20282fi 20283done 20284 20285if test $ac_cv_func_daemon = yes; then 20286 20287 20288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5 20289$as_echo_n "checking if daemon is deprecated... " >&6; } 20290cache=`echo daemon | sed 'y%.=/+-%___p_%'` 20291if eval \${cv_cc_deprecated_$cache+:} false; then : 20292 $as_echo_n "(cached) " >&6 20293else 20294 20295echo ' 20296#include <stdlib.h> 20297#include <unistd.h> 20298' >conftest.c 20299echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c 20300if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then 20301eval "cv_cc_deprecated_$cache=no" 20302else 20303eval "cv_cc_deprecated_$cache=yes" 20304fi 20305rm -f conftest conftest.o conftest.c 20306 20307fi 20308 20309if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 20310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20311$as_echo "yes" >&6; } 20312 20313cat >>confdefs.h <<_ACEOF 20314#define DEPRECATED_DAEMON 1 20315_ACEOF 20316 20317: 20318 20319else 20320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20321$as_echo "no" >&6; } 20322: 20323 20324fi 20325 20326fi 20327 20328ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " 20329$ac_includes_default 20330#ifdef HAVE_SYS_UN_H 20331#include <sys/un.h> 20332#endif 20333 20334" 20335if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : 20336 20337cat >>confdefs.h <<_ACEOF 20338#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 20339_ACEOF 20340 20341 20342fi 20343 20344ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" " 20345$ac_includes_default 20346#if HAVE_SYS_PARAM_H 20347#include <sys/param.h> 20348#endif 20349 20350#ifdef HAVE_SYS_SOCKET_H 20351#include <sys/socket.h> 20352#endif 20353 20354#ifdef HAVE_SYS_UIO_H 20355#include <sys/uio.h> 20356#endif 20357 20358#ifdef HAVE_NETINET_IN_H 20359#include <netinet/in.h> 20360#endif 20361 20362#ifdef HAVE_NETINET_TCP_H 20363#include <netinet/tcp.h> 20364#endif 20365 20366#ifdef HAVE_ARPA_INET_H 20367#include <arpa/inet.h> 20368#endif 20369 20370#ifdef HAVE_WINSOCK2_H 20371#include <winsock2.h> 20372#endif 20373 20374#ifdef HAVE_WS2TCPIP_H 20375#include <ws2tcpip.h> 20376#endif 20377 20378" 20379if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then : 20380 20381cat >>confdefs.h <<_ACEOF 20382#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1 20383_ACEOF 20384 20385 20386fi 20387 20388 20389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5 20390$as_echo_n "checking for htobe64... " >&6; } 20391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20392/* end confdefs.h. */ 20393 20394#include <stdio.h> 20395#ifdef HAVE_ENDIAN_H 20396# include <endian.h> 20397#endif 20398#ifdef HAVE_SYS_ENDIAN_H 20399# include <sys/endian.h> 20400#endif 20401 20402int 20403main () 20404{ 20405unsigned long long x = htobe64(0); printf("%u", (unsigned)x); 20406 ; 20407 return 0; 20408} 20409_ACEOF 20410if ac_fn_c_try_link "$LINENO"; then : 20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20412$as_echo "yes" >&6; } 20413 20414$as_echo "#define HAVE_HTOBE64 1" >>confdefs.h 20415 20416else 20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20418$as_echo "no" >&6; } 20419fi 20420rm -f core conftest.err conftest.$ac_objext \ 20421 conftest$ac_exeext conftest.$ac_ext 20422 20423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5 20424$as_echo_n "checking for be64toh... " >&6; } 20425cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20426/* end confdefs.h. */ 20427 20428#include <stdio.h> 20429#ifdef HAVE_ENDIAN_H 20430# include <endian.h> 20431#endif 20432#ifdef HAVE_SYS_ENDIAN_H 20433# include <sys/endian.h> 20434#endif 20435 20436int 20437main () 20438{ 20439unsigned long long x = be64toh(0); printf("%u", (unsigned)x); 20440 ; 20441 return 0; 20442} 20443_ACEOF 20444if ac_fn_c_try_link "$LINENO"; then : 20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20446$as_echo "yes" >&6; } 20447 20448$as_echo "#define HAVE_BE64TOH 1" >>confdefs.h 20449 20450else 20451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20452$as_echo "no" >&6; } 20453fi 20454rm -f core conftest.err conftest.$ac_objext \ 20455 conftest$ac_exeext conftest.$ac_ext 20456 20457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 20458$as_echo_n "checking for library containing setusercontext... " >&6; } 20459if ${ac_cv_search_setusercontext+:} false; then : 20460 $as_echo_n "(cached) " >&6 20461else 20462 ac_func_search_save_LIBS=$LIBS 20463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20464/* end confdefs.h. */ 20465 20466/* Override any GCC internal prototype to avoid an error. 20467 Use char because int might match the return type of a GCC 20468 builtin and then its argument prototype would still apply. */ 20469#ifdef __cplusplus 20470extern "C" 20471#endif 20472char setusercontext (); 20473int 20474main () 20475{ 20476return setusercontext (); 20477 ; 20478 return 0; 20479} 20480_ACEOF 20481for ac_lib in '' util; do 20482 if test -z "$ac_lib"; then 20483 ac_res="none required" 20484 else 20485 ac_res=-l$ac_lib 20486 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20487 fi 20488 if ac_fn_c_try_link "$LINENO"; then : 20489 ac_cv_search_setusercontext=$ac_res 20490fi 20491rm -f core conftest.err conftest.$ac_objext \ 20492 conftest$ac_exeext 20493 if ${ac_cv_search_setusercontext+:} false; then : 20494 break 20495fi 20496done 20497if ${ac_cv_search_setusercontext+:} false; then : 20498 20499else 20500 ac_cv_search_setusercontext=no 20501fi 20502rm conftest.$ac_ext 20503LIBS=$ac_func_search_save_LIBS 20504fi 20505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 20506$as_echo "$ac_cv_search_setusercontext" >&6; } 20507ac_res=$ac_cv_search_setusercontext 20508if test "$ac_res" != no; then : 20509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20510 20511fi 20512 20513for 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 if_nametoindex 20514do : 20515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20516ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20517if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20518 cat >>confdefs.h <<_ACEOF 20519#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20520_ACEOF 20521 20522fi 20523done 20524 20525for ac_func in setresuid 20526do : 20527 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 20528if test "x$ac_cv_func_setresuid" = xyes; then : 20529 cat >>confdefs.h <<_ACEOF 20530#define HAVE_SETRESUID 1 20531_ACEOF 20532 20533else 20534 for ac_func in setreuid 20535do : 20536 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 20537if test "x$ac_cv_func_setreuid" = xyes; then : 20538 cat >>confdefs.h <<_ACEOF 20539#define HAVE_SETREUID 1 20540_ACEOF 20541 20542fi 20543done 20544 20545fi 20546done 20547 20548for ac_func in setresgid 20549do : 20550 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 20551if test "x$ac_cv_func_setresgid" = xyes; then : 20552 cat >>confdefs.h <<_ACEOF 20553#define HAVE_SETRESGID 1 20554_ACEOF 20555 20556else 20557 for ac_func in setregid 20558do : 20559 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 20560if test "x$ac_cv_func_setregid" = xyes; then : 20561 cat >>confdefs.h <<_ACEOF 20562#define HAVE_SETREGID 1 20563_ACEOF 20564 20565fi 20566done 20567 20568fi 20569done 20570 20571 20572# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 20573if echo $host_os | grep darwin8 > /dev/null; then 20574 20575$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 20576 20577fi 20578ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" " 20579$ac_includes_default 20580#ifdef HAVE_NETINET_IN_H 20581#include <netinet/in.h> 20582#endif 20583 20584#ifdef HAVE_NETINET_TCP_H 20585#include <netinet/tcp.h> 20586#endif 20587 20588#ifdef HAVE_ARPA_INET_H 20589#include <arpa/inet.h> 20590#endif 20591 20592#ifdef HAVE_WINSOCK2_H 20593#include <winsock2.h> 20594#endif 20595 20596#ifdef HAVE_WS2TCPIP_H 20597#include <ws2tcpip.h> 20598#endif 20599 20600" 20601if test "x$ac_cv_have_decl_inet_pton" = xyes; then : 20602 ac_have_decl=1 20603else 20604 ac_have_decl=0 20605fi 20606 20607cat >>confdefs.h <<_ACEOF 20608#define HAVE_DECL_INET_PTON $ac_have_decl 20609_ACEOF 20610ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" " 20611$ac_includes_default 20612#ifdef HAVE_NETINET_IN_H 20613#include <netinet/in.h> 20614#endif 20615 20616#ifdef HAVE_NETINET_TCP_H 20617#include <netinet/tcp.h> 20618#endif 20619 20620#ifdef HAVE_ARPA_INET_H 20621#include <arpa/inet.h> 20622#endif 20623 20624#ifdef HAVE_WINSOCK2_H 20625#include <winsock2.h> 20626#endif 20627 20628#ifdef HAVE_WS2TCPIP_H 20629#include <ws2tcpip.h> 20630#endif 20631 20632" 20633if test "x$ac_cv_have_decl_inet_ntop" = xyes; then : 20634 ac_have_decl=1 20635else 20636 ac_have_decl=0 20637fi 20638 20639cat >>confdefs.h <<_ACEOF 20640#define HAVE_DECL_INET_NTOP $ac_have_decl 20641_ACEOF 20642 20643ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 20644if test "x$ac_cv_func_inet_aton" = xyes; then : 20645 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 20646 20647else 20648 case " $LIBOBJS " in 20649 *" inet_aton.$ac_objext "* ) ;; 20650 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 20651 ;; 20652esac 20653 20654fi 20655 20656 20657ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 20658if test "x$ac_cv_func_inet_pton" = xyes; then : 20659 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 20660 20661else 20662 case " $LIBOBJS " in 20663 *" inet_pton.$ac_objext "* ) ;; 20664 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 20665 ;; 20666esac 20667 20668fi 20669 20670 20671ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 20672if test "x$ac_cv_func_inet_ntop" = xyes; then : 20673 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 20674 20675else 20676 case " $LIBOBJS " in 20677 *" inet_ntop.$ac_objext "* ) ;; 20678 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 20679 ;; 20680esac 20681 20682fi 20683 20684 20685ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 20686if test "x$ac_cv_func_snprintf" = xyes; then : 20687 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 20688 20689else 20690 case " $LIBOBJS " in 20691 *" snprintf.$ac_objext "* ) ;; 20692 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20693 ;; 20694esac 20695 20696fi 20697 20698 20699# test if snprintf return the proper length 20700if test "x$ac_cv_func_snprintf" = xyes; then 20701 if test c${cross_compiling} = cno; then 20702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5 20703$as_echo_n "checking for correct snprintf return value... " >&6; } 20704 if test "$cross_compiling" = yes; then : 20705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20707as_fn_error $? "cannot run test program while cross compiling 20708See \`config.log' for more details" "$LINENO" 5; } 20709else 20710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20711/* end confdefs.h. */ 20712$ac_includes_default 20713 20714int main(void) { return !(snprintf(NULL, 0, "test") == 4); } 20715 20716_ACEOF 20717if ac_fn_c_try_run "$LINENO"; then : 20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20719$as_echo "yes" >&6; } 20720else 20721 20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20723$as_echo "no" >&6; } 20724 20725$as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h 20726 20727 case " $LIBOBJS " in 20728 *" snprintf.$ac_objext "* ) ;; 20729 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20730 ;; 20731esac 20732 20733 20734fi 20735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20736 conftest.$ac_objext conftest.beam conftest.$ac_ext 20737fi 20738 20739 fi 20740fi 20741ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 20742if test "x$ac_cv_func_strlcat" = xyes; then : 20743 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 20744 20745else 20746 case " $LIBOBJS " in 20747 *" strlcat.$ac_objext "* ) ;; 20748 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 20749 ;; 20750esac 20751 20752fi 20753 20754 20755ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20756if test "x$ac_cv_func_strlcpy" = xyes; then : 20757 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 20758 20759else 20760 case " $LIBOBJS " in 20761 *" strlcpy.$ac_objext "* ) ;; 20762 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 20763 ;; 20764esac 20765 20766fi 20767 20768 20769ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 20770if test "x$ac_cv_func_memmove" = xyes; then : 20771 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 20772 20773else 20774 case " $LIBOBJS " in 20775 *" memmove.$ac_objext "* ) ;; 20776 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 20777 ;; 20778esac 20779 20780fi 20781 20782 20783ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 20784if test "x$ac_cv_func_gmtime_r" = xyes; then : 20785 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 20786 20787else 20788 case " $LIBOBJS " in 20789 *" gmtime_r.$ac_objext "* ) ;; 20790 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 20791 ;; 20792esac 20793 20794fi 20795 20796 20797ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" 20798if test "x$ac_cv_func_isblank" = xyes; then : 20799 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h 20800 20801else 20802 case " $LIBOBJS " in 20803 *" isblank.$ac_objext "* ) ;; 20804 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 20805 ;; 20806esac 20807 20808fi 20809 20810 20811ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 20812if test "x$ac_cv_func_explicit_bzero" = xyes; then : 20813 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 20814 20815else 20816 case " $LIBOBJS " in 20817 *" explicit_bzero.$ac_objext "* ) ;; 20818 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" 20819 ;; 20820esac 20821 20822fi 20823 20824 20825LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS" 20826 20827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5 20828$as_echo_n "checking for reallocarray... " >&6; } 20829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20830/* end confdefs.h. */ 20831$ac_includes_default 20832 20833#ifndef _OPENBSD_SOURCE 20834#define _OPENBSD_SOURCE 1 20835#endif 20836#include <stdlib.h> 20837int main(void) { 20838 void* p = reallocarray(NULL, 10, 100); 20839 free(p); 20840 return 0; 20841} 20842 20843_ACEOF 20844if ac_fn_c_try_link "$LINENO"; then : 20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20846$as_echo "yes" >&6; } 20847 20848$as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h 20849 20850 20851else 20852 20853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20854$as_echo "no" >&6; } 20855 case " $LIBOBJS " in 20856 *" reallocarray.$ac_objext "* ) ;; 20857 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 20858 ;; 20859esac 20860 20861 20862fi 20863rm -f core conftest.err conftest.$ac_objext \ 20864 conftest$ac_exeext conftest.$ac_ext 20865ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default" 20866if test "x$ac_cv_have_decl_reallocarray" = xyes; then : 20867 ac_have_decl=1 20868else 20869 ac_have_decl=0 20870fi 20871 20872cat >>confdefs.h <<_ACEOF 20873#define HAVE_DECL_REALLOCARRAY $ac_have_decl 20874_ACEOF 20875 20876if test "$USE_NSS" = "no"; then 20877 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 20878if test "x$ac_cv_func_arc4random" = xyes; then : 20879 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h 20880 20881else 20882 case " $LIBOBJS " in 20883 *" arc4random.$ac_objext "* ) ;; 20884 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext" 20885 ;; 20886esac 20887 20888fi 20889 20890 20891 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform" 20892if test "x$ac_cv_func_arc4random_uniform" = xyes; then : 20893 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h 20894 20895else 20896 case " $LIBOBJS " in 20897 *" arc4random_uniform.$ac_objext "* ) ;; 20898 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext" 20899 ;; 20900esac 20901 20902fi 20903 20904 20905 if test "$ac_cv_func_arc4random" = "no"; then 20906 case " $LIBOBJS " in 20907 *" arc4_lock.$ac_objext "* ) ;; 20908 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext" 20909 ;; 20910esac 20911 20912 for ac_func in getentropy 20913do : 20914 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 20915if test "x$ac_cv_func_getentropy" = xyes; then : 20916 cat >>confdefs.h <<_ACEOF 20917#define HAVE_GETENTROPY 1 20918_ACEOF 20919 20920else 20921 20922 if test "$USE_WINSOCK" = 1; then 20923 case " $LIBOBJS " in 20924 *" getentropy_win.$ac_objext "* ) ;; 20925 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext" 20926 ;; 20927esac 20928 20929 else 20930 case "$host" in 20931 Darwin|*darwin*) 20932 case " $LIBOBJS " in 20933 *" getentropy_osx.$ac_objext "* ) ;; 20934 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext" 20935 ;; 20936esac 20937 20938 ;; 20939 *solaris*|*sunos*|SunOS) 20940 case " $LIBOBJS " in 20941 *" getentropy_solaris.$ac_objext "* ) ;; 20942 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext" 20943 ;; 20944esac 20945 20946 for ac_header in sys/sha2.h 20947do : 20948 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default 20949" 20950if test "x$ac_cv_header_sys_sha2_h" = xyes; then : 20951 cat >>confdefs.h <<_ACEOF 20952#define HAVE_SYS_SHA2_H 1 20953_ACEOF 20954 20955else 20956 20957 for ac_func in SHA512_Update 20958do : 20959 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 20960if test "x$ac_cv_func_SHA512_Update" = xyes; then : 20961 cat >>confdefs.h <<_ACEOF 20962#define HAVE_SHA512_UPDATE 1 20963_ACEOF 20964 20965else 20966 20967 case " $LIBOBJS " in 20968 *" sha512.$ac_objext "* ) ;; 20969 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 20970 ;; 20971esac 20972 20973 20974fi 20975done 20976 20977 20978fi 20979 20980done 20981 20982 if test "$ac_cv_header_sys_sha2_h" = "yes"; then 20983 # this lib needed for sha2 on solaris 20984 LIBS="$LIBS -lmd" 20985 fi 20986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 20987$as_echo_n "checking for library containing clock_gettime... " >&6; } 20988if ${ac_cv_search_clock_gettime+:} false; then : 20989 $as_echo_n "(cached) " >&6 20990else 20991 ac_func_search_save_LIBS=$LIBS 20992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20993/* end confdefs.h. */ 20994 20995/* Override any GCC internal prototype to avoid an error. 20996 Use char because int might match the return type of a GCC 20997 builtin and then its argument prototype would still apply. */ 20998#ifdef __cplusplus 20999extern "C" 21000#endif 21001char clock_gettime (); 21002int 21003main () 21004{ 21005return clock_gettime (); 21006 ; 21007 return 0; 21008} 21009_ACEOF 21010for ac_lib in '' rt; do 21011 if test -z "$ac_lib"; then 21012 ac_res="none required" 21013 else 21014 ac_res=-l$ac_lib 21015 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21016 fi 21017 if ac_fn_c_try_link "$LINENO"; then : 21018 ac_cv_search_clock_gettime=$ac_res 21019fi 21020rm -f core conftest.err conftest.$ac_objext \ 21021 conftest$ac_exeext 21022 if ${ac_cv_search_clock_gettime+:} false; then : 21023 break 21024fi 21025done 21026if ${ac_cv_search_clock_gettime+:} false; then : 21027 21028else 21029 ac_cv_search_clock_gettime=no 21030fi 21031rm conftest.$ac_ext 21032LIBS=$ac_func_search_save_LIBS 21033fi 21034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 21035$as_echo "$ac_cv_search_clock_gettime" >&6; } 21036ac_res=$ac_cv_search_clock_gettime 21037if test "$ac_res" != no; then : 21038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21039 21040fi 21041 21042 ;; 21043 *freebsd*|*FreeBSD) 21044 case " $LIBOBJS " in 21045 *" getentropy_freebsd.$ac_objext "* ) ;; 21046 *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext" 21047 ;; 21048esac 21049 21050 ;; 21051 *linux*|Linux|*) 21052 case " $LIBOBJS " in 21053 *" getentropy_linux.$ac_objext "* ) ;; 21054 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext" 21055 ;; 21056esac 21057 21058 for ac_func in SHA512_Update 21059do : 21060 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 21061if test "x$ac_cv_func_SHA512_Update" = xyes; then : 21062 cat >>confdefs.h <<_ACEOF 21063#define HAVE_SHA512_UPDATE 1 21064_ACEOF 21065 21066else 21067 21068 21069$as_echo "#define COMPAT_SHA512 1" >>confdefs.h 21070 21071 case " $LIBOBJS " in 21072 *" sha512.$ac_objext "* ) ;; 21073 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 21074 ;; 21075esac 21076 21077 21078fi 21079done 21080 21081 for ac_header in sys/sysctl.h 21082do : 21083 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 21084" 21085if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 21086 cat >>confdefs.h <<_ACEOF 21087#define HAVE_SYS_SYSCTL_H 1 21088_ACEOF 21089 21090fi 21091 21092done 21093 21094 for ac_func in getauxval 21095do : 21096 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval" 21097if test "x$ac_cv_func_getauxval" = xyes; then : 21098 cat >>confdefs.h <<_ACEOF 21099#define HAVE_GETAUXVAL 1 21100_ACEOF 21101 21102fi 21103done 21104 21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 21106$as_echo_n "checking for library containing clock_gettime... " >&6; } 21107if ${ac_cv_search_clock_gettime+:} false; then : 21108 $as_echo_n "(cached) " >&6 21109else 21110 ac_func_search_save_LIBS=$LIBS 21111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21112/* end confdefs.h. */ 21113 21114/* Override any GCC internal prototype to avoid an error. 21115 Use char because int might match the return type of a GCC 21116 builtin and then its argument prototype would still apply. */ 21117#ifdef __cplusplus 21118extern "C" 21119#endif 21120char clock_gettime (); 21121int 21122main () 21123{ 21124return clock_gettime (); 21125 ; 21126 return 0; 21127} 21128_ACEOF 21129for ac_lib in '' rt; do 21130 if test -z "$ac_lib"; then 21131 ac_res="none required" 21132 else 21133 ac_res=-l$ac_lib 21134 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21135 fi 21136 if ac_fn_c_try_link "$LINENO"; then : 21137 ac_cv_search_clock_gettime=$ac_res 21138fi 21139rm -f core conftest.err conftest.$ac_objext \ 21140 conftest$ac_exeext 21141 if ${ac_cv_search_clock_gettime+:} false; then : 21142 break 21143fi 21144done 21145if ${ac_cv_search_clock_gettime+:} false; then : 21146 21147else 21148 ac_cv_search_clock_gettime=no 21149fi 21150rm conftest.$ac_ext 21151LIBS=$ac_func_search_save_LIBS 21152fi 21153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 21154$as_echo "$ac_cv_search_clock_gettime" >&6; } 21155ac_res=$ac_cv_search_clock_gettime 21156if test "$ac_res" != no; then : 21157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21158 21159fi 21160 21161 ;; 21162 esac 21163 fi 21164 21165fi 21166done 21167 21168 fi 21169fi 21170LIBOBJ_WITHOUT_CTIME="$LIBOBJS" 21171 21172ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 21173if test "x$ac_cv_func_ctime_r" = xyes; then : 21174 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 21175 21176else 21177 case " $LIBOBJS " in 21178 *" ctime_r.$ac_objext "* ) ;; 21179 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 21180 ;; 21181esac 21182 21183fi 21184 21185 21186ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 21187if test "x$ac_cv_func_strsep" = xyes; then : 21188 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h 21189 21190else 21191 case " $LIBOBJS " in 21192 *" strsep.$ac_objext "* ) ;; 21193 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 21194 ;; 21195esac 21196 21197fi 21198 21199 21200 21201# Check whether --enable-allsymbols was given. 21202if test "${enable_allsymbols+set}" = set; then : 21203 enableval=$enable_allsymbols; 21204fi 21205 21206case "$enable_allsymbols" in 21207 yes) 21208 COMMON_OBJ_ALL_SYMBOLS="" 21209 UBSYMS="" 21210 EXTRALINK="libunbound.la" 21211 21212$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h 21213 21214 ;; 21215 no|*) 21216 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)' 21217 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def' 21218 EXTRALINK="" 21219 ;; 21220esac 21221 21222 21223 21224if test x_$enable_lock_checks = x_yes; then 21225 UBSYMS="-export-symbols clubsyms.def" 21226 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def 21227 echo lock_protect >> clubsyms.def 21228 echo lock_unprotect >> clubsyms.def 21229 echo lock_get_mem >> clubsyms.def 21230 echo checklock_start >> clubsyms.def 21231 echo checklock_stop >> clubsyms.def 21232 echo checklock_lock >> clubsyms.def 21233 echo checklock_unlock >> clubsyms.def 21234 echo checklock_init >> clubsyms.def 21235 echo checklock_thrcreate >> clubsyms.def 21236 echo checklock_thrjoin >> clubsyms.def 21237fi 21238 21239# check for dnstap if requested 21240 21241 # Check whether --enable-dnstap was given. 21242if test "${enable_dnstap+set}" = set; then : 21243 enableval=$enable_dnstap; opt_dnstap=$enableval 21244else 21245 opt_dnstap=no 21246fi 21247 21248 21249 21250# Check whether --with-dnstap-socket-path was given. 21251if test "${with_dnstap_socket_path+set}" = set; then : 21252 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval 21253else 21254 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock" 21255fi 21256 21257 21258 if test "x$opt_dnstap" != "xno"; then 21259 # Extract the first word of "protoc-c", so it can be a program name with args. 21260set dummy protoc-c; ac_word=$2 21261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21262$as_echo_n "checking for $ac_word... " >&6; } 21263if ${ac_cv_path_PROTOC_C+:} false; then : 21264 $as_echo_n "(cached) " >&6 21265else 21266 case $PROTOC_C in 21267 [\\/]* | ?:[\\/]*) 21268 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 21269 ;; 21270 *) 21271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21272for as_dir in $PATH 21273do 21274 IFS=$as_save_IFS 21275 test -z "$as_dir" && as_dir=. 21276 for ac_exec_ext in '' $ac_executable_extensions; do 21277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21278 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext" 21279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21280 break 2 21281 fi 21282done 21283 done 21284IFS=$as_save_IFS 21285 21286 ;; 21287esac 21288fi 21289PROTOC_C=$ac_cv_path_PROTOC_C 21290if test -n "$PROTOC_C"; then 21291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 21292$as_echo "$PROTOC_C" >&6; } 21293else 21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21295$as_echo "no" >&6; } 21296fi 21297 21298 21299 if test -z "$PROTOC_C"; then 21300 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5 21301 fi 21302 21303# Check whether --with-protobuf-c was given. 21304if test "${with_protobuf_c+set}" = set; then : 21305 withval=$with_protobuf_c; 21306 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 21307 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then 21308 CFLAGS="$CFLAGS -I$withval/include/google" 21309 else 21310 CFLAGS="$CFLAGS -I$withval/include" 21311 fi 21312 LDFLAGS="$LDFLAGS -L$withval/lib" 21313 21314else 21315 21316 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 21317 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 21318 CFLAGS="$CFLAGS -I/usr/include/google" 21319 else 21320 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 21321 CFLAGS="$CFLAGS -I/usr/local/include/google" 21322 LDFLAGS="$LDFLAGS -L/usr/local/lib" 21323 fi 21324 fi 21325 21326fi 21327 21328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5 21329$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; } 21330if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 21331 $as_echo_n "(cached) " >&6 21332else 21333 ac_func_search_save_LIBS=$LIBS 21334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21335/* end confdefs.h. */ 21336 21337/* Override any GCC internal prototype to avoid an error. 21338 Use char because int might match the return type of a GCC 21339 builtin and then its argument prototype would still apply. */ 21340#ifdef __cplusplus 21341extern "C" 21342#endif 21343char protobuf_c_message_pack (); 21344int 21345main () 21346{ 21347return protobuf_c_message_pack (); 21348 ; 21349 return 0; 21350} 21351_ACEOF 21352for ac_lib in '' protobuf-c; do 21353 if test -z "$ac_lib"; then 21354 ac_res="none required" 21355 else 21356 ac_res=-l$ac_lib 21357 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21358 fi 21359 if ac_fn_c_try_link "$LINENO"; then : 21360 ac_cv_search_protobuf_c_message_pack=$ac_res 21361fi 21362rm -f core conftest.err conftest.$ac_objext \ 21363 conftest$ac_exeext 21364 if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 21365 break 21366fi 21367done 21368if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 21369 21370else 21371 ac_cv_search_protobuf_c_message_pack=no 21372fi 21373rm conftest.$ac_ext 21374LIBS=$ac_func_search_save_LIBS 21375fi 21376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5 21377$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; } 21378ac_res=$ac_cv_search_protobuf_c_message_pack 21379if test "$ac_res" != no; then : 21380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21381 21382else 21383 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5 21384fi 21385 21386 21387 21388$as_echo "#define USE_DNSTAP 1" >>confdefs.h 21389 21390 ENABLE_DNSTAP=1 21391 21392 21393 21394 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`" 21395 21396 21397cat >>confdefs.h <<_ACEOF 21398#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path" 21399_ACEOF 21400 21401 DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path" 21402 21403 DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)' 21404 21405 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c" 21406 21407 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo" 21408 21409 21410 else 21411 21412 ENABLE_DNSTAP=0 21413 21414 21415 21416 fi 21417 21418 21419# check for dnscrypt if requested 21420 21421 # Check whether --enable-dnscrypt was given. 21422if test "${enable_dnscrypt+set}" = set; then : 21423 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval 21424else 21425 opt_dnscrypt=no 21426fi 21427 21428 21429 if test "x$opt_dnscrypt" != "xno"; then 21430 21431# Check whether --with-libsodium was given. 21432if test "${with_libsodium+set}" = set; then : 21433 withval=$with_libsodium; 21434 CFLAGS="$CFLAGS -I$withval/include" 21435 LDFLAGS="$LDFLAGS -L$withval/lib" 21436 21437fi 21438 21439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5 21440$as_echo_n "checking for library containing sodium_init... " >&6; } 21441if ${ac_cv_search_sodium_init+:} false; then : 21442 $as_echo_n "(cached) " >&6 21443else 21444 ac_func_search_save_LIBS=$LIBS 21445cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21446/* end confdefs.h. */ 21447 21448/* Override any GCC internal prototype to avoid an error. 21449 Use char because int might match the return type of a GCC 21450 builtin and then its argument prototype would still apply. */ 21451#ifdef __cplusplus 21452extern "C" 21453#endif 21454char sodium_init (); 21455int 21456main () 21457{ 21458return sodium_init (); 21459 ; 21460 return 0; 21461} 21462_ACEOF 21463for ac_lib in '' sodium; do 21464 if test -z "$ac_lib"; then 21465 ac_res="none required" 21466 else 21467 ac_res=-l$ac_lib 21468 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21469 fi 21470 if ac_fn_c_try_link "$LINENO"; then : 21471 ac_cv_search_sodium_init=$ac_res 21472fi 21473rm -f core conftest.err conftest.$ac_objext \ 21474 conftest$ac_exeext 21475 if ${ac_cv_search_sodium_init+:} false; then : 21476 break 21477fi 21478done 21479if ${ac_cv_search_sodium_init+:} false; then : 21480 21481else 21482 ac_cv_search_sodium_init=no 21483fi 21484rm conftest.$ac_ext 21485LIBS=$ac_func_search_save_LIBS 21486fi 21487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5 21488$as_echo "$ac_cv_search_sodium_init" >&6; } 21489ac_res=$ac_cv_search_sodium_init 21490if test "$ac_res" != no; then : 21491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21492 21493else 21494 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5 21495fi 21496 21497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5 21498$as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; } 21499if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then : 21500 $as_echo_n "(cached) " >&6 21501else 21502 ac_func_search_save_LIBS=$LIBS 21503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21504/* end confdefs.h. */ 21505 21506/* Override any GCC internal prototype to avoid an error. 21507 Use char because int might match the return type of a GCC 21508 builtin and then its argument prototype would still apply. */ 21509#ifdef __cplusplus 21510extern "C" 21511#endif 21512char crypto_box_curve25519xchacha20poly1305_beforenm (); 21513int 21514main () 21515{ 21516return crypto_box_curve25519xchacha20poly1305_beforenm (); 21517 ; 21518 return 0; 21519} 21520_ACEOF 21521for ac_lib in '' sodium; do 21522 if test -z "$ac_lib"; then 21523 ac_res="none required" 21524 else 21525 ac_res=-l$ac_lib 21526 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21527 fi 21528 if ac_fn_c_try_link "$LINENO"; then : 21529 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res 21530fi 21531rm -f core conftest.err conftest.$ac_objext \ 21532 conftest$ac_exeext 21533 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then : 21534 break 21535fi 21536done 21537if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then : 21538 21539else 21540 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no 21541fi 21542rm conftest.$ac_ext 21543LIBS=$ac_func_search_save_LIBS 21544fi 21545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5 21546$as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; } 21547ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm 21548if test "$ac_res" != no; then : 21549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21550 21551 ENABLE_DNSCRYPT_XCHACHA20=1 21552 21553 21554$as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h 21555 21556 21557else 21558 21559 ENABLE_DNSCRYPT_XCHACHA20=0 21560 21561 21562fi 21563 21564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5 21565$as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; } 21566if ${ac_cv_search_sodium_set_misuse_handler+:} false; then : 21567 $as_echo_n "(cached) " >&6 21568else 21569 ac_func_search_save_LIBS=$LIBS 21570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21571/* end confdefs.h. */ 21572 21573/* Override any GCC internal prototype to avoid an error. 21574 Use char because int might match the return type of a GCC 21575 builtin and then its argument prototype would still apply. */ 21576#ifdef __cplusplus 21577extern "C" 21578#endif 21579char sodium_set_misuse_handler (); 21580int 21581main () 21582{ 21583return sodium_set_misuse_handler (); 21584 ; 21585 return 0; 21586} 21587_ACEOF 21588for ac_lib in '' sodium; do 21589 if test -z "$ac_lib"; then 21590 ac_res="none required" 21591 else 21592 ac_res=-l$ac_lib 21593 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21594 fi 21595 if ac_fn_c_try_link "$LINENO"; then : 21596 ac_cv_search_sodium_set_misuse_handler=$ac_res 21597fi 21598rm -f core conftest.err conftest.$ac_objext \ 21599 conftest$ac_exeext 21600 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then : 21601 break 21602fi 21603done 21604if ${ac_cv_search_sodium_set_misuse_handler+:} false; then : 21605 21606else 21607 ac_cv_search_sodium_set_misuse_handler=no 21608fi 21609rm conftest.$ac_ext 21610LIBS=$ac_func_search_save_LIBS 21611fi 21612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5 21613$as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; } 21614ac_res=$ac_cv_search_sodium_set_misuse_handler 21615if test "$ac_res" != no; then : 21616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21617 21618 21619$as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h 21620 21621 21622fi 21623 21624 21625 21626$as_echo "#define USE_DNSCRYPT 1" >>confdefs.h 21627 21628 ENABLE_DNSCRYPT=1 21629 21630 21631 DNSCRYPT_SRC="dnscrypt/dnscrypt.c" 21632 21633 DNSCRYPT_OBJ="dnscrypt.lo" 21634 21635 21636 else 21637 ENABLE_DNSCRYPT_XCHACHA20=0 21638 21639 21640 ENABLE_DNSCRYPT=0 21641 21642 21643 21644 fi 21645 21646 21647# check for cachedb if requested 21648# Check whether --enable-cachedb was given. 21649if test "${enable_cachedb+set}" = set; then : 21650 enableval=$enable_cachedb; 21651fi 21652 21653# turn on cachedb when hiredis support is enabled. 21654if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi 21655case "$enable_cachedb" in 21656 yes) 21657 21658$as_echo "#define USE_CACHEDB 1" >>confdefs.h 21659 21660 CACHEDB_SRC="cachedb/cachedb.c cachedb/redis.c" 21661 21662 CACHEDB_OBJ="cachedb.lo redis.lo" 21663 21664 ;; 21665 no|*) 21666 # nothing 21667 ;; 21668esac 21669 21670# check for ipsecmod if requested 21671# Check whether --enable-ipsecmod was given. 21672if test "${enable_ipsecmod+set}" = set; then : 21673 enableval=$enable_ipsecmod; 21674fi 21675 21676case "$enable_ipsecmod" in 21677 yes) 21678 21679$as_echo "#define USE_IPSECMOD 1" >>confdefs.h 21680 21681 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo" 21682 21683 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h' 21684 21685 ;; 21686 no|*) 21687 # nothing 21688 ;; 21689esac 21690 21691# check for ipset if requested 21692# Check whether --enable-ipset was given. 21693if test "${enable_ipset+set}" = set; then : 21694 enableval=$enable_ipset; 21695fi 21696 21697case "$enable_ipset" in 21698 yes) 21699 21700$as_echo "#define USE_IPSET 1" >>confdefs.h 21701 21702 IPSET_SRC="ipset/ipset.c" 21703 21704 IPSET_OBJ="ipset.lo" 21705 21706 21707 # mnl 21708 21709# Check whether --with-libmnl was given. 21710if test "${with_libmnl+set}" = set; then : 21711 withval=$with_libmnl; 21712else 21713 withval="yes" 21714fi 21715 21716 found_libmnl="no" 21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5 21718$as_echo_n "checking for libmnl... " >&6; } 21719 if test x_$withval = x_ -o x_$withval = x_yes; then 21720 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 21721 fi 21722 for dir in $withval ; do 21723 if test -f "$dir/include/libmnl/libmnl.h" -o -f "$dir/include/libmnl/libmnl/libmnl.h"; then 21724 found_libmnl="yes" 21725 extralibmnl="" 21726 if test -f "$dir/include/libmnl/libmnl/libmnl.h"; then 21727 extralibmnl="/libmnl" 21728 fi 21729 if test "$dir" != "/usr" -o -n "$extralibmnl"; then 21730 CPPFLAGS="$CPPFLAGS -I$dir/include$extralibmnl" 21731 fi 21732 if test "$dir" != "/usr"; then 21733 LDFLAGS="$LDFLAGS -L$dir/lib" 21734 fi 21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 21736$as_echo "found in $dir" >&6; } 21737 LIBS="$LIBS -lmnl" 21738 break; 21739 fi 21740 done 21741 if test x_$found_libmnl != x_yes; then 21742 as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5 21743 fi 21744 ;; 21745 no|*) 21746 # nothing 21747 ;; 21748esac 21749# Check whether --enable-explicit-port-randomisation was given. 21750if test "${enable_explicit_port_randomisation+set}" = set; then : 21751 enableval=$enable_explicit_port_randomisation; 21752fi 21753 21754case "$enable_explicit_port_randomisation" in 21755 no) 21756 21757$as_echo "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h 21758 21759 ;; 21760 yes|*) 21761 ;; 21762esac 21763 21764if echo "$host" | $GREP -i -e linux >/dev/null; then 21765 # Check whether --enable-linux-ip-local-port-range was given. 21766if test "${enable_linux_ip_local_port_range+set}" = set; then : 21767 enableval=$enable_linux_ip_local_port_range; 21768fi 21769 21770 case "$enable_linux_ip_local_port_range" in 21771 yes) 21772 21773$as_echo "#define USE_LINUX_IP_LOCAL_PORT_RANGE 1" >>confdefs.h 21774 21775 ;; 21776 no|*) 21777 ;; 21778 esac 21779fi 21780 21781 21782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5 21783$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; } 21784# on openBSD, the implicit rule make $< work. 21785# on Solaris, it does not work ($? is changed sources, $^ lists dependencies). 21786# gmake works. 21787cat >conftest.make <<EOF 21788all: conftest.lo 21789 21790conftest.lo foo.lo bla.lo: 21791 if test -f "\$<"; then touch \$@; fi 21792 21793.SUFFIXES: .lo 21794.c.lo: 21795 if test -f "\$<"; then touch \$@; fi 21796 21797conftest.lo: conftest.dir/conftest.c 21798EOF 21799mkdir conftest.dir 21800touch conftest.dir/conftest.c 21801rm -f conftest.lo conftest.c 21802${MAKE:-make} -f conftest.make >/dev/null 21803rm -f conftest.make conftest.c conftest.dir/conftest.c 21804rm -rf conftest.dir 21805if test ! -f conftest.lo; then 21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21807$as_echo "no" >&6; } 21808 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source' 21809 SOURCEFILE='`cat .source`' 21810else 21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21812$as_echo "yes" >&6; } 21813 SOURCEDETERMINE=':' 21814 SOURCEFILE='$<' 21815fi 21816rm -f conftest.lo 21817 21818 21819 21820# see if we want to build the library or everything 21821ALLTARGET="alltargets" 21822INSTALLTARGET="install-all" 21823 21824# Check whether --with-libunbound-only was given. 21825if test "${with_libunbound_only+set}" = set; then : 21826 withval=$with_libunbound_only; 21827 if test "$withval" = "yes"; then 21828 ALLTARGET="lib" 21829 INSTALLTARGET="install-lib" 21830 fi 21831 21832fi 21833 21834if test $ALLTARGET = "alltargets"; then 21835 if test $USE_NSS = "yes"; then 21836 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5 21837 fi 21838 if test $USE_NETTLE = "yes"; then 21839 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5 21840 fi 21841fi 21842 21843 21844 21845 21846 21847 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5 21848$as_echo "$as_me: Stripping extension flags..." >&6;} 21849 21850 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then 21851 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`" 21852 21853$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h 21854 21855 fi 21856 21857 21858 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then 21859 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`" 21860 21861$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h 21862 21863 fi 21864 21865 21866 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then 21867 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`" 21868 21869$as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h 21870 21871 fi 21872 21873 21874 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then 21875 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`" 21876 21877$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h 21878 21879 fi 21880 21881 21882 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then 21883 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`" 21884 21885$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h 21886 21887 fi 21888 21889 21890 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then 21891 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`" 21892 21893$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h 21894 21895 fi 21896 21897 21898 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then 21899 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`" 21900 21901$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h 21902 21903 fi 21904 21905 21906 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then 21907 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`" 21908 21909$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h 21910 21911 fi 21912 21913 21914 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then 21915 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`" 21916 21917$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h 21918 21919 fi 21920 21921 21922if test -n "$LATE_LDFLAGS"; then 21923 LDFLAGS="$LATE_LDFLAGS $LDFLAGS" 21924fi 21925# remove start spaces 21926LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'` 21927LIBS=`echo "$LIBS"|sed -e 's/^ *//'` 21928 21929 21930cat >>confdefs.h <<_ACEOF 21931#define MAXSYSLOGMSGLEN 10240 21932_ACEOF 21933 21934 21935 21936 21937version=1.16.0 21938 21939date=`date +'%b %e, %Y'` 21940 21941 21942ac_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" 21943 21944ac_config_headers="$ac_config_headers config.h" 21945 21946cat >confcache <<\_ACEOF 21947# This file is a shell script that caches the results of configure 21948# tests run on this system so they can be shared between configure 21949# scripts and configure runs, see configure's option --config-cache. 21950# It is not useful on other systems. If it contains results you don't 21951# want to keep, you may remove or edit it. 21952# 21953# config.status only pays attention to the cache file if you give it 21954# the --recheck option to rerun configure. 21955# 21956# `ac_cv_env_foo' variables (set or unset) will be overridden when 21957# loading this file, other *unset* `ac_cv_foo' will be assigned the 21958# following values. 21959 21960_ACEOF 21961 21962# The following way of writing the cache mishandles newlines in values, 21963# but we know of no workaround that is simple, portable, and efficient. 21964# So, we kill variables containing newlines. 21965# Ultrix sh set writes to stderr and can't be redirected directly, 21966# and sets the high bit in the cache file unless we assign to the vars. 21967( 21968 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21969 eval ac_val=\$$ac_var 21970 case $ac_val in #( 21971 *${as_nl}*) 21972 case $ac_var in #( 21973 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21974$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21975 esac 21976 case $ac_var in #( 21977 _ | IFS | as_nl) ;; #( 21978 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21979 *) { eval $ac_var=; unset $ac_var;} ;; 21980 esac ;; 21981 esac 21982 done 21983 21984 (set) 2>&1 | 21985 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21986 *${as_nl}ac_space=\ *) 21987 # `set' does not quote correctly, so add quotes: double-quote 21988 # substitution turns \\\\ into \\, and sed turns \\ into \. 21989 sed -n \ 21990 "s/'/'\\\\''/g; 21991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21992 ;; #( 21993 *) 21994 # `set' quotes correctly as required by POSIX, so do not add quotes. 21995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21996 ;; 21997 esac | 21998 sort 21999) | 22000 sed ' 22001 /^ac_cv_env_/b end 22002 t clear 22003 :clear 22004 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22005 t end 22006 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22007 :end' >>confcache 22008if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22009 if test -w "$cache_file"; then 22010 if test "x$cache_file" != "x/dev/null"; then 22011 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22012$as_echo "$as_me: updating cache $cache_file" >&6;} 22013 if test ! -f "$cache_file" || test -h "$cache_file"; then 22014 cat confcache >"$cache_file" 22015 else 22016 case $cache_file in #( 22017 */* | ?:*) 22018 mv -f confcache "$cache_file"$$ && 22019 mv -f "$cache_file"$$ "$cache_file" ;; #( 22020 *) 22021 mv -f confcache "$cache_file" ;; 22022 esac 22023 fi 22024 fi 22025 else 22026 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22027$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22028 fi 22029fi 22030rm -f confcache 22031 22032test "x$prefix" = xNONE && prefix=$ac_default_prefix 22033# Let make expand exec_prefix. 22034test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22035 22036DEFS=-DHAVE_CONFIG_H 22037 22038ac_libobjs= 22039ac_ltlibobjs= 22040U= 22041for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22042 # 1. Remove the extension, and $U if already installed. 22043 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22044 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22045 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22046 # will be set to the directory where LIBOBJS objects are built. 22047 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22048 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22049done 22050LIBOBJS=$ac_libobjs 22051 22052LTLIBOBJS=$ac_ltlibobjs 22053 22054 22055if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then 22056 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined. 22057Usually this means the macro was only invoked conditionally." "$LINENO" 5 22058fi 22059 22060: "${CONFIG_STATUS=./config.status}" 22061ac_write_fail=0 22062ac_clean_files_save=$ac_clean_files 22063ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22064{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22065$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22066as_write_fail=0 22067cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22068#! $SHELL 22069# Generated by $as_me. 22070# Run this file to recreate the current configuration. 22071# Compiler output produced by configure, useful for debugging 22072# configure, is in config.log if it exists. 22073 22074debug=false 22075ac_cs_recheck=false 22076ac_cs_silent=false 22077 22078SHELL=\${CONFIG_SHELL-$SHELL} 22079export SHELL 22080_ASEOF 22081cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22082## -------------------- ## 22083## M4sh Initialization. ## 22084## -------------------- ## 22085 22086# Be more Bourne compatible 22087DUALCASE=1; export DUALCASE # for MKS sh 22088if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22089 emulate sh 22090 NULLCMD=: 22091 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22092 # is contrary to our usage. Disable this feature. 22093 alias -g '${1+"$@"}'='"$@"' 22094 setopt NO_GLOB_SUBST 22095else 22096 case `(set -o) 2>/dev/null` in #( 22097 *posix*) : 22098 set -o posix ;; #( 22099 *) : 22100 ;; 22101esac 22102fi 22103 22104 22105as_nl=' 22106' 22107export as_nl 22108# Printing a long string crashes Solaris 7 /usr/bin/printf. 22109as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22110as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22111as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22112# Prefer a ksh shell builtin over an external printf program on Solaris, 22113# but without wasting forks for bash or zsh. 22114if test -z "$BASH_VERSION$ZSH_VERSION" \ 22115 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 22116 as_echo='print -r --' 22117 as_echo_n='print -rn --' 22118elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22119 as_echo='printf %s\n' 22120 as_echo_n='printf %s' 22121else 22122 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22123 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22124 as_echo_n='/usr/ucb/echo -n' 22125 else 22126 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22127 as_echo_n_body='eval 22128 arg=$1; 22129 case $arg in #( 22130 *"$as_nl"*) 22131 expr "X$arg" : "X\\(.*\\)$as_nl"; 22132 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22133 esac; 22134 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22135 ' 22136 export as_echo_n_body 22137 as_echo_n='sh -c $as_echo_n_body as_echo' 22138 fi 22139 export as_echo_body 22140 as_echo='sh -c $as_echo_body as_echo' 22141fi 22142 22143# The user is always right. 22144if test "${PATH_SEPARATOR+set}" != set; then 22145 PATH_SEPARATOR=: 22146 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22147 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22148 PATH_SEPARATOR=';' 22149 } 22150fi 22151 22152 22153# IFS 22154# We need space, tab and new line, in precisely that order. Quoting is 22155# there to prevent editors from complaining about space-tab. 22156# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22157# splitting by setting IFS to empty value.) 22158IFS=" "" $as_nl" 22159 22160# Find who we are. Look in the path if we contain no directory separator. 22161as_myself= 22162case $0 in #(( 22163 *[\\/]* ) as_myself=$0 ;; 22164 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22165for as_dir in $PATH 22166do 22167 IFS=$as_save_IFS 22168 test -z "$as_dir" && as_dir=. 22169 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22170 done 22171IFS=$as_save_IFS 22172 22173 ;; 22174esac 22175# We did not find ourselves, most probably we were run as `sh COMMAND' 22176# in which case we are not to be found in the path. 22177if test "x$as_myself" = x; then 22178 as_myself=$0 22179fi 22180if test ! -f "$as_myself"; then 22181 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22182 exit 1 22183fi 22184 22185# Unset variables that we do not need and which cause bugs (e.g. in 22186# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22187# suppresses any "Segmentation fault" message there. '((' could 22188# trigger a bug in pdksh 5.2.14. 22189for as_var in BASH_ENV ENV MAIL MAILPATH 22190do eval test x\${$as_var+set} = xset \ 22191 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22192done 22193PS1='$ ' 22194PS2='> ' 22195PS4='+ ' 22196 22197# NLS nuisances. 22198LC_ALL=C 22199export LC_ALL 22200LANGUAGE=C 22201export LANGUAGE 22202 22203# CDPATH. 22204(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22205 22206 22207# as_fn_error STATUS ERROR [LINENO LOG_FD] 22208# ---------------------------------------- 22209# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22210# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22211# script with STATUS, using 1 if that was 0. 22212as_fn_error () 22213{ 22214 as_status=$1; test $as_status -eq 0 && as_status=1 22215 if test "$4"; then 22216 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22217 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22218 fi 22219 $as_echo "$as_me: error: $2" >&2 22220 as_fn_exit $as_status 22221} # as_fn_error 22222 22223 22224# as_fn_set_status STATUS 22225# ----------------------- 22226# Set $? to STATUS, without forking. 22227as_fn_set_status () 22228{ 22229 return $1 22230} # as_fn_set_status 22231 22232# as_fn_exit STATUS 22233# ----------------- 22234# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22235as_fn_exit () 22236{ 22237 set +e 22238 as_fn_set_status $1 22239 exit $1 22240} # as_fn_exit 22241 22242# as_fn_unset VAR 22243# --------------- 22244# Portably unset VAR. 22245as_fn_unset () 22246{ 22247 { eval $1=; unset $1;} 22248} 22249as_unset=as_fn_unset 22250# as_fn_append VAR VALUE 22251# ---------------------- 22252# Append the text in VALUE to the end of the definition contained in VAR. Take 22253# advantage of any shell optimizations that allow amortized linear growth over 22254# repeated appends, instead of the typical quadratic growth present in naive 22255# implementations. 22256if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22257 eval 'as_fn_append () 22258 { 22259 eval $1+=\$2 22260 }' 22261else 22262 as_fn_append () 22263 { 22264 eval $1=\$$1\$2 22265 } 22266fi # as_fn_append 22267 22268# as_fn_arith ARG... 22269# ------------------ 22270# Perform arithmetic evaluation on the ARGs, and store the result in the 22271# global $as_val. Take advantage of shells that can avoid forks. The arguments 22272# must be portable across $(()) and expr. 22273if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22274 eval 'as_fn_arith () 22275 { 22276 as_val=$(( $* )) 22277 }' 22278else 22279 as_fn_arith () 22280 { 22281 as_val=`expr "$@" || test $? -eq 1` 22282 } 22283fi # as_fn_arith 22284 22285 22286if expr a : '\(a\)' >/dev/null 2>&1 && 22287 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22288 as_expr=expr 22289else 22290 as_expr=false 22291fi 22292 22293if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22294 as_basename=basename 22295else 22296 as_basename=false 22297fi 22298 22299if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22300 as_dirname=dirname 22301else 22302 as_dirname=false 22303fi 22304 22305as_me=`$as_basename -- "$0" || 22306$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22307 X"$0" : 'X\(//\)$' \| \ 22308 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22309$as_echo X/"$0" | 22310 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22311 s//\1/ 22312 q 22313 } 22314 /^X\/\(\/\/\)$/{ 22315 s//\1/ 22316 q 22317 } 22318 /^X\/\(\/\).*/{ 22319 s//\1/ 22320 q 22321 } 22322 s/.*/./; q'` 22323 22324# Avoid depending upon Character Ranges. 22325as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22326as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22327as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22328as_cr_digits='0123456789' 22329as_cr_alnum=$as_cr_Letters$as_cr_digits 22330 22331ECHO_C= ECHO_N= ECHO_T= 22332case `echo -n x` in #((((( 22333-n*) 22334 case `echo 'xy\c'` in 22335 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22336 xy) ECHO_C='\c';; 22337 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22338 ECHO_T=' ';; 22339 esac;; 22340*) 22341 ECHO_N='-n';; 22342esac 22343 22344rm -f conf$$ conf$$.exe conf$$.file 22345if test -d conf$$.dir; then 22346 rm -f conf$$.dir/conf$$.file 22347else 22348 rm -f conf$$.dir 22349 mkdir conf$$.dir 2>/dev/null 22350fi 22351if (echo >conf$$.file) 2>/dev/null; then 22352 if ln -s conf$$.file conf$$ 2>/dev/null; then 22353 as_ln_s='ln -s' 22354 # ... but there are two gotchas: 22355 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22356 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22357 # In both cases, we have to default to `cp -pR'. 22358 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22359 as_ln_s='cp -pR' 22360 elif ln conf$$.file conf$$ 2>/dev/null; then 22361 as_ln_s=ln 22362 else 22363 as_ln_s='cp -pR' 22364 fi 22365else 22366 as_ln_s='cp -pR' 22367fi 22368rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22369rmdir conf$$.dir 2>/dev/null 22370 22371 22372# as_fn_mkdir_p 22373# ------------- 22374# Create "$as_dir" as a directory, including parents if necessary. 22375as_fn_mkdir_p () 22376{ 22377 22378 case $as_dir in #( 22379 -*) as_dir=./$as_dir;; 22380 esac 22381 test -d "$as_dir" || eval $as_mkdir_p || { 22382 as_dirs= 22383 while :; do 22384 case $as_dir in #( 22385 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22386 *) as_qdir=$as_dir;; 22387 esac 22388 as_dirs="'$as_qdir' $as_dirs" 22389 as_dir=`$as_dirname -- "$as_dir" || 22390$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22391 X"$as_dir" : 'X\(//\)[^/]' \| \ 22392 X"$as_dir" : 'X\(//\)$' \| \ 22393 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22394$as_echo X"$as_dir" | 22395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22396 s//\1/ 22397 q 22398 } 22399 /^X\(\/\/\)[^/].*/{ 22400 s//\1/ 22401 q 22402 } 22403 /^X\(\/\/\)$/{ 22404 s//\1/ 22405 q 22406 } 22407 /^X\(\/\).*/{ 22408 s//\1/ 22409 q 22410 } 22411 s/.*/./; q'` 22412 test -d "$as_dir" && break 22413 done 22414 test -z "$as_dirs" || eval "mkdir $as_dirs" 22415 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22416 22417 22418} # as_fn_mkdir_p 22419if mkdir -p . 2>/dev/null; then 22420 as_mkdir_p='mkdir -p "$as_dir"' 22421else 22422 test -d ./-p && rmdir ./-p 22423 as_mkdir_p=false 22424fi 22425 22426 22427# as_fn_executable_p FILE 22428# ----------------------- 22429# Test if FILE is an executable regular file. 22430as_fn_executable_p () 22431{ 22432 test -f "$1" && test -x "$1" 22433} # as_fn_executable_p 22434as_test_x='test -x' 22435as_executable_p=as_fn_executable_p 22436 22437# Sed expression to map a string onto a valid CPP name. 22438as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22439 22440# Sed expression to map a string onto a valid variable name. 22441as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22442 22443 22444exec 6>&1 22445## ----------------------------------- ## 22446## Main body of $CONFIG_STATUS script. ## 22447## ----------------------------------- ## 22448_ASEOF 22449test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22450 22451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22452# Save the log message, to keep $0 and so on meaningful, and to 22453# report actual input values of CONFIG_FILES etc. instead of their 22454# values after options handling. 22455ac_log=" 22456This file was extended by unbound $as_me 1.16.0, which was 22457generated by GNU Autoconf 2.69. Invocation command line was 22458 22459 CONFIG_FILES = $CONFIG_FILES 22460 CONFIG_HEADERS = $CONFIG_HEADERS 22461 CONFIG_LINKS = $CONFIG_LINKS 22462 CONFIG_COMMANDS = $CONFIG_COMMANDS 22463 $ $0 $@ 22464 22465on `(hostname || uname -n) 2>/dev/null | sed 1q` 22466" 22467 22468_ACEOF 22469 22470case $ac_config_files in *" 22471"*) set x $ac_config_files; shift; ac_config_files=$*;; 22472esac 22473 22474case $ac_config_headers in *" 22475"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22476esac 22477 22478 22479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22480# Files that config.status was made for. 22481config_files="$ac_config_files" 22482config_headers="$ac_config_headers" 22483config_commands="$ac_config_commands" 22484 22485_ACEOF 22486 22487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22488ac_cs_usage="\ 22489\`$as_me' instantiates files and other configuration actions 22490from templates according to the current configuration. Unless the files 22491and actions are specified as TAGs, all are instantiated by default. 22492 22493Usage: $0 [OPTION]... [TAG]... 22494 22495 -h, --help print this help, then exit 22496 -V, --version print version number and configuration settings, then exit 22497 --config print configuration, then exit 22498 -q, --quiet, --silent 22499 do not print progress messages 22500 -d, --debug don't remove temporary files 22501 --recheck update $as_me by reconfiguring in the same conditions 22502 --file=FILE[:TEMPLATE] 22503 instantiate the configuration file FILE 22504 --header=FILE[:TEMPLATE] 22505 instantiate the configuration header FILE 22506 22507Configuration files: 22508$config_files 22509 22510Configuration headers: 22511$config_headers 22512 22513Configuration commands: 22514$config_commands 22515 22516Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>." 22517 22518_ACEOF 22519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22520ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22521ac_cs_version="\\ 22522unbound config.status 1.16.0 22523configured by $0, generated by GNU Autoconf 2.69, 22524 with options \\"\$ac_cs_config\\" 22525 22526Copyright (C) 2012 Free Software Foundation, Inc. 22527This config.status script is free software; the Free Software Foundation 22528gives unlimited permission to copy, distribute and modify it." 22529 22530ac_pwd='$ac_pwd' 22531srcdir='$srcdir' 22532AWK='$AWK' 22533test -n "\$AWK" || AWK=awk 22534_ACEOF 22535 22536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22537# The default lists apply if the user does not specify any file. 22538ac_need_defaults=: 22539while test $# != 0 22540do 22541 case $1 in 22542 --*=?*) 22543 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22544 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22545 ac_shift=: 22546 ;; 22547 --*=) 22548 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22549 ac_optarg= 22550 ac_shift=: 22551 ;; 22552 *) 22553 ac_option=$1 22554 ac_optarg=$2 22555 ac_shift=shift 22556 ;; 22557 esac 22558 22559 case $ac_option in 22560 # Handling of the options. 22561 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22562 ac_cs_recheck=: ;; 22563 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22564 $as_echo "$ac_cs_version"; exit ;; 22565 --config | --confi | --conf | --con | --co | --c ) 22566 $as_echo "$ac_cs_config"; exit ;; 22567 --debug | --debu | --deb | --de | --d | -d ) 22568 debug=: ;; 22569 --file | --fil | --fi | --f ) 22570 $ac_shift 22571 case $ac_optarg in 22572 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22573 '') as_fn_error $? "missing file argument" ;; 22574 esac 22575 as_fn_append CONFIG_FILES " '$ac_optarg'" 22576 ac_need_defaults=false;; 22577 --header | --heade | --head | --hea ) 22578 $ac_shift 22579 case $ac_optarg in 22580 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22581 esac 22582 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22583 ac_need_defaults=false;; 22584 --he | --h) 22585 # Conflict between --help and --header 22586 as_fn_error $? "ambiguous option: \`$1' 22587Try \`$0 --help' for more information.";; 22588 --help | --hel | -h ) 22589 $as_echo "$ac_cs_usage"; exit ;; 22590 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22591 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22592 ac_cs_silent=: ;; 22593 22594 # This is an error. 22595 -*) as_fn_error $? "unrecognized option: \`$1' 22596Try \`$0 --help' for more information." ;; 22597 22598 *) as_fn_append ac_config_targets " $1" 22599 ac_need_defaults=false ;; 22600 22601 esac 22602 shift 22603done 22604 22605ac_configure_extra_args= 22606 22607if $ac_cs_silent; then 22608 exec 6>/dev/null 22609 ac_configure_extra_args="$ac_configure_extra_args --silent" 22610fi 22611 22612_ACEOF 22613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22614if \$ac_cs_recheck; then 22615 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22616 shift 22617 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22618 CONFIG_SHELL='$SHELL' 22619 export CONFIG_SHELL 22620 exec "\$@" 22621fi 22622 22623_ACEOF 22624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22625exec 5>>config.log 22626{ 22627 echo 22628 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22629## Running $as_me. ## 22630_ASBOX 22631 $as_echo "$ac_log" 22632} >&5 22633 22634_ACEOF 22635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22636# 22637# INIT-COMMANDS 22638# 22639 22640 22641# The HP-UX ksh and POSIX shell print the target directory to stdout 22642# if CDPATH is set. 22643(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22644 22645sed_quote_subst='$sed_quote_subst' 22646double_quote_subst='$double_quote_subst' 22647delay_variable_subst='$delay_variable_subst' 22648macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22649macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22650enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22651enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22652pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22653enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22654shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22655SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22656ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22657PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22658host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22659host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22660host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22661build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22662build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22663build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22664SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22665Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22666GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22667EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22668FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22669LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22670NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22671LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22672max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22673ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22674exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22675lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22676lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22677lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22678lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22679lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22680reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22681reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22682OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22683deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22684file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22685file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22686want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22687DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22688sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22689AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22690AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22691archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22692STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22693RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22694old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22695old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22696old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22697lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22698CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22699CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22700compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22701GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22702lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22703lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22704lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22705lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22706lt_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"`' 22707lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22708nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22709lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22710lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22711objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22712MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22713lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22714lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22715lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22716lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22717lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22718need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22719MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22720DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22721NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22722LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22723OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22724OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22725libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22726shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22727extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22728archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22729enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22730export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22731whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22732compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22733old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22734old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22735archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22736archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22737module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22738module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22739with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22740allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22741no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22742hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22743hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22744hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22745hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22746hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22747hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22748hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22749inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22750link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22751always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22752export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22753exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22754include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22755prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22756postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22757file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22758variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22759need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22760need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22761version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22762runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22763shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22764shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22765libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22766library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22767soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22768install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22769postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22770postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22771finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22772finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22773hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22774sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22775configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22776configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22777hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22778enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22779enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22780enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22781old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22782striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22783 22784LTCC='$LTCC' 22785LTCFLAGS='$LTCFLAGS' 22786compiler='$compiler_DEFAULT' 22787 22788# A function that is used when there is no print builtin or printf. 22789func_fallback_echo () 22790{ 22791 eval 'cat <<_LTECHO_EOF 22792\$1 22793_LTECHO_EOF' 22794} 22795 22796# Quote evaled strings. 22797for var in SHELL \ 22798ECHO \ 22799PATH_SEPARATOR \ 22800SED \ 22801GREP \ 22802EGREP \ 22803FGREP \ 22804LD \ 22805NM \ 22806LN_S \ 22807lt_SP2NL \ 22808lt_NL2SP \ 22809reload_flag \ 22810OBJDUMP \ 22811deplibs_check_method \ 22812file_magic_cmd \ 22813file_magic_glob \ 22814want_nocaseglob \ 22815DLLTOOL \ 22816sharedlib_from_linklib_cmd \ 22817AR \ 22818AR_FLAGS \ 22819archiver_list_spec \ 22820STRIP \ 22821RANLIB \ 22822CC \ 22823CFLAGS \ 22824compiler \ 22825lt_cv_sys_global_symbol_pipe \ 22826lt_cv_sys_global_symbol_to_cdecl \ 22827lt_cv_sys_global_symbol_to_import \ 22828lt_cv_sys_global_symbol_to_c_name_address \ 22829lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22830lt_cv_nm_interface \ 22831nm_file_list_spec \ 22832lt_cv_truncate_bin \ 22833lt_prog_compiler_no_builtin_flag \ 22834lt_prog_compiler_pic \ 22835lt_prog_compiler_wl \ 22836lt_prog_compiler_static \ 22837lt_cv_prog_compiler_c_o \ 22838need_locks \ 22839MANIFEST_TOOL \ 22840DSYMUTIL \ 22841NMEDIT \ 22842LIPO \ 22843OTOOL \ 22844OTOOL64 \ 22845shrext_cmds \ 22846export_dynamic_flag_spec \ 22847whole_archive_flag_spec \ 22848compiler_needs_object \ 22849with_gnu_ld \ 22850allow_undefined_flag \ 22851no_undefined_flag \ 22852hardcode_libdir_flag_spec \ 22853hardcode_libdir_separator \ 22854exclude_expsyms \ 22855include_expsyms \ 22856file_list_spec \ 22857variables_saved_for_relink \ 22858libname_spec \ 22859library_names_spec \ 22860soname_spec \ 22861install_override_mode \ 22862finish_eval \ 22863old_striplib \ 22864striplib; do 22865 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22866 *[\\\\\\\`\\"\\\$]*) 22867 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22868 ;; 22869 *) 22870 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22871 ;; 22872 esac 22873done 22874 22875# Double-quote double-evaled strings. 22876for var in reload_cmds \ 22877old_postinstall_cmds \ 22878old_postuninstall_cmds \ 22879old_archive_cmds \ 22880extract_expsyms_cmds \ 22881old_archive_from_new_cmds \ 22882old_archive_from_expsyms_cmds \ 22883archive_cmds \ 22884archive_expsym_cmds \ 22885module_cmds \ 22886module_expsym_cmds \ 22887export_symbols_cmds \ 22888prelink_cmds \ 22889postlink_cmds \ 22890postinstall_cmds \ 22891postuninstall_cmds \ 22892finish_cmds \ 22893sys_lib_search_path_spec \ 22894configure_time_dlsearch_path \ 22895configure_time_lt_sys_library_path; do 22896 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22897 *[\\\\\\\`\\"\\\$]*) 22898 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22899 ;; 22900 *) 22901 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22902 ;; 22903 esac 22904done 22905 22906ac_aux_dir='$ac_aux_dir' 22907 22908# See if we are running on zsh, and set the options that allow our 22909# commands through without removal of \ escapes INIT. 22910if test -n "\${ZSH_VERSION+set}"; then 22911 setopt NO_GLOB_SUBST 22912fi 22913 22914 22915 PACKAGE='$PACKAGE' 22916 VERSION='$VERSION' 22917 RM='$RM' 22918 ofile='$ofile' 22919 22920 22921 22922 22923_ACEOF 22924 22925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22926 22927# Handling of arguments. 22928for ac_config_target in $ac_config_targets 22929do 22930 case $ac_config_target in 22931 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22932 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 22933 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22934 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; 22935 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;; 22936 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;; 22937 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;; 22938 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;; 22939 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;; 22940 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;; 22941 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;; 22942 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;; 22943 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;; 22944 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;; 22945 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;; 22946 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;; 22947 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;; 22948 "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;; 22949 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22950 22951 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22952 esac 22953done 22954 22955 22956# If the user did not use the arguments to specify the items to instantiate, 22957# then the envvar interface is used. Set only those that are not. 22958# We use the long form for the default assignment because of an extremely 22959# bizarre bug on SunOS 4.1.3. 22960if $ac_need_defaults; then 22961 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22962 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22963 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22964fi 22965 22966# Have a temporary directory for convenience. Make it in the build tree 22967# simply because there is no reason against having it here, and in addition, 22968# creating and moving files from /tmp can sometimes cause problems. 22969# Hook for its removal unless debugging. 22970# Note that there is a small window in which the directory will not be cleaned: 22971# after its creation but before its name has been assigned to `$tmp'. 22972$debug || 22973{ 22974 tmp= ac_tmp= 22975 trap 'exit_status=$? 22976 : "${ac_tmp:=$tmp}" 22977 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22978' 0 22979 trap 'as_fn_exit 1' 1 2 13 15 22980} 22981# Create a (secure) tmp directory for tmp files. 22982 22983{ 22984 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22985 test -d "$tmp" 22986} || 22987{ 22988 tmp=./conf$$-$RANDOM 22989 (umask 077 && mkdir "$tmp") 22990} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22991ac_tmp=$tmp 22992 22993# Set up the scripts for CONFIG_FILES section. 22994# No need to generate them if there are no CONFIG_FILES. 22995# This happens for instance with `./config.status config.h'. 22996if test -n "$CONFIG_FILES"; then 22997 22998 22999ac_cr=`echo X | tr X '\015'` 23000# On cygwin, bash can eat \r inside `` if the user requested igncr. 23001# But we know of no other shell where ac_cr would be empty at this 23002# point, so we can use a bashism as a fallback. 23003if test "x$ac_cr" = x; then 23004 eval ac_cr=\$\'\\r\' 23005fi 23006ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23007if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23008 ac_cs_awk_cr='\\r' 23009else 23010 ac_cs_awk_cr=$ac_cr 23011fi 23012 23013echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23014_ACEOF 23015 23016 23017{ 23018 echo "cat >conf$$subs.awk <<_ACEOF" && 23019 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23020 echo "_ACEOF" 23021} >conf$$subs.sh || 23022 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23023ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23024ac_delim='%!_!# ' 23025for ac_last_try in false false false false false :; do 23026 . ./conf$$subs.sh || 23027 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23028 23029 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23030 if test $ac_delim_n = $ac_delim_num; then 23031 break 23032 elif $ac_last_try; then 23033 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23034 else 23035 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23036 fi 23037done 23038rm -f conf$$subs.sh 23039 23040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23041cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23042_ACEOF 23043sed -n ' 23044h 23045s/^/S["/; s/!.*/"]=/ 23046p 23047g 23048s/^[^!]*!// 23049:repl 23050t repl 23051s/'"$ac_delim"'$// 23052t delim 23053:nl 23054h 23055s/\(.\{148\}\)..*/\1/ 23056t more1 23057s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23058p 23059n 23060b repl 23061:more1 23062s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23063p 23064g 23065s/.\{148\}// 23066t nl 23067:delim 23068h 23069s/\(.\{148\}\)..*/\1/ 23070t more2 23071s/["\\]/\\&/g; s/^/"/; s/$/"/ 23072p 23073b 23074:more2 23075s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23076p 23077g 23078s/.\{148\}// 23079t delim 23080' <conf$$subs.awk | sed ' 23081/^[^""]/{ 23082 N 23083 s/\n// 23084} 23085' >>$CONFIG_STATUS || ac_write_fail=1 23086rm -f conf$$subs.awk 23087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23088_ACAWK 23089cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23090 for (key in S) S_is_set[key] = 1 23091 FS = "" 23092 23093} 23094{ 23095 line = $ 0 23096 nfields = split(line, field, "@") 23097 substed = 0 23098 len = length(field[1]) 23099 for (i = 2; i < nfields; i++) { 23100 key = field[i] 23101 keylen = length(key) 23102 if (S_is_set[key]) { 23103 value = S[key] 23104 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23105 len += length(value) + length(field[++i]) 23106 substed = 1 23107 } else 23108 len += 1 + keylen 23109 } 23110 23111 print line 23112} 23113 23114_ACAWK 23115_ACEOF 23116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23117if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23118 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23119else 23120 cat 23121fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23122 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23123_ACEOF 23124 23125# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23126# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23127# trailing colons and then remove the whole line if VPATH becomes empty 23128# (actually we leave an empty line to preserve line numbers). 23129if test "x$srcdir" = x.; then 23130 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23131h 23132s/// 23133s/^/:/ 23134s/[ ]*$/:/ 23135s/:\$(srcdir):/:/g 23136s/:\${srcdir}:/:/g 23137s/:@srcdir@:/:/g 23138s/^:*// 23139s/:*$// 23140x 23141s/\(=[ ]*\).*/\1/ 23142G 23143s/\n// 23144s/^[^=]*=[ ]*$// 23145}' 23146fi 23147 23148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23149fi # test -n "$CONFIG_FILES" 23150 23151# Set up the scripts for CONFIG_HEADERS section. 23152# No need to generate them if there are no CONFIG_HEADERS. 23153# This happens for instance with `./config.status Makefile'. 23154if test -n "$CONFIG_HEADERS"; then 23155cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23156BEGIN { 23157_ACEOF 23158 23159# Transform confdefs.h into an awk script `defines.awk', embedded as 23160# here-document in config.status, that substitutes the proper values into 23161# config.h.in to produce config.h. 23162 23163# Create a delimiter string that does not exist in confdefs.h, to ease 23164# handling of long lines. 23165ac_delim='%!_!# ' 23166for ac_last_try in false false :; do 23167 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23168 if test -z "$ac_tt"; then 23169 break 23170 elif $ac_last_try; then 23171 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23172 else 23173 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23174 fi 23175done 23176 23177# For the awk script, D is an array of macro values keyed by name, 23178# likewise P contains macro parameters if any. Preserve backslash 23179# newline sequences. 23180 23181ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23182sed -n ' 23183s/.\{148\}/&'"$ac_delim"'/g 23184t rset 23185:rset 23186s/^[ ]*#[ ]*define[ ][ ]*/ / 23187t def 23188d 23189:def 23190s/\\$// 23191t bsnl 23192s/["\\]/\\&/g 23193s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23194D["\1"]=" \3"/p 23195s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23196d 23197:bsnl 23198s/["\\]/\\&/g 23199s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23200D["\1"]=" \3\\\\\\n"\\/p 23201t cont 23202s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23203t cont 23204d 23205:cont 23206n 23207s/.\{148\}/&'"$ac_delim"'/g 23208t clear 23209:clear 23210s/\\$// 23211t bsnlc 23212s/["\\]/\\&/g; s/^/"/; s/$/"/p 23213d 23214:bsnlc 23215s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23216b cont 23217' <confdefs.h | sed ' 23218s/'"$ac_delim"'/"\\\ 23219"/g' >>$CONFIG_STATUS || ac_write_fail=1 23220 23221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23222 for (key in D) D_is_set[key] = 1 23223 FS = "" 23224} 23225/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23226 line = \$ 0 23227 split(line, arg, " ") 23228 if (arg[1] == "#") { 23229 defundef = arg[2] 23230 mac1 = arg[3] 23231 } else { 23232 defundef = substr(arg[1], 2) 23233 mac1 = arg[2] 23234 } 23235 split(mac1, mac2, "(") #) 23236 macro = mac2[1] 23237 prefix = substr(line, 1, index(line, defundef) - 1) 23238 if (D_is_set[macro]) { 23239 # Preserve the white space surrounding the "#". 23240 print prefix "define", macro P[macro] D[macro] 23241 next 23242 } else { 23243 # Replace #undef with comments. This is necessary, for example, 23244 # in the case of _POSIX_SOURCE, which is predefined and required 23245 # on some systems where configure will not decide to define it. 23246 if (defundef == "undef") { 23247 print "/*", prefix defundef, macro, "*/" 23248 next 23249 } 23250 } 23251} 23252{ print } 23253_ACAWK 23254_ACEOF 23255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23256 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23257fi # test -n "$CONFIG_HEADERS" 23258 23259 23260eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23261shift 23262for ac_tag 23263do 23264 case $ac_tag in 23265 :[FHLC]) ac_mode=$ac_tag; continue;; 23266 esac 23267 case $ac_mode$ac_tag in 23268 :[FHL]*:*);; 23269 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23270 :[FH]-) ac_tag=-:-;; 23271 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23272 esac 23273 ac_save_IFS=$IFS 23274 IFS=: 23275 set x $ac_tag 23276 IFS=$ac_save_IFS 23277 shift 23278 ac_file=$1 23279 shift 23280 23281 case $ac_mode in 23282 :L) ac_source=$1;; 23283 :[FH]) 23284 ac_file_inputs= 23285 for ac_f 23286 do 23287 case $ac_f in 23288 -) ac_f="$ac_tmp/stdin";; 23289 *) # Look for the file first in the build tree, then in the source tree 23290 # (if the path is not absolute). The absolute path cannot be DOS-style, 23291 # because $ac_f cannot contain `:'. 23292 test -f "$ac_f" || 23293 case $ac_f in 23294 [\\/$]*) false;; 23295 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23296 esac || 23297 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23298 esac 23299 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23300 as_fn_append ac_file_inputs " '$ac_f'" 23301 done 23302 23303 # Let's still pretend it is `configure' which instantiates (i.e., don't 23304 # use $as_me), people would be surprised to read: 23305 # /* config.h. Generated by config.status. */ 23306 configure_input='Generated from '` 23307 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23308 `' by configure.' 23309 if test x"$ac_file" != x-; then 23310 configure_input="$ac_file. $configure_input" 23311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23312$as_echo "$as_me: creating $ac_file" >&6;} 23313 fi 23314 # Neutralize special characters interpreted by sed in replacement strings. 23315 case $configure_input in #( 23316 *\&* | *\|* | *\\* ) 23317 ac_sed_conf_input=`$as_echo "$configure_input" | 23318 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23319 *) ac_sed_conf_input=$configure_input;; 23320 esac 23321 23322 case $ac_tag in 23323 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23324 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23325 esac 23326 ;; 23327 esac 23328 23329 ac_dir=`$as_dirname -- "$ac_file" || 23330$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23331 X"$ac_file" : 'X\(//\)[^/]' \| \ 23332 X"$ac_file" : 'X\(//\)$' \| \ 23333 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23334$as_echo X"$ac_file" | 23335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23336 s//\1/ 23337 q 23338 } 23339 /^X\(\/\/\)[^/].*/{ 23340 s//\1/ 23341 q 23342 } 23343 /^X\(\/\/\)$/{ 23344 s//\1/ 23345 q 23346 } 23347 /^X\(\/\).*/{ 23348 s//\1/ 23349 q 23350 } 23351 s/.*/./; q'` 23352 as_dir="$ac_dir"; as_fn_mkdir_p 23353 ac_builddir=. 23354 23355case "$ac_dir" in 23356.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23357*) 23358 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23359 # A ".." for each directory in $ac_dir_suffix. 23360 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23361 case $ac_top_builddir_sub in 23362 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23363 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23364 esac ;; 23365esac 23366ac_abs_top_builddir=$ac_pwd 23367ac_abs_builddir=$ac_pwd$ac_dir_suffix 23368# for backward compatibility: 23369ac_top_builddir=$ac_top_build_prefix 23370 23371case $srcdir in 23372 .) # We are building in place. 23373 ac_srcdir=. 23374 ac_top_srcdir=$ac_top_builddir_sub 23375 ac_abs_top_srcdir=$ac_pwd ;; 23376 [\\/]* | ?:[\\/]* ) # Absolute name. 23377 ac_srcdir=$srcdir$ac_dir_suffix; 23378 ac_top_srcdir=$srcdir 23379 ac_abs_top_srcdir=$srcdir ;; 23380 *) # Relative name. 23381 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23382 ac_top_srcdir=$ac_top_build_prefix$srcdir 23383 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23384esac 23385ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23386 23387 23388 case $ac_mode in 23389 :F) 23390 # 23391 # CONFIG_FILE 23392 # 23393 23394_ACEOF 23395 23396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23397# If the template does not know about datarootdir, expand it. 23398# FIXME: This hack should be removed a few years after 2.60. 23399ac_datarootdir_hack=; ac_datarootdir_seen= 23400ac_sed_dataroot=' 23401/datarootdir/ { 23402 p 23403 q 23404} 23405/@datadir@/p 23406/@docdir@/p 23407/@infodir@/p 23408/@localedir@/p 23409/@mandir@/p' 23410case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23411*datarootdir*) ac_datarootdir_seen=yes;; 23412*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23414$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23415_ACEOF 23416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23417 ac_datarootdir_hack=' 23418 s&@datadir@&$datadir&g 23419 s&@docdir@&$docdir&g 23420 s&@infodir@&$infodir&g 23421 s&@localedir@&$localedir&g 23422 s&@mandir@&$mandir&g 23423 s&\\\${datarootdir}&$datarootdir&g' ;; 23424esac 23425_ACEOF 23426 23427# Neutralize VPATH when `$srcdir' = `.'. 23428# Shell code in configure.ac might set extrasub. 23429# FIXME: do we really want to maintain this feature? 23430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23431ac_sed_extra="$ac_vpsub 23432$extrasub 23433_ACEOF 23434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23435:t 23436/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23437s|@configure_input@|$ac_sed_conf_input|;t t 23438s&@top_builddir@&$ac_top_builddir_sub&;t t 23439s&@top_build_prefix@&$ac_top_build_prefix&;t t 23440s&@srcdir@&$ac_srcdir&;t t 23441s&@abs_srcdir@&$ac_abs_srcdir&;t t 23442s&@top_srcdir@&$ac_top_srcdir&;t t 23443s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23444s&@builddir@&$ac_builddir&;t t 23445s&@abs_builddir@&$ac_abs_builddir&;t t 23446s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23447$ac_datarootdir_hack 23448" 23449eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23450 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23451 23452test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23453 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23454 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23455 "$ac_tmp/out"`; test -z "$ac_out"; } && 23456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23457which seems to be undefined. Please make sure it is defined" >&5 23458$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23459which seems to be undefined. Please make sure it is defined" >&2;} 23460 23461 rm -f "$ac_tmp/stdin" 23462 case $ac_file in 23463 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23464 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23465 esac \ 23466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23467 ;; 23468 :H) 23469 # 23470 # CONFIG_HEADER 23471 # 23472 if test x"$ac_file" != x-; then 23473 { 23474 $as_echo "/* $configure_input */" \ 23475 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23476 } >"$ac_tmp/config.h" \ 23477 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23478 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23479 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23480$as_echo "$as_me: $ac_file is unchanged" >&6;} 23481 else 23482 rm -f "$ac_file" 23483 mv "$ac_tmp/config.h" "$ac_file" \ 23484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23485 fi 23486 else 23487 $as_echo "/* $configure_input */" \ 23488 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23489 || as_fn_error $? "could not create -" "$LINENO" 5 23490 fi 23491 ;; 23492 23493 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23494$as_echo "$as_me: executing $ac_file commands" >&6;} 23495 ;; 23496 esac 23497 23498 23499 case $ac_file$ac_mode in 23500 "libtool":C) 23501 23502 # See if we are running on zsh, and set the options that allow our 23503 # commands through without removal of \ escapes. 23504 if test -n "${ZSH_VERSION+set}"; then 23505 setopt NO_GLOB_SUBST 23506 fi 23507 23508 cfgfile=${ofile}T 23509 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23510 $RM "$cfgfile" 23511 23512 cat <<_LT_EOF >> "$cfgfile" 23513#! $SHELL 23514# Generated automatically by $as_me ($PACKAGE) $VERSION 23515# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23516# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23517 23518# Provide generalized library-building support services. 23519# Written by Gordon Matzigkeit, 1996 23520 23521# Copyright (C) 2014 Free Software Foundation, Inc. 23522# This is free software; see the source for copying conditions. There is NO 23523# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23524 23525# GNU Libtool is free software; you can redistribute it and/or modify 23526# it under the terms of the GNU General Public License as published by 23527# the Free Software Foundation; either version 2 of of the License, or 23528# (at your option) any later version. 23529# 23530# As a special exception to the GNU General Public License, if you 23531# distribute this file as part of a program or library that is built 23532# using GNU Libtool, you may include this file under the same 23533# distribution terms that you use for the rest of that program. 23534# 23535# GNU Libtool is distributed in the hope that it will be useful, but 23536# WITHOUT ANY WARRANTY; without even the implied warranty of 23537# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23538# GNU General Public License for more details. 23539# 23540# You should have received a copy of the GNU General Public License 23541# along with this program. If not, see <http://www.gnu.org/licenses/>. 23542 23543 23544# The names of the tagged configurations supported by this script. 23545available_tags='' 23546 23547# Configured defaults for sys_lib_dlsearch_path munging. 23548: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23549 23550# ### BEGIN LIBTOOL CONFIG 23551 23552# Which release of libtool.m4 was used? 23553macro_version=$macro_version 23554macro_revision=$macro_revision 23555 23556# Whether or not to build shared libraries. 23557build_libtool_libs=$enable_shared 23558 23559# Whether or not to build static libraries. 23560build_old_libs=$enable_static 23561 23562# What type of objects to build. 23563pic_mode=$pic_mode 23564 23565# Whether or not to optimize for fast installation. 23566fast_install=$enable_fast_install 23567 23568# Shared archive member basename,for filename based shared library versioning on AIX. 23569shared_archive_member_spec=$shared_archive_member_spec 23570 23571# Shell to use when invoking shell scripts. 23572SHELL=$lt_SHELL 23573 23574# An echo program that protects backslashes. 23575ECHO=$lt_ECHO 23576 23577# The PATH separator for the build system. 23578PATH_SEPARATOR=$lt_PATH_SEPARATOR 23579 23580# The host system. 23581host_alias=$host_alias 23582host=$host 23583host_os=$host_os 23584 23585# The build system. 23586build_alias=$build_alias 23587build=$build 23588build_os=$build_os 23589 23590# A sed program that does not truncate output. 23591SED=$lt_SED 23592 23593# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23594Xsed="\$SED -e 1s/^X//" 23595 23596# A grep program that handles long lines. 23597GREP=$lt_GREP 23598 23599# An ERE matcher. 23600EGREP=$lt_EGREP 23601 23602# A literal string matcher. 23603FGREP=$lt_FGREP 23604 23605# A BSD- or MS-compatible name lister. 23606NM=$lt_NM 23607 23608# Whether we need soft or hard links. 23609LN_S=$lt_LN_S 23610 23611# What is the maximum length of a command? 23612max_cmd_len=$max_cmd_len 23613 23614# Object file suffix (normally "o"). 23615objext=$ac_objext 23616 23617# Executable file suffix (normally ""). 23618exeext=$exeext 23619 23620# whether the shell understands "unset". 23621lt_unset=$lt_unset 23622 23623# turn spaces into newlines. 23624SP2NL=$lt_lt_SP2NL 23625 23626# turn newlines into spaces. 23627NL2SP=$lt_lt_NL2SP 23628 23629# convert \$build file names to \$host format. 23630to_host_file_cmd=$lt_cv_to_host_file_cmd 23631 23632# convert \$build files to toolchain format. 23633to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23634 23635# An object symbol dumper. 23636OBJDUMP=$lt_OBJDUMP 23637 23638# Method to check whether dependent libraries are shared objects. 23639deplibs_check_method=$lt_deplibs_check_method 23640 23641# Command to use when deplibs_check_method = "file_magic". 23642file_magic_cmd=$lt_file_magic_cmd 23643 23644# How to find potential files when deplibs_check_method = "file_magic". 23645file_magic_glob=$lt_file_magic_glob 23646 23647# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23648want_nocaseglob=$lt_want_nocaseglob 23649 23650# DLL creation program. 23651DLLTOOL=$lt_DLLTOOL 23652 23653# Command to associate shared and link libraries. 23654sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23655 23656# The archiver. 23657AR=$lt_AR 23658 23659# Flags to create an archive. 23660AR_FLAGS=$lt_AR_FLAGS 23661 23662# How to feed a file listing to the archiver. 23663archiver_list_spec=$lt_archiver_list_spec 23664 23665# A symbol stripping program. 23666STRIP=$lt_STRIP 23667 23668# Commands used to install an old-style archive. 23669RANLIB=$lt_RANLIB 23670old_postinstall_cmds=$lt_old_postinstall_cmds 23671old_postuninstall_cmds=$lt_old_postuninstall_cmds 23672 23673# Whether to use a lock for old archive extraction. 23674lock_old_archive_extraction=$lock_old_archive_extraction 23675 23676# A C compiler. 23677LTCC=$lt_CC 23678 23679# LTCC compiler flags. 23680LTCFLAGS=$lt_CFLAGS 23681 23682# Take the output of nm and produce a listing of raw symbols and C names. 23683global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23684 23685# Transform the output of nm in a proper C declaration. 23686global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23687 23688# Transform the output of nm into a list of symbols to manually relocate. 23689global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23690 23691# Transform the output of nm in a C name address pair. 23692global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23693 23694# Transform the output of nm in a C name address pair when lib prefix is needed. 23695global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23696 23697# The name lister interface. 23698nm_interface=$lt_lt_cv_nm_interface 23699 23700# Specify filename containing input files for \$NM. 23701nm_file_list_spec=$lt_nm_file_list_spec 23702 23703# The root where to search for dependent libraries,and where our libraries should be installed. 23704lt_sysroot=$lt_sysroot 23705 23706# Command to truncate a binary pipe. 23707lt_truncate_bin=$lt_lt_cv_truncate_bin 23708 23709# The name of the directory that contains temporary libtool files. 23710objdir=$objdir 23711 23712# Used to examine libraries when file_magic_cmd begins with "file". 23713MAGIC_CMD=$MAGIC_CMD 23714 23715# Must we lock files when doing compilation? 23716need_locks=$lt_need_locks 23717 23718# Manifest tool. 23719MANIFEST_TOOL=$lt_MANIFEST_TOOL 23720 23721# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23722DSYMUTIL=$lt_DSYMUTIL 23723 23724# Tool to change global to local symbols on Mac OS X. 23725NMEDIT=$lt_NMEDIT 23726 23727# Tool to manipulate fat objects and archives on Mac OS X. 23728LIPO=$lt_LIPO 23729 23730# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23731OTOOL=$lt_OTOOL 23732 23733# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23734OTOOL64=$lt_OTOOL64 23735 23736# Old archive suffix (normally "a"). 23737libext=$libext 23738 23739# Shared library suffix (normally ".so"). 23740shrext_cmds=$lt_shrext_cmds 23741 23742# The commands to extract the exported symbol list from a shared archive. 23743extract_expsyms_cmds=$lt_extract_expsyms_cmds 23744 23745# Variables whose values should be saved in libtool wrapper scripts and 23746# restored at link time. 23747variables_saved_for_relink=$lt_variables_saved_for_relink 23748 23749# Do we need the "lib" prefix for modules? 23750need_lib_prefix=$need_lib_prefix 23751 23752# Do we need a version for libraries? 23753need_version=$need_version 23754 23755# Library versioning type. 23756version_type=$version_type 23757 23758# Shared library runtime path variable. 23759runpath_var=$runpath_var 23760 23761# Shared library path variable. 23762shlibpath_var=$shlibpath_var 23763 23764# Is shlibpath searched before the hard-coded library search path? 23765shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23766 23767# Format of library name prefix. 23768libname_spec=$lt_libname_spec 23769 23770# List of archive names. First name is the real one, the rest are links. 23771# The last name is the one that the linker finds with -lNAME 23772library_names_spec=$lt_library_names_spec 23773 23774# The coded name of the library, if different from the real name. 23775soname_spec=$lt_soname_spec 23776 23777# Permission mode override for installation of shared libraries. 23778install_override_mode=$lt_install_override_mode 23779 23780# Command to use after installation of a shared archive. 23781postinstall_cmds=$lt_postinstall_cmds 23782 23783# Command to use after uninstallation of a shared archive. 23784postuninstall_cmds=$lt_postuninstall_cmds 23785 23786# Commands used to finish a libtool library installation in a directory. 23787finish_cmds=$lt_finish_cmds 23788 23789# As "finish_cmds", except a single script fragment to be evaled but 23790# not shown. 23791finish_eval=$lt_finish_eval 23792 23793# Whether we should hardcode library paths into libraries. 23794hardcode_into_libs=$hardcode_into_libs 23795 23796# Compile-time system search path for libraries. 23797sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23798 23799# Detected run-time system search path for libraries. 23800sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23801 23802# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23803configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23804 23805# Whether dlopen is supported. 23806dlopen_support=$enable_dlopen 23807 23808# Whether dlopen of programs is supported. 23809dlopen_self=$enable_dlopen_self 23810 23811# Whether dlopen of statically linked programs is supported. 23812dlopen_self_static=$enable_dlopen_self_static 23813 23814# Commands to strip libraries. 23815old_striplib=$lt_old_striplib 23816striplib=$lt_striplib 23817 23818 23819# The linker used to build libraries. 23820LD=$lt_LD 23821 23822# How to create reloadable object files. 23823reload_flag=$lt_reload_flag 23824reload_cmds=$lt_reload_cmds 23825 23826# Commands used to build an old-style archive. 23827old_archive_cmds=$lt_old_archive_cmds 23828 23829# A language specific compiler. 23830CC=$lt_compiler 23831 23832# Is the compiler the GNU compiler? 23833with_gcc=$GCC 23834 23835# Compiler flag to turn off builtin functions. 23836no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23837 23838# Additional compiler flags for building library objects. 23839pic_flag=$lt_lt_prog_compiler_pic 23840 23841# How to pass a linker flag through the compiler. 23842wl=$lt_lt_prog_compiler_wl 23843 23844# Compiler flag to prevent dynamic linking. 23845link_static_flag=$lt_lt_prog_compiler_static 23846 23847# Does compiler simultaneously support -c and -o options? 23848compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23849 23850# Whether or not to add -lc for building shared libraries. 23851build_libtool_need_lc=$archive_cmds_need_lc 23852 23853# Whether or not to disallow shared libs when runtime libs are static. 23854allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23855 23856# Compiler flag to allow reflexive dlopens. 23857export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23858 23859# Compiler flag to generate shared objects directly from archives. 23860whole_archive_flag_spec=$lt_whole_archive_flag_spec 23861 23862# Whether the compiler copes with passing no objects directly. 23863compiler_needs_object=$lt_compiler_needs_object 23864 23865# Create an old-style archive from a shared archive. 23866old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23867 23868# Create a temporary old-style archive to link instead of a shared archive. 23869old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23870 23871# Commands used to build a shared archive. 23872archive_cmds=$lt_archive_cmds 23873archive_expsym_cmds=$lt_archive_expsym_cmds 23874 23875# Commands used to build a loadable module if different from building 23876# a shared archive. 23877module_cmds=$lt_module_cmds 23878module_expsym_cmds=$lt_module_expsym_cmds 23879 23880# Whether we are building with GNU ld or not. 23881with_gnu_ld=$lt_with_gnu_ld 23882 23883# Flag that allows shared libraries with undefined symbols to be built. 23884allow_undefined_flag=$lt_allow_undefined_flag 23885 23886# Flag that enforces no undefined symbols. 23887no_undefined_flag=$lt_no_undefined_flag 23888 23889# Flag to hardcode \$libdir into a binary during linking. 23890# This must work even if \$libdir does not exist 23891hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23892 23893# Whether we need a single "-rpath" flag with a separated argument. 23894hardcode_libdir_separator=$lt_hardcode_libdir_separator 23895 23896# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23897# DIR into the resulting binary. 23898hardcode_direct=$hardcode_direct 23899 23900# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23901# DIR into the resulting binary and the resulting library dependency is 23902# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23903# library is relocated. 23904hardcode_direct_absolute=$hardcode_direct_absolute 23905 23906# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23907# into the resulting binary. 23908hardcode_minus_L=$hardcode_minus_L 23909 23910# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23911# into the resulting binary. 23912hardcode_shlibpath_var=$hardcode_shlibpath_var 23913 23914# Set to "yes" if building a shared library automatically hardcodes DIR 23915# into the library and all subsequent libraries and executables linked 23916# against it. 23917hardcode_automatic=$hardcode_automatic 23918 23919# Set to yes if linker adds runtime paths of dependent libraries 23920# to runtime path list. 23921inherit_rpath=$inherit_rpath 23922 23923# Whether libtool must link a program against all its dependency libraries. 23924link_all_deplibs=$link_all_deplibs 23925 23926# Set to "yes" if exported symbols are required. 23927always_export_symbols=$always_export_symbols 23928 23929# The commands to list exported symbols. 23930export_symbols_cmds=$lt_export_symbols_cmds 23931 23932# Symbols that should not be listed in the preloaded symbols. 23933exclude_expsyms=$lt_exclude_expsyms 23934 23935# Symbols that must always be exported. 23936include_expsyms=$lt_include_expsyms 23937 23938# Commands necessary for linking programs (against libraries) with templates. 23939prelink_cmds=$lt_prelink_cmds 23940 23941# Commands necessary for finishing linking programs. 23942postlink_cmds=$lt_postlink_cmds 23943 23944# Specify filename containing input files. 23945file_list_spec=$lt_file_list_spec 23946 23947# How to hardcode a shared library path into an executable. 23948hardcode_action=$hardcode_action 23949 23950# ### END LIBTOOL CONFIG 23951 23952_LT_EOF 23953 23954 cat <<'_LT_EOF' >> "$cfgfile" 23955 23956# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23957 23958# func_munge_path_list VARIABLE PATH 23959# ----------------------------------- 23960# VARIABLE is name of variable containing _space_ separated list of 23961# directories to be munged by the contents of PATH, which is string 23962# having a format: 23963# "DIR[:DIR]:" 23964# string "DIR[ DIR]" will be prepended to VARIABLE 23965# ":DIR[:DIR]" 23966# string "DIR[ DIR]" will be appended to VARIABLE 23967# "DIRP[:DIRP]::[DIRA:]DIRA" 23968# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23969# "DIRA[ DIRA]" will be appended to VARIABLE 23970# "DIR[:DIR]" 23971# VARIABLE will be replaced by "DIR[ DIR]" 23972func_munge_path_list () 23973{ 23974 case x$2 in 23975 x) 23976 ;; 23977 *:) 23978 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23979 ;; 23980 x:*) 23981 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23982 ;; 23983 *::*) 23984 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23985 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23986 ;; 23987 *) 23988 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23989 ;; 23990 esac 23991} 23992 23993 23994# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23995func_cc_basename () 23996{ 23997 for cc_temp in $*""; do 23998 case $cc_temp in 23999 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24000 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24001 \-*) ;; 24002 *) break;; 24003 esac 24004 done 24005 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24006} 24007 24008 24009# ### END FUNCTIONS SHARED WITH CONFIGURE 24010 24011_LT_EOF 24012 24013 case $host_os in 24014 aix3*) 24015 cat <<\_LT_EOF >> "$cfgfile" 24016# AIX sometimes has problems with the GCC collect2 program. For some 24017# reason, if we set the COLLECT_NAMES environment variable, the problems 24018# vanish in a puff of smoke. 24019if test set != "${COLLECT_NAMES+set}"; then 24020 COLLECT_NAMES= 24021 export COLLECT_NAMES 24022fi 24023_LT_EOF 24024 ;; 24025 esac 24026 24027 24028ltmain=$ac_aux_dir/ltmain.sh 24029 24030 24031 # We use sed instead of cat because bash on DJGPP gets confused if 24032 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24033 # text mode, it properly converts lines to CR/LF. This bash problem 24034 # is reportedly fixed, but why not run on old versions too? 24035 sed '$q' "$ltmain" >> "$cfgfile" \ 24036 || (rm -f "$cfgfile"; exit 1) 24037 24038 mv -f "$cfgfile" "$ofile" || 24039 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24040 chmod +x "$ofile" 24041 24042 ;; 24043 "disable-rpath":C) 24044 sed < libtool > libtool-2 \ 24045 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 24046 mv libtool-2 libtool 24047 chmod 755 libtool 24048 libtool="./libtool" 24049 ;; 24050 24051 esac 24052done # for ac_tag 24053 24054 24055as_fn_exit 0 24056_ACEOF 24057ac_clean_files=$ac_clean_files_save 24058 24059test $ac_write_fail = 0 || 24060 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24061 24062 24063# configure is writing to config.log, and then calls config.status. 24064# config.status does its own redirection, appending to config.log. 24065# Unfortunately, on DOS this fails, as config.log is still kept open 24066# by configure, so config.status won't be able to write to it; its 24067# output is simply discarded. So we exec the FD to /dev/null, 24068# effectively closing config.log, so it can be properly (re)opened and 24069# appended to by config.status. When coming back to configure, we 24070# need to make the FD available again. 24071if test "$no_create" != yes; then 24072 ac_cs_success=: 24073 ac_config_status_args= 24074 test "$silent" = yes && 24075 ac_config_status_args="$ac_config_status_args --quiet" 24076 exec 5>/dev/null 24077 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24078 exec 5>>config.log 24079 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24080 # would make configure fail if this is the last instruction. 24081 $ac_cs_success || as_fn_exit 1 24082fi 24083if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24085$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24086fi 24087 24088