1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for unbound 1.12.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.12.0' 595PACKAGE_STRING='unbound 1.12.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 646DNSCRYPT_OBJ 647DNSCRYPT_SRC 648ENABLE_DNSCRYPT 649ENABLE_DNSCRYPT_XCHACHA20 650DNSTAP_OBJ 651DNSTAP_SRC 652DNSTAP_SOCKET_PATH 653opt_dnstap_socket_path 654ENABLE_DNSTAP 655PROTOC_C 656UBSYMS 657EXTRALINK 658COMMON_OBJ_ALL_SYMBOLS 659LIBOBJ_WITHOUT_CTIME 660LIBOBJ_WITHOUT_CTIMEARC4 661WIN_CHECKCONF_OBJ_LINK 662WIN_CONTROL_OBJ_LINK 663WIN_UBANCHOR_OBJ_LINK 664WIN_HOST_OBJ_LINK 665WIN_DAEMON_OBJ_LINK 666WIN_DAEMON_OBJ 667WIN_DAEMON_SRC 668WINAPPS 669WINDRES 670CHECKLOCK_OBJ 671staticexe 672PC_LIBEVENT_DEPENDENCY 673UNBOUND_EVENT_UNINSTALL 674UNBOUND_EVENT_INSTALL 675SUBNET_HEADER 676SUBNET_OBJ 677PC_LIBBSD_DEPENDENCY 678SSLLIB 679HAVE_SSL 680PC_CRYPTO_DEPENDENCY 681CONFIG_DATE 682NETBSD_LINTFLAGS 683PYUNBOUND_UNINSTALL 684PYUNBOUND_INSTALL 685PYUNBOUND_TARGET 686PYUNBOUND_OBJ 687WITH_PYUNBOUND 688PYTHONMOD_UNINSTALL 689PYTHONMOD_INSTALL 690PYTHONMOD_HEADER 691PYTHONMOD_OBJ 692WITH_PYTHONMODULE 693swig 694SWIG_LIB 695SWIG 696PC_PY_DEPENDENCY 697PY_MAJOR_VERSION 698PYTHON_SITE_PKG 699PYTHON_LDFLAGS 700PYTHON_CPPFLAGS 701PYTHON 702PYTHON_VERSION 703DYNLIBMOD_EXTRALIBS 704DYNLIBMOD_HEADER 705DYNLIBMOD_OBJ 706WITH_DYNLIBMODULE 707PTHREAD_CFLAGS_ONLY 708PTHREAD_CFLAGS 709PTHREAD_LIBS 710PTHREAD_CC 711ax_pthread_config 712ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ 713SLDNS_ALLOCCHECK_EXTRA_OBJ 714USE_SYSTEMD_FALSE 715USE_SYSTEMD_TRUE 716SYSTEMD_DAEMON_LIBS 717SYSTEMD_DAEMON_CFLAGS 718SYSTEMD_LIBS 719SYSTEMD_CFLAGS 720RUNTIME_PATH 721LIBOBJS 722PKG_CONFIG_LIBDIR 723PKG_CONFIG_PATH 724PKG_CONFIG 725LT_SYS_LIBRARY_PATH 726OTOOL64 727OTOOL 728LIPO 729NMEDIT 730DSYMUTIL 731MANIFEST_TOOL 732AWK 733RANLIB 734ac_ct_AR 735DLLTOOL 736OBJDUMP 737LN_S 738NM 739ac_ct_DUMPBIN 740DUMPBIN 741LD 742FGREP 743SED 744LIBTOOL 745AR 746host_os 747host_vendor 748host_cpu 749host 750build_os 751build_vendor 752build_cpu 753build 754libtool 755STRIP 756doxygen 757YFLAGS 758YACC 759LEXLIB 760LEX_OUTPUT_ROOT 761LEX 762debug_enabled 763DEPFLAG 764UNBOUND_USERNAME 765UNBOUND_ROOTCERT_FILE 766UNBOUND_ROOTKEY_FILE 767UNBOUND_PIDFILE 768UNBOUND_SHARE_DIR 769UNBOUND_CHROOT_DIR 770UNBOUND_RUN_DIR 771ub_conf_dir 772ub_conf_file 773UNBOUND_LOCALSTATE_DIR 774UNBOUND_SYSCONF_DIR 775UNBOUND_SBIN_DIR 776EGREP 777GREP 778CPP 779OBJEXT 780EXEEXT 781ac_ct_CC 782CPPFLAGS 783LDFLAGS 784CFLAGS 785CC 786LIBUNBOUND_AGE 787LIBUNBOUND_REVISION 788LIBUNBOUND_CURRENT 789UNBOUND_VERSION_MICRO 790UNBOUND_VERSION_MINOR 791UNBOUND_VERSION_MAJOR 792target_alias 793host_alias 794build_alias 795LIBS 796ECHO_T 797ECHO_N 798ECHO_C 799DEFS 800mandir 801localedir 802libdir 803psdir 804pdfdir 805dvidir 806htmldir 807infodir 808docdir 809oldincludedir 810includedir 811localstatedir 812sharedstatedir 813sysconfdir 814datadir 815datarootdir 816libexecdir 817sbindir 818bindir 819program_transform_name 820prefix 821exec_prefix 822PACKAGE_URL 823PACKAGE_BUGREPORT 824PACKAGE_STRING 825PACKAGE_VERSION 826PACKAGE_TARNAME 827PACKAGE_NAME 828PATH_SEPARATOR 829SHELL' 830ac_subst_files='' 831ac_user_opts=' 832enable_option_checking 833with_conf_file 834with_run_dir 835with_chroot_dir 836with_share_dir 837with_pidfile 838with_rootkey_file 839with_rootcert_file 840with_username 841enable_checking 842enable_debug 843enable_flto 844enable_pie 845enable_relro_now 846enable_shared 847enable_static 848with_pic 849enable_fast_install 850with_aix_soname 851with_gnu_ld 852with_sysroot 853enable_libtool_lock 854enable_rpath 855enable_largefile 856enable_systemd 857enable_alloc_checks 858enable_alloc_lite 859enable_alloc_nonregional 860with_pthreads 861with_solaris_threads 862with_syslog_facility 863with_dynlibmodule 864with_pyunbound 865with_pythonmodule 866enable_swig_version_check 867with_nss 868with_nettle 869with_ssl 870with_libbsd 871enable_sha1 872enable_sha2 873enable_subnet 874enable_gost 875enable_ecdsa 876enable_dsa 877enable_ed25519 878enable_ed448 879enable_event_api 880enable_tfo_client 881enable_tfo_server 882with_libevent 883with_libexpat 884with_libhiredis 885with_libnghttp2 886enable_static_exe 887enable_fully_static 888enable_lock_checks 889enable_allsymbols 890enable_dnstap 891with_dnstap_socket_path 892with_protobuf_c 893enable_dnscrypt 894with_libsodium 895enable_cachedb 896enable_ipsecmod 897enable_ipset 898with_libmnl 899enable_explicit_port_randomisation 900with_libunbound_only 901' 902 ac_precious_vars='build_alias 903host_alias 904target_alias 905CC 906CFLAGS 907LDFLAGS 908LIBS 909CPPFLAGS 910CPP 911YACC 912YFLAGS 913LT_SYS_LIBRARY_PATH 914PKG_CONFIG 915PKG_CONFIG_PATH 916PKG_CONFIG_LIBDIR 917SYSTEMD_CFLAGS 918SYSTEMD_LIBS 919SYSTEMD_DAEMON_CFLAGS 920SYSTEMD_DAEMON_LIBS 921PYTHON_VERSION' 922 923 924# Initialize some variables set by options. 925ac_init_help= 926ac_init_version=false 927ac_unrecognized_opts= 928ac_unrecognized_sep= 929# The variables have the same names as the options, with 930# dashes changed to underlines. 931cache_file=/dev/null 932exec_prefix=NONE 933no_create= 934no_recursion= 935prefix=NONE 936program_prefix=NONE 937program_suffix=NONE 938program_transform_name=s,x,x, 939silent= 940site= 941srcdir= 942verbose= 943x_includes=NONE 944x_libraries=NONE 945 946# Installation directory options. 947# These are left unexpanded so users can "make install exec_prefix=/foo" 948# and all the variables that are supposed to be based on exec_prefix 949# by default will actually change. 950# Use braces instead of parens because sh, perl, etc. also accept them. 951# (The list follows the same order as the GNU Coding Standards.) 952bindir='${exec_prefix}/bin' 953sbindir='${exec_prefix}/sbin' 954libexecdir='${exec_prefix}/libexec' 955datarootdir='${prefix}/share' 956datadir='${datarootdir}' 957sysconfdir='${prefix}/etc' 958sharedstatedir='${prefix}/com' 959localstatedir='${prefix}/var' 960includedir='${prefix}/include' 961oldincludedir='/usr/include' 962docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 963infodir='${datarootdir}/info' 964htmldir='${docdir}' 965dvidir='${docdir}' 966pdfdir='${docdir}' 967psdir='${docdir}' 968libdir='${exec_prefix}/lib' 969localedir='${datarootdir}/locale' 970mandir='${datarootdir}/man' 971 972ac_prev= 973ac_dashdash= 974for ac_option 975do 976 # If the previous option needs an argument, assign it. 977 if test -n "$ac_prev"; then 978 eval $ac_prev=\$ac_option 979 ac_prev= 980 continue 981 fi 982 983 case $ac_option in 984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 985 *=) ac_optarg= ;; 986 *) ac_optarg=yes ;; 987 esac 988 989 # Accept the important Cygnus configure options, so we can diagnose typos. 990 991 case $ac_dashdash$ac_option in 992 --) 993 ac_dashdash=yes ;; 994 995 -bindir | --bindir | --bindi | --bind | --bin | --bi) 996 ac_prev=bindir ;; 997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 998 bindir=$ac_optarg ;; 999 1000 -build | --build | --buil | --bui | --bu) 1001 ac_prev=build_alias ;; 1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1003 build_alias=$ac_optarg ;; 1004 1005 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1007 ac_prev=cache_file ;; 1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1010 cache_file=$ac_optarg ;; 1011 1012 --config-cache | -C) 1013 cache_file=config.cache ;; 1014 1015 -datadir | --datadir | --datadi | --datad) 1016 ac_prev=datadir ;; 1017 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1018 datadir=$ac_optarg ;; 1019 1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1021 | --dataroo | --dataro | --datar) 1022 ac_prev=datarootdir ;; 1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1025 datarootdir=$ac_optarg ;; 1026 1027 -disable-* | --disable-*) 1028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1029 # Reject names that are not valid shell variable names. 1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1031 as_fn_error $? "invalid feature name: $ac_useropt" 1032 ac_useropt_orig=$ac_useropt 1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1034 case $ac_user_opts in 1035 *" 1036"enable_$ac_useropt" 1037"*) ;; 1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1039 ac_unrecognized_sep=', ';; 1040 esac 1041 eval enable_$ac_useropt=no ;; 1042 1043 -docdir | --docdir | --docdi | --doc | --do) 1044 ac_prev=docdir ;; 1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1046 docdir=$ac_optarg ;; 1047 1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1049 ac_prev=dvidir ;; 1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1051 dvidir=$ac_optarg ;; 1052 1053 -enable-* | --enable-*) 1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1057 as_fn_error $? "invalid feature name: $ac_useropt" 1058 ac_useropt_orig=$ac_useropt 1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1060 case $ac_user_opts in 1061 *" 1062"enable_$ac_useropt" 1063"*) ;; 1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1065 ac_unrecognized_sep=', ';; 1066 esac 1067 eval enable_$ac_useropt=\$ac_optarg ;; 1068 1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1071 | --exec | --exe | --ex) 1072 ac_prev=exec_prefix ;; 1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1075 | --exec=* | --exe=* | --ex=*) 1076 exec_prefix=$ac_optarg ;; 1077 1078 -gas | --gas | --ga | --g) 1079 # Obsolete; use --with-gas. 1080 with_gas=yes ;; 1081 1082 -help | --help | --hel | --he | -h) 1083 ac_init_help=long ;; 1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1085 ac_init_help=recursive ;; 1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1087 ac_init_help=short ;; 1088 1089 -host | --host | --hos | --ho) 1090 ac_prev=host_alias ;; 1091 -host=* | --host=* | --hos=* | --ho=*) 1092 host_alias=$ac_optarg ;; 1093 1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1095 ac_prev=htmldir ;; 1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1097 | --ht=*) 1098 htmldir=$ac_optarg ;; 1099 1100 -includedir | --includedir | --includedi | --included | --include \ 1101 | --includ | --inclu | --incl | --inc) 1102 ac_prev=includedir ;; 1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1104 | --includ=* | --inclu=* | --incl=* | --inc=*) 1105 includedir=$ac_optarg ;; 1106 1107 -infodir | --infodir | --infodi | --infod | --info | --inf) 1108 ac_prev=infodir ;; 1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1110 infodir=$ac_optarg ;; 1111 1112 -libdir | --libdir | --libdi | --libd) 1113 ac_prev=libdir ;; 1114 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1115 libdir=$ac_optarg ;; 1116 1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1118 | --libexe | --libex | --libe) 1119 ac_prev=libexecdir ;; 1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1121 | --libexe=* | --libex=* | --libe=*) 1122 libexecdir=$ac_optarg ;; 1123 1124 -localedir | --localedir | --localedi | --localed | --locale) 1125 ac_prev=localedir ;; 1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1127 localedir=$ac_optarg ;; 1128 1129 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1130 | --localstate | --localstat | --localsta | --localst | --locals) 1131 ac_prev=localstatedir ;; 1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1134 localstatedir=$ac_optarg ;; 1135 1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1137 ac_prev=mandir ;; 1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1139 mandir=$ac_optarg ;; 1140 1141 -nfp | --nfp | --nf) 1142 # Obsolete; use --without-fp. 1143 with_fp=no ;; 1144 1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1146 | --no-cr | --no-c | -n) 1147 no_create=yes ;; 1148 1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1151 no_recursion=yes ;; 1152 1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1155 | --oldin | --oldi | --old | --ol | --o) 1156 ac_prev=oldincludedir ;; 1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1160 oldincludedir=$ac_optarg ;; 1161 1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1163 ac_prev=prefix ;; 1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1165 prefix=$ac_optarg ;; 1166 1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1168 | --program-pre | --program-pr | --program-p) 1169 ac_prev=program_prefix ;; 1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1172 program_prefix=$ac_optarg ;; 1173 1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1175 | --program-suf | --program-su | --program-s) 1176 ac_prev=program_suffix ;; 1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1179 program_suffix=$ac_optarg ;; 1180 1181 -program-transform-name | --program-transform-name \ 1182 | --program-transform-nam | --program-transform-na \ 1183 | --program-transform-n | --program-transform- \ 1184 | --program-transform | --program-transfor \ 1185 | --program-transfo | --program-transf \ 1186 | --program-trans | --program-tran \ 1187 | --progr-tra | --program-tr | --program-t) 1188 ac_prev=program_transform_name ;; 1189 -program-transform-name=* | --program-transform-name=* \ 1190 | --program-transform-nam=* | --program-transform-na=* \ 1191 | --program-transform-n=* | --program-transform-=* \ 1192 | --program-transform=* | --program-transfor=* \ 1193 | --program-transfo=* | --program-transf=* \ 1194 | --program-trans=* | --program-tran=* \ 1195 | --progr-tra=* | --program-tr=* | --program-t=*) 1196 program_transform_name=$ac_optarg ;; 1197 1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1199 ac_prev=pdfdir ;; 1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1201 pdfdir=$ac_optarg ;; 1202 1203 -psdir | --psdir | --psdi | --psd | --ps) 1204 ac_prev=psdir ;; 1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1206 psdir=$ac_optarg ;; 1207 1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1209 | -silent | --silent | --silen | --sile | --sil) 1210 silent=yes ;; 1211 1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1213 ac_prev=sbindir ;; 1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1215 | --sbi=* | --sb=*) 1216 sbindir=$ac_optarg ;; 1217 1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1220 | --sharedst | --shareds | --shared | --share | --shar \ 1221 | --sha | --sh) 1222 ac_prev=sharedstatedir ;; 1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1226 | --sha=* | --sh=*) 1227 sharedstatedir=$ac_optarg ;; 1228 1229 -site | --site | --sit) 1230 ac_prev=site ;; 1231 -site=* | --site=* | --sit=*) 1232 site=$ac_optarg ;; 1233 1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1235 ac_prev=srcdir ;; 1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1237 srcdir=$ac_optarg ;; 1238 1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1240 | --syscon | --sysco | --sysc | --sys | --sy) 1241 ac_prev=sysconfdir ;; 1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1244 sysconfdir=$ac_optarg ;; 1245 1246 -target | --target | --targe | --targ | --tar | --ta | --t) 1247 ac_prev=target_alias ;; 1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1249 target_alias=$ac_optarg ;; 1250 1251 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1252 verbose=yes ;; 1253 1254 -version | --version | --versio | --versi | --vers | -V) 1255 ac_init_version=: ;; 1256 1257 -with-* | --with-*) 1258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1259 # Reject names that are not valid shell variable names. 1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1261 as_fn_error $? "invalid package name: $ac_useropt" 1262 ac_useropt_orig=$ac_useropt 1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1264 case $ac_user_opts in 1265 *" 1266"with_$ac_useropt" 1267"*) ;; 1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1269 ac_unrecognized_sep=', ';; 1270 esac 1271 eval with_$ac_useropt=\$ac_optarg ;; 1272 1273 -without-* | --without-*) 1274 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1275 # Reject names that are not valid shell variable names. 1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1277 as_fn_error $? "invalid package name: $ac_useropt" 1278 ac_useropt_orig=$ac_useropt 1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1280 case $ac_user_opts in 1281 *" 1282"with_$ac_useropt" 1283"*) ;; 1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1285 ac_unrecognized_sep=', ';; 1286 esac 1287 eval with_$ac_useropt=no ;; 1288 1289 --x) 1290 # Obsolete; use --with-x. 1291 with_x=yes ;; 1292 1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1294 | --x-incl | --x-inc | --x-in | --x-i) 1295 ac_prev=x_includes ;; 1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1298 x_includes=$ac_optarg ;; 1299 1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1302 ac_prev=x_libraries ;; 1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1305 x_libraries=$ac_optarg ;; 1306 1307 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1308Try \`$0 --help' for more information" 1309 ;; 1310 1311 *=*) 1312 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1313 # Reject names that are not valid shell variable names. 1314 case $ac_envvar in #( 1315 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1316 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1317 esac 1318 eval $ac_envvar=\$ac_optarg 1319 export $ac_envvar ;; 1320 1321 *) 1322 # FIXME: should be removed in autoconf 3.0. 1323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1326 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1327 ;; 1328 1329 esac 1330done 1331 1332if test -n "$ac_prev"; then 1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1334 as_fn_error $? "missing argument to $ac_option" 1335fi 1336 1337if test -n "$ac_unrecognized_opts"; then 1338 case $enable_option_checking in 1339 no) ;; 1340 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1341 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1342 esac 1343fi 1344 1345# Check all directory arguments for consistency. 1346for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1347 datadir sysconfdir sharedstatedir localstatedir includedir \ 1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1349 libdir localedir mandir 1350do 1351 eval ac_val=\$$ac_var 1352 # Remove trailing slashes. 1353 case $ac_val in 1354 */ ) 1355 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1356 eval $ac_var=\$ac_val;; 1357 esac 1358 # Be sure to have absolute directory names. 1359 case $ac_val in 1360 [\\/$]* | ?:[\\/]* ) continue;; 1361 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1362 esac 1363 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1364done 1365 1366# There might be people who depend on the old broken behavior: `$host' 1367# used to hold the argument of --host etc. 1368# FIXME: To remove some day. 1369build=$build_alias 1370host=$host_alias 1371target=$target_alias 1372 1373# FIXME: To remove some day. 1374if test "x$host_alias" != x; then 1375 if test "x$build_alias" = x; then 1376 cross_compiling=maybe 1377 elif test "x$build_alias" != "x$host_alias"; then 1378 cross_compiling=yes 1379 fi 1380fi 1381 1382ac_tool_prefix= 1383test -n "$host_alias" && ac_tool_prefix=$host_alias- 1384 1385test "$silent" = yes && exec 6>/dev/null 1386 1387 1388ac_pwd=`pwd` && test -n "$ac_pwd" && 1389ac_ls_di=`ls -di .` && 1390ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1391 as_fn_error $? "working directory cannot be determined" 1392test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1393 as_fn_error $? "pwd does not report name of working directory" 1394 1395 1396# Find the source files, if location was not specified. 1397if test -z "$srcdir"; then 1398 ac_srcdir_defaulted=yes 1399 # Try the directory containing this script, then the parent directory. 1400 ac_confdir=`$as_dirname -- "$as_myself" || 1401$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1402 X"$as_myself" : 'X\(//\)[^/]' \| \ 1403 X"$as_myself" : 'X\(//\)$' \| \ 1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1405$as_echo X"$as_myself" | 1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1407 s//\1/ 1408 q 1409 } 1410 /^X\(\/\/\)[^/].*/{ 1411 s//\1/ 1412 q 1413 } 1414 /^X\(\/\/\)$/{ 1415 s//\1/ 1416 q 1417 } 1418 /^X\(\/\).*/{ 1419 s//\1/ 1420 q 1421 } 1422 s/.*/./; q'` 1423 srcdir=$ac_confdir 1424 if test ! -r "$srcdir/$ac_unique_file"; then 1425 srcdir=.. 1426 fi 1427else 1428 ac_srcdir_defaulted=no 1429fi 1430if test ! -r "$srcdir/$ac_unique_file"; then 1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1432 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1433fi 1434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1435ac_abs_confdir=`( 1436 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1437 pwd)` 1438# When building in place, set srcdir=. 1439if test "$ac_abs_confdir" = "$ac_pwd"; then 1440 srcdir=. 1441fi 1442# Remove unnecessary trailing slashes from srcdir. 1443# Double slashes in file names in object file debugging info 1444# mess up M-x gdb in Emacs. 1445case $srcdir in 1446*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1447esac 1448for ac_var in $ac_precious_vars; do 1449 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1450 eval ac_env_${ac_var}_value=\$${ac_var} 1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1452 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1453done 1454 1455# 1456# Report the --help message. 1457# 1458if test "$ac_init_help" = "long"; then 1459 # Omit some internal or obsolete options to make the list less imposing. 1460 # This message is too long to be a string in the A/UX 3.1 sh. 1461 cat <<_ACEOF 1462\`configure' configures unbound 1.12.0 to adapt to many kinds of systems. 1463 1464Usage: $0 [OPTION]... [VAR=VALUE]... 1465 1466To assign environment variables (e.g., CC, CFLAGS...), specify them as 1467VAR=VALUE. See below for descriptions of some of the useful variables. 1468 1469Defaults for the options are specified in brackets. 1470 1471Configuration: 1472 -h, --help display this help and exit 1473 --help=short display options specific to this package 1474 --help=recursive display the short help of all the included packages 1475 -V, --version display version information and exit 1476 -q, --quiet, --silent do not print \`checking ...' messages 1477 --cache-file=FILE cache test results in FILE [disabled] 1478 -C, --config-cache alias for \`--cache-file=config.cache' 1479 -n, --no-create do not create output files 1480 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1481 1482Installation directories: 1483 --prefix=PREFIX install architecture-independent files in PREFIX 1484 [$ac_default_prefix] 1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1486 [PREFIX] 1487 1488By default, \`make install' will install all the files in 1489\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1490an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1491for instance \`--prefix=\$HOME'. 1492 1493For better control, use the options below. 1494 1495Fine tuning of the installation directories: 1496 --bindir=DIR user executables [EPREFIX/bin] 1497 --sbindir=DIR system admin executables [EPREFIX/sbin] 1498 --libexecdir=DIR program executables [EPREFIX/libexec] 1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1502 --libdir=DIR object code libraries [EPREFIX/lib] 1503 --includedir=DIR C header files [PREFIX/include] 1504 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1507 --infodir=DIR info documentation [DATAROOTDIR/info] 1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1509 --mandir=DIR man documentation [DATAROOTDIR/man] 1510 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound] 1511 --htmldir=DIR html documentation [DOCDIR] 1512 --dvidir=DIR dvi documentation [DOCDIR] 1513 --pdfdir=DIR pdf documentation [DOCDIR] 1514 --psdir=DIR ps documentation [DOCDIR] 1515_ACEOF 1516 1517 cat <<\_ACEOF 1518 1519System types: 1520 --build=BUILD configure for building on BUILD [guessed] 1521 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1522_ACEOF 1523fi 1524 1525if test -n "$ac_init_help"; then 1526 case $ac_init_help in 1527 short | recursive ) echo "Configuration of unbound 1.12.0:";; 1528 esac 1529 cat <<\_ACEOF 1530 1531Optional Features: 1532 --disable-option-checking ignore unrecognized --enable/--with options 1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1535 --enable-checking Enable warnings, asserts, makefile-dependencies 1536 --enable-debug same as enable-checking 1537 --disable-flto Disable link-time optimization (gcc specific option) 1538 --enable-pie Enable Position-Independent Executable (eg. to fully 1539 benefit from ASLR, small performance penalty) 1540 --enable-relro-now Enable full relocation binding at load-time (RELRO 1541 NOW, to protect GOT and .dtor areas) 1542 --enable-shared[=PKGS] build shared libraries [default=yes] 1543 --enable-static[=PKGS] build static libraries [default=yes] 1544 --enable-fast-install[=PKGS] 1545 optimize for fast installation [default=yes] 1546 --disable-libtool-lock avoid locking (might break parallel builds) 1547 --disable-rpath disable hardcoded rpath (default=enabled) 1548 --disable-largefile omit support for large files 1549 --enable-systemd compile with systemd support 1550 --enable-alloc-checks enable to memory allocation statistics, for debug 1551 purposes 1552 --enable-alloc-lite enable for lightweight alloc assertions, for debug 1553 purposes 1554 --enable-alloc-nonregional 1555 enable nonregional allocs, slow but exposes regional 1556 allocations to other memory purifiers, for debug 1557 purposes 1558 --disable-swig-version-check 1559 Disable swig version check to build python modules 1560 with older swig even though that is unreliable 1561 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3 1562 support 1563 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1564 --enable-subnet Enable client subnet 1565 --disable-gost Disable GOST support 1566 --disable-ecdsa Disable ECDSA support 1567 --disable-dsa Disable DSA support 1568 --disable-ed25519 Disable ED25519 support 1569 --disable-ed448 Disable ED448 support 1570 --enable-event-api Enable (experimental) pluggable event base 1571 libunbound API installed to unbound-event.h 1572 --enable-tfo-client Enable TCP Fast Open for client mode 1573 --enable-tfo-server Enable TCP Fast Open for server mode 1574 --enable-static-exe enable to compile executables statically against 1575 (event) uninstalled libs, for debug purposes 1576 --enable-fully-static enable to compile fully static 1577 --enable-lock-checks enable to check lock and unlock calls, for debug 1578 purposes 1579 --enable-allsymbols export all symbols from libunbound and link binaries 1580 to it, smaller install size but libunbound export 1581 table is polluted by internal symbols 1582 --enable-dnstap Enable dnstap support (requires protobuf-c) 1583 --enable-dnscrypt Enable dnscrypt support (requires libsodium) 1584 --enable-cachedb enable cachedb module that can use external cache 1585 storage 1586 --enable-ipsecmod Enable ipsecmod module that facilitates 1587 opportunistic IPsec 1588 --enable-ipset enable ipset module 1589 --disable-explicit-port-randomisation 1590 disable explicit source port randomisation and rely 1591 on the kernel to provide random source ports 1592 1593Optional Packages: 1594 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1595 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1596 --with-conf-file=path Pathname to the Unbound configuration file 1597 --with-run-dir=path set default directory to chdir to (by default dir 1598 part of cfg file) 1599 --with-chroot-dir=path set default directory to chroot to (by default same 1600 as run-dir) 1601 --with-share-dir=path set default directory with shared data (by default 1602 same as share/unbound) 1603 --with-pidfile=filename set default pathname to unbound pidfile (default 1604 run-dir/unbound.pid) 1605 --with-rootkey-file=filename 1606 set default pathname to root key file (default 1607 run-dir/root.key). This file is read and written. 1608 --with-rootcert-file=filename 1609 set default pathname to root update certificate file 1610 (default run-dir/icannbundle.pem). This file need 1611 not exist if you are content with the builtin. 1612 --with-username=user set default user that unbound changes to (default 1613 user is unbound) 1614 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1615 both] 1616 --with-aix-soname=aix|svr4|both 1617 shared library versioning (aka "SONAME") variant to 1618 provide on AIX, [default=aix]. 1619 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1620 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1621 compiler's sysroot if not specified). 1622 --with-pthreads use pthreads library, or --without-pthreads to 1623 disable threading support. 1624 --with-solaris-threads use solaris native thread library. 1625 --with-syslog-facility=LOCAL0 - LOCAL7 1626 set SYSLOG_FACILITY, default DAEMON 1627 --with-dynlibmodule build dynamic library module, or 1628 --without-dynlibmodule to disable it. (default=no) 1629 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it. 1630 (default=no) 1631 --with-pythonmodule build Python module, or --without-pythonmodule to 1632 disable script engine. (default=no) 1633 --with-nss=path use libnss instead of openssl, installed at path. 1634 --with-nettle=path use libnettle as crypto library, installed at path. 1635 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1636 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1637 /usr) 1638 --with-libbsd Use portable libbsd functions 1639 --with-libevent=pathname 1640 use libevent (will check /usr/local /opt/local 1641 /usr/lib /usr/pkg /usr/sfw /usr or you can specify 1642 an explicit path). Slower, but allows use of large 1643 outgoing port ranges. 1644 --with-libexpat=path specify explicit path for libexpat. 1645 --with-libhiredis=path specify explicit path for libhiredis. 1646 --with-libnghttp2=path specify explicit path for libnghttp2. 1647 --with-dnstap-socket-path=pathname 1648 set default dnstap socket path 1649 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap 1650 --with-libsodium=path Path where libsodium is installed, for dnscrypt 1651 --with-libmnl=path specify explicit path for libmnl. 1652 --with-libunbound-only do not build daemon and tool programs 1653 1654Some influential environment variables: 1655 CC C compiler command 1656 CFLAGS C compiler flags 1657 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1658 nonstandard directory <lib dir> 1659 LIBS libraries to pass to the linker, e.g. -l<library> 1660 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1661 you have headers in a nonstandard directory <include dir> 1662 CPP C preprocessor 1663 YACC The `Yet Another Compiler Compiler' implementation to use. 1664 Defaults to the first program found out of: `bison -y', `byacc', 1665 `yacc'. 1666 YFLAGS The list of arguments that will be passed by default to $YACC. 1667 This script will default YFLAGS to the empty string to avoid a 1668 default value of `-d' given by some make applications. 1669 LT_SYS_LIBRARY_PATH 1670 User-defined run-time library search path. 1671 PKG_CONFIG path to pkg-config utility 1672 PKG_CONFIG_PATH 1673 directories to add to pkg-config's search path 1674 PKG_CONFIG_LIBDIR 1675 path overriding pkg-config's built-in search path 1676 SYSTEMD_CFLAGS 1677 C compiler flags for SYSTEMD, overriding pkg-config 1678 SYSTEMD_LIBS 1679 linker flags for SYSTEMD, overriding pkg-config 1680 SYSTEMD_DAEMON_CFLAGS 1681 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 1682 SYSTEMD_DAEMON_LIBS 1683 linker flags for SYSTEMD_DAEMON, overriding pkg-config 1684 PYTHON_VERSION 1685 The installed Python version to use, for example '2.3'. This 1686 string will be appended to the Python interpreter canonical 1687 name. 1688 1689Use these variables to override the choices made by `configure' or to help 1690it to find libraries and programs with nonstandard names/locations. 1691 1692Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>. 1693_ACEOF 1694ac_status=$? 1695fi 1696 1697if test "$ac_init_help" = "recursive"; then 1698 # If there are subdirs, report their specific --help. 1699 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1700 test -d "$ac_dir" || 1701 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1702 continue 1703 ac_builddir=. 1704 1705case "$ac_dir" in 1706.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1707*) 1708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1709 # A ".." for each directory in $ac_dir_suffix. 1710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1711 case $ac_top_builddir_sub in 1712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1714 esac ;; 1715esac 1716ac_abs_top_builddir=$ac_pwd 1717ac_abs_builddir=$ac_pwd$ac_dir_suffix 1718# for backward compatibility: 1719ac_top_builddir=$ac_top_build_prefix 1720 1721case $srcdir in 1722 .) # We are building in place. 1723 ac_srcdir=. 1724 ac_top_srcdir=$ac_top_builddir_sub 1725 ac_abs_top_srcdir=$ac_pwd ;; 1726 [\\/]* | ?:[\\/]* ) # Absolute name. 1727 ac_srcdir=$srcdir$ac_dir_suffix; 1728 ac_top_srcdir=$srcdir 1729 ac_abs_top_srcdir=$srcdir ;; 1730 *) # Relative name. 1731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1732 ac_top_srcdir=$ac_top_build_prefix$srcdir 1733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1734esac 1735ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1736 1737 cd "$ac_dir" || { ac_status=$?; continue; } 1738 # Check for guested configure. 1739 if test -f "$ac_srcdir/configure.gnu"; then 1740 echo && 1741 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1742 elif test -f "$ac_srcdir/configure"; then 1743 echo && 1744 $SHELL "$ac_srcdir/configure" --help=recursive 1745 else 1746 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1747 fi || ac_status=$? 1748 cd "$ac_pwd" || { ac_status=$?; break; } 1749 done 1750fi 1751 1752test -n "$ac_init_help" && exit $ac_status 1753if $ac_init_version; then 1754 cat <<\_ACEOF 1755unbound configure 1.12.0 1756generated by GNU Autoconf 2.69 1757 1758Copyright (C) 2012 Free Software Foundation, Inc. 1759This configure script is free software; the Free Software Foundation 1760gives unlimited permission to copy, distribute and modify it. 1761_ACEOF 1762 exit 1763fi 1764 1765## ------------------------ ## 1766## Autoconf initialization. ## 1767## ------------------------ ## 1768 1769# ac_fn_c_try_compile LINENO 1770# -------------------------- 1771# Try to compile conftest.$ac_ext, and return whether this succeeded. 1772ac_fn_c_try_compile () 1773{ 1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1775 rm -f conftest.$ac_objext 1776 if { { ac_try="$ac_compile" 1777case "(($ac_try" in 1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1779 *) ac_try_echo=$ac_try;; 1780esac 1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1782$as_echo "$ac_try_echo"; } >&5 1783 (eval "$ac_compile") 2>conftest.err 1784 ac_status=$? 1785 if test -s conftest.err; then 1786 grep -v '^ *+' conftest.err >conftest.er1 1787 cat conftest.er1 >&5 1788 mv -f conftest.er1 conftest.err 1789 fi 1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1791 test $ac_status = 0; } && { 1792 test -z "$ac_c_werror_flag" || 1793 test ! -s conftest.err 1794 } && test -s conftest.$ac_objext; then : 1795 ac_retval=0 1796else 1797 $as_echo "$as_me: failed program was:" >&5 1798sed 's/^/| /' conftest.$ac_ext >&5 1799 1800 ac_retval=1 1801fi 1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1803 as_fn_set_status $ac_retval 1804 1805} # ac_fn_c_try_compile 1806 1807# ac_fn_c_try_cpp LINENO 1808# ---------------------- 1809# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1810ac_fn_c_try_cpp () 1811{ 1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1813 if { { ac_try="$ac_cpp conftest.$ac_ext" 1814case "(($ac_try" in 1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1816 *) ac_try_echo=$ac_try;; 1817esac 1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1819$as_echo "$ac_try_echo"; } >&5 1820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1821 ac_status=$? 1822 if test -s conftest.err; then 1823 grep -v '^ *+' conftest.err >conftest.er1 1824 cat conftest.er1 >&5 1825 mv -f conftest.er1 conftest.err 1826 fi 1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1828 test $ac_status = 0; } > conftest.i && { 1829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1830 test ! -s conftest.err 1831 }; then : 1832 ac_retval=0 1833else 1834 $as_echo "$as_me: failed program was:" >&5 1835sed 's/^/| /' conftest.$ac_ext >&5 1836 1837 ac_retval=1 1838fi 1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1840 as_fn_set_status $ac_retval 1841 1842} # ac_fn_c_try_cpp 1843 1844# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1845# ------------------------------------------------------- 1846# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1847# the include files in INCLUDES and setting the cache variable VAR 1848# accordingly. 1849ac_fn_c_check_header_mongrel () 1850{ 1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1852 if eval \${$3+:} false; then : 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1854$as_echo_n "checking for $2... " >&6; } 1855if eval \${$3+:} false; then : 1856 $as_echo_n "(cached) " >&6 1857fi 1858eval ac_res=\$$3 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1860$as_echo "$ac_res" >&6; } 1861else 1862 # Is the header compilable? 1863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1864$as_echo_n "checking $2 usability... " >&6; } 1865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1866/* end confdefs.h. */ 1867$4 1868#include <$2> 1869_ACEOF 1870if ac_fn_c_try_compile "$LINENO"; then : 1871 ac_header_compiler=yes 1872else 1873 ac_header_compiler=no 1874fi 1875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1877$as_echo "$ac_header_compiler" >&6; } 1878 1879# Is the header present? 1880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1881$as_echo_n "checking $2 presence... " >&6; } 1882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1883/* end confdefs.h. */ 1884#include <$2> 1885_ACEOF 1886if ac_fn_c_try_cpp "$LINENO"; then : 1887 ac_header_preproc=yes 1888else 1889 ac_header_preproc=no 1890fi 1891rm -f conftest.err conftest.i conftest.$ac_ext 1892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1893$as_echo "$ac_header_preproc" >&6; } 1894 1895# So? What about this header? 1896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1897 yes:no: ) 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1899$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1901$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1902 ;; 1903 no:yes:* ) 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1905$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1907$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1909$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1911$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1913$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1914( $as_echo "## --------------------------------------------------------------------------------------- ## 1915## Report this to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues ## 1916## --------------------------------------------------------------------------------------- ##" 1917 ) | sed "s/^/$as_me: WARNING: /" >&2 1918 ;; 1919esac 1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1921$as_echo_n "checking for $2... " >&6; } 1922if eval \${$3+:} false; then : 1923 $as_echo_n "(cached) " >&6 1924else 1925 eval "$3=\$ac_header_compiler" 1926fi 1927eval ac_res=\$$3 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1929$as_echo "$ac_res" >&6; } 1930fi 1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1932 1933} # ac_fn_c_check_header_mongrel 1934 1935# ac_fn_c_try_run LINENO 1936# ---------------------- 1937# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1938# that executables *can* be run. 1939ac_fn_c_try_run () 1940{ 1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1942 if { { ac_try="$ac_link" 1943case "(($ac_try" in 1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1945 *) ac_try_echo=$ac_try;; 1946esac 1947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1948$as_echo "$ac_try_echo"; } >&5 1949 (eval "$ac_link") 2>&5 1950 ac_status=$? 1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1952 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1953 { { case "(($ac_try" in 1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1955 *) ac_try_echo=$ac_try;; 1956esac 1957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1958$as_echo "$ac_try_echo"; } >&5 1959 (eval "$ac_try") 2>&5 1960 ac_status=$? 1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1962 test $ac_status = 0; }; }; then : 1963 ac_retval=0 1964else 1965 $as_echo "$as_me: program exited with status $ac_status" >&5 1966 $as_echo "$as_me: failed program was:" >&5 1967sed 's/^/| /' conftest.$ac_ext >&5 1968 1969 ac_retval=$ac_status 1970fi 1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1973 as_fn_set_status $ac_retval 1974 1975} # ac_fn_c_try_run 1976 1977# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1978# ------------------------------------------------------- 1979# Tests whether HEADER exists and can be compiled using the include files in 1980# INCLUDES, setting the cache variable VAR accordingly. 1981ac_fn_c_check_header_compile () 1982{ 1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1985$as_echo_n "checking for $2... " >&6; } 1986if eval \${$3+:} false; then : 1987 $as_echo_n "(cached) " >&6 1988else 1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1990/* end confdefs.h. */ 1991$4 1992#include <$2> 1993_ACEOF 1994if ac_fn_c_try_compile "$LINENO"; then : 1995 eval "$3=yes" 1996else 1997 eval "$3=no" 1998fi 1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2000fi 2001eval ac_res=\$$3 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2003$as_echo "$ac_res" >&6; } 2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2005 2006} # ac_fn_c_check_header_compile 2007 2008# ac_fn_c_try_link LINENO 2009# ----------------------- 2010# Try to link conftest.$ac_ext, and return whether this succeeded. 2011ac_fn_c_try_link () 2012{ 2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2014 rm -f conftest.$ac_objext conftest$ac_exeext 2015 if { { ac_try="$ac_link" 2016case "(($ac_try" in 2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2018 *) ac_try_echo=$ac_try;; 2019esac 2020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2021$as_echo "$ac_try_echo"; } >&5 2022 (eval "$ac_link") 2>conftest.err 2023 ac_status=$? 2024 if test -s conftest.err; then 2025 grep -v '^ *+' conftest.err >conftest.er1 2026 cat conftest.er1 >&5 2027 mv -f conftest.er1 conftest.err 2028 fi 2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2030 test $ac_status = 0; } && { 2031 test -z "$ac_c_werror_flag" || 2032 test ! -s conftest.err 2033 } && test -s conftest$ac_exeext && { 2034 test "$cross_compiling" = yes || 2035 test -x conftest$ac_exeext 2036 }; then : 2037 ac_retval=0 2038else 2039 $as_echo "$as_me: failed program was:" >&5 2040sed 's/^/| /' conftest.$ac_ext >&5 2041 2042 ac_retval=1 2043fi 2044 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2045 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2046 # interfere with the next link command; also delete a directory that is 2047 # left behind by Apple's compiler. We do this before executing the actions. 2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2050 as_fn_set_status $ac_retval 2051 2052} # ac_fn_c_try_link 2053 2054# ac_fn_c_check_func LINENO FUNC VAR 2055# ---------------------------------- 2056# Tests whether FUNC exists, setting the cache variable VAR accordingly 2057ac_fn_c_check_func () 2058{ 2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2061$as_echo_n "checking for $2... " >&6; } 2062if eval \${$3+:} false; then : 2063 $as_echo_n "(cached) " >&6 2064else 2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2066/* end confdefs.h. */ 2067/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2068 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2069#define $2 innocuous_$2 2070 2071/* System header to define __stub macros and hopefully few prototypes, 2072 which can conflict with char $2 (); below. 2073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2074 <limits.h> exists even on freestanding compilers. */ 2075 2076#ifdef __STDC__ 2077# include <limits.h> 2078#else 2079# include <assert.h> 2080#endif 2081 2082#undef $2 2083 2084/* Override any GCC internal prototype to avoid an error. 2085 Use char because int might match the return type of a GCC 2086 builtin and then its argument prototype would still apply. */ 2087#ifdef __cplusplus 2088extern "C" 2089#endif 2090char $2 (); 2091/* The GNU C library defines this for functions which it implements 2092 to always fail with ENOSYS. Some functions are actually named 2093 something starting with __ and the normal name is an alias. */ 2094#if defined __stub_$2 || defined __stub___$2 2095choke me 2096#endif 2097 2098int 2099main () 2100{ 2101return $2 (); 2102 ; 2103 return 0; 2104} 2105_ACEOF 2106if ac_fn_c_try_link "$LINENO"; then : 2107 eval "$3=yes" 2108else 2109 eval "$3=no" 2110fi 2111rm -f core conftest.err conftest.$ac_objext \ 2112 conftest$ac_exeext conftest.$ac_ext 2113fi 2114eval ac_res=\$$3 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2116$as_echo "$ac_res" >&6; } 2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2118 2119} # ac_fn_c_check_func 2120 2121# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2122# ------------------------------------------- 2123# Tests whether TYPE exists after having included INCLUDES, setting cache 2124# variable VAR accordingly. 2125ac_fn_c_check_type () 2126{ 2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2129$as_echo_n "checking for $2... " >&6; } 2130if eval \${$3+:} false; then : 2131 $as_echo_n "(cached) " >&6 2132else 2133 eval "$3=no" 2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2135/* end confdefs.h. */ 2136$4 2137int 2138main () 2139{ 2140if (sizeof ($2)) 2141 return 0; 2142 ; 2143 return 0; 2144} 2145_ACEOF 2146if ac_fn_c_try_compile "$LINENO"; then : 2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2148/* end confdefs.h. */ 2149$4 2150int 2151main () 2152{ 2153if (sizeof (($2))) 2154 return 0; 2155 ; 2156 return 0; 2157} 2158_ACEOF 2159if ac_fn_c_try_compile "$LINENO"; then : 2160 2161else 2162 eval "$3=yes" 2163fi 2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2165fi 2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2167fi 2168eval ac_res=\$$3 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2170$as_echo "$ac_res" >&6; } 2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2172 2173} # ac_fn_c_check_type 2174 2175# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2176# -------------------------------------------- 2177# Tries to find the compile-time value of EXPR in a program that includes 2178# INCLUDES, setting VAR accordingly. Returns whether the value could be 2179# computed 2180ac_fn_c_compute_int () 2181{ 2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2183 if test "$cross_compiling" = yes; then 2184 # Depending upon the size, compute the lo and hi bounds. 2185cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2186/* end confdefs.h. */ 2187$4 2188int 2189main () 2190{ 2191static int test_array [1 - 2 * !(($2) >= 0)]; 2192test_array [0] = 0; 2193return test_array [0]; 2194 2195 ; 2196 return 0; 2197} 2198_ACEOF 2199if ac_fn_c_try_compile "$LINENO"; then : 2200 ac_lo=0 ac_mid=0 2201 while :; do 2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2203/* end confdefs.h. */ 2204$4 2205int 2206main () 2207{ 2208static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2209test_array [0] = 0; 2210return test_array [0]; 2211 2212 ; 2213 return 0; 2214} 2215_ACEOF 2216if ac_fn_c_try_compile "$LINENO"; then : 2217 ac_hi=$ac_mid; break 2218else 2219 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2220 if test $ac_lo -le $ac_mid; then 2221 ac_lo= ac_hi= 2222 break 2223 fi 2224 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2225fi 2226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2227 done 2228else 2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2230/* end confdefs.h. */ 2231$4 2232int 2233main () 2234{ 2235static int test_array [1 - 2 * !(($2) < 0)]; 2236test_array [0] = 0; 2237return test_array [0]; 2238 2239 ; 2240 return 0; 2241} 2242_ACEOF 2243if ac_fn_c_try_compile "$LINENO"; then : 2244 ac_hi=-1 ac_mid=-1 2245 while :; do 2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2247/* end confdefs.h. */ 2248$4 2249int 2250main () 2251{ 2252static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2253test_array [0] = 0; 2254return test_array [0]; 2255 2256 ; 2257 return 0; 2258} 2259_ACEOF 2260if ac_fn_c_try_compile "$LINENO"; then : 2261 ac_lo=$ac_mid; break 2262else 2263 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2264 if test $ac_mid -le $ac_hi; then 2265 ac_lo= ac_hi= 2266 break 2267 fi 2268 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2269fi 2270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2271 done 2272else 2273 ac_lo= ac_hi= 2274fi 2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2276fi 2277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2278# Binary search between lo and hi bounds. 2279while test "x$ac_lo" != "x$ac_hi"; do 2280 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2282/* end confdefs.h. */ 2283$4 2284int 2285main () 2286{ 2287static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2288test_array [0] = 0; 2289return test_array [0]; 2290 2291 ; 2292 return 0; 2293} 2294_ACEOF 2295if ac_fn_c_try_compile "$LINENO"; then : 2296 ac_hi=$ac_mid 2297else 2298 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2299fi 2300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2301done 2302case $ac_lo in #(( 2303?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2304'') ac_retval=1 ;; 2305esac 2306 else 2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2308/* end confdefs.h. */ 2309$4 2310static long int longval () { return $2; } 2311static unsigned long int ulongval () { return $2; } 2312#include <stdio.h> 2313#include <stdlib.h> 2314int 2315main () 2316{ 2317 2318 FILE *f = fopen ("conftest.val", "w"); 2319 if (! f) 2320 return 1; 2321 if (($2) < 0) 2322 { 2323 long int i = longval (); 2324 if (i != ($2)) 2325 return 1; 2326 fprintf (f, "%ld", i); 2327 } 2328 else 2329 { 2330 unsigned long int i = ulongval (); 2331 if (i != ($2)) 2332 return 1; 2333 fprintf (f, "%lu", i); 2334 } 2335 /* Do not output a trailing newline, as this causes \r\n confusion 2336 on some platforms. */ 2337 return ferror (f) || fclose (f) != 0; 2338 2339 ; 2340 return 0; 2341} 2342_ACEOF 2343if ac_fn_c_try_run "$LINENO"; then : 2344 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2345else 2346 ac_retval=1 2347fi 2348rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2349 conftest.$ac_objext conftest.beam conftest.$ac_ext 2350rm -f conftest.val 2351 2352 fi 2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2354 as_fn_set_status $ac_retval 2355 2356} # ac_fn_c_compute_int 2357 2358# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2359# --------------------------------------------- 2360# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2361# accordingly. 2362ac_fn_c_check_decl () 2363{ 2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2365 as_decl_name=`echo $2|sed 's/ *(.*//'` 2366 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2368$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2369if eval \${$3+:} false; then : 2370 $as_echo_n "(cached) " >&6 2371else 2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2373/* end confdefs.h. */ 2374$4 2375int 2376main () 2377{ 2378#ifndef $as_decl_name 2379#ifdef __cplusplus 2380 (void) $as_decl_use; 2381#else 2382 (void) $as_decl_name; 2383#endif 2384#endif 2385 2386 ; 2387 return 0; 2388} 2389_ACEOF 2390if ac_fn_c_try_compile "$LINENO"; then : 2391 eval "$3=yes" 2392else 2393 eval "$3=no" 2394fi 2395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2396fi 2397eval ac_res=\$$3 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2399$as_echo "$ac_res" >&6; } 2400 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2401 2402} # ac_fn_c_check_decl 2403 2404# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2405# ---------------------------------------------------- 2406# Tries to find if the field MEMBER exists in type AGGR, after including 2407# INCLUDES, setting cache variable VAR accordingly. 2408ac_fn_c_check_member () 2409{ 2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2412$as_echo_n "checking for $2.$3... " >&6; } 2413if eval \${$4+:} false; then : 2414 $as_echo_n "(cached) " >&6 2415else 2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2417/* end confdefs.h. */ 2418$5 2419int 2420main () 2421{ 2422static $2 ac_aggr; 2423if (ac_aggr.$3) 2424return 0; 2425 ; 2426 return 0; 2427} 2428_ACEOF 2429if ac_fn_c_try_compile "$LINENO"; then : 2430 eval "$4=yes" 2431else 2432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2433/* end confdefs.h. */ 2434$5 2435int 2436main () 2437{ 2438static $2 ac_aggr; 2439if (sizeof ac_aggr.$3) 2440return 0; 2441 ; 2442 return 0; 2443} 2444_ACEOF 2445if ac_fn_c_try_compile "$LINENO"; then : 2446 eval "$4=yes" 2447else 2448 eval "$4=no" 2449fi 2450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2451fi 2452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2453fi 2454eval ac_res=\$$4 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2456$as_echo "$ac_res" >&6; } 2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2458 2459} # ac_fn_c_check_member 2460cat >config.log <<_ACEOF 2461This file contains any messages produced by compilers while 2462running configure, to aid debugging if configure makes a mistake. 2463 2464It was created by unbound $as_me 1.12.0, which was 2465generated by GNU Autoconf 2.69. Invocation command line was 2466 2467 $ $0 $@ 2468 2469_ACEOF 2470exec 5>>config.log 2471{ 2472cat <<_ASUNAME 2473## --------- ## 2474## Platform. ## 2475## --------- ## 2476 2477hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2478uname -m = `(uname -m) 2>/dev/null || echo unknown` 2479uname -r = `(uname -r) 2>/dev/null || echo unknown` 2480uname -s = `(uname -s) 2>/dev/null || echo unknown` 2481uname -v = `(uname -v) 2>/dev/null || echo unknown` 2482 2483/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2484/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2485 2486/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2487/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2488/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2489/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2490/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2491/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2492/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2493 2494_ASUNAME 2495 2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2497for as_dir in $PATH 2498do 2499 IFS=$as_save_IFS 2500 test -z "$as_dir" && as_dir=. 2501 $as_echo "PATH: $as_dir" 2502 done 2503IFS=$as_save_IFS 2504 2505} >&5 2506 2507cat >&5 <<_ACEOF 2508 2509 2510## ----------- ## 2511## Core tests. ## 2512## ----------- ## 2513 2514_ACEOF 2515 2516 2517# Keep a trace of the command line. 2518# Strip out --no-create and --no-recursion so they do not pile up. 2519# Strip out --silent because we don't want to record it for future runs. 2520# Also quote any args containing shell meta-characters. 2521# Make two passes to allow for proper duplicate-argument suppression. 2522ac_configure_args= 2523ac_configure_args0= 2524ac_configure_args1= 2525ac_must_keep_next=false 2526for ac_pass in 1 2 2527do 2528 for ac_arg 2529 do 2530 case $ac_arg in 2531 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2533 | -silent | --silent | --silen | --sile | --sil) 2534 continue ;; 2535 *\'*) 2536 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2537 esac 2538 case $ac_pass in 2539 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2540 2) 2541 as_fn_append ac_configure_args1 " '$ac_arg'" 2542 if test $ac_must_keep_next = true; then 2543 ac_must_keep_next=false # Got value, back to normal. 2544 else 2545 case $ac_arg in 2546 *=* | --config-cache | -C | -disable-* | --disable-* \ 2547 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2548 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2549 | -with-* | --with-* | -without-* | --without-* | --x) 2550 case "$ac_configure_args0 " in 2551 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2552 esac 2553 ;; 2554 -* ) ac_must_keep_next=true ;; 2555 esac 2556 fi 2557 as_fn_append ac_configure_args " '$ac_arg'" 2558 ;; 2559 esac 2560 done 2561done 2562{ ac_configure_args0=; unset ac_configure_args0;} 2563{ ac_configure_args1=; unset ac_configure_args1;} 2564 2565# When interrupted or exit'd, cleanup temporary files, and complete 2566# config.log. We remove comments because anyway the quotes in there 2567# would cause problems or look ugly. 2568# WARNING: Use '\'' to represent an apostrophe within the trap. 2569# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2570trap 'exit_status=$? 2571 # Save into config.log some information that might help in debugging. 2572 { 2573 echo 2574 2575 $as_echo "## ---------------- ## 2576## Cache variables. ## 2577## ---------------- ##" 2578 echo 2579 # The following way of writing the cache mishandles newlines in values, 2580( 2581 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2582 eval ac_val=\$$ac_var 2583 case $ac_val in #( 2584 *${as_nl}*) 2585 case $ac_var in #( 2586 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2587$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2588 esac 2589 case $ac_var in #( 2590 _ | IFS | as_nl) ;; #( 2591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2592 *) { eval $ac_var=; unset $ac_var;} ;; 2593 esac ;; 2594 esac 2595 done 2596 (set) 2>&1 | 2597 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2598 *${as_nl}ac_space=\ *) 2599 sed -n \ 2600 "s/'\''/'\''\\\\'\'''\''/g; 2601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2602 ;; #( 2603 *) 2604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2605 ;; 2606 esac | 2607 sort 2608) 2609 echo 2610 2611 $as_echo "## ----------------- ## 2612## Output variables. ## 2613## ----------------- ##" 2614 echo 2615 for ac_var in $ac_subst_vars 2616 do 2617 eval ac_val=\$$ac_var 2618 case $ac_val in 2619 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2620 esac 2621 $as_echo "$ac_var='\''$ac_val'\''" 2622 done | sort 2623 echo 2624 2625 if test -n "$ac_subst_files"; then 2626 $as_echo "## ------------------- ## 2627## File substitutions. ## 2628## ------------------- ##" 2629 echo 2630 for ac_var in $ac_subst_files 2631 do 2632 eval ac_val=\$$ac_var 2633 case $ac_val in 2634 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2635 esac 2636 $as_echo "$ac_var='\''$ac_val'\''" 2637 done | sort 2638 echo 2639 fi 2640 2641 if test -s confdefs.h; then 2642 $as_echo "## ----------- ## 2643## confdefs.h. ## 2644## ----------- ##" 2645 echo 2646 cat confdefs.h 2647 echo 2648 fi 2649 test "$ac_signal" != 0 && 2650 $as_echo "$as_me: caught signal $ac_signal" 2651 $as_echo "$as_me: exit $exit_status" 2652 } >&5 2653 rm -f core *.core core.conftest.* && 2654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2655 exit $exit_status 2656' 0 2657for ac_signal in 1 2 13 15; do 2658 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2659done 2660ac_signal=0 2661 2662# confdefs.h avoids OS command line length limits that DEFS can exceed. 2663rm -f -r conftest* confdefs.h 2664 2665$as_echo "/* confdefs.h */" > confdefs.h 2666 2667# Predefined preprocessor variables. 2668 2669cat >>confdefs.h <<_ACEOF 2670#define PACKAGE_NAME "$PACKAGE_NAME" 2671_ACEOF 2672 2673cat >>confdefs.h <<_ACEOF 2674#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2675_ACEOF 2676 2677cat >>confdefs.h <<_ACEOF 2678#define PACKAGE_VERSION "$PACKAGE_VERSION" 2679_ACEOF 2680 2681cat >>confdefs.h <<_ACEOF 2682#define PACKAGE_STRING "$PACKAGE_STRING" 2683_ACEOF 2684 2685cat >>confdefs.h <<_ACEOF 2686#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2687_ACEOF 2688 2689cat >>confdefs.h <<_ACEOF 2690#define PACKAGE_URL "$PACKAGE_URL" 2691_ACEOF 2692 2693 2694# Let the site file select an alternate cache file if it wants to. 2695# Prefer an explicitly selected file to automatically selected ones. 2696ac_site_file1=NONE 2697ac_site_file2=NONE 2698if test -n "$CONFIG_SITE"; then 2699 # We do not want a PATH search for config.site. 2700 case $CONFIG_SITE in #(( 2701 -*) ac_site_file1=./$CONFIG_SITE;; 2702 */*) ac_site_file1=$CONFIG_SITE;; 2703 *) ac_site_file1=./$CONFIG_SITE;; 2704 esac 2705elif test "x$prefix" != xNONE; then 2706 ac_site_file1=$prefix/share/config.site 2707 ac_site_file2=$prefix/etc/config.site 2708else 2709 ac_site_file1=$ac_default_prefix/share/config.site 2710 ac_site_file2=$ac_default_prefix/etc/config.site 2711fi 2712for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2713do 2714 test "x$ac_site_file" = xNONE && continue 2715 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2717$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2718 sed 's/^/| /' "$ac_site_file" >&5 2719 . "$ac_site_file" \ 2720 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2722as_fn_error $? "failed to load site script $ac_site_file 2723See \`config.log' for more details" "$LINENO" 5; } 2724 fi 2725done 2726 2727if test -r "$cache_file"; then 2728 # Some versions of bash will fail to source /dev/null (special files 2729 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2730 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2732$as_echo "$as_me: loading cache $cache_file" >&6;} 2733 case $cache_file in 2734 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2735 *) . "./$cache_file";; 2736 esac 2737 fi 2738else 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2740$as_echo "$as_me: creating cache $cache_file" >&6;} 2741 >$cache_file 2742fi 2743 2744# Check that the precious variables saved in the cache have kept the same 2745# value. 2746ac_cache_corrupted=false 2747for ac_var in $ac_precious_vars; do 2748 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2749 eval ac_new_set=\$ac_env_${ac_var}_set 2750 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2751 eval ac_new_val=\$ac_env_${ac_var}_value 2752 case $ac_old_set,$ac_new_set in 2753 set,) 2754 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2755$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2756 ac_cache_corrupted=: ;; 2757 ,set) 2758 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2759$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2760 ac_cache_corrupted=: ;; 2761 ,);; 2762 *) 2763 if test "x$ac_old_val" != "x$ac_new_val"; then 2764 # differences in whitespace do not lead to failure. 2765 ac_old_val_w=`echo x $ac_old_val` 2766 ac_new_val_w=`echo x $ac_new_val` 2767 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2769$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2770 ac_cache_corrupted=: 2771 else 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2773$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2774 eval $ac_var=\$ac_old_val 2775 fi 2776 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2777$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2779$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2780 fi;; 2781 esac 2782 # Pass precious variables to config.status. 2783 if test "$ac_new_set" = set; then 2784 case $ac_new_val in 2785 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2786 *) ac_arg=$ac_var=$ac_new_val ;; 2787 esac 2788 case " $ac_configure_args " in 2789 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2790 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2791 esac 2792 fi 2793done 2794if $ac_cache_corrupted; then 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2798$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2799 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2800fi 2801## -------------------- ## 2802## Main body of script. ## 2803## -------------------- ## 2804 2805ac_ext=c 2806ac_cpp='$CPP $CPPFLAGS' 2807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2809ac_compiler_gnu=$ac_cv_c_compiler_gnu 2810 2811 2812UNBOUND_VERSION_MAJOR=1 2813 2814UNBOUND_VERSION_MINOR=12 2815 2816UNBOUND_VERSION_MICRO=0 2817 2818 2819LIBUNBOUND_CURRENT=9 2820LIBUNBOUND_REVISION=10 2821LIBUNBOUND_AGE=1 2822# 1.0.0 had 0:12:0 2823# 1.0.1 had 0:13:0 2824# 1.0.2 had 0:14:0 2825# 1.1.0 had 0:15:0 2826# 1.1.1 had 0:16:0 2827# 1.2.0 had 0:17:0 2828# 1.2.1 had 0:18:0 2829# 1.3.0 had 1:0:0 # ub_cancel and -export-symbols. 2830# 1.3.1 had 1:1:0 2831# 1.3.2 had 1:2:0 2832# 1.3.3 had 1:3:0 2833# 1.3.4 had 1:4:0 2834# 1.4.0-snapshots had 1:5:0 2835# 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus 2836# 1.4.1 had 2:1:0 2837# 1.4.2 had 2:2:0 2838# 1.4.3 had 2:3:0 2839# 1.4.4 had 2:4:0 2840# 1.4.5 had 2:5:0 2841# 1.4.6 had 2:6:0 2842# 1.4.7 had 2:7:0 2843# 1.4.8 had 2:8:0 2844# 1.4.9 had 2:9:0 2845# 1.4.10 had 2:10:0 2846# 1.4.11 had 2:11:0 2847# 1.4.12 had 2:12:0 2848# 1.4.13 had 2:13:0 2849# and 1.4.13p1 and 1.4.13.p2 2850# 1.4.14 had 2:14:0 2851# 1.4.15 had 3:0:1 # adds ub_version() 2852# 1.4.16 had 3:1:1 2853# 1.4.17 had 3:2:1 2854# 1.4.18 had 3:3:1 2855# 1.4.19 had 3:4:1 2856# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1 2857# 1.4.21 had 4:1:2 2858# 1.4.22 had 4:1:2 2859# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr 2860# 1.5.1 had 5:3:3 2861# 1.5.2 had 5:5:3 2862# 1.5.3 had 5:6:3 2863# 1.5.4 had 5:7:3 2864# 1.5.5 had 5:8:3 2865# 1.5.6 had 5:9:3 2866# 1.5.7 had 5:10:3 2867# 1.5.8 had 6:0:4 # adds ub_ctx_set_stub 2868# 1.5.9 had 6:1:4 2869# 1.5.10 had 6:2:4 2870# 1.6.0 had 6:3:4 2871# 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type 2872# 1.6.2 had 7:1:5 2873# 1.6.3 had 7:2:5 2874# 1.6.4 had 7:3:5 2875# 1.6.5 had 7:4:5 2876# 1.6.6 had 7:5:5 2877# 1.6.7 had 7:6:5 2878# 1.6.8 had 7:7:5 2879# 1.7.0 had 7:8:5 2880# 1.7.1 had 7:9:5 2881# 1.7.2 had 7:10:5 2882# 1.7.3 had 7:11:5 2883# 1.8.0 had 8:0:0 # changes the event callback function signature 2884# 1.8.1 had 8:1:0 2885# 1.8.2 had 8:2:0 2886# 1.8.3 had 8:3:0 2887# 1.9.0 had 9:0:1 # add ub_ctx_set_tls 2888# 1.9.1 had 9:1:1 2889# 1.9.2 had 9:2:1 2890# 1.9.3 had 9:3:1 2891# 1.9.4 had 9:4:1 2892# 1.9.5 had 9:5:1 2893# 1.9.6 had 9:6:1 2894# 1.10.0 had 9:7:1 2895# 1.10.1 had 9:8:1 2896# 1.11.0 had 9:9:1 2897# 1.12.0 had 9:10:1 2898 2899# Current -- the number of the binary API that we're implementing 2900# Revision -- which iteration of the implementation of the binary 2901# API are we supplying? 2902# Age -- How many previous binary API versions do we also 2903# support? 2904# 2905# If we release a new version that does not change the binary API, 2906# increment Revision. 2907# 2908# If we release a new version that changes the binary API, but does 2909# not break programs compiled against the old binary API, increment 2910# Current and Age. Set Revision to 0, since this is the first 2911# implementation of the new API. 2912# 2913# Otherwise, we're changing the binary API and breaking backward 2914# compatibility with old binaries. Increment Current. Set Age to 0, 2915# since we're backward compatible with no previous APIs. Set Revision 2916# to 0 too. 2917 2918 2919 2920 2921 2922cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`" 2923 2924cat >>confdefs.h <<_ACEOF 2925#define CONFCMDLINE "$cmdln" 2926_ACEOF 2927 2928 2929CFLAGS="$CFLAGS" 2930ac_ext=c 2931ac_cpp='$CPP $CPPFLAGS' 2932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2934ac_compiler_gnu=$ac_cv_c_compiler_gnu 2935if test -n "$ac_tool_prefix"; then 2936 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2937set dummy ${ac_tool_prefix}gcc; ac_word=$2 2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2939$as_echo_n "checking for $ac_word... " >&6; } 2940if ${ac_cv_prog_CC+:} false; then : 2941 $as_echo_n "(cached) " >&6 2942else 2943 if test -n "$CC"; then 2944 ac_cv_prog_CC="$CC" # Let the user override the test. 2945else 2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947for as_dir in $PATH 2948do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2953 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2955 break 2 2956 fi 2957done 2958 done 2959IFS=$as_save_IFS 2960 2961fi 2962fi 2963CC=$ac_cv_prog_CC 2964if test -n "$CC"; then 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2966$as_echo "$CC" >&6; } 2967else 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2969$as_echo "no" >&6; } 2970fi 2971 2972 2973fi 2974if test -z "$ac_cv_prog_CC"; then 2975 ac_ct_CC=$CC 2976 # Extract the first word of "gcc", so it can be a program name with args. 2977set dummy gcc; ac_word=$2 2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2979$as_echo_n "checking for $ac_word... " >&6; } 2980if ${ac_cv_prog_ac_ct_CC+:} false; then : 2981 $as_echo_n "(cached) " >&6 2982else 2983 if test -n "$ac_ct_CC"; then 2984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2985else 2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2987for as_dir in $PATH 2988do 2989 IFS=$as_save_IFS 2990 test -z "$as_dir" && as_dir=. 2991 for ac_exec_ext in '' $ac_executable_extensions; do 2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2993 ac_cv_prog_ac_ct_CC="gcc" 2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2995 break 2 2996 fi 2997done 2998 done 2999IFS=$as_save_IFS 3000 3001fi 3002fi 3003ac_ct_CC=$ac_cv_prog_ac_ct_CC 3004if test -n "$ac_ct_CC"; then 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3006$as_echo "$ac_ct_CC" >&6; } 3007else 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3009$as_echo "no" >&6; } 3010fi 3011 3012 if test "x$ac_ct_CC" = x; then 3013 CC="" 3014 else 3015 case $cross_compiling:$ac_tool_warned in 3016yes:) 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3019ac_tool_warned=yes ;; 3020esac 3021 CC=$ac_ct_CC 3022 fi 3023else 3024 CC="$ac_cv_prog_CC" 3025fi 3026 3027if test -z "$CC"; then 3028 if test -n "$ac_tool_prefix"; then 3029 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3030set dummy ${ac_tool_prefix}cc; ac_word=$2 3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3032$as_echo_n "checking for $ac_word... " >&6; } 3033if ${ac_cv_prog_CC+:} false; then : 3034 $as_echo_n "(cached) " >&6 3035else 3036 if test -n "$CC"; then 3037 ac_cv_prog_CC="$CC" # Let the user override the test. 3038else 3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3040for as_dir in $PATH 3041do 3042 IFS=$as_save_IFS 3043 test -z "$as_dir" && as_dir=. 3044 for ac_exec_ext in '' $ac_executable_extensions; do 3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3046 ac_cv_prog_CC="${ac_tool_prefix}cc" 3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3048 break 2 3049 fi 3050done 3051 done 3052IFS=$as_save_IFS 3053 3054fi 3055fi 3056CC=$ac_cv_prog_CC 3057if test -n "$CC"; then 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3059$as_echo "$CC" >&6; } 3060else 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3062$as_echo "no" >&6; } 3063fi 3064 3065 3066 fi 3067fi 3068if test -z "$CC"; then 3069 # Extract the first word of "cc", so it can be a program name with args. 3070set dummy cc; ac_word=$2 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3072$as_echo_n "checking for $ac_word... " >&6; } 3073if ${ac_cv_prog_CC+:} false; then : 3074 $as_echo_n "(cached) " >&6 3075else 3076 if test -n "$CC"; then 3077 ac_cv_prog_CC="$CC" # Let the user override the test. 3078else 3079 ac_prog_rejected=no 3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3081for as_dir in $PATH 3082do 3083 IFS=$as_save_IFS 3084 test -z "$as_dir" && as_dir=. 3085 for ac_exec_ext in '' $ac_executable_extensions; do 3086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3087 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3088 ac_prog_rejected=yes 3089 continue 3090 fi 3091 ac_cv_prog_CC="cc" 3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3093 break 2 3094 fi 3095done 3096 done 3097IFS=$as_save_IFS 3098 3099if test $ac_prog_rejected = yes; then 3100 # We found a bogon in the path, so make sure we never use it. 3101 set dummy $ac_cv_prog_CC 3102 shift 3103 if test $# != 0; then 3104 # We chose a different compiler from the bogus one. 3105 # However, it has the same basename, so the bogon will be chosen 3106 # first if we set CC to just the basename; use the full file name. 3107 shift 3108 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3109 fi 3110fi 3111fi 3112fi 3113CC=$ac_cv_prog_CC 3114if test -n "$CC"; then 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3116$as_echo "$CC" >&6; } 3117else 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3119$as_echo "no" >&6; } 3120fi 3121 3122 3123fi 3124if test -z "$CC"; then 3125 if test -n "$ac_tool_prefix"; then 3126 for ac_prog in cl.exe 3127 do 3128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3129set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3131$as_echo_n "checking for $ac_word... " >&6; } 3132if ${ac_cv_prog_CC+:} false; then : 3133 $as_echo_n "(cached) " >&6 3134else 3135 if test -n "$CC"; then 3136 ac_cv_prog_CC="$CC" # Let the user override the test. 3137else 3138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3139for as_dir in $PATH 3140do 3141 IFS=$as_save_IFS 3142 test -z "$as_dir" && as_dir=. 3143 for ac_exec_ext in '' $ac_executable_extensions; do 3144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3145 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3147 break 2 3148 fi 3149done 3150 done 3151IFS=$as_save_IFS 3152 3153fi 3154fi 3155CC=$ac_cv_prog_CC 3156if test -n "$CC"; then 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3158$as_echo "$CC" >&6; } 3159else 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3161$as_echo "no" >&6; } 3162fi 3163 3164 3165 test -n "$CC" && break 3166 done 3167fi 3168if test -z "$CC"; then 3169 ac_ct_CC=$CC 3170 for ac_prog in cl.exe 3171do 3172 # Extract the first word of "$ac_prog", so it can be a program name with args. 3173set dummy $ac_prog; ac_word=$2 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3175$as_echo_n "checking for $ac_word... " >&6; } 3176if ${ac_cv_prog_ac_ct_CC+:} false; then : 3177 $as_echo_n "(cached) " >&6 3178else 3179 if test -n "$ac_ct_CC"; then 3180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3181else 3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3183for as_dir in $PATH 3184do 3185 IFS=$as_save_IFS 3186 test -z "$as_dir" && as_dir=. 3187 for ac_exec_ext in '' $ac_executable_extensions; do 3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3189 ac_cv_prog_ac_ct_CC="$ac_prog" 3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3191 break 2 3192 fi 3193done 3194 done 3195IFS=$as_save_IFS 3196 3197fi 3198fi 3199ac_ct_CC=$ac_cv_prog_ac_ct_CC 3200if test -n "$ac_ct_CC"; then 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3202$as_echo "$ac_ct_CC" >&6; } 3203else 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3205$as_echo "no" >&6; } 3206fi 3207 3208 3209 test -n "$ac_ct_CC" && break 3210done 3211 3212 if test "x$ac_ct_CC" = x; then 3213 CC="" 3214 else 3215 case $cross_compiling:$ac_tool_warned in 3216yes:) 3217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3219ac_tool_warned=yes ;; 3220esac 3221 CC=$ac_ct_CC 3222 fi 3223fi 3224 3225fi 3226 3227 3228test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3230as_fn_error $? "no acceptable C compiler found in \$PATH 3231See \`config.log' for more details" "$LINENO" 5; } 3232 3233# Provide some information about the compiler. 3234$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3235set X $ac_compile 3236ac_compiler=$2 3237for ac_option in --version -v -V -qversion; do 3238 { { ac_try="$ac_compiler $ac_option >&5" 3239case "(($ac_try" in 3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3241 *) ac_try_echo=$ac_try;; 3242esac 3243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3244$as_echo "$ac_try_echo"; } >&5 3245 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3246 ac_status=$? 3247 if test -s conftest.err; then 3248 sed '10a\ 3249... rest of stderr output deleted ... 3250 10q' conftest.err >conftest.er1 3251 cat conftest.er1 >&5 3252 fi 3253 rm -f conftest.er1 conftest.err 3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3255 test $ac_status = 0; } 3256done 3257 3258cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3259/* end confdefs.h. */ 3260 3261int 3262main () 3263{ 3264 3265 ; 3266 return 0; 3267} 3268_ACEOF 3269ac_clean_files_save=$ac_clean_files 3270ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3271# Try to create an executable without -o first, disregard a.out. 3272# It will help us diagnose broken compilers, and finding out an intuition 3273# of exeext. 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3275$as_echo_n "checking whether the C compiler works... " >&6; } 3276ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3277 3278# The possible output files: 3279ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3280 3281ac_rmfiles= 3282for ac_file in $ac_files 3283do 3284 case $ac_file in 3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3286 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3287 esac 3288done 3289rm -f $ac_rmfiles 3290 3291if { { ac_try="$ac_link_default" 3292case "(($ac_try" in 3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3294 *) ac_try_echo=$ac_try;; 3295esac 3296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3297$as_echo "$ac_try_echo"; } >&5 3298 (eval "$ac_link_default") 2>&5 3299 ac_status=$? 3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3301 test $ac_status = 0; }; then : 3302 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3303# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3304# in a Makefile. We should not override ac_cv_exeext if it was cached, 3305# so that the user can short-circuit this test for compilers unknown to 3306# Autoconf. 3307for ac_file in $ac_files '' 3308do 3309 test -f "$ac_file" || continue 3310 case $ac_file in 3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3312 ;; 3313 [ab].out ) 3314 # We found the default executable, but exeext='' is most 3315 # certainly right. 3316 break;; 3317 *.* ) 3318 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3319 then :; else 3320 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3321 fi 3322 # We set ac_cv_exeext here because the later test for it is not 3323 # safe: cross compilers may not add the suffix if given an `-o' 3324 # argument, so we may need to know it at that point already. 3325 # Even if this section looks crufty: it has the advantage of 3326 # actually working. 3327 break;; 3328 * ) 3329 break;; 3330 esac 3331done 3332test "$ac_cv_exeext" = no && ac_cv_exeext= 3333 3334else 3335 ac_file='' 3336fi 3337if test -z "$ac_file"; then : 3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3339$as_echo "no" >&6; } 3340$as_echo "$as_me: failed program was:" >&5 3341sed 's/^/| /' conftest.$ac_ext >&5 3342 3343{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3345as_fn_error 77 "C compiler cannot create executables 3346See \`config.log' for more details" "$LINENO" 5; } 3347else 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3349$as_echo "yes" >&6; } 3350fi 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3352$as_echo_n "checking for C compiler default output file name... " >&6; } 3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3354$as_echo "$ac_file" >&6; } 3355ac_exeext=$ac_cv_exeext 3356 3357rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3358ac_clean_files=$ac_clean_files_save 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3360$as_echo_n "checking for suffix of executables... " >&6; } 3361if { { ac_try="$ac_link" 3362case "(($ac_try" in 3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3364 *) ac_try_echo=$ac_try;; 3365esac 3366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3367$as_echo "$ac_try_echo"; } >&5 3368 (eval "$ac_link") 2>&5 3369 ac_status=$? 3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3371 test $ac_status = 0; }; then : 3372 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3373# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3374# work properly (i.e., refer to `conftest.exe'), while it won't with 3375# `rm'. 3376for ac_file in conftest.exe conftest conftest.*; do 3377 test -f "$ac_file" || continue 3378 case $ac_file in 3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3380 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3381 break;; 3382 * ) break;; 3383 esac 3384done 3385else 3386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3388as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3389See \`config.log' for more details" "$LINENO" 5; } 3390fi 3391rm -f conftest conftest$ac_cv_exeext 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3393$as_echo "$ac_cv_exeext" >&6; } 3394 3395rm -f conftest.$ac_ext 3396EXEEXT=$ac_cv_exeext 3397ac_exeext=$EXEEXT 3398cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3399/* end confdefs.h. */ 3400#include <stdio.h> 3401int 3402main () 3403{ 3404FILE *f = fopen ("conftest.out", "w"); 3405 return ferror (f) || fclose (f) != 0; 3406 3407 ; 3408 return 0; 3409} 3410_ACEOF 3411ac_clean_files="$ac_clean_files conftest.out" 3412# Check that the compiler produces executables we can run. If not, either 3413# the compiler is broken, or we cross compile. 3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3415$as_echo_n "checking whether we are cross compiling... " >&6; } 3416if test "$cross_compiling" != yes; then 3417 { { ac_try="$ac_link" 3418case "(($ac_try" in 3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3420 *) ac_try_echo=$ac_try;; 3421esac 3422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3423$as_echo "$ac_try_echo"; } >&5 3424 (eval "$ac_link") 2>&5 3425 ac_status=$? 3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3427 test $ac_status = 0; } 3428 if { ac_try='./conftest$ac_cv_exeext' 3429 { { case "(($ac_try" in 3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3431 *) ac_try_echo=$ac_try;; 3432esac 3433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3434$as_echo "$ac_try_echo"; } >&5 3435 (eval "$ac_try") 2>&5 3436 ac_status=$? 3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3438 test $ac_status = 0; }; }; then 3439 cross_compiling=no 3440 else 3441 if test "$cross_compiling" = maybe; then 3442 cross_compiling=yes 3443 else 3444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3446as_fn_error $? "cannot run C compiled programs. 3447If you meant to cross compile, use \`--host'. 3448See \`config.log' for more details" "$LINENO" 5; } 3449 fi 3450 fi 3451fi 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3453$as_echo "$cross_compiling" >&6; } 3454 3455rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3456ac_clean_files=$ac_clean_files_save 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3458$as_echo_n "checking for suffix of object files... " >&6; } 3459if ${ac_cv_objext+:} false; then : 3460 $as_echo_n "(cached) " >&6 3461else 3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3463/* end confdefs.h. */ 3464 3465int 3466main () 3467{ 3468 3469 ; 3470 return 0; 3471} 3472_ACEOF 3473rm -f conftest.o conftest.obj 3474if { { ac_try="$ac_compile" 3475case "(($ac_try" in 3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3477 *) ac_try_echo=$ac_try;; 3478esac 3479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3480$as_echo "$ac_try_echo"; } >&5 3481 (eval "$ac_compile") 2>&5 3482 ac_status=$? 3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3484 test $ac_status = 0; }; then : 3485 for ac_file in conftest.o conftest.obj conftest.*; do 3486 test -f "$ac_file" || continue; 3487 case $ac_file in 3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3489 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3490 break;; 3491 esac 3492done 3493else 3494 $as_echo "$as_me: failed program was:" >&5 3495sed 's/^/| /' conftest.$ac_ext >&5 3496 3497{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3499as_fn_error $? "cannot compute suffix of object files: cannot compile 3500See \`config.log' for more details" "$LINENO" 5; } 3501fi 3502rm -f conftest.$ac_cv_objext conftest.$ac_ext 3503fi 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3505$as_echo "$ac_cv_objext" >&6; } 3506OBJEXT=$ac_cv_objext 3507ac_objext=$OBJEXT 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3509$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3510if ${ac_cv_c_compiler_gnu+:} false; then : 3511 $as_echo_n "(cached) " >&6 3512else 3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3514/* end confdefs.h. */ 3515 3516int 3517main () 3518{ 3519#ifndef __GNUC__ 3520 choke me 3521#endif 3522 3523 ; 3524 return 0; 3525} 3526_ACEOF 3527if ac_fn_c_try_compile "$LINENO"; then : 3528 ac_compiler_gnu=yes 3529else 3530 ac_compiler_gnu=no 3531fi 3532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3533ac_cv_c_compiler_gnu=$ac_compiler_gnu 3534 3535fi 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3537$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3538if test $ac_compiler_gnu = yes; then 3539 GCC=yes 3540else 3541 GCC= 3542fi 3543ac_test_CFLAGS=${CFLAGS+set} 3544ac_save_CFLAGS=$CFLAGS 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3546$as_echo_n "checking whether $CC accepts -g... " >&6; } 3547if ${ac_cv_prog_cc_g+:} false; then : 3548 $as_echo_n "(cached) " >&6 3549else 3550 ac_save_c_werror_flag=$ac_c_werror_flag 3551 ac_c_werror_flag=yes 3552 ac_cv_prog_cc_g=no 3553 CFLAGS="-g" 3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3555/* end confdefs.h. */ 3556 3557int 3558main () 3559{ 3560 3561 ; 3562 return 0; 3563} 3564_ACEOF 3565if ac_fn_c_try_compile "$LINENO"; then : 3566 ac_cv_prog_cc_g=yes 3567else 3568 CFLAGS="" 3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3570/* end confdefs.h. */ 3571 3572int 3573main () 3574{ 3575 3576 ; 3577 return 0; 3578} 3579_ACEOF 3580if ac_fn_c_try_compile "$LINENO"; then : 3581 3582else 3583 ac_c_werror_flag=$ac_save_c_werror_flag 3584 CFLAGS="-g" 3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3586/* end confdefs.h. */ 3587 3588int 3589main () 3590{ 3591 3592 ; 3593 return 0; 3594} 3595_ACEOF 3596if ac_fn_c_try_compile "$LINENO"; then : 3597 ac_cv_prog_cc_g=yes 3598fi 3599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3600fi 3601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3602fi 3603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3604 ac_c_werror_flag=$ac_save_c_werror_flag 3605fi 3606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3607$as_echo "$ac_cv_prog_cc_g" >&6; } 3608if test "$ac_test_CFLAGS" = set; then 3609 CFLAGS=$ac_save_CFLAGS 3610elif test $ac_cv_prog_cc_g = yes; then 3611 if test "$GCC" = yes; then 3612 CFLAGS="-g -O2" 3613 else 3614 CFLAGS="-g" 3615 fi 3616else 3617 if test "$GCC" = yes; then 3618 CFLAGS="-O2" 3619 else 3620 CFLAGS= 3621 fi 3622fi 3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3624$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3625if ${ac_cv_prog_cc_c89+:} false; then : 3626 $as_echo_n "(cached) " >&6 3627else 3628 ac_cv_prog_cc_c89=no 3629ac_save_CC=$CC 3630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3631/* end confdefs.h. */ 3632#include <stdarg.h> 3633#include <stdio.h> 3634struct stat; 3635/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3636struct buf { int x; }; 3637FILE * (*rcsopen) (struct buf *, struct stat *, int); 3638static char *e (p, i) 3639 char **p; 3640 int i; 3641{ 3642 return p[i]; 3643} 3644static char *f (char * (*g) (char **, int), char **p, ...) 3645{ 3646 char *s; 3647 va_list v; 3648 va_start (v,p); 3649 s = g (p, va_arg (v,int)); 3650 va_end (v); 3651 return s; 3652} 3653 3654/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3655 function prototypes and stuff, but not '\xHH' hex character constants. 3656 These don't provoke an error unfortunately, instead are silently treated 3657 as 'x'. The following induces an error, until -std is added to get 3658 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3659 array size at least. It's necessary to write '\x00'==0 to get something 3660 that's true only with -std. */ 3661int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3662 3663/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3664 inside strings and character constants. */ 3665#define FOO(x) 'x' 3666int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3667 3668int test (int i, double x); 3669struct s1 {int (*f) (int a);}; 3670struct s2 {int (*f) (double a);}; 3671int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3672int argc; 3673char **argv; 3674int 3675main () 3676{ 3677return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3678 ; 3679 return 0; 3680} 3681_ACEOF 3682for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3683 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3684do 3685 CC="$ac_save_CC $ac_arg" 3686 if ac_fn_c_try_compile "$LINENO"; then : 3687 ac_cv_prog_cc_c89=$ac_arg 3688fi 3689rm -f core conftest.err conftest.$ac_objext 3690 test "x$ac_cv_prog_cc_c89" != "xno" && break 3691done 3692rm -f conftest.$ac_ext 3693CC=$ac_save_CC 3694 3695fi 3696# AC_CACHE_VAL 3697case "x$ac_cv_prog_cc_c89" in 3698 x) 3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3700$as_echo "none needed" >&6; } ;; 3701 xno) 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3703$as_echo "unsupported" >&6; } ;; 3704 *) 3705 CC="$CC $ac_cv_prog_cc_c89" 3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3707$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3708esac 3709if test "x$ac_cv_prog_cc_c89" != xno; then : 3710 3711fi 3712 3713ac_ext=c 3714ac_cpp='$CPP $CPPFLAGS' 3715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3717ac_compiler_gnu=$ac_cv_c_compiler_gnu 3718 3719 3720ac_ext=c 3721ac_cpp='$CPP $CPPFLAGS' 3722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3724ac_compiler_gnu=$ac_cv_c_compiler_gnu 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3726$as_echo_n "checking how to run the C preprocessor... " >&6; } 3727# On Suns, sometimes $CPP names a directory. 3728if test -n "$CPP" && test -d "$CPP"; then 3729 CPP= 3730fi 3731if test -z "$CPP"; then 3732 if ${ac_cv_prog_CPP+:} false; then : 3733 $as_echo_n "(cached) " >&6 3734else 3735 # Double quotes because CPP needs to be expanded 3736 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3737 do 3738 ac_preproc_ok=false 3739for ac_c_preproc_warn_flag in '' yes 3740do 3741 # Use a header file that comes with gcc, so configuring glibc 3742 # with a fresh cross-compiler works. 3743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3744 # <limits.h> exists even on freestanding compilers. 3745 # On the NeXT, cc -E runs the code through the compiler's parser, 3746 # not just through cpp. "Syntax error" is here to catch this case. 3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3748/* end confdefs.h. */ 3749#ifdef __STDC__ 3750# include <limits.h> 3751#else 3752# include <assert.h> 3753#endif 3754 Syntax error 3755_ACEOF 3756if ac_fn_c_try_cpp "$LINENO"; then : 3757 3758else 3759 # Broken: fails on valid input. 3760continue 3761fi 3762rm -f conftest.err conftest.i conftest.$ac_ext 3763 3764 # OK, works on sane cases. Now check whether nonexistent headers 3765 # can be detected and how. 3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3767/* end confdefs.h. */ 3768#include <ac_nonexistent.h> 3769_ACEOF 3770if ac_fn_c_try_cpp "$LINENO"; then : 3771 # Broken: success on invalid input. 3772continue 3773else 3774 # Passes both tests. 3775ac_preproc_ok=: 3776break 3777fi 3778rm -f conftest.err conftest.i conftest.$ac_ext 3779 3780done 3781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3782rm -f conftest.i conftest.err conftest.$ac_ext 3783if $ac_preproc_ok; then : 3784 break 3785fi 3786 3787 done 3788 ac_cv_prog_CPP=$CPP 3789 3790fi 3791 CPP=$ac_cv_prog_CPP 3792else 3793 ac_cv_prog_CPP=$CPP 3794fi 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3796$as_echo "$CPP" >&6; } 3797ac_preproc_ok=false 3798for ac_c_preproc_warn_flag in '' yes 3799do 3800 # Use a header file that comes with gcc, so configuring glibc 3801 # with a fresh cross-compiler works. 3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3803 # <limits.h> exists even on freestanding compilers. 3804 # On the NeXT, cc -E runs the code through the compiler's parser, 3805 # not just through cpp. "Syntax error" is here to catch this case. 3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3807/* end confdefs.h. */ 3808#ifdef __STDC__ 3809# include <limits.h> 3810#else 3811# include <assert.h> 3812#endif 3813 Syntax error 3814_ACEOF 3815if ac_fn_c_try_cpp "$LINENO"; then : 3816 3817else 3818 # Broken: fails on valid input. 3819continue 3820fi 3821rm -f conftest.err conftest.i conftest.$ac_ext 3822 3823 # OK, works on sane cases. Now check whether nonexistent headers 3824 # can be detected and how. 3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3826/* end confdefs.h. */ 3827#include <ac_nonexistent.h> 3828_ACEOF 3829if ac_fn_c_try_cpp "$LINENO"; then : 3830 # Broken: success on invalid input. 3831continue 3832else 3833 # Passes both tests. 3834ac_preproc_ok=: 3835break 3836fi 3837rm -f conftest.err conftest.i conftest.$ac_ext 3838 3839done 3840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3841rm -f conftest.i conftest.err conftest.$ac_ext 3842if $ac_preproc_ok; then : 3843 3844else 3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3847as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3848See \`config.log' for more details" "$LINENO" 5; } 3849fi 3850 3851ac_ext=c 3852ac_cpp='$CPP $CPPFLAGS' 3853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3855ac_compiler_gnu=$ac_cv_c_compiler_gnu 3856 3857 3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3859$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3860if ${ac_cv_path_GREP+:} false; then : 3861 $as_echo_n "(cached) " >&6 3862else 3863 if test -z "$GREP"; then 3864 ac_path_GREP_found=false 3865 # Loop through the user's path and test for each of PROGNAME-LIST 3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3867for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3868do 3869 IFS=$as_save_IFS 3870 test -z "$as_dir" && as_dir=. 3871 for ac_prog in grep ggrep; do 3872 for ac_exec_ext in '' $ac_executable_extensions; do 3873 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3874 as_fn_executable_p "$ac_path_GREP" || continue 3875# Check for GNU ac_path_GREP and select it if it is found. 3876 # Check for GNU $ac_path_GREP 3877case `"$ac_path_GREP" --version 2>&1` in 3878*GNU*) 3879 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3880*) 3881 ac_count=0 3882 $as_echo_n 0123456789 >"conftest.in" 3883 while : 3884 do 3885 cat "conftest.in" "conftest.in" >"conftest.tmp" 3886 mv "conftest.tmp" "conftest.in" 3887 cp "conftest.in" "conftest.nl" 3888 $as_echo 'GREP' >> "conftest.nl" 3889 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3891 as_fn_arith $ac_count + 1 && ac_count=$as_val 3892 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3893 # Best one so far, save it but keep looking for a better one 3894 ac_cv_path_GREP="$ac_path_GREP" 3895 ac_path_GREP_max=$ac_count 3896 fi 3897 # 10*(2^10) chars as input seems more than enough 3898 test $ac_count -gt 10 && break 3899 done 3900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3901esac 3902 3903 $ac_path_GREP_found && break 3 3904 done 3905 done 3906 done 3907IFS=$as_save_IFS 3908 if test -z "$ac_cv_path_GREP"; then 3909 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3910 fi 3911else 3912 ac_cv_path_GREP=$GREP 3913fi 3914 3915fi 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3917$as_echo "$ac_cv_path_GREP" >&6; } 3918 GREP="$ac_cv_path_GREP" 3919 3920 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3922$as_echo_n "checking for egrep... " >&6; } 3923if ${ac_cv_path_EGREP+:} false; then : 3924 $as_echo_n "(cached) " >&6 3925else 3926 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3927 then ac_cv_path_EGREP="$GREP -E" 3928 else 3929 if test -z "$EGREP"; then 3930 ac_path_EGREP_found=false 3931 # Loop through the user's path and test for each of PROGNAME-LIST 3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3933for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3934do 3935 IFS=$as_save_IFS 3936 test -z "$as_dir" && as_dir=. 3937 for ac_prog in egrep; do 3938 for ac_exec_ext in '' $ac_executable_extensions; do 3939 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3940 as_fn_executable_p "$ac_path_EGREP" || continue 3941# Check for GNU ac_path_EGREP and select it if it is found. 3942 # Check for GNU $ac_path_EGREP 3943case `"$ac_path_EGREP" --version 2>&1` in 3944*GNU*) 3945 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3946*) 3947 ac_count=0 3948 $as_echo_n 0123456789 >"conftest.in" 3949 while : 3950 do 3951 cat "conftest.in" "conftest.in" >"conftest.tmp" 3952 mv "conftest.tmp" "conftest.in" 3953 cp "conftest.in" "conftest.nl" 3954 $as_echo 'EGREP' >> "conftest.nl" 3955 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3957 as_fn_arith $ac_count + 1 && ac_count=$as_val 3958 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3959 # Best one so far, save it but keep looking for a better one 3960 ac_cv_path_EGREP="$ac_path_EGREP" 3961 ac_path_EGREP_max=$ac_count 3962 fi 3963 # 10*(2^10) chars as input seems more than enough 3964 test $ac_count -gt 10 && break 3965 done 3966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3967esac 3968 3969 $ac_path_EGREP_found && break 3 3970 done 3971 done 3972 done 3973IFS=$as_save_IFS 3974 if test -z "$ac_cv_path_EGREP"; then 3975 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3976 fi 3977else 3978 ac_cv_path_EGREP=$EGREP 3979fi 3980 3981 fi 3982fi 3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3984$as_echo "$ac_cv_path_EGREP" >&6; } 3985 EGREP="$ac_cv_path_EGREP" 3986 3987 3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3989$as_echo_n "checking for ANSI C header files... " >&6; } 3990if ${ac_cv_header_stdc+:} false; then : 3991 $as_echo_n "(cached) " >&6 3992else 3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994/* end confdefs.h. */ 3995#include <stdlib.h> 3996#include <stdarg.h> 3997#include <string.h> 3998#include <float.h> 3999 4000int 4001main () 4002{ 4003 4004 ; 4005 return 0; 4006} 4007_ACEOF 4008if ac_fn_c_try_compile "$LINENO"; then : 4009 ac_cv_header_stdc=yes 4010else 4011 ac_cv_header_stdc=no 4012fi 4013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4014 4015if test $ac_cv_header_stdc = yes; then 4016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4018/* end confdefs.h. */ 4019#include <string.h> 4020 4021_ACEOF 4022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4023 $EGREP "memchr" >/dev/null 2>&1; then : 4024 4025else 4026 ac_cv_header_stdc=no 4027fi 4028rm -f conftest* 4029 4030fi 4031 4032if test $ac_cv_header_stdc = yes; then 4033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4035/* end confdefs.h. */ 4036#include <stdlib.h> 4037 4038_ACEOF 4039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4040 $EGREP "free" >/dev/null 2>&1; then : 4041 4042else 4043 ac_cv_header_stdc=no 4044fi 4045rm -f conftest* 4046 4047fi 4048 4049if test $ac_cv_header_stdc = yes; then 4050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4051 if test "$cross_compiling" = yes; then : 4052 : 4053else 4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055/* end confdefs.h. */ 4056#include <ctype.h> 4057#include <stdlib.h> 4058#if ((' ' & 0x0FF) == 0x020) 4059# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4060# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4061#else 4062# define ISLOWER(c) \ 4063 (('a' <= (c) && (c) <= 'i') \ 4064 || ('j' <= (c) && (c) <= 'r') \ 4065 || ('s' <= (c) && (c) <= 'z')) 4066# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4067#endif 4068 4069#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4070int 4071main () 4072{ 4073 int i; 4074 for (i = 0; i < 256; i++) 4075 if (XOR (islower (i), ISLOWER (i)) 4076 || toupper (i) != TOUPPER (i)) 4077 return 2; 4078 return 0; 4079} 4080_ACEOF 4081if ac_fn_c_try_run "$LINENO"; then : 4082 4083else 4084 ac_cv_header_stdc=no 4085fi 4086rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4087 conftest.$ac_objext conftest.beam conftest.$ac_ext 4088fi 4089 4090fi 4091fi 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4093$as_echo "$ac_cv_header_stdc" >&6; } 4094if test $ac_cv_header_stdc = yes; then 4095 4096$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4097 4098fi 4099 4100# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4101for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4102 inttypes.h stdint.h unistd.h 4103do : 4104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4105ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4106" 4107if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4108 cat >>confdefs.h <<_ACEOF 4109#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4110_ACEOF 4111 4112fi 4113 4114done 4115 4116 4117 4118 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4119if test "x$ac_cv_header_minix_config_h" = xyes; then : 4120 MINIX=yes 4121else 4122 MINIX= 4123fi 4124 4125 4126 if test "$MINIX" = yes; then 4127 4128$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4129 4130 4131$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4132 4133 4134$as_echo "#define _MINIX 1" >>confdefs.h 4135 4136 fi 4137 4138 4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4140$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4141if ${ac_cv_safe_to_define___extensions__+:} false; then : 4142 $as_echo_n "(cached) " >&6 4143else 4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4145/* end confdefs.h. */ 4146 4147# define __EXTENSIONS__ 1 4148 $ac_includes_default 4149int 4150main () 4151{ 4152 4153 ; 4154 return 0; 4155} 4156_ACEOF 4157if ac_fn_c_try_compile "$LINENO"; then : 4158 ac_cv_safe_to_define___extensions__=yes 4159else 4160 ac_cv_safe_to_define___extensions__=no 4161fi 4162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4163fi 4164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4165$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4166 test $ac_cv_safe_to_define___extensions__ = yes && 4167 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4168 4169 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4170 4171 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4172 4173 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4174 4175 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4176 4177 4178 4179if test "$ac_cv_header_minix_config_h" = "yes"; then 4180 4181$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 4182 4183fi 4184 4185case "$prefix" in 4186 NONE) 4187 prefix="/usr/local" 4188 ;; 4189esac 4190case "$exec_prefix" in 4191 NONE) 4192 exec_prefix="$prefix" 4193 ;; 4194esac 4195 4196# are we on MinGW? 4197if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes" 4198else 4199 if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes" 4200 else on_mingw="no"; fi 4201fi 4202 4203# 4204# Determine configuration file 4205# the eval is to evaluate shell expansion twice 4206UNBOUND_SBIN_DIR=`eval echo "${sbindir}"` 4207 4208UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"` 4209 4210UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"` 4211 4212if test $on_mingw = "no"; then 4213 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"` 4214else 4215 ub_conf_file="C:\\Program Files\\Unbound\\service.conf" 4216fi 4217 4218# Check whether --with-conf_file was given. 4219if test "${with_conf_file+set}" = set; then : 4220 withval=$with_conf_file; ub_conf_file="$withval" 4221fi 4222 4223 4224hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`" 4225 4226 4227cat >>confdefs.h <<_ACEOF 4228#define CONFIGFILE "$hdr_config" 4229_ACEOF 4230 4231ub_conf_dir=`$as_dirname -- "$ub_conf_file" || 4232$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4233 X"$ub_conf_file" : 'X\(//\)[^/]' \| \ 4234 X"$ub_conf_file" : 'X\(//\)$' \| \ 4235 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null || 4236$as_echo X"$ub_conf_file" | 4237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4238 s//\1/ 4239 q 4240 } 4241 /^X\(\/\/\)[^/].*/{ 4242 s//\1/ 4243 q 4244 } 4245 /^X\(\/\/\)$/{ 4246 s//\1/ 4247 q 4248 } 4249 /^X\(\/\).*/{ 4250 s//\1/ 4251 q 4252 } 4253 s/.*/./; q'` 4254 4255 4256# Determine run, chroot directory and pidfile locations 4257 4258# Check whether --with-run-dir was given. 4259if test "${with_run_dir+set}" = set; then : 4260 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval" 4261else 4262 if test $on_mingw = no; then 4263 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"` 4264else 4265 UNBOUND_RUN_DIR="" 4266fi 4267 4268fi 4269 4270 4271hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4272 4273 4274cat >>confdefs.h <<_ACEOF 4275#define RUN_DIR "$hdr_run" 4276_ACEOF 4277 4278 4279 4280# Check whether --with-chroot-dir was given. 4281if test "${with_chroot_dir+set}" = set; then : 4282 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval" 4283else 4284 if test $on_mingw = no; then 4285 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR" 4286else 4287 UNBOUND_CHROOT_DIR="" 4288fi 4289 4290fi 4291 4292 4293hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4294 4295 4296cat >>confdefs.h <<_ACEOF 4297#define CHROOT_DIR "$hdr_chroot" 4298_ACEOF 4299 4300 4301 4302# Check whether --with-share-dir was given. 4303if test "${with_share_dir+set}" = set; then : 4304 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval" 4305else 4306 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR" 4307fi 4308 4309 4310 4311cat >>confdefs.h <<_ACEOF 4312#define SHARE_DIR "$UNBOUND_SHARE_DIR" 4313_ACEOF 4314 4315 4316 4317# Check whether --with-pidfile was given. 4318if test "${with_pidfile+set}" = set; then : 4319 withval=$with_pidfile; UNBOUND_PIDFILE="$withval" 4320else 4321 if test $on_mingw = no; then 4322 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid" 4323else 4324 UNBOUND_PIDFILE="" 4325fi 4326 4327fi 4328 4329 4330hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4331 4332 4333cat >>confdefs.h <<_ACEOF 4334#define PIDFILE "$hdr_pid" 4335_ACEOF 4336 4337 4338 4339# Check whether --with-rootkey-file was given. 4340if test "${with_rootkey_file+set}" = set; then : 4341 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval" 4342else 4343 if test $on_mingw = no; then 4344 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key" 4345else 4346 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key" 4347fi 4348 4349fi 4350 4351 4352hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4353 4354 4355cat >>confdefs.h <<_ACEOF 4356#define ROOT_ANCHOR_FILE "$hdr_rkey" 4357_ACEOF 4358 4359 4360 4361# Check whether --with-rootcert-file was given. 4362if test "${with_rootcert_file+set}" = set; then : 4363 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval" 4364else 4365 if test $on_mingw = no; then 4366 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem" 4367else 4368 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem" 4369fi 4370 4371fi 4372 4373 4374hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4375 4376 4377cat >>confdefs.h <<_ACEOF 4378#define ROOT_CERT_FILE "$hdr_rpem" 4379_ACEOF 4380 4381 4382 4383# Check whether --with-username was given. 4384if test "${with_username+set}" = set; then : 4385 withval=$with_username; UNBOUND_USERNAME="$withval" 4386else 4387 UNBOUND_USERNAME="unbound" 4388fi 4389 4390 4391 4392cat >>confdefs.h <<_ACEOF 4393#define UB_USERNAME "$UNBOUND_USERNAME" 4394_ACEOF 4395 4396 4397 4398$as_echo "#define WINVER 0x0502" >>confdefs.h 4399 4400wnvs=`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/' ` 4401 4402 4403cat >>confdefs.h <<_ACEOF 4404#define RSRC_PACKAGE_VERSION $wnvs 4405_ACEOF 4406 4407 4408# Checks for typedefs, structures, and compiler characteristics. 4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4410$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4411if ${ac_cv_c_const+:} false; then : 4412 $as_echo_n "(cached) " >&6 4413else 4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4415/* end confdefs.h. */ 4416 4417int 4418main () 4419{ 4420 4421#ifndef __cplusplus 4422 /* Ultrix mips cc rejects this sort of thing. */ 4423 typedef int charset[2]; 4424 const charset cs = { 0, 0 }; 4425 /* SunOS 4.1.1 cc rejects this. */ 4426 char const *const *pcpcc; 4427 char **ppc; 4428 /* NEC SVR4.0.2 mips cc rejects this. */ 4429 struct point {int x, y;}; 4430 static struct point const zero = {0,0}; 4431 /* AIX XL C 1.02.0.0 rejects this. 4432 It does not let you subtract one const X* pointer from another in 4433 an arm of an if-expression whose if-part is not a constant 4434 expression */ 4435 const char *g = "string"; 4436 pcpcc = &g + (g ? g-g : 0); 4437 /* HPUX 7.0 cc rejects these. */ 4438 ++pcpcc; 4439 ppc = (char**) pcpcc; 4440 pcpcc = (char const *const *) ppc; 4441 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4442 char tx; 4443 char *t = &tx; 4444 char const *s = 0 ? (char *) 0 : (char const *) 0; 4445 4446 *t++ = 0; 4447 if (s) return 0; 4448 } 4449 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4450 int x[] = {25, 17}; 4451 const int *foo = &x[0]; 4452 ++foo; 4453 } 4454 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4455 typedef const int *iptr; 4456 iptr p = 0; 4457 ++p; 4458 } 4459 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4460 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4461 struct s { int j; const int *ap[3]; } bx; 4462 struct s *b = &bx; b->j = 5; 4463 } 4464 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4465 const int foo = 10; 4466 if (!foo) return 0; 4467 } 4468 return !cs[0] && !zero.x; 4469#endif 4470 4471 ; 4472 return 0; 4473} 4474_ACEOF 4475if ac_fn_c_try_compile "$LINENO"; then : 4476 ac_cv_c_const=yes 4477else 4478 ac_cv_c_const=no 4479fi 4480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4481fi 4482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4483$as_echo "$ac_cv_c_const" >&6; } 4484if test $ac_cv_c_const = no; then 4485 4486$as_echo "#define const /**/" >>confdefs.h 4487 4488fi 4489 4490ac_ext=c 4491ac_cpp='$CPP $CPPFLAGS' 4492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4494ac_compiler_gnu=$ac_cv_c_compiler_gnu 4495 4496# allow user to override the -g -O2 flags. 4497default_cflags=no 4498if test "x$CFLAGS" = "x" ; then 4499 4500 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4502$as_echo_n "checking whether $CC supports -g... " >&6; } 4503cache=`echo g | sed 'y%.=/+-%___p_%'` 4504if eval \${cv_prog_cc_flag_$cache+:} false; then : 4505 $as_echo_n "(cached) " >&6 4506else 4507 4508echo 'void f(void){}' >conftest.c 4509if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4510eval "cv_prog_cc_flag_$cache=yes" 4511else 4512eval "cv_prog_cc_flag_$cache=no" 4513fi 4514rm -f conftest conftest.o conftest.c 4515 4516fi 4517 4518if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4520$as_echo "yes" >&6; } 4521: 4522CFLAGS="$CFLAGS -g" 4523else 4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4525$as_echo "no" >&6; } 4526: 4527 4528fi 4529 4530 4531 4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4533$as_echo_n "checking whether $CC supports -O2... " >&6; } 4534cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4535if eval \${cv_prog_cc_flag_$cache+:} false; then : 4536 $as_echo_n "(cached) " >&6 4537else 4538 4539echo 'void f(void){}' >conftest.c 4540if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4541eval "cv_prog_cc_flag_$cache=yes" 4542else 4543eval "cv_prog_cc_flag_$cache=no" 4544fi 4545rm -f conftest conftest.o conftest.c 4546 4547fi 4548 4549if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4551$as_echo "yes" >&6; } 4552: 4553CFLAGS="$CFLAGS -O2" 4554else 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4556$as_echo "no" >&6; } 4557: 4558 4559fi 4560 4561default_cflags=yes 4562fi 4563ac_ext=c 4564ac_cpp='$CPP $CPPFLAGS' 4565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4567ac_compiler_gnu=$ac_cv_c_compiler_gnu 4568if test -n "$ac_tool_prefix"; then 4569 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4570set dummy ${ac_tool_prefix}gcc; ac_word=$2 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4572$as_echo_n "checking for $ac_word... " >&6; } 4573if ${ac_cv_prog_CC+:} false; then : 4574 $as_echo_n "(cached) " >&6 4575else 4576 if test -n "$CC"; then 4577 ac_cv_prog_CC="$CC" # Let the user override the test. 4578else 4579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4580for as_dir in $PATH 4581do 4582 IFS=$as_save_IFS 4583 test -z "$as_dir" && as_dir=. 4584 for ac_exec_ext in '' $ac_executable_extensions; do 4585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4586 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4588 break 2 4589 fi 4590done 4591 done 4592IFS=$as_save_IFS 4593 4594fi 4595fi 4596CC=$ac_cv_prog_CC 4597if test -n "$CC"; then 4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4599$as_echo "$CC" >&6; } 4600else 4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4602$as_echo "no" >&6; } 4603fi 4604 4605 4606fi 4607if test -z "$ac_cv_prog_CC"; then 4608 ac_ct_CC=$CC 4609 # Extract the first word of "gcc", so it can be a program name with args. 4610set dummy gcc; ac_word=$2 4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4612$as_echo_n "checking for $ac_word... " >&6; } 4613if ${ac_cv_prog_ac_ct_CC+:} false; then : 4614 $as_echo_n "(cached) " >&6 4615else 4616 if test -n "$ac_ct_CC"; then 4617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4618else 4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4620for as_dir in $PATH 4621do 4622 IFS=$as_save_IFS 4623 test -z "$as_dir" && as_dir=. 4624 for ac_exec_ext in '' $ac_executable_extensions; do 4625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4626 ac_cv_prog_ac_ct_CC="gcc" 4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4628 break 2 4629 fi 4630done 4631 done 4632IFS=$as_save_IFS 4633 4634fi 4635fi 4636ac_ct_CC=$ac_cv_prog_ac_ct_CC 4637if test -n "$ac_ct_CC"; then 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4639$as_echo "$ac_ct_CC" >&6; } 4640else 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4642$as_echo "no" >&6; } 4643fi 4644 4645 if test "x$ac_ct_CC" = x; then 4646 CC="" 4647 else 4648 case $cross_compiling:$ac_tool_warned in 4649yes:) 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4652ac_tool_warned=yes ;; 4653esac 4654 CC=$ac_ct_CC 4655 fi 4656else 4657 CC="$ac_cv_prog_CC" 4658fi 4659 4660if test -z "$CC"; then 4661 if test -n "$ac_tool_prefix"; then 4662 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4663set dummy ${ac_tool_prefix}cc; ac_word=$2 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4665$as_echo_n "checking for $ac_word... " >&6; } 4666if ${ac_cv_prog_CC+:} false; then : 4667 $as_echo_n "(cached) " >&6 4668else 4669 if test -n "$CC"; then 4670 ac_cv_prog_CC="$CC" # Let the user override the test. 4671else 4672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4673for as_dir in $PATH 4674do 4675 IFS=$as_save_IFS 4676 test -z "$as_dir" && as_dir=. 4677 for ac_exec_ext in '' $ac_executable_extensions; do 4678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4679 ac_cv_prog_CC="${ac_tool_prefix}cc" 4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4681 break 2 4682 fi 4683done 4684 done 4685IFS=$as_save_IFS 4686 4687fi 4688fi 4689CC=$ac_cv_prog_CC 4690if test -n "$CC"; then 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4692$as_echo "$CC" >&6; } 4693else 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4695$as_echo "no" >&6; } 4696fi 4697 4698 4699 fi 4700fi 4701if test -z "$CC"; then 4702 # Extract the first word of "cc", so it can be a program name with args. 4703set dummy cc; ac_word=$2 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4705$as_echo_n "checking for $ac_word... " >&6; } 4706if ${ac_cv_prog_CC+:} false; then : 4707 $as_echo_n "(cached) " >&6 4708else 4709 if test -n "$CC"; then 4710 ac_cv_prog_CC="$CC" # Let the user override the test. 4711else 4712 ac_prog_rejected=no 4713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4714for as_dir in $PATH 4715do 4716 IFS=$as_save_IFS 4717 test -z "$as_dir" && as_dir=. 4718 for ac_exec_ext in '' $ac_executable_extensions; do 4719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4720 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4721 ac_prog_rejected=yes 4722 continue 4723 fi 4724 ac_cv_prog_CC="cc" 4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4726 break 2 4727 fi 4728done 4729 done 4730IFS=$as_save_IFS 4731 4732if test $ac_prog_rejected = yes; then 4733 # We found a bogon in the path, so make sure we never use it. 4734 set dummy $ac_cv_prog_CC 4735 shift 4736 if test $# != 0; then 4737 # We chose a different compiler from the bogus one. 4738 # However, it has the same basename, so the bogon will be chosen 4739 # first if we set CC to just the basename; use the full file name. 4740 shift 4741 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4742 fi 4743fi 4744fi 4745fi 4746CC=$ac_cv_prog_CC 4747if test -n "$CC"; then 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4749$as_echo "$CC" >&6; } 4750else 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4752$as_echo "no" >&6; } 4753fi 4754 4755 4756fi 4757if test -z "$CC"; then 4758 if test -n "$ac_tool_prefix"; then 4759 for ac_prog in cl.exe 4760 do 4761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4762set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4764$as_echo_n "checking for $ac_word... " >&6; } 4765if ${ac_cv_prog_CC+:} false; then : 4766 $as_echo_n "(cached) " >&6 4767else 4768 if test -n "$CC"; then 4769 ac_cv_prog_CC="$CC" # Let the user override the test. 4770else 4771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4772for as_dir in $PATH 4773do 4774 IFS=$as_save_IFS 4775 test -z "$as_dir" && as_dir=. 4776 for ac_exec_ext in '' $ac_executable_extensions; do 4777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4778 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4780 break 2 4781 fi 4782done 4783 done 4784IFS=$as_save_IFS 4785 4786fi 4787fi 4788CC=$ac_cv_prog_CC 4789if test -n "$CC"; then 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4791$as_echo "$CC" >&6; } 4792else 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4794$as_echo "no" >&6; } 4795fi 4796 4797 4798 test -n "$CC" && break 4799 done 4800fi 4801if test -z "$CC"; then 4802 ac_ct_CC=$CC 4803 for ac_prog in cl.exe 4804do 4805 # Extract the first word of "$ac_prog", so it can be a program name with args. 4806set dummy $ac_prog; ac_word=$2 4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4808$as_echo_n "checking for $ac_word... " >&6; } 4809if ${ac_cv_prog_ac_ct_CC+:} false; then : 4810 $as_echo_n "(cached) " >&6 4811else 4812 if test -n "$ac_ct_CC"; then 4813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4814else 4815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4816for as_dir in $PATH 4817do 4818 IFS=$as_save_IFS 4819 test -z "$as_dir" && as_dir=. 4820 for ac_exec_ext in '' $ac_executable_extensions; do 4821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4822 ac_cv_prog_ac_ct_CC="$ac_prog" 4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4824 break 2 4825 fi 4826done 4827 done 4828IFS=$as_save_IFS 4829 4830fi 4831fi 4832ac_ct_CC=$ac_cv_prog_ac_ct_CC 4833if test -n "$ac_ct_CC"; then 4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4835$as_echo "$ac_ct_CC" >&6; } 4836else 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4838$as_echo "no" >&6; } 4839fi 4840 4841 4842 test -n "$ac_ct_CC" && break 4843done 4844 4845 if test "x$ac_ct_CC" = x; then 4846 CC="" 4847 else 4848 case $cross_compiling:$ac_tool_warned in 4849yes:) 4850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4852ac_tool_warned=yes ;; 4853esac 4854 CC=$ac_ct_CC 4855 fi 4856fi 4857 4858fi 4859 4860 4861test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4863as_fn_error $? "no acceptable C compiler found in \$PATH 4864See \`config.log' for more details" "$LINENO" 5; } 4865 4866# Provide some information about the compiler. 4867$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4868set X $ac_compile 4869ac_compiler=$2 4870for ac_option in --version -v -V -qversion; do 4871 { { ac_try="$ac_compiler $ac_option >&5" 4872case "(($ac_try" in 4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4874 *) ac_try_echo=$ac_try;; 4875esac 4876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4877$as_echo "$ac_try_echo"; } >&5 4878 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4879 ac_status=$? 4880 if test -s conftest.err; then 4881 sed '10a\ 4882... rest of stderr output deleted ... 4883 10q' conftest.err >conftest.er1 4884 cat conftest.er1 >&5 4885 fi 4886 rm -f conftest.er1 conftest.err 4887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4888 test $ac_status = 0; } 4889done 4890 4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4892$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4893if ${ac_cv_c_compiler_gnu+:} false; then : 4894 $as_echo_n "(cached) " >&6 4895else 4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4897/* end confdefs.h. */ 4898 4899int 4900main () 4901{ 4902#ifndef __GNUC__ 4903 choke me 4904#endif 4905 4906 ; 4907 return 0; 4908} 4909_ACEOF 4910if ac_fn_c_try_compile "$LINENO"; then : 4911 ac_compiler_gnu=yes 4912else 4913 ac_compiler_gnu=no 4914fi 4915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4916ac_cv_c_compiler_gnu=$ac_compiler_gnu 4917 4918fi 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4920$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4921if test $ac_compiler_gnu = yes; then 4922 GCC=yes 4923else 4924 GCC= 4925fi 4926ac_test_CFLAGS=${CFLAGS+set} 4927ac_save_CFLAGS=$CFLAGS 4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4929$as_echo_n "checking whether $CC accepts -g... " >&6; } 4930if ${ac_cv_prog_cc_g+:} false; then : 4931 $as_echo_n "(cached) " >&6 4932else 4933 ac_save_c_werror_flag=$ac_c_werror_flag 4934 ac_c_werror_flag=yes 4935 ac_cv_prog_cc_g=no 4936 CFLAGS="-g" 4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4938/* end confdefs.h. */ 4939 4940int 4941main () 4942{ 4943 4944 ; 4945 return 0; 4946} 4947_ACEOF 4948if ac_fn_c_try_compile "$LINENO"; then : 4949 ac_cv_prog_cc_g=yes 4950else 4951 CFLAGS="" 4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4953/* end confdefs.h. */ 4954 4955int 4956main () 4957{ 4958 4959 ; 4960 return 0; 4961} 4962_ACEOF 4963if ac_fn_c_try_compile "$LINENO"; then : 4964 4965else 4966 ac_c_werror_flag=$ac_save_c_werror_flag 4967 CFLAGS="-g" 4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4969/* end confdefs.h. */ 4970 4971int 4972main () 4973{ 4974 4975 ; 4976 return 0; 4977} 4978_ACEOF 4979if ac_fn_c_try_compile "$LINENO"; then : 4980 ac_cv_prog_cc_g=yes 4981fi 4982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4983fi 4984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4985fi 4986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4987 ac_c_werror_flag=$ac_save_c_werror_flag 4988fi 4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4990$as_echo "$ac_cv_prog_cc_g" >&6; } 4991if test "$ac_test_CFLAGS" = set; then 4992 CFLAGS=$ac_save_CFLAGS 4993elif test $ac_cv_prog_cc_g = yes; then 4994 if test "$GCC" = yes; then 4995 CFLAGS="-g -O2" 4996 else 4997 CFLAGS="-g" 4998 fi 4999else 5000 if test "$GCC" = yes; then 5001 CFLAGS="-O2" 5002 else 5003 CFLAGS= 5004 fi 5005fi 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5007$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5008if ${ac_cv_prog_cc_c89+:} false; then : 5009 $as_echo_n "(cached) " >&6 5010else 5011 ac_cv_prog_cc_c89=no 5012ac_save_CC=$CC 5013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5014/* end confdefs.h. */ 5015#include <stdarg.h> 5016#include <stdio.h> 5017struct stat; 5018/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5019struct buf { int x; }; 5020FILE * (*rcsopen) (struct buf *, struct stat *, int); 5021static char *e (p, i) 5022 char **p; 5023 int i; 5024{ 5025 return p[i]; 5026} 5027static char *f (char * (*g) (char **, int), char **p, ...) 5028{ 5029 char *s; 5030 va_list v; 5031 va_start (v,p); 5032 s = g (p, va_arg (v,int)); 5033 va_end (v); 5034 return s; 5035} 5036 5037/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5038 function prototypes and stuff, but not '\xHH' hex character constants. 5039 These don't provoke an error unfortunately, instead are silently treated 5040 as 'x'. The following induces an error, until -std is added to get 5041 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5042 array size at least. It's necessary to write '\x00'==0 to get something 5043 that's true only with -std. */ 5044int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5045 5046/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5047 inside strings and character constants. */ 5048#define FOO(x) 'x' 5049int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5050 5051int test (int i, double x); 5052struct s1 {int (*f) (int a);}; 5053struct s2 {int (*f) (double a);}; 5054int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5055int argc; 5056char **argv; 5057int 5058main () 5059{ 5060return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5061 ; 5062 return 0; 5063} 5064_ACEOF 5065for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5066 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5067do 5068 CC="$ac_save_CC $ac_arg" 5069 if ac_fn_c_try_compile "$LINENO"; then : 5070 ac_cv_prog_cc_c89=$ac_arg 5071fi 5072rm -f core conftest.err conftest.$ac_objext 5073 test "x$ac_cv_prog_cc_c89" != "xno" && break 5074done 5075rm -f conftest.$ac_ext 5076CC=$ac_save_CC 5077 5078fi 5079# AC_CACHE_VAL 5080case "x$ac_cv_prog_cc_c89" in 5081 x) 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5083$as_echo "none needed" >&6; } ;; 5084 xno) 5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5086$as_echo "unsupported" >&6; } ;; 5087 *) 5088 CC="$CC $ac_cv_prog_cc_c89" 5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5090$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5091esac 5092if test "x$ac_cv_prog_cc_c89" != xno; then : 5093 5094fi 5095 5096ac_ext=c 5097ac_cpp='$CPP $CPPFLAGS' 5098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5100ac_compiler_gnu=$ac_cv_c_compiler_gnu 5101 5102 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 5104$as_echo_n "checking $CC dependency flag... " >&6; } 5105echo 'void f(){}' >conftest.c 5106if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5107 DEPFLAG="-MM" 5108else 5109 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5110 DEPFLAG="-xM1" 5111 else 5112 DEPFLAG="-MM" # dunno do something 5113 fi 5114fi 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 5116$as_echo "$DEPFLAG" >&6; } 5117rm -f conftest.c 5118 5119 5120 5121 5122 5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 5124$as_echo_n "checking whether $CC supports -Werror... " >&6; } 5125cache=`echo Werror | sed 'y%.=/+-%___p_%'` 5126if eval \${cv_prog_cc_flag_$cache+:} false; then : 5127 $as_echo_n "(cached) " >&6 5128else 5129 5130echo 'void f(void){}' >conftest.c 5131if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 5132eval "cv_prog_cc_flag_$cache=yes" 5133else 5134eval "cv_prog_cc_flag_$cache=no" 5135fi 5136rm -f conftest conftest.o conftest.c 5137 5138fi 5139 5140if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5142$as_echo "yes" >&6; } 5143: 5144ERRFLAG="-Werror" 5145else 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5147$as_echo "no" >&6; } 5148: 5149ERRFLAG="-errwarn" 5150fi 5151 5152 5153 5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5155$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5156cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5157if eval \${cv_prog_cc_flag_$cache+:} false; then : 5158 $as_echo_n "(cached) " >&6 5159else 5160 5161echo 'void f(void){}' >conftest.c 5162if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5163eval "cv_prog_cc_flag_$cache=yes" 5164else 5165eval "cv_prog_cc_flag_$cache=no" 5166fi 5167rm -f conftest conftest.o conftest.c 5168 5169fi 5170 5171if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5173$as_echo "yes" >&6; } 5174: 5175ERRFLAG="$ERRFLAG -Wall" 5176else 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5178$as_echo "no" >&6; } 5179: 5180ERRFLAG="$ERRFLAG -errfmt" 5181fi 5182 5183 5184 5185 5186 5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 5188$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 5189cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 5190if eval \${cv_prog_cc_flag_$cache+:} false; then : 5191 $as_echo_n "(cached) " >&6 5192else 5193 5194echo 'void f(void){}' >conftest.c 5195if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 5196eval "cv_prog_cc_flag_$cache=yes" 5197else 5198eval "cv_prog_cc_flag_$cache=no" 5199fi 5200rm -f conftest conftest.o conftest.c 5201 5202fi 5203 5204if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5206$as_echo "yes" >&6; } 5207: 5208C99FLAG="-std=c99" 5209else 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5211$as_echo "no" >&6; } 5212: 5213 5214fi 5215 5216 5217 5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 5219$as_echo_n "checking whether $CC supports -xc99... " >&6; } 5220cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 5221if eval \${cv_prog_cc_flag_$cache+:} false; then : 5222 $as_echo_n "(cached) " >&6 5223else 5224 5225echo 'void f(void){}' >conftest.c 5226if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 5227eval "cv_prog_cc_flag_$cache=yes" 5228else 5229eval "cv_prog_cc_flag_$cache=no" 5230fi 5231rm -f conftest conftest.o conftest.c 5232 5233fi 5234 5235if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5237$as_echo "yes" >&6; } 5238: 5239C99FLAG="-xc99" 5240else 5241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5242$as_echo "no" >&6; } 5243: 5244 5245fi 5246 5247 5248for ac_header in getopt.h time.h 5249do : 5250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5251ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5252" 5253if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5254 cat >>confdefs.h <<_ACEOF 5255#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5256_ACEOF 5257 5258fi 5259 5260done 5261 5262 5263 5264 5265 5266{ $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 5267$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; } 5268cache=`$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` 5269if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5270 $as_echo_n "(cached) " >&6 5271else 5272 5273echo ' 5274#include "confdefs.h" 5275#include <stdlib.h> 5276#include <ctype.h> 5277#include <sys/time.h> 5278#ifdef HAVE_TIME_H 5279#include <time.h> 5280#endif 5281#include <unistd.h> 5282#include <netdb.h> 5283#ifdef HAVE_GETOPT_H 5284#include <getopt.h> 5285#endif 5286 5287int test() { 5288 int a; 5289 char **opts = NULL; 5290 struct timeval tv; 5291 char *t; 5292 time_t time = 0; 5293 char *buf = NULL; 5294 const char* str = NULL; 5295 struct msghdr msg; 5296 msg.msg_control = 0; 5297 t = ctime_r(&time, buf); 5298 tv.tv_usec = 10; 5299 srandom(32); 5300 a = getopt(2, opts, "a"); 5301 a = isascii(32); 5302 str = gai_strerror(0); 5303 if(str && t && tv.tv_usec && msg.msg_control) 5304 a = 0; 5305 return a; 5306} 5307' > conftest.c 5308echo 'void f(){}' >>conftest.c 5309if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5310eval "cv_prog_cc_flag_needed_$cache=no" 5311else 5312 5313if 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 5314eval "cv_prog_cc_flag_needed_$cache=yes" 5315else 5316eval "cv_prog_cc_flag_needed_$cache=fail" 5317#echo 'Test with flag fails too!' 5318#cat conftest.c 5319#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" 5320#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` 5321#exit 1 5322fi 5323 5324fi 5325rm -f conftest conftest.c conftest.o 5326 5327fi 5328 5329if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5331$as_echo "yes" >&6; } 5332: 5333CFLAGS="$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" 5334else 5335if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5337$as_echo "no" >&6; } 5338#echo 'Test with flag is no!' 5339#cat conftest.c 5340#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5341#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5342#exit 1 5343: 5344 5345else 5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5347$as_echo "failed" >&6; } 5348: 5349 5350fi 5351fi 5352 5353 5354 5355 5356 5357{ $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 5358$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; } 5359cache=`$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` 5360if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5361 $as_echo_n "(cached) " >&6 5362else 5363 5364echo ' 5365#include "confdefs.h" 5366#include <stdlib.h> 5367#include <ctype.h> 5368#include <sys/time.h> 5369#ifdef HAVE_TIME_H 5370#include <time.h> 5371#endif 5372#include <unistd.h> 5373#include <netdb.h> 5374#ifdef HAVE_GETOPT_H 5375#include <getopt.h> 5376#endif 5377 5378int test() { 5379 int a; 5380 char **opts = NULL; 5381 struct timeval tv; 5382 char *t; 5383 time_t time = 0; 5384 char *buf = NULL; 5385 const char* str = NULL; 5386 struct msghdr msg; 5387 msg.msg_control = 0; 5388 t = ctime_r(&time, buf); 5389 tv.tv_usec = 10; 5390 srandom(32); 5391 a = getopt(2, opts, "a"); 5392 a = isascii(32); 5393 str = gai_strerror(0); 5394 if(str && t && tv.tv_usec && msg.msg_control) 5395 a = 0; 5396 return a; 5397} 5398' > conftest.c 5399echo 'void f(){}' >>conftest.c 5400if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5401eval "cv_prog_cc_flag_needed_$cache=no" 5402else 5403 5404if 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 5405eval "cv_prog_cc_flag_needed_$cache=yes" 5406else 5407eval "cv_prog_cc_flag_needed_$cache=fail" 5408#echo 'Test with flag fails too!' 5409#cat conftest.c 5410#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" 5411#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` 5412#exit 1 5413fi 5414 5415fi 5416rm -f conftest conftest.c conftest.o 5417 5418fi 5419 5420if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5422$as_echo "yes" >&6; } 5423: 5424CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 5425else 5426if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5428$as_echo "no" >&6; } 5429#echo 'Test with flag is no!' 5430#cat conftest.c 5431#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5432#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5433#exit 1 5434: 5435 5436else 5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5438$as_echo "failed" >&6; } 5439: 5440 5441fi 5442fi 5443 5444 5445 5446 5447 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 5449$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 5450cache=`$as_echo "$C99FLAG" | $as_tr_sh` 5451if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 5455echo ' 5456#include <stdbool.h> 5457#include <ctype.h> 5458int test() { 5459 int a = 0; 5460 return a; 5461} 5462' > conftest.c 5463echo 'void f(){}' >>conftest.c 5464if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5465eval "cv_prog_cc_flag_needed_$cache=no" 5466else 5467 5468if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 5469eval "cv_prog_cc_flag_needed_$cache=yes" 5470else 5471eval "cv_prog_cc_flag_needed_$cache=fail" 5472#echo 'Test with flag fails too!' 5473#cat conftest.c 5474#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5475#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5476#exit 1 5477fi 5478 5479fi 5480rm -f conftest conftest.c conftest.o 5481 5482fi 5483 5484if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5486$as_echo "yes" >&6; } 5487: 5488CFLAGS="$CFLAGS $C99FLAG" 5489else 5490if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5492$as_echo "no" >&6; } 5493#echo 'Test with flag is no!' 5494#cat conftest.c 5495#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5496#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5497#exit 1 5498: 5499 5500else 5501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5502$as_echo "failed" >&6; } 5503: 5504 5505fi 5506fi 5507 5508 5509 5510 5511 5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5 5513$as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; } 5514cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE 5515if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5516 $as_echo_n "(cached) " >&6 5517else 5518 5519echo ' 5520#include <ctype.h> 5521 5522int test() { 5523 int a; 5524 a = isascii(32); 5525 return a; 5526} 5527' > conftest.c 5528echo 'void f(){}' >>conftest.c 5529if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5530eval "cv_prog_cc_flag_needed_$cache=no" 5531else 5532 5533if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5534eval "cv_prog_cc_flag_needed_$cache=yes" 5535else 5536eval "cv_prog_cc_flag_needed_$cache=fail" 5537#echo 'Test with flag fails too!' 5538#cat conftest.c 5539#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 5540#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 5541#exit 1 5542fi 5543 5544fi 5545rm -f conftest conftest.c conftest.o 5546 5547fi 5548 5549if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5551$as_echo "yes" >&6; } 5552: 5553CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE" 5554else 5555if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5557$as_echo "no" >&6; } 5558#echo 'Test with flag is no!' 5559#cat conftest.c 5560#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 5561#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 5562#exit 1 5563: 5564 5565else 5566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5567$as_echo "failed" >&6; } 5568: 5569 5570fi 5571fi 5572 5573 5574 5575 5576 5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 5578$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 5579cache=_D_GNU_SOURCE 5580if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 5584echo ' 5585#include <netinet/in.h> 5586 5587int test() { 5588 struct in6_pktinfo inf; 5589 int a = (int)sizeof(inf); 5590 return a; 5591} 5592' > conftest.c 5593echo 'void f(){}' >>conftest.c 5594if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5595eval "cv_prog_cc_flag_needed_$cache=no" 5596else 5597 5598if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5599eval "cv_prog_cc_flag_needed_$cache=yes" 5600else 5601eval "cv_prog_cc_flag_needed_$cache=fail" 5602#echo 'Test with flag fails too!' 5603#cat conftest.c 5604#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5605#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5606#exit 1 5607fi 5608 5609fi 5610rm -f conftest conftest.c conftest.o 5611 5612fi 5613 5614if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5616$as_echo "yes" >&6; } 5617: 5618CFLAGS="$CFLAGS -D_GNU_SOURCE" 5619else 5620if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5622$as_echo "no" >&6; } 5623#echo 'Test with flag is no!' 5624#cat conftest.c 5625#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5626#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5627#exit 1 5628: 5629 5630else 5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5632$as_echo "failed" >&6; } 5633: 5634 5635fi 5636fi 5637 5638 5639# check again for GNU_SOURCE for setresgid. May fail if setresgid 5640# is not available at all. -D_FRSRESGID is to make this check unique. 5641# otherwise we would get the previous cached result. 5642 5643 5644 5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 5646$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 5647cache=_D_GNU_SOURCE__D_FRSRESGID 5648if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5649 $as_echo_n "(cached) " >&6 5650else 5651 5652echo ' 5653#include <unistd.h> 5654 5655int test() { 5656 int a = setresgid(0,0,0); 5657 a = setresuid(0,0,0); 5658 return a; 5659} 5660' > conftest.c 5661echo 'void f(){}' >>conftest.c 5662if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5663eval "cv_prog_cc_flag_needed_$cache=no" 5664else 5665 5666if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 5667eval "cv_prog_cc_flag_needed_$cache=yes" 5668else 5669eval "cv_prog_cc_flag_needed_$cache=fail" 5670#echo 'Test with flag fails too!' 5671#cat conftest.c 5672#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5673#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5674#exit 1 5675fi 5676 5677fi 5678rm -f conftest conftest.c conftest.o 5679 5680fi 5681 5682if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5684$as_echo "yes" >&6; } 5685: 5686CFLAGS="$CFLAGS -D_GNU_SOURCE" 5687else 5688if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5690$as_echo "no" >&6; } 5691#echo 'Test with flag is no!' 5692#cat conftest.c 5693#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5694#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5695#exit 1 5696: 5697 5698else 5699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5700$as_echo "failed" >&6; } 5701: 5702 5703fi 5704fi 5705 5706 5707 5708 5709 5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 5711$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 5712cache=_D_POSIX_C_SOURCE_200112 5713if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5714 $as_echo_n "(cached) " >&6 5715else 5716 5717echo ' 5718#include "confdefs.h" 5719#ifdef HAVE_TIME_H 5720#include <time.h> 5721#endif 5722#include <netdb.h> 5723 5724int test() { 5725 int a = 0; 5726 char *t; 5727 time_t time = 0; 5728 char *buf = NULL; 5729 const char* str = NULL; 5730 t = ctime_r(&time, buf); 5731 str = gai_strerror(0); 5732 if(t && str) 5733 a = 0; 5734 return a; 5735} 5736' > conftest.c 5737echo 'void f(){}' >>conftest.c 5738if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5739eval "cv_prog_cc_flag_needed_$cache=no" 5740else 5741 5742if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 5743eval "cv_prog_cc_flag_needed_$cache=yes" 5744else 5745eval "cv_prog_cc_flag_needed_$cache=fail" 5746#echo 'Test with flag fails too!' 5747#cat conftest.c 5748#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5749#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5750#exit 1 5751fi 5752 5753fi 5754rm -f conftest conftest.c conftest.o 5755 5756fi 5757 5758if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5760$as_echo "yes" >&6; } 5761: 5762CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 5763else 5764if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5766$as_echo "no" >&6; } 5767#echo 'Test with flag is no!' 5768#cat conftest.c 5769#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5770#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5771#exit 1 5772: 5773 5774else 5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5776$as_echo "failed" >&6; } 5777: 5778 5779fi 5780fi 5781 5782 5783 5784 5785 5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 5787$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 5788cache=_D__EXTENSIONS__ 5789if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5790 $as_echo_n "(cached) " >&6 5791else 5792 5793echo ' 5794#include "confdefs.h" 5795#include <stdlib.h> 5796#include <ctype.h> 5797#include <sys/time.h> 5798#ifdef HAVE_TIME_H 5799#include <time.h> 5800#endif 5801#include <unistd.h> 5802#ifdef HAVE_GETOPT_H 5803#include <getopt.h> 5804#endif 5805 5806int test() { 5807 int a; 5808 char **opts = NULL; 5809 struct timeval tv; 5810 tv.tv_usec = 10; 5811 srandom(32); 5812 a = getopt(2, opts, "a"); 5813 a = isascii(32); 5814 if(tv.tv_usec) 5815 a = 0; 5816 return a; 5817} 5818' > conftest.c 5819echo 'void f(){}' >>conftest.c 5820if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5821eval "cv_prog_cc_flag_needed_$cache=no" 5822else 5823 5824if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 5825eval "cv_prog_cc_flag_needed_$cache=yes" 5826else 5827eval "cv_prog_cc_flag_needed_$cache=fail" 5828#echo 'Test with flag fails too!' 5829#cat conftest.c 5830#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5831#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5832#exit 1 5833fi 5834 5835fi 5836rm -f conftest conftest.c conftest.o 5837 5838fi 5839 5840if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5842$as_echo "yes" >&6; } 5843: 5844CFLAGS="$CFLAGS -D__EXTENSIONS__" 5845else 5846if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5848$as_echo "no" >&6; } 5849#echo 'Test with flag is no!' 5850#cat conftest.c 5851#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5852#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5853#exit 1 5854: 5855 5856else 5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5858$as_echo "failed" >&6; } 5859: 5860 5861fi 5862fi 5863 5864 5865 5866 5867# debug mode flags warnings 5868# Check whether --enable-checking was given. 5869if test "${enable_checking+set}" = set; then : 5870 enableval=$enable_checking; 5871fi 5872 5873# Check whether --enable-debug was given. 5874if test "${enable_debug+set}" = set; then : 5875 enableval=$enable_debug; 5876fi 5877 5878if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; 5879else debug_enabled="$enable_checking"; fi 5880 5881case "$debug_enabled" in 5882 yes) 5883 5884 5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 5886$as_echo_n "checking whether $CC supports -W... " >&6; } 5887cache=`echo W | sed 'y%.=/+-%___p_%'` 5888if eval \${cv_prog_cc_flag_$cache+:} false; then : 5889 $as_echo_n "(cached) " >&6 5890else 5891 5892echo 'void f(void){}' >conftest.c 5893if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 5894eval "cv_prog_cc_flag_$cache=yes" 5895else 5896eval "cv_prog_cc_flag_$cache=no" 5897fi 5898rm -f conftest conftest.o conftest.c 5899 5900fi 5901 5902if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5904$as_echo "yes" >&6; } 5905: 5906CFLAGS="$CFLAGS -W" 5907else 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5909$as_echo "no" >&6; } 5910: 5911 5912fi 5913 5914 5915 5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5917$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5918cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5919if eval \${cv_prog_cc_flag_$cache+:} false; then : 5920 $as_echo_n "(cached) " >&6 5921else 5922 5923echo 'void f(void){}' >conftest.c 5924if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5925eval "cv_prog_cc_flag_$cache=yes" 5926else 5927eval "cv_prog_cc_flag_$cache=no" 5928fi 5929rm -f conftest conftest.o conftest.c 5930 5931fi 5932 5933if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5935$as_echo "yes" >&6; } 5936: 5937CFLAGS="$CFLAGS -Wall" 5938else 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5940$as_echo "no" >&6; } 5941: 5942 5943fi 5944 5945 5946 5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 5948$as_echo_n "checking whether $CC supports -Wextra... " >&6; } 5949cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 5950if eval \${cv_prog_cc_flag_$cache+:} false; then : 5951 $as_echo_n "(cached) " >&6 5952else 5953 5954echo 'void f(void){}' >conftest.c 5955if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then 5956eval "cv_prog_cc_flag_$cache=yes" 5957else 5958eval "cv_prog_cc_flag_$cache=no" 5959fi 5960rm -f conftest conftest.o conftest.c 5961 5962fi 5963 5964if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5966$as_echo "yes" >&6; } 5967: 5968CFLAGS="$CFLAGS -Wextra" 5969else 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5971$as_echo "no" >&6; } 5972: 5973 5974fi 5975 5976 5977 5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 5979$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 5980cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'` 5981if eval \${cv_prog_cc_flag_$cache+:} false; then : 5982 $as_echo_n "(cached) " >&6 5983else 5984 5985echo 'void f(void){}' >conftest.c 5986if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 5987eval "cv_prog_cc_flag_$cache=yes" 5988else 5989eval "cv_prog_cc_flag_$cache=no" 5990fi 5991rm -f conftest conftest.o conftest.c 5992 5993fi 5994 5995if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5997$as_echo "yes" >&6; } 5998: 5999CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6000else 6001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6002$as_echo "no" >&6; } 6003: 6004 6005fi 6006 6007 6008$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h 6009 6010 ;; 6011 no|*) 6012 # nothing to do. 6013 ;; 6014esac 6015if test "$default_cflags" = "yes"; then 6016 # only when CFLAGS was "" at the start, if the users wants to 6017 # override we shouldn't add default cflags, because they wouldn't 6018 # be able to turn off these options and set the CFLAGS wanted. 6019 6020 # Check whether --enable-flto was given. 6021if test "${enable_flto+set}" = set; then : 6022 enableval=$enable_flto; 6023fi 6024 6025 if test "x$enable_flto" != "xno"; then : 6026 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 6028$as_echo_n "checking if $CC supports -flto... " >&6; } 6029 BAKCFLAGS="$CFLAGS" 6030 CFLAGS="$CFLAGS -flto" 6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6032/* end confdefs.h. */ 6033 6034int 6035main () 6036{ 6037 6038 ; 6039 return 0; 6040} 6041_ACEOF 6042if ac_fn_c_try_link "$LINENO"; then : 6043 6044 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then 6045 CFLAGS="$BAKCFLAGS" 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6047$as_echo "no" >&6; } 6048 else 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6050$as_echo "yes" >&6; } 6051 fi 6052 rm -f conftest conftest.c conftest.o 6053 6054else 6055 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6056$as_echo "no" >&6; } 6057fi 6058rm -f core conftest.err conftest.$ac_objext \ 6059 conftest$ac_exeext conftest.$ac_ext 6060 6061fi 6062 6063 6064 # Check whether --enable-pie was given. 6065if test "${enable_pie+set}" = set; then : 6066 enableval=$enable_pie; 6067fi 6068 6069 if test "x$enable_pie" = "xyes"; then : 6070 6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5 6072$as_echo_n "checking if $CC supports PIE... " >&6; } 6073 BAKLDFLAGS="$LDFLAGS" 6074 BAKCFLAGS="$CFLAGS" 6075 LDFLAGS="$LDFLAGS -pie" 6076 CFLAGS="$CFLAGS -fPIE" 6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6078/* end confdefs.h. */ 6079 6080int 6081main () 6082{ 6083 6084 ; 6085 return 0; 6086} 6087_ACEOF 6088if ac_fn_c_try_link "$LINENO"; then : 6089 6090 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6091 LDFLAGS="$BAKLDFLAGS" 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6093$as_echo "no" >&6; } 6094 else 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6096$as_echo "yes" >&6; } 6097 fi 6098 rm -f conftest conftest.c conftest.o 6099 6100else 6101 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6102$as_echo "no" >&6; } 6103fi 6104rm -f core conftest.err conftest.$ac_objext \ 6105 conftest$ac_exeext conftest.$ac_ext 6106 6107fi 6108 6109 6110 # Check whether --enable-relro_now was given. 6111if test "${enable_relro_now+set}" = set; then : 6112 enableval=$enable_relro_now; 6113fi 6114 6115 if test "x$enable_relro_now" = "xyes"; then : 6116 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5 6118$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; } 6119 BAKLDFLAGS="$LDFLAGS" 6120 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now" 6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6122/* end confdefs.h. */ 6123 6124int 6125main () 6126{ 6127 6128 ; 6129 return 0; 6130} 6131_ACEOF 6132if ac_fn_c_try_link "$LINENO"; then : 6133 6134 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6135 LDFLAGS="$BAKLDFLAGS" 6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6137$as_echo "no" >&6; } 6138 else 6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6140$as_echo "yes" >&6; } 6141 fi 6142 rm -f conftest conftest.c conftest.o 6143 6144else 6145 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6146$as_echo "no" >&6; } 6147fi 6148rm -f core conftest.err conftest.$ac_objext \ 6149 conftest$ac_exeext conftest.$ac_ext 6150 6151fi 6152 6153fi 6154 6155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6156$as_echo_n "checking for inline... " >&6; } 6157if ${ac_cv_c_inline+:} false; then : 6158 $as_echo_n "(cached) " >&6 6159else 6160 ac_cv_c_inline=no 6161for ac_kw in inline __inline__ __inline; do 6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6163/* end confdefs.h. */ 6164#ifndef __cplusplus 6165typedef int foo_t; 6166static $ac_kw foo_t static_foo () {return 0; } 6167$ac_kw foo_t foo () {return 0; } 6168#endif 6169 6170_ACEOF 6171if ac_fn_c_try_compile "$LINENO"; then : 6172 ac_cv_c_inline=$ac_kw 6173fi 6174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6175 test "$ac_cv_c_inline" != no && break 6176done 6177 6178fi 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6180$as_echo "$ac_cv_c_inline" >&6; } 6181 6182case $ac_cv_c_inline in 6183 inline | yes) ;; 6184 *) 6185 case $ac_cv_c_inline in 6186 no) ac_val=;; 6187 *) ac_val=$ac_cv_c_inline;; 6188 esac 6189 cat >>confdefs.h <<_ACEOF 6190#ifndef __cplusplus 6191#define inline $ac_val 6192#endif 6193_ACEOF 6194 ;; 6195esac 6196 6197 6198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 6199$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 6200if ${ac_cv_c_format_attribute+:} false; then : 6201 $as_echo_n "(cached) " >&6 6202else 6203 ac_cv_c_format_attribute=no 6204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6205/* end confdefs.h. */ 6206#include <stdio.h> 6207void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6208void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6209 6210int 6211main () 6212{ 6213 6214 f ("%s", "str"); 6215 6216 ; 6217 return 0; 6218} 6219_ACEOF 6220if ac_fn_c_try_compile "$LINENO"; then : 6221 ac_cv_c_format_attribute="yes" 6222else 6223 ac_cv_c_format_attribute="no" 6224fi 6225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6226 6227fi 6228 6229 6230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 6231$as_echo "$ac_cv_c_format_attribute" >&6; } 6232if test $ac_cv_c_format_attribute = yes; then 6233 6234$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 6235 6236fi 6237 6238 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 6240$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 6241if ${ac_cv_c_unused_attribute+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 ac_cv_c_unused_attribute=no 6245cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6246/* end confdefs.h. */ 6247#include <stdio.h> 6248void f (char *u __attribute__((unused))); 6249 6250int 6251main () 6252{ 6253 6254 f ("x"); 6255 6256 ; 6257 return 0; 6258} 6259_ACEOF 6260if ac_fn_c_try_compile "$LINENO"; then : 6261 ac_cv_c_unused_attribute="yes" 6262else 6263 ac_cv_c_unused_attribute="no" 6264fi 6265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6266 6267fi 6268 6269 6270 6271 6272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 6273$as_echo "$ac_cv_c_unused_attribute" >&6; } 6274if test $ac_cv_c_unused_attribute = yes; then 6275 6276$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 6277 6278fi 6279 6280 6281 6282 6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5 6284$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; } 6285if ${ac_cv_c_weak_attribute+:} false; then : 6286 $as_echo_n "(cached) " >&6 6287else 6288 ac_cv_c_weak_attribute=no 6289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6290/* end confdefs.h. */ 6291 #include <stdio.h> 6292__attribute__((weak)) void f(int x) { printf("%d", x); } 6293 6294int 6295main () 6296{ 6297 6298 f(1); 6299 6300 ; 6301 return 0; 6302} 6303_ACEOF 6304if ac_fn_c_try_compile "$LINENO"; then : 6305 ac_cv_c_weak_attribute="yes" 6306else 6307 ac_cv_c_weak_attribute="no" 6308fi 6309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6310 6311fi 6312 6313 6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5 6315$as_echo "$ac_cv_c_weak_attribute" >&6; } 6316if test $ac_cv_c_weak_attribute = yes; then 6317 6318$as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h 6319 6320 6321$as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h 6322 6323fi 6324 6325 6326 6327 6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5 6329$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; } 6330if ${ac_cv_c_noreturn_attribute+:} false; then : 6331 $as_echo_n "(cached) " >&6 6332else 6333 ac_cv_c_noreturn_attribute=no 6334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6335/* end confdefs.h. */ 6336 #include <stdio.h> 6337__attribute__((noreturn)) void f(int x) { printf("%d", x); } 6338 6339int 6340main () 6341{ 6342 6343 f(1); 6344 6345 ; 6346 return 0; 6347} 6348_ACEOF 6349if ac_fn_c_try_compile "$LINENO"; then : 6350 ac_cv_c_noreturn_attribute="yes" 6351else 6352 ac_cv_c_noreturn_attribute="no" 6353fi 6354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6355 6356fi 6357 6358 6359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5 6360$as_echo "$ac_cv_c_noreturn_attribute" >&6; } 6361if test $ac_cv_c_noreturn_attribute = yes; then 6362 6363$as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h 6364 6365 6366$as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h 6367 6368fi 6369 6370 6371if test "$srcdir" != "."; then 6372 CPPFLAGS="$CPPFLAGS -I$srcdir" 6373fi 6374 6375 6376 6377 6378 6379for ac_prog in flex lex 6380do 6381 # Extract the first word of "$ac_prog", so it can be a program name with args. 6382set dummy $ac_prog; ac_word=$2 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6384$as_echo_n "checking for $ac_word... " >&6; } 6385if ${ac_cv_prog_LEX+:} false; then : 6386 $as_echo_n "(cached) " >&6 6387else 6388 if test -n "$LEX"; then 6389 ac_cv_prog_LEX="$LEX" # Let the user override the test. 6390else 6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6392for as_dir in $PATH 6393do 6394 IFS=$as_save_IFS 6395 test -z "$as_dir" && as_dir=. 6396 for ac_exec_ext in '' $ac_executable_extensions; do 6397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6398 ac_cv_prog_LEX="$ac_prog" 6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6400 break 2 6401 fi 6402done 6403 done 6404IFS=$as_save_IFS 6405 6406fi 6407fi 6408LEX=$ac_cv_prog_LEX 6409if test -n "$LEX"; then 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 6411$as_echo "$LEX" >&6; } 6412else 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6414$as_echo "no" >&6; } 6415fi 6416 6417 6418 test -n "$LEX" && break 6419done 6420test -n "$LEX" || LEX=":" 6421 6422if test "x$LEX" != "x:"; then 6423 cat >conftest.l <<_ACEOF 6424%% 6425a { ECHO; } 6426b { REJECT; } 6427c { yymore (); } 6428d { yyless (1); } 6429e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 6430 yyless ((input () != 0)); } 6431f { unput (yytext[0]); } 6432. { BEGIN INITIAL; } 6433%% 6434#ifdef YYTEXT_POINTER 6435extern char *yytext; 6436#endif 6437int 6438main (void) 6439{ 6440 return ! yylex () + ! yywrap (); 6441} 6442_ACEOF 6443{ { ac_try="$LEX conftest.l" 6444case "(($ac_try" in 6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6446 *) ac_try_echo=$ac_try;; 6447esac 6448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6449$as_echo "$ac_try_echo"; } >&5 6450 (eval "$LEX conftest.l") 2>&5 6451 ac_status=$? 6452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6453 test $ac_status = 0; } 6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 6455$as_echo_n "checking lex output file root... " >&6; } 6456if ${ac_cv_prog_lex_root+:} false; then : 6457 $as_echo_n "(cached) " >&6 6458else 6459 6460if test -f lex.yy.c; then 6461 ac_cv_prog_lex_root=lex.yy 6462elif test -f lexyy.c; then 6463 ac_cv_prog_lex_root=lexyy 6464else 6465 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 6466fi 6467fi 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 6469$as_echo "$ac_cv_prog_lex_root" >&6; } 6470LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 6471 6472if test -z "${LEXLIB+set}"; then 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 6474$as_echo_n "checking lex library... " >&6; } 6475if ${ac_cv_lib_lex+:} false; then : 6476 $as_echo_n "(cached) " >&6 6477else 6478 6479 ac_save_LIBS=$LIBS 6480 ac_cv_lib_lex='none needed' 6481 for ac_lib in '' -lfl -ll; do 6482 LIBS="$ac_lib $ac_save_LIBS" 6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6484/* end confdefs.h. */ 6485`cat $LEX_OUTPUT_ROOT.c` 6486_ACEOF 6487if ac_fn_c_try_link "$LINENO"; then : 6488 ac_cv_lib_lex=$ac_lib 6489fi 6490rm -f core conftest.err conftest.$ac_objext \ 6491 conftest$ac_exeext conftest.$ac_ext 6492 test "$ac_cv_lib_lex" != 'none needed' && break 6493 done 6494 LIBS=$ac_save_LIBS 6495 6496fi 6497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 6498$as_echo "$ac_cv_lib_lex" >&6; } 6499 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 6500fi 6501 6502 6503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 6504$as_echo_n "checking whether yytext is a pointer... " >&6; } 6505if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 6506 $as_echo_n "(cached) " >&6 6507else 6508 # POSIX says lex can declare yytext either as a pointer or an array; the 6509# default is implementation-dependent. Figure out which it is, since 6510# not all implementations provide the %pointer and %array declarations. 6511ac_cv_prog_lex_yytext_pointer=no 6512ac_save_LIBS=$LIBS 6513LIBS="$LEXLIB $ac_save_LIBS" 6514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6515/* end confdefs.h. */ 6516 6517 #define YYTEXT_POINTER 1 6518`cat $LEX_OUTPUT_ROOT.c` 6519_ACEOF 6520if ac_fn_c_try_link "$LINENO"; then : 6521 ac_cv_prog_lex_yytext_pointer=yes 6522fi 6523rm -f core conftest.err conftest.$ac_objext \ 6524 conftest$ac_exeext conftest.$ac_ext 6525LIBS=$ac_save_LIBS 6526 6527fi 6528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 6529$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 6530if test $ac_cv_prog_lex_yytext_pointer = yes; then 6531 6532$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 6533 6534fi 6535rm -f conftest.l $LEX_OUTPUT_ROOT.c 6536 6537fi 6538if test "$LEX" != "" -a "$LEX" != ":"; then 6539 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5 6541$as_echo_n "checking for yylex_destroy... " >&6; } 6542 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then 6543 6544$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h 6545 6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6547$as_echo "yes" >&6; } 6548 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6549$as_echo "no" >&6; }; 6550 LEX=":" 6551 fi 6552 6553fi 6554if test "$LEX" != "" -a "$LEX" != ":"; then 6555 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5 6557$as_echo_n "checking for lex %option... " >&6; } 6558 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then 6559%option nounput 6560%% 6561EOF 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6563$as_echo "yes" >&6; } 6564 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6565$as_echo "no" >&6; }; 6566 LEX=":" 6567 fi 6568 6569fi 6570for ac_prog in 'bison -y' byacc 6571do 6572 # Extract the first word of "$ac_prog", so it can be a program name with args. 6573set dummy $ac_prog; ac_word=$2 6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6575$as_echo_n "checking for $ac_word... " >&6; } 6576if ${ac_cv_prog_YACC+:} false; then : 6577 $as_echo_n "(cached) " >&6 6578else 6579 if test -n "$YACC"; then 6580 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6581else 6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6583for as_dir in $PATH 6584do 6585 IFS=$as_save_IFS 6586 test -z "$as_dir" && as_dir=. 6587 for ac_exec_ext in '' $ac_executable_extensions; do 6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6589 ac_cv_prog_YACC="$ac_prog" 6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6591 break 2 6592 fi 6593done 6594 done 6595IFS=$as_save_IFS 6596 6597fi 6598fi 6599YACC=$ac_cv_prog_YACC 6600if test -n "$YACC"; then 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 6602$as_echo "$YACC" >&6; } 6603else 6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6605$as_echo "no" >&6; } 6606fi 6607 6608 6609 test -n "$YACC" && break 6610done 6611test -n "$YACC" || YACC="yacc" 6612 6613# Extract the first word of "doxygen", so it can be a program name with args. 6614set dummy doxygen; ac_word=$2 6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6616$as_echo_n "checking for $ac_word... " >&6; } 6617if ${ac_cv_prog_doxygen+:} false; then : 6618 $as_echo_n "(cached) " >&6 6619else 6620 if test -n "$doxygen"; then 6621 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 6622else 6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6624for as_dir in $PATH 6625do 6626 IFS=$as_save_IFS 6627 test -z "$as_dir" && as_dir=. 6628 for ac_exec_ext in '' $ac_executable_extensions; do 6629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6630 ac_cv_prog_doxygen="doxygen" 6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6632 break 2 6633 fi 6634done 6635 done 6636IFS=$as_save_IFS 6637 6638fi 6639fi 6640doxygen=$ac_cv_prog_doxygen 6641if test -n "$doxygen"; then 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 6643$as_echo "$doxygen" >&6; } 6644else 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6646$as_echo "no" >&6; } 6647fi 6648 6649 6650if test -n "$ac_tool_prefix"; then 6651 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6652set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then : 6656 $as_echo_n "(cached) " >&6 6657else 6658 if test -n "$STRIP"; then 6659 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip" 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 6678STRIP=$ac_cv_prog_STRIP 6679if test -n "$STRIP"; then 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6681$as_echo "$STRIP" >&6; } 6682else 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6684$as_echo "no" >&6; } 6685fi 6686 6687 6688fi 6689if test -z "$ac_cv_prog_STRIP"; then 6690 ac_ct_STRIP=$STRIP 6691 # Extract the first word of "strip", so it can be a program name with args. 6692set dummy strip; ac_word=$2 6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6694$as_echo_n "checking for $ac_word... " >&6; } 6695if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6696 $as_echo_n "(cached) " >&6 6697else 6698 if test -n "$ac_ct_STRIP"; then 6699 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6700else 6701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6702for as_dir in $PATH 6703do 6704 IFS=$as_save_IFS 6705 test -z "$as_dir" && as_dir=. 6706 for ac_exec_ext in '' $ac_executable_extensions; do 6707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6708 ac_cv_prog_ac_ct_STRIP="strip" 6709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6710 break 2 6711 fi 6712done 6713 done 6714IFS=$as_save_IFS 6715 6716fi 6717fi 6718ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6719if test -n "$ac_ct_STRIP"; then 6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6721$as_echo "$ac_ct_STRIP" >&6; } 6722else 6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6724$as_echo "no" >&6; } 6725fi 6726 6727 if test "x$ac_ct_STRIP" = x; then 6728 STRIP="" 6729 else 6730 case $cross_compiling:$ac_tool_warned in 6731yes:) 6732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6734ac_tool_warned=yes ;; 6735esac 6736 STRIP=$ac_ct_STRIP 6737 fi 6738else 6739 STRIP="$ac_cv_prog_STRIP" 6740fi 6741 6742ac_aux_dir= 6743for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 6744 if test -f "$ac_dir/install-sh"; then 6745 ac_aux_dir=$ac_dir 6746 ac_install_sh="$ac_aux_dir/install-sh -c" 6747 break 6748 elif test -f "$ac_dir/install.sh"; then 6749 ac_aux_dir=$ac_dir 6750 ac_install_sh="$ac_aux_dir/install.sh -c" 6751 break 6752 elif test -f "$ac_dir/shtool"; then 6753 ac_aux_dir=$ac_dir 6754 ac_install_sh="$ac_aux_dir/shtool install -c" 6755 break 6756 fi 6757done 6758if test -z "$ac_aux_dir"; then 6759 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 6760fi 6761 6762# These three variables are undocumented and unsupported, 6763# and are intended to be withdrawn in a future Autoconf release. 6764# They can cause serious problems if a builder's source tree is in a directory 6765# whose full name contains unusual characters. 6766ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 6767ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 6768ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 6769 6770 6771# Make sure we can run config.sub. 6772$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6773 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6774 6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6776$as_echo_n "checking build system type... " >&6; } 6777if ${ac_cv_build+:} false; then : 6778 $as_echo_n "(cached) " >&6 6779else 6780 ac_build_alias=$build_alias 6781test "x$ac_build_alias" = x && 6782 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6783test "x$ac_build_alias" = x && 6784 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6785ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6787 6788fi 6789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6790$as_echo "$ac_cv_build" >&6; } 6791case $ac_cv_build in 6792*-*-*) ;; 6793*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6794esac 6795build=$ac_cv_build 6796ac_save_IFS=$IFS; IFS='-' 6797set x $ac_cv_build 6798shift 6799build_cpu=$1 6800build_vendor=$2 6801shift; shift 6802# Remember, the first character of IFS is used to create $*, 6803# except with old shells: 6804build_os=$* 6805IFS=$ac_save_IFS 6806case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6807 6808 6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6810$as_echo_n "checking host system type... " >&6; } 6811if ${ac_cv_host+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813else 6814 if test "x$host_alias" = x; then 6815 ac_cv_host=$ac_cv_build 6816else 6817 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6818 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6819fi 6820 6821fi 6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6823$as_echo "$ac_cv_host" >&6; } 6824case $ac_cv_host in 6825*-*-*) ;; 6826*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6827esac 6828host=$ac_cv_host 6829ac_save_IFS=$IFS; IFS='-' 6830set x $ac_cv_host 6831shift 6832host_cpu=$1 6833host_vendor=$2 6834shift; shift 6835# Remember, the first character of IFS is used to create $*, 6836# except with old shells: 6837host_os=$* 6838IFS=$ac_save_IFS 6839case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6840 6841 6842 6843# skip these tests, we do not need them. 6844 6845 6846 6847 6848 6849 6850 6851 6852# always use ./libtool unless override from commandline (libtool=mylibtool) 6853if test -z "$libtool"; then 6854 libtool="./libtool" 6855fi 6856 6857# avoid libtool max commandline length test on systems that fork slowly. 6858 6859if echo "$host_os" | grep "sunos4" >/dev/null; then 6860 lt_cv_sys_max_cmd_len=32750; 6861fi 6862if test -n "$ac_tool_prefix"; then 6863 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6864set dummy ${ac_tool_prefix}ar; ac_word=$2 6865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6866$as_echo_n "checking for $ac_word... " >&6; } 6867if ${ac_cv_path_AR+:} false; then : 6868 $as_echo_n "(cached) " >&6 6869else 6870 case $AR in 6871 [\\/]* | ?:[\\/]*) 6872 ac_cv_path_AR="$AR" # Let the user override the test with a path. 6873 ;; 6874 *) 6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6876for as_dir in $PATH 6877do 6878 IFS=$as_save_IFS 6879 test -z "$as_dir" && as_dir=. 6880 for ac_exec_ext in '' $ac_executable_extensions; do 6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6882 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6884 break 2 6885 fi 6886done 6887 done 6888IFS=$as_save_IFS 6889 6890 ;; 6891esac 6892fi 6893AR=$ac_cv_path_AR 6894if test -n "$AR"; then 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6896$as_echo "$AR" >&6; } 6897else 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6899$as_echo "no" >&6; } 6900fi 6901 6902 6903fi 6904if test -z "$ac_cv_path_AR"; then 6905 ac_pt_AR=$AR 6906 # Extract the first word of "ar", so it can be a program name with args. 6907set dummy ar; ac_word=$2 6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6909$as_echo_n "checking for $ac_word... " >&6; } 6910if ${ac_cv_path_ac_pt_AR+:} false; then : 6911 $as_echo_n "(cached) " >&6 6912else 6913 case $ac_pt_AR in 6914 [\\/]* | ?:[\\/]*) 6915 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 6916 ;; 6917 *) 6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6919for as_dir in $PATH 6920do 6921 IFS=$as_save_IFS 6922 test -z "$as_dir" && as_dir=. 6923 for ac_exec_ext in '' $ac_executable_extensions; do 6924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6925 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6927 break 2 6928 fi 6929done 6930 done 6931IFS=$as_save_IFS 6932 6933 ;; 6934esac 6935fi 6936ac_pt_AR=$ac_cv_path_ac_pt_AR 6937if test -n "$ac_pt_AR"; then 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 6939$as_echo "$ac_pt_AR" >&6; } 6940else 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6942$as_echo "no" >&6; } 6943fi 6944 6945 if test "x$ac_pt_AR" = x; then 6946 AR="false" 6947 else 6948 case $cross_compiling:$ac_tool_warned in 6949yes:) 6950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6952ac_tool_warned=yes ;; 6953esac 6954 AR=$ac_pt_AR 6955 fi 6956else 6957 AR="$ac_cv_path_AR" 6958fi 6959 6960if test $AR = false; then 6961 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 6962fi 6963 6964case `pwd` in 6965 *\ * | *\ *) 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6967$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6968esac 6969 6970 6971 6972macro_version='2.4.6' 6973macro_revision='2.4.6' 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987ltmain=$ac_aux_dir/ltmain.sh 6988 6989# Backslashify metacharacters that are still active within 6990# double-quoted strings. 6991sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6992 6993# Same as above, but do not quote variable references. 6994double_quote_subst='s/\(["`\\]\)/\\\1/g' 6995 6996# Sed substitution to delay expansion of an escaped shell variable in a 6997# double_quote_subst'ed string. 6998delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6999 7000# Sed substitution to delay expansion of an escaped single quote. 7001delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7002 7003# Sed substitution to avoid accidental globbing in evaled expressions 7004no_glob_subst='s/\*/\\\*/g' 7005 7006ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7007ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7008ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7009 7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7011$as_echo_n "checking how to print strings... " >&6; } 7012# Test print first, because it will be a builtin if present. 7013if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7014 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7015 ECHO='print -r --' 7016elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7017 ECHO='printf %s\n' 7018else 7019 # Use this function as a fallback that always works. 7020 func_fallback_echo () 7021 { 7022 eval 'cat <<_LTECHO_EOF 7023$1 7024_LTECHO_EOF' 7025 } 7026 ECHO='func_fallback_echo' 7027fi 7028 7029# func_echo_all arg... 7030# Invoke $ECHO with all args, space-separated. 7031func_echo_all () 7032{ 7033 $ECHO "" 7034} 7035 7036case $ECHO in 7037 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7038$as_echo "printf" >&6; } ;; 7039 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7040$as_echo "print -r" >&6; } ;; 7041 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7042$as_echo "cat" >&6; } ;; 7043esac 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7059$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7060if ${ac_cv_path_SED+:} false; then : 7061 $as_echo_n "(cached) " >&6 7062else 7063 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7064 for ac_i in 1 2 3 4 5 6 7; do 7065 ac_script="$ac_script$as_nl$ac_script" 7066 done 7067 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7068 { ac_script=; unset ac_script;} 7069 if test -z "$SED"; then 7070 ac_path_SED_found=false 7071 # Loop through the user's path and test for each of PROGNAME-LIST 7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7073for as_dir in $PATH 7074do 7075 IFS=$as_save_IFS 7076 test -z "$as_dir" && as_dir=. 7077 for ac_prog in sed gsed; do 7078 for ac_exec_ext in '' $ac_executable_extensions; do 7079 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7080 as_fn_executable_p "$ac_path_SED" || continue 7081# Check for GNU ac_path_SED and select it if it is found. 7082 # Check for GNU $ac_path_SED 7083case `"$ac_path_SED" --version 2>&1` in 7084*GNU*) 7085 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7086*) 7087 ac_count=0 7088 $as_echo_n 0123456789 >"conftest.in" 7089 while : 7090 do 7091 cat "conftest.in" "conftest.in" >"conftest.tmp" 7092 mv "conftest.tmp" "conftest.in" 7093 cp "conftest.in" "conftest.nl" 7094 $as_echo '' >> "conftest.nl" 7095 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7097 as_fn_arith $ac_count + 1 && ac_count=$as_val 7098 if test $ac_count -gt ${ac_path_SED_max-0}; then 7099 # Best one so far, save it but keep looking for a better one 7100 ac_cv_path_SED="$ac_path_SED" 7101 ac_path_SED_max=$ac_count 7102 fi 7103 # 10*(2^10) chars as input seems more than enough 7104 test $ac_count -gt 10 && break 7105 done 7106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7107esac 7108 7109 $ac_path_SED_found && break 3 7110 done 7111 done 7112 done 7113IFS=$as_save_IFS 7114 if test -z "$ac_cv_path_SED"; then 7115 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7116 fi 7117else 7118 ac_cv_path_SED=$SED 7119fi 7120 7121fi 7122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7123$as_echo "$ac_cv_path_SED" >&6; } 7124 SED="$ac_cv_path_SED" 7125 rm -f conftest.sed 7126 7127test -z "$SED" && SED=sed 7128Xsed="$SED -e 1s/^X//" 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7141$as_echo_n "checking for fgrep... " >&6; } 7142if ${ac_cv_path_FGREP+:} false; then : 7143 $as_echo_n "(cached) " >&6 7144else 7145 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7146 then ac_cv_path_FGREP="$GREP -F" 7147 else 7148 if test -z "$FGREP"; then 7149 ac_path_FGREP_found=false 7150 # Loop through the user's path and test for each of PROGNAME-LIST 7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7152for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7153do 7154 IFS=$as_save_IFS 7155 test -z "$as_dir" && as_dir=. 7156 for ac_prog in fgrep; do 7157 for ac_exec_ext in '' $ac_executable_extensions; do 7158 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7159 as_fn_executable_p "$ac_path_FGREP" || continue 7160# Check for GNU ac_path_FGREP and select it if it is found. 7161 # Check for GNU $ac_path_FGREP 7162case `"$ac_path_FGREP" --version 2>&1` in 7163*GNU*) 7164 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7165*) 7166 ac_count=0 7167 $as_echo_n 0123456789 >"conftest.in" 7168 while : 7169 do 7170 cat "conftest.in" "conftest.in" >"conftest.tmp" 7171 mv "conftest.tmp" "conftest.in" 7172 cp "conftest.in" "conftest.nl" 7173 $as_echo 'FGREP' >> "conftest.nl" 7174 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7176 as_fn_arith $ac_count + 1 && ac_count=$as_val 7177 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7178 # Best one so far, save it but keep looking for a better one 7179 ac_cv_path_FGREP="$ac_path_FGREP" 7180 ac_path_FGREP_max=$ac_count 7181 fi 7182 # 10*(2^10) chars as input seems more than enough 7183 test $ac_count -gt 10 && break 7184 done 7185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7186esac 7187 7188 $ac_path_FGREP_found && break 3 7189 done 7190 done 7191 done 7192IFS=$as_save_IFS 7193 if test -z "$ac_cv_path_FGREP"; then 7194 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7195 fi 7196else 7197 ac_cv_path_FGREP=$FGREP 7198fi 7199 7200 fi 7201fi 7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7203$as_echo "$ac_cv_path_FGREP" >&6; } 7204 FGREP="$ac_cv_path_FGREP" 7205 7206 7207test -z "$GREP" && GREP=grep 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227# Check whether --with-gnu-ld was given. 7228if test "${with_gnu_ld+set}" = set; then : 7229 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7230else 7231 with_gnu_ld=no 7232fi 7233 7234ac_prog=ld 7235if test yes = "$GCC"; then 7236 # Check if gcc -print-prog-name=ld gives a path. 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7238$as_echo_n "checking for ld used by $CC... " >&6; } 7239 case $host in 7240 *-*-mingw*) 7241 # gcc leaves a trailing carriage return, which upsets mingw 7242 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7243 *) 7244 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7245 esac 7246 case $ac_prog in 7247 # Accept absolute paths. 7248 [\\/]* | ?:[\\/]*) 7249 re_direlt='/[^/][^/]*/\.\./' 7250 # Canonicalize the pathname of ld 7251 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7252 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7253 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7254 done 7255 test -z "$LD" && LD=$ac_prog 7256 ;; 7257 "") 7258 # If it fails, then pretend we aren't using GCC. 7259 ac_prog=ld 7260 ;; 7261 *) 7262 # If it is relative, then search for the first ld in PATH. 7263 with_gnu_ld=unknown 7264 ;; 7265 esac 7266elif test yes = "$with_gnu_ld"; then 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7268$as_echo_n "checking for GNU ld... " >&6; } 7269else 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7271$as_echo_n "checking for non-GNU ld... " >&6; } 7272fi 7273if ${lt_cv_path_LD+:} false; then : 7274 $as_echo_n "(cached) " >&6 7275else 7276 if test -z "$LD"; then 7277 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7278 for ac_dir in $PATH; do 7279 IFS=$lt_save_ifs 7280 test -z "$ac_dir" && ac_dir=. 7281 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7282 lt_cv_path_LD=$ac_dir/$ac_prog 7283 # Check to see if the program is GNU ld. I'd rather use --version, 7284 # but apparently some variants of GNU ld only accept -v. 7285 # Break only if it was the GNU/non-GNU ld that we prefer. 7286 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7287 *GNU* | *'with BFD'*) 7288 test no != "$with_gnu_ld" && break 7289 ;; 7290 *) 7291 test yes != "$with_gnu_ld" && break 7292 ;; 7293 esac 7294 fi 7295 done 7296 IFS=$lt_save_ifs 7297else 7298 lt_cv_path_LD=$LD # Let the user override the test with a path. 7299fi 7300fi 7301 7302LD=$lt_cv_path_LD 7303if test -n "$LD"; then 7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7305$as_echo "$LD" >&6; } 7306else 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7308$as_echo "no" >&6; } 7309fi 7310test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7312$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7313if ${lt_cv_prog_gnu_ld+:} false; then : 7314 $as_echo_n "(cached) " >&6 7315else 7316 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7317case `$LD -v 2>&1 </dev/null` in 7318*GNU* | *'with BFD'*) 7319 lt_cv_prog_gnu_ld=yes 7320 ;; 7321*) 7322 lt_cv_prog_gnu_ld=no 7323 ;; 7324esac 7325fi 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7327$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7328with_gnu_ld=$lt_cv_prog_gnu_ld 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7339$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7340if ${lt_cv_path_NM+:} false; then : 7341 $as_echo_n "(cached) " >&6 7342else 7343 if test -n "$NM"; then 7344 # Let the user override the test. 7345 lt_cv_path_NM=$NM 7346else 7347 lt_nm_to_check=${ac_tool_prefix}nm 7348 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7349 lt_nm_to_check="$lt_nm_to_check nm" 7350 fi 7351 for lt_tmp_nm in $lt_nm_to_check; do 7352 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7353 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7354 IFS=$lt_save_ifs 7355 test -z "$ac_dir" && ac_dir=. 7356 tmp_nm=$ac_dir/$lt_tmp_nm 7357 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7358 # Check to see if the nm accepts a BSD-compat flag. 7359 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7360 # nm: unknown option "B" ignored 7361 # Tru64's nm complains that /dev/null is an invalid object file 7362 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7363 case $build_os in 7364 mingw*) lt_bad_file=conftest.nm/nofile ;; 7365 *) lt_bad_file=/dev/null ;; 7366 esac 7367 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7368 *$lt_bad_file* | *'Invalid file or object type'*) 7369 lt_cv_path_NM="$tmp_nm -B" 7370 break 2 7371 ;; 7372 *) 7373 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7374 */dev/null*) 7375 lt_cv_path_NM="$tmp_nm -p" 7376 break 2 7377 ;; 7378 *) 7379 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7380 continue # so that we can try to find one that supports BSD flags 7381 ;; 7382 esac 7383 ;; 7384 esac 7385 fi 7386 done 7387 IFS=$lt_save_ifs 7388 done 7389 : ${lt_cv_path_NM=no} 7390fi 7391fi 7392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7393$as_echo "$lt_cv_path_NM" >&6; } 7394if test no != "$lt_cv_path_NM"; then 7395 NM=$lt_cv_path_NM 7396else 7397 # Didn't find any BSD compatible name lister, look for dumpbin. 7398 if test -n "$DUMPBIN"; then : 7399 # Let the user override the test. 7400 else 7401 if test -n "$ac_tool_prefix"; then 7402 for ac_prog in dumpbin "link -dump" 7403 do 7404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7405set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7407$as_echo_n "checking for $ac_word... " >&6; } 7408if ${ac_cv_prog_DUMPBIN+:} false; then : 7409 $as_echo_n "(cached) " >&6 7410else 7411 if test -n "$DUMPBIN"; then 7412 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7413else 7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7415for as_dir in $PATH 7416do 7417 IFS=$as_save_IFS 7418 test -z "$as_dir" && as_dir=. 7419 for ac_exec_ext in '' $ac_executable_extensions; do 7420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7421 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7423 break 2 7424 fi 7425done 7426 done 7427IFS=$as_save_IFS 7428 7429fi 7430fi 7431DUMPBIN=$ac_cv_prog_DUMPBIN 7432if test -n "$DUMPBIN"; then 7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7434$as_echo "$DUMPBIN" >&6; } 7435else 7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7437$as_echo "no" >&6; } 7438fi 7439 7440 7441 test -n "$DUMPBIN" && break 7442 done 7443fi 7444if test -z "$DUMPBIN"; then 7445 ac_ct_DUMPBIN=$DUMPBIN 7446 for ac_prog in dumpbin "link -dump" 7447do 7448 # Extract the first word of "$ac_prog", so it can be a program name with args. 7449set dummy $ac_prog; ac_word=$2 7450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7451$as_echo_n "checking for $ac_word... " >&6; } 7452if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7453 $as_echo_n "(cached) " >&6 7454else 7455 if test -n "$ac_ct_DUMPBIN"; then 7456 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7457else 7458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7459for as_dir in $PATH 7460do 7461 IFS=$as_save_IFS 7462 test -z "$as_dir" && as_dir=. 7463 for ac_exec_ext in '' $ac_executable_extensions; do 7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7465 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7467 break 2 7468 fi 7469done 7470 done 7471IFS=$as_save_IFS 7472 7473fi 7474fi 7475ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7476if test -n "$ac_ct_DUMPBIN"; then 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7478$as_echo "$ac_ct_DUMPBIN" >&6; } 7479else 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7481$as_echo "no" >&6; } 7482fi 7483 7484 7485 test -n "$ac_ct_DUMPBIN" && break 7486done 7487 7488 if test "x$ac_ct_DUMPBIN" = x; then 7489 DUMPBIN=":" 7490 else 7491 case $cross_compiling:$ac_tool_warned in 7492yes:) 7493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7495ac_tool_warned=yes ;; 7496esac 7497 DUMPBIN=$ac_ct_DUMPBIN 7498 fi 7499fi 7500 7501 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7502 *COFF*) 7503 DUMPBIN="$DUMPBIN -symbols -headers" 7504 ;; 7505 *) 7506 DUMPBIN=: 7507 ;; 7508 esac 7509 fi 7510 7511 if test : != "$DUMPBIN"; then 7512 NM=$DUMPBIN 7513 fi 7514fi 7515test -z "$NM" && NM=nm 7516 7517 7518 7519 7520 7521 7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7523$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7524if ${lt_cv_nm_interface+:} false; then : 7525 $as_echo_n "(cached) " >&6 7526else 7527 lt_cv_nm_interface="BSD nm" 7528 echo "int some_variable = 0;" > conftest.$ac_ext 7529 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7530 (eval "$ac_compile" 2>conftest.err) 7531 cat conftest.err >&5 7532 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7533 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7534 cat conftest.err >&5 7535 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7536 cat conftest.out >&5 7537 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7538 lt_cv_nm_interface="MS dumpbin" 7539 fi 7540 rm -f conftest* 7541fi 7542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7543$as_echo "$lt_cv_nm_interface" >&6; } 7544 7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7546$as_echo_n "checking whether ln -s works... " >&6; } 7547LN_S=$as_ln_s 7548if test "$LN_S" = "ln -s"; then 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7550$as_echo "yes" >&6; } 7551else 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7553$as_echo "no, using $LN_S" >&6; } 7554fi 7555 7556# find the maximum length of command line arguments 7557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7558$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7559if ${lt_cv_sys_max_cmd_len+:} false; then : 7560 $as_echo_n "(cached) " >&6 7561else 7562 i=0 7563 teststring=ABCD 7564 7565 case $build_os in 7566 msdosdjgpp*) 7567 # On DJGPP, this test can blow up pretty badly due to problems in libc 7568 # (any single argument exceeding 2000 bytes causes a buffer overrun 7569 # during glob expansion). Even if it were fixed, the result of this 7570 # check would be larger than it should be. 7571 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7572 ;; 7573 7574 gnu*) 7575 # Under GNU Hurd, this test is not required because there is 7576 # no limit to the length of command line arguments. 7577 # Libtool will interpret -1 as no limit whatsoever 7578 lt_cv_sys_max_cmd_len=-1; 7579 ;; 7580 7581 cygwin* | mingw* | cegcc*) 7582 # On Win9x/ME, this test blows up -- it succeeds, but takes 7583 # about 5 minutes as the teststring grows exponentially. 7584 # Worse, since 9x/ME are not pre-emptively multitasking, 7585 # you end up with a "frozen" computer, even though with patience 7586 # the test eventually succeeds (with a max line length of 256k). 7587 # Instead, let's just punt: use the minimum linelength reported by 7588 # all of the supported platforms: 8192 (on NT/2K/XP). 7589 lt_cv_sys_max_cmd_len=8192; 7590 ;; 7591 7592 mint*) 7593 # On MiNT this can take a long time and run out of memory. 7594 lt_cv_sys_max_cmd_len=8192; 7595 ;; 7596 7597 amigaos*) 7598 # On AmigaOS with pdksh, this test takes hours, literally. 7599 # So we just punt and use a minimum line length of 8192. 7600 lt_cv_sys_max_cmd_len=8192; 7601 ;; 7602 7603 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7604 # This has been around since 386BSD, at least. Likely further. 7605 if test -x /sbin/sysctl; then 7606 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7607 elif test -x /usr/sbin/sysctl; then 7608 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7609 else 7610 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7611 fi 7612 # And add a safety zone 7613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7615 ;; 7616 7617 interix*) 7618 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7619 lt_cv_sys_max_cmd_len=196608 7620 ;; 7621 7622 os2*) 7623 # The test takes a long time on OS/2. 7624 lt_cv_sys_max_cmd_len=8192 7625 ;; 7626 7627 osf*) 7628 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7629 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7630 # nice to cause kernel panics so lets avoid the loop below. 7631 # First set a reasonable default. 7632 lt_cv_sys_max_cmd_len=16384 7633 # 7634 if test -x /sbin/sysconfig; then 7635 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7636 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7637 esac 7638 fi 7639 ;; 7640 sco3.2v5*) 7641 lt_cv_sys_max_cmd_len=102400 7642 ;; 7643 sysv5* | sco5v6* | sysv4.2uw2*) 7644 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7645 if test -n "$kargmax"; then 7646 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7647 else 7648 lt_cv_sys_max_cmd_len=32768 7649 fi 7650 ;; 7651 *) 7652 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7653 if test -n "$lt_cv_sys_max_cmd_len" && \ 7654 test undefined != "$lt_cv_sys_max_cmd_len"; then 7655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7657 else 7658 # Make teststring a little bigger before we do anything with it. 7659 # a 1K string should be a reasonable start. 7660 for i in 1 2 3 4 5 6 7 8; do 7661 teststring=$teststring$teststring 7662 done 7663 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7664 # If test is not a shell built-in, we'll probably end up computing a 7665 # maximum length that is only half of the actual maximum length, but 7666 # we can't tell. 7667 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7668 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7669 test 17 != "$i" # 1/2 MB should be enough 7670 do 7671 i=`expr $i + 1` 7672 teststring=$teststring$teststring 7673 done 7674 # Only check the string length outside the loop. 7675 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7676 teststring= 7677 # Add a significant safety factor because C++ compilers can tack on 7678 # massive amounts of additional arguments before passing them to the 7679 # linker. It appears as though 1/2 is a usable value. 7680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7681 fi 7682 ;; 7683 esac 7684 7685fi 7686 7687if test -n "$lt_cv_sys_max_cmd_len"; then 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7689$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7690else 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7692$as_echo "none" >&6; } 7693fi 7694max_cmd_len=$lt_cv_sys_max_cmd_len 7695 7696 7697 7698 7699 7700 7701: ${CP="cp -f"} 7702: ${MV="mv -f"} 7703: ${RM="rm -f"} 7704 7705if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7706 lt_unset=unset 7707else 7708 lt_unset=false 7709fi 7710 7711 7712 7713 7714 7715# test EBCDIC or ASCII 7716case `echo X|tr X '\101'` in 7717 A) # ASCII based system 7718 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7719 lt_SP2NL='tr \040 \012' 7720 lt_NL2SP='tr \015\012 \040\040' 7721 ;; 7722 *) # EBCDIC based system 7723 lt_SP2NL='tr \100 \n' 7724 lt_NL2SP='tr \r\n \100\100' 7725 ;; 7726esac 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7737$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7738if ${lt_cv_to_host_file_cmd+:} false; then : 7739 $as_echo_n "(cached) " >&6 7740else 7741 case $host in 7742 *-*-mingw* ) 7743 case $build in 7744 *-*-mingw* ) # actually msys 7745 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7746 ;; 7747 *-*-cygwin* ) 7748 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7749 ;; 7750 * ) # otherwise, assume *nix 7751 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7752 ;; 7753 esac 7754 ;; 7755 *-*-cygwin* ) 7756 case $build in 7757 *-*-mingw* ) # actually msys 7758 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7759 ;; 7760 *-*-cygwin* ) 7761 lt_cv_to_host_file_cmd=func_convert_file_noop 7762 ;; 7763 * ) # otherwise, assume *nix 7764 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7765 ;; 7766 esac 7767 ;; 7768 * ) # unhandled hosts (and "normal" native builds) 7769 lt_cv_to_host_file_cmd=func_convert_file_noop 7770 ;; 7771esac 7772 7773fi 7774 7775to_host_file_cmd=$lt_cv_to_host_file_cmd 7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7777$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7778 7779 7780 7781 7782 7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7784$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7785if ${lt_cv_to_tool_file_cmd+:} false; then : 7786 $as_echo_n "(cached) " >&6 7787else 7788 #assume ordinary cross tools, or native build. 7789lt_cv_to_tool_file_cmd=func_convert_file_noop 7790case $host in 7791 *-*-mingw* ) 7792 case $build in 7793 *-*-mingw* ) # actually msys 7794 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7795 ;; 7796 esac 7797 ;; 7798esac 7799 7800fi 7801 7802to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7804$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7805 7806 7807 7808 7809 7810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7811$as_echo_n "checking for $LD option to reload object files... " >&6; } 7812if ${lt_cv_ld_reload_flag+:} false; then : 7813 $as_echo_n "(cached) " >&6 7814else 7815 lt_cv_ld_reload_flag='-r' 7816fi 7817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7818$as_echo "$lt_cv_ld_reload_flag" >&6; } 7819reload_flag=$lt_cv_ld_reload_flag 7820case $reload_flag in 7821"" | " "*) ;; 7822*) reload_flag=" $reload_flag" ;; 7823esac 7824reload_cmds='$LD$reload_flag -o $output$reload_objs' 7825case $host_os in 7826 cygwin* | mingw* | pw32* | cegcc*) 7827 if test yes != "$GCC"; then 7828 reload_cmds=false 7829 fi 7830 ;; 7831 darwin*) 7832 if test yes = "$GCC"; then 7833 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7834 else 7835 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7836 fi 7837 ;; 7838esac 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848if test -n "$ac_tool_prefix"; then 7849 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7850set dummy ${ac_tool_prefix}objdump; ac_word=$2 7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7852$as_echo_n "checking for $ac_word... " >&6; } 7853if ${ac_cv_prog_OBJDUMP+:} false; then : 7854 $as_echo_n "(cached) " >&6 7855else 7856 if test -n "$OBJDUMP"; then 7857 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7858else 7859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7860for as_dir in $PATH 7861do 7862 IFS=$as_save_IFS 7863 test -z "$as_dir" && as_dir=. 7864 for ac_exec_ext in '' $ac_executable_extensions; do 7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7866 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7868 break 2 7869 fi 7870done 7871 done 7872IFS=$as_save_IFS 7873 7874fi 7875fi 7876OBJDUMP=$ac_cv_prog_OBJDUMP 7877if test -n "$OBJDUMP"; then 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7879$as_echo "$OBJDUMP" >&6; } 7880else 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7882$as_echo "no" >&6; } 7883fi 7884 7885 7886fi 7887if test -z "$ac_cv_prog_OBJDUMP"; then 7888 ac_ct_OBJDUMP=$OBJDUMP 7889 # Extract the first word of "objdump", so it can be a program name with args. 7890set dummy objdump; ac_word=$2 7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7892$as_echo_n "checking for $ac_word... " >&6; } 7893if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7894 $as_echo_n "(cached) " >&6 7895else 7896 if test -n "$ac_ct_OBJDUMP"; then 7897 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7898else 7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7900for as_dir in $PATH 7901do 7902 IFS=$as_save_IFS 7903 test -z "$as_dir" && as_dir=. 7904 for ac_exec_ext in '' $ac_executable_extensions; do 7905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7906 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7908 break 2 7909 fi 7910done 7911 done 7912IFS=$as_save_IFS 7913 7914fi 7915fi 7916ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7917if test -n "$ac_ct_OBJDUMP"; then 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7919$as_echo "$ac_ct_OBJDUMP" >&6; } 7920else 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7922$as_echo "no" >&6; } 7923fi 7924 7925 if test "x$ac_ct_OBJDUMP" = x; then 7926 OBJDUMP="false" 7927 else 7928 case $cross_compiling:$ac_tool_warned in 7929yes:) 7930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7932ac_tool_warned=yes ;; 7933esac 7934 OBJDUMP=$ac_ct_OBJDUMP 7935 fi 7936else 7937 OBJDUMP="$ac_cv_prog_OBJDUMP" 7938fi 7939 7940test -z "$OBJDUMP" && OBJDUMP=objdump 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7951$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7952if ${lt_cv_deplibs_check_method+:} false; then : 7953 $as_echo_n "(cached) " >&6 7954else 7955 lt_cv_file_magic_cmd='$MAGIC_CMD' 7956lt_cv_file_magic_test_file= 7957lt_cv_deplibs_check_method='unknown' 7958# Need to set the preceding variable on all platforms that support 7959# interlibrary dependencies. 7960# 'none' -- dependencies not supported. 7961# 'unknown' -- same as none, but documents that we really don't know. 7962# 'pass_all' -- all dependencies passed with no checks. 7963# 'test_compile' -- check by making test program. 7964# 'file_magic [[regex]]' -- check by looking for files in library path 7965# that responds to the $file_magic_cmd with a given extended regex. 7966# If you have 'file' or equivalent on your system and you're not sure 7967# whether 'pass_all' will *always* work, you probably want this one. 7968 7969case $host_os in 7970aix[4-9]*) 7971 lt_cv_deplibs_check_method=pass_all 7972 ;; 7973 7974beos*) 7975 lt_cv_deplibs_check_method=pass_all 7976 ;; 7977 7978bsdi[45]*) 7979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7980 lt_cv_file_magic_cmd='/usr/bin/file -L' 7981 lt_cv_file_magic_test_file=/shlib/libc.so 7982 ;; 7983 7984cygwin*) 7985 # func_win32_libid is a shell function defined in ltmain.sh 7986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7987 lt_cv_file_magic_cmd='func_win32_libid' 7988 ;; 7989 7990mingw* | pw32*) 7991 # Base MSYS/MinGW do not provide the 'file' command needed by 7992 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7993 # unless we find 'file', for example because we are cross-compiling. 7994 if ( file / ) >/dev/null 2>&1; then 7995 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7996 lt_cv_file_magic_cmd='func_win32_libid' 7997 else 7998 # Keep this pattern in sync with the one in func_win32_libid. 7999 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8000 lt_cv_file_magic_cmd='$OBJDUMP -f' 8001 fi 8002 ;; 8003 8004cegcc*) 8005 # use the weaker test based on 'objdump'. See mingw*. 8006 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8007 lt_cv_file_magic_cmd='$OBJDUMP -f' 8008 ;; 8009 8010darwin* | rhapsody*) 8011 lt_cv_deplibs_check_method=pass_all 8012 ;; 8013 8014freebsd* | dragonfly*) 8015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8016 case $host_cpu in 8017 i*86 ) 8018 # Not sure whether the presence of OpenBSD here was a mistake. 8019 # Let's accept both of them until this is cleared up. 8020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8021 lt_cv_file_magic_cmd=/usr/bin/file 8022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8023 ;; 8024 esac 8025 else 8026 lt_cv_deplibs_check_method=pass_all 8027 fi 8028 ;; 8029 8030haiku*) 8031 lt_cv_deplibs_check_method=pass_all 8032 ;; 8033 8034hpux10.20* | hpux11*) 8035 lt_cv_file_magic_cmd=/usr/bin/file 8036 case $host_cpu in 8037 ia64*) 8038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8039 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8040 ;; 8041 hppa*64*) 8042 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]' 8043 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8044 ;; 8045 *) 8046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8047 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8048 ;; 8049 esac 8050 ;; 8051 8052interix[3-9]*) 8053 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8055 ;; 8056 8057irix5* | irix6* | nonstopux*) 8058 case $LD in 8059 *-32|*"-32 ") libmagic=32-bit;; 8060 *-n32|*"-n32 ") libmagic=N32;; 8061 *-64|*"-64 ") libmagic=64-bit;; 8062 *) libmagic=never-match;; 8063 esac 8064 lt_cv_deplibs_check_method=pass_all 8065 ;; 8066 8067# This must be glibc/ELF. 8068linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8069 lt_cv_deplibs_check_method=pass_all 8070 ;; 8071 8072netbsd*) 8073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8075 else 8076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8077 fi 8078 ;; 8079 8080newos6*) 8081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8082 lt_cv_file_magic_cmd=/usr/bin/file 8083 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8084 ;; 8085 8086*nto* | *qnx*) 8087 lt_cv_deplibs_check_method=pass_all 8088 ;; 8089 8090openbsd* | bitrig*) 8091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8093 else 8094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8095 fi 8096 ;; 8097 8098osf3* | osf4* | osf5*) 8099 lt_cv_deplibs_check_method=pass_all 8100 ;; 8101 8102rdos*) 8103 lt_cv_deplibs_check_method=pass_all 8104 ;; 8105 8106solaris*) 8107 lt_cv_deplibs_check_method=pass_all 8108 ;; 8109 8110sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8111 lt_cv_deplibs_check_method=pass_all 8112 ;; 8113 8114sysv4 | sysv4.3*) 8115 case $host_vendor in 8116 motorola) 8117 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]' 8118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8119 ;; 8120 ncr) 8121 lt_cv_deplibs_check_method=pass_all 8122 ;; 8123 sequent) 8124 lt_cv_file_magic_cmd='/bin/file' 8125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8126 ;; 8127 sni) 8128 lt_cv_file_magic_cmd='/bin/file' 8129 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8130 lt_cv_file_magic_test_file=/lib/libc.so 8131 ;; 8132 siemens) 8133 lt_cv_deplibs_check_method=pass_all 8134 ;; 8135 pc) 8136 lt_cv_deplibs_check_method=pass_all 8137 ;; 8138 esac 8139 ;; 8140 8141tpf*) 8142 lt_cv_deplibs_check_method=pass_all 8143 ;; 8144os2*) 8145 lt_cv_deplibs_check_method=pass_all 8146 ;; 8147esac 8148 8149fi 8150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8151$as_echo "$lt_cv_deplibs_check_method" >&6; } 8152 8153file_magic_glob= 8154want_nocaseglob=no 8155if test "$build" = "$host"; then 8156 case $host_os in 8157 mingw* | pw32*) 8158 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8159 want_nocaseglob=yes 8160 else 8161 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8162 fi 8163 ;; 8164 esac 8165fi 8166 8167file_magic_cmd=$lt_cv_file_magic_cmd 8168deplibs_check_method=$lt_cv_deplibs_check_method 8169test -z "$deplibs_check_method" && deplibs_check_method=unknown 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192if test -n "$ac_tool_prefix"; then 8193 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8194set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8196$as_echo_n "checking for $ac_word... " >&6; } 8197if ${ac_cv_prog_DLLTOOL+:} false; then : 8198 $as_echo_n "(cached) " >&6 8199else 8200 if test -n "$DLLTOOL"; then 8201 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8202else 8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8204for as_dir in $PATH 8205do 8206 IFS=$as_save_IFS 8207 test -z "$as_dir" && as_dir=. 8208 for ac_exec_ext in '' $ac_executable_extensions; do 8209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8210 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8212 break 2 8213 fi 8214done 8215 done 8216IFS=$as_save_IFS 8217 8218fi 8219fi 8220DLLTOOL=$ac_cv_prog_DLLTOOL 8221if test -n "$DLLTOOL"; then 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8223$as_echo "$DLLTOOL" >&6; } 8224else 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8226$as_echo "no" >&6; } 8227fi 8228 8229 8230fi 8231if test -z "$ac_cv_prog_DLLTOOL"; then 8232 ac_ct_DLLTOOL=$DLLTOOL 8233 # Extract the first word of "dlltool", so it can be a program name with args. 8234set dummy dlltool; ac_word=$2 8235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8236$as_echo_n "checking for $ac_word... " >&6; } 8237if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8238 $as_echo_n "(cached) " >&6 8239else 8240 if test -n "$ac_ct_DLLTOOL"; then 8241 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8242else 8243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8244for as_dir in $PATH 8245do 8246 IFS=$as_save_IFS 8247 test -z "$as_dir" && as_dir=. 8248 for ac_exec_ext in '' $ac_executable_extensions; do 8249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8250 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8252 break 2 8253 fi 8254done 8255 done 8256IFS=$as_save_IFS 8257 8258fi 8259fi 8260ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8261if test -n "$ac_ct_DLLTOOL"; then 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8263$as_echo "$ac_ct_DLLTOOL" >&6; } 8264else 8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8266$as_echo "no" >&6; } 8267fi 8268 8269 if test "x$ac_ct_DLLTOOL" = x; then 8270 DLLTOOL="false" 8271 else 8272 case $cross_compiling:$ac_tool_warned in 8273yes:) 8274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8276ac_tool_warned=yes ;; 8277esac 8278 DLLTOOL=$ac_ct_DLLTOOL 8279 fi 8280else 8281 DLLTOOL="$ac_cv_prog_DLLTOOL" 8282fi 8283 8284test -z "$DLLTOOL" && DLLTOOL=dlltool 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8296$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8297if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8298 $as_echo_n "(cached) " >&6 8299else 8300 lt_cv_sharedlib_from_linklib_cmd='unknown' 8301 8302case $host_os in 8303cygwin* | mingw* | pw32* | cegcc*) 8304 # two different shell functions defined in ltmain.sh; 8305 # decide which one to use based on capabilities of $DLLTOOL 8306 case `$DLLTOOL --help 2>&1` in 8307 *--identify-strict*) 8308 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8309 ;; 8310 *) 8311 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8312 ;; 8313 esac 8314 ;; 8315*) 8316 # fallback: assume linklib IS sharedlib 8317 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8318 ;; 8319esac 8320 8321fi 8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8323$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8324sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8325test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8326 8327 8328 8329 8330 8331 8332 8333if test -n "$ac_tool_prefix"; then 8334 for ac_prog in ar 8335 do 8336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8337set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8339$as_echo_n "checking for $ac_word... " >&6; } 8340if ${ac_cv_prog_AR+:} false; then : 8341 $as_echo_n "(cached) " >&6 8342else 8343 if test -n "$AR"; then 8344 ac_cv_prog_AR="$AR" # Let the user override the test. 8345else 8346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8347for as_dir in $PATH 8348do 8349 IFS=$as_save_IFS 8350 test -z "$as_dir" && as_dir=. 8351 for ac_exec_ext in '' $ac_executable_extensions; do 8352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8353 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8355 break 2 8356 fi 8357done 8358 done 8359IFS=$as_save_IFS 8360 8361fi 8362fi 8363AR=$ac_cv_prog_AR 8364if test -n "$AR"; then 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8366$as_echo "$AR" >&6; } 8367else 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8369$as_echo "no" >&6; } 8370fi 8371 8372 8373 test -n "$AR" && break 8374 done 8375fi 8376if test -z "$AR"; then 8377 ac_ct_AR=$AR 8378 for ac_prog in ar 8379do 8380 # Extract the first word of "$ac_prog", so it can be a program name with args. 8381set dummy $ac_prog; ac_word=$2 8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8383$as_echo_n "checking for $ac_word... " >&6; } 8384if ${ac_cv_prog_ac_ct_AR+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 if test -n "$ac_ct_AR"; then 8388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8389else 8390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8391for as_dir in $PATH 8392do 8393 IFS=$as_save_IFS 8394 test -z "$as_dir" && as_dir=. 8395 for ac_exec_ext in '' $ac_executable_extensions; do 8396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8397 ac_cv_prog_ac_ct_AR="$ac_prog" 8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8399 break 2 8400 fi 8401done 8402 done 8403IFS=$as_save_IFS 8404 8405fi 8406fi 8407ac_ct_AR=$ac_cv_prog_ac_ct_AR 8408if test -n "$ac_ct_AR"; then 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8410$as_echo "$ac_ct_AR" >&6; } 8411else 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8413$as_echo "no" >&6; } 8414fi 8415 8416 8417 test -n "$ac_ct_AR" && break 8418done 8419 8420 if test "x$ac_ct_AR" = x; then 8421 AR="false" 8422 else 8423 case $cross_compiling:$ac_tool_warned in 8424yes:) 8425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8427ac_tool_warned=yes ;; 8428esac 8429 AR=$ac_ct_AR 8430 fi 8431fi 8432 8433: ${AR=ar} 8434: ${AR_FLAGS=cru} 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8447$as_echo_n "checking for archiver @FILE support... " >&6; } 8448if ${lt_cv_ar_at_file+:} false; then : 8449 $as_echo_n "(cached) " >&6 8450else 8451 lt_cv_ar_at_file=no 8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8453/* end confdefs.h. */ 8454 8455int 8456main () 8457{ 8458 8459 ; 8460 return 0; 8461} 8462_ACEOF 8463if ac_fn_c_try_compile "$LINENO"; then : 8464 echo conftest.$ac_objext > conftest.lst 8465 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8467 (eval $lt_ar_try) 2>&5 8468 ac_status=$? 8469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8470 test $ac_status = 0; } 8471 if test 0 -eq "$ac_status"; then 8472 # Ensure the archiver fails upon bogus file names. 8473 rm -f conftest.$ac_objext libconftest.a 8474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8475 (eval $lt_ar_try) 2>&5 8476 ac_status=$? 8477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8478 test $ac_status = 0; } 8479 if test 0 -ne "$ac_status"; then 8480 lt_cv_ar_at_file=@ 8481 fi 8482 fi 8483 rm -f conftest.* libconftest.a 8484 8485fi 8486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8487 8488fi 8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8490$as_echo "$lt_cv_ar_at_file" >&6; } 8491 8492if test no = "$lt_cv_ar_at_file"; then 8493 archiver_list_spec= 8494else 8495 archiver_list_spec=$lt_cv_ar_at_file 8496fi 8497 8498 8499 8500 8501 8502 8503 8504if test -n "$ac_tool_prefix"; then 8505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8506set dummy ${ac_tool_prefix}strip; ac_word=$2 8507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8508$as_echo_n "checking for $ac_word... " >&6; } 8509if ${ac_cv_prog_STRIP+:} false; then : 8510 $as_echo_n "(cached) " >&6 8511else 8512 if test -n "$STRIP"; then 8513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8514else 8515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8516for as_dir in $PATH 8517do 8518 IFS=$as_save_IFS 8519 test -z "$as_dir" && as_dir=. 8520 for ac_exec_ext in '' $ac_executable_extensions; do 8521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8522 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8524 break 2 8525 fi 8526done 8527 done 8528IFS=$as_save_IFS 8529 8530fi 8531fi 8532STRIP=$ac_cv_prog_STRIP 8533if test -n "$STRIP"; then 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8535$as_echo "$STRIP" >&6; } 8536else 8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8538$as_echo "no" >&6; } 8539fi 8540 8541 8542fi 8543if test -z "$ac_cv_prog_STRIP"; then 8544 ac_ct_STRIP=$STRIP 8545 # Extract the first word of "strip", so it can be a program name with args. 8546set dummy strip; ac_word=$2 8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8548$as_echo_n "checking for $ac_word... " >&6; } 8549if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8550 $as_echo_n "(cached) " >&6 8551else 8552 if test -n "$ac_ct_STRIP"; then 8553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8554else 8555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8556for as_dir in $PATH 8557do 8558 IFS=$as_save_IFS 8559 test -z "$as_dir" && as_dir=. 8560 for ac_exec_ext in '' $ac_executable_extensions; do 8561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8562 ac_cv_prog_ac_ct_STRIP="strip" 8563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8564 break 2 8565 fi 8566done 8567 done 8568IFS=$as_save_IFS 8569 8570fi 8571fi 8572ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8573if test -n "$ac_ct_STRIP"; then 8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8575$as_echo "$ac_ct_STRIP" >&6; } 8576else 8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8578$as_echo "no" >&6; } 8579fi 8580 8581 if test "x$ac_ct_STRIP" = x; then 8582 STRIP=":" 8583 else 8584 case $cross_compiling:$ac_tool_warned in 8585yes:) 8586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8588ac_tool_warned=yes ;; 8589esac 8590 STRIP=$ac_ct_STRIP 8591 fi 8592else 8593 STRIP="$ac_cv_prog_STRIP" 8594fi 8595 8596test -z "$STRIP" && STRIP=: 8597 8598 8599 8600 8601 8602 8603if test -n "$ac_tool_prefix"; then 8604 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8605set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8607$as_echo_n "checking for $ac_word... " >&6; } 8608if ${ac_cv_prog_RANLIB+:} false; then : 8609 $as_echo_n "(cached) " >&6 8610else 8611 if test -n "$RANLIB"; then 8612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8613else 8614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8615for as_dir in $PATH 8616do 8617 IFS=$as_save_IFS 8618 test -z "$as_dir" && as_dir=. 8619 for ac_exec_ext in '' $ac_executable_extensions; do 8620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8621 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8623 break 2 8624 fi 8625done 8626 done 8627IFS=$as_save_IFS 8628 8629fi 8630fi 8631RANLIB=$ac_cv_prog_RANLIB 8632if test -n "$RANLIB"; then 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8634$as_echo "$RANLIB" >&6; } 8635else 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8637$as_echo "no" >&6; } 8638fi 8639 8640 8641fi 8642if test -z "$ac_cv_prog_RANLIB"; then 8643 ac_ct_RANLIB=$RANLIB 8644 # Extract the first word of "ranlib", so it can be a program name with args. 8645set dummy ranlib; ac_word=$2 8646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8647$as_echo_n "checking for $ac_word... " >&6; } 8648if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8649 $as_echo_n "(cached) " >&6 8650else 8651 if test -n "$ac_ct_RANLIB"; then 8652 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8653else 8654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8655for as_dir in $PATH 8656do 8657 IFS=$as_save_IFS 8658 test -z "$as_dir" && as_dir=. 8659 for ac_exec_ext in '' $ac_executable_extensions; do 8660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8661 ac_cv_prog_ac_ct_RANLIB="ranlib" 8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8663 break 2 8664 fi 8665done 8666 done 8667IFS=$as_save_IFS 8668 8669fi 8670fi 8671ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8672if test -n "$ac_ct_RANLIB"; then 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8674$as_echo "$ac_ct_RANLIB" >&6; } 8675else 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8677$as_echo "no" >&6; } 8678fi 8679 8680 if test "x$ac_ct_RANLIB" = x; then 8681 RANLIB=":" 8682 else 8683 case $cross_compiling:$ac_tool_warned in 8684yes:) 8685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8687ac_tool_warned=yes ;; 8688esac 8689 RANLIB=$ac_ct_RANLIB 8690 fi 8691else 8692 RANLIB="$ac_cv_prog_RANLIB" 8693fi 8694 8695test -z "$RANLIB" && RANLIB=: 8696 8697 8698 8699 8700 8701 8702# Determine commands to create old-style static archives. 8703old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8704old_postinstall_cmds='chmod 644 $oldlib' 8705old_postuninstall_cmds= 8706 8707if test -n "$RANLIB"; then 8708 case $host_os in 8709 bitrig* | openbsd*) 8710 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8711 ;; 8712 *) 8713 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8714 ;; 8715 esac 8716 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8717fi 8718 8719case $host_os in 8720 darwin*) 8721 lock_old_archive_extraction=yes ;; 8722 *) 8723 lock_old_archive_extraction=no ;; 8724esac 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746for ac_prog in gawk mawk nawk awk 8747do 8748 # Extract the first word of "$ac_prog", so it can be a program name with args. 8749set dummy $ac_prog; ac_word=$2 8750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8751$as_echo_n "checking for $ac_word... " >&6; } 8752if ${ac_cv_prog_AWK+:} false; then : 8753 $as_echo_n "(cached) " >&6 8754else 8755 if test -n "$AWK"; then 8756 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8757else 8758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8759for as_dir in $PATH 8760do 8761 IFS=$as_save_IFS 8762 test -z "$as_dir" && as_dir=. 8763 for ac_exec_ext in '' $ac_executable_extensions; do 8764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8765 ac_cv_prog_AWK="$ac_prog" 8766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8767 break 2 8768 fi 8769done 8770 done 8771IFS=$as_save_IFS 8772 8773fi 8774fi 8775AWK=$ac_cv_prog_AWK 8776if test -n "$AWK"; then 8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8778$as_echo "$AWK" >&6; } 8779else 8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8781$as_echo "no" >&6; } 8782fi 8783 8784 8785 test -n "$AWK" && break 8786done 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806# If no C compiler was specified, use CC. 8807LTCC=${LTCC-"$CC"} 8808 8809# If no C compiler flags were specified, use CFLAGS. 8810LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8811 8812# Allow CC to be a program name with arguments. 8813compiler=$CC 8814 8815 8816# Check for command to grab the raw symbol name followed by C symbol from nm. 8817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8818$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8819if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8820 $as_echo_n "(cached) " >&6 8821else 8822 8823# These are sane defaults that work on at least a few old systems. 8824# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8825 8826# Character class describing NM global symbol codes. 8827symcode='[BCDEGRST]' 8828 8829# Regexp to match symbols that can be accessed directly from C. 8830sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8831 8832# Define system-specific variables. 8833case $host_os in 8834aix*) 8835 symcode='[BCDT]' 8836 ;; 8837cygwin* | mingw* | pw32* | cegcc*) 8838 symcode='[ABCDGISTW]' 8839 ;; 8840hpux*) 8841 if test ia64 = "$host_cpu"; then 8842 symcode='[ABCDEGRST]' 8843 fi 8844 ;; 8845irix* | nonstopux*) 8846 symcode='[BCDEGRST]' 8847 ;; 8848osf*) 8849 symcode='[BCDEGQRST]' 8850 ;; 8851solaris*) 8852 symcode='[BDRT]' 8853 ;; 8854sco3.2v5*) 8855 symcode='[DT]' 8856 ;; 8857sysv4.2uw2*) 8858 symcode='[DT]' 8859 ;; 8860sysv5* | sco5v6* | unixware* | OpenUNIX*) 8861 symcode='[ABDT]' 8862 ;; 8863sysv4) 8864 symcode='[DFNSTU]' 8865 ;; 8866esac 8867 8868# If we're using GNU nm, then use its standard symbol codes. 8869case `$NM -V 2>&1` in 8870*GNU* | *'with BFD'*) 8871 symcode='[ABCDGIRSTW]' ;; 8872esac 8873 8874if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8875 # Gets list of data symbols to import. 8876 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8877 # Adjust the below global symbol transforms to fixup imported variables. 8878 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8879 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8880 lt_c_name_lib_hook="\ 8881 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8882 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8883else 8884 # Disable hooks by default. 8885 lt_cv_sys_global_symbol_to_import= 8886 lt_cdecl_hook= 8887 lt_c_name_hook= 8888 lt_c_name_lib_hook= 8889fi 8890 8891# Transform an extracted symbol line into a proper C declaration. 8892# Some systems (esp. on ia64) link data and code symbols differently, 8893# so use this general approach. 8894lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8895$lt_cdecl_hook\ 8896" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8897" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8898 8899# Transform an extracted symbol line into symbol name and symbol address 8900lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8901$lt_c_name_hook\ 8902" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8903" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8904 8905# Transform an extracted symbol line into symbol name with lib prefix and 8906# symbol address. 8907lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8908$lt_c_name_lib_hook\ 8909" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8910" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8911" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8912 8913# Handle CRLF in mingw tool chain 8914opt_cr= 8915case $build_os in 8916mingw*) 8917 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8918 ;; 8919esac 8920 8921# Try without a prefix underscore, then with it. 8922for ac_symprfx in "" "_"; do 8923 8924 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8925 symxfrm="\\1 $ac_symprfx\\2 \\2" 8926 8927 # Write the raw and C identifiers. 8928 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8929 # Fake it for dumpbin and say T for any non-static function, 8930 # D for any global variable and I for any imported variable. 8931 # Also find C++ and __fastcall symbols from MSVC++, 8932 # which start with @ or ?. 8933 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8934" {last_section=section; section=\$ 3};"\ 8935" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8936" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8937" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8938" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8939" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8940" \$ 0!~/External *\|/{next};"\ 8941" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8942" {if(hide[section]) next};"\ 8943" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8944" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8945" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8946" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8947" ' prfx=^$ac_symprfx" 8948 else 8949 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8950 fi 8951 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8952 8953 # Check to see that the pipe works correctly. 8954 pipe_works=no 8955 8956 rm -f conftest* 8957 cat > conftest.$ac_ext <<_LT_EOF 8958#ifdef __cplusplus 8959extern "C" { 8960#endif 8961char nm_test_var; 8962void nm_test_func(void); 8963void nm_test_func(void){} 8964#ifdef __cplusplus 8965} 8966#endif 8967int main(){nm_test_var='a';nm_test_func();return(0);} 8968_LT_EOF 8969 8970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8971 (eval $ac_compile) 2>&5 8972 ac_status=$? 8973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8974 test $ac_status = 0; }; then 8975 # Now try to grab the symbols. 8976 nlist=conftest.nm 8977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8978 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8979 ac_status=$? 8980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8981 test $ac_status = 0; } && test -s "$nlist"; then 8982 # Try sorting and uniquifying the output. 8983 if sort "$nlist" | uniq > "$nlist"T; then 8984 mv -f "$nlist"T "$nlist" 8985 else 8986 rm -f "$nlist"T 8987 fi 8988 8989 # Make sure that we snagged all the symbols we need. 8990 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8991 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8992 cat <<_LT_EOF > conftest.$ac_ext 8993/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8994#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8995/* DATA imports from DLLs on WIN32 can't be const, because runtime 8996 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8997# define LT_DLSYM_CONST 8998#elif defined __osf__ 8999/* This system does not cope well with relocations in const data. */ 9000# define LT_DLSYM_CONST 9001#else 9002# define LT_DLSYM_CONST const 9003#endif 9004 9005#ifdef __cplusplus 9006extern "C" { 9007#endif 9008 9009_LT_EOF 9010 # Now generate the symbol file. 9011 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9012 9013 cat <<_LT_EOF >> conftest.$ac_ext 9014 9015/* The mapping between symbol names and symbols. */ 9016LT_DLSYM_CONST struct { 9017 const char *name; 9018 void *address; 9019} 9020lt__PROGRAM__LTX_preloaded_symbols[] = 9021{ 9022 { "@PROGRAM@", (void *) 0 }, 9023_LT_EOF 9024 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9025 cat <<\_LT_EOF >> conftest.$ac_ext 9026 {0, (void *) 0} 9027}; 9028 9029/* This works around a problem in FreeBSD linker */ 9030#ifdef FREEBSD_WORKAROUND 9031static const void *lt_preloaded_setup() { 9032 return lt__PROGRAM__LTX_preloaded_symbols; 9033} 9034#endif 9035 9036#ifdef __cplusplus 9037} 9038#endif 9039_LT_EOF 9040 # Now try linking the two files. 9041 mv conftest.$ac_objext conftstm.$ac_objext 9042 lt_globsym_save_LIBS=$LIBS 9043 lt_globsym_save_CFLAGS=$CFLAGS 9044 LIBS=conftstm.$ac_objext 9045 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9047 (eval $ac_link) 2>&5 9048 ac_status=$? 9049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9050 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9051 pipe_works=yes 9052 fi 9053 LIBS=$lt_globsym_save_LIBS 9054 CFLAGS=$lt_globsym_save_CFLAGS 9055 else 9056 echo "cannot find nm_test_func in $nlist" >&5 9057 fi 9058 else 9059 echo "cannot find nm_test_var in $nlist" >&5 9060 fi 9061 else 9062 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9063 fi 9064 else 9065 echo "$progname: failed program was:" >&5 9066 cat conftest.$ac_ext >&5 9067 fi 9068 rm -rf conftest* conftst* 9069 9070 # Do not use the global_symbol_pipe unless it works. 9071 if test yes = "$pipe_works"; then 9072 break 9073 else 9074 lt_cv_sys_global_symbol_pipe= 9075 fi 9076done 9077 9078fi 9079 9080if test -z "$lt_cv_sys_global_symbol_pipe"; then 9081 lt_cv_sys_global_symbol_to_cdecl= 9082fi 9083if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9085$as_echo "failed" >&6; } 9086else 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9088$as_echo "ok" >&6; } 9089fi 9090 9091# Response file support. 9092if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9093 nm_file_list_spec='@' 9094elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9095 nm_file_list_spec='@' 9096fi 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9135$as_echo_n "checking for sysroot... " >&6; } 9136 9137# Check whether --with-sysroot was given. 9138if test "${with_sysroot+set}" = set; then : 9139 withval=$with_sysroot; 9140else 9141 with_sysroot=no 9142fi 9143 9144 9145lt_sysroot= 9146case $with_sysroot in #( 9147 yes) 9148 if test yes = "$GCC"; then 9149 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9150 fi 9151 ;; #( 9152 /*) 9153 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9154 ;; #( 9155 no|'') 9156 ;; #( 9157 *) 9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9159$as_echo "$with_sysroot" >&6; } 9160 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9161 ;; 9162esac 9163 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9165$as_echo "${lt_sysroot:-no}" >&6; } 9166 9167 9168 9169 9170 9171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9172$as_echo_n "checking for a working dd... " >&6; } 9173if ${ac_cv_path_lt_DD+:} false; then : 9174 $as_echo_n "(cached) " >&6 9175else 9176 printf 0123456789abcdef0123456789abcdef >conftest.i 9177cat conftest.i conftest.i >conftest2.i 9178: ${lt_DD:=$DD} 9179if test -z "$lt_DD"; then 9180 ac_path_lt_DD_found=false 9181 # Loop through the user's path and test for each of PROGNAME-LIST 9182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9183for as_dir in $PATH 9184do 9185 IFS=$as_save_IFS 9186 test -z "$as_dir" && as_dir=. 9187 for ac_prog in dd; do 9188 for ac_exec_ext in '' $ac_executable_extensions; do 9189 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9190 as_fn_executable_p "$ac_path_lt_DD" || continue 9191if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9192 cmp -s conftest.i conftest.out \ 9193 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9194fi 9195 $ac_path_lt_DD_found && break 3 9196 done 9197 done 9198 done 9199IFS=$as_save_IFS 9200 if test -z "$ac_cv_path_lt_DD"; then 9201 : 9202 fi 9203else 9204 ac_cv_path_lt_DD=$lt_DD 9205fi 9206 9207rm -f conftest.i conftest2.i conftest.out 9208fi 9209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9210$as_echo "$ac_cv_path_lt_DD" >&6; } 9211 9212 9213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9214$as_echo_n "checking how to truncate binary pipes... " >&6; } 9215if ${lt_cv_truncate_bin+:} false; then : 9216 $as_echo_n "(cached) " >&6 9217else 9218 printf 0123456789abcdef0123456789abcdef >conftest.i 9219cat conftest.i conftest.i >conftest2.i 9220lt_cv_truncate_bin= 9221if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9222 cmp -s conftest.i conftest.out \ 9223 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9224fi 9225rm -f conftest.i conftest2.i conftest.out 9226test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9227fi 9228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9229$as_echo "$lt_cv_truncate_bin" >&6; } 9230 9231 9232 9233 9234 9235 9236 9237# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9238func_cc_basename () 9239{ 9240 for cc_temp in $*""; do 9241 case $cc_temp in 9242 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9243 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9244 \-*) ;; 9245 *) break;; 9246 esac 9247 done 9248 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9249} 9250 9251# Check whether --enable-libtool-lock was given. 9252if test "${enable_libtool_lock+set}" = set; then : 9253 enableval=$enable_libtool_lock; 9254fi 9255 9256test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9257 9258# Some flags need to be propagated to the compiler or linker for good 9259# libtool support. 9260case $host in 9261ia64-*-hpux*) 9262 # Find out what ABI is being produced by ac_compile, and set mode 9263 # options accordingly. 9264 echo 'int i;' > conftest.$ac_ext 9265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9266 (eval $ac_compile) 2>&5 9267 ac_status=$? 9268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9269 test $ac_status = 0; }; then 9270 case `/usr/bin/file conftest.$ac_objext` in 9271 *ELF-32*) 9272 HPUX_IA64_MODE=32 9273 ;; 9274 *ELF-64*) 9275 HPUX_IA64_MODE=64 9276 ;; 9277 esac 9278 fi 9279 rm -rf conftest* 9280 ;; 9281*-*-irix6*) 9282 # Find out what ABI is being produced by ac_compile, and set linker 9283 # options accordingly. 9284 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9286 (eval $ac_compile) 2>&5 9287 ac_status=$? 9288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9289 test $ac_status = 0; }; then 9290 if test yes = "$lt_cv_prog_gnu_ld"; then 9291 case `/usr/bin/file conftest.$ac_objext` in 9292 *32-bit*) 9293 LD="${LD-ld} -melf32bsmip" 9294 ;; 9295 *N32*) 9296 LD="${LD-ld} -melf32bmipn32" 9297 ;; 9298 *64-bit*) 9299 LD="${LD-ld} -melf64bmip" 9300 ;; 9301 esac 9302 else 9303 case `/usr/bin/file conftest.$ac_objext` in 9304 *32-bit*) 9305 LD="${LD-ld} -32" 9306 ;; 9307 *N32*) 9308 LD="${LD-ld} -n32" 9309 ;; 9310 *64-bit*) 9311 LD="${LD-ld} -64" 9312 ;; 9313 esac 9314 fi 9315 fi 9316 rm -rf conftest* 9317 ;; 9318 9319mips64*-*linux*) 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 emul=elf 9329 case `/usr/bin/file conftest.$ac_objext` in 9330 *32-bit*) 9331 emul="${emul}32" 9332 ;; 9333 *64-bit*) 9334 emul="${emul}64" 9335 ;; 9336 esac 9337 case `/usr/bin/file conftest.$ac_objext` in 9338 *MSB*) 9339 emul="${emul}btsmip" 9340 ;; 9341 *LSB*) 9342 emul="${emul}ltsmip" 9343 ;; 9344 esac 9345 case `/usr/bin/file conftest.$ac_objext` in 9346 *N32*) 9347 emul="${emul}n32" 9348 ;; 9349 esac 9350 LD="${LD-ld} -m $emul" 9351 fi 9352 rm -rf conftest* 9353 ;; 9354 9355x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9356s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9357 # Find out what ABI is being produced by ac_compile, and set linker 9358 # options accordingly. Note that the listed cases only cover the 9359 # situations where additional linker options are needed (such as when 9360 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9361 # vice versa); the common cases where no linker options are needed do 9362 # not appear in the list. 9363 echo 'int i;' > conftest.$ac_ext 9364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9365 (eval $ac_compile) 2>&5 9366 ac_status=$? 9367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9368 test $ac_status = 0; }; then 9369 case `/usr/bin/file conftest.o` in 9370 *32-bit*) 9371 case $host in 9372 x86_64-*kfreebsd*-gnu) 9373 LD="${LD-ld} -m elf_i386_fbsd" 9374 ;; 9375 x86_64-*linux*) 9376 case `/usr/bin/file conftest.o` in 9377 *x86-64*) 9378 LD="${LD-ld} -m elf32_x86_64" 9379 ;; 9380 *) 9381 LD="${LD-ld} -m elf_i386" 9382 ;; 9383 esac 9384 ;; 9385 powerpc64le-*linux*) 9386 LD="${LD-ld} -m elf32lppclinux" 9387 ;; 9388 powerpc64-*linux*) 9389 LD="${LD-ld} -m elf32ppclinux" 9390 ;; 9391 s390x-*linux*) 9392 LD="${LD-ld} -m elf_s390" 9393 ;; 9394 sparc64-*linux*) 9395 LD="${LD-ld} -m elf32_sparc" 9396 ;; 9397 esac 9398 ;; 9399 *64-bit*) 9400 case $host in 9401 x86_64-*kfreebsd*-gnu) 9402 LD="${LD-ld} -m elf_x86_64_fbsd" 9403 ;; 9404 x86_64-*linux*) 9405 LD="${LD-ld} -m elf_x86_64" 9406 ;; 9407 powerpcle-*linux*) 9408 LD="${LD-ld} -m elf64lppc" 9409 ;; 9410 powerpc-*linux*) 9411 LD="${LD-ld} -m elf64ppc" 9412 ;; 9413 s390*-*linux*|s390*-*tpf*) 9414 LD="${LD-ld} -m elf64_s390" 9415 ;; 9416 sparc*-*linux*) 9417 LD="${LD-ld} -m elf64_sparc" 9418 ;; 9419 esac 9420 ;; 9421 esac 9422 fi 9423 rm -rf conftest* 9424 ;; 9425 9426*-*-sco3.2v5*) 9427 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9428 SAVE_CFLAGS=$CFLAGS 9429 CFLAGS="$CFLAGS -belf" 9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9431$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9432if ${lt_cv_cc_needs_belf+:} false; then : 9433 $as_echo_n "(cached) " >&6 9434else 9435 ac_ext=c 9436ac_cpp='$CPP $CPPFLAGS' 9437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9439ac_compiler_gnu=$ac_cv_c_compiler_gnu 9440 9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9442/* end confdefs.h. */ 9443 9444int 9445main () 9446{ 9447 9448 ; 9449 return 0; 9450} 9451_ACEOF 9452if ac_fn_c_try_link "$LINENO"; then : 9453 lt_cv_cc_needs_belf=yes 9454else 9455 lt_cv_cc_needs_belf=no 9456fi 9457rm -f core conftest.err conftest.$ac_objext \ 9458 conftest$ac_exeext conftest.$ac_ext 9459 ac_ext=c 9460ac_cpp='$CPP $CPPFLAGS' 9461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9463ac_compiler_gnu=$ac_cv_c_compiler_gnu 9464 9465fi 9466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9467$as_echo "$lt_cv_cc_needs_belf" >&6; } 9468 if test yes != "$lt_cv_cc_needs_belf"; then 9469 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9470 CFLAGS=$SAVE_CFLAGS 9471 fi 9472 ;; 9473*-*solaris*) 9474 # Find out what ABI is being produced by ac_compile, and set linker 9475 # options accordingly. 9476 echo 'int i;' > conftest.$ac_ext 9477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9478 (eval $ac_compile) 2>&5 9479 ac_status=$? 9480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9481 test $ac_status = 0; }; then 9482 case `/usr/bin/file conftest.o` in 9483 *64-bit*) 9484 case $lt_cv_prog_gnu_ld in 9485 yes*) 9486 case $host in 9487 i?86-*-solaris*|x86_64-*-solaris*) 9488 LD="${LD-ld} -m elf_x86_64" 9489 ;; 9490 sparc*-*-solaris*) 9491 LD="${LD-ld} -m elf64_sparc" 9492 ;; 9493 esac 9494 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9495 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9496 LD=${LD-ld}_sol2 9497 fi 9498 ;; 9499 *) 9500 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9501 LD="${LD-ld} -64" 9502 fi 9503 ;; 9504 esac 9505 ;; 9506 esac 9507 fi 9508 rm -rf conftest* 9509 ;; 9510esac 9511 9512need_locks=$enable_libtool_lock 9513 9514if test -n "$ac_tool_prefix"; then 9515 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9516set dummy ${ac_tool_prefix}mt; ac_word=$2 9517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9518$as_echo_n "checking for $ac_word... " >&6; } 9519if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9520 $as_echo_n "(cached) " >&6 9521else 9522 if test -n "$MANIFEST_TOOL"; then 9523 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9524else 9525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9526for as_dir in $PATH 9527do 9528 IFS=$as_save_IFS 9529 test -z "$as_dir" && as_dir=. 9530 for ac_exec_ext in '' $ac_executable_extensions; do 9531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9532 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9534 break 2 9535 fi 9536done 9537 done 9538IFS=$as_save_IFS 9539 9540fi 9541fi 9542MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9543if test -n "$MANIFEST_TOOL"; then 9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9545$as_echo "$MANIFEST_TOOL" >&6; } 9546else 9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9548$as_echo "no" >&6; } 9549fi 9550 9551 9552fi 9553if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9554 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9555 # Extract the first word of "mt", so it can be a program name with args. 9556set dummy mt; ac_word=$2 9557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9558$as_echo_n "checking for $ac_word... " >&6; } 9559if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9560 $as_echo_n "(cached) " >&6 9561else 9562 if test -n "$ac_ct_MANIFEST_TOOL"; then 9563 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9564else 9565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9566for as_dir in $PATH 9567do 9568 IFS=$as_save_IFS 9569 test -z "$as_dir" && as_dir=. 9570 for ac_exec_ext in '' $ac_executable_extensions; do 9571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9572 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9574 break 2 9575 fi 9576done 9577 done 9578IFS=$as_save_IFS 9579 9580fi 9581fi 9582ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9583if test -n "$ac_ct_MANIFEST_TOOL"; then 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9585$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9586else 9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9588$as_echo "no" >&6; } 9589fi 9590 9591 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9592 MANIFEST_TOOL=":" 9593 else 9594 case $cross_compiling:$ac_tool_warned in 9595yes:) 9596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9598ac_tool_warned=yes ;; 9599esac 9600 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9601 fi 9602else 9603 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9604fi 9605 9606test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9608$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9609if ${lt_cv_path_mainfest_tool+:} false; then : 9610 $as_echo_n "(cached) " >&6 9611else 9612 lt_cv_path_mainfest_tool=no 9613 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9614 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9615 cat conftest.err >&5 9616 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9617 lt_cv_path_mainfest_tool=yes 9618 fi 9619 rm -f conftest* 9620fi 9621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9622$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9623if test yes != "$lt_cv_path_mainfest_tool"; then 9624 MANIFEST_TOOL=: 9625fi 9626 9627 9628 9629 9630 9631 9632 case $host_os in 9633 rhapsody* | darwin*) 9634 if test -n "$ac_tool_prefix"; then 9635 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9636set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9638$as_echo_n "checking for $ac_word... " >&6; } 9639if ${ac_cv_prog_DSYMUTIL+:} false; then : 9640 $as_echo_n "(cached) " >&6 9641else 9642 if test -n "$DSYMUTIL"; then 9643 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9644else 9645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9646for as_dir in $PATH 9647do 9648 IFS=$as_save_IFS 9649 test -z "$as_dir" && as_dir=. 9650 for ac_exec_ext in '' $ac_executable_extensions; do 9651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9652 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9654 break 2 9655 fi 9656done 9657 done 9658IFS=$as_save_IFS 9659 9660fi 9661fi 9662DSYMUTIL=$ac_cv_prog_DSYMUTIL 9663if test -n "$DSYMUTIL"; then 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9665$as_echo "$DSYMUTIL" >&6; } 9666else 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9668$as_echo "no" >&6; } 9669fi 9670 9671 9672fi 9673if test -z "$ac_cv_prog_DSYMUTIL"; then 9674 ac_ct_DSYMUTIL=$DSYMUTIL 9675 # Extract the first word of "dsymutil", so it can be a program name with args. 9676set dummy dsymutil; ac_word=$2 9677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9678$as_echo_n "checking for $ac_word... " >&6; } 9679if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9680 $as_echo_n "(cached) " >&6 9681else 9682 if test -n "$ac_ct_DSYMUTIL"; then 9683 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9684else 9685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9686for as_dir in $PATH 9687do 9688 IFS=$as_save_IFS 9689 test -z "$as_dir" && as_dir=. 9690 for ac_exec_ext in '' $ac_executable_extensions; do 9691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9692 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9694 break 2 9695 fi 9696done 9697 done 9698IFS=$as_save_IFS 9699 9700fi 9701fi 9702ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9703if test -n "$ac_ct_DSYMUTIL"; then 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9705$as_echo "$ac_ct_DSYMUTIL" >&6; } 9706else 9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9708$as_echo "no" >&6; } 9709fi 9710 9711 if test "x$ac_ct_DSYMUTIL" = x; then 9712 DSYMUTIL=":" 9713 else 9714 case $cross_compiling:$ac_tool_warned in 9715yes:) 9716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9718ac_tool_warned=yes ;; 9719esac 9720 DSYMUTIL=$ac_ct_DSYMUTIL 9721 fi 9722else 9723 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9724fi 9725 9726 if test -n "$ac_tool_prefix"; then 9727 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9728set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9730$as_echo_n "checking for $ac_word... " >&6; } 9731if ${ac_cv_prog_NMEDIT+:} false; then : 9732 $as_echo_n "(cached) " >&6 9733else 9734 if test -n "$NMEDIT"; then 9735 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9736else 9737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9738for as_dir in $PATH 9739do 9740 IFS=$as_save_IFS 9741 test -z "$as_dir" && as_dir=. 9742 for ac_exec_ext in '' $ac_executable_extensions; do 9743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9744 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9746 break 2 9747 fi 9748done 9749 done 9750IFS=$as_save_IFS 9751 9752fi 9753fi 9754NMEDIT=$ac_cv_prog_NMEDIT 9755if test -n "$NMEDIT"; then 9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9757$as_echo "$NMEDIT" >&6; } 9758else 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9760$as_echo "no" >&6; } 9761fi 9762 9763 9764fi 9765if test -z "$ac_cv_prog_NMEDIT"; then 9766 ac_ct_NMEDIT=$NMEDIT 9767 # Extract the first word of "nmedit", so it can be a program name with args. 9768set dummy nmedit; ac_word=$2 9769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9770$as_echo_n "checking for $ac_word... " >&6; } 9771if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9772 $as_echo_n "(cached) " >&6 9773else 9774 if test -n "$ac_ct_NMEDIT"; then 9775 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9776else 9777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9778for as_dir in $PATH 9779do 9780 IFS=$as_save_IFS 9781 test -z "$as_dir" && as_dir=. 9782 for ac_exec_ext in '' $ac_executable_extensions; do 9783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9784 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9786 break 2 9787 fi 9788done 9789 done 9790IFS=$as_save_IFS 9791 9792fi 9793fi 9794ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9795if test -n "$ac_ct_NMEDIT"; then 9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9797$as_echo "$ac_ct_NMEDIT" >&6; } 9798else 9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9800$as_echo "no" >&6; } 9801fi 9802 9803 if test "x$ac_ct_NMEDIT" = x; then 9804 NMEDIT=":" 9805 else 9806 case $cross_compiling:$ac_tool_warned in 9807yes:) 9808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9810ac_tool_warned=yes ;; 9811esac 9812 NMEDIT=$ac_ct_NMEDIT 9813 fi 9814else 9815 NMEDIT="$ac_cv_prog_NMEDIT" 9816fi 9817 9818 if test -n "$ac_tool_prefix"; then 9819 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9820set dummy ${ac_tool_prefix}lipo; ac_word=$2 9821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9822$as_echo_n "checking for $ac_word... " >&6; } 9823if ${ac_cv_prog_LIPO+:} false; then : 9824 $as_echo_n "(cached) " >&6 9825else 9826 if test -n "$LIPO"; then 9827 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9828else 9829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9830for as_dir in $PATH 9831do 9832 IFS=$as_save_IFS 9833 test -z "$as_dir" && as_dir=. 9834 for ac_exec_ext in '' $ac_executable_extensions; do 9835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9836 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9838 break 2 9839 fi 9840done 9841 done 9842IFS=$as_save_IFS 9843 9844fi 9845fi 9846LIPO=$ac_cv_prog_LIPO 9847if test -n "$LIPO"; then 9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9849$as_echo "$LIPO" >&6; } 9850else 9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9852$as_echo "no" >&6; } 9853fi 9854 9855 9856fi 9857if test -z "$ac_cv_prog_LIPO"; then 9858 ac_ct_LIPO=$LIPO 9859 # Extract the first word of "lipo", so it can be a program name with args. 9860set dummy lipo; ac_word=$2 9861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9862$as_echo_n "checking for $ac_word... " >&6; } 9863if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9864 $as_echo_n "(cached) " >&6 9865else 9866 if test -n "$ac_ct_LIPO"; then 9867 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9868else 9869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9870for as_dir in $PATH 9871do 9872 IFS=$as_save_IFS 9873 test -z "$as_dir" && as_dir=. 9874 for ac_exec_ext in '' $ac_executable_extensions; do 9875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9876 ac_cv_prog_ac_ct_LIPO="lipo" 9877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9878 break 2 9879 fi 9880done 9881 done 9882IFS=$as_save_IFS 9883 9884fi 9885fi 9886ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9887if test -n "$ac_ct_LIPO"; then 9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9889$as_echo "$ac_ct_LIPO" >&6; } 9890else 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9892$as_echo "no" >&6; } 9893fi 9894 9895 if test "x$ac_ct_LIPO" = x; then 9896 LIPO=":" 9897 else 9898 case $cross_compiling:$ac_tool_warned in 9899yes:) 9900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9902ac_tool_warned=yes ;; 9903esac 9904 LIPO=$ac_ct_LIPO 9905 fi 9906else 9907 LIPO="$ac_cv_prog_LIPO" 9908fi 9909 9910 if test -n "$ac_tool_prefix"; then 9911 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9912set dummy ${ac_tool_prefix}otool; ac_word=$2 9913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9914$as_echo_n "checking for $ac_word... " >&6; } 9915if ${ac_cv_prog_OTOOL+:} false; then : 9916 $as_echo_n "(cached) " >&6 9917else 9918 if test -n "$OTOOL"; then 9919 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9920else 9921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9922for as_dir in $PATH 9923do 9924 IFS=$as_save_IFS 9925 test -z "$as_dir" && as_dir=. 9926 for ac_exec_ext in '' $ac_executable_extensions; do 9927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9928 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9930 break 2 9931 fi 9932done 9933 done 9934IFS=$as_save_IFS 9935 9936fi 9937fi 9938OTOOL=$ac_cv_prog_OTOOL 9939if test -n "$OTOOL"; then 9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9941$as_echo "$OTOOL" >&6; } 9942else 9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9944$as_echo "no" >&6; } 9945fi 9946 9947 9948fi 9949if test -z "$ac_cv_prog_OTOOL"; then 9950 ac_ct_OTOOL=$OTOOL 9951 # Extract the first word of "otool", so it can be a program name with args. 9952set dummy otool; ac_word=$2 9953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9954$as_echo_n "checking for $ac_word... " >&6; } 9955if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9956 $as_echo_n "(cached) " >&6 9957else 9958 if test -n "$ac_ct_OTOOL"; then 9959 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9960else 9961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9962for as_dir in $PATH 9963do 9964 IFS=$as_save_IFS 9965 test -z "$as_dir" && as_dir=. 9966 for ac_exec_ext in '' $ac_executable_extensions; do 9967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9968 ac_cv_prog_ac_ct_OTOOL="otool" 9969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9970 break 2 9971 fi 9972done 9973 done 9974IFS=$as_save_IFS 9975 9976fi 9977fi 9978ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9979if test -n "$ac_ct_OTOOL"; then 9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9981$as_echo "$ac_ct_OTOOL" >&6; } 9982else 9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9984$as_echo "no" >&6; } 9985fi 9986 9987 if test "x$ac_ct_OTOOL" = x; then 9988 OTOOL=":" 9989 else 9990 case $cross_compiling:$ac_tool_warned in 9991yes:) 9992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9994ac_tool_warned=yes ;; 9995esac 9996 OTOOL=$ac_ct_OTOOL 9997 fi 9998else 9999 OTOOL="$ac_cv_prog_OTOOL" 10000fi 10001 10002 if test -n "$ac_tool_prefix"; then 10003 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10004set dummy ${ac_tool_prefix}otool64; ac_word=$2 10005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10006$as_echo_n "checking for $ac_word... " >&6; } 10007if ${ac_cv_prog_OTOOL64+:} false; then : 10008 $as_echo_n "(cached) " >&6 10009else 10010 if test -n "$OTOOL64"; then 10011 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10012else 10013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10014for as_dir in $PATH 10015do 10016 IFS=$as_save_IFS 10017 test -z "$as_dir" && as_dir=. 10018 for ac_exec_ext in '' $ac_executable_extensions; do 10019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10020 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10022 break 2 10023 fi 10024done 10025 done 10026IFS=$as_save_IFS 10027 10028fi 10029fi 10030OTOOL64=$ac_cv_prog_OTOOL64 10031if test -n "$OTOOL64"; then 10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10033$as_echo "$OTOOL64" >&6; } 10034else 10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10036$as_echo "no" >&6; } 10037fi 10038 10039 10040fi 10041if test -z "$ac_cv_prog_OTOOL64"; then 10042 ac_ct_OTOOL64=$OTOOL64 10043 # Extract the first word of "otool64", so it can be a program name with args. 10044set dummy otool64; ac_word=$2 10045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10046$as_echo_n "checking for $ac_word... " >&6; } 10047if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10048 $as_echo_n "(cached) " >&6 10049else 10050 if test -n "$ac_ct_OTOOL64"; then 10051 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10052else 10053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10054for as_dir in $PATH 10055do 10056 IFS=$as_save_IFS 10057 test -z "$as_dir" && as_dir=. 10058 for ac_exec_ext in '' $ac_executable_extensions; do 10059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10060 ac_cv_prog_ac_ct_OTOOL64="otool64" 10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10062 break 2 10063 fi 10064done 10065 done 10066IFS=$as_save_IFS 10067 10068fi 10069fi 10070ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10071if test -n "$ac_ct_OTOOL64"; then 10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10073$as_echo "$ac_ct_OTOOL64" >&6; } 10074else 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10076$as_echo "no" >&6; } 10077fi 10078 10079 if test "x$ac_ct_OTOOL64" = x; then 10080 OTOOL64=":" 10081 else 10082 case $cross_compiling:$ac_tool_warned in 10083yes:) 10084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10086ac_tool_warned=yes ;; 10087esac 10088 OTOOL64=$ac_ct_OTOOL64 10089 fi 10090else 10091 OTOOL64="$ac_cv_prog_OTOOL64" 10092fi 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10121$as_echo_n "checking for -single_module linker flag... " >&6; } 10122if ${lt_cv_apple_cc_single_mod+:} false; then : 10123 $as_echo_n "(cached) " >&6 10124else 10125 lt_cv_apple_cc_single_mod=no 10126 if test -z "$LT_MULTI_MODULE"; then 10127 # By default we will add the -single_module flag. You can override 10128 # by either setting the environment variable LT_MULTI_MODULE 10129 # non-empty at configure time, or by adding -multi_module to the 10130 # link flags. 10131 rm -rf libconftest.dylib* 10132 echo "int foo(void){return 1;}" > conftest.c 10133 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10134-dynamiclib -Wl,-single_module conftest.c" >&5 10135 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10136 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10137 _lt_result=$? 10138 # If there is a non-empty error log, and "single_module" 10139 # appears in it, assume the flag caused a linker warning 10140 if test -s conftest.err && $GREP single_module conftest.err; then 10141 cat conftest.err >&5 10142 # Otherwise, if the output was created with a 0 exit code from 10143 # the compiler, it worked. 10144 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10145 lt_cv_apple_cc_single_mod=yes 10146 else 10147 cat conftest.err >&5 10148 fi 10149 rm -rf libconftest.dylib* 10150 rm -f conftest.* 10151 fi 10152fi 10153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10154$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10155 10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10157$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10158if ${lt_cv_ld_exported_symbols_list+:} false; then : 10159 $as_echo_n "(cached) " >&6 10160else 10161 lt_cv_ld_exported_symbols_list=no 10162 save_LDFLAGS=$LDFLAGS 10163 echo "_main" > conftest.sym 10164 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10166/* end confdefs.h. */ 10167 10168int 10169main () 10170{ 10171 10172 ; 10173 return 0; 10174} 10175_ACEOF 10176if ac_fn_c_try_link "$LINENO"; then : 10177 lt_cv_ld_exported_symbols_list=yes 10178else 10179 lt_cv_ld_exported_symbols_list=no 10180fi 10181rm -f core conftest.err conftest.$ac_objext \ 10182 conftest$ac_exeext conftest.$ac_ext 10183 LDFLAGS=$save_LDFLAGS 10184 10185fi 10186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10187$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10188 10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10190$as_echo_n "checking for -force_load linker flag... " >&6; } 10191if ${lt_cv_ld_force_load+:} false; then : 10192 $as_echo_n "(cached) " >&6 10193else 10194 lt_cv_ld_force_load=no 10195 cat > conftest.c << _LT_EOF 10196int forced_loaded() { return 2;} 10197_LT_EOF 10198 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10199 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10200 echo "$AR cru libconftest.a conftest.o" >&5 10201 $AR cru libconftest.a conftest.o 2>&5 10202 echo "$RANLIB libconftest.a" >&5 10203 $RANLIB libconftest.a 2>&5 10204 cat > conftest.c << _LT_EOF 10205int main() { return 0;} 10206_LT_EOF 10207 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10208 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10209 _lt_result=$? 10210 if test -s conftest.err && $GREP force_load conftest.err; then 10211 cat conftest.err >&5 10212 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10213 lt_cv_ld_force_load=yes 10214 else 10215 cat conftest.err >&5 10216 fi 10217 rm -f conftest.err libconftest.a conftest conftest.c 10218 rm -rf conftest.dSYM 10219 10220fi 10221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10222$as_echo "$lt_cv_ld_force_load" >&6; } 10223 case $host_os in 10224 rhapsody* | darwin1.[012]) 10225 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10226 darwin1.*) 10227 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10228 darwin*) # darwin 5.x on 10229 # if running on 10.5 or later, the deployment target defaults 10230 # to the OS version, if on x86, and 10.4, the deployment 10231 # target defaults to 10.4. Don't you love it? 10232 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10233 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10234 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10235 10.[012][,.]*) 10236 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10237 10.*) 10238 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10239 esac 10240 ;; 10241 esac 10242 if test yes = "$lt_cv_apple_cc_single_mod"; then 10243 _lt_dar_single_mod='$single_module' 10244 fi 10245 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10246 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10247 else 10248 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10249 fi 10250 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10251 _lt_dsymutil='~$DSYMUTIL $lib || :' 10252 else 10253 _lt_dsymutil= 10254 fi 10255 ;; 10256 esac 10257 10258# func_munge_path_list VARIABLE PATH 10259# ----------------------------------- 10260# VARIABLE is name of variable containing _space_ separated list of 10261# directories to be munged by the contents of PATH, which is string 10262# having a format: 10263# "DIR[:DIR]:" 10264# string "DIR[ DIR]" will be prepended to VARIABLE 10265# ":DIR[:DIR]" 10266# string "DIR[ DIR]" will be appended to VARIABLE 10267# "DIRP[:DIRP]::[DIRA:]DIRA" 10268# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10269# "DIRA[ DIRA]" will be appended to VARIABLE 10270# "DIR[:DIR]" 10271# VARIABLE will be replaced by "DIR[ DIR]" 10272func_munge_path_list () 10273{ 10274 case x$2 in 10275 x) 10276 ;; 10277 *:) 10278 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10279 ;; 10280 x:*) 10281 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10282 ;; 10283 *::*) 10284 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10285 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10286 ;; 10287 *) 10288 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10289 ;; 10290 esac 10291} 10292 10293for ac_header in dlfcn.h 10294do : 10295 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10296" 10297if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10298 cat >>confdefs.h <<_ACEOF 10299#define HAVE_DLFCN_H 1 10300_ACEOF 10301 10302fi 10303 10304done 10305 10306 10307 10308 10309 10310 10311 10312# Set options 10313 10314 10315 10316 enable_dlopen=no 10317 10318 10319 enable_win32_dll=no 10320 10321 10322 # Check whether --enable-shared was given. 10323if test "${enable_shared+set}" = set; then : 10324 enableval=$enable_shared; p=${PACKAGE-default} 10325 case $enableval in 10326 yes) enable_shared=yes ;; 10327 no) enable_shared=no ;; 10328 *) 10329 enable_shared=no 10330 # Look at the argument we got. We use all the common list separators. 10331 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10332 for pkg in $enableval; do 10333 IFS=$lt_save_ifs 10334 if test "X$pkg" = "X$p"; then 10335 enable_shared=yes 10336 fi 10337 done 10338 IFS=$lt_save_ifs 10339 ;; 10340 esac 10341else 10342 enable_shared=yes 10343fi 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 # Check whether --enable-static was given. 10354if test "${enable_static+set}" = set; then : 10355 enableval=$enable_static; p=${PACKAGE-default} 10356 case $enableval in 10357 yes) enable_static=yes ;; 10358 no) enable_static=no ;; 10359 *) 10360 enable_static=no 10361 # Look at the argument we got. We use all the common list separators. 10362 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10363 for pkg in $enableval; do 10364 IFS=$lt_save_ifs 10365 if test "X$pkg" = "X$p"; then 10366 enable_static=yes 10367 fi 10368 done 10369 IFS=$lt_save_ifs 10370 ;; 10371 esac 10372else 10373 enable_static=yes 10374fi 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385# Check whether --with-pic was given. 10386if test "${with_pic+set}" = set; then : 10387 withval=$with_pic; lt_p=${PACKAGE-default} 10388 case $withval in 10389 yes|no) pic_mode=$withval ;; 10390 *) 10391 pic_mode=default 10392 # Look at the argument we got. We use all the common list separators. 10393 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10394 for lt_pkg in $withval; do 10395 IFS=$lt_save_ifs 10396 if test "X$lt_pkg" = "X$lt_p"; then 10397 pic_mode=yes 10398 fi 10399 done 10400 IFS=$lt_save_ifs 10401 ;; 10402 esac 10403else 10404 pic_mode=default 10405fi 10406 10407 10408 10409 10410 10411 10412 10413 10414 # Check whether --enable-fast-install was given. 10415if test "${enable_fast_install+set}" = set; then : 10416 enableval=$enable_fast_install; p=${PACKAGE-default} 10417 case $enableval in 10418 yes) enable_fast_install=yes ;; 10419 no) enable_fast_install=no ;; 10420 *) 10421 enable_fast_install=no 10422 # Look at the argument we got. We use all the common list separators. 10423 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10424 for pkg in $enableval; do 10425 IFS=$lt_save_ifs 10426 if test "X$pkg" = "X$p"; then 10427 enable_fast_install=yes 10428 fi 10429 done 10430 IFS=$lt_save_ifs 10431 ;; 10432 esac 10433else 10434 enable_fast_install=yes 10435fi 10436 10437 10438 10439 10440 10441 10442 10443 10444 shared_archive_member_spec= 10445case $host,$enable_shared in 10446power*-*-aix[5-9]*,yes) 10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10448$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 10449 10450# Check whether --with-aix-soname was given. 10451if test "${with_aix_soname+set}" = set; then : 10452 withval=$with_aix_soname; case $withval in 10453 aix|svr4|both) 10454 ;; 10455 *) 10456 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10457 ;; 10458 esac 10459 lt_cv_with_aix_soname=$with_aix_soname 10460else 10461 if ${lt_cv_with_aix_soname+:} false; then : 10462 $as_echo_n "(cached) " >&6 10463else 10464 lt_cv_with_aix_soname=aix 10465fi 10466 10467 with_aix_soname=$lt_cv_with_aix_soname 10468fi 10469 10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10471$as_echo "$with_aix_soname" >&6; } 10472 if test aix != "$with_aix_soname"; then 10473 # For the AIX way of multilib, we name the shared archive member 10474 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10475 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10476 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10477 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10478 if test 64 = "${OBJECT_MODE-32}"; then 10479 shared_archive_member_spec=shr_64 10480 else 10481 shared_archive_member_spec=shr 10482 fi 10483 fi 10484 ;; 10485*) 10486 with_aix_soname=aix 10487 ;; 10488esac 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499# This can be used to rebuild libtool when needed 10500LIBTOOL_DEPS=$ltmain 10501 10502# Always use our own libtool. 10503LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534test -z "$LN_S" && LN_S="ln -s" 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549if test -n "${ZSH_VERSION+set}"; then 10550 setopt NO_GLOB_SUBST 10551fi 10552 10553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10554$as_echo_n "checking for objdir... " >&6; } 10555if ${lt_cv_objdir+:} false; then : 10556 $as_echo_n "(cached) " >&6 10557else 10558 rm -f .libs 2>/dev/null 10559mkdir .libs 2>/dev/null 10560if test -d .libs; then 10561 lt_cv_objdir=.libs 10562else 10563 # MS-DOS does not allow filenames that begin with a dot. 10564 lt_cv_objdir=_libs 10565fi 10566rmdir .libs 2>/dev/null 10567fi 10568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10569$as_echo "$lt_cv_objdir" >&6; } 10570objdir=$lt_cv_objdir 10571 10572 10573 10574 10575 10576cat >>confdefs.h <<_ACEOF 10577#define LT_OBJDIR "$lt_cv_objdir/" 10578_ACEOF 10579 10580 10581 10582 10583case $host_os in 10584aix3*) 10585 # AIX sometimes has problems with the GCC collect2 program. For some 10586 # reason, if we set the COLLECT_NAMES environment variable, the problems 10587 # vanish in a puff of smoke. 10588 if test set != "${COLLECT_NAMES+set}"; then 10589 COLLECT_NAMES= 10590 export COLLECT_NAMES 10591 fi 10592 ;; 10593esac 10594 10595# Global variables: 10596ofile=libtool 10597can_build_shared=yes 10598 10599# All known linkers require a '.a' archive for static linking (except MSVC, 10600# which needs '.lib'). 10601libext=a 10602 10603with_gnu_ld=$lt_cv_prog_gnu_ld 10604 10605old_CC=$CC 10606old_CFLAGS=$CFLAGS 10607 10608# Set sane defaults for various variables 10609test -z "$CC" && CC=cc 10610test -z "$LTCC" && LTCC=$CC 10611test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10612test -z "$LD" && LD=ld 10613test -z "$ac_objext" && ac_objext=o 10614 10615func_cc_basename $compiler 10616cc_basename=$func_cc_basename_result 10617 10618 10619# Only perform the check for file, if the check method requires it 10620test -z "$MAGIC_CMD" && MAGIC_CMD=file 10621case $deplibs_check_method in 10622file_magic*) 10623 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10625$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10626if ${lt_cv_path_MAGIC_CMD+:} false; then : 10627 $as_echo_n "(cached) " >&6 10628else 10629 case $MAGIC_CMD in 10630[\\/*] | ?:[\\/]*) 10631 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10632 ;; 10633*) 10634 lt_save_MAGIC_CMD=$MAGIC_CMD 10635 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10636 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10637 for ac_dir in $ac_dummy; do 10638 IFS=$lt_save_ifs 10639 test -z "$ac_dir" && ac_dir=. 10640 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10641 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10642 if test -n "$file_magic_test_file"; then 10643 case $deplibs_check_method in 10644 "file_magic "*) 10645 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10646 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10647 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10648 $EGREP "$file_magic_regex" > /dev/null; then 10649 : 10650 else 10651 cat <<_LT_EOF 1>&2 10652 10653*** Warning: the command libtool uses to detect shared libraries, 10654*** $file_magic_cmd, produces output that libtool cannot recognize. 10655*** The result is that libtool may fail to recognize shared libraries 10656*** as such. This will affect the creation of libtool libraries that 10657*** depend on shared libraries, but programs linked with such libtool 10658*** libraries will work regardless of this problem. Nevertheless, you 10659*** may want to report the problem to your system manager and/or to 10660*** bug-libtool@gnu.org 10661 10662_LT_EOF 10663 fi ;; 10664 esac 10665 fi 10666 break 10667 fi 10668 done 10669 IFS=$lt_save_ifs 10670 MAGIC_CMD=$lt_save_MAGIC_CMD 10671 ;; 10672esac 10673fi 10674 10675MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10676if test -n "$MAGIC_CMD"; then 10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10678$as_echo "$MAGIC_CMD" >&6; } 10679else 10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10681$as_echo "no" >&6; } 10682fi 10683 10684 10685 10686 10687 10688if test -z "$lt_cv_path_MAGIC_CMD"; then 10689 if test -n "$ac_tool_prefix"; then 10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10691$as_echo_n "checking for file... " >&6; } 10692if ${lt_cv_path_MAGIC_CMD+:} false; then : 10693 $as_echo_n "(cached) " >&6 10694else 10695 case $MAGIC_CMD in 10696[\\/*] | ?:[\\/]*) 10697 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10698 ;; 10699*) 10700 lt_save_MAGIC_CMD=$MAGIC_CMD 10701 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10702 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10703 for ac_dir in $ac_dummy; do 10704 IFS=$lt_save_ifs 10705 test -z "$ac_dir" && ac_dir=. 10706 if test -f "$ac_dir/file"; then 10707 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10708 if test -n "$file_magic_test_file"; then 10709 case $deplibs_check_method in 10710 "file_magic "*) 10711 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10712 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10713 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10714 $EGREP "$file_magic_regex" > /dev/null; then 10715 : 10716 else 10717 cat <<_LT_EOF 1>&2 10718 10719*** Warning: the command libtool uses to detect shared libraries, 10720*** $file_magic_cmd, produces output that libtool cannot recognize. 10721*** The result is that libtool may fail to recognize shared libraries 10722*** as such. This will affect the creation of libtool libraries that 10723*** depend on shared libraries, but programs linked with such libtool 10724*** libraries will work regardless of this problem. Nevertheless, you 10725*** may want to report the problem to your system manager and/or to 10726*** bug-libtool@gnu.org 10727 10728_LT_EOF 10729 fi ;; 10730 esac 10731 fi 10732 break 10733 fi 10734 done 10735 IFS=$lt_save_ifs 10736 MAGIC_CMD=$lt_save_MAGIC_CMD 10737 ;; 10738esac 10739fi 10740 10741MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10742if test -n "$MAGIC_CMD"; then 10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10744$as_echo "$MAGIC_CMD" >&6; } 10745else 10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10747$as_echo "no" >&6; } 10748fi 10749 10750 10751 else 10752 MAGIC_CMD=: 10753 fi 10754fi 10755 10756 fi 10757 ;; 10758esac 10759 10760# Use C for the default configuration in the libtool script 10761 10762lt_save_CC=$CC 10763ac_ext=c 10764ac_cpp='$CPP $CPPFLAGS' 10765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10767ac_compiler_gnu=$ac_cv_c_compiler_gnu 10768 10769 10770# Source file extension for C test sources. 10771ac_ext=c 10772 10773# Object file extension for compiled C test sources. 10774objext=o 10775objext=$objext 10776 10777# Code to be used in simple compile tests 10778lt_simple_compile_test_code="int some_variable = 0;" 10779 10780# Code to be used in simple link tests 10781lt_simple_link_test_code='int main(){return(0);}' 10782 10783 10784 10785 10786 10787 10788 10789# If no C compiler was specified, use CC. 10790LTCC=${LTCC-"$CC"} 10791 10792# If no C compiler flags were specified, use CFLAGS. 10793LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10794 10795# Allow CC to be a program name with arguments. 10796compiler=$CC 10797 10798# Save the default compiler, since it gets overwritten when the other 10799# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10800compiler_DEFAULT=$CC 10801 10802# save warnings/boilerplate of simple test code 10803ac_outfile=conftest.$ac_objext 10804echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10805eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10806_lt_compiler_boilerplate=`cat conftest.err` 10807$RM conftest* 10808 10809ac_outfile=conftest.$ac_objext 10810echo "$lt_simple_link_test_code" >conftest.$ac_ext 10811eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10812_lt_linker_boilerplate=`cat conftest.err` 10813$RM -r conftest* 10814 10815 10816if test -n "$compiler"; then 10817 10818lt_prog_compiler_no_builtin_flag= 10819 10820if test yes = "$GCC"; then 10821 case $cc_basename in 10822 nvcc*) 10823 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10824 *) 10825 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10826 esac 10827 10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10829$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10830if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10831 $as_echo_n "(cached) " >&6 10832else 10833 lt_cv_prog_compiler_rtti_exceptions=no 10834 ac_outfile=conftest.$ac_objext 10835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10836 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10837 # Insert the option either (1) after the last *FLAGS variable, or 10838 # (2) before a word containing "conftest.", or (3) at the end. 10839 # Note that $ac_compile itself does not contain backslashes and begins 10840 # with a dollar sign (not a hyphen), so the echo should work correctly. 10841 # The option is referenced via a variable to avoid confusing sed. 10842 lt_compile=`echo "$ac_compile" | $SED \ 10843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10845 -e 's:$: $lt_compiler_flag:'` 10846 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10847 (eval "$lt_compile" 2>conftest.err) 10848 ac_status=$? 10849 cat conftest.err >&5 10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10851 if (exit $ac_status) && test -s "$ac_outfile"; then 10852 # The compiler can only warn and ignore the option if not recognized 10853 # So say no if there are warnings other than the usual output. 10854 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10855 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10856 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10857 lt_cv_prog_compiler_rtti_exceptions=yes 10858 fi 10859 fi 10860 $RM conftest* 10861 10862fi 10863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10864$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10865 10866if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10867 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10868else 10869 : 10870fi 10871 10872fi 10873 10874 10875 10876 10877 10878 10879 lt_prog_compiler_wl= 10880lt_prog_compiler_pic= 10881lt_prog_compiler_static= 10882 10883 10884 if test yes = "$GCC"; then 10885 lt_prog_compiler_wl='-Wl,' 10886 lt_prog_compiler_static='-static' 10887 10888 case $host_os in 10889 aix*) 10890 # All AIX code is PIC. 10891 if test ia64 = "$host_cpu"; then 10892 # AIX 5 now supports IA64 processor 10893 lt_prog_compiler_static='-Bstatic' 10894 fi 10895 lt_prog_compiler_pic='-fPIC' 10896 ;; 10897 10898 amigaos*) 10899 case $host_cpu in 10900 powerpc) 10901 # see comment about AmigaOS4 .so support 10902 lt_prog_compiler_pic='-fPIC' 10903 ;; 10904 m68k) 10905 # FIXME: we need at least 68020 code to build shared libraries, but 10906 # adding the '-m68020' flag to GCC prevents building anything better, 10907 # like '-m68040'. 10908 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10909 ;; 10910 esac 10911 ;; 10912 10913 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10914 # PIC is the default for these OSes. 10915 ;; 10916 10917 mingw* | cygwin* | pw32* | os2* | cegcc*) 10918 # This hack is so that the source file can tell whether it is being 10919 # built for inclusion in a dll (and should export symbols for example). 10920 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10921 # (--disable-auto-import) libraries 10922 lt_prog_compiler_pic='-DDLL_EXPORT' 10923 case $host_os in 10924 os2*) 10925 lt_prog_compiler_static='$wl-static' 10926 ;; 10927 esac 10928 ;; 10929 10930 darwin* | rhapsody*) 10931 # PIC is the default on this platform 10932 # Common symbols not allowed in MH_DYLIB files 10933 lt_prog_compiler_pic='-fno-common' 10934 ;; 10935 10936 haiku*) 10937 # PIC is the default for Haiku. 10938 # The "-static" flag exists, but is broken. 10939 lt_prog_compiler_static= 10940 ;; 10941 10942 hpux*) 10943 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10944 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10945 # sets the default TLS model and affects inlining. 10946 case $host_cpu in 10947 hppa*64*) 10948 # +Z the default 10949 ;; 10950 *) 10951 lt_prog_compiler_pic='-fPIC' 10952 ;; 10953 esac 10954 ;; 10955 10956 interix[3-9]*) 10957 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10958 # Instead, we relocate shared libraries at runtime. 10959 ;; 10960 10961 msdosdjgpp*) 10962 # Just because we use GCC doesn't mean we suddenly get shared libraries 10963 # on systems that don't support them. 10964 lt_prog_compiler_can_build_shared=no 10965 enable_shared=no 10966 ;; 10967 10968 *nto* | *qnx*) 10969 # QNX uses GNU C++, but need to define -shared option too, otherwise 10970 # it will coredump. 10971 lt_prog_compiler_pic='-fPIC -shared' 10972 ;; 10973 10974 sysv4*MP*) 10975 if test -d /usr/nec; then 10976 lt_prog_compiler_pic=-Kconform_pic 10977 fi 10978 ;; 10979 10980 *) 10981 lt_prog_compiler_pic='-fPIC' 10982 ;; 10983 esac 10984 10985 case $cc_basename in 10986 nvcc*) # Cuda Compiler Driver 2.2 10987 lt_prog_compiler_wl='-Xlinker ' 10988 if test -n "$lt_prog_compiler_pic"; then 10989 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10990 fi 10991 ;; 10992 esac 10993 else 10994 # PORTME Check for flag to pass linker flags through the system compiler. 10995 case $host_os in 10996 aix*) 10997 lt_prog_compiler_wl='-Wl,' 10998 if test ia64 = "$host_cpu"; then 10999 # AIX 5 now supports IA64 processor 11000 lt_prog_compiler_static='-Bstatic' 11001 else 11002 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11003 fi 11004 ;; 11005 11006 darwin* | rhapsody*) 11007 # PIC is the default on this platform 11008 # Common symbols not allowed in MH_DYLIB files 11009 lt_prog_compiler_pic='-fno-common' 11010 case $cc_basename in 11011 nagfor*) 11012 # NAG Fortran compiler 11013 lt_prog_compiler_wl='-Wl,-Wl,,' 11014 lt_prog_compiler_pic='-PIC' 11015 lt_prog_compiler_static='-Bstatic' 11016 ;; 11017 esac 11018 ;; 11019 11020 mingw* | cygwin* | pw32* | os2* | cegcc*) 11021 # This hack is so that the source file can tell whether it is being 11022 # built for inclusion in a dll (and should export symbols for example). 11023 lt_prog_compiler_pic='-DDLL_EXPORT' 11024 case $host_os in 11025 os2*) 11026 lt_prog_compiler_static='$wl-static' 11027 ;; 11028 esac 11029 ;; 11030 11031 hpux9* | hpux10* | hpux11*) 11032 lt_prog_compiler_wl='-Wl,' 11033 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11034 # not for PA HP-UX. 11035 case $host_cpu in 11036 hppa*64*|ia64*) 11037 # +Z the default 11038 ;; 11039 *) 11040 lt_prog_compiler_pic='+Z' 11041 ;; 11042 esac 11043 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11044 lt_prog_compiler_static='$wl-a ${wl}archive' 11045 ;; 11046 11047 irix5* | irix6* | nonstopux*) 11048 lt_prog_compiler_wl='-Wl,' 11049 # PIC (with -KPIC) is the default. 11050 lt_prog_compiler_static='-non_shared' 11051 ;; 11052 11053 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11054 case $cc_basename in 11055 # old Intel for x86_64, which still supported -KPIC. 11056 ecc*) 11057 lt_prog_compiler_wl='-Wl,' 11058 lt_prog_compiler_pic='-KPIC' 11059 lt_prog_compiler_static='-static' 11060 ;; 11061 # icc used to be incompatible with GCC. 11062 # ICC 10 doesn't accept -KPIC any more. 11063 icc* | ifort*) 11064 lt_prog_compiler_wl='-Wl,' 11065 lt_prog_compiler_pic='-fPIC' 11066 lt_prog_compiler_static='-static' 11067 ;; 11068 # Lahey Fortran 8.1. 11069 lf95*) 11070 lt_prog_compiler_wl='-Wl,' 11071 lt_prog_compiler_pic='--shared' 11072 lt_prog_compiler_static='--static' 11073 ;; 11074 nagfor*) 11075 # NAG Fortran compiler 11076 lt_prog_compiler_wl='-Wl,-Wl,,' 11077 lt_prog_compiler_pic='-PIC' 11078 lt_prog_compiler_static='-Bstatic' 11079 ;; 11080 tcc*) 11081 # Fabrice Bellard et al's Tiny C Compiler 11082 lt_prog_compiler_wl='-Wl,' 11083 lt_prog_compiler_pic='-fPIC' 11084 lt_prog_compiler_static='-static' 11085 ;; 11086 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11087 # Portland Group compilers (*not* the Pentium gcc compiler, 11088 # which looks to be a dead project) 11089 lt_prog_compiler_wl='-Wl,' 11090 lt_prog_compiler_pic='-fpic' 11091 lt_prog_compiler_static='-Bstatic' 11092 ;; 11093 ccc*) 11094 lt_prog_compiler_wl='-Wl,' 11095 # All Alpha code is PIC. 11096 lt_prog_compiler_static='-non_shared' 11097 ;; 11098 xl* | bgxl* | bgf* | mpixl*) 11099 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11100 lt_prog_compiler_wl='-Wl,' 11101 lt_prog_compiler_pic='-qpic' 11102 lt_prog_compiler_static='-qstaticlink' 11103 ;; 11104 *) 11105 case `$CC -V 2>&1 | sed 5q` in 11106 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11107 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11108 lt_prog_compiler_pic='-KPIC' 11109 lt_prog_compiler_static='-Bstatic' 11110 lt_prog_compiler_wl='' 11111 ;; 11112 *Sun\ F* | *Sun*Fortran*) 11113 lt_prog_compiler_pic='-KPIC' 11114 lt_prog_compiler_static='-Bstatic' 11115 lt_prog_compiler_wl='-Qoption ld ' 11116 ;; 11117 *Sun\ C*) 11118 # Sun C 5.9 11119 lt_prog_compiler_pic='-KPIC' 11120 lt_prog_compiler_static='-Bstatic' 11121 lt_prog_compiler_wl='-Wl,' 11122 ;; 11123 *Intel*\ [CF]*Compiler*) 11124 lt_prog_compiler_wl='-Wl,' 11125 lt_prog_compiler_pic='-fPIC' 11126 lt_prog_compiler_static='-static' 11127 ;; 11128 *Portland\ Group*) 11129 lt_prog_compiler_wl='-Wl,' 11130 lt_prog_compiler_pic='-fpic' 11131 lt_prog_compiler_static='-Bstatic' 11132 ;; 11133 esac 11134 ;; 11135 esac 11136 ;; 11137 11138 newsos6) 11139 lt_prog_compiler_pic='-KPIC' 11140 lt_prog_compiler_static='-Bstatic' 11141 ;; 11142 11143 *nto* | *qnx*) 11144 # QNX uses GNU C++, but need to define -shared option too, otherwise 11145 # it will coredump. 11146 lt_prog_compiler_pic='-fPIC -shared' 11147 ;; 11148 11149 osf3* | osf4* | osf5*) 11150 lt_prog_compiler_wl='-Wl,' 11151 # All OSF/1 code is PIC. 11152 lt_prog_compiler_static='-non_shared' 11153 ;; 11154 11155 rdos*) 11156 lt_prog_compiler_static='-non_shared' 11157 ;; 11158 11159 solaris*) 11160 lt_prog_compiler_pic='-KPIC' 11161 lt_prog_compiler_static='-Bstatic' 11162 case $cc_basename in 11163 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11164 lt_prog_compiler_wl='-Qoption ld ';; 11165 *) 11166 lt_prog_compiler_wl='-Wl,';; 11167 esac 11168 ;; 11169 11170 sunos4*) 11171 lt_prog_compiler_wl='-Qoption ld ' 11172 lt_prog_compiler_pic='-PIC' 11173 lt_prog_compiler_static='-Bstatic' 11174 ;; 11175 11176 sysv4 | sysv4.2uw2* | sysv4.3*) 11177 lt_prog_compiler_wl='-Wl,' 11178 lt_prog_compiler_pic='-KPIC' 11179 lt_prog_compiler_static='-Bstatic' 11180 ;; 11181 11182 sysv4*MP*) 11183 if test -d /usr/nec; then 11184 lt_prog_compiler_pic='-Kconform_pic' 11185 lt_prog_compiler_static='-Bstatic' 11186 fi 11187 ;; 11188 11189 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11190 lt_prog_compiler_wl='-Wl,' 11191 lt_prog_compiler_pic='-KPIC' 11192 lt_prog_compiler_static='-Bstatic' 11193 ;; 11194 11195 unicos*) 11196 lt_prog_compiler_wl='-Wl,' 11197 lt_prog_compiler_can_build_shared=no 11198 ;; 11199 11200 uts4*) 11201 lt_prog_compiler_pic='-pic' 11202 lt_prog_compiler_static='-Bstatic' 11203 ;; 11204 11205 *) 11206 lt_prog_compiler_can_build_shared=no 11207 ;; 11208 esac 11209 fi 11210 11211case $host_os in 11212 # For platforms that do not support PIC, -DPIC is meaningless: 11213 *djgpp*) 11214 lt_prog_compiler_pic= 11215 ;; 11216 *) 11217 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11218 ;; 11219esac 11220 11221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11222$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11223if ${lt_cv_prog_compiler_pic+:} false; then : 11224 $as_echo_n "(cached) " >&6 11225else 11226 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11227fi 11228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11229$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11230lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11231 11232# 11233# Check to make sure the PIC flag actually works. 11234# 11235if test -n "$lt_prog_compiler_pic"; then 11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11237$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11238if ${lt_cv_prog_compiler_pic_works+:} false; then : 11239 $as_echo_n "(cached) " >&6 11240else 11241 lt_cv_prog_compiler_pic_works=no 11242 ac_outfile=conftest.$ac_objext 11243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11244 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11245 # Insert the option either (1) after the last *FLAGS variable, or 11246 # (2) before a word containing "conftest.", or (3) at the end. 11247 # Note that $ac_compile itself does not contain backslashes and begins 11248 # with a dollar sign (not a hyphen), so the echo should work correctly. 11249 # The option is referenced via a variable to avoid confusing sed. 11250 lt_compile=`echo "$ac_compile" | $SED \ 11251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11253 -e 's:$: $lt_compiler_flag:'` 11254 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11255 (eval "$lt_compile" 2>conftest.err) 11256 ac_status=$? 11257 cat conftest.err >&5 11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11259 if (exit $ac_status) && test -s "$ac_outfile"; then 11260 # The compiler can only warn and ignore the option if not recognized 11261 # So say no if there are warnings other than the usual output. 11262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11264 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11265 lt_cv_prog_compiler_pic_works=yes 11266 fi 11267 fi 11268 $RM conftest* 11269 11270fi 11271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11272$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11273 11274if test yes = "$lt_cv_prog_compiler_pic_works"; then 11275 case $lt_prog_compiler_pic in 11276 "" | " "*) ;; 11277 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11278 esac 11279else 11280 lt_prog_compiler_pic= 11281 lt_prog_compiler_can_build_shared=no 11282fi 11283 11284fi 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296# 11297# Check to make sure the static flag actually works. 11298# 11299wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11301$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11302if ${lt_cv_prog_compiler_static_works+:} false; then : 11303 $as_echo_n "(cached) " >&6 11304else 11305 lt_cv_prog_compiler_static_works=no 11306 save_LDFLAGS=$LDFLAGS 11307 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11308 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11310 # The linker can only warn and ignore the option if not recognized 11311 # So say no if there are warnings 11312 if test -s conftest.err; then 11313 # Append any errors to the config.log. 11314 cat conftest.err 1>&5 11315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11317 if diff conftest.exp conftest.er2 >/dev/null; then 11318 lt_cv_prog_compiler_static_works=yes 11319 fi 11320 else 11321 lt_cv_prog_compiler_static_works=yes 11322 fi 11323 fi 11324 $RM -r conftest* 11325 LDFLAGS=$save_LDFLAGS 11326 11327fi 11328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11329$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11330 11331if test yes = "$lt_cv_prog_compiler_static_works"; then 11332 : 11333else 11334 lt_prog_compiler_static= 11335fi 11336 11337 11338 11339 11340 11341 11342 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11344$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11345if ${lt_cv_prog_compiler_c_o+:} false; then : 11346 $as_echo_n "(cached) " >&6 11347else 11348 lt_cv_prog_compiler_c_o=no 11349 $RM -r conftest 2>/dev/null 11350 mkdir conftest 11351 cd conftest 11352 mkdir out 11353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11354 11355 lt_compiler_flag="-o out/conftest2.$ac_objext" 11356 # Insert the option either (1) after the last *FLAGS variable, or 11357 # (2) before a word containing "conftest.", or (3) at the end. 11358 # Note that $ac_compile itself does not contain backslashes and begins 11359 # with a dollar sign (not a hyphen), so the echo should work correctly. 11360 lt_compile=`echo "$ac_compile" | $SED \ 11361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11363 -e 's:$: $lt_compiler_flag:'` 11364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11365 (eval "$lt_compile" 2>out/conftest.err) 11366 ac_status=$? 11367 cat out/conftest.err >&5 11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11369 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11370 then 11371 # The compiler can only warn and ignore the option if not recognized 11372 # So say no if there are warnings 11373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11376 lt_cv_prog_compiler_c_o=yes 11377 fi 11378 fi 11379 chmod u+w . 2>&5 11380 $RM conftest* 11381 # SGI C++ compiler will create directory out/ii_files/ for 11382 # template instantiation 11383 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11384 $RM out/* && rmdir out 11385 cd .. 11386 $RM -r conftest 11387 $RM conftest* 11388 11389fi 11390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11391$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11392 11393 11394 11395 11396 11397 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11399$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11400if ${lt_cv_prog_compiler_c_o+:} false; then : 11401 $as_echo_n "(cached) " >&6 11402else 11403 lt_cv_prog_compiler_c_o=no 11404 $RM -r conftest 2>/dev/null 11405 mkdir conftest 11406 cd conftest 11407 mkdir out 11408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11409 11410 lt_compiler_flag="-o out/conftest2.$ac_objext" 11411 # Insert the option either (1) after the last *FLAGS variable, or 11412 # (2) before a word containing "conftest.", or (3) at the end. 11413 # Note that $ac_compile itself does not contain backslashes and begins 11414 # with a dollar sign (not a hyphen), so the echo should work correctly. 11415 lt_compile=`echo "$ac_compile" | $SED \ 11416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11418 -e 's:$: $lt_compiler_flag:'` 11419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11420 (eval "$lt_compile" 2>out/conftest.err) 11421 ac_status=$? 11422 cat out/conftest.err >&5 11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11424 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11425 then 11426 # The compiler can only warn and ignore the option if not recognized 11427 # So say no if there are warnings 11428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11429 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11430 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11431 lt_cv_prog_compiler_c_o=yes 11432 fi 11433 fi 11434 chmod u+w . 2>&5 11435 $RM conftest* 11436 # SGI C++ compiler will create directory out/ii_files/ for 11437 # template instantiation 11438 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11439 $RM out/* && rmdir out 11440 cd .. 11441 $RM -r conftest 11442 $RM conftest* 11443 11444fi 11445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11446$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11447 11448 11449 11450 11451hard_links=nottested 11452if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11453 # do not overwrite the value of need_locks provided by the user 11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11455$as_echo_n "checking if we can lock with hard links... " >&6; } 11456 hard_links=yes 11457 $RM conftest* 11458 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11459 touch conftest.a 11460 ln conftest.a conftest.b 2>&5 || hard_links=no 11461 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11463$as_echo "$hard_links" >&6; } 11464 if test no = "$hard_links"; then 11465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11466$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11467 need_locks=warn 11468 fi 11469else 11470 need_locks=no 11471fi 11472 11473 11474 11475 11476 11477 11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11479$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11480 11481 runpath_var= 11482 allow_undefined_flag= 11483 always_export_symbols=no 11484 archive_cmds= 11485 archive_expsym_cmds= 11486 compiler_needs_object=no 11487 enable_shared_with_static_runtimes=no 11488 export_dynamic_flag_spec= 11489 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11490 hardcode_automatic=no 11491 hardcode_direct=no 11492 hardcode_direct_absolute=no 11493 hardcode_libdir_flag_spec= 11494 hardcode_libdir_separator= 11495 hardcode_minus_L=no 11496 hardcode_shlibpath_var=unsupported 11497 inherit_rpath=no 11498 link_all_deplibs=unknown 11499 module_cmds= 11500 module_expsym_cmds= 11501 old_archive_from_new_cmds= 11502 old_archive_from_expsyms_cmds= 11503 thread_safe_flag_spec= 11504 whole_archive_flag_spec= 11505 # include_expsyms should be a list of space-separated symbols to be *always* 11506 # included in the symbol list 11507 include_expsyms= 11508 # exclude_expsyms can be an extended regexp of symbols to exclude 11509 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11510 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11511 # as well as any symbol that contains 'd'. 11512 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11513 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11514 # platforms (ab)use it in PIC code, but their linkers get confused if 11515 # the symbol is explicitly referenced. Since portable code cannot 11516 # rely on this symbol name, it's probably fine to never include it in 11517 # preloaded symbol tables. 11518 # Exclude shared library initialization/finalization symbols. 11519 extract_expsyms_cmds= 11520 11521 case $host_os in 11522 cygwin* | mingw* | pw32* | cegcc*) 11523 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11524 # When not using gcc, we currently assume that we are using 11525 # Microsoft Visual C++. 11526 if test yes != "$GCC"; then 11527 with_gnu_ld=no 11528 fi 11529 ;; 11530 interix*) 11531 # we just hope/assume this is gcc and not c89 (= MSVC++) 11532 with_gnu_ld=yes 11533 ;; 11534 openbsd* | bitrig*) 11535 with_gnu_ld=no 11536 ;; 11537 esac 11538 11539 ld_shlibs=yes 11540 11541 # On some targets, GNU ld is compatible enough with the native linker 11542 # that we're better off using the native interface for both. 11543 lt_use_gnu_ld_interface=no 11544 if test yes = "$with_gnu_ld"; then 11545 case $host_os in 11546 aix*) 11547 # The AIX port of GNU ld has always aspired to compatibility 11548 # with the native linker. However, as the warning in the GNU ld 11549 # block says, versions before 2.19.5* couldn't really create working 11550 # shared libraries, regardless of the interface used. 11551 case `$LD -v 2>&1` in 11552 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11553 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11554 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11555 *) 11556 lt_use_gnu_ld_interface=yes 11557 ;; 11558 esac 11559 ;; 11560 *) 11561 lt_use_gnu_ld_interface=yes 11562 ;; 11563 esac 11564 fi 11565 11566 if test yes = "$lt_use_gnu_ld_interface"; then 11567 # If archive_cmds runs LD, not CC, wlarc should be empty 11568 wlarc='$wl' 11569 11570 # Set some defaults for GNU ld with shared library support. These 11571 # are reset later if shared libraries are not supported. Putting them 11572 # here allows them to be overridden if necessary. 11573 runpath_var=LD_RUN_PATH 11574 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11575 export_dynamic_flag_spec='$wl--export-dynamic' 11576 # ancient GNU ld didn't support --whole-archive et. al. 11577 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11578 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11579 else 11580 whole_archive_flag_spec= 11581 fi 11582 supports_anon_versioning=no 11583 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 11584 *GNU\ gold*) supports_anon_versioning=yes ;; 11585 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11586 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11587 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11588 *\ 2.11.*) ;; # other 2.11 versions 11589 *) supports_anon_versioning=yes ;; 11590 esac 11591 11592 # See if GNU ld supports shared libraries. 11593 case $host_os in 11594 aix[3-9]*) 11595 # On AIX/PPC, the GNU linker is very broken 11596 if test ia64 != "$host_cpu"; then 11597 ld_shlibs=no 11598 cat <<_LT_EOF 1>&2 11599 11600*** Warning: the GNU linker, at least up to release 2.19, is reported 11601*** to be unable to reliably create shared libraries on AIX. 11602*** Therefore, libtool is disabling shared libraries support. If you 11603*** really care for shared libraries, you may want to install binutils 11604*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11605*** You will then need to restart the configuration process. 11606 11607_LT_EOF 11608 fi 11609 ;; 11610 11611 amigaos*) 11612 case $host_cpu in 11613 powerpc) 11614 # see comment about AmigaOS4 .so support 11615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11616 archive_expsym_cmds='' 11617 ;; 11618 m68k) 11619 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)' 11620 hardcode_libdir_flag_spec='-L$libdir' 11621 hardcode_minus_L=yes 11622 ;; 11623 esac 11624 ;; 11625 11626 beos*) 11627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11628 allow_undefined_flag=unsupported 11629 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11630 # support --undefined. This deserves some investigation. FIXME 11631 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11632 else 11633 ld_shlibs=no 11634 fi 11635 ;; 11636 11637 cygwin* | mingw* | pw32* | cegcc*) 11638 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11639 # as there is no search path for DLLs. 11640 hardcode_libdir_flag_spec='-L$libdir' 11641 export_dynamic_flag_spec='$wl--export-all-symbols' 11642 allow_undefined_flag=unsupported 11643 always_export_symbols=no 11644 enable_shared_with_static_runtimes=yes 11645 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' 11646 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11647 11648 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11650 # If the export-symbols file already is a .def file, use it as 11651 # is; otherwise, prepend EXPORTS... 11652 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11653 cp $export_symbols $output_objdir/$soname.def; 11654 else 11655 echo EXPORTS > $output_objdir/$soname.def; 11656 cat $export_symbols >> $output_objdir/$soname.def; 11657 fi~ 11658 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11659 else 11660 ld_shlibs=no 11661 fi 11662 ;; 11663 11664 haiku*) 11665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11666 link_all_deplibs=yes 11667 ;; 11668 11669 os2*) 11670 hardcode_libdir_flag_spec='-L$libdir' 11671 hardcode_minus_L=yes 11672 allow_undefined_flag=unsupported 11673 shrext_cmds=.dll 11674 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11675 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11676 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11677 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11678 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11679 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11680 emximp -o $lib $output_objdir/$libname.def' 11681 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11682 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11683 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11684 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11685 prefix_cmds="$SED"~ 11686 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11687 prefix_cmds="$prefix_cmds -e 1d"; 11688 fi~ 11689 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11690 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11691 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11692 emximp -o $lib $output_objdir/$libname.def' 11693 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11694 enable_shared_with_static_runtimes=yes 11695 ;; 11696 11697 interix[3-9]*) 11698 hardcode_direct=no 11699 hardcode_shlibpath_var=no 11700 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11701 export_dynamic_flag_spec='$wl-E' 11702 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11703 # Instead, shared libraries are loaded at an image base (0x10000000 by 11704 # default) and relocated if they conflict, which is a slow very memory 11705 # consuming and fragmenting process. To avoid this, we pick a random, 11706 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11707 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11708 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11709 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' 11710 ;; 11711 11712 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11713 tmp_diet=no 11714 if test linux-dietlibc = "$host_os"; then 11715 case $cc_basename in 11716 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11717 esac 11718 fi 11719 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11720 && test no = "$tmp_diet" 11721 then 11722 tmp_addflag=' $pic_flag' 11723 tmp_sharedflag='-shared' 11724 case $cc_basename,$host_cpu in 11725 pgcc*) # Portland Group C compiler 11726 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' 11727 tmp_addflag=' $pic_flag' 11728 ;; 11729 pgf77* | pgf90* | pgf95* | pgfortran*) 11730 # Portland Group f77 and f90 compilers 11731 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' 11732 tmp_addflag=' $pic_flag -Mnomain' ;; 11733 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11734 tmp_addflag=' -i_dynamic' ;; 11735 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11736 tmp_addflag=' -i_dynamic -nofor_main' ;; 11737 ifc* | ifort*) # Intel Fortran compiler 11738 tmp_addflag=' -nofor_main' ;; 11739 lf95*) # Lahey Fortran 8.1 11740 whole_archive_flag_spec= 11741 tmp_sharedflag='--shared' ;; 11742 nagfor*) # NAGFOR 5.3 11743 tmp_sharedflag='-Wl,-shared' ;; 11744 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11745 tmp_sharedflag='-qmkshrobj' 11746 tmp_addflag= ;; 11747 nvcc*) # Cuda Compiler Driver 2.2 11748 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' 11749 compiler_needs_object=yes 11750 ;; 11751 esac 11752 case `$CC -V 2>&1 | sed 5q` in 11753 *Sun\ C*) # Sun C 5.9 11754 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' 11755 compiler_needs_object=yes 11756 tmp_sharedflag='-G' ;; 11757 *Sun\ F*) # Sun Fortran 8.3 11758 tmp_sharedflag='-G' ;; 11759 esac 11760 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11761 11762 if test yes = "$supports_anon_versioning"; then 11763 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11764 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11765 echo "local: *; };" >> $output_objdir/$libname.ver~ 11766 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11767 fi 11768 11769 case $cc_basename in 11770 tcc*) 11771 export_dynamic_flag_spec='-rdynamic' 11772 ;; 11773 xlf* | bgf* | bgxlf* | mpixlf*) 11774 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11775 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11776 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11777 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11778 if test yes = "$supports_anon_versioning"; then 11779 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11781 echo "local: *; };" >> $output_objdir/$libname.ver~ 11782 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11783 fi 11784 ;; 11785 esac 11786 else 11787 ld_shlibs=no 11788 fi 11789 ;; 11790 11791 netbsd*) 11792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11793 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11794 wlarc= 11795 else 11796 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11797 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11798 fi 11799 ;; 11800 11801 solaris*) 11802 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11803 ld_shlibs=no 11804 cat <<_LT_EOF 1>&2 11805 11806*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11807*** create shared libraries on Solaris systems. Therefore, libtool 11808*** is disabling shared libraries support. We urge you to upgrade GNU 11809*** binutils to release 2.9.1 or newer. Another option is to modify 11810*** your PATH or compiler configuration so that the native linker is 11811*** used, and then restart. 11812 11813_LT_EOF 11814 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11815 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11816 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11817 else 11818 ld_shlibs=no 11819 fi 11820 ;; 11821 11822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11823 case `$LD -v 2>&1` in 11824 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11825 ld_shlibs=no 11826 cat <<_LT_EOF 1>&2 11827 11828*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11829*** reliably create shared libraries on SCO systems. Therefore, libtool 11830*** is disabling shared libraries support. We urge you to upgrade GNU 11831*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11832*** your PATH or compiler configuration so that the native linker is 11833*** used, and then restart. 11834 11835_LT_EOF 11836 ;; 11837 *) 11838 # For security reasons, it is highly recommended that you always 11839 # use absolute paths for naming shared libraries, and exclude the 11840 # DT_RUNPATH tag from executables and libraries. But doing so 11841 # requires that you compile everything twice, which is a pain. 11842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11846 else 11847 ld_shlibs=no 11848 fi 11849 ;; 11850 esac 11851 ;; 11852 11853 sunos4*) 11854 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11855 wlarc= 11856 hardcode_direct=yes 11857 hardcode_shlibpath_var=no 11858 ;; 11859 11860 *) 11861 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11862 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11863 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11864 else 11865 ld_shlibs=no 11866 fi 11867 ;; 11868 esac 11869 11870 if test no = "$ld_shlibs"; then 11871 runpath_var= 11872 hardcode_libdir_flag_spec= 11873 export_dynamic_flag_spec= 11874 whole_archive_flag_spec= 11875 fi 11876 else 11877 # PORTME fill in a description of your system's linker (not GNU ld) 11878 case $host_os in 11879 aix3*) 11880 allow_undefined_flag=unsupported 11881 always_export_symbols=yes 11882 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' 11883 # Note: this linker hardcodes the directories in LIBPATH if there 11884 # are no directories specified by -L. 11885 hardcode_minus_L=yes 11886 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11887 # Neither direct hardcoding nor static linking is supported with a 11888 # broken collect2. 11889 hardcode_direct=unsupported 11890 fi 11891 ;; 11892 11893 aix[4-9]*) 11894 if test ia64 = "$host_cpu"; then 11895 # On IA64, the linker does run time linking by default, so we don't 11896 # have to do anything special. 11897 aix_use_runtimelinking=no 11898 exp_sym_flag='-Bexport' 11899 no_entry_flag= 11900 else 11901 # If we're using GNU nm, then we don't want the "-C" option. 11902 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11903 # Without the "-l" option, or with the "-B" option, AIX nm treats 11904 # weak defined symbols like other global defined symbols, whereas 11905 # GNU nm marks them as "W". 11906 # While the 'weak' keyword is ignored in the Export File, we need 11907 # it in the Import File for the 'aix-soname' feature, so we have 11908 # to replace the "-B" option with "-P" for AIX nm. 11909 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11910 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' 11911 else 11912 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' 11913 fi 11914 aix_use_runtimelinking=no 11915 11916 # Test if we are trying to use run time linking or normal 11917 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11918 # have runtime linking enabled, and use it for executables. 11919 # For shared libraries, we enable/disable runtime linking 11920 # depending on the kind of the shared library created - 11921 # when "with_aix_soname,aix_use_runtimelinking" is: 11922 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11923 # "aix,yes" lib.so shared, rtl:yes, for executables 11924 # lib.a static archive 11925 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11926 # lib.a(lib.so.V) shared, rtl:no, for executables 11927 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11928 # lib.a(lib.so.V) shared, rtl:no 11929 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11930 # lib.a static archive 11931 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11932 for ld_flag in $LDFLAGS; do 11933 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11934 aix_use_runtimelinking=yes 11935 break 11936 fi 11937 done 11938 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11939 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11940 # so we don't have lib.a shared libs to link our executables. 11941 # We have to force runtime linking in this case. 11942 aix_use_runtimelinking=yes 11943 LDFLAGS="$LDFLAGS -Wl,-brtl" 11944 fi 11945 ;; 11946 esac 11947 11948 exp_sym_flag='-bexport' 11949 no_entry_flag='-bnoentry' 11950 fi 11951 11952 # When large executables or shared objects are built, AIX ld can 11953 # have problems creating the table of contents. If linking a library 11954 # or program results in "error TOC overflow" add -mminimal-toc to 11955 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11956 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11957 11958 archive_cmds='' 11959 hardcode_direct=yes 11960 hardcode_direct_absolute=yes 11961 hardcode_libdir_separator=':' 11962 link_all_deplibs=yes 11963 file_list_spec='$wl-f,' 11964 case $with_aix_soname,$aix_use_runtimelinking in 11965 aix,*) ;; # traditional, no import file 11966 svr4,* | *,yes) # use import file 11967 # The Import File defines what to hardcode. 11968 hardcode_direct=no 11969 hardcode_direct_absolute=no 11970 ;; 11971 esac 11972 11973 if test yes = "$GCC"; then 11974 case $host_os in aix4.[012]|aix4.[012].*) 11975 # We only want to do this on AIX 4.2 and lower, the check 11976 # below for broken collect2 doesn't work under 4.3+ 11977 collect2name=`$CC -print-prog-name=collect2` 11978 if test -f "$collect2name" && 11979 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11980 then 11981 # We have reworked collect2 11982 : 11983 else 11984 # We have old collect2 11985 hardcode_direct=unsupported 11986 # It fails to find uninstalled libraries when the uninstalled 11987 # path is not listed in the libpath. Setting hardcode_minus_L 11988 # to unsupported forces relinking 11989 hardcode_minus_L=yes 11990 hardcode_libdir_flag_spec='-L$libdir' 11991 hardcode_libdir_separator= 11992 fi 11993 ;; 11994 esac 11995 shared_flag='-shared' 11996 if test yes = "$aix_use_runtimelinking"; then 11997 shared_flag="$shared_flag "'$wl-G' 11998 fi 11999 # Need to ensure runtime linking is disabled for the traditional 12000 # shared library, or the linker may eventually find shared libraries 12001 # /with/ Import File - we do not want to mix them. 12002 shared_flag_aix='-shared' 12003 shared_flag_svr4='-shared $wl-G' 12004 else 12005 # not using gcc 12006 if test ia64 = "$host_cpu"; then 12007 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12008 # chokes on -Wl,-G. The following line is correct: 12009 shared_flag='-G' 12010 else 12011 if test yes = "$aix_use_runtimelinking"; then 12012 shared_flag='$wl-G' 12013 else 12014 shared_flag='$wl-bM:SRE' 12015 fi 12016 shared_flag_aix='$wl-bM:SRE' 12017 shared_flag_svr4='$wl-G' 12018 fi 12019 fi 12020 12021 export_dynamic_flag_spec='$wl-bexpall' 12022 # It seems that -bexpall does not export symbols beginning with 12023 # underscore (_), so it is better to generate a list of symbols to export. 12024 always_export_symbols=yes 12025 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12026 # Warning - without using the other runtime loading flags (-brtl), 12027 # -berok will link without error, but may produce a broken library. 12028 allow_undefined_flag='-berok' 12029 # Determine the default libpath from the value encoded in an 12030 # empty executable. 12031 if test set = "${lt_cv_aix_libpath+set}"; then 12032 aix_libpath=$lt_cv_aix_libpath 12033else 12034 if ${lt_cv_aix_libpath_+:} false; then : 12035 $as_echo_n "(cached) " >&6 12036else 12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12038/* end confdefs.h. */ 12039 12040int 12041main () 12042{ 12043 12044 ; 12045 return 0; 12046} 12047_ACEOF 12048if ac_fn_c_try_link "$LINENO"; then : 12049 12050 lt_aix_libpath_sed=' 12051 /Import File Strings/,/^$/ { 12052 /^0/ { 12053 s/^0 *\([^ ]*\) *$/\1/ 12054 p 12055 } 12056 }' 12057 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12058 # Check for a 64-bit object if we didn't find anything. 12059 if test -z "$lt_cv_aix_libpath_"; then 12060 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12061 fi 12062fi 12063rm -f core conftest.err conftest.$ac_objext \ 12064 conftest$ac_exeext conftest.$ac_ext 12065 if test -z "$lt_cv_aix_libpath_"; then 12066 lt_cv_aix_libpath_=/usr/lib:/lib 12067 fi 12068 12069fi 12070 12071 aix_libpath=$lt_cv_aix_libpath_ 12072fi 12073 12074 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12075 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 12076 else 12077 if test ia64 = "$host_cpu"; then 12078 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12079 allow_undefined_flag="-z nodefs" 12080 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" 12081 else 12082 # Determine the default libpath from the value encoded in an 12083 # empty executable. 12084 if test set = "${lt_cv_aix_libpath+set}"; then 12085 aix_libpath=$lt_cv_aix_libpath 12086else 12087 if ${lt_cv_aix_libpath_+:} false; then : 12088 $as_echo_n "(cached) " >&6 12089else 12090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12091/* end confdefs.h. */ 12092 12093int 12094main () 12095{ 12096 12097 ; 12098 return 0; 12099} 12100_ACEOF 12101if ac_fn_c_try_link "$LINENO"; then : 12102 12103 lt_aix_libpath_sed=' 12104 /Import File Strings/,/^$/ { 12105 /^0/ { 12106 s/^0 *\([^ ]*\) *$/\1/ 12107 p 12108 } 12109 }' 12110 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12111 # Check for a 64-bit object if we didn't find anything. 12112 if test -z "$lt_cv_aix_libpath_"; then 12113 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12114 fi 12115fi 12116rm -f core conftest.err conftest.$ac_objext \ 12117 conftest$ac_exeext conftest.$ac_ext 12118 if test -z "$lt_cv_aix_libpath_"; then 12119 lt_cv_aix_libpath_=/usr/lib:/lib 12120 fi 12121 12122fi 12123 12124 aix_libpath=$lt_cv_aix_libpath_ 12125fi 12126 12127 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12128 # Warning - without using the other run time loading flags, 12129 # -berok will link without error, but may produce a broken library. 12130 no_undefined_flag=' $wl-bernotok' 12131 allow_undefined_flag=' $wl-berok' 12132 if test yes = "$with_gnu_ld"; then 12133 # We only use this code for GNU lds that support --whole-archive. 12134 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12135 else 12136 # Exported symbols can be pulled into shared objects from archives 12137 whole_archive_flag_spec='$convenience' 12138 fi 12139 archive_cmds_need_lc=yes 12140 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12141 # -brtl affects multiple linker settings, -berok does not and is overridden later 12142 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12143 if test svr4 != "$with_aix_soname"; then 12144 # This is similar to how AIX traditionally builds its shared libraries. 12145 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' 12146 fi 12147 if test aix != "$with_aix_soname"; then 12148 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' 12149 else 12150 # used by -dlpreopen to get the symbols 12151 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12152 fi 12153 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12154 fi 12155 fi 12156 ;; 12157 12158 amigaos*) 12159 case $host_cpu in 12160 powerpc) 12161 # see comment about AmigaOS4 .so support 12162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12163 archive_expsym_cmds='' 12164 ;; 12165 m68k) 12166 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)' 12167 hardcode_libdir_flag_spec='-L$libdir' 12168 hardcode_minus_L=yes 12169 ;; 12170 esac 12171 ;; 12172 12173 bsdi[45]*) 12174 export_dynamic_flag_spec=-rdynamic 12175 ;; 12176 12177 cygwin* | mingw* | pw32* | cegcc*) 12178 # When not using gcc, we currently assume that we are using 12179 # Microsoft Visual C++. 12180 # hardcode_libdir_flag_spec is actually meaningless, as there is 12181 # no search path for DLLs. 12182 case $cc_basename in 12183 cl*) 12184 # Native MSVC 12185 hardcode_libdir_flag_spec=' ' 12186 allow_undefined_flag=unsupported 12187 always_export_symbols=yes 12188 file_list_spec='@' 12189 # Tell ltmain to make .lib files, not .a files. 12190 libext=lib 12191 # Tell ltmain to make .dll files, not .so files. 12192 shrext_cmds=.dll 12193 # FIXME: Setting linknames here is a bad hack. 12194 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12195 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12196 cp "$export_symbols" "$output_objdir/$soname.def"; 12197 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12198 else 12199 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12200 fi~ 12201 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12202 linknames=' 12203 # The linker will not automatically build a static lib if we build a DLL. 12204 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12205 enable_shared_with_static_runtimes=yes 12206 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12207 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12208 # Don't use ranlib 12209 old_postinstall_cmds='chmod 644 $oldlib' 12210 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12211 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12212 case $lt_outputfile in 12213 *.exe|*.EXE) ;; 12214 *) 12215 lt_outputfile=$lt_outputfile.exe 12216 lt_tool_outputfile=$lt_tool_outputfile.exe 12217 ;; 12218 esac~ 12219 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12220 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12221 $RM "$lt_outputfile.manifest"; 12222 fi' 12223 ;; 12224 *) 12225 # Assume MSVC wrapper 12226 hardcode_libdir_flag_spec=' ' 12227 allow_undefined_flag=unsupported 12228 # Tell ltmain to make .lib files, not .a files. 12229 libext=lib 12230 # Tell ltmain to make .dll files, not .so files. 12231 shrext_cmds=.dll 12232 # FIXME: Setting linknames here is a bad hack. 12233 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12234 # The linker will automatically build a .lib file if we build a DLL. 12235 old_archive_from_new_cmds='true' 12236 # FIXME: Should let the user specify the lib program. 12237 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12238 enable_shared_with_static_runtimes=yes 12239 ;; 12240 esac 12241 ;; 12242 12243 darwin* | rhapsody*) 12244 12245 12246 archive_cmds_need_lc=no 12247 hardcode_direct=no 12248 hardcode_automatic=yes 12249 hardcode_shlibpath_var=unsupported 12250 if test yes = "$lt_cv_ld_force_load"; then 12251 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\"`' 12252 12253 else 12254 whole_archive_flag_spec='' 12255 fi 12256 link_all_deplibs=yes 12257 allow_undefined_flag=$_lt_dar_allow_undefined 12258 case $cc_basename in 12259 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12260 *) _lt_dar_can_shared=$GCC ;; 12261 esac 12262 if test yes = "$_lt_dar_can_shared"; then 12263 output_verbose_link_cmd=func_echo_all 12264 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12265 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12266 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" 12267 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" 12268 12269 else 12270 ld_shlibs=no 12271 fi 12272 12273 ;; 12274 12275 dgux*) 12276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12277 hardcode_libdir_flag_spec='-L$libdir' 12278 hardcode_shlibpath_var=no 12279 ;; 12280 12281 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12282 # support. Future versions do this automatically, but an explicit c++rt0.o 12283 # does not break anything, and helps significantly (at the cost of a little 12284 # extra space). 12285 freebsd2.2*) 12286 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12287 hardcode_libdir_flag_spec='-R$libdir' 12288 hardcode_direct=yes 12289 hardcode_shlibpath_var=no 12290 ;; 12291 12292 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12293 freebsd2.*) 12294 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12295 hardcode_direct=yes 12296 hardcode_minus_L=yes 12297 hardcode_shlibpath_var=no 12298 ;; 12299 12300 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12301 freebsd* | dragonfly*) 12302 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12303 hardcode_libdir_flag_spec='-R$libdir' 12304 hardcode_direct=yes 12305 hardcode_shlibpath_var=no 12306 ;; 12307 12308 hpux9*) 12309 if test yes = "$GCC"; then 12310 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' 12311 else 12312 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' 12313 fi 12314 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12315 hardcode_libdir_separator=: 12316 hardcode_direct=yes 12317 12318 # hardcode_minus_L: Not really in the search PATH, 12319 # but as the default location of the library. 12320 hardcode_minus_L=yes 12321 export_dynamic_flag_spec='$wl-E' 12322 ;; 12323 12324 hpux10*) 12325 if test yes,no = "$GCC,$with_gnu_ld"; then 12326 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12327 else 12328 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12329 fi 12330 if test no = "$with_gnu_ld"; then 12331 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12332 hardcode_libdir_separator=: 12333 hardcode_direct=yes 12334 hardcode_direct_absolute=yes 12335 export_dynamic_flag_spec='$wl-E' 12336 # hardcode_minus_L: Not really in the search PATH, 12337 # but as the default location of the library. 12338 hardcode_minus_L=yes 12339 fi 12340 ;; 12341 12342 hpux11*) 12343 if test yes,no = "$GCC,$with_gnu_ld"; then 12344 case $host_cpu in 12345 hppa*64*) 12346 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12347 ;; 12348 ia64*) 12349 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12350 ;; 12351 *) 12352 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12353 ;; 12354 esac 12355 else 12356 case $host_cpu in 12357 hppa*64*) 12358 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12359 ;; 12360 ia64*) 12361 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12362 ;; 12363 *) 12364 12365 # Older versions of the 11.00 compiler do not understand -b yet 12366 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12368$as_echo_n "checking if $CC understands -b... " >&6; } 12369if ${lt_cv_prog_compiler__b+:} false; then : 12370 $as_echo_n "(cached) " >&6 12371else 12372 lt_cv_prog_compiler__b=no 12373 save_LDFLAGS=$LDFLAGS 12374 LDFLAGS="$LDFLAGS -b" 12375 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12376 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12377 # The linker can only warn and ignore the option if not recognized 12378 # So say no if there are warnings 12379 if test -s conftest.err; then 12380 # Append any errors to the config.log. 12381 cat conftest.err 1>&5 12382 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12384 if diff conftest.exp conftest.er2 >/dev/null; then 12385 lt_cv_prog_compiler__b=yes 12386 fi 12387 else 12388 lt_cv_prog_compiler__b=yes 12389 fi 12390 fi 12391 $RM -r conftest* 12392 LDFLAGS=$save_LDFLAGS 12393 12394fi 12395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12396$as_echo "$lt_cv_prog_compiler__b" >&6; } 12397 12398if test yes = "$lt_cv_prog_compiler__b"; then 12399 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12400else 12401 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12402fi 12403 12404 ;; 12405 esac 12406 fi 12407 if test no = "$with_gnu_ld"; then 12408 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12409 hardcode_libdir_separator=: 12410 12411 case $host_cpu in 12412 hppa*64*|ia64*) 12413 hardcode_direct=no 12414 hardcode_shlibpath_var=no 12415 ;; 12416 *) 12417 hardcode_direct=yes 12418 hardcode_direct_absolute=yes 12419 export_dynamic_flag_spec='$wl-E' 12420 12421 # hardcode_minus_L: Not really in the search PATH, 12422 # but as the default location of the library. 12423 hardcode_minus_L=yes 12424 ;; 12425 esac 12426 fi 12427 ;; 12428 12429 irix5* | irix6* | nonstopux*) 12430 if test yes = "$GCC"; then 12431 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' 12432 # Try to use the -exported_symbol ld option, if it does not 12433 # work, assume that -exports_file does not work either and 12434 # implicitly export all symbols. 12435 # This should be the same for all languages, so no per-tag cache variable. 12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12437$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12438if ${lt_cv_irix_exported_symbol+:} false; then : 12439 $as_echo_n "(cached) " >&6 12440else 12441 save_LDFLAGS=$LDFLAGS 12442 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12444/* end confdefs.h. */ 12445int foo (void) { return 0; } 12446_ACEOF 12447if ac_fn_c_try_link "$LINENO"; then : 12448 lt_cv_irix_exported_symbol=yes 12449else 12450 lt_cv_irix_exported_symbol=no 12451fi 12452rm -f core conftest.err conftest.$ac_objext \ 12453 conftest$ac_exeext conftest.$ac_ext 12454 LDFLAGS=$save_LDFLAGS 12455fi 12456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12457$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12458 if test yes = "$lt_cv_irix_exported_symbol"; then 12459 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' 12460 fi 12461 else 12462 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' 12463 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' 12464 fi 12465 archive_cmds_need_lc='no' 12466 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12467 hardcode_libdir_separator=: 12468 inherit_rpath=yes 12469 link_all_deplibs=yes 12470 ;; 12471 12472 linux*) 12473 case $cc_basename in 12474 tcc*) 12475 # Fabrice Bellard et al's Tiny C Compiler 12476 ld_shlibs=yes 12477 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12478 ;; 12479 esac 12480 ;; 12481 12482 netbsd*) 12483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12485 else 12486 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12487 fi 12488 hardcode_libdir_flag_spec='-R$libdir' 12489 hardcode_direct=yes 12490 hardcode_shlibpath_var=no 12491 ;; 12492 12493 newsos6) 12494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12495 hardcode_direct=yes 12496 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12497 hardcode_libdir_separator=: 12498 hardcode_shlibpath_var=no 12499 ;; 12500 12501 *nto* | *qnx*) 12502 ;; 12503 12504 openbsd* | bitrig*) 12505 if test -f /usr/libexec/ld.so; then 12506 hardcode_direct=yes 12507 hardcode_shlibpath_var=no 12508 hardcode_direct_absolute=yes 12509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12510 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12511 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12512 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12513 export_dynamic_flag_spec='$wl-E' 12514 else 12515 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12516 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12517 fi 12518 else 12519 ld_shlibs=no 12520 fi 12521 ;; 12522 12523 os2*) 12524 hardcode_libdir_flag_spec='-L$libdir' 12525 hardcode_minus_L=yes 12526 allow_undefined_flag=unsupported 12527 shrext_cmds=.dll 12528 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12529 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12530 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12531 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12532 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12533 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12534 emximp -o $lib $output_objdir/$libname.def' 12535 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12536 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12537 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12538 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12539 prefix_cmds="$SED"~ 12540 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12541 prefix_cmds="$prefix_cmds -e 1d"; 12542 fi~ 12543 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12544 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12545 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12546 emximp -o $lib $output_objdir/$libname.def' 12547 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12548 enable_shared_with_static_runtimes=yes 12549 ;; 12550 12551 osf3*) 12552 if test yes = "$GCC"; then 12553 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12554 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' 12555 else 12556 allow_undefined_flag=' -expect_unresolved \*' 12557 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' 12558 fi 12559 archive_cmds_need_lc='no' 12560 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12561 hardcode_libdir_separator=: 12562 ;; 12563 12564 osf4* | osf5*) # as osf3* with the addition of -msym flag 12565 if test yes = "$GCC"; then 12566 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12567 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' 12568 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12569 else 12570 allow_undefined_flag=' -expect_unresolved \*' 12571 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' 12572 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~ 12573 $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' 12574 12575 # Both c and cxx compiler support -rpath directly 12576 hardcode_libdir_flag_spec='-rpath $libdir' 12577 fi 12578 archive_cmds_need_lc='no' 12579 hardcode_libdir_separator=: 12580 ;; 12581 12582 solaris*) 12583 no_undefined_flag=' -z defs' 12584 if test yes = "$GCC"; then 12585 wlarc='$wl' 12586 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12587 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12588 $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' 12589 else 12590 case `$CC -V 2>&1` in 12591 *"Compilers 5.0"*) 12592 wlarc='' 12593 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12594 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12595 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12596 ;; 12597 *) 12598 wlarc='$wl' 12599 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12600 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12601 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12602 ;; 12603 esac 12604 fi 12605 hardcode_libdir_flag_spec='-R$libdir' 12606 hardcode_shlibpath_var=no 12607 case $host_os in 12608 solaris2.[0-5] | solaris2.[0-5].*) ;; 12609 *) 12610 # The compiler driver will combine and reorder linker options, 12611 # but understands '-z linker_flag'. GCC discards it without '$wl', 12612 # but is careful enough not to reorder. 12613 # Supported since Solaris 2.6 (maybe 2.5.1?) 12614 if test yes = "$GCC"; then 12615 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 12616 else 12617 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12618 fi 12619 ;; 12620 esac 12621 link_all_deplibs=yes 12622 ;; 12623 12624 sunos4*) 12625 if test sequent = "$host_vendor"; then 12626 # Use $CC to link under sequent, because it throws in some extra .o 12627 # files that make .init and .fini sections work. 12628 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12629 else 12630 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12631 fi 12632 hardcode_libdir_flag_spec='-L$libdir' 12633 hardcode_direct=yes 12634 hardcode_minus_L=yes 12635 hardcode_shlibpath_var=no 12636 ;; 12637 12638 sysv4) 12639 case $host_vendor in 12640 sni) 12641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12642 hardcode_direct=yes # is this really true??? 12643 ;; 12644 siemens) 12645 ## LD is ld it makes a PLAMLIB 12646 ## CC just makes a GrossModule. 12647 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12648 reload_cmds='$CC -r -o $output$reload_objs' 12649 hardcode_direct=no 12650 ;; 12651 motorola) 12652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12653 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12654 ;; 12655 esac 12656 runpath_var='LD_RUN_PATH' 12657 hardcode_shlibpath_var=no 12658 ;; 12659 12660 sysv4.3*) 12661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12662 hardcode_shlibpath_var=no 12663 export_dynamic_flag_spec='-Bexport' 12664 ;; 12665 12666 sysv4*MP*) 12667 if test -d /usr/nec; then 12668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12669 hardcode_shlibpath_var=no 12670 runpath_var=LD_RUN_PATH 12671 hardcode_runpath_var=yes 12672 ld_shlibs=yes 12673 fi 12674 ;; 12675 12676 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12677 no_undefined_flag='$wl-z,text' 12678 archive_cmds_need_lc=no 12679 hardcode_shlibpath_var=no 12680 runpath_var='LD_RUN_PATH' 12681 12682 if test yes = "$GCC"; then 12683 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12684 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12685 else 12686 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12687 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12688 fi 12689 ;; 12690 12691 sysv5* | sco3.2v5* | sco5v6*) 12692 # Note: We CANNOT use -z defs as we might desire, because we do not 12693 # link with -lc, and that would cause any symbols used from libc to 12694 # always be unresolved, which means just about no library would 12695 # ever link correctly. If we're not using GNU ld we use -z text 12696 # though, which does catch some bad symbols but isn't as heavy-handed 12697 # as -z defs. 12698 no_undefined_flag='$wl-z,text' 12699 allow_undefined_flag='$wl-z,nodefs' 12700 archive_cmds_need_lc=no 12701 hardcode_shlibpath_var=no 12702 hardcode_libdir_flag_spec='$wl-R,$libdir' 12703 hardcode_libdir_separator=':' 12704 link_all_deplibs=yes 12705 export_dynamic_flag_spec='$wl-Bexport' 12706 runpath_var='LD_RUN_PATH' 12707 12708 if test yes = "$GCC"; then 12709 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12710 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12711 else 12712 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12713 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12714 fi 12715 ;; 12716 12717 uts4*) 12718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12719 hardcode_libdir_flag_spec='-L$libdir' 12720 hardcode_shlibpath_var=no 12721 ;; 12722 12723 *) 12724 ld_shlibs=no 12725 ;; 12726 esac 12727 12728 if test sni = "$host_vendor"; then 12729 case $host in 12730 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12731 export_dynamic_flag_spec='$wl-Blargedynsym' 12732 ;; 12733 esac 12734 fi 12735 fi 12736 12737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12738$as_echo "$ld_shlibs" >&6; } 12739test no = "$ld_shlibs" && can_build_shared=no 12740 12741with_gnu_ld=$with_gnu_ld 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757# 12758# Do we need to explicitly link libc? 12759# 12760case "x$archive_cmds_need_lc" in 12761x|xyes) 12762 # Assume -lc should be added 12763 archive_cmds_need_lc=yes 12764 12765 if test yes,yes = "$GCC,$enable_shared"; then 12766 case $archive_cmds in 12767 *'~'*) 12768 # FIXME: we may have to deal with multi-command sequences. 12769 ;; 12770 '$CC '*) 12771 # Test whether the compiler implicitly links with -lc since on some 12772 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12773 # to ld, don't add -lc before -lgcc. 12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12775$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12776if ${lt_cv_archive_cmds_need_lc+:} false; then : 12777 $as_echo_n "(cached) " >&6 12778else 12779 $RM conftest* 12780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12781 12782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12783 (eval $ac_compile) 2>&5 12784 ac_status=$? 12785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12786 test $ac_status = 0; } 2>conftest.err; then 12787 soname=conftest 12788 lib=conftest 12789 libobjs=conftest.$ac_objext 12790 deplibs= 12791 wl=$lt_prog_compiler_wl 12792 pic_flag=$lt_prog_compiler_pic 12793 compiler_flags=-v 12794 linker_flags=-v 12795 verstring= 12796 output_objdir=. 12797 libname=conftest 12798 lt_save_allow_undefined_flag=$allow_undefined_flag 12799 allow_undefined_flag= 12800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12801 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12802 ac_status=$? 12803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12804 test $ac_status = 0; } 12805 then 12806 lt_cv_archive_cmds_need_lc=no 12807 else 12808 lt_cv_archive_cmds_need_lc=yes 12809 fi 12810 allow_undefined_flag=$lt_save_allow_undefined_flag 12811 else 12812 cat conftest.err 1>&5 12813 fi 12814 $RM conftest* 12815 12816fi 12817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12818$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12819 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12820 ;; 12821 esac 12822 fi 12823 ;; 12824esac 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12978$as_echo_n "checking dynamic linker characteristics... " >&6; } 12979 12980if test yes = "$GCC"; then 12981 case $host_os in 12982 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12983 *) lt_awk_arg='/^libraries:/' ;; 12984 esac 12985 case $host_os in 12986 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12987 *) lt_sed_strip_eq='s|=/|/|g' ;; 12988 esac 12989 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12990 case $lt_search_path_spec in 12991 *\;*) 12992 # if the path contains ";" then we assume it to be the separator 12993 # otherwise default to the standard path separator (i.e. ":") - it is 12994 # assumed that no part of a normal pathname contains ";" but that should 12995 # okay in the real world where ";" in dirpaths is itself problematic. 12996 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12997 ;; 12998 *) 12999 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13000 ;; 13001 esac 13002 # Ok, now we have the path, separated by spaces, we can step through it 13003 # and add multilib dir if necessary... 13004 lt_tmp_lt_search_path_spec= 13005 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13006 # ...but if some path component already ends with the multilib dir we assume 13007 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13008 case "$lt_multi_os_dir; $lt_search_path_spec " in 13009 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13010 lt_multi_os_dir= 13011 ;; 13012 esac 13013 for lt_sys_path in $lt_search_path_spec; do 13014 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13015 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13016 elif test -n "$lt_multi_os_dir"; then 13017 test -d "$lt_sys_path" && \ 13018 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13019 fi 13020 done 13021 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13022BEGIN {RS = " "; FS = "/|\n";} { 13023 lt_foo = ""; 13024 lt_count = 0; 13025 for (lt_i = NF; lt_i > 0; lt_i--) { 13026 if ($lt_i != "" && $lt_i != ".") { 13027 if ($lt_i == "..") { 13028 lt_count++; 13029 } else { 13030 if (lt_count == 0) { 13031 lt_foo = "/" $lt_i lt_foo; 13032 } else { 13033 lt_count--; 13034 } 13035 } 13036 } 13037 } 13038 if (lt_foo != "") { lt_freq[lt_foo]++; } 13039 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13040}'` 13041 # AWK program above erroneously prepends '/' to C:/dos/paths 13042 # for these hosts. 13043 case $host_os in 13044 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13045 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13046 esac 13047 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13048else 13049 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13050fi 13051library_names_spec= 13052libname_spec='lib$name' 13053soname_spec= 13054shrext_cmds=.so 13055postinstall_cmds= 13056postuninstall_cmds= 13057finish_cmds= 13058finish_eval= 13059shlibpath_var= 13060shlibpath_overrides_runpath=unknown 13061version_type=none 13062dynamic_linker="$host_os ld.so" 13063sys_lib_dlsearch_path_spec="/lib /usr/lib" 13064need_lib_prefix=unknown 13065hardcode_into_libs=no 13066 13067# when you set need_version to no, make sure it does not cause -set_version 13068# flags to be left without arguments 13069need_version=unknown 13070 13071 13072 13073case $host_os in 13074aix3*) 13075 version_type=linux # correct to gnu/linux during the next big refactor 13076 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13077 shlibpath_var=LIBPATH 13078 13079 # AIX 3 has no versioning support, so we append a major version to the name. 13080 soname_spec='$libname$release$shared_ext$major' 13081 ;; 13082 13083aix[4-9]*) 13084 version_type=linux # correct to gnu/linux during the next big refactor 13085 need_lib_prefix=no 13086 need_version=no 13087 hardcode_into_libs=yes 13088 if test ia64 = "$host_cpu"; then 13089 # AIX 5 supports IA64 13090 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13091 shlibpath_var=LD_LIBRARY_PATH 13092 else 13093 # With GCC up to 2.95.x, collect2 would create an import file 13094 # for dependence libraries. The import file would start with 13095 # the line '#! .'. This would cause the generated library to 13096 # depend on '.', always an invalid library. This was fixed in 13097 # development snapshots of GCC prior to 3.0. 13098 case $host_os in 13099 aix4 | aix4.[01] | aix4.[01].*) 13100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13101 echo ' yes ' 13102 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13103 : 13104 else 13105 can_build_shared=no 13106 fi 13107 ;; 13108 esac 13109 # Using Import Files as archive members, it is possible to support 13110 # filename-based versioning of shared library archives on AIX. While 13111 # this would work for both with and without runtime linking, it will 13112 # prevent static linking of such archives. So we do filename-based 13113 # shared library versioning with .so extension only, which is used 13114 # when both runtime linking and shared linking is enabled. 13115 # Unfortunately, runtime linking may impact performance, so we do 13116 # not want this to be the default eventually. Also, we use the 13117 # versioned .so libs for executables only if there is the -brtl 13118 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13119 # To allow for filename-based versioning support, we need to create 13120 # libNAME.so.V as an archive file, containing: 13121 # *) an Import File, referring to the versioned filename of the 13122 # archive as well as the shared archive member, telling the 13123 # bitwidth (32 or 64) of that shared object, and providing the 13124 # list of exported symbols of that shared object, eventually 13125 # decorated with the 'weak' keyword 13126 # *) the shared object with the F_LOADONLY flag set, to really avoid 13127 # it being seen by the linker. 13128 # At run time we better use the real file rather than another symlink, 13129 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13130 13131 case $with_aix_soname,$aix_use_runtimelinking in 13132 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13133 # soname into executable. Probably we can add versioning support to 13134 # collect2, so additional links can be useful in future. 13135 aix,yes) # traditional libtool 13136 dynamic_linker='AIX unversionable lib.so' 13137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13138 # instead of lib<name>.a to let people know that these are not 13139 # typical AIX shared libraries. 13140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13141 ;; 13142 aix,no) # traditional AIX only 13143 dynamic_linker='AIX lib.a(lib.so.V)' 13144 # We preserve .a as extension for shared libraries through AIX4.2 13145 # and later when we are not doing run time linking. 13146 library_names_spec='$libname$release.a $libname.a' 13147 soname_spec='$libname$release$shared_ext$major' 13148 ;; 13149 svr4,*) # full svr4 only 13150 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13151 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13152 # We do not specify a path in Import Files, so LIBPATH fires. 13153 shlibpath_overrides_runpath=yes 13154 ;; 13155 *,yes) # both, prefer svr4 13156 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13157 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13158 # unpreferred sharedlib libNAME.a needs extra handling 13159 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"' 13160 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"' 13161 # We do not specify a path in Import Files, so LIBPATH fires. 13162 shlibpath_overrides_runpath=yes 13163 ;; 13164 *,no) # both, prefer aix 13165 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13166 library_names_spec='$libname$release.a $libname.a' 13167 soname_spec='$libname$release$shared_ext$major' 13168 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13169 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)' 13170 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"' 13171 ;; 13172 esac 13173 shlibpath_var=LIBPATH 13174 fi 13175 ;; 13176 13177amigaos*) 13178 case $host_cpu in 13179 powerpc) 13180 # Since July 2007 AmigaOS4 officially supports .so libraries. 13181 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13183 ;; 13184 m68k) 13185 library_names_spec='$libname.ixlibrary $libname.a' 13186 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13187 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' 13188 ;; 13189 esac 13190 ;; 13191 13192beos*) 13193 library_names_spec='$libname$shared_ext' 13194 dynamic_linker="$host_os ld.so" 13195 shlibpath_var=LIBRARY_PATH 13196 ;; 13197 13198bsdi[45]*) 13199 version_type=linux # correct to gnu/linux during the next big refactor 13200 need_version=no 13201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13202 soname_spec='$libname$release$shared_ext$major' 13203 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13204 shlibpath_var=LD_LIBRARY_PATH 13205 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13206 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13207 # the default ld.so.conf also contains /usr/contrib/lib and 13208 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13209 # libtool to hard-code these into programs 13210 ;; 13211 13212cygwin* | mingw* | pw32* | cegcc*) 13213 version_type=windows 13214 shrext_cmds=.dll 13215 need_version=no 13216 need_lib_prefix=no 13217 13218 case $GCC,$cc_basename in 13219 yes,*) 13220 # gcc 13221 library_names_spec='$libname.dll.a' 13222 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13223 postinstall_cmds='base_file=`basename \$file`~ 13224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13225 dldir=$destdir/`dirname \$dlpath`~ 13226 test -d \$dldir || mkdir -p \$dldir~ 13227 $install_prog $dir/$dlname \$dldir/$dlname~ 13228 chmod a+x \$dldir/$dlname~ 13229 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13230 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13231 fi' 13232 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13233 dlpath=$dir/\$dldll~ 13234 $RM \$dlpath' 13235 shlibpath_overrides_runpath=yes 13236 13237 case $host_os in 13238 cygwin*) 13239 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13240 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13241 13242 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13243 ;; 13244 mingw* | cegcc*) 13245 # MinGW DLLs use traditional 'lib' prefix 13246 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13247 ;; 13248 pw32*) 13249 # pw32 DLLs use 'pw' prefix rather than 'lib' 13250 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13251 ;; 13252 esac 13253 dynamic_linker='Win32 ld.exe' 13254 ;; 13255 13256 *,cl*) 13257 # Native MSVC 13258 libname_spec='$name' 13259 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13260 library_names_spec='$libname.dll.lib' 13261 13262 case $build_os in 13263 mingw*) 13264 sys_lib_search_path_spec= 13265 lt_save_ifs=$IFS 13266 IFS=';' 13267 for lt_path in $LIB 13268 do 13269 IFS=$lt_save_ifs 13270 # Let DOS variable expansion print the short 8.3 style file name. 13271 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13272 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13273 done 13274 IFS=$lt_save_ifs 13275 # Convert to MSYS style. 13276 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13277 ;; 13278 cygwin*) 13279 # Convert to unix form, then to dos form, then back to unix form 13280 # but this time dos style (no spaces!) so that the unix form looks 13281 # like /cygdrive/c/PROGRA~1:/cygdr... 13282 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13283 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13284 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13285 ;; 13286 *) 13287 sys_lib_search_path_spec=$LIB 13288 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13289 # It is most probably a Windows format PATH. 13290 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13291 else 13292 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13293 fi 13294 # FIXME: find the short name or the path components, as spaces are 13295 # common. (e.g. "Program Files" -> "PROGRA~1") 13296 ;; 13297 esac 13298 13299 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13300 postinstall_cmds='base_file=`basename \$file`~ 13301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13302 dldir=$destdir/`dirname \$dlpath`~ 13303 test -d \$dldir || mkdir -p \$dldir~ 13304 $install_prog $dir/$dlname \$dldir/$dlname' 13305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13306 dlpath=$dir/\$dldll~ 13307 $RM \$dlpath' 13308 shlibpath_overrides_runpath=yes 13309 dynamic_linker='Win32 link.exe' 13310 ;; 13311 13312 *) 13313 # Assume MSVC wrapper 13314 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13315 dynamic_linker='Win32 ld.exe' 13316 ;; 13317 esac 13318 # FIXME: first we should search . and the directory the executable is in 13319 shlibpath_var=PATH 13320 ;; 13321 13322darwin* | rhapsody*) 13323 dynamic_linker="$host_os dyld" 13324 version_type=darwin 13325 need_lib_prefix=no 13326 need_version=no 13327 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13328 soname_spec='$libname$release$major$shared_ext' 13329 shlibpath_overrides_runpath=yes 13330 shlibpath_var=DYLD_LIBRARY_PATH 13331 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13332 13333 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13334 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13335 ;; 13336 13337dgux*) 13338 version_type=linux # correct to gnu/linux during the next big refactor 13339 need_lib_prefix=no 13340 need_version=no 13341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13342 soname_spec='$libname$release$shared_ext$major' 13343 shlibpath_var=LD_LIBRARY_PATH 13344 ;; 13345 13346freebsd* | dragonfly*) 13347 # DragonFly does not have aout. When/if they implement a new 13348 # versioning mechanism, adjust this. 13349 if test -x /usr/bin/objformat; then 13350 objformat=`/usr/bin/objformat` 13351 else 13352 case $host_os in 13353 freebsd[23].*) objformat=aout ;; 13354 *) objformat=elf ;; 13355 esac 13356 fi 13357 version_type=freebsd-$objformat 13358 case $version_type in 13359 freebsd-elf*) 13360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13361 soname_spec='$libname$release$shared_ext$major' 13362 need_version=no 13363 need_lib_prefix=no 13364 ;; 13365 freebsd-*) 13366 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13367 need_version=yes 13368 ;; 13369 esac 13370 shlibpath_var=LD_LIBRARY_PATH 13371 case $host_os in 13372 freebsd2.*) 13373 shlibpath_overrides_runpath=yes 13374 ;; 13375 freebsd3.[01]* | freebsdelf3.[01]*) 13376 shlibpath_overrides_runpath=yes 13377 hardcode_into_libs=yes 13378 ;; 13379 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13380 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13381 shlibpath_overrides_runpath=no 13382 hardcode_into_libs=yes 13383 ;; 13384 *) # from 4.6 on, and DragonFly 13385 shlibpath_overrides_runpath=yes 13386 hardcode_into_libs=yes 13387 ;; 13388 esac 13389 ;; 13390 13391haiku*) 13392 version_type=linux # correct to gnu/linux during the next big refactor 13393 need_lib_prefix=no 13394 need_version=no 13395 dynamic_linker="$host_os runtime_loader" 13396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13397 soname_spec='$libname$release$shared_ext$major' 13398 shlibpath_var=LIBRARY_PATH 13399 shlibpath_overrides_runpath=no 13400 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13401 hardcode_into_libs=yes 13402 ;; 13403 13404hpux9* | hpux10* | hpux11*) 13405 # Give a soname corresponding to the major version so that dld.sl refuses to 13406 # link against other versions. 13407 version_type=sunos 13408 need_lib_prefix=no 13409 need_version=no 13410 case $host_cpu in 13411 ia64*) 13412 shrext_cmds='.so' 13413 hardcode_into_libs=yes 13414 dynamic_linker="$host_os dld.so" 13415 shlibpath_var=LD_LIBRARY_PATH 13416 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13418 soname_spec='$libname$release$shared_ext$major' 13419 if test 32 = "$HPUX_IA64_MODE"; then 13420 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13421 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13422 else 13423 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13424 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13425 fi 13426 ;; 13427 hppa*64*) 13428 shrext_cmds='.sl' 13429 hardcode_into_libs=yes 13430 dynamic_linker="$host_os dld.sl" 13431 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13434 soname_spec='$libname$release$shared_ext$major' 13435 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13437 ;; 13438 *) 13439 shrext_cmds='.sl' 13440 dynamic_linker="$host_os dld.sl" 13441 shlibpath_var=SHLIB_PATH 13442 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13444 soname_spec='$libname$release$shared_ext$major' 13445 ;; 13446 esac 13447 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13448 postinstall_cmds='chmod 555 $lib' 13449 # or fails outright, so override atomically: 13450 install_override_mode=555 13451 ;; 13452 13453interix[3-9]*) 13454 version_type=linux # correct to gnu/linux during the next big refactor 13455 need_lib_prefix=no 13456 need_version=no 13457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13458 soname_spec='$libname$release$shared_ext$major' 13459 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13460 shlibpath_var=LD_LIBRARY_PATH 13461 shlibpath_overrides_runpath=no 13462 hardcode_into_libs=yes 13463 ;; 13464 13465irix5* | irix6* | nonstopux*) 13466 case $host_os in 13467 nonstopux*) version_type=nonstopux ;; 13468 *) 13469 if test yes = "$lt_cv_prog_gnu_ld"; then 13470 version_type=linux # correct to gnu/linux during the next big refactor 13471 else 13472 version_type=irix 13473 fi ;; 13474 esac 13475 need_lib_prefix=no 13476 need_version=no 13477 soname_spec='$libname$release$shared_ext$major' 13478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13479 case $host_os in 13480 irix5* | nonstopux*) 13481 libsuff= shlibsuff= 13482 ;; 13483 *) 13484 case $LD in # libtool.m4 will add one of these switches to LD 13485 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13486 libsuff= shlibsuff= libmagic=32-bit;; 13487 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13488 libsuff=32 shlibsuff=N32 libmagic=N32;; 13489 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13490 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13491 *) libsuff= shlibsuff= libmagic=never-match;; 13492 esac 13493 ;; 13494 esac 13495 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13496 shlibpath_overrides_runpath=no 13497 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13498 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13499 hardcode_into_libs=yes 13500 ;; 13501 13502# No shared lib support for Linux oldld, aout, or coff. 13503linux*oldld* | linux*aout* | linux*coff*) 13504 dynamic_linker=no 13505 ;; 13506 13507linux*android*) 13508 version_type=none # Android doesn't support versioned libraries. 13509 need_lib_prefix=no 13510 need_version=no 13511 library_names_spec='$libname$release$shared_ext' 13512 soname_spec='$libname$release$shared_ext' 13513 finish_cmds= 13514 shlibpath_var=LD_LIBRARY_PATH 13515 shlibpath_overrides_runpath=yes 13516 13517 # This implies no fast_install, which is unacceptable. 13518 # Some rework will be needed to allow for fast_install 13519 # before this can be enabled. 13520 hardcode_into_libs=yes 13521 13522 dynamic_linker='Android linker' 13523 # Don't embed -rpath directories since the linker doesn't support them. 13524 hardcode_libdir_flag_spec='-L$libdir' 13525 ;; 13526 13527# This must be glibc/ELF. 13528linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13529 version_type=linux # correct to gnu/linux during the next big refactor 13530 need_lib_prefix=no 13531 need_version=no 13532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13533 soname_spec='$libname$release$shared_ext$major' 13534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13535 shlibpath_var=LD_LIBRARY_PATH 13536 shlibpath_overrides_runpath=no 13537 13538 # Some binutils ld are patched to set DT_RUNPATH 13539 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13540 $as_echo_n "(cached) " >&6 13541else 13542 lt_cv_shlibpath_overrides_runpath=no 13543 save_LDFLAGS=$LDFLAGS 13544 save_libdir=$libdir 13545 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13546 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13548/* end confdefs.h. */ 13549 13550int 13551main () 13552{ 13553 13554 ; 13555 return 0; 13556} 13557_ACEOF 13558if ac_fn_c_try_link "$LINENO"; then : 13559 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13560 lt_cv_shlibpath_overrides_runpath=yes 13561fi 13562fi 13563rm -f core conftest.err conftest.$ac_objext \ 13564 conftest$ac_exeext conftest.$ac_ext 13565 LDFLAGS=$save_LDFLAGS 13566 libdir=$save_libdir 13567 13568fi 13569 13570 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13571 13572 # This implies no fast_install, which is unacceptable. 13573 # Some rework will be needed to allow for fast_install 13574 # before this can be enabled. 13575 hardcode_into_libs=yes 13576 13577 # Add ABI-specific directories to the system library path. 13578 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 13579 13580 # Ideally, we could use ldconfig to report *all* directores which are 13581 # searched for libraries, however this is still not possible. Aside from not 13582 # being certain /sbin/ldconfig is available, command 13583 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13584 # even though it is searched at run-time. Try to do the best guess by 13585 # appending ld.so.conf contents (and includes) to the search path. 13586 if test -f /etc/ld.so.conf; then 13587 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' ' '` 13588 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13589 fi 13590 13591 # We used to test for /lib/ld.so.1 and disable shared libraries on 13592 # powerpc, because MkLinux only supported shared libraries with the 13593 # GNU dynamic linker. Since this was broken with cross compilers, 13594 # most powerpc-linux boxes support dynamic linking these days and 13595 # people can always --disable-shared, the test was removed, and we 13596 # assume the GNU/Linux dynamic linker is in use. 13597 dynamic_linker='GNU/Linux ld.so' 13598 ;; 13599 13600netbsd*) 13601 version_type=sunos 13602 need_lib_prefix=no 13603 need_version=no 13604 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13605 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13607 dynamic_linker='NetBSD (a.out) ld.so' 13608 else 13609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13610 soname_spec='$libname$release$shared_ext$major' 13611 dynamic_linker='NetBSD ld.elf_so' 13612 fi 13613 shlibpath_var=LD_LIBRARY_PATH 13614 shlibpath_overrides_runpath=yes 13615 hardcode_into_libs=yes 13616 ;; 13617 13618newsos6) 13619 version_type=linux # correct to gnu/linux during the next big refactor 13620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13621 shlibpath_var=LD_LIBRARY_PATH 13622 shlibpath_overrides_runpath=yes 13623 ;; 13624 13625*nto* | *qnx*) 13626 version_type=qnx 13627 need_lib_prefix=no 13628 need_version=no 13629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13630 soname_spec='$libname$release$shared_ext$major' 13631 shlibpath_var=LD_LIBRARY_PATH 13632 shlibpath_overrides_runpath=no 13633 hardcode_into_libs=yes 13634 dynamic_linker='ldqnx.so' 13635 ;; 13636 13637openbsd* | bitrig*) 13638 version_type=sunos 13639 sys_lib_dlsearch_path_spec=/usr/lib 13640 need_lib_prefix=no 13641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13642 need_version=no 13643 else 13644 need_version=yes 13645 fi 13646 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13648 shlibpath_var=LD_LIBRARY_PATH 13649 shlibpath_overrides_runpath=yes 13650 ;; 13651 13652os2*) 13653 libname_spec='$name' 13654 version_type=windows 13655 shrext_cmds=.dll 13656 need_version=no 13657 need_lib_prefix=no 13658 # OS/2 can only load a DLL with a base name of 8 characters or less. 13659 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13660 v=$($ECHO $release$versuffix | tr -d .-); 13661 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13662 $ECHO $n$v`$shared_ext' 13663 library_names_spec='${libname}_dll.$libext' 13664 dynamic_linker='OS/2 ld.exe' 13665 shlibpath_var=BEGINLIBPATH 13666 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13668 postinstall_cmds='base_file=`basename \$file`~ 13669 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13670 dldir=$destdir/`dirname \$dlpath`~ 13671 test -d \$dldir || mkdir -p \$dldir~ 13672 $install_prog $dir/$dlname \$dldir/$dlname~ 13673 chmod a+x \$dldir/$dlname~ 13674 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13675 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13676 fi' 13677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13678 dlpath=$dir/\$dldll~ 13679 $RM \$dlpath' 13680 ;; 13681 13682osf3* | osf4* | osf5*) 13683 version_type=osf 13684 need_lib_prefix=no 13685 need_version=no 13686 soname_spec='$libname$release$shared_ext$major' 13687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13688 shlibpath_var=LD_LIBRARY_PATH 13689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13691 ;; 13692 13693rdos*) 13694 dynamic_linker=no 13695 ;; 13696 13697solaris*) 13698 version_type=linux # correct to gnu/linux during the next big refactor 13699 need_lib_prefix=no 13700 need_version=no 13701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13702 soname_spec='$libname$release$shared_ext$major' 13703 shlibpath_var=LD_LIBRARY_PATH 13704 shlibpath_overrides_runpath=yes 13705 hardcode_into_libs=yes 13706 # ldd complains unless libraries are executable 13707 postinstall_cmds='chmod +x $lib' 13708 ;; 13709 13710sunos4*) 13711 version_type=sunos 13712 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13713 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13714 shlibpath_var=LD_LIBRARY_PATH 13715 shlibpath_overrides_runpath=yes 13716 if test yes = "$with_gnu_ld"; then 13717 need_lib_prefix=no 13718 fi 13719 need_version=yes 13720 ;; 13721 13722sysv4 | sysv4.3*) 13723 version_type=linux # correct to gnu/linux during the next big refactor 13724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13725 soname_spec='$libname$release$shared_ext$major' 13726 shlibpath_var=LD_LIBRARY_PATH 13727 case $host_vendor in 13728 sni) 13729 shlibpath_overrides_runpath=no 13730 need_lib_prefix=no 13731 runpath_var=LD_RUN_PATH 13732 ;; 13733 siemens) 13734 need_lib_prefix=no 13735 ;; 13736 motorola) 13737 need_lib_prefix=no 13738 need_version=no 13739 shlibpath_overrides_runpath=no 13740 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13741 ;; 13742 esac 13743 ;; 13744 13745sysv4*MP*) 13746 if test -d /usr/nec; then 13747 version_type=linux # correct to gnu/linux during the next big refactor 13748 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13749 soname_spec='$libname$shared_ext.$major' 13750 shlibpath_var=LD_LIBRARY_PATH 13751 fi 13752 ;; 13753 13754sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13755 version_type=sco 13756 need_lib_prefix=no 13757 need_version=no 13758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13759 soname_spec='$libname$release$shared_ext$major' 13760 shlibpath_var=LD_LIBRARY_PATH 13761 shlibpath_overrides_runpath=yes 13762 hardcode_into_libs=yes 13763 if test yes = "$with_gnu_ld"; then 13764 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13765 else 13766 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13767 case $host_os in 13768 sco3.2v5*) 13769 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13770 ;; 13771 esac 13772 fi 13773 sys_lib_dlsearch_path_spec='/usr/lib' 13774 ;; 13775 13776tpf*) 13777 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13778 version_type=linux # correct to gnu/linux during the next big refactor 13779 need_lib_prefix=no 13780 need_version=no 13781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13782 shlibpath_var=LD_LIBRARY_PATH 13783 shlibpath_overrides_runpath=no 13784 hardcode_into_libs=yes 13785 ;; 13786 13787uts4*) 13788 version_type=linux # correct to gnu/linux during the next big refactor 13789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13790 soname_spec='$libname$release$shared_ext$major' 13791 shlibpath_var=LD_LIBRARY_PATH 13792 ;; 13793 13794*) 13795 dynamic_linker=no 13796 ;; 13797esac 13798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13799$as_echo "$dynamic_linker" >&6; } 13800test no = "$dynamic_linker" && can_build_shared=no 13801 13802variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13803if test yes = "$GCC"; then 13804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13805fi 13806 13807if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13808 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13809fi 13810 13811if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13812 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13813fi 13814 13815# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13816configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13817 13818# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13819func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13820 13821# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13822configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13921$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13922hardcode_action= 13923if test -n "$hardcode_libdir_flag_spec" || 13924 test -n "$runpath_var" || 13925 test yes = "$hardcode_automatic"; then 13926 13927 # We can hardcode non-existent directories. 13928 if test no != "$hardcode_direct" && 13929 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13930 # have to relink, otherwise we might link with an installed library 13931 # when we should be linking with a yet-to-be-installed one 13932 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13933 test no != "$hardcode_minus_L"; then 13934 # Linking always hardcodes the temporary library directory. 13935 hardcode_action=relink 13936 else 13937 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13938 hardcode_action=immediate 13939 fi 13940else 13941 # We cannot hardcode anything, or else we can only hardcode existing 13942 # directories. 13943 hardcode_action=unsupported 13944fi 13945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13946$as_echo "$hardcode_action" >&6; } 13947 13948if test relink = "$hardcode_action" || 13949 test yes = "$inherit_rpath"; then 13950 # Fast installation is not supported 13951 enable_fast_install=no 13952elif test yes = "$shlibpath_overrides_runpath" || 13953 test no = "$enable_shared"; then 13954 # Fast installation is not necessary 13955 enable_fast_install=needless 13956fi 13957 13958 13959 13960 13961 13962 13963 if test yes != "$enable_dlopen"; then 13964 enable_dlopen=unknown 13965 enable_dlopen_self=unknown 13966 enable_dlopen_self_static=unknown 13967else 13968 lt_cv_dlopen=no 13969 lt_cv_dlopen_libs= 13970 13971 case $host_os in 13972 beos*) 13973 lt_cv_dlopen=load_add_on 13974 lt_cv_dlopen_libs= 13975 lt_cv_dlopen_self=yes 13976 ;; 13977 13978 mingw* | pw32* | cegcc*) 13979 lt_cv_dlopen=LoadLibrary 13980 lt_cv_dlopen_libs= 13981 ;; 13982 13983 cygwin*) 13984 lt_cv_dlopen=dlopen 13985 lt_cv_dlopen_libs= 13986 ;; 13987 13988 darwin*) 13989 # if libdl is installed we need to link against it 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13991$as_echo_n "checking for dlopen in -ldl... " >&6; } 13992if ${ac_cv_lib_dl_dlopen+:} false; then : 13993 $as_echo_n "(cached) " >&6 13994else 13995 ac_check_lib_save_LIBS=$LIBS 13996LIBS="-ldl $LIBS" 13997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13998/* end confdefs.h. */ 13999 14000/* Override any GCC internal prototype to avoid an error. 14001 Use char because int might match the return type of a GCC 14002 builtin and then its argument prototype would still apply. */ 14003#ifdef __cplusplus 14004extern "C" 14005#endif 14006char dlopen (); 14007int 14008main () 14009{ 14010return dlopen (); 14011 ; 14012 return 0; 14013} 14014_ACEOF 14015if ac_fn_c_try_link "$LINENO"; then : 14016 ac_cv_lib_dl_dlopen=yes 14017else 14018 ac_cv_lib_dl_dlopen=no 14019fi 14020rm -f core conftest.err conftest.$ac_objext \ 14021 conftest$ac_exeext conftest.$ac_ext 14022LIBS=$ac_check_lib_save_LIBS 14023fi 14024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14025$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14026if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14027 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14028else 14029 14030 lt_cv_dlopen=dyld 14031 lt_cv_dlopen_libs= 14032 lt_cv_dlopen_self=yes 14033 14034fi 14035 14036 ;; 14037 14038 tpf*) 14039 # Don't try to run any link tests for TPF. We know it's impossible 14040 # because TPF is a cross-compiler, and we know how we open DSOs. 14041 lt_cv_dlopen=dlopen 14042 lt_cv_dlopen_libs= 14043 lt_cv_dlopen_self=no 14044 ;; 14045 14046 *) 14047 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14048if test "x$ac_cv_func_shl_load" = xyes; then : 14049 lt_cv_dlopen=shl_load 14050else 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14052$as_echo_n "checking for shl_load in -ldld... " >&6; } 14053if ${ac_cv_lib_dld_shl_load+:} false; then : 14054 $as_echo_n "(cached) " >&6 14055else 14056 ac_check_lib_save_LIBS=$LIBS 14057LIBS="-ldld $LIBS" 14058cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14059/* end confdefs.h. */ 14060 14061/* Override any GCC internal prototype to avoid an error. 14062 Use char because int might match the return type of a GCC 14063 builtin and then its argument prototype would still apply. */ 14064#ifdef __cplusplus 14065extern "C" 14066#endif 14067char shl_load (); 14068int 14069main () 14070{ 14071return shl_load (); 14072 ; 14073 return 0; 14074} 14075_ACEOF 14076if ac_fn_c_try_link "$LINENO"; then : 14077 ac_cv_lib_dld_shl_load=yes 14078else 14079 ac_cv_lib_dld_shl_load=no 14080fi 14081rm -f core conftest.err conftest.$ac_objext \ 14082 conftest$ac_exeext conftest.$ac_ext 14083LIBS=$ac_check_lib_save_LIBS 14084fi 14085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14086$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14087if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14088 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14089else 14090 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14091if test "x$ac_cv_func_dlopen" = xyes; then : 14092 lt_cv_dlopen=dlopen 14093else 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14095$as_echo_n "checking for dlopen in -ldl... " >&6; } 14096if ${ac_cv_lib_dl_dlopen+:} false; then : 14097 $as_echo_n "(cached) " >&6 14098else 14099 ac_check_lib_save_LIBS=$LIBS 14100LIBS="-ldl $LIBS" 14101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14102/* end confdefs.h. */ 14103 14104/* Override any GCC internal prototype to avoid an error. 14105 Use char because int might match the return type of a GCC 14106 builtin and then its argument prototype would still apply. */ 14107#ifdef __cplusplus 14108extern "C" 14109#endif 14110char dlopen (); 14111int 14112main () 14113{ 14114return dlopen (); 14115 ; 14116 return 0; 14117} 14118_ACEOF 14119if ac_fn_c_try_link "$LINENO"; then : 14120 ac_cv_lib_dl_dlopen=yes 14121else 14122 ac_cv_lib_dl_dlopen=no 14123fi 14124rm -f core conftest.err conftest.$ac_objext \ 14125 conftest$ac_exeext conftest.$ac_ext 14126LIBS=$ac_check_lib_save_LIBS 14127fi 14128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14129$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14130if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14131 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14132else 14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14134$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14135if ${ac_cv_lib_svld_dlopen+:} false; then : 14136 $as_echo_n "(cached) " >&6 14137else 14138 ac_check_lib_save_LIBS=$LIBS 14139LIBS="-lsvld $LIBS" 14140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14141/* end confdefs.h. */ 14142 14143/* Override any GCC internal prototype to avoid an error. 14144 Use char because int might match the return type of a GCC 14145 builtin and then its argument prototype would still apply. */ 14146#ifdef __cplusplus 14147extern "C" 14148#endif 14149char dlopen (); 14150int 14151main () 14152{ 14153return dlopen (); 14154 ; 14155 return 0; 14156} 14157_ACEOF 14158if ac_fn_c_try_link "$LINENO"; then : 14159 ac_cv_lib_svld_dlopen=yes 14160else 14161 ac_cv_lib_svld_dlopen=no 14162fi 14163rm -f core conftest.err conftest.$ac_objext \ 14164 conftest$ac_exeext conftest.$ac_ext 14165LIBS=$ac_check_lib_save_LIBS 14166fi 14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14168$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14169if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14170 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14171else 14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14173$as_echo_n "checking for dld_link in -ldld... " >&6; } 14174if ${ac_cv_lib_dld_dld_link+:} false; then : 14175 $as_echo_n "(cached) " >&6 14176else 14177 ac_check_lib_save_LIBS=$LIBS 14178LIBS="-ldld $LIBS" 14179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14180/* end confdefs.h. */ 14181 14182/* Override any GCC internal prototype to avoid an error. 14183 Use char because int might match the return type of a GCC 14184 builtin and then its argument prototype would still apply. */ 14185#ifdef __cplusplus 14186extern "C" 14187#endif 14188char dld_link (); 14189int 14190main () 14191{ 14192return dld_link (); 14193 ; 14194 return 0; 14195} 14196_ACEOF 14197if ac_fn_c_try_link "$LINENO"; then : 14198 ac_cv_lib_dld_dld_link=yes 14199else 14200 ac_cv_lib_dld_dld_link=no 14201fi 14202rm -f core conftest.err conftest.$ac_objext \ 14203 conftest$ac_exeext conftest.$ac_ext 14204LIBS=$ac_check_lib_save_LIBS 14205fi 14206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14207$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14208if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14209 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14210fi 14211 14212 14213fi 14214 14215 14216fi 14217 14218 14219fi 14220 14221 14222fi 14223 14224 14225fi 14226 14227 ;; 14228 esac 14229 14230 if test no = "$lt_cv_dlopen"; then 14231 enable_dlopen=no 14232 else 14233 enable_dlopen=yes 14234 fi 14235 14236 case $lt_cv_dlopen in 14237 dlopen) 14238 save_CPPFLAGS=$CPPFLAGS 14239 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14240 14241 save_LDFLAGS=$LDFLAGS 14242 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14243 14244 save_LIBS=$LIBS 14245 LIBS="$lt_cv_dlopen_libs $LIBS" 14246 14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14248$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14249if ${lt_cv_dlopen_self+:} false; then : 14250 $as_echo_n "(cached) " >&6 14251else 14252 if test yes = "$cross_compiling"; then : 14253 lt_cv_dlopen_self=cross 14254else 14255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14256 lt_status=$lt_dlunknown 14257 cat > conftest.$ac_ext <<_LT_EOF 14258#line $LINENO "configure" 14259#include "confdefs.h" 14260 14261#if HAVE_DLFCN_H 14262#include <dlfcn.h> 14263#endif 14264 14265#include <stdio.h> 14266 14267#ifdef RTLD_GLOBAL 14268# define LT_DLGLOBAL RTLD_GLOBAL 14269#else 14270# ifdef DL_GLOBAL 14271# define LT_DLGLOBAL DL_GLOBAL 14272# else 14273# define LT_DLGLOBAL 0 14274# endif 14275#endif 14276 14277/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14278 find out it does not work in some platform. */ 14279#ifndef LT_DLLAZY_OR_NOW 14280# ifdef RTLD_LAZY 14281# define LT_DLLAZY_OR_NOW RTLD_LAZY 14282# else 14283# ifdef DL_LAZY 14284# define LT_DLLAZY_OR_NOW DL_LAZY 14285# else 14286# ifdef RTLD_NOW 14287# define LT_DLLAZY_OR_NOW RTLD_NOW 14288# else 14289# ifdef DL_NOW 14290# define LT_DLLAZY_OR_NOW DL_NOW 14291# else 14292# define LT_DLLAZY_OR_NOW 0 14293# endif 14294# endif 14295# endif 14296# endif 14297#endif 14298 14299/* When -fvisibility=hidden is used, assume the code has been annotated 14300 correspondingly for the symbols needed. */ 14301#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14302int fnord () __attribute__((visibility("default"))); 14303#endif 14304 14305int fnord () { return 42; } 14306int main () 14307{ 14308 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14309 int status = $lt_dlunknown; 14310 14311 if (self) 14312 { 14313 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14314 else 14315 { 14316 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14317 else puts (dlerror ()); 14318 } 14319 /* dlclose (self); */ 14320 } 14321 else 14322 puts (dlerror ()); 14323 14324 return status; 14325} 14326_LT_EOF 14327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14328 (eval $ac_link) 2>&5 14329 ac_status=$? 14330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14331 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14332 (./conftest; exit; ) >&5 2>/dev/null 14333 lt_status=$? 14334 case x$lt_status in 14335 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14336 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14337 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14338 esac 14339 else : 14340 # compilation failed 14341 lt_cv_dlopen_self=no 14342 fi 14343fi 14344rm -fr conftest* 14345 14346 14347fi 14348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14349$as_echo "$lt_cv_dlopen_self" >&6; } 14350 14351 if test yes = "$lt_cv_dlopen_self"; then 14352 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14354$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14355if ${lt_cv_dlopen_self_static+:} false; then : 14356 $as_echo_n "(cached) " >&6 14357else 14358 if test yes = "$cross_compiling"; then : 14359 lt_cv_dlopen_self_static=cross 14360else 14361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14362 lt_status=$lt_dlunknown 14363 cat > conftest.$ac_ext <<_LT_EOF 14364#line $LINENO "configure" 14365#include "confdefs.h" 14366 14367#if HAVE_DLFCN_H 14368#include <dlfcn.h> 14369#endif 14370 14371#include <stdio.h> 14372 14373#ifdef RTLD_GLOBAL 14374# define LT_DLGLOBAL RTLD_GLOBAL 14375#else 14376# ifdef DL_GLOBAL 14377# define LT_DLGLOBAL DL_GLOBAL 14378# else 14379# define LT_DLGLOBAL 0 14380# endif 14381#endif 14382 14383/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14384 find out it does not work in some platform. */ 14385#ifndef LT_DLLAZY_OR_NOW 14386# ifdef RTLD_LAZY 14387# define LT_DLLAZY_OR_NOW RTLD_LAZY 14388# else 14389# ifdef DL_LAZY 14390# define LT_DLLAZY_OR_NOW DL_LAZY 14391# else 14392# ifdef RTLD_NOW 14393# define LT_DLLAZY_OR_NOW RTLD_NOW 14394# else 14395# ifdef DL_NOW 14396# define LT_DLLAZY_OR_NOW DL_NOW 14397# else 14398# define LT_DLLAZY_OR_NOW 0 14399# endif 14400# endif 14401# endif 14402# endif 14403#endif 14404 14405/* When -fvisibility=hidden is used, assume the code has been annotated 14406 correspondingly for the symbols needed. */ 14407#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14408int fnord () __attribute__((visibility("default"))); 14409#endif 14410 14411int fnord () { return 42; } 14412int main () 14413{ 14414 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14415 int status = $lt_dlunknown; 14416 14417 if (self) 14418 { 14419 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14420 else 14421 { 14422 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14423 else puts (dlerror ()); 14424 } 14425 /* dlclose (self); */ 14426 } 14427 else 14428 puts (dlerror ()); 14429 14430 return status; 14431} 14432_LT_EOF 14433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14434 (eval $ac_link) 2>&5 14435 ac_status=$? 14436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14437 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14438 (./conftest; exit; ) >&5 2>/dev/null 14439 lt_status=$? 14440 case x$lt_status in 14441 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14442 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14443 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14444 esac 14445 else : 14446 # compilation failed 14447 lt_cv_dlopen_self_static=no 14448 fi 14449fi 14450rm -fr conftest* 14451 14452 14453fi 14454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14455$as_echo "$lt_cv_dlopen_self_static" >&6; } 14456 fi 14457 14458 CPPFLAGS=$save_CPPFLAGS 14459 LDFLAGS=$save_LDFLAGS 14460 LIBS=$save_LIBS 14461 ;; 14462 esac 14463 14464 case $lt_cv_dlopen_self in 14465 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14466 *) enable_dlopen_self=unknown ;; 14467 esac 14468 14469 case $lt_cv_dlopen_self_static in 14470 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14471 *) enable_dlopen_self_static=unknown ;; 14472 esac 14473fi 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491striplib= 14492old_striplib= 14493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14494$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14495if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14496 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14497 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14499$as_echo "yes" >&6; } 14500else 14501# FIXME - insert some real tests, host_os isn't really good enough 14502 case $host_os in 14503 darwin*) 14504 if test -n "$STRIP"; then 14505 striplib="$STRIP -x" 14506 old_striplib="$STRIP -S" 14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14508$as_echo "yes" >&6; } 14509 else 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14511$as_echo "no" >&6; } 14512 fi 14513 ;; 14514 *) 14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14516$as_echo "no" >&6; } 14517 ;; 14518 esac 14519fi 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 # Report what library types will actually be built 14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14534$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14536$as_echo "$can_build_shared" >&6; } 14537 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14539$as_echo_n "checking whether to build shared libraries... " >&6; } 14540 test no = "$can_build_shared" && enable_shared=no 14541 14542 # On AIX, shared libraries and static libraries use the same namespace, and 14543 # are all built from PIC. 14544 case $host_os in 14545 aix3*) 14546 test yes = "$enable_shared" && enable_static=no 14547 if test -n "$RANLIB"; then 14548 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14549 postinstall_cmds='$RANLIB $lib' 14550 fi 14551 ;; 14552 14553 aix[4-9]*) 14554 if test ia64 != "$host_cpu"; then 14555 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14556 yes,aix,yes) ;; # shared object as lib.so file only 14557 yes,svr4,*) ;; # shared object as lib.so archive member only 14558 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14559 esac 14560 fi 14561 ;; 14562 esac 14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14564$as_echo "$enable_shared" >&6; } 14565 14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14567$as_echo_n "checking whether to build static libraries... " >&6; } 14568 # Make sure either enable_shared or enable_static is yes. 14569 test yes = "$enable_shared" || enable_static=yes 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14571$as_echo "$enable_static" >&6; } 14572 14573 14574 14575 14576fi 14577ac_ext=c 14578ac_cpp='$CPP $CPPFLAGS' 14579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14581ac_compiler_gnu=$ac_cv_c_compiler_gnu 14582 14583CC=$lt_save_CC 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 ac_config_commands="$ac_config_commands libtool" 14600 14601 14602 14603 14604# Only expand once: 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14617 if test -n "$ac_tool_prefix"; then 14618 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14619set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14621$as_echo_n "checking for $ac_word... " >&6; } 14622if ${ac_cv_path_PKG_CONFIG+:} false; then : 14623 $as_echo_n "(cached) " >&6 14624else 14625 case $PKG_CONFIG in 14626 [\\/]* | ?:[\\/]*) 14627 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14628 ;; 14629 *) 14630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14631for as_dir in $PATH 14632do 14633 IFS=$as_save_IFS 14634 test -z "$as_dir" && as_dir=. 14635 for ac_exec_ext in '' $ac_executable_extensions; do 14636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14637 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14639 break 2 14640 fi 14641done 14642 done 14643IFS=$as_save_IFS 14644 14645 ;; 14646esac 14647fi 14648PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14649if test -n "$PKG_CONFIG"; then 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14651$as_echo "$PKG_CONFIG" >&6; } 14652else 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14654$as_echo "no" >&6; } 14655fi 14656 14657 14658fi 14659if test -z "$ac_cv_path_PKG_CONFIG"; then 14660 ac_pt_PKG_CONFIG=$PKG_CONFIG 14661 # Extract the first word of "pkg-config", so it can be a program name with args. 14662set dummy pkg-config; ac_word=$2 14663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14664$as_echo_n "checking for $ac_word... " >&6; } 14665if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 14666 $as_echo_n "(cached) " >&6 14667else 14668 case $ac_pt_PKG_CONFIG in 14669 [\\/]* | ?:[\\/]*) 14670 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14671 ;; 14672 *) 14673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14674for as_dir in $PATH 14675do 14676 IFS=$as_save_IFS 14677 test -z "$as_dir" && as_dir=. 14678 for ac_exec_ext in '' $ac_executable_extensions; do 14679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14680 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14682 break 2 14683 fi 14684done 14685 done 14686IFS=$as_save_IFS 14687 14688 ;; 14689esac 14690fi 14691ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14692if test -n "$ac_pt_PKG_CONFIG"; then 14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14694$as_echo "$ac_pt_PKG_CONFIG" >&6; } 14695else 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14697$as_echo "no" >&6; } 14698fi 14699 14700 if test "x$ac_pt_PKG_CONFIG" = x; then 14701 PKG_CONFIG="" 14702 else 14703 case $cross_compiling:$ac_tool_warned in 14704yes:) 14705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14707ac_tool_warned=yes ;; 14708esac 14709 PKG_CONFIG=$ac_pt_PKG_CONFIG 14710 fi 14711else 14712 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14713fi 14714 14715fi 14716if test -n "$PKG_CONFIG"; then 14717 _pkg_min_version=0.9.0 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 14719$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 14720 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14722$as_echo "yes" >&6; } 14723 else 14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14725$as_echo "no" >&6; } 14726 PKG_CONFIG="" 14727 fi 14728fi 14729 14730# Checks for header files. 14731for 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 net/if.h 14732do : 14733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14734ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 14735" 14736if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14737 cat >>confdefs.h <<_ACEOF 14738#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14739_ACEOF 14740 14741fi 14742 14743done 14744 14745 14746# Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH 14747for ac_header in TargetConditionals.h 14748do : 14749 ac_fn_c_check_header_mongrel "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default" 14750if test "x$ac_cv_header_TargetConditionals_h" = xyes; then : 14751 cat >>confdefs.h <<_ACEOF 14752#define HAVE_TARGETCONDITIONALS_H 1 14753_ACEOF 14754 14755fi 14756 14757done 14758 14759 14760# check for types. 14761# Using own tests for int64* because autoconf builtin only give 32bit. 14762ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 14763if test "x$ac_cv_type_int8_t" = xyes; then : 14764 14765else 14766 14767cat >>confdefs.h <<_ACEOF 14768#define int8_t signed char 14769_ACEOF 14770 14771fi 14772 14773ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 14774if test "x$ac_cv_type_int16_t" = xyes; then : 14775 14776else 14777 14778cat >>confdefs.h <<_ACEOF 14779#define int16_t short 14780_ACEOF 14781 14782fi 14783 14784ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 14785if test "x$ac_cv_type_int32_t" = xyes; then : 14786 14787else 14788 14789cat >>confdefs.h <<_ACEOF 14790#define int32_t int 14791_ACEOF 14792 14793fi 14794 14795ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 14796if test "x$ac_cv_type_int64_t" = xyes; then : 14797 14798else 14799 14800cat >>confdefs.h <<_ACEOF 14801#define int64_t long long 14802_ACEOF 14803 14804fi 14805 14806ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 14807if test "x$ac_cv_type_uint8_t" = xyes; then : 14808 14809else 14810 14811cat >>confdefs.h <<_ACEOF 14812#define uint8_t unsigned char 14813_ACEOF 14814 14815fi 14816 14817ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 14818if test "x$ac_cv_type_uint16_t" = xyes; then : 14819 14820else 14821 14822cat >>confdefs.h <<_ACEOF 14823#define uint16_t unsigned short 14824_ACEOF 14825 14826fi 14827 14828ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 14829if test "x$ac_cv_type_uint32_t" = xyes; then : 14830 14831else 14832 14833cat >>confdefs.h <<_ACEOF 14834#define uint32_t unsigned int 14835_ACEOF 14836 14837fi 14838 14839ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 14840if test "x$ac_cv_type_uint64_t" = xyes; then : 14841 14842else 14843 14844cat >>confdefs.h <<_ACEOF 14845#define uint64_t unsigned long long 14846_ACEOF 14847 14848fi 14849 14850ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14851if test "x$ac_cv_type_size_t" = xyes; then : 14852 14853else 14854 14855cat >>confdefs.h <<_ACEOF 14856#define size_t unsigned int 14857_ACEOF 14858 14859fi 14860 14861ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14862if test "x$ac_cv_type_ssize_t" = xyes; then : 14863 14864else 14865 14866cat >>confdefs.h <<_ACEOF 14867#define ssize_t int 14868_ACEOF 14869 14870fi 14871 14872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 14873$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 14874if ${ac_cv_type_uid_t+:} false; then : 14875 $as_echo_n "(cached) " >&6 14876else 14877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14878/* end confdefs.h. */ 14879#include <sys/types.h> 14880 14881_ACEOF 14882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14883 $EGREP "uid_t" >/dev/null 2>&1; then : 14884 ac_cv_type_uid_t=yes 14885else 14886 ac_cv_type_uid_t=no 14887fi 14888rm -f conftest* 14889 14890fi 14891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 14892$as_echo "$ac_cv_type_uid_t" >&6; } 14893if test $ac_cv_type_uid_t = no; then 14894 14895$as_echo "#define uid_t int" >>confdefs.h 14896 14897 14898$as_echo "#define gid_t int" >>confdefs.h 14899 14900fi 14901 14902ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 14903if test "x$ac_cv_type_pid_t" = xyes; then : 14904 14905else 14906 14907cat >>confdefs.h <<_ACEOF 14908#define pid_t int 14909_ACEOF 14910 14911fi 14912 14913ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 14914if test "x$ac_cv_type_off_t" = xyes; then : 14915 14916else 14917 14918cat >>confdefs.h <<_ACEOF 14919#define off_t long int 14920_ACEOF 14921 14922fi 14923 14924ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" " 14925$ac_includes_default 14926#ifdef HAVE_WINSOCK2_H 14927# include <winsock2.h> 14928#endif 14929 14930" 14931if test "x$ac_cv_type_u_char" = xyes; then : 14932 14933else 14934 14935$as_echo "#define u_char unsigned char" >>confdefs.h 14936 14937fi 14938 14939ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " 14940$ac_includes_default 14941#ifdef HAVE_SYS_RESOURCE_H 14942# include <sys/resource.h> 14943#endif 14944 14945" 14946if test "x$ac_cv_type_rlim_t" = xyes; then : 14947 14948else 14949 14950$as_echo "#define rlim_t unsigned long" >>confdefs.h 14951 14952fi 14953 14954 14955ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 14956$ac_includes_default 14957#ifdef HAVE_SYS_SOCKET_H 14958# include <sys/socket.h> 14959#endif 14960#ifdef HAVE_WS2TCPIP_H 14961# include <ws2tcpip.h> 14962#endif 14963 14964" 14965if test "x$ac_cv_type_socklen_t" = xyes; then : 14966 14967else 14968 14969$as_echo "#define socklen_t int" >>confdefs.h 14970 14971fi 14972 14973 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 14974$ac_includes_default 14975#ifdef HAVE_SYS_TYPES_H 14976# include <sys/types.h> 14977#endif 14978#ifdef HAVE_NETINET_IN_H 14979# include <netinet/in.h> 14980#endif 14981 14982" 14983if test "x$ac_cv_type_in_addr_t" = xyes; then : 14984 14985else 14986 14987$as_echo "#define in_addr_t uint32_t" >>confdefs.h 14988 14989fi 14990 14991 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 14992$ac_includes_default 14993#ifdef HAVE_SYS_TYPES_H 14994# include <sys/types.h> 14995#endif 14996#ifdef HAVE_NETINET_IN_H 14997# include <netinet/in.h> 14998#endif 14999 15000" 15001if test "x$ac_cv_type_in_port_t" = xyes; then : 15002 15003else 15004 15005$as_echo "#define in_port_t uint16_t" >>confdefs.h 15006 15007fi 15008 15009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 15010$as_echo_n "checking if memcmp compares unsigned... " >&6; } 15011if test "$cross_compiling" = yes; then : 15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 15013$as_echo "cross-compile no" >&6; } 15014 15015$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 15016 15017 case " $LIBOBJS " in 15018 *" memcmp.$ac_objext "* ) ;; 15019 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 15020 ;; 15021esac 15022 15023 15024else 15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15026/* end confdefs.h. */ 15027 15028#include <stdio.h> 15029#include <stdlib.h> 15030#include <string.h> 15031int main(void) 15032{ 15033 char a = 255, b = 0; 15034 if(memcmp(&a, &b, 1) < 0) 15035 return 1; 15036 return 0; 15037} 15038 15039_ACEOF 15040if ac_fn_c_try_run "$LINENO"; then : 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15042$as_echo "yes" >&6; } 15043else 15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15045$as_echo "no" >&6; } 15046 15047$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 15048 15049 case " $LIBOBJS " in 15050 *" memcmp.$ac_objext "* ) ;; 15051 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 15052 ;; 15053esac 15054 15055 15056fi 15057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15058 conftest.$ac_objext conftest.beam conftest.$ac_ext 15059fi 15060 15061 15062# The cast to long int works around a bug in the HP C Compiler 15063# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15064# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15065# This bug is HP SR number 8606223364. 15066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 15067$as_echo_n "checking size of time_t... " >&6; } 15068if ${ac_cv_sizeof_time_t+:} false; then : 15069 $as_echo_n "(cached) " >&6 15070else 15071 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 15072$ac_includes_default 15073#ifdef TIME_WITH_SYS_TIME 15074# include <sys/time.h> 15075# include <time.h> 15076#else 15077# ifdef HAVE_SYS_TIME_H 15078# include <sys/time.h> 15079# else 15080# include <time.h> 15081# endif 15082#endif 15083 15084"; then : 15085 15086else 15087 if test "$ac_cv_type_time_t" = yes; then 15088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15090as_fn_error 77 "cannot compute sizeof (time_t) 15091See \`config.log' for more details" "$LINENO" 5; } 15092 else 15093 ac_cv_sizeof_time_t=0 15094 fi 15095fi 15096 15097fi 15098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 15099$as_echo "$ac_cv_sizeof_time_t" >&6; } 15100 15101 15102 15103cat >>confdefs.h <<_ACEOF 15104#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 15105_ACEOF 15106 15107 15108# The cast to long int works around a bug in the HP C Compiler 15109# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15110# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15111# This bug is HP SR number 8606223364. 15112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 15113$as_echo_n "checking size of size_t... " >&6; } 15114if ${ac_cv_sizeof_size_t+:} false; then : 15115 $as_echo_n "(cached) " >&6 15116else 15117 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 15118 15119else 15120 if test "$ac_cv_type_size_t" = yes; then 15121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15123as_fn_error 77 "cannot compute sizeof (size_t) 15124See \`config.log' for more details" "$LINENO" 5; } 15125 else 15126 ac_cv_sizeof_size_t=0 15127 fi 15128fi 15129 15130fi 15131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 15132$as_echo "$ac_cv_sizeof_size_t" >&6; } 15133 15134 15135 15136cat >>confdefs.h <<_ACEOF 15137#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 15138_ACEOF 15139 15140 15141 15142# add option to disable the evil rpath 15143 15144# Check whether --enable-rpath was given. 15145if test "${enable_rpath+set}" = set; then : 15146 enableval=$enable_rpath; enable_rpath=$enableval 15147else 15148 enable_rpath=yes 15149fi 15150 15151if test "x$enable_rpath" = xno; then 15152 ac_config_commands="$ac_config_commands disable-rpath" 15153 15154fi 15155 15156 15157 15158# check to see if libraries are needed for these functions. 15159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 15160$as_echo_n "checking for library containing inet_pton... " >&6; } 15161if ${ac_cv_search_inet_pton+:} false; then : 15162 $as_echo_n "(cached) " >&6 15163else 15164 ac_func_search_save_LIBS=$LIBS 15165cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15166/* end confdefs.h. */ 15167 15168/* Override any GCC internal prototype to avoid an error. 15169 Use char because int might match the return type of a GCC 15170 builtin and then its argument prototype would still apply. */ 15171#ifdef __cplusplus 15172extern "C" 15173#endif 15174char inet_pton (); 15175int 15176main () 15177{ 15178return inet_pton (); 15179 ; 15180 return 0; 15181} 15182_ACEOF 15183for ac_lib in '' nsl; do 15184 if test -z "$ac_lib"; then 15185 ac_res="none required" 15186 else 15187 ac_res=-l$ac_lib 15188 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15189 fi 15190 if ac_fn_c_try_link "$LINENO"; then : 15191 ac_cv_search_inet_pton=$ac_res 15192fi 15193rm -f core conftest.err conftest.$ac_objext \ 15194 conftest$ac_exeext 15195 if ${ac_cv_search_inet_pton+:} false; then : 15196 break 15197fi 15198done 15199if ${ac_cv_search_inet_pton+:} false; then : 15200 15201else 15202 ac_cv_search_inet_pton=no 15203fi 15204rm conftest.$ac_ext 15205LIBS=$ac_func_search_save_LIBS 15206fi 15207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 15208$as_echo "$ac_cv_search_inet_pton" >&6; } 15209ac_res=$ac_cv_search_inet_pton 15210if test "$ac_res" != no; then : 15211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15212 15213fi 15214 15215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 15216$as_echo_n "checking for library containing socket... " >&6; } 15217if ${ac_cv_search_socket+:} false; then : 15218 $as_echo_n "(cached) " >&6 15219else 15220 ac_func_search_save_LIBS=$LIBS 15221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15222/* end confdefs.h. */ 15223 15224/* Override any GCC internal prototype to avoid an error. 15225 Use char because int might match the return type of a GCC 15226 builtin and then its argument prototype would still apply. */ 15227#ifdef __cplusplus 15228extern "C" 15229#endif 15230char socket (); 15231int 15232main () 15233{ 15234return socket (); 15235 ; 15236 return 0; 15237} 15238_ACEOF 15239for ac_lib in '' socket; do 15240 if test -z "$ac_lib"; then 15241 ac_res="none required" 15242 else 15243 ac_res=-l$ac_lib 15244 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15245 fi 15246 if ac_fn_c_try_link "$LINENO"; then : 15247 ac_cv_search_socket=$ac_res 15248fi 15249rm -f core conftest.err conftest.$ac_objext \ 15250 conftest$ac_exeext 15251 if ${ac_cv_search_socket+:} false; then : 15252 break 15253fi 15254done 15255if ${ac_cv_search_socket+:} false; then : 15256 15257else 15258 ac_cv_search_socket=no 15259fi 15260rm conftest.$ac_ext 15261LIBS=$ac_func_search_save_LIBS 15262fi 15263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 15264$as_echo "$ac_cv_search_socket" >&6; } 15265ac_res=$ac_cv_search_socket 15266if test "$ac_res" != no; then : 15267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15268 15269fi 15270 15271 15272# check wether strptime also works 15273 15274# check some functions of the OS before linking libs (while still runnable). 15275for ac_header in unistd.h 15276do : 15277 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 15278if test "x$ac_cv_header_unistd_h" = xyes; then : 15279 cat >>confdefs.h <<_ACEOF 15280#define HAVE_UNISTD_H 1 15281_ACEOF 15282 15283fi 15284 15285done 15286 15287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 15288$as_echo_n "checking for working chown... " >&6; } 15289if ${ac_cv_func_chown_works+:} false; then : 15290 $as_echo_n "(cached) " >&6 15291else 15292 if test "$cross_compiling" = yes; then : 15293 ac_cv_func_chown_works=no 15294else 15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15296/* end confdefs.h. */ 15297$ac_includes_default 15298#include <fcntl.h> 15299 15300int 15301main () 15302{ 15303 char *f = "conftest.chown"; 15304 struct stat before, after; 15305 15306 if (creat (f, 0600) < 0) 15307 return 1; 15308 if (stat (f, &before) < 0) 15309 return 1; 15310 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 15311 return 1; 15312 if (stat (f, &after) < 0) 15313 return 1; 15314 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 15315 15316 ; 15317 return 0; 15318} 15319_ACEOF 15320if ac_fn_c_try_run "$LINENO"; then : 15321 ac_cv_func_chown_works=yes 15322else 15323 ac_cv_func_chown_works=no 15324fi 15325rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15326 conftest.$ac_objext conftest.beam conftest.$ac_ext 15327fi 15328 15329rm -f conftest.chown 15330 15331fi 15332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 15333$as_echo "$ac_cv_func_chown_works" >&6; } 15334if test $ac_cv_func_chown_works = yes; then 15335 15336$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 15337 15338fi 15339 15340for ac_header in vfork.h 15341do : 15342 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 15343if test "x$ac_cv_header_vfork_h" = xyes; then : 15344 cat >>confdefs.h <<_ACEOF 15345#define HAVE_VFORK_H 1 15346_ACEOF 15347 15348fi 15349 15350done 15351 15352for ac_func in fork vfork 15353do : 15354 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15355ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15356if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15357 cat >>confdefs.h <<_ACEOF 15358#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15359_ACEOF 15360 15361fi 15362done 15363 15364if test "x$ac_cv_func_fork" = xyes; then 15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 15366$as_echo_n "checking for working fork... " >&6; } 15367if ${ac_cv_func_fork_works+:} false; then : 15368 $as_echo_n "(cached) " >&6 15369else 15370 if test "$cross_compiling" = yes; then : 15371 ac_cv_func_fork_works=cross 15372else 15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15374/* end confdefs.h. */ 15375$ac_includes_default 15376int 15377main () 15378{ 15379 15380 /* By Ruediger Kuhlmann. */ 15381 return fork () < 0; 15382 15383 ; 15384 return 0; 15385} 15386_ACEOF 15387if ac_fn_c_try_run "$LINENO"; then : 15388 ac_cv_func_fork_works=yes 15389else 15390 ac_cv_func_fork_works=no 15391fi 15392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15393 conftest.$ac_objext conftest.beam conftest.$ac_ext 15394fi 15395 15396fi 15397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 15398$as_echo "$ac_cv_func_fork_works" >&6; } 15399 15400else 15401 ac_cv_func_fork_works=$ac_cv_func_fork 15402fi 15403if test "x$ac_cv_func_fork_works" = xcross; then 15404 case $host in 15405 *-*-amigaos* | *-*-msdosdjgpp*) 15406 # Override, as these systems have only a dummy fork() stub 15407 ac_cv_func_fork_works=no 15408 ;; 15409 *) 15410 ac_cv_func_fork_works=yes 15411 ;; 15412 esac 15413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 15414$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 15415fi 15416ac_cv_func_vfork_works=$ac_cv_func_vfork 15417if test "x$ac_cv_func_vfork" = xyes; then 15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 15419$as_echo_n "checking for working vfork... " >&6; } 15420if ${ac_cv_func_vfork_works+:} false; then : 15421 $as_echo_n "(cached) " >&6 15422else 15423 if test "$cross_compiling" = yes; then : 15424 ac_cv_func_vfork_works=cross 15425else 15426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15427/* end confdefs.h. */ 15428/* Thanks to Paul Eggert for this test. */ 15429$ac_includes_default 15430#include <sys/wait.h> 15431#ifdef HAVE_VFORK_H 15432# include <vfork.h> 15433#endif 15434/* On some sparc systems, changes by the child to local and incoming 15435 argument registers are propagated back to the parent. The compiler 15436 is told about this with #include <vfork.h>, but some compilers 15437 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 15438 static variable whose address is put into a register that is 15439 clobbered by the vfork. */ 15440static void 15441#ifdef __cplusplus 15442sparc_address_test (int arg) 15443# else 15444sparc_address_test (arg) int arg; 15445#endif 15446{ 15447 static pid_t child; 15448 if (!child) { 15449 child = vfork (); 15450 if (child < 0) { 15451 perror ("vfork"); 15452 _exit(2); 15453 } 15454 if (!child) { 15455 arg = getpid(); 15456 write(-1, "", 0); 15457 _exit (arg); 15458 } 15459 } 15460} 15461 15462int 15463main () 15464{ 15465 pid_t parent = getpid (); 15466 pid_t child; 15467 15468 sparc_address_test (0); 15469 15470 child = vfork (); 15471 15472 if (child == 0) { 15473 /* Here is another test for sparc vfork register problems. This 15474 test uses lots of local variables, at least as many local 15475 variables as main has allocated so far including compiler 15476 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 15477 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 15478 reuse the register of parent for one of the local variables, 15479 since it will think that parent can't possibly be used any more 15480 in this routine. Assigning to the local variable will thus 15481 munge parent in the parent process. */ 15482 pid_t 15483 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 15484 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 15485 /* Convince the compiler that p..p7 are live; otherwise, it might 15486 use the same hardware register for all 8 local variables. */ 15487 if (p != p1 || p != p2 || p != p3 || p != p4 15488 || p != p5 || p != p6 || p != p7) 15489 _exit(1); 15490 15491 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 15492 from child file descriptors. If the child closes a descriptor 15493 before it execs or exits, this munges the parent's descriptor 15494 as well. Test for this by closing stdout in the child. */ 15495 _exit(close(fileno(stdout)) != 0); 15496 } else { 15497 int status; 15498 struct stat st; 15499 15500 while (wait(&status) != child) 15501 ; 15502 return ( 15503 /* Was there some problem with vforking? */ 15504 child < 0 15505 15506 /* Did the child fail? (This shouldn't happen.) */ 15507 || status 15508 15509 /* Did the vfork/compiler bug occur? */ 15510 || parent != getpid() 15511 15512 /* Did the file descriptor bug occur? */ 15513 || fstat(fileno(stdout), &st) != 0 15514 ); 15515 } 15516} 15517_ACEOF 15518if ac_fn_c_try_run "$LINENO"; then : 15519 ac_cv_func_vfork_works=yes 15520else 15521 ac_cv_func_vfork_works=no 15522fi 15523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15524 conftest.$ac_objext conftest.beam conftest.$ac_ext 15525fi 15526 15527fi 15528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 15529$as_echo "$ac_cv_func_vfork_works" >&6; } 15530 15531fi; 15532if test "x$ac_cv_func_fork_works" = xcross; then 15533 ac_cv_func_vfork_works=$ac_cv_func_vfork 15534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 15535$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 15536fi 15537 15538if test "x$ac_cv_func_vfork_works" = xyes; then 15539 15540$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 15541 15542else 15543 15544$as_echo "#define vfork fork" >>confdefs.h 15545 15546fi 15547if test "x$ac_cv_func_fork_works" = xyes; then 15548 15549$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 15550 15551fi 15552 15553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 15554$as_echo_n "checking return type of signal handlers... " >&6; } 15555if ${ac_cv_type_signal+:} false; then : 15556 $as_echo_n "(cached) " >&6 15557else 15558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15559/* end confdefs.h. */ 15560#include <sys/types.h> 15561#include <signal.h> 15562 15563int 15564main () 15565{ 15566return *(signal (0, 0)) (0) == 1; 15567 ; 15568 return 0; 15569} 15570_ACEOF 15571if ac_fn_c_try_compile "$LINENO"; then : 15572 ac_cv_type_signal=int 15573else 15574 ac_cv_type_signal=void 15575fi 15576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15577fi 15578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 15579$as_echo "$ac_cv_type_signal" >&6; } 15580 15581cat >>confdefs.h <<_ACEOF 15582#define RETSIGTYPE $ac_cv_type_signal 15583_ACEOF 15584 15585 15586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 15587$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 15588if ${ac_cv_sys_largefile_source+:} false; then : 15589 $as_echo_n "(cached) " >&6 15590else 15591 while :; do 15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15593/* end confdefs.h. */ 15594#include <sys/types.h> /* for off_t */ 15595 #include <stdio.h> 15596int 15597main () 15598{ 15599int (*fp) (FILE *, off_t, int) = fseeko; 15600 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15601 ; 15602 return 0; 15603} 15604_ACEOF 15605if ac_fn_c_try_link "$LINENO"; then : 15606 ac_cv_sys_largefile_source=no; break 15607fi 15608rm -f core conftest.err conftest.$ac_objext \ 15609 conftest$ac_exeext conftest.$ac_ext 15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15611/* end confdefs.h. */ 15612#define _LARGEFILE_SOURCE 1 15613#include <sys/types.h> /* for off_t */ 15614 #include <stdio.h> 15615int 15616main () 15617{ 15618int (*fp) (FILE *, off_t, int) = fseeko; 15619 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15620 ; 15621 return 0; 15622} 15623_ACEOF 15624if ac_fn_c_try_link "$LINENO"; then : 15625 ac_cv_sys_largefile_source=1; break 15626fi 15627rm -f core conftest.err conftest.$ac_objext \ 15628 conftest$ac_exeext conftest.$ac_ext 15629 ac_cv_sys_largefile_source=unknown 15630 break 15631done 15632fi 15633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 15634$as_echo "$ac_cv_sys_largefile_source" >&6; } 15635case $ac_cv_sys_largefile_source in #( 15636 no | unknown) ;; 15637 *) 15638cat >>confdefs.h <<_ACEOF 15639#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 15640_ACEOF 15641;; 15642esac 15643rm -rf conftest* 15644 15645# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 15646# in glibc 2.1.3, but that breaks too many other things. 15647# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 15648if test $ac_cv_sys_largefile_source != unknown; then 15649 15650$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 15651 15652fi 15653 15654 15655# Check whether --enable-largefile was given. 15656if test "${enable_largefile+set}" = set; then : 15657 enableval=$enable_largefile; 15658fi 15659 15660if test "$enable_largefile" != no; then 15661 15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 15663$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 15664if ${ac_cv_sys_largefile_CC+:} false; then : 15665 $as_echo_n "(cached) " >&6 15666else 15667 ac_cv_sys_largefile_CC=no 15668 if test "$GCC" != yes; then 15669 ac_save_CC=$CC 15670 while :; do 15671 # IRIX 6.2 and later do not support large files by default, 15672 # so use the C compiler's -n32 option if that helps. 15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15674/* end confdefs.h. */ 15675#include <sys/types.h> 15676 /* Check that off_t can represent 2**63 - 1 correctly. 15677 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15678 since some C++ compilers masquerading as C compilers 15679 incorrectly reject 9223372036854775807. */ 15680#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15681 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15682 && LARGE_OFF_T % 2147483647 == 1) 15683 ? 1 : -1]; 15684int 15685main () 15686{ 15687 15688 ; 15689 return 0; 15690} 15691_ACEOF 15692 if ac_fn_c_try_compile "$LINENO"; then : 15693 break 15694fi 15695rm -f core conftest.err conftest.$ac_objext 15696 CC="$CC -n32" 15697 if ac_fn_c_try_compile "$LINENO"; then : 15698 ac_cv_sys_largefile_CC=' -n32'; break 15699fi 15700rm -f core conftest.err conftest.$ac_objext 15701 break 15702 done 15703 CC=$ac_save_CC 15704 rm -f conftest.$ac_ext 15705 fi 15706fi 15707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 15708$as_echo "$ac_cv_sys_largefile_CC" >&6; } 15709 if test "$ac_cv_sys_largefile_CC" != no; then 15710 CC=$CC$ac_cv_sys_largefile_CC 15711 fi 15712 15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 15714$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 15715if ${ac_cv_sys_file_offset_bits+:} false; then : 15716 $as_echo_n "(cached) " >&6 15717else 15718 while :; do 15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15720/* end confdefs.h. */ 15721#include <sys/types.h> 15722 /* Check that off_t can represent 2**63 - 1 correctly. 15723 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15724 since some C++ compilers masquerading as C compilers 15725 incorrectly reject 9223372036854775807. */ 15726#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15727 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15728 && LARGE_OFF_T % 2147483647 == 1) 15729 ? 1 : -1]; 15730int 15731main () 15732{ 15733 15734 ; 15735 return 0; 15736} 15737_ACEOF 15738if ac_fn_c_try_compile "$LINENO"; then : 15739 ac_cv_sys_file_offset_bits=no; break 15740fi 15741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15743/* end confdefs.h. */ 15744#define _FILE_OFFSET_BITS 64 15745#include <sys/types.h> 15746 /* Check that off_t can represent 2**63 - 1 correctly. 15747 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15748 since some C++ compilers masquerading as C compilers 15749 incorrectly reject 9223372036854775807. */ 15750#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15752 && LARGE_OFF_T % 2147483647 == 1) 15753 ? 1 : -1]; 15754int 15755main () 15756{ 15757 15758 ; 15759 return 0; 15760} 15761_ACEOF 15762if ac_fn_c_try_compile "$LINENO"; then : 15763 ac_cv_sys_file_offset_bits=64; break 15764fi 15765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15766 ac_cv_sys_file_offset_bits=unknown 15767 break 15768done 15769fi 15770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 15771$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 15772case $ac_cv_sys_file_offset_bits in #( 15773 no | unknown) ;; 15774 *) 15775cat >>confdefs.h <<_ACEOF 15776#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 15777_ACEOF 15778;; 15779esac 15780rm -rf conftest* 15781 if test $ac_cv_sys_file_offset_bits = unknown; then 15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 15783$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 15784if ${ac_cv_sys_large_files+:} false; then : 15785 $as_echo_n "(cached) " >&6 15786else 15787 while :; do 15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15789/* end confdefs.h. */ 15790#include <sys/types.h> 15791 /* Check that off_t can represent 2**63 - 1 correctly. 15792 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15793 since some C++ compilers masquerading as C compilers 15794 incorrectly reject 9223372036854775807. */ 15795#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15797 && LARGE_OFF_T % 2147483647 == 1) 15798 ? 1 : -1]; 15799int 15800main () 15801{ 15802 15803 ; 15804 return 0; 15805} 15806_ACEOF 15807if ac_fn_c_try_compile "$LINENO"; then : 15808 ac_cv_sys_large_files=no; break 15809fi 15810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15812/* end confdefs.h. */ 15813#define _LARGE_FILES 1 15814#include <sys/types.h> 15815 /* Check that off_t can represent 2**63 - 1 correctly. 15816 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15817 since some C++ compilers masquerading as C compilers 15818 incorrectly reject 9223372036854775807. */ 15819#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15821 && LARGE_OFF_T % 2147483647 == 1) 15822 ? 1 : -1]; 15823int 15824main () 15825{ 15826 15827 ; 15828 return 0; 15829} 15830_ACEOF 15831if ac_fn_c_try_compile "$LINENO"; then : 15832 ac_cv_sys_large_files=1; break 15833fi 15834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15835 ac_cv_sys_large_files=unknown 15836 break 15837done 15838fi 15839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 15840$as_echo "$ac_cv_sys_large_files" >&6; } 15841case $ac_cv_sys_large_files in #( 15842 no | unknown) ;; 15843 *) 15844cat >>confdefs.h <<_ACEOF 15845#define _LARGE_FILES $ac_cv_sys_large_files 15846_ACEOF 15847;; 15848esac 15849rm -rf conftest* 15850 fi 15851 15852 15853fi 15854 15855 15856 15857 15858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5 15859$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; } 15860cache=_D_LARGEFILE_SOURCE_1 15861if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 15862 $as_echo_n "(cached) " >&6 15863else 15864 15865echo ' 15866#include <stdio.h> 15867int test() { 15868 int a = fseeko(stdin, 0, 0); 15869 return a; 15870} 15871' > conftest.c 15872echo 'void f(){}' >>conftest.c 15873if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 15874eval "cv_prog_cc_flag_needed_$cache=no" 15875else 15876 15877if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then 15878eval "cv_prog_cc_flag_needed_$cache=yes" 15879else 15880eval "cv_prog_cc_flag_needed_$cache=fail" 15881#echo 'Test with flag fails too!' 15882#cat conftest.c 15883#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 15884#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 15885#exit 1 15886fi 15887 15888fi 15889rm -f conftest conftest.c conftest.o 15890 15891fi 15892 15893if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 15894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15895$as_echo "yes" >&6; } 15896: 15897CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1" 15898else 15899if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 15900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15901$as_echo "no" >&6; } 15902#echo 'Test with flag is no!' 15903#cat conftest.c 15904#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 15905#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 15906#exit 1 15907: 15908 15909else 15910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 15911$as_echo "failed" >&6; } 15912: 15913 15914fi 15915fi 15916 15917 15918 15919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 15920$as_echo_n "checking if nonblocking sockets work... " >&6; } 15921if echo $target | grep mingw32 >/dev/null; then 15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 15923$as_echo "no (windows)" >&6; } 15924 15925$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 15926 15927else 15928if test "$cross_compiling" = yes; then : 15929 15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 15931$as_echo "crosscompile(yes)" >&6; } 15932 15933else 15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15935/* end confdefs.h. */ 15936 15937 15938#include <stdio.h> 15939#include <string.h> 15940#include <stdlib.h> 15941#include <fcntl.h> 15942#include <errno.h> 15943#ifdef HAVE_SYS_TYPES_H 15944#include <sys/types.h> 15945#endif 15946#ifdef HAVE_SYS_SOCKET_H 15947#include <sys/socket.h> 15948#endif 15949#ifdef HAVE_NETINET_IN_H 15950#include <netinet/in.h> 15951#endif 15952#ifdef HAVE_ARPA_INET_H 15953#include <arpa/inet.h> 15954#endif 15955#ifdef HAVE_UNISTD_H 15956#include <unistd.h> 15957#endif 15958#ifdef HAVE_TIME_H 15959#include <time.h> 15960#endif 15961 15962int main(void) 15963{ 15964 int port; 15965 int sfd, cfd; 15966 int num = 10; 15967 int i, p; 15968 struct sockaddr_in a; 15969 /* test if select and nonblocking reads work well together */ 15970 /* open port. 15971 fork child to send 10 messages. 15972 select to read. 15973 then try to nonblocking read the 10 messages 15974 then, nonblocking read must give EAGAIN 15975 */ 15976 15977 port = 12345 + (time(0)%32); 15978 sfd = socket(PF_INET, SOCK_DGRAM, 0); 15979 if(sfd == -1) { 15980 perror("socket"); 15981 return 1; 15982 } 15983 memset(&a, 0, sizeof(a)); 15984 a.sin_family = AF_INET; 15985 a.sin_port = htons(port); 15986 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 15987 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 15988 perror("bind"); 15989 return 1; 15990 } 15991 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 15992 perror("fcntl"); 15993 return 1; 15994 } 15995 15996 cfd = socket(PF_INET, SOCK_DGRAM, 0); 15997 if(cfd == -1) { 15998 perror("client socket"); 15999 return 1; 16000 } 16001 a.sin_port = 0; 16002 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 16003 perror("client bind"); 16004 return 1; 16005 } 16006 a.sin_port = htons(port); 16007 16008 /* no handler, causes exit in 10 seconds */ 16009 alarm(10); 16010 16011 /* send and receive on the socket */ 16012 if((p=fork()) == 0) { 16013 for(i=0; i<num; i++) { 16014 if(sendto(cfd, &i, sizeof(i), 0, 16015 (struct sockaddr*)&a, sizeof(a)) < 0) { 16016 perror("sendto"); 16017 return 1; 16018 } 16019 } 16020 } else { 16021 /* parent */ 16022 fd_set rset; 16023 int x; 16024 if(p == -1) { 16025 perror("fork"); 16026 return 1; 16027 } 16028 FD_ZERO(&rset); 16029 FD_SET(sfd, &rset); 16030 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 16031 perror("select"); 16032 return 1; 16033 } 16034 i = 0; 16035 while(i < num) { 16036 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 16037 if(errno == EAGAIN) 16038 continue; 16039 perror("recv"); 16040 return 1; 16041 } 16042 i++; 16043 } 16044 /* now we want to get EAGAIN: nonblocking goodness */ 16045 errno = 0; 16046 recv(sfd, &x, sizeof(x), 0); 16047 if(errno != EAGAIN) { 16048 perror("trying to recv again"); 16049 return 1; 16050 } 16051 /* EAGAIN encountered */ 16052 } 16053 16054 close(sfd); 16055 close(cfd); 16056 return 0; 16057} 16058 16059_ACEOF 16060if ac_fn_c_try_run "$LINENO"; then : 16061 16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16063$as_echo "yes" >&6; } 16064 16065else 16066 16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16068$as_echo "no" >&6; } 16069 16070$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 16071 16072 16073fi 16074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16075 conftest.$ac_objext conftest.beam conftest.$ac_ext 16076fi 16077 16078fi 16079 16080 16081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 16082$as_echo_n "checking whether mkdir has one arg... " >&6; } 16083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16084/* end confdefs.h. */ 16085 16086#include <stdio.h> 16087#include <unistd.h> 16088#ifdef HAVE_WINSOCK2_H 16089#include <winsock2.h> 16090#endif 16091#ifdef HAVE_SYS_STAT_H 16092#include <sys/stat.h> 16093#endif 16094 16095int 16096main () 16097{ 16098 16099 (void)mkdir("directory"); 16100 16101 ; 16102 return 0; 16103} 16104_ACEOF 16105if ac_fn_c_try_compile "$LINENO"; then : 16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16107$as_echo "yes" >&6; } 16108 16109$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 16110 16111 16112else 16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16114$as_echo "no" >&6; } 16115 16116fi 16117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16118 16119for ac_func in strptime 16120do : 16121 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 16122if test "x$ac_cv_func_strptime" = xyes; then : 16123 cat >>confdefs.h <<_ACEOF 16124#define HAVE_STRPTIME 1 16125_ACEOF 16126 16127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 16128$as_echo_n "checking whether strptime works... " >&6; } 16129if test c${cross_compiling} = cno; then 16130if test "$cross_compiling" = yes; then : 16131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16133as_fn_error $? "cannot run test program while cross compiling 16134See \`config.log' for more details" "$LINENO" 5; } 16135else 16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16137/* end confdefs.h. */ 16138 16139#define _XOPEN_SOURCE 600 16140#include <time.h> 16141int main(void) { struct tm tm; char *res; 16142res = 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); 16143if (!res) return 2; 16144res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 16145if (!res) return 1; return 0; } 16146 16147_ACEOF 16148if ac_fn_c_try_run "$LINENO"; then : 16149 eval "ac_cv_c_strptime_works=yes" 16150else 16151 eval "ac_cv_c_strptime_works=no" 16152fi 16153rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16154 conftest.$ac_objext conftest.beam conftest.$ac_ext 16155fi 16156 16157else 16158eval "ac_cv_c_strptime_works=maybe" 16159fi 16160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 16161$as_echo "$ac_cv_c_strptime_works" >&6; } 16162if test $ac_cv_c_strptime_works = no; then 16163case " $LIBOBJS " in 16164 *" strptime.$ac_objext "* ) ;; 16165 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 16166 ;; 16167esac 16168 16169else 16170 16171cat >>confdefs.h <<_ACEOF 16172#define STRPTIME_WORKS 1 16173_ACEOF 16174 16175fi 16176 16177else 16178 case " $LIBOBJS " in 16179 *" strptime.$ac_objext "* ) ;; 16180 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 16181 ;; 16182esac 16183 16184fi 16185done 16186 16187 16188# check if we can use SO_REUSEPORT 16189if echo "$host" | $GREP -i -e linux -e dragonfly >/dev/null; then 16190 16191$as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h 16192 16193else 16194 16195$as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h 16196 16197fi 16198 16199# Include systemd.m4 - begin 16200# macros for configuring systemd 16201# Copyright 2015, Sami Kerola, CloudFlare. 16202# BSD licensed. 16203# Check whether --enable-systemd was given. 16204if test "${enable_systemd+set}" = set; then : 16205 enableval=$enable_systemd; 16206else 16207 enable_systemd=no 16208fi 16209 16210have_systemd=no 16211if test "x$enable_systemd" != xno; then : 16212 16213 16214 16215pkg_failed=no 16216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 16217$as_echo_n "checking for SYSTEMD... " >&6; } 16218 16219if test -n "$SYSTEMD_CFLAGS"; then 16220 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" 16221 elif test -n "$PKG_CONFIG"; then 16222 if test -n "$PKG_CONFIG" && \ 16223 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 16224 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 16225 ac_status=$? 16226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16227 test $ac_status = 0; }; then 16228 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 16229 test "x$?" != "x0" && pkg_failed=yes 16230else 16231 pkg_failed=yes 16232fi 16233 else 16234 pkg_failed=untried 16235fi 16236if test -n "$SYSTEMD_LIBS"; then 16237 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" 16238 elif test -n "$PKG_CONFIG"; then 16239 if test -n "$PKG_CONFIG" && \ 16240 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 16241 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 16242 ac_status=$? 16243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16244 test $ac_status = 0; }; then 16245 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 16246 test "x$?" != "x0" && pkg_failed=yes 16247else 16248 pkg_failed=yes 16249fi 16250 else 16251 pkg_failed=untried 16252fi 16253 16254 16255 16256if test $pkg_failed = yes; then 16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16258$as_echo "no" >&6; } 16259 16260if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16261 _pkg_short_errors_supported=yes 16262else 16263 _pkg_short_errors_supported=no 16264fi 16265 if test $_pkg_short_errors_supported = yes; then 16266 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 16267 else 16268 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 16269 fi 16270 # Put the nasty error message in config.log where it belongs 16271 echo "$SYSTEMD_PKG_ERRORS" >&5 16272 16273 have_systemd=no 16274elif test $pkg_failed = untried; then 16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16276$as_echo "no" >&6; } 16277 have_systemd=no 16278else 16279 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS 16280 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS 16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16282$as_echo "yes" >&6; } 16283 have_systemd=yes 16284fi 16285 if test "x$have_systemd" != "xyes"; then : 16286 16287 16288pkg_failed=no 16289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 16290$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 16291 16292if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 16293 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 16294 elif test -n "$PKG_CONFIG"; then 16295 if test -n "$PKG_CONFIG" && \ 16296 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 16297 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 16298 ac_status=$? 16299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16300 test $ac_status = 0; }; then 16301 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 16302 test "x$?" != "x0" && pkg_failed=yes 16303else 16304 pkg_failed=yes 16305fi 16306 else 16307 pkg_failed=untried 16308fi 16309if test -n "$SYSTEMD_DAEMON_LIBS"; then 16310 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 16311 elif test -n "$PKG_CONFIG"; then 16312 if test -n "$PKG_CONFIG" && \ 16313 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 16314 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 16315 ac_status=$? 16316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16317 test $ac_status = 0; }; then 16318 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 16319 test "x$?" != "x0" && pkg_failed=yes 16320else 16321 pkg_failed=yes 16322fi 16323 else 16324 pkg_failed=untried 16325fi 16326 16327 16328 16329if test $pkg_failed = yes; then 16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16331$as_echo "no" >&6; } 16332 16333if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16334 _pkg_short_errors_supported=yes 16335else 16336 _pkg_short_errors_supported=no 16337fi 16338 if test $_pkg_short_errors_supported = yes; then 16339 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 16340 else 16341 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 16342 fi 16343 # Put the nasty error message in config.log where it belongs 16344 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 16345 16346 have_systemd_daemon=no 16347elif test $pkg_failed = untried; then 16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16349$as_echo "no" >&6; } 16350 have_systemd_daemon=no 16351else 16352 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 16353 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16355$as_echo "yes" >&6; } 16356 have_systemd_daemon=yes 16357fi 16358 if test "x$have_systemd_daemon" = "xyes"; then : 16359 have_systemd=yes 16360fi 16361 16362fi 16363 case $enable_systemd:$have_systemd in #( 16364 yes:no) : 16365 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #( 16366 *:yes) : 16367 16368$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h 16369 16370 LIBS="$LIBS $SYSTEMD_LIBS" 16371 16372 ;; #( 16373 *) : 16374 ;; 16375esac 16376 16377 16378fi 16379 if test "x$have_systemd" = xyes; then 16380 USE_SYSTEMD_TRUE= 16381 USE_SYSTEMD_FALSE='#' 16382else 16383 USE_SYSTEMD_TRUE='#' 16384 USE_SYSTEMD_FALSE= 16385fi 16386 16387 16388# Include systemd.m4 - end 16389 16390# set memory allocation checking if requested 16391# Check whether --enable-alloc-checks was given. 16392if test "${enable_alloc_checks+set}" = set; then : 16393 enableval=$enable_alloc_checks; 16394fi 16395 16396# Check whether --enable-alloc-lite was given. 16397if test "${enable_alloc_lite+set}" = set; then : 16398 enableval=$enable_alloc_lite; 16399fi 16400 16401# Check whether --enable-alloc-nonregional was given. 16402if test "${enable_alloc_nonregional+set}" = set; then : 16403 enableval=$enable_alloc_nonregional; 16404fi 16405 16406if test x_$enable_alloc_nonregional = x_yes; then 16407 16408$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h 16409 16410fi 16411if test x_$enable_alloc_checks = x_yes; then 16412 16413$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h 16414 16415 SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo" 16416 16417 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo" 16418 16419else 16420 if test x_$enable_alloc_lite = x_yes; then 16421 16422$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h 16423 16424 else 16425 16426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 16427$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 16428 if test "$cross_compiling" = yes; then : 16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5 16430$as_echo "no (crosscompile)" >&6; } 16431 case " $LIBOBJS " in 16432 *" malloc.$ac_objext "* ) ;; 16433 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 16434 ;; 16435esac 16436 16437 16438cat >>confdefs.h <<_ACEOF 16439#define malloc rpl_malloc_unbound 16440_ACEOF 16441 16442else 16443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16444/* end confdefs.h. */ 16445#if defined STDC_HEADERS || defined HAVE_STDLIB_H 16446#include <stdlib.h> 16447#else 16448char *malloc (); 16449#endif 16450 16451int 16452main () 16453{ 16454 if(malloc(0) != 0) return 1; 16455 ; 16456 return 0; 16457} 16458 16459_ACEOF 16460if ac_fn_c_try_run "$LINENO"; then : 16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16462$as_echo "no" >&6; } 16463 case " $LIBOBJS " in 16464 *" malloc.$ac_objext "* ) ;; 16465 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 16466 ;; 16467esac 16468 16469 16470cat >>confdefs.h <<_ACEOF 16471#define malloc rpl_malloc_unbound 16472_ACEOF 16473 16474else 16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16476$as_echo "yes" >&6; } 16477 16478$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 16479 16480fi 16481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16482 conftest.$ac_objext conftest.beam conftest.$ac_ext 16483fi 16484 16485 16486 fi 16487fi 16488 16489# check windows threads (we use them, not pthreads, on windows). 16490if test "$on_mingw" = "yes"; then 16491# check windows threads 16492 for ac_header in windows.h 16493do : 16494 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 16495" 16496if test "x$ac_cv_header_windows_h" = xyes; then : 16497 cat >>confdefs.h <<_ACEOF 16498#define HAVE_WINDOWS_H 1 16499_ACEOF 16500 16501fi 16502 16503done 16504 16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5 16506$as_echo_n "checking for CreateThread... " >&6; } 16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16508/* end confdefs.h. */ 16509 16510#ifdef HAVE_WINDOWS_H 16511#include <windows.h> 16512#endif 16513 16514int 16515main () 16516{ 16517 16518 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 16519 16520 ; 16521 return 0; 16522} 16523_ACEOF 16524if ac_fn_c_try_compile "$LINENO"; then : 16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16526$as_echo "yes" >&6; } 16527 16528$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h 16529 16530 16531else 16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16533$as_echo "no" >&6; } 16534 16535fi 16536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16537 16538else 16539# not on mingw, check thread libraries. 16540 16541# check for thread library. 16542# check this first, so that the pthread lib does not get linked in via 16543# libssl or libpython, and thus distorts the tests, and we end up using 16544# the non-threadsafe C libraries. 16545 16546# Check whether --with-pthreads was given. 16547if test "${with_pthreads+set}" = set; then : 16548 withval=$with_pthreads; 16549else 16550 withval="yes" 16551fi 16552 16553ub_have_pthreads=no 16554if test x_$withval != x_no; then 16555 16556 16557ac_ext=c 16558ac_cpp='$CPP $CPPFLAGS' 16559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16561ac_compiler_gnu=$ac_cv_c_compiler_gnu 16562 16563ax_pthread_ok=no 16564 16565# We used to check for pthread.h first, but this fails if pthread.h 16566# requires special compiler flags (e.g. on True64 or Sequent). 16567# It gets checked for in the link test anyway. 16568 16569# First of all, check if the user has set any of the PTHREAD_LIBS, 16570# etcetera environment variables, and if threads linking works using 16571# them: 16572if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 16573 save_CFLAGS="$CFLAGS" 16574 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16575 save_LIBS="$LIBS" 16576 LIBS="$PTHREAD_LIBS $LIBS" 16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 16578$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16580/* end confdefs.h. */ 16581 16582/* Override any GCC internal prototype to avoid an error. 16583 Use char because int might match the return type of a GCC 16584 builtin and then its argument prototype would still apply. */ 16585#ifdef __cplusplus 16586extern "C" 16587#endif 16588char pthread_join (); 16589int 16590main () 16591{ 16592return pthread_join (); 16593 ; 16594 return 0; 16595} 16596_ACEOF 16597if ac_fn_c_try_link "$LINENO"; then : 16598 ax_pthread_ok=yes 16599fi 16600rm -f core conftest.err conftest.$ac_objext \ 16601 conftest$ac_exeext conftest.$ac_ext 16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 16603$as_echo "$ax_pthread_ok" >&6; } 16604 if test x"$ax_pthread_ok" = xno; then 16605 PTHREAD_LIBS="" 16606 PTHREAD_CFLAGS="" 16607 fi 16608 LIBS="$save_LIBS" 16609 CFLAGS="$save_CFLAGS" 16610fi 16611 16612# We must check for the threads library under a number of different 16613# names; the ordering is very important because some systems 16614# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 16615# libraries is broken (non-POSIX). 16616 16617# Create a list of thread flags to try. Items starting with a "-" are 16618# C compiler flags, and other items are library names, except for "none" 16619# which indicates that we try without any flags at all, and "pthread-config" 16620# which is a program returning the flags for the Pth emulation library. 16621 16622ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 16623 16624# The ordering *is* (sometimes) important. Some notes on the 16625# individual items follow: 16626 16627# pthreads: AIX (must check this before -lpthread) 16628# none: in case threads are in libc; should be tried before -Kthread and 16629# other compiler flags to prevent continual compiler warnings 16630# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 16631# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 16632# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 16633# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 16634# -pthreads: Solaris/gcc 16635# -mthreads: Mingw32/gcc, Lynx/gcc 16636# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 16637# doesn't hurt to check since this sometimes defines pthreads too; 16638# also defines -D_REENTRANT) 16639# ... -mt is also the pthreads flag for HP/aCC 16640# pthread: Linux, etcetera 16641# --thread-safe: KAI C++ 16642# pthread-config: use pthread-config program (for GNU Pth library) 16643 16644case ${host_os} in 16645 solaris*) 16646 16647 # On Solaris (at least, for some versions), libc contains stubbed 16648 # (non-functional) versions of the pthreads routines, so link-based 16649 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 16650 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 16651 # a function called by this macro, so we could check for that, but 16652 # who knows whether they'll stub that too in a future libc.) So, 16653 # we'll just look for -pthreads and -lpthread first: 16654 16655 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 16656 ;; 16657 16658 darwin*) 16659 ax_pthread_flags="-pthread $ax_pthread_flags" 16660 ;; 16661esac 16662 16663# Clang doesn't consider unrecognized options an error unless we specify 16664# -Werror. We throw in some extra Clang-specific options to ensure that 16665# this doesn't happen for GCC, which also accepts -Werror. 16666 16667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 16668$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 16669save_CFLAGS="$CFLAGS" 16670ax_pthread_extra_flags="-Werror" 16671CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 16672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16673/* end confdefs.h. */ 16674int foo(void); 16675int 16676main () 16677{ 16678foo() 16679 ; 16680 return 0; 16681} 16682_ACEOF 16683if ac_fn_c_try_compile "$LINENO"; then : 16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16685$as_echo "yes" >&6; } 16686else 16687 ax_pthread_extra_flags= 16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16689$as_echo "no" >&6; } 16690fi 16691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16692CFLAGS="$save_CFLAGS" 16693 16694if test x"$ax_pthread_ok" = xno; then 16695for flag in $ax_pthread_flags; do 16696 16697 case $flag in 16698 none) 16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 16700$as_echo_n "checking whether pthreads work without any flags... " >&6; } 16701 ;; 16702 16703 -*) 16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 16705$as_echo_n "checking whether pthreads work with $flag... " >&6; } 16706 PTHREAD_CFLAGS="$flag" 16707 ;; 16708 16709 pthread-config) 16710 # Extract the first word of "pthread-config", so it can be a program name with args. 16711set dummy pthread-config; ac_word=$2 16712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16713$as_echo_n "checking for $ac_word... " >&6; } 16714if ${ac_cv_prog_ax_pthread_config+:} false; then : 16715 $as_echo_n "(cached) " >&6 16716else 16717 if test -n "$ax_pthread_config"; then 16718 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 16719else 16720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16721for as_dir in $PATH 16722do 16723 IFS=$as_save_IFS 16724 test -z "$as_dir" && as_dir=. 16725 for ac_exec_ext in '' $ac_executable_extensions; do 16726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16727 ac_cv_prog_ax_pthread_config="yes" 16728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16729 break 2 16730 fi 16731done 16732 done 16733IFS=$as_save_IFS 16734 16735 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 16736fi 16737fi 16738ax_pthread_config=$ac_cv_prog_ax_pthread_config 16739if test -n "$ax_pthread_config"; then 16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 16741$as_echo "$ax_pthread_config" >&6; } 16742else 16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16744$as_echo "no" >&6; } 16745fi 16746 16747 16748 if test x"$ax_pthread_config" = xno; then continue; fi 16749 PTHREAD_CFLAGS="`pthread-config --cflags`" 16750 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 16751 ;; 16752 16753 *) 16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 16755$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 16756 PTHREAD_LIBS="-l$flag" 16757 ;; 16758 esac 16759 16760 save_LIBS="$LIBS" 16761 save_CFLAGS="$CFLAGS" 16762 LIBS="$PTHREAD_LIBS $LIBS" 16763 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 16764 16765 # Check for various functions. We must include pthread.h, 16766 # since some functions may be macros. (On the Sequent, we 16767 # need a special flag -Kthread to make this header compile.) 16768 # We check for pthread_join because it is in -lpthread on IRIX 16769 # while pthread_create is in libc. We check for pthread_attr_init 16770 # due to DEC craziness with -lpthreads. We check for 16771 # pthread_cleanup_push because it is one of the few pthread 16772 # functions on Solaris that doesn't have a non-functional libc stub. 16773 # We try pthread_create on general principles. 16774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16775/* end confdefs.h. */ 16776#include <pthread.h> 16777 static void routine(void *a) { *((int*)a) = 0; } 16778 static void *start_routine(void *a) { return a; } 16779int 16780main () 16781{ 16782pthread_t th; pthread_attr_t attr; 16783 pthread_create(&th, 0, start_routine, 0); 16784 pthread_join(th, 0); 16785 pthread_attr_init(&attr); 16786 pthread_cleanup_push(routine, 0); 16787 pthread_cleanup_pop(0) /* ; */ 16788 ; 16789 return 0; 16790} 16791_ACEOF 16792if ac_fn_c_try_link "$LINENO"; then : 16793 ax_pthread_ok=yes 16794fi 16795rm -f core conftest.err conftest.$ac_objext \ 16796 conftest$ac_exeext conftest.$ac_ext 16797 16798 LIBS="$save_LIBS" 16799 CFLAGS="$save_CFLAGS" 16800 16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 16802$as_echo "$ax_pthread_ok" >&6; } 16803 if test "x$ax_pthread_ok" = xyes; then 16804 break; 16805 fi 16806 16807 PTHREAD_LIBS="" 16808 PTHREAD_CFLAGS="" 16809done 16810fi 16811 16812# Various other checks: 16813if test "x$ax_pthread_ok" = xyes; then 16814 save_LIBS="$LIBS" 16815 LIBS="$PTHREAD_LIBS $LIBS" 16816 save_CFLAGS="$CFLAGS" 16817 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16818 16819 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 16821$as_echo_n "checking for joinable pthread attribute... " >&6; } 16822 attr_name=unknown 16823 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 16824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16825/* end confdefs.h. */ 16826#include <pthread.h> 16827int 16828main () 16829{ 16830int attr = $attr; return attr /* ; */ 16831 ; 16832 return 0; 16833} 16834_ACEOF 16835if ac_fn_c_try_link "$LINENO"; then : 16836 attr_name=$attr; break 16837fi 16838rm -f core conftest.err conftest.$ac_objext \ 16839 conftest$ac_exeext conftest.$ac_ext 16840 done 16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 16842$as_echo "$attr_name" >&6; } 16843 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 16844 16845cat >>confdefs.h <<_ACEOF 16846#define PTHREAD_CREATE_JOINABLE $attr_name 16847_ACEOF 16848 16849 fi 16850 16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 16852$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 16853 flag=no 16854 case ${host_os} in 16855 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 16856 osf* | hpux*) flag="-D_REENTRANT";; 16857 solaris*) 16858 if test "$GCC" = "yes"; then 16859 flag="-D_REENTRANT" 16860 else 16861 # TODO: What about Clang on Solaris? 16862 flag="-mt -D_REENTRANT" 16863 fi 16864 ;; 16865 esac 16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 16867$as_echo "$flag" >&6; } 16868 if test "x$flag" != xno; then 16869 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 16870 fi 16871 16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 16873$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 16874if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 16875 $as_echo_n "(cached) " >&6 16876else 16877 16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16879/* end confdefs.h. */ 16880#include <pthread.h> 16881int 16882main () 16883{ 16884int i = PTHREAD_PRIO_INHERIT; 16885 ; 16886 return 0; 16887} 16888_ACEOF 16889if ac_fn_c_try_link "$LINENO"; then : 16890 ax_cv_PTHREAD_PRIO_INHERIT=yes 16891else 16892 ax_cv_PTHREAD_PRIO_INHERIT=no 16893fi 16894rm -f core conftest.err conftest.$ac_objext \ 16895 conftest$ac_exeext conftest.$ac_ext 16896 16897fi 16898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 16899$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 16900 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 16901 16902$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 16903 16904fi 16905 16906 LIBS="$save_LIBS" 16907 CFLAGS="$save_CFLAGS" 16908 16909 # More AIX lossage: compile with *_r variant 16910 if test "x$GCC" != xyes; then 16911 case $host_os in 16912 aix*) 16913 case "x/$CC" in #( 16914 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 16915 #handle absolute path differently from PATH based program lookup 16916 case "x$CC" in #( 16917 x/*) : 16918 if as_fn_executable_p ${CC}_r; then : 16919 PTHREAD_CC="${CC}_r" 16920fi ;; #( 16921 *) : 16922 for ac_prog in ${CC}_r 16923do 16924 # Extract the first word of "$ac_prog", so it can be a program name with args. 16925set dummy $ac_prog; ac_word=$2 16926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16927$as_echo_n "checking for $ac_word... " >&6; } 16928if ${ac_cv_prog_PTHREAD_CC+:} false; then : 16929 $as_echo_n "(cached) " >&6 16930else 16931 if test -n "$PTHREAD_CC"; then 16932 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 16933else 16934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16935for as_dir in $PATH 16936do 16937 IFS=$as_save_IFS 16938 test -z "$as_dir" && as_dir=. 16939 for ac_exec_ext in '' $ac_executable_extensions; do 16940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16941 ac_cv_prog_PTHREAD_CC="$ac_prog" 16942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16943 break 2 16944 fi 16945done 16946 done 16947IFS=$as_save_IFS 16948 16949fi 16950fi 16951PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 16952if test -n "$PTHREAD_CC"; then 16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 16954$as_echo "$PTHREAD_CC" >&6; } 16955else 16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16957$as_echo "no" >&6; } 16958fi 16959 16960 16961 test -n "$PTHREAD_CC" && break 16962done 16963test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 16964 ;; 16965esac ;; #( 16966 *) : 16967 ;; 16968esac 16969 ;; 16970 esac 16971 fi 16972fi 16973 16974test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 16975 16976 16977 16978 16979 16980# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 16981if test x"$ax_pthread_ok" = xyes; then 16982 16983 16984$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 16985 16986 if test -n "$PTHREAD_LIBS"; then 16987 LIBS="$PTHREAD_LIBS $LIBS" 16988 fi 16989 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16990 CC="$PTHREAD_CC" 16991 ub_have_pthreads=yes 16992 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h> 16993" 16994if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then : 16995 16996cat >>confdefs.h <<_ACEOF 16997#define HAVE_PTHREAD_SPINLOCK_T 1 16998_ACEOF 16999 17000 17001fi 17002ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 17003" 17004if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 17005 17006cat >>confdefs.h <<_ACEOF 17007#define HAVE_PTHREAD_RWLOCK_T 1 17008_ACEOF 17009 17010 17011fi 17012 17013 17014 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then 17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5 17016$as_echo_n "checking if -pthread unused during linking... " >&6; } 17017 # catch clang warning 'argument unused during compilation' 17018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17019/* end confdefs.h. */ 17020$ac_includes_default 17021 17022int main(void) {return 0;} 17023 17024_ACEOF 17025 pthread_unused="yes" 17026 # first compile 17027 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5 17028 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5 17029 if test $? = 0; then 17030 # then link 17031 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5 17032 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5 17033 if test $? -ne 0; then 17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17035$as_echo "yes" >&6; } 17036 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'` 17037 PTHREAD_CFLAGS_ONLY="-pthread" 17038 17039 else 17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17041$as_echo "no" >&6; } 17042 fi 17043 else 17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17045$as_echo "no" >&6; } 17046 fi # endif cc successful 17047 rm -f conftest conftest.c conftest.o 17048 fi # endif -pthread in CFLAGS 17049 17050 17051 : 17052else 17053 ax_pthread_ok=no 17054 17055fi 17056ac_ext=c 17057ac_cpp='$CPP $CPPFLAGS' 17058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17060ac_compiler_gnu=$ac_cv_c_compiler_gnu 17061 17062 17063fi 17064 17065# check solaris thread library 17066 17067# Check whether --with-solaris-threads was given. 17068if test "${with_solaris_threads+set}" = set; then : 17069 withval=$with_solaris_threads; 17070else 17071 withval="no" 17072fi 17073 17074ub_have_sol_threads=no 17075if test x_$withval != x_no; then 17076 if test x_$ub_have_pthreads != x_no; then 17077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5 17078$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;} 17079 else 17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5 17081$as_echo_n "checking for library containing thr_create... " >&6; } 17082if ${ac_cv_search_thr_create+:} false; then : 17083 $as_echo_n "(cached) " >&6 17084else 17085 ac_func_search_save_LIBS=$LIBS 17086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17087/* end confdefs.h. */ 17088 17089/* Override any GCC internal prototype to avoid an error. 17090 Use char because int might match the return type of a GCC 17091 builtin and then its argument prototype would still apply. */ 17092#ifdef __cplusplus 17093extern "C" 17094#endif 17095char thr_create (); 17096int 17097main () 17098{ 17099return thr_create (); 17100 ; 17101 return 0; 17102} 17103_ACEOF 17104for ac_lib in '' thread; do 17105 if test -z "$ac_lib"; then 17106 ac_res="none required" 17107 else 17108 ac_res=-l$ac_lib 17109 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17110 fi 17111 if ac_fn_c_try_link "$LINENO"; then : 17112 ac_cv_search_thr_create=$ac_res 17113fi 17114rm -f core conftest.err conftest.$ac_objext \ 17115 conftest$ac_exeext 17116 if ${ac_cv_search_thr_create+:} false; then : 17117 break 17118fi 17119done 17120if ${ac_cv_search_thr_create+:} false; then : 17121 17122else 17123 ac_cv_search_thr_create=no 17124fi 17125rm conftest.$ac_ext 17126LIBS=$ac_func_search_save_LIBS 17127fi 17128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5 17129$as_echo "$ac_cv_search_thr_create" >&6; } 17130ac_res=$ac_cv_search_thr_create 17131if test "$ac_res" != no; then : 17132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17133 17134 17135$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h 17136 17137 17138 17139 17140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5 17141$as_echo_n "checking whether $CC supports -mt... " >&6; } 17142cache=`echo mt | sed 'y%.=/+-%___p_%'` 17143if eval \${cv_prog_cc_flag_$cache+:} false; then : 17144 $as_echo_n "(cached) " >&6 17145else 17146 17147echo 'void f(void){}' >conftest.c 17148if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then 17149eval "cv_prog_cc_flag_$cache=yes" 17150else 17151eval "cv_prog_cc_flag_$cache=no" 17152fi 17153rm -f conftest conftest.o conftest.c 17154 17155fi 17156 17157if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 17158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17159$as_echo "yes" >&6; } 17160: 17161CFLAGS="$CFLAGS -mt" 17162else 17163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17164$as_echo "no" >&6; } 17165: 17166CFLAGS="$CFLAGS -D_REENTRANT" 17167fi 17168 17169 ub_have_sol_threads=yes 17170 17171else 17172 17173 as_fn_error $? "no solaris threads found." "$LINENO" 5 17174 17175fi 17176 17177 fi 17178fi 17179 17180fi # end of non-mingw check of thread libraries 17181 17182# Check for SYSLOG_FACILITY 17183 17184# Check whether --with-syslog-facility was given. 17185if test "${with_syslog_facility+set}" = set; then : 17186 withval=$with_syslog_facility; UNBOUND_SYSLOG_FACILITY="$withval" 17187fi 17188 17189case "${UNBOUND_SYSLOG_FACILITY}" in 17190 17191 LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;; 17192 17193 *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;; 17194 17195esac 17196 17197cat >>confdefs.h <<_ACEOF 17198#define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY} 17199_ACEOF 17200 17201 17202# Check for dynamic library module 17203 17204# Check whether --with-dynlibmodule was given. 17205if test "${with_dynlibmodule+set}" = set; then : 17206 withval=$with_dynlibmodule; 17207else 17208 withval="no" 17209fi 17210 17211 17212if test x_$withval != x_no; then 17213 17214$as_echo "#define WITH_DYNLIBMODULE 1" >>confdefs.h 17215 17216 WITH_DYNLIBMODULE=yes 17217 17218 DYNLIBMOD_OBJ="dynlibmod.lo" 17219 17220 DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h' 17221 17222 if test $on_mingw = "no"; then 17223 DYNLIBMOD_EXTRALIBS="-ldl -export-dynamic" 17224 else 17225 DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.a" 17226 fi 17227 17228fi 17229 17230# Check for PyUnbound 17231 17232# Check whether --with-pyunbound was given. 17233if test "${with_pyunbound+set}" = set; then : 17234 withval=$with_pyunbound; 17235else 17236 withval="no" 17237fi 17238 17239 17240ub_test_python=no 17241ub_with_pyunbound=no 17242if test x_$withval != x_no; then 17243 ub_with_pyunbound=yes 17244 ub_test_python=yes 17245fi 17246 17247# Check for Python module 17248 17249# Check whether --with-pythonmodule was given. 17250if test "${with_pythonmodule+set}" = set; then : 17251 withval=$with_pythonmodule; 17252else 17253 withval="no" 17254fi 17255 17256 17257ub_with_pythonmod=no 17258if test x_$withval != x_no; then 17259 ub_with_pythonmod=yes 17260 ub_test_python=yes 17261fi 17262 17263# Check for Python & SWIG only on PyUnbound or PyModule 17264if test x_$ub_test_python != x_no; then 17265 17266 # Check for Python 17267 ub_have_python=no 17268 ac_save_LIBS="$LIBS" 17269 # 17270 # Allow the use of a (user set) custom python version 17271 # 17272 17273 17274 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 17275set dummy python$PYTHON_VERSION; ac_word=$2 17276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17277$as_echo_n "checking for $ac_word... " >&6; } 17278if ${ac_cv_path_PYTHON+:} false; then : 17279 $as_echo_n "(cached) " >&6 17280else 17281 case $PYTHON in 17282 [\\/]* | ?:[\\/]*) 17283 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 17284 ;; 17285 *) 17286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17287for as_dir in $PATH 17288do 17289 IFS=$as_save_IFS 17290 test -z "$as_dir" && as_dir=. 17291 for ac_exec_ext in '' $ac_executable_extensions; do 17292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17293 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 17294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17295 break 2 17296 fi 17297done 17298 done 17299IFS=$as_save_IFS 17300 17301 ;; 17302esac 17303fi 17304PYTHON=$ac_cv_path_PYTHON 17305if test -n "$PYTHON"; then 17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 17307$as_echo "$PYTHON" >&6; } 17308else 17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17310$as_echo "no" >&6; } 17311fi 17312 17313 17314 if test -z "$PYTHON"; then 17315 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 17316 PYTHON_VERSION="" 17317 fi 17318 17319 if test -z "$PYTHON_VERSION"; then 17320 PYTHON_VERSION=`$PYTHON -c "import sys; \ 17321 print(sys.version.split()[0])"` 17322 fi 17323 17324 # 17325 # Check if you have distutils, else fail 17326 # 17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 17328$as_echo_n "checking for the distutils Python package... " >&6; } 17329 if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then 17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17331$as_echo "yes" >&6; } 17332 else 17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17334$as_echo "no" >&6; } 17335 as_fn_error $? "cannot import Python module \"distutils\". 17336Please check your Python installation. The error was: 17337$ac_distutils_result" "$LINENO" 5 17338 PYTHON_VERSION="" 17339 fi 17340 17341 # 17342 # Check for Python include path 17343 # 17344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 17345$as_echo_n "checking for Python include path... " >&6; } 17346 if test -z "$PYTHON_CPPFLAGS"; then 17347 python_path=`$PYTHON -c "import distutils.sysconfig; \ 17348 print(distutils.sysconfig.get_python_inc());"` 17349 if test -n "${python_path}"; then 17350 python_path="-I$python_path" 17351 fi 17352 PYTHON_CPPFLAGS=$python_path 17353 fi 17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 17355$as_echo "$PYTHON_CPPFLAGS" >&6; } 17356 17357 17358 # 17359 # Check for Python library path 17360 # 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 17362$as_echo_n "checking for Python library path... " >&6; } 17363 if test -z "$PYTHON_LDFLAGS"; then 17364 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \ 17365 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"` 17366 fi 17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 17368$as_echo "$PYTHON_LDFLAGS" >&6; } 17369 17370 17371 if test -z "$PYTHON_LIBDIR"; then 17372 PYTHON_LIBDIR=`$PYTHON -c "from distutils.sysconfig import *; \ 17373 print(get_config_var('LIBDIR'));"` 17374 fi 17375 17376 # 17377 # Check for site packages 17378 # 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 17380$as_echo_n "checking for Python site-packages path... " >&6; } 17381 if test -z "$PYTHON_SITE_PKG"; then 17382 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 17383 print(distutils.sysconfig.get_python_lib(1,0));"` 17384 fi 17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 17386$as_echo "$PYTHON_SITE_PKG" >&6; } 17387 17388 17389 # 17390 # final check to see if everything compiles alright 17391 # 17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 17393$as_echo_n "checking consistency of all components of python development environment... " >&6; } 17394 ac_ext=c 17395ac_cpp='$CPP $CPPFLAGS' 17396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17398ac_compiler_gnu=$ac_cv_c_compiler_gnu 17399 17400 # save current global flags 17401 ac_save_LIBS="$LIBS" 17402 ac_save_CPPFLAGS="$CPPFLAGS" 17403 17404 LIBS="$LIBS $PYTHON_LDFLAGS" 17405 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 17406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17407/* end confdefs.h. */ 17408 17409 #include <Python.h> 17410 17411int 17412main () 17413{ 17414 17415 Py_Initialize(); 17416 17417 ; 17418 return 0; 17419} 17420_ACEOF 17421if ac_fn_c_try_link "$LINENO"; then : 17422 pythonexists=yes 17423else 17424 pythonexists=no 17425fi 17426rm -f core conftest.err conftest.$ac_objext \ 17427 conftest$ac_exeext conftest.$ac_ext 17428 17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 17430$as_echo "$pythonexists" >&6; } 17431 17432 if test ! "$pythonexists" = "yes"; then 17433 as_fn_error $? " 17434 Could not link test program to Python. Maybe the main Python library has been 17435 installed in some non-standard library path. If so, pass it to configure, 17436 via the LDFLAGS environment variable. 17437 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 17438 ============================================================================ 17439 ERROR! 17440 You probably have to install the development version of the Python package 17441 for your distribution. The exact name of this package varies among them. 17442 ============================================================================ 17443 " "$LINENO" 5 17444 PYTHON_VERSION="" 17445 fi 17446 ac_ext=c 17447ac_cpp='$CPP $CPPFLAGS' 17448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17450ac_compiler_gnu=$ac_cv_c_compiler_gnu 17451 17452 # turn back to default flags 17453 CPPFLAGS="$ac_save_CPPFLAGS" 17454 LIBS="$ac_save_LIBS" 17455 17456 # 17457 # all done! 17458 # 17459 17460 if test ! -z "$PYTHON_VERSION"; then 17461 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then 17462 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5 17463 fi 17464 17465 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`" 17466 17467 # Have Python 17468 17469$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 17470 17471 if test -n "$LIBS"; then 17472 LIBS="$PYTHON_LDFLAGS $LIBS" 17473 else 17474 LIBS="$PYTHON_LDFLAGS" 17475 fi 17476 if test -n "$CPPFLAGS"; then 17477 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 17478 else 17479 CPPFLAGS="$PYTHON_CPPFLAGS" 17480 fi 17481 if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then 17482 17483 if test "x$enable_rpath" = xyes; then 17484 if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then 17485 RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR" 17486 fi 17487 fi 17488 17489 fi 17490 ub_have_python=yes 17491 if test -n "$PKG_CONFIG" && \ 17492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5 17493 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5 17494 ac_status=$? 17495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17496 test $ac_status = 0; }; then 17497 PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}" 17498else 17499 PC_PY_DEPENDENCY="python" 17500fi 17501 17502 17503 # Check for SWIG 17504 ub_have_swig=no 17505 # Check whether --enable-swig-version-check was given. 17506if test "${enable_swig_version_check+set}" = set; then : 17507 enableval=$enable_swig_version_check; 17508fi 17509 17510 if test "$enable_swig_version_check" = "yes"; then 17511 17512 # Extract the first word of "swig", so it can be a program name with args. 17513set dummy swig; ac_word=$2 17514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17515$as_echo_n "checking for $ac_word... " >&6; } 17516if ${ac_cv_path_SWIG+:} false; then : 17517 $as_echo_n "(cached) " >&6 17518else 17519 case $SWIG in 17520 [\\/]* | ?:[\\/]*) 17521 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 17522 ;; 17523 *) 17524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17525for as_dir in $PATH 17526do 17527 IFS=$as_save_IFS 17528 test -z "$as_dir" && as_dir=. 17529 for ac_exec_ext in '' $ac_executable_extensions; do 17530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17531 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 17532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17533 break 2 17534 fi 17535done 17536 done 17537IFS=$as_save_IFS 17538 17539 ;; 17540esac 17541fi 17542SWIG=$ac_cv_path_SWIG 17543if test -n "$SWIG"; then 17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 17545$as_echo "$SWIG" >&6; } 17546else 17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17548$as_echo "no" >&6; } 17549fi 17550 17551 17552 if test -z "$SWIG" ; then 17553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 17554$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 17555 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 17556 elif test -n "2.0.1" ; then 17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 17558$as_echo_n "checking for SWIG version... " >&6; } 17559 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'` 17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 17561$as_echo "$swig_version" >&6; } 17562 if test -n "$swig_version" ; then 17563 # Calculate the required version number components 17564 required=2.0.1 17565 required_major=`echo $required | sed 's/[^0-9].*//'` 17566 if test -z "$required_major" ; then 17567 required_major=0 17568 fi 17569 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17570 required_minor=`echo $required | sed 's/[^0-9].*//'` 17571 if test -z "$required_minor" ; then 17572 required_minor=0 17573 fi 17574 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17575 required_patch=`echo $required | sed 's/[^0-9].*//'` 17576 if test -z "$required_patch" ; then 17577 required_patch=0 17578 fi 17579 # Calculate the available version number components 17580 available=$swig_version 17581 available_major=`echo $available | sed 's/[^0-9].*//'` 17582 if test -z "$available_major" ; then 17583 available_major=0 17584 fi 17585 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17586 available_minor=`echo $available | sed 's/[^0-9].*//'` 17587 if test -z "$available_minor" ; then 17588 available_minor=0 17589 fi 17590 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17591 available_patch=`echo $available | sed 's/[^0-9].*//'` 17592 if test -z "$available_patch" ; then 17593 available_patch=0 17594 fi 17595 badversion=0 17596 if test $available_major -lt $required_major ; then 17597 badversion=1 17598 fi 17599 if test $available_major -eq $required_major \ 17600 -a $available_minor -lt $required_minor ; then 17601 badversion=1 17602 fi 17603 if test $available_major -eq $required_major \ 17604 -a $available_minor -eq $required_minor \ 17605 -a $available_patch -lt $required_patch ; then 17606 badversion=1 17607 fi 17608 if test $badversion -eq 1 ; then 17609 { $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 17610$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;} 17611 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 17612 else 17613 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 17614$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 17615 SWIG_LIB=`$SWIG -swiglib` 17616 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 17617$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 17618 fi 17619 else 17620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 17621$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 17622 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 17623 fi 17624 fi 17625 17626 17627 else 17628 17629 # Extract the first word of "swig", so it can be a program name with args. 17630set dummy swig; ac_word=$2 17631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17632$as_echo_n "checking for $ac_word... " >&6; } 17633if ${ac_cv_path_SWIG+:} false; then : 17634 $as_echo_n "(cached) " >&6 17635else 17636 case $SWIG in 17637 [\\/]* | ?:[\\/]*) 17638 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 17639 ;; 17640 *) 17641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17642for as_dir in $PATH 17643do 17644 IFS=$as_save_IFS 17645 test -z "$as_dir" && as_dir=. 17646 for ac_exec_ext in '' $ac_executable_extensions; do 17647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17648 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 17649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17650 break 2 17651 fi 17652done 17653 done 17654IFS=$as_save_IFS 17655 17656 ;; 17657esac 17658fi 17659SWIG=$ac_cv_path_SWIG 17660if test -n "$SWIG"; then 17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 17662$as_echo "$SWIG" >&6; } 17663else 17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17665$as_echo "no" >&6; } 17666fi 17667 17668 17669 if test -z "$SWIG" ; then 17670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 17671$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 17672 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 17673 elif test -n "" ; then 17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 17675$as_echo_n "checking for SWIG version... " >&6; } 17676 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'` 17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 17678$as_echo "$swig_version" >&6; } 17679 if test -n "$swig_version" ; then 17680 # Calculate the required version number components 17681 required= 17682 required_major=`echo $required | sed 's/[^0-9].*//'` 17683 if test -z "$required_major" ; then 17684 required_major=0 17685 fi 17686 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17687 required_minor=`echo $required | sed 's/[^0-9].*//'` 17688 if test -z "$required_minor" ; then 17689 required_minor=0 17690 fi 17691 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 17692 required_patch=`echo $required | sed 's/[^0-9].*//'` 17693 if test -z "$required_patch" ; then 17694 required_patch=0 17695 fi 17696 # Calculate the available version number components 17697 available=$swig_version 17698 available_major=`echo $available | sed 's/[^0-9].*//'` 17699 if test -z "$available_major" ; then 17700 available_major=0 17701 fi 17702 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17703 available_minor=`echo $available | sed 's/[^0-9].*//'` 17704 if test -z "$available_minor" ; then 17705 available_minor=0 17706 fi 17707 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 17708 available_patch=`echo $available | sed 's/[^0-9].*//'` 17709 if test -z "$available_patch" ; then 17710 available_patch=0 17711 fi 17712 badversion=0 17713 if test $available_major -lt $required_major ; then 17714 badversion=1 17715 fi 17716 if test $available_major -eq $required_major \ 17717 -a $available_minor -lt $required_minor ; then 17718 badversion=1 17719 fi 17720 if test $available_major -eq $required_major \ 17721 -a $available_minor -eq $required_minor \ 17722 -a $available_patch -lt $required_patch ; then 17723 badversion=1 17724 fi 17725 if test $badversion -eq 1 ; then 17726 { $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 17727$as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 17728 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 17729 else 17730 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 17731$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 17732 SWIG_LIB=`$SWIG -swiglib` 17733 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 17734$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 17735 fi 17736 else 17737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 17738$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 17739 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 17740 fi 17741 fi 17742 17743 17744 fi 17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5 17746$as_echo_n "checking SWIG... " >&6; } 17747 if test ! -x "$SWIG"; then 17748 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5 17749 else 17750 17751$as_echo "#define HAVE_SWIG 1" >>confdefs.h 17752 17753 swig="$SWIG" 17754 17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 17756$as_echo "present" >&6; } 17757 17758 # If have Python & SWIG 17759 # Declare PythonMod 17760 if test x_$ub_with_pythonmod != x_no; then 17761 17762$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h 17763 17764 WITH_PYTHONMODULE=yes 17765 17766 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo" 17767 17768 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h' 17769 17770 PYTHONMOD_INSTALL=pythonmod-install 17771 17772 PYTHONMOD_UNINSTALL=pythonmod-uninstall 17773 17774 fi 17775 17776 # Declare PyUnbound 17777 if test x_$ub_with_pyunbound != x_no; then 17778 17779$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h 17780 17781 WITH_PYUNBOUND=yes 17782 17783 PYUNBOUND_OBJ="libunbound_wrap.lo" 17784 17785 PYUNBOUND_TARGET="_unbound.la" 17786 17787 PYUNBOUND_INSTALL=pyunbound-install 17788 17789 PYUNBOUND_UNINSTALL=pyunbound-uninstall 17790 17791 fi 17792 fi 17793 else 17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5 17795$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; } 17796 ub_with_pyunbound=no 17797 ub_with_pythonmod=no 17798 fi 17799fi 17800 17801if test "`uname`" = "NetBSD"; then 17802 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_' 17803 17804fi 17805CONFIG_DATE=`date +%Y%m%d` 17806 17807 17808# Checks for libraries. 17809 17810# libnss 17811USE_NSS="no" 17812 17813# Check whether --with-nss was given. 17814if test "${with_nss+set}" = set; then : 17815 withval=$with_nss; 17816 USE_NSS="yes" 17817 17818$as_echo "#define HAVE_NSS 1" >>confdefs.h 17819 17820 if test "$withval" != "" -a "$withval" != "yes"; then 17821 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3" 17822 LDFLAGS="$LDFLAGS -L$withval/lib" 17823 17824 if test "x$enable_rpath" = xyes; then 17825 if echo "$withval/lib" | grep "^/" >/dev/null; then 17826 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 17827 fi 17828 fi 17829 17830 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" 17831 else 17832 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" 17833 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" 17834 fi 17835 LIBS="$LIBS -lnss3 -lnspr4" 17836 SSLLIB="" 17837 PC_CRYPTO_DEPENDENCY="nss nspr" 17838 17839 17840 17841fi 17842 17843 17844# libnettle 17845USE_NETTLE="no" 17846 17847# Check whether --with-nettle was given. 17848if test "${with_nettle+set}" = set; then : 17849 withval=$with_nettle; 17850 USE_NETTLE="yes" 17851 17852$as_echo "#define HAVE_NETTLE 1" >>confdefs.h 17853 17854 for ac_header in nettle/dsa-compat.h 17855do : 17856 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default 17857" 17858if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then : 17859 cat >>confdefs.h <<_ACEOF 17860#define HAVE_NETTLE_DSA_COMPAT_H 1 17861_ACEOF 17862 17863fi 17864 17865done 17866 17867 if test "$withval" != "" -a "$withval" != "yes"; then 17868 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle" 17869 LDFLAGS="$LDFLAGS -L$withval/lib" 17870 17871 if test "x$enable_rpath" = xyes; then 17872 if echo "$withval/lib" | grep "^/" >/dev/null; then 17873 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 17874 fi 17875 fi 17876 17877 else 17878 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle" 17879 fi 17880 LIBS="$LIBS -lhogweed -lnettle -lgmp" 17881 SSLLIB="" 17882 PC_CRYPTO_DEPENDENCY="hogweed nettle" 17883 17884 17885 17886fi 17887 17888 17889# openssl 17890if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 17891 17892 17893# Check whether --with-ssl was given. 17894if test "${with_ssl+set}" = set; then : 17895 withval=$with_ssl; 17896 17897else 17898 17899 withval="yes" 17900 17901fi 17902 17903 if test x_$withval = x_no; then 17904 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5 17905 fi 17906 17907 withval=$withval 17908 if test x_$withval != x_no; then 17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 17910$as_echo_n "checking for SSL... " >&6; } 17911 if test x_$withval = x_ -o x_$withval = x_yes; then 17912 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 17913 fi 17914 for dir in $withval; do 17915 ssldir="$dir" 17916 if test -f "$dir/include/openssl/ssl.h"; then 17917 found_ssl="yes" 17918 17919cat >>confdefs.h <<_ACEOF 17920#define HAVE_SSL /**/ 17921_ACEOF 17922 17923 if test "$ssldir" != "/usr"; then 17924 CPPFLAGS="$CPPFLAGS -I$ssldir/include" 17925 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include" 17926 fi 17927 break; 17928 fi 17929 done 17930 if test x_$found_ssl != x_yes; then 17931 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 17932 else 17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 17934$as_echo "found in $ssldir" >&6; } 17935 HAVE_SSL=yes 17936 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then 17937 LDFLAGS="$LDFLAGS -L$ssldir/lib" 17938 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib" 17939 17940 if test "x$enable_rpath" = xyes; then 17941 if echo "$ssldir/lib" | grep "^/" >/dev/null; then 17942 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib" 17943 fi 17944 fi 17945 17946 fi 17947 17948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5 17949$as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; } 17950 LIBS="$LIBS -lcrypto" 17951 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 17952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17953/* end confdefs.h. */ 17954 17955int 17956main () 17957{ 17958 17959 int EVP_sha256(void); 17960 (void)EVP_sha256(); 17961 17962 ; 17963 return 0; 17964} 17965_ACEOF 17966if ac_fn_c_try_link "$LINENO"; then : 17967 17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17969$as_echo "yes" >&6; } 17970 17971$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 17972 17973 17974else 17975 17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17977$as_echo "no" >&6; } 17978 # check if -lwsock32 or -lgdi32 are needed. 17979 BAKLIBS="$LIBS" 17980 BAKSSLLIBS="$LIBSSL_LIBS" 17981 LIBS="$LIBS -lgdi32 -lws2_32" 17982 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32" 17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 17984$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; } 17985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17986/* end confdefs.h. */ 17987 17988int 17989main () 17990{ 17991 17992 int EVP_sha256(void); 17993 (void)EVP_sha256(); 17994 17995 ; 17996 return 0; 17997} 17998_ACEOF 17999if ac_fn_c_try_link "$LINENO"; then : 18000 18001 18002$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 18003 18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18005$as_echo "yes" >&6; } 18006 18007else 18008 18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18010$as_echo "no" >&6; } 18011 LIBS="$BAKLIBS" 18012 LIBSSL_LIBS="$BAKSSLLIBS" 18013 LIBS="$LIBS -ldl" 18014 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 18016$as_echo_n "checking if -lcrypto needs -ldl... " >&6; } 18017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18018/* end confdefs.h. */ 18019 18020int 18021main () 18022{ 18023 18024 int EVP_sha256(void); 18025 (void)EVP_sha256(); 18026 18027 ; 18028 return 0; 18029} 18030_ACEOF 18031if ac_fn_c_try_link "$LINENO"; then : 18032 18033 18034$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 18035 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18037$as_echo "yes" >&6; } 18038 18039else 18040 18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18042$as_echo "no" >&6; } 18043 LIBS="$BAKLIBS" 18044 LIBSSL_LIBS="$BAKSSLLIBS" 18045 LIBS="$LIBS -ldl -pthread" 18046 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread" 18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5 18048$as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; } 18049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18050/* end confdefs.h. */ 18051 18052int 18053main () 18054{ 18055 18056 int EVP_sha256(void); 18057 (void)EVP_sha256(); 18058 18059 ; 18060 return 0; 18061} 18062_ACEOF 18063if ac_fn_c_try_link "$LINENO"; then : 18064 18065 18066$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h 18067 18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18069$as_echo "yes" >&6; } 18070 18071else 18072 18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18074$as_echo "no" >&6; } 18075 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 18076 18077fi 18078rm -f core conftest.err conftest.$ac_objext \ 18079 conftest$ac_exeext conftest.$ac_ext 18080 18081fi 18082rm -f core conftest.err conftest.$ac_objext \ 18083 conftest$ac_exeext conftest.$ac_ext 18084 18085fi 18086rm -f core conftest.err conftest.$ac_objext \ 18087 conftest$ac_exeext conftest.$ac_ext 18088 18089fi 18090rm -f core conftest.err conftest.$ac_objext \ 18091 conftest$ac_exeext conftest.$ac_ext 18092 fi 18093 18094 18095 fi 18096for ac_header in openssl/ssl.h 18097do : 18098 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 18099" 18100if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 18101 cat >>confdefs.h <<_ACEOF 18102#define HAVE_OPENSSL_SSL_H 1 18103_ACEOF 18104 18105fi 18106 18107done 18108 18109for ac_header in openssl/err.h 18110do : 18111 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 18112" 18113if test "x$ac_cv_header_openssl_err_h" = xyes; then : 18114 cat >>confdefs.h <<_ACEOF 18115#define HAVE_OPENSSL_ERR_H 1 18116_ACEOF 18117 18118fi 18119 18120done 18121 18122for ac_header in openssl/rand.h 18123do : 18124 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 18125" 18126if test "x$ac_cv_header_openssl_rand_h" = xyes; then : 18127 cat >>confdefs.h <<_ACEOF 18128#define HAVE_OPENSSL_RAND_H 1 18129_ACEOF 18130 18131fi 18132 18133done 18134 18135 18136 18137 18138# check if libssl needs libdl 18139BAKLIBS="$LIBS" 18140LIBS="-lssl $LIBS" 18141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 18142$as_echo_n "checking if libssl needs libdl... " >&6; } 18143cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18144/* end confdefs.h. */ 18145 18146/* Override any GCC internal prototype to avoid an error. 18147 Use char because int might match the return type of a GCC 18148 builtin and then its argument prototype would still apply. */ 18149#ifdef __cplusplus 18150extern "C" 18151#endif 18152char SSL_CTX_new (); 18153int 18154main () 18155{ 18156return SSL_CTX_new (); 18157 ; 18158 return 0; 18159} 18160_ACEOF 18161if ac_fn_c_try_link "$LINENO"; then : 18162 18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18164$as_echo "no" >&6; } 18165 LIBS="$BAKLIBS" 18166 18167else 18168 18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18170$as_echo "yes" >&6; } 18171 LIBS="$BAKLIBS" 18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 18173$as_echo_n "checking for library containing dlopen... " >&6; } 18174if ${ac_cv_search_dlopen+:} false; then : 18175 $as_echo_n "(cached) " >&6 18176else 18177 ac_func_search_save_LIBS=$LIBS 18178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18179/* end confdefs.h. */ 18180 18181/* Override any GCC internal prototype to avoid an error. 18182 Use char because int might match the return type of a GCC 18183 builtin and then its argument prototype would still apply. */ 18184#ifdef __cplusplus 18185extern "C" 18186#endif 18187char dlopen (); 18188int 18189main () 18190{ 18191return dlopen (); 18192 ; 18193 return 0; 18194} 18195_ACEOF 18196for ac_lib in '' dl; do 18197 if test -z "$ac_lib"; then 18198 ac_res="none required" 18199 else 18200 ac_res=-l$ac_lib 18201 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18202 fi 18203 if ac_fn_c_try_link "$LINENO"; then : 18204 ac_cv_search_dlopen=$ac_res 18205fi 18206rm -f core conftest.err conftest.$ac_objext \ 18207 conftest$ac_exeext 18208 if ${ac_cv_search_dlopen+:} false; then : 18209 break 18210fi 18211done 18212if ${ac_cv_search_dlopen+:} false; then : 18213 18214else 18215 ac_cv_search_dlopen=no 18216fi 18217rm conftest.$ac_ext 18218LIBS=$ac_func_search_save_LIBS 18219fi 18220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 18221$as_echo "$ac_cv_search_dlopen" >&6; } 18222ac_res=$ac_cv_search_dlopen 18223if test "$ac_res" != no; then : 18224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18225 18226fi 18227 18228 18229fi 18230rm -f core conftest.err conftest.$ac_objext \ 18231 conftest$ac_exeext conftest.$ac_ext 18232SSLLIB="-lssl" 18233 18234PC_CRYPTO_DEPENDENCY="libcrypto libssl" 18235 18236 18237# check if -lcrypt32 is needed because CAPIENG needs that. (on windows) 18238BAKLIBS="$LIBS" 18239LIBS="-lssl $LIBS" 18240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5 18241$as_echo_n "checking if libssl needs -lcrypt32... " >&6; } 18242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18243/* end confdefs.h. */ 18244 18245/* Override any GCC internal prototype to avoid an error. 18246 Use char because int might match the return type of a GCC 18247 builtin and then its argument prototype would still apply. */ 18248#ifdef __cplusplus 18249extern "C" 18250#endif 18251char EVP_sha256 (); 18252int 18253main () 18254{ 18255return EVP_sha256 (); 18256 ; 18257 return 0; 18258} 18259_ACEOF 18260if ac_fn_c_try_link "$LINENO"; then : 18261 18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18263$as_echo "no" >&6; } 18264 LIBS="$BAKLIBS" 18265 18266else 18267 18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18269$as_echo "yes" >&6; } 18270 LIBS="$BAKLIBS" 18271 LIBS="$LIBS -lcrypt32" 18272 18273fi 18274rm -f core conftest.err conftest.$ac_objext \ 18275 conftest$ac_exeext conftest.$ac_ext 18276 18277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5 18278$as_echo_n "checking for LibreSSL... " >&6; } 18279if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then 18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18281$as_echo "yes" >&6; } 18282 18283$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h 18284 18285 # libressl provides these compat functions, but they may also be 18286 # declared by the OS in libc. See if they have been declared. 18287 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" 18288if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 18289 ac_have_decl=1 18290else 18291 ac_have_decl=0 18292fi 18293 18294cat >>confdefs.h <<_ACEOF 18295#define HAVE_DECL_STRLCPY $ac_have_decl 18296_ACEOF 18297ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" 18298if test "x$ac_cv_have_decl_strlcat" = xyes; then : 18299 ac_have_decl=1 18300else 18301 ac_have_decl=0 18302fi 18303 18304cat >>confdefs.h <<_ACEOF 18305#define HAVE_DECL_STRLCAT $ac_have_decl 18306_ACEOF 18307ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default" 18308if test "x$ac_cv_have_decl_arc4random" = xyes; then : 18309 ac_have_decl=1 18310else 18311 ac_have_decl=0 18312fi 18313 18314cat >>confdefs.h <<_ACEOF 18315#define HAVE_DECL_ARC4RANDOM $ac_have_decl 18316_ACEOF 18317ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default" 18318if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then : 18319 ac_have_decl=1 18320else 18321 ac_have_decl=0 18322fi 18323 18324cat >>confdefs.h <<_ACEOF 18325#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl 18326_ACEOF 18327 18328else 18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18330$as_echo "no" >&6; } 18331fi 18332for 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 18333do : 18334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18335ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 18336" 18337if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18338 cat >>confdefs.h <<_ACEOF 18339#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18340_ACEOF 18341 18342fi 18343 18344done 18345 18346for 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 18347do : 18348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18349ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18350if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18351 cat >>confdefs.h <<_ACEOF 18352#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18353_ACEOF 18354 18355fi 18356done 18357 18358 18359# these check_funcs need -lssl 18360BAKLIBS="$LIBS" 18361LIBS="-lssl $LIBS" 18362for 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 18363do : 18364 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18365ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18366if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18367 cat >>confdefs.h <<_ACEOF 18368#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18369_ACEOF 18370 18371fi 18372done 18373 18374LIBS="$BAKLIBS" 18375 18376ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" " 18377$ac_includes_default 18378#ifdef HAVE_OPENSSL_ERR_H 18379#include <openssl/err.h> 18380#endif 18381 18382#ifdef HAVE_OPENSSL_RAND_H 18383#include <openssl/rand.h> 18384#endif 18385 18386#ifdef HAVE_OPENSSL_CONF_H 18387#include <openssl/conf.h> 18388#endif 18389 18390#ifdef HAVE_OPENSSL_ENGINE_H 18391#include <openssl/engine.h> 18392#endif 18393#include <openssl/ssl.h> 18394#include <openssl/evp.h> 18395 18396" 18397if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then : 18398 ac_have_decl=1 18399else 18400 ac_have_decl=0 18401fi 18402 18403cat >>confdefs.h <<_ACEOF 18404#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl 18405_ACEOF 18406ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" " 18407$ac_includes_default 18408#ifdef HAVE_OPENSSL_ERR_H 18409#include <openssl/err.h> 18410#endif 18411 18412#ifdef HAVE_OPENSSL_RAND_H 18413#include <openssl/rand.h> 18414#endif 18415 18416#ifdef HAVE_OPENSSL_CONF_H 18417#include <openssl/conf.h> 18418#endif 18419 18420#ifdef HAVE_OPENSSL_ENGINE_H 18421#include <openssl/engine.h> 18422#endif 18423#include <openssl/ssl.h> 18424#include <openssl/evp.h> 18425 18426" 18427if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then : 18428 ac_have_decl=1 18429else 18430 ac_have_decl=0 18431fi 18432 18433cat >>confdefs.h <<_ACEOF 18434#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl 18435_ACEOF 18436ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" " 18437$ac_includes_default 18438#ifdef HAVE_OPENSSL_ERR_H 18439#include <openssl/err.h> 18440#endif 18441 18442#ifdef HAVE_OPENSSL_RAND_H 18443#include <openssl/rand.h> 18444#endif 18445 18446#ifdef HAVE_OPENSSL_CONF_H 18447#include <openssl/conf.h> 18448#endif 18449 18450#ifdef HAVE_OPENSSL_ENGINE_H 18451#include <openssl/engine.h> 18452#endif 18453#include <openssl/ssl.h> 18454#include <openssl/evp.h> 18455 18456" 18457if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then : 18458 ac_have_decl=1 18459else 18460 ac_have_decl=0 18461fi 18462 18463cat >>confdefs.h <<_ACEOF 18464#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl 18465_ACEOF 18466 18467 18468if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then 18469# check function return type. 18470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5 18471$as_echo_n "checking the return type of HMAC_Init_ex... " >&6; } 18472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18473/* end confdefs.h. */ 18474 18475#ifdef HAVE_OPENSSL_ERR_H 18476#include <openssl/err.h> 18477#endif 18478 18479#ifdef HAVE_OPENSSL_RAND_H 18480#include <openssl/rand.h> 18481#endif 18482 18483#ifdef HAVE_OPENSSL_CONF_H 18484#include <openssl/conf.h> 18485#endif 18486 18487#ifdef HAVE_OPENSSL_ENGINE_H 18488#include <openssl/engine.h> 18489#endif 18490#include <openssl/ssl.h> 18491#include <openssl/evp.h> 18492 18493int 18494main () 18495{ 18496 18497 HMAC_CTX* hmac_ctx = NULL; 18498 void* hmac_key = NULL; 18499 const EVP_MD* digest = NULL; 18500 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL); 18501 (void)x; 18502 18503 ; 18504 return 0; 18505} 18506_ACEOF 18507if ac_fn_c_try_compile "$LINENO"; then : 18508 18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 18510$as_echo "int" >&6; } 18511 18512else 18513 18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5 18515$as_echo "void" >&6; } 18516 18517$as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h 18518 18519 18520fi 18521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18522fi 18523 18524fi 18525 18526 18527# libbsd 18528 18529# Check whether --with-libbsd was given. 18530if test "${with_libbsd+set}" = set; then : 18531 withval=$with_libbsd; 18532 for ac_header in bsd/string.h bsd/stdlib.h 18533do : 18534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18535ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 18536" 18537if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18538 cat >>confdefs.h <<_ACEOF 18539#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18540_ACEOF 18541 18542fi 18543 18544done 18545 18546 if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then 18547 for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do 18548 as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh` 18549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5 18550$as_echo_n "checking for library containing $func... " >&6; } 18551if eval \${$as_ac_Search+:} false; then : 18552 $as_echo_n "(cached) " >&6 18553else 18554 ac_func_search_save_LIBS=$LIBS 18555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18556/* end confdefs.h. */ 18557 18558/* Override any GCC internal prototype to avoid an error. 18559 Use char because int might match the return type of a GCC 18560 builtin and then its argument prototype would still apply. */ 18561#ifdef __cplusplus 18562extern "C" 18563#endif 18564char $func (); 18565int 18566main () 18567{ 18568return $func (); 18569 ; 18570 return 0; 18571} 18572_ACEOF 18573for ac_lib in '' bsd; do 18574 if test -z "$ac_lib"; then 18575 ac_res="none required" 18576 else 18577 ac_res=-l$ac_lib 18578 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18579 fi 18580 if ac_fn_c_try_link "$LINENO"; then : 18581 eval "$as_ac_Search=\$ac_res" 18582fi 18583rm -f core conftest.err conftest.$ac_objext \ 18584 conftest$ac_exeext 18585 if eval \${$as_ac_Search+:} false; then : 18586 break 18587fi 18588done 18589if eval \${$as_ac_Search+:} false; then : 18590 18591else 18592 eval "$as_ac_Search=no" 18593fi 18594rm conftest.$ac_ext 18595LIBS=$ac_func_search_save_LIBS 18596fi 18597eval ac_res=\$$as_ac_Search 18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18599$as_echo "$ac_res" >&6; } 18600eval ac_res=\$$as_ac_Search 18601if test "$ac_res" != no; then : 18602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18603 18604 18605$as_echo "#define HAVE_LIBBSD 1" >>confdefs.h 18606 18607 PC_LIBBSD_DEPENDENCY=libbsd 18608 18609 18610fi 18611 18612 done 18613 fi 18614 18615fi 18616 18617 18618# Check whether --enable-sha1 was given. 18619if test "${enable_sha1+set}" = set; then : 18620 enableval=$enable_sha1; 18621fi 18622 18623case "$enable_sha1" in 18624 no) 18625 ;; 18626 yes|*) 18627 18628$as_echo "#define USE_SHA1 1" >>confdefs.h 18629 18630 ;; 18631esac 18632 18633 18634# Check whether --enable-sha2 was given. 18635if test "${enable_sha2+set}" = set; then : 18636 enableval=$enable_sha2; 18637fi 18638 18639case "$enable_sha2" in 18640 no) 18641 ;; 18642 yes|*) 18643 18644$as_echo "#define USE_SHA2 1" >>confdefs.h 18645 18646 ;; 18647esac 18648 18649# Check whether --enable-subnet was given. 18650if test "${enable_subnet+set}" = set; then : 18651 enableval=$enable_subnet; 18652fi 18653 18654case "$enable_subnet" in 18655 yes) 18656 18657$as_echo "#define CLIENT_SUBNET 1" >>confdefs.h 18658 18659 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo" 18660 18661 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h' 18662 18663 ;; 18664 no|*) 18665 ;; 18666esac 18667 18668# check wether gost also works 18669 18670# Check whether --enable-gost was given. 18671if test "${enable_gost+set}" = set; then : 18672 enableval=$enable_gost; 18673fi 18674 18675use_gost="no" 18676if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 18677case "$enable_gost" in 18678 no) 18679 ;; 18680 *) 18681 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 18682if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then : 18683 : 18684else 18685 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5 18686fi 18687 18688 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 18689if test "x$ac_cv_func_EC_KEY_new" = xyes; then : 18690 18691else 18692 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5 18693fi 18694 18695 18696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 18697$as_echo_n "checking if GOST works... " >&6; } 18698if test c${cross_compiling} = cno; then 18699BAKCFLAGS="$CFLAGS" 18700if test -n "$ssldir"; then 18701 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib" 18702fi 18703if test "$cross_compiling" = yes; then : 18704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18706as_fn_error $? "cannot run test program while cross compiling 18707See \`config.log' for more details" "$LINENO" 5; } 18708else 18709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18710/* end confdefs.h. */ 18711 18712#include <string.h> 18713#include <openssl/ssl.h> 18714#include <openssl/evp.h> 18715#include <openssl/engine.h> 18716#include <openssl/conf.h> 18717/* routine to load gost (from sldns) */ 18718int load_gost_id(void) 18719{ 18720 static int gost_id = 0; 18721 const EVP_PKEY_ASN1_METHOD* meth; 18722 ENGINE* e; 18723 18724 if(gost_id) return gost_id; 18725 18726 /* see if configuration loaded gost implementation from other engine*/ 18727 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 18728 if(meth) { 18729 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 18730 return gost_id; 18731 } 18732 18733 /* see if engine can be loaded already */ 18734 e = ENGINE_by_id("gost"); 18735 if(!e) { 18736 /* load it ourself, in case statically linked */ 18737 ENGINE_load_builtin_engines(); 18738 ENGINE_load_dynamic(); 18739 e = ENGINE_by_id("gost"); 18740 } 18741 if(!e) { 18742 /* no gost engine in openssl */ 18743 return 0; 18744 } 18745 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 18746 ENGINE_finish(e); 18747 ENGINE_free(e); 18748 return 0; 18749 } 18750 18751 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 18752 if(!meth) { 18753 /* algo not found */ 18754 ENGINE_finish(e); 18755 ENGINE_free(e); 18756 return 0; 18757 } 18758 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 18759 return gost_id; 18760} 18761int main(void) { 18762 EVP_MD_CTX* ctx; 18763 const EVP_MD* md; 18764 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 18765 const char* str = "Hello world"; 18766 const unsigned char check[] = { 18767 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 18768 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 18769 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 18770 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 18771 }; 18772 OPENSSL_config(NULL); 18773 (void)load_gost_id(); 18774 md = EVP_get_digestbyname("md_gost94"); 18775 if(!md) return 1; 18776 memset(digest, 0, sizeof(digest)); 18777 ctx = EVP_MD_CTX_create(); 18778 if(!ctx) return 2; 18779 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 18780 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 18781 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 18782 /* uncomment to see the hash calculated. 18783 {int i; 18784 for(i=0; i<32; i++) 18785 printf(" %2.2x", (int)digest[i]); 18786 printf("\n");} 18787 */ 18788 if(memcmp(digest, check, sizeof(check)) != 0) 18789 return 6; 18790 return 0; 18791} 18792 18793_ACEOF 18794if ac_fn_c_try_run "$LINENO"; then : 18795 eval "ac_cv_c_gost_works=yes" 18796else 18797 eval "ac_cv_c_gost_works=no" 18798fi 18799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18800 conftest.$ac_objext conftest.beam conftest.$ac_ext 18801fi 18802 18803CFLAGS="$BAKCFLAGS" 18804else 18805eval "ac_cv_c_gost_works=maybe" 18806fi 18807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5 18808$as_echo "$ac_cv_c_gost_works" >&6; } 18809 18810 if test "$ac_cv_c_gost_works" != no; then 18811 use_gost="yes" 18812 18813$as_echo "#define USE_GOST 1" >>confdefs.h 18814 18815 fi 18816 ;; 18817esac 18818fi 18819# Check whether --enable-ecdsa was given. 18820if test "${enable_ecdsa+set}" = set; then : 18821 enableval=$enable_ecdsa; 18822fi 18823 18824use_ecdsa="no" 18825case "$enable_ecdsa" in 18826 no) 18827 ;; 18828 *) 18829 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 18830 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 18831if test "x$ac_cv_func_ECDSA_sign" = xyes; then : 18832 18833else 18834 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18835fi 18836 18837 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 18838if test "x$ac_cv_func_SHA384_Init" = xyes; then : 18839 18840else 18841 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18842fi 18843 18844 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 18845#include <openssl/evp.h> 18846 18847" 18848if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then : 18849 ac_have_decl=1 18850else 18851 ac_have_decl=0 18852fi 18853 18854cat >>confdefs.h <<_ACEOF 18855#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl 18856_ACEOF 18857if test $ac_have_decl = 1; then : 18858 18859else 18860 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18861fi 18862ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 18863#include <openssl/evp.h> 18864 18865" 18866if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then : 18867 ac_have_decl=1 18868else 18869 ac_have_decl=0 18870fi 18871 18872cat >>confdefs.h <<_ACEOF 18873#define HAVE_DECL_NID_SECP384R1 $ac_have_decl 18874_ACEOF 18875if test $ac_have_decl = 1; then : 18876 18877else 18878 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 18879fi 18880 18881 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency) 18882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5 18883$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; } 18884 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then 18885 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then 18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18887$as_echo "no" >&6; } 18888 18889cat >>confdefs.h <<_ACEOF 18890#define USE_ECDSA_EVP_WORKAROUND 1 18891_ACEOF 18892 18893 else 18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18895$as_echo "yes" >&6; } 18896 fi 18897 else 18898 # not OpenSSL, thus likely LibreSSL, which supports it 18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18900$as_echo "yes" >&6; } 18901 fi 18902 fi 18903 # we now know we have ECDSA and the required curves. 18904 18905cat >>confdefs.h <<_ACEOF 18906#define USE_ECDSA 1 18907_ACEOF 18908 18909 use_ecdsa="yes" 18910 ;; 18911esac 18912 18913# Check whether --enable-dsa was given. 18914if test "${enable_dsa+set}" = set; then : 18915 enableval=$enable_dsa; 18916fi 18917 18918use_dsa="no" 18919case "$enable_dsa" in 18920 yes) 18921 # detect if DSA is supported, and turn it off if not. 18922 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 18923 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new" 18924if test "x$ac_cv_func_DSA_SIG_new" = xyes; then : 18925 18926 as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh` 18927ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" " 18928$ac_includes_default 18929#ifdef HAVE_OPENSSL_ERR_H 18930#include <openssl/err.h> 18931#endif 18932 18933#ifdef HAVE_OPENSSL_RAND_H 18934#include <openssl/rand.h> 18935#endif 18936 18937#ifdef HAVE_OPENSSL_CONF_H 18938#include <openssl/conf.h> 18939#endif 18940 18941#ifdef HAVE_OPENSSL_ENGINE_H 18942#include <openssl/engine.h> 18943#endif 18944 18945" 18946if eval test \"x\$"$as_ac_Type"\" = x"yes"; then : 18947 18948 18949cat >>confdefs.h <<_ACEOF 18950#define USE_DSA 1 18951_ACEOF 18952 18953 18954else 18955 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 18956 fi 18957fi 18958 18959 18960else 18961 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 18962 fi 18963fi 18964 18965 else 18966 18967cat >>confdefs.h <<_ACEOF 18968#define USE_DSA 1 18969_ACEOF 18970 18971 fi 18972 ;; 18973 *) 18974 # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT 18975 # support DSA for DNSSEC Validation. 18976 ;; 18977esac 18978 18979# Check whether --enable-ed25519 was given. 18980if test "${enable_ed25519+set}" = set; then : 18981 enableval=$enable_ed25519; 18982fi 18983 18984use_ed25519="no" 18985case "$enable_ed25519" in 18986 no) 18987 ;; 18988 *) 18989 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 18990 ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default 18991#include <openssl/evp.h> 18992 18993" 18994if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then : 18995 ac_have_decl=1 18996else 18997 ac_have_decl=0 18998fi 18999 19000cat >>confdefs.h <<_ACEOF 19001#define HAVE_DECL_NID_ED25519 $ac_have_decl 19002_ACEOF 19003if test $ac_have_decl = 1; then : 19004 19005 use_ed25519="yes" 19006 19007else 19008 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5 19009 fi 19010fi 19011 19012 fi 19013 if test $USE_NETTLE = "yes"; then 19014 for ac_header in nettle/eddsa.h 19015do : 19016 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default 19017" 19018if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then : 19019 cat >>confdefs.h <<_ACEOF 19020#define HAVE_NETTLE_EDDSA_H 1 19021_ACEOF 19022 use_ed25519="yes" 19023fi 19024 19025done 19026 19027 fi 19028 if test $use_ed25519 = "yes"; then 19029 19030cat >>confdefs.h <<_ACEOF 19031#define USE_ED25519 1 19032_ACEOF 19033 19034 fi 19035 ;; 19036esac 19037 19038# Check whether --enable-ed448 was given. 19039if test "${enable_ed448+set}" = set; then : 19040 enableval=$enable_ed448; 19041fi 19042 19043use_ed448="no" 19044case "$enable_ed448" in 19045 no) 19046 ;; 19047 *) 19048 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 19049 ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default 19050#include <openssl/evp.h> 19051 19052" 19053if test "x$ac_cv_have_decl_NID_ED448" = xyes; then : 19054 ac_have_decl=1 19055else 19056 ac_have_decl=0 19057fi 19058 19059cat >>confdefs.h <<_ACEOF 19060#define HAVE_DECL_NID_ED448 $ac_have_decl 19061_ACEOF 19062if test $ac_have_decl = 1; then : 19063 19064 use_ed448="yes" 19065 19066else 19067 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5 19068 fi 19069fi 19070 19071 fi 19072 if test $use_ed448 = "yes"; then 19073 19074cat >>confdefs.h <<_ACEOF 19075#define USE_ED448 1 19076_ACEOF 19077 19078 fi 19079 ;; 19080esac 19081 19082# Check whether --enable-event-api was given. 19083if test "${enable_event_api+set}" = set; then : 19084 enableval=$enable_event_api; 19085fi 19086 19087case "$enable_event_api" in 19088 yes) 19089 UNBOUND_EVENT_INSTALL=unbound-event-install 19090 19091 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall 19092 19093 ;; 19094 *) 19095 ;; 19096esac 19097 19098# Check whether --enable-tfo-client was given. 19099if test "${enable_tfo_client+set}" = set; then : 19100 enableval=$enable_tfo_client; 19101fi 19102 19103case "$enable_tfo_client" in 19104 yes) 19105 case `uname` in 19106 Linux) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default 19107#include <netinet/tcp.h> 19108 19109" 19110if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then : 19111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 19112$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 19113else 19114 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 19115fi 19116 19117 19118cat >>confdefs.h <<_ACEOF 19119#define USE_MSG_FASTOPEN 1 19120_ACEOF 19121 19122 ;; 19123 Darwin) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default 19124#include <sys/socket.h> 19125 19126" 19127if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then : 19128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 19129$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 19130else 19131 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 19132fi 19133 19134 19135cat >>confdefs.h <<_ACEOF 19136#define USE_OSX_MSG_FASTOPEN 1 19137_ACEOF 19138 19139 ;; 19140 esac 19141 ;; 19142 no|*) 19143 ;; 19144esac 19145 19146# Check whether --enable-tfo-server was given. 19147if test "${enable_tfo_server+set}" = set; then : 19148 enableval=$enable_tfo_server; 19149fi 19150 19151case "$enable_tfo_server" in 19152 yes) 19153 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default 19154#include <netinet/tcp.h> 19155 19156" 19157if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then : 19158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5 19159$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;} 19160else 19161 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5 19162fi 19163 19164 19165cat >>confdefs.h <<_ACEOF 19166#define USE_TCP_FASTOPEN 1 19167_ACEOF 19168 19169 ;; 19170 no|*) 19171 ;; 19172esac 19173 19174# check for libevent 19175 19176# Check whether --with-libevent was given. 19177if test "${with_libevent+set}" = set; then : 19178 withval=$with_libevent; 19179else 19180 with_libevent="no" 19181fi 19182 19183if test "x_$with_libevent" != x_no; then 19184 19185$as_echo "#define USE_LIBEVENT 1" >>confdefs.h 19186 19187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 19188$as_echo_n "checking for libevent... " >&6; } 19189 if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then 19190 with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19191 fi 19192 for dir in $with_libevent; do 19193 thedir="$dir" 19194 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 19195 found_libevent="yes" 19196 if test "$thedir" != "/usr"; then 19197 CPPFLAGS="$CPPFLAGS -I$thedir/include" 19198 fi 19199 break; 19200 fi 19201 done 19202 if test x_$found_libevent != x_yes; then 19203 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 19204 # libevent source directory 19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 19206$as_echo "found in $thedir" >&6; } 19207 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 19208 BAK_LDFLAGS_SET="1" 19209 BAK_LDFLAGS="$LDFLAGS" 19210 # remove evdns from linking 19211 mkdir build >/dev/null 2>&1 19212 mkdir build/libevent >/dev/null 2>&1 19213 mkdir build/libevent/.libs >/dev/null 2>&1 19214 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 19215 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo` 19216 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 19217 cp $ev_files_o build/libevent 19218 cp $ev_files_lo build/libevent 19219 cp $ev_files_libso build/libevent/.libs 19220 LATE_LDFLAGS="build/libevent/*.lo -lm" 19221 LDFLAGS="build/libevent/*.o $LDFLAGS -lm" 19222 else 19223 as_fn_error $? "Cannot find the libevent library in $with_libevent 19224You can restart ./configure --with-libevent=no to use a builtin alternative. 19225Please note that this alternative is not as capable as libevent when using 19226large outgoing port ranges. " "$LINENO" 5 19227 fi 19228 else 19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 19230$as_echo "found in $thedir" >&6; } 19231 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 19232 LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 19233 19234 if test "x$enable_rpath" = xyes; then 19235 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 19236 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 19237 fi 19238 fi 19239 19240 else 19241 if test "$thedir" != "/usr" -a "$thedir" != ""; then 19242 LDFLAGS="$LDFLAGS -L$thedir/lib" 19243 19244 if test "x$enable_rpath" = xyes; then 19245 if echo "$thedir/lib" | grep "^/" >/dev/null; then 19246 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 19247 fi 19248 fi 19249 19250 fi 19251 fi 19252 fi 19253 # check for library used by libevent after 1.3c 19254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 19255$as_echo_n "checking for library containing clock_gettime... " >&6; } 19256if ${ac_cv_search_clock_gettime+:} false; then : 19257 $as_echo_n "(cached) " >&6 19258else 19259 ac_func_search_save_LIBS=$LIBS 19260cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19261/* end confdefs.h. */ 19262 19263/* Override any GCC internal prototype to avoid an error. 19264 Use char because int might match the return type of a GCC 19265 builtin and then its argument prototype would still apply. */ 19266#ifdef __cplusplus 19267extern "C" 19268#endif 19269char clock_gettime (); 19270int 19271main () 19272{ 19273return clock_gettime (); 19274 ; 19275 return 0; 19276} 19277_ACEOF 19278for ac_lib in '' rt; do 19279 if test -z "$ac_lib"; then 19280 ac_res="none required" 19281 else 19282 ac_res=-l$ac_lib 19283 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19284 fi 19285 if ac_fn_c_try_link "$LINENO"; then : 19286 ac_cv_search_clock_gettime=$ac_res 19287fi 19288rm -f core conftest.err conftest.$ac_objext \ 19289 conftest$ac_exeext 19290 if ${ac_cv_search_clock_gettime+:} false; then : 19291 break 19292fi 19293done 19294if ${ac_cv_search_clock_gettime+:} false; then : 19295 19296else 19297 ac_cv_search_clock_gettime=no 19298fi 19299rm conftest.$ac_ext 19300LIBS=$ac_func_search_save_LIBS 19301fi 19302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 19303$as_echo "$ac_cv_search_clock_gettime" >&6; } 19304ac_res=$ac_cv_search_clock_gettime 19305if test "$ac_res" != no; then : 19306 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19307 19308fi 19309 19310 19311 # is the event.h header libev or libevent? 19312 for ac_header in event.h 19313do : 19314 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 19315" 19316if test "x$ac_cv_header_event_h" = xyes; then : 19317 cat >>confdefs.h <<_ACEOF 19318#define HAVE_EVENT_H 1 19319_ACEOF 19320 19321fi 19322 19323done 19324 19325 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 19326#include <event.h> 19327 19328" 19329if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then : 19330 19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 19332$as_echo_n "checking for library containing event_set... " >&6; } 19333if ${ac_cv_search_event_set+:} false; then : 19334 $as_echo_n "(cached) " >&6 19335else 19336 ac_func_search_save_LIBS=$LIBS 19337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19338/* end confdefs.h. */ 19339 19340/* Override any GCC internal prototype to avoid an error. 19341 Use char because int might match the return type of a GCC 19342 builtin and then its argument prototype would still apply. */ 19343#ifdef __cplusplus 19344extern "C" 19345#endif 19346char event_set (); 19347int 19348main () 19349{ 19350return event_set (); 19351 ; 19352 return 0; 19353} 19354_ACEOF 19355for ac_lib in '' ev; do 19356 if test -z "$ac_lib"; then 19357 ac_res="none required" 19358 else 19359 ac_res=-l$ac_lib 19360 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19361 fi 19362 if ac_fn_c_try_link "$LINENO"; then : 19363 ac_cv_search_event_set=$ac_res 19364fi 19365rm -f core conftest.err conftest.$ac_objext \ 19366 conftest$ac_exeext 19367 if ${ac_cv_search_event_set+:} false; then : 19368 break 19369fi 19370done 19371if ${ac_cv_search_event_set+:} false; then : 19372 19373else 19374 ac_cv_search_event_set=no 19375fi 19376rm conftest.$ac_ext 19377LIBS=$ac_func_search_save_LIBS 19378fi 19379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 19380$as_echo "$ac_cv_search_event_set" >&6; } 19381ac_res=$ac_cv_search_event_set 19382if test "$ac_res" != no; then : 19383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19384 19385fi 19386 19387 19388else 19389 19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 19391$as_echo_n "checking for library containing event_set... " >&6; } 19392if ${ac_cv_search_event_set+:} false; then : 19393 $as_echo_n "(cached) " >&6 19394else 19395 ac_func_search_save_LIBS=$LIBS 19396cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19397/* end confdefs.h. */ 19398 19399/* Override any GCC internal prototype to avoid an error. 19400 Use char because int might match the return type of a GCC 19401 builtin and then its argument prototype would still apply. */ 19402#ifdef __cplusplus 19403extern "C" 19404#endif 19405char event_set (); 19406int 19407main () 19408{ 19409return event_set (); 19410 ; 19411 return 0; 19412} 19413_ACEOF 19414for ac_lib in '' event; do 19415 if test -z "$ac_lib"; then 19416 ac_res="none required" 19417 else 19418 ac_res=-l$ac_lib 19419 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19420 fi 19421 if ac_fn_c_try_link "$LINENO"; then : 19422 ac_cv_search_event_set=$ac_res 19423fi 19424rm -f core conftest.err conftest.$ac_objext \ 19425 conftest$ac_exeext 19426 if ${ac_cv_search_event_set+:} false; then : 19427 break 19428fi 19429done 19430if ${ac_cv_search_event_set+:} false; then : 19431 19432else 19433 ac_cv_search_event_set=no 19434fi 19435rm conftest.$ac_ext 19436LIBS=$ac_func_search_save_LIBS 19437fi 19438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 19439$as_echo "$ac_cv_search_event_set" >&6; } 19440ac_res=$ac_cv_search_event_set 19441if test "$ac_res" != no; then : 19442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19443 19444fi 19445 19446 19447fi 19448 19449 for ac_func in event_base_free 19450do : 19451 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 19452if test "x$ac_cv_func_event_base_free" = xyes; then : 19453 cat >>confdefs.h <<_ACEOF 19454#define HAVE_EVENT_BASE_FREE 1 19455_ACEOF 19456 19457fi 19458done 19459 # only in libevent 1.2 and later 19460 for ac_func in event_base_once 19461do : 19462 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 19463if test "x$ac_cv_func_event_base_once" = xyes; then : 19464 cat >>confdefs.h <<_ACEOF 19465#define HAVE_EVENT_BASE_ONCE 1 19466_ACEOF 19467 19468fi 19469done 19470 # only in libevent 1.4.1 and later 19471 for ac_func in event_base_new 19472do : 19473 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 19474if test "x$ac_cv_func_event_base_new" = xyes; then : 19475 cat >>confdefs.h <<_ACEOF 19476#define HAVE_EVENT_BASE_NEW 1 19477_ACEOF 19478 19479fi 19480done 19481 # only in libevent 1.4.1 and later 19482 for ac_func in event_base_get_method 19483do : 19484 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 19485if test "x$ac_cv_func_event_base_get_method" = xyes; then : 19486 cat >>confdefs.h <<_ACEOF 19487#define HAVE_EVENT_BASE_GET_METHOD 1 19488_ACEOF 19489 19490fi 19491done 19492 # only in libevent 1.4.3 and later 19493 for ac_func in ev_loop 19494do : 19495 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 19496if test "x$ac_cv_func_ev_loop" = xyes; then : 19497 cat >>confdefs.h <<_ACEOF 19498#define HAVE_EV_LOOP 1 19499_ACEOF 19500 19501fi 19502done 19503 # only in libev. (tested on 3.51) 19504 for ac_func in ev_default_loop 19505do : 19506 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 19507if test "x$ac_cv_func_ev_default_loop" = xyes; then : 19508 cat >>confdefs.h <<_ACEOF 19509#define HAVE_EV_DEFAULT_LOOP 1 19510_ACEOF 19511 19512fi 19513done 19514 # only in libev. (tested on 4.00) 19515 for ac_func in event_assign 19516do : 19517 ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign" 19518if test "x$ac_cv_func_event_assign" = xyes; then : 19519 cat >>confdefs.h <<_ACEOF 19520#define HAVE_EVENT_ASSIGN 1 19521_ACEOF 19522 19523fi 19524done 19525 # in libevent, for thread-safety 19526 ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default 19527#ifdef HAVE_EVENT_H 19528# include <event.h> 19529#else 19530# include \"event2/event.h\" 19531#endif 19532 19533" 19534if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then : 19535 ac_have_decl=1 19536else 19537 ac_have_decl=0 19538fi 19539 19540cat >>confdefs.h <<_ACEOF 19541#define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl 19542_ACEOF 19543 19544 PC_LIBEVENT_DEPENDENCY="libevent" 19545 19546 if test -n "$BAK_LDFLAGS_SET"; then 19547 LDFLAGS="$BAK_LDFLAGS" 19548 fi 19549else 19550 19551$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h 19552 19553fi 19554 19555# check for libexpat 19556 19557# Check whether --with-libexpat was given. 19558if test "${with_libexpat+set}" = set; then : 19559 withval=$with_libexpat; 19560else 19561 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19562fi 19563 19564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 19565$as_echo_n "checking for libexpat... " >&6; } 19566found_libexpat="no" 19567for dir in $withval ; do 19568 if test -f "$dir/include/expat.h"; then 19569 found_libexpat="yes" 19570 if test "$dir" != "/usr"; then 19571 CPPFLAGS="$CPPFLAGS -I$dir/include" 19572 LDFLAGS="$LDFLAGS -L$dir/lib" 19573 fi 19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 19575$as_echo "found in $dir" >&6; } 19576 break; 19577 fi 19578done 19579if test x_$found_libexpat != x_yes; then 19580 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5 19581fi 19582for ac_header in expat.h 19583do : 19584 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default 19585" 19586if test "x$ac_cv_header_expat_h" = xyes; then : 19587 cat >>confdefs.h <<_ACEOF 19588#define HAVE_EXPAT_H 1 19589_ACEOF 19590 19591fi 19592 19593done 19594 19595ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default 19596#include <expat.h> 19597 19598" 19599if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then : 19600 ac_have_decl=1 19601else 19602 ac_have_decl=0 19603fi 19604 19605cat >>confdefs.h <<_ACEOF 19606#define HAVE_DECL_XML_STOPPARSER $ac_have_decl 19607_ACEOF 19608 19609 19610# hiredis (redis C client for cachedb) 19611 19612# Check whether --with-libhiredis was given. 19613if test "${with_libhiredis+set}" = set; then : 19614 withval=$with_libhiredis; 19615else 19616 withval="no" 19617fi 19618 19619found_libhiredis="no" 19620if test x_$withval = x_yes -o x_$withval != x_no; then 19621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5 19622$as_echo_n "checking for libhiredis... " >&6; } 19623 if test x_$withval = x_ -o x_$withval = x_yes; then 19624 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19625 fi 19626 for dir in $withval ; do 19627 if test -f "$dir/include/hiredis/hiredis.h"; then 19628 found_libhiredis="yes" 19629 if test "$dir" != "/usr"; then 19630 CPPFLAGS="$CPPFLAGS -I$dir/include" 19631 LDFLAGS="$LDFLAGS -L$dir/lib" 19632 fi 19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 19634$as_echo "found in $dir" >&6; } 19635 19636$as_echo "#define USE_REDIS 1" >>confdefs.h 19637 19638 LIBS="$LIBS -lhiredis" 19639 break; 19640 fi 19641 done 19642 if test x_$found_libhiredis != x_yes; then 19643 as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5 19644 fi 19645 for ac_header in hiredis/hiredis.h 19646do : 19647 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default 19648" 19649if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then : 19650 cat >>confdefs.h <<_ACEOF 19651#define HAVE_HIREDIS_HIREDIS_H 1 19652_ACEOF 19653 19654fi 19655 19656done 19657 19658 ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default 19659 #include <hiredis/hiredis.h> 19660 19661" 19662if test "x$ac_cv_have_decl_redisConnect" = xyes; then : 19663 ac_have_decl=1 19664else 19665 ac_have_decl=0 19666fi 19667 19668cat >>confdefs.h <<_ACEOF 19669#define HAVE_DECL_REDISCONNECT $ac_have_decl 19670_ACEOF 19671 19672fi 19673 19674# nghttp2 19675 19676# Check whether --with-libnghttp2 was given. 19677if test "${with_libnghttp2+set}" = set; then : 19678 withval=$with_libnghttp2; 19679else 19680 withval="no" 19681fi 19682 19683found_libnghttp2="no" 19684if test x_$withval = x_yes -o x_$withval != x_no; then 19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5 19686$as_echo_n "checking for libnghttp2... " >&6; } 19687 if test x_$withval = x_ -o x_$withval = x_yes; then 19688 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 19689 fi 19690 for dir in $withval ; do 19691 if test -f "$dir/include/nghttp2/nghttp2.h"; then 19692 found_libnghttp2="yes" 19693 if test "$dir" != "/usr"; then 19694 CPPFLAGS="$CPPFLAGS -I$dir/include" 19695 LDFLAGS="$LDFLAGS -L$dir/lib" 19696 fi 19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 19698$as_echo "found in $dir" >&6; } 19699 19700$as_echo "#define HAVE_NGHTTP2 1" >>confdefs.h 19701 19702 LIBS="$LIBS -lnghttp2" 19703 break; 19704 fi 19705 done 19706 if test x_$found_libnghttp2 != x_yes; then 19707 as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5 19708 fi 19709 for ac_header in nghttp2/nghttp2.h 19710do : 19711 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default 19712" 19713if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then : 19714 cat >>confdefs.h <<_ACEOF 19715#define HAVE_NGHTTP2_NGHTTP2_H 1 19716_ACEOF 19717 19718fi 19719 19720done 19721 19722 ac_fn_c_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default 19723 #include <nghttp2/nghttp2.h> 19724 19725" 19726if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes; then : 19727 ac_have_decl=1 19728else 19729 ac_have_decl=0 19730fi 19731 19732cat >>confdefs.h <<_ACEOF 19733#define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl 19734_ACEOF 19735 19736fi 19737 19738# set static linking for uninstalled libraries if requested 19739 19740staticexe="" 19741# Check whether --enable-static-exe was given. 19742if test "${enable_static_exe+set}" = set; then : 19743 enableval=$enable_static_exe; 19744fi 19745 19746if test x_$enable_static_exe = x_yes; then 19747 staticexe="-static" 19748 if test "$on_mingw" = yes; then 19749 staticexe="-all-static" 19750 # for static compile, include gdi32 and zlib here. 19751 if echo $LIBS | grep 'lgdi32' >/dev/null; then 19752 : 19753 else 19754 LIBS="$LIBS -lgdi32" 19755 fi 19756 LIBS="$LIBS -lz" 19757 fi 19758fi 19759 19760# set full static linking if requested 19761# Check whether --enable-fully-static was given. 19762if test "${enable_fully_static+set}" = set; then : 19763 enableval=$enable_fully_static; 19764fi 19765 19766if test x_$enable_fully_static = x_yes; then 19767 staticexe="-all-static" 19768 if test "$on_mingw" = yes; then 19769 # for static compile, include gdi32 and zlib here. 19770 if echo $LIBS | grep 'lgdi32' >/dev/null; then 19771 : 19772 else 19773 LIBS="$LIBS -lgdi32" 19774 fi 19775 LIBS="$LIBS -lz" 19776 fi 19777fi 19778 19779# set lock checking if requested 19780# Check whether --enable-lock_checks was given. 19781if test "${enable_lock_checks+set}" = set; then : 19782 enableval=$enable_lock_checks; 19783fi 19784 19785if test x_$enable_lock_checks = x_yes; then 19786 19787$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h 19788 19789 CHECKLOCK_OBJ="checklocks.lo" 19790 19791fi 19792 19793 19794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 19795$as_echo_n "checking for getaddrinfo... " >&6; } 19796ac_cv_func_getaddrinfo=no 19797cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19798/* end confdefs.h. */ 19799 19800#ifdef __cplusplus 19801extern "C" 19802{ 19803#endif 19804char* getaddrinfo(); 19805char* (*f) () = getaddrinfo; 19806#ifdef __cplusplus 19807} 19808#endif 19809int main() { 19810 ; 19811 return 0; 19812} 19813 19814_ACEOF 19815if ac_fn_c_try_link "$LINENO"; then : 19816 ac_cv_func_getaddrinfo="yes" 19817if test "$ac_cv_header_windows_h" = "yes"; then 19818 19819$as_echo "#define USE_WINSOCK 1" >>confdefs.h 19820 19821 USE_WINSOCK="1" 19822 if echo $LIBS | grep 'lws2_32' >/dev/null; then 19823 : 19824 else 19825 LIBS="$LIBS -lws2_32" 19826 fi 19827fi 19828 19829else 19830 ORIGLIBS="$LIBS" 19831LIBS="$LIBS -lws2_32" 19832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19833/* end confdefs.h. */ 19834 19835#ifdef HAVE_WS2TCPIP_H 19836#include <ws2tcpip.h> 19837#endif 19838 19839int 19840main () 19841{ 19842 19843 (void)getaddrinfo(NULL, NULL, NULL, NULL); 19844 19845 19846 ; 19847 return 0; 19848} 19849_ACEOF 19850if ac_fn_c_try_link "$LINENO"; then : 19851 19852ac_cv_func_getaddrinfo="yes" 19853 19854$as_echo "#define USE_WINSOCK 1" >>confdefs.h 19855 19856USE_WINSOCK="1" 19857 19858else 19859 19860ac_cv_func_getaddrinfo="no" 19861LIBS="$ORIGLIBS" 19862 19863fi 19864rm -f core conftest.err conftest.$ac_objext \ 19865 conftest$ac_exeext conftest.$ac_ext 19866 19867fi 19868rm -f core conftest.err conftest.$ac_objext \ 19869 conftest$ac_exeext conftest.$ac_ext 19870 19871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 19872$as_echo "$ac_cv_func_getaddrinfo" >&6; } 19873if test $ac_cv_func_getaddrinfo = yes; then 19874 19875$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 19876 19877fi 19878 19879if test "$USE_WINSOCK" = 1; then 19880 19881$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h 19882 19883 for ac_header in iphlpapi.h 19884do : 19885 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default 19886#include <windows.h> 19887 19888" 19889if test "x$ac_cv_header_iphlpapi_h" = xyes; then : 19890 cat >>confdefs.h <<_ACEOF 19891#define HAVE_IPHLPAPI_H 1 19892_ACEOF 19893 19894fi 19895 19896done 19897 19898 if test -n "$ac_tool_prefix"; then 19899 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 19900set dummy ${ac_tool_prefix}windres; ac_word=$2 19901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19902$as_echo_n "checking for $ac_word... " >&6; } 19903if ${ac_cv_prog_WINDRES+:} false; then : 19904 $as_echo_n "(cached) " >&6 19905else 19906 if test -n "$WINDRES"; then 19907 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 19908else 19909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19910for as_dir in $PATH 19911do 19912 IFS=$as_save_IFS 19913 test -z "$as_dir" && as_dir=. 19914 for ac_exec_ext in '' $ac_executable_extensions; do 19915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19916 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 19917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19918 break 2 19919 fi 19920done 19921 done 19922IFS=$as_save_IFS 19923 19924fi 19925fi 19926WINDRES=$ac_cv_prog_WINDRES 19927if test -n "$WINDRES"; then 19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 19929$as_echo "$WINDRES" >&6; } 19930else 19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19932$as_echo "no" >&6; } 19933fi 19934 19935 19936fi 19937if test -z "$ac_cv_prog_WINDRES"; then 19938 ac_ct_WINDRES=$WINDRES 19939 # Extract the first word of "windres", so it can be a program name with args. 19940set dummy windres; ac_word=$2 19941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19942$as_echo_n "checking for $ac_word... " >&6; } 19943if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 19944 $as_echo_n "(cached) " >&6 19945else 19946 if test -n "$ac_ct_WINDRES"; then 19947 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 19948else 19949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19950for as_dir in $PATH 19951do 19952 IFS=$as_save_IFS 19953 test -z "$as_dir" && as_dir=. 19954 for ac_exec_ext in '' $ac_executable_extensions; do 19955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19956 ac_cv_prog_ac_ct_WINDRES="windres" 19957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19958 break 2 19959 fi 19960done 19961 done 19962IFS=$as_save_IFS 19963 19964fi 19965fi 19966ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 19967if test -n "$ac_ct_WINDRES"; then 19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 19969$as_echo "$ac_ct_WINDRES" >&6; } 19970else 19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19972$as_echo "no" >&6; } 19973fi 19974 19975 if test "x$ac_ct_WINDRES" = x; then 19976 WINDRES="" 19977 else 19978 case $cross_compiling:$ac_tool_warned in 19979yes:) 19980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19982ac_tool_warned=yes ;; 19983esac 19984 WINDRES=$ac_ct_WINDRES 19985 fi 19986else 19987 WINDRES="$ac_cv_prog_WINDRES" 19988fi 19989 19990 LIBS="$LIBS -liphlpapi -lcrypt32" 19991 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe" 19992 19993 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c" 19994 19995 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo" 19996 19997 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o" 19998 19999 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o" 20000 20001 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo" 20002 20003 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o" 20004 20005 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o" 20006 20007fi 20008if test $ac_cv_func_getaddrinfo = no; then 20009 case " $LIBOBJS " in 20010 *" fake-rfc2553.$ac_objext "* ) ;; 20011 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 20012 ;; 20013esac 20014 20015fi 20016# check after getaddrinfo for its libraries 20017 20018# check ioctlsocket 20019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 20020$as_echo_n "checking for ioctlsocket... " >&6; } 20021cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20022/* end confdefs.h. */ 20023 20024#ifdef HAVE_WINSOCK2_H 20025#include <winsock2.h> 20026#endif 20027 20028int 20029main () 20030{ 20031 20032 (void)ioctlsocket(0, 0, NULL); 20033 20034 ; 20035 return 0; 20036} 20037_ACEOF 20038if ac_fn_c_try_link "$LINENO"; then : 20039 20040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20041$as_echo "yes" >&6; } 20042 20043$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 20044 20045 20046else 20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20048$as_echo "no" >&6; } 20049fi 20050rm -f core conftest.err conftest.$ac_objext \ 20051 conftest$ac_exeext conftest.$ac_ext 20052 20053 20054# see if daemon(3) exists, and if it is deprecated. 20055for ac_func in daemon 20056do : 20057 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 20058if test "x$ac_cv_func_daemon" = xyes; then : 20059 cat >>confdefs.h <<_ACEOF 20060#define HAVE_DAEMON 1 20061_ACEOF 20062 20063fi 20064done 20065 20066if test $ac_cv_func_daemon = yes; then 20067 20068 20069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5 20070$as_echo_n "checking if daemon is deprecated... " >&6; } 20071cache=`echo daemon | sed 'y%.=/+-%___p_%'` 20072if eval \${cv_cc_deprecated_$cache+:} false; then : 20073 $as_echo_n "(cached) " >&6 20074else 20075 20076echo ' 20077#include <stdlib.h> 20078' >conftest.c 20079echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c 20080if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then 20081eval "cv_cc_deprecated_$cache=no" 20082else 20083eval "cv_cc_deprecated_$cache=yes" 20084fi 20085rm -f conftest conftest.o conftest.c 20086 20087fi 20088 20089if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 20090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20091$as_echo "yes" >&6; } 20092 20093cat >>confdefs.h <<_ACEOF 20094#define DEPRECATED_DAEMON 1 20095_ACEOF 20096 20097: 20098 20099else 20100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20101$as_echo "no" >&6; } 20102: 20103 20104fi 20105 20106fi 20107 20108ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " 20109$ac_includes_default 20110#ifdef HAVE_SYS_UN_H 20111#include <sys/un.h> 20112#endif 20113 20114" 20115if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : 20116 20117cat >>confdefs.h <<_ACEOF 20118#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 20119_ACEOF 20120 20121 20122fi 20123 20124ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" " 20125$ac_includes_default 20126#if HAVE_SYS_PARAM_H 20127#include <sys/param.h> 20128#endif 20129 20130#ifdef HAVE_SYS_SOCKET_H 20131#include <sys/socket.h> 20132#endif 20133 20134#ifdef HAVE_SYS_UIO_H 20135#include <sys/uio.h> 20136#endif 20137 20138#ifdef HAVE_NETINET_IN_H 20139#include <netinet/in.h> 20140#endif 20141 20142#ifdef HAVE_NETINET_TCP_H 20143#include <netinet/tcp.h> 20144#endif 20145 20146#ifdef HAVE_ARPA_INET_H 20147#include <arpa/inet.h> 20148#endif 20149 20150#ifdef HAVE_WINSOCK2_H 20151#include <winsock2.h> 20152#endif 20153 20154#ifdef HAVE_WS2TCPIP_H 20155#include <ws2tcpip.h> 20156#endif 20157 20158" 20159if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then : 20160 20161cat >>confdefs.h <<_ACEOF 20162#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1 20163_ACEOF 20164 20165 20166fi 20167 20168 20169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5 20170$as_echo_n "checking for htobe64... " >&6; } 20171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20172/* end confdefs.h. */ 20173 20174#include <stdio.h> 20175#ifdef HAVE_ENDIAN_H 20176# include <endian.h> 20177#endif 20178#ifdef HAVE_SYS_ENDIAN_H 20179# include <sys/endian.h> 20180#endif 20181 20182int 20183main () 20184{ 20185unsigned long long x = htobe64(0); printf("%u", (unsigned)x); 20186 ; 20187 return 0; 20188} 20189_ACEOF 20190if ac_fn_c_try_link "$LINENO"; then : 20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20192$as_echo "yes" >&6; } 20193 20194$as_echo "#define HAVE_HTOBE64 1" >>confdefs.h 20195 20196else 20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20198$as_echo "no" >&6; } 20199fi 20200rm -f core conftest.err conftest.$ac_objext \ 20201 conftest$ac_exeext conftest.$ac_ext 20202 20203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5 20204$as_echo_n "checking for be64toh... " >&6; } 20205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20206/* end confdefs.h. */ 20207 20208#include <stdio.h> 20209#ifdef HAVE_ENDIAN_H 20210# include <endian.h> 20211#endif 20212#ifdef HAVE_SYS_ENDIAN_H 20213# include <sys/endian.h> 20214#endif 20215 20216int 20217main () 20218{ 20219unsigned long long x = be64toh(0); printf("%u", (unsigned)x); 20220 ; 20221 return 0; 20222} 20223_ACEOF 20224if ac_fn_c_try_link "$LINENO"; then : 20225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20226$as_echo "yes" >&6; } 20227 20228$as_echo "#define HAVE_BE64TOH 1" >>confdefs.h 20229 20230else 20231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20232$as_echo "no" >&6; } 20233fi 20234rm -f core conftest.err conftest.$ac_objext \ 20235 conftest$ac_exeext conftest.$ac_ext 20236 20237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 20238$as_echo_n "checking for library containing setusercontext... " >&6; } 20239if ${ac_cv_search_setusercontext+:} false; then : 20240 $as_echo_n "(cached) " >&6 20241else 20242 ac_func_search_save_LIBS=$LIBS 20243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20244/* end confdefs.h. */ 20245 20246/* Override any GCC internal prototype to avoid an error. 20247 Use char because int might match the return type of a GCC 20248 builtin and then its argument prototype would still apply. */ 20249#ifdef __cplusplus 20250extern "C" 20251#endif 20252char setusercontext (); 20253int 20254main () 20255{ 20256return setusercontext (); 20257 ; 20258 return 0; 20259} 20260_ACEOF 20261for ac_lib in '' util; do 20262 if test -z "$ac_lib"; then 20263 ac_res="none required" 20264 else 20265 ac_res=-l$ac_lib 20266 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20267 fi 20268 if ac_fn_c_try_link "$LINENO"; then : 20269 ac_cv_search_setusercontext=$ac_res 20270fi 20271rm -f core conftest.err conftest.$ac_objext \ 20272 conftest$ac_exeext 20273 if ${ac_cv_search_setusercontext+:} false; then : 20274 break 20275fi 20276done 20277if ${ac_cv_search_setusercontext+:} false; then : 20278 20279else 20280 ac_cv_search_setusercontext=no 20281fi 20282rm conftest.$ac_ext 20283LIBS=$ac_func_search_save_LIBS 20284fi 20285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 20286$as_echo "$ac_cv_search_setusercontext" >&6; } 20287ac_res=$ac_cv_search_setusercontext 20288if test "$ac_res" != no; then : 20289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20290 20291fi 20292 20293for 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 20294do : 20295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20296ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20297if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20298 cat >>confdefs.h <<_ACEOF 20299#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20300_ACEOF 20301 20302fi 20303done 20304 20305for ac_func in setresuid 20306do : 20307 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 20308if test "x$ac_cv_func_setresuid" = xyes; then : 20309 cat >>confdefs.h <<_ACEOF 20310#define HAVE_SETRESUID 1 20311_ACEOF 20312 20313else 20314 for ac_func in setreuid 20315do : 20316 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 20317if test "x$ac_cv_func_setreuid" = xyes; then : 20318 cat >>confdefs.h <<_ACEOF 20319#define HAVE_SETREUID 1 20320_ACEOF 20321 20322fi 20323done 20324 20325fi 20326done 20327 20328for ac_func in setresgid 20329do : 20330 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 20331if test "x$ac_cv_func_setresgid" = xyes; then : 20332 cat >>confdefs.h <<_ACEOF 20333#define HAVE_SETRESGID 1 20334_ACEOF 20335 20336else 20337 for ac_func in setregid 20338do : 20339 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 20340if test "x$ac_cv_func_setregid" = xyes; then : 20341 cat >>confdefs.h <<_ACEOF 20342#define HAVE_SETREGID 1 20343_ACEOF 20344 20345fi 20346done 20347 20348fi 20349done 20350 20351 20352# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 20353if echo $target_os | grep darwin8 > /dev/null; then 20354 20355$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 20356 20357fi 20358ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" " 20359$ac_includes_default 20360#ifdef HAVE_NETINET_IN_H 20361#include <netinet/in.h> 20362#endif 20363 20364#ifdef HAVE_NETINET_TCP_H 20365#include <netinet/tcp.h> 20366#endif 20367 20368#ifdef HAVE_ARPA_INET_H 20369#include <arpa/inet.h> 20370#endif 20371 20372#ifdef HAVE_WINSOCK2_H 20373#include <winsock2.h> 20374#endif 20375 20376#ifdef HAVE_WS2TCPIP_H 20377#include <ws2tcpip.h> 20378#endif 20379 20380" 20381if test "x$ac_cv_have_decl_inet_pton" = xyes; then : 20382 ac_have_decl=1 20383else 20384 ac_have_decl=0 20385fi 20386 20387cat >>confdefs.h <<_ACEOF 20388#define HAVE_DECL_INET_PTON $ac_have_decl 20389_ACEOF 20390ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" " 20391$ac_includes_default 20392#ifdef HAVE_NETINET_IN_H 20393#include <netinet/in.h> 20394#endif 20395 20396#ifdef HAVE_NETINET_TCP_H 20397#include <netinet/tcp.h> 20398#endif 20399 20400#ifdef HAVE_ARPA_INET_H 20401#include <arpa/inet.h> 20402#endif 20403 20404#ifdef HAVE_WINSOCK2_H 20405#include <winsock2.h> 20406#endif 20407 20408#ifdef HAVE_WS2TCPIP_H 20409#include <ws2tcpip.h> 20410#endif 20411 20412" 20413if test "x$ac_cv_have_decl_inet_ntop" = xyes; then : 20414 ac_have_decl=1 20415else 20416 ac_have_decl=0 20417fi 20418 20419cat >>confdefs.h <<_ACEOF 20420#define HAVE_DECL_INET_NTOP $ac_have_decl 20421_ACEOF 20422 20423ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 20424if test "x$ac_cv_func_inet_aton" = xyes; then : 20425 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 20426 20427else 20428 case " $LIBOBJS " in 20429 *" inet_aton.$ac_objext "* ) ;; 20430 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 20431 ;; 20432esac 20433 20434fi 20435 20436 20437ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 20438if test "x$ac_cv_func_inet_pton" = xyes; then : 20439 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 20440 20441else 20442 case " $LIBOBJS " in 20443 *" inet_pton.$ac_objext "* ) ;; 20444 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 20445 ;; 20446esac 20447 20448fi 20449 20450 20451ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 20452if test "x$ac_cv_func_inet_ntop" = xyes; then : 20453 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 20454 20455else 20456 case " $LIBOBJS " in 20457 *" inet_ntop.$ac_objext "* ) ;; 20458 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 20459 ;; 20460esac 20461 20462fi 20463 20464 20465ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 20466if test "x$ac_cv_func_snprintf" = xyes; then : 20467 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 20468 20469else 20470 case " $LIBOBJS " in 20471 *" snprintf.$ac_objext "* ) ;; 20472 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20473 ;; 20474esac 20475 20476fi 20477 20478 20479# test if snprintf return the proper length 20480if test "x$ac_cv_func_snprintf" = xyes; then 20481 if test c${cross_compiling} = cno; then 20482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5 20483$as_echo_n "checking for correct snprintf return value... " >&6; } 20484 if test "$cross_compiling" = yes; then : 20485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20487as_fn_error $? "cannot run test program while cross compiling 20488See \`config.log' for more details" "$LINENO" 5; } 20489else 20490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20491/* end confdefs.h. */ 20492$ac_includes_default 20493 20494int main(void) { return !(snprintf(NULL, 0, "test") == 4); } 20495 20496_ACEOF 20497if ac_fn_c_try_run "$LINENO"; then : 20498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20499$as_echo "yes" >&6; } 20500else 20501 20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20503$as_echo "no" >&6; } 20504 20505$as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h 20506 20507 case " $LIBOBJS " in 20508 *" snprintf.$ac_objext "* ) ;; 20509 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20510 ;; 20511esac 20512 20513 20514fi 20515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20516 conftest.$ac_objext conftest.beam conftest.$ac_ext 20517fi 20518 20519 fi 20520fi 20521ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 20522if test "x$ac_cv_func_strlcat" = xyes; then : 20523 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 20524 20525else 20526 case " $LIBOBJS " in 20527 *" strlcat.$ac_objext "* ) ;; 20528 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 20529 ;; 20530esac 20531 20532fi 20533 20534 20535ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20536if test "x$ac_cv_func_strlcpy" = xyes; then : 20537 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 20538 20539else 20540 case " $LIBOBJS " in 20541 *" strlcpy.$ac_objext "* ) ;; 20542 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 20543 ;; 20544esac 20545 20546fi 20547 20548 20549ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 20550if test "x$ac_cv_func_memmove" = xyes; then : 20551 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 20552 20553else 20554 case " $LIBOBJS " in 20555 *" memmove.$ac_objext "* ) ;; 20556 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 20557 ;; 20558esac 20559 20560fi 20561 20562 20563ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 20564if test "x$ac_cv_func_gmtime_r" = xyes; then : 20565 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 20566 20567else 20568 case " $LIBOBJS " in 20569 *" gmtime_r.$ac_objext "* ) ;; 20570 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 20571 ;; 20572esac 20573 20574fi 20575 20576 20577ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" 20578if test "x$ac_cv_func_isblank" = xyes; then : 20579 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h 20580 20581else 20582 case " $LIBOBJS " in 20583 *" isblank.$ac_objext "* ) ;; 20584 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 20585 ;; 20586esac 20587 20588fi 20589 20590 20591ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 20592if test "x$ac_cv_func_explicit_bzero" = xyes; then : 20593 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 20594 20595else 20596 case " $LIBOBJS " in 20597 *" explicit_bzero.$ac_objext "* ) ;; 20598 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" 20599 ;; 20600esac 20601 20602fi 20603 20604 20605LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS" 20606 20607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5 20608$as_echo_n "checking for reallocarray... " >&6; } 20609cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20610/* end confdefs.h. */ 20611$ac_includes_default 20612 20613#ifndef _OPENBSD_SOURCE 20614#define _OPENBSD_SOURCE 1 20615#endif 20616#include <stdlib.h> 20617int main(void) { 20618 void* p = reallocarray(NULL, 10, 100); 20619 free(p); 20620 return 0; 20621} 20622 20623_ACEOF 20624if ac_fn_c_try_link "$LINENO"; then : 20625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20626$as_echo "yes" >&6; } 20627 20628$as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h 20629 20630 20631else 20632 20633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20634$as_echo "no" >&6; } 20635 case " $LIBOBJS " in 20636 *" reallocarray.$ac_objext "* ) ;; 20637 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 20638 ;; 20639esac 20640 20641 20642fi 20643rm -f core conftest.err conftest.$ac_objext \ 20644 conftest$ac_exeext conftest.$ac_ext 20645ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default" 20646if test "x$ac_cv_have_decl_reallocarray" = xyes; then : 20647 ac_have_decl=1 20648else 20649 ac_have_decl=0 20650fi 20651 20652cat >>confdefs.h <<_ACEOF 20653#define HAVE_DECL_REALLOCARRAY $ac_have_decl 20654_ACEOF 20655 20656if test "$USE_NSS" = "no"; then 20657 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 20658if test "x$ac_cv_func_arc4random" = xyes; then : 20659 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h 20660 20661else 20662 case " $LIBOBJS " in 20663 *" arc4random.$ac_objext "* ) ;; 20664 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext" 20665 ;; 20666esac 20667 20668fi 20669 20670 20671 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform" 20672if test "x$ac_cv_func_arc4random_uniform" = xyes; then : 20673 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h 20674 20675else 20676 case " $LIBOBJS " in 20677 *" arc4random_uniform.$ac_objext "* ) ;; 20678 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext" 20679 ;; 20680esac 20681 20682fi 20683 20684 20685 if test "$ac_cv_func_arc4random" = "no"; then 20686 case " $LIBOBJS " in 20687 *" arc4_lock.$ac_objext "* ) ;; 20688 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext" 20689 ;; 20690esac 20691 20692 for ac_func in getentropy 20693do : 20694 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 20695if test "x$ac_cv_func_getentropy" = xyes; then : 20696 cat >>confdefs.h <<_ACEOF 20697#define HAVE_GETENTROPY 1 20698_ACEOF 20699 20700else 20701 20702 if test "$USE_WINSOCK" = 1; then 20703 case " $LIBOBJS " in 20704 *" getentropy_win.$ac_objext "* ) ;; 20705 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext" 20706 ;; 20707esac 20708 20709 else 20710 case "$host" in 20711 Darwin|*darwin*) 20712 case " $LIBOBJS " in 20713 *" getentropy_osx.$ac_objext "* ) ;; 20714 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext" 20715 ;; 20716esac 20717 20718 ;; 20719 *solaris*|*sunos*|SunOS) 20720 case " $LIBOBJS " in 20721 *" getentropy_solaris.$ac_objext "* ) ;; 20722 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext" 20723 ;; 20724esac 20725 20726 for ac_header in sys/sha2.h 20727do : 20728 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default 20729" 20730if test "x$ac_cv_header_sys_sha2_h" = xyes; then : 20731 cat >>confdefs.h <<_ACEOF 20732#define HAVE_SYS_SHA2_H 1 20733_ACEOF 20734 20735else 20736 20737 for ac_func in SHA512_Update 20738do : 20739 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 20740if test "x$ac_cv_func_SHA512_Update" = xyes; then : 20741 cat >>confdefs.h <<_ACEOF 20742#define HAVE_SHA512_UPDATE 1 20743_ACEOF 20744 20745else 20746 20747 case " $LIBOBJS " in 20748 *" sha512.$ac_objext "* ) ;; 20749 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 20750 ;; 20751esac 20752 20753 20754fi 20755done 20756 20757 20758fi 20759 20760done 20761 20762 if test "$ac_cv_header_sys_sha2_h" = "yes"; then 20763 # this lib needed for sha2 on solaris 20764 LIBS="$LIBS -lmd" 20765 fi 20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 20767$as_echo_n "checking for library containing clock_gettime... " >&6; } 20768if ${ac_cv_search_clock_gettime+:} false; then : 20769 $as_echo_n "(cached) " >&6 20770else 20771 ac_func_search_save_LIBS=$LIBS 20772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20773/* end confdefs.h. */ 20774 20775/* Override any GCC internal prototype to avoid an error. 20776 Use char because int might match the return type of a GCC 20777 builtin and then its argument prototype would still apply. */ 20778#ifdef __cplusplus 20779extern "C" 20780#endif 20781char clock_gettime (); 20782int 20783main () 20784{ 20785return clock_gettime (); 20786 ; 20787 return 0; 20788} 20789_ACEOF 20790for ac_lib in '' rt; do 20791 if test -z "$ac_lib"; then 20792 ac_res="none required" 20793 else 20794 ac_res=-l$ac_lib 20795 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20796 fi 20797 if ac_fn_c_try_link "$LINENO"; then : 20798 ac_cv_search_clock_gettime=$ac_res 20799fi 20800rm -f core conftest.err conftest.$ac_objext \ 20801 conftest$ac_exeext 20802 if ${ac_cv_search_clock_gettime+:} false; then : 20803 break 20804fi 20805done 20806if ${ac_cv_search_clock_gettime+:} false; then : 20807 20808else 20809 ac_cv_search_clock_gettime=no 20810fi 20811rm conftest.$ac_ext 20812LIBS=$ac_func_search_save_LIBS 20813fi 20814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 20815$as_echo "$ac_cv_search_clock_gettime" >&6; } 20816ac_res=$ac_cv_search_clock_gettime 20817if test "$ac_res" != no; then : 20818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20819 20820fi 20821 20822 ;; 20823 *freebsd*|*FreeBSD) 20824 case " $LIBOBJS " in 20825 *" getentropy_freebsd.$ac_objext "* ) ;; 20826 *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext" 20827 ;; 20828esac 20829 20830 ;; 20831 *linux*|Linux|*) 20832 case " $LIBOBJS " in 20833 *" getentropy_linux.$ac_objext "* ) ;; 20834 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext" 20835 ;; 20836esac 20837 20838 for ac_func in SHA512_Update 20839do : 20840 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 20841if test "x$ac_cv_func_SHA512_Update" = xyes; then : 20842 cat >>confdefs.h <<_ACEOF 20843#define HAVE_SHA512_UPDATE 1 20844_ACEOF 20845 20846else 20847 20848 20849$as_echo "#define COMPAT_SHA512 1" >>confdefs.h 20850 20851 case " $LIBOBJS " in 20852 *" sha512.$ac_objext "* ) ;; 20853 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 20854 ;; 20855esac 20856 20857 20858fi 20859done 20860 20861 for ac_header in sys/sysctl.h 20862do : 20863 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 20864" 20865if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 20866 cat >>confdefs.h <<_ACEOF 20867#define HAVE_SYS_SYSCTL_H 1 20868_ACEOF 20869 20870fi 20871 20872done 20873 20874 for ac_func in getauxval 20875do : 20876 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval" 20877if test "x$ac_cv_func_getauxval" = xyes; then : 20878 cat >>confdefs.h <<_ACEOF 20879#define HAVE_GETAUXVAL 1 20880_ACEOF 20881 20882fi 20883done 20884 20885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 20886$as_echo_n "checking for library containing clock_gettime... " >&6; } 20887if ${ac_cv_search_clock_gettime+:} false; then : 20888 $as_echo_n "(cached) " >&6 20889else 20890 ac_func_search_save_LIBS=$LIBS 20891cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20892/* end confdefs.h. */ 20893 20894/* Override any GCC internal prototype to avoid an error. 20895 Use char because int might match the return type of a GCC 20896 builtin and then its argument prototype would still apply. */ 20897#ifdef __cplusplus 20898extern "C" 20899#endif 20900char clock_gettime (); 20901int 20902main () 20903{ 20904return clock_gettime (); 20905 ; 20906 return 0; 20907} 20908_ACEOF 20909for ac_lib in '' rt; do 20910 if test -z "$ac_lib"; then 20911 ac_res="none required" 20912 else 20913 ac_res=-l$ac_lib 20914 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20915 fi 20916 if ac_fn_c_try_link "$LINENO"; then : 20917 ac_cv_search_clock_gettime=$ac_res 20918fi 20919rm -f core conftest.err conftest.$ac_objext \ 20920 conftest$ac_exeext 20921 if ${ac_cv_search_clock_gettime+:} false; then : 20922 break 20923fi 20924done 20925if ${ac_cv_search_clock_gettime+:} false; then : 20926 20927else 20928 ac_cv_search_clock_gettime=no 20929fi 20930rm conftest.$ac_ext 20931LIBS=$ac_func_search_save_LIBS 20932fi 20933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 20934$as_echo "$ac_cv_search_clock_gettime" >&6; } 20935ac_res=$ac_cv_search_clock_gettime 20936if test "$ac_res" != no; then : 20937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20938 20939fi 20940 20941 ;; 20942 esac 20943 fi 20944 20945fi 20946done 20947 20948 fi 20949fi 20950LIBOBJ_WITHOUT_CTIME="$LIBOBJS" 20951 20952ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 20953if test "x$ac_cv_func_ctime_r" = xyes; then : 20954 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 20955 20956else 20957 case " $LIBOBJS " in 20958 *" ctime_r.$ac_objext "* ) ;; 20959 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 20960 ;; 20961esac 20962 20963fi 20964 20965 20966ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 20967if test "x$ac_cv_func_strsep" = xyes; then : 20968 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h 20969 20970else 20971 case " $LIBOBJS " in 20972 *" strsep.$ac_objext "* ) ;; 20973 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 20974 ;; 20975esac 20976 20977fi 20978 20979 20980 20981# Check whether --enable-allsymbols was given. 20982if test "${enable_allsymbols+set}" = set; then : 20983 enableval=$enable_allsymbols; 20984fi 20985 20986case "$enable_allsymbols" in 20987 yes) 20988 COMMON_OBJ_ALL_SYMBOLS="" 20989 UBSYMS="" 20990 EXTRALINK="-L. -L.libs -lunbound" 20991 20992$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h 20993 20994 ;; 20995 no|*) 20996 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)' 20997 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def' 20998 EXTRALINK="" 20999 ;; 21000esac 21001 21002 21003 21004if test x_$enable_lock_checks = x_yes; then 21005 UBSYMS="-export-symbols clubsyms.def" 21006 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def 21007 echo lock_protect >> clubsyms.def 21008 echo lock_unprotect >> clubsyms.def 21009 echo lock_get_mem >> clubsyms.def 21010 echo checklock_start >> clubsyms.def 21011 echo checklock_stop >> clubsyms.def 21012 echo checklock_lock >> clubsyms.def 21013 echo checklock_unlock >> clubsyms.def 21014 echo checklock_init >> clubsyms.def 21015 echo checklock_thrcreate >> clubsyms.def 21016 echo checklock_thrjoin >> clubsyms.def 21017fi 21018 21019# check for dnstap if requested 21020 21021 # Check whether --enable-dnstap was given. 21022if test "${enable_dnstap+set}" = set; then : 21023 enableval=$enable_dnstap; opt_dnstap=$enableval 21024else 21025 opt_dnstap=no 21026fi 21027 21028 21029 21030# Check whether --with-dnstap-socket-path was given. 21031if test "${with_dnstap_socket_path+set}" = set; then : 21032 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval 21033else 21034 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock" 21035fi 21036 21037 21038 if test "x$opt_dnstap" != "xno"; then 21039 # Extract the first word of "protoc-c", so it can be a program name with args. 21040set dummy protoc-c; ac_word=$2 21041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21042$as_echo_n "checking for $ac_word... " >&6; } 21043if ${ac_cv_path_PROTOC_C+:} false; then : 21044 $as_echo_n "(cached) " >&6 21045else 21046 case $PROTOC_C in 21047 [\\/]* | ?:[\\/]*) 21048 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 21049 ;; 21050 *) 21051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21052for as_dir in $PATH 21053do 21054 IFS=$as_save_IFS 21055 test -z "$as_dir" && as_dir=. 21056 for ac_exec_ext in '' $ac_executable_extensions; do 21057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21058 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext" 21059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21060 break 2 21061 fi 21062done 21063 done 21064IFS=$as_save_IFS 21065 21066 ;; 21067esac 21068fi 21069PROTOC_C=$ac_cv_path_PROTOC_C 21070if test -n "$PROTOC_C"; then 21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 21072$as_echo "$PROTOC_C" >&6; } 21073else 21074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21075$as_echo "no" >&6; } 21076fi 21077 21078 21079 if test -z "$PROTOC_C"; then 21080 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5 21081 fi 21082 21083# Check whether --with-protobuf-c was given. 21084if test "${with_protobuf_c+set}" = set; then : 21085 withval=$with_protobuf_c; 21086 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 21087 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then 21088 CFLAGS="$CFLAGS -I$withval/include/google" 21089 else 21090 CFLAGS="$CFLAGS -I$withval/include" 21091 fi 21092 LDFLAGS="$LDFLAGS -L$withval/lib" 21093 21094else 21095 21096 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 21097 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 21098 CFLAGS="$CFLAGS -I/usr/include/google" 21099 else 21100 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 21101 CFLAGS="$CFLAGS -I/usr/local/include/google" 21102 LDFLAGS="$LDFLAGS -L/usr/local/lib" 21103 fi 21104 fi 21105 21106fi 21107 21108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5 21109$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; } 21110if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 21111 $as_echo_n "(cached) " >&6 21112else 21113 ac_func_search_save_LIBS=$LIBS 21114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21115/* end confdefs.h. */ 21116 21117/* Override any GCC internal prototype to avoid an error. 21118 Use char because int might match the return type of a GCC 21119 builtin and then its argument prototype would still apply. */ 21120#ifdef __cplusplus 21121extern "C" 21122#endif 21123char protobuf_c_message_pack (); 21124int 21125main () 21126{ 21127return protobuf_c_message_pack (); 21128 ; 21129 return 0; 21130} 21131_ACEOF 21132for ac_lib in '' protobuf-c; do 21133 if test -z "$ac_lib"; then 21134 ac_res="none required" 21135 else 21136 ac_res=-l$ac_lib 21137 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21138 fi 21139 if ac_fn_c_try_link "$LINENO"; then : 21140 ac_cv_search_protobuf_c_message_pack=$ac_res 21141fi 21142rm -f core conftest.err conftest.$ac_objext \ 21143 conftest$ac_exeext 21144 if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 21145 break 21146fi 21147done 21148if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 21149 21150else 21151 ac_cv_search_protobuf_c_message_pack=no 21152fi 21153rm conftest.$ac_ext 21154LIBS=$ac_func_search_save_LIBS 21155fi 21156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5 21157$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; } 21158ac_res=$ac_cv_search_protobuf_c_message_pack 21159if test "$ac_res" != no; then : 21160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21161 21162else 21163 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5 21164fi 21165 21166 21167 21168$as_echo "#define USE_DNSTAP 1" >>confdefs.h 21169 21170 ENABLE_DNSTAP=1 21171 21172 21173 21174 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`" 21175 21176 21177cat >>confdefs.h <<_ACEOF 21178#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path" 21179_ACEOF 21180 21181 DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path" 21182 21183 21184 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c" 21185 21186 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo" 21187 21188 21189 else 21190 21191 ENABLE_DNSTAP=0 21192 21193 21194 21195 fi 21196 21197 21198# check for dnscrypt if requested 21199 21200 # Check whether --enable-dnscrypt was given. 21201if test "${enable_dnscrypt+set}" = set; then : 21202 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval 21203else 21204 opt_dnscrypt=no 21205fi 21206 21207 21208 if test "x$opt_dnscrypt" != "xno"; then 21209 21210# Check whether --with-libsodium was given. 21211if test "${with_libsodium+set}" = set; then : 21212 withval=$with_libsodium; 21213 CFLAGS="$CFLAGS -I$withval/include" 21214 LDFLAGS="$LDFLAGS -L$withval/lib" 21215 21216fi 21217 21218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5 21219$as_echo_n "checking for library containing sodium_init... " >&6; } 21220if ${ac_cv_search_sodium_init+:} false; then : 21221 $as_echo_n "(cached) " >&6 21222else 21223 ac_func_search_save_LIBS=$LIBS 21224cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21225/* end confdefs.h. */ 21226 21227/* Override any GCC internal prototype to avoid an error. 21228 Use char because int might match the return type of a GCC 21229 builtin and then its argument prototype would still apply. */ 21230#ifdef __cplusplus 21231extern "C" 21232#endif 21233char sodium_init (); 21234int 21235main () 21236{ 21237return sodium_init (); 21238 ; 21239 return 0; 21240} 21241_ACEOF 21242for ac_lib in '' sodium; do 21243 if test -z "$ac_lib"; then 21244 ac_res="none required" 21245 else 21246 ac_res=-l$ac_lib 21247 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21248 fi 21249 if ac_fn_c_try_link "$LINENO"; then : 21250 ac_cv_search_sodium_init=$ac_res 21251fi 21252rm -f core conftest.err conftest.$ac_objext \ 21253 conftest$ac_exeext 21254 if ${ac_cv_search_sodium_init+:} false; then : 21255 break 21256fi 21257done 21258if ${ac_cv_search_sodium_init+:} false; then : 21259 21260else 21261 ac_cv_search_sodium_init=no 21262fi 21263rm conftest.$ac_ext 21264LIBS=$ac_func_search_save_LIBS 21265fi 21266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5 21267$as_echo "$ac_cv_search_sodium_init" >&6; } 21268ac_res=$ac_cv_search_sodium_init 21269if test "$ac_res" != no; then : 21270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21271 21272else 21273 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5 21274fi 21275 21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5 21277$as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; } 21278if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then : 21279 $as_echo_n "(cached) " >&6 21280else 21281 ac_func_search_save_LIBS=$LIBS 21282cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21283/* end confdefs.h. */ 21284 21285/* Override any GCC internal prototype to avoid an error. 21286 Use char because int might match the return type of a GCC 21287 builtin and then its argument prototype would still apply. */ 21288#ifdef __cplusplus 21289extern "C" 21290#endif 21291char crypto_box_curve25519xchacha20poly1305_beforenm (); 21292int 21293main () 21294{ 21295return crypto_box_curve25519xchacha20poly1305_beforenm (); 21296 ; 21297 return 0; 21298} 21299_ACEOF 21300for ac_lib in '' sodium; do 21301 if test -z "$ac_lib"; then 21302 ac_res="none required" 21303 else 21304 ac_res=-l$ac_lib 21305 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21306 fi 21307 if ac_fn_c_try_link "$LINENO"; then : 21308 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res 21309fi 21310rm -f core conftest.err conftest.$ac_objext \ 21311 conftest$ac_exeext 21312 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then : 21313 break 21314fi 21315done 21316if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then : 21317 21318else 21319 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no 21320fi 21321rm conftest.$ac_ext 21322LIBS=$ac_func_search_save_LIBS 21323fi 21324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5 21325$as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; } 21326ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm 21327if test "$ac_res" != no; then : 21328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21329 21330 ENABLE_DNSCRYPT_XCHACHA20=1 21331 21332 21333$as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h 21334 21335 21336else 21337 21338 ENABLE_DNSCRYPT_XCHACHA20=0 21339 21340 21341fi 21342 21343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5 21344$as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; } 21345if ${ac_cv_search_sodium_set_misuse_handler+:} false; then : 21346 $as_echo_n "(cached) " >&6 21347else 21348 ac_func_search_save_LIBS=$LIBS 21349cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21350/* end confdefs.h. */ 21351 21352/* Override any GCC internal prototype to avoid an error. 21353 Use char because int might match the return type of a GCC 21354 builtin and then its argument prototype would still apply. */ 21355#ifdef __cplusplus 21356extern "C" 21357#endif 21358char sodium_set_misuse_handler (); 21359int 21360main () 21361{ 21362return sodium_set_misuse_handler (); 21363 ; 21364 return 0; 21365} 21366_ACEOF 21367for ac_lib in '' sodium; do 21368 if test -z "$ac_lib"; then 21369 ac_res="none required" 21370 else 21371 ac_res=-l$ac_lib 21372 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21373 fi 21374 if ac_fn_c_try_link "$LINENO"; then : 21375 ac_cv_search_sodium_set_misuse_handler=$ac_res 21376fi 21377rm -f core conftest.err conftest.$ac_objext \ 21378 conftest$ac_exeext 21379 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then : 21380 break 21381fi 21382done 21383if ${ac_cv_search_sodium_set_misuse_handler+:} false; then : 21384 21385else 21386 ac_cv_search_sodium_set_misuse_handler=no 21387fi 21388rm conftest.$ac_ext 21389LIBS=$ac_func_search_save_LIBS 21390fi 21391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5 21392$as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; } 21393ac_res=$ac_cv_search_sodium_set_misuse_handler 21394if test "$ac_res" != no; then : 21395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21396 21397 21398$as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h 21399 21400 21401fi 21402 21403 21404 21405$as_echo "#define USE_DNSCRYPT 1" >>confdefs.h 21406 21407 ENABLE_DNSCRYPT=1 21408 21409 21410 DNSCRYPT_SRC="dnscrypt/dnscrypt.c" 21411 21412 DNSCRYPT_OBJ="dnscrypt.lo" 21413 21414 21415 else 21416 ENABLE_DNSCRYPT_XCHACHA20=0 21417 21418 21419 ENABLE_DNSCRYPT=0 21420 21421 21422 21423 fi 21424 21425 21426# check for cachedb if requested 21427# Check whether --enable-cachedb was given. 21428if test "${enable_cachedb+set}" = set; then : 21429 enableval=$enable_cachedb; 21430fi 21431 21432# turn on cachedb when hiredis support is enabled. 21433if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi 21434case "$enable_cachedb" in 21435 yes) 21436 21437$as_echo "#define USE_CACHEDB 1" >>confdefs.h 21438 21439 ;; 21440 no|*) 21441 # nothing 21442 ;; 21443esac 21444 21445# check for ipsecmod if requested 21446# Check whether --enable-ipsecmod was given. 21447if test "${enable_ipsecmod+set}" = set; then : 21448 enableval=$enable_ipsecmod; 21449fi 21450 21451case "$enable_ipsecmod" in 21452 yes) 21453 21454$as_echo "#define USE_IPSECMOD 1" >>confdefs.h 21455 21456 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo" 21457 21458 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h' 21459 21460 ;; 21461 no|*) 21462 # nothing 21463 ;; 21464esac 21465 21466# check for ipset if requested 21467# Check whether --enable-ipset was given. 21468if test "${enable_ipset+set}" = set; then : 21469 enableval=$enable_ipset; 21470fi 21471 21472case "$enable_ipset" in 21473 yes) 21474 21475$as_echo "#define USE_IPSET 1" >>confdefs.h 21476 21477 IPSET_SRC="ipset/ipset.c" 21478 21479 IPSET_OBJ="ipset.lo" 21480 21481 21482 # mnl 21483 21484# Check whether --with-libmnl was given. 21485if test "${with_libmnl+set}" = set; then : 21486 withval=$with_libmnl; 21487else 21488 withval="yes" 21489fi 21490 21491 found_libmnl="no" 21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5 21493$as_echo_n "checking for libmnl... " >&6; } 21494 if test x_$withval = x_ -o x_$withval = x_yes; then 21495 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 21496 fi 21497 for dir in $withval ; do 21498 if test -f "$dir/include/libmnl/libmnl.h"; then 21499 found_libmnl="yes" 21500 if test "$dir" != "/usr"; then 21501 CPPFLAGS="$CPPFLAGS -I$dir/include" 21502 LDFLAGS="$LDFLAGS -L$dir/lib" 21503 fi 21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 21505$as_echo "found in $dir" >&6; } 21506 LIBS="$LIBS -lmnl" 21507 break; 21508 fi 21509 done 21510 if test x_$found_libmnl != x_yes; then 21511 as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5 21512 fi 21513 ;; 21514 no|*) 21515 # nothing 21516 ;; 21517esac 21518# Check whether --enable-explicit-port-randomisation was given. 21519if test "${enable_explicit_port_randomisation+set}" = set; then : 21520 enableval=$enable_explicit_port_randomisation; 21521fi 21522 21523case "$enable_explicit_port_randomisation" in 21524 no) 21525 21526$as_echo "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h 21527 21528 ;; 21529 yes|*) 21530 ;; 21531esac 21532 21533 21534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5 21535$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; } 21536# on openBSD, the implicit rule make $< work. 21537# on Solaris, it does not work ($? is changed sources, $^ lists dependencies). 21538# gmake works. 21539cat >conftest.make <<EOF 21540all: conftest.lo 21541 21542conftest.lo foo.lo bla.lo: 21543 if test -f "\$<"; then touch \$@; fi 21544 21545.SUFFIXES: .lo 21546.c.lo: 21547 if test -f "\$<"; then touch \$@; fi 21548 21549conftest.lo: conftest.dir/conftest.c 21550EOF 21551mkdir conftest.dir 21552touch conftest.dir/conftest.c 21553rm -f conftest.lo conftest.c 21554${MAKE:-make} -f conftest.make >/dev/null 21555rm -f conftest.make conftest.c conftest.dir/conftest.c 21556rm -rf conftest.dir 21557if test ! -f conftest.lo; then 21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21559$as_echo "no" >&6; } 21560 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source' 21561 SOURCEFILE='`cat .source`' 21562else 21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21564$as_echo "yes" >&6; } 21565 SOURCEDETERMINE=':' 21566 SOURCEFILE='$<' 21567fi 21568rm -f conftest.lo 21569 21570 21571 21572# see if we want to build the library or everything 21573ALLTARGET="alltargets" 21574INSTALLTARGET="install-all" 21575 21576# Check whether --with-libunbound-only was given. 21577if test "${with_libunbound_only+set}" = set; then : 21578 withval=$with_libunbound_only; 21579 if test "$withval" = "yes"; then 21580 ALLTARGET="lib" 21581 INSTALLTARGET="install-lib" 21582 fi 21583 21584fi 21585 21586if test $ALLTARGET = "alltargets"; then 21587 if test $USE_NSS = "yes"; then 21588 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5 21589 fi 21590 if test $USE_NETTLE = "yes"; then 21591 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5 21592 fi 21593fi 21594 21595 21596 21597 21598 21599 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5 21600$as_echo "$as_me: Stripping extension flags..." >&6;} 21601 21602 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then 21603 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`" 21604 21605$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h 21606 21607 fi 21608 21609 21610 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then 21611 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`" 21612 21613$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h 21614 21615 fi 21616 21617 21618 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then 21619 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`" 21620 21621$as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h 21622 21623 fi 21624 21625 21626 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then 21627 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`" 21628 21629$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h 21630 21631 fi 21632 21633 21634 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then 21635 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`" 21636 21637$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h 21638 21639 fi 21640 21641 21642 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then 21643 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`" 21644 21645$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h 21646 21647 fi 21648 21649 21650 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then 21651 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`" 21652 21653$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h 21654 21655 fi 21656 21657 21658 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then 21659 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`" 21660 21661$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h 21662 21663 fi 21664 21665 21666 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then 21667 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`" 21668 21669$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h 21670 21671 fi 21672 21673 21674if test -n "$LATE_LDFLAGS"; then 21675 LDFLAGS="$LATE_LDFLAGS $LDFLAGS" 21676fi 21677# remove start spaces 21678LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'` 21679LIBS=`echo "$LIBS"|sed -e 's/^ *//'` 21680 21681 21682cat >>confdefs.h <<_ACEOF 21683#define MAXSYSLOGMSGLEN 10240 21684_ACEOF 21685 21686 21687 21688 21689version=1.12.0 21690 21691date=`date +'%b %e, %Y'` 21692 21693 21694ac_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" 21695 21696ac_config_headers="$ac_config_headers config.h" 21697 21698cat >confcache <<\_ACEOF 21699# This file is a shell script that caches the results of configure 21700# tests run on this system so they can be shared between configure 21701# scripts and configure runs, see configure's option --config-cache. 21702# It is not useful on other systems. If it contains results you don't 21703# want to keep, you may remove or edit it. 21704# 21705# config.status only pays attention to the cache file if you give it 21706# the --recheck option to rerun configure. 21707# 21708# `ac_cv_env_foo' variables (set or unset) will be overridden when 21709# loading this file, other *unset* `ac_cv_foo' will be assigned the 21710# following values. 21711 21712_ACEOF 21713 21714# The following way of writing the cache mishandles newlines in values, 21715# but we know of no workaround that is simple, portable, and efficient. 21716# So, we kill variables containing newlines. 21717# Ultrix sh set writes to stderr and can't be redirected directly, 21718# and sets the high bit in the cache file unless we assign to the vars. 21719( 21720 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21721 eval ac_val=\$$ac_var 21722 case $ac_val in #( 21723 *${as_nl}*) 21724 case $ac_var in #( 21725 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21726$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21727 esac 21728 case $ac_var in #( 21729 _ | IFS | as_nl) ;; #( 21730 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21731 *) { eval $ac_var=; unset $ac_var;} ;; 21732 esac ;; 21733 esac 21734 done 21735 21736 (set) 2>&1 | 21737 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21738 *${as_nl}ac_space=\ *) 21739 # `set' does not quote correctly, so add quotes: double-quote 21740 # substitution turns \\\\ into \\, and sed turns \\ into \. 21741 sed -n \ 21742 "s/'/'\\\\''/g; 21743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21744 ;; #( 21745 *) 21746 # `set' quotes correctly as required by POSIX, so do not add quotes. 21747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21748 ;; 21749 esac | 21750 sort 21751) | 21752 sed ' 21753 /^ac_cv_env_/b end 21754 t clear 21755 :clear 21756 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21757 t end 21758 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21759 :end' >>confcache 21760if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21761 if test -w "$cache_file"; then 21762 if test "x$cache_file" != "x/dev/null"; then 21763 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21764$as_echo "$as_me: updating cache $cache_file" >&6;} 21765 if test ! -f "$cache_file" || test -h "$cache_file"; then 21766 cat confcache >"$cache_file" 21767 else 21768 case $cache_file in #( 21769 */* | ?:*) 21770 mv -f confcache "$cache_file"$$ && 21771 mv -f "$cache_file"$$ "$cache_file" ;; #( 21772 *) 21773 mv -f confcache "$cache_file" ;; 21774 esac 21775 fi 21776 fi 21777 else 21778 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21779$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21780 fi 21781fi 21782rm -f confcache 21783 21784test "x$prefix" = xNONE && prefix=$ac_default_prefix 21785# Let make expand exec_prefix. 21786test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21787 21788DEFS=-DHAVE_CONFIG_H 21789 21790ac_libobjs= 21791ac_ltlibobjs= 21792U= 21793for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21794 # 1. Remove the extension, and $U if already installed. 21795 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21796 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21797 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21798 # will be set to the directory where LIBOBJS objects are built. 21799 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21800 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21801done 21802LIBOBJS=$ac_libobjs 21803 21804LTLIBOBJS=$ac_ltlibobjs 21805 21806 21807if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then 21808 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined. 21809Usually this means the macro was only invoked conditionally." "$LINENO" 5 21810fi 21811 21812: "${CONFIG_STATUS=./config.status}" 21813ac_write_fail=0 21814ac_clean_files_save=$ac_clean_files 21815ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21816{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21817$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21818as_write_fail=0 21819cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21820#! $SHELL 21821# Generated by $as_me. 21822# Run this file to recreate the current configuration. 21823# Compiler output produced by configure, useful for debugging 21824# configure, is in config.log if it exists. 21825 21826debug=false 21827ac_cs_recheck=false 21828ac_cs_silent=false 21829 21830SHELL=\${CONFIG_SHELL-$SHELL} 21831export SHELL 21832_ASEOF 21833cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21834## -------------------- ## 21835## M4sh Initialization. ## 21836## -------------------- ## 21837 21838# Be more Bourne compatible 21839DUALCASE=1; export DUALCASE # for MKS sh 21840if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21841 emulate sh 21842 NULLCMD=: 21843 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21844 # is contrary to our usage. Disable this feature. 21845 alias -g '${1+"$@"}'='"$@"' 21846 setopt NO_GLOB_SUBST 21847else 21848 case `(set -o) 2>/dev/null` in #( 21849 *posix*) : 21850 set -o posix ;; #( 21851 *) : 21852 ;; 21853esac 21854fi 21855 21856 21857as_nl=' 21858' 21859export as_nl 21860# Printing a long string crashes Solaris 7 /usr/bin/printf. 21861as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21862as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21863as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21864# Prefer a ksh shell builtin over an external printf program on Solaris, 21865# but without wasting forks for bash or zsh. 21866if test -z "$BASH_VERSION$ZSH_VERSION" \ 21867 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21868 as_echo='print -r --' 21869 as_echo_n='print -rn --' 21870elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21871 as_echo='printf %s\n' 21872 as_echo_n='printf %s' 21873else 21874 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21875 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21876 as_echo_n='/usr/ucb/echo -n' 21877 else 21878 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21879 as_echo_n_body='eval 21880 arg=$1; 21881 case $arg in #( 21882 *"$as_nl"*) 21883 expr "X$arg" : "X\\(.*\\)$as_nl"; 21884 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21885 esac; 21886 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21887 ' 21888 export as_echo_n_body 21889 as_echo_n='sh -c $as_echo_n_body as_echo' 21890 fi 21891 export as_echo_body 21892 as_echo='sh -c $as_echo_body as_echo' 21893fi 21894 21895# The user is always right. 21896if test "${PATH_SEPARATOR+set}" != set; then 21897 PATH_SEPARATOR=: 21898 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21899 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21900 PATH_SEPARATOR=';' 21901 } 21902fi 21903 21904 21905# IFS 21906# We need space, tab and new line, in precisely that order. Quoting is 21907# there to prevent editors from complaining about space-tab. 21908# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21909# splitting by setting IFS to empty value.) 21910IFS=" "" $as_nl" 21911 21912# Find who we are. Look in the path if we contain no directory separator. 21913as_myself= 21914case $0 in #(( 21915 *[\\/]* ) as_myself=$0 ;; 21916 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21917for as_dir in $PATH 21918do 21919 IFS=$as_save_IFS 21920 test -z "$as_dir" && as_dir=. 21921 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21922 done 21923IFS=$as_save_IFS 21924 21925 ;; 21926esac 21927# We did not find ourselves, most probably we were run as `sh COMMAND' 21928# in which case we are not to be found in the path. 21929if test "x$as_myself" = x; then 21930 as_myself=$0 21931fi 21932if test ! -f "$as_myself"; then 21933 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21934 exit 1 21935fi 21936 21937# Unset variables that we do not need and which cause bugs (e.g. in 21938# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21939# suppresses any "Segmentation fault" message there. '((' could 21940# trigger a bug in pdksh 5.2.14. 21941for as_var in BASH_ENV ENV MAIL MAILPATH 21942do eval test x\${$as_var+set} = xset \ 21943 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21944done 21945PS1='$ ' 21946PS2='> ' 21947PS4='+ ' 21948 21949# NLS nuisances. 21950LC_ALL=C 21951export LC_ALL 21952LANGUAGE=C 21953export LANGUAGE 21954 21955# CDPATH. 21956(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21957 21958 21959# as_fn_error STATUS ERROR [LINENO LOG_FD] 21960# ---------------------------------------- 21961# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21962# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21963# script with STATUS, using 1 if that was 0. 21964as_fn_error () 21965{ 21966 as_status=$1; test $as_status -eq 0 && as_status=1 21967 if test "$4"; then 21968 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21969 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21970 fi 21971 $as_echo "$as_me: error: $2" >&2 21972 as_fn_exit $as_status 21973} # as_fn_error 21974 21975 21976# as_fn_set_status STATUS 21977# ----------------------- 21978# Set $? to STATUS, without forking. 21979as_fn_set_status () 21980{ 21981 return $1 21982} # as_fn_set_status 21983 21984# as_fn_exit STATUS 21985# ----------------- 21986# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21987as_fn_exit () 21988{ 21989 set +e 21990 as_fn_set_status $1 21991 exit $1 21992} # as_fn_exit 21993 21994# as_fn_unset VAR 21995# --------------- 21996# Portably unset VAR. 21997as_fn_unset () 21998{ 21999 { eval $1=; unset $1;} 22000} 22001as_unset=as_fn_unset 22002# as_fn_append VAR VALUE 22003# ---------------------- 22004# Append the text in VALUE to the end of the definition contained in VAR. Take 22005# advantage of any shell optimizations that allow amortized linear growth over 22006# repeated appends, instead of the typical quadratic growth present in naive 22007# implementations. 22008if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22009 eval 'as_fn_append () 22010 { 22011 eval $1+=\$2 22012 }' 22013else 22014 as_fn_append () 22015 { 22016 eval $1=\$$1\$2 22017 } 22018fi # as_fn_append 22019 22020# as_fn_arith ARG... 22021# ------------------ 22022# Perform arithmetic evaluation on the ARGs, and store the result in the 22023# global $as_val. Take advantage of shells that can avoid forks. The arguments 22024# must be portable across $(()) and expr. 22025if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22026 eval 'as_fn_arith () 22027 { 22028 as_val=$(( $* )) 22029 }' 22030else 22031 as_fn_arith () 22032 { 22033 as_val=`expr "$@" || test $? -eq 1` 22034 } 22035fi # as_fn_arith 22036 22037 22038if expr a : '\(a\)' >/dev/null 2>&1 && 22039 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22040 as_expr=expr 22041else 22042 as_expr=false 22043fi 22044 22045if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22046 as_basename=basename 22047else 22048 as_basename=false 22049fi 22050 22051if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22052 as_dirname=dirname 22053else 22054 as_dirname=false 22055fi 22056 22057as_me=`$as_basename -- "$0" || 22058$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22059 X"$0" : 'X\(//\)$' \| \ 22060 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22061$as_echo X/"$0" | 22062 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22063 s//\1/ 22064 q 22065 } 22066 /^X\/\(\/\/\)$/{ 22067 s//\1/ 22068 q 22069 } 22070 /^X\/\(\/\).*/{ 22071 s//\1/ 22072 q 22073 } 22074 s/.*/./; q'` 22075 22076# Avoid depending upon Character Ranges. 22077as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22078as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22079as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22080as_cr_digits='0123456789' 22081as_cr_alnum=$as_cr_Letters$as_cr_digits 22082 22083ECHO_C= ECHO_N= ECHO_T= 22084case `echo -n x` in #((((( 22085-n*) 22086 case `echo 'xy\c'` in 22087 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22088 xy) ECHO_C='\c';; 22089 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22090 ECHO_T=' ';; 22091 esac;; 22092*) 22093 ECHO_N='-n';; 22094esac 22095 22096rm -f conf$$ conf$$.exe conf$$.file 22097if test -d conf$$.dir; then 22098 rm -f conf$$.dir/conf$$.file 22099else 22100 rm -f conf$$.dir 22101 mkdir conf$$.dir 2>/dev/null 22102fi 22103if (echo >conf$$.file) 2>/dev/null; then 22104 if ln -s conf$$.file conf$$ 2>/dev/null; then 22105 as_ln_s='ln -s' 22106 # ... but there are two gotchas: 22107 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22108 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22109 # In both cases, we have to default to `cp -pR'. 22110 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22111 as_ln_s='cp -pR' 22112 elif ln conf$$.file conf$$ 2>/dev/null; then 22113 as_ln_s=ln 22114 else 22115 as_ln_s='cp -pR' 22116 fi 22117else 22118 as_ln_s='cp -pR' 22119fi 22120rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22121rmdir conf$$.dir 2>/dev/null 22122 22123 22124# as_fn_mkdir_p 22125# ------------- 22126# Create "$as_dir" as a directory, including parents if necessary. 22127as_fn_mkdir_p () 22128{ 22129 22130 case $as_dir in #( 22131 -*) as_dir=./$as_dir;; 22132 esac 22133 test -d "$as_dir" || eval $as_mkdir_p || { 22134 as_dirs= 22135 while :; do 22136 case $as_dir in #( 22137 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22138 *) as_qdir=$as_dir;; 22139 esac 22140 as_dirs="'$as_qdir' $as_dirs" 22141 as_dir=`$as_dirname -- "$as_dir" || 22142$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22143 X"$as_dir" : 'X\(//\)[^/]' \| \ 22144 X"$as_dir" : 'X\(//\)$' \| \ 22145 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22146$as_echo X"$as_dir" | 22147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22148 s//\1/ 22149 q 22150 } 22151 /^X\(\/\/\)[^/].*/{ 22152 s//\1/ 22153 q 22154 } 22155 /^X\(\/\/\)$/{ 22156 s//\1/ 22157 q 22158 } 22159 /^X\(\/\).*/{ 22160 s//\1/ 22161 q 22162 } 22163 s/.*/./; q'` 22164 test -d "$as_dir" && break 22165 done 22166 test -z "$as_dirs" || eval "mkdir $as_dirs" 22167 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22168 22169 22170} # as_fn_mkdir_p 22171if mkdir -p . 2>/dev/null; then 22172 as_mkdir_p='mkdir -p "$as_dir"' 22173else 22174 test -d ./-p && rmdir ./-p 22175 as_mkdir_p=false 22176fi 22177 22178 22179# as_fn_executable_p FILE 22180# ----------------------- 22181# Test if FILE is an executable regular file. 22182as_fn_executable_p () 22183{ 22184 test -f "$1" && test -x "$1" 22185} # as_fn_executable_p 22186as_test_x='test -x' 22187as_executable_p=as_fn_executable_p 22188 22189# Sed expression to map a string onto a valid CPP name. 22190as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22191 22192# Sed expression to map a string onto a valid variable name. 22193as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22194 22195 22196exec 6>&1 22197## ----------------------------------- ## 22198## Main body of $CONFIG_STATUS script. ## 22199## ----------------------------------- ## 22200_ASEOF 22201test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22202 22203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22204# Save the log message, to keep $0 and so on meaningful, and to 22205# report actual input values of CONFIG_FILES etc. instead of their 22206# values after options handling. 22207ac_log=" 22208This file was extended by unbound $as_me 1.12.0, which was 22209generated by GNU Autoconf 2.69. Invocation command line was 22210 22211 CONFIG_FILES = $CONFIG_FILES 22212 CONFIG_HEADERS = $CONFIG_HEADERS 22213 CONFIG_LINKS = $CONFIG_LINKS 22214 CONFIG_COMMANDS = $CONFIG_COMMANDS 22215 $ $0 $@ 22216 22217on `(hostname || uname -n) 2>/dev/null | sed 1q` 22218" 22219 22220_ACEOF 22221 22222case $ac_config_files in *" 22223"*) set x $ac_config_files; shift; ac_config_files=$*;; 22224esac 22225 22226case $ac_config_headers in *" 22227"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22228esac 22229 22230 22231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22232# Files that config.status was made for. 22233config_files="$ac_config_files" 22234config_headers="$ac_config_headers" 22235config_commands="$ac_config_commands" 22236 22237_ACEOF 22238 22239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22240ac_cs_usage="\ 22241\`$as_me' instantiates files and other configuration actions 22242from templates according to the current configuration. Unless the files 22243and actions are specified as TAGs, all are instantiated by default. 22244 22245Usage: $0 [OPTION]... [TAG]... 22246 22247 -h, --help print this help, then exit 22248 -V, --version print version number and configuration settings, then exit 22249 --config print configuration, then exit 22250 -q, --quiet, --silent 22251 do not print progress messages 22252 -d, --debug don't remove temporary files 22253 --recheck update $as_me by reconfiguring in the same conditions 22254 --file=FILE[:TEMPLATE] 22255 instantiate the configuration file FILE 22256 --header=FILE[:TEMPLATE] 22257 instantiate the configuration header FILE 22258 22259Configuration files: 22260$config_files 22261 22262Configuration headers: 22263$config_headers 22264 22265Configuration commands: 22266$config_commands 22267 22268Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>." 22269 22270_ACEOF 22271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22272ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22273ac_cs_version="\\ 22274unbound config.status 1.12.0 22275configured by $0, generated by GNU Autoconf 2.69, 22276 with options \\"\$ac_cs_config\\" 22277 22278Copyright (C) 2012 Free Software Foundation, Inc. 22279This config.status script is free software; the Free Software Foundation 22280gives unlimited permission to copy, distribute and modify it." 22281 22282ac_pwd='$ac_pwd' 22283srcdir='$srcdir' 22284AWK='$AWK' 22285test -n "\$AWK" || AWK=awk 22286_ACEOF 22287 22288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22289# The default lists apply if the user does not specify any file. 22290ac_need_defaults=: 22291while test $# != 0 22292do 22293 case $1 in 22294 --*=?*) 22295 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22296 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22297 ac_shift=: 22298 ;; 22299 --*=) 22300 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22301 ac_optarg= 22302 ac_shift=: 22303 ;; 22304 *) 22305 ac_option=$1 22306 ac_optarg=$2 22307 ac_shift=shift 22308 ;; 22309 esac 22310 22311 case $ac_option in 22312 # Handling of the options. 22313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22314 ac_cs_recheck=: ;; 22315 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22316 $as_echo "$ac_cs_version"; exit ;; 22317 --config | --confi | --conf | --con | --co | --c ) 22318 $as_echo "$ac_cs_config"; exit ;; 22319 --debug | --debu | --deb | --de | --d | -d ) 22320 debug=: ;; 22321 --file | --fil | --fi | --f ) 22322 $ac_shift 22323 case $ac_optarg in 22324 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22325 '') as_fn_error $? "missing file argument" ;; 22326 esac 22327 as_fn_append CONFIG_FILES " '$ac_optarg'" 22328 ac_need_defaults=false;; 22329 --header | --heade | --head | --hea ) 22330 $ac_shift 22331 case $ac_optarg in 22332 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22333 esac 22334 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22335 ac_need_defaults=false;; 22336 --he | --h) 22337 # Conflict between --help and --header 22338 as_fn_error $? "ambiguous option: \`$1' 22339Try \`$0 --help' for more information.";; 22340 --help | --hel | -h ) 22341 $as_echo "$ac_cs_usage"; exit ;; 22342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22343 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22344 ac_cs_silent=: ;; 22345 22346 # This is an error. 22347 -*) as_fn_error $? "unrecognized option: \`$1' 22348Try \`$0 --help' for more information." ;; 22349 22350 *) as_fn_append ac_config_targets " $1" 22351 ac_need_defaults=false ;; 22352 22353 esac 22354 shift 22355done 22356 22357ac_configure_extra_args= 22358 22359if $ac_cs_silent; then 22360 exec 6>/dev/null 22361 ac_configure_extra_args="$ac_configure_extra_args --silent" 22362fi 22363 22364_ACEOF 22365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22366if \$ac_cs_recheck; then 22367 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22368 shift 22369 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22370 CONFIG_SHELL='$SHELL' 22371 export CONFIG_SHELL 22372 exec "\$@" 22373fi 22374 22375_ACEOF 22376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22377exec 5>>config.log 22378{ 22379 echo 22380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22381## Running $as_me. ## 22382_ASBOX 22383 $as_echo "$ac_log" 22384} >&5 22385 22386_ACEOF 22387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22388# 22389# INIT-COMMANDS 22390# 22391 22392 22393# The HP-UX ksh and POSIX shell print the target directory to stdout 22394# if CDPATH is set. 22395(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22396 22397sed_quote_subst='$sed_quote_subst' 22398double_quote_subst='$double_quote_subst' 22399delay_variable_subst='$delay_variable_subst' 22400macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22401macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22402enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22403enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22404pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22405enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22406shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22407SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22408ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22409PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22410host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22411host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22412host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22413build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22414build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22415build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22416SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22417Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22418GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22419EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22420FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22421LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22422NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22423LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22424max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22425ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22426exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22427lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22428lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22429lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22430lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22431lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22432reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22433reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22434OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22435deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22436file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22437file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22438want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22439DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22440sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22441AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22442AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22443archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22444STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22445RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22446old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22447old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22448old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22449lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22450CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22451CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22452compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22453GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22454lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22455lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22456lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22457lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22458lt_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"`' 22459lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22460nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22461lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22462lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22463objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22464MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22465lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22466lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22467lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22468lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22469lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22470need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22471MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22472DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22473NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22474LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22475OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22476OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22477libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22478shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22479extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22480archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22481enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22482export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22483whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22484compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22485old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22486old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22487archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22488archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22489module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22490module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22491with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22492allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22493no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22494hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22495hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22496hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22497hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22498hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22499hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22500hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22501inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22502link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22503always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22504export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22505exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22506include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22507prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22508postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22509file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22510variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22511need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22512need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22513version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22514runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22515shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22516shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22517libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22518library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22519soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22520install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22521postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22522postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22523finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22524finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22525hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22526sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22527configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22528configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22529hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22530enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22531enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22532enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22533old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22534striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22535 22536LTCC='$LTCC' 22537LTCFLAGS='$LTCFLAGS' 22538compiler='$compiler_DEFAULT' 22539 22540# A function that is used when there is no print builtin or printf. 22541func_fallback_echo () 22542{ 22543 eval 'cat <<_LTECHO_EOF 22544\$1 22545_LTECHO_EOF' 22546} 22547 22548# Quote evaled strings. 22549for var in SHELL \ 22550ECHO \ 22551PATH_SEPARATOR \ 22552SED \ 22553GREP \ 22554EGREP \ 22555FGREP \ 22556LD \ 22557NM \ 22558LN_S \ 22559lt_SP2NL \ 22560lt_NL2SP \ 22561reload_flag \ 22562OBJDUMP \ 22563deplibs_check_method \ 22564file_magic_cmd \ 22565file_magic_glob \ 22566want_nocaseglob \ 22567DLLTOOL \ 22568sharedlib_from_linklib_cmd \ 22569AR \ 22570AR_FLAGS \ 22571archiver_list_spec \ 22572STRIP \ 22573RANLIB \ 22574CC \ 22575CFLAGS \ 22576compiler \ 22577lt_cv_sys_global_symbol_pipe \ 22578lt_cv_sys_global_symbol_to_cdecl \ 22579lt_cv_sys_global_symbol_to_import \ 22580lt_cv_sys_global_symbol_to_c_name_address \ 22581lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22582lt_cv_nm_interface \ 22583nm_file_list_spec \ 22584lt_cv_truncate_bin \ 22585lt_prog_compiler_no_builtin_flag \ 22586lt_prog_compiler_pic \ 22587lt_prog_compiler_wl \ 22588lt_prog_compiler_static \ 22589lt_cv_prog_compiler_c_o \ 22590need_locks \ 22591MANIFEST_TOOL \ 22592DSYMUTIL \ 22593NMEDIT \ 22594LIPO \ 22595OTOOL \ 22596OTOOL64 \ 22597shrext_cmds \ 22598export_dynamic_flag_spec \ 22599whole_archive_flag_spec \ 22600compiler_needs_object \ 22601with_gnu_ld \ 22602allow_undefined_flag \ 22603no_undefined_flag \ 22604hardcode_libdir_flag_spec \ 22605hardcode_libdir_separator \ 22606exclude_expsyms \ 22607include_expsyms \ 22608file_list_spec \ 22609variables_saved_for_relink \ 22610libname_spec \ 22611library_names_spec \ 22612soname_spec \ 22613install_override_mode \ 22614finish_eval \ 22615old_striplib \ 22616striplib; do 22617 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22618 *[\\\\\\\`\\"\\\$]*) 22619 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22620 ;; 22621 *) 22622 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22623 ;; 22624 esac 22625done 22626 22627# Double-quote double-evaled strings. 22628for var in reload_cmds \ 22629old_postinstall_cmds \ 22630old_postuninstall_cmds \ 22631old_archive_cmds \ 22632extract_expsyms_cmds \ 22633old_archive_from_new_cmds \ 22634old_archive_from_expsyms_cmds \ 22635archive_cmds \ 22636archive_expsym_cmds \ 22637module_cmds \ 22638module_expsym_cmds \ 22639export_symbols_cmds \ 22640prelink_cmds \ 22641postlink_cmds \ 22642postinstall_cmds \ 22643postuninstall_cmds \ 22644finish_cmds \ 22645sys_lib_search_path_spec \ 22646configure_time_dlsearch_path \ 22647configure_time_lt_sys_library_path; do 22648 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22649 *[\\\\\\\`\\"\\\$]*) 22650 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22651 ;; 22652 *) 22653 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22654 ;; 22655 esac 22656done 22657 22658ac_aux_dir='$ac_aux_dir' 22659 22660# See if we are running on zsh, and set the options that allow our 22661# commands through without removal of \ escapes INIT. 22662if test -n "\${ZSH_VERSION+set}"; then 22663 setopt NO_GLOB_SUBST 22664fi 22665 22666 22667 PACKAGE='$PACKAGE' 22668 VERSION='$VERSION' 22669 RM='$RM' 22670 ofile='$ofile' 22671 22672 22673 22674 22675_ACEOF 22676 22677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22678 22679# Handling of arguments. 22680for ac_config_target in $ac_config_targets 22681do 22682 case $ac_config_target in 22683 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22684 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 22685 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22686 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; 22687 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;; 22688 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;; 22689 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;; 22690 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;; 22691 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;; 22692 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;; 22693 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;; 22694 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;; 22695 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;; 22696 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;; 22697 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;; 22698 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;; 22699 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;; 22700 "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;; 22701 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22702 22703 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22704 esac 22705done 22706 22707 22708# If the user did not use the arguments to specify the items to instantiate, 22709# then the envvar interface is used. Set only those that are not. 22710# We use the long form for the default assignment because of an extremely 22711# bizarre bug on SunOS 4.1.3. 22712if $ac_need_defaults; then 22713 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22714 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22715 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22716fi 22717 22718# Have a temporary directory for convenience. Make it in the build tree 22719# simply because there is no reason against having it here, and in addition, 22720# creating and moving files from /tmp can sometimes cause problems. 22721# Hook for its removal unless debugging. 22722# Note that there is a small window in which the directory will not be cleaned: 22723# after its creation but before its name has been assigned to `$tmp'. 22724$debug || 22725{ 22726 tmp= ac_tmp= 22727 trap 'exit_status=$? 22728 : "${ac_tmp:=$tmp}" 22729 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22730' 0 22731 trap 'as_fn_exit 1' 1 2 13 15 22732} 22733# Create a (secure) tmp directory for tmp files. 22734 22735{ 22736 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22737 test -d "$tmp" 22738} || 22739{ 22740 tmp=./conf$$-$RANDOM 22741 (umask 077 && mkdir "$tmp") 22742} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22743ac_tmp=$tmp 22744 22745# Set up the scripts for CONFIG_FILES section. 22746# No need to generate them if there are no CONFIG_FILES. 22747# This happens for instance with `./config.status config.h'. 22748if test -n "$CONFIG_FILES"; then 22749 22750 22751ac_cr=`echo X | tr X '\015'` 22752# On cygwin, bash can eat \r inside `` if the user requested igncr. 22753# But we know of no other shell where ac_cr would be empty at this 22754# point, so we can use a bashism as a fallback. 22755if test "x$ac_cr" = x; then 22756 eval ac_cr=\$\'\\r\' 22757fi 22758ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22759if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22760 ac_cs_awk_cr='\\r' 22761else 22762 ac_cs_awk_cr=$ac_cr 22763fi 22764 22765echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22766_ACEOF 22767 22768 22769{ 22770 echo "cat >conf$$subs.awk <<_ACEOF" && 22771 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22772 echo "_ACEOF" 22773} >conf$$subs.sh || 22774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22775ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22776ac_delim='%!_!# ' 22777for ac_last_try in false false false false false :; do 22778 . ./conf$$subs.sh || 22779 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22780 22781 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22782 if test $ac_delim_n = $ac_delim_num; then 22783 break 22784 elif $ac_last_try; then 22785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22786 else 22787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22788 fi 22789done 22790rm -f conf$$subs.sh 22791 22792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22793cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22794_ACEOF 22795sed -n ' 22796h 22797s/^/S["/; s/!.*/"]=/ 22798p 22799g 22800s/^[^!]*!// 22801:repl 22802t repl 22803s/'"$ac_delim"'$// 22804t delim 22805:nl 22806h 22807s/\(.\{148\}\)..*/\1/ 22808t more1 22809s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22810p 22811n 22812b repl 22813:more1 22814s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22815p 22816g 22817s/.\{148\}// 22818t nl 22819:delim 22820h 22821s/\(.\{148\}\)..*/\1/ 22822t more2 22823s/["\\]/\\&/g; s/^/"/; s/$/"/ 22824p 22825b 22826:more2 22827s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22828p 22829g 22830s/.\{148\}// 22831t delim 22832' <conf$$subs.awk | sed ' 22833/^[^""]/{ 22834 N 22835 s/\n// 22836} 22837' >>$CONFIG_STATUS || ac_write_fail=1 22838rm -f conf$$subs.awk 22839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22840_ACAWK 22841cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22842 for (key in S) S_is_set[key] = 1 22843 FS = "" 22844 22845} 22846{ 22847 line = $ 0 22848 nfields = split(line, field, "@") 22849 substed = 0 22850 len = length(field[1]) 22851 for (i = 2; i < nfields; i++) { 22852 key = field[i] 22853 keylen = length(key) 22854 if (S_is_set[key]) { 22855 value = S[key] 22856 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22857 len += length(value) + length(field[++i]) 22858 substed = 1 22859 } else 22860 len += 1 + keylen 22861 } 22862 22863 print line 22864} 22865 22866_ACAWK 22867_ACEOF 22868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22869if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22870 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22871else 22872 cat 22873fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22874 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22875_ACEOF 22876 22877# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22878# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22879# trailing colons and then remove the whole line if VPATH becomes empty 22880# (actually we leave an empty line to preserve line numbers). 22881if test "x$srcdir" = x.; then 22882 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22883h 22884s/// 22885s/^/:/ 22886s/[ ]*$/:/ 22887s/:\$(srcdir):/:/g 22888s/:\${srcdir}:/:/g 22889s/:@srcdir@:/:/g 22890s/^:*// 22891s/:*$// 22892x 22893s/\(=[ ]*\).*/\1/ 22894G 22895s/\n// 22896s/^[^=]*=[ ]*$// 22897}' 22898fi 22899 22900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22901fi # test -n "$CONFIG_FILES" 22902 22903# Set up the scripts for CONFIG_HEADERS section. 22904# No need to generate them if there are no CONFIG_HEADERS. 22905# This happens for instance with `./config.status Makefile'. 22906if test -n "$CONFIG_HEADERS"; then 22907cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22908BEGIN { 22909_ACEOF 22910 22911# Transform confdefs.h into an awk script `defines.awk', embedded as 22912# here-document in config.status, that substitutes the proper values into 22913# config.h.in to produce config.h. 22914 22915# Create a delimiter string that does not exist in confdefs.h, to ease 22916# handling of long lines. 22917ac_delim='%!_!# ' 22918for ac_last_try in false false :; do 22919 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22920 if test -z "$ac_tt"; then 22921 break 22922 elif $ac_last_try; then 22923 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22924 else 22925 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22926 fi 22927done 22928 22929# For the awk script, D is an array of macro values keyed by name, 22930# likewise P contains macro parameters if any. Preserve backslash 22931# newline sequences. 22932 22933ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22934sed -n ' 22935s/.\{148\}/&'"$ac_delim"'/g 22936t rset 22937:rset 22938s/^[ ]*#[ ]*define[ ][ ]*/ / 22939t def 22940d 22941:def 22942s/\\$// 22943t bsnl 22944s/["\\]/\\&/g 22945s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22946D["\1"]=" \3"/p 22947s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22948d 22949:bsnl 22950s/["\\]/\\&/g 22951s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22952D["\1"]=" \3\\\\\\n"\\/p 22953t cont 22954s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22955t cont 22956d 22957:cont 22958n 22959s/.\{148\}/&'"$ac_delim"'/g 22960t clear 22961:clear 22962s/\\$// 22963t bsnlc 22964s/["\\]/\\&/g; s/^/"/; s/$/"/p 22965d 22966:bsnlc 22967s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22968b cont 22969' <confdefs.h | sed ' 22970s/'"$ac_delim"'/"\\\ 22971"/g' >>$CONFIG_STATUS || ac_write_fail=1 22972 22973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22974 for (key in D) D_is_set[key] = 1 22975 FS = "" 22976} 22977/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22978 line = \$ 0 22979 split(line, arg, " ") 22980 if (arg[1] == "#") { 22981 defundef = arg[2] 22982 mac1 = arg[3] 22983 } else { 22984 defundef = substr(arg[1], 2) 22985 mac1 = arg[2] 22986 } 22987 split(mac1, mac2, "(") #) 22988 macro = mac2[1] 22989 prefix = substr(line, 1, index(line, defundef) - 1) 22990 if (D_is_set[macro]) { 22991 # Preserve the white space surrounding the "#". 22992 print prefix "define", macro P[macro] D[macro] 22993 next 22994 } else { 22995 # Replace #undef with comments. This is necessary, for example, 22996 # in the case of _POSIX_SOURCE, which is predefined and required 22997 # on some systems where configure will not decide to define it. 22998 if (defundef == "undef") { 22999 print "/*", prefix defundef, macro, "*/" 23000 next 23001 } 23002 } 23003} 23004{ print } 23005_ACAWK 23006_ACEOF 23007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23008 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23009fi # test -n "$CONFIG_HEADERS" 23010 23011 23012eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23013shift 23014for ac_tag 23015do 23016 case $ac_tag in 23017 :[FHLC]) ac_mode=$ac_tag; continue;; 23018 esac 23019 case $ac_mode$ac_tag in 23020 :[FHL]*:*);; 23021 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23022 :[FH]-) ac_tag=-:-;; 23023 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23024 esac 23025 ac_save_IFS=$IFS 23026 IFS=: 23027 set x $ac_tag 23028 IFS=$ac_save_IFS 23029 shift 23030 ac_file=$1 23031 shift 23032 23033 case $ac_mode in 23034 :L) ac_source=$1;; 23035 :[FH]) 23036 ac_file_inputs= 23037 for ac_f 23038 do 23039 case $ac_f in 23040 -) ac_f="$ac_tmp/stdin";; 23041 *) # Look for the file first in the build tree, then in the source tree 23042 # (if the path is not absolute). The absolute path cannot be DOS-style, 23043 # because $ac_f cannot contain `:'. 23044 test -f "$ac_f" || 23045 case $ac_f in 23046 [\\/$]*) false;; 23047 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23048 esac || 23049 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23050 esac 23051 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23052 as_fn_append ac_file_inputs " '$ac_f'" 23053 done 23054 23055 # Let's still pretend it is `configure' which instantiates (i.e., don't 23056 # use $as_me), people would be surprised to read: 23057 # /* config.h. Generated by config.status. */ 23058 configure_input='Generated from '` 23059 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23060 `' by configure.' 23061 if test x"$ac_file" != x-; then 23062 configure_input="$ac_file. $configure_input" 23063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23064$as_echo "$as_me: creating $ac_file" >&6;} 23065 fi 23066 # Neutralize special characters interpreted by sed in replacement strings. 23067 case $configure_input in #( 23068 *\&* | *\|* | *\\* ) 23069 ac_sed_conf_input=`$as_echo "$configure_input" | 23070 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23071 *) ac_sed_conf_input=$configure_input;; 23072 esac 23073 23074 case $ac_tag in 23075 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23076 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23077 esac 23078 ;; 23079 esac 23080 23081 ac_dir=`$as_dirname -- "$ac_file" || 23082$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23083 X"$ac_file" : 'X\(//\)[^/]' \| \ 23084 X"$ac_file" : 'X\(//\)$' \| \ 23085 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23086$as_echo X"$ac_file" | 23087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23088 s//\1/ 23089 q 23090 } 23091 /^X\(\/\/\)[^/].*/{ 23092 s//\1/ 23093 q 23094 } 23095 /^X\(\/\/\)$/{ 23096 s//\1/ 23097 q 23098 } 23099 /^X\(\/\).*/{ 23100 s//\1/ 23101 q 23102 } 23103 s/.*/./; q'` 23104 as_dir="$ac_dir"; as_fn_mkdir_p 23105 ac_builddir=. 23106 23107case "$ac_dir" in 23108.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23109*) 23110 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23111 # A ".." for each directory in $ac_dir_suffix. 23112 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23113 case $ac_top_builddir_sub in 23114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23116 esac ;; 23117esac 23118ac_abs_top_builddir=$ac_pwd 23119ac_abs_builddir=$ac_pwd$ac_dir_suffix 23120# for backward compatibility: 23121ac_top_builddir=$ac_top_build_prefix 23122 23123case $srcdir in 23124 .) # We are building in place. 23125 ac_srcdir=. 23126 ac_top_srcdir=$ac_top_builddir_sub 23127 ac_abs_top_srcdir=$ac_pwd ;; 23128 [\\/]* | ?:[\\/]* ) # Absolute name. 23129 ac_srcdir=$srcdir$ac_dir_suffix; 23130 ac_top_srcdir=$srcdir 23131 ac_abs_top_srcdir=$srcdir ;; 23132 *) # Relative name. 23133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23134 ac_top_srcdir=$ac_top_build_prefix$srcdir 23135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23136esac 23137ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23138 23139 23140 case $ac_mode in 23141 :F) 23142 # 23143 # CONFIG_FILE 23144 # 23145 23146_ACEOF 23147 23148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23149# If the template does not know about datarootdir, expand it. 23150# FIXME: This hack should be removed a few years after 2.60. 23151ac_datarootdir_hack=; ac_datarootdir_seen= 23152ac_sed_dataroot=' 23153/datarootdir/ { 23154 p 23155 q 23156} 23157/@datadir@/p 23158/@docdir@/p 23159/@infodir@/p 23160/@localedir@/p 23161/@mandir@/p' 23162case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23163*datarootdir*) ac_datarootdir_seen=yes;; 23164*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23166$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23167_ACEOF 23168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23169 ac_datarootdir_hack=' 23170 s&@datadir@&$datadir&g 23171 s&@docdir@&$docdir&g 23172 s&@infodir@&$infodir&g 23173 s&@localedir@&$localedir&g 23174 s&@mandir@&$mandir&g 23175 s&\\\${datarootdir}&$datarootdir&g' ;; 23176esac 23177_ACEOF 23178 23179# Neutralize VPATH when `$srcdir' = `.'. 23180# Shell code in configure.ac might set extrasub. 23181# FIXME: do we really want to maintain this feature? 23182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23183ac_sed_extra="$ac_vpsub 23184$extrasub 23185_ACEOF 23186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23187:t 23188/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23189s|@configure_input@|$ac_sed_conf_input|;t t 23190s&@top_builddir@&$ac_top_builddir_sub&;t t 23191s&@top_build_prefix@&$ac_top_build_prefix&;t t 23192s&@srcdir@&$ac_srcdir&;t t 23193s&@abs_srcdir@&$ac_abs_srcdir&;t t 23194s&@top_srcdir@&$ac_top_srcdir&;t t 23195s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23196s&@builddir@&$ac_builddir&;t t 23197s&@abs_builddir@&$ac_abs_builddir&;t t 23198s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23199$ac_datarootdir_hack 23200" 23201eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23202 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23203 23204test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23205 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23206 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23207 "$ac_tmp/out"`; test -z "$ac_out"; } && 23208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23209which seems to be undefined. Please make sure it is defined" >&5 23210$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23211which seems to be undefined. Please make sure it is defined" >&2;} 23212 23213 rm -f "$ac_tmp/stdin" 23214 case $ac_file in 23215 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23216 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23217 esac \ 23218 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23219 ;; 23220 :H) 23221 # 23222 # CONFIG_HEADER 23223 # 23224 if test x"$ac_file" != x-; then 23225 { 23226 $as_echo "/* $configure_input */" \ 23227 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23228 } >"$ac_tmp/config.h" \ 23229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23230 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23231 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23232$as_echo "$as_me: $ac_file is unchanged" >&6;} 23233 else 23234 rm -f "$ac_file" 23235 mv "$ac_tmp/config.h" "$ac_file" \ 23236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23237 fi 23238 else 23239 $as_echo "/* $configure_input */" \ 23240 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23241 || as_fn_error $? "could not create -" "$LINENO" 5 23242 fi 23243 ;; 23244 23245 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23246$as_echo "$as_me: executing $ac_file commands" >&6;} 23247 ;; 23248 esac 23249 23250 23251 case $ac_file$ac_mode in 23252 "libtool":C) 23253 23254 # See if we are running on zsh, and set the options that allow our 23255 # commands through without removal of \ escapes. 23256 if test -n "${ZSH_VERSION+set}"; then 23257 setopt NO_GLOB_SUBST 23258 fi 23259 23260 cfgfile=${ofile}T 23261 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23262 $RM "$cfgfile" 23263 23264 cat <<_LT_EOF >> "$cfgfile" 23265#! $SHELL 23266# Generated automatically by $as_me ($PACKAGE) $VERSION 23267# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23268# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23269 23270# Provide generalized library-building support services. 23271# Written by Gordon Matzigkeit, 1996 23272 23273# Copyright (C) 2014 Free Software Foundation, Inc. 23274# This is free software; see the source for copying conditions. There is NO 23275# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23276 23277# GNU Libtool is free software; you can redistribute it and/or modify 23278# it under the terms of the GNU General Public License as published by 23279# the Free Software Foundation; either version 2 of of the License, or 23280# (at your option) any later version. 23281# 23282# As a special exception to the GNU General Public License, if you 23283# distribute this file as part of a program or library that is built 23284# using GNU Libtool, you may include this file under the same 23285# distribution terms that you use for the rest of that program. 23286# 23287# GNU Libtool is distributed in the hope that it will be useful, but 23288# WITHOUT ANY WARRANTY; without even the implied warranty of 23289# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23290# GNU General Public License for more details. 23291# 23292# You should have received a copy of the GNU General Public License 23293# along with this program. If not, see <http://www.gnu.org/licenses/>. 23294 23295 23296# The names of the tagged configurations supported by this script. 23297available_tags='' 23298 23299# Configured defaults for sys_lib_dlsearch_path munging. 23300: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23301 23302# ### BEGIN LIBTOOL CONFIG 23303 23304# Which release of libtool.m4 was used? 23305macro_version=$macro_version 23306macro_revision=$macro_revision 23307 23308# Whether or not to build shared libraries. 23309build_libtool_libs=$enable_shared 23310 23311# Whether or not to build static libraries. 23312build_old_libs=$enable_static 23313 23314# What type of objects to build. 23315pic_mode=$pic_mode 23316 23317# Whether or not to optimize for fast installation. 23318fast_install=$enable_fast_install 23319 23320# Shared archive member basename,for filename based shared library versioning on AIX. 23321shared_archive_member_spec=$shared_archive_member_spec 23322 23323# Shell to use when invoking shell scripts. 23324SHELL=$lt_SHELL 23325 23326# An echo program that protects backslashes. 23327ECHO=$lt_ECHO 23328 23329# The PATH separator for the build system. 23330PATH_SEPARATOR=$lt_PATH_SEPARATOR 23331 23332# The host system. 23333host_alias=$host_alias 23334host=$host 23335host_os=$host_os 23336 23337# The build system. 23338build_alias=$build_alias 23339build=$build 23340build_os=$build_os 23341 23342# A sed program that does not truncate output. 23343SED=$lt_SED 23344 23345# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23346Xsed="\$SED -e 1s/^X//" 23347 23348# A grep program that handles long lines. 23349GREP=$lt_GREP 23350 23351# An ERE matcher. 23352EGREP=$lt_EGREP 23353 23354# A literal string matcher. 23355FGREP=$lt_FGREP 23356 23357# A BSD- or MS-compatible name lister. 23358NM=$lt_NM 23359 23360# Whether we need soft or hard links. 23361LN_S=$lt_LN_S 23362 23363# What is the maximum length of a command? 23364max_cmd_len=$max_cmd_len 23365 23366# Object file suffix (normally "o"). 23367objext=$ac_objext 23368 23369# Executable file suffix (normally ""). 23370exeext=$exeext 23371 23372# whether the shell understands "unset". 23373lt_unset=$lt_unset 23374 23375# turn spaces into newlines. 23376SP2NL=$lt_lt_SP2NL 23377 23378# turn newlines into spaces. 23379NL2SP=$lt_lt_NL2SP 23380 23381# convert \$build file names to \$host format. 23382to_host_file_cmd=$lt_cv_to_host_file_cmd 23383 23384# convert \$build files to toolchain format. 23385to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23386 23387# An object symbol dumper. 23388OBJDUMP=$lt_OBJDUMP 23389 23390# Method to check whether dependent libraries are shared objects. 23391deplibs_check_method=$lt_deplibs_check_method 23392 23393# Command to use when deplibs_check_method = "file_magic". 23394file_magic_cmd=$lt_file_magic_cmd 23395 23396# How to find potential files when deplibs_check_method = "file_magic". 23397file_magic_glob=$lt_file_magic_glob 23398 23399# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23400want_nocaseglob=$lt_want_nocaseglob 23401 23402# DLL creation program. 23403DLLTOOL=$lt_DLLTOOL 23404 23405# Command to associate shared and link libraries. 23406sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23407 23408# The archiver. 23409AR=$lt_AR 23410 23411# Flags to create an archive. 23412AR_FLAGS=$lt_AR_FLAGS 23413 23414# How to feed a file listing to the archiver. 23415archiver_list_spec=$lt_archiver_list_spec 23416 23417# A symbol stripping program. 23418STRIP=$lt_STRIP 23419 23420# Commands used to install an old-style archive. 23421RANLIB=$lt_RANLIB 23422old_postinstall_cmds=$lt_old_postinstall_cmds 23423old_postuninstall_cmds=$lt_old_postuninstall_cmds 23424 23425# Whether to use a lock for old archive extraction. 23426lock_old_archive_extraction=$lock_old_archive_extraction 23427 23428# A C compiler. 23429LTCC=$lt_CC 23430 23431# LTCC compiler flags. 23432LTCFLAGS=$lt_CFLAGS 23433 23434# Take the output of nm and produce a listing of raw symbols and C names. 23435global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23436 23437# Transform the output of nm in a proper C declaration. 23438global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23439 23440# Transform the output of nm into a list of symbols to manually relocate. 23441global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23442 23443# Transform the output of nm in a C name address pair. 23444global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23445 23446# Transform the output of nm in a C name address pair when lib prefix is needed. 23447global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23448 23449# The name lister interface. 23450nm_interface=$lt_lt_cv_nm_interface 23451 23452# Specify filename containing input files for \$NM. 23453nm_file_list_spec=$lt_nm_file_list_spec 23454 23455# The root where to search for dependent libraries,and where our libraries should be installed. 23456lt_sysroot=$lt_sysroot 23457 23458# Command to truncate a binary pipe. 23459lt_truncate_bin=$lt_lt_cv_truncate_bin 23460 23461# The name of the directory that contains temporary libtool files. 23462objdir=$objdir 23463 23464# Used to examine libraries when file_magic_cmd begins with "file". 23465MAGIC_CMD=$MAGIC_CMD 23466 23467# Must we lock files when doing compilation? 23468need_locks=$lt_need_locks 23469 23470# Manifest tool. 23471MANIFEST_TOOL=$lt_MANIFEST_TOOL 23472 23473# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23474DSYMUTIL=$lt_DSYMUTIL 23475 23476# Tool to change global to local symbols on Mac OS X. 23477NMEDIT=$lt_NMEDIT 23478 23479# Tool to manipulate fat objects and archives on Mac OS X. 23480LIPO=$lt_LIPO 23481 23482# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23483OTOOL=$lt_OTOOL 23484 23485# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23486OTOOL64=$lt_OTOOL64 23487 23488# Old archive suffix (normally "a"). 23489libext=$libext 23490 23491# Shared library suffix (normally ".so"). 23492shrext_cmds=$lt_shrext_cmds 23493 23494# The commands to extract the exported symbol list from a shared archive. 23495extract_expsyms_cmds=$lt_extract_expsyms_cmds 23496 23497# Variables whose values should be saved in libtool wrapper scripts and 23498# restored at link time. 23499variables_saved_for_relink=$lt_variables_saved_for_relink 23500 23501# Do we need the "lib" prefix for modules? 23502need_lib_prefix=$need_lib_prefix 23503 23504# Do we need a version for libraries? 23505need_version=$need_version 23506 23507# Library versioning type. 23508version_type=$version_type 23509 23510# Shared library runtime path variable. 23511runpath_var=$runpath_var 23512 23513# Shared library path variable. 23514shlibpath_var=$shlibpath_var 23515 23516# Is shlibpath searched before the hard-coded library search path? 23517shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23518 23519# Format of library name prefix. 23520libname_spec=$lt_libname_spec 23521 23522# List of archive names. First name is the real one, the rest are links. 23523# The last name is the one that the linker finds with -lNAME 23524library_names_spec=$lt_library_names_spec 23525 23526# The coded name of the library, if different from the real name. 23527soname_spec=$lt_soname_spec 23528 23529# Permission mode override for installation of shared libraries. 23530install_override_mode=$lt_install_override_mode 23531 23532# Command to use after installation of a shared archive. 23533postinstall_cmds=$lt_postinstall_cmds 23534 23535# Command to use after uninstallation of a shared archive. 23536postuninstall_cmds=$lt_postuninstall_cmds 23537 23538# Commands used to finish a libtool library installation in a directory. 23539finish_cmds=$lt_finish_cmds 23540 23541# As "finish_cmds", except a single script fragment to be evaled but 23542# not shown. 23543finish_eval=$lt_finish_eval 23544 23545# Whether we should hardcode library paths into libraries. 23546hardcode_into_libs=$hardcode_into_libs 23547 23548# Compile-time system search path for libraries. 23549sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23550 23551# Detected run-time system search path for libraries. 23552sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23553 23554# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23555configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23556 23557# Whether dlopen is supported. 23558dlopen_support=$enable_dlopen 23559 23560# Whether dlopen of programs is supported. 23561dlopen_self=$enable_dlopen_self 23562 23563# Whether dlopen of statically linked programs is supported. 23564dlopen_self_static=$enable_dlopen_self_static 23565 23566# Commands to strip libraries. 23567old_striplib=$lt_old_striplib 23568striplib=$lt_striplib 23569 23570 23571# The linker used to build libraries. 23572LD=$lt_LD 23573 23574# How to create reloadable object files. 23575reload_flag=$lt_reload_flag 23576reload_cmds=$lt_reload_cmds 23577 23578# Commands used to build an old-style archive. 23579old_archive_cmds=$lt_old_archive_cmds 23580 23581# A language specific compiler. 23582CC=$lt_compiler 23583 23584# Is the compiler the GNU compiler? 23585with_gcc=$GCC 23586 23587# Compiler flag to turn off builtin functions. 23588no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23589 23590# Additional compiler flags for building library objects. 23591pic_flag=$lt_lt_prog_compiler_pic 23592 23593# How to pass a linker flag through the compiler. 23594wl=$lt_lt_prog_compiler_wl 23595 23596# Compiler flag to prevent dynamic linking. 23597link_static_flag=$lt_lt_prog_compiler_static 23598 23599# Does compiler simultaneously support -c and -o options? 23600compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23601 23602# Whether or not to add -lc for building shared libraries. 23603build_libtool_need_lc=$archive_cmds_need_lc 23604 23605# Whether or not to disallow shared libs when runtime libs are static. 23606allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23607 23608# Compiler flag to allow reflexive dlopens. 23609export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23610 23611# Compiler flag to generate shared objects directly from archives. 23612whole_archive_flag_spec=$lt_whole_archive_flag_spec 23613 23614# Whether the compiler copes with passing no objects directly. 23615compiler_needs_object=$lt_compiler_needs_object 23616 23617# Create an old-style archive from a shared archive. 23618old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23619 23620# Create a temporary old-style archive to link instead of a shared archive. 23621old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23622 23623# Commands used to build a shared archive. 23624archive_cmds=$lt_archive_cmds 23625archive_expsym_cmds=$lt_archive_expsym_cmds 23626 23627# Commands used to build a loadable module if different from building 23628# a shared archive. 23629module_cmds=$lt_module_cmds 23630module_expsym_cmds=$lt_module_expsym_cmds 23631 23632# Whether we are building with GNU ld or not. 23633with_gnu_ld=$lt_with_gnu_ld 23634 23635# Flag that allows shared libraries with undefined symbols to be built. 23636allow_undefined_flag=$lt_allow_undefined_flag 23637 23638# Flag that enforces no undefined symbols. 23639no_undefined_flag=$lt_no_undefined_flag 23640 23641# Flag to hardcode \$libdir into a binary during linking. 23642# This must work even if \$libdir does not exist 23643hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23644 23645# Whether we need a single "-rpath" flag with a separated argument. 23646hardcode_libdir_separator=$lt_hardcode_libdir_separator 23647 23648# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23649# DIR into the resulting binary. 23650hardcode_direct=$hardcode_direct 23651 23652# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23653# DIR into the resulting binary and the resulting library dependency is 23654# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23655# library is relocated. 23656hardcode_direct_absolute=$hardcode_direct_absolute 23657 23658# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23659# into the resulting binary. 23660hardcode_minus_L=$hardcode_minus_L 23661 23662# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23663# into the resulting binary. 23664hardcode_shlibpath_var=$hardcode_shlibpath_var 23665 23666# Set to "yes" if building a shared library automatically hardcodes DIR 23667# into the library and all subsequent libraries and executables linked 23668# against it. 23669hardcode_automatic=$hardcode_automatic 23670 23671# Set to yes if linker adds runtime paths of dependent libraries 23672# to runtime path list. 23673inherit_rpath=$inherit_rpath 23674 23675# Whether libtool must link a program against all its dependency libraries. 23676link_all_deplibs=$link_all_deplibs 23677 23678# Set to "yes" if exported symbols are required. 23679always_export_symbols=$always_export_symbols 23680 23681# The commands to list exported symbols. 23682export_symbols_cmds=$lt_export_symbols_cmds 23683 23684# Symbols that should not be listed in the preloaded symbols. 23685exclude_expsyms=$lt_exclude_expsyms 23686 23687# Symbols that must always be exported. 23688include_expsyms=$lt_include_expsyms 23689 23690# Commands necessary for linking programs (against libraries) with templates. 23691prelink_cmds=$lt_prelink_cmds 23692 23693# Commands necessary for finishing linking programs. 23694postlink_cmds=$lt_postlink_cmds 23695 23696# Specify filename containing input files. 23697file_list_spec=$lt_file_list_spec 23698 23699# How to hardcode a shared library path into an executable. 23700hardcode_action=$hardcode_action 23701 23702# ### END LIBTOOL CONFIG 23703 23704_LT_EOF 23705 23706 cat <<'_LT_EOF' >> "$cfgfile" 23707 23708# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23709 23710# func_munge_path_list VARIABLE PATH 23711# ----------------------------------- 23712# VARIABLE is name of variable containing _space_ separated list of 23713# directories to be munged by the contents of PATH, which is string 23714# having a format: 23715# "DIR[:DIR]:" 23716# string "DIR[ DIR]" will be prepended to VARIABLE 23717# ":DIR[:DIR]" 23718# string "DIR[ DIR]" will be appended to VARIABLE 23719# "DIRP[:DIRP]::[DIRA:]DIRA" 23720# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23721# "DIRA[ DIRA]" will be appended to VARIABLE 23722# "DIR[:DIR]" 23723# VARIABLE will be replaced by "DIR[ DIR]" 23724func_munge_path_list () 23725{ 23726 case x$2 in 23727 x) 23728 ;; 23729 *:) 23730 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23731 ;; 23732 x:*) 23733 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23734 ;; 23735 *::*) 23736 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23737 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23738 ;; 23739 *) 23740 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23741 ;; 23742 esac 23743} 23744 23745 23746# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23747func_cc_basename () 23748{ 23749 for cc_temp in $*""; do 23750 case $cc_temp in 23751 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23752 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23753 \-*) ;; 23754 *) break;; 23755 esac 23756 done 23757 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23758} 23759 23760 23761# ### END FUNCTIONS SHARED WITH CONFIGURE 23762 23763_LT_EOF 23764 23765 case $host_os in 23766 aix3*) 23767 cat <<\_LT_EOF >> "$cfgfile" 23768# AIX sometimes has problems with the GCC collect2 program. For some 23769# reason, if we set the COLLECT_NAMES environment variable, the problems 23770# vanish in a puff of smoke. 23771if test set != "${COLLECT_NAMES+set}"; then 23772 COLLECT_NAMES= 23773 export COLLECT_NAMES 23774fi 23775_LT_EOF 23776 ;; 23777 esac 23778 23779 23780ltmain=$ac_aux_dir/ltmain.sh 23781 23782 23783 # We use sed instead of cat because bash on DJGPP gets confused if 23784 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23785 # text mode, it properly converts lines to CR/LF. This bash problem 23786 # is reportedly fixed, but why not run on old versions too? 23787 sed '$q' "$ltmain" >> "$cfgfile" \ 23788 || (rm -f "$cfgfile"; exit 1) 23789 23790 mv -f "$cfgfile" "$ofile" || 23791 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23792 chmod +x "$ofile" 23793 23794 ;; 23795 "disable-rpath":C) 23796 sed < libtool > libtool-2 \ 23797 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 23798 mv libtool-2 libtool 23799 chmod 755 libtool 23800 libtool="./libtool" 23801 ;; 23802 23803 esac 23804done # for ac_tag 23805 23806 23807as_fn_exit 0 23808_ACEOF 23809ac_clean_files=$ac_clean_files_save 23810 23811test $ac_write_fail = 0 || 23812 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23813 23814 23815# configure is writing to config.log, and then calls config.status. 23816# config.status does its own redirection, appending to config.log. 23817# Unfortunately, on DOS this fails, as config.log is still kept open 23818# by configure, so config.status won't be able to write to it; its 23819# output is simply discarded. So we exec the FD to /dev/null, 23820# effectively closing config.log, so it can be properly (re)opened and 23821# appended to by config.status. When coming back to configure, we 23822# need to make the FD available again. 23823if test "$no_create" != yes; then 23824 ac_cs_success=: 23825 ac_config_status_args= 23826 test "$silent" = yes && 23827 ac_config_status_args="$ac_config_status_args --quiet" 23828 exec 5>/dev/null 23829 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23830 exec 5>>config.log 23831 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23832 # would make configure fail if this is the last instruction. 23833 $ac_cs_success || as_fn_exit 1 23834fi 23835if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23837$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23838fi 23839 23840