1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for unbound 1.5.1. 4# 5# Report bugs to <unbound-bugs@nlnetlabs.nl>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 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 about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='unbound' 592PACKAGE_TARNAME='unbound' 593PACKAGE_VERSION='1.5.1' 594PACKAGE_STRING='unbound 1.5.1' 595PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='LTLIBOBJS 635date 636version 637INSTALLTARGET 638ALLTARGET 639SOURCEFILE 640SOURCEDETERMINE 641DNSTAP_OBJ 642DNSTAP_SRC 643opt_dnstap_socket_path 644ENABLE_DNSTAP 645PROTOC_C 646UBSYMS 647EXTRALINK 648COMMON_OBJ_ALL_SYMBOLS 649LIBOBJ_WITHOUT_CTIME 650LIBOBJ_WITHOUT_CTIMEARC4 651WIN_CHECKCONF_OBJ_LINK 652WIN_CONTROL_OBJ_LINK 653WIN_UBANCHOR_OBJ_LINK 654WIN_HOST_OBJ_LINK 655WIN_DAEMON_OBJ_LINK 656WIN_DAEMON_OBJ 657WIN_DAEMON_SRC 658WINAPPS 659WINDRES 660CHECKLOCK_OBJ 661staticexe 662UNBOUND_EVENT_UNINSTALL 663UNBOUND_EVENT_INSTALL 664HAVE_SSL 665CONFIG_DATE 666NETBSD_LINTFLAGS 667PYUNBOUND_UNINSTALL 668PYUNBOUND_INSTALL 669PYUNBOUND_TARGET 670PYUNBOUND_OBJ 671WITH_PYUNBOUND 672PYTHONMOD_UNINSTALL 673PYTHONMOD_INSTALL 674PYTHONMOD_HEADER 675PYTHONMOD_OBJ 676WITH_PYTHONMODULE 677swig 678SWIG_LIB 679SWIG 680PYTHON_SITE_PKG 681PYTHON_LDFLAGS 682PYTHON_CPPFLAGS 683PYTHON 684PYTHON_VERSION 685PTHREAD_CFLAGS 686PTHREAD_LIBS 687PTHREAD_CC 688ax_pthread_config 689RUNTIME_PATH 690LIBOBJS 691OTOOL64 692OTOOL 693LIPO 694NMEDIT 695DSYMUTIL 696MANIFEST_TOOL 697AWK 698RANLIB 699ac_ct_AR 700DLLTOOL 701OBJDUMP 702LN_S 703NM 704ac_ct_DUMPBIN 705DUMPBIN 706LD 707FGREP 708SED 709LIBTOOL 710AR 711host_os 712host_vendor 713host_cpu 714host 715build_os 716build_vendor 717build_cpu 718build 719libtool 720STRIP 721doxygen 722YFLAGS 723YACC 724LEXLIB 725LEX_OUTPUT_ROOT 726LEX 727debug_enabled 728DEPFLAG 729UNBOUND_USERNAME 730UNBOUND_ROOTCERT_FILE 731UNBOUND_ROOTKEY_FILE 732UNBOUND_PIDFILE 733UNBOUND_SHARE_DIR 734UNBOUND_CHROOT_DIR 735UNBOUND_RUN_DIR 736ub_conf_file 737EGREP 738GREP 739CPP 740OBJEXT 741EXEEXT 742ac_ct_CC 743CPPFLAGS 744LDFLAGS 745CFLAGS 746CC 747LIBUNBOUND_AGE 748LIBUNBOUND_REVISION 749LIBUNBOUND_CURRENT 750UNBOUND_VERSION_MICRO 751UNBOUND_VERSION_MINOR 752UNBOUND_VERSION_MAJOR 753target_alias 754host_alias 755build_alias 756LIBS 757ECHO_T 758ECHO_N 759ECHO_C 760DEFS 761mandir 762localedir 763libdir 764psdir 765pdfdir 766dvidir 767htmldir 768infodir 769docdir 770oldincludedir 771includedir 772localstatedir 773sharedstatedir 774sysconfdir 775datadir 776datarootdir 777libexecdir 778sbindir 779bindir 780program_transform_name 781prefix 782exec_prefix 783PACKAGE_URL 784PACKAGE_BUGREPORT 785PACKAGE_STRING 786PACKAGE_VERSION 787PACKAGE_TARNAME 788PACKAGE_NAME 789PATH_SEPARATOR 790SHELL' 791ac_subst_files='' 792ac_user_opts=' 793enable_option_checking 794with_conf_file 795with_run_dir 796with_chroot_dir 797with_share_dir 798with_pidfile 799with_rootkey_file 800with_rootcert_file 801with_username 802enable_checking 803enable_debug 804enable_flto 805enable_shared 806enable_static 807with_pic 808enable_fast_install 809with_gnu_ld 810with_sysroot 811enable_libtool_lock 812enable_rpath 813enable_largefile 814enable_alloc_checks 815enable_alloc_lite 816enable_alloc_nonregional 817with_pthreads 818with_solaris_threads 819with_pyunbound 820with_pythonmodule 821with_nss 822with_ssl 823enable_sha2 824enable_gost 825enable_ecdsa 826enable_event_api 827with_libevent 828with_libexpat 829enable_static_exe 830enable_lock_checks 831enable_allsymbols 832enable_dnstap 833with_dnstap_socket_path 834with_protobuf_c 835with_libfstrm 836with_libunbound_only 837' 838 ac_precious_vars='build_alias 839host_alias 840target_alias 841CC 842CFLAGS 843LDFLAGS 844LIBS 845CPPFLAGS 846CPP 847YACC 848YFLAGS 849PYTHON_VERSION' 850 851 852# Initialize some variables set by options. 853ac_init_help= 854ac_init_version=false 855ac_unrecognized_opts= 856ac_unrecognized_sep= 857# The variables have the same names as the options, with 858# dashes changed to underlines. 859cache_file=/dev/null 860exec_prefix=NONE 861no_create= 862no_recursion= 863prefix=NONE 864program_prefix=NONE 865program_suffix=NONE 866program_transform_name=s,x,x, 867silent= 868site= 869srcdir= 870verbose= 871x_includes=NONE 872x_libraries=NONE 873 874# Installation directory options. 875# These are left unexpanded so users can "make install exec_prefix=/foo" 876# and all the variables that are supposed to be based on exec_prefix 877# by default will actually change. 878# Use braces instead of parens because sh, perl, etc. also accept them. 879# (The list follows the same order as the GNU Coding Standards.) 880bindir='${exec_prefix}/bin' 881sbindir='${exec_prefix}/sbin' 882libexecdir='${exec_prefix}/libexec' 883datarootdir='${prefix}/share' 884datadir='${datarootdir}' 885sysconfdir='${prefix}/etc' 886sharedstatedir='${prefix}/com' 887localstatedir='${prefix}/var' 888includedir='${prefix}/include' 889oldincludedir='/usr/include' 890docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 891infodir='${datarootdir}/info' 892htmldir='${docdir}' 893dvidir='${docdir}' 894pdfdir='${docdir}' 895psdir='${docdir}' 896libdir='${exec_prefix}/lib' 897localedir='${datarootdir}/locale' 898mandir='${datarootdir}/man' 899 900ac_prev= 901ac_dashdash= 902for ac_option 903do 904 # If the previous option needs an argument, assign it. 905 if test -n "$ac_prev"; then 906 eval $ac_prev=\$ac_option 907 ac_prev= 908 continue 909 fi 910 911 case $ac_option in 912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 913 *=) ac_optarg= ;; 914 *) ac_optarg=yes ;; 915 esac 916 917 # Accept the important Cygnus configure options, so we can diagnose typos. 918 919 case $ac_dashdash$ac_option in 920 --) 921 ac_dashdash=yes ;; 922 923 -bindir | --bindir | --bindi | --bind | --bin | --bi) 924 ac_prev=bindir ;; 925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 926 bindir=$ac_optarg ;; 927 928 -build | --build | --buil | --bui | --bu) 929 ac_prev=build_alias ;; 930 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 931 build_alias=$ac_optarg ;; 932 933 -cache-file | --cache-file | --cache-fil | --cache-fi \ 934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 935 ac_prev=cache_file ;; 936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 938 cache_file=$ac_optarg ;; 939 940 --config-cache | -C) 941 cache_file=config.cache ;; 942 943 -datadir | --datadir | --datadi | --datad) 944 ac_prev=datadir ;; 945 -datadir=* | --datadir=* | --datadi=* | --datad=*) 946 datadir=$ac_optarg ;; 947 948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 949 | --dataroo | --dataro | --datar) 950 ac_prev=datarootdir ;; 951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 953 datarootdir=$ac_optarg ;; 954 955 -disable-* | --disable-*) 956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 957 # Reject names that are not valid shell variable names. 958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 959 as_fn_error $? "invalid feature name: $ac_useropt" 960 ac_useropt_orig=$ac_useropt 961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 962 case $ac_user_opts in 963 *" 964"enable_$ac_useropt" 965"*) ;; 966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 967 ac_unrecognized_sep=', ';; 968 esac 969 eval enable_$ac_useropt=no ;; 970 971 -docdir | --docdir | --docdi | --doc | --do) 972 ac_prev=docdir ;; 973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 974 docdir=$ac_optarg ;; 975 976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 977 ac_prev=dvidir ;; 978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 979 dvidir=$ac_optarg ;; 980 981 -enable-* | --enable-*) 982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 983 # Reject names that are not valid shell variable names. 984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 985 as_fn_error $? "invalid feature name: $ac_useropt" 986 ac_useropt_orig=$ac_useropt 987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 988 case $ac_user_opts in 989 *" 990"enable_$ac_useropt" 991"*) ;; 992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 993 ac_unrecognized_sep=', ';; 994 esac 995 eval enable_$ac_useropt=\$ac_optarg ;; 996 997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 999 | --exec | --exe | --ex) 1000 ac_prev=exec_prefix ;; 1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1003 | --exec=* | --exe=* | --ex=*) 1004 exec_prefix=$ac_optarg ;; 1005 1006 -gas | --gas | --ga | --g) 1007 # Obsolete; use --with-gas. 1008 with_gas=yes ;; 1009 1010 -help | --help | --hel | --he | -h) 1011 ac_init_help=long ;; 1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1013 ac_init_help=recursive ;; 1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1015 ac_init_help=short ;; 1016 1017 -host | --host | --hos | --ho) 1018 ac_prev=host_alias ;; 1019 -host=* | --host=* | --hos=* | --ho=*) 1020 host_alias=$ac_optarg ;; 1021 1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1023 ac_prev=htmldir ;; 1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1025 | --ht=*) 1026 htmldir=$ac_optarg ;; 1027 1028 -includedir | --includedir | --includedi | --included | --include \ 1029 | --includ | --inclu | --incl | --inc) 1030 ac_prev=includedir ;; 1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1032 | --includ=* | --inclu=* | --incl=* | --inc=*) 1033 includedir=$ac_optarg ;; 1034 1035 -infodir | --infodir | --infodi | --infod | --info | --inf) 1036 ac_prev=infodir ;; 1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1038 infodir=$ac_optarg ;; 1039 1040 -libdir | --libdir | --libdi | --libd) 1041 ac_prev=libdir ;; 1042 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1043 libdir=$ac_optarg ;; 1044 1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1046 | --libexe | --libex | --libe) 1047 ac_prev=libexecdir ;; 1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1049 | --libexe=* | --libex=* | --libe=*) 1050 libexecdir=$ac_optarg ;; 1051 1052 -localedir | --localedir | --localedi | --localed | --locale) 1053 ac_prev=localedir ;; 1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1055 localedir=$ac_optarg ;; 1056 1057 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1058 | --localstate | --localstat | --localsta | --localst | --locals) 1059 ac_prev=localstatedir ;; 1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1062 localstatedir=$ac_optarg ;; 1063 1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1065 ac_prev=mandir ;; 1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1067 mandir=$ac_optarg ;; 1068 1069 -nfp | --nfp | --nf) 1070 # Obsolete; use --without-fp. 1071 with_fp=no ;; 1072 1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1074 | --no-cr | --no-c | -n) 1075 no_create=yes ;; 1076 1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1079 no_recursion=yes ;; 1080 1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1083 | --oldin | --oldi | --old | --ol | --o) 1084 ac_prev=oldincludedir ;; 1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1088 oldincludedir=$ac_optarg ;; 1089 1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1091 ac_prev=prefix ;; 1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1093 prefix=$ac_optarg ;; 1094 1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1096 | --program-pre | --program-pr | --program-p) 1097 ac_prev=program_prefix ;; 1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1100 program_prefix=$ac_optarg ;; 1101 1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1103 | --program-suf | --program-su | --program-s) 1104 ac_prev=program_suffix ;; 1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1107 program_suffix=$ac_optarg ;; 1108 1109 -program-transform-name | --program-transform-name \ 1110 | --program-transform-nam | --program-transform-na \ 1111 | --program-transform-n | --program-transform- \ 1112 | --program-transform | --program-transfor \ 1113 | --program-transfo | --program-transf \ 1114 | --program-trans | --program-tran \ 1115 | --progr-tra | --program-tr | --program-t) 1116 ac_prev=program_transform_name ;; 1117 -program-transform-name=* | --program-transform-name=* \ 1118 | --program-transform-nam=* | --program-transform-na=* \ 1119 | --program-transform-n=* | --program-transform-=* \ 1120 | --program-transform=* | --program-transfor=* \ 1121 | --program-transfo=* | --program-transf=* \ 1122 | --program-trans=* | --program-tran=* \ 1123 | --progr-tra=* | --program-tr=* | --program-t=*) 1124 program_transform_name=$ac_optarg ;; 1125 1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1127 ac_prev=pdfdir ;; 1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1129 pdfdir=$ac_optarg ;; 1130 1131 -psdir | --psdir | --psdi | --psd | --ps) 1132 ac_prev=psdir ;; 1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1134 psdir=$ac_optarg ;; 1135 1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1137 | -silent | --silent | --silen | --sile | --sil) 1138 silent=yes ;; 1139 1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1141 ac_prev=sbindir ;; 1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1143 | --sbi=* | --sb=*) 1144 sbindir=$ac_optarg ;; 1145 1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1148 | --sharedst | --shareds | --shared | --share | --shar \ 1149 | --sha | --sh) 1150 ac_prev=sharedstatedir ;; 1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1154 | --sha=* | --sh=*) 1155 sharedstatedir=$ac_optarg ;; 1156 1157 -site | --site | --sit) 1158 ac_prev=site ;; 1159 -site=* | --site=* | --sit=*) 1160 site=$ac_optarg ;; 1161 1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1163 ac_prev=srcdir ;; 1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1165 srcdir=$ac_optarg ;; 1166 1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1168 | --syscon | --sysco | --sysc | --sys | --sy) 1169 ac_prev=sysconfdir ;; 1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1172 sysconfdir=$ac_optarg ;; 1173 1174 -target | --target | --targe | --targ | --tar | --ta | --t) 1175 ac_prev=target_alias ;; 1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1177 target_alias=$ac_optarg ;; 1178 1179 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1180 verbose=yes ;; 1181 1182 -version | --version | --versio | --versi | --vers | -V) 1183 ac_init_version=: ;; 1184 1185 -with-* | --with-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194"with_$ac_useropt" 1195"*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=\$ac_optarg ;; 1200 1201 -without-* | --without-*) 1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1203 # Reject names that are not valid shell variable names. 1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1205 as_fn_error $? "invalid package name: $ac_useropt" 1206 ac_useropt_orig=$ac_useropt 1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1208 case $ac_user_opts in 1209 *" 1210"with_$ac_useropt" 1211"*) ;; 1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1213 ac_unrecognized_sep=', ';; 1214 esac 1215 eval with_$ac_useropt=no ;; 1216 1217 --x) 1218 # Obsolete; use --with-x. 1219 with_x=yes ;; 1220 1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1222 | --x-incl | --x-inc | --x-in | --x-i) 1223 ac_prev=x_includes ;; 1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1226 x_includes=$ac_optarg ;; 1227 1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1230 ac_prev=x_libraries ;; 1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1233 x_libraries=$ac_optarg ;; 1234 1235 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1236Try \`$0 --help' for more information" 1237 ;; 1238 1239 *=*) 1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1241 # Reject names that are not valid shell variable names. 1242 case $ac_envvar in #( 1243 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1244 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1245 esac 1246 eval $ac_envvar=\$ac_optarg 1247 export $ac_envvar ;; 1248 1249 *) 1250 # FIXME: should be removed in autoconf 3.0. 1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1255 ;; 1256 1257 esac 1258done 1259 1260if test -n "$ac_prev"; then 1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1262 as_fn_error $? "missing argument to $ac_option" 1263fi 1264 1265if test -n "$ac_unrecognized_opts"; then 1266 case $enable_option_checking in 1267 no) ;; 1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1270 esac 1271fi 1272 1273# Check all directory arguments for consistency. 1274for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1275 datadir sysconfdir sharedstatedir localstatedir includedir \ 1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1277 libdir localedir mandir 1278do 1279 eval ac_val=\$$ac_var 1280 # Remove trailing slashes. 1281 case $ac_val in 1282 */ ) 1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1284 eval $ac_var=\$ac_val;; 1285 esac 1286 # Be sure to have absolute directory names. 1287 case $ac_val in 1288 [\\/$]* | ?:[\\/]* ) continue;; 1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1290 esac 1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1292done 1293 1294# There might be people who depend on the old broken behavior: `$host' 1295# used to hold the argument of --host etc. 1296# FIXME: To remove some day. 1297build=$build_alias 1298host=$host_alias 1299target=$target_alias 1300 1301# FIXME: To remove some day. 1302if test "x$host_alias" != x; then 1303 if test "x$build_alias" = x; then 1304 cross_compiling=maybe 1305 elif test "x$build_alias" != "x$host_alias"; then 1306 cross_compiling=yes 1307 fi 1308fi 1309 1310ac_tool_prefix= 1311test -n "$host_alias" && ac_tool_prefix=$host_alias- 1312 1313test "$silent" = yes && exec 6>/dev/null 1314 1315 1316ac_pwd=`pwd` && test -n "$ac_pwd" && 1317ac_ls_di=`ls -di .` && 1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1319 as_fn_error $? "working directory cannot be determined" 1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1321 as_fn_error $? "pwd does not report name of working directory" 1322 1323 1324# Find the source files, if location was not specified. 1325if test -z "$srcdir"; then 1326 ac_srcdir_defaulted=yes 1327 # Try the directory containing this script, then the parent directory. 1328 ac_confdir=`$as_dirname -- "$as_myself" || 1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1330 X"$as_myself" : 'X\(//\)[^/]' \| \ 1331 X"$as_myself" : 'X\(//\)$' \| \ 1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1333$as_echo X"$as_myself" | 1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1335 s//\1/ 1336 q 1337 } 1338 /^X\(\/\/\)[^/].*/{ 1339 s//\1/ 1340 q 1341 } 1342 /^X\(\/\/\)$/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\).*/{ 1347 s//\1/ 1348 q 1349 } 1350 s/.*/./; q'` 1351 srcdir=$ac_confdir 1352 if test ! -r "$srcdir/$ac_unique_file"; then 1353 srcdir=.. 1354 fi 1355else 1356 ac_srcdir_defaulted=no 1357fi 1358if test ! -r "$srcdir/$ac_unique_file"; then 1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1361fi 1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1363ac_abs_confdir=`( 1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1365 pwd)` 1366# When building in place, set srcdir=. 1367if test "$ac_abs_confdir" = "$ac_pwd"; then 1368 srcdir=. 1369fi 1370# Remove unnecessary trailing slashes from srcdir. 1371# Double slashes in file names in object file debugging info 1372# mess up M-x gdb in Emacs. 1373case $srcdir in 1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1375esac 1376for ac_var in $ac_precious_vars; do 1377 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1378 eval ac_env_${ac_var}_value=\$${ac_var} 1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1380 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1381done 1382 1383# 1384# Report the --help message. 1385# 1386if test "$ac_init_help" = "long"; then 1387 # Omit some internal or obsolete options to make the list less imposing. 1388 # This message is too long to be a string in the A/UX 3.1 sh. 1389 cat <<_ACEOF 1390\`configure' configures unbound 1.5.1 to adapt to many kinds of systems. 1391 1392Usage: $0 [OPTION]... [VAR=VALUE]... 1393 1394To assign environment variables (e.g., CC, CFLAGS...), specify them as 1395VAR=VALUE. See below for descriptions of some of the useful variables. 1396 1397Defaults for the options are specified in brackets. 1398 1399Configuration: 1400 -h, --help display this help and exit 1401 --help=short display options specific to this package 1402 --help=recursive display the short help of all the included packages 1403 -V, --version display version information and exit 1404 -q, --quiet, --silent do not print \`checking ...' messages 1405 --cache-file=FILE cache test results in FILE [disabled] 1406 -C, --config-cache alias for \`--cache-file=config.cache' 1407 -n, --no-create do not create output files 1408 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1409 1410Installation directories: 1411 --prefix=PREFIX install architecture-independent files in PREFIX 1412 [$ac_default_prefix] 1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1414 [PREFIX] 1415 1416By default, \`make install' will install all the files in 1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1418an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1419for instance \`--prefix=\$HOME'. 1420 1421For better control, use the options below. 1422 1423Fine tuning of the installation directories: 1424 --bindir=DIR user executables [EPREFIX/bin] 1425 --sbindir=DIR system admin executables [EPREFIX/sbin] 1426 --libexecdir=DIR program executables [EPREFIX/libexec] 1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1430 --libdir=DIR object code libraries [EPREFIX/lib] 1431 --includedir=DIR C header files [PREFIX/include] 1432 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1435 --infodir=DIR info documentation [DATAROOTDIR/info] 1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1437 --mandir=DIR man documentation [DATAROOTDIR/man] 1438 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound] 1439 --htmldir=DIR html documentation [DOCDIR] 1440 --dvidir=DIR dvi documentation [DOCDIR] 1441 --pdfdir=DIR pdf documentation [DOCDIR] 1442 --psdir=DIR ps documentation [DOCDIR] 1443_ACEOF 1444 1445 cat <<\_ACEOF 1446 1447System types: 1448 --build=BUILD configure for building on BUILD [guessed] 1449 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1450_ACEOF 1451fi 1452 1453if test -n "$ac_init_help"; then 1454 case $ac_init_help in 1455 short | recursive ) echo "Configuration of unbound 1.5.1:";; 1456 esac 1457 cat <<\_ACEOF 1458 1459Optional Features: 1460 --disable-option-checking ignore unrecognized --enable/--with options 1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1463 --enable-checking Enable warnings, asserts, makefile-dependencies 1464 --enable-debug same as enable-checking 1465 --disable-flto Disable link-time optimization (gcc specific option) 1466 --enable-shared[=PKGS] build shared libraries [default=yes] 1467 --enable-static[=PKGS] build static libraries [default=yes] 1468 --enable-fast-install[=PKGS] 1469 optimize for fast installation [default=yes] 1470 --disable-libtool-lock avoid locking (might break parallel builds) 1471 --disable-rpath disable hardcoded rpath (default=enabled) 1472 --disable-largefile omit support for large files 1473 --enable-alloc-checks enable to memory allocation statistics, for debug 1474 purposes 1475 --enable-alloc-lite enable for lightweight alloc assertions, for debug 1476 purposes 1477 --enable-alloc-nonregional 1478 enable nonregional allocs, slow but exposes regional 1479 allocations to other memory purifiers, for debug 1480 purposes 1481 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1482 --disable-gost Disable GOST support 1483 --disable-ecdsa Disable ECDSA support 1484 --enable-event-api Enable (experimental) libevent-based libunbound API 1485 installed to unbound-event.h 1486 --enable-static-exe enable to compile executables statically against 1487 (event) libs, for debug purposes 1488 --enable-lock-checks enable to check lock and unlock calls, for debug 1489 purposes 1490 --enable-allsymbols export all symbols from libunbound and link binaries 1491 to it, smaller install size but libunbound export 1492 table is polluted by internal symbols 1493 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c) 1494 1495Optional Packages: 1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1498 --with-conf-file=path Pathname to the Unbound configuration file 1499 --with-run-dir=path set default directory to chdir to (by default dir 1500 part of cfg file) 1501 --with-chroot-dir=path set default directory to chroot to (by default same 1502 as run-dir) 1503 --with-share-dir=path set default directory with shared data (by default 1504 same as share/unbound) 1505 --with-pidfile=filename set default pathname to unbound pidfile (default 1506 run-dir/unbound.pid) 1507 --with-rootkey-file=filename 1508 set default pathname to root key file (default 1509 run-dir/root.key). This file is read and written. 1510 --with-rootcert-file=filename 1511 set default pathname to root update certificate file 1512 (default run-dir/icannbundle.pem). This file need 1513 not exist if you are content with the builtin. 1514 --with-username=user set default user that unbound changes to (default 1515 user is unbound) 1516 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1517 both] 1518 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1519 --with-sysroot=DIR Search for dependent libraries within DIR 1520 (or the compiler's sysroot if not specified). 1521 --with-pthreads use pthreads library, or --without-pthreads to 1522 disable threading support. 1523 --with-solaris-threads use solaris native thread library. 1524 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it. 1525 (default=no) 1526 --with-pythonmodule build Python module, or --without-pythonmodule to 1527 disable script engine. (default=no) 1528 --with-nss=path use libnss instead of openssl, installed at path. 1529 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1530 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1531 /usr) 1532 --with-libevent=pathname 1533 use libevent (will check /usr/local /opt/local 1534 /usr/lib /usr/pkg /usr/sfw /usr or you can specify 1535 an explicit path). Slower, but allows use of large 1536 outgoing port ranges. 1537 --with-libexpat=path specify explicit path for libexpat. 1538 --with-dnstap-socket-path=pathname 1539 set default dnstap socket path 1540 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap 1541 --with-libfstrm=path Path where libfstrm is installed, for dnstap 1542 --with-libunbound-only do not build daemon and tool programs 1543 1544Some influential environment variables: 1545 CC C compiler command 1546 CFLAGS C compiler flags 1547 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1548 nonstandard directory <lib dir> 1549 LIBS libraries to pass to the linker, e.g. -l<library> 1550 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1551 you have headers in a nonstandard directory <include dir> 1552 CPP C preprocessor 1553 YACC The `Yet Another Compiler Compiler' implementation to use. 1554 Defaults to the first program found out of: `bison -y', `byacc', 1555 `yacc'. 1556 YFLAGS The list of arguments that will be passed by default to $YACC. 1557 This script will default YFLAGS to the empty string to avoid a 1558 default value of `-d' given by some make applications. 1559 PYTHON_VERSION 1560 The installed Python version to use, for example '2.3'. This 1561 string will be appended to the Python interpreter canonical 1562 name. 1563 1564Use these variables to override the choices made by `configure' or to help 1565it to find libraries and programs with nonstandard names/locations. 1566 1567Report bugs to <unbound-bugs@nlnetlabs.nl>. 1568_ACEOF 1569ac_status=$? 1570fi 1571 1572if test "$ac_init_help" = "recursive"; then 1573 # If there are subdirs, report their specific --help. 1574 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1575 test -d "$ac_dir" || 1576 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1577 continue 1578 ac_builddir=. 1579 1580case "$ac_dir" in 1581.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1582*) 1583 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1584 # A ".." for each directory in $ac_dir_suffix. 1585 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1586 case $ac_top_builddir_sub in 1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1589 esac ;; 1590esac 1591ac_abs_top_builddir=$ac_pwd 1592ac_abs_builddir=$ac_pwd$ac_dir_suffix 1593# for backward compatibility: 1594ac_top_builddir=$ac_top_build_prefix 1595 1596case $srcdir in 1597 .) # We are building in place. 1598 ac_srcdir=. 1599 ac_top_srcdir=$ac_top_builddir_sub 1600 ac_abs_top_srcdir=$ac_pwd ;; 1601 [\\/]* | ?:[\\/]* ) # Absolute name. 1602 ac_srcdir=$srcdir$ac_dir_suffix; 1603 ac_top_srcdir=$srcdir 1604 ac_abs_top_srcdir=$srcdir ;; 1605 *) # Relative name. 1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1607 ac_top_srcdir=$ac_top_build_prefix$srcdir 1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1609esac 1610ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1611 1612 cd "$ac_dir" || { ac_status=$?; continue; } 1613 # Check for guested configure. 1614 if test -f "$ac_srcdir/configure.gnu"; then 1615 echo && 1616 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1617 elif test -f "$ac_srcdir/configure"; then 1618 echo && 1619 $SHELL "$ac_srcdir/configure" --help=recursive 1620 else 1621 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1622 fi || ac_status=$? 1623 cd "$ac_pwd" || { ac_status=$?; break; } 1624 done 1625fi 1626 1627test -n "$ac_init_help" && exit $ac_status 1628if $ac_init_version; then 1629 cat <<\_ACEOF 1630unbound configure 1.5.1 1631generated by GNU Autoconf 2.69 1632 1633Copyright (C) 2012 Free Software Foundation, Inc. 1634This configure script is free software; the Free Software Foundation 1635gives unlimited permission to copy, distribute and modify it. 1636_ACEOF 1637 exit 1638fi 1639 1640## ------------------------ ## 1641## Autoconf initialization. ## 1642## ------------------------ ## 1643 1644# ac_fn_c_try_compile LINENO 1645# -------------------------- 1646# Try to compile conftest.$ac_ext, and return whether this succeeded. 1647ac_fn_c_try_compile () 1648{ 1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1650 rm -f conftest.$ac_objext 1651 if { { ac_try="$ac_compile" 1652case "(($ac_try" in 1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1654 *) ac_try_echo=$ac_try;; 1655esac 1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1657$as_echo "$ac_try_echo"; } >&5 1658 (eval "$ac_compile") 2>conftest.err 1659 ac_status=$? 1660 if test -s conftest.err; then 1661 grep -v '^ *+' conftest.err >conftest.er1 1662 cat conftest.er1 >&5 1663 mv -f conftest.er1 conftest.err 1664 fi 1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1666 test $ac_status = 0; } && { 1667 test -z "$ac_c_werror_flag" || 1668 test ! -s conftest.err 1669 } && test -s conftest.$ac_objext; then : 1670 ac_retval=0 1671else 1672 $as_echo "$as_me: failed program was:" >&5 1673sed 's/^/| /' conftest.$ac_ext >&5 1674 1675 ac_retval=1 1676fi 1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1678 as_fn_set_status $ac_retval 1679 1680} # ac_fn_c_try_compile 1681 1682# ac_fn_c_try_cpp LINENO 1683# ---------------------- 1684# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1685ac_fn_c_try_cpp () 1686{ 1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1688 if { { ac_try="$ac_cpp conftest.$ac_ext" 1689case "(($ac_try" in 1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1691 *) ac_try_echo=$ac_try;; 1692esac 1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1694$as_echo "$ac_try_echo"; } >&5 1695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1696 ac_status=$? 1697 if test -s conftest.err; then 1698 grep -v '^ *+' conftest.err >conftest.er1 1699 cat conftest.er1 >&5 1700 mv -f conftest.er1 conftest.err 1701 fi 1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1703 test $ac_status = 0; } > conftest.i && { 1704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1705 test ! -s conftest.err 1706 }; then : 1707 ac_retval=0 1708else 1709 $as_echo "$as_me: failed program was:" >&5 1710sed 's/^/| /' conftest.$ac_ext >&5 1711 1712 ac_retval=1 1713fi 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 as_fn_set_status $ac_retval 1716 1717} # ac_fn_c_try_cpp 1718 1719# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1720# ------------------------------------------------------- 1721# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1722# the include files in INCLUDES and setting the cache variable VAR 1723# accordingly. 1724ac_fn_c_check_header_mongrel () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 if eval \${$3+:} false; then : 1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1729$as_echo_n "checking for $2... " >&6; } 1730if eval \${$3+:} false; then : 1731 $as_echo_n "(cached) " >&6 1732fi 1733eval ac_res=\$$3 1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1735$as_echo "$ac_res" >&6; } 1736else 1737 # Is the header compilable? 1738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1739$as_echo_n "checking $2 usability... " >&6; } 1740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1741/* end confdefs.h. */ 1742$4 1743#include <$2> 1744_ACEOF 1745if ac_fn_c_try_compile "$LINENO"; then : 1746 ac_header_compiler=yes 1747else 1748 ac_header_compiler=no 1749fi 1750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1752$as_echo "$ac_header_compiler" >&6; } 1753 1754# Is the header present? 1755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1756$as_echo_n "checking $2 presence... " >&6; } 1757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1758/* end confdefs.h. */ 1759#include <$2> 1760_ACEOF 1761if ac_fn_c_try_cpp "$LINENO"; then : 1762 ac_header_preproc=yes 1763else 1764 ac_header_preproc=no 1765fi 1766rm -f conftest.err conftest.i conftest.$ac_ext 1767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1768$as_echo "$ac_header_preproc" >&6; } 1769 1770# So? What about this header? 1771case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1772 yes:no: ) 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1774$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1776$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1777 ;; 1778 no:yes:* ) 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1780$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1782$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1784$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1786$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1788$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1789( $as_echo "## ---------------------------------------- ## 1790## Report this to unbound-bugs@nlnetlabs.nl ## 1791## ---------------------------------------- ##" 1792 ) | sed "s/^/$as_me: WARNING: /" >&2 1793 ;; 1794esac 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1796$as_echo_n "checking for $2... " >&6; } 1797if eval \${$3+:} false; then : 1798 $as_echo_n "(cached) " >&6 1799else 1800 eval "$3=\$ac_header_compiler" 1801fi 1802eval ac_res=\$$3 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1804$as_echo "$ac_res" >&6; } 1805fi 1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1807 1808} # ac_fn_c_check_header_mongrel 1809 1810# ac_fn_c_try_run LINENO 1811# ---------------------- 1812# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1813# that executables *can* be run. 1814ac_fn_c_try_run () 1815{ 1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1817 if { { ac_try="$ac_link" 1818case "(($ac_try" in 1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1820 *) ac_try_echo=$ac_try;; 1821esac 1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1823$as_echo "$ac_try_echo"; } >&5 1824 (eval "$ac_link") 2>&5 1825 ac_status=$? 1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1827 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1828 { { case "(($ac_try" in 1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1830 *) ac_try_echo=$ac_try;; 1831esac 1832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1833$as_echo "$ac_try_echo"; } >&5 1834 (eval "$ac_try") 2>&5 1835 ac_status=$? 1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1837 test $ac_status = 0; }; }; then : 1838 ac_retval=0 1839else 1840 $as_echo "$as_me: program exited with status $ac_status" >&5 1841 $as_echo "$as_me: failed program was:" >&5 1842sed 's/^/| /' conftest.$ac_ext >&5 1843 1844 ac_retval=$ac_status 1845fi 1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1848 as_fn_set_status $ac_retval 1849 1850} # ac_fn_c_try_run 1851 1852# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1853# ------------------------------------------------------- 1854# Tests whether HEADER exists and can be compiled using the include files in 1855# INCLUDES, setting the cache variable VAR accordingly. 1856ac_fn_c_check_header_compile () 1857{ 1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1860$as_echo_n "checking for $2... " >&6; } 1861if eval \${$3+:} false; then : 1862 $as_echo_n "(cached) " >&6 1863else 1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1865/* end confdefs.h. */ 1866$4 1867#include <$2> 1868_ACEOF 1869if ac_fn_c_try_compile "$LINENO"; then : 1870 eval "$3=yes" 1871else 1872 eval "$3=no" 1873fi 1874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1875fi 1876eval ac_res=\$$3 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1878$as_echo "$ac_res" >&6; } 1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1880 1881} # ac_fn_c_check_header_compile 1882 1883# ac_fn_c_try_link LINENO 1884# ----------------------- 1885# Try to link conftest.$ac_ext, and return whether this succeeded. 1886ac_fn_c_try_link () 1887{ 1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1889 rm -f conftest.$ac_objext conftest$ac_exeext 1890 if { { ac_try="$ac_link" 1891case "(($ac_try" in 1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1893 *) ac_try_echo=$ac_try;; 1894esac 1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1896$as_echo "$ac_try_echo"; } >&5 1897 (eval "$ac_link") 2>conftest.err 1898 ac_status=$? 1899 if test -s conftest.err; then 1900 grep -v '^ *+' conftest.err >conftest.er1 1901 cat conftest.er1 >&5 1902 mv -f conftest.er1 conftest.err 1903 fi 1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1905 test $ac_status = 0; } && { 1906 test -z "$ac_c_werror_flag" || 1907 test ! -s conftest.err 1908 } && test -s conftest$ac_exeext && { 1909 test "$cross_compiling" = yes || 1910 test -x conftest$ac_exeext 1911 }; then : 1912 ac_retval=0 1913else 1914 $as_echo "$as_me: failed program was:" >&5 1915sed 's/^/| /' conftest.$ac_ext >&5 1916 1917 ac_retval=1 1918fi 1919 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1920 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1921 # interfere with the next link command; also delete a directory that is 1922 # left behind by Apple's compiler. We do this before executing the actions. 1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1925 as_fn_set_status $ac_retval 1926 1927} # ac_fn_c_try_link 1928 1929# ac_fn_c_check_func LINENO FUNC VAR 1930# ---------------------------------- 1931# Tests whether FUNC exists, setting the cache variable VAR accordingly 1932ac_fn_c_check_func () 1933{ 1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1936$as_echo_n "checking for $2... " >&6; } 1937if eval \${$3+:} false; then : 1938 $as_echo_n "(cached) " >&6 1939else 1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941/* end confdefs.h. */ 1942/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1943 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1944#define $2 innocuous_$2 1945 1946/* System header to define __stub macros and hopefully few prototypes, 1947 which can conflict with char $2 (); below. 1948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1949 <limits.h> exists even on freestanding compilers. */ 1950 1951#ifdef __STDC__ 1952# include <limits.h> 1953#else 1954# include <assert.h> 1955#endif 1956 1957#undef $2 1958 1959/* Override any GCC internal prototype to avoid an error. 1960 Use char because int might match the return type of a GCC 1961 builtin and then its argument prototype would still apply. */ 1962#ifdef __cplusplus 1963extern "C" 1964#endif 1965char $2 (); 1966/* The GNU C library defines this for functions which it implements 1967 to always fail with ENOSYS. Some functions are actually named 1968 something starting with __ and the normal name is an alias. */ 1969#if defined __stub_$2 || defined __stub___$2 1970choke me 1971#endif 1972 1973int 1974main () 1975{ 1976return $2 (); 1977 ; 1978 return 0; 1979} 1980_ACEOF 1981if ac_fn_c_try_link "$LINENO"; then : 1982 eval "$3=yes" 1983else 1984 eval "$3=no" 1985fi 1986rm -f core conftest.err conftest.$ac_objext \ 1987 conftest$ac_exeext conftest.$ac_ext 1988fi 1989eval ac_res=\$$3 1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1991$as_echo "$ac_res" >&6; } 1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1993 1994} # ac_fn_c_check_func 1995 1996# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1997# ------------------------------------------- 1998# Tests whether TYPE exists after having included INCLUDES, setting cache 1999# variable VAR accordingly. 2000ac_fn_c_check_type () 2001{ 2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2004$as_echo_n "checking for $2... " >&6; } 2005if eval \${$3+:} false; then : 2006 $as_echo_n "(cached) " >&6 2007else 2008 eval "$3=no" 2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2010/* end confdefs.h. */ 2011$4 2012int 2013main () 2014{ 2015if (sizeof ($2)) 2016 return 0; 2017 ; 2018 return 0; 2019} 2020_ACEOF 2021if ac_fn_c_try_compile "$LINENO"; then : 2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2023/* end confdefs.h. */ 2024$4 2025int 2026main () 2027{ 2028if (sizeof (($2))) 2029 return 0; 2030 ; 2031 return 0; 2032} 2033_ACEOF 2034if ac_fn_c_try_compile "$LINENO"; then : 2035 2036else 2037 eval "$3=yes" 2038fi 2039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2040fi 2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2042fi 2043eval ac_res=\$$3 2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2045$as_echo "$ac_res" >&6; } 2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2047 2048} # ac_fn_c_check_type 2049 2050# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2051# -------------------------------------------- 2052# Tries to find the compile-time value of EXPR in a program that includes 2053# INCLUDES, setting VAR accordingly. Returns whether the value could be 2054# computed 2055ac_fn_c_compute_int () 2056{ 2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2058 if test "$cross_compiling" = yes; then 2059 # Depending upon the size, compute the lo and hi bounds. 2060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2061/* end confdefs.h. */ 2062$4 2063int 2064main () 2065{ 2066static int test_array [1 - 2 * !(($2) >= 0)]; 2067test_array [0] = 0; 2068return test_array [0]; 2069 2070 ; 2071 return 0; 2072} 2073_ACEOF 2074if ac_fn_c_try_compile "$LINENO"; then : 2075 ac_lo=0 ac_mid=0 2076 while :; do 2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2078/* end confdefs.h. */ 2079$4 2080int 2081main () 2082{ 2083static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2084test_array [0] = 0; 2085return test_array [0]; 2086 2087 ; 2088 return 0; 2089} 2090_ACEOF 2091if ac_fn_c_try_compile "$LINENO"; then : 2092 ac_hi=$ac_mid; break 2093else 2094 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2095 if test $ac_lo -le $ac_mid; then 2096 ac_lo= ac_hi= 2097 break 2098 fi 2099 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2100fi 2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2102 done 2103else 2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2105/* end confdefs.h. */ 2106$4 2107int 2108main () 2109{ 2110static int test_array [1 - 2 * !(($2) < 0)]; 2111test_array [0] = 0; 2112return test_array [0]; 2113 2114 ; 2115 return 0; 2116} 2117_ACEOF 2118if ac_fn_c_try_compile "$LINENO"; then : 2119 ac_hi=-1 ac_mid=-1 2120 while :; do 2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2122/* end confdefs.h. */ 2123$4 2124int 2125main () 2126{ 2127static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2128test_array [0] = 0; 2129return test_array [0]; 2130 2131 ; 2132 return 0; 2133} 2134_ACEOF 2135if ac_fn_c_try_compile "$LINENO"; then : 2136 ac_lo=$ac_mid; break 2137else 2138 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2139 if test $ac_mid -le $ac_hi; then 2140 ac_lo= ac_hi= 2141 break 2142 fi 2143 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2144fi 2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2146 done 2147else 2148 ac_lo= ac_hi= 2149fi 2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2151fi 2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2153# Binary search between lo and hi bounds. 2154while test "x$ac_lo" != "x$ac_hi"; do 2155 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2157/* end confdefs.h. */ 2158$4 2159int 2160main () 2161{ 2162static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2163test_array [0] = 0; 2164return test_array [0]; 2165 2166 ; 2167 return 0; 2168} 2169_ACEOF 2170if ac_fn_c_try_compile "$LINENO"; then : 2171 ac_hi=$ac_mid 2172else 2173 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2174fi 2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2176done 2177case $ac_lo in #(( 2178?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2179'') ac_retval=1 ;; 2180esac 2181 else 2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2183/* end confdefs.h. */ 2184$4 2185static long int longval () { return $2; } 2186static unsigned long int ulongval () { return $2; } 2187#include <stdio.h> 2188#include <stdlib.h> 2189int 2190main () 2191{ 2192 2193 FILE *f = fopen ("conftest.val", "w"); 2194 if (! f) 2195 return 1; 2196 if (($2) < 0) 2197 { 2198 long int i = longval (); 2199 if (i != ($2)) 2200 return 1; 2201 fprintf (f, "%ld", i); 2202 } 2203 else 2204 { 2205 unsigned long int i = ulongval (); 2206 if (i != ($2)) 2207 return 1; 2208 fprintf (f, "%lu", i); 2209 } 2210 /* Do not output a trailing newline, as this causes \r\n confusion 2211 on some platforms. */ 2212 return ferror (f) || fclose (f) != 0; 2213 2214 ; 2215 return 0; 2216} 2217_ACEOF 2218if ac_fn_c_try_run "$LINENO"; then : 2219 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2220else 2221 ac_retval=1 2222fi 2223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2224 conftest.$ac_objext conftest.beam conftest.$ac_ext 2225rm -f conftest.val 2226 2227 fi 2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2229 as_fn_set_status $ac_retval 2230 2231} # ac_fn_c_compute_int 2232 2233# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2234# --------------------------------------------- 2235# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2236# accordingly. 2237ac_fn_c_check_decl () 2238{ 2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2240 as_decl_name=`echo $2|sed 's/ *(.*//'` 2241 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2243$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2244if eval \${$3+:} false; then : 2245 $as_echo_n "(cached) " >&6 2246else 2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2248/* end confdefs.h. */ 2249$4 2250int 2251main () 2252{ 2253#ifndef $as_decl_name 2254#ifdef __cplusplus 2255 (void) $as_decl_use; 2256#else 2257 (void) $as_decl_name; 2258#endif 2259#endif 2260 2261 ; 2262 return 0; 2263} 2264_ACEOF 2265if ac_fn_c_try_compile "$LINENO"; then : 2266 eval "$3=yes" 2267else 2268 eval "$3=no" 2269fi 2270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2271fi 2272eval ac_res=\$$3 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2274$as_echo "$ac_res" >&6; } 2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2276 2277} # ac_fn_c_check_decl 2278 2279# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2280# ---------------------------------------------------- 2281# Tries to find if the field MEMBER exists in type AGGR, after including 2282# INCLUDES, setting cache variable VAR accordingly. 2283ac_fn_c_check_member () 2284{ 2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2287$as_echo_n "checking for $2.$3... " >&6; } 2288if eval \${$4+:} false; then : 2289 $as_echo_n "(cached) " >&6 2290else 2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2292/* end confdefs.h. */ 2293$5 2294int 2295main () 2296{ 2297static $2 ac_aggr; 2298if (ac_aggr.$3) 2299return 0; 2300 ; 2301 return 0; 2302} 2303_ACEOF 2304if ac_fn_c_try_compile "$LINENO"; then : 2305 eval "$4=yes" 2306else 2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2308/* end confdefs.h. */ 2309$5 2310int 2311main () 2312{ 2313static $2 ac_aggr; 2314if (sizeof ac_aggr.$3) 2315return 0; 2316 ; 2317 return 0; 2318} 2319_ACEOF 2320if ac_fn_c_try_compile "$LINENO"; then : 2321 eval "$4=yes" 2322else 2323 eval "$4=no" 2324fi 2325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2326fi 2327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2328fi 2329eval ac_res=\$$4 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2331$as_echo "$ac_res" >&6; } 2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2333 2334} # ac_fn_c_check_member 2335cat >config.log <<_ACEOF 2336This file contains any messages produced by compilers while 2337running configure, to aid debugging if configure makes a mistake. 2338 2339It was created by unbound $as_me 1.5.1, which was 2340generated by GNU Autoconf 2.69. Invocation command line was 2341 2342 $ $0 $@ 2343 2344_ACEOF 2345exec 5>>config.log 2346{ 2347cat <<_ASUNAME 2348## --------- ## 2349## Platform. ## 2350## --------- ## 2351 2352hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2353uname -m = `(uname -m) 2>/dev/null || echo unknown` 2354uname -r = `(uname -r) 2>/dev/null || echo unknown` 2355uname -s = `(uname -s) 2>/dev/null || echo unknown` 2356uname -v = `(uname -v) 2>/dev/null || echo unknown` 2357 2358/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2359/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2360 2361/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2362/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2363/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2364/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2365/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2366/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2367/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2368 2369_ASUNAME 2370 2371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2372for as_dir in $PATH 2373do 2374 IFS=$as_save_IFS 2375 test -z "$as_dir" && as_dir=. 2376 $as_echo "PATH: $as_dir" 2377 done 2378IFS=$as_save_IFS 2379 2380} >&5 2381 2382cat >&5 <<_ACEOF 2383 2384 2385## ----------- ## 2386## Core tests. ## 2387## ----------- ## 2388 2389_ACEOF 2390 2391 2392# Keep a trace of the command line. 2393# Strip out --no-create and --no-recursion so they do not pile up. 2394# Strip out --silent because we don't want to record it for future runs. 2395# Also quote any args containing shell meta-characters. 2396# Make two passes to allow for proper duplicate-argument suppression. 2397ac_configure_args= 2398ac_configure_args0= 2399ac_configure_args1= 2400ac_must_keep_next=false 2401for ac_pass in 1 2 2402do 2403 for ac_arg 2404 do 2405 case $ac_arg in 2406 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2408 | -silent | --silent | --silen | --sile | --sil) 2409 continue ;; 2410 *\'*) 2411 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2412 esac 2413 case $ac_pass in 2414 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2415 2) 2416 as_fn_append ac_configure_args1 " '$ac_arg'" 2417 if test $ac_must_keep_next = true; then 2418 ac_must_keep_next=false # Got value, back to normal. 2419 else 2420 case $ac_arg in 2421 *=* | --config-cache | -C | -disable-* | --disable-* \ 2422 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2423 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2424 | -with-* | --with-* | -without-* | --without-* | --x) 2425 case "$ac_configure_args0 " in 2426 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2427 esac 2428 ;; 2429 -* ) ac_must_keep_next=true ;; 2430 esac 2431 fi 2432 as_fn_append ac_configure_args " '$ac_arg'" 2433 ;; 2434 esac 2435 done 2436done 2437{ ac_configure_args0=; unset ac_configure_args0;} 2438{ ac_configure_args1=; unset ac_configure_args1;} 2439 2440# When interrupted or exit'd, cleanup temporary files, and complete 2441# config.log. We remove comments because anyway the quotes in there 2442# would cause problems or look ugly. 2443# WARNING: Use '\'' to represent an apostrophe within the trap. 2444# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2445trap 'exit_status=$? 2446 # Save into config.log some information that might help in debugging. 2447 { 2448 echo 2449 2450 $as_echo "## ---------------- ## 2451## Cache variables. ## 2452## ---------------- ##" 2453 echo 2454 # The following way of writing the cache mishandles newlines in values, 2455( 2456 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2457 eval ac_val=\$$ac_var 2458 case $ac_val in #( 2459 *${as_nl}*) 2460 case $ac_var in #( 2461 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2462$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2463 esac 2464 case $ac_var in #( 2465 _ | IFS | as_nl) ;; #( 2466 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2467 *) { eval $ac_var=; unset $ac_var;} ;; 2468 esac ;; 2469 esac 2470 done 2471 (set) 2>&1 | 2472 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2473 *${as_nl}ac_space=\ *) 2474 sed -n \ 2475 "s/'\''/'\''\\\\'\'''\''/g; 2476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2477 ;; #( 2478 *) 2479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2480 ;; 2481 esac | 2482 sort 2483) 2484 echo 2485 2486 $as_echo "## ----------------- ## 2487## Output variables. ## 2488## ----------------- ##" 2489 echo 2490 for ac_var in $ac_subst_vars 2491 do 2492 eval ac_val=\$$ac_var 2493 case $ac_val in 2494 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2495 esac 2496 $as_echo "$ac_var='\''$ac_val'\''" 2497 done | sort 2498 echo 2499 2500 if test -n "$ac_subst_files"; then 2501 $as_echo "## ------------------- ## 2502## File substitutions. ## 2503## ------------------- ##" 2504 echo 2505 for ac_var in $ac_subst_files 2506 do 2507 eval ac_val=\$$ac_var 2508 case $ac_val in 2509 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2510 esac 2511 $as_echo "$ac_var='\''$ac_val'\''" 2512 done | sort 2513 echo 2514 fi 2515 2516 if test -s confdefs.h; then 2517 $as_echo "## ----------- ## 2518## confdefs.h. ## 2519## ----------- ##" 2520 echo 2521 cat confdefs.h 2522 echo 2523 fi 2524 test "$ac_signal" != 0 && 2525 $as_echo "$as_me: caught signal $ac_signal" 2526 $as_echo "$as_me: exit $exit_status" 2527 } >&5 2528 rm -f core *.core core.conftest.* && 2529 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2530 exit $exit_status 2531' 0 2532for ac_signal in 1 2 13 15; do 2533 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2534done 2535ac_signal=0 2536 2537# confdefs.h avoids OS command line length limits that DEFS can exceed. 2538rm -f -r conftest* confdefs.h 2539 2540$as_echo "/* confdefs.h */" > confdefs.h 2541 2542# Predefined preprocessor variables. 2543 2544cat >>confdefs.h <<_ACEOF 2545#define PACKAGE_NAME "$PACKAGE_NAME" 2546_ACEOF 2547 2548cat >>confdefs.h <<_ACEOF 2549#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2550_ACEOF 2551 2552cat >>confdefs.h <<_ACEOF 2553#define PACKAGE_VERSION "$PACKAGE_VERSION" 2554_ACEOF 2555 2556cat >>confdefs.h <<_ACEOF 2557#define PACKAGE_STRING "$PACKAGE_STRING" 2558_ACEOF 2559 2560cat >>confdefs.h <<_ACEOF 2561#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2562_ACEOF 2563 2564cat >>confdefs.h <<_ACEOF 2565#define PACKAGE_URL "$PACKAGE_URL" 2566_ACEOF 2567 2568 2569# Let the site file select an alternate cache file if it wants to. 2570# Prefer an explicitly selected file to automatically selected ones. 2571ac_site_file1=NONE 2572ac_site_file2=NONE 2573if test -n "$CONFIG_SITE"; then 2574 # We do not want a PATH search for config.site. 2575 case $CONFIG_SITE in #(( 2576 -*) ac_site_file1=./$CONFIG_SITE;; 2577 */*) ac_site_file1=$CONFIG_SITE;; 2578 *) ac_site_file1=./$CONFIG_SITE;; 2579 esac 2580elif test "x$prefix" != xNONE; then 2581 ac_site_file1=$prefix/share/config.site 2582 ac_site_file2=$prefix/etc/config.site 2583else 2584 ac_site_file1=$ac_default_prefix/share/config.site 2585 ac_site_file2=$ac_default_prefix/etc/config.site 2586fi 2587for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2588do 2589 test "x$ac_site_file" = xNONE && continue 2590 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2592$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2593 sed 's/^/| /' "$ac_site_file" >&5 2594 . "$ac_site_file" \ 2595 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2597as_fn_error $? "failed to load site script $ac_site_file 2598See \`config.log' for more details" "$LINENO" 5; } 2599 fi 2600done 2601 2602if test -r "$cache_file"; then 2603 # Some versions of bash will fail to source /dev/null (special files 2604 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2605 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2607$as_echo "$as_me: loading cache $cache_file" >&6;} 2608 case $cache_file in 2609 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2610 *) . "./$cache_file";; 2611 esac 2612 fi 2613else 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2615$as_echo "$as_me: creating cache $cache_file" >&6;} 2616 >$cache_file 2617fi 2618 2619# Check that the precious variables saved in the cache have kept the same 2620# value. 2621ac_cache_corrupted=false 2622for ac_var in $ac_precious_vars; do 2623 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2624 eval ac_new_set=\$ac_env_${ac_var}_set 2625 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2626 eval ac_new_val=\$ac_env_${ac_var}_value 2627 case $ac_old_set,$ac_new_set in 2628 set,) 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2630$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2631 ac_cache_corrupted=: ;; 2632 ,set) 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2634$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2635 ac_cache_corrupted=: ;; 2636 ,);; 2637 *) 2638 if test "x$ac_old_val" != "x$ac_new_val"; then 2639 # differences in whitespace do not lead to failure. 2640 ac_old_val_w=`echo x $ac_old_val` 2641 ac_new_val_w=`echo x $ac_new_val` 2642 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2644$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2645 ac_cache_corrupted=: 2646 else 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2648$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2649 eval $ac_var=\$ac_old_val 2650 fi 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2652$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2654$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2655 fi;; 2656 esac 2657 # Pass precious variables to config.status. 2658 if test "$ac_new_set" = set; then 2659 case $ac_new_val in 2660 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2661 *) ac_arg=$ac_var=$ac_new_val ;; 2662 esac 2663 case " $ac_configure_args " in 2664 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2665 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2666 esac 2667 fi 2668done 2669if $ac_cache_corrupted; then 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2673$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2674 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2675fi 2676## -------------------- ## 2677## Main body of script. ## 2678## -------------------- ## 2679 2680ac_ext=c 2681ac_cpp='$CPP $CPPFLAGS' 2682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2684ac_compiler_gnu=$ac_cv_c_compiler_gnu 2685 2686 2687UNBOUND_VERSION_MAJOR=1 2688 2689UNBOUND_VERSION_MINOR=5 2690 2691UNBOUND_VERSION_MICRO=1 2692 2693 2694LIBUNBOUND_CURRENT=5 2695LIBUNBOUND_REVISION=3 2696LIBUNBOUND_AGE=3 2697# 1.0.0 had 0:12:0 2698# 1.0.1 had 0:13:0 2699# 1.0.2 had 0:14:0 2700# 1.1.0 had 0:15:0 2701# 1.1.1 had 0:16:0 2702# 1.2.0 had 0:17:0 2703# 1.2.1 had 0:18:0 2704# 1.3.0 had 1:0:0 # ub_cancel and -export-symbols. 2705# 1.3.1 had 1:1:0 2706# 1.3.2 had 1:2:0 2707# 1.3.3 had 1:3:0 2708# 1.3.4 had 1:4:0 2709# 1.4.0-snapshots had 1:5:0 2710# 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus 2711# 1.4.1 had 2:1:0 2712# 1.4.2 had 2:2:0 2713# 1.4.3 had 2:3:0 2714# 1.4.4 had 2:4:0 2715# 1.4.5 had 2:5:0 2716# 1.4.6 had 2:6:0 2717# 1.4.7 had 2:7:0 2718# 1.4.8 had 2:8:0 2719# 1.4.9 had 2:9:0 2720# 1.4.10 had 2:10:0 2721# 1.4.11 had 2:11:0 2722# 1.4.12 had 2:12:0 2723# 1.4.13 had 2:13:0 2724# and 1.4.13p1 and 1.4.13.p2 2725# 1.4.14 had 2:14:0 2726# 1.4.15 had 3:0:1 # adds ub_version() 2727# 1.4.16 had 3:1:1 2728# 1.4.17 had 3:2:1 2729# 1.4.18 had 3:3:1 2730# 1.4.19 had 3:4:1 2731# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1 2732# 1.4.21 had 4:1:2 2733# 1.4.22 had 4:1:2 2734# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr 2735# 1.5.1 had 5:4:3 2736 2737# Current -- the number of the binary API that we're implementing 2738# Revision -- which iteration of the implementation of the binary 2739# API are we supplying? 2740# Age -- How many previous binary API versions do we also 2741# support? 2742# 2743# If we release a new version that does not change the binary API, 2744# increment Revision. 2745# 2746# If we release a new version that changes the binary API, but does 2747# not break programs compiled against the old binary API, increment 2748# Current and Age. Set Revision to 0, since this is the first 2749# implementation of the new API. 2750# 2751# Otherwise, we're changing the binary API and breaking bakward 2752# compatibility with old binaries. Increment Current. Set Age to 0, 2753# since we're backward compatible with no previous APIs. Set Revision 2754# to 0 too. 2755 2756 2757 2758 2759CFLAGS="$CFLAGS" 2760ac_ext=c 2761ac_cpp='$CPP $CPPFLAGS' 2762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2764ac_compiler_gnu=$ac_cv_c_compiler_gnu 2765if test -n "$ac_tool_prefix"; then 2766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2767set dummy ${ac_tool_prefix}gcc; ac_word=$2 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2769$as_echo_n "checking for $ac_word... " >&6; } 2770if ${ac_cv_prog_CC+:} false; then : 2771 $as_echo_n "(cached) " >&6 2772else 2773 if test -n "$CC"; then 2774 ac_cv_prog_CC="$CC" # Let the user override the test. 2775else 2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2777for as_dir in $PATH 2778do 2779 IFS=$as_save_IFS 2780 test -z "$as_dir" && as_dir=. 2781 for ac_exec_ext in '' $ac_executable_extensions; do 2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2783 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2785 break 2 2786 fi 2787done 2788 done 2789IFS=$as_save_IFS 2790 2791fi 2792fi 2793CC=$ac_cv_prog_CC 2794if test -n "$CC"; then 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2796$as_echo "$CC" >&6; } 2797else 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2799$as_echo "no" >&6; } 2800fi 2801 2802 2803fi 2804if test -z "$ac_cv_prog_CC"; then 2805 ac_ct_CC=$CC 2806 # Extract the first word of "gcc", so it can be a program name with args. 2807set dummy gcc; ac_word=$2 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2809$as_echo_n "checking for $ac_word... " >&6; } 2810if ${ac_cv_prog_ac_ct_CC+:} false; then : 2811 $as_echo_n "(cached) " >&6 2812else 2813 if test -n "$ac_ct_CC"; then 2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2815else 2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2817for as_dir in $PATH 2818do 2819 IFS=$as_save_IFS 2820 test -z "$as_dir" && as_dir=. 2821 for ac_exec_ext in '' $ac_executable_extensions; do 2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2823 ac_cv_prog_ac_ct_CC="gcc" 2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2825 break 2 2826 fi 2827done 2828 done 2829IFS=$as_save_IFS 2830 2831fi 2832fi 2833ac_ct_CC=$ac_cv_prog_ac_ct_CC 2834if test -n "$ac_ct_CC"; then 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2836$as_echo "$ac_ct_CC" >&6; } 2837else 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2839$as_echo "no" >&6; } 2840fi 2841 2842 if test "x$ac_ct_CC" = x; then 2843 CC="" 2844 else 2845 case $cross_compiling:$ac_tool_warned in 2846yes:) 2847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2849ac_tool_warned=yes ;; 2850esac 2851 CC=$ac_ct_CC 2852 fi 2853else 2854 CC="$ac_cv_prog_CC" 2855fi 2856 2857if test -z "$CC"; then 2858 if test -n "$ac_tool_prefix"; then 2859 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2860set dummy ${ac_tool_prefix}cc; ac_word=$2 2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2862$as_echo_n "checking for $ac_word... " >&6; } 2863if ${ac_cv_prog_CC+:} false; then : 2864 $as_echo_n "(cached) " >&6 2865else 2866 if test -n "$CC"; then 2867 ac_cv_prog_CC="$CC" # Let the user override the test. 2868else 2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2870for as_dir in $PATH 2871do 2872 IFS=$as_save_IFS 2873 test -z "$as_dir" && as_dir=. 2874 for ac_exec_ext in '' $ac_executable_extensions; do 2875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2876 ac_cv_prog_CC="${ac_tool_prefix}cc" 2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2878 break 2 2879 fi 2880done 2881 done 2882IFS=$as_save_IFS 2883 2884fi 2885fi 2886CC=$ac_cv_prog_CC 2887if test -n "$CC"; then 2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2889$as_echo "$CC" >&6; } 2890else 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2892$as_echo "no" >&6; } 2893fi 2894 2895 2896 fi 2897fi 2898if test -z "$CC"; then 2899 # Extract the first word of "cc", so it can be a program name with args. 2900set dummy cc; ac_word=$2 2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2902$as_echo_n "checking for $ac_word... " >&6; } 2903if ${ac_cv_prog_CC+:} false; then : 2904 $as_echo_n "(cached) " >&6 2905else 2906 if test -n "$CC"; then 2907 ac_cv_prog_CC="$CC" # Let the user override the test. 2908else 2909 ac_prog_rejected=no 2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2911for as_dir in $PATH 2912do 2913 IFS=$as_save_IFS 2914 test -z "$as_dir" && as_dir=. 2915 for ac_exec_ext in '' $ac_executable_extensions; do 2916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2918 ac_prog_rejected=yes 2919 continue 2920 fi 2921 ac_cv_prog_CC="cc" 2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2923 break 2 2924 fi 2925done 2926 done 2927IFS=$as_save_IFS 2928 2929if test $ac_prog_rejected = yes; then 2930 # We found a bogon in the path, so make sure we never use it. 2931 set dummy $ac_cv_prog_CC 2932 shift 2933 if test $# != 0; then 2934 # We chose a different compiler from the bogus one. 2935 # However, it has the same basename, so the bogon will be chosen 2936 # first if we set CC to just the basename; use the full file name. 2937 shift 2938 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2939 fi 2940fi 2941fi 2942fi 2943CC=$ac_cv_prog_CC 2944if test -n "$CC"; then 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2946$as_echo "$CC" >&6; } 2947else 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2949$as_echo "no" >&6; } 2950fi 2951 2952 2953fi 2954if test -z "$CC"; then 2955 if test -n "$ac_tool_prefix"; then 2956 for ac_prog in cl.exe 2957 do 2958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2959set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2961$as_echo_n "checking for $ac_word... " >&6; } 2962if ${ac_cv_prog_CC+:} false; then : 2963 $as_echo_n "(cached) " >&6 2964else 2965 if test -n "$CC"; then 2966 ac_cv_prog_CC="$CC" # Let the user override the test. 2967else 2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2969for as_dir in $PATH 2970do 2971 IFS=$as_save_IFS 2972 test -z "$as_dir" && as_dir=. 2973 for ac_exec_ext in '' $ac_executable_extensions; do 2974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2977 break 2 2978 fi 2979done 2980 done 2981IFS=$as_save_IFS 2982 2983fi 2984fi 2985CC=$ac_cv_prog_CC 2986if test -n "$CC"; then 2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2988$as_echo "$CC" >&6; } 2989else 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2991$as_echo "no" >&6; } 2992fi 2993 2994 2995 test -n "$CC" && break 2996 done 2997fi 2998if test -z "$CC"; then 2999 ac_ct_CC=$CC 3000 for ac_prog in cl.exe 3001do 3002 # Extract the first word of "$ac_prog", so it can be a program name with args. 3003set dummy $ac_prog; ac_word=$2 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3005$as_echo_n "checking for $ac_word... " >&6; } 3006if ${ac_cv_prog_ac_ct_CC+:} false; then : 3007 $as_echo_n "(cached) " >&6 3008else 3009 if test -n "$ac_ct_CC"; then 3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3011else 3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3013for as_dir in $PATH 3014do 3015 IFS=$as_save_IFS 3016 test -z "$as_dir" && as_dir=. 3017 for ac_exec_ext in '' $ac_executable_extensions; do 3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3019 ac_cv_prog_ac_ct_CC="$ac_prog" 3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3021 break 2 3022 fi 3023done 3024 done 3025IFS=$as_save_IFS 3026 3027fi 3028fi 3029ac_ct_CC=$ac_cv_prog_ac_ct_CC 3030if test -n "$ac_ct_CC"; then 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3032$as_echo "$ac_ct_CC" >&6; } 3033else 3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3035$as_echo "no" >&6; } 3036fi 3037 3038 3039 test -n "$ac_ct_CC" && break 3040done 3041 3042 if test "x$ac_ct_CC" = x; then 3043 CC="" 3044 else 3045 case $cross_compiling:$ac_tool_warned in 3046yes:) 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3049ac_tool_warned=yes ;; 3050esac 3051 CC=$ac_ct_CC 3052 fi 3053fi 3054 3055fi 3056 3057 3058test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3060as_fn_error $? "no acceptable C compiler found in \$PATH 3061See \`config.log' for more details" "$LINENO" 5; } 3062 3063# Provide some information about the compiler. 3064$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3065set X $ac_compile 3066ac_compiler=$2 3067for ac_option in --version -v -V -qversion; do 3068 { { ac_try="$ac_compiler $ac_option >&5" 3069case "(($ac_try" in 3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3071 *) ac_try_echo=$ac_try;; 3072esac 3073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3074$as_echo "$ac_try_echo"; } >&5 3075 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3076 ac_status=$? 3077 if test -s conftest.err; then 3078 sed '10a\ 3079... rest of stderr output deleted ... 3080 10q' conftest.err >conftest.er1 3081 cat conftest.er1 >&5 3082 fi 3083 rm -f conftest.er1 conftest.err 3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3085 test $ac_status = 0; } 3086done 3087 3088cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3089/* end confdefs.h. */ 3090 3091int 3092main () 3093{ 3094 3095 ; 3096 return 0; 3097} 3098_ACEOF 3099ac_clean_files_save=$ac_clean_files 3100ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3101# Try to create an executable without -o first, disregard a.out. 3102# It will help us diagnose broken compilers, and finding out an intuition 3103# of exeext. 3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3105$as_echo_n "checking whether the C compiler works... " >&6; } 3106ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3107 3108# The possible output files: 3109ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3110 3111ac_rmfiles= 3112for ac_file in $ac_files 3113do 3114 case $ac_file in 3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3116 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3117 esac 3118done 3119rm -f $ac_rmfiles 3120 3121if { { ac_try="$ac_link_default" 3122case "(($ac_try" in 3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3124 *) ac_try_echo=$ac_try;; 3125esac 3126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3127$as_echo "$ac_try_echo"; } >&5 3128 (eval "$ac_link_default") 2>&5 3129 ac_status=$? 3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3131 test $ac_status = 0; }; then : 3132 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3133# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3134# in a Makefile. We should not override ac_cv_exeext if it was cached, 3135# so that the user can short-circuit this test for compilers unknown to 3136# Autoconf. 3137for ac_file in $ac_files '' 3138do 3139 test -f "$ac_file" || continue 3140 case $ac_file in 3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3142 ;; 3143 [ab].out ) 3144 # We found the default executable, but exeext='' is most 3145 # certainly right. 3146 break;; 3147 *.* ) 3148 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3149 then :; else 3150 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3151 fi 3152 # We set ac_cv_exeext here because the later test for it is not 3153 # safe: cross compilers may not add the suffix if given an `-o' 3154 # argument, so we may need to know it at that point already. 3155 # Even if this section looks crufty: it has the advantage of 3156 # actually working. 3157 break;; 3158 * ) 3159 break;; 3160 esac 3161done 3162test "$ac_cv_exeext" = no && ac_cv_exeext= 3163 3164else 3165 ac_file='' 3166fi 3167if test -z "$ac_file"; then : 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3169$as_echo "no" >&6; } 3170$as_echo "$as_me: failed program was:" >&5 3171sed 's/^/| /' conftest.$ac_ext >&5 3172 3173{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3175as_fn_error 77 "C compiler cannot create executables 3176See \`config.log' for more details" "$LINENO" 5; } 3177else 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3179$as_echo "yes" >&6; } 3180fi 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3182$as_echo_n "checking for C compiler default output file name... " >&6; } 3183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3184$as_echo "$ac_file" >&6; } 3185ac_exeext=$ac_cv_exeext 3186 3187rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3188ac_clean_files=$ac_clean_files_save 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3190$as_echo_n "checking for suffix of executables... " >&6; } 3191if { { ac_try="$ac_link" 3192case "(($ac_try" in 3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3194 *) ac_try_echo=$ac_try;; 3195esac 3196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3197$as_echo "$ac_try_echo"; } >&5 3198 (eval "$ac_link") 2>&5 3199 ac_status=$? 3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3201 test $ac_status = 0; }; then : 3202 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3203# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3204# work properly (i.e., refer to `conftest.exe'), while it won't with 3205# `rm'. 3206for ac_file in conftest.exe conftest conftest.*; do 3207 test -f "$ac_file" || continue 3208 case $ac_file in 3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3210 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3211 break;; 3212 * ) break;; 3213 esac 3214done 3215else 3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3218as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3219See \`config.log' for more details" "$LINENO" 5; } 3220fi 3221rm -f conftest conftest$ac_cv_exeext 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3223$as_echo "$ac_cv_exeext" >&6; } 3224 3225rm -f conftest.$ac_ext 3226EXEEXT=$ac_cv_exeext 3227ac_exeext=$EXEEXT 3228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3229/* end confdefs.h. */ 3230#include <stdio.h> 3231int 3232main () 3233{ 3234FILE *f = fopen ("conftest.out", "w"); 3235 return ferror (f) || fclose (f) != 0; 3236 3237 ; 3238 return 0; 3239} 3240_ACEOF 3241ac_clean_files="$ac_clean_files conftest.out" 3242# Check that the compiler produces executables we can run. If not, either 3243# the compiler is broken, or we cross compile. 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3245$as_echo_n "checking whether we are cross compiling... " >&6; } 3246if test "$cross_compiling" != yes; then 3247 { { ac_try="$ac_link" 3248case "(($ac_try" in 3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3250 *) ac_try_echo=$ac_try;; 3251esac 3252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3253$as_echo "$ac_try_echo"; } >&5 3254 (eval "$ac_link") 2>&5 3255 ac_status=$? 3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3257 test $ac_status = 0; } 3258 if { ac_try='./conftest$ac_cv_exeext' 3259 { { case "(($ac_try" in 3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3261 *) ac_try_echo=$ac_try;; 3262esac 3263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3264$as_echo "$ac_try_echo"; } >&5 3265 (eval "$ac_try") 2>&5 3266 ac_status=$? 3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3268 test $ac_status = 0; }; }; then 3269 cross_compiling=no 3270 else 3271 if test "$cross_compiling" = maybe; then 3272 cross_compiling=yes 3273 else 3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3276as_fn_error $? "cannot run C compiled programs. 3277If you meant to cross compile, use \`--host'. 3278See \`config.log' for more details" "$LINENO" 5; } 3279 fi 3280 fi 3281fi 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3283$as_echo "$cross_compiling" >&6; } 3284 3285rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3286ac_clean_files=$ac_clean_files_save 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3288$as_echo_n "checking for suffix of object files... " >&6; } 3289if ${ac_cv_objext+:} false; then : 3290 $as_echo_n "(cached) " >&6 3291else 3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3293/* end confdefs.h. */ 3294 3295int 3296main () 3297{ 3298 3299 ; 3300 return 0; 3301} 3302_ACEOF 3303rm -f conftest.o conftest.obj 3304if { { ac_try="$ac_compile" 3305case "(($ac_try" in 3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3307 *) ac_try_echo=$ac_try;; 3308esac 3309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3310$as_echo "$ac_try_echo"; } >&5 3311 (eval "$ac_compile") 2>&5 3312 ac_status=$? 3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3314 test $ac_status = 0; }; then : 3315 for ac_file in conftest.o conftest.obj conftest.*; do 3316 test -f "$ac_file" || continue; 3317 case $ac_file in 3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3320 break;; 3321 esac 3322done 3323else 3324 $as_echo "$as_me: failed program was:" >&5 3325sed 's/^/| /' conftest.$ac_ext >&5 3326 3327{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3329as_fn_error $? "cannot compute suffix of object files: cannot compile 3330See \`config.log' for more details" "$LINENO" 5; } 3331fi 3332rm -f conftest.$ac_cv_objext conftest.$ac_ext 3333fi 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3335$as_echo "$ac_cv_objext" >&6; } 3336OBJEXT=$ac_cv_objext 3337ac_objext=$OBJEXT 3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3339$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3340if ${ac_cv_c_compiler_gnu+:} false; then : 3341 $as_echo_n "(cached) " >&6 3342else 3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3344/* end confdefs.h. */ 3345 3346int 3347main () 3348{ 3349#ifndef __GNUC__ 3350 choke me 3351#endif 3352 3353 ; 3354 return 0; 3355} 3356_ACEOF 3357if ac_fn_c_try_compile "$LINENO"; then : 3358 ac_compiler_gnu=yes 3359else 3360 ac_compiler_gnu=no 3361fi 3362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3363ac_cv_c_compiler_gnu=$ac_compiler_gnu 3364 3365fi 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3367$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3368if test $ac_compiler_gnu = yes; then 3369 GCC=yes 3370else 3371 GCC= 3372fi 3373ac_test_CFLAGS=${CFLAGS+set} 3374ac_save_CFLAGS=$CFLAGS 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3376$as_echo_n "checking whether $CC accepts -g... " >&6; } 3377if ${ac_cv_prog_cc_g+:} false; then : 3378 $as_echo_n "(cached) " >&6 3379else 3380 ac_save_c_werror_flag=$ac_c_werror_flag 3381 ac_c_werror_flag=yes 3382 ac_cv_prog_cc_g=no 3383 CFLAGS="-g" 3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3385/* end confdefs.h. */ 3386 3387int 3388main () 3389{ 3390 3391 ; 3392 return 0; 3393} 3394_ACEOF 3395if ac_fn_c_try_compile "$LINENO"; then : 3396 ac_cv_prog_cc_g=yes 3397else 3398 CFLAGS="" 3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3400/* end confdefs.h. */ 3401 3402int 3403main () 3404{ 3405 3406 ; 3407 return 0; 3408} 3409_ACEOF 3410if ac_fn_c_try_compile "$LINENO"; then : 3411 3412else 3413 ac_c_werror_flag=$ac_save_c_werror_flag 3414 CFLAGS="-g" 3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3416/* end confdefs.h. */ 3417 3418int 3419main () 3420{ 3421 3422 ; 3423 return 0; 3424} 3425_ACEOF 3426if ac_fn_c_try_compile "$LINENO"; then : 3427 ac_cv_prog_cc_g=yes 3428fi 3429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3430fi 3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3432fi 3433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3434 ac_c_werror_flag=$ac_save_c_werror_flag 3435fi 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3437$as_echo "$ac_cv_prog_cc_g" >&6; } 3438if test "$ac_test_CFLAGS" = set; then 3439 CFLAGS=$ac_save_CFLAGS 3440elif test $ac_cv_prog_cc_g = yes; then 3441 if test "$GCC" = yes; then 3442 CFLAGS="-g -O2" 3443 else 3444 CFLAGS="-g" 3445 fi 3446else 3447 if test "$GCC" = yes; then 3448 CFLAGS="-O2" 3449 else 3450 CFLAGS= 3451 fi 3452fi 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3454$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3455if ${ac_cv_prog_cc_c89+:} false; then : 3456 $as_echo_n "(cached) " >&6 3457else 3458 ac_cv_prog_cc_c89=no 3459ac_save_CC=$CC 3460cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3461/* end confdefs.h. */ 3462#include <stdarg.h> 3463#include <stdio.h> 3464struct stat; 3465/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3466struct buf { int x; }; 3467FILE * (*rcsopen) (struct buf *, struct stat *, int); 3468static char *e (p, i) 3469 char **p; 3470 int i; 3471{ 3472 return p[i]; 3473} 3474static char *f (char * (*g) (char **, int), char **p, ...) 3475{ 3476 char *s; 3477 va_list v; 3478 va_start (v,p); 3479 s = g (p, va_arg (v,int)); 3480 va_end (v); 3481 return s; 3482} 3483 3484/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3485 function prototypes and stuff, but not '\xHH' hex character constants. 3486 These don't provoke an error unfortunately, instead are silently treated 3487 as 'x'. The following induces an error, until -std is added to get 3488 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3489 array size at least. It's necessary to write '\x00'==0 to get something 3490 that's true only with -std. */ 3491int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3492 3493/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3494 inside strings and character constants. */ 3495#define FOO(x) 'x' 3496int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3497 3498int test (int i, double x); 3499struct s1 {int (*f) (int a);}; 3500struct s2 {int (*f) (double a);}; 3501int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3502int argc; 3503char **argv; 3504int 3505main () 3506{ 3507return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3508 ; 3509 return 0; 3510} 3511_ACEOF 3512for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3513 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3514do 3515 CC="$ac_save_CC $ac_arg" 3516 if ac_fn_c_try_compile "$LINENO"; then : 3517 ac_cv_prog_cc_c89=$ac_arg 3518fi 3519rm -f core conftest.err conftest.$ac_objext 3520 test "x$ac_cv_prog_cc_c89" != "xno" && break 3521done 3522rm -f conftest.$ac_ext 3523CC=$ac_save_CC 3524 3525fi 3526# AC_CACHE_VAL 3527case "x$ac_cv_prog_cc_c89" in 3528 x) 3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3530$as_echo "none needed" >&6; } ;; 3531 xno) 3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3533$as_echo "unsupported" >&6; } ;; 3534 *) 3535 CC="$CC $ac_cv_prog_cc_c89" 3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3537$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3538esac 3539if test "x$ac_cv_prog_cc_c89" != xno; then : 3540 3541fi 3542 3543ac_ext=c 3544ac_cpp='$CPP $CPPFLAGS' 3545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3547ac_compiler_gnu=$ac_cv_c_compiler_gnu 3548 3549 3550ac_ext=c 3551ac_cpp='$CPP $CPPFLAGS' 3552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3554ac_compiler_gnu=$ac_cv_c_compiler_gnu 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3556$as_echo_n "checking how to run the C preprocessor... " >&6; } 3557# On Suns, sometimes $CPP names a directory. 3558if test -n "$CPP" && test -d "$CPP"; then 3559 CPP= 3560fi 3561if test -z "$CPP"; then 3562 if ${ac_cv_prog_CPP+:} false; then : 3563 $as_echo_n "(cached) " >&6 3564else 3565 # Double quotes because CPP needs to be expanded 3566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3567 do 3568 ac_preproc_ok=false 3569for ac_c_preproc_warn_flag in '' yes 3570do 3571 # Use a header file that comes with gcc, so configuring glibc 3572 # with a fresh cross-compiler works. 3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3574 # <limits.h> exists even on freestanding compilers. 3575 # On the NeXT, cc -E runs the code through the compiler's parser, 3576 # not just through cpp. "Syntax error" is here to catch this case. 3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3578/* end confdefs.h. */ 3579#ifdef __STDC__ 3580# include <limits.h> 3581#else 3582# include <assert.h> 3583#endif 3584 Syntax error 3585_ACEOF 3586if ac_fn_c_try_cpp "$LINENO"; then : 3587 3588else 3589 # Broken: fails on valid input. 3590continue 3591fi 3592rm -f conftest.err conftest.i conftest.$ac_ext 3593 3594 # OK, works on sane cases. Now check whether nonexistent headers 3595 # can be detected and how. 3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3597/* end confdefs.h. */ 3598#include <ac_nonexistent.h> 3599_ACEOF 3600if ac_fn_c_try_cpp "$LINENO"; then : 3601 # Broken: success on invalid input. 3602continue 3603else 3604 # Passes both tests. 3605ac_preproc_ok=: 3606break 3607fi 3608rm -f conftest.err conftest.i conftest.$ac_ext 3609 3610done 3611# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3612rm -f conftest.i conftest.err conftest.$ac_ext 3613if $ac_preproc_ok; then : 3614 break 3615fi 3616 3617 done 3618 ac_cv_prog_CPP=$CPP 3619 3620fi 3621 CPP=$ac_cv_prog_CPP 3622else 3623 ac_cv_prog_CPP=$CPP 3624fi 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3626$as_echo "$CPP" >&6; } 3627ac_preproc_ok=false 3628for ac_c_preproc_warn_flag in '' yes 3629do 3630 # Use a header file that comes with gcc, so configuring glibc 3631 # with a fresh cross-compiler works. 3632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3633 # <limits.h> exists even on freestanding compilers. 3634 # On the NeXT, cc -E runs the code through the compiler's parser, 3635 # not just through cpp. "Syntax error" is here to catch this case. 3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3637/* end confdefs.h. */ 3638#ifdef __STDC__ 3639# include <limits.h> 3640#else 3641# include <assert.h> 3642#endif 3643 Syntax error 3644_ACEOF 3645if ac_fn_c_try_cpp "$LINENO"; then : 3646 3647else 3648 # Broken: fails on valid input. 3649continue 3650fi 3651rm -f conftest.err conftest.i conftest.$ac_ext 3652 3653 # OK, works on sane cases. Now check whether nonexistent headers 3654 # can be detected and how. 3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3656/* end confdefs.h. */ 3657#include <ac_nonexistent.h> 3658_ACEOF 3659if ac_fn_c_try_cpp "$LINENO"; then : 3660 # Broken: success on invalid input. 3661continue 3662else 3663 # Passes both tests. 3664ac_preproc_ok=: 3665break 3666fi 3667rm -f conftest.err conftest.i conftest.$ac_ext 3668 3669done 3670# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3671rm -f conftest.i conftest.err conftest.$ac_ext 3672if $ac_preproc_ok; then : 3673 3674else 3675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3677as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3678See \`config.log' for more details" "$LINENO" 5; } 3679fi 3680 3681ac_ext=c 3682ac_cpp='$CPP $CPPFLAGS' 3683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3685ac_compiler_gnu=$ac_cv_c_compiler_gnu 3686 3687 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3689$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3690if ${ac_cv_path_GREP+:} false; then : 3691 $as_echo_n "(cached) " >&6 3692else 3693 if test -z "$GREP"; then 3694 ac_path_GREP_found=false 3695 # Loop through the user's path and test for each of PROGNAME-LIST 3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3697for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3698do 3699 IFS=$as_save_IFS 3700 test -z "$as_dir" && as_dir=. 3701 for ac_prog in grep ggrep; do 3702 for ac_exec_ext in '' $ac_executable_extensions; do 3703 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3704 as_fn_executable_p "$ac_path_GREP" || continue 3705# Check for GNU ac_path_GREP and select it if it is found. 3706 # Check for GNU $ac_path_GREP 3707case `"$ac_path_GREP" --version 2>&1` in 3708*GNU*) 3709 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3710*) 3711 ac_count=0 3712 $as_echo_n 0123456789 >"conftest.in" 3713 while : 3714 do 3715 cat "conftest.in" "conftest.in" >"conftest.tmp" 3716 mv "conftest.tmp" "conftest.in" 3717 cp "conftest.in" "conftest.nl" 3718 $as_echo 'GREP' >> "conftest.nl" 3719 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3721 as_fn_arith $ac_count + 1 && ac_count=$as_val 3722 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3723 # Best one so far, save it but keep looking for a better one 3724 ac_cv_path_GREP="$ac_path_GREP" 3725 ac_path_GREP_max=$ac_count 3726 fi 3727 # 10*(2^10) chars as input seems more than enough 3728 test $ac_count -gt 10 && break 3729 done 3730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3731esac 3732 3733 $ac_path_GREP_found && break 3 3734 done 3735 done 3736 done 3737IFS=$as_save_IFS 3738 if test -z "$ac_cv_path_GREP"; then 3739 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3740 fi 3741else 3742 ac_cv_path_GREP=$GREP 3743fi 3744 3745fi 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3747$as_echo "$ac_cv_path_GREP" >&6; } 3748 GREP="$ac_cv_path_GREP" 3749 3750 3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3752$as_echo_n "checking for egrep... " >&6; } 3753if ${ac_cv_path_EGREP+:} false; then : 3754 $as_echo_n "(cached) " >&6 3755else 3756 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3757 then ac_cv_path_EGREP="$GREP -E" 3758 else 3759 if test -z "$EGREP"; then 3760 ac_path_EGREP_found=false 3761 # Loop through the user's path and test for each of PROGNAME-LIST 3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3763for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3764do 3765 IFS=$as_save_IFS 3766 test -z "$as_dir" && as_dir=. 3767 for ac_prog in egrep; do 3768 for ac_exec_ext in '' $ac_executable_extensions; do 3769 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3770 as_fn_executable_p "$ac_path_EGREP" || continue 3771# Check for GNU ac_path_EGREP and select it if it is found. 3772 # Check for GNU $ac_path_EGREP 3773case `"$ac_path_EGREP" --version 2>&1` in 3774*GNU*) 3775 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3776*) 3777 ac_count=0 3778 $as_echo_n 0123456789 >"conftest.in" 3779 while : 3780 do 3781 cat "conftest.in" "conftest.in" >"conftest.tmp" 3782 mv "conftest.tmp" "conftest.in" 3783 cp "conftest.in" "conftest.nl" 3784 $as_echo 'EGREP' >> "conftest.nl" 3785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3787 as_fn_arith $ac_count + 1 && ac_count=$as_val 3788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3789 # Best one so far, save it but keep looking for a better one 3790 ac_cv_path_EGREP="$ac_path_EGREP" 3791 ac_path_EGREP_max=$ac_count 3792 fi 3793 # 10*(2^10) chars as input seems more than enough 3794 test $ac_count -gt 10 && break 3795 done 3796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3797esac 3798 3799 $ac_path_EGREP_found && break 3 3800 done 3801 done 3802 done 3803IFS=$as_save_IFS 3804 if test -z "$ac_cv_path_EGREP"; then 3805 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3806 fi 3807else 3808 ac_cv_path_EGREP=$EGREP 3809fi 3810 3811 fi 3812fi 3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3814$as_echo "$ac_cv_path_EGREP" >&6; } 3815 EGREP="$ac_cv_path_EGREP" 3816 3817 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3819$as_echo_n "checking for ANSI C header files... " >&6; } 3820if ${ac_cv_header_stdc+:} false; then : 3821 $as_echo_n "(cached) " >&6 3822else 3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3824/* end confdefs.h. */ 3825#include <stdlib.h> 3826#include <stdarg.h> 3827#include <string.h> 3828#include <float.h> 3829 3830int 3831main () 3832{ 3833 3834 ; 3835 return 0; 3836} 3837_ACEOF 3838if ac_fn_c_try_compile "$LINENO"; then : 3839 ac_cv_header_stdc=yes 3840else 3841 ac_cv_header_stdc=no 3842fi 3843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3844 3845if test $ac_cv_header_stdc = yes; then 3846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3848/* end confdefs.h. */ 3849#include <string.h> 3850 3851_ACEOF 3852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3853 $EGREP "memchr" >/dev/null 2>&1; then : 3854 3855else 3856 ac_cv_header_stdc=no 3857fi 3858rm -f conftest* 3859 3860fi 3861 3862if test $ac_cv_header_stdc = yes; then 3863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3865/* end confdefs.h. */ 3866#include <stdlib.h> 3867 3868_ACEOF 3869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3870 $EGREP "free" >/dev/null 2>&1; then : 3871 3872else 3873 ac_cv_header_stdc=no 3874fi 3875rm -f conftest* 3876 3877fi 3878 3879if test $ac_cv_header_stdc = yes; then 3880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3881 if test "$cross_compiling" = yes; then : 3882 : 3883else 3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3885/* end confdefs.h. */ 3886#include <ctype.h> 3887#include <stdlib.h> 3888#if ((' ' & 0x0FF) == 0x020) 3889# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3890# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3891#else 3892# define ISLOWER(c) \ 3893 (('a' <= (c) && (c) <= 'i') \ 3894 || ('j' <= (c) && (c) <= 'r') \ 3895 || ('s' <= (c) && (c) <= 'z')) 3896# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3897#endif 3898 3899#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3900int 3901main () 3902{ 3903 int i; 3904 for (i = 0; i < 256; i++) 3905 if (XOR (islower (i), ISLOWER (i)) 3906 || toupper (i) != TOUPPER (i)) 3907 return 2; 3908 return 0; 3909} 3910_ACEOF 3911if ac_fn_c_try_run "$LINENO"; then : 3912 3913else 3914 ac_cv_header_stdc=no 3915fi 3916rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3917 conftest.$ac_objext conftest.beam conftest.$ac_ext 3918fi 3919 3920fi 3921fi 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3923$as_echo "$ac_cv_header_stdc" >&6; } 3924if test $ac_cv_header_stdc = yes; then 3925 3926$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3927 3928fi 3929 3930# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3931for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3932 inttypes.h stdint.h unistd.h 3933do : 3934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3935ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3936" 3937if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3938 cat >>confdefs.h <<_ACEOF 3939#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3940_ACEOF 3941 3942fi 3943 3944done 3945 3946 3947 3948 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3949if test "x$ac_cv_header_minix_config_h" = xyes; then : 3950 MINIX=yes 3951else 3952 MINIX= 3953fi 3954 3955 3956 if test "$MINIX" = yes; then 3957 3958$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3959 3960 3961$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3962 3963 3964$as_echo "#define _MINIX 1" >>confdefs.h 3965 3966 fi 3967 3968 3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3970$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3971if ${ac_cv_safe_to_define___extensions__+:} false; then : 3972 $as_echo_n "(cached) " >&6 3973else 3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3975/* end confdefs.h. */ 3976 3977# define __EXTENSIONS__ 1 3978 $ac_includes_default 3979int 3980main () 3981{ 3982 3983 ; 3984 return 0; 3985} 3986_ACEOF 3987if ac_fn_c_try_compile "$LINENO"; then : 3988 ac_cv_safe_to_define___extensions__=yes 3989else 3990 ac_cv_safe_to_define___extensions__=no 3991fi 3992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3993fi 3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3995$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3996 test $ac_cv_safe_to_define___extensions__ = yes && 3997 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3998 3999 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4000 4001 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4002 4003 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4004 4005 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4006 4007 4008 4009if test "$ac_cv_header_minix_config_h" = "yes"; then 4010 4011$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 4012 4013fi 4014 4015case "$prefix" in 4016 NONE) 4017 prefix="/usr/local" 4018 ;; 4019esac 4020 4021# are we on MinGW? 4022if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes" 4023else 4024 if echo $target | grep mingw32 >/dev/null; then on_mingw="yes" 4025 else on_mingw="no"; fi 4026fi 4027 4028# 4029# Determine configuration file 4030# the eval is to evaluate shell expansion twice 4031if test $on_mingw = "no"; then 4032 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"` 4033else 4034 ub_conf_file="C:\\Program Files\\Unbound\\service.conf" 4035fi 4036 4037# Check whether --with-conf_file was given. 4038if test "${with_conf_file+set}" = set; then : 4039 withval=$with_conf_file; ub_conf_file="$withval" 4040fi 4041 4042 4043hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`" 4044 4045 4046cat >>confdefs.h <<_ACEOF 4047#define CONFIGFILE "$hdr_config" 4048_ACEOF 4049 4050 4051# Determine run, chroot directory and pidfile locations 4052 4053# Check whether --with-run-dir was given. 4054if test "${with_run_dir+set}" = set; then : 4055 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval" 4056else 4057 if test $on_mingw = no; then 4058 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"` 4059else 4060 UNBOUND_RUN_DIR="" 4061fi 4062 4063fi 4064 4065 4066hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4067 4068 4069cat >>confdefs.h <<_ACEOF 4070#define RUN_DIR "$hdr_run" 4071_ACEOF 4072 4073 4074 4075# Check whether --with-chroot-dir was given. 4076if test "${with_chroot_dir+set}" = set; then : 4077 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval" 4078else 4079 if test $on_mingw = no; then 4080 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR" 4081else 4082 UNBOUND_CHROOT_DIR="" 4083fi 4084 4085fi 4086 4087 4088hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4089 4090 4091cat >>confdefs.h <<_ACEOF 4092#define CHROOT_DIR "$hdr_chroot" 4093_ACEOF 4094 4095 4096 4097# Check whether --with-share-dir was given. 4098if test "${with_share_dir+set}" = set; then : 4099 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval" 4100else 4101 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR" 4102fi 4103 4104 4105 4106cat >>confdefs.h <<_ACEOF 4107#define SHARE_DIR "$UNBOUND_SHARE_DIR" 4108_ACEOF 4109 4110 4111 4112# Check whether --with-pidfile was given. 4113if test "${with_pidfile+set}" = set; then : 4114 withval=$with_pidfile; UNBOUND_PIDFILE="$withval" 4115else 4116 if test $on_mingw = no; then 4117 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid" 4118else 4119 UNBOUND_PIDFILE="" 4120fi 4121 4122fi 4123 4124 4125hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4126 4127 4128cat >>confdefs.h <<_ACEOF 4129#define PIDFILE "$hdr_pid" 4130_ACEOF 4131 4132 4133 4134# Check whether --with-rootkey-file was given. 4135if test "${with_rootkey_file+set}" = set; then : 4136 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval" 4137else 4138 if test $on_mingw = no; then 4139 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key" 4140else 4141 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key" 4142fi 4143 4144fi 4145 4146 4147hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4148 4149 4150cat >>confdefs.h <<_ACEOF 4151#define ROOT_ANCHOR_FILE "$hdr_rkey" 4152_ACEOF 4153 4154 4155 4156# Check whether --with-rootcert-file was given. 4157if test "${with_rootcert_file+set}" = set; then : 4158 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval" 4159else 4160 if test $on_mingw = no; then 4161 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem" 4162else 4163 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem" 4164fi 4165 4166fi 4167 4168 4169hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4170 4171 4172cat >>confdefs.h <<_ACEOF 4173#define ROOT_CERT_FILE "$hdr_rpem" 4174_ACEOF 4175 4176 4177 4178# Check whether --with-username was given. 4179if test "${with_username+set}" = set; then : 4180 withval=$with_username; UNBOUND_USERNAME="$withval" 4181else 4182 UNBOUND_USERNAME="unbound" 4183fi 4184 4185 4186 4187cat >>confdefs.h <<_ACEOF 4188#define UB_USERNAME "$UNBOUND_USERNAME" 4189_ACEOF 4190 4191 4192 4193$as_echo "#define WINVER 0x0502" >>confdefs.h 4194 4195wnvs=`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/' ` 4196 4197 4198cat >>confdefs.h <<_ACEOF 4199#define RSRC_PACKAGE_VERSION $wnvs 4200_ACEOF 4201 4202 4203# Checks for typedefs, structures, and compiler characteristics. 4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4205$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4206if ${ac_cv_c_const+:} false; then : 4207 $as_echo_n "(cached) " >&6 4208else 4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4210/* end confdefs.h. */ 4211 4212int 4213main () 4214{ 4215 4216#ifndef __cplusplus 4217 /* Ultrix mips cc rejects this sort of thing. */ 4218 typedef int charset[2]; 4219 const charset cs = { 0, 0 }; 4220 /* SunOS 4.1.1 cc rejects this. */ 4221 char const *const *pcpcc; 4222 char **ppc; 4223 /* NEC SVR4.0.2 mips cc rejects this. */ 4224 struct point {int x, y;}; 4225 static struct point const zero = {0,0}; 4226 /* AIX XL C 1.02.0.0 rejects this. 4227 It does not let you subtract one const X* pointer from another in 4228 an arm of an if-expression whose if-part is not a constant 4229 expression */ 4230 const char *g = "string"; 4231 pcpcc = &g + (g ? g-g : 0); 4232 /* HPUX 7.0 cc rejects these. */ 4233 ++pcpcc; 4234 ppc = (char**) pcpcc; 4235 pcpcc = (char const *const *) ppc; 4236 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4237 char tx; 4238 char *t = &tx; 4239 char const *s = 0 ? (char *) 0 : (char const *) 0; 4240 4241 *t++ = 0; 4242 if (s) return 0; 4243 } 4244 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4245 int x[] = {25, 17}; 4246 const int *foo = &x[0]; 4247 ++foo; 4248 } 4249 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4250 typedef const int *iptr; 4251 iptr p = 0; 4252 ++p; 4253 } 4254 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4255 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4256 struct s { int j; const int *ap[3]; } bx; 4257 struct s *b = &bx; b->j = 5; 4258 } 4259 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4260 const int foo = 10; 4261 if (!foo) return 0; 4262 } 4263 return !cs[0] && !zero.x; 4264#endif 4265 4266 ; 4267 return 0; 4268} 4269_ACEOF 4270if ac_fn_c_try_compile "$LINENO"; then : 4271 ac_cv_c_const=yes 4272else 4273 ac_cv_c_const=no 4274fi 4275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4276fi 4277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4278$as_echo "$ac_cv_c_const" >&6; } 4279if test $ac_cv_c_const = no; then 4280 4281$as_echo "#define const /**/" >>confdefs.h 4282 4283fi 4284 4285ac_ext=c 4286ac_cpp='$CPP $CPPFLAGS' 4287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4289ac_compiler_gnu=$ac_cv_c_compiler_gnu 4290 4291# allow user to override the -g -O2 flags. 4292if test "x$CFLAGS" = "x" ; then 4293 4294 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4296$as_echo_n "checking whether $CC supports -g... " >&6; } 4297cache=`echo g | sed 'y%.=/+-%___p_%'` 4298if eval \${cv_prog_cc_flag_$cache+:} false; then : 4299 $as_echo_n "(cached) " >&6 4300else 4301 4302echo 'void f(void){}' >conftest.c 4303if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4304eval "cv_prog_cc_flag_$cache=yes" 4305else 4306eval "cv_prog_cc_flag_$cache=no" 4307fi 4308rm -f conftest conftest.o conftest.c 4309 4310fi 4311 4312if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4314$as_echo "yes" >&6; } 4315: 4316CFLAGS="$CFLAGS -g" 4317else 4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4319$as_echo "no" >&6; } 4320: 4321 4322fi 4323 4324 4325 4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4327$as_echo_n "checking whether $CC supports -O2... " >&6; } 4328cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4329if eval \${cv_prog_cc_flag_$cache+:} false; then : 4330 $as_echo_n "(cached) " >&6 4331else 4332 4333echo 'void f(void){}' >conftest.c 4334if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4335eval "cv_prog_cc_flag_$cache=yes" 4336else 4337eval "cv_prog_cc_flag_$cache=no" 4338fi 4339rm -f conftest conftest.o conftest.c 4340 4341fi 4342 4343if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4345$as_echo "yes" >&6; } 4346: 4347CFLAGS="$CFLAGS -O2" 4348else 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4350$as_echo "no" >&6; } 4351: 4352 4353fi 4354 4355fi 4356ac_ext=c 4357ac_cpp='$CPP $CPPFLAGS' 4358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4360ac_compiler_gnu=$ac_cv_c_compiler_gnu 4361if test -n "$ac_tool_prefix"; then 4362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4363set dummy ${ac_tool_prefix}gcc; ac_word=$2 4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4365$as_echo_n "checking for $ac_word... " >&6; } 4366if ${ac_cv_prog_CC+:} false; then : 4367 $as_echo_n "(cached) " >&6 4368else 4369 if test -n "$CC"; then 4370 ac_cv_prog_CC="$CC" # Let the user override the test. 4371else 4372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4373for as_dir in $PATH 4374do 4375 IFS=$as_save_IFS 4376 test -z "$as_dir" && as_dir=. 4377 for ac_exec_ext in '' $ac_executable_extensions; do 4378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4379 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4381 break 2 4382 fi 4383done 4384 done 4385IFS=$as_save_IFS 4386 4387fi 4388fi 4389CC=$ac_cv_prog_CC 4390if test -n "$CC"; then 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4392$as_echo "$CC" >&6; } 4393else 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4395$as_echo "no" >&6; } 4396fi 4397 4398 4399fi 4400if test -z "$ac_cv_prog_CC"; then 4401 ac_ct_CC=$CC 4402 # Extract the first word of "gcc", so it can be a program name with args. 4403set dummy gcc; ac_word=$2 4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4405$as_echo_n "checking for $ac_word... " >&6; } 4406if ${ac_cv_prog_ac_ct_CC+:} false; then : 4407 $as_echo_n "(cached) " >&6 4408else 4409 if test -n "$ac_ct_CC"; then 4410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4411else 4412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4413for as_dir in $PATH 4414do 4415 IFS=$as_save_IFS 4416 test -z "$as_dir" && as_dir=. 4417 for ac_exec_ext in '' $ac_executable_extensions; do 4418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4419 ac_cv_prog_ac_ct_CC="gcc" 4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4421 break 2 4422 fi 4423done 4424 done 4425IFS=$as_save_IFS 4426 4427fi 4428fi 4429ac_ct_CC=$ac_cv_prog_ac_ct_CC 4430if test -n "$ac_ct_CC"; then 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4432$as_echo "$ac_ct_CC" >&6; } 4433else 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4435$as_echo "no" >&6; } 4436fi 4437 4438 if test "x$ac_ct_CC" = x; then 4439 CC="" 4440 else 4441 case $cross_compiling:$ac_tool_warned in 4442yes:) 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4445ac_tool_warned=yes ;; 4446esac 4447 CC=$ac_ct_CC 4448 fi 4449else 4450 CC="$ac_cv_prog_CC" 4451fi 4452 4453if test -z "$CC"; then 4454 if test -n "$ac_tool_prefix"; then 4455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4456set dummy ${ac_tool_prefix}cc; ac_word=$2 4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4458$as_echo_n "checking for $ac_word... " >&6; } 4459if ${ac_cv_prog_CC+:} false; then : 4460 $as_echo_n "(cached) " >&6 4461else 4462 if test -n "$CC"; then 4463 ac_cv_prog_CC="$CC" # Let the user override the test. 4464else 4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4466for as_dir in $PATH 4467do 4468 IFS=$as_save_IFS 4469 test -z "$as_dir" && as_dir=. 4470 for ac_exec_ext in '' $ac_executable_extensions; do 4471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4472 ac_cv_prog_CC="${ac_tool_prefix}cc" 4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4474 break 2 4475 fi 4476done 4477 done 4478IFS=$as_save_IFS 4479 4480fi 4481fi 4482CC=$ac_cv_prog_CC 4483if test -n "$CC"; then 4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4485$as_echo "$CC" >&6; } 4486else 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4488$as_echo "no" >&6; } 4489fi 4490 4491 4492 fi 4493fi 4494if test -z "$CC"; then 4495 # Extract the first word of "cc", so it can be a program name with args. 4496set dummy cc; ac_word=$2 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4498$as_echo_n "checking for $ac_word... " >&6; } 4499if ${ac_cv_prog_CC+:} false; then : 4500 $as_echo_n "(cached) " >&6 4501else 4502 if test -n "$CC"; then 4503 ac_cv_prog_CC="$CC" # Let the user override the test. 4504else 4505 ac_prog_rejected=no 4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4507for as_dir in $PATH 4508do 4509 IFS=$as_save_IFS 4510 test -z "$as_dir" && as_dir=. 4511 for ac_exec_ext in '' $ac_executable_extensions; do 4512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4514 ac_prog_rejected=yes 4515 continue 4516 fi 4517 ac_cv_prog_CC="cc" 4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4519 break 2 4520 fi 4521done 4522 done 4523IFS=$as_save_IFS 4524 4525if test $ac_prog_rejected = yes; then 4526 # We found a bogon in the path, so make sure we never use it. 4527 set dummy $ac_cv_prog_CC 4528 shift 4529 if test $# != 0; then 4530 # We chose a different compiler from the bogus one. 4531 # However, it has the same basename, so the bogon will be chosen 4532 # first if we set CC to just the basename; use the full file name. 4533 shift 4534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4535 fi 4536fi 4537fi 4538fi 4539CC=$ac_cv_prog_CC 4540if test -n "$CC"; then 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4542$as_echo "$CC" >&6; } 4543else 4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4545$as_echo "no" >&6; } 4546fi 4547 4548 4549fi 4550if test -z "$CC"; then 4551 if test -n "$ac_tool_prefix"; then 4552 for ac_prog in cl.exe 4553 do 4554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4555set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4557$as_echo_n "checking for $ac_word... " >&6; } 4558if ${ac_cv_prog_CC+:} false; then : 4559 $as_echo_n "(cached) " >&6 4560else 4561 if test -n "$CC"; then 4562 ac_cv_prog_CC="$CC" # Let the user override the test. 4563else 4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4565for as_dir in $PATH 4566do 4567 IFS=$as_save_IFS 4568 test -z "$as_dir" && as_dir=. 4569 for ac_exec_ext in '' $ac_executable_extensions; do 4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4573 break 2 4574 fi 4575done 4576 done 4577IFS=$as_save_IFS 4578 4579fi 4580fi 4581CC=$ac_cv_prog_CC 4582if test -n "$CC"; then 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4584$as_echo "$CC" >&6; } 4585else 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4587$as_echo "no" >&6; } 4588fi 4589 4590 4591 test -n "$CC" && break 4592 done 4593fi 4594if test -z "$CC"; then 4595 ac_ct_CC=$CC 4596 for ac_prog in cl.exe 4597do 4598 # Extract the first word of "$ac_prog", so it can be a program name with args. 4599set dummy $ac_prog; ac_word=$2 4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4601$as_echo_n "checking for $ac_word... " >&6; } 4602if ${ac_cv_prog_ac_ct_CC+:} false; then : 4603 $as_echo_n "(cached) " >&6 4604else 4605 if test -n "$ac_ct_CC"; then 4606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4607else 4608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4609for as_dir in $PATH 4610do 4611 IFS=$as_save_IFS 4612 test -z "$as_dir" && as_dir=. 4613 for ac_exec_ext in '' $ac_executable_extensions; do 4614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4615 ac_cv_prog_ac_ct_CC="$ac_prog" 4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4617 break 2 4618 fi 4619done 4620 done 4621IFS=$as_save_IFS 4622 4623fi 4624fi 4625ac_ct_CC=$ac_cv_prog_ac_ct_CC 4626if test -n "$ac_ct_CC"; then 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4628$as_echo "$ac_ct_CC" >&6; } 4629else 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4631$as_echo "no" >&6; } 4632fi 4633 4634 4635 test -n "$ac_ct_CC" && break 4636done 4637 4638 if test "x$ac_ct_CC" = x; then 4639 CC="" 4640 else 4641 case $cross_compiling:$ac_tool_warned in 4642yes:) 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4645ac_tool_warned=yes ;; 4646esac 4647 CC=$ac_ct_CC 4648 fi 4649fi 4650 4651fi 4652 4653 4654test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4656as_fn_error $? "no acceptable C compiler found in \$PATH 4657See \`config.log' for more details" "$LINENO" 5; } 4658 4659# Provide some information about the compiler. 4660$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4661set X $ac_compile 4662ac_compiler=$2 4663for ac_option in --version -v -V -qversion; do 4664 { { ac_try="$ac_compiler $ac_option >&5" 4665case "(($ac_try" in 4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4667 *) ac_try_echo=$ac_try;; 4668esac 4669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4670$as_echo "$ac_try_echo"; } >&5 4671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4672 ac_status=$? 4673 if test -s conftest.err; then 4674 sed '10a\ 4675... rest of stderr output deleted ... 4676 10q' conftest.err >conftest.er1 4677 cat conftest.er1 >&5 4678 fi 4679 rm -f conftest.er1 conftest.err 4680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4681 test $ac_status = 0; } 4682done 4683 4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4685$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4686if ${ac_cv_c_compiler_gnu+:} false; then : 4687 $as_echo_n "(cached) " >&6 4688else 4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4690/* end confdefs.h. */ 4691 4692int 4693main () 4694{ 4695#ifndef __GNUC__ 4696 choke me 4697#endif 4698 4699 ; 4700 return 0; 4701} 4702_ACEOF 4703if ac_fn_c_try_compile "$LINENO"; then : 4704 ac_compiler_gnu=yes 4705else 4706 ac_compiler_gnu=no 4707fi 4708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4709ac_cv_c_compiler_gnu=$ac_compiler_gnu 4710 4711fi 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4713$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4714if test $ac_compiler_gnu = yes; then 4715 GCC=yes 4716else 4717 GCC= 4718fi 4719ac_test_CFLAGS=${CFLAGS+set} 4720ac_save_CFLAGS=$CFLAGS 4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4722$as_echo_n "checking whether $CC accepts -g... " >&6; } 4723if ${ac_cv_prog_cc_g+:} false; then : 4724 $as_echo_n "(cached) " >&6 4725else 4726 ac_save_c_werror_flag=$ac_c_werror_flag 4727 ac_c_werror_flag=yes 4728 ac_cv_prog_cc_g=no 4729 CFLAGS="-g" 4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4731/* end confdefs.h. */ 4732 4733int 4734main () 4735{ 4736 4737 ; 4738 return 0; 4739} 4740_ACEOF 4741if ac_fn_c_try_compile "$LINENO"; then : 4742 ac_cv_prog_cc_g=yes 4743else 4744 CFLAGS="" 4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4746/* end confdefs.h. */ 4747 4748int 4749main () 4750{ 4751 4752 ; 4753 return 0; 4754} 4755_ACEOF 4756if ac_fn_c_try_compile "$LINENO"; then : 4757 4758else 4759 ac_c_werror_flag=$ac_save_c_werror_flag 4760 CFLAGS="-g" 4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4762/* end confdefs.h. */ 4763 4764int 4765main () 4766{ 4767 4768 ; 4769 return 0; 4770} 4771_ACEOF 4772if ac_fn_c_try_compile "$LINENO"; then : 4773 ac_cv_prog_cc_g=yes 4774fi 4775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4776fi 4777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4778fi 4779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4780 ac_c_werror_flag=$ac_save_c_werror_flag 4781fi 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4783$as_echo "$ac_cv_prog_cc_g" >&6; } 4784if test "$ac_test_CFLAGS" = set; then 4785 CFLAGS=$ac_save_CFLAGS 4786elif test $ac_cv_prog_cc_g = yes; then 4787 if test "$GCC" = yes; then 4788 CFLAGS="-g -O2" 4789 else 4790 CFLAGS="-g" 4791 fi 4792else 4793 if test "$GCC" = yes; then 4794 CFLAGS="-O2" 4795 else 4796 CFLAGS= 4797 fi 4798fi 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4800$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4801if ${ac_cv_prog_cc_c89+:} false; then : 4802 $as_echo_n "(cached) " >&6 4803else 4804 ac_cv_prog_cc_c89=no 4805ac_save_CC=$CC 4806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4807/* end confdefs.h. */ 4808#include <stdarg.h> 4809#include <stdio.h> 4810struct stat; 4811/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4812struct buf { int x; }; 4813FILE * (*rcsopen) (struct buf *, struct stat *, int); 4814static char *e (p, i) 4815 char **p; 4816 int i; 4817{ 4818 return p[i]; 4819} 4820static char *f (char * (*g) (char **, int), char **p, ...) 4821{ 4822 char *s; 4823 va_list v; 4824 va_start (v,p); 4825 s = g (p, va_arg (v,int)); 4826 va_end (v); 4827 return s; 4828} 4829 4830/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4831 function prototypes and stuff, but not '\xHH' hex character constants. 4832 These don't provoke an error unfortunately, instead are silently treated 4833 as 'x'. The following induces an error, until -std is added to get 4834 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4835 array size at least. It's necessary to write '\x00'==0 to get something 4836 that's true only with -std. */ 4837int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4838 4839/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4840 inside strings and character constants. */ 4841#define FOO(x) 'x' 4842int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4843 4844int test (int i, double x); 4845struct s1 {int (*f) (int a);}; 4846struct s2 {int (*f) (double a);}; 4847int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4848int argc; 4849char **argv; 4850int 4851main () 4852{ 4853return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4854 ; 4855 return 0; 4856} 4857_ACEOF 4858for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4859 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4860do 4861 CC="$ac_save_CC $ac_arg" 4862 if ac_fn_c_try_compile "$LINENO"; then : 4863 ac_cv_prog_cc_c89=$ac_arg 4864fi 4865rm -f core conftest.err conftest.$ac_objext 4866 test "x$ac_cv_prog_cc_c89" != "xno" && break 4867done 4868rm -f conftest.$ac_ext 4869CC=$ac_save_CC 4870 4871fi 4872# AC_CACHE_VAL 4873case "x$ac_cv_prog_cc_c89" in 4874 x) 4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4876$as_echo "none needed" >&6; } ;; 4877 xno) 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4879$as_echo "unsupported" >&6; } ;; 4880 *) 4881 CC="$CC $ac_cv_prog_cc_c89" 4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4883$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4884esac 4885if test "x$ac_cv_prog_cc_c89" != xno; then : 4886 4887fi 4888 4889ac_ext=c 4890ac_cpp='$CPP $CPPFLAGS' 4891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4893ac_compiler_gnu=$ac_cv_c_compiler_gnu 4894 4895 4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 4897$as_echo_n "checking $CC dependency flag... " >&6; } 4898echo 'void f(){}' >conftest.c 4899if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 4900 DEPFLAG="-MM" 4901else 4902 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 4903 DEPFLAG="-xM1" 4904 else 4905 DEPFLAG="-MM" # dunno do something 4906 fi 4907fi 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 4909$as_echo "$DEPFLAG" >&6; } 4910rm -f conftest.c 4911 4912 4913 4914 4915 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 4917$as_echo_n "checking whether $CC supports -Werror... " >&6; } 4918cache=`echo Werror | sed 'y%.=/+-%___p_%'` 4919if eval \${cv_prog_cc_flag_$cache+:} false; then : 4920 $as_echo_n "(cached) " >&6 4921else 4922 4923echo 'void f(void){}' >conftest.c 4924if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 4925eval "cv_prog_cc_flag_$cache=yes" 4926else 4927eval "cv_prog_cc_flag_$cache=no" 4928fi 4929rm -f conftest conftest.o conftest.c 4930 4931fi 4932 4933if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4935$as_echo "yes" >&6; } 4936: 4937ERRFLAG="-Werror" 4938else 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4940$as_echo "no" >&6; } 4941: 4942ERRFLAG="-errwarn" 4943fi 4944 4945 4946 4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 4948$as_echo_n "checking whether $CC supports -Wall... " >&6; } 4949cache=`echo Wall | sed 'y%.=/+-%___p_%'` 4950if eval \${cv_prog_cc_flag_$cache+:} false; then : 4951 $as_echo_n "(cached) " >&6 4952else 4953 4954echo 'void f(void){}' >conftest.c 4955if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 4956eval "cv_prog_cc_flag_$cache=yes" 4957else 4958eval "cv_prog_cc_flag_$cache=no" 4959fi 4960rm -f conftest conftest.o conftest.c 4961 4962fi 4963 4964if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4966$as_echo "yes" >&6; } 4967: 4968ERRFLAG="$ERRFLAG -Wall" 4969else 4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4971$as_echo "no" >&6; } 4972: 4973ERRFLAG="$ERRFLAG -errfmt" 4974fi 4975 4976 4977 4978 4979 4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 4981$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 4982cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 4983if eval \${cv_prog_cc_flag_$cache+:} false; then : 4984 $as_echo_n "(cached) " >&6 4985else 4986 4987echo 'void f(void){}' >conftest.c 4988if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 4989eval "cv_prog_cc_flag_$cache=yes" 4990else 4991eval "cv_prog_cc_flag_$cache=no" 4992fi 4993rm -f conftest conftest.o conftest.c 4994 4995fi 4996 4997if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4999$as_echo "yes" >&6; } 5000: 5001C99FLAG="-std=c99" 5002else 5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5004$as_echo "no" >&6; } 5005: 5006 5007fi 5008 5009 5010 5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 5012$as_echo_n "checking whether $CC supports -xc99... " >&6; } 5013cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 5014if eval \${cv_prog_cc_flag_$cache+:} false; then : 5015 $as_echo_n "(cached) " >&6 5016else 5017 5018echo 'void f(void){}' >conftest.c 5019if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 5020eval "cv_prog_cc_flag_$cache=yes" 5021else 5022eval "cv_prog_cc_flag_$cache=no" 5023fi 5024rm -f conftest conftest.o conftest.c 5025 5026fi 5027 5028if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5030$as_echo "yes" >&6; } 5031: 5032C99FLAG="-xc99" 5033else 5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5035$as_echo "no" >&6; } 5036: 5037 5038fi 5039 5040 5041for ac_header in getopt.h time.h 5042do : 5043 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5044ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5045" 5046if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5047 cat >>confdefs.h <<_ACEOF 5048#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5049_ACEOF 5050 5051fi 5052 5053done 5054 5055 5056 5057 5058 5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5 5060$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; } 5061cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh` 5062if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5063 $as_echo_n "(cached) " >&6 5064else 5065 5066echo ' 5067#include "confdefs.h" 5068#include <stdlib.h> 5069#include <ctype.h> 5070#include <sys/time.h> 5071#ifdef HAVE_TIME_H 5072#include <time.h> 5073#endif 5074#include <unistd.h> 5075#include <netdb.h> 5076#ifdef HAVE_GETOPT_H 5077#include <getopt.h> 5078#endif 5079 5080int test() { 5081 int a; 5082 char **opts = NULL; 5083 struct timeval tv; 5084 char *t; 5085 time_t time = 0; 5086 char *buf = NULL; 5087 const char* str = NULL; 5088 struct msghdr msg; 5089 msg.msg_control = 0; 5090 t = ctime_r(&time, buf); 5091 tv.tv_usec = 10; 5092 srandom(32); 5093 a = getopt(2, opts, "a"); 5094 a = isascii(32); 5095 str = gai_strerror(0); 5096 if(str && t && tv.tv_usec && msg.msg_control) 5097 a = 0; 5098 return a; 5099} 5100' > conftest.c 5101echo 'void f(){}' >>conftest.c 5102if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5103eval "cv_prog_cc_flag_needed_$cache=no" 5104else 5105 5106if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_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 5107eval "cv_prog_cc_flag_needed_$cache=yes" 5108else 5109eval "cv_prog_cc_flag_needed_$cache=fail" 5110#echo 'Test with flag fails too!' 5111#cat conftest.c 5112#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5113#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5114#exit 1 5115fi 5116 5117fi 5118rm -f conftest conftest.c conftest.o 5119 5120fi 5121 5122if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5124$as_echo "yes" >&6; } 5125: 5126CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" 5127else 5128if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5130$as_echo "no" >&6; } 5131#echo 'Test with flag is no!' 5132#cat conftest.c 5133#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5134#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5135#exit 1 5136: 5137 5138else 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5140$as_echo "failed" >&6; } 5141: 5142 5143fi 5144fi 5145 5146 5147 5148 5149 5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5 5151$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; } 5152cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 5153if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5154 $as_echo_n "(cached) " >&6 5155else 5156 5157echo ' 5158#include "confdefs.h" 5159#include <stdlib.h> 5160#include <ctype.h> 5161#include <sys/time.h> 5162#ifdef HAVE_TIME_H 5163#include <time.h> 5164#endif 5165#include <unistd.h> 5166#include <netdb.h> 5167#ifdef HAVE_GETOPT_H 5168#include <getopt.h> 5169#endif 5170 5171int test() { 5172 int a; 5173 char **opts = NULL; 5174 struct timeval tv; 5175 char *t; 5176 time_t time = 0; 5177 char *buf = NULL; 5178 const char* str = NULL; 5179 struct msghdr msg; 5180 msg.msg_control = 0; 5181 t = ctime_r(&time, buf); 5182 tv.tv_usec = 10; 5183 srandom(32); 5184 a = getopt(2, opts, "a"); 5185 a = isascii(32); 5186 str = gai_strerror(0); 5187 if(str && t && tv.tv_usec && msg.msg_control) 5188 a = 0; 5189 return a; 5190} 5191' > conftest.c 5192echo 'void f(){}' >>conftest.c 5193if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5194eval "cv_prog_cc_flag_needed_$cache=no" 5195else 5196 5197if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5198eval "cv_prog_cc_flag_needed_$cache=yes" 5199else 5200eval "cv_prog_cc_flag_needed_$cache=fail" 5201#echo 'Test with flag fails too!' 5202#cat conftest.c 5203#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5204#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5205#exit 1 5206fi 5207 5208fi 5209rm -f conftest conftest.c conftest.o 5210 5211fi 5212 5213if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5215$as_echo "yes" >&6; } 5216: 5217CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 5218else 5219if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5221$as_echo "no" >&6; } 5222#echo 'Test with flag is no!' 5223#cat conftest.c 5224#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5225#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5226#exit 1 5227: 5228 5229else 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5231$as_echo "failed" >&6; } 5232: 5233 5234fi 5235fi 5236 5237 5238 5239 5240 5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 5242$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 5243cache=`$as_echo "$C99FLAG" | $as_tr_sh` 5244if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5245 $as_echo_n "(cached) " >&6 5246else 5247 5248echo ' 5249#include <stdbool.h> 5250#include <ctype.h> 5251int test() { 5252 int a = 0; 5253 return a; 5254} 5255' > conftest.c 5256echo 'void f(){}' >>conftest.c 5257if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5258eval "cv_prog_cc_flag_needed_$cache=no" 5259else 5260 5261if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 5262eval "cv_prog_cc_flag_needed_$cache=yes" 5263else 5264eval "cv_prog_cc_flag_needed_$cache=fail" 5265#echo 'Test with flag fails too!' 5266#cat conftest.c 5267#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5268#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5269#exit 1 5270fi 5271 5272fi 5273rm -f conftest conftest.c conftest.o 5274 5275fi 5276 5277if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5279$as_echo "yes" >&6; } 5280: 5281CFLAGS="$CFLAGS $C99FLAG" 5282else 5283if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5285$as_echo "no" >&6; } 5286#echo 'Test with flag is no!' 5287#cat conftest.c 5288#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5289#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5290#exit 1 5291: 5292 5293else 5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5295$as_echo "failed" >&6; } 5296: 5297 5298fi 5299fi 5300 5301 5302 5303 5304 5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5 5306$as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; } 5307cache=_D_BSD_SOURCE 5308if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5309 $as_echo_n "(cached) " >&6 5310else 5311 5312echo ' 5313#include <ctype.h> 5314 5315int test() { 5316 int a; 5317 a = isascii(32); 5318 return a; 5319} 5320' > conftest.c 5321echo 'void f(){}' >>conftest.c 5322if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5323eval "cv_prog_cc_flag_needed_$cache=no" 5324else 5325 5326if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5327eval "cv_prog_cc_flag_needed_$cache=yes" 5328else 5329eval "cv_prog_cc_flag_needed_$cache=fail" 5330#echo 'Test with flag fails too!' 5331#cat conftest.c 5332#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5333#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5334#exit 1 5335fi 5336 5337fi 5338rm -f conftest conftest.c conftest.o 5339 5340fi 5341 5342if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5344$as_echo "yes" >&6; } 5345: 5346CFLAGS="$CFLAGS -D_BSD_SOURCE" 5347else 5348if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5350$as_echo "no" >&6; } 5351#echo 'Test with flag is no!' 5352#cat conftest.c 5353#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5354#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5355#exit 1 5356: 5357 5358else 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5360$as_echo "failed" >&6; } 5361: 5362 5363fi 5364fi 5365 5366 5367 5368 5369 5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 5371$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 5372cache=_D_GNU_SOURCE 5373if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5374 $as_echo_n "(cached) " >&6 5375else 5376 5377echo ' 5378#include <netinet/in.h> 5379 5380int test() { 5381 struct in6_pktinfo inf; 5382 int a = (int)sizeof(inf); 5383 return a; 5384} 5385' > conftest.c 5386echo 'void f(){}' >>conftest.c 5387if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5388eval "cv_prog_cc_flag_needed_$cache=no" 5389else 5390 5391if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5392eval "cv_prog_cc_flag_needed_$cache=yes" 5393else 5394eval "cv_prog_cc_flag_needed_$cache=fail" 5395#echo 'Test with flag fails too!' 5396#cat conftest.c 5397#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5398#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5399#exit 1 5400fi 5401 5402fi 5403rm -f conftest conftest.c conftest.o 5404 5405fi 5406 5407if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5409$as_echo "yes" >&6; } 5410: 5411CFLAGS="$CFLAGS -D_GNU_SOURCE" 5412else 5413if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5415$as_echo "no" >&6; } 5416#echo 'Test with flag is no!' 5417#cat conftest.c 5418#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5419#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5420#exit 1 5421: 5422 5423else 5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5425$as_echo "failed" >&6; } 5426: 5427 5428fi 5429fi 5430 5431 5432# check again for GNU_SOURCE for setresgid. May fail if setresgid 5433# is not available at all. -D_FRSRESGID is to make this check unique. 5434# otherwise we would get the previous cached result. 5435 5436 5437 5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 5439$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 5440cache=_D_GNU_SOURCE__D_FRSRESGID 5441if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5442 $as_echo_n "(cached) " >&6 5443else 5444 5445echo ' 5446#include <unistd.h> 5447 5448int test() { 5449 int a = setresgid(0,0,0); 5450 a = setresuid(0,0,0); 5451 return a; 5452} 5453' > conftest.c 5454echo 'void f(){}' >>conftest.c 5455if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5456eval "cv_prog_cc_flag_needed_$cache=no" 5457else 5458 5459if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 5460eval "cv_prog_cc_flag_needed_$cache=yes" 5461else 5462eval "cv_prog_cc_flag_needed_$cache=fail" 5463#echo 'Test with flag fails too!' 5464#cat conftest.c 5465#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5466#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5467#exit 1 5468fi 5469 5470fi 5471rm -f conftest conftest.c conftest.o 5472 5473fi 5474 5475if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5477$as_echo "yes" >&6; } 5478: 5479CFLAGS="$CFLAGS -D_GNU_SOURCE" 5480else 5481if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5483$as_echo "no" >&6; } 5484#echo 'Test with flag is no!' 5485#cat conftest.c 5486#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5487#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5488#exit 1 5489: 5490 5491else 5492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5493$as_echo "failed" >&6; } 5494: 5495 5496fi 5497fi 5498 5499 5500 5501 5502 5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 5504$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 5505cache=_D_POSIX_C_SOURCE_200112 5506if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5507 $as_echo_n "(cached) " >&6 5508else 5509 5510echo ' 5511#include "confdefs.h" 5512#ifdef HAVE_TIME_H 5513#include <time.h> 5514#endif 5515#include <netdb.h> 5516 5517int test() { 5518 int a = 0; 5519 char *t; 5520 time_t time = 0; 5521 char *buf = NULL; 5522 const char* str = NULL; 5523 t = ctime_r(&time, buf); 5524 str = gai_strerror(0); 5525 if(t && str) 5526 a = 0; 5527 return a; 5528} 5529' > conftest.c 5530echo 'void f(){}' >>conftest.c 5531if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5532eval "cv_prog_cc_flag_needed_$cache=no" 5533else 5534 5535if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 5536eval "cv_prog_cc_flag_needed_$cache=yes" 5537else 5538eval "cv_prog_cc_flag_needed_$cache=fail" 5539#echo 'Test with flag fails too!' 5540#cat conftest.c 5541#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5542#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5543#exit 1 5544fi 5545 5546fi 5547rm -f conftest conftest.c conftest.o 5548 5549fi 5550 5551if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5553$as_echo "yes" >&6; } 5554: 5555CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 5556else 5557if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5559$as_echo "no" >&6; } 5560#echo 'Test with flag is no!' 5561#cat conftest.c 5562#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5563#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5564#exit 1 5565: 5566 5567else 5568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5569$as_echo "failed" >&6; } 5570: 5571 5572fi 5573fi 5574 5575 5576 5577 5578 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 5580$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 5581cache=_D__EXTENSIONS__ 5582if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5583 $as_echo_n "(cached) " >&6 5584else 5585 5586echo ' 5587#include "confdefs.h" 5588#include <stdlib.h> 5589#include <ctype.h> 5590#include <sys/time.h> 5591#ifdef HAVE_TIME_H 5592#include <time.h> 5593#endif 5594#include <unistd.h> 5595#ifdef HAVE_GETOPT_H 5596#include <getopt.h> 5597#endif 5598 5599int test() { 5600 int a; 5601 char **opts = NULL; 5602 struct timeval tv; 5603 tv.tv_usec = 10; 5604 srandom(32); 5605 a = getopt(2, opts, "a"); 5606 a = isascii(32); 5607 if(tv.tv_usec) 5608 a = 0; 5609 return a; 5610} 5611' > conftest.c 5612echo 'void f(){}' >>conftest.c 5613if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5614eval "cv_prog_cc_flag_needed_$cache=no" 5615else 5616 5617if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 5618eval "cv_prog_cc_flag_needed_$cache=yes" 5619else 5620eval "cv_prog_cc_flag_needed_$cache=fail" 5621#echo 'Test with flag fails too!' 5622#cat conftest.c 5623#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5624#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5625#exit 1 5626fi 5627 5628fi 5629rm -f conftest conftest.c conftest.o 5630 5631fi 5632 5633if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5635$as_echo "yes" >&6; } 5636: 5637CFLAGS="$CFLAGS -D__EXTENSIONS__" 5638else 5639if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5641$as_echo "no" >&6; } 5642#echo 'Test with flag is no!' 5643#cat conftest.c 5644#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5645#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5646#exit 1 5647: 5648 5649else 5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5651$as_echo "failed" >&6; } 5652: 5653 5654fi 5655fi 5656 5657 5658 5659 5660# debug mode flags warnings 5661# Check whether --enable-checking was given. 5662if test "${enable_checking+set}" = set; then : 5663 enableval=$enable_checking; 5664fi 5665 5666# Check whether --enable-debug was given. 5667if test "${enable_debug+set}" = set; then : 5668 enableval=$enable_debug; 5669fi 5670 5671if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; 5672else debug_enabled="$enable_checking"; fi 5673 5674case "$debug_enabled" in 5675 yes) 5676 5677 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 5679$as_echo_n "checking whether $CC supports -W... " >&6; } 5680cache=`echo W | sed 'y%.=/+-%___p_%'` 5681if eval \${cv_prog_cc_flag_$cache+:} false; then : 5682 $as_echo_n "(cached) " >&6 5683else 5684 5685echo 'void f(void){}' >conftest.c 5686if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 5687eval "cv_prog_cc_flag_$cache=yes" 5688else 5689eval "cv_prog_cc_flag_$cache=no" 5690fi 5691rm -f conftest conftest.o conftest.c 5692 5693fi 5694 5695if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5697$as_echo "yes" >&6; } 5698: 5699CFLAGS="$CFLAGS -W" 5700else 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5702$as_echo "no" >&6; } 5703: 5704 5705fi 5706 5707 5708 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5710$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5711cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5712if eval \${cv_prog_cc_flag_$cache+:} false; then : 5713 $as_echo_n "(cached) " >&6 5714else 5715 5716echo 'void f(void){}' >conftest.c 5717if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5718eval "cv_prog_cc_flag_$cache=yes" 5719else 5720eval "cv_prog_cc_flag_$cache=no" 5721fi 5722rm -f conftest conftest.o conftest.c 5723 5724fi 5725 5726if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5728$as_echo "yes" >&6; } 5729: 5730CFLAGS="$CFLAGS -Wall" 5731else 5732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5733$as_echo "no" >&6; } 5734: 5735 5736fi 5737 5738 5739 5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 5741$as_echo_n "checking whether $CC supports -Wextra... " >&6; } 5742cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 5743if eval \${cv_prog_cc_flag_$cache+:} false; then : 5744 $as_echo_n "(cached) " >&6 5745else 5746 5747echo 'void f(void){}' >conftest.c 5748if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then 5749eval "cv_prog_cc_flag_$cache=yes" 5750else 5751eval "cv_prog_cc_flag_$cache=no" 5752fi 5753rm -f conftest conftest.o conftest.c 5754 5755fi 5756 5757if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5759$as_echo "yes" >&6; } 5760: 5761CFLAGS="$CFLAGS -Wextra" 5762else 5763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5764$as_echo "no" >&6; } 5765: 5766 5767fi 5768 5769 5770 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 5772$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 5773cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'` 5774if eval \${cv_prog_cc_flag_$cache+:} false; then : 5775 $as_echo_n "(cached) " >&6 5776else 5777 5778echo 'void f(void){}' >conftest.c 5779if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 5780eval "cv_prog_cc_flag_$cache=yes" 5781else 5782eval "cv_prog_cc_flag_$cache=no" 5783fi 5784rm -f conftest conftest.o conftest.c 5785 5786fi 5787 5788if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5790$as_echo "yes" >&6; } 5791: 5792CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5793else 5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5795$as_echo "no" >&6; } 5796: 5797 5798fi 5799 5800 5801$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h 5802 5803 ;; 5804 no|*) 5805 # nothing to do. 5806 ;; 5807esac 5808 5809 # Check whether --enable-flto was given. 5810if test "${enable_flto+set}" = set; then : 5811 enableval=$enable_flto; 5812fi 5813 5814 if test "x$enable_flto" != "xno"; then : 5815 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 5817$as_echo_n "checking if $CC supports -flto... " >&6; } 5818 BAKCFLAGS="$CFLAGS" 5819 CFLAGS="$CFLAGS -flto" 5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5821/* end confdefs.h. */ 5822 5823int 5824main () 5825{ 5826 5827 ; 5828 return 0; 5829} 5830_ACEOF 5831if ac_fn_c_try_link "$LINENO"; then : 5832 5833 if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 5834 CFLAGS="$BAKCFLAGS" 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5836$as_echo "no" >&6; } 5837 else 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5839$as_echo "yes" >&6; } 5840 fi 5841 rm -f conftest conftest.c conftest.o 5842 5843else 5844 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5845$as_echo "no" >&6; } 5846fi 5847rm -f core conftest.err conftest.$ac_objext \ 5848 conftest$ac_exeext conftest.$ac_ext 5849 5850fi 5851 5852 5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5854$as_echo_n "checking for inline... " >&6; } 5855if ${ac_cv_c_inline+:} false; then : 5856 $as_echo_n "(cached) " >&6 5857else 5858 ac_cv_c_inline=no 5859for ac_kw in inline __inline__ __inline; do 5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5861/* end confdefs.h. */ 5862#ifndef __cplusplus 5863typedef int foo_t; 5864static $ac_kw foo_t static_foo () {return 0; } 5865$ac_kw foo_t foo () {return 0; } 5866#endif 5867 5868_ACEOF 5869if ac_fn_c_try_compile "$LINENO"; then : 5870 ac_cv_c_inline=$ac_kw 5871fi 5872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5873 test "$ac_cv_c_inline" != no && break 5874done 5875 5876fi 5877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5878$as_echo "$ac_cv_c_inline" >&6; } 5879 5880case $ac_cv_c_inline in 5881 inline | yes) ;; 5882 *) 5883 case $ac_cv_c_inline in 5884 no) ac_val=;; 5885 *) ac_val=$ac_cv_c_inline;; 5886 esac 5887 cat >>confdefs.h <<_ACEOF 5888#ifndef __cplusplus 5889#define inline $ac_val 5890#endif 5891_ACEOF 5892 ;; 5893esac 5894 5895 5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 5897$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 5898if ${ac_cv_c_format_attribute+:} false; then : 5899 $as_echo_n "(cached) " >&6 5900else 5901 ac_cv_c_format_attribute=no 5902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5903/* end confdefs.h. */ 5904#include <stdio.h> 5905void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 5906void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 5907 5908int 5909main () 5910{ 5911 5912 f ("%s", "str"); 5913 5914 ; 5915 return 0; 5916} 5917_ACEOF 5918if ac_fn_c_try_compile "$LINENO"; then : 5919 ac_cv_c_format_attribute="yes" 5920else 5921 ac_cv_c_format_attribute="no" 5922fi 5923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5924 5925fi 5926 5927 5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 5929$as_echo "$ac_cv_c_format_attribute" >&6; } 5930if test $ac_cv_c_format_attribute = yes; then 5931 5932$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 5933 5934fi 5935 5936 5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 5938$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 5939if ${ac_cv_c_unused_attribute+:} false; then : 5940 $as_echo_n "(cached) " >&6 5941else 5942 ac_cv_c_unused_attribute=no 5943cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5944/* end confdefs.h. */ 5945#include <stdio.h> 5946void f (char *u __attribute__((unused))); 5947 5948int 5949main () 5950{ 5951 5952 f ("x"); 5953 5954 ; 5955 return 0; 5956} 5957_ACEOF 5958if ac_fn_c_try_compile "$LINENO"; then : 5959 ac_cv_c_unused_attribute="yes" 5960else 5961 ac_cv_c_unused_attribute="no" 5962fi 5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5964 5965fi 5966 5967 5968 5969 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 5971$as_echo "$ac_cv_c_unused_attribute" >&6; } 5972if test $ac_cv_c_unused_attribute = yes; then 5973 5974$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 5975 5976fi 5977 5978 5979if test "$srcdir" != "."; then 5980 CPPFLAGS="$CPPFLAGS -I$srcdir" 5981fi 5982 5983 5984 5985for ac_prog in flex lex 5986do 5987 # Extract the first word of "$ac_prog", so it can be a program name with args. 5988set dummy $ac_prog; ac_word=$2 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5990$as_echo_n "checking for $ac_word... " >&6; } 5991if ${ac_cv_prog_LEX+:} false; then : 5992 $as_echo_n "(cached) " >&6 5993else 5994 if test -n "$LEX"; then 5995 ac_cv_prog_LEX="$LEX" # Let the user override the test. 5996else 5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5998for as_dir in $PATH 5999do 6000 IFS=$as_save_IFS 6001 test -z "$as_dir" && as_dir=. 6002 for ac_exec_ext in '' $ac_executable_extensions; do 6003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6004 ac_cv_prog_LEX="$ac_prog" 6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6006 break 2 6007 fi 6008done 6009 done 6010IFS=$as_save_IFS 6011 6012fi 6013fi 6014LEX=$ac_cv_prog_LEX 6015if test -n "$LEX"; then 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 6017$as_echo "$LEX" >&6; } 6018else 6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6020$as_echo "no" >&6; } 6021fi 6022 6023 6024 test -n "$LEX" && break 6025done 6026test -n "$LEX" || LEX=":" 6027 6028if test "x$LEX" != "x:"; then 6029 cat >conftest.l <<_ACEOF 6030%% 6031a { ECHO; } 6032b { REJECT; } 6033c { yymore (); } 6034d { yyless (1); } 6035e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 6036 yyless ((input () != 0)); } 6037f { unput (yytext[0]); } 6038. { BEGIN INITIAL; } 6039%% 6040#ifdef YYTEXT_POINTER 6041extern char *yytext; 6042#endif 6043int 6044main (void) 6045{ 6046 return ! yylex () + ! yywrap (); 6047} 6048_ACEOF 6049{ { ac_try="$LEX conftest.l" 6050case "(($ac_try" in 6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6052 *) ac_try_echo=$ac_try;; 6053esac 6054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6055$as_echo "$ac_try_echo"; } >&5 6056 (eval "$LEX conftest.l") 2>&5 6057 ac_status=$? 6058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6059 test $ac_status = 0; } 6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 6061$as_echo_n "checking lex output file root... " >&6; } 6062if ${ac_cv_prog_lex_root+:} false; then : 6063 $as_echo_n "(cached) " >&6 6064else 6065 6066if test -f lex.yy.c; then 6067 ac_cv_prog_lex_root=lex.yy 6068elif test -f lexyy.c; then 6069 ac_cv_prog_lex_root=lexyy 6070else 6071 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 6072fi 6073fi 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 6075$as_echo "$ac_cv_prog_lex_root" >&6; } 6076LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 6077 6078if test -z "${LEXLIB+set}"; then 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 6080$as_echo_n "checking lex library... " >&6; } 6081if ${ac_cv_lib_lex+:} false; then : 6082 $as_echo_n "(cached) " >&6 6083else 6084 6085 ac_save_LIBS=$LIBS 6086 ac_cv_lib_lex='none needed' 6087 for ac_lib in '' -lfl -ll; do 6088 LIBS="$ac_lib $ac_save_LIBS" 6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6090/* end confdefs.h. */ 6091`cat $LEX_OUTPUT_ROOT.c` 6092_ACEOF 6093if ac_fn_c_try_link "$LINENO"; then : 6094 ac_cv_lib_lex=$ac_lib 6095fi 6096rm -f core conftest.err conftest.$ac_objext \ 6097 conftest$ac_exeext conftest.$ac_ext 6098 test "$ac_cv_lib_lex" != 'none needed' && break 6099 done 6100 LIBS=$ac_save_LIBS 6101 6102fi 6103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 6104$as_echo "$ac_cv_lib_lex" >&6; } 6105 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 6106fi 6107 6108 6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 6110$as_echo_n "checking whether yytext is a pointer... " >&6; } 6111if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 6112 $as_echo_n "(cached) " >&6 6113else 6114 # POSIX says lex can declare yytext either as a pointer or an array; the 6115# default is implementation-dependent. Figure out which it is, since 6116# not all implementations provide the %pointer and %array declarations. 6117ac_cv_prog_lex_yytext_pointer=no 6118ac_save_LIBS=$LIBS 6119LIBS="$LEXLIB $ac_save_LIBS" 6120cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6121/* end confdefs.h. */ 6122 6123 #define YYTEXT_POINTER 1 6124`cat $LEX_OUTPUT_ROOT.c` 6125_ACEOF 6126if ac_fn_c_try_link "$LINENO"; then : 6127 ac_cv_prog_lex_yytext_pointer=yes 6128fi 6129rm -f core conftest.err conftest.$ac_objext \ 6130 conftest$ac_exeext conftest.$ac_ext 6131LIBS=$ac_save_LIBS 6132 6133fi 6134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 6135$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 6136if test $ac_cv_prog_lex_yytext_pointer = yes; then 6137 6138$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 6139 6140fi 6141rm -f conftest.l $LEX_OUTPUT_ROOT.c 6142 6143fi 6144 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5 6146$as_echo_n "checking for yylex_destroy... " >&6; } 6147 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then 6148 6149$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h 6150 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6152$as_echo "yes" >&6; } 6153 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6154$as_echo "no" >&6; }; fi 6155 6156for ac_prog in 'bison -y' byacc 6157do 6158 # Extract the first word of "$ac_prog", so it can be a program name with args. 6159set dummy $ac_prog; ac_word=$2 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6161$as_echo_n "checking for $ac_word... " >&6; } 6162if ${ac_cv_prog_YACC+:} false; then : 6163 $as_echo_n "(cached) " >&6 6164else 6165 if test -n "$YACC"; then 6166 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6167else 6168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6169for as_dir in $PATH 6170do 6171 IFS=$as_save_IFS 6172 test -z "$as_dir" && as_dir=. 6173 for ac_exec_ext in '' $ac_executable_extensions; do 6174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6175 ac_cv_prog_YACC="$ac_prog" 6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6177 break 2 6178 fi 6179done 6180 done 6181IFS=$as_save_IFS 6182 6183fi 6184fi 6185YACC=$ac_cv_prog_YACC 6186if test -n "$YACC"; then 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 6188$as_echo "$YACC" >&6; } 6189else 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6191$as_echo "no" >&6; } 6192fi 6193 6194 6195 test -n "$YACC" && break 6196done 6197test -n "$YACC" || YACC="yacc" 6198 6199# Extract the first word of "doxygen", so it can be a program name with args. 6200set dummy doxygen; ac_word=$2 6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6202$as_echo_n "checking for $ac_word... " >&6; } 6203if ${ac_cv_prog_doxygen+:} false; then : 6204 $as_echo_n "(cached) " >&6 6205else 6206 if test -n "$doxygen"; then 6207 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 6208else 6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6210for as_dir in $PATH 6211do 6212 IFS=$as_save_IFS 6213 test -z "$as_dir" && as_dir=. 6214 for ac_exec_ext in '' $ac_executable_extensions; do 6215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6216 ac_cv_prog_doxygen="doxygen" 6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6218 break 2 6219 fi 6220done 6221 done 6222IFS=$as_save_IFS 6223 6224fi 6225fi 6226doxygen=$ac_cv_prog_doxygen 6227if test -n "$doxygen"; then 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 6229$as_echo "$doxygen" >&6; } 6230else 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6232$as_echo "no" >&6; } 6233fi 6234 6235 6236if test -n "$ac_tool_prefix"; then 6237 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6238set dummy ${ac_tool_prefix}strip; ac_word=$2 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6240$as_echo_n "checking for $ac_word... " >&6; } 6241if ${ac_cv_prog_STRIP+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 if test -n "$STRIP"; then 6245 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6246else 6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6248for as_dir in $PATH 6249do 6250 IFS=$as_save_IFS 6251 test -z "$as_dir" && as_dir=. 6252 for ac_exec_ext in '' $ac_executable_extensions; do 6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6254 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6256 break 2 6257 fi 6258done 6259 done 6260IFS=$as_save_IFS 6261 6262fi 6263fi 6264STRIP=$ac_cv_prog_STRIP 6265if test -n "$STRIP"; then 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6267$as_echo "$STRIP" >&6; } 6268else 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6270$as_echo "no" >&6; } 6271fi 6272 6273 6274fi 6275if test -z "$ac_cv_prog_STRIP"; then 6276 ac_ct_STRIP=$STRIP 6277 # Extract the first word of "strip", so it can be a program name with args. 6278set dummy strip; ac_word=$2 6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6280$as_echo_n "checking for $ac_word... " >&6; } 6281if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6282 $as_echo_n "(cached) " >&6 6283else 6284 if test -n "$ac_ct_STRIP"; then 6285 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6286else 6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6288for as_dir in $PATH 6289do 6290 IFS=$as_save_IFS 6291 test -z "$as_dir" && as_dir=. 6292 for ac_exec_ext in '' $ac_executable_extensions; do 6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6294 ac_cv_prog_ac_ct_STRIP="strip" 6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6296 break 2 6297 fi 6298done 6299 done 6300IFS=$as_save_IFS 6301 6302fi 6303fi 6304ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6305if test -n "$ac_ct_STRIP"; then 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6307$as_echo "$ac_ct_STRIP" >&6; } 6308else 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6310$as_echo "no" >&6; } 6311fi 6312 6313 if test "x$ac_ct_STRIP" = x; then 6314 STRIP="" 6315 else 6316 case $cross_compiling:$ac_tool_warned in 6317yes:) 6318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6320ac_tool_warned=yes ;; 6321esac 6322 STRIP=$ac_ct_STRIP 6323 fi 6324else 6325 STRIP="$ac_cv_prog_STRIP" 6326fi 6327 6328ac_aux_dir= 6329for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 6330 if test -f "$ac_dir/install-sh"; then 6331 ac_aux_dir=$ac_dir 6332 ac_install_sh="$ac_aux_dir/install-sh -c" 6333 break 6334 elif test -f "$ac_dir/install.sh"; then 6335 ac_aux_dir=$ac_dir 6336 ac_install_sh="$ac_aux_dir/install.sh -c" 6337 break 6338 elif test -f "$ac_dir/shtool"; then 6339 ac_aux_dir=$ac_dir 6340 ac_install_sh="$ac_aux_dir/shtool install -c" 6341 break 6342 fi 6343done 6344if test -z "$ac_aux_dir"; then 6345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 6346fi 6347 6348# These three variables are undocumented and unsupported, 6349# and are intended to be withdrawn in a future Autoconf release. 6350# They can cause serious problems if a builder's source tree is in a directory 6351# whose full name contains unusual characters. 6352ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 6353ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 6354ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 6355 6356 6357# Make sure we can run config.sub. 6358$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6359 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6360 6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6362$as_echo_n "checking build system type... " >&6; } 6363if ${ac_cv_build+:} false; then : 6364 $as_echo_n "(cached) " >&6 6365else 6366 ac_build_alias=$build_alias 6367test "x$ac_build_alias" = x && 6368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6369test "x$ac_build_alias" = x && 6370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6371ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6373 6374fi 6375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6376$as_echo "$ac_cv_build" >&6; } 6377case $ac_cv_build in 6378*-*-*) ;; 6379*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6380esac 6381build=$ac_cv_build 6382ac_save_IFS=$IFS; IFS='-' 6383set x $ac_cv_build 6384shift 6385build_cpu=$1 6386build_vendor=$2 6387shift; shift 6388# Remember, the first character of IFS is used to create $*, 6389# except with old shells: 6390build_os=$* 6391IFS=$ac_save_IFS 6392case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6393 6394 6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6396$as_echo_n "checking host system type... " >&6; } 6397if ${ac_cv_host+:} false; then : 6398 $as_echo_n "(cached) " >&6 6399else 6400 if test "x$host_alias" = x; then 6401 ac_cv_host=$ac_cv_build 6402else 6403 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6405fi 6406 6407fi 6408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6409$as_echo "$ac_cv_host" >&6; } 6410case $ac_cv_host in 6411*-*-*) ;; 6412*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6413esac 6414host=$ac_cv_host 6415ac_save_IFS=$IFS; IFS='-' 6416set x $ac_cv_host 6417shift 6418host_cpu=$1 6419host_vendor=$2 6420shift; shift 6421# Remember, the first character of IFS is used to create $*, 6422# except with old shells: 6423host_os=$* 6424IFS=$ac_save_IFS 6425case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6426 6427 6428 6429# skip these tests, we do not need them. 6430 6431 6432 6433 6434 6435 6436 6437 6438# always use ./libtool unless override from commandline (libtool=mylibtool) 6439if test -z "$libtool"; then 6440 libtool="./libtool" 6441fi 6442 6443# avoid libtool max commandline length test on systems that fork slowly. 6444 6445if echo "$host_os" | grep "sunos4" >/dev/null; then 6446 lt_cv_sys_max_cmd_len=32750; 6447fi 6448if test -n "$ac_tool_prefix"; then 6449 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6450set dummy ${ac_tool_prefix}ar; ac_word=$2 6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6452$as_echo_n "checking for $ac_word... " >&6; } 6453if ${ac_cv_path_AR+:} false; then : 6454 $as_echo_n "(cached) " >&6 6455else 6456 case $AR in 6457 [\\/]* | ?:[\\/]*) 6458 ac_cv_path_AR="$AR" # Let the user override the test with a path. 6459 ;; 6460 *) 6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6462for as_dir in $PATH 6463do 6464 IFS=$as_save_IFS 6465 test -z "$as_dir" && as_dir=. 6466 for ac_exec_ext in '' $ac_executable_extensions; do 6467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6468 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6470 break 2 6471 fi 6472done 6473 done 6474IFS=$as_save_IFS 6475 6476 ;; 6477esac 6478fi 6479AR=$ac_cv_path_AR 6480if test -n "$AR"; then 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6482$as_echo "$AR" >&6; } 6483else 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6485$as_echo "no" >&6; } 6486fi 6487 6488 6489fi 6490if test -z "$ac_cv_path_AR"; then 6491 ac_pt_AR=$AR 6492 # Extract the first word of "ar", so it can be a program name with args. 6493set dummy ar; ac_word=$2 6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6495$as_echo_n "checking for $ac_word... " >&6; } 6496if ${ac_cv_path_ac_pt_AR+:} false; then : 6497 $as_echo_n "(cached) " >&6 6498else 6499 case $ac_pt_AR in 6500 [\\/]* | ?:[\\/]*) 6501 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 6502 ;; 6503 *) 6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6505for as_dir in $PATH 6506do 6507 IFS=$as_save_IFS 6508 test -z "$as_dir" && as_dir=. 6509 for ac_exec_ext in '' $ac_executable_extensions; do 6510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6511 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6513 break 2 6514 fi 6515done 6516 done 6517IFS=$as_save_IFS 6518 6519 ;; 6520esac 6521fi 6522ac_pt_AR=$ac_cv_path_ac_pt_AR 6523if test -n "$ac_pt_AR"; then 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 6525$as_echo "$ac_pt_AR" >&6; } 6526else 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6528$as_echo "no" >&6; } 6529fi 6530 6531 if test "x$ac_pt_AR" = x; then 6532 AR="false" 6533 else 6534 case $cross_compiling:$ac_tool_warned in 6535yes:) 6536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6538ac_tool_warned=yes ;; 6539esac 6540 AR=$ac_pt_AR 6541 fi 6542else 6543 AR="$ac_cv_path_AR" 6544fi 6545 6546if test $AR = false; then 6547 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 6548fi 6549 6550case `pwd` in 6551 *\ * | *\ *) 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6553$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6554esac 6555 6556 6557 6558macro_version='2.4.2' 6559macro_revision='1.3337' 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573ltmain="$ac_aux_dir/ltmain.sh" 6574 6575# Backslashify metacharacters that are still active within 6576# double-quoted strings. 6577sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6578 6579# Same as above, but do not quote variable references. 6580double_quote_subst='s/\(["`\\]\)/\\\1/g' 6581 6582# Sed substitution to delay expansion of an escaped shell variable in a 6583# double_quote_subst'ed string. 6584delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6585 6586# Sed substitution to delay expansion of an escaped single quote. 6587delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6588 6589# Sed substitution to avoid accidental globbing in evaled expressions 6590no_glob_subst='s/\*/\\\*/g' 6591 6592ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6593ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6594ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6595 6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6597$as_echo_n "checking how to print strings... " >&6; } 6598# Test print first, because it will be a builtin if present. 6599if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6600 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6601 ECHO='print -r --' 6602elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6603 ECHO='printf %s\n' 6604else 6605 # Use this function as a fallback that always works. 6606 func_fallback_echo () 6607 { 6608 eval 'cat <<_LTECHO_EOF 6609$1 6610_LTECHO_EOF' 6611 } 6612 ECHO='func_fallback_echo' 6613fi 6614 6615# func_echo_all arg... 6616# Invoke $ECHO with all args, space-separated. 6617func_echo_all () 6618{ 6619 $ECHO "" 6620} 6621 6622case "$ECHO" in 6623 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6624$as_echo "printf" >&6; } ;; 6625 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6626$as_echo "print -r" >&6; } ;; 6627 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6628$as_echo "cat" >&6; } ;; 6629esac 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6645$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6646if ${ac_cv_path_SED+:} false; then : 6647 $as_echo_n "(cached) " >&6 6648else 6649 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6650 for ac_i in 1 2 3 4 5 6 7; do 6651 ac_script="$ac_script$as_nl$ac_script" 6652 done 6653 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6654 { ac_script=; unset ac_script;} 6655 if test -z "$SED"; then 6656 ac_path_SED_found=false 6657 # Loop through the user's path and test for each of PROGNAME-LIST 6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6659for as_dir in $PATH 6660do 6661 IFS=$as_save_IFS 6662 test -z "$as_dir" && as_dir=. 6663 for ac_prog in sed gsed; do 6664 for ac_exec_ext in '' $ac_executable_extensions; do 6665 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6666 as_fn_executable_p "$ac_path_SED" || continue 6667# Check for GNU ac_path_SED and select it if it is found. 6668 # Check for GNU $ac_path_SED 6669case `"$ac_path_SED" --version 2>&1` in 6670*GNU*) 6671 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6672*) 6673 ac_count=0 6674 $as_echo_n 0123456789 >"conftest.in" 6675 while : 6676 do 6677 cat "conftest.in" "conftest.in" >"conftest.tmp" 6678 mv "conftest.tmp" "conftest.in" 6679 cp "conftest.in" "conftest.nl" 6680 $as_echo '' >> "conftest.nl" 6681 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6683 as_fn_arith $ac_count + 1 && ac_count=$as_val 6684 if test $ac_count -gt ${ac_path_SED_max-0}; then 6685 # Best one so far, save it but keep looking for a better one 6686 ac_cv_path_SED="$ac_path_SED" 6687 ac_path_SED_max=$ac_count 6688 fi 6689 # 10*(2^10) chars as input seems more than enough 6690 test $ac_count -gt 10 && break 6691 done 6692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6693esac 6694 6695 $ac_path_SED_found && break 3 6696 done 6697 done 6698 done 6699IFS=$as_save_IFS 6700 if test -z "$ac_cv_path_SED"; then 6701 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6702 fi 6703else 6704 ac_cv_path_SED=$SED 6705fi 6706 6707fi 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6709$as_echo "$ac_cv_path_SED" >&6; } 6710 SED="$ac_cv_path_SED" 6711 rm -f conftest.sed 6712 6713test -z "$SED" && SED=sed 6714Xsed="$SED -e 1s/^X//" 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6727$as_echo_n "checking for fgrep... " >&6; } 6728if ${ac_cv_path_FGREP+:} false; then : 6729 $as_echo_n "(cached) " >&6 6730else 6731 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6732 then ac_cv_path_FGREP="$GREP -F" 6733 else 6734 if test -z "$FGREP"; then 6735 ac_path_FGREP_found=false 6736 # Loop through the user's path and test for each of PROGNAME-LIST 6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6738for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6739do 6740 IFS=$as_save_IFS 6741 test -z "$as_dir" && as_dir=. 6742 for ac_prog in fgrep; do 6743 for ac_exec_ext in '' $ac_executable_extensions; do 6744 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6745 as_fn_executable_p "$ac_path_FGREP" || continue 6746# Check for GNU ac_path_FGREP and select it if it is found. 6747 # Check for GNU $ac_path_FGREP 6748case `"$ac_path_FGREP" --version 2>&1` in 6749*GNU*) 6750 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6751*) 6752 ac_count=0 6753 $as_echo_n 0123456789 >"conftest.in" 6754 while : 6755 do 6756 cat "conftest.in" "conftest.in" >"conftest.tmp" 6757 mv "conftest.tmp" "conftest.in" 6758 cp "conftest.in" "conftest.nl" 6759 $as_echo 'FGREP' >> "conftest.nl" 6760 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6762 as_fn_arith $ac_count + 1 && ac_count=$as_val 6763 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6764 # Best one so far, save it but keep looking for a better one 6765 ac_cv_path_FGREP="$ac_path_FGREP" 6766 ac_path_FGREP_max=$ac_count 6767 fi 6768 # 10*(2^10) chars as input seems more than enough 6769 test $ac_count -gt 10 && break 6770 done 6771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6772esac 6773 6774 $ac_path_FGREP_found && break 3 6775 done 6776 done 6777 done 6778IFS=$as_save_IFS 6779 if test -z "$ac_cv_path_FGREP"; then 6780 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6781 fi 6782else 6783 ac_cv_path_FGREP=$FGREP 6784fi 6785 6786 fi 6787fi 6788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6789$as_echo "$ac_cv_path_FGREP" >&6; } 6790 FGREP="$ac_cv_path_FGREP" 6791 6792 6793test -z "$GREP" && GREP=grep 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813# Check whether --with-gnu-ld was given. 6814if test "${with_gnu_ld+set}" = set; then : 6815 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6816else 6817 with_gnu_ld=no 6818fi 6819 6820ac_prog=ld 6821if test "$GCC" = yes; then 6822 # Check if gcc -print-prog-name=ld gives a path. 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6824$as_echo_n "checking for ld used by $CC... " >&6; } 6825 case $host in 6826 *-*-mingw*) 6827 # gcc leaves a trailing carriage return which upsets mingw 6828 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6829 *) 6830 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6831 esac 6832 case $ac_prog in 6833 # Accept absolute paths. 6834 [\\/]* | ?:[\\/]*) 6835 re_direlt='/[^/][^/]*/\.\./' 6836 # Canonicalize the pathname of ld 6837 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6838 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6839 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6840 done 6841 test -z "$LD" && LD="$ac_prog" 6842 ;; 6843 "") 6844 # If it fails, then pretend we aren't using GCC. 6845 ac_prog=ld 6846 ;; 6847 *) 6848 # If it is relative, then search for the first ld in PATH. 6849 with_gnu_ld=unknown 6850 ;; 6851 esac 6852elif test "$with_gnu_ld" = yes; then 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6854$as_echo_n "checking for GNU ld... " >&6; } 6855else 6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6857$as_echo_n "checking for non-GNU ld... " >&6; } 6858fi 6859if ${lt_cv_path_LD+:} false; then : 6860 $as_echo_n "(cached) " >&6 6861else 6862 if test -z "$LD"; then 6863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6864 for ac_dir in $PATH; do 6865 IFS="$lt_save_ifs" 6866 test -z "$ac_dir" && ac_dir=. 6867 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6868 lt_cv_path_LD="$ac_dir/$ac_prog" 6869 # Check to see if the program is GNU ld. I'd rather use --version, 6870 # but apparently some variants of GNU ld only accept -v. 6871 # Break only if it was the GNU/non-GNU ld that we prefer. 6872 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6873 *GNU* | *'with BFD'*) 6874 test "$with_gnu_ld" != no && break 6875 ;; 6876 *) 6877 test "$with_gnu_ld" != yes && break 6878 ;; 6879 esac 6880 fi 6881 done 6882 IFS="$lt_save_ifs" 6883else 6884 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6885fi 6886fi 6887 6888LD="$lt_cv_path_LD" 6889if test -n "$LD"; then 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6891$as_echo "$LD" >&6; } 6892else 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6894$as_echo "no" >&6; } 6895fi 6896test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6898$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6899if ${lt_cv_prog_gnu_ld+:} false; then : 6900 $as_echo_n "(cached) " >&6 6901else 6902 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6903case `$LD -v 2>&1 </dev/null` in 6904*GNU* | *'with BFD'*) 6905 lt_cv_prog_gnu_ld=yes 6906 ;; 6907*) 6908 lt_cv_prog_gnu_ld=no 6909 ;; 6910esac 6911fi 6912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6913$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6914with_gnu_ld=$lt_cv_prog_gnu_ld 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6925$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6926if ${lt_cv_path_NM+:} false; then : 6927 $as_echo_n "(cached) " >&6 6928else 6929 if test -n "$NM"; then 6930 # Let the user override the test. 6931 lt_cv_path_NM="$NM" 6932else 6933 lt_nm_to_check="${ac_tool_prefix}nm" 6934 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6935 lt_nm_to_check="$lt_nm_to_check nm" 6936 fi 6937 for lt_tmp_nm in $lt_nm_to_check; do 6938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6939 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6940 IFS="$lt_save_ifs" 6941 test -z "$ac_dir" && ac_dir=. 6942 tmp_nm="$ac_dir/$lt_tmp_nm" 6943 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6944 # Check to see if the nm accepts a BSD-compat flag. 6945 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6946 # nm: unknown option "B" ignored 6947 # Tru64's nm complains that /dev/null is an invalid object file 6948 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6949 */dev/null* | *'Invalid file or object type'*) 6950 lt_cv_path_NM="$tmp_nm -B" 6951 break 6952 ;; 6953 *) 6954 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6955 */dev/null*) 6956 lt_cv_path_NM="$tmp_nm -p" 6957 break 6958 ;; 6959 *) 6960 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6961 continue # so that we can try to find one that supports BSD flags 6962 ;; 6963 esac 6964 ;; 6965 esac 6966 fi 6967 done 6968 IFS="$lt_save_ifs" 6969 done 6970 : ${lt_cv_path_NM=no} 6971fi 6972fi 6973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6974$as_echo "$lt_cv_path_NM" >&6; } 6975if test "$lt_cv_path_NM" != "no"; then 6976 NM="$lt_cv_path_NM" 6977else 6978 # Didn't find any BSD compatible name lister, look for dumpbin. 6979 if test -n "$DUMPBIN"; then : 6980 # Let the user override the test. 6981 else 6982 if test -n "$ac_tool_prefix"; then 6983 for ac_prog in dumpbin "link -dump" 6984 do 6985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6986set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6988$as_echo_n "checking for $ac_word... " >&6; } 6989if ${ac_cv_prog_DUMPBIN+:} false; then : 6990 $as_echo_n "(cached) " >&6 6991else 6992 if test -n "$DUMPBIN"; then 6993 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6994else 6995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6996for as_dir in $PATH 6997do 6998 IFS=$as_save_IFS 6999 test -z "$as_dir" && as_dir=. 7000 for ac_exec_ext in '' $ac_executable_extensions; do 7001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7002 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7004 break 2 7005 fi 7006done 7007 done 7008IFS=$as_save_IFS 7009 7010fi 7011fi 7012DUMPBIN=$ac_cv_prog_DUMPBIN 7013if test -n "$DUMPBIN"; then 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7015$as_echo "$DUMPBIN" >&6; } 7016else 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7018$as_echo "no" >&6; } 7019fi 7020 7021 7022 test -n "$DUMPBIN" && break 7023 done 7024fi 7025if test -z "$DUMPBIN"; then 7026 ac_ct_DUMPBIN=$DUMPBIN 7027 for ac_prog in dumpbin "link -dump" 7028do 7029 # Extract the first word of "$ac_prog", so it can be a program name with args. 7030set dummy $ac_prog; ac_word=$2 7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7032$as_echo_n "checking for $ac_word... " >&6; } 7033if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7034 $as_echo_n "(cached) " >&6 7035else 7036 if test -n "$ac_ct_DUMPBIN"; then 7037 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7038else 7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7040for as_dir in $PATH 7041do 7042 IFS=$as_save_IFS 7043 test -z "$as_dir" && as_dir=. 7044 for ac_exec_ext in '' $ac_executable_extensions; do 7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7046 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7048 break 2 7049 fi 7050done 7051 done 7052IFS=$as_save_IFS 7053 7054fi 7055fi 7056ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7057if test -n "$ac_ct_DUMPBIN"; then 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7059$as_echo "$ac_ct_DUMPBIN" >&6; } 7060else 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7062$as_echo "no" >&6; } 7063fi 7064 7065 7066 test -n "$ac_ct_DUMPBIN" && break 7067done 7068 7069 if test "x$ac_ct_DUMPBIN" = x; then 7070 DUMPBIN=":" 7071 else 7072 case $cross_compiling:$ac_tool_warned in 7073yes:) 7074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7076ac_tool_warned=yes ;; 7077esac 7078 DUMPBIN=$ac_ct_DUMPBIN 7079 fi 7080fi 7081 7082 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7083 *COFF*) 7084 DUMPBIN="$DUMPBIN -symbols" 7085 ;; 7086 *) 7087 DUMPBIN=: 7088 ;; 7089 esac 7090 fi 7091 7092 if test "$DUMPBIN" != ":"; then 7093 NM="$DUMPBIN" 7094 fi 7095fi 7096test -z "$NM" && NM=nm 7097 7098 7099 7100 7101 7102 7103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7104$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7105if ${lt_cv_nm_interface+:} false; then : 7106 $as_echo_n "(cached) " >&6 7107else 7108 lt_cv_nm_interface="BSD nm" 7109 echo "int some_variable = 0;" > conftest.$ac_ext 7110 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7111 (eval "$ac_compile" 2>conftest.err) 7112 cat conftest.err >&5 7113 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7114 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7115 cat conftest.err >&5 7116 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7117 cat conftest.out >&5 7118 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7119 lt_cv_nm_interface="MS dumpbin" 7120 fi 7121 rm -f conftest* 7122fi 7123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7124$as_echo "$lt_cv_nm_interface" >&6; } 7125 7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7127$as_echo_n "checking whether ln -s works... " >&6; } 7128LN_S=$as_ln_s 7129if test "$LN_S" = "ln -s"; then 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7131$as_echo "yes" >&6; } 7132else 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7134$as_echo "no, using $LN_S" >&6; } 7135fi 7136 7137# find the maximum length of command line arguments 7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7139$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7140if ${lt_cv_sys_max_cmd_len+:} false; then : 7141 $as_echo_n "(cached) " >&6 7142else 7143 i=0 7144 teststring="ABCD" 7145 7146 case $build_os in 7147 msdosdjgpp*) 7148 # On DJGPP, this test can blow up pretty badly due to problems in libc 7149 # (any single argument exceeding 2000 bytes causes a buffer overrun 7150 # during glob expansion). Even if it were fixed, the result of this 7151 # check would be larger than it should be. 7152 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7153 ;; 7154 7155 gnu*) 7156 # Under GNU Hurd, this test is not required because there is 7157 # no limit to the length of command line arguments. 7158 # Libtool will interpret -1 as no limit whatsoever 7159 lt_cv_sys_max_cmd_len=-1; 7160 ;; 7161 7162 cygwin* | mingw* | cegcc*) 7163 # On Win9x/ME, this test blows up -- it succeeds, but takes 7164 # about 5 minutes as the teststring grows exponentially. 7165 # Worse, since 9x/ME are not pre-emptively multitasking, 7166 # you end up with a "frozen" computer, even though with patience 7167 # the test eventually succeeds (with a max line length of 256k). 7168 # Instead, let's just punt: use the minimum linelength reported by 7169 # all of the supported platforms: 8192 (on NT/2K/XP). 7170 lt_cv_sys_max_cmd_len=8192; 7171 ;; 7172 7173 mint*) 7174 # On MiNT this can take a long time and run out of memory. 7175 lt_cv_sys_max_cmd_len=8192; 7176 ;; 7177 7178 amigaos*) 7179 # On AmigaOS with pdksh, this test takes hours, literally. 7180 # So we just punt and use a minimum line length of 8192. 7181 lt_cv_sys_max_cmd_len=8192; 7182 ;; 7183 7184 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7185 # This has been around since 386BSD, at least. Likely further. 7186 if test -x /sbin/sysctl; then 7187 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7188 elif test -x /usr/sbin/sysctl; then 7189 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7190 else 7191 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7192 fi 7193 # And add a safety zone 7194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7195 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7196 ;; 7197 7198 interix*) 7199 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7200 lt_cv_sys_max_cmd_len=196608 7201 ;; 7202 7203 os2*) 7204 # The test takes a long time on OS/2. 7205 lt_cv_sys_max_cmd_len=8192 7206 ;; 7207 7208 osf*) 7209 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7210 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7211 # nice to cause kernel panics so lets avoid the loop below. 7212 # First set a reasonable default. 7213 lt_cv_sys_max_cmd_len=16384 7214 # 7215 if test -x /sbin/sysconfig; then 7216 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7217 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7218 esac 7219 fi 7220 ;; 7221 sco3.2v5*) 7222 lt_cv_sys_max_cmd_len=102400 7223 ;; 7224 sysv5* | sco5v6* | sysv4.2uw2*) 7225 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7226 if test -n "$kargmax"; then 7227 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7228 else 7229 lt_cv_sys_max_cmd_len=32768 7230 fi 7231 ;; 7232 *) 7233 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7234 if test -n "$lt_cv_sys_max_cmd_len"; then 7235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7237 else 7238 # Make teststring a little bigger before we do anything with it. 7239 # a 1K string should be a reasonable start. 7240 for i in 1 2 3 4 5 6 7 8 ; do 7241 teststring=$teststring$teststring 7242 done 7243 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7244 # If test is not a shell built-in, we'll probably end up computing a 7245 # maximum length that is only half of the actual maximum length, but 7246 # we can't tell. 7247 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 7248 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7249 test $i != 17 # 1/2 MB should be enough 7250 do 7251 i=`expr $i + 1` 7252 teststring=$teststring$teststring 7253 done 7254 # Only check the string length outside the loop. 7255 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7256 teststring= 7257 # Add a significant safety factor because C++ compilers can tack on 7258 # massive amounts of additional arguments before passing them to the 7259 # linker. It appears as though 1/2 is a usable value. 7260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7261 fi 7262 ;; 7263 esac 7264 7265fi 7266 7267if test -n $lt_cv_sys_max_cmd_len ; then 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7269$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7270else 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7272$as_echo "none" >&6; } 7273fi 7274max_cmd_len=$lt_cv_sys_max_cmd_len 7275 7276 7277 7278 7279 7280 7281: ${CP="cp -f"} 7282: ${MV="mv -f"} 7283: ${RM="rm -f"} 7284 7285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7286$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7287# Try some XSI features 7288xsi_shell=no 7289( _lt_dummy="a/b/c" 7290 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7291 = c,a/b,b/c, \ 7292 && eval 'test $(( 1 + 1 )) -eq 2 \ 7293 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7294 && xsi_shell=yes 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7296$as_echo "$xsi_shell" >&6; } 7297 7298 7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7300$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7301lt_shell_append=no 7302( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7303 >/dev/null 2>&1 \ 7304 && lt_shell_append=yes 7305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7306$as_echo "$lt_shell_append" >&6; } 7307 7308 7309if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7310 lt_unset=unset 7311else 7312 lt_unset=false 7313fi 7314 7315 7316 7317 7318 7319# test EBCDIC or ASCII 7320case `echo X|tr X '\101'` in 7321 A) # ASCII based system 7322 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7323 lt_SP2NL='tr \040 \012' 7324 lt_NL2SP='tr \015\012 \040\040' 7325 ;; 7326 *) # EBCDIC based system 7327 lt_SP2NL='tr \100 \n' 7328 lt_NL2SP='tr \r\n \100\100' 7329 ;; 7330esac 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7341$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7342if ${lt_cv_to_host_file_cmd+:} false; then : 7343 $as_echo_n "(cached) " >&6 7344else 7345 case $host in 7346 *-*-mingw* ) 7347 case $build in 7348 *-*-mingw* ) # actually msys 7349 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7350 ;; 7351 *-*-cygwin* ) 7352 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7353 ;; 7354 * ) # otherwise, assume *nix 7355 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7356 ;; 7357 esac 7358 ;; 7359 *-*-cygwin* ) 7360 case $build in 7361 *-*-mingw* ) # actually msys 7362 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7363 ;; 7364 *-*-cygwin* ) 7365 lt_cv_to_host_file_cmd=func_convert_file_noop 7366 ;; 7367 * ) # otherwise, assume *nix 7368 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7369 ;; 7370 esac 7371 ;; 7372 * ) # unhandled hosts (and "normal" native builds) 7373 lt_cv_to_host_file_cmd=func_convert_file_noop 7374 ;; 7375esac 7376 7377fi 7378 7379to_host_file_cmd=$lt_cv_to_host_file_cmd 7380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7381$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7382 7383 7384 7385 7386 7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7388$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7389if ${lt_cv_to_tool_file_cmd+:} false; then : 7390 $as_echo_n "(cached) " >&6 7391else 7392 #assume ordinary cross tools, or native build. 7393lt_cv_to_tool_file_cmd=func_convert_file_noop 7394case $host in 7395 *-*-mingw* ) 7396 case $build in 7397 *-*-mingw* ) # actually msys 7398 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7399 ;; 7400 esac 7401 ;; 7402esac 7403 7404fi 7405 7406to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7408$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7409 7410 7411 7412 7413 7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7415$as_echo_n "checking for $LD option to reload object files... " >&6; } 7416if ${lt_cv_ld_reload_flag+:} false; then : 7417 $as_echo_n "(cached) " >&6 7418else 7419 lt_cv_ld_reload_flag='-r' 7420fi 7421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7422$as_echo "$lt_cv_ld_reload_flag" >&6; } 7423reload_flag=$lt_cv_ld_reload_flag 7424case $reload_flag in 7425"" | " "*) ;; 7426*) reload_flag=" $reload_flag" ;; 7427esac 7428reload_cmds='$LD$reload_flag -o $output$reload_objs' 7429case $host_os in 7430 cygwin* | mingw* | pw32* | cegcc*) 7431 if test "$GCC" != yes; then 7432 reload_cmds=false 7433 fi 7434 ;; 7435 darwin*) 7436 if test "$GCC" = yes; then 7437 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7438 else 7439 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7440 fi 7441 ;; 7442esac 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452if test -n "$ac_tool_prefix"; then 7453 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7454set dummy ${ac_tool_prefix}objdump; ac_word=$2 7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7456$as_echo_n "checking for $ac_word... " >&6; } 7457if ${ac_cv_prog_OBJDUMP+:} false; then : 7458 $as_echo_n "(cached) " >&6 7459else 7460 if test -n "$OBJDUMP"; then 7461 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7462else 7463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7464for as_dir in $PATH 7465do 7466 IFS=$as_save_IFS 7467 test -z "$as_dir" && as_dir=. 7468 for ac_exec_ext in '' $ac_executable_extensions; do 7469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7470 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7472 break 2 7473 fi 7474done 7475 done 7476IFS=$as_save_IFS 7477 7478fi 7479fi 7480OBJDUMP=$ac_cv_prog_OBJDUMP 7481if test -n "$OBJDUMP"; then 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7483$as_echo "$OBJDUMP" >&6; } 7484else 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7486$as_echo "no" >&6; } 7487fi 7488 7489 7490fi 7491if test -z "$ac_cv_prog_OBJDUMP"; then 7492 ac_ct_OBJDUMP=$OBJDUMP 7493 # Extract the first word of "objdump", so it can be a program name with args. 7494set dummy objdump; ac_word=$2 7495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7496$as_echo_n "checking for $ac_word... " >&6; } 7497if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7498 $as_echo_n "(cached) " >&6 7499else 7500 if test -n "$ac_ct_OBJDUMP"; then 7501 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7502else 7503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7504for as_dir in $PATH 7505do 7506 IFS=$as_save_IFS 7507 test -z "$as_dir" && as_dir=. 7508 for ac_exec_ext in '' $ac_executable_extensions; do 7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7510 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7512 break 2 7513 fi 7514done 7515 done 7516IFS=$as_save_IFS 7517 7518fi 7519fi 7520ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7521if test -n "$ac_ct_OBJDUMP"; then 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7523$as_echo "$ac_ct_OBJDUMP" >&6; } 7524else 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7526$as_echo "no" >&6; } 7527fi 7528 7529 if test "x$ac_ct_OBJDUMP" = x; then 7530 OBJDUMP="false" 7531 else 7532 case $cross_compiling:$ac_tool_warned in 7533yes:) 7534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7536ac_tool_warned=yes ;; 7537esac 7538 OBJDUMP=$ac_ct_OBJDUMP 7539 fi 7540else 7541 OBJDUMP="$ac_cv_prog_OBJDUMP" 7542fi 7543 7544test -z "$OBJDUMP" && OBJDUMP=objdump 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7555$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7556if ${lt_cv_deplibs_check_method+:} false; then : 7557 $as_echo_n "(cached) " >&6 7558else 7559 lt_cv_file_magic_cmd='$MAGIC_CMD' 7560lt_cv_file_magic_test_file= 7561lt_cv_deplibs_check_method='unknown' 7562# Need to set the preceding variable on all platforms that support 7563# interlibrary dependencies. 7564# 'none' -- dependencies not supported. 7565# `unknown' -- same as none, but documents that we really don't know. 7566# 'pass_all' -- all dependencies passed with no checks. 7567# 'test_compile' -- check by making test program. 7568# 'file_magic [[regex]]' -- check by looking for files in library path 7569# which responds to the $file_magic_cmd with a given extended regex. 7570# If you have `file' or equivalent on your system and you're not sure 7571# whether `pass_all' will *always* work, you probably want this one. 7572 7573case $host_os in 7574aix[4-9]*) 7575 lt_cv_deplibs_check_method=pass_all 7576 ;; 7577 7578beos*) 7579 lt_cv_deplibs_check_method=pass_all 7580 ;; 7581 7582bsdi[45]*) 7583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7584 lt_cv_file_magic_cmd='/usr/bin/file -L' 7585 lt_cv_file_magic_test_file=/shlib/libc.so 7586 ;; 7587 7588cygwin*) 7589 # func_win32_libid is a shell function defined in ltmain.sh 7590 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7591 lt_cv_file_magic_cmd='func_win32_libid' 7592 ;; 7593 7594mingw* | pw32*) 7595 # Base MSYS/MinGW do not provide the 'file' command needed by 7596 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7597 # unless we find 'file', for example because we are cross-compiling. 7598 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7599 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7600 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7601 lt_cv_file_magic_cmd='func_win32_libid' 7602 else 7603 # Keep this pattern in sync with the one in func_win32_libid. 7604 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7605 lt_cv_file_magic_cmd='$OBJDUMP -f' 7606 fi 7607 ;; 7608 7609cegcc*) 7610 # use the weaker test based on 'objdump'. See mingw*. 7611 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7612 lt_cv_file_magic_cmd='$OBJDUMP -f' 7613 ;; 7614 7615darwin* | rhapsody*) 7616 lt_cv_deplibs_check_method=pass_all 7617 ;; 7618 7619freebsd* | dragonfly*) 7620 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7621 case $host_cpu in 7622 i*86 ) 7623 # Not sure whether the presence of OpenBSD here was a mistake. 7624 # Let's accept both of them until this is cleared up. 7625 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7626 lt_cv_file_magic_cmd=/usr/bin/file 7627 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7628 ;; 7629 esac 7630 else 7631 lt_cv_deplibs_check_method=pass_all 7632 fi 7633 ;; 7634 7635gnu*) 7636 lt_cv_deplibs_check_method=pass_all 7637 ;; 7638 7639haiku*) 7640 lt_cv_deplibs_check_method=pass_all 7641 ;; 7642 7643hpux10.20* | hpux11*) 7644 lt_cv_file_magic_cmd=/usr/bin/file 7645 case $host_cpu in 7646 ia64*) 7647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7648 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7649 ;; 7650 hppa*64*) 7651 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]' 7652 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7653 ;; 7654 *) 7655 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7656 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7657 ;; 7658 esac 7659 ;; 7660 7661interix[3-9]*) 7662 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7664 ;; 7665 7666irix5* | irix6* | nonstopux*) 7667 case $LD in 7668 *-32|*"-32 ") libmagic=32-bit;; 7669 *-n32|*"-n32 ") libmagic=N32;; 7670 *-64|*"-64 ") libmagic=64-bit;; 7671 *) libmagic=never-match;; 7672 esac 7673 lt_cv_deplibs_check_method=pass_all 7674 ;; 7675 7676# This must be glibc/ELF. 7677linux* | k*bsd*-gnu | kopensolaris*-gnu) 7678 lt_cv_deplibs_check_method=pass_all 7679 ;; 7680 7681netbsd*) 7682 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7684 else 7685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7686 fi 7687 ;; 7688 7689newos6*) 7690 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7691 lt_cv_file_magic_cmd=/usr/bin/file 7692 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7693 ;; 7694 7695*nto* | *qnx*) 7696 lt_cv_deplibs_check_method=pass_all 7697 ;; 7698 7699openbsd*) 7700 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7702 else 7703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7704 fi 7705 ;; 7706 7707osf3* | osf4* | osf5*) 7708 lt_cv_deplibs_check_method=pass_all 7709 ;; 7710 7711rdos*) 7712 lt_cv_deplibs_check_method=pass_all 7713 ;; 7714 7715solaris*) 7716 lt_cv_deplibs_check_method=pass_all 7717 ;; 7718 7719sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7720 lt_cv_deplibs_check_method=pass_all 7721 ;; 7722 7723sysv4 | sysv4.3*) 7724 case $host_vendor in 7725 motorola) 7726 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]' 7727 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7728 ;; 7729 ncr) 7730 lt_cv_deplibs_check_method=pass_all 7731 ;; 7732 sequent) 7733 lt_cv_file_magic_cmd='/bin/file' 7734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7735 ;; 7736 sni) 7737 lt_cv_file_magic_cmd='/bin/file' 7738 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7739 lt_cv_file_magic_test_file=/lib/libc.so 7740 ;; 7741 siemens) 7742 lt_cv_deplibs_check_method=pass_all 7743 ;; 7744 pc) 7745 lt_cv_deplibs_check_method=pass_all 7746 ;; 7747 esac 7748 ;; 7749 7750tpf*) 7751 lt_cv_deplibs_check_method=pass_all 7752 ;; 7753esac 7754 7755fi 7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7757$as_echo "$lt_cv_deplibs_check_method" >&6; } 7758 7759file_magic_glob= 7760want_nocaseglob=no 7761if test "$build" = "$host"; then 7762 case $host_os in 7763 mingw* | pw32*) 7764 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7765 want_nocaseglob=yes 7766 else 7767 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7768 fi 7769 ;; 7770 esac 7771fi 7772 7773file_magic_cmd=$lt_cv_file_magic_cmd 7774deplibs_check_method=$lt_cv_deplibs_check_method 7775test -z "$deplibs_check_method" && deplibs_check_method=unknown 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798if test -n "$ac_tool_prefix"; then 7799 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7800set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7802$as_echo_n "checking for $ac_word... " >&6; } 7803if ${ac_cv_prog_DLLTOOL+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805else 7806 if test -n "$DLLTOOL"; then 7807 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7808else 7809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7810for as_dir in $PATH 7811do 7812 IFS=$as_save_IFS 7813 test -z "$as_dir" && as_dir=. 7814 for ac_exec_ext in '' $ac_executable_extensions; do 7815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7816 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7818 break 2 7819 fi 7820done 7821 done 7822IFS=$as_save_IFS 7823 7824fi 7825fi 7826DLLTOOL=$ac_cv_prog_DLLTOOL 7827if test -n "$DLLTOOL"; then 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7829$as_echo "$DLLTOOL" >&6; } 7830else 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7832$as_echo "no" >&6; } 7833fi 7834 7835 7836fi 7837if test -z "$ac_cv_prog_DLLTOOL"; then 7838 ac_ct_DLLTOOL=$DLLTOOL 7839 # Extract the first word of "dlltool", so it can be a program name with args. 7840set dummy dlltool; ac_word=$2 7841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7842$as_echo_n "checking for $ac_word... " >&6; } 7843if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7844 $as_echo_n "(cached) " >&6 7845else 7846 if test -n "$ac_ct_DLLTOOL"; then 7847 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7848else 7849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7850for as_dir in $PATH 7851do 7852 IFS=$as_save_IFS 7853 test -z "$as_dir" && as_dir=. 7854 for ac_exec_ext in '' $ac_executable_extensions; do 7855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7856 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7858 break 2 7859 fi 7860done 7861 done 7862IFS=$as_save_IFS 7863 7864fi 7865fi 7866ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7867if test -n "$ac_ct_DLLTOOL"; then 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7869$as_echo "$ac_ct_DLLTOOL" >&6; } 7870else 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7872$as_echo "no" >&6; } 7873fi 7874 7875 if test "x$ac_ct_DLLTOOL" = x; then 7876 DLLTOOL="false" 7877 else 7878 case $cross_compiling:$ac_tool_warned in 7879yes:) 7880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7882ac_tool_warned=yes ;; 7883esac 7884 DLLTOOL=$ac_ct_DLLTOOL 7885 fi 7886else 7887 DLLTOOL="$ac_cv_prog_DLLTOOL" 7888fi 7889 7890test -z "$DLLTOOL" && DLLTOOL=dlltool 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7902$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7903if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7904 $as_echo_n "(cached) " >&6 7905else 7906 lt_cv_sharedlib_from_linklib_cmd='unknown' 7907 7908case $host_os in 7909cygwin* | mingw* | pw32* | cegcc*) 7910 # two different shell functions defined in ltmain.sh 7911 # decide which to use based on capabilities of $DLLTOOL 7912 case `$DLLTOOL --help 2>&1` in 7913 *--identify-strict*) 7914 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7915 ;; 7916 *) 7917 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7918 ;; 7919 esac 7920 ;; 7921*) 7922 # fallback: assume linklib IS sharedlib 7923 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 7924 ;; 7925esac 7926 7927fi 7928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7929$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7930sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7931test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7932 7933 7934 7935 7936 7937 7938 7939if test -n "$ac_tool_prefix"; then 7940 for ac_prog in ar 7941 do 7942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7943set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7945$as_echo_n "checking for $ac_word... " >&6; } 7946if ${ac_cv_prog_AR+:} false; then : 7947 $as_echo_n "(cached) " >&6 7948else 7949 if test -n "$AR"; then 7950 ac_cv_prog_AR="$AR" # Let the user override the test. 7951else 7952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7953for as_dir in $PATH 7954do 7955 IFS=$as_save_IFS 7956 test -z "$as_dir" && as_dir=. 7957 for ac_exec_ext in '' $ac_executable_extensions; do 7958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7959 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7961 break 2 7962 fi 7963done 7964 done 7965IFS=$as_save_IFS 7966 7967fi 7968fi 7969AR=$ac_cv_prog_AR 7970if test -n "$AR"; then 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7972$as_echo "$AR" >&6; } 7973else 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7975$as_echo "no" >&6; } 7976fi 7977 7978 7979 test -n "$AR" && break 7980 done 7981fi 7982if test -z "$AR"; then 7983 ac_ct_AR=$AR 7984 for ac_prog in ar 7985do 7986 # Extract the first word of "$ac_prog", so it can be a program name with args. 7987set dummy $ac_prog; ac_word=$2 7988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7989$as_echo_n "checking for $ac_word... " >&6; } 7990if ${ac_cv_prog_ac_ct_AR+:} false; then : 7991 $as_echo_n "(cached) " >&6 7992else 7993 if test -n "$ac_ct_AR"; then 7994 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7995else 7996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7997for as_dir in $PATH 7998do 7999 IFS=$as_save_IFS 8000 test -z "$as_dir" && as_dir=. 8001 for ac_exec_ext in '' $ac_executable_extensions; do 8002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8003 ac_cv_prog_ac_ct_AR="$ac_prog" 8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8005 break 2 8006 fi 8007done 8008 done 8009IFS=$as_save_IFS 8010 8011fi 8012fi 8013ac_ct_AR=$ac_cv_prog_ac_ct_AR 8014if test -n "$ac_ct_AR"; then 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8016$as_echo "$ac_ct_AR" >&6; } 8017else 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8019$as_echo "no" >&6; } 8020fi 8021 8022 8023 test -n "$ac_ct_AR" && break 8024done 8025 8026 if test "x$ac_ct_AR" = x; then 8027 AR="false" 8028 else 8029 case $cross_compiling:$ac_tool_warned in 8030yes:) 8031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8033ac_tool_warned=yes ;; 8034esac 8035 AR=$ac_ct_AR 8036 fi 8037fi 8038 8039: ${AR=ar} 8040: ${AR_FLAGS=cru} 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8053$as_echo_n "checking for archiver @FILE support... " >&6; } 8054if ${lt_cv_ar_at_file+:} false; then : 8055 $as_echo_n "(cached) " >&6 8056else 8057 lt_cv_ar_at_file=no 8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8059/* end confdefs.h. */ 8060 8061int 8062main () 8063{ 8064 8065 ; 8066 return 0; 8067} 8068_ACEOF 8069if ac_fn_c_try_compile "$LINENO"; then : 8070 echo conftest.$ac_objext > conftest.lst 8071 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8073 (eval $lt_ar_try) 2>&5 8074 ac_status=$? 8075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8076 test $ac_status = 0; } 8077 if test "$ac_status" -eq 0; then 8078 # Ensure the archiver fails upon bogus file names. 8079 rm -f conftest.$ac_objext libconftest.a 8080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8081 (eval $lt_ar_try) 2>&5 8082 ac_status=$? 8083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8084 test $ac_status = 0; } 8085 if test "$ac_status" -ne 0; then 8086 lt_cv_ar_at_file=@ 8087 fi 8088 fi 8089 rm -f conftest.* libconftest.a 8090 8091fi 8092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8093 8094fi 8095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8096$as_echo "$lt_cv_ar_at_file" >&6; } 8097 8098if test "x$lt_cv_ar_at_file" = xno; then 8099 archiver_list_spec= 8100else 8101 archiver_list_spec=$lt_cv_ar_at_file 8102fi 8103 8104 8105 8106 8107 8108 8109 8110if test -n "$ac_tool_prefix"; then 8111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8112set dummy ${ac_tool_prefix}strip; ac_word=$2 8113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8114$as_echo_n "checking for $ac_word... " >&6; } 8115if ${ac_cv_prog_STRIP+:} false; then : 8116 $as_echo_n "(cached) " >&6 8117else 8118 if test -n "$STRIP"; then 8119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8120else 8121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8122for as_dir in $PATH 8123do 8124 IFS=$as_save_IFS 8125 test -z "$as_dir" && as_dir=. 8126 for ac_exec_ext in '' $ac_executable_extensions; do 8127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8128 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8130 break 2 8131 fi 8132done 8133 done 8134IFS=$as_save_IFS 8135 8136fi 8137fi 8138STRIP=$ac_cv_prog_STRIP 8139if test -n "$STRIP"; then 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8141$as_echo "$STRIP" >&6; } 8142else 8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8144$as_echo "no" >&6; } 8145fi 8146 8147 8148fi 8149if test -z "$ac_cv_prog_STRIP"; then 8150 ac_ct_STRIP=$STRIP 8151 # Extract the first word of "strip", so it can be a program name with args. 8152set dummy strip; ac_word=$2 8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8154$as_echo_n "checking for $ac_word... " >&6; } 8155if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8156 $as_echo_n "(cached) " >&6 8157else 8158 if test -n "$ac_ct_STRIP"; then 8159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8160else 8161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8162for as_dir in $PATH 8163do 8164 IFS=$as_save_IFS 8165 test -z "$as_dir" && as_dir=. 8166 for ac_exec_ext in '' $ac_executable_extensions; do 8167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8168 ac_cv_prog_ac_ct_STRIP="strip" 8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8170 break 2 8171 fi 8172done 8173 done 8174IFS=$as_save_IFS 8175 8176fi 8177fi 8178ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8179if test -n "$ac_ct_STRIP"; then 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8181$as_echo "$ac_ct_STRIP" >&6; } 8182else 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8184$as_echo "no" >&6; } 8185fi 8186 8187 if test "x$ac_ct_STRIP" = x; then 8188 STRIP=":" 8189 else 8190 case $cross_compiling:$ac_tool_warned in 8191yes:) 8192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8194ac_tool_warned=yes ;; 8195esac 8196 STRIP=$ac_ct_STRIP 8197 fi 8198else 8199 STRIP="$ac_cv_prog_STRIP" 8200fi 8201 8202test -z "$STRIP" && STRIP=: 8203 8204 8205 8206 8207 8208 8209if test -n "$ac_tool_prefix"; then 8210 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8211set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8213$as_echo_n "checking for $ac_word... " >&6; } 8214if ${ac_cv_prog_RANLIB+:} false; then : 8215 $as_echo_n "(cached) " >&6 8216else 8217 if test -n "$RANLIB"; then 8218 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8219else 8220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8221for as_dir in $PATH 8222do 8223 IFS=$as_save_IFS 8224 test -z "$as_dir" && as_dir=. 8225 for ac_exec_ext in '' $ac_executable_extensions; do 8226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8227 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8229 break 2 8230 fi 8231done 8232 done 8233IFS=$as_save_IFS 8234 8235fi 8236fi 8237RANLIB=$ac_cv_prog_RANLIB 8238if test -n "$RANLIB"; then 8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8240$as_echo "$RANLIB" >&6; } 8241else 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8243$as_echo "no" >&6; } 8244fi 8245 8246 8247fi 8248if test -z "$ac_cv_prog_RANLIB"; then 8249 ac_ct_RANLIB=$RANLIB 8250 # Extract the first word of "ranlib", so it can be a program name with args. 8251set dummy ranlib; ac_word=$2 8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8253$as_echo_n "checking for $ac_word... " >&6; } 8254if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8255 $as_echo_n "(cached) " >&6 8256else 8257 if test -n "$ac_ct_RANLIB"; then 8258 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8259else 8260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8261for as_dir in $PATH 8262do 8263 IFS=$as_save_IFS 8264 test -z "$as_dir" && as_dir=. 8265 for ac_exec_ext in '' $ac_executable_extensions; do 8266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8267 ac_cv_prog_ac_ct_RANLIB="ranlib" 8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8269 break 2 8270 fi 8271done 8272 done 8273IFS=$as_save_IFS 8274 8275fi 8276fi 8277ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8278if test -n "$ac_ct_RANLIB"; then 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8280$as_echo "$ac_ct_RANLIB" >&6; } 8281else 8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8283$as_echo "no" >&6; } 8284fi 8285 8286 if test "x$ac_ct_RANLIB" = x; then 8287 RANLIB=":" 8288 else 8289 case $cross_compiling:$ac_tool_warned in 8290yes:) 8291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8293ac_tool_warned=yes ;; 8294esac 8295 RANLIB=$ac_ct_RANLIB 8296 fi 8297else 8298 RANLIB="$ac_cv_prog_RANLIB" 8299fi 8300 8301test -z "$RANLIB" && RANLIB=: 8302 8303 8304 8305 8306 8307 8308# Determine commands to create old-style static archives. 8309old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8310old_postinstall_cmds='chmod 644 $oldlib' 8311old_postuninstall_cmds= 8312 8313if test -n "$RANLIB"; then 8314 case $host_os in 8315 openbsd*) 8316 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8317 ;; 8318 *) 8319 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8320 ;; 8321 esac 8322 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8323fi 8324 8325case $host_os in 8326 darwin*) 8327 lock_old_archive_extraction=yes ;; 8328 *) 8329 lock_old_archive_extraction=no ;; 8330esac 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352for ac_prog in gawk mawk nawk awk 8353do 8354 # Extract the first word of "$ac_prog", so it can be a program name with args. 8355set dummy $ac_prog; ac_word=$2 8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8357$as_echo_n "checking for $ac_word... " >&6; } 8358if ${ac_cv_prog_AWK+:} false; then : 8359 $as_echo_n "(cached) " >&6 8360else 8361 if test -n "$AWK"; then 8362 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8363else 8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8365for as_dir in $PATH 8366do 8367 IFS=$as_save_IFS 8368 test -z "$as_dir" && as_dir=. 8369 for ac_exec_ext in '' $ac_executable_extensions; do 8370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8371 ac_cv_prog_AWK="$ac_prog" 8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8373 break 2 8374 fi 8375done 8376 done 8377IFS=$as_save_IFS 8378 8379fi 8380fi 8381AWK=$ac_cv_prog_AWK 8382if test -n "$AWK"; then 8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8384$as_echo "$AWK" >&6; } 8385else 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8387$as_echo "no" >&6; } 8388fi 8389 8390 8391 test -n "$AWK" && break 8392done 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412# If no C compiler was specified, use CC. 8413LTCC=${LTCC-"$CC"} 8414 8415# If no C compiler flags were specified, use CFLAGS. 8416LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8417 8418# Allow CC to be a program name with arguments. 8419compiler=$CC 8420 8421 8422# Check for command to grab the raw symbol name followed by C symbol from nm. 8423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8424$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8425if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8426 $as_echo_n "(cached) " >&6 8427else 8428 8429# These are sane defaults that work on at least a few old systems. 8430# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8431 8432# Character class describing NM global symbol codes. 8433symcode='[BCDEGRST]' 8434 8435# Regexp to match symbols that can be accessed directly from C. 8436sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8437 8438# Define system-specific variables. 8439case $host_os in 8440aix*) 8441 symcode='[BCDT]' 8442 ;; 8443cygwin* | mingw* | pw32* | cegcc*) 8444 symcode='[ABCDGISTW]' 8445 ;; 8446hpux*) 8447 if test "$host_cpu" = ia64; then 8448 symcode='[ABCDEGRST]' 8449 fi 8450 ;; 8451irix* | nonstopux*) 8452 symcode='[BCDEGRST]' 8453 ;; 8454osf*) 8455 symcode='[BCDEGQRST]' 8456 ;; 8457solaris*) 8458 symcode='[BDRT]' 8459 ;; 8460sco3.2v5*) 8461 symcode='[DT]' 8462 ;; 8463sysv4.2uw2*) 8464 symcode='[DT]' 8465 ;; 8466sysv5* | sco5v6* | unixware* | OpenUNIX*) 8467 symcode='[ABDT]' 8468 ;; 8469sysv4) 8470 symcode='[DFNSTU]' 8471 ;; 8472esac 8473 8474# If we're using GNU nm, then use its standard symbol codes. 8475case `$NM -V 2>&1` in 8476*GNU* | *'with BFD'*) 8477 symcode='[ABCDGIRSTW]' ;; 8478esac 8479 8480# Transform an extracted symbol line into a proper C declaration. 8481# Some systems (esp. on ia64) link data and code symbols differently, 8482# so use this general approach. 8483lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8484 8485# Transform an extracted symbol line into symbol name and symbol address 8486lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 8487lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 8488 8489# Handle CRLF in mingw tool chain 8490opt_cr= 8491case $build_os in 8492mingw*) 8493 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8494 ;; 8495esac 8496 8497# Try without a prefix underscore, then with it. 8498for ac_symprfx in "" "_"; do 8499 8500 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8501 symxfrm="\\1 $ac_symprfx\\2 \\2" 8502 8503 # Write the raw and C identifiers. 8504 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8505 # Fake it for dumpbin and say T for any non-static function 8506 # and D for any global variable. 8507 # Also find C++ and __fastcall symbols from MSVC++, 8508 # which start with @ or ?. 8509 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8510" {last_section=section; section=\$ 3};"\ 8511" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8512" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8513" \$ 0!~/External *\|/{next};"\ 8514" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8515" {if(hide[section]) next};"\ 8516" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 8517" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 8518" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 8519" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 8520" ' prfx=^$ac_symprfx" 8521 else 8522 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8523 fi 8524 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8525 8526 # Check to see that the pipe works correctly. 8527 pipe_works=no 8528 8529 rm -f conftest* 8530 cat > conftest.$ac_ext <<_LT_EOF 8531#ifdef __cplusplus 8532extern "C" { 8533#endif 8534char nm_test_var; 8535void nm_test_func(void); 8536void nm_test_func(void){} 8537#ifdef __cplusplus 8538} 8539#endif 8540int main(){nm_test_var='a';nm_test_func();return(0);} 8541_LT_EOF 8542 8543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8544 (eval $ac_compile) 2>&5 8545 ac_status=$? 8546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8547 test $ac_status = 0; }; then 8548 # Now try to grab the symbols. 8549 nlist=conftest.nm 8550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8551 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8552 ac_status=$? 8553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8554 test $ac_status = 0; } && test -s "$nlist"; then 8555 # Try sorting and uniquifying the output. 8556 if sort "$nlist" | uniq > "$nlist"T; then 8557 mv -f "$nlist"T "$nlist" 8558 else 8559 rm -f "$nlist"T 8560 fi 8561 8562 # Make sure that we snagged all the symbols we need. 8563 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8564 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8565 cat <<_LT_EOF > conftest.$ac_ext 8566/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8567#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 8568/* DATA imports from DLLs on WIN32 con't be const, because runtime 8569 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8570# define LT_DLSYM_CONST 8571#elif defined(__osf__) 8572/* This system does not cope well with relocations in const data. */ 8573# define LT_DLSYM_CONST 8574#else 8575# define LT_DLSYM_CONST const 8576#endif 8577 8578#ifdef __cplusplus 8579extern "C" { 8580#endif 8581 8582_LT_EOF 8583 # Now generate the symbol file. 8584 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8585 8586 cat <<_LT_EOF >> conftest.$ac_ext 8587 8588/* The mapping between symbol names and symbols. */ 8589LT_DLSYM_CONST struct { 8590 const char *name; 8591 void *address; 8592} 8593lt__PROGRAM__LTX_preloaded_symbols[] = 8594{ 8595 { "@PROGRAM@", (void *) 0 }, 8596_LT_EOF 8597 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8598 cat <<\_LT_EOF >> conftest.$ac_ext 8599 {0, (void *) 0} 8600}; 8601 8602/* This works around a problem in FreeBSD linker */ 8603#ifdef FREEBSD_WORKAROUND 8604static const void *lt_preloaded_setup() { 8605 return lt__PROGRAM__LTX_preloaded_symbols; 8606} 8607#endif 8608 8609#ifdef __cplusplus 8610} 8611#endif 8612_LT_EOF 8613 # Now try linking the two files. 8614 mv conftest.$ac_objext conftstm.$ac_objext 8615 lt_globsym_save_LIBS=$LIBS 8616 lt_globsym_save_CFLAGS=$CFLAGS 8617 LIBS="conftstm.$ac_objext" 8618 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8620 (eval $ac_link) 2>&5 8621 ac_status=$? 8622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8623 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8624 pipe_works=yes 8625 fi 8626 LIBS=$lt_globsym_save_LIBS 8627 CFLAGS=$lt_globsym_save_CFLAGS 8628 else 8629 echo "cannot find nm_test_func in $nlist" >&5 8630 fi 8631 else 8632 echo "cannot find nm_test_var in $nlist" >&5 8633 fi 8634 else 8635 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8636 fi 8637 else 8638 echo "$progname: failed program was:" >&5 8639 cat conftest.$ac_ext >&5 8640 fi 8641 rm -rf conftest* conftst* 8642 8643 # Do not use the global_symbol_pipe unless it works. 8644 if test "$pipe_works" = yes; then 8645 break 8646 else 8647 lt_cv_sys_global_symbol_pipe= 8648 fi 8649done 8650 8651fi 8652 8653if test -z "$lt_cv_sys_global_symbol_pipe"; then 8654 lt_cv_sys_global_symbol_to_cdecl= 8655fi 8656if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8658$as_echo "failed" >&6; } 8659else 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8661$as_echo "ok" >&6; } 8662fi 8663 8664# Response file support. 8665if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8666 nm_file_list_spec='@' 8667elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8668 nm_file_list_spec='@' 8669fi 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8698$as_echo_n "checking for sysroot... " >&6; } 8699 8700# Check whether --with-sysroot was given. 8701if test "${with_sysroot+set}" = set; then : 8702 withval=$with_sysroot; 8703else 8704 with_sysroot=no 8705fi 8706 8707 8708lt_sysroot= 8709case ${with_sysroot} in #( 8710 yes) 8711 if test "$GCC" = yes; then 8712 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8713 fi 8714 ;; #( 8715 /*) 8716 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8717 ;; #( 8718 no|'') 8719 ;; #( 8720 *) 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 8722$as_echo "${with_sysroot}" >&6; } 8723 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8724 ;; 8725esac 8726 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8728$as_echo "${lt_sysroot:-no}" >&6; } 8729 8730 8731 8732 8733 8734# Check whether --enable-libtool-lock was given. 8735if test "${enable_libtool_lock+set}" = set; then : 8736 enableval=$enable_libtool_lock; 8737fi 8738 8739test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8740 8741# Some flags need to be propagated to the compiler or linker for good 8742# libtool support. 8743case $host in 8744ia64-*-hpux*) 8745 # Find out which ABI we are using. 8746 echo 'int i;' > conftest.$ac_ext 8747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8748 (eval $ac_compile) 2>&5 8749 ac_status=$? 8750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8751 test $ac_status = 0; }; then 8752 case `/usr/bin/file conftest.$ac_objext` in 8753 *ELF-32*) 8754 HPUX_IA64_MODE="32" 8755 ;; 8756 *ELF-64*) 8757 HPUX_IA64_MODE="64" 8758 ;; 8759 esac 8760 fi 8761 rm -rf conftest* 8762 ;; 8763*-*-irix6*) 8764 # Find out which ABI we are using. 8765 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8767 (eval $ac_compile) 2>&5 8768 ac_status=$? 8769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8770 test $ac_status = 0; }; then 8771 if test "$lt_cv_prog_gnu_ld" = yes; then 8772 case `/usr/bin/file conftest.$ac_objext` in 8773 *32-bit*) 8774 LD="${LD-ld} -melf32bsmip" 8775 ;; 8776 *N32*) 8777 LD="${LD-ld} -melf32bmipn32" 8778 ;; 8779 *64-bit*) 8780 LD="${LD-ld} -melf64bmip" 8781 ;; 8782 esac 8783 else 8784 case `/usr/bin/file conftest.$ac_objext` in 8785 *32-bit*) 8786 LD="${LD-ld} -32" 8787 ;; 8788 *N32*) 8789 LD="${LD-ld} -n32" 8790 ;; 8791 *64-bit*) 8792 LD="${LD-ld} -64" 8793 ;; 8794 esac 8795 fi 8796 fi 8797 rm -rf conftest* 8798 ;; 8799 8800x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8801s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8802 # Find out which ABI we are using. 8803 echo 'int i;' > conftest.$ac_ext 8804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8805 (eval $ac_compile) 2>&5 8806 ac_status=$? 8807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8808 test $ac_status = 0; }; then 8809 case `/usr/bin/file conftest.o` in 8810 *32-bit*) 8811 case $host in 8812 x86_64-*kfreebsd*-gnu) 8813 LD="${LD-ld} -m elf_i386_fbsd" 8814 ;; 8815 x86_64-*linux*) 8816 LD="${LD-ld} -m elf_i386" 8817 ;; 8818 powerpc64le-*linux*) 8819 LD="${LD-ld} -m elf32lppclinux" 8820 ;; 8821 powerpc64-*linux*) 8822 LD="${LD-ld} -m elf32ppclinux" 8823 ;; 8824 s390x-*linux*) 8825 LD="${LD-ld} -m elf_s390" 8826 ;; 8827 sparc64-*linux*) 8828 LD="${LD-ld} -m elf32_sparc" 8829 ;; 8830 esac 8831 ;; 8832 *64-bit*) 8833 case $host in 8834 x86_64-*kfreebsd*-gnu) 8835 LD="${LD-ld} -m elf_x86_64_fbsd" 8836 ;; 8837 x86_64-*linux*) 8838 LD="${LD-ld} -m elf_x86_64" 8839 ;; 8840 powerpcle-*linux*) 8841 LD="${LD-ld} -m elf64lppc" 8842 ;; 8843 powerpc-*linux*) 8844 LD="${LD-ld} -m elf64ppc" 8845 ;; 8846 s390*-*linux*|s390*-*tpf*) 8847 LD="${LD-ld} -m elf64_s390" 8848 ;; 8849 sparc*-*linux*) 8850 LD="${LD-ld} -m elf64_sparc" 8851 ;; 8852 esac 8853 ;; 8854 esac 8855 fi 8856 rm -rf conftest* 8857 ;; 8858 8859*-*-sco3.2v5*) 8860 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8861 SAVE_CFLAGS="$CFLAGS" 8862 CFLAGS="$CFLAGS -belf" 8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8864$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8865if ${lt_cv_cc_needs_belf+:} false; then : 8866 $as_echo_n "(cached) " >&6 8867else 8868 ac_ext=c 8869ac_cpp='$CPP $CPPFLAGS' 8870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8872ac_compiler_gnu=$ac_cv_c_compiler_gnu 8873 8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8875/* end confdefs.h. */ 8876 8877int 8878main () 8879{ 8880 8881 ; 8882 return 0; 8883} 8884_ACEOF 8885if ac_fn_c_try_link "$LINENO"; then : 8886 lt_cv_cc_needs_belf=yes 8887else 8888 lt_cv_cc_needs_belf=no 8889fi 8890rm -f core conftest.err conftest.$ac_objext \ 8891 conftest$ac_exeext conftest.$ac_ext 8892 ac_ext=c 8893ac_cpp='$CPP $CPPFLAGS' 8894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8896ac_compiler_gnu=$ac_cv_c_compiler_gnu 8897 8898fi 8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8900$as_echo "$lt_cv_cc_needs_belf" >&6; } 8901 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8902 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8903 CFLAGS="$SAVE_CFLAGS" 8904 fi 8905 ;; 8906*-*solaris*) 8907 # Find out which ABI we are using. 8908 echo 'int i;' > conftest.$ac_ext 8909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8910 (eval $ac_compile) 2>&5 8911 ac_status=$? 8912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8913 test $ac_status = 0; }; then 8914 case `/usr/bin/file conftest.o` in 8915 *64-bit*) 8916 case $lt_cv_prog_gnu_ld in 8917 yes*) 8918 case $host in 8919 i?86-*-solaris*) 8920 LD="${LD-ld} -m elf_x86_64" 8921 ;; 8922 sparc*-*-solaris*) 8923 LD="${LD-ld} -m elf64_sparc" 8924 ;; 8925 esac 8926 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8927 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8928 LD="${LD-ld}_sol2" 8929 fi 8930 ;; 8931 *) 8932 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8933 LD="${LD-ld} -64" 8934 fi 8935 ;; 8936 esac 8937 ;; 8938 esac 8939 fi 8940 rm -rf conftest* 8941 ;; 8942esac 8943 8944need_locks="$enable_libtool_lock" 8945 8946if test -n "$ac_tool_prefix"; then 8947 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8948set dummy ${ac_tool_prefix}mt; ac_word=$2 8949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8950$as_echo_n "checking for $ac_word... " >&6; } 8951if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8952 $as_echo_n "(cached) " >&6 8953else 8954 if test -n "$MANIFEST_TOOL"; then 8955 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8956else 8957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8958for as_dir in $PATH 8959do 8960 IFS=$as_save_IFS 8961 test -z "$as_dir" && as_dir=. 8962 for ac_exec_ext in '' $ac_executable_extensions; do 8963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8964 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8966 break 2 8967 fi 8968done 8969 done 8970IFS=$as_save_IFS 8971 8972fi 8973fi 8974MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8975if test -n "$MANIFEST_TOOL"; then 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8977$as_echo "$MANIFEST_TOOL" >&6; } 8978else 8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8980$as_echo "no" >&6; } 8981fi 8982 8983 8984fi 8985if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8986 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8987 # Extract the first word of "mt", so it can be a program name with args. 8988set dummy mt; ac_word=$2 8989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8990$as_echo_n "checking for $ac_word... " >&6; } 8991if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8992 $as_echo_n "(cached) " >&6 8993else 8994 if test -n "$ac_ct_MANIFEST_TOOL"; then 8995 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8996else 8997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8998for as_dir in $PATH 8999do 9000 IFS=$as_save_IFS 9001 test -z "$as_dir" && as_dir=. 9002 for ac_exec_ext in '' $ac_executable_extensions; do 9003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9004 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9006 break 2 9007 fi 9008done 9009 done 9010IFS=$as_save_IFS 9011 9012fi 9013fi 9014ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9015if test -n "$ac_ct_MANIFEST_TOOL"; then 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9017$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9018else 9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9020$as_echo "no" >&6; } 9021fi 9022 9023 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9024 MANIFEST_TOOL=":" 9025 else 9026 case $cross_compiling:$ac_tool_warned in 9027yes:) 9028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9030ac_tool_warned=yes ;; 9031esac 9032 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9033 fi 9034else 9035 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9036fi 9037 9038test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9040$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9041if ${lt_cv_path_mainfest_tool+:} false; then : 9042 $as_echo_n "(cached) " >&6 9043else 9044 lt_cv_path_mainfest_tool=no 9045 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9046 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9047 cat conftest.err >&5 9048 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9049 lt_cv_path_mainfest_tool=yes 9050 fi 9051 rm -f conftest* 9052fi 9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9054$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9055if test "x$lt_cv_path_mainfest_tool" != xyes; then 9056 MANIFEST_TOOL=: 9057fi 9058 9059 9060 9061 9062 9063 9064 case $host_os in 9065 rhapsody* | darwin*) 9066 if test -n "$ac_tool_prefix"; then 9067 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9068set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9070$as_echo_n "checking for $ac_word... " >&6; } 9071if ${ac_cv_prog_DSYMUTIL+:} false; then : 9072 $as_echo_n "(cached) " >&6 9073else 9074 if test -n "$DSYMUTIL"; then 9075 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9076else 9077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9078for as_dir in $PATH 9079do 9080 IFS=$as_save_IFS 9081 test -z "$as_dir" && as_dir=. 9082 for ac_exec_ext in '' $ac_executable_extensions; do 9083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9084 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9086 break 2 9087 fi 9088done 9089 done 9090IFS=$as_save_IFS 9091 9092fi 9093fi 9094DSYMUTIL=$ac_cv_prog_DSYMUTIL 9095if test -n "$DSYMUTIL"; then 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9097$as_echo "$DSYMUTIL" >&6; } 9098else 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9100$as_echo "no" >&6; } 9101fi 9102 9103 9104fi 9105if test -z "$ac_cv_prog_DSYMUTIL"; then 9106 ac_ct_DSYMUTIL=$DSYMUTIL 9107 # Extract the first word of "dsymutil", so it can be a program name with args. 9108set dummy dsymutil; ac_word=$2 9109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9110$as_echo_n "checking for $ac_word... " >&6; } 9111if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9112 $as_echo_n "(cached) " >&6 9113else 9114 if test -n "$ac_ct_DSYMUTIL"; then 9115 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9116else 9117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9118for as_dir in $PATH 9119do 9120 IFS=$as_save_IFS 9121 test -z "$as_dir" && as_dir=. 9122 for ac_exec_ext in '' $ac_executable_extensions; do 9123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9124 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9126 break 2 9127 fi 9128done 9129 done 9130IFS=$as_save_IFS 9131 9132fi 9133fi 9134ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9135if test -n "$ac_ct_DSYMUTIL"; then 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9137$as_echo "$ac_ct_DSYMUTIL" >&6; } 9138else 9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9140$as_echo "no" >&6; } 9141fi 9142 9143 if test "x$ac_ct_DSYMUTIL" = x; then 9144 DSYMUTIL=":" 9145 else 9146 case $cross_compiling:$ac_tool_warned in 9147yes:) 9148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9150ac_tool_warned=yes ;; 9151esac 9152 DSYMUTIL=$ac_ct_DSYMUTIL 9153 fi 9154else 9155 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9156fi 9157 9158 if test -n "$ac_tool_prefix"; then 9159 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9160set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9162$as_echo_n "checking for $ac_word... " >&6; } 9163if ${ac_cv_prog_NMEDIT+:} false; then : 9164 $as_echo_n "(cached) " >&6 9165else 9166 if test -n "$NMEDIT"; then 9167 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9168else 9169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9170for as_dir in $PATH 9171do 9172 IFS=$as_save_IFS 9173 test -z "$as_dir" && as_dir=. 9174 for ac_exec_ext in '' $ac_executable_extensions; do 9175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9176 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9178 break 2 9179 fi 9180done 9181 done 9182IFS=$as_save_IFS 9183 9184fi 9185fi 9186NMEDIT=$ac_cv_prog_NMEDIT 9187if test -n "$NMEDIT"; then 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9189$as_echo "$NMEDIT" >&6; } 9190else 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9192$as_echo "no" >&6; } 9193fi 9194 9195 9196fi 9197if test -z "$ac_cv_prog_NMEDIT"; then 9198 ac_ct_NMEDIT=$NMEDIT 9199 # Extract the first word of "nmedit", so it can be a program name with args. 9200set dummy nmedit; ac_word=$2 9201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9202$as_echo_n "checking for $ac_word... " >&6; } 9203if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9204 $as_echo_n "(cached) " >&6 9205else 9206 if test -n "$ac_ct_NMEDIT"; then 9207 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9208else 9209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9210for as_dir in $PATH 9211do 9212 IFS=$as_save_IFS 9213 test -z "$as_dir" && as_dir=. 9214 for ac_exec_ext in '' $ac_executable_extensions; do 9215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9216 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9218 break 2 9219 fi 9220done 9221 done 9222IFS=$as_save_IFS 9223 9224fi 9225fi 9226ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9227if test -n "$ac_ct_NMEDIT"; then 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9229$as_echo "$ac_ct_NMEDIT" >&6; } 9230else 9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9232$as_echo "no" >&6; } 9233fi 9234 9235 if test "x$ac_ct_NMEDIT" = x; then 9236 NMEDIT=":" 9237 else 9238 case $cross_compiling:$ac_tool_warned in 9239yes:) 9240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9242ac_tool_warned=yes ;; 9243esac 9244 NMEDIT=$ac_ct_NMEDIT 9245 fi 9246else 9247 NMEDIT="$ac_cv_prog_NMEDIT" 9248fi 9249 9250 if test -n "$ac_tool_prefix"; then 9251 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9252set dummy ${ac_tool_prefix}lipo; ac_word=$2 9253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9254$as_echo_n "checking for $ac_word... " >&6; } 9255if ${ac_cv_prog_LIPO+:} false; then : 9256 $as_echo_n "(cached) " >&6 9257else 9258 if test -n "$LIPO"; then 9259 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9260else 9261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9262for as_dir in $PATH 9263do 9264 IFS=$as_save_IFS 9265 test -z "$as_dir" && as_dir=. 9266 for ac_exec_ext in '' $ac_executable_extensions; do 9267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9268 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9270 break 2 9271 fi 9272done 9273 done 9274IFS=$as_save_IFS 9275 9276fi 9277fi 9278LIPO=$ac_cv_prog_LIPO 9279if test -n "$LIPO"; then 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9281$as_echo "$LIPO" >&6; } 9282else 9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9284$as_echo "no" >&6; } 9285fi 9286 9287 9288fi 9289if test -z "$ac_cv_prog_LIPO"; then 9290 ac_ct_LIPO=$LIPO 9291 # Extract the first word of "lipo", so it can be a program name with args. 9292set dummy lipo; ac_word=$2 9293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9294$as_echo_n "checking for $ac_word... " >&6; } 9295if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9296 $as_echo_n "(cached) " >&6 9297else 9298 if test -n "$ac_ct_LIPO"; then 9299 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9300else 9301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9302for as_dir in $PATH 9303do 9304 IFS=$as_save_IFS 9305 test -z "$as_dir" && as_dir=. 9306 for ac_exec_ext in '' $ac_executable_extensions; do 9307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9308 ac_cv_prog_ac_ct_LIPO="lipo" 9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9310 break 2 9311 fi 9312done 9313 done 9314IFS=$as_save_IFS 9315 9316fi 9317fi 9318ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9319if test -n "$ac_ct_LIPO"; then 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9321$as_echo "$ac_ct_LIPO" >&6; } 9322else 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9324$as_echo "no" >&6; } 9325fi 9326 9327 if test "x$ac_ct_LIPO" = x; then 9328 LIPO=":" 9329 else 9330 case $cross_compiling:$ac_tool_warned in 9331yes:) 9332{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9333$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9334ac_tool_warned=yes ;; 9335esac 9336 LIPO=$ac_ct_LIPO 9337 fi 9338else 9339 LIPO="$ac_cv_prog_LIPO" 9340fi 9341 9342 if test -n "$ac_tool_prefix"; then 9343 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9344set dummy ${ac_tool_prefix}otool; ac_word=$2 9345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9346$as_echo_n "checking for $ac_word... " >&6; } 9347if ${ac_cv_prog_OTOOL+:} false; then : 9348 $as_echo_n "(cached) " >&6 9349else 9350 if test -n "$OTOOL"; then 9351 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9352else 9353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9354for as_dir in $PATH 9355do 9356 IFS=$as_save_IFS 9357 test -z "$as_dir" && as_dir=. 9358 for ac_exec_ext in '' $ac_executable_extensions; do 9359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9360 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9362 break 2 9363 fi 9364done 9365 done 9366IFS=$as_save_IFS 9367 9368fi 9369fi 9370OTOOL=$ac_cv_prog_OTOOL 9371if test -n "$OTOOL"; then 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9373$as_echo "$OTOOL" >&6; } 9374else 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9376$as_echo "no" >&6; } 9377fi 9378 9379 9380fi 9381if test -z "$ac_cv_prog_OTOOL"; then 9382 ac_ct_OTOOL=$OTOOL 9383 # Extract the first word of "otool", so it can be a program name with args. 9384set dummy otool; ac_word=$2 9385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9386$as_echo_n "checking for $ac_word... " >&6; } 9387if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9388 $as_echo_n "(cached) " >&6 9389else 9390 if test -n "$ac_ct_OTOOL"; then 9391 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9392else 9393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9394for as_dir in $PATH 9395do 9396 IFS=$as_save_IFS 9397 test -z "$as_dir" && as_dir=. 9398 for ac_exec_ext in '' $ac_executable_extensions; do 9399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9400 ac_cv_prog_ac_ct_OTOOL="otool" 9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9402 break 2 9403 fi 9404done 9405 done 9406IFS=$as_save_IFS 9407 9408fi 9409fi 9410ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9411if test -n "$ac_ct_OTOOL"; then 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9413$as_echo "$ac_ct_OTOOL" >&6; } 9414else 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9416$as_echo "no" >&6; } 9417fi 9418 9419 if test "x$ac_ct_OTOOL" = x; then 9420 OTOOL=":" 9421 else 9422 case $cross_compiling:$ac_tool_warned in 9423yes:) 9424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9426ac_tool_warned=yes ;; 9427esac 9428 OTOOL=$ac_ct_OTOOL 9429 fi 9430else 9431 OTOOL="$ac_cv_prog_OTOOL" 9432fi 9433 9434 if test -n "$ac_tool_prefix"; then 9435 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9436set dummy ${ac_tool_prefix}otool64; ac_word=$2 9437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9438$as_echo_n "checking for $ac_word... " >&6; } 9439if ${ac_cv_prog_OTOOL64+:} false; then : 9440 $as_echo_n "(cached) " >&6 9441else 9442 if test -n "$OTOOL64"; then 9443 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9444else 9445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9446for as_dir in $PATH 9447do 9448 IFS=$as_save_IFS 9449 test -z "$as_dir" && as_dir=. 9450 for ac_exec_ext in '' $ac_executable_extensions; do 9451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9452 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9454 break 2 9455 fi 9456done 9457 done 9458IFS=$as_save_IFS 9459 9460fi 9461fi 9462OTOOL64=$ac_cv_prog_OTOOL64 9463if test -n "$OTOOL64"; then 9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9465$as_echo "$OTOOL64" >&6; } 9466else 9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9468$as_echo "no" >&6; } 9469fi 9470 9471 9472fi 9473if test -z "$ac_cv_prog_OTOOL64"; then 9474 ac_ct_OTOOL64=$OTOOL64 9475 # Extract the first word of "otool64", so it can be a program name with args. 9476set dummy otool64; ac_word=$2 9477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9478$as_echo_n "checking for $ac_word... " >&6; } 9479if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9480 $as_echo_n "(cached) " >&6 9481else 9482 if test -n "$ac_ct_OTOOL64"; then 9483 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9484else 9485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9486for as_dir in $PATH 9487do 9488 IFS=$as_save_IFS 9489 test -z "$as_dir" && as_dir=. 9490 for ac_exec_ext in '' $ac_executable_extensions; do 9491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9492 ac_cv_prog_ac_ct_OTOOL64="otool64" 9493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9494 break 2 9495 fi 9496done 9497 done 9498IFS=$as_save_IFS 9499 9500fi 9501fi 9502ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9503if test -n "$ac_ct_OTOOL64"; then 9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9505$as_echo "$ac_ct_OTOOL64" >&6; } 9506else 9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9508$as_echo "no" >&6; } 9509fi 9510 9511 if test "x$ac_ct_OTOOL64" = x; then 9512 OTOOL64=":" 9513 else 9514 case $cross_compiling:$ac_tool_warned in 9515yes:) 9516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9518ac_tool_warned=yes ;; 9519esac 9520 OTOOL64=$ac_ct_OTOOL64 9521 fi 9522else 9523 OTOOL64="$ac_cv_prog_OTOOL64" 9524fi 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9553$as_echo_n "checking for -single_module linker flag... " >&6; } 9554if ${lt_cv_apple_cc_single_mod+:} false; then : 9555 $as_echo_n "(cached) " >&6 9556else 9557 lt_cv_apple_cc_single_mod=no 9558 if test -z "${LT_MULTI_MODULE}"; then 9559 # By default we will add the -single_module flag. You can override 9560 # by either setting the environment variable LT_MULTI_MODULE 9561 # non-empty at configure time, or by adding -multi_module to the 9562 # link flags. 9563 rm -rf libconftest.dylib* 9564 echo "int foo(void){return 1;}" > conftest.c 9565 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9566-dynamiclib -Wl,-single_module conftest.c" >&5 9567 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9568 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9569 _lt_result=$? 9570 # If there is a non-empty error log, and "single_module" 9571 # appears in it, assume the flag caused a linker warning 9572 if test -s conftest.err && $GREP single_module conftest.err; then 9573 cat conftest.err >&5 9574 # Otherwise, if the output was created with a 0 exit code from 9575 # the compiler, it worked. 9576 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 9577 lt_cv_apple_cc_single_mod=yes 9578 else 9579 cat conftest.err >&5 9580 fi 9581 rm -rf libconftest.dylib* 9582 rm -f conftest.* 9583 fi 9584fi 9585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9586$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9587 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9589$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9590if ${lt_cv_ld_exported_symbols_list+:} false; then : 9591 $as_echo_n "(cached) " >&6 9592else 9593 lt_cv_ld_exported_symbols_list=no 9594 save_LDFLAGS=$LDFLAGS 9595 echo "_main" > conftest.sym 9596 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9598/* end confdefs.h. */ 9599 9600int 9601main () 9602{ 9603 9604 ; 9605 return 0; 9606} 9607_ACEOF 9608if ac_fn_c_try_link "$LINENO"; then : 9609 lt_cv_ld_exported_symbols_list=yes 9610else 9611 lt_cv_ld_exported_symbols_list=no 9612fi 9613rm -f core conftest.err conftest.$ac_objext \ 9614 conftest$ac_exeext conftest.$ac_ext 9615 LDFLAGS="$save_LDFLAGS" 9616 9617fi 9618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9619$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9620 9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9622$as_echo_n "checking for -force_load linker flag... " >&6; } 9623if ${lt_cv_ld_force_load+:} false; then : 9624 $as_echo_n "(cached) " >&6 9625else 9626 lt_cv_ld_force_load=no 9627 cat > conftest.c << _LT_EOF 9628int forced_loaded() { return 2;} 9629_LT_EOF 9630 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9631 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9632 echo "$AR cru libconftest.a conftest.o" >&5 9633 $AR cru libconftest.a conftest.o 2>&5 9634 echo "$RANLIB libconftest.a" >&5 9635 $RANLIB libconftest.a 2>&5 9636 cat > conftest.c << _LT_EOF 9637int main() { return 0;} 9638_LT_EOF 9639 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9640 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9641 _lt_result=$? 9642 if test -s conftest.err && $GREP force_load conftest.err; then 9643 cat conftest.err >&5 9644 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 9645 lt_cv_ld_force_load=yes 9646 else 9647 cat conftest.err >&5 9648 fi 9649 rm -f conftest.err libconftest.a conftest conftest.c 9650 rm -rf conftest.dSYM 9651 9652fi 9653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9654$as_echo "$lt_cv_ld_force_load" >&6; } 9655 case $host_os in 9656 rhapsody* | darwin1.[012]) 9657 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 9658 darwin1.*) 9659 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9660 darwin*) # darwin 5.x on 9661 # if running on 10.5 or later, the deployment target defaults 9662 # to the OS version, if on x86, and 10.4, the deployment 9663 # target defaults to 10.4. Don't you love it? 9664 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9665 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9666 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9667 10.[012]*) 9668 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9669 10.*) 9670 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9671 esac 9672 ;; 9673 esac 9674 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9675 _lt_dar_single_mod='$single_module' 9676 fi 9677 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9678 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9679 else 9680 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9681 fi 9682 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9683 _lt_dsymutil='~$DSYMUTIL $lib || :' 9684 else 9685 _lt_dsymutil= 9686 fi 9687 ;; 9688 esac 9689 9690for ac_header in dlfcn.h 9691do : 9692 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9693" 9694if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9695 cat >>confdefs.h <<_ACEOF 9696#define HAVE_DLFCN_H 1 9697_ACEOF 9698 9699fi 9700 9701done 9702 9703 9704 9705 9706 9707 9708 9709# Set options 9710 9711 9712 9713 enable_dlopen=no 9714 9715 9716 enable_win32_dll=no 9717 9718 9719 # Check whether --enable-shared was given. 9720if test "${enable_shared+set}" = set; then : 9721 enableval=$enable_shared; p=${PACKAGE-default} 9722 case $enableval in 9723 yes) enable_shared=yes ;; 9724 no) enable_shared=no ;; 9725 *) 9726 enable_shared=no 9727 # Look at the argument we got. We use all the common list separators. 9728 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9729 for pkg in $enableval; do 9730 IFS="$lt_save_ifs" 9731 if test "X$pkg" = "X$p"; then 9732 enable_shared=yes 9733 fi 9734 done 9735 IFS="$lt_save_ifs" 9736 ;; 9737 esac 9738else 9739 enable_shared=yes 9740fi 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 # Check whether --enable-static was given. 9751if test "${enable_static+set}" = set; then : 9752 enableval=$enable_static; p=${PACKAGE-default} 9753 case $enableval in 9754 yes) enable_static=yes ;; 9755 no) enable_static=no ;; 9756 *) 9757 enable_static=no 9758 # Look at the argument we got. We use all the common list separators. 9759 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9760 for pkg in $enableval; do 9761 IFS="$lt_save_ifs" 9762 if test "X$pkg" = "X$p"; then 9763 enable_static=yes 9764 fi 9765 done 9766 IFS="$lt_save_ifs" 9767 ;; 9768 esac 9769else 9770 enable_static=yes 9771fi 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782# Check whether --with-pic was given. 9783if test "${with_pic+set}" = set; then : 9784 withval=$with_pic; lt_p=${PACKAGE-default} 9785 case $withval in 9786 yes|no) pic_mode=$withval ;; 9787 *) 9788 pic_mode=default 9789 # Look at the argument we got. We use all the common list separators. 9790 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9791 for lt_pkg in $withval; do 9792 IFS="$lt_save_ifs" 9793 if test "X$lt_pkg" = "X$lt_p"; then 9794 pic_mode=yes 9795 fi 9796 done 9797 IFS="$lt_save_ifs" 9798 ;; 9799 esac 9800else 9801 pic_mode=default 9802fi 9803 9804 9805test -z "$pic_mode" && pic_mode=default 9806 9807 9808 9809 9810 9811 9812 9813 # Check whether --enable-fast-install was given. 9814if test "${enable_fast_install+set}" = set; then : 9815 enableval=$enable_fast_install; p=${PACKAGE-default} 9816 case $enableval in 9817 yes) enable_fast_install=yes ;; 9818 no) enable_fast_install=no ;; 9819 *) 9820 enable_fast_install=no 9821 # Look at the argument we got. We use all the common list separators. 9822 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9823 for pkg in $enableval; do 9824 IFS="$lt_save_ifs" 9825 if test "X$pkg" = "X$p"; then 9826 enable_fast_install=yes 9827 fi 9828 done 9829 IFS="$lt_save_ifs" 9830 ;; 9831 esac 9832else 9833 enable_fast_install=yes 9834fi 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846# This can be used to rebuild libtool when needed 9847LIBTOOL_DEPS="$ltmain" 9848 9849# Always use our own libtool. 9850LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881test -z "$LN_S" && LN_S="ln -s" 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896if test -n "${ZSH_VERSION+set}" ; then 9897 setopt NO_GLOB_SUBST 9898fi 9899 9900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9901$as_echo_n "checking for objdir... " >&6; } 9902if ${lt_cv_objdir+:} false; then : 9903 $as_echo_n "(cached) " >&6 9904else 9905 rm -f .libs 2>/dev/null 9906mkdir .libs 2>/dev/null 9907if test -d .libs; then 9908 lt_cv_objdir=.libs 9909else 9910 # MS-DOS does not allow filenames that begin with a dot. 9911 lt_cv_objdir=_libs 9912fi 9913rmdir .libs 2>/dev/null 9914fi 9915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9916$as_echo "$lt_cv_objdir" >&6; } 9917objdir=$lt_cv_objdir 9918 9919 9920 9921 9922 9923cat >>confdefs.h <<_ACEOF 9924#define LT_OBJDIR "$lt_cv_objdir/" 9925_ACEOF 9926 9927 9928 9929 9930case $host_os in 9931aix3*) 9932 # AIX sometimes has problems with the GCC collect2 program. For some 9933 # reason, if we set the COLLECT_NAMES environment variable, the problems 9934 # vanish in a puff of smoke. 9935 if test "X${COLLECT_NAMES+set}" != Xset; then 9936 COLLECT_NAMES= 9937 export COLLECT_NAMES 9938 fi 9939 ;; 9940esac 9941 9942# Global variables: 9943ofile=libtool 9944can_build_shared=yes 9945 9946# All known linkers require a `.a' archive for static linking (except MSVC, 9947# which needs '.lib'). 9948libext=a 9949 9950with_gnu_ld="$lt_cv_prog_gnu_ld" 9951 9952old_CC="$CC" 9953old_CFLAGS="$CFLAGS" 9954 9955# Set sane defaults for various variables 9956test -z "$CC" && CC=cc 9957test -z "$LTCC" && LTCC=$CC 9958test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9959test -z "$LD" && LD=ld 9960test -z "$ac_objext" && ac_objext=o 9961 9962for cc_temp in $compiler""; do 9963 case $cc_temp in 9964 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9965 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9966 \-*) ;; 9967 *) break;; 9968 esac 9969done 9970cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9971 9972 9973# Only perform the check for file, if the check method requires it 9974test -z "$MAGIC_CMD" && MAGIC_CMD=file 9975case $deplibs_check_method in 9976file_magic*) 9977 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9979$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9980if ${lt_cv_path_MAGIC_CMD+:} false; then : 9981 $as_echo_n "(cached) " >&6 9982else 9983 case $MAGIC_CMD in 9984[\\/*] | ?:[\\/]*) 9985 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9986 ;; 9987*) 9988 lt_save_MAGIC_CMD="$MAGIC_CMD" 9989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9990 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9991 for ac_dir in $ac_dummy; do 9992 IFS="$lt_save_ifs" 9993 test -z "$ac_dir" && ac_dir=. 9994 if test -f $ac_dir/${ac_tool_prefix}file; then 9995 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9996 if test -n "$file_magic_test_file"; then 9997 case $deplibs_check_method in 9998 "file_magic "*) 9999 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10001 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10002 $EGREP "$file_magic_regex" > /dev/null; then 10003 : 10004 else 10005 cat <<_LT_EOF 1>&2 10006 10007*** Warning: the command libtool uses to detect shared libraries, 10008*** $file_magic_cmd, produces output that libtool cannot recognize. 10009*** The result is that libtool may fail to recognize shared libraries 10010*** as such. This will affect the creation of libtool libraries that 10011*** depend on shared libraries, but programs linked with such libtool 10012*** libraries will work regardless of this problem. Nevertheless, you 10013*** may want to report the problem to your system manager and/or to 10014*** bug-libtool@gnu.org 10015 10016_LT_EOF 10017 fi ;; 10018 esac 10019 fi 10020 break 10021 fi 10022 done 10023 IFS="$lt_save_ifs" 10024 MAGIC_CMD="$lt_save_MAGIC_CMD" 10025 ;; 10026esac 10027fi 10028 10029MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10030if test -n "$MAGIC_CMD"; then 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10032$as_echo "$MAGIC_CMD" >&6; } 10033else 10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10035$as_echo "no" >&6; } 10036fi 10037 10038 10039 10040 10041 10042if test -z "$lt_cv_path_MAGIC_CMD"; then 10043 if test -n "$ac_tool_prefix"; then 10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10045$as_echo_n "checking for file... " >&6; } 10046if ${lt_cv_path_MAGIC_CMD+:} false; then : 10047 $as_echo_n "(cached) " >&6 10048else 10049 case $MAGIC_CMD in 10050[\\/*] | ?:[\\/]*) 10051 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10052 ;; 10053*) 10054 lt_save_MAGIC_CMD="$MAGIC_CMD" 10055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10056 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10057 for ac_dir in $ac_dummy; do 10058 IFS="$lt_save_ifs" 10059 test -z "$ac_dir" && ac_dir=. 10060 if test -f $ac_dir/file; then 10061 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10062 if test -n "$file_magic_test_file"; then 10063 case $deplibs_check_method in 10064 "file_magic "*) 10065 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10066 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10067 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10068 $EGREP "$file_magic_regex" > /dev/null; then 10069 : 10070 else 10071 cat <<_LT_EOF 1>&2 10072 10073*** Warning: the command libtool uses to detect shared libraries, 10074*** $file_magic_cmd, produces output that libtool cannot recognize. 10075*** The result is that libtool may fail to recognize shared libraries 10076*** as such. This will affect the creation of libtool libraries that 10077*** depend on shared libraries, but programs linked with such libtool 10078*** libraries will work regardless of this problem. Nevertheless, you 10079*** may want to report the problem to your system manager and/or to 10080*** bug-libtool@gnu.org 10081 10082_LT_EOF 10083 fi ;; 10084 esac 10085 fi 10086 break 10087 fi 10088 done 10089 IFS="$lt_save_ifs" 10090 MAGIC_CMD="$lt_save_MAGIC_CMD" 10091 ;; 10092esac 10093fi 10094 10095MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10096if test -n "$MAGIC_CMD"; then 10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10098$as_echo "$MAGIC_CMD" >&6; } 10099else 10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10101$as_echo "no" >&6; } 10102fi 10103 10104 10105 else 10106 MAGIC_CMD=: 10107 fi 10108fi 10109 10110 fi 10111 ;; 10112esac 10113 10114# Use C for the default configuration in the libtool script 10115 10116lt_save_CC="$CC" 10117ac_ext=c 10118ac_cpp='$CPP $CPPFLAGS' 10119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10121ac_compiler_gnu=$ac_cv_c_compiler_gnu 10122 10123 10124# Source file extension for C test sources. 10125ac_ext=c 10126 10127# Object file extension for compiled C test sources. 10128objext=o 10129objext=$objext 10130 10131# Code to be used in simple compile tests 10132lt_simple_compile_test_code="int some_variable = 0;" 10133 10134# Code to be used in simple link tests 10135lt_simple_link_test_code='int main(){return(0);}' 10136 10137 10138 10139 10140 10141 10142 10143# If no C compiler was specified, use CC. 10144LTCC=${LTCC-"$CC"} 10145 10146# If no C compiler flags were specified, use CFLAGS. 10147LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10148 10149# Allow CC to be a program name with arguments. 10150compiler=$CC 10151 10152# Save the default compiler, since it gets overwritten when the other 10153# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10154compiler_DEFAULT=$CC 10155 10156# save warnings/boilerplate of simple test code 10157ac_outfile=conftest.$ac_objext 10158echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10159eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10160_lt_compiler_boilerplate=`cat conftest.err` 10161$RM conftest* 10162 10163ac_outfile=conftest.$ac_objext 10164echo "$lt_simple_link_test_code" >conftest.$ac_ext 10165eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10166_lt_linker_boilerplate=`cat conftest.err` 10167$RM -r conftest* 10168 10169 10170if test -n "$compiler"; then 10171 10172lt_prog_compiler_no_builtin_flag= 10173 10174if test "$GCC" = yes; then 10175 case $cc_basename in 10176 nvcc*) 10177 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10178 *) 10179 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10180 esac 10181 10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10183$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10184if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10185 $as_echo_n "(cached) " >&6 10186else 10187 lt_cv_prog_compiler_rtti_exceptions=no 10188 ac_outfile=conftest.$ac_objext 10189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10190 lt_compiler_flag="-fno-rtti -fno-exceptions" 10191 # Insert the option either (1) after the last *FLAGS variable, or 10192 # (2) before a word containing "conftest.", or (3) at the end. 10193 # Note that $ac_compile itself does not contain backslashes and begins 10194 # with a dollar sign (not a hyphen), so the echo should work correctly. 10195 # The option is referenced via a variable to avoid confusing sed. 10196 lt_compile=`echo "$ac_compile" | $SED \ 10197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10199 -e 's:$: $lt_compiler_flag:'` 10200 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10201 (eval "$lt_compile" 2>conftest.err) 10202 ac_status=$? 10203 cat conftest.err >&5 10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10205 if (exit $ac_status) && test -s "$ac_outfile"; then 10206 # The compiler can only warn and ignore the option if not recognized 10207 # So say no if there are warnings other than the usual output. 10208 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10210 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10211 lt_cv_prog_compiler_rtti_exceptions=yes 10212 fi 10213 fi 10214 $RM conftest* 10215 10216fi 10217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10218$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10219 10220if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10221 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10222else 10223 : 10224fi 10225 10226fi 10227 10228 10229 10230 10231 10232 10233 lt_prog_compiler_wl= 10234lt_prog_compiler_pic= 10235lt_prog_compiler_static= 10236 10237 10238 if test "$GCC" = yes; then 10239 lt_prog_compiler_wl='-Wl,' 10240 lt_prog_compiler_static='-static' 10241 10242 case $host_os in 10243 aix*) 10244 # All AIX code is PIC. 10245 if test "$host_cpu" = ia64; then 10246 # AIX 5 now supports IA64 processor 10247 lt_prog_compiler_static='-Bstatic' 10248 fi 10249 ;; 10250 10251 amigaos*) 10252 case $host_cpu in 10253 powerpc) 10254 # see comment about AmigaOS4 .so support 10255 lt_prog_compiler_pic='-fPIC' 10256 ;; 10257 m68k) 10258 # FIXME: we need at least 68020 code to build shared libraries, but 10259 # adding the `-m68020' flag to GCC prevents building anything better, 10260 # like `-m68040'. 10261 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10262 ;; 10263 esac 10264 ;; 10265 10266 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10267 # PIC is the default for these OSes. 10268 ;; 10269 10270 mingw* | cygwin* | pw32* | os2* | cegcc*) 10271 # This hack is so that the source file can tell whether it is being 10272 # built for inclusion in a dll (and should export symbols for example). 10273 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10274 # (--disable-auto-import) libraries 10275 lt_prog_compiler_pic='-DDLL_EXPORT' 10276 ;; 10277 10278 darwin* | rhapsody*) 10279 # PIC is the default on this platform 10280 # Common symbols not allowed in MH_DYLIB files 10281 lt_prog_compiler_pic='-fno-common' 10282 ;; 10283 10284 haiku*) 10285 # PIC is the default for Haiku. 10286 # The "-static" flag exists, but is broken. 10287 lt_prog_compiler_static= 10288 ;; 10289 10290 hpux*) 10291 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10292 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10293 # sets the default TLS model and affects inlining. 10294 case $host_cpu in 10295 hppa*64*) 10296 # +Z the default 10297 ;; 10298 *) 10299 lt_prog_compiler_pic='-fPIC' 10300 ;; 10301 esac 10302 ;; 10303 10304 interix[3-9]*) 10305 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10306 # Instead, we relocate shared libraries at runtime. 10307 ;; 10308 10309 msdosdjgpp*) 10310 # Just because we use GCC doesn't mean we suddenly get shared libraries 10311 # on systems that don't support them. 10312 lt_prog_compiler_can_build_shared=no 10313 enable_shared=no 10314 ;; 10315 10316 *nto* | *qnx*) 10317 # QNX uses GNU C++, but need to define -shared option too, otherwise 10318 # it will coredump. 10319 lt_prog_compiler_pic='-fPIC -shared' 10320 ;; 10321 10322 sysv4*MP*) 10323 if test -d /usr/nec; then 10324 lt_prog_compiler_pic=-Kconform_pic 10325 fi 10326 ;; 10327 10328 *) 10329 lt_prog_compiler_pic='-fPIC' 10330 ;; 10331 esac 10332 10333 case $cc_basename in 10334 nvcc*) # Cuda Compiler Driver 2.2 10335 lt_prog_compiler_wl='-Xlinker ' 10336 if test -n "$lt_prog_compiler_pic"; then 10337 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10338 fi 10339 ;; 10340 esac 10341 else 10342 # PORTME Check for flag to pass linker flags through the system compiler. 10343 case $host_os in 10344 aix*) 10345 lt_prog_compiler_wl='-Wl,' 10346 if test "$host_cpu" = ia64; then 10347 # AIX 5 now supports IA64 processor 10348 lt_prog_compiler_static='-Bstatic' 10349 else 10350 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10351 fi 10352 ;; 10353 10354 mingw* | cygwin* | pw32* | os2* | cegcc*) 10355 # This hack is so that the source file can tell whether it is being 10356 # built for inclusion in a dll (and should export symbols for example). 10357 lt_prog_compiler_pic='-DDLL_EXPORT' 10358 ;; 10359 10360 hpux9* | hpux10* | hpux11*) 10361 lt_prog_compiler_wl='-Wl,' 10362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10363 # not for PA HP-UX. 10364 case $host_cpu in 10365 hppa*64*|ia64*) 10366 # +Z the default 10367 ;; 10368 *) 10369 lt_prog_compiler_pic='+Z' 10370 ;; 10371 esac 10372 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10373 lt_prog_compiler_static='${wl}-a ${wl}archive' 10374 ;; 10375 10376 irix5* | irix6* | nonstopux*) 10377 lt_prog_compiler_wl='-Wl,' 10378 # PIC (with -KPIC) is the default. 10379 lt_prog_compiler_static='-non_shared' 10380 ;; 10381 10382 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10383 case $cc_basename in 10384 # old Intel for x86_64 which still supported -KPIC. 10385 ecc*) 10386 lt_prog_compiler_wl='-Wl,' 10387 lt_prog_compiler_pic='-KPIC' 10388 lt_prog_compiler_static='-static' 10389 ;; 10390 # icc used to be incompatible with GCC. 10391 # ICC 10 doesn't accept -KPIC any more. 10392 icc* | ifort*) 10393 lt_prog_compiler_wl='-Wl,' 10394 lt_prog_compiler_pic='-fPIC' 10395 lt_prog_compiler_static='-static' 10396 ;; 10397 # Lahey Fortran 8.1. 10398 lf95*) 10399 lt_prog_compiler_wl='-Wl,' 10400 lt_prog_compiler_pic='--shared' 10401 lt_prog_compiler_static='--static' 10402 ;; 10403 nagfor*) 10404 # NAG Fortran compiler 10405 lt_prog_compiler_wl='-Wl,-Wl,,' 10406 lt_prog_compiler_pic='-PIC' 10407 lt_prog_compiler_static='-Bstatic' 10408 ;; 10409 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10410 # Portland Group compilers (*not* the Pentium gcc compiler, 10411 # which looks to be a dead project) 10412 lt_prog_compiler_wl='-Wl,' 10413 lt_prog_compiler_pic='-fpic' 10414 lt_prog_compiler_static='-Bstatic' 10415 ;; 10416 ccc*) 10417 lt_prog_compiler_wl='-Wl,' 10418 # All Alpha code is PIC. 10419 lt_prog_compiler_static='-non_shared' 10420 ;; 10421 xl* | bgxl* | bgf* | mpixl*) 10422 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10423 lt_prog_compiler_wl='-Wl,' 10424 lt_prog_compiler_pic='-qpic' 10425 lt_prog_compiler_static='-qstaticlink' 10426 ;; 10427 *) 10428 case `$CC -V 2>&1 | sed 5q` in 10429 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10430 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10431 lt_prog_compiler_pic='-KPIC' 10432 lt_prog_compiler_static='-Bstatic' 10433 lt_prog_compiler_wl='' 10434 ;; 10435 *Sun\ F* | *Sun*Fortran*) 10436 lt_prog_compiler_pic='-KPIC' 10437 lt_prog_compiler_static='-Bstatic' 10438 lt_prog_compiler_wl='-Qoption ld ' 10439 ;; 10440 *Sun\ C*) 10441 # Sun C 5.9 10442 lt_prog_compiler_pic='-KPIC' 10443 lt_prog_compiler_static='-Bstatic' 10444 lt_prog_compiler_wl='-Wl,' 10445 ;; 10446 *Intel*\ [CF]*Compiler*) 10447 lt_prog_compiler_wl='-Wl,' 10448 lt_prog_compiler_pic='-fPIC' 10449 lt_prog_compiler_static='-static' 10450 ;; 10451 *Portland\ Group*) 10452 lt_prog_compiler_wl='-Wl,' 10453 lt_prog_compiler_pic='-fpic' 10454 lt_prog_compiler_static='-Bstatic' 10455 ;; 10456 esac 10457 ;; 10458 esac 10459 ;; 10460 10461 newsos6) 10462 lt_prog_compiler_pic='-KPIC' 10463 lt_prog_compiler_static='-Bstatic' 10464 ;; 10465 10466 *nto* | *qnx*) 10467 # QNX uses GNU C++, but need to define -shared option too, otherwise 10468 # it will coredump. 10469 lt_prog_compiler_pic='-fPIC -shared' 10470 ;; 10471 10472 osf3* | osf4* | osf5*) 10473 lt_prog_compiler_wl='-Wl,' 10474 # All OSF/1 code is PIC. 10475 lt_prog_compiler_static='-non_shared' 10476 ;; 10477 10478 rdos*) 10479 lt_prog_compiler_static='-non_shared' 10480 ;; 10481 10482 solaris*) 10483 lt_prog_compiler_pic='-KPIC' 10484 lt_prog_compiler_static='-Bstatic' 10485 case $cc_basename in 10486 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10487 lt_prog_compiler_wl='-Qoption ld ';; 10488 *) 10489 lt_prog_compiler_wl='-Wl,';; 10490 esac 10491 ;; 10492 10493 sunos4*) 10494 lt_prog_compiler_wl='-Qoption ld ' 10495 lt_prog_compiler_pic='-PIC' 10496 lt_prog_compiler_static='-Bstatic' 10497 ;; 10498 10499 sysv4 | sysv4.2uw2* | sysv4.3*) 10500 lt_prog_compiler_wl='-Wl,' 10501 lt_prog_compiler_pic='-KPIC' 10502 lt_prog_compiler_static='-Bstatic' 10503 ;; 10504 10505 sysv4*MP*) 10506 if test -d /usr/nec ;then 10507 lt_prog_compiler_pic='-Kconform_pic' 10508 lt_prog_compiler_static='-Bstatic' 10509 fi 10510 ;; 10511 10512 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10513 lt_prog_compiler_wl='-Wl,' 10514 lt_prog_compiler_pic='-KPIC' 10515 lt_prog_compiler_static='-Bstatic' 10516 ;; 10517 10518 unicos*) 10519 lt_prog_compiler_wl='-Wl,' 10520 lt_prog_compiler_can_build_shared=no 10521 ;; 10522 10523 uts4*) 10524 lt_prog_compiler_pic='-pic' 10525 lt_prog_compiler_static='-Bstatic' 10526 ;; 10527 10528 *) 10529 lt_prog_compiler_can_build_shared=no 10530 ;; 10531 esac 10532 fi 10533 10534case $host_os in 10535 # For platforms which do not support PIC, -DPIC is meaningless: 10536 *djgpp*) 10537 lt_prog_compiler_pic= 10538 ;; 10539 *) 10540 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10541 ;; 10542esac 10543 10544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10545$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10546if ${lt_cv_prog_compiler_pic+:} false; then : 10547 $as_echo_n "(cached) " >&6 10548else 10549 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10550fi 10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10552$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10553lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10554 10555# 10556# Check to make sure the PIC flag actually works. 10557# 10558if test -n "$lt_prog_compiler_pic"; then 10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10560$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10561if ${lt_cv_prog_compiler_pic_works+:} false; then : 10562 $as_echo_n "(cached) " >&6 10563else 10564 lt_cv_prog_compiler_pic_works=no 10565 ac_outfile=conftest.$ac_objext 10566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10567 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10568 # Insert the option either (1) after the last *FLAGS variable, or 10569 # (2) before a word containing "conftest.", or (3) at the end. 10570 # Note that $ac_compile itself does not contain backslashes and begins 10571 # with a dollar sign (not a hyphen), so the echo should work correctly. 10572 # The option is referenced via a variable to avoid confusing sed. 10573 lt_compile=`echo "$ac_compile" | $SED \ 10574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10576 -e 's:$: $lt_compiler_flag:'` 10577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10578 (eval "$lt_compile" 2>conftest.err) 10579 ac_status=$? 10580 cat conftest.err >&5 10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10582 if (exit $ac_status) && test -s "$ac_outfile"; then 10583 # The compiler can only warn and ignore the option if not recognized 10584 # So say no if there are warnings other than the usual output. 10585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10587 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10588 lt_cv_prog_compiler_pic_works=yes 10589 fi 10590 fi 10591 $RM conftest* 10592 10593fi 10594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10595$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10596 10597if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10598 case $lt_prog_compiler_pic in 10599 "" | " "*) ;; 10600 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10601 esac 10602else 10603 lt_prog_compiler_pic= 10604 lt_prog_compiler_can_build_shared=no 10605fi 10606 10607fi 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619# 10620# Check to make sure the static flag actually works. 10621# 10622wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10624$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10625if ${lt_cv_prog_compiler_static_works+:} false; then : 10626 $as_echo_n "(cached) " >&6 10627else 10628 lt_cv_prog_compiler_static_works=no 10629 save_LDFLAGS="$LDFLAGS" 10630 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10631 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10633 # The linker can only warn and ignore the option if not recognized 10634 # So say no if there are warnings 10635 if test -s conftest.err; then 10636 # Append any errors to the config.log. 10637 cat conftest.err 1>&5 10638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10640 if diff conftest.exp conftest.er2 >/dev/null; then 10641 lt_cv_prog_compiler_static_works=yes 10642 fi 10643 else 10644 lt_cv_prog_compiler_static_works=yes 10645 fi 10646 fi 10647 $RM -r conftest* 10648 LDFLAGS="$save_LDFLAGS" 10649 10650fi 10651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10652$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10653 10654if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10655 : 10656else 10657 lt_prog_compiler_static= 10658fi 10659 10660 10661 10662 10663 10664 10665 10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10667$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10668if ${lt_cv_prog_compiler_c_o+:} false; then : 10669 $as_echo_n "(cached) " >&6 10670else 10671 lt_cv_prog_compiler_c_o=no 10672 $RM -r conftest 2>/dev/null 10673 mkdir conftest 10674 cd conftest 10675 mkdir out 10676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10677 10678 lt_compiler_flag="-o out/conftest2.$ac_objext" 10679 # Insert the option either (1) after the last *FLAGS variable, or 10680 # (2) before a word containing "conftest.", or (3) at the end. 10681 # Note that $ac_compile itself does not contain backslashes and begins 10682 # with a dollar sign (not a hyphen), so the echo should work correctly. 10683 lt_compile=`echo "$ac_compile" | $SED \ 10684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10686 -e 's:$: $lt_compiler_flag:'` 10687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10688 (eval "$lt_compile" 2>out/conftest.err) 10689 ac_status=$? 10690 cat out/conftest.err >&5 10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10692 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10693 then 10694 # The compiler can only warn and ignore the option if not recognized 10695 # So say no if there are warnings 10696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10697 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10698 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10699 lt_cv_prog_compiler_c_o=yes 10700 fi 10701 fi 10702 chmod u+w . 2>&5 10703 $RM conftest* 10704 # SGI C++ compiler will create directory out/ii_files/ for 10705 # template instantiation 10706 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10707 $RM out/* && rmdir out 10708 cd .. 10709 $RM -r conftest 10710 $RM conftest* 10711 10712fi 10713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10714$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10715 10716 10717 10718 10719 10720 10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10722$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10723if ${lt_cv_prog_compiler_c_o+:} false; then : 10724 $as_echo_n "(cached) " >&6 10725else 10726 lt_cv_prog_compiler_c_o=no 10727 $RM -r conftest 2>/dev/null 10728 mkdir conftest 10729 cd conftest 10730 mkdir out 10731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10732 10733 lt_compiler_flag="-o out/conftest2.$ac_objext" 10734 # Insert the option either (1) after the last *FLAGS variable, or 10735 # (2) before a word containing "conftest.", or (3) at the end. 10736 # Note that $ac_compile itself does not contain backslashes and begins 10737 # with a dollar sign (not a hyphen), so the echo should work correctly. 10738 lt_compile=`echo "$ac_compile" | $SED \ 10739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10741 -e 's:$: $lt_compiler_flag:'` 10742 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10743 (eval "$lt_compile" 2>out/conftest.err) 10744 ac_status=$? 10745 cat out/conftest.err >&5 10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10747 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10748 then 10749 # The compiler can only warn and ignore the option if not recognized 10750 # So say no if there are warnings 10751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10752 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10753 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10754 lt_cv_prog_compiler_c_o=yes 10755 fi 10756 fi 10757 chmod u+w . 2>&5 10758 $RM conftest* 10759 # SGI C++ compiler will create directory out/ii_files/ for 10760 # template instantiation 10761 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10762 $RM out/* && rmdir out 10763 cd .. 10764 $RM -r conftest 10765 $RM conftest* 10766 10767fi 10768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10769$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10770 10771 10772 10773 10774hard_links="nottested" 10775if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10776 # do not overwrite the value of need_locks provided by the user 10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10778$as_echo_n "checking if we can lock with hard links... " >&6; } 10779 hard_links=yes 10780 $RM conftest* 10781 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10782 touch conftest.a 10783 ln conftest.a conftest.b 2>&5 || hard_links=no 10784 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10786$as_echo "$hard_links" >&6; } 10787 if test "$hard_links" = no; then 10788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10789$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10790 need_locks=warn 10791 fi 10792else 10793 need_locks=no 10794fi 10795 10796 10797 10798 10799 10800 10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10802$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10803 10804 runpath_var= 10805 allow_undefined_flag= 10806 always_export_symbols=no 10807 archive_cmds= 10808 archive_expsym_cmds= 10809 compiler_needs_object=no 10810 enable_shared_with_static_runtimes=no 10811 export_dynamic_flag_spec= 10812 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10813 hardcode_automatic=no 10814 hardcode_direct=no 10815 hardcode_direct_absolute=no 10816 hardcode_libdir_flag_spec= 10817 hardcode_libdir_separator= 10818 hardcode_minus_L=no 10819 hardcode_shlibpath_var=unsupported 10820 inherit_rpath=no 10821 link_all_deplibs=unknown 10822 module_cmds= 10823 module_expsym_cmds= 10824 old_archive_from_new_cmds= 10825 old_archive_from_expsyms_cmds= 10826 thread_safe_flag_spec= 10827 whole_archive_flag_spec= 10828 # include_expsyms should be a list of space-separated symbols to be *always* 10829 # included in the symbol list 10830 include_expsyms= 10831 # exclude_expsyms can be an extended regexp of symbols to exclude 10832 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10833 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10834 # as well as any symbol that contains `d'. 10835 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10837 # platforms (ab)use it in PIC code, but their linkers get confused if 10838 # the symbol is explicitly referenced. Since portable code cannot 10839 # rely on this symbol name, it's probably fine to never include it in 10840 # preloaded symbol tables. 10841 # Exclude shared library initialization/finalization symbols. 10842 extract_expsyms_cmds= 10843 10844 case $host_os in 10845 cygwin* | mingw* | pw32* | cegcc*) 10846 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10847 # When not using gcc, we currently assume that we are using 10848 # Microsoft Visual C++. 10849 if test "$GCC" != yes; then 10850 with_gnu_ld=no 10851 fi 10852 ;; 10853 interix*) 10854 # we just hope/assume this is gcc and not c89 (= MSVC++) 10855 with_gnu_ld=yes 10856 ;; 10857 openbsd*) 10858 with_gnu_ld=no 10859 ;; 10860 esac 10861 10862 ld_shlibs=yes 10863 10864 # On some targets, GNU ld is compatible enough with the native linker 10865 # that we're better off using the native interface for both. 10866 lt_use_gnu_ld_interface=no 10867 if test "$with_gnu_ld" = yes; then 10868 case $host_os in 10869 aix*) 10870 # The AIX port of GNU ld has always aspired to compatibility 10871 # with the native linker. However, as the warning in the GNU ld 10872 # block says, versions before 2.19.5* couldn't really create working 10873 # shared libraries, regardless of the interface used. 10874 case `$LD -v 2>&1` in 10875 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10876 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10877 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10878 *) 10879 lt_use_gnu_ld_interface=yes 10880 ;; 10881 esac 10882 ;; 10883 *) 10884 lt_use_gnu_ld_interface=yes 10885 ;; 10886 esac 10887 fi 10888 10889 if test "$lt_use_gnu_ld_interface" = yes; then 10890 # If archive_cmds runs LD, not CC, wlarc should be empty 10891 wlarc='${wl}' 10892 10893 # Set some defaults for GNU ld with shared library support. These 10894 # are reset later if shared libraries are not supported. Putting them 10895 # here allows them to be overridden if necessary. 10896 runpath_var=LD_RUN_PATH 10897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10898 export_dynamic_flag_spec='${wl}--export-dynamic' 10899 # ancient GNU ld didn't support --whole-archive et. al. 10900 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10901 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10902 else 10903 whole_archive_flag_spec= 10904 fi 10905 supports_anon_versioning=no 10906 case `$LD -v 2>&1` in 10907 *GNU\ gold*) supports_anon_versioning=yes ;; 10908 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10909 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10910 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10911 *\ 2.11.*) ;; # other 2.11 versions 10912 *) supports_anon_versioning=yes ;; 10913 esac 10914 10915 # See if GNU ld supports shared libraries. 10916 case $host_os in 10917 aix[3-9]*) 10918 # On AIX/PPC, the GNU linker is very broken 10919 if test "$host_cpu" != ia64; then 10920 ld_shlibs=no 10921 cat <<_LT_EOF 1>&2 10922 10923*** Warning: the GNU linker, at least up to release 2.19, is reported 10924*** to be unable to reliably create shared libraries on AIX. 10925*** Therefore, libtool is disabling shared libraries support. If you 10926*** really care for shared libraries, you may want to install binutils 10927*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10928*** You will then need to restart the configuration process. 10929 10930_LT_EOF 10931 fi 10932 ;; 10933 10934 amigaos*) 10935 case $host_cpu in 10936 powerpc) 10937 # see comment about AmigaOS4 .so support 10938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10939 archive_expsym_cmds='' 10940 ;; 10941 m68k) 10942 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)' 10943 hardcode_libdir_flag_spec='-L$libdir' 10944 hardcode_minus_L=yes 10945 ;; 10946 esac 10947 ;; 10948 10949 beos*) 10950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10951 allow_undefined_flag=unsupported 10952 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10953 # support --undefined. This deserves some investigation. FIXME 10954 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10955 else 10956 ld_shlibs=no 10957 fi 10958 ;; 10959 10960 cygwin* | mingw* | pw32* | cegcc*) 10961 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10962 # as there is no search path for DLLs. 10963 hardcode_libdir_flag_spec='-L$libdir' 10964 export_dynamic_flag_spec='${wl}--export-all-symbols' 10965 allow_undefined_flag=unsupported 10966 always_export_symbols=no 10967 enable_shared_with_static_runtimes=yes 10968 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' 10969 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10970 10971 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10973 # If the export-symbols file already is a .def file (1st line 10974 # is EXPORTS), use it as is; otherwise, prepend... 10975 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10976 cp $export_symbols $output_objdir/$soname.def; 10977 else 10978 echo EXPORTS > $output_objdir/$soname.def; 10979 cat $export_symbols >> $output_objdir/$soname.def; 10980 fi~ 10981 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10982 else 10983 ld_shlibs=no 10984 fi 10985 ;; 10986 10987 haiku*) 10988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10989 link_all_deplibs=yes 10990 ;; 10991 10992 interix[3-9]*) 10993 hardcode_direct=no 10994 hardcode_shlibpath_var=no 10995 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10996 export_dynamic_flag_spec='${wl}-E' 10997 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10998 # Instead, shared libraries are loaded at an image base (0x10000000 by 10999 # default) and relocated if they conflict, which is a slow very memory 11000 # consuming and fragmenting process. To avoid this, we pick a random, 11001 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11002 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11003 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11004 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' 11005 ;; 11006 11007 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11008 tmp_diet=no 11009 if test "$host_os" = linux-dietlibc; then 11010 case $cc_basename in 11011 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11012 esac 11013 fi 11014 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11015 && test "$tmp_diet" = no 11016 then 11017 tmp_addflag=' $pic_flag' 11018 tmp_sharedflag='-shared' 11019 case $cc_basename,$host_cpu in 11020 pgcc*) # Portland Group C compiler 11021 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' 11022 tmp_addflag=' $pic_flag' 11023 ;; 11024 pgf77* | pgf90* | pgf95* | pgfortran*) 11025 # Portland Group f77 and f90 compilers 11026 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' 11027 tmp_addflag=' $pic_flag -Mnomain' ;; 11028 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11029 tmp_addflag=' -i_dynamic' ;; 11030 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11031 tmp_addflag=' -i_dynamic -nofor_main' ;; 11032 ifc* | ifort*) # Intel Fortran compiler 11033 tmp_addflag=' -nofor_main' ;; 11034 lf95*) # Lahey Fortran 8.1 11035 whole_archive_flag_spec= 11036 tmp_sharedflag='--shared' ;; 11037 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11038 tmp_sharedflag='-qmkshrobj' 11039 tmp_addflag= ;; 11040 nvcc*) # Cuda Compiler Driver 2.2 11041 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' 11042 compiler_needs_object=yes 11043 ;; 11044 esac 11045 case `$CC -V 2>&1 | sed 5q` in 11046 *Sun\ C*) # Sun C 5.9 11047 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' 11048 compiler_needs_object=yes 11049 tmp_sharedflag='-G' ;; 11050 *Sun\ F*) # Sun Fortran 8.3 11051 tmp_sharedflag='-G' ;; 11052 esac 11053 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11054 11055 if test "x$supports_anon_versioning" = xyes; then 11056 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11058 echo "local: *; };" >> $output_objdir/$libname.ver~ 11059 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11060 fi 11061 11062 case $cc_basename in 11063 xlf* | bgf* | bgxlf* | mpixlf*) 11064 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11065 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11067 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11068 if test "x$supports_anon_versioning" = xyes; then 11069 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11071 echo "local: *; };" >> $output_objdir/$libname.ver~ 11072 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11073 fi 11074 ;; 11075 esac 11076 else 11077 ld_shlibs=no 11078 fi 11079 ;; 11080 11081 netbsd*) 11082 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11083 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11084 wlarc= 11085 else 11086 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11087 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11088 fi 11089 ;; 11090 11091 solaris*) 11092 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11093 ld_shlibs=no 11094 cat <<_LT_EOF 1>&2 11095 11096*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11097*** create shared libraries on Solaris systems. Therefore, libtool 11098*** is disabling shared libraries support. We urge you to upgrade GNU 11099*** binutils to release 2.9.1 or newer. Another option is to modify 11100*** your PATH or compiler configuration so that the native linker is 11101*** used, and then restart. 11102 11103_LT_EOF 11104 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11105 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11106 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11107 else 11108 ld_shlibs=no 11109 fi 11110 ;; 11111 11112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11113 case `$LD -v 2>&1` in 11114 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11115 ld_shlibs=no 11116 cat <<_LT_EOF 1>&2 11117 11118*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11119*** reliably create shared libraries on SCO systems. Therefore, libtool 11120*** is disabling shared libraries support. We urge you to upgrade GNU 11121*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11122*** your PATH or compiler configuration so that the native linker is 11123*** used, and then restart. 11124 11125_LT_EOF 11126 ;; 11127 *) 11128 # For security reasons, it is highly recommended that you always 11129 # use absolute paths for naming shared libraries, and exclude the 11130 # DT_RUNPATH tag from executables and libraries. But doing so 11131 # requires that you compile everything twice, which is a pain. 11132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11135 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11136 else 11137 ld_shlibs=no 11138 fi 11139 ;; 11140 esac 11141 ;; 11142 11143 sunos4*) 11144 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11145 wlarc= 11146 hardcode_direct=yes 11147 hardcode_shlibpath_var=no 11148 ;; 11149 11150 *) 11151 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11152 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11153 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11154 else 11155 ld_shlibs=no 11156 fi 11157 ;; 11158 esac 11159 11160 if test "$ld_shlibs" = no; then 11161 runpath_var= 11162 hardcode_libdir_flag_spec= 11163 export_dynamic_flag_spec= 11164 whole_archive_flag_spec= 11165 fi 11166 else 11167 # PORTME fill in a description of your system's linker (not GNU ld) 11168 case $host_os in 11169 aix3*) 11170 allow_undefined_flag=unsupported 11171 always_export_symbols=yes 11172 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' 11173 # Note: this linker hardcodes the directories in LIBPATH if there 11174 # are no directories specified by -L. 11175 hardcode_minus_L=yes 11176 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11177 # Neither direct hardcoding nor static linking is supported with a 11178 # broken collect2. 11179 hardcode_direct=unsupported 11180 fi 11181 ;; 11182 11183 aix[4-9]*) 11184 if test "$host_cpu" = ia64; then 11185 # On IA64, the linker does run time linking by default, so we don't 11186 # have to do anything special. 11187 aix_use_runtimelinking=no 11188 exp_sym_flag='-Bexport' 11189 no_entry_flag="" 11190 else 11191 # If we're using GNU nm, then we don't want the "-C" option. 11192 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11193 # Also, AIX nm treats weak defined symbols like other global 11194 # defined symbols, whereas GNU nm marks them as "W". 11195 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11196 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11197 else 11198 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11199 fi 11200 aix_use_runtimelinking=no 11201 11202 # Test if we are trying to use run time linking or normal 11203 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11204 # need to do runtime linking. 11205 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11206 for ld_flag in $LDFLAGS; do 11207 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11208 aix_use_runtimelinking=yes 11209 break 11210 fi 11211 done 11212 ;; 11213 esac 11214 11215 exp_sym_flag='-bexport' 11216 no_entry_flag='-bnoentry' 11217 fi 11218 11219 # When large executables or shared objects are built, AIX ld can 11220 # have problems creating the table of contents. If linking a library 11221 # or program results in "error TOC overflow" add -mminimal-toc to 11222 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11223 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11224 11225 archive_cmds='' 11226 hardcode_direct=yes 11227 hardcode_direct_absolute=yes 11228 hardcode_libdir_separator=':' 11229 link_all_deplibs=yes 11230 file_list_spec='${wl}-f,' 11231 11232 if test "$GCC" = yes; then 11233 case $host_os in aix4.[012]|aix4.[012].*) 11234 # We only want to do this on AIX 4.2 and lower, the check 11235 # below for broken collect2 doesn't work under 4.3+ 11236 collect2name=`${CC} -print-prog-name=collect2` 11237 if test -f "$collect2name" && 11238 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11239 then 11240 # We have reworked collect2 11241 : 11242 else 11243 # We have old collect2 11244 hardcode_direct=unsupported 11245 # It fails to find uninstalled libraries when the uninstalled 11246 # path is not listed in the libpath. Setting hardcode_minus_L 11247 # to unsupported forces relinking 11248 hardcode_minus_L=yes 11249 hardcode_libdir_flag_spec='-L$libdir' 11250 hardcode_libdir_separator= 11251 fi 11252 ;; 11253 esac 11254 shared_flag='-shared' 11255 if test "$aix_use_runtimelinking" = yes; then 11256 shared_flag="$shared_flag "'${wl}-G' 11257 fi 11258 else 11259 # not using gcc 11260 if test "$host_cpu" = ia64; then 11261 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11262 # chokes on -Wl,-G. The following line is correct: 11263 shared_flag='-G' 11264 else 11265 if test "$aix_use_runtimelinking" = yes; then 11266 shared_flag='${wl}-G' 11267 else 11268 shared_flag='${wl}-bM:SRE' 11269 fi 11270 fi 11271 fi 11272 11273 export_dynamic_flag_spec='${wl}-bexpall' 11274 # It seems that -bexpall does not export symbols beginning with 11275 # underscore (_), so it is better to generate a list of symbols to export. 11276 always_export_symbols=yes 11277 if test "$aix_use_runtimelinking" = yes; then 11278 # Warning - without using the other runtime loading flags (-brtl), 11279 # -berok will link without error, but may produce a broken library. 11280 allow_undefined_flag='-berok' 11281 # Determine the default libpath from the value encoded in an 11282 # empty executable. 11283 if test "${lt_cv_aix_libpath+set}" = set; then 11284 aix_libpath=$lt_cv_aix_libpath 11285else 11286 if ${lt_cv_aix_libpath_+:} false; then : 11287 $as_echo_n "(cached) " >&6 11288else 11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11290/* end confdefs.h. */ 11291 11292int 11293main () 11294{ 11295 11296 ; 11297 return 0; 11298} 11299_ACEOF 11300if ac_fn_c_try_link "$LINENO"; then : 11301 11302 lt_aix_libpath_sed=' 11303 /Import File Strings/,/^$/ { 11304 /^0/ { 11305 s/^0 *\([^ ]*\) *$/\1/ 11306 p 11307 } 11308 }' 11309 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11310 # Check for a 64-bit object if we didn't find anything. 11311 if test -z "$lt_cv_aix_libpath_"; then 11312 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11313 fi 11314fi 11315rm -f core conftest.err conftest.$ac_objext \ 11316 conftest$ac_exeext conftest.$ac_ext 11317 if test -z "$lt_cv_aix_libpath_"; then 11318 lt_cv_aix_libpath_="/usr/lib:/lib" 11319 fi 11320 11321fi 11322 11323 aix_libpath=$lt_cv_aix_libpath_ 11324fi 11325 11326 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11327 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11328 else 11329 if test "$host_cpu" = ia64; then 11330 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11331 allow_undefined_flag="-z nodefs" 11332 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" 11333 else 11334 # Determine the default libpath from the value encoded in an 11335 # empty executable. 11336 if test "${lt_cv_aix_libpath+set}" = set; then 11337 aix_libpath=$lt_cv_aix_libpath 11338else 11339 if ${lt_cv_aix_libpath_+:} false; then : 11340 $as_echo_n "(cached) " >&6 11341else 11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11343/* end confdefs.h. */ 11344 11345int 11346main () 11347{ 11348 11349 ; 11350 return 0; 11351} 11352_ACEOF 11353if ac_fn_c_try_link "$LINENO"; then : 11354 11355 lt_aix_libpath_sed=' 11356 /Import File Strings/,/^$/ { 11357 /^0/ { 11358 s/^0 *\([^ ]*\) *$/\1/ 11359 p 11360 } 11361 }' 11362 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11363 # Check for a 64-bit object if we didn't find anything. 11364 if test -z "$lt_cv_aix_libpath_"; then 11365 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11366 fi 11367fi 11368rm -f core conftest.err conftest.$ac_objext \ 11369 conftest$ac_exeext conftest.$ac_ext 11370 if test -z "$lt_cv_aix_libpath_"; then 11371 lt_cv_aix_libpath_="/usr/lib:/lib" 11372 fi 11373 11374fi 11375 11376 aix_libpath=$lt_cv_aix_libpath_ 11377fi 11378 11379 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11380 # Warning - without using the other run time loading flags, 11381 # -berok will link without error, but may produce a broken library. 11382 no_undefined_flag=' ${wl}-bernotok' 11383 allow_undefined_flag=' ${wl}-berok' 11384 if test "$with_gnu_ld" = yes; then 11385 # We only use this code for GNU lds that support --whole-archive. 11386 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11387 else 11388 # Exported symbols can be pulled into shared objects from archives 11389 whole_archive_flag_spec='$convenience' 11390 fi 11391 archive_cmds_need_lc=yes 11392 # This is similar to how AIX traditionally builds its shared libraries. 11393 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11394 fi 11395 fi 11396 ;; 11397 11398 amigaos*) 11399 case $host_cpu in 11400 powerpc) 11401 # see comment about AmigaOS4 .so support 11402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11403 archive_expsym_cmds='' 11404 ;; 11405 m68k) 11406 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)' 11407 hardcode_libdir_flag_spec='-L$libdir' 11408 hardcode_minus_L=yes 11409 ;; 11410 esac 11411 ;; 11412 11413 bsdi[45]*) 11414 export_dynamic_flag_spec=-rdynamic 11415 ;; 11416 11417 cygwin* | mingw* | pw32* | cegcc*) 11418 # When not using gcc, we currently assume that we are using 11419 # Microsoft Visual C++. 11420 # hardcode_libdir_flag_spec is actually meaningless, as there is 11421 # no search path for DLLs. 11422 case $cc_basename in 11423 cl*) 11424 # Native MSVC 11425 hardcode_libdir_flag_spec=' ' 11426 allow_undefined_flag=unsupported 11427 always_export_symbols=yes 11428 file_list_spec='@' 11429 # Tell ltmain to make .lib files, not .a files. 11430 libext=lib 11431 # Tell ltmain to make .dll files, not .so files. 11432 shrext_cmds=".dll" 11433 # FIXME: Setting linknames here is a bad hack. 11434 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 11435 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11436 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 11437 else 11438 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 11439 fi~ 11440 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11441 linknames=' 11442 # The linker will not automatically build a static lib if we build a DLL. 11443 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11444 enable_shared_with_static_runtimes=yes 11445 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11446 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11447 # Don't use ranlib 11448 old_postinstall_cmds='chmod 644 $oldlib' 11449 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11450 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11451 case $lt_outputfile in 11452 *.exe|*.EXE) ;; 11453 *) 11454 lt_outputfile="$lt_outputfile.exe" 11455 lt_tool_outputfile="$lt_tool_outputfile.exe" 11456 ;; 11457 esac~ 11458 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 11459 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11460 $RM "$lt_outputfile.manifest"; 11461 fi' 11462 ;; 11463 *) 11464 # Assume MSVC wrapper 11465 hardcode_libdir_flag_spec=' ' 11466 allow_undefined_flag=unsupported 11467 # Tell ltmain to make .lib files, not .a files. 11468 libext=lib 11469 # Tell ltmain to make .dll files, not .so files. 11470 shrext_cmds=".dll" 11471 # FIXME: Setting linknames here is a bad hack. 11472 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11473 # The linker will automatically build a .lib file if we build a DLL. 11474 old_archive_from_new_cmds='true' 11475 # FIXME: Should let the user specify the lib program. 11476 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11477 enable_shared_with_static_runtimes=yes 11478 ;; 11479 esac 11480 ;; 11481 11482 darwin* | rhapsody*) 11483 11484 11485 archive_cmds_need_lc=no 11486 hardcode_direct=no 11487 hardcode_automatic=yes 11488 hardcode_shlibpath_var=unsupported 11489 if test "$lt_cv_ld_force_load" = "yes"; then 11490 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\"`' 11491 11492 else 11493 whole_archive_flag_spec='' 11494 fi 11495 link_all_deplibs=yes 11496 allow_undefined_flag="$_lt_dar_allow_undefined" 11497 case $cc_basename in 11498 ifort*) _lt_dar_can_shared=yes ;; 11499 *) _lt_dar_can_shared=$GCC ;; 11500 esac 11501 if test "$_lt_dar_can_shared" = "yes"; then 11502 output_verbose_link_cmd=func_echo_all 11503 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11504 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11505 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}" 11506 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}" 11507 11508 else 11509 ld_shlibs=no 11510 fi 11511 11512 ;; 11513 11514 dgux*) 11515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11516 hardcode_libdir_flag_spec='-L$libdir' 11517 hardcode_shlibpath_var=no 11518 ;; 11519 11520 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11521 # support. Future versions do this automatically, but an explicit c++rt0.o 11522 # does not break anything, and helps significantly (at the cost of a little 11523 # extra space). 11524 freebsd2.2*) 11525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11526 hardcode_libdir_flag_spec='-R$libdir' 11527 hardcode_direct=yes 11528 hardcode_shlibpath_var=no 11529 ;; 11530 11531 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11532 freebsd2.*) 11533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11534 hardcode_direct=yes 11535 hardcode_minus_L=yes 11536 hardcode_shlibpath_var=no 11537 ;; 11538 11539 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11540 freebsd* | dragonfly*) 11541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11542 hardcode_libdir_flag_spec='-R$libdir' 11543 hardcode_direct=yes 11544 hardcode_shlibpath_var=no 11545 ;; 11546 11547 hpux9*) 11548 if test "$GCC" = yes; then 11549 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11550 else 11551 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11552 fi 11553 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11554 hardcode_libdir_separator=: 11555 hardcode_direct=yes 11556 11557 # hardcode_minus_L: Not really in the search PATH, 11558 # but as the default location of the library. 11559 hardcode_minus_L=yes 11560 export_dynamic_flag_spec='${wl}-E' 11561 ;; 11562 11563 hpux10*) 11564 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11565 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11566 else 11567 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11568 fi 11569 if test "$with_gnu_ld" = no; then 11570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11571 hardcode_libdir_separator=: 11572 hardcode_direct=yes 11573 hardcode_direct_absolute=yes 11574 export_dynamic_flag_spec='${wl}-E' 11575 # hardcode_minus_L: Not really in the search PATH, 11576 # but as the default location of the library. 11577 hardcode_minus_L=yes 11578 fi 11579 ;; 11580 11581 hpux11*) 11582 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11583 case $host_cpu in 11584 hppa*64*) 11585 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11586 ;; 11587 ia64*) 11588 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11589 ;; 11590 *) 11591 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11592 ;; 11593 esac 11594 else 11595 case $host_cpu in 11596 hppa*64*) 11597 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11598 ;; 11599 ia64*) 11600 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11601 ;; 11602 *) 11603 11604 # Older versions of the 11.00 compiler do not understand -b yet 11605 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11607$as_echo_n "checking if $CC understands -b... " >&6; } 11608if ${lt_cv_prog_compiler__b+:} false; then : 11609 $as_echo_n "(cached) " >&6 11610else 11611 lt_cv_prog_compiler__b=no 11612 save_LDFLAGS="$LDFLAGS" 11613 LDFLAGS="$LDFLAGS -b" 11614 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11615 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11616 # The linker can only warn and ignore the option if not recognized 11617 # So say no if there are warnings 11618 if test -s conftest.err; then 11619 # Append any errors to the config.log. 11620 cat conftest.err 1>&5 11621 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11623 if diff conftest.exp conftest.er2 >/dev/null; then 11624 lt_cv_prog_compiler__b=yes 11625 fi 11626 else 11627 lt_cv_prog_compiler__b=yes 11628 fi 11629 fi 11630 $RM -r conftest* 11631 LDFLAGS="$save_LDFLAGS" 11632 11633fi 11634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11635$as_echo "$lt_cv_prog_compiler__b" >&6; } 11636 11637if test x"$lt_cv_prog_compiler__b" = xyes; then 11638 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11639else 11640 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11641fi 11642 11643 ;; 11644 esac 11645 fi 11646 if test "$with_gnu_ld" = no; then 11647 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11648 hardcode_libdir_separator=: 11649 11650 case $host_cpu in 11651 hppa*64*|ia64*) 11652 hardcode_direct=no 11653 hardcode_shlibpath_var=no 11654 ;; 11655 *) 11656 hardcode_direct=yes 11657 hardcode_direct_absolute=yes 11658 export_dynamic_flag_spec='${wl}-E' 11659 11660 # hardcode_minus_L: Not really in the search PATH, 11661 # but as the default location of the library. 11662 hardcode_minus_L=yes 11663 ;; 11664 esac 11665 fi 11666 ;; 11667 11668 irix5* | irix6* | nonstopux*) 11669 if test "$GCC" = yes; then 11670 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' 11671 # Try to use the -exported_symbol ld option, if it does not 11672 # work, assume that -exports_file does not work either and 11673 # implicitly export all symbols. 11674 # This should be the same for all languages, so no per-tag cache variable. 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11676$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11677if ${lt_cv_irix_exported_symbol+:} false; then : 11678 $as_echo_n "(cached) " >&6 11679else 11680 save_LDFLAGS="$LDFLAGS" 11681 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11683/* end confdefs.h. */ 11684int foo (void) { return 0; } 11685_ACEOF 11686if ac_fn_c_try_link "$LINENO"; then : 11687 lt_cv_irix_exported_symbol=yes 11688else 11689 lt_cv_irix_exported_symbol=no 11690fi 11691rm -f core conftest.err conftest.$ac_objext \ 11692 conftest$ac_exeext conftest.$ac_ext 11693 LDFLAGS="$save_LDFLAGS" 11694fi 11695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11696$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11697 if test "$lt_cv_irix_exported_symbol" = yes; then 11698 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' 11699 fi 11700 else 11701 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' 11702 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' 11703 fi 11704 archive_cmds_need_lc='no' 11705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11706 hardcode_libdir_separator=: 11707 inherit_rpath=yes 11708 link_all_deplibs=yes 11709 ;; 11710 11711 netbsd*) 11712 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11713 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11714 else 11715 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11716 fi 11717 hardcode_libdir_flag_spec='-R$libdir' 11718 hardcode_direct=yes 11719 hardcode_shlibpath_var=no 11720 ;; 11721 11722 newsos6) 11723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11724 hardcode_direct=yes 11725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11726 hardcode_libdir_separator=: 11727 hardcode_shlibpath_var=no 11728 ;; 11729 11730 *nto* | *qnx*) 11731 ;; 11732 11733 openbsd*) 11734 if test -f /usr/libexec/ld.so; then 11735 hardcode_direct=yes 11736 hardcode_shlibpath_var=no 11737 hardcode_direct_absolute=yes 11738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11740 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11741 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11742 export_dynamic_flag_spec='${wl}-E' 11743 else 11744 case $host_os in 11745 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11747 hardcode_libdir_flag_spec='-R$libdir' 11748 ;; 11749 *) 11750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11752 ;; 11753 esac 11754 fi 11755 else 11756 ld_shlibs=no 11757 fi 11758 ;; 11759 11760 os2*) 11761 hardcode_libdir_flag_spec='-L$libdir' 11762 hardcode_minus_L=yes 11763 allow_undefined_flag=unsupported 11764 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 11765 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11766 ;; 11767 11768 osf3*) 11769 if test "$GCC" = yes; then 11770 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11771 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' 11772 else 11773 allow_undefined_flag=' -expect_unresolved \*' 11774 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' 11775 fi 11776 archive_cmds_need_lc='no' 11777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11778 hardcode_libdir_separator=: 11779 ;; 11780 11781 osf4* | osf5*) # as osf3* with the addition of -msym flag 11782 if test "$GCC" = yes; then 11783 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11784 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' 11785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11786 else 11787 allow_undefined_flag=' -expect_unresolved \*' 11788 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' 11789 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~ 11790 $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' 11791 11792 # Both c and cxx compiler support -rpath directly 11793 hardcode_libdir_flag_spec='-rpath $libdir' 11794 fi 11795 archive_cmds_need_lc='no' 11796 hardcode_libdir_separator=: 11797 ;; 11798 11799 solaris*) 11800 no_undefined_flag=' -z defs' 11801 if test "$GCC" = yes; then 11802 wlarc='${wl}' 11803 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11804 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11805 $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' 11806 else 11807 case `$CC -V 2>&1` in 11808 *"Compilers 5.0"*) 11809 wlarc='' 11810 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11811 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11812 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11813 ;; 11814 *) 11815 wlarc='${wl}' 11816 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11817 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11818 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11819 ;; 11820 esac 11821 fi 11822 hardcode_libdir_flag_spec='-R$libdir' 11823 hardcode_shlibpath_var=no 11824 case $host_os in 11825 solaris2.[0-5] | solaris2.[0-5].*) ;; 11826 *) 11827 # The compiler driver will combine and reorder linker options, 11828 # but understands `-z linker_flag'. GCC discards it without `$wl', 11829 # but is careful enough not to reorder. 11830 # Supported since Solaris 2.6 (maybe 2.5.1?) 11831 if test "$GCC" = yes; then 11832 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11833 else 11834 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11835 fi 11836 ;; 11837 esac 11838 link_all_deplibs=yes 11839 ;; 11840 11841 sunos4*) 11842 if test "x$host_vendor" = xsequent; then 11843 # Use $CC to link under sequent, because it throws in some extra .o 11844 # files that make .init and .fini sections work. 11845 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11846 else 11847 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11848 fi 11849 hardcode_libdir_flag_spec='-L$libdir' 11850 hardcode_direct=yes 11851 hardcode_minus_L=yes 11852 hardcode_shlibpath_var=no 11853 ;; 11854 11855 sysv4) 11856 case $host_vendor in 11857 sni) 11858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11859 hardcode_direct=yes # is this really true??? 11860 ;; 11861 siemens) 11862 ## LD is ld it makes a PLAMLIB 11863 ## CC just makes a GrossModule. 11864 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11865 reload_cmds='$CC -r -o $output$reload_objs' 11866 hardcode_direct=no 11867 ;; 11868 motorola) 11869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11870 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11871 ;; 11872 esac 11873 runpath_var='LD_RUN_PATH' 11874 hardcode_shlibpath_var=no 11875 ;; 11876 11877 sysv4.3*) 11878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11879 hardcode_shlibpath_var=no 11880 export_dynamic_flag_spec='-Bexport' 11881 ;; 11882 11883 sysv4*MP*) 11884 if test -d /usr/nec; then 11885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11886 hardcode_shlibpath_var=no 11887 runpath_var=LD_RUN_PATH 11888 hardcode_runpath_var=yes 11889 ld_shlibs=yes 11890 fi 11891 ;; 11892 11893 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11894 no_undefined_flag='${wl}-z,text' 11895 archive_cmds_need_lc=no 11896 hardcode_shlibpath_var=no 11897 runpath_var='LD_RUN_PATH' 11898 11899 if test "$GCC" = yes; then 11900 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11901 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11902 else 11903 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11904 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11905 fi 11906 ;; 11907 11908 sysv5* | sco3.2v5* | sco5v6*) 11909 # Note: We can NOT use -z defs as we might desire, because we do not 11910 # link with -lc, and that would cause any symbols used from libc to 11911 # always be unresolved, which means just about no library would 11912 # ever link correctly. If we're not using GNU ld we use -z text 11913 # though, which does catch some bad symbols but isn't as heavy-handed 11914 # as -z defs. 11915 no_undefined_flag='${wl}-z,text' 11916 allow_undefined_flag='${wl}-z,nodefs' 11917 archive_cmds_need_lc=no 11918 hardcode_shlibpath_var=no 11919 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11920 hardcode_libdir_separator=':' 11921 link_all_deplibs=yes 11922 export_dynamic_flag_spec='${wl}-Bexport' 11923 runpath_var='LD_RUN_PATH' 11924 11925 if test "$GCC" = yes; then 11926 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11927 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11928 else 11929 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11930 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11931 fi 11932 ;; 11933 11934 uts4*) 11935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11936 hardcode_libdir_flag_spec='-L$libdir' 11937 hardcode_shlibpath_var=no 11938 ;; 11939 11940 *) 11941 ld_shlibs=no 11942 ;; 11943 esac 11944 11945 if test x$host_vendor = xsni; then 11946 case $host in 11947 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11948 export_dynamic_flag_spec='${wl}-Blargedynsym' 11949 ;; 11950 esac 11951 fi 11952 fi 11953 11954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11955$as_echo "$ld_shlibs" >&6; } 11956test "$ld_shlibs" = no && can_build_shared=no 11957 11958with_gnu_ld=$with_gnu_ld 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974# 11975# Do we need to explicitly link libc? 11976# 11977case "x$archive_cmds_need_lc" in 11978x|xyes) 11979 # Assume -lc should be added 11980 archive_cmds_need_lc=yes 11981 11982 if test "$enable_shared" = yes && test "$GCC" = yes; then 11983 case $archive_cmds in 11984 *'~'*) 11985 # FIXME: we may have to deal with multi-command sequences. 11986 ;; 11987 '$CC '*) 11988 # Test whether the compiler implicitly links with -lc since on some 11989 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11990 # to ld, don't add -lc before -lgcc. 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11992$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11993if ${lt_cv_archive_cmds_need_lc+:} false; then : 11994 $as_echo_n "(cached) " >&6 11995else 11996 $RM conftest* 11997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11998 11999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12000 (eval $ac_compile) 2>&5 12001 ac_status=$? 12002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12003 test $ac_status = 0; } 2>conftest.err; then 12004 soname=conftest 12005 lib=conftest 12006 libobjs=conftest.$ac_objext 12007 deplibs= 12008 wl=$lt_prog_compiler_wl 12009 pic_flag=$lt_prog_compiler_pic 12010 compiler_flags=-v 12011 linker_flags=-v 12012 verstring= 12013 output_objdir=. 12014 libname=conftest 12015 lt_save_allow_undefined_flag=$allow_undefined_flag 12016 allow_undefined_flag= 12017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12018 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12019 ac_status=$? 12020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12021 test $ac_status = 0; } 12022 then 12023 lt_cv_archive_cmds_need_lc=no 12024 else 12025 lt_cv_archive_cmds_need_lc=yes 12026 fi 12027 allow_undefined_flag=$lt_save_allow_undefined_flag 12028 else 12029 cat conftest.err 1>&5 12030 fi 12031 $RM conftest* 12032 12033fi 12034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12035$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12036 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12037 ;; 12038 esac 12039 fi 12040 ;; 12041esac 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12195$as_echo_n "checking dynamic linker characteristics... " >&6; } 12196 12197if test "$GCC" = yes; then 12198 case $host_os in 12199 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12200 *) lt_awk_arg="/^libraries:/" ;; 12201 esac 12202 case $host_os in 12203 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12204 *) lt_sed_strip_eq="s,=/,/,g" ;; 12205 esac 12206 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12207 case $lt_search_path_spec in 12208 *\;*) 12209 # if the path contains ";" then we assume it to be the separator 12210 # otherwise default to the standard path separator (i.e. ":") - it is 12211 # assumed that no part of a normal pathname contains ";" but that should 12212 # okay in the real world where ";" in dirpaths is itself problematic. 12213 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12214 ;; 12215 *) 12216 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12217 ;; 12218 esac 12219 # Ok, now we have the path, separated by spaces, we can step through it 12220 # and add multilib dir if necessary. 12221 lt_tmp_lt_search_path_spec= 12222 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12223 for lt_sys_path in $lt_search_path_spec; do 12224 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12225 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12226 else 12227 test -d "$lt_sys_path" && \ 12228 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12229 fi 12230 done 12231 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12232BEGIN {RS=" "; FS="/|\n";} { 12233 lt_foo=""; 12234 lt_count=0; 12235 for (lt_i = NF; lt_i > 0; lt_i--) { 12236 if ($lt_i != "" && $lt_i != ".") { 12237 if ($lt_i == "..") { 12238 lt_count++; 12239 } else { 12240 if (lt_count == 0) { 12241 lt_foo="/" $lt_i lt_foo; 12242 } else { 12243 lt_count--; 12244 } 12245 } 12246 } 12247 } 12248 if (lt_foo != "") { lt_freq[lt_foo]++; } 12249 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12250}'` 12251 # AWK program above erroneously prepends '/' to C:/dos/paths 12252 # for these hosts. 12253 case $host_os in 12254 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12255 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12256 esac 12257 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12258else 12259 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12260fi 12261library_names_spec= 12262libname_spec='lib$name' 12263soname_spec= 12264shrext_cmds=".so" 12265postinstall_cmds= 12266postuninstall_cmds= 12267finish_cmds= 12268finish_eval= 12269shlibpath_var= 12270shlibpath_overrides_runpath=unknown 12271version_type=none 12272dynamic_linker="$host_os ld.so" 12273sys_lib_dlsearch_path_spec="/lib /usr/lib" 12274need_lib_prefix=unknown 12275hardcode_into_libs=no 12276 12277# when you set need_version to no, make sure it does not cause -set_version 12278# flags to be left without arguments 12279need_version=unknown 12280 12281case $host_os in 12282aix3*) 12283 version_type=linux # correct to gnu/linux during the next big refactor 12284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12285 shlibpath_var=LIBPATH 12286 12287 # AIX 3 has no versioning support, so we append a major version to the name. 12288 soname_spec='${libname}${release}${shared_ext}$major' 12289 ;; 12290 12291aix[4-9]*) 12292 version_type=linux # correct to gnu/linux during the next big refactor 12293 need_lib_prefix=no 12294 need_version=no 12295 hardcode_into_libs=yes 12296 if test "$host_cpu" = ia64; then 12297 # AIX 5 supports IA64 12298 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12299 shlibpath_var=LD_LIBRARY_PATH 12300 else 12301 # With GCC up to 2.95.x, collect2 would create an import file 12302 # for dependence libraries. The import file would start with 12303 # the line `#! .'. This would cause the generated library to 12304 # depend on `.', always an invalid library. This was fixed in 12305 # development snapshots of GCC prior to 3.0. 12306 case $host_os in 12307 aix4 | aix4.[01] | aix4.[01].*) 12308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12309 echo ' yes ' 12310 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12311 : 12312 else 12313 can_build_shared=no 12314 fi 12315 ;; 12316 esac 12317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12318 # soname into executable. Probably we can add versioning support to 12319 # collect2, so additional links can be useful in future. 12320 if test "$aix_use_runtimelinking" = yes; then 12321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12322 # instead of lib<name>.a to let people know that these are not 12323 # typical AIX shared libraries. 12324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12325 else 12326 # We preserve .a as extension for shared libraries through AIX4.2 12327 # and later when we are not doing run time linking. 12328 library_names_spec='${libname}${release}.a $libname.a' 12329 soname_spec='${libname}${release}${shared_ext}$major' 12330 fi 12331 shlibpath_var=LIBPATH 12332 fi 12333 ;; 12334 12335amigaos*) 12336 case $host_cpu in 12337 powerpc) 12338 # Since July 2007 AmigaOS4 officially supports .so libraries. 12339 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12341 ;; 12342 m68k) 12343 library_names_spec='$libname.ixlibrary $libname.a' 12344 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12345 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 12346 ;; 12347 esac 12348 ;; 12349 12350beos*) 12351 library_names_spec='${libname}${shared_ext}' 12352 dynamic_linker="$host_os ld.so" 12353 shlibpath_var=LIBRARY_PATH 12354 ;; 12355 12356bsdi[45]*) 12357 version_type=linux # correct to gnu/linux during the next big refactor 12358 need_version=no 12359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12360 soname_spec='${libname}${release}${shared_ext}$major' 12361 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12362 shlibpath_var=LD_LIBRARY_PATH 12363 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12364 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12365 # the default ld.so.conf also contains /usr/contrib/lib and 12366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12367 # libtool to hard-code these into programs 12368 ;; 12369 12370cygwin* | mingw* | pw32* | cegcc*) 12371 version_type=windows 12372 shrext_cmds=".dll" 12373 need_version=no 12374 need_lib_prefix=no 12375 12376 case $GCC,$cc_basename in 12377 yes,*) 12378 # gcc 12379 library_names_spec='$libname.dll.a' 12380 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12381 postinstall_cmds='base_file=`basename \${file}`~ 12382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12383 dldir=$destdir/`dirname \$dlpath`~ 12384 test -d \$dldir || mkdir -p \$dldir~ 12385 $install_prog $dir/$dlname \$dldir/$dlname~ 12386 chmod a+x \$dldir/$dlname~ 12387 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12388 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12389 fi' 12390 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12391 dlpath=$dir/\$dldll~ 12392 $RM \$dlpath' 12393 shlibpath_overrides_runpath=yes 12394 12395 case $host_os in 12396 cygwin*) 12397 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12398 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12399 12400 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12401 ;; 12402 mingw* | cegcc*) 12403 # MinGW DLLs use traditional 'lib' prefix 12404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12405 ;; 12406 pw32*) 12407 # pw32 DLLs use 'pw' prefix rather than 'lib' 12408 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12409 ;; 12410 esac 12411 dynamic_linker='Win32 ld.exe' 12412 ;; 12413 12414 *,cl*) 12415 # Native MSVC 12416 libname_spec='$name' 12417 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12418 library_names_spec='${libname}.dll.lib' 12419 12420 case $build_os in 12421 mingw*) 12422 sys_lib_search_path_spec= 12423 lt_save_ifs=$IFS 12424 IFS=';' 12425 for lt_path in $LIB 12426 do 12427 IFS=$lt_save_ifs 12428 # Let DOS variable expansion print the short 8.3 style file name. 12429 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12430 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12431 done 12432 IFS=$lt_save_ifs 12433 # Convert to MSYS style. 12434 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12435 ;; 12436 cygwin*) 12437 # Convert to unix form, then to dos form, then back to unix form 12438 # but this time dos style (no spaces!) so that the unix form looks 12439 # like /cygdrive/c/PROGRA~1:/cygdr... 12440 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12441 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12442 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12443 ;; 12444 *) 12445 sys_lib_search_path_spec="$LIB" 12446 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12447 # It is most probably a Windows format PATH. 12448 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12449 else 12450 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12451 fi 12452 # FIXME: find the short name or the path components, as spaces are 12453 # common. (e.g. "Program Files" -> "PROGRA~1") 12454 ;; 12455 esac 12456 12457 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12458 postinstall_cmds='base_file=`basename \${file}`~ 12459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12460 dldir=$destdir/`dirname \$dlpath`~ 12461 test -d \$dldir || mkdir -p \$dldir~ 12462 $install_prog $dir/$dlname \$dldir/$dlname' 12463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12464 dlpath=$dir/\$dldll~ 12465 $RM \$dlpath' 12466 shlibpath_overrides_runpath=yes 12467 dynamic_linker='Win32 link.exe' 12468 ;; 12469 12470 *) 12471 # Assume MSVC wrapper 12472 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12473 dynamic_linker='Win32 ld.exe' 12474 ;; 12475 esac 12476 # FIXME: first we should search . and the directory the executable is in 12477 shlibpath_var=PATH 12478 ;; 12479 12480darwin* | rhapsody*) 12481 dynamic_linker="$host_os dyld" 12482 version_type=darwin 12483 need_lib_prefix=no 12484 need_version=no 12485 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12486 soname_spec='${libname}${release}${major}$shared_ext' 12487 shlibpath_overrides_runpath=yes 12488 shlibpath_var=DYLD_LIBRARY_PATH 12489 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12490 12491 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12492 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12493 ;; 12494 12495dgux*) 12496 version_type=linux # correct to gnu/linux during the next big refactor 12497 need_lib_prefix=no 12498 need_version=no 12499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12500 soname_spec='${libname}${release}${shared_ext}$major' 12501 shlibpath_var=LD_LIBRARY_PATH 12502 ;; 12503 12504freebsd* | dragonfly*) 12505 # DragonFly does not have aout. When/if they implement a new 12506 # versioning mechanism, adjust this. 12507 if test -x /usr/bin/objformat; then 12508 objformat=`/usr/bin/objformat` 12509 else 12510 case $host_os in 12511 freebsd[23].*) objformat=aout ;; 12512 *) objformat=elf ;; 12513 esac 12514 fi 12515 version_type=freebsd-$objformat 12516 case $version_type in 12517 freebsd-elf*) 12518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12519 need_version=no 12520 need_lib_prefix=no 12521 ;; 12522 freebsd-*) 12523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12524 need_version=yes 12525 ;; 12526 esac 12527 shlibpath_var=LD_LIBRARY_PATH 12528 case $host_os in 12529 freebsd2.*) 12530 shlibpath_overrides_runpath=yes 12531 ;; 12532 freebsd3.[01]* | freebsdelf3.[01]*) 12533 shlibpath_overrides_runpath=yes 12534 hardcode_into_libs=yes 12535 ;; 12536 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12537 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12538 shlibpath_overrides_runpath=no 12539 hardcode_into_libs=yes 12540 ;; 12541 *) # from 4.6 on, and DragonFly 12542 shlibpath_overrides_runpath=yes 12543 hardcode_into_libs=yes 12544 ;; 12545 esac 12546 ;; 12547 12548gnu*) 12549 version_type=linux # correct to gnu/linux during the next big refactor 12550 need_lib_prefix=no 12551 need_version=no 12552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12553 soname_spec='${libname}${release}${shared_ext}$major' 12554 shlibpath_var=LD_LIBRARY_PATH 12555 shlibpath_overrides_runpath=no 12556 hardcode_into_libs=yes 12557 ;; 12558 12559haiku*) 12560 version_type=linux # correct to gnu/linux during the next big refactor 12561 need_lib_prefix=no 12562 need_version=no 12563 dynamic_linker="$host_os runtime_loader" 12564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12565 soname_spec='${libname}${release}${shared_ext}$major' 12566 shlibpath_var=LIBRARY_PATH 12567 shlibpath_overrides_runpath=yes 12568 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12569 hardcode_into_libs=yes 12570 ;; 12571 12572hpux9* | hpux10* | hpux11*) 12573 # Give a soname corresponding to the major version so that dld.sl refuses to 12574 # link against other versions. 12575 version_type=sunos 12576 need_lib_prefix=no 12577 need_version=no 12578 case $host_cpu in 12579 ia64*) 12580 shrext_cmds='.so' 12581 hardcode_into_libs=yes 12582 dynamic_linker="$host_os dld.so" 12583 shlibpath_var=LD_LIBRARY_PATH 12584 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12586 soname_spec='${libname}${release}${shared_ext}$major' 12587 if test "X$HPUX_IA64_MODE" = X32; then 12588 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12589 else 12590 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12591 fi 12592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12593 ;; 12594 hppa*64*) 12595 shrext_cmds='.sl' 12596 hardcode_into_libs=yes 12597 dynamic_linker="$host_os dld.sl" 12598 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12601 soname_spec='${libname}${release}${shared_ext}$major' 12602 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12604 ;; 12605 *) 12606 shrext_cmds='.sl' 12607 dynamic_linker="$host_os dld.sl" 12608 shlibpath_var=SHLIB_PATH 12609 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12611 soname_spec='${libname}${release}${shared_ext}$major' 12612 ;; 12613 esac 12614 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12615 postinstall_cmds='chmod 555 $lib' 12616 # or fails outright, so override atomically: 12617 install_override_mode=555 12618 ;; 12619 12620interix[3-9]*) 12621 version_type=linux # correct to gnu/linux during the next big refactor 12622 need_lib_prefix=no 12623 need_version=no 12624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12625 soname_spec='${libname}${release}${shared_ext}$major' 12626 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12627 shlibpath_var=LD_LIBRARY_PATH 12628 shlibpath_overrides_runpath=no 12629 hardcode_into_libs=yes 12630 ;; 12631 12632irix5* | irix6* | nonstopux*) 12633 case $host_os in 12634 nonstopux*) version_type=nonstopux ;; 12635 *) 12636 if test "$lt_cv_prog_gnu_ld" = yes; then 12637 version_type=linux # correct to gnu/linux during the next big refactor 12638 else 12639 version_type=irix 12640 fi ;; 12641 esac 12642 need_lib_prefix=no 12643 need_version=no 12644 soname_spec='${libname}${release}${shared_ext}$major' 12645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12646 case $host_os in 12647 irix5* | nonstopux*) 12648 libsuff= shlibsuff= 12649 ;; 12650 *) 12651 case $LD in # libtool.m4 will add one of these switches to LD 12652 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12653 libsuff= shlibsuff= libmagic=32-bit;; 12654 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12655 libsuff=32 shlibsuff=N32 libmagic=N32;; 12656 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12657 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12658 *) libsuff= shlibsuff= libmagic=never-match;; 12659 esac 12660 ;; 12661 esac 12662 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12663 shlibpath_overrides_runpath=no 12664 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12665 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12666 hardcode_into_libs=yes 12667 ;; 12668 12669# No shared lib support for Linux oldld, aout, or coff. 12670linux*oldld* | linux*aout* | linux*coff*) 12671 dynamic_linker=no 12672 ;; 12673 12674# This must be glibc/ELF. 12675linux* | k*bsd*-gnu | kopensolaris*-gnu) 12676 version_type=linux # correct to gnu/linux during the next big refactor 12677 need_lib_prefix=no 12678 need_version=no 12679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12680 soname_spec='${libname}${release}${shared_ext}$major' 12681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12682 shlibpath_var=LD_LIBRARY_PATH 12683 shlibpath_overrides_runpath=no 12684 12685 # Some binutils ld are patched to set DT_RUNPATH 12686 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12687 $as_echo_n "(cached) " >&6 12688else 12689 lt_cv_shlibpath_overrides_runpath=no 12690 save_LDFLAGS=$LDFLAGS 12691 save_libdir=$libdir 12692 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12693 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12695/* end confdefs.h. */ 12696 12697int 12698main () 12699{ 12700 12701 ; 12702 return 0; 12703} 12704_ACEOF 12705if ac_fn_c_try_link "$LINENO"; then : 12706 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12707 lt_cv_shlibpath_overrides_runpath=yes 12708fi 12709fi 12710rm -f core conftest.err conftest.$ac_objext \ 12711 conftest$ac_exeext conftest.$ac_ext 12712 LDFLAGS=$save_LDFLAGS 12713 libdir=$save_libdir 12714 12715fi 12716 12717 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12718 12719 # This implies no fast_install, which is unacceptable. 12720 # Some rework will be needed to allow for fast_install 12721 # before this can be enabled. 12722 hardcode_into_libs=yes 12723 12724 # Add ABI-specific directories to the system library path. 12725 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12726 12727 # Append ld.so.conf contents to the search path 12728 if test -f /etc/ld.so.conf; then 12729 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' ' '` 12730 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12731 12732 fi 12733 12734 # We used to test for /lib/ld.so.1 and disable shared libraries on 12735 # powerpc, because MkLinux only supported shared libraries with the 12736 # GNU dynamic linker. Since this was broken with cross compilers, 12737 # most powerpc-linux boxes support dynamic linking these days and 12738 # people can always --disable-shared, the test was removed, and we 12739 # assume the GNU/Linux dynamic linker is in use. 12740 dynamic_linker='GNU/Linux ld.so' 12741 ;; 12742 12743netbsd*) 12744 version_type=sunos 12745 need_lib_prefix=no 12746 need_version=no 12747 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12750 dynamic_linker='NetBSD (a.out) ld.so' 12751 else 12752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12753 soname_spec='${libname}${release}${shared_ext}$major' 12754 dynamic_linker='NetBSD ld.elf_so' 12755 fi 12756 shlibpath_var=LD_LIBRARY_PATH 12757 shlibpath_overrides_runpath=yes 12758 hardcode_into_libs=yes 12759 ;; 12760 12761newsos6) 12762 version_type=linux # correct to gnu/linux during the next big refactor 12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12764 shlibpath_var=LD_LIBRARY_PATH 12765 shlibpath_overrides_runpath=yes 12766 ;; 12767 12768*nto* | *qnx*) 12769 version_type=qnx 12770 need_lib_prefix=no 12771 need_version=no 12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12773 soname_spec='${libname}${release}${shared_ext}$major' 12774 shlibpath_var=LD_LIBRARY_PATH 12775 shlibpath_overrides_runpath=no 12776 hardcode_into_libs=yes 12777 dynamic_linker='ldqnx.so' 12778 ;; 12779 12780openbsd*) 12781 version_type=sunos 12782 sys_lib_dlsearch_path_spec="/usr/lib" 12783 need_lib_prefix=no 12784 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12785 case $host_os in 12786 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12787 *) need_version=no ;; 12788 esac 12789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12791 shlibpath_var=LD_LIBRARY_PATH 12792 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12793 case $host_os in 12794 openbsd2.[89] | openbsd2.[89].*) 12795 shlibpath_overrides_runpath=no 12796 ;; 12797 *) 12798 shlibpath_overrides_runpath=yes 12799 ;; 12800 esac 12801 else 12802 shlibpath_overrides_runpath=yes 12803 fi 12804 ;; 12805 12806os2*) 12807 libname_spec='$name' 12808 shrext_cmds=".dll" 12809 need_lib_prefix=no 12810 library_names_spec='$libname${shared_ext} $libname.a' 12811 dynamic_linker='OS/2 ld.exe' 12812 shlibpath_var=LIBPATH 12813 ;; 12814 12815osf3* | osf4* | osf5*) 12816 version_type=osf 12817 need_lib_prefix=no 12818 need_version=no 12819 soname_spec='${libname}${release}${shared_ext}$major' 12820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12821 shlibpath_var=LD_LIBRARY_PATH 12822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12823 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12824 ;; 12825 12826rdos*) 12827 dynamic_linker=no 12828 ;; 12829 12830solaris*) 12831 version_type=linux # correct to gnu/linux during the next big refactor 12832 need_lib_prefix=no 12833 need_version=no 12834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12835 soname_spec='${libname}${release}${shared_ext}$major' 12836 shlibpath_var=LD_LIBRARY_PATH 12837 shlibpath_overrides_runpath=yes 12838 hardcode_into_libs=yes 12839 # ldd complains unless libraries are executable 12840 postinstall_cmds='chmod +x $lib' 12841 ;; 12842 12843sunos4*) 12844 version_type=sunos 12845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12846 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12847 shlibpath_var=LD_LIBRARY_PATH 12848 shlibpath_overrides_runpath=yes 12849 if test "$with_gnu_ld" = yes; then 12850 need_lib_prefix=no 12851 fi 12852 need_version=yes 12853 ;; 12854 12855sysv4 | sysv4.3*) 12856 version_type=linux # correct to gnu/linux during the next big refactor 12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12858 soname_spec='${libname}${release}${shared_ext}$major' 12859 shlibpath_var=LD_LIBRARY_PATH 12860 case $host_vendor in 12861 sni) 12862 shlibpath_overrides_runpath=no 12863 need_lib_prefix=no 12864 runpath_var=LD_RUN_PATH 12865 ;; 12866 siemens) 12867 need_lib_prefix=no 12868 ;; 12869 motorola) 12870 need_lib_prefix=no 12871 need_version=no 12872 shlibpath_overrides_runpath=no 12873 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12874 ;; 12875 esac 12876 ;; 12877 12878sysv4*MP*) 12879 if test -d /usr/nec ;then 12880 version_type=linux # correct to gnu/linux during the next big refactor 12881 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12882 soname_spec='$libname${shared_ext}.$major' 12883 shlibpath_var=LD_LIBRARY_PATH 12884 fi 12885 ;; 12886 12887sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12888 version_type=freebsd-elf 12889 need_lib_prefix=no 12890 need_version=no 12891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12892 soname_spec='${libname}${release}${shared_ext}$major' 12893 shlibpath_var=LD_LIBRARY_PATH 12894 shlibpath_overrides_runpath=yes 12895 hardcode_into_libs=yes 12896 if test "$with_gnu_ld" = yes; then 12897 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12898 else 12899 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12900 case $host_os in 12901 sco3.2v5*) 12902 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12903 ;; 12904 esac 12905 fi 12906 sys_lib_dlsearch_path_spec='/usr/lib' 12907 ;; 12908 12909tpf*) 12910 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12911 version_type=linux # correct to gnu/linux during the next big refactor 12912 need_lib_prefix=no 12913 need_version=no 12914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12915 shlibpath_var=LD_LIBRARY_PATH 12916 shlibpath_overrides_runpath=no 12917 hardcode_into_libs=yes 12918 ;; 12919 12920uts4*) 12921 version_type=linux # correct to gnu/linux during the next big refactor 12922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12923 soname_spec='${libname}${release}${shared_ext}$major' 12924 shlibpath_var=LD_LIBRARY_PATH 12925 ;; 12926 12927*) 12928 dynamic_linker=no 12929 ;; 12930esac 12931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12932$as_echo "$dynamic_linker" >&6; } 12933test "$dynamic_linker" = no && can_build_shared=no 12934 12935variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12936if test "$GCC" = yes; then 12937 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12938fi 12939 12940if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12941 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12942fi 12943if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12944 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12945fi 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13039$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13040hardcode_action= 13041if test -n "$hardcode_libdir_flag_spec" || 13042 test -n "$runpath_var" || 13043 test "X$hardcode_automatic" = "Xyes" ; then 13044 13045 # We can hardcode non-existent directories. 13046 if test "$hardcode_direct" != no && 13047 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13048 # have to relink, otherwise we might link with an installed library 13049 # when we should be linking with a yet-to-be-installed one 13050 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13051 test "$hardcode_minus_L" != no; then 13052 # Linking always hardcodes the temporary library directory. 13053 hardcode_action=relink 13054 else 13055 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13056 hardcode_action=immediate 13057 fi 13058else 13059 # We cannot hardcode anything, or else we can only hardcode existing 13060 # directories. 13061 hardcode_action=unsupported 13062fi 13063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13064$as_echo "$hardcode_action" >&6; } 13065 13066if test "$hardcode_action" = relink || 13067 test "$inherit_rpath" = yes; then 13068 # Fast installation is not supported 13069 enable_fast_install=no 13070elif test "$shlibpath_overrides_runpath" = yes || 13071 test "$enable_shared" = no; then 13072 # Fast installation is not necessary 13073 enable_fast_install=needless 13074fi 13075 13076 13077 13078 13079 13080 13081 if test "x$enable_dlopen" != xyes; then 13082 enable_dlopen=unknown 13083 enable_dlopen_self=unknown 13084 enable_dlopen_self_static=unknown 13085else 13086 lt_cv_dlopen=no 13087 lt_cv_dlopen_libs= 13088 13089 case $host_os in 13090 beos*) 13091 lt_cv_dlopen="load_add_on" 13092 lt_cv_dlopen_libs= 13093 lt_cv_dlopen_self=yes 13094 ;; 13095 13096 mingw* | pw32* | cegcc*) 13097 lt_cv_dlopen="LoadLibrary" 13098 lt_cv_dlopen_libs= 13099 ;; 13100 13101 cygwin*) 13102 lt_cv_dlopen="dlopen" 13103 lt_cv_dlopen_libs= 13104 ;; 13105 13106 darwin*) 13107 # if libdl is installed we need to link against it 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13109$as_echo_n "checking for dlopen in -ldl... " >&6; } 13110if ${ac_cv_lib_dl_dlopen+:} false; then : 13111 $as_echo_n "(cached) " >&6 13112else 13113 ac_check_lib_save_LIBS=$LIBS 13114LIBS="-ldl $LIBS" 13115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13116/* end confdefs.h. */ 13117 13118/* Override any GCC internal prototype to avoid an error. 13119 Use char because int might match the return type of a GCC 13120 builtin and then its argument prototype would still apply. */ 13121#ifdef __cplusplus 13122extern "C" 13123#endif 13124char dlopen (); 13125int 13126main () 13127{ 13128return dlopen (); 13129 ; 13130 return 0; 13131} 13132_ACEOF 13133if ac_fn_c_try_link "$LINENO"; then : 13134 ac_cv_lib_dl_dlopen=yes 13135else 13136 ac_cv_lib_dl_dlopen=no 13137fi 13138rm -f core conftest.err conftest.$ac_objext \ 13139 conftest$ac_exeext conftest.$ac_ext 13140LIBS=$ac_check_lib_save_LIBS 13141fi 13142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13143$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13144if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13145 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13146else 13147 13148 lt_cv_dlopen="dyld" 13149 lt_cv_dlopen_libs= 13150 lt_cv_dlopen_self=yes 13151 13152fi 13153 13154 ;; 13155 13156 *) 13157 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13158if test "x$ac_cv_func_shl_load" = xyes; then : 13159 lt_cv_dlopen="shl_load" 13160else 13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13162$as_echo_n "checking for shl_load in -ldld... " >&6; } 13163if ${ac_cv_lib_dld_shl_load+:} false; then : 13164 $as_echo_n "(cached) " >&6 13165else 13166 ac_check_lib_save_LIBS=$LIBS 13167LIBS="-ldld $LIBS" 13168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13169/* end confdefs.h. */ 13170 13171/* Override any GCC internal prototype to avoid an error. 13172 Use char because int might match the return type of a GCC 13173 builtin and then its argument prototype would still apply. */ 13174#ifdef __cplusplus 13175extern "C" 13176#endif 13177char shl_load (); 13178int 13179main () 13180{ 13181return shl_load (); 13182 ; 13183 return 0; 13184} 13185_ACEOF 13186if ac_fn_c_try_link "$LINENO"; then : 13187 ac_cv_lib_dld_shl_load=yes 13188else 13189 ac_cv_lib_dld_shl_load=no 13190fi 13191rm -f core conftest.err conftest.$ac_objext \ 13192 conftest$ac_exeext conftest.$ac_ext 13193LIBS=$ac_check_lib_save_LIBS 13194fi 13195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13196$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13197if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13198 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13199else 13200 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13201if test "x$ac_cv_func_dlopen" = xyes; then : 13202 lt_cv_dlopen="dlopen" 13203else 13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13205$as_echo_n "checking for dlopen in -ldl... " >&6; } 13206if ${ac_cv_lib_dl_dlopen+:} false; then : 13207 $as_echo_n "(cached) " >&6 13208else 13209 ac_check_lib_save_LIBS=$LIBS 13210LIBS="-ldl $LIBS" 13211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13212/* end confdefs.h. */ 13213 13214/* Override any GCC internal prototype to avoid an error. 13215 Use char because int might match the return type of a GCC 13216 builtin and then its argument prototype would still apply. */ 13217#ifdef __cplusplus 13218extern "C" 13219#endif 13220char dlopen (); 13221int 13222main () 13223{ 13224return dlopen (); 13225 ; 13226 return 0; 13227} 13228_ACEOF 13229if ac_fn_c_try_link "$LINENO"; then : 13230 ac_cv_lib_dl_dlopen=yes 13231else 13232 ac_cv_lib_dl_dlopen=no 13233fi 13234rm -f core conftest.err conftest.$ac_objext \ 13235 conftest$ac_exeext conftest.$ac_ext 13236LIBS=$ac_check_lib_save_LIBS 13237fi 13238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13239$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13240if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13241 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13242else 13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13244$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13245if ${ac_cv_lib_svld_dlopen+:} false; then : 13246 $as_echo_n "(cached) " >&6 13247else 13248 ac_check_lib_save_LIBS=$LIBS 13249LIBS="-lsvld $LIBS" 13250cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13251/* end confdefs.h. */ 13252 13253/* Override any GCC internal prototype to avoid an error. 13254 Use char because int might match the return type of a GCC 13255 builtin and then its argument prototype would still apply. */ 13256#ifdef __cplusplus 13257extern "C" 13258#endif 13259char dlopen (); 13260int 13261main () 13262{ 13263return dlopen (); 13264 ; 13265 return 0; 13266} 13267_ACEOF 13268if ac_fn_c_try_link "$LINENO"; then : 13269 ac_cv_lib_svld_dlopen=yes 13270else 13271 ac_cv_lib_svld_dlopen=no 13272fi 13273rm -f core conftest.err conftest.$ac_objext \ 13274 conftest$ac_exeext conftest.$ac_ext 13275LIBS=$ac_check_lib_save_LIBS 13276fi 13277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13278$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13279if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13280 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13281else 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13283$as_echo_n "checking for dld_link in -ldld... " >&6; } 13284if ${ac_cv_lib_dld_dld_link+:} false; then : 13285 $as_echo_n "(cached) " >&6 13286else 13287 ac_check_lib_save_LIBS=$LIBS 13288LIBS="-ldld $LIBS" 13289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13290/* end confdefs.h. */ 13291 13292/* Override any GCC internal prototype to avoid an error. 13293 Use char because int might match the return type of a GCC 13294 builtin and then its argument prototype would still apply. */ 13295#ifdef __cplusplus 13296extern "C" 13297#endif 13298char dld_link (); 13299int 13300main () 13301{ 13302return dld_link (); 13303 ; 13304 return 0; 13305} 13306_ACEOF 13307if ac_fn_c_try_link "$LINENO"; then : 13308 ac_cv_lib_dld_dld_link=yes 13309else 13310 ac_cv_lib_dld_dld_link=no 13311fi 13312rm -f core conftest.err conftest.$ac_objext \ 13313 conftest$ac_exeext conftest.$ac_ext 13314LIBS=$ac_check_lib_save_LIBS 13315fi 13316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13317$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13318if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13319 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13320fi 13321 13322 13323fi 13324 13325 13326fi 13327 13328 13329fi 13330 13331 13332fi 13333 13334 13335fi 13336 13337 ;; 13338 esac 13339 13340 if test "x$lt_cv_dlopen" != xno; then 13341 enable_dlopen=yes 13342 else 13343 enable_dlopen=no 13344 fi 13345 13346 case $lt_cv_dlopen in 13347 dlopen) 13348 save_CPPFLAGS="$CPPFLAGS" 13349 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13350 13351 save_LDFLAGS="$LDFLAGS" 13352 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13353 13354 save_LIBS="$LIBS" 13355 LIBS="$lt_cv_dlopen_libs $LIBS" 13356 13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13358$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13359if ${lt_cv_dlopen_self+:} false; then : 13360 $as_echo_n "(cached) " >&6 13361else 13362 if test "$cross_compiling" = yes; then : 13363 lt_cv_dlopen_self=cross 13364else 13365 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13366 lt_status=$lt_dlunknown 13367 cat > conftest.$ac_ext <<_LT_EOF 13368#line $LINENO "configure" 13369#include "confdefs.h" 13370 13371#if HAVE_DLFCN_H 13372#include <dlfcn.h> 13373#endif 13374 13375#include <stdio.h> 13376 13377#ifdef RTLD_GLOBAL 13378# define LT_DLGLOBAL RTLD_GLOBAL 13379#else 13380# ifdef DL_GLOBAL 13381# define LT_DLGLOBAL DL_GLOBAL 13382# else 13383# define LT_DLGLOBAL 0 13384# endif 13385#endif 13386 13387/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13388 find out it does not work in some platform. */ 13389#ifndef LT_DLLAZY_OR_NOW 13390# ifdef RTLD_LAZY 13391# define LT_DLLAZY_OR_NOW RTLD_LAZY 13392# else 13393# ifdef DL_LAZY 13394# define LT_DLLAZY_OR_NOW DL_LAZY 13395# else 13396# ifdef RTLD_NOW 13397# define LT_DLLAZY_OR_NOW RTLD_NOW 13398# else 13399# ifdef DL_NOW 13400# define LT_DLLAZY_OR_NOW DL_NOW 13401# else 13402# define LT_DLLAZY_OR_NOW 0 13403# endif 13404# endif 13405# endif 13406# endif 13407#endif 13408 13409/* When -fvisbility=hidden is used, assume the code has been annotated 13410 correspondingly for the symbols needed. */ 13411#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13412int fnord () __attribute__((visibility("default"))); 13413#endif 13414 13415int fnord () { return 42; } 13416int main () 13417{ 13418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13419 int status = $lt_dlunknown; 13420 13421 if (self) 13422 { 13423 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13424 else 13425 { 13426 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13427 else puts (dlerror ()); 13428 } 13429 /* dlclose (self); */ 13430 } 13431 else 13432 puts (dlerror ()); 13433 13434 return status; 13435} 13436_LT_EOF 13437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13438 (eval $ac_link) 2>&5 13439 ac_status=$? 13440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13441 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13442 (./conftest; exit; ) >&5 2>/dev/null 13443 lt_status=$? 13444 case x$lt_status in 13445 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13446 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13447 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13448 esac 13449 else : 13450 # compilation failed 13451 lt_cv_dlopen_self=no 13452 fi 13453fi 13454rm -fr conftest* 13455 13456 13457fi 13458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13459$as_echo "$lt_cv_dlopen_self" >&6; } 13460 13461 if test "x$lt_cv_dlopen_self" = xyes; then 13462 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13464$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13465if ${lt_cv_dlopen_self_static+:} false; then : 13466 $as_echo_n "(cached) " >&6 13467else 13468 if test "$cross_compiling" = yes; then : 13469 lt_cv_dlopen_self_static=cross 13470else 13471 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13472 lt_status=$lt_dlunknown 13473 cat > conftest.$ac_ext <<_LT_EOF 13474#line $LINENO "configure" 13475#include "confdefs.h" 13476 13477#if HAVE_DLFCN_H 13478#include <dlfcn.h> 13479#endif 13480 13481#include <stdio.h> 13482 13483#ifdef RTLD_GLOBAL 13484# define LT_DLGLOBAL RTLD_GLOBAL 13485#else 13486# ifdef DL_GLOBAL 13487# define LT_DLGLOBAL DL_GLOBAL 13488# else 13489# define LT_DLGLOBAL 0 13490# endif 13491#endif 13492 13493/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13494 find out it does not work in some platform. */ 13495#ifndef LT_DLLAZY_OR_NOW 13496# ifdef RTLD_LAZY 13497# define LT_DLLAZY_OR_NOW RTLD_LAZY 13498# else 13499# ifdef DL_LAZY 13500# define LT_DLLAZY_OR_NOW DL_LAZY 13501# else 13502# ifdef RTLD_NOW 13503# define LT_DLLAZY_OR_NOW RTLD_NOW 13504# else 13505# ifdef DL_NOW 13506# define LT_DLLAZY_OR_NOW DL_NOW 13507# else 13508# define LT_DLLAZY_OR_NOW 0 13509# endif 13510# endif 13511# endif 13512# endif 13513#endif 13514 13515/* When -fvisbility=hidden is used, assume the code has been annotated 13516 correspondingly for the symbols needed. */ 13517#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13518int fnord () __attribute__((visibility("default"))); 13519#endif 13520 13521int fnord () { return 42; } 13522int main () 13523{ 13524 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13525 int status = $lt_dlunknown; 13526 13527 if (self) 13528 { 13529 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13530 else 13531 { 13532 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13533 else puts (dlerror ()); 13534 } 13535 /* dlclose (self); */ 13536 } 13537 else 13538 puts (dlerror ()); 13539 13540 return status; 13541} 13542_LT_EOF 13543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13544 (eval $ac_link) 2>&5 13545 ac_status=$? 13546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13547 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13548 (./conftest; exit; ) >&5 2>/dev/null 13549 lt_status=$? 13550 case x$lt_status in 13551 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13552 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13553 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13554 esac 13555 else : 13556 # compilation failed 13557 lt_cv_dlopen_self_static=no 13558 fi 13559fi 13560rm -fr conftest* 13561 13562 13563fi 13564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13565$as_echo "$lt_cv_dlopen_self_static" >&6; } 13566 fi 13567 13568 CPPFLAGS="$save_CPPFLAGS" 13569 LDFLAGS="$save_LDFLAGS" 13570 LIBS="$save_LIBS" 13571 ;; 13572 esac 13573 13574 case $lt_cv_dlopen_self in 13575 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13576 *) enable_dlopen_self=unknown ;; 13577 esac 13578 13579 case $lt_cv_dlopen_self_static in 13580 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13581 *) enable_dlopen_self_static=unknown ;; 13582 esac 13583fi 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601striplib= 13602old_striplib= 13603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13604$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13605if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13606 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13607 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13609$as_echo "yes" >&6; } 13610else 13611# FIXME - insert some real tests, host_os isn't really good enough 13612 case $host_os in 13613 darwin*) 13614 if test -n "$STRIP" ; then 13615 striplib="$STRIP -x" 13616 old_striplib="$STRIP -S" 13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13618$as_echo "yes" >&6; } 13619 else 13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13621$as_echo "no" >&6; } 13622 fi 13623 ;; 13624 *) 13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13626$as_echo "no" >&6; } 13627 ;; 13628 esac 13629fi 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 # Report which library types will actually be built 13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13644$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13646$as_echo "$can_build_shared" >&6; } 13647 13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13649$as_echo_n "checking whether to build shared libraries... " >&6; } 13650 test "$can_build_shared" = "no" && enable_shared=no 13651 13652 # On AIX, shared libraries and static libraries use the same namespace, and 13653 # are all built from PIC. 13654 case $host_os in 13655 aix3*) 13656 test "$enable_shared" = yes && enable_static=no 13657 if test -n "$RANLIB"; then 13658 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13659 postinstall_cmds='$RANLIB $lib' 13660 fi 13661 ;; 13662 13663 aix[4-9]*) 13664 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13665 test "$enable_shared" = yes && enable_static=no 13666 fi 13667 ;; 13668 esac 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13670$as_echo "$enable_shared" >&6; } 13671 13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13673$as_echo_n "checking whether to build static libraries... " >&6; } 13674 # Make sure either enable_shared or enable_static is yes. 13675 test "$enable_shared" = yes || enable_static=yes 13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13677$as_echo "$enable_static" >&6; } 13678 13679 13680 13681 13682fi 13683ac_ext=c 13684ac_cpp='$CPP $CPPFLAGS' 13685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13687ac_compiler_gnu=$ac_cv_c_compiler_gnu 13688 13689CC="$lt_save_CC" 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 ac_config_commands="$ac_config_commands libtool" 13706 13707 13708 13709 13710# Only expand once: 13711 13712 13713 13714 13715# Checks for header files. 13716for ac_header in stdarg.h stdbool.h netinet/in.h sys/param.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 13717do : 13718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13719ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13720" 13721if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13722 cat >>confdefs.h <<_ACEOF 13723#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13724_ACEOF 13725 13726fi 13727 13728done 13729 13730 13731# check for types. 13732# Using own tests for int64* because autoconf builtin only give 32bit. 13733ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 13734if test "x$ac_cv_type_int8_t" = xyes; then : 13735 13736else 13737 13738cat >>confdefs.h <<_ACEOF 13739#define int8_t signed char 13740_ACEOF 13741 13742fi 13743 13744ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 13745if test "x$ac_cv_type_int16_t" = xyes; then : 13746 13747else 13748 13749cat >>confdefs.h <<_ACEOF 13750#define int16_t short 13751_ACEOF 13752 13753fi 13754 13755ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 13756if test "x$ac_cv_type_int32_t" = xyes; then : 13757 13758else 13759 13760cat >>confdefs.h <<_ACEOF 13761#define int32_t int 13762_ACEOF 13763 13764fi 13765 13766ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 13767if test "x$ac_cv_type_int64_t" = xyes; then : 13768 13769else 13770 13771cat >>confdefs.h <<_ACEOF 13772#define int64_t long long 13773_ACEOF 13774 13775fi 13776 13777ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 13778if test "x$ac_cv_type_uint8_t" = xyes; then : 13779 13780else 13781 13782cat >>confdefs.h <<_ACEOF 13783#define uint8_t unsigned char 13784_ACEOF 13785 13786fi 13787 13788ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 13789if test "x$ac_cv_type_uint16_t" = xyes; then : 13790 13791else 13792 13793cat >>confdefs.h <<_ACEOF 13794#define uint16_t unsigned short 13795_ACEOF 13796 13797fi 13798 13799ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 13800if test "x$ac_cv_type_uint32_t" = xyes; then : 13801 13802else 13803 13804cat >>confdefs.h <<_ACEOF 13805#define uint32_t unsigned int 13806_ACEOF 13807 13808fi 13809 13810ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 13811if test "x$ac_cv_type_uint64_t" = xyes; then : 13812 13813else 13814 13815cat >>confdefs.h <<_ACEOF 13816#define uint64_t unsigned long long 13817_ACEOF 13818 13819fi 13820 13821ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13822if test "x$ac_cv_type_size_t" = xyes; then : 13823 13824else 13825 13826cat >>confdefs.h <<_ACEOF 13827#define size_t unsigned int 13828_ACEOF 13829 13830fi 13831 13832ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 13833if test "x$ac_cv_type_ssize_t" = xyes; then : 13834 13835else 13836 13837cat >>confdefs.h <<_ACEOF 13838#define ssize_t int 13839_ACEOF 13840 13841fi 13842 13843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 13844$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 13845if ${ac_cv_type_uid_t+:} false; then : 13846 $as_echo_n "(cached) " >&6 13847else 13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13849/* end confdefs.h. */ 13850#include <sys/types.h> 13851 13852_ACEOF 13853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13854 $EGREP "uid_t" >/dev/null 2>&1; then : 13855 ac_cv_type_uid_t=yes 13856else 13857 ac_cv_type_uid_t=no 13858fi 13859rm -f conftest* 13860 13861fi 13862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 13863$as_echo "$ac_cv_type_uid_t" >&6; } 13864if test $ac_cv_type_uid_t = no; then 13865 13866$as_echo "#define uid_t int" >>confdefs.h 13867 13868 13869$as_echo "#define gid_t int" >>confdefs.h 13870 13871fi 13872 13873ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13874if test "x$ac_cv_type_pid_t" = xyes; then : 13875 13876else 13877 13878cat >>confdefs.h <<_ACEOF 13879#define pid_t int 13880_ACEOF 13881 13882fi 13883 13884ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 13885if test "x$ac_cv_type_off_t" = xyes; then : 13886 13887else 13888 13889cat >>confdefs.h <<_ACEOF 13890#define off_t long int 13891_ACEOF 13892 13893fi 13894 13895ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" " 13896$ac_includes_default 13897#ifdef HAVE_WINSOCK2_H 13898# include <winsock2.h> 13899#endif 13900 13901" 13902if test "x$ac_cv_type_u_char" = xyes; then : 13903 13904else 13905 13906$as_echo "#define u_char unsigned char" >>confdefs.h 13907 13908fi 13909 13910ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " 13911$ac_includes_default 13912#ifdef HAVE_SYS_RESOURCE_H 13913# include <sys/resource.h> 13914#endif 13915 13916" 13917if test "x$ac_cv_type_rlim_t" = xyes; then : 13918 13919else 13920 13921$as_echo "#define rlim_t unsigned long" >>confdefs.h 13922 13923fi 13924 13925 13926ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 13927$ac_includes_default 13928#ifdef HAVE_SYS_SOCKET_H 13929# include <sys/socket.h> 13930#endif 13931#ifdef HAVE_WS2TCPIP_H 13932# include <ws2tcpip.h> 13933#endif 13934 13935" 13936if test "x$ac_cv_type_socklen_t" = xyes; then : 13937 13938else 13939 13940$as_echo "#define socklen_t int" >>confdefs.h 13941 13942fi 13943 13944 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 13945$ac_includes_default 13946#ifdef HAVE_SYS_TYPES_H 13947# include <sys/types.h> 13948#endif 13949#ifdef HAVE_NETINET_IN_H 13950# include <netinet/in.h> 13951#endif 13952 13953" 13954if test "x$ac_cv_type_in_addr_t" = xyes; then : 13955 13956else 13957 13958$as_echo "#define in_addr_t uint32_t" >>confdefs.h 13959 13960fi 13961 13962 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 13963$ac_includes_default 13964#ifdef HAVE_SYS_TYPES_H 13965# include <sys/types.h> 13966#endif 13967#ifdef HAVE_NETINET_IN_H 13968# include <netinet/in.h> 13969#endif 13970 13971" 13972if test "x$ac_cv_type_in_port_t" = xyes; then : 13973 13974else 13975 13976$as_echo "#define in_port_t uint16_t" >>confdefs.h 13977 13978fi 13979 13980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 13981$as_echo_n "checking if memcmp compares unsigned... " >&6; } 13982if test "$cross_compiling" = yes; then : 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 13984$as_echo "cross-compile no" >&6; } 13985 13986$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 13987 13988 case " $LIBOBJS " in 13989 *" memcmp.$ac_objext "* ) ;; 13990 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 13991 ;; 13992esac 13993 13994 13995else 13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13997/* end confdefs.h. */ 13998 13999#include <stdio.h> 14000#include <stdlib.h> 14001#include <string.h> 14002int main(void) 14003{ 14004 char a = 255, b = 0; 14005 if(memcmp(&a, &b, 1) < 0) 14006 return 1; 14007 return 0; 14008} 14009 14010_ACEOF 14011if ac_fn_c_try_run "$LINENO"; then : 14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14013$as_echo "yes" >&6; } 14014else 14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14016$as_echo "no" >&6; } 14017 14018$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 14019 14020 case " $LIBOBJS " in 14021 *" memcmp.$ac_objext "* ) ;; 14022 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 14023 ;; 14024esac 14025 14026 14027fi 14028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14029 conftest.$ac_objext conftest.beam conftest.$ac_ext 14030fi 14031 14032 14033# The cast to long int works around a bug in the HP C Compiler 14034# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14035# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14036# This bug is HP SR number 8606223364. 14037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 14038$as_echo_n "checking size of time_t... " >&6; } 14039if ${ac_cv_sizeof_time_t+:} false; then : 14040 $as_echo_n "(cached) " >&6 14041else 14042 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 14043$ac_includes_default 14044#ifdef TIME_WITH_SYS_TIME 14045# include <sys/time.h> 14046# include <time.h> 14047#else 14048# ifdef HAVE_SYS_TIME_H 14049# include <sys/time.h> 14050# else 14051# include <time.h> 14052# endif 14053#endif 14054 14055"; then : 14056 14057else 14058 if test "$ac_cv_type_time_t" = yes; then 14059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14061as_fn_error 77 "cannot compute sizeof (time_t) 14062See \`config.log' for more details" "$LINENO" 5; } 14063 else 14064 ac_cv_sizeof_time_t=0 14065 fi 14066fi 14067 14068fi 14069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 14070$as_echo "$ac_cv_sizeof_time_t" >&6; } 14071 14072 14073 14074cat >>confdefs.h <<_ACEOF 14075#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 14076_ACEOF 14077 14078 14079 14080# add option to disable the evil rpath 14081 14082# Check whether --enable-rpath was given. 14083if test "${enable_rpath+set}" = set; then : 14084 enableval=$enable_rpath; enable_rpath=$enableval 14085else 14086 enable_rpath=yes 14087fi 14088 14089if test "x$enable_rpath" = xno; then 14090 ac_config_commands="$ac_config_commands disable-rpath" 14091 14092fi 14093 14094 14095 14096# check to see if libraries are needed for these functions. 14097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 14098$as_echo_n "checking for library containing inet_pton... " >&6; } 14099if ${ac_cv_search_inet_pton+:} false; then : 14100 $as_echo_n "(cached) " >&6 14101else 14102 ac_func_search_save_LIBS=$LIBS 14103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14104/* end confdefs.h. */ 14105 14106/* Override any GCC internal prototype to avoid an error. 14107 Use char because int might match the return type of a GCC 14108 builtin and then its argument prototype would still apply. */ 14109#ifdef __cplusplus 14110extern "C" 14111#endif 14112char inet_pton (); 14113int 14114main () 14115{ 14116return inet_pton (); 14117 ; 14118 return 0; 14119} 14120_ACEOF 14121for ac_lib in '' nsl; do 14122 if test -z "$ac_lib"; then 14123 ac_res="none required" 14124 else 14125 ac_res=-l$ac_lib 14126 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14127 fi 14128 if ac_fn_c_try_link "$LINENO"; then : 14129 ac_cv_search_inet_pton=$ac_res 14130fi 14131rm -f core conftest.err conftest.$ac_objext \ 14132 conftest$ac_exeext 14133 if ${ac_cv_search_inet_pton+:} false; then : 14134 break 14135fi 14136done 14137if ${ac_cv_search_inet_pton+:} false; then : 14138 14139else 14140 ac_cv_search_inet_pton=no 14141fi 14142rm conftest.$ac_ext 14143LIBS=$ac_func_search_save_LIBS 14144fi 14145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 14146$as_echo "$ac_cv_search_inet_pton" >&6; } 14147ac_res=$ac_cv_search_inet_pton 14148if test "$ac_res" != no; then : 14149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14150 14151fi 14152 14153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 14154$as_echo_n "checking for library containing socket... " >&6; } 14155if ${ac_cv_search_socket+:} false; then : 14156 $as_echo_n "(cached) " >&6 14157else 14158 ac_func_search_save_LIBS=$LIBS 14159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14160/* end confdefs.h. */ 14161 14162/* Override any GCC internal prototype to avoid an error. 14163 Use char because int might match the return type of a GCC 14164 builtin and then its argument prototype would still apply. */ 14165#ifdef __cplusplus 14166extern "C" 14167#endif 14168char socket (); 14169int 14170main () 14171{ 14172return socket (); 14173 ; 14174 return 0; 14175} 14176_ACEOF 14177for ac_lib in '' socket; do 14178 if test -z "$ac_lib"; then 14179 ac_res="none required" 14180 else 14181 ac_res=-l$ac_lib 14182 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14183 fi 14184 if ac_fn_c_try_link "$LINENO"; then : 14185 ac_cv_search_socket=$ac_res 14186fi 14187rm -f core conftest.err conftest.$ac_objext \ 14188 conftest$ac_exeext 14189 if ${ac_cv_search_socket+:} false; then : 14190 break 14191fi 14192done 14193if ${ac_cv_search_socket+:} false; then : 14194 14195else 14196 ac_cv_search_socket=no 14197fi 14198rm conftest.$ac_ext 14199LIBS=$ac_func_search_save_LIBS 14200fi 14201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 14202$as_echo "$ac_cv_search_socket" >&6; } 14203ac_res=$ac_cv_search_socket 14204if test "$ac_res" != no; then : 14205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14206 14207fi 14208 14209 14210# check wether strptime also works 14211 14212# check some functions of the OS before linking libs (while still runnable). 14213for ac_header in unistd.h 14214do : 14215 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 14216if test "x$ac_cv_header_unistd_h" = xyes; then : 14217 cat >>confdefs.h <<_ACEOF 14218#define HAVE_UNISTD_H 1 14219_ACEOF 14220 14221fi 14222 14223done 14224 14225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 14226$as_echo_n "checking for working chown... " >&6; } 14227if ${ac_cv_func_chown_works+:} false; then : 14228 $as_echo_n "(cached) " >&6 14229else 14230 if test "$cross_compiling" = yes; then : 14231 ac_cv_func_chown_works=no 14232else 14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14234/* end confdefs.h. */ 14235$ac_includes_default 14236#include <fcntl.h> 14237 14238int 14239main () 14240{ 14241 char *f = "conftest.chown"; 14242 struct stat before, after; 14243 14244 if (creat (f, 0600) < 0) 14245 return 1; 14246 if (stat (f, &before) < 0) 14247 return 1; 14248 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 14249 return 1; 14250 if (stat (f, &after) < 0) 14251 return 1; 14252 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 14253 14254 ; 14255 return 0; 14256} 14257_ACEOF 14258if ac_fn_c_try_run "$LINENO"; then : 14259 ac_cv_func_chown_works=yes 14260else 14261 ac_cv_func_chown_works=no 14262fi 14263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14264 conftest.$ac_objext conftest.beam conftest.$ac_ext 14265fi 14266 14267rm -f conftest.chown 14268 14269fi 14270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 14271$as_echo "$ac_cv_func_chown_works" >&6; } 14272if test $ac_cv_func_chown_works = yes; then 14273 14274$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 14275 14276fi 14277 14278for ac_header in vfork.h 14279do : 14280 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 14281if test "x$ac_cv_header_vfork_h" = xyes; then : 14282 cat >>confdefs.h <<_ACEOF 14283#define HAVE_VFORK_H 1 14284_ACEOF 14285 14286fi 14287 14288done 14289 14290for ac_func in fork vfork 14291do : 14292 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14293ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14294if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14295 cat >>confdefs.h <<_ACEOF 14296#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14297_ACEOF 14298 14299fi 14300done 14301 14302if test "x$ac_cv_func_fork" = xyes; then 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14304$as_echo_n "checking for working fork... " >&6; } 14305if ${ac_cv_func_fork_works+:} false; then : 14306 $as_echo_n "(cached) " >&6 14307else 14308 if test "$cross_compiling" = yes; then : 14309 ac_cv_func_fork_works=cross 14310else 14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14312/* end confdefs.h. */ 14313$ac_includes_default 14314int 14315main () 14316{ 14317 14318 /* By Ruediger Kuhlmann. */ 14319 return fork () < 0; 14320 14321 ; 14322 return 0; 14323} 14324_ACEOF 14325if ac_fn_c_try_run "$LINENO"; then : 14326 ac_cv_func_fork_works=yes 14327else 14328 ac_cv_func_fork_works=no 14329fi 14330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14331 conftest.$ac_objext conftest.beam conftest.$ac_ext 14332fi 14333 14334fi 14335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14336$as_echo "$ac_cv_func_fork_works" >&6; } 14337 14338else 14339 ac_cv_func_fork_works=$ac_cv_func_fork 14340fi 14341if test "x$ac_cv_func_fork_works" = xcross; then 14342 case $host in 14343 *-*-amigaos* | *-*-msdosdjgpp*) 14344 # Override, as these systems have only a dummy fork() stub 14345 ac_cv_func_fork_works=no 14346 ;; 14347 *) 14348 ac_cv_func_fork_works=yes 14349 ;; 14350 esac 14351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14352$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14353fi 14354ac_cv_func_vfork_works=$ac_cv_func_vfork 14355if test "x$ac_cv_func_vfork" = xyes; then 14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14357$as_echo_n "checking for working vfork... " >&6; } 14358if ${ac_cv_func_vfork_works+:} false; then : 14359 $as_echo_n "(cached) " >&6 14360else 14361 if test "$cross_compiling" = yes; then : 14362 ac_cv_func_vfork_works=cross 14363else 14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14365/* end confdefs.h. */ 14366/* Thanks to Paul Eggert for this test. */ 14367$ac_includes_default 14368#include <sys/wait.h> 14369#ifdef HAVE_VFORK_H 14370# include <vfork.h> 14371#endif 14372/* On some sparc systems, changes by the child to local and incoming 14373 argument registers are propagated back to the parent. The compiler 14374 is told about this with #include <vfork.h>, but some compilers 14375 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14376 static variable whose address is put into a register that is 14377 clobbered by the vfork. */ 14378static void 14379#ifdef __cplusplus 14380sparc_address_test (int arg) 14381# else 14382sparc_address_test (arg) int arg; 14383#endif 14384{ 14385 static pid_t child; 14386 if (!child) { 14387 child = vfork (); 14388 if (child < 0) { 14389 perror ("vfork"); 14390 _exit(2); 14391 } 14392 if (!child) { 14393 arg = getpid(); 14394 write(-1, "", 0); 14395 _exit (arg); 14396 } 14397 } 14398} 14399 14400int 14401main () 14402{ 14403 pid_t parent = getpid (); 14404 pid_t child; 14405 14406 sparc_address_test (0); 14407 14408 child = vfork (); 14409 14410 if (child == 0) { 14411 /* Here is another test for sparc vfork register problems. This 14412 test uses lots of local variables, at least as many local 14413 variables as main has allocated so far including compiler 14414 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14415 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14416 reuse the register of parent for one of the local variables, 14417 since it will think that parent can't possibly be used any more 14418 in this routine. Assigning to the local variable will thus 14419 munge parent in the parent process. */ 14420 pid_t 14421 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14422 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14423 /* Convince the compiler that p..p7 are live; otherwise, it might 14424 use the same hardware register for all 8 local variables. */ 14425 if (p != p1 || p != p2 || p != p3 || p != p4 14426 || p != p5 || p != p6 || p != p7) 14427 _exit(1); 14428 14429 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14430 from child file descriptors. If the child closes a descriptor 14431 before it execs or exits, this munges the parent's descriptor 14432 as well. Test for this by closing stdout in the child. */ 14433 _exit(close(fileno(stdout)) != 0); 14434 } else { 14435 int status; 14436 struct stat st; 14437 14438 while (wait(&status) != child) 14439 ; 14440 return ( 14441 /* Was there some problem with vforking? */ 14442 child < 0 14443 14444 /* Did the child fail? (This shouldn't happen.) */ 14445 || status 14446 14447 /* Did the vfork/compiler bug occur? */ 14448 || parent != getpid() 14449 14450 /* Did the file descriptor bug occur? */ 14451 || fstat(fileno(stdout), &st) != 0 14452 ); 14453 } 14454} 14455_ACEOF 14456if ac_fn_c_try_run "$LINENO"; then : 14457 ac_cv_func_vfork_works=yes 14458else 14459 ac_cv_func_vfork_works=no 14460fi 14461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14462 conftest.$ac_objext conftest.beam conftest.$ac_ext 14463fi 14464 14465fi 14466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14467$as_echo "$ac_cv_func_vfork_works" >&6; } 14468 14469fi; 14470if test "x$ac_cv_func_fork_works" = xcross; then 14471 ac_cv_func_vfork_works=$ac_cv_func_vfork 14472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14473$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14474fi 14475 14476if test "x$ac_cv_func_vfork_works" = xyes; then 14477 14478$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 14479 14480else 14481 14482$as_echo "#define vfork fork" >>confdefs.h 14483 14484fi 14485if test "x$ac_cv_func_fork_works" = xyes; then 14486 14487$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 14488 14489fi 14490 14491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 14492$as_echo_n "checking return type of signal handlers... " >&6; } 14493if ${ac_cv_type_signal+:} false; then : 14494 $as_echo_n "(cached) " >&6 14495else 14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14497/* end confdefs.h. */ 14498#include <sys/types.h> 14499#include <signal.h> 14500 14501int 14502main () 14503{ 14504return *(signal (0, 0)) (0) == 1; 14505 ; 14506 return 0; 14507} 14508_ACEOF 14509if ac_fn_c_try_compile "$LINENO"; then : 14510 ac_cv_type_signal=int 14511else 14512 ac_cv_type_signal=void 14513fi 14514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14515fi 14516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 14517$as_echo "$ac_cv_type_signal" >&6; } 14518 14519cat >>confdefs.h <<_ACEOF 14520#define RETSIGTYPE $ac_cv_type_signal 14521_ACEOF 14522 14523 14524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 14525$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 14526if ${ac_cv_sys_largefile_source+:} false; then : 14527 $as_echo_n "(cached) " >&6 14528else 14529 while :; do 14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14531/* end confdefs.h. */ 14532#include <sys/types.h> /* for off_t */ 14533 #include <stdio.h> 14534int 14535main () 14536{ 14537int (*fp) (FILE *, off_t, int) = fseeko; 14538 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14539 ; 14540 return 0; 14541} 14542_ACEOF 14543if ac_fn_c_try_link "$LINENO"; then : 14544 ac_cv_sys_largefile_source=no; break 14545fi 14546rm -f core conftest.err conftest.$ac_objext \ 14547 conftest$ac_exeext conftest.$ac_ext 14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14549/* end confdefs.h. */ 14550#define _LARGEFILE_SOURCE 1 14551#include <sys/types.h> /* for off_t */ 14552 #include <stdio.h> 14553int 14554main () 14555{ 14556int (*fp) (FILE *, off_t, int) = fseeko; 14557 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14558 ; 14559 return 0; 14560} 14561_ACEOF 14562if ac_fn_c_try_link "$LINENO"; then : 14563 ac_cv_sys_largefile_source=1; break 14564fi 14565rm -f core conftest.err conftest.$ac_objext \ 14566 conftest$ac_exeext conftest.$ac_ext 14567 ac_cv_sys_largefile_source=unknown 14568 break 14569done 14570fi 14571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 14572$as_echo "$ac_cv_sys_largefile_source" >&6; } 14573case $ac_cv_sys_largefile_source in #( 14574 no | unknown) ;; 14575 *) 14576cat >>confdefs.h <<_ACEOF 14577#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 14578_ACEOF 14579;; 14580esac 14581rm -rf conftest* 14582 14583# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 14584# in glibc 2.1.3, but that breaks too many other things. 14585# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 14586if test $ac_cv_sys_largefile_source != unknown; then 14587 14588$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 14589 14590fi 14591 14592 14593# Check whether --enable-largefile was given. 14594if test "${enable_largefile+set}" = set; then : 14595 enableval=$enable_largefile; 14596fi 14597 14598if test "$enable_largefile" != no; then 14599 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14601$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 14602if ${ac_cv_sys_largefile_CC+:} false; then : 14603 $as_echo_n "(cached) " >&6 14604else 14605 ac_cv_sys_largefile_CC=no 14606 if test "$GCC" != yes; then 14607 ac_save_CC=$CC 14608 while :; do 14609 # IRIX 6.2 and later do not support large files by default, 14610 # so use the C compiler's -n32 option if that helps. 14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14612/* end confdefs.h. */ 14613#include <sys/types.h> 14614 /* Check that off_t can represent 2**63 - 1 correctly. 14615 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14616 since some C++ compilers masquerading as C compilers 14617 incorrectly reject 9223372036854775807. */ 14618#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14620 && LARGE_OFF_T % 2147483647 == 1) 14621 ? 1 : -1]; 14622int 14623main () 14624{ 14625 14626 ; 14627 return 0; 14628} 14629_ACEOF 14630 if ac_fn_c_try_compile "$LINENO"; then : 14631 break 14632fi 14633rm -f core conftest.err conftest.$ac_objext 14634 CC="$CC -n32" 14635 if ac_fn_c_try_compile "$LINENO"; then : 14636 ac_cv_sys_largefile_CC=' -n32'; break 14637fi 14638rm -f core conftest.err conftest.$ac_objext 14639 break 14640 done 14641 CC=$ac_save_CC 14642 rm -f conftest.$ac_ext 14643 fi 14644fi 14645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14646$as_echo "$ac_cv_sys_largefile_CC" >&6; } 14647 if test "$ac_cv_sys_largefile_CC" != no; then 14648 CC=$CC$ac_cv_sys_largefile_CC 14649 fi 14650 14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14652$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14653if ${ac_cv_sys_file_offset_bits+:} false; then : 14654 $as_echo_n "(cached) " >&6 14655else 14656 while :; do 14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14658/* end confdefs.h. */ 14659#include <sys/types.h> 14660 /* Check that off_t can represent 2**63 - 1 correctly. 14661 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14662 since some C++ compilers masquerading as C compilers 14663 incorrectly reject 9223372036854775807. */ 14664#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14666 && LARGE_OFF_T % 2147483647 == 1) 14667 ? 1 : -1]; 14668int 14669main () 14670{ 14671 14672 ; 14673 return 0; 14674} 14675_ACEOF 14676if ac_fn_c_try_compile "$LINENO"; then : 14677 ac_cv_sys_file_offset_bits=no; break 14678fi 14679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14681/* end confdefs.h. */ 14682#define _FILE_OFFSET_BITS 64 14683#include <sys/types.h> 14684 /* Check that off_t can represent 2**63 - 1 correctly. 14685 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14686 since some C++ compilers masquerading as C compilers 14687 incorrectly reject 9223372036854775807. */ 14688#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14690 && LARGE_OFF_T % 2147483647 == 1) 14691 ? 1 : -1]; 14692int 14693main () 14694{ 14695 14696 ; 14697 return 0; 14698} 14699_ACEOF 14700if ac_fn_c_try_compile "$LINENO"; then : 14701 ac_cv_sys_file_offset_bits=64; break 14702fi 14703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14704 ac_cv_sys_file_offset_bits=unknown 14705 break 14706done 14707fi 14708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14709$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14710case $ac_cv_sys_file_offset_bits in #( 14711 no | unknown) ;; 14712 *) 14713cat >>confdefs.h <<_ACEOF 14714#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14715_ACEOF 14716;; 14717esac 14718rm -rf conftest* 14719 if test $ac_cv_sys_file_offset_bits = unknown; then 14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14721$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14722if ${ac_cv_sys_large_files+:} false; then : 14723 $as_echo_n "(cached) " >&6 14724else 14725 while :; do 14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14727/* end confdefs.h. */ 14728#include <sys/types.h> 14729 /* Check that off_t can represent 2**63 - 1 correctly. 14730 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14731 since some C++ compilers masquerading as C compilers 14732 incorrectly reject 9223372036854775807. */ 14733#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14735 && LARGE_OFF_T % 2147483647 == 1) 14736 ? 1 : -1]; 14737int 14738main () 14739{ 14740 14741 ; 14742 return 0; 14743} 14744_ACEOF 14745if ac_fn_c_try_compile "$LINENO"; then : 14746 ac_cv_sys_large_files=no; break 14747fi 14748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14750/* end confdefs.h. */ 14751#define _LARGE_FILES 1 14752#include <sys/types.h> 14753 /* Check that off_t can represent 2**63 - 1 correctly. 14754 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14755 since some C++ compilers masquerading as C compilers 14756 incorrectly reject 9223372036854775807. */ 14757#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14759 && LARGE_OFF_T % 2147483647 == 1) 14760 ? 1 : -1]; 14761int 14762main () 14763{ 14764 14765 ; 14766 return 0; 14767} 14768_ACEOF 14769if ac_fn_c_try_compile "$LINENO"; then : 14770 ac_cv_sys_large_files=1; break 14771fi 14772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14773 ac_cv_sys_large_files=unknown 14774 break 14775done 14776fi 14777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14778$as_echo "$ac_cv_sys_large_files" >&6; } 14779case $ac_cv_sys_large_files in #( 14780 no | unknown) ;; 14781 *) 14782cat >>confdefs.h <<_ACEOF 14783#define _LARGE_FILES $ac_cv_sys_large_files 14784_ACEOF 14785;; 14786esac 14787rm -rf conftest* 14788 fi 14789 14790 14791fi 14792 14793 14794 14795 14796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5 14797$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; } 14798cache=_D_LARGEFILE_SOURCE_1 14799if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 14800 $as_echo_n "(cached) " >&6 14801else 14802 14803echo ' 14804#include <stdio.h> 14805int test() { 14806 int a = fseeko(stdin, 0, 0); 14807 return a; 14808} 14809' > conftest.c 14810echo 'void f(){}' >>conftest.c 14811if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14812eval "cv_prog_cc_flag_needed_$cache=no" 14813else 14814 14815if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then 14816eval "cv_prog_cc_flag_needed_$cache=yes" 14817else 14818eval "cv_prog_cc_flag_needed_$cache=fail" 14819#echo 'Test with flag fails too!' 14820#cat conftest.c 14821#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 14822#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 14823#exit 1 14824fi 14825 14826fi 14827rm -f conftest conftest.c conftest.o 14828 14829fi 14830 14831if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14833$as_echo "yes" >&6; } 14834: 14835CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1" 14836else 14837if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14839$as_echo "no" >&6; } 14840#echo 'Test with flag is no!' 14841#cat conftest.c 14842#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 14843#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 14844#exit 1 14845: 14846 14847else 14848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14849$as_echo "failed" >&6; } 14850: 14851 14852fi 14853fi 14854 14855 14856 14857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 14858$as_echo_n "checking if nonblocking sockets work... " >&6; } 14859if echo $target | grep mingw32 >/dev/null; then 14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 14861$as_echo "no (windows)" >&6; } 14862 14863$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 14864 14865else 14866if test "$cross_compiling" = yes; then : 14867 14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 14869$as_echo "crosscompile(yes)" >&6; } 14870 14871else 14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14873/* end confdefs.h. */ 14874 14875 14876#include <stdio.h> 14877#include <string.h> 14878#include <stdlib.h> 14879#include <fcntl.h> 14880#include <errno.h> 14881#ifdef HAVE_SYS_TYPES_H 14882#include <sys/types.h> 14883#endif 14884#ifdef HAVE_SYS_SOCKET_H 14885#include <sys/socket.h> 14886#endif 14887#ifdef HAVE_NETINET_IN_H 14888#include <netinet/in.h> 14889#endif 14890#ifdef HAVE_ARPA_INET_H 14891#include <arpa/inet.h> 14892#endif 14893#ifdef HAVE_UNISTD_H 14894#include <unistd.h> 14895#endif 14896#ifdef HAVE_TIME_H 14897#include <time.h> 14898#endif 14899 14900int main(void) 14901{ 14902 int port; 14903 int sfd, cfd; 14904 int num = 10; 14905 int i, p; 14906 struct sockaddr_in a; 14907 /* test if select and nonblocking reads work well together */ 14908 /* open port. 14909 fork child to send 10 messages. 14910 select to read. 14911 then try to nonblocking read the 10 messages 14912 then, nonblocking read must give EAGAIN 14913 */ 14914 14915 port = 12345 + (time(0)%32); 14916 sfd = socket(PF_INET, SOCK_DGRAM, 0); 14917 if(sfd == -1) { 14918 perror("socket"); 14919 return 1; 14920 } 14921 memset(&a, 0, sizeof(a)); 14922 a.sin_family = AF_INET; 14923 a.sin_port = htons(port); 14924 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 14925 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 14926 perror("bind"); 14927 return 1; 14928 } 14929 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 14930 perror("fcntl"); 14931 return 1; 14932 } 14933 14934 cfd = socket(PF_INET, SOCK_DGRAM, 0); 14935 if(cfd == -1) { 14936 perror("client socket"); 14937 return 1; 14938 } 14939 a.sin_port = 0; 14940 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 14941 perror("client bind"); 14942 return 1; 14943 } 14944 a.sin_port = htons(port); 14945 14946 /* no handler, causes exit in 10 seconds */ 14947 alarm(10); 14948 14949 /* send and receive on the socket */ 14950 if((p=fork()) == 0) { 14951 for(i=0; i<num; i++) { 14952 if(sendto(cfd, &i, sizeof(i), 0, 14953 (struct sockaddr*)&a, sizeof(a)) < 0) { 14954 perror("sendto"); 14955 return 1; 14956 } 14957 } 14958 } else { 14959 /* parent */ 14960 fd_set rset; 14961 int x; 14962 if(p == -1) { 14963 perror("fork"); 14964 return 1; 14965 } 14966 FD_ZERO(&rset); 14967 FD_SET(sfd, &rset); 14968 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 14969 perror("select"); 14970 return 1; 14971 } 14972 i = 0; 14973 while(i < num) { 14974 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 14975 if(errno == EAGAIN) 14976 continue; 14977 perror("recv"); 14978 return 1; 14979 } 14980 i++; 14981 } 14982 /* now we want to get EAGAIN: nonblocking goodness */ 14983 errno = 0; 14984 recv(sfd, &x, sizeof(x), 0); 14985 if(errno != EAGAIN) { 14986 perror("trying to recv again"); 14987 return 1; 14988 } 14989 /* EAGAIN encountered */ 14990 } 14991 14992 close(sfd); 14993 close(cfd); 14994 return 0; 14995} 14996 14997_ACEOF 14998if ac_fn_c_try_run "$LINENO"; then : 14999 15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15001$as_echo "yes" >&6; } 15002 15003else 15004 15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15006$as_echo "no" >&6; } 15007 15008$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 15009 15010 15011fi 15012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15013 conftest.$ac_objext conftest.beam conftest.$ac_ext 15014fi 15015 15016fi 15017 15018 15019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 15020$as_echo_n "checking whether mkdir has one arg... " >&6; } 15021cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15022/* end confdefs.h. */ 15023 15024#include <stdio.h> 15025#include <unistd.h> 15026#ifdef HAVE_WINSOCK2_H 15027#include <winsock2.h> 15028#endif 15029#ifdef HAVE_SYS_STAT_H 15030#include <sys/stat.h> 15031#endif 15032 15033int 15034main () 15035{ 15036 15037 (void)mkdir("directory"); 15038 15039 ; 15040 return 0; 15041} 15042_ACEOF 15043if ac_fn_c_try_compile "$LINENO"; then : 15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15045$as_echo "yes" >&6; } 15046 15047$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 15048 15049 15050else 15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15052$as_echo "no" >&6; } 15053 15054fi 15055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15056 15057for ac_func in strptime 15058do : 15059 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 15060if test "x$ac_cv_func_strptime" = xyes; then : 15061 cat >>confdefs.h <<_ACEOF 15062#define HAVE_STRPTIME 1 15063_ACEOF 15064 15065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 15066$as_echo_n "checking whether strptime works... " >&6; } 15067if test c${cross_compiling} = cno; then 15068if test "$cross_compiling" = yes; then : 15069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15071as_fn_error $? "cannot run test program while cross compiling 15072See \`config.log' for more details" "$LINENO" 5; } 15073else 15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15075/* end confdefs.h. */ 15076 15077#define _XOPEN_SOURCE 600 15078#include <time.h> 15079int main(void) { struct tm tm; char *res; 15080res = 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); 15081if (!res) return 2; 15082res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 15083if (!res) return 1; return 0; } 15084 15085_ACEOF 15086if ac_fn_c_try_run "$LINENO"; then : 15087 eval "ac_cv_c_strptime_works=yes" 15088else 15089 eval "ac_cv_c_strptime_works=no" 15090fi 15091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15092 conftest.$ac_objext conftest.beam conftest.$ac_ext 15093fi 15094 15095else 15096eval "ac_cv_c_strptime_works=maybe" 15097fi 15098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 15099$as_echo "$ac_cv_c_strptime_works" >&6; } 15100if test $ac_cv_c_strptime_works = no; then 15101case " $LIBOBJS " in 15102 *" strptime.$ac_objext "* ) ;; 15103 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 15104 ;; 15105esac 15106 15107else 15108 15109cat >>confdefs.h <<_ACEOF 15110#define STRPTIME_WORKS 1 15111_ACEOF 15112 15113fi 15114 15115else 15116 case " $LIBOBJS " in 15117 *" strptime.$ac_objext "* ) ;; 15118 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 15119 ;; 15120esac 15121 15122fi 15123done 15124 15125 15126# set memory allocation checking if requested 15127# Check whether --enable-alloc-checks was given. 15128if test "${enable_alloc_checks+set}" = set; then : 15129 enableval=$enable_alloc_checks; 15130fi 15131 15132# Check whether --enable-alloc-lite was given. 15133if test "${enable_alloc_lite+set}" = set; then : 15134 enableval=$enable_alloc_lite; 15135fi 15136 15137# Check whether --enable-alloc-nonregional was given. 15138if test "${enable_alloc_nonregional+set}" = set; then : 15139 enableval=$enable_alloc_nonregional; 15140fi 15141 15142if test x_$enable_alloc_nonregional = x_yes; then 15143 15144$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h 15145 15146fi 15147if test x_$enable_alloc_checks = x_yes; then 15148 15149$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h 15150 15151else 15152 if test x_$enable_alloc_lite = x_yes; then 15153 15154$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h 15155 15156 else 15157 15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 15159$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 15160 if test "$cross_compiling" = yes; then : 15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5 15162$as_echo "no (crosscompile)" >&6; } 15163 case " $LIBOBJS " in 15164 *" malloc.$ac_objext "* ) ;; 15165 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 15166 ;; 15167esac 15168 15169 15170cat >>confdefs.h <<_ACEOF 15171#define malloc rpl_malloc_unbound 15172_ACEOF 15173 15174else 15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15176/* end confdefs.h. */ 15177#if defined STDC_HEADERS || defined HAVE_STDLIB_H 15178#include <stdlib.h> 15179#else 15180char *malloc (); 15181#endif 15182 15183int 15184main () 15185{ 15186 if(malloc(0) != 0) return 1; 15187 ; 15188 return 0; 15189} 15190 15191_ACEOF 15192if ac_fn_c_try_run "$LINENO"; then : 15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15194$as_echo "no" >&6; } 15195 case " $LIBOBJS " in 15196 *" malloc.$ac_objext "* ) ;; 15197 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 15198 ;; 15199esac 15200 15201 15202cat >>confdefs.h <<_ACEOF 15203#define malloc rpl_malloc_unbound 15204_ACEOF 15205 15206else 15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15208$as_echo "yes" >&6; } 15209 15210$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 15211 15212fi 15213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15214 conftest.$ac_objext conftest.beam conftest.$ac_ext 15215fi 15216 15217 15218 fi 15219fi 15220 15221# check windows threads (we use them, not pthreads, on windows). 15222if test "$on_mingw" = "yes"; then 15223# check windows threads 15224 for ac_header in windows.h 15225do : 15226 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 15227" 15228if test "x$ac_cv_header_windows_h" = xyes; then : 15229 cat >>confdefs.h <<_ACEOF 15230#define HAVE_WINDOWS_H 1 15231_ACEOF 15232 15233fi 15234 15235done 15236 15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5 15238$as_echo_n "checking for CreateThread... " >&6; } 15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15240/* end confdefs.h. */ 15241 15242#ifdef HAVE_WINDOWS_H 15243#include <windows.h> 15244#endif 15245 15246int 15247main () 15248{ 15249 15250 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 15251 15252 ; 15253 return 0; 15254} 15255_ACEOF 15256if ac_fn_c_try_compile "$LINENO"; then : 15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15258$as_echo "yes" >&6; } 15259 15260$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h 15261 15262 15263else 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15265$as_echo "no" >&6; } 15266 15267fi 15268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15269 15270else 15271# not on mingw, check thread libraries. 15272 15273# check for thread library. 15274# check this first, so that the pthread lib does not get linked in via 15275# libssl or libpython, and thus distorts the tests, and we end up using 15276# the non-threadsafe C libraries. 15277 15278# Check whether --with-pthreads was given. 15279if test "${with_pthreads+set}" = set; then : 15280 withval=$with_pthreads; 15281else 15282 withval="yes" 15283fi 15284 15285ub_have_pthreads=no 15286if test x_$withval != x_no; then 15287 15288 15289ac_ext=c 15290ac_cpp='$CPP $CPPFLAGS' 15291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15293ac_compiler_gnu=$ac_cv_c_compiler_gnu 15294 15295ax_pthread_ok=no 15296 15297# We used to check for pthread.h first, but this fails if pthread.h 15298# requires special compiler flags (e.g. on True64 or Sequent). 15299# It gets checked for in the link test anyway. 15300 15301# First of all, check if the user has set any of the PTHREAD_LIBS, 15302# etcetera environment variables, and if threads linking works using 15303# them: 15304if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 15305 save_CFLAGS="$CFLAGS" 15306 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15307 save_LIBS="$LIBS" 15308 LIBS="$PTHREAD_LIBS $LIBS" 15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 15310$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15312/* end confdefs.h. */ 15313 15314/* Override any GCC internal prototype to avoid an error. 15315 Use char because int might match the return type of a GCC 15316 builtin and then its argument prototype would still apply. */ 15317#ifdef __cplusplus 15318extern "C" 15319#endif 15320char pthread_join (); 15321int 15322main () 15323{ 15324return pthread_join (); 15325 ; 15326 return 0; 15327} 15328_ACEOF 15329if ac_fn_c_try_link "$LINENO"; then : 15330 ax_pthread_ok=yes 15331fi 15332rm -f core conftest.err conftest.$ac_objext \ 15333 conftest$ac_exeext conftest.$ac_ext 15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15335$as_echo "$ax_pthread_ok" >&6; } 15336 if test x"$ax_pthread_ok" = xno; then 15337 PTHREAD_LIBS="" 15338 PTHREAD_CFLAGS="" 15339 fi 15340 LIBS="$save_LIBS" 15341 CFLAGS="$save_CFLAGS" 15342fi 15343 15344# We must check for the threads library under a number of different 15345# names; the ordering is very important because some systems 15346# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15347# libraries is broken (non-POSIX). 15348 15349# Create a list of thread flags to try. Items starting with a "-" are 15350# C compiler flags, and other items are library names, except for "none" 15351# which indicates that we try without any flags at all, and "pthread-config" 15352# which is a program returning the flags for the Pth emulation library. 15353 15354ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15355 15356# The ordering *is* (sometimes) important. Some notes on the 15357# individual items follow: 15358 15359# pthreads: AIX (must check this before -lpthread) 15360# none: in case threads are in libc; should be tried before -Kthread and 15361# other compiler flags to prevent continual compiler warnings 15362# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15363# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15364# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15365# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15366# -pthreads: Solaris/gcc 15367# -mthreads: Mingw32/gcc, Lynx/gcc 15368# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15369# doesn't hurt to check since this sometimes defines pthreads too; 15370# also defines -D_REENTRANT) 15371# ... -mt is also the pthreads flag for HP/aCC 15372# pthread: Linux, etcetera 15373# --thread-safe: KAI C++ 15374# pthread-config: use pthread-config program (for GNU Pth library) 15375 15376case ${host_os} in 15377 solaris*) 15378 15379 # On Solaris (at least, for some versions), libc contains stubbed 15380 # (non-functional) versions of the pthreads routines, so link-based 15381 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15382 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15383 # a function called by this macro, so we could check for that, but 15384 # who knows whether they'll stub that too in a future libc.) So, 15385 # we'll just look for -pthreads and -lpthread first: 15386 15387 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 15388 ;; 15389 15390 darwin*) 15391 ax_pthread_flags="-pthread $ax_pthread_flags" 15392 ;; 15393esac 15394 15395if test x"$ax_pthread_ok" = xno; then 15396for flag in $ax_pthread_flags; do 15397 15398 case $flag in 15399 none) 15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15401$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15402 ;; 15403 15404 -*) 15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15406$as_echo_n "checking whether pthreads work with $flag... " >&6; } 15407 PTHREAD_CFLAGS="$flag" 15408 ;; 15409 15410 pthread-config) 15411 # Extract the first word of "pthread-config", so it can be a program name with args. 15412set dummy pthread-config; ac_word=$2 15413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15414$as_echo_n "checking for $ac_word... " >&6; } 15415if ${ac_cv_prog_ax_pthread_config+:} false; then : 15416 $as_echo_n "(cached) " >&6 15417else 15418 if test -n "$ax_pthread_config"; then 15419 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 15420else 15421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15422for as_dir in $PATH 15423do 15424 IFS=$as_save_IFS 15425 test -z "$as_dir" && as_dir=. 15426 for ac_exec_ext in '' $ac_executable_extensions; do 15427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15428 ac_cv_prog_ax_pthread_config="yes" 15429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15430 break 2 15431 fi 15432done 15433 done 15434IFS=$as_save_IFS 15435 15436 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 15437fi 15438fi 15439ax_pthread_config=$ac_cv_prog_ax_pthread_config 15440if test -n "$ax_pthread_config"; then 15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 15442$as_echo "$ax_pthread_config" >&6; } 15443else 15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15445$as_echo "no" >&6; } 15446fi 15447 15448 15449 if test x"$ax_pthread_config" = xno; then continue; fi 15450 PTHREAD_CFLAGS="`pthread-config --cflags`" 15451 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15452 ;; 15453 15454 *) 15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15456$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15457 PTHREAD_LIBS="-l$flag" 15458 ;; 15459 esac 15460 15461 save_LIBS="$LIBS" 15462 save_CFLAGS="$CFLAGS" 15463 LIBS="$PTHREAD_LIBS $LIBS" 15464 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15465 15466 # Check for various functions. We must include pthread.h, 15467 # since some functions may be macros. (On the Sequent, we 15468 # need a special flag -Kthread to make this header compile.) 15469 # We check for pthread_join because it is in -lpthread on IRIX 15470 # while pthread_create is in libc. We check for pthread_attr_init 15471 # due to DEC craziness with -lpthreads. We check for 15472 # pthread_cleanup_push because it is one of the few pthread 15473 # functions on Solaris that doesn't have a non-functional libc stub. 15474 # We try pthread_create on general principles. 15475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15476/* end confdefs.h. */ 15477#include <pthread.h> 15478 static void routine(void *a) { *((int*)a) = 0; } 15479 static void *start_routine(void *a) { return a; } 15480int 15481main () 15482{ 15483pthread_t th; pthread_attr_t attr; 15484 pthread_create(&th, 0, start_routine, 0); 15485 pthread_join(th, 0); 15486 pthread_attr_init(&attr); 15487 pthread_cleanup_push(routine, 0); 15488 pthread_cleanup_pop(0) /* ; */ 15489 ; 15490 return 0; 15491} 15492_ACEOF 15493if ac_fn_c_try_link "$LINENO"; then : 15494 ax_pthread_ok=yes 15495fi 15496rm -f core conftest.err conftest.$ac_objext \ 15497 conftest$ac_exeext conftest.$ac_ext 15498 15499 LIBS="$save_LIBS" 15500 CFLAGS="$save_CFLAGS" 15501 15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15503$as_echo "$ax_pthread_ok" >&6; } 15504 if test "x$ax_pthread_ok" = xyes; then 15505 break; 15506 fi 15507 15508 PTHREAD_LIBS="" 15509 PTHREAD_CFLAGS="" 15510done 15511fi 15512 15513# Various other checks: 15514if test "x$ax_pthread_ok" = xyes; then 15515 save_LIBS="$LIBS" 15516 LIBS="$PTHREAD_LIBS $LIBS" 15517 save_CFLAGS="$CFLAGS" 15518 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15519 15520 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15522$as_echo_n "checking for joinable pthread attribute... " >&6; } 15523 attr_name=unknown 15524 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15526/* end confdefs.h. */ 15527#include <pthread.h> 15528int 15529main () 15530{ 15531int attr = $attr; return attr /* ; */ 15532 ; 15533 return 0; 15534} 15535_ACEOF 15536if ac_fn_c_try_link "$LINENO"; then : 15537 attr_name=$attr; break 15538fi 15539rm -f core conftest.err conftest.$ac_objext \ 15540 conftest$ac_exeext conftest.$ac_ext 15541 done 15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15543$as_echo "$attr_name" >&6; } 15544 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15545 15546cat >>confdefs.h <<_ACEOF 15547#define PTHREAD_CREATE_JOINABLE $attr_name 15548_ACEOF 15549 15550 fi 15551 15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15553$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15554 flag=no 15555 case ${host_os} in 15556 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 15557 osf* | hpux*) flag="-D_REENTRANT";; 15558 solaris*) 15559 if test "$GCC" = "yes"; then 15560 flag="-D_REENTRANT" 15561 else 15562 flag="-mt -D_REENTRANT" 15563 fi 15564 ;; 15565 esac 15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15567$as_echo "${flag}" >&6; } 15568 if test "x$flag" != xno; then 15569 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15570 fi 15571 15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 15573$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 15574if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 15575 $as_echo_n "(cached) " >&6 15576else 15577 15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15579/* end confdefs.h. */ 15580 15581 #include <pthread.h> 15582int 15583main () 15584{ 15585int i = PTHREAD_PRIO_INHERIT; 15586 ; 15587 return 0; 15588} 15589_ACEOF 15590if ac_fn_c_try_link "$LINENO"; then : 15591 ax_cv_PTHREAD_PRIO_INHERIT=yes 15592else 15593 ax_cv_PTHREAD_PRIO_INHERIT=no 15594fi 15595rm -f core conftest.err conftest.$ac_objext \ 15596 conftest$ac_exeext conftest.$ac_ext 15597 15598fi 15599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 15600$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 15601 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 15602 15603$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 15604 15605fi 15606 15607 LIBS="$save_LIBS" 15608 CFLAGS="$save_CFLAGS" 15609 15610 # More AIX lossage: compile with *_r variant 15611 if test "x$GCC" != xyes; then 15612 case $host_os in 15613 aix*) 15614 case "x/$CC" in #( 15615 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 15616 #handle absolute path differently from PATH based program lookup 15617 case "x$CC" in #( 15618 x/*) : 15619 if as_fn_executable_p ${CC}_r; then : 15620 PTHREAD_CC="${CC}_r" 15621fi ;; #( 15622 *) : 15623 for ac_prog in ${CC}_r 15624do 15625 # Extract the first word of "$ac_prog", so it can be a program name with args. 15626set dummy $ac_prog; ac_word=$2 15627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15628$as_echo_n "checking for $ac_word... " >&6; } 15629if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15630 $as_echo_n "(cached) " >&6 15631else 15632 if test -n "$PTHREAD_CC"; then 15633 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15634else 15635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15636for as_dir in $PATH 15637do 15638 IFS=$as_save_IFS 15639 test -z "$as_dir" && as_dir=. 15640 for ac_exec_ext in '' $ac_executable_extensions; do 15641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15642 ac_cv_prog_PTHREAD_CC="$ac_prog" 15643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15644 break 2 15645 fi 15646done 15647 done 15648IFS=$as_save_IFS 15649 15650fi 15651fi 15652PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15653if test -n "$PTHREAD_CC"; then 15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15655$as_echo "$PTHREAD_CC" >&6; } 15656else 15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15658$as_echo "no" >&6; } 15659fi 15660 15661 15662 test -n "$PTHREAD_CC" && break 15663done 15664test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15665 ;; 15666esac ;; #( 15667 *) : 15668 ;; 15669esac 15670 ;; 15671 esac 15672 fi 15673fi 15674 15675test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15676 15677 15678 15679 15680 15681# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15682if test x"$ax_pthread_ok" = xyes; then 15683 15684 15685$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 15686 15687 LIBS="$PTHREAD_LIBS $LIBS" 15688 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15689 CC="$PTHREAD_CC" 15690 ub_have_pthreads=yes 15691 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h> 15692" 15693if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then : 15694 15695cat >>confdefs.h <<_ACEOF 15696#define HAVE_PTHREAD_SPINLOCK_T 1 15697_ACEOF 15698 15699 15700fi 15701ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 15702" 15703if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 15704 15705cat >>confdefs.h <<_ACEOF 15706#define HAVE_PTHREAD_RWLOCK_T 1 15707_ACEOF 15708 15709 15710fi 15711 15712 15713 : 15714else 15715 ax_pthread_ok=no 15716 15717fi 15718ac_ext=c 15719ac_cpp='$CPP $CPPFLAGS' 15720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15722ac_compiler_gnu=$ac_cv_c_compiler_gnu 15723 15724 15725fi 15726 15727# check solaris thread library 15728 15729# Check whether --with-solaris-threads was given. 15730if test "${with_solaris_threads+set}" = set; then : 15731 withval=$with_solaris_threads; 15732else 15733 withval="no" 15734fi 15735 15736ub_have_sol_threads=no 15737if test x_$withval != x_no; then 15738 if test x_$ub_have_pthreads != x_no; then 15739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5 15740$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;} 15741 else 15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5 15743$as_echo_n "checking for library containing thr_create... " >&6; } 15744if ${ac_cv_search_thr_create+:} false; then : 15745 $as_echo_n "(cached) " >&6 15746else 15747 ac_func_search_save_LIBS=$LIBS 15748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15749/* end confdefs.h. */ 15750 15751/* Override any GCC internal prototype to avoid an error. 15752 Use char because int might match the return type of a GCC 15753 builtin and then its argument prototype would still apply. */ 15754#ifdef __cplusplus 15755extern "C" 15756#endif 15757char thr_create (); 15758int 15759main () 15760{ 15761return thr_create (); 15762 ; 15763 return 0; 15764} 15765_ACEOF 15766for ac_lib in '' thread; do 15767 if test -z "$ac_lib"; then 15768 ac_res="none required" 15769 else 15770 ac_res=-l$ac_lib 15771 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15772 fi 15773 if ac_fn_c_try_link "$LINENO"; then : 15774 ac_cv_search_thr_create=$ac_res 15775fi 15776rm -f core conftest.err conftest.$ac_objext \ 15777 conftest$ac_exeext 15778 if ${ac_cv_search_thr_create+:} false; then : 15779 break 15780fi 15781done 15782if ${ac_cv_search_thr_create+:} false; then : 15783 15784else 15785 ac_cv_search_thr_create=no 15786fi 15787rm conftest.$ac_ext 15788LIBS=$ac_func_search_save_LIBS 15789fi 15790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5 15791$as_echo "$ac_cv_search_thr_create" >&6; } 15792ac_res=$ac_cv_search_thr_create 15793if test "$ac_res" != no; then : 15794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15795 15796 15797$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h 15798 15799 15800 15801 15802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5 15803$as_echo_n "checking whether $CC supports -mt... " >&6; } 15804cache=`echo mt | sed 'y%.=/+-%___p_%'` 15805if eval \${cv_prog_cc_flag_$cache+:} false; then : 15806 $as_echo_n "(cached) " >&6 15807else 15808 15809echo 'void f(void){}' >conftest.c 15810if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then 15811eval "cv_prog_cc_flag_$cache=yes" 15812else 15813eval "cv_prog_cc_flag_$cache=no" 15814fi 15815rm -f conftest conftest.o conftest.c 15816 15817fi 15818 15819if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 15820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15821$as_echo "yes" >&6; } 15822: 15823CFLAGS="$CFLAGS -mt" 15824else 15825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15826$as_echo "no" >&6; } 15827: 15828CFLAGS="$CFLAGS -D_REENTRANT" 15829fi 15830 15831 ub_have_sol_threads=yes 15832 15833else 15834 15835 as_fn_error $? "no solaris threads found." "$LINENO" 5 15836 15837fi 15838 15839 fi 15840fi 15841 15842fi # end of non-mingw check of thread libraries 15843 15844# Check for PyUnbound 15845 15846# Check whether --with-pyunbound was given. 15847if test "${with_pyunbound+set}" = set; then : 15848 withval=$with_pyunbound; 15849else 15850 withval="no" 15851fi 15852 15853 15854ub_test_python=no 15855ub_with_pyunbound=no 15856if test x_$withval != x_no; then 15857 ub_with_pyunbound=yes 15858 ub_test_python=yes 15859fi 15860 15861# Check for Python module 15862 15863# Check whether --with-pythonmodule was given. 15864if test "${with_pythonmodule+set}" = set; then : 15865 withval=$with_pythonmodule; 15866else 15867 withval="no" 15868fi 15869 15870 15871ub_with_pythonmod=no 15872if test x_$withval != x_no; then 15873 ub_with_pythonmod=yes 15874 ub_test_python=yes 15875fi 15876 15877# Check for Python & SWIG only on PyUnbound or PyModule 15878if test x_$ub_test_python != x_no; then 15879 15880 # Check for Python 15881 ub_have_python=no 15882 ac_save_LIBS="$LIBS" 15883 # 15884 # Allow the use of a (user set) custom python version 15885 # 15886 15887 15888 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 15889set dummy python$PYTHON_VERSION; ac_word=$2 15890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15891$as_echo_n "checking for $ac_word... " >&6; } 15892if ${ac_cv_path_PYTHON+:} false; then : 15893 $as_echo_n "(cached) " >&6 15894else 15895 case $PYTHON in 15896 [\\/]* | ?:[\\/]*) 15897 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 15898 ;; 15899 *) 15900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15901for as_dir in $PATH 15902do 15903 IFS=$as_save_IFS 15904 test -z "$as_dir" && as_dir=. 15905 for ac_exec_ext in '' $ac_executable_extensions; do 15906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15907 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 15908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15909 break 2 15910 fi 15911done 15912 done 15913IFS=$as_save_IFS 15914 15915 ;; 15916esac 15917fi 15918PYTHON=$ac_cv_path_PYTHON 15919if test -n "$PYTHON"; then 15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 15921$as_echo "$PYTHON" >&6; } 15922else 15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15924$as_echo "no" >&6; } 15925fi 15926 15927 15928 if test -z "$PYTHON"; then 15929 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 15930 PYTHON_VERSION="" 15931 fi 15932 15933 if test -z "$PYTHON_VERSION"; then 15934 PYTHON_VERSION=`$PYTHON -c "import sys; \ 15935 print(sys.version.split()[0])"` 15936 fi 15937 15938 # 15939 # Check if you have distutils, else fail 15940 # 15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 15942$as_echo_n "checking for the distutils Python package... " >&6; } 15943 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 15944 if test -z "$ac_distutils_result"; then 15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15946$as_echo "yes" >&6; } 15947 else 15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15949$as_echo "no" >&6; } 15950 as_fn_error $? "cannot import Python module \"distutils\". 15951Please check your Python installation. The error was: 15952$ac_distutils_result" "$LINENO" 5 15953 PYTHON_VERSION="" 15954 fi 15955 15956 # 15957 # Check for Python include path 15958 # 15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 15960$as_echo_n "checking for Python include path... " >&6; } 15961 if test -z "$PYTHON_CPPFLAGS"; then 15962 python_path=`$PYTHON -c "import distutils.sysconfig; \ 15963 print(distutils.sysconfig.get_python_inc());"` 15964 if test -n "${python_path}"; then 15965 python_path="-I$python_path" 15966 fi 15967 PYTHON_CPPFLAGS=$python_path 15968 fi 15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 15970$as_echo "$PYTHON_CPPFLAGS" >&6; } 15971 15972 15973 # 15974 # Check for Python library path 15975 # 15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 15977$as_echo_n "checking for Python library path... " >&6; } 15978 if test -z "$PYTHON_LDFLAGS"; then 15979 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \ 15980 print(get_config_var('BLDLIBRARY'));"` 15981 fi 15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 15983$as_echo "$PYTHON_LDFLAGS" >&6; } 15984 15985 15986 # 15987 # Check for site packages 15988 # 15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 15990$as_echo_n "checking for Python site-packages path... " >&6; } 15991 if test -z "$PYTHON_SITE_PKG"; then 15992 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 15993 print(distutils.sysconfig.get_python_lib(1,0));"` 15994 fi 15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 15996$as_echo "$PYTHON_SITE_PKG" >&6; } 15997 15998 15999 # 16000 # final check to see if everything compiles alright 16001 # 16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 16003$as_echo_n "checking consistency of all components of python development environment... " >&6; } 16004 ac_ext=c 16005ac_cpp='$CPP $CPPFLAGS' 16006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16008ac_compiler_gnu=$ac_cv_c_compiler_gnu 16009 16010 # save current global flags 16011 ac_save_LIBS="$LIBS" 16012 ac_save_CPPFLAGS="$CPPFLAGS" 16013 16014 LIBS="$LIBS $PYTHON_LDFLAGS" 16015 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16017/* end confdefs.h. */ 16018 16019 #include <Python.h> 16020 16021int 16022main () 16023{ 16024 16025 Py_Initialize(); 16026 16027 ; 16028 return 0; 16029} 16030_ACEOF 16031if ac_fn_c_try_link "$LINENO"; then : 16032 pythonexists=yes 16033else 16034 pythonexists=no 16035fi 16036rm -f core conftest.err conftest.$ac_objext \ 16037 conftest$ac_exeext conftest.$ac_ext 16038 16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 16040$as_echo "$pythonexists" >&6; } 16041 16042 if test ! "$pythonexists" = "yes"; then 16043 as_fn_error $? " 16044 Could not link test program to Python. Maybe the main Python library has been 16045 installed in some non-standard library path. If so, pass it to configure, 16046 via the LDFLAGS environment variable. 16047 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 16048 ============================================================================ 16049 ERROR! 16050 You probably have to install the development version of the Python package 16051 for your distribution. The exact name of this package varies among them. 16052 ============================================================================ 16053 " "$LINENO" 5 16054 PYTHON_VERSION="" 16055 fi 16056 ac_ext=c 16057ac_cpp='$CPP $CPPFLAGS' 16058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16060ac_compiler_gnu=$ac_cv_c_compiler_gnu 16061 16062 # turn back to default flags 16063 CPPFLAGS="$ac_save_CPPFLAGS" 16064 LIBS="$ac_save_LIBS" 16065 16066 # 16067 # all done! 16068 # 16069 16070 if test ! -z "$PYTHON_VERSION"; then 16071 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then 16072 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5 16073 fi 16074 16075 # Have Python 16076 16077$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 16078 16079 LIBS="$PYTHON_LDFLAGS $LIBS" 16080 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 16081 ub_have_python=yes 16082 16083 # Check for SWIG 16084 ub_have_swig=no 16085 16086 # Extract the first word of "swig", so it can be a program name with args. 16087set dummy swig; ac_word=$2 16088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16089$as_echo_n "checking for $ac_word... " >&6; } 16090if ${ac_cv_path_SWIG+:} false; then : 16091 $as_echo_n "(cached) " >&6 16092else 16093 case $SWIG in 16094 [\\/]* | ?:[\\/]*) 16095 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 16096 ;; 16097 *) 16098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16099for as_dir in $PATH 16100do 16101 IFS=$as_save_IFS 16102 test -z "$as_dir" && as_dir=. 16103 for ac_exec_ext in '' $ac_executable_extensions; do 16104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16105 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 16106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16107 break 2 16108 fi 16109done 16110 done 16111IFS=$as_save_IFS 16112 16113 ;; 16114esac 16115fi 16116SWIG=$ac_cv_path_SWIG 16117if test -n "$SWIG"; then 16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 16119$as_echo "$SWIG" >&6; } 16120else 16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16122$as_echo "no" >&6; } 16123fi 16124 16125 16126 if test -z "$SWIG" ; then 16127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 16128$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 16129 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 16130 elif test -n "" ; then 16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 16132$as_echo_n "checking for SWIG version... " >&6; } 16133 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'` 16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 16135$as_echo "$swig_version" >&6; } 16136 if test -n "$swig_version" ; then 16137 # Calculate the required version number components 16138 required= 16139 required_major=`echo $required | sed 's/[^0-9].*//'` 16140 if test -z "$required_major" ; then 16141 required_major=0 16142 fi 16143 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 16144 required_minor=`echo $required | sed 's/[^0-9].*//'` 16145 if test -z "$required_minor" ; then 16146 required_minor=0 16147 fi 16148 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 16149 required_patch=`echo $required | sed 's/[^0-9].*//'` 16150 if test -z "$required_patch" ; then 16151 required_patch=0 16152 fi 16153 # Calculate the available version number components 16154 available=$swig_version 16155 available_major=`echo $available | sed 's/[^0-9].*//'` 16156 if test -z "$available_major" ; then 16157 available_major=0 16158 fi 16159 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 16160 available_minor=`echo $available | sed 's/[^0-9].*//'` 16161 if test -z "$available_minor" ; then 16162 available_minor=0 16163 fi 16164 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 16165 available_patch=`echo $available | sed 's/[^0-9].*//'` 16166 if test -z "$available_patch" ; then 16167 available_patch=0 16168 fi 16169 if test $available_major -ne $required_major \ 16170 -o $available_minor -ne $required_minor \ 16171 -o $available_patch -lt $required_patch ; then 16172 { $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 16173$as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 16174 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 16175 else 16176 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 16177$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 16178 SWIG_LIB=`$SWIG -swiglib` 16179 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 16180$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 16181 fi 16182 else 16183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 16184$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 16185 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 16186 fi 16187 fi 16188 16189 16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5 16191$as_echo_n "checking SWIG... " >&6; } 16192 if test ! -x "$SWIG"; then 16193 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5 16194 else 16195 16196$as_echo "#define HAVE_SWIG 1" >>confdefs.h 16197 16198 swig="$SWIG" 16199 16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 16201$as_echo "present" >&6; } 16202 16203 # If have Python & SWIG 16204 # Declare PythonMod 16205 if test x_$ub_with_pythonmod != x_no; then 16206 16207$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h 16208 16209 WITH_PYTHONMODULE=yes 16210 16211 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo" 16212 16213 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h' 16214 16215 PYTHONMOD_INSTALL=pythonmod-install 16216 16217 PYTHONMOD_UNINSTALL=pythonmod-uninstall 16218 16219 fi 16220 16221 # Declare PyUnbound 16222 if test x_$ub_with_pyunbound != x_no; then 16223 16224$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h 16225 16226 WITH_PYUNBOUND=yes 16227 16228 PYUNBOUND_OBJ="libunbound_wrap.lo" 16229 16230 PYUNBOUND_TARGET="_unbound.la" 16231 16232 PYUNBOUND_INSTALL=pyunbound-install 16233 16234 PYUNBOUND_UNINSTALL=pyunbound-uninstall 16235 16236 fi 16237 fi 16238 else 16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5 16240$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; } 16241 ub_with_pyunbound=no 16242 ub_with_pythonmod=no 16243 fi 16244fi 16245 16246if test "`uname`" = "NetBSD"; then 16247 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_' 16248 16249fi 16250CONFIG_DATE=`date +%Y%m%d` 16251 16252 16253# Checks for libraries. 16254 16255# libnss 16256USE_NSS="no" 16257 16258# Check whether --with-nss was given. 16259if test "${with_nss+set}" = set; then : 16260 withval=$with_nss; 16261 USE_NSS="yes" 16262 16263$as_echo "#define HAVE_NSS 1" >>confdefs.h 16264 16265 if test "$withval" != "" -a "$withval" != "yes"; then 16266 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3" 16267 LDFLAGS="$LDFLAGS -L$withval/lib" 16268 16269 if test "x$enable_rpath" = xyes; then 16270 if echo "$withval/lib" | grep "^/" >/dev/null; then 16271 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 16272 fi 16273 fi 16274 16275 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" 16276 else 16277 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" 16278 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" 16279 fi 16280 LIBS="$LIBS -lnss3 -lnspr4" 16281 16282 16283fi 16284 16285 16286# openssl 16287if test $USE_NSS = "no"; then 16288 16289 16290# Check whether --with-ssl was given. 16291if test "${with_ssl+set}" = set; then : 16292 withval=$with_ssl; 16293 16294else 16295 16296 withval="yes" 16297 16298fi 16299 16300 if test x_$withval = x_no; then 16301 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5 16302 fi 16303 16304 withval=$withval 16305 if test x_$withval != x_no; then 16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 16307$as_echo_n "checking for SSL... " >&6; } 16308 if test x_$withval = x_ -o x_$withval = x_yes; then 16309 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 16310 fi 16311 for dir in $withval; do 16312 ssldir="$dir" 16313 if test -f "$dir/include/openssl/ssl.h"; then 16314 found_ssl="yes" 16315 16316cat >>confdefs.h <<_ACEOF 16317#define HAVE_SSL /**/ 16318_ACEOF 16319 16320 if test "$ssldir" != "/usr"; then 16321 CPPFLAGS="$CPPFLAGS -I$ssldir/include" 16322 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include" 16323 fi 16324 break; 16325 fi 16326 done 16327 if test x_$found_ssl != x_yes; then 16328 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 16329 else 16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 16331$as_echo "found in $ssldir" >&6; } 16332 HAVE_SSL=yes 16333 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then 16334 LDFLAGS="$LDFLAGS -L$ssldir/lib" 16335 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib" 16336 16337 if test "x$enable_rpath" = xyes; then 16338 if echo "$ssldir/lib" | grep "^/" >/dev/null; then 16339 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib" 16340 fi 16341 fi 16342 16343 fi 16344 16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5 16346$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; } 16347 LIBS="$LIBS -lcrypto" 16348 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16350/* end confdefs.h. */ 16351 16352int 16353main () 16354{ 16355 16356 int HMAC_CTX_init(void); 16357 (void)HMAC_CTX_init(); 16358 16359 ; 16360 return 0; 16361} 16362_ACEOF 16363if ac_fn_c_try_link "$LINENO"; then : 16364 16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16366$as_echo "yes" >&6; } 16367 16368$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16369 16370 16371else 16372 16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16374$as_echo "no" >&6; } 16375 # check if -lwsock32 or -lgdi32 are needed. 16376 BAKLIBS="$LIBS" 16377 BAKSSLLIBS="$LIBSSL_LIBS" 16378 LIBS="$LIBS -lgdi32" 16379 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32" 16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 16381$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; } 16382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16383/* end confdefs.h. */ 16384 16385int 16386main () 16387{ 16388 16389 int HMAC_CTX_init(void); 16390 (void)HMAC_CTX_init(); 16391 16392 ; 16393 return 0; 16394} 16395_ACEOF 16396if ac_fn_c_try_link "$LINENO"; then : 16397 16398 16399$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16400 16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16402$as_echo "yes" >&6; } 16403 16404else 16405 16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16407$as_echo "no" >&6; } 16408 LIBS="$BAKLIBS" 16409 LIBSSL_LIBS="$BAKSSLLIBS" 16410 LIBS="$LIBS -ldl" 16411 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 16413$as_echo_n "checking if -lcrypto needs -ldl... " >&6; } 16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16415/* end confdefs.h. */ 16416 16417int 16418main () 16419{ 16420 16421 int HMAC_CTX_init(void); 16422 (void)HMAC_CTX_init(); 16423 16424 ; 16425 return 0; 16426} 16427_ACEOF 16428if ac_fn_c_try_link "$LINENO"; then : 16429 16430 16431$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16432 16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16434$as_echo "yes" >&6; } 16435 16436else 16437 16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16439$as_echo "no" >&6; } 16440 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 16441 16442fi 16443rm -f core conftest.err conftest.$ac_objext \ 16444 conftest$ac_exeext conftest.$ac_ext 16445 16446fi 16447rm -f core conftest.err conftest.$ac_objext \ 16448 conftest$ac_exeext conftest.$ac_ext 16449 16450fi 16451rm -f core conftest.err conftest.$ac_objext \ 16452 conftest$ac_exeext conftest.$ac_ext 16453 fi 16454 16455 16456 # openssl engine functionality needs dlopen(). 16457 BAKLIBS="$LIBS" 16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16459$as_echo_n "checking for library containing dlopen... " >&6; } 16460if ${ac_cv_search_dlopen+:} false; then : 16461 $as_echo_n "(cached) " >&6 16462else 16463 ac_func_search_save_LIBS=$LIBS 16464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16465/* end confdefs.h. */ 16466 16467/* Override any GCC internal prototype to avoid an error. 16468 Use char because int might match the return type of a GCC 16469 builtin and then its argument prototype would still apply. */ 16470#ifdef __cplusplus 16471extern "C" 16472#endif 16473char dlopen (); 16474int 16475main () 16476{ 16477return dlopen (); 16478 ; 16479 return 0; 16480} 16481_ACEOF 16482for ac_lib in '' dl; do 16483 if test -z "$ac_lib"; then 16484 ac_res="none required" 16485 else 16486 ac_res=-l$ac_lib 16487 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16488 fi 16489 if ac_fn_c_try_link "$LINENO"; then : 16490 ac_cv_search_dlopen=$ac_res 16491fi 16492rm -f core conftest.err conftest.$ac_objext \ 16493 conftest$ac_exeext 16494 if ${ac_cv_search_dlopen+:} false; then : 16495 break 16496fi 16497done 16498if ${ac_cv_search_dlopen+:} false; then : 16499 16500else 16501 ac_cv_search_dlopen=no 16502fi 16503rm conftest.$ac_ext 16504LIBS=$ac_func_search_save_LIBS 16505fi 16506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16507$as_echo "$ac_cv_search_dlopen" >&6; } 16508ac_res=$ac_cv_search_dlopen 16509if test "$ac_res" != no; then : 16510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16511 16512fi 16513 16514 if test "$LIBS" != "$BAKLIBS"; then 16515 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 16516 fi 16517 fi 16518for ac_header in openssl/ssl.h 16519do : 16520 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 16521" 16522if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 16523 cat >>confdefs.h <<_ACEOF 16524#define HAVE_OPENSSL_SSL_H 1 16525_ACEOF 16526 16527fi 16528 16529done 16530 16531for ac_header in openssl/err.h 16532do : 16533 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 16534" 16535if test "x$ac_cv_header_openssl_err_h" = xyes; then : 16536 cat >>confdefs.h <<_ACEOF 16537#define HAVE_OPENSSL_ERR_H 1 16538_ACEOF 16539 16540fi 16541 16542done 16543 16544for ac_header in openssl/rand.h 16545do : 16546 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 16547" 16548if test "x$ac_cv_header_openssl_rand_h" = xyes; then : 16549 cat >>confdefs.h <<_ACEOF 16550#define HAVE_OPENSSL_RAND_H 1 16551_ACEOF 16552 16553fi 16554 16555done 16556 16557 16558 16559 16560# check if libssl needs libdl 16561BAKLIBS="$LIBS" 16562LIBS="-lssl $LIBS" 16563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 16564$as_echo_n "checking if libssl needs libdl... " >&6; } 16565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16566/* end confdefs.h. */ 16567 16568/* Override any GCC internal prototype to avoid an error. 16569 Use char because int might match the return type of a GCC 16570 builtin and then its argument prototype would still apply. */ 16571#ifdef __cplusplus 16572extern "C" 16573#endif 16574char SSL_CTX_new (); 16575int 16576main () 16577{ 16578return SSL_CTX_new (); 16579 ; 16580 return 0; 16581} 16582_ACEOF 16583if ac_fn_c_try_link "$LINENO"; then : 16584 16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16586$as_echo "no" >&6; } 16587 LIBS="$BAKLIBS" 16588 16589else 16590 16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16592$as_echo "yes" >&6; } 16593 LIBS="$BAKLIBS" 16594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16595$as_echo_n "checking for library containing dlopen... " >&6; } 16596if ${ac_cv_search_dlopen+:} false; then : 16597 $as_echo_n "(cached) " >&6 16598else 16599 ac_func_search_save_LIBS=$LIBS 16600cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16601/* end confdefs.h. */ 16602 16603/* Override any GCC internal prototype to avoid an error. 16604 Use char because int might match the return type of a GCC 16605 builtin and then its argument prototype would still apply. */ 16606#ifdef __cplusplus 16607extern "C" 16608#endif 16609char dlopen (); 16610int 16611main () 16612{ 16613return dlopen (); 16614 ; 16615 return 0; 16616} 16617_ACEOF 16618for ac_lib in '' dl; do 16619 if test -z "$ac_lib"; then 16620 ac_res="none required" 16621 else 16622 ac_res=-l$ac_lib 16623 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16624 fi 16625 if ac_fn_c_try_link "$LINENO"; then : 16626 ac_cv_search_dlopen=$ac_res 16627fi 16628rm -f core conftest.err conftest.$ac_objext \ 16629 conftest$ac_exeext 16630 if ${ac_cv_search_dlopen+:} false; then : 16631 break 16632fi 16633done 16634if ${ac_cv_search_dlopen+:} false; then : 16635 16636else 16637 ac_cv_search_dlopen=no 16638fi 16639rm conftest.$ac_ext 16640LIBS=$ac_func_search_save_LIBS 16641fi 16642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16643$as_echo "$ac_cv_search_dlopen" >&6; } 16644ac_res=$ac_cv_search_dlopen 16645if test "$ac_res" != no; then : 16646 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16647 16648fi 16649 16650 16651fi 16652rm -f core conftest.err conftest.$ac_objext \ 16653 conftest$ac_exeext conftest.$ac_ext 16654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5 16655$as_echo_n "checking for LibreSSL... " >&6; } 16656if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then 16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16658$as_echo "yes" >&6; } 16659 16660$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h 16661 16662 # libressl provides these compat functions, but they may also be 16663 # declared by the OS in libc. See if they have been declared. 16664 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" 16665if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 16666 ac_have_decl=1 16667else 16668 ac_have_decl=0 16669fi 16670 16671cat >>confdefs.h <<_ACEOF 16672#define HAVE_DECL_STRLCPY $ac_have_decl 16673_ACEOF 16674ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" 16675if test "x$ac_cv_have_decl_strlcat" = xyes; then : 16676 ac_have_decl=1 16677else 16678 ac_have_decl=0 16679fi 16680 16681cat >>confdefs.h <<_ACEOF 16682#define HAVE_DECL_STRLCAT $ac_have_decl 16683_ACEOF 16684ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default" 16685if test "x$ac_cv_have_decl_arc4random" = xyes; then : 16686 ac_have_decl=1 16687else 16688 ac_have_decl=0 16689fi 16690 16691cat >>confdefs.h <<_ACEOF 16692#define HAVE_DECL_ARC4RANDOM $ac_have_decl 16693_ACEOF 16694ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default" 16695if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then : 16696 ac_have_decl=1 16697else 16698 ac_have_decl=0 16699fi 16700 16701cat >>confdefs.h <<_ACEOF 16702#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl 16703_ACEOF 16704 16705else 16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16707$as_echo "no" >&6; } 16708fi 16709for ac_header in openssl/conf.h 16710do : 16711 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default 16712" 16713if test "x$ac_cv_header_openssl_conf_h" = xyes; then : 16714 cat >>confdefs.h <<_ACEOF 16715#define HAVE_OPENSSL_CONF_H 1 16716_ACEOF 16717 16718fi 16719 16720done 16721 16722for ac_header in openssl/engine.h 16723do : 16724 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default 16725" 16726if test "x$ac_cv_header_openssl_engine_h" = xyes; then : 16727 cat >>confdefs.h <<_ACEOF 16728#define HAVE_OPENSSL_ENGINE_H 1 16729_ACEOF 16730 16731fi 16732 16733done 16734 16735for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode 16736do : 16737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16738ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16739if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16740 cat >>confdefs.h <<_ACEOF 16741#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16742_ACEOF 16743 16744fi 16745done 16746 16747ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" " 16748$ac_includes_default 16749#ifdef HAVE_OPENSSL_ERR_H 16750#include <openssl/err.h> 16751#endif 16752 16753#ifdef HAVE_OPENSSL_RAND_H 16754#include <openssl/rand.h> 16755#endif 16756 16757#ifdef HAVE_OPENSSL_CONF_H 16758#include <openssl/conf.h> 16759#endif 16760 16761#ifdef HAVE_OPENSSL_ENGINE_H 16762#include <openssl/engine.h> 16763#endif 16764#include <openssl/ssl.h> 16765#include <openssl/evp.h> 16766 16767" 16768if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then : 16769 ac_have_decl=1 16770else 16771 ac_have_decl=0 16772fi 16773 16774cat >>confdefs.h <<_ACEOF 16775#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl 16776_ACEOF 16777ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" " 16778$ac_includes_default 16779#ifdef HAVE_OPENSSL_ERR_H 16780#include <openssl/err.h> 16781#endif 16782 16783#ifdef HAVE_OPENSSL_RAND_H 16784#include <openssl/rand.h> 16785#endif 16786 16787#ifdef HAVE_OPENSSL_CONF_H 16788#include <openssl/conf.h> 16789#endif 16790 16791#ifdef HAVE_OPENSSL_ENGINE_H 16792#include <openssl/engine.h> 16793#endif 16794#include <openssl/ssl.h> 16795#include <openssl/evp.h> 16796 16797" 16798if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then : 16799 ac_have_decl=1 16800else 16801 ac_have_decl=0 16802fi 16803 16804cat >>confdefs.h <<_ACEOF 16805#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl 16806_ACEOF 16807 16808fi 16809 16810 16811# Check whether --enable-sha2 was given. 16812if test "${enable_sha2+set}" = set; then : 16813 enableval=$enable_sha2; 16814fi 16815 16816case "$enable_sha2" in 16817 no) 16818 ;; 16819 yes|*) 16820 16821$as_echo "#define USE_SHA2 1" >>confdefs.h 16822 16823 ;; 16824esac 16825 16826# check wether gost also works 16827 16828# Check whether --enable-gost was given. 16829if test "${enable_gost+set}" = set; then : 16830 enableval=$enable_gost; 16831fi 16832 16833use_gost="no" 16834if test $USE_NSS = "no"; then 16835case "$enable_gost" in 16836 no) 16837 ;; 16838 *) 16839 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 16840if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then : 16841 : 16842else 16843 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5 16844fi 16845 16846 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 16847if test "x$ac_cv_func_EC_KEY_new" = xyes; then : 16848 16849else 16850 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5 16851fi 16852 16853 16854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 16855$as_echo_n "checking if GOST works... " >&6; } 16856if test c${cross_compiling} = cno; then 16857BAKCFLAGS="$CFLAGS" 16858if test -n "$ssldir"; then 16859 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib" 16860fi 16861if test "$cross_compiling" = yes; then : 16862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16864as_fn_error $? "cannot run test program while cross compiling 16865See \`config.log' for more details" "$LINENO" 5; } 16866else 16867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16868/* end confdefs.h. */ 16869 16870#include <string.h> 16871#include <openssl/ssl.h> 16872#include <openssl/evp.h> 16873#include <openssl/engine.h> 16874#include <openssl/conf.h> 16875/* routine to load gost (from sldns) */ 16876int load_gost_id(void) 16877{ 16878 static int gost_id = 0; 16879 const EVP_PKEY_ASN1_METHOD* meth; 16880 ENGINE* e; 16881 16882 if(gost_id) return gost_id; 16883 16884 /* see if configuration loaded gost implementation from other engine*/ 16885 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 16886 if(meth) { 16887 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 16888 return gost_id; 16889 } 16890 16891 /* see if engine can be loaded already */ 16892 e = ENGINE_by_id("gost"); 16893 if(!e) { 16894 /* load it ourself, in case statically linked */ 16895 ENGINE_load_builtin_engines(); 16896 ENGINE_load_dynamic(); 16897 e = ENGINE_by_id("gost"); 16898 } 16899 if(!e) { 16900 /* no gost engine in openssl */ 16901 return 0; 16902 } 16903 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 16904 ENGINE_finish(e); 16905 ENGINE_free(e); 16906 return 0; 16907 } 16908 16909 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 16910 if(!meth) { 16911 /* algo not found */ 16912 ENGINE_finish(e); 16913 ENGINE_free(e); 16914 return 0; 16915 } 16916 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 16917 return gost_id; 16918} 16919int main(void) { 16920 EVP_MD_CTX* ctx; 16921 const EVP_MD* md; 16922 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 16923 const char* str = "Hello world"; 16924 const unsigned char check[] = { 16925 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 16926 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 16927 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 16928 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 16929 }; 16930 OPENSSL_config(NULL); 16931 (void)load_gost_id(); 16932 md = EVP_get_digestbyname("md_gost94"); 16933 if(!md) return 1; 16934 memset(digest, 0, sizeof(digest)); 16935 ctx = EVP_MD_CTX_create(); 16936 if(!ctx) return 2; 16937 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 16938 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 16939 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 16940 /* uncomment to see the hash calculated. 16941 {int i; 16942 for(i=0; i<32; i++) 16943 printf(" %2.2x", (int)digest[i]); 16944 printf("\n");} 16945 */ 16946 if(memcmp(digest, check, sizeof(check)) != 0) 16947 return 6; 16948 return 0; 16949} 16950 16951_ACEOF 16952if ac_fn_c_try_run "$LINENO"; then : 16953 eval "ac_cv_c_gost_works=yes" 16954else 16955 eval "ac_cv_c_gost_works=no" 16956fi 16957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16958 conftest.$ac_objext conftest.beam conftest.$ac_ext 16959fi 16960 16961CFLAGS="$BAKCFLAGS" 16962else 16963eval "ac_cv_c_gost_works=maybe" 16964fi 16965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5 16966$as_echo "$ac_cv_c_gost_works" >&6; } 16967 16968 if test "$ac_cv_c_gost_works" != no; then 16969 use_gost="yes" 16970 16971$as_echo "#define USE_GOST 1" >>confdefs.h 16972 16973 fi 16974 ;; 16975esac 16976fi 16977# Check whether --enable-ecdsa was given. 16978if test "${enable_ecdsa+set}" = set; then : 16979 enableval=$enable_ecdsa; 16980fi 16981 16982use_ecdsa="no" 16983case "$enable_ecdsa" in 16984 no) 16985 ;; 16986 *) 16987 if test $USE_NSS = "no"; then 16988 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 16989if test "x$ac_cv_func_ECDSA_sign" = xyes; then : 16990 16991else 16992 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 16993fi 16994 16995 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 16996if test "x$ac_cv_func_SHA384_Init" = xyes; then : 16997 16998else 16999 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17000fi 17001 17002 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 17003#include <openssl/evp.h> 17004 17005" 17006if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then : 17007 ac_have_decl=1 17008else 17009 ac_have_decl=0 17010fi 17011 17012cat >>confdefs.h <<_ACEOF 17013#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl 17014_ACEOF 17015if test $ac_have_decl = 1; then : 17016 17017else 17018 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17019fi 17020ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 17021#include <openssl/evp.h> 17022 17023" 17024if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then : 17025 ac_have_decl=1 17026else 17027 ac_have_decl=0 17028fi 17029 17030cat >>confdefs.h <<_ACEOF 17031#define HAVE_DECL_NID_SECP384R1 $ac_have_decl 17032_ACEOF 17033if test $ac_have_decl = 1; then : 17034 17035else 17036 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17037fi 17038 17039 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency) 17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5 17041$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; } 17042 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then 17043 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then 17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17045$as_echo "no" >&6; } 17046 17047cat >>confdefs.h <<_ACEOF 17048#define USE_ECDSA_EVP_WORKAROUND 1 17049_ACEOF 17050 17051 else 17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17053$as_echo "yes" >&6; } 17054 fi 17055 else 17056 # not OpenSSL, thus likely LibreSSL, which supports it 17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17058$as_echo "yes" >&6; } 17059 fi 17060 fi 17061 # we now know we have ECDSA and the required curves. 17062 17063cat >>confdefs.h <<_ACEOF 17064#define USE_ECDSA 1 17065_ACEOF 17066 17067 use_ecdsa="yes" 17068 ;; 17069esac 17070 17071# Check whether --enable-event-api was given. 17072if test "${enable_event_api+set}" = set; then : 17073 enableval=$enable_event_api; 17074fi 17075 17076use_unbound_event="no" 17077case "$enable_event_api" in 17078 yes) 17079 use_unbound_event="yes" 17080 ;; 17081 *) 17082 ;; 17083esac 17084 17085# check for libevent 17086 17087# Check whether --with-libevent was given. 17088if test "${with_libevent+set}" = set; then : 17089 withval=$with_libevent; 17090else 17091 withval="no" 17092fi 17093 17094if test x_$withval = x_yes -o x_$withval != x_no; then 17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 17096$as_echo_n "checking for libevent... " >&6; } 17097 if test x_$withval = x_ -o x_$withval = x_yes; then 17098 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 17099 fi 17100 for dir in $withval; do 17101 thedir="$dir" 17102 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 17103 found_libevent="yes" 17104 if test "$thedir" != "/usr"; then 17105 CPPFLAGS="$CPPFLAGS -I$thedir/include" 17106 fi 17107 break; 17108 fi 17109 done 17110 if test x_$found_libevent != x_yes; then 17111 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 17112 # libevent source directory 17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 17114$as_echo "found in $thedir" >&6; } 17115 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 17116 BAK_LDFLAGS_SET="1" 17117 BAK_LDFLAGS="$LDFLAGS" 17118 # remove evdns from linking 17119 mkdir build >/dev/null 2>&1 17120 mkdir build/libevent >/dev/null 2>&1 17121 mkdir build/libevent/.libs >/dev/null 2>&1 17122 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 17123 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo` 17124 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 17125 cp $ev_files_o build/libevent 17126 cp $ev_files_lo build/libevent 17127 cp $ev_files_libso build/libevent/.libs 17128 LATE_LDFLAGS="build/libevent/*.lo -lm" 17129 LDFLAGS="build/libevent/*.o $LDFLAGS -lm" 17130 else 17131 as_fn_error $? "Cannot find the libevent library in $withval 17132You can restart ./configure --with-libevent=no to use a builtin alternative. 17133Please note that this alternative is not as capable as libevent when using 17134large outgoing port ranges. " "$LINENO" 5 17135 fi 17136 else 17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 17138$as_echo "found in $thedir" >&6; } 17139 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 17140 LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 17141 17142 if test "x$enable_rpath" = xyes; then 17143 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 17144 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 17145 fi 17146 fi 17147 17148 else 17149 if test "$thedir" != "/usr" -a "$thedir" != ""; then 17150 LDFLAGS="$LDFLAGS -L$thedir/lib" 17151 17152 if test "x$enable_rpath" = xyes; then 17153 if echo "$thedir/lib" | grep "^/" >/dev/null; then 17154 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 17155 fi 17156 fi 17157 17158 fi 17159 fi 17160 fi 17161 # check for library used by libevent after 1.3c 17162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 17163$as_echo_n "checking for library containing clock_gettime... " >&6; } 17164if ${ac_cv_search_clock_gettime+:} false; then : 17165 $as_echo_n "(cached) " >&6 17166else 17167 ac_func_search_save_LIBS=$LIBS 17168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17169/* end confdefs.h. */ 17170 17171/* Override any GCC internal prototype to avoid an error. 17172 Use char because int might match the return type of a GCC 17173 builtin and then its argument prototype would still apply. */ 17174#ifdef __cplusplus 17175extern "C" 17176#endif 17177char clock_gettime (); 17178int 17179main () 17180{ 17181return clock_gettime (); 17182 ; 17183 return 0; 17184} 17185_ACEOF 17186for ac_lib in '' rt; do 17187 if test -z "$ac_lib"; then 17188 ac_res="none required" 17189 else 17190 ac_res=-l$ac_lib 17191 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17192 fi 17193 if ac_fn_c_try_link "$LINENO"; then : 17194 ac_cv_search_clock_gettime=$ac_res 17195fi 17196rm -f core conftest.err conftest.$ac_objext \ 17197 conftest$ac_exeext 17198 if ${ac_cv_search_clock_gettime+:} false; then : 17199 break 17200fi 17201done 17202if ${ac_cv_search_clock_gettime+:} false; then : 17203 17204else 17205 ac_cv_search_clock_gettime=no 17206fi 17207rm conftest.$ac_ext 17208LIBS=$ac_func_search_save_LIBS 17209fi 17210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 17211$as_echo "$ac_cv_search_clock_gettime" >&6; } 17212ac_res=$ac_cv_search_clock_gettime 17213if test "$ac_res" != no; then : 17214 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17215 17216fi 17217 17218 17219 # is the event.h header libev or libevent? 17220 for ac_header in event.h 17221do : 17222 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 17223" 17224if test "x$ac_cv_header_event_h" = xyes; then : 17225 cat >>confdefs.h <<_ACEOF 17226#define HAVE_EVENT_H 1 17227_ACEOF 17228 17229fi 17230 17231done 17232 17233 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 17234#include <event.h> 17235 17236" 17237if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then : 17238 17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 17240$as_echo_n "checking for library containing event_set... " >&6; } 17241if ${ac_cv_search_event_set+:} false; then : 17242 $as_echo_n "(cached) " >&6 17243else 17244 ac_func_search_save_LIBS=$LIBS 17245cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17246/* end confdefs.h. */ 17247 17248/* Override any GCC internal prototype to avoid an error. 17249 Use char because int might match the return type of a GCC 17250 builtin and then its argument prototype would still apply. */ 17251#ifdef __cplusplus 17252extern "C" 17253#endif 17254char event_set (); 17255int 17256main () 17257{ 17258return event_set (); 17259 ; 17260 return 0; 17261} 17262_ACEOF 17263for ac_lib in '' ev; do 17264 if test -z "$ac_lib"; then 17265 ac_res="none required" 17266 else 17267 ac_res=-l$ac_lib 17268 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17269 fi 17270 if ac_fn_c_try_link "$LINENO"; then : 17271 ac_cv_search_event_set=$ac_res 17272fi 17273rm -f core conftest.err conftest.$ac_objext \ 17274 conftest$ac_exeext 17275 if ${ac_cv_search_event_set+:} false; then : 17276 break 17277fi 17278done 17279if ${ac_cv_search_event_set+:} false; then : 17280 17281else 17282 ac_cv_search_event_set=no 17283fi 17284rm conftest.$ac_ext 17285LIBS=$ac_func_search_save_LIBS 17286fi 17287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 17288$as_echo "$ac_cv_search_event_set" >&6; } 17289ac_res=$ac_cv_search_event_set 17290if test "$ac_res" != no; then : 17291 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17292 17293fi 17294 17295 17296else 17297 17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 17299$as_echo_n "checking for library containing event_set... " >&6; } 17300if ${ac_cv_search_event_set+:} false; then : 17301 $as_echo_n "(cached) " >&6 17302else 17303 ac_func_search_save_LIBS=$LIBS 17304cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17305/* end confdefs.h. */ 17306 17307/* Override any GCC internal prototype to avoid an error. 17308 Use char because int might match the return type of a GCC 17309 builtin and then its argument prototype would still apply. */ 17310#ifdef __cplusplus 17311extern "C" 17312#endif 17313char event_set (); 17314int 17315main () 17316{ 17317return event_set (); 17318 ; 17319 return 0; 17320} 17321_ACEOF 17322for ac_lib in '' event; do 17323 if test -z "$ac_lib"; then 17324 ac_res="none required" 17325 else 17326 ac_res=-l$ac_lib 17327 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17328 fi 17329 if ac_fn_c_try_link "$LINENO"; then : 17330 ac_cv_search_event_set=$ac_res 17331fi 17332rm -f core conftest.err conftest.$ac_objext \ 17333 conftest$ac_exeext 17334 if ${ac_cv_search_event_set+:} false; then : 17335 break 17336fi 17337done 17338if ${ac_cv_search_event_set+:} false; then : 17339 17340else 17341 ac_cv_search_event_set=no 17342fi 17343rm conftest.$ac_ext 17344LIBS=$ac_func_search_save_LIBS 17345fi 17346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 17347$as_echo "$ac_cv_search_event_set" >&6; } 17348ac_res=$ac_cv_search_event_set 17349if test "$ac_res" != no; then : 17350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17351 17352fi 17353 17354 17355fi 17356 17357 for ac_func in event_base_free 17358do : 17359 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 17360if test "x$ac_cv_func_event_base_free" = xyes; then : 17361 cat >>confdefs.h <<_ACEOF 17362#define HAVE_EVENT_BASE_FREE 1 17363_ACEOF 17364 17365fi 17366done 17367 # only in libevent 1.2 and later 17368 for ac_func in event_base_once 17369do : 17370 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 17371if test "x$ac_cv_func_event_base_once" = xyes; then : 17372 cat >>confdefs.h <<_ACEOF 17373#define HAVE_EVENT_BASE_ONCE 1 17374_ACEOF 17375 17376fi 17377done 17378 # only in libevent 1.4.1 and later 17379 for ac_func in event_base_new 17380do : 17381 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 17382if test "x$ac_cv_func_event_base_new" = xyes; then : 17383 cat >>confdefs.h <<_ACEOF 17384#define HAVE_EVENT_BASE_NEW 1 17385_ACEOF 17386 17387fi 17388done 17389 # only in libevent 1.4.1 and later 17390 for ac_func in event_base_get_method 17391do : 17392 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 17393if test "x$ac_cv_func_event_base_get_method" = xyes; then : 17394 cat >>confdefs.h <<_ACEOF 17395#define HAVE_EVENT_BASE_GET_METHOD 1 17396_ACEOF 17397 17398fi 17399done 17400 # only in libevent 1.4.3 and later 17401 for ac_func in ev_loop 17402do : 17403 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 17404if test "x$ac_cv_func_ev_loop" = xyes; then : 17405 cat >>confdefs.h <<_ACEOF 17406#define HAVE_EV_LOOP 1 17407_ACEOF 17408 17409fi 17410done 17411 # only in libev. (tested on 3.51) 17412 for ac_func in ev_default_loop 17413do : 17414 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 17415if test "x$ac_cv_func_ev_default_loop" = xyes; then : 17416 cat >>confdefs.h <<_ACEOF 17417#define HAVE_EV_DEFAULT_LOOP 1 17418_ACEOF 17419 17420fi 17421done 17422 # only in libev. (tested on 4.00) 17423 if test -n "$BAK_LDFLAGS_SET"; then 17424 LDFLAGS="$BAK_LDFLAGS" 17425 fi 17426 if test "$use_unbound_event" = "yes"; then 17427 UNBOUND_EVENT_INSTALL=unbound-event-install 17428 17429 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall 17430 17431 fi 17432else 17433 17434$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h 17435 17436fi 17437 17438# check for libexpat 17439 17440# Check whether --with-libexpat was given. 17441if test "${with_libexpat+set}" = set; then : 17442 withval=$with_libexpat; 17443else 17444 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 17445fi 17446 17447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 17448$as_echo_n "checking for libexpat... " >&6; } 17449found_libexpat="no" 17450for dir in $withval ; do 17451 if test -f "$dir/include/expat.h"; then 17452 found_libexpat="yes" 17453 if test "$dir" != "/usr"; then 17454 CPPFLAGS="$CPPFLAGS -I$dir/include" 17455 LDFLAGS="$LDFLAGS -L$dir/lib" 17456 fi 17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 17458$as_echo "found in $dir" >&6; } 17459 break; 17460 fi 17461done 17462if test x_$found_libexpat != x_yes; then 17463 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5 17464fi 17465for ac_header in expat.h 17466do : 17467 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default 17468" 17469if test "x$ac_cv_header_expat_h" = xyes; then : 17470 cat >>confdefs.h <<_ACEOF 17471#define HAVE_EXPAT_H 1 17472_ACEOF 17473 17474fi 17475 17476done 17477 17478 17479# set static linking if requested 17480 17481staticexe="" 17482# Check whether --enable-static-exe was given. 17483if test "${enable_static_exe+set}" = set; then : 17484 enableval=$enable_static_exe; 17485fi 17486 17487if test x_$enable_static_exe = x_yes; then 17488 staticexe="-static" 17489 if test "$on_mingw" = yes; then 17490 staticexe="-all-static" 17491 # for static crosscompile, include gdi32 and zlib here. 17492 if test "`uname`" = "Linux"; then 17493 LIBS="$LIBS -lgdi32 -lz" 17494 fi 17495 fi 17496fi 17497 17498# set lock checking if requested 17499# Check whether --enable-lock_checks was given. 17500if test "${enable_lock_checks+set}" = set; then : 17501 enableval=$enable_lock_checks; 17502fi 17503 17504if test x_$enable_lock_checks = x_yes; then 17505 17506$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h 17507 17508 CHECKLOCK_OBJ="checklocks.lo" 17509 17510fi 17511 17512 17513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 17514$as_echo_n "checking for getaddrinfo... " >&6; } 17515ac_cv_func_getaddrinfo=no 17516cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17517/* end confdefs.h. */ 17518 17519#ifdef __cplusplus 17520extern "C" 17521{ 17522#endif 17523char* getaddrinfo(); 17524char* (*f) () = getaddrinfo; 17525#ifdef __cplusplus 17526} 17527#endif 17528int main() { 17529 ; 17530 return 0; 17531} 17532 17533_ACEOF 17534if ac_fn_c_try_link "$LINENO"; then : 17535 ac_cv_func_getaddrinfo="yes" 17536if test "$ac_cv_header_windows_h" = "yes"; then 17537 17538$as_echo "#define USE_WINSOCK 1" >>confdefs.h 17539 17540 USE_WINSOCK="1" 17541 LIBS="$LIBS -lws2_32" 17542fi 17543 17544else 17545 ORIGLIBS="$LIBS" 17546LIBS="$LIBS -lws2_32" 17547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17548/* end confdefs.h. */ 17549 17550#ifdef HAVE_WS2TCPIP_H 17551#include <ws2tcpip.h> 17552#endif 17553 17554int 17555main () 17556{ 17557 17558 (void)getaddrinfo(NULL, NULL, NULL, NULL); 17559 17560 17561 ; 17562 return 0; 17563} 17564_ACEOF 17565if ac_fn_c_try_link "$LINENO"; then : 17566 17567ac_cv_func_getaddrinfo="yes" 17568 17569$as_echo "#define USE_WINSOCK 1" >>confdefs.h 17570 17571USE_WINSOCK="1" 17572 17573else 17574 17575ac_cv_func_getaddrinfo="no" 17576LIBS="$ORIGLIBS" 17577 17578fi 17579rm -f core conftest.err conftest.$ac_objext \ 17580 conftest$ac_exeext conftest.$ac_ext 17581 17582fi 17583rm -f core conftest.err conftest.$ac_objext \ 17584 conftest$ac_exeext conftest.$ac_ext 17585 17586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 17587$as_echo "$ac_cv_func_getaddrinfo" >&6; } 17588if test $ac_cv_func_getaddrinfo = yes; then 17589 17590$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 17591 17592fi 17593 17594if test "$USE_WINSOCK" = 1; then 17595 17596$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h 17597 17598 for ac_header in iphlpapi.h 17599do : 17600 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default 17601#include <windows.h> 17602 17603" 17604if test "x$ac_cv_header_iphlpapi_h" = xyes; then : 17605 cat >>confdefs.h <<_ACEOF 17606#define HAVE_IPHLPAPI_H 1 17607_ACEOF 17608 17609fi 17610 17611done 17612 17613 if test -n "$ac_tool_prefix"; then 17614 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 17615set dummy ${ac_tool_prefix}windres; ac_word=$2 17616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17617$as_echo_n "checking for $ac_word... " >&6; } 17618if ${ac_cv_prog_WINDRES+:} false; then : 17619 $as_echo_n "(cached) " >&6 17620else 17621 if test -n "$WINDRES"; then 17622 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 17623else 17624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17625for as_dir in $PATH 17626do 17627 IFS=$as_save_IFS 17628 test -z "$as_dir" && as_dir=. 17629 for ac_exec_ext in '' $ac_executable_extensions; do 17630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17631 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 17632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17633 break 2 17634 fi 17635done 17636 done 17637IFS=$as_save_IFS 17638 17639fi 17640fi 17641WINDRES=$ac_cv_prog_WINDRES 17642if test -n "$WINDRES"; then 17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 17644$as_echo "$WINDRES" >&6; } 17645else 17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17647$as_echo "no" >&6; } 17648fi 17649 17650 17651fi 17652if test -z "$ac_cv_prog_WINDRES"; then 17653 ac_ct_WINDRES=$WINDRES 17654 # Extract the first word of "windres", so it can be a program name with args. 17655set dummy windres; ac_word=$2 17656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17657$as_echo_n "checking for $ac_word... " >&6; } 17658if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 17659 $as_echo_n "(cached) " >&6 17660else 17661 if test -n "$ac_ct_WINDRES"; then 17662 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 17663else 17664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17665for as_dir in $PATH 17666do 17667 IFS=$as_save_IFS 17668 test -z "$as_dir" && as_dir=. 17669 for ac_exec_ext in '' $ac_executable_extensions; do 17670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17671 ac_cv_prog_ac_ct_WINDRES="windres" 17672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17673 break 2 17674 fi 17675done 17676 done 17677IFS=$as_save_IFS 17678 17679fi 17680fi 17681ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 17682if test -n "$ac_ct_WINDRES"; then 17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 17684$as_echo "$ac_ct_WINDRES" >&6; } 17685else 17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17687$as_echo "no" >&6; } 17688fi 17689 17690 if test "x$ac_ct_WINDRES" = x; then 17691 WINDRES="" 17692 else 17693 case $cross_compiling:$ac_tool_warned in 17694yes:) 17695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17697ac_tool_warned=yes ;; 17698esac 17699 WINDRES=$ac_ct_WINDRES 17700 fi 17701else 17702 WINDRES="$ac_cv_prog_WINDRES" 17703fi 17704 17705 LIBS="$LIBS -liphlpapi" 17706 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe" 17707 17708 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c" 17709 17710 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo" 17711 17712 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o" 17713 17714 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o" 17715 17716 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo" 17717 17718 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o" 17719 17720 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o" 17721 17722fi 17723if test $ac_cv_func_getaddrinfo = no; then 17724 case " $LIBOBJS " in 17725 *" fake-rfc2553.$ac_objext "* ) ;; 17726 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 17727 ;; 17728esac 17729 17730fi 17731# check after getaddrinfo for its libraries 17732 17733# check ioctlsocket 17734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 17735$as_echo_n "checking for ioctlsocket... " >&6; } 17736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17737/* end confdefs.h. */ 17738 17739#ifdef HAVE_WINSOCK2_H 17740#include <winsock2.h> 17741#endif 17742 17743int 17744main () 17745{ 17746 17747 (void)ioctlsocket(0, 0, NULL); 17748 17749 ; 17750 return 0; 17751} 17752_ACEOF 17753if ac_fn_c_try_link "$LINENO"; then : 17754 17755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17756$as_echo "yes" >&6; } 17757 17758$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 17759 17760 17761else 17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17763$as_echo "no" >&6; } 17764fi 17765rm -f core conftest.err conftest.$ac_objext \ 17766 conftest$ac_exeext conftest.$ac_ext 17767 17768 17769# see if daemon(3) exists, and if it is deprecated. 17770for ac_func in daemon 17771do : 17772 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 17773if test "x$ac_cv_func_daemon" = xyes; then : 17774 cat >>confdefs.h <<_ACEOF 17775#define HAVE_DAEMON 1 17776_ACEOF 17777 17778fi 17779done 17780 17781if test $ac_cv_func_daemon = yes; then 17782 17783 17784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5 17785$as_echo_n "checking if daemon is deprecated... " >&6; } 17786cache=`echo daemon | sed 'y%.=/+-%___p_%'` 17787if eval \${cv_cc_deprecated_$cache+:} false; then : 17788 $as_echo_n "(cached) " >&6 17789else 17790 17791echo ' 17792#include <stdlib.h> 17793' >conftest.c 17794echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c 17795if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then 17796eval "cv_cc_deprecated_$cache=no" 17797else 17798eval "cv_cc_deprecated_$cache=yes" 17799fi 17800rm -f conftest conftest.o conftest.c 17801 17802fi 17803 17804if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 17805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17806$as_echo "yes" >&6; } 17807 17808cat >>confdefs.h <<_ACEOF 17809#define DEPRECATED_DAEMON 1 17810_ACEOF 17811 17812: 17813 17814else 17815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17816$as_echo "no" >&6; } 17817: 17818 17819fi 17820 17821fi 17822 17823ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " 17824$ac_includes_default 17825#ifdef HAVE_SYS_UN_H 17826#include <sys/un.h> 17827#endif 17828 17829" 17830if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : 17831 17832cat >>confdefs.h <<_ACEOF 17833#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 17834_ACEOF 17835 17836 17837fi 17838 17839ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" " 17840$ac_includes_default 17841#if HAVE_SYS_PARAM_H 17842#include <sys/param.h> 17843#endif 17844 17845#ifdef HAVE_SYS_SOCKET_H 17846#include <sys/socket.h> 17847#endif 17848 17849#ifdef HAVE_SYS_UIO_H 17850#include <sys/uio.h> 17851#endif 17852 17853#ifdef HAVE_NETINET_IN_H 17854#include <netinet/in.h> 17855#endif 17856 17857#ifdef HAVE_ARPA_INET_H 17858#include <arpa/inet.h> 17859#endif 17860 17861#ifdef HAVE_WINSOCK2_H 17862#include <winsock2.h> 17863#endif 17864 17865#ifdef HAVE_WS2TCPIP_H 17866#include <ws2tcpip.h> 17867#endif 17868 17869" 17870if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then : 17871 17872cat >>confdefs.h <<_ACEOF 17873#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1 17874_ACEOF 17875 17876 17877fi 17878 17879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 17880$as_echo_n "checking for library containing setusercontext... " >&6; } 17881if ${ac_cv_search_setusercontext+:} false; then : 17882 $as_echo_n "(cached) " >&6 17883else 17884 ac_func_search_save_LIBS=$LIBS 17885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17886/* end confdefs.h. */ 17887 17888/* Override any GCC internal prototype to avoid an error. 17889 Use char because int might match the return type of a GCC 17890 builtin and then its argument prototype would still apply. */ 17891#ifdef __cplusplus 17892extern "C" 17893#endif 17894char setusercontext (); 17895int 17896main () 17897{ 17898return setusercontext (); 17899 ; 17900 return 0; 17901} 17902_ACEOF 17903for ac_lib in '' util; do 17904 if test -z "$ac_lib"; then 17905 ac_res="none required" 17906 else 17907 ac_res=-l$ac_lib 17908 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17909 fi 17910 if ac_fn_c_try_link "$LINENO"; then : 17911 ac_cv_search_setusercontext=$ac_res 17912fi 17913rm -f core conftest.err conftest.$ac_objext \ 17914 conftest$ac_exeext 17915 if ${ac_cv_search_setusercontext+:} false; then : 17916 break 17917fi 17918done 17919if ${ac_cv_search_setusercontext+:} false; then : 17920 17921else 17922 ac_cv_search_setusercontext=no 17923fi 17924rm conftest.$ac_ext 17925LIBS=$ac_func_search_save_LIBS 17926fi 17927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 17928$as_echo "$ac_cv_search_setusercontext" >&6; } 17929ac_res=$ac_cv_search_setusercontext 17930if test "$ac_res" != no; then : 17931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17932 17933fi 17934 17935for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot kill sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent 17936do : 17937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17938ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17939if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17940 cat >>confdefs.h <<_ACEOF 17941#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17942_ACEOF 17943 17944fi 17945done 17946 17947for ac_func in setresuid 17948do : 17949 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 17950if test "x$ac_cv_func_setresuid" = xyes; then : 17951 cat >>confdefs.h <<_ACEOF 17952#define HAVE_SETRESUID 1 17953_ACEOF 17954 17955else 17956 for ac_func in setreuid 17957do : 17958 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 17959if test "x$ac_cv_func_setreuid" = xyes; then : 17960 cat >>confdefs.h <<_ACEOF 17961#define HAVE_SETREUID 1 17962_ACEOF 17963 17964fi 17965done 17966 17967fi 17968done 17969 17970for ac_func in setresgid 17971do : 17972 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 17973if test "x$ac_cv_func_setresgid" = xyes; then : 17974 cat >>confdefs.h <<_ACEOF 17975#define HAVE_SETRESGID 1 17976_ACEOF 17977 17978else 17979 for ac_func in setregid 17980do : 17981 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 17982if test "x$ac_cv_func_setregid" = xyes; then : 17983 cat >>confdefs.h <<_ACEOF 17984#define HAVE_SETREGID 1 17985_ACEOF 17986 17987fi 17988done 17989 17990fi 17991done 17992 17993 17994# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 17995if echo $build_os | grep darwin8 > /dev/null; then 17996 17997$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 17998 17999fi 18000ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 18001if test "x$ac_cv_func_inet_aton" = xyes; then : 18002 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 18003 18004else 18005 case " $LIBOBJS " in 18006 *" inet_aton.$ac_objext "* ) ;; 18007 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 18008 ;; 18009esac 18010 18011fi 18012 18013 18014ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 18015if test "x$ac_cv_func_inet_pton" = xyes; then : 18016 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 18017 18018else 18019 case " $LIBOBJS " in 18020 *" inet_pton.$ac_objext "* ) ;; 18021 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 18022 ;; 18023esac 18024 18025fi 18026 18027 18028ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 18029if test "x$ac_cv_func_inet_ntop" = xyes; then : 18030 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 18031 18032else 18033 case " $LIBOBJS " in 18034 *" inet_ntop.$ac_objext "* ) ;; 18035 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 18036 ;; 18037esac 18038 18039fi 18040 18041 18042ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 18043if test "x$ac_cv_func_snprintf" = xyes; then : 18044 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 18045 18046else 18047 case " $LIBOBJS " in 18048 *" snprintf.$ac_objext "* ) ;; 18049 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 18050 ;; 18051esac 18052 18053fi 18054 18055 18056ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 18057if test "x$ac_cv_func_strlcat" = xyes; then : 18058 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 18059 18060else 18061 case " $LIBOBJS " in 18062 *" strlcat.$ac_objext "* ) ;; 18063 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 18064 ;; 18065esac 18066 18067fi 18068 18069 18070ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 18071if test "x$ac_cv_func_strlcpy" = xyes; then : 18072 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 18073 18074else 18075 case " $LIBOBJS " in 18076 *" strlcpy.$ac_objext "* ) ;; 18077 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 18078 ;; 18079esac 18080 18081fi 18082 18083 18084ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 18085if test "x$ac_cv_func_memmove" = xyes; then : 18086 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 18087 18088else 18089 case " $LIBOBJS " in 18090 *" memmove.$ac_objext "* ) ;; 18091 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 18092 ;; 18093esac 18094 18095fi 18096 18097 18098ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 18099if test "x$ac_cv_func_gmtime_r" = xyes; then : 18100 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 18101 18102else 18103 case " $LIBOBJS " in 18104 *" gmtime_r.$ac_objext "* ) ;; 18105 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 18106 ;; 18107esac 18108 18109fi 18110 18111 18112LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS" 18113 18114if test "$USE_NSS" = "no"; then 18115 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 18116if test "x$ac_cv_func_arc4random" = xyes; then : 18117 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h 18118 18119else 18120 case " $LIBOBJS " in 18121 *" arc4random.$ac_objext "* ) ;; 18122 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext" 18123 ;; 18124esac 18125 18126fi 18127 18128 18129 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform" 18130if test "x$ac_cv_func_arc4random_uniform" = xyes; then : 18131 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h 18132 18133else 18134 case " $LIBOBJS " in 18135 *" arc4random_uniform.$ac_objext "* ) ;; 18136 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext" 18137 ;; 18138esac 18139 18140fi 18141 18142 18143 if test "$ac_cv_func_arc4random" = "no"; then 18144 case " $LIBOBJS " in 18145 *" explicit_bzero.$ac_objext "* ) ;; 18146 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" 18147 ;; 18148esac 18149 18150 case " $LIBOBJS " in 18151 *" arc4_lock.$ac_objext "* ) ;; 18152 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext" 18153 ;; 18154esac 18155 18156 for ac_func in getentropy 18157do : 18158 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 18159if test "x$ac_cv_func_getentropy" = xyes; then : 18160 cat >>confdefs.h <<_ACEOF 18161#define HAVE_GETENTROPY 1 18162_ACEOF 18163 18164else 18165 18166 if test "$USE_WINSOCK" = 1; then 18167 case " $LIBOBJS " in 18168 *" getentropy_win.$ac_objext "* ) ;; 18169 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext" 18170 ;; 18171esac 18172 18173 else 18174 case `uname` in 18175 Darwin) 18176 case " $LIBOBJS " in 18177 *" getentropy_osx.$ac_objext "* ) ;; 18178 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext" 18179 ;; 18180esac 18181 18182 ;; 18183 SunOS) 18184 case " $LIBOBJS " in 18185 *" getentropy_solaris.$ac_objext "* ) ;; 18186 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext" 18187 ;; 18188esac 18189 18190 for ac_header in sys/sha2.h 18191do : 18192 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default 18193" 18194if test "x$ac_cv_header_sys_sha2_h" = xyes; then : 18195 cat >>confdefs.h <<_ACEOF 18196#define HAVE_SYS_SHA2_H 1 18197_ACEOF 18198 18199else 18200 18201 for ac_func in SHA512_Update 18202do : 18203 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 18204if test "x$ac_cv_func_SHA512_Update" = xyes; then : 18205 cat >>confdefs.h <<_ACEOF 18206#define HAVE_SHA512_UPDATE 1 18207_ACEOF 18208 18209else 18210 18211 case " $LIBOBJS " in 18212 *" sha512.$ac_objext "* ) ;; 18213 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 18214 ;; 18215esac 18216 18217 18218fi 18219done 18220 18221 18222fi 18223 18224done 18225 18226 if test "$ac_cv_header_sys_sha2_h" = "yes"; then 18227 # this lib needed for sha2 on solaris 18228 LIBS="$LIBS -lmd" 18229 fi 18230 ;; 18231 Linux|*) 18232 case " $LIBOBJS " in 18233 *" getentropy_linux.$ac_objext "* ) ;; 18234 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext" 18235 ;; 18236esac 18237 18238 for ac_func in SHA512_Update 18239do : 18240 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 18241if test "x$ac_cv_func_SHA512_Update" = xyes; then : 18242 cat >>confdefs.h <<_ACEOF 18243#define HAVE_SHA512_UPDATE 1 18244_ACEOF 18245 18246else 18247 18248 18249$as_echo "#define COMPAT_SHA512 1" >>confdefs.h 18250 18251 case " $LIBOBJS " in 18252 *" sha512.$ac_objext "* ) ;; 18253 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 18254 ;; 18255esac 18256 18257 18258fi 18259done 18260 18261 for ac_header in sys/sysctl.h 18262do : 18263 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 18264" 18265if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 18266 cat >>confdefs.h <<_ACEOF 18267#define HAVE_SYS_SYSCTL_H 1 18268_ACEOF 18269 18270fi 18271 18272done 18273 18274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 18275$as_echo_n "checking for library containing clock_gettime... " >&6; } 18276if ${ac_cv_search_clock_gettime+:} false; then : 18277 $as_echo_n "(cached) " >&6 18278else 18279 ac_func_search_save_LIBS=$LIBS 18280cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18281/* end confdefs.h. */ 18282 18283/* Override any GCC internal prototype to avoid an error. 18284 Use char because int might match the return type of a GCC 18285 builtin and then its argument prototype would still apply. */ 18286#ifdef __cplusplus 18287extern "C" 18288#endif 18289char clock_gettime (); 18290int 18291main () 18292{ 18293return clock_gettime (); 18294 ; 18295 return 0; 18296} 18297_ACEOF 18298for ac_lib in '' rt; do 18299 if test -z "$ac_lib"; then 18300 ac_res="none required" 18301 else 18302 ac_res=-l$ac_lib 18303 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18304 fi 18305 if ac_fn_c_try_link "$LINENO"; then : 18306 ac_cv_search_clock_gettime=$ac_res 18307fi 18308rm -f core conftest.err conftest.$ac_objext \ 18309 conftest$ac_exeext 18310 if ${ac_cv_search_clock_gettime+:} false; then : 18311 break 18312fi 18313done 18314if ${ac_cv_search_clock_gettime+:} false; then : 18315 18316else 18317 ac_cv_search_clock_gettime=no 18318fi 18319rm conftest.$ac_ext 18320LIBS=$ac_func_search_save_LIBS 18321fi 18322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 18323$as_echo "$ac_cv_search_clock_gettime" >&6; } 18324ac_res=$ac_cv_search_clock_gettime 18325if test "$ac_res" != no; then : 18326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18327 18328fi 18329 18330 ;; 18331 esac 18332 fi 18333 18334fi 18335done 18336 18337 fi 18338fi 18339LIBOBJ_WITHOUT_CTIME="$LIBOBJS" 18340 18341ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 18342if test "x$ac_cv_func_ctime_r" = xyes; then : 18343 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 18344 18345else 18346 case " $LIBOBJS " in 18347 *" ctime_r.$ac_objext "* ) ;; 18348 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 18349 ;; 18350esac 18351 18352fi 18353 18354 18355 18356# Check whether --enable-allsymbols was given. 18357if test "${enable_allsymbols+set}" = set; then : 18358 enableval=$enable_allsymbols; 18359fi 18360 18361case "$enable_allsymbols" in 18362 yes) 18363 COMMON_OBJ_ALL_SYMBOLS="" 18364 UBSYMS="" 18365 EXTRALINK="-L. -L.libs -lunbound" 18366 18367$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h 18368 18369 ;; 18370 no|*) 18371 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)' 18372 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def' 18373 EXTRALINK="" 18374 ;; 18375esac 18376 18377 18378 18379if test x_$enable_lock_checks = x_yes; then 18380 UBSYMS="-export-symbols clubsyms.def" 18381 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def 18382 echo lock_protect >> clubsyms.def 18383 echo lock_unprotect >> clubsyms.def 18384 echo lock_get_mem >> clubsyms.def 18385 echo checklock_start >> clubsyms.def 18386 echo checklock_stop >> clubsyms.def 18387 echo checklock_lock >> clubsyms.def 18388 echo checklock_unlock >> clubsyms.def 18389 echo checklock_init >> clubsyms.def 18390 echo checklock_thrcreate >> clubsyms.def 18391 echo checklock_thrjoin >> clubsyms.def 18392fi 18393 18394# check for dnstap if requested 18395 18396 # Check whether --enable-dnstap was given. 18397if test "${enable_dnstap+set}" = set; then : 18398 enableval=$enable_dnstap; opt_dnstap=$enableval 18399else 18400 opt_dnstap=no 18401fi 18402 18403 18404 18405# Check whether --with-dnstap-socket-path was given. 18406if test "${with_dnstap_socket_path+set}" = set; then : 18407 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval 18408else 18409 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock" 18410fi 18411 18412 18413 if test "x$opt_dnstap" != "xno"; then 18414 # Extract the first word of "protoc-c", so it can be a program name with args. 18415set dummy protoc-c; ac_word=$2 18416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18417$as_echo_n "checking for $ac_word... " >&6; } 18418if ${ac_cv_path_PROTOC_C+:} false; then : 18419 $as_echo_n "(cached) " >&6 18420else 18421 case $PROTOC_C in 18422 [\\/]* | ?:[\\/]*) 18423 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 18424 ;; 18425 *) 18426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18427for as_dir in $PATH 18428do 18429 IFS=$as_save_IFS 18430 test -z "$as_dir" && as_dir=. 18431 for ac_exec_ext in '' $ac_executable_extensions; do 18432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18433 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext" 18434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18435 break 2 18436 fi 18437done 18438 done 18439IFS=$as_save_IFS 18440 18441 ;; 18442esac 18443fi 18444PROTOC_C=$ac_cv_path_PROTOC_C 18445if test -n "$PROTOC_C"; then 18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 18447$as_echo "$PROTOC_C" >&6; } 18448else 18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18450$as_echo "no" >&6; } 18451fi 18452 18453 18454 if test -z "$PROTOC_C"; then 18455 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5 18456 fi 18457 18458# Check whether --with-protobuf-c was given. 18459if test "${with_protobuf_c+set}" = set; then : 18460 withval=$with_protobuf_c; 18461 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 18462 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then 18463 CFLAGS="$CFLAGS -I$withval/include/google" 18464 else 18465 CFLAGS="$CFLAGS -I$withval/include" 18466 fi 18467 LDFLAGS="$LDFLAGS -L$withval/lib" 18468 18469else 18470 18471 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 18472 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 18473 CFLAGS="$CFLAGS -I/usr/include/google" 18474 else 18475 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 18476 CFLAGS="$CFLAGS -I/usr/local/include/google" 18477 LDFLAGS="$LDFLAGS -L/usr/local/lib" 18478 fi 18479 fi 18480 18481fi 18482 18483 18484# Check whether --with-libfstrm was given. 18485if test "${with_libfstrm+set}" = set; then : 18486 withval=$with_libfstrm; 18487 CFLAGS="$CFLAGS -I$withval/include" 18488 LDFLAGS="$LDFLAGS -L$withval/lib" 18489 18490fi 18491 18492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5 18493$as_echo_n "checking for library containing fstrm_iothr_init... " >&6; } 18494if ${ac_cv_search_fstrm_iothr_init+:} false; then : 18495 $as_echo_n "(cached) " >&6 18496else 18497 ac_func_search_save_LIBS=$LIBS 18498cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18499/* end confdefs.h. */ 18500 18501/* Override any GCC internal prototype to avoid an error. 18502 Use char because int might match the return type of a GCC 18503 builtin and then its argument prototype would still apply. */ 18504#ifdef __cplusplus 18505extern "C" 18506#endif 18507char fstrm_iothr_init (); 18508int 18509main () 18510{ 18511return fstrm_iothr_init (); 18512 ; 18513 return 0; 18514} 18515_ACEOF 18516for ac_lib in '' fstrm; do 18517 if test -z "$ac_lib"; then 18518 ac_res="none required" 18519 else 18520 ac_res=-l$ac_lib 18521 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18522 fi 18523 if ac_fn_c_try_link "$LINENO"; then : 18524 ac_cv_search_fstrm_iothr_init=$ac_res 18525fi 18526rm -f core conftest.err conftest.$ac_objext \ 18527 conftest$ac_exeext 18528 if ${ac_cv_search_fstrm_iothr_init+:} false; then : 18529 break 18530fi 18531done 18532if ${ac_cv_search_fstrm_iothr_init+:} false; then : 18533 18534else 18535 ac_cv_search_fstrm_iothr_init=no 18536fi 18537rm conftest.$ac_ext 18538LIBS=$ac_func_search_save_LIBS 18539fi 18540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5 18541$as_echo "$ac_cv_search_fstrm_iothr_init" >&6; } 18542ac_res=$ac_cv_search_fstrm_iothr_init 18543if test "$ac_res" != no; then : 18544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18545 18546else 18547 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5 18548fi 18549 18550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5 18551$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; } 18552if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 18553 $as_echo_n "(cached) " >&6 18554else 18555 ac_func_search_save_LIBS=$LIBS 18556cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18557/* end confdefs.h. */ 18558 18559/* Override any GCC internal prototype to avoid an error. 18560 Use char because int might match the return type of a GCC 18561 builtin and then its argument prototype would still apply. */ 18562#ifdef __cplusplus 18563extern "C" 18564#endif 18565char protobuf_c_message_pack (); 18566int 18567main () 18568{ 18569return protobuf_c_message_pack (); 18570 ; 18571 return 0; 18572} 18573_ACEOF 18574for ac_lib in '' protobuf-c; do 18575 if test -z "$ac_lib"; then 18576 ac_res="none required" 18577 else 18578 ac_res=-l$ac_lib 18579 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18580 fi 18581 if ac_fn_c_try_link "$LINENO"; then : 18582 ac_cv_search_protobuf_c_message_pack=$ac_res 18583fi 18584rm -f core conftest.err conftest.$ac_objext \ 18585 conftest$ac_exeext 18586 if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 18587 break 18588fi 18589done 18590if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 18591 18592else 18593 ac_cv_search_protobuf_c_message_pack=no 18594fi 18595rm conftest.$ac_ext 18596LIBS=$ac_func_search_save_LIBS 18597fi 18598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5 18599$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; } 18600ac_res=$ac_cv_search_protobuf_c_message_pack 18601if test "$ac_res" != no; then : 18602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18603 18604else 18605 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5 18606fi 18607 18608 18609 18610$as_echo "#define USE_DNSTAP 1" >>confdefs.h 18611 18612 ENABLE_DNSTAP=1 18613 18614 18615 18616 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`" 18617 18618 18619cat >>confdefs.h <<_ACEOF 18620#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path" 18621_ACEOF 18622 18623 18624 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c" 18625 18626 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo" 18627 18628 18629 else 18630 18631 ENABLE_DNSTAP=0 18632 18633 18634 18635 fi 18636 18637 18638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5 18639$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; } 18640# on openBSD, the implicit rule make $< work. 18641# on Solaris, it does not work ($? is changed sources, $^ lists dependencies). 18642# gmake works. 18643cat >conftest.make <<EOF 18644all: conftest.lo 18645 18646conftest.lo foo.lo bla.lo: 18647 if test -f "\$<"; then touch \$@; fi 18648 18649.SUFFIXES: .lo 18650.c.lo: 18651 if test -f "\$<"; then touch \$@; fi 18652 18653conftest.lo: conftest.dir/conftest.c 18654EOF 18655mkdir conftest.dir 18656touch conftest.dir/conftest.c 18657rm -f conftest.lo conftest.c 18658${MAKE:-make} -f conftest.make >/dev/null 18659rm -f conftest.make conftest.c conftest.dir/conftest.c 18660rm -rf conftest.dir 18661if test ! -f conftest.lo; then 18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18663$as_echo "no" >&6; } 18664 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source' 18665 SOURCEFILE='`cat .source`' 18666else 18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18668$as_echo "yes" >&6; } 18669 SOURCEDETERMINE=':' 18670 SOURCEFILE='$<' 18671fi 18672rm -f conftest.lo 18673 18674 18675 18676# see if we want to build the library or everything 18677ALLTARGET="alltargets" 18678INSTALLTARGET="install-all" 18679 18680# Check whether --with-libunbound-only was given. 18681if test "${with_libunbound_only+set}" = set; then : 18682 withval=$with_libunbound_only; 18683 if test "$withval" = "yes"; then 18684 ALLTARGET="lib" 18685 INSTALLTARGET="install-lib" 18686 fi 18687 18688fi 18689 18690 18691 18692 18693 18694 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5 18695$as_echo "$as_me: Stripping extension flags..." >&6;} 18696 18697 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then 18698 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`" 18699 18700$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h 18701 18702 fi 18703 18704 18705 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then 18706 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`" 18707 18708$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h 18709 18710 fi 18711 18712 18713 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then 18714 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`" 18715 18716$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h 18717 18718 fi 18719 18720 18721 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then 18722 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`" 18723 18724$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h 18725 18726 fi 18727 18728 18729 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then 18730 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`" 18731 18732$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h 18733 18734 fi 18735 18736 18737 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then 18738 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`" 18739 18740$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h 18741 18742 fi 18743 18744 18745 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then 18746 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`" 18747 18748$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h 18749 18750 fi 18751 18752 18753 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then 18754 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`" 18755 18756$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h 18757 18758 fi 18759 18760 18761LDFLAGS="$LATE_LDFLAGS $LDFLAGS" 18762 18763 18764cat >>confdefs.h <<_ACEOF 18765#define MAXSYSLOGMSGLEN 10240 18766_ACEOF 18767 18768 18769 18770 18771version=1.5.1 18772 18773date=`date +'%b %e, %Y'` 18774 18775 18776ac_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" 18777 18778ac_config_headers="$ac_config_headers config.h" 18779 18780cat >confcache <<\_ACEOF 18781# This file is a shell script that caches the results of configure 18782# tests run on this system so they can be shared between configure 18783# scripts and configure runs, see configure's option --config-cache. 18784# It is not useful on other systems. If it contains results you don't 18785# want to keep, you may remove or edit it. 18786# 18787# config.status only pays attention to the cache file if you give it 18788# the --recheck option to rerun configure. 18789# 18790# `ac_cv_env_foo' variables (set or unset) will be overridden when 18791# loading this file, other *unset* `ac_cv_foo' will be assigned the 18792# following values. 18793 18794_ACEOF 18795 18796# The following way of writing the cache mishandles newlines in values, 18797# but we know of no workaround that is simple, portable, and efficient. 18798# So, we kill variables containing newlines. 18799# Ultrix sh set writes to stderr and can't be redirected directly, 18800# and sets the high bit in the cache file unless we assign to the vars. 18801( 18802 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18803 eval ac_val=\$$ac_var 18804 case $ac_val in #( 18805 *${as_nl}*) 18806 case $ac_var in #( 18807 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18808$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18809 esac 18810 case $ac_var in #( 18811 _ | IFS | as_nl) ;; #( 18812 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18813 *) { eval $ac_var=; unset $ac_var;} ;; 18814 esac ;; 18815 esac 18816 done 18817 18818 (set) 2>&1 | 18819 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18820 *${as_nl}ac_space=\ *) 18821 # `set' does not quote correctly, so add quotes: double-quote 18822 # substitution turns \\\\ into \\, and sed turns \\ into \. 18823 sed -n \ 18824 "s/'/'\\\\''/g; 18825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18826 ;; #( 18827 *) 18828 # `set' quotes correctly as required by POSIX, so do not add quotes. 18829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18830 ;; 18831 esac | 18832 sort 18833) | 18834 sed ' 18835 /^ac_cv_env_/b end 18836 t clear 18837 :clear 18838 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18839 t end 18840 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18841 :end' >>confcache 18842if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18843 if test -w "$cache_file"; then 18844 if test "x$cache_file" != "x/dev/null"; then 18845 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18846$as_echo "$as_me: updating cache $cache_file" >&6;} 18847 if test ! -f "$cache_file" || test -h "$cache_file"; then 18848 cat confcache >"$cache_file" 18849 else 18850 case $cache_file in #( 18851 */* | ?:*) 18852 mv -f confcache "$cache_file"$$ && 18853 mv -f "$cache_file"$$ "$cache_file" ;; #( 18854 *) 18855 mv -f confcache "$cache_file" ;; 18856 esac 18857 fi 18858 fi 18859 else 18860 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18861$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18862 fi 18863fi 18864rm -f confcache 18865 18866test "x$prefix" = xNONE && prefix=$ac_default_prefix 18867# Let make expand exec_prefix. 18868test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18869 18870DEFS=-DHAVE_CONFIG_H 18871 18872ac_libobjs= 18873ac_ltlibobjs= 18874U= 18875for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18876 # 1. Remove the extension, and $U if already installed. 18877 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18878 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18879 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18880 # will be set to the directory where LIBOBJS objects are built. 18881 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18882 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18883done 18884LIBOBJS=$ac_libobjs 18885 18886LTLIBOBJS=$ac_ltlibobjs 18887 18888 18889 18890: "${CONFIG_STATUS=./config.status}" 18891ac_write_fail=0 18892ac_clean_files_save=$ac_clean_files 18893ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18894{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18895$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18896as_write_fail=0 18897cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18898#! $SHELL 18899# Generated by $as_me. 18900# Run this file to recreate the current configuration. 18901# Compiler output produced by configure, useful for debugging 18902# configure, is in config.log if it exists. 18903 18904debug=false 18905ac_cs_recheck=false 18906ac_cs_silent=false 18907 18908SHELL=\${CONFIG_SHELL-$SHELL} 18909export SHELL 18910_ASEOF 18911cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18912## -------------------- ## 18913## M4sh Initialization. ## 18914## -------------------- ## 18915 18916# Be more Bourne compatible 18917DUALCASE=1; export DUALCASE # for MKS sh 18918if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18919 emulate sh 18920 NULLCMD=: 18921 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18922 # is contrary to our usage. Disable this feature. 18923 alias -g '${1+"$@"}'='"$@"' 18924 setopt NO_GLOB_SUBST 18925else 18926 case `(set -o) 2>/dev/null` in #( 18927 *posix*) : 18928 set -o posix ;; #( 18929 *) : 18930 ;; 18931esac 18932fi 18933 18934 18935as_nl=' 18936' 18937export as_nl 18938# Printing a long string crashes Solaris 7 /usr/bin/printf. 18939as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18940as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18941as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18942# Prefer a ksh shell builtin over an external printf program on Solaris, 18943# but without wasting forks for bash or zsh. 18944if test -z "$BASH_VERSION$ZSH_VERSION" \ 18945 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18946 as_echo='print -r --' 18947 as_echo_n='print -rn --' 18948elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18949 as_echo='printf %s\n' 18950 as_echo_n='printf %s' 18951else 18952 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18953 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18954 as_echo_n='/usr/ucb/echo -n' 18955 else 18956 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18957 as_echo_n_body='eval 18958 arg=$1; 18959 case $arg in #( 18960 *"$as_nl"*) 18961 expr "X$arg" : "X\\(.*\\)$as_nl"; 18962 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18963 esac; 18964 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18965 ' 18966 export as_echo_n_body 18967 as_echo_n='sh -c $as_echo_n_body as_echo' 18968 fi 18969 export as_echo_body 18970 as_echo='sh -c $as_echo_body as_echo' 18971fi 18972 18973# The user is always right. 18974if test "${PATH_SEPARATOR+set}" != set; then 18975 PATH_SEPARATOR=: 18976 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18977 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18978 PATH_SEPARATOR=';' 18979 } 18980fi 18981 18982 18983# IFS 18984# We need space, tab and new line, in precisely that order. Quoting is 18985# there to prevent editors from complaining about space-tab. 18986# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18987# splitting by setting IFS to empty value.) 18988IFS=" "" $as_nl" 18989 18990# Find who we are. Look in the path if we contain no directory separator. 18991as_myself= 18992case $0 in #(( 18993 *[\\/]* ) as_myself=$0 ;; 18994 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18995for as_dir in $PATH 18996do 18997 IFS=$as_save_IFS 18998 test -z "$as_dir" && as_dir=. 18999 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19000 done 19001IFS=$as_save_IFS 19002 19003 ;; 19004esac 19005# We did not find ourselves, most probably we were run as `sh COMMAND' 19006# in which case we are not to be found in the path. 19007if test "x$as_myself" = x; then 19008 as_myself=$0 19009fi 19010if test ! -f "$as_myself"; then 19011 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19012 exit 1 19013fi 19014 19015# Unset variables that we do not need and which cause bugs (e.g. in 19016# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19017# suppresses any "Segmentation fault" message there. '((' could 19018# trigger a bug in pdksh 5.2.14. 19019for as_var in BASH_ENV ENV MAIL MAILPATH 19020do eval test x\${$as_var+set} = xset \ 19021 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19022done 19023PS1='$ ' 19024PS2='> ' 19025PS4='+ ' 19026 19027# NLS nuisances. 19028LC_ALL=C 19029export LC_ALL 19030LANGUAGE=C 19031export LANGUAGE 19032 19033# CDPATH. 19034(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19035 19036 19037# as_fn_error STATUS ERROR [LINENO LOG_FD] 19038# ---------------------------------------- 19039# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19040# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19041# script with STATUS, using 1 if that was 0. 19042as_fn_error () 19043{ 19044 as_status=$1; test $as_status -eq 0 && as_status=1 19045 if test "$4"; then 19046 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19047 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19048 fi 19049 $as_echo "$as_me: error: $2" >&2 19050 as_fn_exit $as_status 19051} # as_fn_error 19052 19053 19054# as_fn_set_status STATUS 19055# ----------------------- 19056# Set $? to STATUS, without forking. 19057as_fn_set_status () 19058{ 19059 return $1 19060} # as_fn_set_status 19061 19062# as_fn_exit STATUS 19063# ----------------- 19064# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19065as_fn_exit () 19066{ 19067 set +e 19068 as_fn_set_status $1 19069 exit $1 19070} # as_fn_exit 19071 19072# as_fn_unset VAR 19073# --------------- 19074# Portably unset VAR. 19075as_fn_unset () 19076{ 19077 { eval $1=; unset $1;} 19078} 19079as_unset=as_fn_unset 19080# as_fn_append VAR VALUE 19081# ---------------------- 19082# Append the text in VALUE to the end of the definition contained in VAR. Take 19083# advantage of any shell optimizations that allow amortized linear growth over 19084# repeated appends, instead of the typical quadratic growth present in naive 19085# implementations. 19086if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19087 eval 'as_fn_append () 19088 { 19089 eval $1+=\$2 19090 }' 19091else 19092 as_fn_append () 19093 { 19094 eval $1=\$$1\$2 19095 } 19096fi # as_fn_append 19097 19098# as_fn_arith ARG... 19099# ------------------ 19100# Perform arithmetic evaluation on the ARGs, and store the result in the 19101# global $as_val. Take advantage of shells that can avoid forks. The arguments 19102# must be portable across $(()) and expr. 19103if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19104 eval 'as_fn_arith () 19105 { 19106 as_val=$(( $* )) 19107 }' 19108else 19109 as_fn_arith () 19110 { 19111 as_val=`expr "$@" || test $? -eq 1` 19112 } 19113fi # as_fn_arith 19114 19115 19116if expr a : '\(a\)' >/dev/null 2>&1 && 19117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19118 as_expr=expr 19119else 19120 as_expr=false 19121fi 19122 19123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19124 as_basename=basename 19125else 19126 as_basename=false 19127fi 19128 19129if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19130 as_dirname=dirname 19131else 19132 as_dirname=false 19133fi 19134 19135as_me=`$as_basename -- "$0" || 19136$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19137 X"$0" : 'X\(//\)$' \| \ 19138 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19139$as_echo X/"$0" | 19140 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19141 s//\1/ 19142 q 19143 } 19144 /^X\/\(\/\/\)$/{ 19145 s//\1/ 19146 q 19147 } 19148 /^X\/\(\/\).*/{ 19149 s//\1/ 19150 q 19151 } 19152 s/.*/./; q'` 19153 19154# Avoid depending upon Character Ranges. 19155as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19156as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19157as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19158as_cr_digits='0123456789' 19159as_cr_alnum=$as_cr_Letters$as_cr_digits 19160 19161ECHO_C= ECHO_N= ECHO_T= 19162case `echo -n x` in #((((( 19163-n*) 19164 case `echo 'xy\c'` in 19165 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19166 xy) ECHO_C='\c';; 19167 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19168 ECHO_T=' ';; 19169 esac;; 19170*) 19171 ECHO_N='-n';; 19172esac 19173 19174rm -f conf$$ conf$$.exe conf$$.file 19175if test -d conf$$.dir; then 19176 rm -f conf$$.dir/conf$$.file 19177else 19178 rm -f conf$$.dir 19179 mkdir conf$$.dir 2>/dev/null 19180fi 19181if (echo >conf$$.file) 2>/dev/null; then 19182 if ln -s conf$$.file conf$$ 2>/dev/null; then 19183 as_ln_s='ln -s' 19184 # ... but there are two gotchas: 19185 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19186 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19187 # In both cases, we have to default to `cp -pR'. 19188 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19189 as_ln_s='cp -pR' 19190 elif ln conf$$.file conf$$ 2>/dev/null; then 19191 as_ln_s=ln 19192 else 19193 as_ln_s='cp -pR' 19194 fi 19195else 19196 as_ln_s='cp -pR' 19197fi 19198rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19199rmdir conf$$.dir 2>/dev/null 19200 19201 19202# as_fn_mkdir_p 19203# ------------- 19204# Create "$as_dir" as a directory, including parents if necessary. 19205as_fn_mkdir_p () 19206{ 19207 19208 case $as_dir in #( 19209 -*) as_dir=./$as_dir;; 19210 esac 19211 test -d "$as_dir" || eval $as_mkdir_p || { 19212 as_dirs= 19213 while :; do 19214 case $as_dir in #( 19215 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19216 *) as_qdir=$as_dir;; 19217 esac 19218 as_dirs="'$as_qdir' $as_dirs" 19219 as_dir=`$as_dirname -- "$as_dir" || 19220$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19221 X"$as_dir" : 'X\(//\)[^/]' \| \ 19222 X"$as_dir" : 'X\(//\)$' \| \ 19223 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19224$as_echo X"$as_dir" | 19225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19226 s//\1/ 19227 q 19228 } 19229 /^X\(\/\/\)[^/].*/{ 19230 s//\1/ 19231 q 19232 } 19233 /^X\(\/\/\)$/{ 19234 s//\1/ 19235 q 19236 } 19237 /^X\(\/\).*/{ 19238 s//\1/ 19239 q 19240 } 19241 s/.*/./; q'` 19242 test -d "$as_dir" && break 19243 done 19244 test -z "$as_dirs" || eval "mkdir $as_dirs" 19245 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19246 19247 19248} # as_fn_mkdir_p 19249if mkdir -p . 2>/dev/null; then 19250 as_mkdir_p='mkdir -p "$as_dir"' 19251else 19252 test -d ./-p && rmdir ./-p 19253 as_mkdir_p=false 19254fi 19255 19256 19257# as_fn_executable_p FILE 19258# ----------------------- 19259# Test if FILE is an executable regular file. 19260as_fn_executable_p () 19261{ 19262 test -f "$1" && test -x "$1" 19263} # as_fn_executable_p 19264as_test_x='test -x' 19265as_executable_p=as_fn_executable_p 19266 19267# Sed expression to map a string onto a valid CPP name. 19268as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19269 19270# Sed expression to map a string onto a valid variable name. 19271as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19272 19273 19274exec 6>&1 19275## ----------------------------------- ## 19276## Main body of $CONFIG_STATUS script. ## 19277## ----------------------------------- ## 19278_ASEOF 19279test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19280 19281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19282# Save the log message, to keep $0 and so on meaningful, and to 19283# report actual input values of CONFIG_FILES etc. instead of their 19284# values after options handling. 19285ac_log=" 19286This file was extended by unbound $as_me 1.5.1, which was 19287generated by GNU Autoconf 2.69. Invocation command line was 19288 19289 CONFIG_FILES = $CONFIG_FILES 19290 CONFIG_HEADERS = $CONFIG_HEADERS 19291 CONFIG_LINKS = $CONFIG_LINKS 19292 CONFIG_COMMANDS = $CONFIG_COMMANDS 19293 $ $0 $@ 19294 19295on `(hostname || uname -n) 2>/dev/null | sed 1q` 19296" 19297 19298_ACEOF 19299 19300case $ac_config_files in *" 19301"*) set x $ac_config_files; shift; ac_config_files=$*;; 19302esac 19303 19304case $ac_config_headers in *" 19305"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19306esac 19307 19308 19309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19310# Files that config.status was made for. 19311config_files="$ac_config_files" 19312config_headers="$ac_config_headers" 19313config_commands="$ac_config_commands" 19314 19315_ACEOF 19316 19317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19318ac_cs_usage="\ 19319\`$as_me' instantiates files and other configuration actions 19320from templates according to the current configuration. Unless the files 19321and actions are specified as TAGs, all are instantiated by default. 19322 19323Usage: $0 [OPTION]... [TAG]... 19324 19325 -h, --help print this help, then exit 19326 -V, --version print version number and configuration settings, then exit 19327 --config print configuration, then exit 19328 -q, --quiet, --silent 19329 do not print progress messages 19330 -d, --debug don't remove temporary files 19331 --recheck update $as_me by reconfiguring in the same conditions 19332 --file=FILE[:TEMPLATE] 19333 instantiate the configuration file FILE 19334 --header=FILE[:TEMPLATE] 19335 instantiate the configuration header FILE 19336 19337Configuration files: 19338$config_files 19339 19340Configuration headers: 19341$config_headers 19342 19343Configuration commands: 19344$config_commands 19345 19346Report bugs to <unbound-bugs@nlnetlabs.nl>." 19347 19348_ACEOF 19349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19350ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19351ac_cs_version="\\ 19352unbound config.status 1.5.1 19353configured by $0, generated by GNU Autoconf 2.69, 19354 with options \\"\$ac_cs_config\\" 19355 19356Copyright (C) 2012 Free Software Foundation, Inc. 19357This config.status script is free software; the Free Software Foundation 19358gives unlimited permission to copy, distribute and modify it." 19359 19360ac_pwd='$ac_pwd' 19361srcdir='$srcdir' 19362AWK='$AWK' 19363test -n "\$AWK" || AWK=awk 19364_ACEOF 19365 19366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19367# The default lists apply if the user does not specify any file. 19368ac_need_defaults=: 19369while test $# != 0 19370do 19371 case $1 in 19372 --*=?*) 19373 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19374 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19375 ac_shift=: 19376 ;; 19377 --*=) 19378 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19379 ac_optarg= 19380 ac_shift=: 19381 ;; 19382 *) 19383 ac_option=$1 19384 ac_optarg=$2 19385 ac_shift=shift 19386 ;; 19387 esac 19388 19389 case $ac_option in 19390 # Handling of the options. 19391 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19392 ac_cs_recheck=: ;; 19393 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19394 $as_echo "$ac_cs_version"; exit ;; 19395 --config | --confi | --conf | --con | --co | --c ) 19396 $as_echo "$ac_cs_config"; exit ;; 19397 --debug | --debu | --deb | --de | --d | -d ) 19398 debug=: ;; 19399 --file | --fil | --fi | --f ) 19400 $ac_shift 19401 case $ac_optarg in 19402 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19403 '') as_fn_error $? "missing file argument" ;; 19404 esac 19405 as_fn_append CONFIG_FILES " '$ac_optarg'" 19406 ac_need_defaults=false;; 19407 --header | --heade | --head | --hea ) 19408 $ac_shift 19409 case $ac_optarg in 19410 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19411 esac 19412 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19413 ac_need_defaults=false;; 19414 --he | --h) 19415 # Conflict between --help and --header 19416 as_fn_error $? "ambiguous option: \`$1' 19417Try \`$0 --help' for more information.";; 19418 --help | --hel | -h ) 19419 $as_echo "$ac_cs_usage"; exit ;; 19420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19421 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19422 ac_cs_silent=: ;; 19423 19424 # This is an error. 19425 -*) as_fn_error $? "unrecognized option: \`$1' 19426Try \`$0 --help' for more information." ;; 19427 19428 *) as_fn_append ac_config_targets " $1" 19429 ac_need_defaults=false ;; 19430 19431 esac 19432 shift 19433done 19434 19435ac_configure_extra_args= 19436 19437if $ac_cs_silent; then 19438 exec 6>/dev/null 19439 ac_configure_extra_args="$ac_configure_extra_args --silent" 19440fi 19441 19442_ACEOF 19443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19444if \$ac_cs_recheck; then 19445 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19446 shift 19447 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19448 CONFIG_SHELL='$SHELL' 19449 export CONFIG_SHELL 19450 exec "\$@" 19451fi 19452 19453_ACEOF 19454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19455exec 5>>config.log 19456{ 19457 echo 19458 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19459## Running $as_me. ## 19460_ASBOX 19461 $as_echo "$ac_log" 19462} >&5 19463 19464_ACEOF 19465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19466# 19467# INIT-COMMANDS 19468# 19469 19470 19471# The HP-UX ksh and POSIX shell print the target directory to stdout 19472# if CDPATH is set. 19473(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19474 19475sed_quote_subst='$sed_quote_subst' 19476double_quote_subst='$double_quote_subst' 19477delay_variable_subst='$delay_variable_subst' 19478macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19479macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19480enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19481enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19482pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19483enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19484SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19485ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19486PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19487host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19488host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19489host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19490build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19491build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19492build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19493SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19494Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19495GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19496EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19497FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19498LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19499NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19500LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19501max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19502ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19503exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19504lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19505lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19506lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19507lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19508lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19509reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19510reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19511OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19512deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19513file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19514file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19515want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19516DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19517sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19518AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19519AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19520archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19521STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19522RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19523old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19524old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19525old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19526lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19527CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19528CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19529compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19530GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19531lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19532lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19533lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19534lt_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"`' 19535nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19536lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19537objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19538MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19539lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19540lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19541lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19542lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19543lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19544need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19545MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19546DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19547NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19548LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19549OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19550OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19551libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19552shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19553extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19554archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19555enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19556export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19557whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19558compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19559old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19560old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19561archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19562archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19563module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19564module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19565with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19566allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19567no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19568hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19569hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19570hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19571hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19572hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19573hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19574hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19575inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19576link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19577always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19578export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19579exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19580include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19581prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19582postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19583file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19584variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19585need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19586need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19587version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19588runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19589shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19590shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19591libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19592library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19593soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19594install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19595postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19596postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19597finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19598finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19599hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19600sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19601sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19602hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19603enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19604enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19605enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19606old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19607striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19608 19609LTCC='$LTCC' 19610LTCFLAGS='$LTCFLAGS' 19611compiler='$compiler_DEFAULT' 19612 19613# A function that is used when there is no print builtin or printf. 19614func_fallback_echo () 19615{ 19616 eval 'cat <<_LTECHO_EOF 19617\$1 19618_LTECHO_EOF' 19619} 19620 19621# Quote evaled strings. 19622for var in SHELL \ 19623ECHO \ 19624PATH_SEPARATOR \ 19625SED \ 19626GREP \ 19627EGREP \ 19628FGREP \ 19629LD \ 19630NM \ 19631LN_S \ 19632lt_SP2NL \ 19633lt_NL2SP \ 19634reload_flag \ 19635OBJDUMP \ 19636deplibs_check_method \ 19637file_magic_cmd \ 19638file_magic_glob \ 19639want_nocaseglob \ 19640DLLTOOL \ 19641sharedlib_from_linklib_cmd \ 19642AR \ 19643AR_FLAGS \ 19644archiver_list_spec \ 19645STRIP \ 19646RANLIB \ 19647CC \ 19648CFLAGS \ 19649compiler \ 19650lt_cv_sys_global_symbol_pipe \ 19651lt_cv_sys_global_symbol_to_cdecl \ 19652lt_cv_sys_global_symbol_to_c_name_address \ 19653lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19654nm_file_list_spec \ 19655lt_prog_compiler_no_builtin_flag \ 19656lt_prog_compiler_pic \ 19657lt_prog_compiler_wl \ 19658lt_prog_compiler_static \ 19659lt_cv_prog_compiler_c_o \ 19660need_locks \ 19661MANIFEST_TOOL \ 19662DSYMUTIL \ 19663NMEDIT \ 19664LIPO \ 19665OTOOL \ 19666OTOOL64 \ 19667shrext_cmds \ 19668export_dynamic_flag_spec \ 19669whole_archive_flag_spec \ 19670compiler_needs_object \ 19671with_gnu_ld \ 19672allow_undefined_flag \ 19673no_undefined_flag \ 19674hardcode_libdir_flag_spec \ 19675hardcode_libdir_separator \ 19676exclude_expsyms \ 19677include_expsyms \ 19678file_list_spec \ 19679variables_saved_for_relink \ 19680libname_spec \ 19681library_names_spec \ 19682soname_spec \ 19683install_override_mode \ 19684finish_eval \ 19685old_striplib \ 19686striplib; do 19687 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19688 *[\\\\\\\`\\"\\\$]*) 19689 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19690 ;; 19691 *) 19692 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19693 ;; 19694 esac 19695done 19696 19697# Double-quote double-evaled strings. 19698for var in reload_cmds \ 19699old_postinstall_cmds \ 19700old_postuninstall_cmds \ 19701old_archive_cmds \ 19702extract_expsyms_cmds \ 19703old_archive_from_new_cmds \ 19704old_archive_from_expsyms_cmds \ 19705archive_cmds \ 19706archive_expsym_cmds \ 19707module_cmds \ 19708module_expsym_cmds \ 19709export_symbols_cmds \ 19710prelink_cmds \ 19711postlink_cmds \ 19712postinstall_cmds \ 19713postuninstall_cmds \ 19714finish_cmds \ 19715sys_lib_search_path_spec \ 19716sys_lib_dlsearch_path_spec; do 19717 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19718 *[\\\\\\\`\\"\\\$]*) 19719 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19720 ;; 19721 *) 19722 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19723 ;; 19724 esac 19725done 19726 19727ac_aux_dir='$ac_aux_dir' 19728xsi_shell='$xsi_shell' 19729lt_shell_append='$lt_shell_append' 19730 19731# See if we are running on zsh, and set the options which allow our 19732# commands through without removal of \ escapes INIT. 19733if test -n "\${ZSH_VERSION+set}" ; then 19734 setopt NO_GLOB_SUBST 19735fi 19736 19737 19738 PACKAGE='$PACKAGE' 19739 VERSION='$VERSION' 19740 TIMESTAMP='$TIMESTAMP' 19741 RM='$RM' 19742 ofile='$ofile' 19743 19744 19745 19746 19747_ACEOF 19748 19749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19750 19751# Handling of arguments. 19752for ac_config_target in $ac_config_targets 19753do 19754 case $ac_config_target in 19755 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19756 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 19757 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19758 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; 19759 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;; 19760 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;; 19761 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;; 19762 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;; 19763 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;; 19764 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;; 19765 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;; 19766 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;; 19767 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;; 19768 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19769 19770 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19771 esac 19772done 19773 19774 19775# If the user did not use the arguments to specify the items to instantiate, 19776# then the envvar interface is used. Set only those that are not. 19777# We use the long form for the default assignment because of an extremely 19778# bizarre bug on SunOS 4.1.3. 19779if $ac_need_defaults; then 19780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19783fi 19784 19785# Have a temporary directory for convenience. Make it in the build tree 19786# simply because there is no reason against having it here, and in addition, 19787# creating and moving files from /tmp can sometimes cause problems. 19788# Hook for its removal unless debugging. 19789# Note that there is a small window in which the directory will not be cleaned: 19790# after its creation but before its name has been assigned to `$tmp'. 19791$debug || 19792{ 19793 tmp= ac_tmp= 19794 trap 'exit_status=$? 19795 : "${ac_tmp:=$tmp}" 19796 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19797' 0 19798 trap 'as_fn_exit 1' 1 2 13 15 19799} 19800# Create a (secure) tmp directory for tmp files. 19801 19802{ 19803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19804 test -d "$tmp" 19805} || 19806{ 19807 tmp=./conf$$-$RANDOM 19808 (umask 077 && mkdir "$tmp") 19809} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19810ac_tmp=$tmp 19811 19812# Set up the scripts for CONFIG_FILES section. 19813# No need to generate them if there are no CONFIG_FILES. 19814# This happens for instance with `./config.status config.h'. 19815if test -n "$CONFIG_FILES"; then 19816 19817 19818ac_cr=`echo X | tr X '\015'` 19819# On cygwin, bash can eat \r inside `` if the user requested igncr. 19820# But we know of no other shell where ac_cr would be empty at this 19821# point, so we can use a bashism as a fallback. 19822if test "x$ac_cr" = x; then 19823 eval ac_cr=\$\'\\r\' 19824fi 19825ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19826if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19827 ac_cs_awk_cr='\\r' 19828else 19829 ac_cs_awk_cr=$ac_cr 19830fi 19831 19832echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19833_ACEOF 19834 19835 19836{ 19837 echo "cat >conf$$subs.awk <<_ACEOF" && 19838 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19839 echo "_ACEOF" 19840} >conf$$subs.sh || 19841 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19842ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19843ac_delim='%!_!# ' 19844for ac_last_try in false false false false false :; do 19845 . ./conf$$subs.sh || 19846 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19847 19848 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19849 if test $ac_delim_n = $ac_delim_num; then 19850 break 19851 elif $ac_last_try; then 19852 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19853 else 19854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19855 fi 19856done 19857rm -f conf$$subs.sh 19858 19859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19860cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19861_ACEOF 19862sed -n ' 19863h 19864s/^/S["/; s/!.*/"]=/ 19865p 19866g 19867s/^[^!]*!// 19868:repl 19869t repl 19870s/'"$ac_delim"'$// 19871t delim 19872:nl 19873h 19874s/\(.\{148\}\)..*/\1/ 19875t more1 19876s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19877p 19878n 19879b repl 19880:more1 19881s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19882p 19883g 19884s/.\{148\}// 19885t nl 19886:delim 19887h 19888s/\(.\{148\}\)..*/\1/ 19889t more2 19890s/["\\]/\\&/g; s/^/"/; s/$/"/ 19891p 19892b 19893:more2 19894s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19895p 19896g 19897s/.\{148\}// 19898t delim 19899' <conf$$subs.awk | sed ' 19900/^[^""]/{ 19901 N 19902 s/\n// 19903} 19904' >>$CONFIG_STATUS || ac_write_fail=1 19905rm -f conf$$subs.awk 19906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19907_ACAWK 19908cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19909 for (key in S) S_is_set[key] = 1 19910 FS = "" 19911 19912} 19913{ 19914 line = $ 0 19915 nfields = split(line, field, "@") 19916 substed = 0 19917 len = length(field[1]) 19918 for (i = 2; i < nfields; i++) { 19919 key = field[i] 19920 keylen = length(key) 19921 if (S_is_set[key]) { 19922 value = S[key] 19923 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19924 len += length(value) + length(field[++i]) 19925 substed = 1 19926 } else 19927 len += 1 + keylen 19928 } 19929 19930 print line 19931} 19932 19933_ACAWK 19934_ACEOF 19935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19936if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19937 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19938else 19939 cat 19940fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19941 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19942_ACEOF 19943 19944# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19945# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19946# trailing colons and then remove the whole line if VPATH becomes empty 19947# (actually we leave an empty line to preserve line numbers). 19948if test "x$srcdir" = x.; then 19949 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19950h 19951s/// 19952s/^/:/ 19953s/[ ]*$/:/ 19954s/:\$(srcdir):/:/g 19955s/:\${srcdir}:/:/g 19956s/:@srcdir@:/:/g 19957s/^:*// 19958s/:*$// 19959x 19960s/\(=[ ]*\).*/\1/ 19961G 19962s/\n// 19963s/^[^=]*=[ ]*$// 19964}' 19965fi 19966 19967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19968fi # test -n "$CONFIG_FILES" 19969 19970# Set up the scripts for CONFIG_HEADERS section. 19971# No need to generate them if there are no CONFIG_HEADERS. 19972# This happens for instance with `./config.status Makefile'. 19973if test -n "$CONFIG_HEADERS"; then 19974cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19975BEGIN { 19976_ACEOF 19977 19978# Transform confdefs.h into an awk script `defines.awk', embedded as 19979# here-document in config.status, that substitutes the proper values into 19980# config.h.in to produce config.h. 19981 19982# Create a delimiter string that does not exist in confdefs.h, to ease 19983# handling of long lines. 19984ac_delim='%!_!# ' 19985for ac_last_try in false false :; do 19986 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19987 if test -z "$ac_tt"; then 19988 break 19989 elif $ac_last_try; then 19990 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19991 else 19992 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19993 fi 19994done 19995 19996# For the awk script, D is an array of macro values keyed by name, 19997# likewise P contains macro parameters if any. Preserve backslash 19998# newline sequences. 19999 20000ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20001sed -n ' 20002s/.\{148\}/&'"$ac_delim"'/g 20003t rset 20004:rset 20005s/^[ ]*#[ ]*define[ ][ ]*/ / 20006t def 20007d 20008:def 20009s/\\$// 20010t bsnl 20011s/["\\]/\\&/g 20012s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20013D["\1"]=" \3"/p 20014s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20015d 20016:bsnl 20017s/["\\]/\\&/g 20018s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20019D["\1"]=" \3\\\\\\n"\\/p 20020t cont 20021s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20022t cont 20023d 20024:cont 20025n 20026s/.\{148\}/&'"$ac_delim"'/g 20027t clear 20028:clear 20029s/\\$// 20030t bsnlc 20031s/["\\]/\\&/g; s/^/"/; s/$/"/p 20032d 20033:bsnlc 20034s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20035b cont 20036' <confdefs.h | sed ' 20037s/'"$ac_delim"'/"\\\ 20038"/g' >>$CONFIG_STATUS || ac_write_fail=1 20039 20040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20041 for (key in D) D_is_set[key] = 1 20042 FS = "" 20043} 20044/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20045 line = \$ 0 20046 split(line, arg, " ") 20047 if (arg[1] == "#") { 20048 defundef = arg[2] 20049 mac1 = arg[3] 20050 } else { 20051 defundef = substr(arg[1], 2) 20052 mac1 = arg[2] 20053 } 20054 split(mac1, mac2, "(") #) 20055 macro = mac2[1] 20056 prefix = substr(line, 1, index(line, defundef) - 1) 20057 if (D_is_set[macro]) { 20058 # Preserve the white space surrounding the "#". 20059 print prefix "define", macro P[macro] D[macro] 20060 next 20061 } else { 20062 # Replace #undef with comments. This is necessary, for example, 20063 # in the case of _POSIX_SOURCE, which is predefined and required 20064 # on some systems where configure will not decide to define it. 20065 if (defundef == "undef") { 20066 print "/*", prefix defundef, macro, "*/" 20067 next 20068 } 20069 } 20070} 20071{ print } 20072_ACAWK 20073_ACEOF 20074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20075 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20076fi # test -n "$CONFIG_HEADERS" 20077 20078 20079eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20080shift 20081for ac_tag 20082do 20083 case $ac_tag in 20084 :[FHLC]) ac_mode=$ac_tag; continue;; 20085 esac 20086 case $ac_mode$ac_tag in 20087 :[FHL]*:*);; 20088 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20089 :[FH]-) ac_tag=-:-;; 20090 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20091 esac 20092 ac_save_IFS=$IFS 20093 IFS=: 20094 set x $ac_tag 20095 IFS=$ac_save_IFS 20096 shift 20097 ac_file=$1 20098 shift 20099 20100 case $ac_mode in 20101 :L) ac_source=$1;; 20102 :[FH]) 20103 ac_file_inputs= 20104 for ac_f 20105 do 20106 case $ac_f in 20107 -) ac_f="$ac_tmp/stdin";; 20108 *) # Look for the file first in the build tree, then in the source tree 20109 # (if the path is not absolute). The absolute path cannot be DOS-style, 20110 # because $ac_f cannot contain `:'. 20111 test -f "$ac_f" || 20112 case $ac_f in 20113 [\\/$]*) false;; 20114 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20115 esac || 20116 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20117 esac 20118 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20119 as_fn_append ac_file_inputs " '$ac_f'" 20120 done 20121 20122 # Let's still pretend it is `configure' which instantiates (i.e., don't 20123 # use $as_me), people would be surprised to read: 20124 # /* config.h. Generated by config.status. */ 20125 configure_input='Generated from '` 20126 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20127 `' by configure.' 20128 if test x"$ac_file" != x-; then 20129 configure_input="$ac_file. $configure_input" 20130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20131$as_echo "$as_me: creating $ac_file" >&6;} 20132 fi 20133 # Neutralize special characters interpreted by sed in replacement strings. 20134 case $configure_input in #( 20135 *\&* | *\|* | *\\* ) 20136 ac_sed_conf_input=`$as_echo "$configure_input" | 20137 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20138 *) ac_sed_conf_input=$configure_input;; 20139 esac 20140 20141 case $ac_tag in 20142 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20143 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20144 esac 20145 ;; 20146 esac 20147 20148 ac_dir=`$as_dirname -- "$ac_file" || 20149$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20150 X"$ac_file" : 'X\(//\)[^/]' \| \ 20151 X"$ac_file" : 'X\(//\)$' \| \ 20152 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20153$as_echo X"$ac_file" | 20154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20155 s//\1/ 20156 q 20157 } 20158 /^X\(\/\/\)[^/].*/{ 20159 s//\1/ 20160 q 20161 } 20162 /^X\(\/\/\)$/{ 20163 s//\1/ 20164 q 20165 } 20166 /^X\(\/\).*/{ 20167 s//\1/ 20168 q 20169 } 20170 s/.*/./; q'` 20171 as_dir="$ac_dir"; as_fn_mkdir_p 20172 ac_builddir=. 20173 20174case "$ac_dir" in 20175.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20176*) 20177 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20178 # A ".." for each directory in $ac_dir_suffix. 20179 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20180 case $ac_top_builddir_sub in 20181 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20182 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20183 esac ;; 20184esac 20185ac_abs_top_builddir=$ac_pwd 20186ac_abs_builddir=$ac_pwd$ac_dir_suffix 20187# for backward compatibility: 20188ac_top_builddir=$ac_top_build_prefix 20189 20190case $srcdir in 20191 .) # We are building in place. 20192 ac_srcdir=. 20193 ac_top_srcdir=$ac_top_builddir_sub 20194 ac_abs_top_srcdir=$ac_pwd ;; 20195 [\\/]* | ?:[\\/]* ) # Absolute name. 20196 ac_srcdir=$srcdir$ac_dir_suffix; 20197 ac_top_srcdir=$srcdir 20198 ac_abs_top_srcdir=$srcdir ;; 20199 *) # Relative name. 20200 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20201 ac_top_srcdir=$ac_top_build_prefix$srcdir 20202 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20203esac 20204ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20205 20206 20207 case $ac_mode in 20208 :F) 20209 # 20210 # CONFIG_FILE 20211 # 20212 20213_ACEOF 20214 20215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20216# If the template does not know about datarootdir, expand it. 20217# FIXME: This hack should be removed a few years after 2.60. 20218ac_datarootdir_hack=; ac_datarootdir_seen= 20219ac_sed_dataroot=' 20220/datarootdir/ { 20221 p 20222 q 20223} 20224/@datadir@/p 20225/@docdir@/p 20226/@infodir@/p 20227/@localedir@/p 20228/@mandir@/p' 20229case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20230*datarootdir*) ac_datarootdir_seen=yes;; 20231*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20233$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20234_ACEOF 20235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20236 ac_datarootdir_hack=' 20237 s&@datadir@&$datadir&g 20238 s&@docdir@&$docdir&g 20239 s&@infodir@&$infodir&g 20240 s&@localedir@&$localedir&g 20241 s&@mandir@&$mandir&g 20242 s&\\\${datarootdir}&$datarootdir&g' ;; 20243esac 20244_ACEOF 20245 20246# Neutralize VPATH when `$srcdir' = `.'. 20247# Shell code in configure.ac might set extrasub. 20248# FIXME: do we really want to maintain this feature? 20249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20250ac_sed_extra="$ac_vpsub 20251$extrasub 20252_ACEOF 20253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20254:t 20255/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20256s|@configure_input@|$ac_sed_conf_input|;t t 20257s&@top_builddir@&$ac_top_builddir_sub&;t t 20258s&@top_build_prefix@&$ac_top_build_prefix&;t t 20259s&@srcdir@&$ac_srcdir&;t t 20260s&@abs_srcdir@&$ac_abs_srcdir&;t t 20261s&@top_srcdir@&$ac_top_srcdir&;t t 20262s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20263s&@builddir@&$ac_builddir&;t t 20264s&@abs_builddir@&$ac_abs_builddir&;t t 20265s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20266$ac_datarootdir_hack 20267" 20268eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20269 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20270 20271test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20272 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20273 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20274 "$ac_tmp/out"`; test -z "$ac_out"; } && 20275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20276which seems to be undefined. Please make sure it is defined" >&5 20277$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20278which seems to be undefined. Please make sure it is defined" >&2;} 20279 20280 rm -f "$ac_tmp/stdin" 20281 case $ac_file in 20282 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20283 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20284 esac \ 20285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20286 ;; 20287 :H) 20288 # 20289 # CONFIG_HEADER 20290 # 20291 if test x"$ac_file" != x-; then 20292 { 20293 $as_echo "/* $configure_input */" \ 20294 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20295 } >"$ac_tmp/config.h" \ 20296 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20297 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20298 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20299$as_echo "$as_me: $ac_file is unchanged" >&6;} 20300 else 20301 rm -f "$ac_file" 20302 mv "$ac_tmp/config.h" "$ac_file" \ 20303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20304 fi 20305 else 20306 $as_echo "/* $configure_input */" \ 20307 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20308 || as_fn_error $? "could not create -" "$LINENO" 5 20309 fi 20310 ;; 20311 20312 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20313$as_echo "$as_me: executing $ac_file commands" >&6;} 20314 ;; 20315 esac 20316 20317 20318 case $ac_file$ac_mode in 20319 "libtool":C) 20320 20321 # See if we are running on zsh, and set the options which allow our 20322 # commands through without removal of \ escapes. 20323 if test -n "${ZSH_VERSION+set}" ; then 20324 setopt NO_GLOB_SUBST 20325 fi 20326 20327 cfgfile="${ofile}T" 20328 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20329 $RM "$cfgfile" 20330 20331 cat <<_LT_EOF >> "$cfgfile" 20332#! $SHELL 20333 20334# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20335# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20336# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20337# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20338# 20339# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20340# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20341# Foundation, Inc. 20342# Written by Gordon Matzigkeit, 1996 20343# 20344# This file is part of GNU Libtool. 20345# 20346# GNU Libtool is free software; you can redistribute it and/or 20347# modify it under the terms of the GNU General Public License as 20348# published by the Free Software Foundation; either version 2 of 20349# the License, or (at your option) any later version. 20350# 20351# As a special exception to the GNU General Public License, 20352# if you distribute this file as part of a program or library that 20353# is built using GNU Libtool, you may include this file under the 20354# same distribution terms that you use for the rest of that program. 20355# 20356# GNU Libtool is distributed in the hope that it will be useful, 20357# but WITHOUT ANY WARRANTY; without even the implied warranty of 20358# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20359# GNU General Public License for more details. 20360# 20361# You should have received a copy of the GNU General Public License 20362# along with GNU Libtool; see the file COPYING. If not, a copy 20363# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20364# obtained by writing to the Free Software Foundation, Inc., 20365# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20366 20367 20368# The names of the tagged configurations supported by this script. 20369available_tags="" 20370 20371# ### BEGIN LIBTOOL CONFIG 20372 20373# Which release of libtool.m4 was used? 20374macro_version=$macro_version 20375macro_revision=$macro_revision 20376 20377# Whether or not to build shared libraries. 20378build_libtool_libs=$enable_shared 20379 20380# Whether or not to build static libraries. 20381build_old_libs=$enable_static 20382 20383# What type of objects to build. 20384pic_mode=$pic_mode 20385 20386# Whether or not to optimize for fast installation. 20387fast_install=$enable_fast_install 20388 20389# Shell to use when invoking shell scripts. 20390SHELL=$lt_SHELL 20391 20392# An echo program that protects backslashes. 20393ECHO=$lt_ECHO 20394 20395# The PATH separator for the build system. 20396PATH_SEPARATOR=$lt_PATH_SEPARATOR 20397 20398# The host system. 20399host_alias=$host_alias 20400host=$host 20401host_os=$host_os 20402 20403# The build system. 20404build_alias=$build_alias 20405build=$build 20406build_os=$build_os 20407 20408# A sed program that does not truncate output. 20409SED=$lt_SED 20410 20411# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20412Xsed="\$SED -e 1s/^X//" 20413 20414# A grep program that handles long lines. 20415GREP=$lt_GREP 20416 20417# An ERE matcher. 20418EGREP=$lt_EGREP 20419 20420# A literal string matcher. 20421FGREP=$lt_FGREP 20422 20423# A BSD- or MS-compatible name lister. 20424NM=$lt_NM 20425 20426# Whether we need soft or hard links. 20427LN_S=$lt_LN_S 20428 20429# What is the maximum length of a command? 20430max_cmd_len=$max_cmd_len 20431 20432# Object file suffix (normally "o"). 20433objext=$ac_objext 20434 20435# Executable file suffix (normally ""). 20436exeext=$exeext 20437 20438# whether the shell understands "unset". 20439lt_unset=$lt_unset 20440 20441# turn spaces into newlines. 20442SP2NL=$lt_lt_SP2NL 20443 20444# turn newlines into spaces. 20445NL2SP=$lt_lt_NL2SP 20446 20447# convert \$build file names to \$host format. 20448to_host_file_cmd=$lt_cv_to_host_file_cmd 20449 20450# convert \$build files to toolchain format. 20451to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20452 20453# An object symbol dumper. 20454OBJDUMP=$lt_OBJDUMP 20455 20456# Method to check whether dependent libraries are shared objects. 20457deplibs_check_method=$lt_deplibs_check_method 20458 20459# Command to use when deplibs_check_method = "file_magic". 20460file_magic_cmd=$lt_file_magic_cmd 20461 20462# How to find potential files when deplibs_check_method = "file_magic". 20463file_magic_glob=$lt_file_magic_glob 20464 20465# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20466want_nocaseglob=$lt_want_nocaseglob 20467 20468# DLL creation program. 20469DLLTOOL=$lt_DLLTOOL 20470 20471# Command to associate shared and link libraries. 20472sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20473 20474# The archiver. 20475AR=$lt_AR 20476 20477# Flags to create an archive. 20478AR_FLAGS=$lt_AR_FLAGS 20479 20480# How to feed a file listing to the archiver. 20481archiver_list_spec=$lt_archiver_list_spec 20482 20483# A symbol stripping program. 20484STRIP=$lt_STRIP 20485 20486# Commands used to install an old-style archive. 20487RANLIB=$lt_RANLIB 20488old_postinstall_cmds=$lt_old_postinstall_cmds 20489old_postuninstall_cmds=$lt_old_postuninstall_cmds 20490 20491# Whether to use a lock for old archive extraction. 20492lock_old_archive_extraction=$lock_old_archive_extraction 20493 20494# A C compiler. 20495LTCC=$lt_CC 20496 20497# LTCC compiler flags. 20498LTCFLAGS=$lt_CFLAGS 20499 20500# Take the output of nm and produce a listing of raw symbols and C names. 20501global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20502 20503# Transform the output of nm in a proper C declaration. 20504global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20505 20506# Transform the output of nm in a C name address pair. 20507global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20508 20509# Transform the output of nm in a C name address pair when lib prefix is needed. 20510global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20511 20512# Specify filename containing input files for \$NM. 20513nm_file_list_spec=$lt_nm_file_list_spec 20514 20515# The root where to search for dependent libraries,and in which our libraries should be installed. 20516lt_sysroot=$lt_sysroot 20517 20518# The name of the directory that contains temporary libtool files. 20519objdir=$objdir 20520 20521# Used to examine libraries when file_magic_cmd begins with "file". 20522MAGIC_CMD=$MAGIC_CMD 20523 20524# Must we lock files when doing compilation? 20525need_locks=$lt_need_locks 20526 20527# Manifest tool. 20528MANIFEST_TOOL=$lt_MANIFEST_TOOL 20529 20530# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20531DSYMUTIL=$lt_DSYMUTIL 20532 20533# Tool to change global to local symbols on Mac OS X. 20534NMEDIT=$lt_NMEDIT 20535 20536# Tool to manipulate fat objects and archives on Mac OS X. 20537LIPO=$lt_LIPO 20538 20539# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20540OTOOL=$lt_OTOOL 20541 20542# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20543OTOOL64=$lt_OTOOL64 20544 20545# Old archive suffix (normally "a"). 20546libext=$libext 20547 20548# Shared library suffix (normally ".so"). 20549shrext_cmds=$lt_shrext_cmds 20550 20551# The commands to extract the exported symbol list from a shared archive. 20552extract_expsyms_cmds=$lt_extract_expsyms_cmds 20553 20554# Variables whose values should be saved in libtool wrapper scripts and 20555# restored at link time. 20556variables_saved_for_relink=$lt_variables_saved_for_relink 20557 20558# Do we need the "lib" prefix for modules? 20559need_lib_prefix=$need_lib_prefix 20560 20561# Do we need a version for libraries? 20562need_version=$need_version 20563 20564# Library versioning type. 20565version_type=$version_type 20566 20567# Shared library runtime path variable. 20568runpath_var=$runpath_var 20569 20570# Shared library path variable. 20571shlibpath_var=$shlibpath_var 20572 20573# Is shlibpath searched before the hard-coded library search path? 20574shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20575 20576# Format of library name prefix. 20577libname_spec=$lt_libname_spec 20578 20579# List of archive names. First name is the real one, the rest are links. 20580# The last name is the one that the linker finds with -lNAME 20581library_names_spec=$lt_library_names_spec 20582 20583# The coded name of the library, if different from the real name. 20584soname_spec=$lt_soname_spec 20585 20586# Permission mode override for installation of shared libraries. 20587install_override_mode=$lt_install_override_mode 20588 20589# Command to use after installation of a shared archive. 20590postinstall_cmds=$lt_postinstall_cmds 20591 20592# Command to use after uninstallation of a shared archive. 20593postuninstall_cmds=$lt_postuninstall_cmds 20594 20595# Commands used to finish a libtool library installation in a directory. 20596finish_cmds=$lt_finish_cmds 20597 20598# As "finish_cmds", except a single script fragment to be evaled but 20599# not shown. 20600finish_eval=$lt_finish_eval 20601 20602# Whether we should hardcode library paths into libraries. 20603hardcode_into_libs=$hardcode_into_libs 20604 20605# Compile-time system search path for libraries. 20606sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20607 20608# Run-time system search path for libraries. 20609sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20610 20611# Whether dlopen is supported. 20612dlopen_support=$enable_dlopen 20613 20614# Whether dlopen of programs is supported. 20615dlopen_self=$enable_dlopen_self 20616 20617# Whether dlopen of statically linked programs is supported. 20618dlopen_self_static=$enable_dlopen_self_static 20619 20620# Commands to strip libraries. 20621old_striplib=$lt_old_striplib 20622striplib=$lt_striplib 20623 20624 20625# The linker used to build libraries. 20626LD=$lt_LD 20627 20628# How to create reloadable object files. 20629reload_flag=$lt_reload_flag 20630reload_cmds=$lt_reload_cmds 20631 20632# Commands used to build an old-style archive. 20633old_archive_cmds=$lt_old_archive_cmds 20634 20635# A language specific compiler. 20636CC=$lt_compiler 20637 20638# Is the compiler the GNU compiler? 20639with_gcc=$GCC 20640 20641# Compiler flag to turn off builtin functions. 20642no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20643 20644# Additional compiler flags for building library objects. 20645pic_flag=$lt_lt_prog_compiler_pic 20646 20647# How to pass a linker flag through the compiler. 20648wl=$lt_lt_prog_compiler_wl 20649 20650# Compiler flag to prevent dynamic linking. 20651link_static_flag=$lt_lt_prog_compiler_static 20652 20653# Does compiler simultaneously support -c and -o options? 20654compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20655 20656# Whether or not to add -lc for building shared libraries. 20657build_libtool_need_lc=$archive_cmds_need_lc 20658 20659# Whether or not to disallow shared libs when runtime libs are static. 20660allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20661 20662# Compiler flag to allow reflexive dlopens. 20663export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20664 20665# Compiler flag to generate shared objects directly from archives. 20666whole_archive_flag_spec=$lt_whole_archive_flag_spec 20667 20668# Whether the compiler copes with passing no objects directly. 20669compiler_needs_object=$lt_compiler_needs_object 20670 20671# Create an old-style archive from a shared archive. 20672old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20673 20674# Create a temporary old-style archive to link instead of a shared archive. 20675old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20676 20677# Commands used to build a shared archive. 20678archive_cmds=$lt_archive_cmds 20679archive_expsym_cmds=$lt_archive_expsym_cmds 20680 20681# Commands used to build a loadable module if different from building 20682# a shared archive. 20683module_cmds=$lt_module_cmds 20684module_expsym_cmds=$lt_module_expsym_cmds 20685 20686# Whether we are building with GNU ld or not. 20687with_gnu_ld=$lt_with_gnu_ld 20688 20689# Flag that allows shared libraries with undefined symbols to be built. 20690allow_undefined_flag=$lt_allow_undefined_flag 20691 20692# Flag that enforces no undefined symbols. 20693no_undefined_flag=$lt_no_undefined_flag 20694 20695# Flag to hardcode \$libdir into a binary during linking. 20696# This must work even if \$libdir does not exist 20697hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20698 20699# Whether we need a single "-rpath" flag with a separated argument. 20700hardcode_libdir_separator=$lt_hardcode_libdir_separator 20701 20702# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20703# DIR into the resulting binary. 20704hardcode_direct=$hardcode_direct 20705 20706# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20707# DIR into the resulting binary and the resulting library dependency is 20708# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20709# library is relocated. 20710hardcode_direct_absolute=$hardcode_direct_absolute 20711 20712# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20713# into the resulting binary. 20714hardcode_minus_L=$hardcode_minus_L 20715 20716# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20717# into the resulting binary. 20718hardcode_shlibpath_var=$hardcode_shlibpath_var 20719 20720# Set to "yes" if building a shared library automatically hardcodes DIR 20721# into the library and all subsequent libraries and executables linked 20722# against it. 20723hardcode_automatic=$hardcode_automatic 20724 20725# Set to yes if linker adds runtime paths of dependent libraries 20726# to runtime path list. 20727inherit_rpath=$inherit_rpath 20728 20729# Whether libtool must link a program against all its dependency libraries. 20730link_all_deplibs=$link_all_deplibs 20731 20732# Set to "yes" if exported symbols are required. 20733always_export_symbols=$always_export_symbols 20734 20735# The commands to list exported symbols. 20736export_symbols_cmds=$lt_export_symbols_cmds 20737 20738# Symbols that should not be listed in the preloaded symbols. 20739exclude_expsyms=$lt_exclude_expsyms 20740 20741# Symbols that must always be exported. 20742include_expsyms=$lt_include_expsyms 20743 20744# Commands necessary for linking programs (against libraries) with templates. 20745prelink_cmds=$lt_prelink_cmds 20746 20747# Commands necessary for finishing linking programs. 20748postlink_cmds=$lt_postlink_cmds 20749 20750# Specify filename containing input files. 20751file_list_spec=$lt_file_list_spec 20752 20753# How to hardcode a shared library path into an executable. 20754hardcode_action=$hardcode_action 20755 20756# ### END LIBTOOL CONFIG 20757 20758_LT_EOF 20759 20760 case $host_os in 20761 aix3*) 20762 cat <<\_LT_EOF >> "$cfgfile" 20763# AIX sometimes has problems with the GCC collect2 program. For some 20764# reason, if we set the COLLECT_NAMES environment variable, the problems 20765# vanish in a puff of smoke. 20766if test "X${COLLECT_NAMES+set}" != Xset; then 20767 COLLECT_NAMES= 20768 export COLLECT_NAMES 20769fi 20770_LT_EOF 20771 ;; 20772 esac 20773 20774 20775ltmain="$ac_aux_dir/ltmain.sh" 20776 20777 20778 # We use sed instead of cat because bash on DJGPP gets confused if 20779 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20780 # text mode, it properly converts lines to CR/LF. This bash problem 20781 # is reportedly fixed, but why not run on old versions too? 20782 sed '$q' "$ltmain" >> "$cfgfile" \ 20783 || (rm -f "$cfgfile"; exit 1) 20784 20785 if test x"$xsi_shell" = xyes; then 20786 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20787func_dirname ()\ 20788{\ 20789\ case ${1} in\ 20790\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20791\ * ) func_dirname_result="${3}" ;;\ 20792\ esac\ 20793} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20794 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20795 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20796test 0 -eq $? || _lt_function_replace_fail=: 20797 20798 20799 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20800func_basename ()\ 20801{\ 20802\ func_basename_result="${1##*/}"\ 20803} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20804 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20806test 0 -eq $? || _lt_function_replace_fail=: 20807 20808 20809 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20810func_dirname_and_basename ()\ 20811{\ 20812\ case ${1} in\ 20813\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20814\ * ) func_dirname_result="${3}" ;;\ 20815\ esac\ 20816\ func_basename_result="${1##*/}"\ 20817} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20818 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20819 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20820test 0 -eq $? || _lt_function_replace_fail=: 20821 20822 20823 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20824func_stripname ()\ 20825{\ 20826\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20827\ # positional parameters, so assign one to ordinary parameter first.\ 20828\ func_stripname_result=${3}\ 20829\ func_stripname_result=${func_stripname_result#"${1}"}\ 20830\ func_stripname_result=${func_stripname_result%"${2}"}\ 20831} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20832 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20833 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20834test 0 -eq $? || _lt_function_replace_fail=: 20835 20836 20837 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20838func_split_long_opt ()\ 20839{\ 20840\ func_split_long_opt_name=${1%%=*}\ 20841\ func_split_long_opt_arg=${1#*=}\ 20842} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20843 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20845test 0 -eq $? || _lt_function_replace_fail=: 20846 20847 20848 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20849func_split_short_opt ()\ 20850{\ 20851\ func_split_short_opt_arg=${1#??}\ 20852\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20853} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20854 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20855 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20856test 0 -eq $? || _lt_function_replace_fail=: 20857 20858 20859 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20860func_lo2o ()\ 20861{\ 20862\ case ${1} in\ 20863\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20864\ *) func_lo2o_result=${1} ;;\ 20865\ esac\ 20866} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20867 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20869test 0 -eq $? || _lt_function_replace_fail=: 20870 20871 20872 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20873func_xform ()\ 20874{\ 20875 func_xform_result=${1%.*}.lo\ 20876} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20877 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20879test 0 -eq $? || _lt_function_replace_fail=: 20880 20881 20882 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20883func_arith ()\ 20884{\ 20885 func_arith_result=$(( $* ))\ 20886} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20887 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20889test 0 -eq $? || _lt_function_replace_fail=: 20890 20891 20892 sed -e '/^func_len ()$/,/^} # func_len /c\ 20893func_len ()\ 20894{\ 20895 func_len_result=${#1}\ 20896} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20897 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20898 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20899test 0 -eq $? || _lt_function_replace_fail=: 20900 20901fi 20902 20903if test x"$lt_shell_append" = xyes; then 20904 sed -e '/^func_append ()$/,/^} # func_append /c\ 20905func_append ()\ 20906{\ 20907 eval "${1}+=\\${2}"\ 20908} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20909 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20910 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20911test 0 -eq $? || _lt_function_replace_fail=: 20912 20913 20914 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20915func_append_quoted ()\ 20916{\ 20917\ func_quote_for_eval "${2}"\ 20918\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20919} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20920 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20921 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20922test 0 -eq $? || _lt_function_replace_fail=: 20923 20924 20925 # Save a `func_append' function call where possible by direct use of '+=' 20926 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20927 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20928 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20929 test 0 -eq $? || _lt_function_replace_fail=: 20930else 20931 # Save a `func_append' function call even when '+=' is not available 20932 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20933 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20935 test 0 -eq $? || _lt_function_replace_fail=: 20936fi 20937 20938if test x"$_lt_function_replace_fail" = x":"; then 20939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20940$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20941fi 20942 20943 20944 mv -f "$cfgfile" "$ofile" || 20945 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20946 chmod +x "$ofile" 20947 20948 ;; 20949 "disable-rpath":C) 20950 sed < libtool > libtool-2 \ 20951 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 20952 mv libtool-2 libtool 20953 chmod 755 libtool 20954 libtool="./libtool" 20955 ;; 20956 20957 esac 20958done # for ac_tag 20959 20960 20961as_fn_exit 0 20962_ACEOF 20963ac_clean_files=$ac_clean_files_save 20964 20965test $ac_write_fail = 0 || 20966 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20967 20968 20969# configure is writing to config.log, and then calls config.status. 20970# config.status does its own redirection, appending to config.log. 20971# Unfortunately, on DOS this fails, as config.log is still kept open 20972# by configure, so config.status won't be able to write to it; its 20973# output is simply discarded. So we exec the FD to /dev/null, 20974# effectively closing config.log, so it can be properly (re)opened and 20975# appended to by config.status. When coming back to configure, we 20976# need to make the FD available again. 20977if test "$no_create" != yes; then 20978 ac_cs_success=: 20979 ac_config_status_args= 20980 test "$silent" = yes && 20981 ac_config_status_args="$ac_config_status_args --quiet" 20982 exec 5>/dev/null 20983 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20984 exec 5>>config.log 20985 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20986 # would make configure fail if this is the last instruction. 20987 $ac_cs_success || as_fn_exit 1 20988fi 20989if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20991$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20992fi 20993 20994