1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for unbound 1.5.2. 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.2' 594PACKAGE_STRING='unbound 1.5.2' 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_dir 737ub_conf_file 738EGREP 739GREP 740CPP 741OBJEXT 742EXEEXT 743ac_ct_CC 744CPPFLAGS 745LDFLAGS 746CFLAGS 747CC 748LIBUNBOUND_AGE 749LIBUNBOUND_REVISION 750LIBUNBOUND_CURRENT 751UNBOUND_VERSION_MICRO 752UNBOUND_VERSION_MINOR 753UNBOUND_VERSION_MAJOR 754target_alias 755host_alias 756build_alias 757LIBS 758ECHO_T 759ECHO_N 760ECHO_C 761DEFS 762mandir 763localedir 764libdir 765psdir 766pdfdir 767dvidir 768htmldir 769infodir 770docdir 771oldincludedir 772includedir 773localstatedir 774sharedstatedir 775sysconfdir 776datadir 777datarootdir 778libexecdir 779sbindir 780bindir 781program_transform_name 782prefix 783exec_prefix 784PACKAGE_URL 785PACKAGE_BUGREPORT 786PACKAGE_STRING 787PACKAGE_VERSION 788PACKAGE_TARNAME 789PACKAGE_NAME 790PATH_SEPARATOR 791SHELL' 792ac_subst_files='' 793ac_user_opts=' 794enable_option_checking 795with_conf_file 796with_run_dir 797with_chroot_dir 798with_share_dir 799with_pidfile 800with_rootkey_file 801with_rootcert_file 802with_username 803enable_checking 804enable_debug 805enable_flto 806enable_shared 807enable_static 808with_pic 809enable_fast_install 810with_gnu_ld 811with_sysroot 812enable_libtool_lock 813enable_rpath 814enable_largefile 815enable_alloc_checks 816enable_alloc_lite 817enable_alloc_nonregional 818with_pthreads 819with_solaris_threads 820with_pyunbound 821with_pythonmodule 822with_nss 823with_ssl 824enable_sha2 825enable_gost 826enable_ecdsa 827enable_event_api 828with_libevent 829with_libexpat 830enable_static_exe 831enable_lock_checks 832enable_allsymbols 833enable_dnstap 834with_dnstap_socket_path 835with_protobuf_c 836with_libfstrm 837with_libunbound_only 838' 839 ac_precious_vars='build_alias 840host_alias 841target_alias 842CC 843CFLAGS 844LDFLAGS 845LIBS 846CPPFLAGS 847CPP 848YACC 849YFLAGS 850PYTHON_VERSION' 851 852 853# Initialize some variables set by options. 854ac_init_help= 855ac_init_version=false 856ac_unrecognized_opts= 857ac_unrecognized_sep= 858# The variables have the same names as the options, with 859# dashes changed to underlines. 860cache_file=/dev/null 861exec_prefix=NONE 862no_create= 863no_recursion= 864prefix=NONE 865program_prefix=NONE 866program_suffix=NONE 867program_transform_name=s,x,x, 868silent= 869site= 870srcdir= 871verbose= 872x_includes=NONE 873x_libraries=NONE 874 875# Installation directory options. 876# These are left unexpanded so users can "make install exec_prefix=/foo" 877# and all the variables that are supposed to be based on exec_prefix 878# by default will actually change. 879# Use braces instead of parens because sh, perl, etc. also accept them. 880# (The list follows the same order as the GNU Coding Standards.) 881bindir='${exec_prefix}/bin' 882sbindir='${exec_prefix}/sbin' 883libexecdir='${exec_prefix}/libexec' 884datarootdir='${prefix}/share' 885datadir='${datarootdir}' 886sysconfdir='${prefix}/etc' 887sharedstatedir='${prefix}/com' 888localstatedir='${prefix}/var' 889includedir='${prefix}/include' 890oldincludedir='/usr/include' 891docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 892infodir='${datarootdir}/info' 893htmldir='${docdir}' 894dvidir='${docdir}' 895pdfdir='${docdir}' 896psdir='${docdir}' 897libdir='${exec_prefix}/lib' 898localedir='${datarootdir}/locale' 899mandir='${datarootdir}/man' 900 901ac_prev= 902ac_dashdash= 903for ac_option 904do 905 # If the previous option needs an argument, assign it. 906 if test -n "$ac_prev"; then 907 eval $ac_prev=\$ac_option 908 ac_prev= 909 continue 910 fi 911 912 case $ac_option in 913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 914 *=) ac_optarg= ;; 915 *) ac_optarg=yes ;; 916 esac 917 918 # Accept the important Cygnus configure options, so we can diagnose typos. 919 920 case $ac_dashdash$ac_option in 921 --) 922 ac_dashdash=yes ;; 923 924 -bindir | --bindir | --bindi | --bind | --bin | --bi) 925 ac_prev=bindir ;; 926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 927 bindir=$ac_optarg ;; 928 929 -build | --build | --buil | --bui | --bu) 930 ac_prev=build_alias ;; 931 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 932 build_alias=$ac_optarg ;; 933 934 -cache-file | --cache-file | --cache-fil | --cache-fi \ 935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 936 ac_prev=cache_file ;; 937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 939 cache_file=$ac_optarg ;; 940 941 --config-cache | -C) 942 cache_file=config.cache ;; 943 944 -datadir | --datadir | --datadi | --datad) 945 ac_prev=datadir ;; 946 -datadir=* | --datadir=* | --datadi=* | --datad=*) 947 datadir=$ac_optarg ;; 948 949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 950 | --dataroo | --dataro | --datar) 951 ac_prev=datarootdir ;; 952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 954 datarootdir=$ac_optarg ;; 955 956 -disable-* | --disable-*) 957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 958 # Reject names that are not valid shell variable names. 959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 960 as_fn_error $? "invalid feature name: $ac_useropt" 961 ac_useropt_orig=$ac_useropt 962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 963 case $ac_user_opts in 964 *" 965"enable_$ac_useropt" 966"*) ;; 967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 968 ac_unrecognized_sep=', ';; 969 esac 970 eval enable_$ac_useropt=no ;; 971 972 -docdir | --docdir | --docdi | --doc | --do) 973 ac_prev=docdir ;; 974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 975 docdir=$ac_optarg ;; 976 977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 978 ac_prev=dvidir ;; 979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 980 dvidir=$ac_optarg ;; 981 982 -enable-* | --enable-*) 983 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 984 # Reject names that are not valid shell variable names. 985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 986 as_fn_error $? "invalid feature name: $ac_useropt" 987 ac_useropt_orig=$ac_useropt 988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 989 case $ac_user_opts in 990 *" 991"enable_$ac_useropt" 992"*) ;; 993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 994 ac_unrecognized_sep=', ';; 995 esac 996 eval enable_$ac_useropt=\$ac_optarg ;; 997 998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1000 | --exec | --exe | --ex) 1001 ac_prev=exec_prefix ;; 1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1004 | --exec=* | --exe=* | --ex=*) 1005 exec_prefix=$ac_optarg ;; 1006 1007 -gas | --gas | --ga | --g) 1008 # Obsolete; use --with-gas. 1009 with_gas=yes ;; 1010 1011 -help | --help | --hel | --he | -h) 1012 ac_init_help=long ;; 1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1014 ac_init_help=recursive ;; 1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1016 ac_init_help=short ;; 1017 1018 -host | --host | --hos | --ho) 1019 ac_prev=host_alias ;; 1020 -host=* | --host=* | --hos=* | --ho=*) 1021 host_alias=$ac_optarg ;; 1022 1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1024 ac_prev=htmldir ;; 1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1026 | --ht=*) 1027 htmldir=$ac_optarg ;; 1028 1029 -includedir | --includedir | --includedi | --included | --include \ 1030 | --includ | --inclu | --incl | --inc) 1031 ac_prev=includedir ;; 1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1033 | --includ=* | --inclu=* | --incl=* | --inc=*) 1034 includedir=$ac_optarg ;; 1035 1036 -infodir | --infodir | --infodi | --infod | --info | --inf) 1037 ac_prev=infodir ;; 1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1039 infodir=$ac_optarg ;; 1040 1041 -libdir | --libdir | --libdi | --libd) 1042 ac_prev=libdir ;; 1043 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1044 libdir=$ac_optarg ;; 1045 1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1047 | --libexe | --libex | --libe) 1048 ac_prev=libexecdir ;; 1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1050 | --libexe=* | --libex=* | --libe=*) 1051 libexecdir=$ac_optarg ;; 1052 1053 -localedir | --localedir | --localedi | --localed | --locale) 1054 ac_prev=localedir ;; 1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1056 localedir=$ac_optarg ;; 1057 1058 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1059 | --localstate | --localstat | --localsta | --localst | --locals) 1060 ac_prev=localstatedir ;; 1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1063 localstatedir=$ac_optarg ;; 1064 1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1066 ac_prev=mandir ;; 1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1068 mandir=$ac_optarg ;; 1069 1070 -nfp | --nfp | --nf) 1071 # Obsolete; use --without-fp. 1072 with_fp=no ;; 1073 1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1075 | --no-cr | --no-c | -n) 1076 no_create=yes ;; 1077 1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1080 no_recursion=yes ;; 1081 1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1084 | --oldin | --oldi | --old | --ol | --o) 1085 ac_prev=oldincludedir ;; 1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1089 oldincludedir=$ac_optarg ;; 1090 1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1092 ac_prev=prefix ;; 1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1094 prefix=$ac_optarg ;; 1095 1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1097 | --program-pre | --program-pr | --program-p) 1098 ac_prev=program_prefix ;; 1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1101 program_prefix=$ac_optarg ;; 1102 1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1104 | --program-suf | --program-su | --program-s) 1105 ac_prev=program_suffix ;; 1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1108 program_suffix=$ac_optarg ;; 1109 1110 -program-transform-name | --program-transform-name \ 1111 | --program-transform-nam | --program-transform-na \ 1112 | --program-transform-n | --program-transform- \ 1113 | --program-transform | --program-transfor \ 1114 | --program-transfo | --program-transf \ 1115 | --program-trans | --program-tran \ 1116 | --progr-tra | --program-tr | --program-t) 1117 ac_prev=program_transform_name ;; 1118 -program-transform-name=* | --program-transform-name=* \ 1119 | --program-transform-nam=* | --program-transform-na=* \ 1120 | --program-transform-n=* | --program-transform-=* \ 1121 | --program-transform=* | --program-transfor=* \ 1122 | --program-transfo=* | --program-transf=* \ 1123 | --program-trans=* | --program-tran=* \ 1124 | --progr-tra=* | --program-tr=* | --program-t=*) 1125 program_transform_name=$ac_optarg ;; 1126 1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1128 ac_prev=pdfdir ;; 1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1130 pdfdir=$ac_optarg ;; 1131 1132 -psdir | --psdir | --psdi | --psd | --ps) 1133 ac_prev=psdir ;; 1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1135 psdir=$ac_optarg ;; 1136 1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1138 | -silent | --silent | --silen | --sile | --sil) 1139 silent=yes ;; 1140 1141 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1142 ac_prev=sbindir ;; 1143 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1144 | --sbi=* | --sb=*) 1145 sbindir=$ac_optarg ;; 1146 1147 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1148 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1149 | --sharedst | --shareds | --shared | --share | --shar \ 1150 | --sha | --sh) 1151 ac_prev=sharedstatedir ;; 1152 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1153 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1154 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1155 | --sha=* | --sh=*) 1156 sharedstatedir=$ac_optarg ;; 1157 1158 -site | --site | --sit) 1159 ac_prev=site ;; 1160 -site=* | --site=* | --sit=*) 1161 site=$ac_optarg ;; 1162 1163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1164 ac_prev=srcdir ;; 1165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1166 srcdir=$ac_optarg ;; 1167 1168 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1169 | --syscon | --sysco | --sysc | --sys | --sy) 1170 ac_prev=sysconfdir ;; 1171 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1172 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1173 sysconfdir=$ac_optarg ;; 1174 1175 -target | --target | --targe | --targ | --tar | --ta | --t) 1176 ac_prev=target_alias ;; 1177 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1178 target_alias=$ac_optarg ;; 1179 1180 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1181 verbose=yes ;; 1182 1183 -version | --version | --versio | --versi | --vers | -V) 1184 ac_init_version=: ;; 1185 1186 -with-* | --with-*) 1187 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1188 # Reject names that are not valid shell variable names. 1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1190 as_fn_error $? "invalid package name: $ac_useropt" 1191 ac_useropt_orig=$ac_useropt 1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1193 case $ac_user_opts in 1194 *" 1195"with_$ac_useropt" 1196"*) ;; 1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1198 ac_unrecognized_sep=', ';; 1199 esac 1200 eval with_$ac_useropt=\$ac_optarg ;; 1201 1202 -without-* | --without-*) 1203 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1204 # Reject names that are not valid shell variable names. 1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1206 as_fn_error $? "invalid package name: $ac_useropt" 1207 ac_useropt_orig=$ac_useropt 1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1209 case $ac_user_opts in 1210 *" 1211"with_$ac_useropt" 1212"*) ;; 1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1214 ac_unrecognized_sep=', ';; 1215 esac 1216 eval with_$ac_useropt=no ;; 1217 1218 --x) 1219 # Obsolete; use --with-x. 1220 with_x=yes ;; 1221 1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1223 | --x-incl | --x-inc | --x-in | --x-i) 1224 ac_prev=x_includes ;; 1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1227 x_includes=$ac_optarg ;; 1228 1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1231 ac_prev=x_libraries ;; 1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1234 x_libraries=$ac_optarg ;; 1235 1236 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1237Try \`$0 --help' for more information" 1238 ;; 1239 1240 *=*) 1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1242 # Reject names that are not valid shell variable names. 1243 case $ac_envvar in #( 1244 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1245 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1246 esac 1247 eval $ac_envvar=\$ac_optarg 1248 export $ac_envvar ;; 1249 1250 *) 1251 # FIXME: should be removed in autoconf 3.0. 1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1256 ;; 1257 1258 esac 1259done 1260 1261if test -n "$ac_prev"; then 1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1263 as_fn_error $? "missing argument to $ac_option" 1264fi 1265 1266if test -n "$ac_unrecognized_opts"; then 1267 case $enable_option_checking in 1268 no) ;; 1269 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1271 esac 1272fi 1273 1274# Check all directory arguments for consistency. 1275for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1276 datadir sysconfdir sharedstatedir localstatedir includedir \ 1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1278 libdir localedir mandir 1279do 1280 eval ac_val=\$$ac_var 1281 # Remove trailing slashes. 1282 case $ac_val in 1283 */ ) 1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1285 eval $ac_var=\$ac_val;; 1286 esac 1287 # Be sure to have absolute directory names. 1288 case $ac_val in 1289 [\\/$]* | ?:[\\/]* ) continue;; 1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1291 esac 1292 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1293done 1294 1295# There might be people who depend on the old broken behavior: `$host' 1296# used to hold the argument of --host etc. 1297# FIXME: To remove some day. 1298build=$build_alias 1299host=$host_alias 1300target=$target_alias 1301 1302# FIXME: To remove some day. 1303if test "x$host_alias" != x; then 1304 if test "x$build_alias" = x; then 1305 cross_compiling=maybe 1306 elif test "x$build_alias" != "x$host_alias"; then 1307 cross_compiling=yes 1308 fi 1309fi 1310 1311ac_tool_prefix= 1312test -n "$host_alias" && ac_tool_prefix=$host_alias- 1313 1314test "$silent" = yes && exec 6>/dev/null 1315 1316 1317ac_pwd=`pwd` && test -n "$ac_pwd" && 1318ac_ls_di=`ls -di .` && 1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1320 as_fn_error $? "working directory cannot be determined" 1321test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1322 as_fn_error $? "pwd does not report name of working directory" 1323 1324 1325# Find the source files, if location was not specified. 1326if test -z "$srcdir"; then 1327 ac_srcdir_defaulted=yes 1328 # Try the directory containing this script, then the parent directory. 1329 ac_confdir=`$as_dirname -- "$as_myself" || 1330$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1331 X"$as_myself" : 'X\(//\)[^/]' \| \ 1332 X"$as_myself" : 'X\(//\)$' \| \ 1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1334$as_echo X"$as_myself" | 1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1336 s//\1/ 1337 q 1338 } 1339 /^X\(\/\/\)[^/].*/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\/\)$/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\).*/{ 1348 s//\1/ 1349 q 1350 } 1351 s/.*/./; q'` 1352 srcdir=$ac_confdir 1353 if test ! -r "$srcdir/$ac_unique_file"; then 1354 srcdir=.. 1355 fi 1356else 1357 ac_srcdir_defaulted=no 1358fi 1359if test ! -r "$srcdir/$ac_unique_file"; then 1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1361 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1362fi 1363ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1364ac_abs_confdir=`( 1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1366 pwd)` 1367# When building in place, set srcdir=. 1368if test "$ac_abs_confdir" = "$ac_pwd"; then 1369 srcdir=. 1370fi 1371# Remove unnecessary trailing slashes from srcdir. 1372# Double slashes in file names in object file debugging info 1373# mess up M-x gdb in Emacs. 1374case $srcdir in 1375*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1376esac 1377for ac_var in $ac_precious_vars; do 1378 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1379 eval ac_env_${ac_var}_value=\$${ac_var} 1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1381 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1382done 1383 1384# 1385# Report the --help message. 1386# 1387if test "$ac_init_help" = "long"; then 1388 # Omit some internal or obsolete options to make the list less imposing. 1389 # This message is too long to be a string in the A/UX 3.1 sh. 1390 cat <<_ACEOF 1391\`configure' configures unbound 1.5.2 to adapt to many kinds of systems. 1392 1393Usage: $0 [OPTION]... [VAR=VALUE]... 1394 1395To assign environment variables (e.g., CC, CFLAGS...), specify them as 1396VAR=VALUE. See below for descriptions of some of the useful variables. 1397 1398Defaults for the options are specified in brackets. 1399 1400Configuration: 1401 -h, --help display this help and exit 1402 --help=short display options specific to this package 1403 --help=recursive display the short help of all the included packages 1404 -V, --version display version information and exit 1405 -q, --quiet, --silent do not print \`checking ...' messages 1406 --cache-file=FILE cache test results in FILE [disabled] 1407 -C, --config-cache alias for \`--cache-file=config.cache' 1408 -n, --no-create do not create output files 1409 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1410 1411Installation directories: 1412 --prefix=PREFIX install architecture-independent files in PREFIX 1413 [$ac_default_prefix] 1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1415 [PREFIX] 1416 1417By default, \`make install' will install all the files in 1418\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1419an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1420for instance \`--prefix=\$HOME'. 1421 1422For better control, use the options below. 1423 1424Fine tuning of the installation directories: 1425 --bindir=DIR user executables [EPREFIX/bin] 1426 --sbindir=DIR system admin executables [EPREFIX/sbin] 1427 --libexecdir=DIR program executables [EPREFIX/libexec] 1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1431 --libdir=DIR object code libraries [EPREFIX/lib] 1432 --includedir=DIR C header files [PREFIX/include] 1433 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1436 --infodir=DIR info documentation [DATAROOTDIR/info] 1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1438 --mandir=DIR man documentation [DATAROOTDIR/man] 1439 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound] 1440 --htmldir=DIR html documentation [DOCDIR] 1441 --dvidir=DIR dvi documentation [DOCDIR] 1442 --pdfdir=DIR pdf documentation [DOCDIR] 1443 --psdir=DIR ps documentation [DOCDIR] 1444_ACEOF 1445 1446 cat <<\_ACEOF 1447 1448System types: 1449 --build=BUILD configure for building on BUILD [guessed] 1450 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1451_ACEOF 1452fi 1453 1454if test -n "$ac_init_help"; then 1455 case $ac_init_help in 1456 short | recursive ) echo "Configuration of unbound 1.5.2:";; 1457 esac 1458 cat <<\_ACEOF 1459 1460Optional Features: 1461 --disable-option-checking ignore unrecognized --enable/--with options 1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1464 --enable-checking Enable warnings, asserts, makefile-dependencies 1465 --enable-debug same as enable-checking 1466 --disable-flto Disable link-time optimization (gcc specific option) 1467 --enable-shared[=PKGS] build shared libraries [default=yes] 1468 --enable-static[=PKGS] build static libraries [default=yes] 1469 --enable-fast-install[=PKGS] 1470 optimize for fast installation [default=yes] 1471 --disable-libtool-lock avoid locking (might break parallel builds) 1472 --disable-rpath disable hardcoded rpath (default=enabled) 1473 --disable-largefile omit support for large files 1474 --enable-alloc-checks enable to memory allocation statistics, for debug 1475 purposes 1476 --enable-alloc-lite enable for lightweight alloc assertions, for debug 1477 purposes 1478 --enable-alloc-nonregional 1479 enable nonregional allocs, slow but exposes regional 1480 allocations to other memory purifiers, for debug 1481 purposes 1482 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1483 --disable-gost Disable GOST support 1484 --disable-ecdsa Disable ECDSA support 1485 --enable-event-api Enable (experimental) libevent-based libunbound API 1486 installed to unbound-event.h 1487 --enable-static-exe enable to compile executables statically against 1488 (event) libs, for debug purposes 1489 --enable-lock-checks enable to check lock and unlock calls, for debug 1490 purposes 1491 --enable-allsymbols export all symbols from libunbound and link binaries 1492 to it, smaller install size but libunbound export 1493 table is polluted by internal symbols 1494 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c) 1495 1496Optional Packages: 1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1499 --with-conf-file=path Pathname to the Unbound configuration file 1500 --with-run-dir=path set default directory to chdir to (by default dir 1501 part of cfg file) 1502 --with-chroot-dir=path set default directory to chroot to (by default same 1503 as run-dir) 1504 --with-share-dir=path set default directory with shared data (by default 1505 same as share/unbound) 1506 --with-pidfile=filename set default pathname to unbound pidfile (default 1507 run-dir/unbound.pid) 1508 --with-rootkey-file=filename 1509 set default pathname to root key file (default 1510 run-dir/root.key). This file is read and written. 1511 --with-rootcert-file=filename 1512 set default pathname to root update certificate file 1513 (default run-dir/icannbundle.pem). This file need 1514 not exist if you are content with the builtin. 1515 --with-username=user set default user that unbound changes to (default 1516 user is unbound) 1517 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1518 both] 1519 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1520 --with-sysroot=DIR Search for dependent libraries within DIR 1521 (or the compiler's sysroot if not specified). 1522 --with-pthreads use pthreads library, or --without-pthreads to 1523 disable threading support. 1524 --with-solaris-threads use solaris native thread library. 1525 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it. 1526 (default=no) 1527 --with-pythonmodule build Python module, or --without-pythonmodule to 1528 disable script engine. (default=no) 1529 --with-nss=path use libnss instead of openssl, installed at path. 1530 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1531 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1532 /usr) 1533 --with-libevent=pathname 1534 use libevent (will check /usr/local /opt/local 1535 /usr/lib /usr/pkg /usr/sfw /usr or you can specify 1536 an explicit path). Slower, but allows use of large 1537 outgoing port ranges. 1538 --with-libexpat=path specify explicit path for libexpat. 1539 --with-dnstap-socket-path=pathname 1540 set default dnstap socket path 1541 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap 1542 --with-libfstrm=path Path where libfstrm is installed, for dnstap 1543 --with-libunbound-only do not build daemon and tool programs 1544 1545Some influential environment variables: 1546 CC C compiler command 1547 CFLAGS C compiler flags 1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1549 nonstandard directory <lib dir> 1550 LIBS libraries to pass to the linker, e.g. -l<library> 1551 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1552 you have headers in a nonstandard directory <include dir> 1553 CPP C preprocessor 1554 YACC The `Yet Another Compiler Compiler' implementation to use. 1555 Defaults to the first program found out of: `bison -y', `byacc', 1556 `yacc'. 1557 YFLAGS The list of arguments that will be passed by default to $YACC. 1558 This script will default YFLAGS to the empty string to avoid a 1559 default value of `-d' given by some make applications. 1560 PYTHON_VERSION 1561 The installed Python version to use, for example '2.3'. This 1562 string will be appended to the Python interpreter canonical 1563 name. 1564 1565Use these variables to override the choices made by `configure' or to help 1566it to find libraries and programs with nonstandard names/locations. 1567 1568Report bugs to <unbound-bugs@nlnetlabs.nl>. 1569_ACEOF 1570ac_status=$? 1571fi 1572 1573if test "$ac_init_help" = "recursive"; then 1574 # If there are subdirs, report their specific --help. 1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1576 test -d "$ac_dir" || 1577 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1578 continue 1579 ac_builddir=. 1580 1581case "$ac_dir" in 1582.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1583*) 1584 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1585 # A ".." for each directory in $ac_dir_suffix. 1586 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1587 case $ac_top_builddir_sub in 1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1590 esac ;; 1591esac 1592ac_abs_top_builddir=$ac_pwd 1593ac_abs_builddir=$ac_pwd$ac_dir_suffix 1594# for backward compatibility: 1595ac_top_builddir=$ac_top_build_prefix 1596 1597case $srcdir in 1598 .) # We are building in place. 1599 ac_srcdir=. 1600 ac_top_srcdir=$ac_top_builddir_sub 1601 ac_abs_top_srcdir=$ac_pwd ;; 1602 [\\/]* | ?:[\\/]* ) # Absolute name. 1603 ac_srcdir=$srcdir$ac_dir_suffix; 1604 ac_top_srcdir=$srcdir 1605 ac_abs_top_srcdir=$srcdir ;; 1606 *) # Relative name. 1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1608 ac_top_srcdir=$ac_top_build_prefix$srcdir 1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1610esac 1611ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1612 1613 cd "$ac_dir" || { ac_status=$?; continue; } 1614 # Check for guested configure. 1615 if test -f "$ac_srcdir/configure.gnu"; then 1616 echo && 1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1618 elif test -f "$ac_srcdir/configure"; then 1619 echo && 1620 $SHELL "$ac_srcdir/configure" --help=recursive 1621 else 1622 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1623 fi || ac_status=$? 1624 cd "$ac_pwd" || { ac_status=$?; break; } 1625 done 1626fi 1627 1628test -n "$ac_init_help" && exit $ac_status 1629if $ac_init_version; then 1630 cat <<\_ACEOF 1631unbound configure 1.5.2 1632generated by GNU Autoconf 2.69 1633 1634Copyright (C) 2012 Free Software Foundation, Inc. 1635This configure script is free software; the Free Software Foundation 1636gives unlimited permission to copy, distribute and modify it. 1637_ACEOF 1638 exit 1639fi 1640 1641## ------------------------ ## 1642## Autoconf initialization. ## 1643## ------------------------ ## 1644 1645# ac_fn_c_try_compile LINENO 1646# -------------------------- 1647# Try to compile conftest.$ac_ext, and return whether this succeeded. 1648ac_fn_c_try_compile () 1649{ 1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651 rm -f conftest.$ac_objext 1652 if { { ac_try="$ac_compile" 1653case "(($ac_try" in 1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1655 *) ac_try_echo=$ac_try;; 1656esac 1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1658$as_echo "$ac_try_echo"; } >&5 1659 (eval "$ac_compile") 2>conftest.err 1660 ac_status=$? 1661 if test -s conftest.err; then 1662 grep -v '^ *+' conftest.err >conftest.er1 1663 cat conftest.er1 >&5 1664 mv -f conftest.er1 conftest.err 1665 fi 1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1667 test $ac_status = 0; } && { 1668 test -z "$ac_c_werror_flag" || 1669 test ! -s conftest.err 1670 } && test -s conftest.$ac_objext; then : 1671 ac_retval=0 1672else 1673 $as_echo "$as_me: failed program was:" >&5 1674sed 's/^/| /' conftest.$ac_ext >&5 1675 1676 ac_retval=1 1677fi 1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1679 as_fn_set_status $ac_retval 1680 1681} # ac_fn_c_try_compile 1682 1683# ac_fn_c_try_cpp LINENO 1684# ---------------------- 1685# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1686ac_fn_c_try_cpp () 1687{ 1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1689 if { { ac_try="$ac_cpp conftest.$ac_ext" 1690case "(($ac_try" in 1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1692 *) ac_try_echo=$ac_try;; 1693esac 1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1695$as_echo "$ac_try_echo"; } >&5 1696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1697 ac_status=$? 1698 if test -s conftest.err; then 1699 grep -v '^ *+' conftest.err >conftest.er1 1700 cat conftest.er1 >&5 1701 mv -f conftest.er1 conftest.err 1702 fi 1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1704 test $ac_status = 0; } > conftest.i && { 1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1706 test ! -s conftest.err 1707 }; then : 1708 ac_retval=0 1709else 1710 $as_echo "$as_me: failed program was:" >&5 1711sed 's/^/| /' conftest.$ac_ext >&5 1712 1713 ac_retval=1 1714fi 1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1716 as_fn_set_status $ac_retval 1717 1718} # ac_fn_c_try_cpp 1719 1720# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1721# ------------------------------------------------------- 1722# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1723# the include files in INCLUDES and setting the cache variable VAR 1724# accordingly. 1725ac_fn_c_check_header_mongrel () 1726{ 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728 if eval \${$3+:} false; then : 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730$as_echo_n "checking for $2... " >&6; } 1731if eval \${$3+:} false; then : 1732 $as_echo_n "(cached) " >&6 1733fi 1734eval ac_res=\$$3 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1736$as_echo "$ac_res" >&6; } 1737else 1738 # Is the header compilable? 1739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1740$as_echo_n "checking $2 usability... " >&6; } 1741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1742/* end confdefs.h. */ 1743$4 1744#include <$2> 1745_ACEOF 1746if ac_fn_c_try_compile "$LINENO"; then : 1747 ac_header_compiler=yes 1748else 1749 ac_header_compiler=no 1750fi 1751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1753$as_echo "$ac_header_compiler" >&6; } 1754 1755# Is the header present? 1756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1757$as_echo_n "checking $2 presence... " >&6; } 1758cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1759/* end confdefs.h. */ 1760#include <$2> 1761_ACEOF 1762if ac_fn_c_try_cpp "$LINENO"; then : 1763 ac_header_preproc=yes 1764else 1765 ac_header_preproc=no 1766fi 1767rm -f conftest.err conftest.i conftest.$ac_ext 1768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1769$as_echo "$ac_header_preproc" >&6; } 1770 1771# So? What about this header? 1772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1773 yes:no: ) 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1775$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1777$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1778 ;; 1779 no:yes:* ) 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1781$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1783$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1785$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1787$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1789$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1790( $as_echo "## ---------------------------------------- ## 1791## Report this to unbound-bugs@nlnetlabs.nl ## 1792## ---------------------------------------- ##" 1793 ) | sed "s/^/$as_me: WARNING: /" >&2 1794 ;; 1795esac 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1797$as_echo_n "checking for $2... " >&6; } 1798if eval \${$3+:} false; then : 1799 $as_echo_n "(cached) " >&6 1800else 1801 eval "$3=\$ac_header_compiler" 1802fi 1803eval ac_res=\$$3 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1805$as_echo "$ac_res" >&6; } 1806fi 1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1808 1809} # ac_fn_c_check_header_mongrel 1810 1811# ac_fn_c_try_run LINENO 1812# ---------------------- 1813# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1814# that executables *can* be run. 1815ac_fn_c_try_run () 1816{ 1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1818 if { { ac_try="$ac_link" 1819case "(($ac_try" in 1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1821 *) ac_try_echo=$ac_try;; 1822esac 1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1824$as_echo "$ac_try_echo"; } >&5 1825 (eval "$ac_link") 2>&5 1826 ac_status=$? 1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1828 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1829 { { case "(($ac_try" in 1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1831 *) ac_try_echo=$ac_try;; 1832esac 1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1834$as_echo "$ac_try_echo"; } >&5 1835 (eval "$ac_try") 2>&5 1836 ac_status=$? 1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1838 test $ac_status = 0; }; }; then : 1839 ac_retval=0 1840else 1841 $as_echo "$as_me: program exited with status $ac_status" >&5 1842 $as_echo "$as_me: failed program was:" >&5 1843sed 's/^/| /' conftest.$ac_ext >&5 1844 1845 ac_retval=$ac_status 1846fi 1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1849 as_fn_set_status $ac_retval 1850 1851} # ac_fn_c_try_run 1852 1853# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1854# ------------------------------------------------------- 1855# Tests whether HEADER exists and can be compiled using the include files in 1856# INCLUDES, setting the cache variable VAR accordingly. 1857ac_fn_c_check_header_compile () 1858{ 1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1861$as_echo_n "checking for $2... " >&6; } 1862if eval \${$3+:} false; then : 1863 $as_echo_n "(cached) " >&6 1864else 1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1866/* end confdefs.h. */ 1867$4 1868#include <$2> 1869_ACEOF 1870if ac_fn_c_try_compile "$LINENO"; then : 1871 eval "$3=yes" 1872else 1873 eval "$3=no" 1874fi 1875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1876fi 1877eval ac_res=\$$3 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1879$as_echo "$ac_res" >&6; } 1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1881 1882} # ac_fn_c_check_header_compile 1883 1884# ac_fn_c_try_link LINENO 1885# ----------------------- 1886# Try to link conftest.$ac_ext, and return whether this succeeded. 1887ac_fn_c_try_link () 1888{ 1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1890 rm -f conftest.$ac_objext conftest$ac_exeext 1891 if { { ac_try="$ac_link" 1892case "(($ac_try" in 1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1894 *) ac_try_echo=$ac_try;; 1895esac 1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1897$as_echo "$ac_try_echo"; } >&5 1898 (eval "$ac_link") 2>conftest.err 1899 ac_status=$? 1900 if test -s conftest.err; then 1901 grep -v '^ *+' conftest.err >conftest.er1 1902 cat conftest.er1 >&5 1903 mv -f conftest.er1 conftest.err 1904 fi 1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1906 test $ac_status = 0; } && { 1907 test -z "$ac_c_werror_flag" || 1908 test ! -s conftest.err 1909 } && test -s conftest$ac_exeext && { 1910 test "$cross_compiling" = yes || 1911 test -x conftest$ac_exeext 1912 }; then : 1913 ac_retval=0 1914else 1915 $as_echo "$as_me: failed program was:" >&5 1916sed 's/^/| /' conftest.$ac_ext >&5 1917 1918 ac_retval=1 1919fi 1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1922 # interfere with the next link command; also delete a directory that is 1923 # left behind by Apple's compiler. We do this before executing the actions. 1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1926 as_fn_set_status $ac_retval 1927 1928} # ac_fn_c_try_link 1929 1930# ac_fn_c_check_func LINENO FUNC VAR 1931# ---------------------------------- 1932# Tests whether FUNC exists, setting the cache variable VAR accordingly 1933ac_fn_c_check_func () 1934{ 1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1937$as_echo_n "checking for $2... " >&6; } 1938if eval \${$3+:} false; then : 1939 $as_echo_n "(cached) " >&6 1940else 1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1942/* end confdefs.h. */ 1943/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1944 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1945#define $2 innocuous_$2 1946 1947/* System header to define __stub macros and hopefully few prototypes, 1948 which can conflict with char $2 (); below. 1949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1950 <limits.h> exists even on freestanding compilers. */ 1951 1952#ifdef __STDC__ 1953# include <limits.h> 1954#else 1955# include <assert.h> 1956#endif 1957 1958#undef $2 1959 1960/* Override any GCC internal prototype to avoid an error. 1961 Use char because int might match the return type of a GCC 1962 builtin and then its argument prototype would still apply. */ 1963#ifdef __cplusplus 1964extern "C" 1965#endif 1966char $2 (); 1967/* The GNU C library defines this for functions which it implements 1968 to always fail with ENOSYS. Some functions are actually named 1969 something starting with __ and the normal name is an alias. */ 1970#if defined __stub_$2 || defined __stub___$2 1971choke me 1972#endif 1973 1974int 1975main () 1976{ 1977return $2 (); 1978 ; 1979 return 0; 1980} 1981_ACEOF 1982if ac_fn_c_try_link "$LINENO"; then : 1983 eval "$3=yes" 1984else 1985 eval "$3=no" 1986fi 1987rm -f core conftest.err conftest.$ac_objext \ 1988 conftest$ac_exeext conftest.$ac_ext 1989fi 1990eval ac_res=\$$3 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1992$as_echo "$ac_res" >&6; } 1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1994 1995} # ac_fn_c_check_func 1996 1997# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1998# ------------------------------------------- 1999# Tests whether TYPE exists after having included INCLUDES, setting cache 2000# variable VAR accordingly. 2001ac_fn_c_check_type () 2002{ 2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2005$as_echo_n "checking for $2... " >&6; } 2006if eval \${$3+:} false; then : 2007 $as_echo_n "(cached) " >&6 2008else 2009 eval "$3=no" 2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2011/* end confdefs.h. */ 2012$4 2013int 2014main () 2015{ 2016if (sizeof ($2)) 2017 return 0; 2018 ; 2019 return 0; 2020} 2021_ACEOF 2022if ac_fn_c_try_compile "$LINENO"; then : 2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2024/* end confdefs.h. */ 2025$4 2026int 2027main () 2028{ 2029if (sizeof (($2))) 2030 return 0; 2031 ; 2032 return 0; 2033} 2034_ACEOF 2035if ac_fn_c_try_compile "$LINENO"; then : 2036 2037else 2038 eval "$3=yes" 2039fi 2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2041fi 2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2043fi 2044eval ac_res=\$$3 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2046$as_echo "$ac_res" >&6; } 2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2048 2049} # ac_fn_c_check_type 2050 2051# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2052# -------------------------------------------- 2053# Tries to find the compile-time value of EXPR in a program that includes 2054# INCLUDES, setting VAR accordingly. Returns whether the value could be 2055# computed 2056ac_fn_c_compute_int () 2057{ 2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2059 if test "$cross_compiling" = yes; then 2060 # Depending upon the size, compute the lo and hi bounds. 2061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2062/* end confdefs.h. */ 2063$4 2064int 2065main () 2066{ 2067static int test_array [1 - 2 * !(($2) >= 0)]; 2068test_array [0] = 0; 2069return test_array [0]; 2070 2071 ; 2072 return 0; 2073} 2074_ACEOF 2075if ac_fn_c_try_compile "$LINENO"; then : 2076 ac_lo=0 ac_mid=0 2077 while :; do 2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2079/* end confdefs.h. */ 2080$4 2081int 2082main () 2083{ 2084static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2085test_array [0] = 0; 2086return test_array [0]; 2087 2088 ; 2089 return 0; 2090} 2091_ACEOF 2092if ac_fn_c_try_compile "$LINENO"; then : 2093 ac_hi=$ac_mid; break 2094else 2095 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2096 if test $ac_lo -le $ac_mid; then 2097 ac_lo= ac_hi= 2098 break 2099 fi 2100 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2101fi 2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2103 done 2104else 2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2106/* end confdefs.h. */ 2107$4 2108int 2109main () 2110{ 2111static int test_array [1 - 2 * !(($2) < 0)]; 2112test_array [0] = 0; 2113return test_array [0]; 2114 2115 ; 2116 return 0; 2117} 2118_ACEOF 2119if ac_fn_c_try_compile "$LINENO"; then : 2120 ac_hi=-1 ac_mid=-1 2121 while :; do 2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2123/* end confdefs.h. */ 2124$4 2125int 2126main () 2127{ 2128static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2129test_array [0] = 0; 2130return test_array [0]; 2131 2132 ; 2133 return 0; 2134} 2135_ACEOF 2136if ac_fn_c_try_compile "$LINENO"; then : 2137 ac_lo=$ac_mid; break 2138else 2139 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2140 if test $ac_mid -le $ac_hi; then 2141 ac_lo= ac_hi= 2142 break 2143 fi 2144 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2145fi 2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2147 done 2148else 2149 ac_lo= ac_hi= 2150fi 2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2152fi 2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2154# Binary search between lo and hi bounds. 2155while test "x$ac_lo" != "x$ac_hi"; do 2156 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2158/* end confdefs.h. */ 2159$4 2160int 2161main () 2162{ 2163static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2164test_array [0] = 0; 2165return test_array [0]; 2166 2167 ; 2168 return 0; 2169} 2170_ACEOF 2171if ac_fn_c_try_compile "$LINENO"; then : 2172 ac_hi=$ac_mid 2173else 2174 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2175fi 2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2177done 2178case $ac_lo in #(( 2179?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2180'') ac_retval=1 ;; 2181esac 2182 else 2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2184/* end confdefs.h. */ 2185$4 2186static long int longval () { return $2; } 2187static unsigned long int ulongval () { return $2; } 2188#include <stdio.h> 2189#include <stdlib.h> 2190int 2191main () 2192{ 2193 2194 FILE *f = fopen ("conftest.val", "w"); 2195 if (! f) 2196 return 1; 2197 if (($2) < 0) 2198 { 2199 long int i = longval (); 2200 if (i != ($2)) 2201 return 1; 2202 fprintf (f, "%ld", i); 2203 } 2204 else 2205 { 2206 unsigned long int i = ulongval (); 2207 if (i != ($2)) 2208 return 1; 2209 fprintf (f, "%lu", i); 2210 } 2211 /* Do not output a trailing newline, as this causes \r\n confusion 2212 on some platforms. */ 2213 return ferror (f) || fclose (f) != 0; 2214 2215 ; 2216 return 0; 2217} 2218_ACEOF 2219if ac_fn_c_try_run "$LINENO"; then : 2220 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2221else 2222 ac_retval=1 2223fi 2224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2225 conftest.$ac_objext conftest.beam conftest.$ac_ext 2226rm -f conftest.val 2227 2228 fi 2229 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2230 as_fn_set_status $ac_retval 2231 2232} # ac_fn_c_compute_int 2233 2234# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2235# --------------------------------------------- 2236# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2237# accordingly. 2238ac_fn_c_check_decl () 2239{ 2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2241 as_decl_name=`echo $2|sed 's/ *(.*//'` 2242 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2244$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2245if eval \${$3+:} false; then : 2246 $as_echo_n "(cached) " >&6 2247else 2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2249/* end confdefs.h. */ 2250$4 2251int 2252main () 2253{ 2254#ifndef $as_decl_name 2255#ifdef __cplusplus 2256 (void) $as_decl_use; 2257#else 2258 (void) $as_decl_name; 2259#endif 2260#endif 2261 2262 ; 2263 return 0; 2264} 2265_ACEOF 2266if ac_fn_c_try_compile "$LINENO"; then : 2267 eval "$3=yes" 2268else 2269 eval "$3=no" 2270fi 2271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2272fi 2273eval ac_res=\$$3 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2275$as_echo "$ac_res" >&6; } 2276 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2277 2278} # ac_fn_c_check_decl 2279 2280# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2281# ---------------------------------------------------- 2282# Tries to find if the field MEMBER exists in type AGGR, after including 2283# INCLUDES, setting cache variable VAR accordingly. 2284ac_fn_c_check_member () 2285{ 2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2288$as_echo_n "checking for $2.$3... " >&6; } 2289if eval \${$4+:} false; then : 2290 $as_echo_n "(cached) " >&6 2291else 2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2293/* end confdefs.h. */ 2294$5 2295int 2296main () 2297{ 2298static $2 ac_aggr; 2299if (ac_aggr.$3) 2300return 0; 2301 ; 2302 return 0; 2303} 2304_ACEOF 2305if ac_fn_c_try_compile "$LINENO"; then : 2306 eval "$4=yes" 2307else 2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2309/* end confdefs.h. */ 2310$5 2311int 2312main () 2313{ 2314static $2 ac_aggr; 2315if (sizeof ac_aggr.$3) 2316return 0; 2317 ; 2318 return 0; 2319} 2320_ACEOF 2321if ac_fn_c_try_compile "$LINENO"; then : 2322 eval "$4=yes" 2323else 2324 eval "$4=no" 2325fi 2326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2327fi 2328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2329fi 2330eval ac_res=\$$4 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2332$as_echo "$ac_res" >&6; } 2333 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2334 2335} # ac_fn_c_check_member 2336cat >config.log <<_ACEOF 2337This file contains any messages produced by compilers while 2338running configure, to aid debugging if configure makes a mistake. 2339 2340It was created by unbound $as_me 1.5.2, which was 2341generated by GNU Autoconf 2.69. Invocation command line was 2342 2343 $ $0 $@ 2344 2345_ACEOF 2346exec 5>>config.log 2347{ 2348cat <<_ASUNAME 2349## --------- ## 2350## Platform. ## 2351## --------- ## 2352 2353hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2354uname -m = `(uname -m) 2>/dev/null || echo unknown` 2355uname -r = `(uname -r) 2>/dev/null || echo unknown` 2356uname -s = `(uname -s) 2>/dev/null || echo unknown` 2357uname -v = `(uname -v) 2>/dev/null || echo unknown` 2358 2359/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2360/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2361 2362/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2363/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2364/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2365/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2366/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2367/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2368/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2369 2370_ASUNAME 2371 2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2373for as_dir in $PATH 2374do 2375 IFS=$as_save_IFS 2376 test -z "$as_dir" && as_dir=. 2377 $as_echo "PATH: $as_dir" 2378 done 2379IFS=$as_save_IFS 2380 2381} >&5 2382 2383cat >&5 <<_ACEOF 2384 2385 2386## ----------- ## 2387## Core tests. ## 2388## ----------- ## 2389 2390_ACEOF 2391 2392 2393# Keep a trace of the command line. 2394# Strip out --no-create and --no-recursion so they do not pile up. 2395# Strip out --silent because we don't want to record it for future runs. 2396# Also quote any args containing shell meta-characters. 2397# Make two passes to allow for proper duplicate-argument suppression. 2398ac_configure_args= 2399ac_configure_args0= 2400ac_configure_args1= 2401ac_must_keep_next=false 2402for ac_pass in 1 2 2403do 2404 for ac_arg 2405 do 2406 case $ac_arg in 2407 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2409 | -silent | --silent | --silen | --sile | --sil) 2410 continue ;; 2411 *\'*) 2412 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2413 esac 2414 case $ac_pass in 2415 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2416 2) 2417 as_fn_append ac_configure_args1 " '$ac_arg'" 2418 if test $ac_must_keep_next = true; then 2419 ac_must_keep_next=false # Got value, back to normal. 2420 else 2421 case $ac_arg in 2422 *=* | --config-cache | -C | -disable-* | --disable-* \ 2423 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2424 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2425 | -with-* | --with-* | -without-* | --without-* | --x) 2426 case "$ac_configure_args0 " in 2427 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2428 esac 2429 ;; 2430 -* ) ac_must_keep_next=true ;; 2431 esac 2432 fi 2433 as_fn_append ac_configure_args " '$ac_arg'" 2434 ;; 2435 esac 2436 done 2437done 2438{ ac_configure_args0=; unset ac_configure_args0;} 2439{ ac_configure_args1=; unset ac_configure_args1;} 2440 2441# When interrupted or exit'd, cleanup temporary files, and complete 2442# config.log. We remove comments because anyway the quotes in there 2443# would cause problems or look ugly. 2444# WARNING: Use '\'' to represent an apostrophe within the trap. 2445# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2446trap 'exit_status=$? 2447 # Save into config.log some information that might help in debugging. 2448 { 2449 echo 2450 2451 $as_echo "## ---------------- ## 2452## Cache variables. ## 2453## ---------------- ##" 2454 echo 2455 # The following way of writing the cache mishandles newlines in values, 2456( 2457 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2458 eval ac_val=\$$ac_var 2459 case $ac_val in #( 2460 *${as_nl}*) 2461 case $ac_var in #( 2462 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2463$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2464 esac 2465 case $ac_var in #( 2466 _ | IFS | as_nl) ;; #( 2467 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2468 *) { eval $ac_var=; unset $ac_var;} ;; 2469 esac ;; 2470 esac 2471 done 2472 (set) 2>&1 | 2473 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2474 *${as_nl}ac_space=\ *) 2475 sed -n \ 2476 "s/'\''/'\''\\\\'\'''\''/g; 2477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2478 ;; #( 2479 *) 2480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2481 ;; 2482 esac | 2483 sort 2484) 2485 echo 2486 2487 $as_echo "## ----------------- ## 2488## Output variables. ## 2489## ----------------- ##" 2490 echo 2491 for ac_var in $ac_subst_vars 2492 do 2493 eval ac_val=\$$ac_var 2494 case $ac_val in 2495 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2496 esac 2497 $as_echo "$ac_var='\''$ac_val'\''" 2498 done | sort 2499 echo 2500 2501 if test -n "$ac_subst_files"; then 2502 $as_echo "## ------------------- ## 2503## File substitutions. ## 2504## ------------------- ##" 2505 echo 2506 for ac_var in $ac_subst_files 2507 do 2508 eval ac_val=\$$ac_var 2509 case $ac_val in 2510 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2511 esac 2512 $as_echo "$ac_var='\''$ac_val'\''" 2513 done | sort 2514 echo 2515 fi 2516 2517 if test -s confdefs.h; then 2518 $as_echo "## ----------- ## 2519## confdefs.h. ## 2520## ----------- ##" 2521 echo 2522 cat confdefs.h 2523 echo 2524 fi 2525 test "$ac_signal" != 0 && 2526 $as_echo "$as_me: caught signal $ac_signal" 2527 $as_echo "$as_me: exit $exit_status" 2528 } >&5 2529 rm -f core *.core core.conftest.* && 2530 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2531 exit $exit_status 2532' 0 2533for ac_signal in 1 2 13 15; do 2534 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2535done 2536ac_signal=0 2537 2538# confdefs.h avoids OS command line length limits that DEFS can exceed. 2539rm -f -r conftest* confdefs.h 2540 2541$as_echo "/* confdefs.h */" > confdefs.h 2542 2543# Predefined preprocessor variables. 2544 2545cat >>confdefs.h <<_ACEOF 2546#define PACKAGE_NAME "$PACKAGE_NAME" 2547_ACEOF 2548 2549cat >>confdefs.h <<_ACEOF 2550#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2551_ACEOF 2552 2553cat >>confdefs.h <<_ACEOF 2554#define PACKAGE_VERSION "$PACKAGE_VERSION" 2555_ACEOF 2556 2557cat >>confdefs.h <<_ACEOF 2558#define PACKAGE_STRING "$PACKAGE_STRING" 2559_ACEOF 2560 2561cat >>confdefs.h <<_ACEOF 2562#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2563_ACEOF 2564 2565cat >>confdefs.h <<_ACEOF 2566#define PACKAGE_URL "$PACKAGE_URL" 2567_ACEOF 2568 2569 2570# Let the site file select an alternate cache file if it wants to. 2571# Prefer an explicitly selected file to automatically selected ones. 2572ac_site_file1=NONE 2573ac_site_file2=NONE 2574if test -n "$CONFIG_SITE"; then 2575 # We do not want a PATH search for config.site. 2576 case $CONFIG_SITE in #(( 2577 -*) ac_site_file1=./$CONFIG_SITE;; 2578 */*) ac_site_file1=$CONFIG_SITE;; 2579 *) ac_site_file1=./$CONFIG_SITE;; 2580 esac 2581elif test "x$prefix" != xNONE; then 2582 ac_site_file1=$prefix/share/config.site 2583 ac_site_file2=$prefix/etc/config.site 2584else 2585 ac_site_file1=$ac_default_prefix/share/config.site 2586 ac_site_file2=$ac_default_prefix/etc/config.site 2587fi 2588for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2589do 2590 test "x$ac_site_file" = xNONE && continue 2591 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2593$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2594 sed 's/^/| /' "$ac_site_file" >&5 2595 . "$ac_site_file" \ 2596 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2598as_fn_error $? "failed to load site script $ac_site_file 2599See \`config.log' for more details" "$LINENO" 5; } 2600 fi 2601done 2602 2603if test -r "$cache_file"; then 2604 # Some versions of bash will fail to source /dev/null (special files 2605 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2606 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2608$as_echo "$as_me: loading cache $cache_file" >&6;} 2609 case $cache_file in 2610 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2611 *) . "./$cache_file";; 2612 esac 2613 fi 2614else 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2616$as_echo "$as_me: creating cache $cache_file" >&6;} 2617 >$cache_file 2618fi 2619 2620# Check that the precious variables saved in the cache have kept the same 2621# value. 2622ac_cache_corrupted=false 2623for ac_var in $ac_precious_vars; do 2624 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2625 eval ac_new_set=\$ac_env_${ac_var}_set 2626 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2627 eval ac_new_val=\$ac_env_${ac_var}_value 2628 case $ac_old_set,$ac_new_set in 2629 set,) 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2631$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2632 ac_cache_corrupted=: ;; 2633 ,set) 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2635$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2636 ac_cache_corrupted=: ;; 2637 ,);; 2638 *) 2639 if test "x$ac_old_val" != "x$ac_new_val"; then 2640 # differences in whitespace do not lead to failure. 2641 ac_old_val_w=`echo x $ac_old_val` 2642 ac_new_val_w=`echo x $ac_new_val` 2643 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2645$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2646 ac_cache_corrupted=: 2647 else 2648 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2649$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2650 eval $ac_var=\$ac_old_val 2651 fi 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2653$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2655$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2656 fi;; 2657 esac 2658 # Pass precious variables to config.status. 2659 if test "$ac_new_set" = set; then 2660 case $ac_new_val in 2661 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2662 *) ac_arg=$ac_var=$ac_new_val ;; 2663 esac 2664 case " $ac_configure_args " in 2665 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2666 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2667 esac 2668 fi 2669done 2670if $ac_cache_corrupted; then 2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2673 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2674$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2675 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2676fi 2677## -------------------- ## 2678## Main body of script. ## 2679## -------------------- ## 2680 2681ac_ext=c 2682ac_cpp='$CPP $CPPFLAGS' 2683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2685ac_compiler_gnu=$ac_cv_c_compiler_gnu 2686 2687 2688UNBOUND_VERSION_MAJOR=1 2689 2690UNBOUND_VERSION_MINOR=5 2691 2692UNBOUND_VERSION_MICRO=2 2693 2694 2695LIBUNBOUND_CURRENT=5 2696LIBUNBOUND_REVISION=5 2697LIBUNBOUND_AGE=3 2698# 1.0.0 had 0:12:0 2699# 1.0.1 had 0:13:0 2700# 1.0.2 had 0:14:0 2701# 1.1.0 had 0:15:0 2702# 1.1.1 had 0:16:0 2703# 1.2.0 had 0:17:0 2704# 1.2.1 had 0:18:0 2705# 1.3.0 had 1:0:0 # ub_cancel and -export-symbols. 2706# 1.3.1 had 1:1:0 2707# 1.3.2 had 1:2:0 2708# 1.3.3 had 1:3:0 2709# 1.3.4 had 1:4:0 2710# 1.4.0-snapshots had 1:5:0 2711# 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus 2712# 1.4.1 had 2:1:0 2713# 1.4.2 had 2:2:0 2714# 1.4.3 had 2:3:0 2715# 1.4.4 had 2:4:0 2716# 1.4.5 had 2:5:0 2717# 1.4.6 had 2:6:0 2718# 1.4.7 had 2:7:0 2719# 1.4.8 had 2:8:0 2720# 1.4.9 had 2:9:0 2721# 1.4.10 had 2:10:0 2722# 1.4.11 had 2:11:0 2723# 1.4.12 had 2:12:0 2724# 1.4.13 had 2:13:0 2725# and 1.4.13p1 and 1.4.13.p2 2726# 1.4.14 had 2:14:0 2727# 1.4.15 had 3:0:1 # adds ub_version() 2728# 1.4.16 had 3:1:1 2729# 1.4.17 had 3:2:1 2730# 1.4.18 had 3:3:1 2731# 1.4.19 had 3:4:1 2732# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1 2733# 1.4.21 had 4:1:2 2734# 1.4.22 had 4:1:2 2735# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr 2736# 1.5.1 had 5:3:3 2737# 1.5.2 had 5:5:3 2738 2739# Current -- the number of the binary API that we're implementing 2740# Revision -- which iteration of the implementation of the binary 2741# API are we supplying? 2742# Age -- How many previous binary API versions do we also 2743# support? 2744# 2745# If we release a new version that does not change the binary API, 2746# increment Revision. 2747# 2748# If we release a new version that changes the binary API, but does 2749# not break programs compiled against the old binary API, increment 2750# Current and Age. Set Revision to 0, since this is the first 2751# implementation of the new API. 2752# 2753# Otherwise, we're changing the binary API and breaking bakward 2754# compatibility with old binaries. Increment Current. Set Age to 0, 2755# since we're backward compatible with no previous APIs. Set Revision 2756# to 0 too. 2757 2758 2759 2760 2761CFLAGS="$CFLAGS" 2762ac_ext=c 2763ac_cpp='$CPP $CPPFLAGS' 2764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2766ac_compiler_gnu=$ac_cv_c_compiler_gnu 2767if test -n "$ac_tool_prefix"; then 2768 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2769set dummy ${ac_tool_prefix}gcc; ac_word=$2 2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2771$as_echo_n "checking for $ac_word... " >&6; } 2772if ${ac_cv_prog_CC+:} false; then : 2773 $as_echo_n "(cached) " >&6 2774else 2775 if test -n "$CC"; then 2776 ac_cv_prog_CC="$CC" # Let the user override the test. 2777else 2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2779for as_dir in $PATH 2780do 2781 IFS=$as_save_IFS 2782 test -z "$as_dir" && as_dir=. 2783 for ac_exec_ext in '' $ac_executable_extensions; do 2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2785 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2787 break 2 2788 fi 2789done 2790 done 2791IFS=$as_save_IFS 2792 2793fi 2794fi 2795CC=$ac_cv_prog_CC 2796if test -n "$CC"; then 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2798$as_echo "$CC" >&6; } 2799else 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2801$as_echo "no" >&6; } 2802fi 2803 2804 2805fi 2806if test -z "$ac_cv_prog_CC"; then 2807 ac_ct_CC=$CC 2808 # Extract the first word of "gcc", so it can be a program name with args. 2809set dummy gcc; ac_word=$2 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2811$as_echo_n "checking for $ac_word... " >&6; } 2812if ${ac_cv_prog_ac_ct_CC+:} false; then : 2813 $as_echo_n "(cached) " >&6 2814else 2815 if test -n "$ac_ct_CC"; then 2816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2817else 2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2819for as_dir in $PATH 2820do 2821 IFS=$as_save_IFS 2822 test -z "$as_dir" && as_dir=. 2823 for ac_exec_ext in '' $ac_executable_extensions; do 2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2825 ac_cv_prog_ac_ct_CC="gcc" 2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2827 break 2 2828 fi 2829done 2830 done 2831IFS=$as_save_IFS 2832 2833fi 2834fi 2835ac_ct_CC=$ac_cv_prog_ac_ct_CC 2836if test -n "$ac_ct_CC"; then 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2838$as_echo "$ac_ct_CC" >&6; } 2839else 2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2841$as_echo "no" >&6; } 2842fi 2843 2844 if test "x$ac_ct_CC" = x; then 2845 CC="" 2846 else 2847 case $cross_compiling:$ac_tool_warned in 2848yes:) 2849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2851ac_tool_warned=yes ;; 2852esac 2853 CC=$ac_ct_CC 2854 fi 2855else 2856 CC="$ac_cv_prog_CC" 2857fi 2858 2859if test -z "$CC"; then 2860 if test -n "$ac_tool_prefix"; then 2861 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2862set dummy ${ac_tool_prefix}cc; ac_word=$2 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2864$as_echo_n "checking for $ac_word... " >&6; } 2865if ${ac_cv_prog_CC+:} false; then : 2866 $as_echo_n "(cached) " >&6 2867else 2868 if test -n "$CC"; then 2869 ac_cv_prog_CC="$CC" # Let the user override the test. 2870else 2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2872for as_dir in $PATH 2873do 2874 IFS=$as_save_IFS 2875 test -z "$as_dir" && as_dir=. 2876 for ac_exec_ext in '' $ac_executable_extensions; do 2877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2878 ac_cv_prog_CC="${ac_tool_prefix}cc" 2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2880 break 2 2881 fi 2882done 2883 done 2884IFS=$as_save_IFS 2885 2886fi 2887fi 2888CC=$ac_cv_prog_CC 2889if test -n "$CC"; then 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2891$as_echo "$CC" >&6; } 2892else 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2894$as_echo "no" >&6; } 2895fi 2896 2897 2898 fi 2899fi 2900if test -z "$CC"; then 2901 # Extract the first word of "cc", so it can be a program name with args. 2902set dummy cc; ac_word=$2 2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2904$as_echo_n "checking for $ac_word... " >&6; } 2905if ${ac_cv_prog_CC+:} false; then : 2906 $as_echo_n "(cached) " >&6 2907else 2908 if test -n "$CC"; then 2909 ac_cv_prog_CC="$CC" # Let the user override the test. 2910else 2911 ac_prog_rejected=no 2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2913for as_dir in $PATH 2914do 2915 IFS=$as_save_IFS 2916 test -z "$as_dir" && as_dir=. 2917 for ac_exec_ext in '' $ac_executable_extensions; do 2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2919 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2920 ac_prog_rejected=yes 2921 continue 2922 fi 2923 ac_cv_prog_CC="cc" 2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2925 break 2 2926 fi 2927done 2928 done 2929IFS=$as_save_IFS 2930 2931if test $ac_prog_rejected = yes; then 2932 # We found a bogon in the path, so make sure we never use it. 2933 set dummy $ac_cv_prog_CC 2934 shift 2935 if test $# != 0; then 2936 # We chose a different compiler from the bogus one. 2937 # However, it has the same basename, so the bogon will be chosen 2938 # first if we set CC to just the basename; use the full file name. 2939 shift 2940 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2941 fi 2942fi 2943fi 2944fi 2945CC=$ac_cv_prog_CC 2946if test -n "$CC"; then 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2948$as_echo "$CC" >&6; } 2949else 2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2951$as_echo "no" >&6; } 2952fi 2953 2954 2955fi 2956if test -z "$CC"; then 2957 if test -n "$ac_tool_prefix"; then 2958 for ac_prog in cl.exe 2959 do 2960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2961set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2963$as_echo_n "checking for $ac_word... " >&6; } 2964if ${ac_cv_prog_CC+:} false; then : 2965 $as_echo_n "(cached) " >&6 2966else 2967 if test -n "$CC"; then 2968 ac_cv_prog_CC="$CC" # Let the user override the test. 2969else 2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2971for as_dir in $PATH 2972do 2973 IFS=$as_save_IFS 2974 test -z "$as_dir" && as_dir=. 2975 for ac_exec_ext in '' $ac_executable_extensions; do 2976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2977 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2979 break 2 2980 fi 2981done 2982 done 2983IFS=$as_save_IFS 2984 2985fi 2986fi 2987CC=$ac_cv_prog_CC 2988if test -n "$CC"; then 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2990$as_echo "$CC" >&6; } 2991else 2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2993$as_echo "no" >&6; } 2994fi 2995 2996 2997 test -n "$CC" && break 2998 done 2999fi 3000if test -z "$CC"; then 3001 ac_ct_CC=$CC 3002 for ac_prog in cl.exe 3003do 3004 # Extract the first word of "$ac_prog", so it can be a program name with args. 3005set dummy $ac_prog; ac_word=$2 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3007$as_echo_n "checking for $ac_word... " >&6; } 3008if ${ac_cv_prog_ac_ct_CC+:} false; then : 3009 $as_echo_n "(cached) " >&6 3010else 3011 if test -n "$ac_ct_CC"; then 3012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3013else 3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3015for as_dir in $PATH 3016do 3017 IFS=$as_save_IFS 3018 test -z "$as_dir" && as_dir=. 3019 for ac_exec_ext in '' $ac_executable_extensions; do 3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3021 ac_cv_prog_ac_ct_CC="$ac_prog" 3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3023 break 2 3024 fi 3025done 3026 done 3027IFS=$as_save_IFS 3028 3029fi 3030fi 3031ac_ct_CC=$ac_cv_prog_ac_ct_CC 3032if test -n "$ac_ct_CC"; then 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3034$as_echo "$ac_ct_CC" >&6; } 3035else 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3037$as_echo "no" >&6; } 3038fi 3039 3040 3041 test -n "$ac_ct_CC" && break 3042done 3043 3044 if test "x$ac_ct_CC" = x; then 3045 CC="" 3046 else 3047 case $cross_compiling:$ac_tool_warned in 3048yes:) 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3051ac_tool_warned=yes ;; 3052esac 3053 CC=$ac_ct_CC 3054 fi 3055fi 3056 3057fi 3058 3059 3060test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3062as_fn_error $? "no acceptable C compiler found in \$PATH 3063See \`config.log' for more details" "$LINENO" 5; } 3064 3065# Provide some information about the compiler. 3066$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3067set X $ac_compile 3068ac_compiler=$2 3069for ac_option in --version -v -V -qversion; do 3070 { { ac_try="$ac_compiler $ac_option >&5" 3071case "(($ac_try" in 3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3073 *) ac_try_echo=$ac_try;; 3074esac 3075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3076$as_echo "$ac_try_echo"; } >&5 3077 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3078 ac_status=$? 3079 if test -s conftest.err; then 3080 sed '10a\ 3081... rest of stderr output deleted ... 3082 10q' conftest.err >conftest.er1 3083 cat conftest.er1 >&5 3084 fi 3085 rm -f conftest.er1 conftest.err 3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3087 test $ac_status = 0; } 3088done 3089 3090cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3091/* end confdefs.h. */ 3092 3093int 3094main () 3095{ 3096 3097 ; 3098 return 0; 3099} 3100_ACEOF 3101ac_clean_files_save=$ac_clean_files 3102ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3103# Try to create an executable without -o first, disregard a.out. 3104# It will help us diagnose broken compilers, and finding out an intuition 3105# of exeext. 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3107$as_echo_n "checking whether the C compiler works... " >&6; } 3108ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3109 3110# The possible output files: 3111ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3112 3113ac_rmfiles= 3114for ac_file in $ac_files 3115do 3116 case $ac_file in 3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3118 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3119 esac 3120done 3121rm -f $ac_rmfiles 3122 3123if { { ac_try="$ac_link_default" 3124case "(($ac_try" in 3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3126 *) ac_try_echo=$ac_try;; 3127esac 3128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3129$as_echo "$ac_try_echo"; } >&5 3130 (eval "$ac_link_default") 2>&5 3131 ac_status=$? 3132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3133 test $ac_status = 0; }; then : 3134 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3135# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3136# in a Makefile. We should not override ac_cv_exeext if it was cached, 3137# so that the user can short-circuit this test for compilers unknown to 3138# Autoconf. 3139for ac_file in $ac_files '' 3140do 3141 test -f "$ac_file" || continue 3142 case $ac_file in 3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3144 ;; 3145 [ab].out ) 3146 # We found the default executable, but exeext='' is most 3147 # certainly right. 3148 break;; 3149 *.* ) 3150 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3151 then :; else 3152 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3153 fi 3154 # We set ac_cv_exeext here because the later test for it is not 3155 # safe: cross compilers may not add the suffix if given an `-o' 3156 # argument, so we may need to know it at that point already. 3157 # Even if this section looks crufty: it has the advantage of 3158 # actually working. 3159 break;; 3160 * ) 3161 break;; 3162 esac 3163done 3164test "$ac_cv_exeext" = no && ac_cv_exeext= 3165 3166else 3167 ac_file='' 3168fi 3169if test -z "$ac_file"; then : 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3171$as_echo "no" >&6; } 3172$as_echo "$as_me: failed program was:" >&5 3173sed 's/^/| /' conftest.$ac_ext >&5 3174 3175{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3177as_fn_error 77 "C compiler cannot create executables 3178See \`config.log' for more details" "$LINENO" 5; } 3179else 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3181$as_echo "yes" >&6; } 3182fi 3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3184$as_echo_n "checking for C compiler default output file name... " >&6; } 3185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3186$as_echo "$ac_file" >&6; } 3187ac_exeext=$ac_cv_exeext 3188 3189rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3190ac_clean_files=$ac_clean_files_save 3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3192$as_echo_n "checking for suffix of executables... " >&6; } 3193if { { ac_try="$ac_link" 3194case "(($ac_try" in 3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3196 *) ac_try_echo=$ac_try;; 3197esac 3198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3199$as_echo "$ac_try_echo"; } >&5 3200 (eval "$ac_link") 2>&5 3201 ac_status=$? 3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3203 test $ac_status = 0; }; then : 3204 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3205# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3206# work properly (i.e., refer to `conftest.exe'), while it won't with 3207# `rm'. 3208for ac_file in conftest.exe conftest conftest.*; do 3209 test -f "$ac_file" || continue 3210 case $ac_file in 3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3212 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3213 break;; 3214 * ) break;; 3215 esac 3216done 3217else 3218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3220as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3221See \`config.log' for more details" "$LINENO" 5; } 3222fi 3223rm -f conftest conftest$ac_cv_exeext 3224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3225$as_echo "$ac_cv_exeext" >&6; } 3226 3227rm -f conftest.$ac_ext 3228EXEEXT=$ac_cv_exeext 3229ac_exeext=$EXEEXT 3230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3231/* end confdefs.h. */ 3232#include <stdio.h> 3233int 3234main () 3235{ 3236FILE *f = fopen ("conftest.out", "w"); 3237 return ferror (f) || fclose (f) != 0; 3238 3239 ; 3240 return 0; 3241} 3242_ACEOF 3243ac_clean_files="$ac_clean_files conftest.out" 3244# Check that the compiler produces executables we can run. If not, either 3245# the compiler is broken, or we cross compile. 3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3247$as_echo_n "checking whether we are cross compiling... " >&6; } 3248if test "$cross_compiling" != yes; then 3249 { { ac_try="$ac_link" 3250case "(($ac_try" in 3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3252 *) ac_try_echo=$ac_try;; 3253esac 3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3255$as_echo "$ac_try_echo"; } >&5 3256 (eval "$ac_link") 2>&5 3257 ac_status=$? 3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3259 test $ac_status = 0; } 3260 if { ac_try='./conftest$ac_cv_exeext' 3261 { { case "(($ac_try" in 3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3263 *) ac_try_echo=$ac_try;; 3264esac 3265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3266$as_echo "$ac_try_echo"; } >&5 3267 (eval "$ac_try") 2>&5 3268 ac_status=$? 3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3270 test $ac_status = 0; }; }; then 3271 cross_compiling=no 3272 else 3273 if test "$cross_compiling" = maybe; then 3274 cross_compiling=yes 3275 else 3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3278as_fn_error $? "cannot run C compiled programs. 3279If you meant to cross compile, use \`--host'. 3280See \`config.log' for more details" "$LINENO" 5; } 3281 fi 3282 fi 3283fi 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3285$as_echo "$cross_compiling" >&6; } 3286 3287rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3288ac_clean_files=$ac_clean_files_save 3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3290$as_echo_n "checking for suffix of object files... " >&6; } 3291if ${ac_cv_objext+:} false; then : 3292 $as_echo_n "(cached) " >&6 3293else 3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3295/* end confdefs.h. */ 3296 3297int 3298main () 3299{ 3300 3301 ; 3302 return 0; 3303} 3304_ACEOF 3305rm -f conftest.o conftest.obj 3306if { { ac_try="$ac_compile" 3307case "(($ac_try" in 3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3309 *) ac_try_echo=$ac_try;; 3310esac 3311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3312$as_echo "$ac_try_echo"; } >&5 3313 (eval "$ac_compile") 2>&5 3314 ac_status=$? 3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3316 test $ac_status = 0; }; then : 3317 for ac_file in conftest.o conftest.obj conftest.*; do 3318 test -f "$ac_file" || continue; 3319 case $ac_file in 3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3321 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3322 break;; 3323 esac 3324done 3325else 3326 $as_echo "$as_me: failed program was:" >&5 3327sed 's/^/| /' conftest.$ac_ext >&5 3328 3329{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3331as_fn_error $? "cannot compute suffix of object files: cannot compile 3332See \`config.log' for more details" "$LINENO" 5; } 3333fi 3334rm -f conftest.$ac_cv_objext conftest.$ac_ext 3335fi 3336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3337$as_echo "$ac_cv_objext" >&6; } 3338OBJEXT=$ac_cv_objext 3339ac_objext=$OBJEXT 3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3341$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3342if ${ac_cv_c_compiler_gnu+:} false; then : 3343 $as_echo_n "(cached) " >&6 3344else 3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3346/* end confdefs.h. */ 3347 3348int 3349main () 3350{ 3351#ifndef __GNUC__ 3352 choke me 3353#endif 3354 3355 ; 3356 return 0; 3357} 3358_ACEOF 3359if ac_fn_c_try_compile "$LINENO"; then : 3360 ac_compiler_gnu=yes 3361else 3362 ac_compiler_gnu=no 3363fi 3364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3365ac_cv_c_compiler_gnu=$ac_compiler_gnu 3366 3367fi 3368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3369$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3370if test $ac_compiler_gnu = yes; then 3371 GCC=yes 3372else 3373 GCC= 3374fi 3375ac_test_CFLAGS=${CFLAGS+set} 3376ac_save_CFLAGS=$CFLAGS 3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3378$as_echo_n "checking whether $CC accepts -g... " >&6; } 3379if ${ac_cv_prog_cc_g+:} false; then : 3380 $as_echo_n "(cached) " >&6 3381else 3382 ac_save_c_werror_flag=$ac_c_werror_flag 3383 ac_c_werror_flag=yes 3384 ac_cv_prog_cc_g=no 3385 CFLAGS="-g" 3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3387/* end confdefs.h. */ 3388 3389int 3390main () 3391{ 3392 3393 ; 3394 return 0; 3395} 3396_ACEOF 3397if ac_fn_c_try_compile "$LINENO"; then : 3398 ac_cv_prog_cc_g=yes 3399else 3400 CFLAGS="" 3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3402/* end confdefs.h. */ 3403 3404int 3405main () 3406{ 3407 3408 ; 3409 return 0; 3410} 3411_ACEOF 3412if ac_fn_c_try_compile "$LINENO"; then : 3413 3414else 3415 ac_c_werror_flag=$ac_save_c_werror_flag 3416 CFLAGS="-g" 3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3418/* end confdefs.h. */ 3419 3420int 3421main () 3422{ 3423 3424 ; 3425 return 0; 3426} 3427_ACEOF 3428if ac_fn_c_try_compile "$LINENO"; then : 3429 ac_cv_prog_cc_g=yes 3430fi 3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3432fi 3433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3434fi 3435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3436 ac_c_werror_flag=$ac_save_c_werror_flag 3437fi 3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3439$as_echo "$ac_cv_prog_cc_g" >&6; } 3440if test "$ac_test_CFLAGS" = set; then 3441 CFLAGS=$ac_save_CFLAGS 3442elif test $ac_cv_prog_cc_g = yes; then 3443 if test "$GCC" = yes; then 3444 CFLAGS="-g -O2" 3445 else 3446 CFLAGS="-g" 3447 fi 3448else 3449 if test "$GCC" = yes; then 3450 CFLAGS="-O2" 3451 else 3452 CFLAGS= 3453 fi 3454fi 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3456$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3457if ${ac_cv_prog_cc_c89+:} false; then : 3458 $as_echo_n "(cached) " >&6 3459else 3460 ac_cv_prog_cc_c89=no 3461ac_save_CC=$CC 3462cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3463/* end confdefs.h. */ 3464#include <stdarg.h> 3465#include <stdio.h> 3466struct stat; 3467/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3468struct buf { int x; }; 3469FILE * (*rcsopen) (struct buf *, struct stat *, int); 3470static char *e (p, i) 3471 char **p; 3472 int i; 3473{ 3474 return p[i]; 3475} 3476static char *f (char * (*g) (char **, int), char **p, ...) 3477{ 3478 char *s; 3479 va_list v; 3480 va_start (v,p); 3481 s = g (p, va_arg (v,int)); 3482 va_end (v); 3483 return s; 3484} 3485 3486/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3487 function prototypes and stuff, but not '\xHH' hex character constants. 3488 These don't provoke an error unfortunately, instead are silently treated 3489 as 'x'. The following induces an error, until -std is added to get 3490 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3491 array size at least. It's necessary to write '\x00'==0 to get something 3492 that's true only with -std. */ 3493int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3494 3495/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3496 inside strings and character constants. */ 3497#define FOO(x) 'x' 3498int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3499 3500int test (int i, double x); 3501struct s1 {int (*f) (int a);}; 3502struct s2 {int (*f) (double a);}; 3503int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3504int argc; 3505char **argv; 3506int 3507main () 3508{ 3509return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3510 ; 3511 return 0; 3512} 3513_ACEOF 3514for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3515 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3516do 3517 CC="$ac_save_CC $ac_arg" 3518 if ac_fn_c_try_compile "$LINENO"; then : 3519 ac_cv_prog_cc_c89=$ac_arg 3520fi 3521rm -f core conftest.err conftest.$ac_objext 3522 test "x$ac_cv_prog_cc_c89" != "xno" && break 3523done 3524rm -f conftest.$ac_ext 3525CC=$ac_save_CC 3526 3527fi 3528# AC_CACHE_VAL 3529case "x$ac_cv_prog_cc_c89" in 3530 x) 3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3532$as_echo "none needed" >&6; } ;; 3533 xno) 3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3535$as_echo "unsupported" >&6; } ;; 3536 *) 3537 CC="$CC $ac_cv_prog_cc_c89" 3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3539$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3540esac 3541if test "x$ac_cv_prog_cc_c89" != xno; then : 3542 3543fi 3544 3545ac_ext=c 3546ac_cpp='$CPP $CPPFLAGS' 3547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3549ac_compiler_gnu=$ac_cv_c_compiler_gnu 3550 3551 3552ac_ext=c 3553ac_cpp='$CPP $CPPFLAGS' 3554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3556ac_compiler_gnu=$ac_cv_c_compiler_gnu 3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3558$as_echo_n "checking how to run the C preprocessor... " >&6; } 3559# On Suns, sometimes $CPP names a directory. 3560if test -n "$CPP" && test -d "$CPP"; then 3561 CPP= 3562fi 3563if test -z "$CPP"; then 3564 if ${ac_cv_prog_CPP+:} false; then : 3565 $as_echo_n "(cached) " >&6 3566else 3567 # Double quotes because CPP needs to be expanded 3568 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3569 do 3570 ac_preproc_ok=false 3571for ac_c_preproc_warn_flag in '' yes 3572do 3573 # Use a header file that comes with gcc, so configuring glibc 3574 # with a fresh cross-compiler works. 3575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3576 # <limits.h> exists even on freestanding compilers. 3577 # On the NeXT, cc -E runs the code through the compiler's parser, 3578 # not just through cpp. "Syntax error" is here to catch this case. 3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3580/* end confdefs.h. */ 3581#ifdef __STDC__ 3582# include <limits.h> 3583#else 3584# include <assert.h> 3585#endif 3586 Syntax error 3587_ACEOF 3588if ac_fn_c_try_cpp "$LINENO"; then : 3589 3590else 3591 # Broken: fails on valid input. 3592continue 3593fi 3594rm -f conftest.err conftest.i conftest.$ac_ext 3595 3596 # OK, works on sane cases. Now check whether nonexistent headers 3597 # can be detected and how. 3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3599/* end confdefs.h. */ 3600#include <ac_nonexistent.h> 3601_ACEOF 3602if ac_fn_c_try_cpp "$LINENO"; then : 3603 # Broken: success on invalid input. 3604continue 3605else 3606 # Passes both tests. 3607ac_preproc_ok=: 3608break 3609fi 3610rm -f conftest.err conftest.i conftest.$ac_ext 3611 3612done 3613# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3614rm -f conftest.i conftest.err conftest.$ac_ext 3615if $ac_preproc_ok; then : 3616 break 3617fi 3618 3619 done 3620 ac_cv_prog_CPP=$CPP 3621 3622fi 3623 CPP=$ac_cv_prog_CPP 3624else 3625 ac_cv_prog_CPP=$CPP 3626fi 3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3628$as_echo "$CPP" >&6; } 3629ac_preproc_ok=false 3630for ac_c_preproc_warn_flag in '' yes 3631do 3632 # Use a header file that comes with gcc, so configuring glibc 3633 # with a fresh cross-compiler works. 3634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3635 # <limits.h> exists even on freestanding compilers. 3636 # On the NeXT, cc -E runs the code through the compiler's parser, 3637 # not just through cpp. "Syntax error" is here to catch this case. 3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3639/* end confdefs.h. */ 3640#ifdef __STDC__ 3641# include <limits.h> 3642#else 3643# include <assert.h> 3644#endif 3645 Syntax error 3646_ACEOF 3647if ac_fn_c_try_cpp "$LINENO"; then : 3648 3649else 3650 # Broken: fails on valid input. 3651continue 3652fi 3653rm -f conftest.err conftest.i conftest.$ac_ext 3654 3655 # OK, works on sane cases. Now check whether nonexistent headers 3656 # can be detected and how. 3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3658/* end confdefs.h. */ 3659#include <ac_nonexistent.h> 3660_ACEOF 3661if ac_fn_c_try_cpp "$LINENO"; then : 3662 # Broken: success on invalid input. 3663continue 3664else 3665 # Passes both tests. 3666ac_preproc_ok=: 3667break 3668fi 3669rm -f conftest.err conftest.i conftest.$ac_ext 3670 3671done 3672# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3673rm -f conftest.i conftest.err conftest.$ac_ext 3674if $ac_preproc_ok; then : 3675 3676else 3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3679as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3680See \`config.log' for more details" "$LINENO" 5; } 3681fi 3682 3683ac_ext=c 3684ac_cpp='$CPP $CPPFLAGS' 3685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3687ac_compiler_gnu=$ac_cv_c_compiler_gnu 3688 3689 3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3691$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3692if ${ac_cv_path_GREP+:} false; then : 3693 $as_echo_n "(cached) " >&6 3694else 3695 if test -z "$GREP"; then 3696 ac_path_GREP_found=false 3697 # Loop through the user's path and test for each of PROGNAME-LIST 3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3699for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3700do 3701 IFS=$as_save_IFS 3702 test -z "$as_dir" && as_dir=. 3703 for ac_prog in grep ggrep; do 3704 for ac_exec_ext in '' $ac_executable_extensions; do 3705 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3706 as_fn_executable_p "$ac_path_GREP" || continue 3707# Check for GNU ac_path_GREP and select it if it is found. 3708 # Check for GNU $ac_path_GREP 3709case `"$ac_path_GREP" --version 2>&1` in 3710*GNU*) 3711 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3712*) 3713 ac_count=0 3714 $as_echo_n 0123456789 >"conftest.in" 3715 while : 3716 do 3717 cat "conftest.in" "conftest.in" >"conftest.tmp" 3718 mv "conftest.tmp" "conftest.in" 3719 cp "conftest.in" "conftest.nl" 3720 $as_echo 'GREP' >> "conftest.nl" 3721 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3723 as_fn_arith $ac_count + 1 && ac_count=$as_val 3724 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3725 # Best one so far, save it but keep looking for a better one 3726 ac_cv_path_GREP="$ac_path_GREP" 3727 ac_path_GREP_max=$ac_count 3728 fi 3729 # 10*(2^10) chars as input seems more than enough 3730 test $ac_count -gt 10 && break 3731 done 3732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3733esac 3734 3735 $ac_path_GREP_found && break 3 3736 done 3737 done 3738 done 3739IFS=$as_save_IFS 3740 if test -z "$ac_cv_path_GREP"; then 3741 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3742 fi 3743else 3744 ac_cv_path_GREP=$GREP 3745fi 3746 3747fi 3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3749$as_echo "$ac_cv_path_GREP" >&6; } 3750 GREP="$ac_cv_path_GREP" 3751 3752 3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3754$as_echo_n "checking for egrep... " >&6; } 3755if ${ac_cv_path_EGREP+:} false; then : 3756 $as_echo_n "(cached) " >&6 3757else 3758 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3759 then ac_cv_path_EGREP="$GREP -E" 3760 else 3761 if test -z "$EGREP"; then 3762 ac_path_EGREP_found=false 3763 # Loop through the user's path and test for each of PROGNAME-LIST 3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3765for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3766do 3767 IFS=$as_save_IFS 3768 test -z "$as_dir" && as_dir=. 3769 for ac_prog in egrep; do 3770 for ac_exec_ext in '' $ac_executable_extensions; do 3771 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3772 as_fn_executable_p "$ac_path_EGREP" || continue 3773# Check for GNU ac_path_EGREP and select it if it is found. 3774 # Check for GNU $ac_path_EGREP 3775case `"$ac_path_EGREP" --version 2>&1` in 3776*GNU*) 3777 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3778*) 3779 ac_count=0 3780 $as_echo_n 0123456789 >"conftest.in" 3781 while : 3782 do 3783 cat "conftest.in" "conftest.in" >"conftest.tmp" 3784 mv "conftest.tmp" "conftest.in" 3785 cp "conftest.in" "conftest.nl" 3786 $as_echo 'EGREP' >> "conftest.nl" 3787 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3789 as_fn_arith $ac_count + 1 && ac_count=$as_val 3790 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3791 # Best one so far, save it but keep looking for a better one 3792 ac_cv_path_EGREP="$ac_path_EGREP" 3793 ac_path_EGREP_max=$ac_count 3794 fi 3795 # 10*(2^10) chars as input seems more than enough 3796 test $ac_count -gt 10 && break 3797 done 3798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3799esac 3800 3801 $ac_path_EGREP_found && break 3 3802 done 3803 done 3804 done 3805IFS=$as_save_IFS 3806 if test -z "$ac_cv_path_EGREP"; then 3807 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3808 fi 3809else 3810 ac_cv_path_EGREP=$EGREP 3811fi 3812 3813 fi 3814fi 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3816$as_echo "$ac_cv_path_EGREP" >&6; } 3817 EGREP="$ac_cv_path_EGREP" 3818 3819 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3821$as_echo_n "checking for ANSI C header files... " >&6; } 3822if ${ac_cv_header_stdc+:} false; then : 3823 $as_echo_n "(cached) " >&6 3824else 3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3826/* end confdefs.h. */ 3827#include <stdlib.h> 3828#include <stdarg.h> 3829#include <string.h> 3830#include <float.h> 3831 3832int 3833main () 3834{ 3835 3836 ; 3837 return 0; 3838} 3839_ACEOF 3840if ac_fn_c_try_compile "$LINENO"; then : 3841 ac_cv_header_stdc=yes 3842else 3843 ac_cv_header_stdc=no 3844fi 3845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3846 3847if test $ac_cv_header_stdc = yes; then 3848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3850/* end confdefs.h. */ 3851#include <string.h> 3852 3853_ACEOF 3854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3855 $EGREP "memchr" >/dev/null 2>&1; then : 3856 3857else 3858 ac_cv_header_stdc=no 3859fi 3860rm -f conftest* 3861 3862fi 3863 3864if test $ac_cv_header_stdc = yes; then 3865 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3867/* end confdefs.h. */ 3868#include <stdlib.h> 3869 3870_ACEOF 3871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3872 $EGREP "free" >/dev/null 2>&1; then : 3873 3874else 3875 ac_cv_header_stdc=no 3876fi 3877rm -f conftest* 3878 3879fi 3880 3881if test $ac_cv_header_stdc = yes; then 3882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3883 if test "$cross_compiling" = yes; then : 3884 : 3885else 3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3887/* end confdefs.h. */ 3888#include <ctype.h> 3889#include <stdlib.h> 3890#if ((' ' & 0x0FF) == 0x020) 3891# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3892# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3893#else 3894# define ISLOWER(c) \ 3895 (('a' <= (c) && (c) <= 'i') \ 3896 || ('j' <= (c) && (c) <= 'r') \ 3897 || ('s' <= (c) && (c) <= 'z')) 3898# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3899#endif 3900 3901#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3902int 3903main () 3904{ 3905 int i; 3906 for (i = 0; i < 256; i++) 3907 if (XOR (islower (i), ISLOWER (i)) 3908 || toupper (i) != TOUPPER (i)) 3909 return 2; 3910 return 0; 3911} 3912_ACEOF 3913if ac_fn_c_try_run "$LINENO"; then : 3914 3915else 3916 ac_cv_header_stdc=no 3917fi 3918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3919 conftest.$ac_objext conftest.beam conftest.$ac_ext 3920fi 3921 3922fi 3923fi 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3925$as_echo "$ac_cv_header_stdc" >&6; } 3926if test $ac_cv_header_stdc = yes; then 3927 3928$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3929 3930fi 3931 3932# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3933for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3934 inttypes.h stdint.h unistd.h 3935do : 3936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3937ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3938" 3939if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3940 cat >>confdefs.h <<_ACEOF 3941#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3942_ACEOF 3943 3944fi 3945 3946done 3947 3948 3949 3950 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3951if test "x$ac_cv_header_minix_config_h" = xyes; then : 3952 MINIX=yes 3953else 3954 MINIX= 3955fi 3956 3957 3958 if test "$MINIX" = yes; then 3959 3960$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3961 3962 3963$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3964 3965 3966$as_echo "#define _MINIX 1" >>confdefs.h 3967 3968 fi 3969 3970 3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3972$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3973if ${ac_cv_safe_to_define___extensions__+:} false; then : 3974 $as_echo_n "(cached) " >&6 3975else 3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3977/* end confdefs.h. */ 3978 3979# define __EXTENSIONS__ 1 3980 $ac_includes_default 3981int 3982main () 3983{ 3984 3985 ; 3986 return 0; 3987} 3988_ACEOF 3989if ac_fn_c_try_compile "$LINENO"; then : 3990 ac_cv_safe_to_define___extensions__=yes 3991else 3992 ac_cv_safe_to_define___extensions__=no 3993fi 3994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3995fi 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3997$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3998 test $ac_cv_safe_to_define___extensions__ = yes && 3999 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4000 4001 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4002 4003 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4004 4005 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4006 4007 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4008 4009 4010 4011if test "$ac_cv_header_minix_config_h" = "yes"; then 4012 4013$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 4014 4015fi 4016 4017case "$prefix" in 4018 NONE) 4019 prefix="/usr/local" 4020 ;; 4021esac 4022 4023# are we on MinGW? 4024if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes" 4025else 4026 if echo $target | grep mingw32 >/dev/null; then on_mingw="yes" 4027 else on_mingw="no"; fi 4028fi 4029 4030# 4031# Determine configuration file 4032# the eval is to evaluate shell expansion twice 4033if test $on_mingw = "no"; then 4034 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"` 4035else 4036 ub_conf_file="C:\\Program Files\\Unbound\\service.conf" 4037fi 4038 4039# Check whether --with-conf_file was given. 4040if test "${with_conf_file+set}" = set; then : 4041 withval=$with_conf_file; ub_conf_file="$withval" 4042fi 4043 4044 4045hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`" 4046 4047 4048cat >>confdefs.h <<_ACEOF 4049#define CONFIGFILE "$hdr_config" 4050_ACEOF 4051 4052ub_conf_dir=`$as_dirname -- "$ub_conf_file" || 4053$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4054 X"$ub_conf_file" : 'X\(//\)[^/]' \| \ 4055 X"$ub_conf_file" : 'X\(//\)$' \| \ 4056 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null || 4057$as_echo X"$ub_conf_file" | 4058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4059 s//\1/ 4060 q 4061 } 4062 /^X\(\/\/\)[^/].*/{ 4063 s//\1/ 4064 q 4065 } 4066 /^X\(\/\/\)$/{ 4067 s//\1/ 4068 q 4069 } 4070 /^X\(\/\).*/{ 4071 s//\1/ 4072 q 4073 } 4074 s/.*/./; q'` 4075 4076 4077# Determine run, chroot directory and pidfile locations 4078 4079# Check whether --with-run-dir was given. 4080if test "${with_run_dir+set}" = set; then : 4081 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval" 4082else 4083 if test $on_mingw = no; then 4084 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"` 4085else 4086 UNBOUND_RUN_DIR="" 4087fi 4088 4089fi 4090 4091 4092hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4093 4094 4095cat >>confdefs.h <<_ACEOF 4096#define RUN_DIR "$hdr_run" 4097_ACEOF 4098 4099 4100 4101# Check whether --with-chroot-dir was given. 4102if test "${with_chroot_dir+set}" = set; then : 4103 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval" 4104else 4105 if test $on_mingw = no; then 4106 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR" 4107else 4108 UNBOUND_CHROOT_DIR="" 4109fi 4110 4111fi 4112 4113 4114hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4115 4116 4117cat >>confdefs.h <<_ACEOF 4118#define CHROOT_DIR "$hdr_chroot" 4119_ACEOF 4120 4121 4122 4123# Check whether --with-share-dir was given. 4124if test "${with_share_dir+set}" = set; then : 4125 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval" 4126else 4127 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR" 4128fi 4129 4130 4131 4132cat >>confdefs.h <<_ACEOF 4133#define SHARE_DIR "$UNBOUND_SHARE_DIR" 4134_ACEOF 4135 4136 4137 4138# Check whether --with-pidfile was given. 4139if test "${with_pidfile+set}" = set; then : 4140 withval=$with_pidfile; UNBOUND_PIDFILE="$withval" 4141else 4142 if test $on_mingw = no; then 4143 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid" 4144else 4145 UNBOUND_PIDFILE="" 4146fi 4147 4148fi 4149 4150 4151hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4152 4153 4154cat >>confdefs.h <<_ACEOF 4155#define PIDFILE "$hdr_pid" 4156_ACEOF 4157 4158 4159 4160# Check whether --with-rootkey-file was given. 4161if test "${with_rootkey_file+set}" = set; then : 4162 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval" 4163else 4164 if test $on_mingw = no; then 4165 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key" 4166else 4167 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key" 4168fi 4169 4170fi 4171 4172 4173hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4174 4175 4176cat >>confdefs.h <<_ACEOF 4177#define ROOT_ANCHOR_FILE "$hdr_rkey" 4178_ACEOF 4179 4180 4181 4182# Check whether --with-rootcert-file was given. 4183if test "${with_rootcert_file+set}" = set; then : 4184 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval" 4185else 4186 if test $on_mingw = no; then 4187 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem" 4188else 4189 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem" 4190fi 4191 4192fi 4193 4194 4195hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4196 4197 4198cat >>confdefs.h <<_ACEOF 4199#define ROOT_CERT_FILE "$hdr_rpem" 4200_ACEOF 4201 4202 4203 4204# Check whether --with-username was given. 4205if test "${with_username+set}" = set; then : 4206 withval=$with_username; UNBOUND_USERNAME="$withval" 4207else 4208 UNBOUND_USERNAME="unbound" 4209fi 4210 4211 4212 4213cat >>confdefs.h <<_ACEOF 4214#define UB_USERNAME "$UNBOUND_USERNAME" 4215_ACEOF 4216 4217 4218 4219$as_echo "#define WINVER 0x0502" >>confdefs.h 4220 4221wnvs=`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/' ` 4222 4223 4224cat >>confdefs.h <<_ACEOF 4225#define RSRC_PACKAGE_VERSION $wnvs 4226_ACEOF 4227 4228 4229# Checks for typedefs, structures, and compiler characteristics. 4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4231$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4232if ${ac_cv_c_const+:} false; then : 4233 $as_echo_n "(cached) " >&6 4234else 4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4236/* end confdefs.h. */ 4237 4238int 4239main () 4240{ 4241 4242#ifndef __cplusplus 4243 /* Ultrix mips cc rejects this sort of thing. */ 4244 typedef int charset[2]; 4245 const charset cs = { 0, 0 }; 4246 /* SunOS 4.1.1 cc rejects this. */ 4247 char const *const *pcpcc; 4248 char **ppc; 4249 /* NEC SVR4.0.2 mips cc rejects this. */ 4250 struct point {int x, y;}; 4251 static struct point const zero = {0,0}; 4252 /* AIX XL C 1.02.0.0 rejects this. 4253 It does not let you subtract one const X* pointer from another in 4254 an arm of an if-expression whose if-part is not a constant 4255 expression */ 4256 const char *g = "string"; 4257 pcpcc = &g + (g ? g-g : 0); 4258 /* HPUX 7.0 cc rejects these. */ 4259 ++pcpcc; 4260 ppc = (char**) pcpcc; 4261 pcpcc = (char const *const *) ppc; 4262 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4263 char tx; 4264 char *t = &tx; 4265 char const *s = 0 ? (char *) 0 : (char const *) 0; 4266 4267 *t++ = 0; 4268 if (s) return 0; 4269 } 4270 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4271 int x[] = {25, 17}; 4272 const int *foo = &x[0]; 4273 ++foo; 4274 } 4275 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4276 typedef const int *iptr; 4277 iptr p = 0; 4278 ++p; 4279 } 4280 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4281 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4282 struct s { int j; const int *ap[3]; } bx; 4283 struct s *b = &bx; b->j = 5; 4284 } 4285 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4286 const int foo = 10; 4287 if (!foo) return 0; 4288 } 4289 return !cs[0] && !zero.x; 4290#endif 4291 4292 ; 4293 return 0; 4294} 4295_ACEOF 4296if ac_fn_c_try_compile "$LINENO"; then : 4297 ac_cv_c_const=yes 4298else 4299 ac_cv_c_const=no 4300fi 4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4302fi 4303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4304$as_echo "$ac_cv_c_const" >&6; } 4305if test $ac_cv_c_const = no; then 4306 4307$as_echo "#define const /**/" >>confdefs.h 4308 4309fi 4310 4311ac_ext=c 4312ac_cpp='$CPP $CPPFLAGS' 4313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4315ac_compiler_gnu=$ac_cv_c_compiler_gnu 4316 4317# allow user to override the -g -O2 flags. 4318if test "x$CFLAGS" = "x" ; then 4319 4320 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4322$as_echo_n "checking whether $CC supports -g... " >&6; } 4323cache=`echo g | sed 'y%.=/+-%___p_%'` 4324if eval \${cv_prog_cc_flag_$cache+:} false; then : 4325 $as_echo_n "(cached) " >&6 4326else 4327 4328echo 'void f(void){}' >conftest.c 4329if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4330eval "cv_prog_cc_flag_$cache=yes" 4331else 4332eval "cv_prog_cc_flag_$cache=no" 4333fi 4334rm -f conftest conftest.o conftest.c 4335 4336fi 4337 4338if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4340$as_echo "yes" >&6; } 4341: 4342CFLAGS="$CFLAGS -g" 4343else 4344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4345$as_echo "no" >&6; } 4346: 4347 4348fi 4349 4350 4351 4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4353$as_echo_n "checking whether $CC supports -O2... " >&6; } 4354cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4355if eval \${cv_prog_cc_flag_$cache+:} false; then : 4356 $as_echo_n "(cached) " >&6 4357else 4358 4359echo 'void f(void){}' >conftest.c 4360if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4361eval "cv_prog_cc_flag_$cache=yes" 4362else 4363eval "cv_prog_cc_flag_$cache=no" 4364fi 4365rm -f conftest conftest.o conftest.c 4366 4367fi 4368 4369if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4371$as_echo "yes" >&6; } 4372: 4373CFLAGS="$CFLAGS -O2" 4374else 4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4376$as_echo "no" >&6; } 4377: 4378 4379fi 4380 4381fi 4382ac_ext=c 4383ac_cpp='$CPP $CPPFLAGS' 4384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4386ac_compiler_gnu=$ac_cv_c_compiler_gnu 4387if test -n "$ac_tool_prefix"; then 4388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4389set dummy ${ac_tool_prefix}gcc; ac_word=$2 4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4391$as_echo_n "checking for $ac_word... " >&6; } 4392if ${ac_cv_prog_CC+:} false; then : 4393 $as_echo_n "(cached) " >&6 4394else 4395 if test -n "$CC"; then 4396 ac_cv_prog_CC="$CC" # Let the user override the test. 4397else 4398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4399for as_dir in $PATH 4400do 4401 IFS=$as_save_IFS 4402 test -z "$as_dir" && as_dir=. 4403 for ac_exec_ext in '' $ac_executable_extensions; do 4404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4405 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4407 break 2 4408 fi 4409done 4410 done 4411IFS=$as_save_IFS 4412 4413fi 4414fi 4415CC=$ac_cv_prog_CC 4416if test -n "$CC"; then 4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4418$as_echo "$CC" >&6; } 4419else 4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4421$as_echo "no" >&6; } 4422fi 4423 4424 4425fi 4426if test -z "$ac_cv_prog_CC"; then 4427 ac_ct_CC=$CC 4428 # Extract the first word of "gcc", so it can be a program name with args. 4429set dummy gcc; ac_word=$2 4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4431$as_echo_n "checking for $ac_word... " >&6; } 4432if ${ac_cv_prog_ac_ct_CC+:} false; then : 4433 $as_echo_n "(cached) " >&6 4434else 4435 if test -n "$ac_ct_CC"; then 4436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4437else 4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4439for as_dir in $PATH 4440do 4441 IFS=$as_save_IFS 4442 test -z "$as_dir" && as_dir=. 4443 for ac_exec_ext in '' $ac_executable_extensions; do 4444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4445 ac_cv_prog_ac_ct_CC="gcc" 4446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4447 break 2 4448 fi 4449done 4450 done 4451IFS=$as_save_IFS 4452 4453fi 4454fi 4455ac_ct_CC=$ac_cv_prog_ac_ct_CC 4456if test -n "$ac_ct_CC"; then 4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4458$as_echo "$ac_ct_CC" >&6; } 4459else 4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4461$as_echo "no" >&6; } 4462fi 4463 4464 if test "x$ac_ct_CC" = x; then 4465 CC="" 4466 else 4467 case $cross_compiling:$ac_tool_warned in 4468yes:) 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4471ac_tool_warned=yes ;; 4472esac 4473 CC=$ac_ct_CC 4474 fi 4475else 4476 CC="$ac_cv_prog_CC" 4477fi 4478 4479if test -z "$CC"; then 4480 if test -n "$ac_tool_prefix"; then 4481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4482set dummy ${ac_tool_prefix}cc; ac_word=$2 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4484$as_echo_n "checking for $ac_word... " >&6; } 4485if ${ac_cv_prog_CC+:} false; then : 4486 $as_echo_n "(cached) " >&6 4487else 4488 if test -n "$CC"; then 4489 ac_cv_prog_CC="$CC" # Let the user override the test. 4490else 4491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4492for as_dir in $PATH 4493do 4494 IFS=$as_save_IFS 4495 test -z "$as_dir" && as_dir=. 4496 for ac_exec_ext in '' $ac_executable_extensions; do 4497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4498 ac_cv_prog_CC="${ac_tool_prefix}cc" 4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4500 break 2 4501 fi 4502done 4503 done 4504IFS=$as_save_IFS 4505 4506fi 4507fi 4508CC=$ac_cv_prog_CC 4509if test -n "$CC"; then 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4511$as_echo "$CC" >&6; } 4512else 4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4514$as_echo "no" >&6; } 4515fi 4516 4517 4518 fi 4519fi 4520if test -z "$CC"; then 4521 # Extract the first word of "cc", so it can be a program name with args. 4522set dummy cc; ac_word=$2 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4524$as_echo_n "checking for $ac_word... " >&6; } 4525if ${ac_cv_prog_CC+:} false; then : 4526 $as_echo_n "(cached) " >&6 4527else 4528 if test -n "$CC"; then 4529 ac_cv_prog_CC="$CC" # Let the user override the test. 4530else 4531 ac_prog_rejected=no 4532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4533for as_dir in $PATH 4534do 4535 IFS=$as_save_IFS 4536 test -z "$as_dir" && as_dir=. 4537 for ac_exec_ext in '' $ac_executable_extensions; do 4538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4539 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4540 ac_prog_rejected=yes 4541 continue 4542 fi 4543 ac_cv_prog_CC="cc" 4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4545 break 2 4546 fi 4547done 4548 done 4549IFS=$as_save_IFS 4550 4551if test $ac_prog_rejected = yes; then 4552 # We found a bogon in the path, so make sure we never use it. 4553 set dummy $ac_cv_prog_CC 4554 shift 4555 if test $# != 0; then 4556 # We chose a different compiler from the bogus one. 4557 # However, it has the same basename, so the bogon will be chosen 4558 # first if we set CC to just the basename; use the full file name. 4559 shift 4560 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4561 fi 4562fi 4563fi 4564fi 4565CC=$ac_cv_prog_CC 4566if test -n "$CC"; then 4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4568$as_echo "$CC" >&6; } 4569else 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4571$as_echo "no" >&6; } 4572fi 4573 4574 4575fi 4576if test -z "$CC"; then 4577 if test -n "$ac_tool_prefix"; then 4578 for ac_prog in cl.exe 4579 do 4580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4581set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4583$as_echo_n "checking for $ac_word... " >&6; } 4584if ${ac_cv_prog_CC+:} false; then : 4585 $as_echo_n "(cached) " >&6 4586else 4587 if test -n "$CC"; then 4588 ac_cv_prog_CC="$CC" # Let the user override the test. 4589else 4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4591for as_dir in $PATH 4592do 4593 IFS=$as_save_IFS 4594 test -z "$as_dir" && as_dir=. 4595 for ac_exec_ext in '' $ac_executable_extensions; do 4596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4597 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4599 break 2 4600 fi 4601done 4602 done 4603IFS=$as_save_IFS 4604 4605fi 4606fi 4607CC=$ac_cv_prog_CC 4608if test -n "$CC"; then 4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4610$as_echo "$CC" >&6; } 4611else 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4613$as_echo "no" >&6; } 4614fi 4615 4616 4617 test -n "$CC" && break 4618 done 4619fi 4620if test -z "$CC"; then 4621 ac_ct_CC=$CC 4622 for ac_prog in cl.exe 4623do 4624 # Extract the first word of "$ac_prog", so it can be a program name with args. 4625set dummy $ac_prog; ac_word=$2 4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4627$as_echo_n "checking for $ac_word... " >&6; } 4628if ${ac_cv_prog_ac_ct_CC+:} false; then : 4629 $as_echo_n "(cached) " >&6 4630else 4631 if test -n "$ac_ct_CC"; then 4632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4633else 4634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4635for as_dir in $PATH 4636do 4637 IFS=$as_save_IFS 4638 test -z "$as_dir" && as_dir=. 4639 for ac_exec_ext in '' $ac_executable_extensions; do 4640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4641 ac_cv_prog_ac_ct_CC="$ac_prog" 4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4643 break 2 4644 fi 4645done 4646 done 4647IFS=$as_save_IFS 4648 4649fi 4650fi 4651ac_ct_CC=$ac_cv_prog_ac_ct_CC 4652if test -n "$ac_ct_CC"; then 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4654$as_echo "$ac_ct_CC" >&6; } 4655else 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4657$as_echo "no" >&6; } 4658fi 4659 4660 4661 test -n "$ac_ct_CC" && break 4662done 4663 4664 if test "x$ac_ct_CC" = x; then 4665 CC="" 4666 else 4667 case $cross_compiling:$ac_tool_warned in 4668yes:) 4669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4671ac_tool_warned=yes ;; 4672esac 4673 CC=$ac_ct_CC 4674 fi 4675fi 4676 4677fi 4678 4679 4680test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4682as_fn_error $? "no acceptable C compiler found in \$PATH 4683See \`config.log' for more details" "$LINENO" 5; } 4684 4685# Provide some information about the compiler. 4686$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4687set X $ac_compile 4688ac_compiler=$2 4689for ac_option in --version -v -V -qversion; do 4690 { { ac_try="$ac_compiler $ac_option >&5" 4691case "(($ac_try" in 4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4693 *) ac_try_echo=$ac_try;; 4694esac 4695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4696$as_echo "$ac_try_echo"; } >&5 4697 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4698 ac_status=$? 4699 if test -s conftest.err; then 4700 sed '10a\ 4701... rest of stderr output deleted ... 4702 10q' conftest.err >conftest.er1 4703 cat conftest.er1 >&5 4704 fi 4705 rm -f conftest.er1 conftest.err 4706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4707 test $ac_status = 0; } 4708done 4709 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4711$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4712if ${ac_cv_c_compiler_gnu+:} false; then : 4713 $as_echo_n "(cached) " >&6 4714else 4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4716/* end confdefs.h. */ 4717 4718int 4719main () 4720{ 4721#ifndef __GNUC__ 4722 choke me 4723#endif 4724 4725 ; 4726 return 0; 4727} 4728_ACEOF 4729if ac_fn_c_try_compile "$LINENO"; then : 4730 ac_compiler_gnu=yes 4731else 4732 ac_compiler_gnu=no 4733fi 4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4735ac_cv_c_compiler_gnu=$ac_compiler_gnu 4736 4737fi 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4739$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4740if test $ac_compiler_gnu = yes; then 4741 GCC=yes 4742else 4743 GCC= 4744fi 4745ac_test_CFLAGS=${CFLAGS+set} 4746ac_save_CFLAGS=$CFLAGS 4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4748$as_echo_n "checking whether $CC accepts -g... " >&6; } 4749if ${ac_cv_prog_cc_g+:} false; then : 4750 $as_echo_n "(cached) " >&6 4751else 4752 ac_save_c_werror_flag=$ac_c_werror_flag 4753 ac_c_werror_flag=yes 4754 ac_cv_prog_cc_g=no 4755 CFLAGS="-g" 4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4757/* end confdefs.h. */ 4758 4759int 4760main () 4761{ 4762 4763 ; 4764 return 0; 4765} 4766_ACEOF 4767if ac_fn_c_try_compile "$LINENO"; then : 4768 ac_cv_prog_cc_g=yes 4769else 4770 CFLAGS="" 4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4772/* end confdefs.h. */ 4773 4774int 4775main () 4776{ 4777 4778 ; 4779 return 0; 4780} 4781_ACEOF 4782if ac_fn_c_try_compile "$LINENO"; then : 4783 4784else 4785 ac_c_werror_flag=$ac_save_c_werror_flag 4786 CFLAGS="-g" 4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4788/* end confdefs.h. */ 4789 4790int 4791main () 4792{ 4793 4794 ; 4795 return 0; 4796} 4797_ACEOF 4798if ac_fn_c_try_compile "$LINENO"; then : 4799 ac_cv_prog_cc_g=yes 4800fi 4801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4802fi 4803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4804fi 4805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4806 ac_c_werror_flag=$ac_save_c_werror_flag 4807fi 4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4809$as_echo "$ac_cv_prog_cc_g" >&6; } 4810if test "$ac_test_CFLAGS" = set; then 4811 CFLAGS=$ac_save_CFLAGS 4812elif test $ac_cv_prog_cc_g = yes; then 4813 if test "$GCC" = yes; then 4814 CFLAGS="-g -O2" 4815 else 4816 CFLAGS="-g" 4817 fi 4818else 4819 if test "$GCC" = yes; then 4820 CFLAGS="-O2" 4821 else 4822 CFLAGS= 4823 fi 4824fi 4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4826$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4827if ${ac_cv_prog_cc_c89+:} false; then : 4828 $as_echo_n "(cached) " >&6 4829else 4830 ac_cv_prog_cc_c89=no 4831ac_save_CC=$CC 4832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4833/* end confdefs.h. */ 4834#include <stdarg.h> 4835#include <stdio.h> 4836struct stat; 4837/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4838struct buf { int x; }; 4839FILE * (*rcsopen) (struct buf *, struct stat *, int); 4840static char *e (p, i) 4841 char **p; 4842 int i; 4843{ 4844 return p[i]; 4845} 4846static char *f (char * (*g) (char **, int), char **p, ...) 4847{ 4848 char *s; 4849 va_list v; 4850 va_start (v,p); 4851 s = g (p, va_arg (v,int)); 4852 va_end (v); 4853 return s; 4854} 4855 4856/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4857 function prototypes and stuff, but not '\xHH' hex character constants. 4858 These don't provoke an error unfortunately, instead are silently treated 4859 as 'x'. The following induces an error, until -std is added to get 4860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4861 array size at least. It's necessary to write '\x00'==0 to get something 4862 that's true only with -std. */ 4863int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4864 4865/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4866 inside strings and character constants. */ 4867#define FOO(x) 'x' 4868int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4869 4870int test (int i, double x); 4871struct s1 {int (*f) (int a);}; 4872struct s2 {int (*f) (double a);}; 4873int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4874int argc; 4875char **argv; 4876int 4877main () 4878{ 4879return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4880 ; 4881 return 0; 4882} 4883_ACEOF 4884for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4886do 4887 CC="$ac_save_CC $ac_arg" 4888 if ac_fn_c_try_compile "$LINENO"; then : 4889 ac_cv_prog_cc_c89=$ac_arg 4890fi 4891rm -f core conftest.err conftest.$ac_objext 4892 test "x$ac_cv_prog_cc_c89" != "xno" && break 4893done 4894rm -f conftest.$ac_ext 4895CC=$ac_save_CC 4896 4897fi 4898# AC_CACHE_VAL 4899case "x$ac_cv_prog_cc_c89" in 4900 x) 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4902$as_echo "none needed" >&6; } ;; 4903 xno) 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4905$as_echo "unsupported" >&6; } ;; 4906 *) 4907 CC="$CC $ac_cv_prog_cc_c89" 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4909$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4910esac 4911if test "x$ac_cv_prog_cc_c89" != xno; then : 4912 4913fi 4914 4915ac_ext=c 4916ac_cpp='$CPP $CPPFLAGS' 4917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4919ac_compiler_gnu=$ac_cv_c_compiler_gnu 4920 4921 4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 4923$as_echo_n "checking $CC dependency flag... " >&6; } 4924echo 'void f(){}' >conftest.c 4925if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 4926 DEPFLAG="-MM" 4927else 4928 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 4929 DEPFLAG="-xM1" 4930 else 4931 DEPFLAG="-MM" # dunno do something 4932 fi 4933fi 4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 4935$as_echo "$DEPFLAG" >&6; } 4936rm -f conftest.c 4937 4938 4939 4940 4941 4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 4943$as_echo_n "checking whether $CC supports -Werror... " >&6; } 4944cache=`echo Werror | sed 'y%.=/+-%___p_%'` 4945if eval \${cv_prog_cc_flag_$cache+:} false; then : 4946 $as_echo_n "(cached) " >&6 4947else 4948 4949echo 'void f(void){}' >conftest.c 4950if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 4951eval "cv_prog_cc_flag_$cache=yes" 4952else 4953eval "cv_prog_cc_flag_$cache=no" 4954fi 4955rm -f conftest conftest.o conftest.c 4956 4957fi 4958 4959if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4961$as_echo "yes" >&6; } 4962: 4963ERRFLAG="-Werror" 4964else 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4966$as_echo "no" >&6; } 4967: 4968ERRFLAG="-errwarn" 4969fi 4970 4971 4972 4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 4974$as_echo_n "checking whether $CC supports -Wall... " >&6; } 4975cache=`echo Wall | sed 'y%.=/+-%___p_%'` 4976if eval \${cv_prog_cc_flag_$cache+:} false; then : 4977 $as_echo_n "(cached) " >&6 4978else 4979 4980echo 'void f(void){}' >conftest.c 4981if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 4982eval "cv_prog_cc_flag_$cache=yes" 4983else 4984eval "cv_prog_cc_flag_$cache=no" 4985fi 4986rm -f conftest conftest.o conftest.c 4987 4988fi 4989 4990if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4992$as_echo "yes" >&6; } 4993: 4994ERRFLAG="$ERRFLAG -Wall" 4995else 4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4997$as_echo "no" >&6; } 4998: 4999ERRFLAG="$ERRFLAG -errfmt" 5000fi 5001 5002 5003 5004 5005 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 5007$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 5008cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 5009if eval \${cv_prog_cc_flag_$cache+:} false; then : 5010 $as_echo_n "(cached) " >&6 5011else 5012 5013echo 'void f(void){}' >conftest.c 5014if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 5015eval "cv_prog_cc_flag_$cache=yes" 5016else 5017eval "cv_prog_cc_flag_$cache=no" 5018fi 5019rm -f conftest conftest.o conftest.c 5020 5021fi 5022 5023if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5025$as_echo "yes" >&6; } 5026: 5027C99FLAG="-std=c99" 5028else 5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5030$as_echo "no" >&6; } 5031: 5032 5033fi 5034 5035 5036 5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 5038$as_echo_n "checking whether $CC supports -xc99... " >&6; } 5039cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 5040if eval \${cv_prog_cc_flag_$cache+:} false; then : 5041 $as_echo_n "(cached) " >&6 5042else 5043 5044echo 'void f(void){}' >conftest.c 5045if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 5046eval "cv_prog_cc_flag_$cache=yes" 5047else 5048eval "cv_prog_cc_flag_$cache=no" 5049fi 5050rm -f conftest conftest.o conftest.c 5051 5052fi 5053 5054if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5056$as_echo "yes" >&6; } 5057: 5058C99FLAG="-xc99" 5059else 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5061$as_echo "no" >&6; } 5062: 5063 5064fi 5065 5066 5067for ac_header in getopt.h time.h 5068do : 5069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5070ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5071" 5072if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5073 cat >>confdefs.h <<_ACEOF 5074#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5075_ACEOF 5076 5077fi 5078 5079done 5080 5081 5082 5083 5084 5085{ $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 5086$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; } 5087cache=`$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` 5088if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5089 $as_echo_n "(cached) " >&6 5090else 5091 5092echo ' 5093#include "confdefs.h" 5094#include <stdlib.h> 5095#include <ctype.h> 5096#include <sys/time.h> 5097#ifdef HAVE_TIME_H 5098#include <time.h> 5099#endif 5100#include <unistd.h> 5101#include <netdb.h> 5102#ifdef HAVE_GETOPT_H 5103#include <getopt.h> 5104#endif 5105 5106int test() { 5107 int a; 5108 char **opts = NULL; 5109 struct timeval tv; 5110 char *t; 5111 time_t time = 0; 5112 char *buf = NULL; 5113 const char* str = NULL; 5114 struct msghdr msg; 5115 msg.msg_control = 0; 5116 t = ctime_r(&time, buf); 5117 tv.tv_usec = 10; 5118 srandom(32); 5119 a = getopt(2, opts, "a"); 5120 a = isascii(32); 5121 str = gai_strerror(0); 5122 if(str && t && tv.tv_usec && msg.msg_control) 5123 a = 0; 5124 return a; 5125} 5126' > conftest.c 5127echo 'void f(){}' >>conftest.c 5128if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5129eval "cv_prog_cc_flag_needed_$cache=no" 5130else 5131 5132if 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 5133eval "cv_prog_cc_flag_needed_$cache=yes" 5134else 5135eval "cv_prog_cc_flag_needed_$cache=fail" 5136#echo 'Test with flag fails too!' 5137#cat conftest.c 5138#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" 5139#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` 5140#exit 1 5141fi 5142 5143fi 5144rm -f conftest conftest.c conftest.o 5145 5146fi 5147 5148if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5150$as_echo "yes" >&6; } 5151: 5152CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" 5153else 5154if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5156$as_echo "no" >&6; } 5157#echo 'Test with flag is no!' 5158#cat conftest.c 5159#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" 5160#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` 5161#exit 1 5162: 5163 5164else 5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5166$as_echo "failed" >&6; } 5167: 5168 5169fi 5170fi 5171 5172 5173 5174 5175 5176{ $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 5177$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; } 5178cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 5179if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5180 $as_echo_n "(cached) " >&6 5181else 5182 5183echo ' 5184#include "confdefs.h" 5185#include <stdlib.h> 5186#include <ctype.h> 5187#include <sys/time.h> 5188#ifdef HAVE_TIME_H 5189#include <time.h> 5190#endif 5191#include <unistd.h> 5192#include <netdb.h> 5193#ifdef HAVE_GETOPT_H 5194#include <getopt.h> 5195#endif 5196 5197int test() { 5198 int a; 5199 char **opts = NULL; 5200 struct timeval tv; 5201 char *t; 5202 time_t time = 0; 5203 char *buf = NULL; 5204 const char* str = NULL; 5205 struct msghdr msg; 5206 msg.msg_control = 0; 5207 t = ctime_r(&time, buf); 5208 tv.tv_usec = 10; 5209 srandom(32); 5210 a = getopt(2, opts, "a"); 5211 a = isascii(32); 5212 str = gai_strerror(0); 5213 if(str && t && tv.tv_usec && msg.msg_control) 5214 a = 0; 5215 return a; 5216} 5217' > conftest.c 5218echo 'void f(){}' >>conftest.c 5219if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5220eval "cv_prog_cc_flag_needed_$cache=no" 5221else 5222 5223if 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 5224eval "cv_prog_cc_flag_needed_$cache=yes" 5225else 5226eval "cv_prog_cc_flag_needed_$cache=fail" 5227#echo 'Test with flag fails too!' 5228#cat conftest.c 5229#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" 5230#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` 5231#exit 1 5232fi 5233 5234fi 5235rm -f conftest conftest.c conftest.o 5236 5237fi 5238 5239if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5241$as_echo "yes" >&6; } 5242: 5243CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 5244else 5245if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5247$as_echo "no" >&6; } 5248#echo 'Test with flag is no!' 5249#cat conftest.c 5250#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" 5251#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` 5252#exit 1 5253: 5254 5255else 5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5257$as_echo "failed" >&6; } 5258: 5259 5260fi 5261fi 5262 5263 5264 5265 5266 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 5268$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 5269cache=`$as_echo "$C99FLAG" | $as_tr_sh` 5270if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5271 $as_echo_n "(cached) " >&6 5272else 5273 5274echo ' 5275#include <stdbool.h> 5276#include <ctype.h> 5277int test() { 5278 int a = 0; 5279 return a; 5280} 5281' > conftest.c 5282echo 'void f(){}' >>conftest.c 5283if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5284eval "cv_prog_cc_flag_needed_$cache=no" 5285else 5286 5287if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 5288eval "cv_prog_cc_flag_needed_$cache=yes" 5289else 5290eval "cv_prog_cc_flag_needed_$cache=fail" 5291#echo 'Test with flag fails too!' 5292#cat conftest.c 5293#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5294#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5295#exit 1 5296fi 5297 5298fi 5299rm -f conftest conftest.c conftest.o 5300 5301fi 5302 5303if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5305$as_echo "yes" >&6; } 5306: 5307CFLAGS="$CFLAGS $C99FLAG" 5308else 5309if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5311$as_echo "no" >&6; } 5312#echo 'Test with flag is no!' 5313#cat conftest.c 5314#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5315#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5316#exit 1 5317: 5318 5319else 5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5321$as_echo "failed" >&6; } 5322: 5323 5324fi 5325fi 5326 5327 5328 5329 5330 5331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5 5332$as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; } 5333cache=_D_BSD_SOURCE 5334if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5335 $as_echo_n "(cached) " >&6 5336else 5337 5338echo ' 5339#include <ctype.h> 5340 5341int test() { 5342 int a; 5343 a = isascii(32); 5344 return a; 5345} 5346' > conftest.c 5347echo 'void f(){}' >>conftest.c 5348if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5349eval "cv_prog_cc_flag_needed_$cache=no" 5350else 5351 5352if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5353eval "cv_prog_cc_flag_needed_$cache=yes" 5354else 5355eval "cv_prog_cc_flag_needed_$cache=fail" 5356#echo 'Test with flag fails too!' 5357#cat conftest.c 5358#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5359#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5360#exit 1 5361fi 5362 5363fi 5364rm -f conftest conftest.c conftest.o 5365 5366fi 5367 5368if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5370$as_echo "yes" >&6; } 5371: 5372CFLAGS="$CFLAGS -D_BSD_SOURCE" 5373else 5374if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5376$as_echo "no" >&6; } 5377#echo 'Test with flag is no!' 5378#cat conftest.c 5379#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5380#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5381#exit 1 5382: 5383 5384else 5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5386$as_echo "failed" >&6; } 5387: 5388 5389fi 5390fi 5391 5392 5393 5394 5395 5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 5397$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 5398cache=_D_GNU_SOURCE 5399if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5400 $as_echo_n "(cached) " >&6 5401else 5402 5403echo ' 5404#include <netinet/in.h> 5405 5406int test() { 5407 struct in6_pktinfo inf; 5408 int a = (int)sizeof(inf); 5409 return a; 5410} 5411' > conftest.c 5412echo 'void f(){}' >>conftest.c 5413if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5414eval "cv_prog_cc_flag_needed_$cache=no" 5415else 5416 5417if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5418eval "cv_prog_cc_flag_needed_$cache=yes" 5419else 5420eval "cv_prog_cc_flag_needed_$cache=fail" 5421#echo 'Test with flag fails too!' 5422#cat conftest.c 5423#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5424#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5425#exit 1 5426fi 5427 5428fi 5429rm -f conftest conftest.c conftest.o 5430 5431fi 5432 5433if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5435$as_echo "yes" >&6; } 5436: 5437CFLAGS="$CFLAGS -D_GNU_SOURCE" 5438else 5439if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5441$as_echo "no" >&6; } 5442#echo 'Test with flag is no!' 5443#cat conftest.c 5444#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5445#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5446#exit 1 5447: 5448 5449else 5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5451$as_echo "failed" >&6; } 5452: 5453 5454fi 5455fi 5456 5457 5458# check again for GNU_SOURCE for setresgid. May fail if setresgid 5459# is not available at all. -D_FRSRESGID is to make this check unique. 5460# otherwise we would get the previous cached result. 5461 5462 5463 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 5465$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 5466cache=_D_GNU_SOURCE__D_FRSRESGID 5467if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5468 $as_echo_n "(cached) " >&6 5469else 5470 5471echo ' 5472#include <unistd.h> 5473 5474int test() { 5475 int a = setresgid(0,0,0); 5476 a = setresuid(0,0,0); 5477 return a; 5478} 5479' > conftest.c 5480echo 'void f(){}' >>conftest.c 5481if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5482eval "cv_prog_cc_flag_needed_$cache=no" 5483else 5484 5485if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 5486eval "cv_prog_cc_flag_needed_$cache=yes" 5487else 5488eval "cv_prog_cc_flag_needed_$cache=fail" 5489#echo 'Test with flag fails too!' 5490#cat conftest.c 5491#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5492#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5493#exit 1 5494fi 5495 5496fi 5497rm -f conftest conftest.c conftest.o 5498 5499fi 5500 5501if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5503$as_echo "yes" >&6; } 5504: 5505CFLAGS="$CFLAGS -D_GNU_SOURCE" 5506else 5507if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5509$as_echo "no" >&6; } 5510#echo 'Test with flag is no!' 5511#cat conftest.c 5512#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5513#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5514#exit 1 5515: 5516 5517else 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5519$as_echo "failed" >&6; } 5520: 5521 5522fi 5523fi 5524 5525 5526 5527 5528 5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 5530$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 5531cache=_D_POSIX_C_SOURCE_200112 5532if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5533 $as_echo_n "(cached) " >&6 5534else 5535 5536echo ' 5537#include "confdefs.h" 5538#ifdef HAVE_TIME_H 5539#include <time.h> 5540#endif 5541#include <netdb.h> 5542 5543int test() { 5544 int a = 0; 5545 char *t; 5546 time_t time = 0; 5547 char *buf = NULL; 5548 const char* str = NULL; 5549 t = ctime_r(&time, buf); 5550 str = gai_strerror(0); 5551 if(t && str) 5552 a = 0; 5553 return a; 5554} 5555' > conftest.c 5556echo 'void f(){}' >>conftest.c 5557if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5558eval "cv_prog_cc_flag_needed_$cache=no" 5559else 5560 5561if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 5562eval "cv_prog_cc_flag_needed_$cache=yes" 5563else 5564eval "cv_prog_cc_flag_needed_$cache=fail" 5565#echo 'Test with flag fails too!' 5566#cat conftest.c 5567#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5568#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5569#exit 1 5570fi 5571 5572fi 5573rm -f conftest conftest.c conftest.o 5574 5575fi 5576 5577if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5579$as_echo "yes" >&6; } 5580: 5581CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 5582else 5583if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5585$as_echo "no" >&6; } 5586#echo 'Test with flag is no!' 5587#cat conftest.c 5588#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5589#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5590#exit 1 5591: 5592 5593else 5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5595$as_echo "failed" >&6; } 5596: 5597 5598fi 5599fi 5600 5601 5602 5603 5604 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 5606$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 5607cache=_D__EXTENSIONS__ 5608if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5609 $as_echo_n "(cached) " >&6 5610else 5611 5612echo ' 5613#include "confdefs.h" 5614#include <stdlib.h> 5615#include <ctype.h> 5616#include <sys/time.h> 5617#ifdef HAVE_TIME_H 5618#include <time.h> 5619#endif 5620#include <unistd.h> 5621#ifdef HAVE_GETOPT_H 5622#include <getopt.h> 5623#endif 5624 5625int test() { 5626 int a; 5627 char **opts = NULL; 5628 struct timeval tv; 5629 tv.tv_usec = 10; 5630 srandom(32); 5631 a = getopt(2, opts, "a"); 5632 a = isascii(32); 5633 if(tv.tv_usec) 5634 a = 0; 5635 return a; 5636} 5637' > conftest.c 5638echo 'void f(){}' >>conftest.c 5639if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5640eval "cv_prog_cc_flag_needed_$cache=no" 5641else 5642 5643if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 5644eval "cv_prog_cc_flag_needed_$cache=yes" 5645else 5646eval "cv_prog_cc_flag_needed_$cache=fail" 5647#echo 'Test with flag fails too!' 5648#cat conftest.c 5649#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5650#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5651#exit 1 5652fi 5653 5654fi 5655rm -f conftest conftest.c conftest.o 5656 5657fi 5658 5659if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5661$as_echo "yes" >&6; } 5662: 5663CFLAGS="$CFLAGS -D__EXTENSIONS__" 5664else 5665if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5667$as_echo "no" >&6; } 5668#echo 'Test with flag is no!' 5669#cat conftest.c 5670#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5671#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5672#exit 1 5673: 5674 5675else 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5677$as_echo "failed" >&6; } 5678: 5679 5680fi 5681fi 5682 5683 5684 5685 5686# debug mode flags warnings 5687# Check whether --enable-checking was given. 5688if test "${enable_checking+set}" = set; then : 5689 enableval=$enable_checking; 5690fi 5691 5692# Check whether --enable-debug was given. 5693if test "${enable_debug+set}" = set; then : 5694 enableval=$enable_debug; 5695fi 5696 5697if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; 5698else debug_enabled="$enable_checking"; fi 5699 5700case "$debug_enabled" in 5701 yes) 5702 5703 5704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 5705$as_echo_n "checking whether $CC supports -W... " >&6; } 5706cache=`echo W | sed 'y%.=/+-%___p_%'` 5707if eval \${cv_prog_cc_flag_$cache+:} false; then : 5708 $as_echo_n "(cached) " >&6 5709else 5710 5711echo 'void f(void){}' >conftest.c 5712if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 5713eval "cv_prog_cc_flag_$cache=yes" 5714else 5715eval "cv_prog_cc_flag_$cache=no" 5716fi 5717rm -f conftest conftest.o conftest.c 5718 5719fi 5720 5721if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5723$as_echo "yes" >&6; } 5724: 5725CFLAGS="$CFLAGS -W" 5726else 5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5728$as_echo "no" >&6; } 5729: 5730 5731fi 5732 5733 5734 5735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5736$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5737cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5738if eval \${cv_prog_cc_flag_$cache+:} false; then : 5739 $as_echo_n "(cached) " >&6 5740else 5741 5742echo 'void f(void){}' >conftest.c 5743if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5744eval "cv_prog_cc_flag_$cache=yes" 5745else 5746eval "cv_prog_cc_flag_$cache=no" 5747fi 5748rm -f conftest conftest.o conftest.c 5749 5750fi 5751 5752if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5754$as_echo "yes" >&6; } 5755: 5756CFLAGS="$CFLAGS -Wall" 5757else 5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5759$as_echo "no" >&6; } 5760: 5761 5762fi 5763 5764 5765 5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 5767$as_echo_n "checking whether $CC supports -Wextra... " >&6; } 5768cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 5769if eval \${cv_prog_cc_flag_$cache+:} false; then : 5770 $as_echo_n "(cached) " >&6 5771else 5772 5773echo 'void f(void){}' >conftest.c 5774if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then 5775eval "cv_prog_cc_flag_$cache=yes" 5776else 5777eval "cv_prog_cc_flag_$cache=no" 5778fi 5779rm -f conftest conftest.o conftest.c 5780 5781fi 5782 5783if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5785$as_echo "yes" >&6; } 5786: 5787CFLAGS="$CFLAGS -Wextra" 5788else 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5790$as_echo "no" >&6; } 5791: 5792 5793fi 5794 5795 5796 5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 5798$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 5799cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'` 5800if eval \${cv_prog_cc_flag_$cache+:} false; then : 5801 $as_echo_n "(cached) " >&6 5802else 5803 5804echo 'void f(void){}' >conftest.c 5805if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 5806eval "cv_prog_cc_flag_$cache=yes" 5807else 5808eval "cv_prog_cc_flag_$cache=no" 5809fi 5810rm -f conftest conftest.o conftest.c 5811 5812fi 5813 5814if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5816$as_echo "yes" >&6; } 5817: 5818CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5819else 5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5821$as_echo "no" >&6; } 5822: 5823 5824fi 5825 5826 5827$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h 5828 5829 ;; 5830 no|*) 5831 # nothing to do. 5832 ;; 5833esac 5834 5835 # Check whether --enable-flto was given. 5836if test "${enable_flto+set}" = set; then : 5837 enableval=$enable_flto; 5838fi 5839 5840 if test "x$enable_flto" != "xno"; then : 5841 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 5843$as_echo_n "checking if $CC supports -flto... " >&6; } 5844 BAKCFLAGS="$CFLAGS" 5845 CFLAGS="$CFLAGS -flto" 5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5847/* end confdefs.h. */ 5848 5849int 5850main () 5851{ 5852 5853 ; 5854 return 0; 5855} 5856_ACEOF 5857if ac_fn_c_try_link "$LINENO"; then : 5858 5859 if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 5860 CFLAGS="$BAKCFLAGS" 5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5862$as_echo "no" >&6; } 5863 else 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5865$as_echo "yes" >&6; } 5866 fi 5867 rm -f conftest conftest.c conftest.o 5868 5869else 5870 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5871$as_echo "no" >&6; } 5872fi 5873rm -f core conftest.err conftest.$ac_objext \ 5874 conftest$ac_exeext conftest.$ac_ext 5875 5876fi 5877 5878 5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5880$as_echo_n "checking for inline... " >&6; } 5881if ${ac_cv_c_inline+:} false; then : 5882 $as_echo_n "(cached) " >&6 5883else 5884 ac_cv_c_inline=no 5885for ac_kw in inline __inline__ __inline; do 5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5887/* end confdefs.h. */ 5888#ifndef __cplusplus 5889typedef int foo_t; 5890static $ac_kw foo_t static_foo () {return 0; } 5891$ac_kw foo_t foo () {return 0; } 5892#endif 5893 5894_ACEOF 5895if ac_fn_c_try_compile "$LINENO"; then : 5896 ac_cv_c_inline=$ac_kw 5897fi 5898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5899 test "$ac_cv_c_inline" != no && break 5900done 5901 5902fi 5903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5904$as_echo "$ac_cv_c_inline" >&6; } 5905 5906case $ac_cv_c_inline in 5907 inline | yes) ;; 5908 *) 5909 case $ac_cv_c_inline in 5910 no) ac_val=;; 5911 *) ac_val=$ac_cv_c_inline;; 5912 esac 5913 cat >>confdefs.h <<_ACEOF 5914#ifndef __cplusplus 5915#define inline $ac_val 5916#endif 5917_ACEOF 5918 ;; 5919esac 5920 5921 5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 5923$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 5924if ${ac_cv_c_format_attribute+:} false; then : 5925 $as_echo_n "(cached) " >&6 5926else 5927 ac_cv_c_format_attribute=no 5928cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5929/* end confdefs.h. */ 5930#include <stdio.h> 5931void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 5932void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 5933 5934int 5935main () 5936{ 5937 5938 f ("%s", "str"); 5939 5940 ; 5941 return 0; 5942} 5943_ACEOF 5944if ac_fn_c_try_compile "$LINENO"; then : 5945 ac_cv_c_format_attribute="yes" 5946else 5947 ac_cv_c_format_attribute="no" 5948fi 5949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5950 5951fi 5952 5953 5954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 5955$as_echo "$ac_cv_c_format_attribute" >&6; } 5956if test $ac_cv_c_format_attribute = yes; then 5957 5958$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 5959 5960fi 5961 5962 5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 5964$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 5965if ${ac_cv_c_unused_attribute+:} false; then : 5966 $as_echo_n "(cached) " >&6 5967else 5968 ac_cv_c_unused_attribute=no 5969cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5970/* end confdefs.h. */ 5971#include <stdio.h> 5972void f (char *u __attribute__((unused))); 5973 5974int 5975main () 5976{ 5977 5978 f ("x"); 5979 5980 ; 5981 return 0; 5982} 5983_ACEOF 5984if ac_fn_c_try_compile "$LINENO"; then : 5985 ac_cv_c_unused_attribute="yes" 5986else 5987 ac_cv_c_unused_attribute="no" 5988fi 5989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5990 5991fi 5992 5993 5994 5995 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 5997$as_echo "$ac_cv_c_unused_attribute" >&6; } 5998if test $ac_cv_c_unused_attribute = yes; then 5999 6000$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 6001 6002fi 6003 6004 6005if test "$srcdir" != "."; then 6006 CPPFLAGS="$CPPFLAGS -I$srcdir" 6007fi 6008 6009 6010 6011for ac_prog in flex lex 6012do 6013 # Extract the first word of "$ac_prog", so it can be a program name with args. 6014set dummy $ac_prog; ac_word=$2 6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6016$as_echo_n "checking for $ac_word... " >&6; } 6017if ${ac_cv_prog_LEX+:} false; then : 6018 $as_echo_n "(cached) " >&6 6019else 6020 if test -n "$LEX"; then 6021 ac_cv_prog_LEX="$LEX" # Let the user override the test. 6022else 6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6024for as_dir in $PATH 6025do 6026 IFS=$as_save_IFS 6027 test -z "$as_dir" && as_dir=. 6028 for ac_exec_ext in '' $ac_executable_extensions; do 6029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6030 ac_cv_prog_LEX="$ac_prog" 6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6032 break 2 6033 fi 6034done 6035 done 6036IFS=$as_save_IFS 6037 6038fi 6039fi 6040LEX=$ac_cv_prog_LEX 6041if test -n "$LEX"; then 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 6043$as_echo "$LEX" >&6; } 6044else 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6046$as_echo "no" >&6; } 6047fi 6048 6049 6050 test -n "$LEX" && break 6051done 6052test -n "$LEX" || LEX=":" 6053 6054if test "x$LEX" != "x:"; then 6055 cat >conftest.l <<_ACEOF 6056%% 6057a { ECHO; } 6058b { REJECT; } 6059c { yymore (); } 6060d { yyless (1); } 6061e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 6062 yyless ((input () != 0)); } 6063f { unput (yytext[0]); } 6064. { BEGIN INITIAL; } 6065%% 6066#ifdef YYTEXT_POINTER 6067extern char *yytext; 6068#endif 6069int 6070main (void) 6071{ 6072 return ! yylex () + ! yywrap (); 6073} 6074_ACEOF 6075{ { ac_try="$LEX conftest.l" 6076case "(($ac_try" in 6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6078 *) ac_try_echo=$ac_try;; 6079esac 6080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6081$as_echo "$ac_try_echo"; } >&5 6082 (eval "$LEX conftest.l") 2>&5 6083 ac_status=$? 6084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6085 test $ac_status = 0; } 6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 6087$as_echo_n "checking lex output file root... " >&6; } 6088if ${ac_cv_prog_lex_root+:} false; then : 6089 $as_echo_n "(cached) " >&6 6090else 6091 6092if test -f lex.yy.c; then 6093 ac_cv_prog_lex_root=lex.yy 6094elif test -f lexyy.c; then 6095 ac_cv_prog_lex_root=lexyy 6096else 6097 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 6098fi 6099fi 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 6101$as_echo "$ac_cv_prog_lex_root" >&6; } 6102LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 6103 6104if test -z "${LEXLIB+set}"; then 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 6106$as_echo_n "checking lex library... " >&6; } 6107if ${ac_cv_lib_lex+:} false; then : 6108 $as_echo_n "(cached) " >&6 6109else 6110 6111 ac_save_LIBS=$LIBS 6112 ac_cv_lib_lex='none needed' 6113 for ac_lib in '' -lfl -ll; do 6114 LIBS="$ac_lib $ac_save_LIBS" 6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6116/* end confdefs.h. */ 6117`cat $LEX_OUTPUT_ROOT.c` 6118_ACEOF 6119if ac_fn_c_try_link "$LINENO"; then : 6120 ac_cv_lib_lex=$ac_lib 6121fi 6122rm -f core conftest.err conftest.$ac_objext \ 6123 conftest$ac_exeext conftest.$ac_ext 6124 test "$ac_cv_lib_lex" != 'none needed' && break 6125 done 6126 LIBS=$ac_save_LIBS 6127 6128fi 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 6130$as_echo "$ac_cv_lib_lex" >&6; } 6131 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 6132fi 6133 6134 6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 6136$as_echo_n "checking whether yytext is a pointer... " >&6; } 6137if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 6138 $as_echo_n "(cached) " >&6 6139else 6140 # POSIX says lex can declare yytext either as a pointer or an array; the 6141# default is implementation-dependent. Figure out which it is, since 6142# not all implementations provide the %pointer and %array declarations. 6143ac_cv_prog_lex_yytext_pointer=no 6144ac_save_LIBS=$LIBS 6145LIBS="$LEXLIB $ac_save_LIBS" 6146cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6147/* end confdefs.h. */ 6148 6149 #define YYTEXT_POINTER 1 6150`cat $LEX_OUTPUT_ROOT.c` 6151_ACEOF 6152if ac_fn_c_try_link "$LINENO"; then : 6153 ac_cv_prog_lex_yytext_pointer=yes 6154fi 6155rm -f core conftest.err conftest.$ac_objext \ 6156 conftest$ac_exeext conftest.$ac_ext 6157LIBS=$ac_save_LIBS 6158 6159fi 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 6161$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 6162if test $ac_cv_prog_lex_yytext_pointer = yes; then 6163 6164$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 6165 6166fi 6167rm -f conftest.l $LEX_OUTPUT_ROOT.c 6168 6169fi 6170 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5 6172$as_echo_n "checking for yylex_destroy... " >&6; } 6173 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then 6174 6175$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h 6176 6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6178$as_echo "yes" >&6; } 6179 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6180$as_echo "no" >&6; }; fi 6181 6182for ac_prog in 'bison -y' byacc 6183do 6184 # Extract the first word of "$ac_prog", so it can be a program name with args. 6185set dummy $ac_prog; ac_word=$2 6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6187$as_echo_n "checking for $ac_word... " >&6; } 6188if ${ac_cv_prog_YACC+:} false; then : 6189 $as_echo_n "(cached) " >&6 6190else 6191 if test -n "$YACC"; then 6192 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6193else 6194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6195for as_dir in $PATH 6196do 6197 IFS=$as_save_IFS 6198 test -z "$as_dir" && as_dir=. 6199 for ac_exec_ext in '' $ac_executable_extensions; do 6200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6201 ac_cv_prog_YACC="$ac_prog" 6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6203 break 2 6204 fi 6205done 6206 done 6207IFS=$as_save_IFS 6208 6209fi 6210fi 6211YACC=$ac_cv_prog_YACC 6212if test -n "$YACC"; then 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 6214$as_echo "$YACC" >&6; } 6215else 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6217$as_echo "no" >&6; } 6218fi 6219 6220 6221 test -n "$YACC" && break 6222done 6223test -n "$YACC" || YACC="yacc" 6224 6225# Extract the first word of "doxygen", so it can be a program name with args. 6226set dummy doxygen; ac_word=$2 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6228$as_echo_n "checking for $ac_word... " >&6; } 6229if ${ac_cv_prog_doxygen+:} false; then : 6230 $as_echo_n "(cached) " >&6 6231else 6232 if test -n "$doxygen"; then 6233 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 6234else 6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6236for as_dir in $PATH 6237do 6238 IFS=$as_save_IFS 6239 test -z "$as_dir" && as_dir=. 6240 for ac_exec_ext in '' $ac_executable_extensions; do 6241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6242 ac_cv_prog_doxygen="doxygen" 6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6244 break 2 6245 fi 6246done 6247 done 6248IFS=$as_save_IFS 6249 6250fi 6251fi 6252doxygen=$ac_cv_prog_doxygen 6253if test -n "$doxygen"; then 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 6255$as_echo "$doxygen" >&6; } 6256else 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6258$as_echo "no" >&6; } 6259fi 6260 6261 6262if test -n "$ac_tool_prefix"; then 6263 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6264set dummy ${ac_tool_prefix}strip; ac_word=$2 6265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6266$as_echo_n "checking for $ac_word... " >&6; } 6267if ${ac_cv_prog_STRIP+:} false; then : 6268 $as_echo_n "(cached) " >&6 6269else 6270 if test -n "$STRIP"; then 6271 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6272else 6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6274for as_dir in $PATH 6275do 6276 IFS=$as_save_IFS 6277 test -z "$as_dir" && as_dir=. 6278 for ac_exec_ext in '' $ac_executable_extensions; do 6279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6280 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6282 break 2 6283 fi 6284done 6285 done 6286IFS=$as_save_IFS 6287 6288fi 6289fi 6290STRIP=$ac_cv_prog_STRIP 6291if test -n "$STRIP"; then 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6293$as_echo "$STRIP" >&6; } 6294else 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6296$as_echo "no" >&6; } 6297fi 6298 6299 6300fi 6301if test -z "$ac_cv_prog_STRIP"; then 6302 ac_ct_STRIP=$STRIP 6303 # Extract the first word of "strip", so it can be a program name with args. 6304set dummy strip; ac_word=$2 6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6306$as_echo_n "checking for $ac_word... " >&6; } 6307if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6308 $as_echo_n "(cached) " >&6 6309else 6310 if test -n "$ac_ct_STRIP"; then 6311 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6312else 6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6314for as_dir in $PATH 6315do 6316 IFS=$as_save_IFS 6317 test -z "$as_dir" && as_dir=. 6318 for ac_exec_ext in '' $ac_executable_extensions; do 6319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6320 ac_cv_prog_ac_ct_STRIP="strip" 6321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6322 break 2 6323 fi 6324done 6325 done 6326IFS=$as_save_IFS 6327 6328fi 6329fi 6330ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6331if test -n "$ac_ct_STRIP"; then 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6333$as_echo "$ac_ct_STRIP" >&6; } 6334else 6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6336$as_echo "no" >&6; } 6337fi 6338 6339 if test "x$ac_ct_STRIP" = x; then 6340 STRIP="" 6341 else 6342 case $cross_compiling:$ac_tool_warned in 6343yes:) 6344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6346ac_tool_warned=yes ;; 6347esac 6348 STRIP=$ac_ct_STRIP 6349 fi 6350else 6351 STRIP="$ac_cv_prog_STRIP" 6352fi 6353 6354ac_aux_dir= 6355for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 6356 if test -f "$ac_dir/install-sh"; then 6357 ac_aux_dir=$ac_dir 6358 ac_install_sh="$ac_aux_dir/install-sh -c" 6359 break 6360 elif test -f "$ac_dir/install.sh"; then 6361 ac_aux_dir=$ac_dir 6362 ac_install_sh="$ac_aux_dir/install.sh -c" 6363 break 6364 elif test -f "$ac_dir/shtool"; then 6365 ac_aux_dir=$ac_dir 6366 ac_install_sh="$ac_aux_dir/shtool install -c" 6367 break 6368 fi 6369done 6370if test -z "$ac_aux_dir"; then 6371 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 6372fi 6373 6374# These three variables are undocumented and unsupported, 6375# and are intended to be withdrawn in a future Autoconf release. 6376# They can cause serious problems if a builder's source tree is in a directory 6377# whose full name contains unusual characters. 6378ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 6379ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 6380ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 6381 6382 6383# Make sure we can run config.sub. 6384$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6385 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6386 6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6388$as_echo_n "checking build system type... " >&6; } 6389if ${ac_cv_build+:} false; then : 6390 $as_echo_n "(cached) " >&6 6391else 6392 ac_build_alias=$build_alias 6393test "x$ac_build_alias" = x && 6394 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6395test "x$ac_build_alias" = x && 6396 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6397ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6398 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6399 6400fi 6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6402$as_echo "$ac_cv_build" >&6; } 6403case $ac_cv_build in 6404*-*-*) ;; 6405*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6406esac 6407build=$ac_cv_build 6408ac_save_IFS=$IFS; IFS='-' 6409set x $ac_cv_build 6410shift 6411build_cpu=$1 6412build_vendor=$2 6413shift; shift 6414# Remember, the first character of IFS is used to create $*, 6415# except with old shells: 6416build_os=$* 6417IFS=$ac_save_IFS 6418case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6419 6420 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6422$as_echo_n "checking host system type... " >&6; } 6423if ${ac_cv_host+:} false; then : 6424 $as_echo_n "(cached) " >&6 6425else 6426 if test "x$host_alias" = x; then 6427 ac_cv_host=$ac_cv_build 6428else 6429 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6430 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6431fi 6432 6433fi 6434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6435$as_echo "$ac_cv_host" >&6; } 6436case $ac_cv_host in 6437*-*-*) ;; 6438*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6439esac 6440host=$ac_cv_host 6441ac_save_IFS=$IFS; IFS='-' 6442set x $ac_cv_host 6443shift 6444host_cpu=$1 6445host_vendor=$2 6446shift; shift 6447# Remember, the first character of IFS is used to create $*, 6448# except with old shells: 6449host_os=$* 6450IFS=$ac_save_IFS 6451case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6452 6453 6454 6455# skip these tests, we do not need them. 6456 6457 6458 6459 6460 6461 6462 6463 6464# always use ./libtool unless override from commandline (libtool=mylibtool) 6465if test -z "$libtool"; then 6466 libtool="./libtool" 6467fi 6468 6469# avoid libtool max commandline length test on systems that fork slowly. 6470 6471if echo "$host_os" | grep "sunos4" >/dev/null; then 6472 lt_cv_sys_max_cmd_len=32750; 6473fi 6474if test -n "$ac_tool_prefix"; then 6475 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6476set dummy ${ac_tool_prefix}ar; ac_word=$2 6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6478$as_echo_n "checking for $ac_word... " >&6; } 6479if ${ac_cv_path_AR+:} false; then : 6480 $as_echo_n "(cached) " >&6 6481else 6482 case $AR in 6483 [\\/]* | ?:[\\/]*) 6484 ac_cv_path_AR="$AR" # Let the user override the test with a path. 6485 ;; 6486 *) 6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6488for as_dir in $PATH 6489do 6490 IFS=$as_save_IFS 6491 test -z "$as_dir" && as_dir=. 6492 for ac_exec_ext in '' $ac_executable_extensions; do 6493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6494 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6496 break 2 6497 fi 6498done 6499 done 6500IFS=$as_save_IFS 6501 6502 ;; 6503esac 6504fi 6505AR=$ac_cv_path_AR 6506if test -n "$AR"; then 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6508$as_echo "$AR" >&6; } 6509else 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6511$as_echo "no" >&6; } 6512fi 6513 6514 6515fi 6516if test -z "$ac_cv_path_AR"; then 6517 ac_pt_AR=$AR 6518 # Extract the first word of "ar", so it can be a program name with args. 6519set dummy ar; ac_word=$2 6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6521$as_echo_n "checking for $ac_word... " >&6; } 6522if ${ac_cv_path_ac_pt_AR+:} false; then : 6523 $as_echo_n "(cached) " >&6 6524else 6525 case $ac_pt_AR in 6526 [\\/]* | ?:[\\/]*) 6527 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 6528 ;; 6529 *) 6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6531for as_dir in $PATH 6532do 6533 IFS=$as_save_IFS 6534 test -z "$as_dir" && as_dir=. 6535 for ac_exec_ext in '' $ac_executable_extensions; do 6536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6537 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6539 break 2 6540 fi 6541done 6542 done 6543IFS=$as_save_IFS 6544 6545 ;; 6546esac 6547fi 6548ac_pt_AR=$ac_cv_path_ac_pt_AR 6549if test -n "$ac_pt_AR"; then 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 6551$as_echo "$ac_pt_AR" >&6; } 6552else 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6554$as_echo "no" >&6; } 6555fi 6556 6557 if test "x$ac_pt_AR" = x; then 6558 AR="false" 6559 else 6560 case $cross_compiling:$ac_tool_warned in 6561yes:) 6562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6564ac_tool_warned=yes ;; 6565esac 6566 AR=$ac_pt_AR 6567 fi 6568else 6569 AR="$ac_cv_path_AR" 6570fi 6571 6572if test $AR = false; then 6573 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 6574fi 6575 6576case `pwd` in 6577 *\ * | *\ *) 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6579$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6580esac 6581 6582 6583 6584macro_version='2.4.2' 6585macro_revision='1.3337' 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599ltmain="$ac_aux_dir/ltmain.sh" 6600 6601# Backslashify metacharacters that are still active within 6602# double-quoted strings. 6603sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6604 6605# Same as above, but do not quote variable references. 6606double_quote_subst='s/\(["`\\]\)/\\\1/g' 6607 6608# Sed substitution to delay expansion of an escaped shell variable in a 6609# double_quote_subst'ed string. 6610delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6611 6612# Sed substitution to delay expansion of an escaped single quote. 6613delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6614 6615# Sed substitution to avoid accidental globbing in evaled expressions 6616no_glob_subst='s/\*/\\\*/g' 6617 6618ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6619ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6620ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6621 6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6623$as_echo_n "checking how to print strings... " >&6; } 6624# Test print first, because it will be a builtin if present. 6625if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6626 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6627 ECHO='print -r --' 6628elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6629 ECHO='printf %s\n' 6630else 6631 # Use this function as a fallback that always works. 6632 func_fallback_echo () 6633 { 6634 eval 'cat <<_LTECHO_EOF 6635$1 6636_LTECHO_EOF' 6637 } 6638 ECHO='func_fallback_echo' 6639fi 6640 6641# func_echo_all arg... 6642# Invoke $ECHO with all args, space-separated. 6643func_echo_all () 6644{ 6645 $ECHO "" 6646} 6647 6648case "$ECHO" in 6649 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6650$as_echo "printf" >&6; } ;; 6651 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6652$as_echo "print -r" >&6; } ;; 6653 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6654$as_echo "cat" >&6; } ;; 6655esac 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6671$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6672if ${ac_cv_path_SED+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6676 for ac_i in 1 2 3 4 5 6 7; do 6677 ac_script="$ac_script$as_nl$ac_script" 6678 done 6679 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6680 { ac_script=; unset ac_script;} 6681 if test -z "$SED"; then 6682 ac_path_SED_found=false 6683 # Loop through the user's path and test for each of PROGNAME-LIST 6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6685for as_dir in $PATH 6686do 6687 IFS=$as_save_IFS 6688 test -z "$as_dir" && as_dir=. 6689 for ac_prog in sed gsed; do 6690 for ac_exec_ext in '' $ac_executable_extensions; do 6691 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6692 as_fn_executable_p "$ac_path_SED" || continue 6693# Check for GNU ac_path_SED and select it if it is found. 6694 # Check for GNU $ac_path_SED 6695case `"$ac_path_SED" --version 2>&1` in 6696*GNU*) 6697 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6698*) 6699 ac_count=0 6700 $as_echo_n 0123456789 >"conftest.in" 6701 while : 6702 do 6703 cat "conftest.in" "conftest.in" >"conftest.tmp" 6704 mv "conftest.tmp" "conftest.in" 6705 cp "conftest.in" "conftest.nl" 6706 $as_echo '' >> "conftest.nl" 6707 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6709 as_fn_arith $ac_count + 1 && ac_count=$as_val 6710 if test $ac_count -gt ${ac_path_SED_max-0}; then 6711 # Best one so far, save it but keep looking for a better one 6712 ac_cv_path_SED="$ac_path_SED" 6713 ac_path_SED_max=$ac_count 6714 fi 6715 # 10*(2^10) chars as input seems more than enough 6716 test $ac_count -gt 10 && break 6717 done 6718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6719esac 6720 6721 $ac_path_SED_found && break 3 6722 done 6723 done 6724 done 6725IFS=$as_save_IFS 6726 if test -z "$ac_cv_path_SED"; then 6727 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6728 fi 6729else 6730 ac_cv_path_SED=$SED 6731fi 6732 6733fi 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6735$as_echo "$ac_cv_path_SED" >&6; } 6736 SED="$ac_cv_path_SED" 6737 rm -f conftest.sed 6738 6739test -z "$SED" && SED=sed 6740Xsed="$SED -e 1s/^X//" 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6753$as_echo_n "checking for fgrep... " >&6; } 6754if ${ac_cv_path_FGREP+:} false; then : 6755 $as_echo_n "(cached) " >&6 6756else 6757 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6758 then ac_cv_path_FGREP="$GREP -F" 6759 else 6760 if test -z "$FGREP"; then 6761 ac_path_FGREP_found=false 6762 # Loop through the user's path and test for each of PROGNAME-LIST 6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6764for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6765do 6766 IFS=$as_save_IFS 6767 test -z "$as_dir" && as_dir=. 6768 for ac_prog in fgrep; do 6769 for ac_exec_ext in '' $ac_executable_extensions; do 6770 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6771 as_fn_executable_p "$ac_path_FGREP" || continue 6772# Check for GNU ac_path_FGREP and select it if it is found. 6773 # Check for GNU $ac_path_FGREP 6774case `"$ac_path_FGREP" --version 2>&1` in 6775*GNU*) 6776 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6777*) 6778 ac_count=0 6779 $as_echo_n 0123456789 >"conftest.in" 6780 while : 6781 do 6782 cat "conftest.in" "conftest.in" >"conftest.tmp" 6783 mv "conftest.tmp" "conftest.in" 6784 cp "conftest.in" "conftest.nl" 6785 $as_echo 'FGREP' >> "conftest.nl" 6786 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6788 as_fn_arith $ac_count + 1 && ac_count=$as_val 6789 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6790 # Best one so far, save it but keep looking for a better one 6791 ac_cv_path_FGREP="$ac_path_FGREP" 6792 ac_path_FGREP_max=$ac_count 6793 fi 6794 # 10*(2^10) chars as input seems more than enough 6795 test $ac_count -gt 10 && break 6796 done 6797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6798esac 6799 6800 $ac_path_FGREP_found && break 3 6801 done 6802 done 6803 done 6804IFS=$as_save_IFS 6805 if test -z "$ac_cv_path_FGREP"; then 6806 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6807 fi 6808else 6809 ac_cv_path_FGREP=$FGREP 6810fi 6811 6812 fi 6813fi 6814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6815$as_echo "$ac_cv_path_FGREP" >&6; } 6816 FGREP="$ac_cv_path_FGREP" 6817 6818 6819test -z "$GREP" && GREP=grep 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839# Check whether --with-gnu-ld was given. 6840if test "${with_gnu_ld+set}" = set; then : 6841 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6842else 6843 with_gnu_ld=no 6844fi 6845 6846ac_prog=ld 6847if test "$GCC" = yes; then 6848 # Check if gcc -print-prog-name=ld gives a path. 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6850$as_echo_n "checking for ld used by $CC... " >&6; } 6851 case $host in 6852 *-*-mingw*) 6853 # gcc leaves a trailing carriage return which upsets mingw 6854 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6855 *) 6856 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6857 esac 6858 case $ac_prog in 6859 # Accept absolute paths. 6860 [\\/]* | ?:[\\/]*) 6861 re_direlt='/[^/][^/]*/\.\./' 6862 # Canonicalize the pathname of ld 6863 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6864 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6865 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6866 done 6867 test -z "$LD" && LD="$ac_prog" 6868 ;; 6869 "") 6870 # If it fails, then pretend we aren't using GCC. 6871 ac_prog=ld 6872 ;; 6873 *) 6874 # If it is relative, then search for the first ld in PATH. 6875 with_gnu_ld=unknown 6876 ;; 6877 esac 6878elif test "$with_gnu_ld" = yes; then 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6880$as_echo_n "checking for GNU ld... " >&6; } 6881else 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6883$as_echo_n "checking for non-GNU ld... " >&6; } 6884fi 6885if ${lt_cv_path_LD+:} false; then : 6886 $as_echo_n "(cached) " >&6 6887else 6888 if test -z "$LD"; then 6889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6890 for ac_dir in $PATH; do 6891 IFS="$lt_save_ifs" 6892 test -z "$ac_dir" && ac_dir=. 6893 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6894 lt_cv_path_LD="$ac_dir/$ac_prog" 6895 # Check to see if the program is GNU ld. I'd rather use --version, 6896 # but apparently some variants of GNU ld only accept -v. 6897 # Break only if it was the GNU/non-GNU ld that we prefer. 6898 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6899 *GNU* | *'with BFD'*) 6900 test "$with_gnu_ld" != no && break 6901 ;; 6902 *) 6903 test "$with_gnu_ld" != yes && break 6904 ;; 6905 esac 6906 fi 6907 done 6908 IFS="$lt_save_ifs" 6909else 6910 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6911fi 6912fi 6913 6914LD="$lt_cv_path_LD" 6915if test -n "$LD"; then 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6917$as_echo "$LD" >&6; } 6918else 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6920$as_echo "no" >&6; } 6921fi 6922test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6924$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6925if ${lt_cv_prog_gnu_ld+:} false; then : 6926 $as_echo_n "(cached) " >&6 6927else 6928 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6929case `$LD -v 2>&1 </dev/null` in 6930*GNU* | *'with BFD'*) 6931 lt_cv_prog_gnu_ld=yes 6932 ;; 6933*) 6934 lt_cv_prog_gnu_ld=no 6935 ;; 6936esac 6937fi 6938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6939$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6940with_gnu_ld=$lt_cv_prog_gnu_ld 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6951$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6952if ${lt_cv_path_NM+:} false; then : 6953 $as_echo_n "(cached) " >&6 6954else 6955 if test -n "$NM"; then 6956 # Let the user override the test. 6957 lt_cv_path_NM="$NM" 6958else 6959 lt_nm_to_check="${ac_tool_prefix}nm" 6960 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6961 lt_nm_to_check="$lt_nm_to_check nm" 6962 fi 6963 for lt_tmp_nm in $lt_nm_to_check; do 6964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6965 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6966 IFS="$lt_save_ifs" 6967 test -z "$ac_dir" && ac_dir=. 6968 tmp_nm="$ac_dir/$lt_tmp_nm" 6969 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6970 # Check to see if the nm accepts a BSD-compat flag. 6971 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6972 # nm: unknown option "B" ignored 6973 # Tru64's nm complains that /dev/null is an invalid object file 6974 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6975 */dev/null* | *'Invalid file or object type'*) 6976 lt_cv_path_NM="$tmp_nm -B" 6977 break 6978 ;; 6979 *) 6980 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6981 */dev/null*) 6982 lt_cv_path_NM="$tmp_nm -p" 6983 break 6984 ;; 6985 *) 6986 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6987 continue # so that we can try to find one that supports BSD flags 6988 ;; 6989 esac 6990 ;; 6991 esac 6992 fi 6993 done 6994 IFS="$lt_save_ifs" 6995 done 6996 : ${lt_cv_path_NM=no} 6997fi 6998fi 6999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7000$as_echo "$lt_cv_path_NM" >&6; } 7001if test "$lt_cv_path_NM" != "no"; then 7002 NM="$lt_cv_path_NM" 7003else 7004 # Didn't find any BSD compatible name lister, look for dumpbin. 7005 if test -n "$DUMPBIN"; then : 7006 # Let the user override the test. 7007 else 7008 if test -n "$ac_tool_prefix"; then 7009 for ac_prog in dumpbin "link -dump" 7010 do 7011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7012set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7014$as_echo_n "checking for $ac_word... " >&6; } 7015if ${ac_cv_prog_DUMPBIN+:} false; then : 7016 $as_echo_n "(cached) " >&6 7017else 7018 if test -n "$DUMPBIN"; then 7019 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7020else 7021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7022for as_dir in $PATH 7023do 7024 IFS=$as_save_IFS 7025 test -z "$as_dir" && as_dir=. 7026 for ac_exec_ext in '' $ac_executable_extensions; do 7027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7028 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7030 break 2 7031 fi 7032done 7033 done 7034IFS=$as_save_IFS 7035 7036fi 7037fi 7038DUMPBIN=$ac_cv_prog_DUMPBIN 7039if test -n "$DUMPBIN"; then 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7041$as_echo "$DUMPBIN" >&6; } 7042else 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7044$as_echo "no" >&6; } 7045fi 7046 7047 7048 test -n "$DUMPBIN" && break 7049 done 7050fi 7051if test -z "$DUMPBIN"; then 7052 ac_ct_DUMPBIN=$DUMPBIN 7053 for ac_prog in dumpbin "link -dump" 7054do 7055 # Extract the first word of "$ac_prog", so it can be a program name with args. 7056set dummy $ac_prog; ac_word=$2 7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7058$as_echo_n "checking for $ac_word... " >&6; } 7059if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7060 $as_echo_n "(cached) " >&6 7061else 7062 if test -n "$ac_ct_DUMPBIN"; then 7063 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7064else 7065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7066for as_dir in $PATH 7067do 7068 IFS=$as_save_IFS 7069 test -z "$as_dir" && as_dir=. 7070 for ac_exec_ext in '' $ac_executable_extensions; do 7071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7072 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7074 break 2 7075 fi 7076done 7077 done 7078IFS=$as_save_IFS 7079 7080fi 7081fi 7082ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7083if test -n "$ac_ct_DUMPBIN"; then 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7085$as_echo "$ac_ct_DUMPBIN" >&6; } 7086else 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7088$as_echo "no" >&6; } 7089fi 7090 7091 7092 test -n "$ac_ct_DUMPBIN" && break 7093done 7094 7095 if test "x$ac_ct_DUMPBIN" = x; then 7096 DUMPBIN=":" 7097 else 7098 case $cross_compiling:$ac_tool_warned in 7099yes:) 7100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7102ac_tool_warned=yes ;; 7103esac 7104 DUMPBIN=$ac_ct_DUMPBIN 7105 fi 7106fi 7107 7108 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7109 *COFF*) 7110 DUMPBIN="$DUMPBIN -symbols" 7111 ;; 7112 *) 7113 DUMPBIN=: 7114 ;; 7115 esac 7116 fi 7117 7118 if test "$DUMPBIN" != ":"; then 7119 NM="$DUMPBIN" 7120 fi 7121fi 7122test -z "$NM" && NM=nm 7123 7124 7125 7126 7127 7128 7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7130$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7131if ${lt_cv_nm_interface+:} false; then : 7132 $as_echo_n "(cached) " >&6 7133else 7134 lt_cv_nm_interface="BSD nm" 7135 echo "int some_variable = 0;" > conftest.$ac_ext 7136 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7137 (eval "$ac_compile" 2>conftest.err) 7138 cat conftest.err >&5 7139 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7140 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7141 cat conftest.err >&5 7142 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7143 cat conftest.out >&5 7144 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7145 lt_cv_nm_interface="MS dumpbin" 7146 fi 7147 rm -f conftest* 7148fi 7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7150$as_echo "$lt_cv_nm_interface" >&6; } 7151 7152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7153$as_echo_n "checking whether ln -s works... " >&6; } 7154LN_S=$as_ln_s 7155if test "$LN_S" = "ln -s"; then 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7157$as_echo "yes" >&6; } 7158else 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7160$as_echo "no, using $LN_S" >&6; } 7161fi 7162 7163# find the maximum length of command line arguments 7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7165$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7166if ${lt_cv_sys_max_cmd_len+:} false; then : 7167 $as_echo_n "(cached) " >&6 7168else 7169 i=0 7170 teststring="ABCD" 7171 7172 case $build_os in 7173 msdosdjgpp*) 7174 # On DJGPP, this test can blow up pretty badly due to problems in libc 7175 # (any single argument exceeding 2000 bytes causes a buffer overrun 7176 # during glob expansion). Even if it were fixed, the result of this 7177 # check would be larger than it should be. 7178 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7179 ;; 7180 7181 gnu*) 7182 # Under GNU Hurd, this test is not required because there is 7183 # no limit to the length of command line arguments. 7184 # Libtool will interpret -1 as no limit whatsoever 7185 lt_cv_sys_max_cmd_len=-1; 7186 ;; 7187 7188 cygwin* | mingw* | cegcc*) 7189 # On Win9x/ME, this test blows up -- it succeeds, but takes 7190 # about 5 minutes as the teststring grows exponentially. 7191 # Worse, since 9x/ME are not pre-emptively multitasking, 7192 # you end up with a "frozen" computer, even though with patience 7193 # the test eventually succeeds (with a max line length of 256k). 7194 # Instead, let's just punt: use the minimum linelength reported by 7195 # all of the supported platforms: 8192 (on NT/2K/XP). 7196 lt_cv_sys_max_cmd_len=8192; 7197 ;; 7198 7199 mint*) 7200 # On MiNT this can take a long time and run out of memory. 7201 lt_cv_sys_max_cmd_len=8192; 7202 ;; 7203 7204 amigaos*) 7205 # On AmigaOS with pdksh, this test takes hours, literally. 7206 # So we just punt and use a minimum line length of 8192. 7207 lt_cv_sys_max_cmd_len=8192; 7208 ;; 7209 7210 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7211 # This has been around since 386BSD, at least. Likely further. 7212 if test -x /sbin/sysctl; then 7213 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7214 elif test -x /usr/sbin/sysctl; then 7215 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7216 else 7217 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7218 fi 7219 # And add a safety zone 7220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7222 ;; 7223 7224 interix*) 7225 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7226 lt_cv_sys_max_cmd_len=196608 7227 ;; 7228 7229 os2*) 7230 # The test takes a long time on OS/2. 7231 lt_cv_sys_max_cmd_len=8192 7232 ;; 7233 7234 osf*) 7235 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7236 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7237 # nice to cause kernel panics so lets avoid the loop below. 7238 # First set a reasonable default. 7239 lt_cv_sys_max_cmd_len=16384 7240 # 7241 if test -x /sbin/sysconfig; then 7242 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7243 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7244 esac 7245 fi 7246 ;; 7247 sco3.2v5*) 7248 lt_cv_sys_max_cmd_len=102400 7249 ;; 7250 sysv5* | sco5v6* | sysv4.2uw2*) 7251 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7252 if test -n "$kargmax"; then 7253 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7254 else 7255 lt_cv_sys_max_cmd_len=32768 7256 fi 7257 ;; 7258 *) 7259 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7260 if test -n "$lt_cv_sys_max_cmd_len"; then 7261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7263 else 7264 # Make teststring a little bigger before we do anything with it. 7265 # a 1K string should be a reasonable start. 7266 for i in 1 2 3 4 5 6 7 8 ; do 7267 teststring=$teststring$teststring 7268 done 7269 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7270 # If test is not a shell built-in, we'll probably end up computing a 7271 # maximum length that is only half of the actual maximum length, but 7272 # we can't tell. 7273 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 7274 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7275 test $i != 17 # 1/2 MB should be enough 7276 do 7277 i=`expr $i + 1` 7278 teststring=$teststring$teststring 7279 done 7280 # Only check the string length outside the loop. 7281 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7282 teststring= 7283 # Add a significant safety factor because C++ compilers can tack on 7284 # massive amounts of additional arguments before passing them to the 7285 # linker. It appears as though 1/2 is a usable value. 7286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7287 fi 7288 ;; 7289 esac 7290 7291fi 7292 7293if test -n $lt_cv_sys_max_cmd_len ; then 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7295$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7296else 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7298$as_echo "none" >&6; } 7299fi 7300max_cmd_len=$lt_cv_sys_max_cmd_len 7301 7302 7303 7304 7305 7306 7307: ${CP="cp -f"} 7308: ${MV="mv -f"} 7309: ${RM="rm -f"} 7310 7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7312$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7313# Try some XSI features 7314xsi_shell=no 7315( _lt_dummy="a/b/c" 7316 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7317 = c,a/b,b/c, \ 7318 && eval 'test $(( 1 + 1 )) -eq 2 \ 7319 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7320 && xsi_shell=yes 7321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7322$as_echo "$xsi_shell" >&6; } 7323 7324 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7326$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7327lt_shell_append=no 7328( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7329 >/dev/null 2>&1 \ 7330 && lt_shell_append=yes 7331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7332$as_echo "$lt_shell_append" >&6; } 7333 7334 7335if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7336 lt_unset=unset 7337else 7338 lt_unset=false 7339fi 7340 7341 7342 7343 7344 7345# test EBCDIC or ASCII 7346case `echo X|tr X '\101'` in 7347 A) # ASCII based system 7348 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7349 lt_SP2NL='tr \040 \012' 7350 lt_NL2SP='tr \015\012 \040\040' 7351 ;; 7352 *) # EBCDIC based system 7353 lt_SP2NL='tr \100 \n' 7354 lt_NL2SP='tr \r\n \100\100' 7355 ;; 7356esac 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7367$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7368if ${lt_cv_to_host_file_cmd+:} false; then : 7369 $as_echo_n "(cached) " >&6 7370else 7371 case $host in 7372 *-*-mingw* ) 7373 case $build in 7374 *-*-mingw* ) # actually msys 7375 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7376 ;; 7377 *-*-cygwin* ) 7378 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7379 ;; 7380 * ) # otherwise, assume *nix 7381 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7382 ;; 7383 esac 7384 ;; 7385 *-*-cygwin* ) 7386 case $build in 7387 *-*-mingw* ) # actually msys 7388 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7389 ;; 7390 *-*-cygwin* ) 7391 lt_cv_to_host_file_cmd=func_convert_file_noop 7392 ;; 7393 * ) # otherwise, assume *nix 7394 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7395 ;; 7396 esac 7397 ;; 7398 * ) # unhandled hosts (and "normal" native builds) 7399 lt_cv_to_host_file_cmd=func_convert_file_noop 7400 ;; 7401esac 7402 7403fi 7404 7405to_host_file_cmd=$lt_cv_to_host_file_cmd 7406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7407$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7408 7409 7410 7411 7412 7413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7414$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7415if ${lt_cv_to_tool_file_cmd+:} false; then : 7416 $as_echo_n "(cached) " >&6 7417else 7418 #assume ordinary cross tools, or native build. 7419lt_cv_to_tool_file_cmd=func_convert_file_noop 7420case $host in 7421 *-*-mingw* ) 7422 case $build in 7423 *-*-mingw* ) # actually msys 7424 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7425 ;; 7426 esac 7427 ;; 7428esac 7429 7430fi 7431 7432to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7434$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7435 7436 7437 7438 7439 7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7441$as_echo_n "checking for $LD option to reload object files... " >&6; } 7442if ${lt_cv_ld_reload_flag+:} false; then : 7443 $as_echo_n "(cached) " >&6 7444else 7445 lt_cv_ld_reload_flag='-r' 7446fi 7447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7448$as_echo "$lt_cv_ld_reload_flag" >&6; } 7449reload_flag=$lt_cv_ld_reload_flag 7450case $reload_flag in 7451"" | " "*) ;; 7452*) reload_flag=" $reload_flag" ;; 7453esac 7454reload_cmds='$LD$reload_flag -o $output$reload_objs' 7455case $host_os in 7456 cygwin* | mingw* | pw32* | cegcc*) 7457 if test "$GCC" != yes; then 7458 reload_cmds=false 7459 fi 7460 ;; 7461 darwin*) 7462 if test "$GCC" = yes; then 7463 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7464 else 7465 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7466 fi 7467 ;; 7468esac 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478if test -n "$ac_tool_prefix"; then 7479 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7480set dummy ${ac_tool_prefix}objdump; ac_word=$2 7481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7482$as_echo_n "checking for $ac_word... " >&6; } 7483if ${ac_cv_prog_OBJDUMP+:} false; then : 7484 $as_echo_n "(cached) " >&6 7485else 7486 if test -n "$OBJDUMP"; then 7487 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7488else 7489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7490for as_dir in $PATH 7491do 7492 IFS=$as_save_IFS 7493 test -z "$as_dir" && as_dir=. 7494 for ac_exec_ext in '' $ac_executable_extensions; do 7495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7496 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7498 break 2 7499 fi 7500done 7501 done 7502IFS=$as_save_IFS 7503 7504fi 7505fi 7506OBJDUMP=$ac_cv_prog_OBJDUMP 7507if test -n "$OBJDUMP"; then 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7509$as_echo "$OBJDUMP" >&6; } 7510else 7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7512$as_echo "no" >&6; } 7513fi 7514 7515 7516fi 7517if test -z "$ac_cv_prog_OBJDUMP"; then 7518 ac_ct_OBJDUMP=$OBJDUMP 7519 # Extract the first word of "objdump", so it can be a program name with args. 7520set dummy objdump; ac_word=$2 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7522$as_echo_n "checking for $ac_word... " >&6; } 7523if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7524 $as_echo_n "(cached) " >&6 7525else 7526 if test -n "$ac_ct_OBJDUMP"; then 7527 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7528else 7529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7530for as_dir in $PATH 7531do 7532 IFS=$as_save_IFS 7533 test -z "$as_dir" && as_dir=. 7534 for ac_exec_ext in '' $ac_executable_extensions; do 7535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7536 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7538 break 2 7539 fi 7540done 7541 done 7542IFS=$as_save_IFS 7543 7544fi 7545fi 7546ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7547if test -n "$ac_ct_OBJDUMP"; then 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7549$as_echo "$ac_ct_OBJDUMP" >&6; } 7550else 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7552$as_echo "no" >&6; } 7553fi 7554 7555 if test "x$ac_ct_OBJDUMP" = x; then 7556 OBJDUMP="false" 7557 else 7558 case $cross_compiling:$ac_tool_warned in 7559yes:) 7560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7562ac_tool_warned=yes ;; 7563esac 7564 OBJDUMP=$ac_ct_OBJDUMP 7565 fi 7566else 7567 OBJDUMP="$ac_cv_prog_OBJDUMP" 7568fi 7569 7570test -z "$OBJDUMP" && OBJDUMP=objdump 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7581$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7582if ${lt_cv_deplibs_check_method+:} false; then : 7583 $as_echo_n "(cached) " >&6 7584else 7585 lt_cv_file_magic_cmd='$MAGIC_CMD' 7586lt_cv_file_magic_test_file= 7587lt_cv_deplibs_check_method='unknown' 7588# Need to set the preceding variable on all platforms that support 7589# interlibrary dependencies. 7590# 'none' -- dependencies not supported. 7591# `unknown' -- same as none, but documents that we really don't know. 7592# 'pass_all' -- all dependencies passed with no checks. 7593# 'test_compile' -- check by making test program. 7594# 'file_magic [[regex]]' -- check by looking for files in library path 7595# which responds to the $file_magic_cmd with a given extended regex. 7596# If you have `file' or equivalent on your system and you're not sure 7597# whether `pass_all' will *always* work, you probably want this one. 7598 7599case $host_os in 7600aix[4-9]*) 7601 lt_cv_deplibs_check_method=pass_all 7602 ;; 7603 7604beos*) 7605 lt_cv_deplibs_check_method=pass_all 7606 ;; 7607 7608bsdi[45]*) 7609 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7610 lt_cv_file_magic_cmd='/usr/bin/file -L' 7611 lt_cv_file_magic_test_file=/shlib/libc.so 7612 ;; 7613 7614cygwin*) 7615 # func_win32_libid is a shell function defined in ltmain.sh 7616 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7617 lt_cv_file_magic_cmd='func_win32_libid' 7618 ;; 7619 7620mingw* | pw32*) 7621 # Base MSYS/MinGW do not provide the 'file' command needed by 7622 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7623 # unless we find 'file', for example because we are cross-compiling. 7624 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7625 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7626 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7627 lt_cv_file_magic_cmd='func_win32_libid' 7628 else 7629 # Keep this pattern in sync with the one in func_win32_libid. 7630 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7631 lt_cv_file_magic_cmd='$OBJDUMP -f' 7632 fi 7633 ;; 7634 7635cegcc*) 7636 # use the weaker test based on 'objdump'. See mingw*. 7637 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7638 lt_cv_file_magic_cmd='$OBJDUMP -f' 7639 ;; 7640 7641darwin* | rhapsody*) 7642 lt_cv_deplibs_check_method=pass_all 7643 ;; 7644 7645freebsd* | dragonfly*) 7646 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7647 case $host_cpu in 7648 i*86 ) 7649 # Not sure whether the presence of OpenBSD here was a mistake. 7650 # Let's accept both of them until this is cleared up. 7651 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7652 lt_cv_file_magic_cmd=/usr/bin/file 7653 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7654 ;; 7655 esac 7656 else 7657 lt_cv_deplibs_check_method=pass_all 7658 fi 7659 ;; 7660 7661gnu*) 7662 lt_cv_deplibs_check_method=pass_all 7663 ;; 7664 7665haiku*) 7666 lt_cv_deplibs_check_method=pass_all 7667 ;; 7668 7669hpux10.20* | hpux11*) 7670 lt_cv_file_magic_cmd=/usr/bin/file 7671 case $host_cpu in 7672 ia64*) 7673 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7674 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7675 ;; 7676 hppa*64*) 7677 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]' 7678 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7679 ;; 7680 *) 7681 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7682 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7683 ;; 7684 esac 7685 ;; 7686 7687interix[3-9]*) 7688 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7690 ;; 7691 7692irix5* | irix6* | nonstopux*) 7693 case $LD in 7694 *-32|*"-32 ") libmagic=32-bit;; 7695 *-n32|*"-n32 ") libmagic=N32;; 7696 *-64|*"-64 ") libmagic=64-bit;; 7697 *) libmagic=never-match;; 7698 esac 7699 lt_cv_deplibs_check_method=pass_all 7700 ;; 7701 7702# This must be glibc/ELF. 7703linux* | k*bsd*-gnu | kopensolaris*-gnu) 7704 lt_cv_deplibs_check_method=pass_all 7705 ;; 7706 7707netbsd*) 7708 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7709 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7710 else 7711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7712 fi 7713 ;; 7714 7715newos6*) 7716 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7717 lt_cv_file_magic_cmd=/usr/bin/file 7718 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7719 ;; 7720 7721*nto* | *qnx*) 7722 lt_cv_deplibs_check_method=pass_all 7723 ;; 7724 7725openbsd*) 7726 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7728 else 7729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7730 fi 7731 ;; 7732 7733osf3* | osf4* | osf5*) 7734 lt_cv_deplibs_check_method=pass_all 7735 ;; 7736 7737rdos*) 7738 lt_cv_deplibs_check_method=pass_all 7739 ;; 7740 7741solaris*) 7742 lt_cv_deplibs_check_method=pass_all 7743 ;; 7744 7745sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7746 lt_cv_deplibs_check_method=pass_all 7747 ;; 7748 7749sysv4 | sysv4.3*) 7750 case $host_vendor in 7751 motorola) 7752 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]' 7753 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7754 ;; 7755 ncr) 7756 lt_cv_deplibs_check_method=pass_all 7757 ;; 7758 sequent) 7759 lt_cv_file_magic_cmd='/bin/file' 7760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7761 ;; 7762 sni) 7763 lt_cv_file_magic_cmd='/bin/file' 7764 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7765 lt_cv_file_magic_test_file=/lib/libc.so 7766 ;; 7767 siemens) 7768 lt_cv_deplibs_check_method=pass_all 7769 ;; 7770 pc) 7771 lt_cv_deplibs_check_method=pass_all 7772 ;; 7773 esac 7774 ;; 7775 7776tpf*) 7777 lt_cv_deplibs_check_method=pass_all 7778 ;; 7779esac 7780 7781fi 7782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7783$as_echo "$lt_cv_deplibs_check_method" >&6; } 7784 7785file_magic_glob= 7786want_nocaseglob=no 7787if test "$build" = "$host"; then 7788 case $host_os in 7789 mingw* | pw32*) 7790 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7791 want_nocaseglob=yes 7792 else 7793 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7794 fi 7795 ;; 7796 esac 7797fi 7798 7799file_magic_cmd=$lt_cv_file_magic_cmd 7800deplibs_check_method=$lt_cv_deplibs_check_method 7801test -z "$deplibs_check_method" && deplibs_check_method=unknown 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824if test -n "$ac_tool_prefix"; then 7825 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7826set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7828$as_echo_n "checking for $ac_word... " >&6; } 7829if ${ac_cv_prog_DLLTOOL+:} false; then : 7830 $as_echo_n "(cached) " >&6 7831else 7832 if test -n "$DLLTOOL"; then 7833 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7834else 7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7836for as_dir in $PATH 7837do 7838 IFS=$as_save_IFS 7839 test -z "$as_dir" && as_dir=. 7840 for ac_exec_ext in '' $ac_executable_extensions; do 7841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7842 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7844 break 2 7845 fi 7846done 7847 done 7848IFS=$as_save_IFS 7849 7850fi 7851fi 7852DLLTOOL=$ac_cv_prog_DLLTOOL 7853if test -n "$DLLTOOL"; then 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7855$as_echo "$DLLTOOL" >&6; } 7856else 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7858$as_echo "no" >&6; } 7859fi 7860 7861 7862fi 7863if test -z "$ac_cv_prog_DLLTOOL"; then 7864 ac_ct_DLLTOOL=$DLLTOOL 7865 # Extract the first word of "dlltool", so it can be a program name with args. 7866set dummy dlltool; ac_word=$2 7867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7868$as_echo_n "checking for $ac_word... " >&6; } 7869if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7870 $as_echo_n "(cached) " >&6 7871else 7872 if test -n "$ac_ct_DLLTOOL"; then 7873 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7874else 7875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7876for as_dir in $PATH 7877do 7878 IFS=$as_save_IFS 7879 test -z "$as_dir" && as_dir=. 7880 for ac_exec_ext in '' $ac_executable_extensions; do 7881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7882 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7884 break 2 7885 fi 7886done 7887 done 7888IFS=$as_save_IFS 7889 7890fi 7891fi 7892ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7893if test -n "$ac_ct_DLLTOOL"; then 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7895$as_echo "$ac_ct_DLLTOOL" >&6; } 7896else 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7898$as_echo "no" >&6; } 7899fi 7900 7901 if test "x$ac_ct_DLLTOOL" = x; then 7902 DLLTOOL="false" 7903 else 7904 case $cross_compiling:$ac_tool_warned in 7905yes:) 7906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7908ac_tool_warned=yes ;; 7909esac 7910 DLLTOOL=$ac_ct_DLLTOOL 7911 fi 7912else 7913 DLLTOOL="$ac_cv_prog_DLLTOOL" 7914fi 7915 7916test -z "$DLLTOOL" && DLLTOOL=dlltool 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7928$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7929if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7930 $as_echo_n "(cached) " >&6 7931else 7932 lt_cv_sharedlib_from_linklib_cmd='unknown' 7933 7934case $host_os in 7935cygwin* | mingw* | pw32* | cegcc*) 7936 # two different shell functions defined in ltmain.sh 7937 # decide which to use based on capabilities of $DLLTOOL 7938 case `$DLLTOOL --help 2>&1` in 7939 *--identify-strict*) 7940 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7941 ;; 7942 *) 7943 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7944 ;; 7945 esac 7946 ;; 7947*) 7948 # fallback: assume linklib IS sharedlib 7949 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 7950 ;; 7951esac 7952 7953fi 7954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7955$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7956sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7957test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7958 7959 7960 7961 7962 7963 7964 7965if test -n "$ac_tool_prefix"; then 7966 for ac_prog in ar 7967 do 7968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7969set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7971$as_echo_n "checking for $ac_word... " >&6; } 7972if ${ac_cv_prog_AR+:} false; then : 7973 $as_echo_n "(cached) " >&6 7974else 7975 if test -n "$AR"; then 7976 ac_cv_prog_AR="$AR" # Let the user override the test. 7977else 7978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7979for as_dir in $PATH 7980do 7981 IFS=$as_save_IFS 7982 test -z "$as_dir" && as_dir=. 7983 for ac_exec_ext in '' $ac_executable_extensions; do 7984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7985 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7987 break 2 7988 fi 7989done 7990 done 7991IFS=$as_save_IFS 7992 7993fi 7994fi 7995AR=$ac_cv_prog_AR 7996if test -n "$AR"; then 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7998$as_echo "$AR" >&6; } 7999else 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8001$as_echo "no" >&6; } 8002fi 8003 8004 8005 test -n "$AR" && break 8006 done 8007fi 8008if test -z "$AR"; then 8009 ac_ct_AR=$AR 8010 for ac_prog in ar 8011do 8012 # Extract the first word of "$ac_prog", so it can be a program name with args. 8013set dummy $ac_prog; ac_word=$2 8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8015$as_echo_n "checking for $ac_word... " >&6; } 8016if ${ac_cv_prog_ac_ct_AR+:} false; then : 8017 $as_echo_n "(cached) " >&6 8018else 8019 if test -n "$ac_ct_AR"; then 8020 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8021else 8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8023for as_dir in $PATH 8024do 8025 IFS=$as_save_IFS 8026 test -z "$as_dir" && as_dir=. 8027 for ac_exec_ext in '' $ac_executable_extensions; do 8028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8029 ac_cv_prog_ac_ct_AR="$ac_prog" 8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8031 break 2 8032 fi 8033done 8034 done 8035IFS=$as_save_IFS 8036 8037fi 8038fi 8039ac_ct_AR=$ac_cv_prog_ac_ct_AR 8040if test -n "$ac_ct_AR"; then 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8042$as_echo "$ac_ct_AR" >&6; } 8043else 8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8045$as_echo "no" >&6; } 8046fi 8047 8048 8049 test -n "$ac_ct_AR" && break 8050done 8051 8052 if test "x$ac_ct_AR" = x; then 8053 AR="false" 8054 else 8055 case $cross_compiling:$ac_tool_warned in 8056yes:) 8057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8059ac_tool_warned=yes ;; 8060esac 8061 AR=$ac_ct_AR 8062 fi 8063fi 8064 8065: ${AR=ar} 8066: ${AR_FLAGS=cru} 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8079$as_echo_n "checking for archiver @FILE support... " >&6; } 8080if ${lt_cv_ar_at_file+:} false; then : 8081 $as_echo_n "(cached) " >&6 8082else 8083 lt_cv_ar_at_file=no 8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8085/* end confdefs.h. */ 8086 8087int 8088main () 8089{ 8090 8091 ; 8092 return 0; 8093} 8094_ACEOF 8095if ac_fn_c_try_compile "$LINENO"; then : 8096 echo conftest.$ac_objext > conftest.lst 8097 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8099 (eval $lt_ar_try) 2>&5 8100 ac_status=$? 8101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8102 test $ac_status = 0; } 8103 if test "$ac_status" -eq 0; then 8104 # Ensure the archiver fails upon bogus file names. 8105 rm -f conftest.$ac_objext libconftest.a 8106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8107 (eval $lt_ar_try) 2>&5 8108 ac_status=$? 8109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8110 test $ac_status = 0; } 8111 if test "$ac_status" -ne 0; then 8112 lt_cv_ar_at_file=@ 8113 fi 8114 fi 8115 rm -f conftest.* libconftest.a 8116 8117fi 8118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8119 8120fi 8121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8122$as_echo "$lt_cv_ar_at_file" >&6; } 8123 8124if test "x$lt_cv_ar_at_file" = xno; then 8125 archiver_list_spec= 8126else 8127 archiver_list_spec=$lt_cv_ar_at_file 8128fi 8129 8130 8131 8132 8133 8134 8135 8136if test -n "$ac_tool_prefix"; then 8137 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8138set dummy ${ac_tool_prefix}strip; ac_word=$2 8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8140$as_echo_n "checking for $ac_word... " >&6; } 8141if ${ac_cv_prog_STRIP+:} false; then : 8142 $as_echo_n "(cached) " >&6 8143else 8144 if test -n "$STRIP"; then 8145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8146else 8147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8148for as_dir in $PATH 8149do 8150 IFS=$as_save_IFS 8151 test -z "$as_dir" && as_dir=. 8152 for ac_exec_ext in '' $ac_executable_extensions; do 8153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8154 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8156 break 2 8157 fi 8158done 8159 done 8160IFS=$as_save_IFS 8161 8162fi 8163fi 8164STRIP=$ac_cv_prog_STRIP 8165if test -n "$STRIP"; then 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8167$as_echo "$STRIP" >&6; } 8168else 8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8170$as_echo "no" >&6; } 8171fi 8172 8173 8174fi 8175if test -z "$ac_cv_prog_STRIP"; then 8176 ac_ct_STRIP=$STRIP 8177 # Extract the first word of "strip", so it can be a program name with args. 8178set dummy strip; ac_word=$2 8179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8180$as_echo_n "checking for $ac_word... " >&6; } 8181if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8182 $as_echo_n "(cached) " >&6 8183else 8184 if test -n "$ac_ct_STRIP"; then 8185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8186else 8187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8188for as_dir in $PATH 8189do 8190 IFS=$as_save_IFS 8191 test -z "$as_dir" && as_dir=. 8192 for ac_exec_ext in '' $ac_executable_extensions; do 8193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8194 ac_cv_prog_ac_ct_STRIP="strip" 8195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8196 break 2 8197 fi 8198done 8199 done 8200IFS=$as_save_IFS 8201 8202fi 8203fi 8204ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8205if test -n "$ac_ct_STRIP"; then 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8207$as_echo "$ac_ct_STRIP" >&6; } 8208else 8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8210$as_echo "no" >&6; } 8211fi 8212 8213 if test "x$ac_ct_STRIP" = x; then 8214 STRIP=":" 8215 else 8216 case $cross_compiling:$ac_tool_warned in 8217yes:) 8218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8220ac_tool_warned=yes ;; 8221esac 8222 STRIP=$ac_ct_STRIP 8223 fi 8224else 8225 STRIP="$ac_cv_prog_STRIP" 8226fi 8227 8228test -z "$STRIP" && STRIP=: 8229 8230 8231 8232 8233 8234 8235if test -n "$ac_tool_prefix"; then 8236 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8237set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8239$as_echo_n "checking for $ac_word... " >&6; } 8240if ${ac_cv_prog_RANLIB+:} false; then : 8241 $as_echo_n "(cached) " >&6 8242else 8243 if test -n "$RANLIB"; then 8244 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8245else 8246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8247for as_dir in $PATH 8248do 8249 IFS=$as_save_IFS 8250 test -z "$as_dir" && as_dir=. 8251 for ac_exec_ext in '' $ac_executable_extensions; do 8252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8253 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8255 break 2 8256 fi 8257done 8258 done 8259IFS=$as_save_IFS 8260 8261fi 8262fi 8263RANLIB=$ac_cv_prog_RANLIB 8264if test -n "$RANLIB"; then 8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8266$as_echo "$RANLIB" >&6; } 8267else 8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8269$as_echo "no" >&6; } 8270fi 8271 8272 8273fi 8274if test -z "$ac_cv_prog_RANLIB"; then 8275 ac_ct_RANLIB=$RANLIB 8276 # Extract the first word of "ranlib", so it can be a program name with args. 8277set dummy ranlib; ac_word=$2 8278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8279$as_echo_n "checking for $ac_word... " >&6; } 8280if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8281 $as_echo_n "(cached) " >&6 8282else 8283 if test -n "$ac_ct_RANLIB"; then 8284 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8285else 8286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8287for as_dir in $PATH 8288do 8289 IFS=$as_save_IFS 8290 test -z "$as_dir" && as_dir=. 8291 for ac_exec_ext in '' $ac_executable_extensions; do 8292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8293 ac_cv_prog_ac_ct_RANLIB="ranlib" 8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8295 break 2 8296 fi 8297done 8298 done 8299IFS=$as_save_IFS 8300 8301fi 8302fi 8303ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8304if test -n "$ac_ct_RANLIB"; then 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8306$as_echo "$ac_ct_RANLIB" >&6; } 8307else 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8309$as_echo "no" >&6; } 8310fi 8311 8312 if test "x$ac_ct_RANLIB" = x; then 8313 RANLIB=":" 8314 else 8315 case $cross_compiling:$ac_tool_warned in 8316yes:) 8317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8319ac_tool_warned=yes ;; 8320esac 8321 RANLIB=$ac_ct_RANLIB 8322 fi 8323else 8324 RANLIB="$ac_cv_prog_RANLIB" 8325fi 8326 8327test -z "$RANLIB" && RANLIB=: 8328 8329 8330 8331 8332 8333 8334# Determine commands to create old-style static archives. 8335old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8336old_postinstall_cmds='chmod 644 $oldlib' 8337old_postuninstall_cmds= 8338 8339if test -n "$RANLIB"; then 8340 case $host_os in 8341 openbsd*) 8342 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8343 ;; 8344 *) 8345 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8346 ;; 8347 esac 8348 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8349fi 8350 8351case $host_os in 8352 darwin*) 8353 lock_old_archive_extraction=yes ;; 8354 *) 8355 lock_old_archive_extraction=no ;; 8356esac 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378for ac_prog in gawk mawk nawk awk 8379do 8380 # Extract the first word of "$ac_prog", so it can be a program name with args. 8381set dummy $ac_prog; ac_word=$2 8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8383$as_echo_n "checking for $ac_word... " >&6; } 8384if ${ac_cv_prog_AWK+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 if test -n "$AWK"; then 8388 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8389else 8390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8391for as_dir in $PATH 8392do 8393 IFS=$as_save_IFS 8394 test -z "$as_dir" && as_dir=. 8395 for ac_exec_ext in '' $ac_executable_extensions; do 8396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8397 ac_cv_prog_AWK="$ac_prog" 8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8399 break 2 8400 fi 8401done 8402 done 8403IFS=$as_save_IFS 8404 8405fi 8406fi 8407AWK=$ac_cv_prog_AWK 8408if test -n "$AWK"; then 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8410$as_echo "$AWK" >&6; } 8411else 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8413$as_echo "no" >&6; } 8414fi 8415 8416 8417 test -n "$AWK" && break 8418done 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438# If no C compiler was specified, use CC. 8439LTCC=${LTCC-"$CC"} 8440 8441# If no C compiler flags were specified, use CFLAGS. 8442LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8443 8444# Allow CC to be a program name with arguments. 8445compiler=$CC 8446 8447 8448# Check for command to grab the raw symbol name followed by C symbol from nm. 8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8450$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8451if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8452 $as_echo_n "(cached) " >&6 8453else 8454 8455# These are sane defaults that work on at least a few old systems. 8456# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8457 8458# Character class describing NM global symbol codes. 8459symcode='[BCDEGRST]' 8460 8461# Regexp to match symbols that can be accessed directly from C. 8462sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8463 8464# Define system-specific variables. 8465case $host_os in 8466aix*) 8467 symcode='[BCDT]' 8468 ;; 8469cygwin* | mingw* | pw32* | cegcc*) 8470 symcode='[ABCDGISTW]' 8471 ;; 8472hpux*) 8473 if test "$host_cpu" = ia64; then 8474 symcode='[ABCDEGRST]' 8475 fi 8476 ;; 8477irix* | nonstopux*) 8478 symcode='[BCDEGRST]' 8479 ;; 8480osf*) 8481 symcode='[BCDEGQRST]' 8482 ;; 8483solaris*) 8484 symcode='[BDRT]' 8485 ;; 8486sco3.2v5*) 8487 symcode='[DT]' 8488 ;; 8489sysv4.2uw2*) 8490 symcode='[DT]' 8491 ;; 8492sysv5* | sco5v6* | unixware* | OpenUNIX*) 8493 symcode='[ABDT]' 8494 ;; 8495sysv4) 8496 symcode='[DFNSTU]' 8497 ;; 8498esac 8499 8500# If we're using GNU nm, then use its standard symbol codes. 8501case `$NM -V 2>&1` in 8502*GNU* | *'with BFD'*) 8503 symcode='[ABCDGIRSTW]' ;; 8504esac 8505 8506# Transform an extracted symbol line into a proper C declaration. 8507# Some systems (esp. on ia64) link data and code symbols differently, 8508# so use this general approach. 8509lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8510 8511# Transform an extracted symbol line into symbol name and symbol address 8512lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 8513lt_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'" 8514 8515# Handle CRLF in mingw tool chain 8516opt_cr= 8517case $build_os in 8518mingw*) 8519 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8520 ;; 8521esac 8522 8523# Try without a prefix underscore, then with it. 8524for ac_symprfx in "" "_"; do 8525 8526 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8527 symxfrm="\\1 $ac_symprfx\\2 \\2" 8528 8529 # Write the raw and C identifiers. 8530 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8531 # Fake it for dumpbin and say T for any non-static function 8532 # and D for any global variable. 8533 # Also find C++ and __fastcall symbols from MSVC++, 8534 # which start with @ or ?. 8535 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8536" {last_section=section; section=\$ 3};"\ 8537" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8538" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8539" \$ 0!~/External *\|/{next};"\ 8540" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8541" {if(hide[section]) next};"\ 8542" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 8543" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 8544" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 8545" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 8546" ' prfx=^$ac_symprfx" 8547 else 8548 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8549 fi 8550 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8551 8552 # Check to see that the pipe works correctly. 8553 pipe_works=no 8554 8555 rm -f conftest* 8556 cat > conftest.$ac_ext <<_LT_EOF 8557#ifdef __cplusplus 8558extern "C" { 8559#endif 8560char nm_test_var; 8561void nm_test_func(void); 8562void nm_test_func(void){} 8563#ifdef __cplusplus 8564} 8565#endif 8566int main(){nm_test_var='a';nm_test_func();return(0);} 8567_LT_EOF 8568 8569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8570 (eval $ac_compile) 2>&5 8571 ac_status=$? 8572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8573 test $ac_status = 0; }; then 8574 # Now try to grab the symbols. 8575 nlist=conftest.nm 8576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8577 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8578 ac_status=$? 8579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8580 test $ac_status = 0; } && test -s "$nlist"; then 8581 # Try sorting and uniquifying the output. 8582 if sort "$nlist" | uniq > "$nlist"T; then 8583 mv -f "$nlist"T "$nlist" 8584 else 8585 rm -f "$nlist"T 8586 fi 8587 8588 # Make sure that we snagged all the symbols we need. 8589 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8590 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8591 cat <<_LT_EOF > conftest.$ac_ext 8592/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8593#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 8594/* DATA imports from DLLs on WIN32 con't be const, because runtime 8595 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8596# define LT_DLSYM_CONST 8597#elif defined(__osf__) 8598/* This system does not cope well with relocations in const data. */ 8599# define LT_DLSYM_CONST 8600#else 8601# define LT_DLSYM_CONST const 8602#endif 8603 8604#ifdef __cplusplus 8605extern "C" { 8606#endif 8607 8608_LT_EOF 8609 # Now generate the symbol file. 8610 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8611 8612 cat <<_LT_EOF >> conftest.$ac_ext 8613 8614/* The mapping between symbol names and symbols. */ 8615LT_DLSYM_CONST struct { 8616 const char *name; 8617 void *address; 8618} 8619lt__PROGRAM__LTX_preloaded_symbols[] = 8620{ 8621 { "@PROGRAM@", (void *) 0 }, 8622_LT_EOF 8623 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8624 cat <<\_LT_EOF >> conftest.$ac_ext 8625 {0, (void *) 0} 8626}; 8627 8628/* This works around a problem in FreeBSD linker */ 8629#ifdef FREEBSD_WORKAROUND 8630static const void *lt_preloaded_setup() { 8631 return lt__PROGRAM__LTX_preloaded_symbols; 8632} 8633#endif 8634 8635#ifdef __cplusplus 8636} 8637#endif 8638_LT_EOF 8639 # Now try linking the two files. 8640 mv conftest.$ac_objext conftstm.$ac_objext 8641 lt_globsym_save_LIBS=$LIBS 8642 lt_globsym_save_CFLAGS=$CFLAGS 8643 LIBS="conftstm.$ac_objext" 8644 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8646 (eval $ac_link) 2>&5 8647 ac_status=$? 8648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8649 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8650 pipe_works=yes 8651 fi 8652 LIBS=$lt_globsym_save_LIBS 8653 CFLAGS=$lt_globsym_save_CFLAGS 8654 else 8655 echo "cannot find nm_test_func in $nlist" >&5 8656 fi 8657 else 8658 echo "cannot find nm_test_var in $nlist" >&5 8659 fi 8660 else 8661 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8662 fi 8663 else 8664 echo "$progname: failed program was:" >&5 8665 cat conftest.$ac_ext >&5 8666 fi 8667 rm -rf conftest* conftst* 8668 8669 # Do not use the global_symbol_pipe unless it works. 8670 if test "$pipe_works" = yes; then 8671 break 8672 else 8673 lt_cv_sys_global_symbol_pipe= 8674 fi 8675done 8676 8677fi 8678 8679if test -z "$lt_cv_sys_global_symbol_pipe"; then 8680 lt_cv_sys_global_symbol_to_cdecl= 8681fi 8682if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8684$as_echo "failed" >&6; } 8685else 8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8687$as_echo "ok" >&6; } 8688fi 8689 8690# Response file support. 8691if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8692 nm_file_list_spec='@' 8693elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8694 nm_file_list_spec='@' 8695fi 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8724$as_echo_n "checking for sysroot... " >&6; } 8725 8726# Check whether --with-sysroot was given. 8727if test "${with_sysroot+set}" = set; then : 8728 withval=$with_sysroot; 8729else 8730 with_sysroot=no 8731fi 8732 8733 8734lt_sysroot= 8735case ${with_sysroot} in #( 8736 yes) 8737 if test "$GCC" = yes; then 8738 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8739 fi 8740 ;; #( 8741 /*) 8742 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8743 ;; #( 8744 no|'') 8745 ;; #( 8746 *) 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 8748$as_echo "${with_sysroot}" >&6; } 8749 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8750 ;; 8751esac 8752 8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8754$as_echo "${lt_sysroot:-no}" >&6; } 8755 8756 8757 8758 8759 8760# Check whether --enable-libtool-lock was given. 8761if test "${enable_libtool_lock+set}" = set; then : 8762 enableval=$enable_libtool_lock; 8763fi 8764 8765test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8766 8767# Some flags need to be propagated to the compiler or linker for good 8768# libtool support. 8769case $host in 8770ia64-*-hpux*) 8771 # Find out which ABI we are using. 8772 echo 'int i;' > conftest.$ac_ext 8773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8774 (eval $ac_compile) 2>&5 8775 ac_status=$? 8776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8777 test $ac_status = 0; }; then 8778 case `/usr/bin/file conftest.$ac_objext` in 8779 *ELF-32*) 8780 HPUX_IA64_MODE="32" 8781 ;; 8782 *ELF-64*) 8783 HPUX_IA64_MODE="64" 8784 ;; 8785 esac 8786 fi 8787 rm -rf conftest* 8788 ;; 8789*-*-irix6*) 8790 # Find out which ABI we are using. 8791 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8793 (eval $ac_compile) 2>&5 8794 ac_status=$? 8795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8796 test $ac_status = 0; }; then 8797 if test "$lt_cv_prog_gnu_ld" = yes; then 8798 case `/usr/bin/file conftest.$ac_objext` in 8799 *32-bit*) 8800 LD="${LD-ld} -melf32bsmip" 8801 ;; 8802 *N32*) 8803 LD="${LD-ld} -melf32bmipn32" 8804 ;; 8805 *64-bit*) 8806 LD="${LD-ld} -melf64bmip" 8807 ;; 8808 esac 8809 else 8810 case `/usr/bin/file conftest.$ac_objext` in 8811 *32-bit*) 8812 LD="${LD-ld} -32" 8813 ;; 8814 *N32*) 8815 LD="${LD-ld} -n32" 8816 ;; 8817 *64-bit*) 8818 LD="${LD-ld} -64" 8819 ;; 8820 esac 8821 fi 8822 fi 8823 rm -rf conftest* 8824 ;; 8825 8826x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8827s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8828 # Find out which ABI we are using. 8829 echo 'int i;' > conftest.$ac_ext 8830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8831 (eval $ac_compile) 2>&5 8832 ac_status=$? 8833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8834 test $ac_status = 0; }; then 8835 case `/usr/bin/file conftest.o` in 8836 *32-bit*) 8837 case $host in 8838 x86_64-*kfreebsd*-gnu) 8839 LD="${LD-ld} -m elf_i386_fbsd" 8840 ;; 8841 x86_64-*linux*) 8842 LD="${LD-ld} -m elf_i386" 8843 ;; 8844 powerpc64le-*linux*) 8845 LD="${LD-ld} -m elf32lppclinux" 8846 ;; 8847 powerpc64-*linux*) 8848 LD="${LD-ld} -m elf32ppclinux" 8849 ;; 8850 s390x-*linux*) 8851 LD="${LD-ld} -m elf_s390" 8852 ;; 8853 sparc64-*linux*) 8854 LD="${LD-ld} -m elf32_sparc" 8855 ;; 8856 esac 8857 ;; 8858 *64-bit*) 8859 case $host in 8860 x86_64-*kfreebsd*-gnu) 8861 LD="${LD-ld} -m elf_x86_64_fbsd" 8862 ;; 8863 x86_64-*linux*) 8864 LD="${LD-ld} -m elf_x86_64" 8865 ;; 8866 powerpcle-*linux*) 8867 LD="${LD-ld} -m elf64lppc" 8868 ;; 8869 powerpc-*linux*) 8870 LD="${LD-ld} -m elf64ppc" 8871 ;; 8872 s390*-*linux*|s390*-*tpf*) 8873 LD="${LD-ld} -m elf64_s390" 8874 ;; 8875 sparc*-*linux*) 8876 LD="${LD-ld} -m elf64_sparc" 8877 ;; 8878 esac 8879 ;; 8880 esac 8881 fi 8882 rm -rf conftest* 8883 ;; 8884 8885*-*-sco3.2v5*) 8886 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8887 SAVE_CFLAGS="$CFLAGS" 8888 CFLAGS="$CFLAGS -belf" 8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8890$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8891if ${lt_cv_cc_needs_belf+:} false; then : 8892 $as_echo_n "(cached) " >&6 8893else 8894 ac_ext=c 8895ac_cpp='$CPP $CPPFLAGS' 8896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8898ac_compiler_gnu=$ac_cv_c_compiler_gnu 8899 8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8901/* end confdefs.h. */ 8902 8903int 8904main () 8905{ 8906 8907 ; 8908 return 0; 8909} 8910_ACEOF 8911if ac_fn_c_try_link "$LINENO"; then : 8912 lt_cv_cc_needs_belf=yes 8913else 8914 lt_cv_cc_needs_belf=no 8915fi 8916rm -f core conftest.err conftest.$ac_objext \ 8917 conftest$ac_exeext conftest.$ac_ext 8918 ac_ext=c 8919ac_cpp='$CPP $CPPFLAGS' 8920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8922ac_compiler_gnu=$ac_cv_c_compiler_gnu 8923 8924fi 8925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8926$as_echo "$lt_cv_cc_needs_belf" >&6; } 8927 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8928 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8929 CFLAGS="$SAVE_CFLAGS" 8930 fi 8931 ;; 8932*-*solaris*) 8933 # Find out which ABI we are using. 8934 echo 'int i;' > conftest.$ac_ext 8935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8936 (eval $ac_compile) 2>&5 8937 ac_status=$? 8938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8939 test $ac_status = 0; }; then 8940 case `/usr/bin/file conftest.o` in 8941 *64-bit*) 8942 case $lt_cv_prog_gnu_ld in 8943 yes*) 8944 case $host in 8945 i?86-*-solaris*) 8946 LD="${LD-ld} -m elf_x86_64" 8947 ;; 8948 sparc*-*-solaris*) 8949 LD="${LD-ld} -m elf64_sparc" 8950 ;; 8951 esac 8952 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8953 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8954 LD="${LD-ld}_sol2" 8955 fi 8956 ;; 8957 *) 8958 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8959 LD="${LD-ld} -64" 8960 fi 8961 ;; 8962 esac 8963 ;; 8964 esac 8965 fi 8966 rm -rf conftest* 8967 ;; 8968esac 8969 8970need_locks="$enable_libtool_lock" 8971 8972if test -n "$ac_tool_prefix"; then 8973 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8974set dummy ${ac_tool_prefix}mt; ac_word=$2 8975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8976$as_echo_n "checking for $ac_word... " >&6; } 8977if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8978 $as_echo_n "(cached) " >&6 8979else 8980 if test -n "$MANIFEST_TOOL"; then 8981 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8982else 8983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8984for as_dir in $PATH 8985do 8986 IFS=$as_save_IFS 8987 test -z "$as_dir" && as_dir=. 8988 for ac_exec_ext in '' $ac_executable_extensions; do 8989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8990 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8992 break 2 8993 fi 8994done 8995 done 8996IFS=$as_save_IFS 8997 8998fi 8999fi 9000MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9001if test -n "$MANIFEST_TOOL"; then 9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9003$as_echo "$MANIFEST_TOOL" >&6; } 9004else 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9006$as_echo "no" >&6; } 9007fi 9008 9009 9010fi 9011if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9012 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9013 # Extract the first word of "mt", so it can be a program name with args. 9014set dummy mt; ac_word=$2 9015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9016$as_echo_n "checking for $ac_word... " >&6; } 9017if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9018 $as_echo_n "(cached) " >&6 9019else 9020 if test -n "$ac_ct_MANIFEST_TOOL"; then 9021 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9022else 9023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9024for as_dir in $PATH 9025do 9026 IFS=$as_save_IFS 9027 test -z "$as_dir" && as_dir=. 9028 for ac_exec_ext in '' $ac_executable_extensions; do 9029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9030 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9032 break 2 9033 fi 9034done 9035 done 9036IFS=$as_save_IFS 9037 9038fi 9039fi 9040ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9041if test -n "$ac_ct_MANIFEST_TOOL"; then 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9043$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9044else 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9046$as_echo "no" >&6; } 9047fi 9048 9049 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9050 MANIFEST_TOOL=":" 9051 else 9052 case $cross_compiling:$ac_tool_warned in 9053yes:) 9054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9056ac_tool_warned=yes ;; 9057esac 9058 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9059 fi 9060else 9061 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9062fi 9063 9064test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9066$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9067if ${lt_cv_path_mainfest_tool+:} false; then : 9068 $as_echo_n "(cached) " >&6 9069else 9070 lt_cv_path_mainfest_tool=no 9071 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9072 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9073 cat conftest.err >&5 9074 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9075 lt_cv_path_mainfest_tool=yes 9076 fi 9077 rm -f conftest* 9078fi 9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9080$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9081if test "x$lt_cv_path_mainfest_tool" != xyes; then 9082 MANIFEST_TOOL=: 9083fi 9084 9085 9086 9087 9088 9089 9090 case $host_os in 9091 rhapsody* | darwin*) 9092 if test -n "$ac_tool_prefix"; then 9093 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9094set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9096$as_echo_n "checking for $ac_word... " >&6; } 9097if ${ac_cv_prog_DSYMUTIL+:} false; then : 9098 $as_echo_n "(cached) " >&6 9099else 9100 if test -n "$DSYMUTIL"; then 9101 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9102else 9103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9104for as_dir in $PATH 9105do 9106 IFS=$as_save_IFS 9107 test -z "$as_dir" && as_dir=. 9108 for ac_exec_ext in '' $ac_executable_extensions; do 9109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9110 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9112 break 2 9113 fi 9114done 9115 done 9116IFS=$as_save_IFS 9117 9118fi 9119fi 9120DSYMUTIL=$ac_cv_prog_DSYMUTIL 9121if test -n "$DSYMUTIL"; then 9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9123$as_echo "$DSYMUTIL" >&6; } 9124else 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9126$as_echo "no" >&6; } 9127fi 9128 9129 9130fi 9131if test -z "$ac_cv_prog_DSYMUTIL"; then 9132 ac_ct_DSYMUTIL=$DSYMUTIL 9133 # Extract the first word of "dsymutil", so it can be a program name with args. 9134set dummy dsymutil; ac_word=$2 9135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9136$as_echo_n "checking for $ac_word... " >&6; } 9137if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9138 $as_echo_n "(cached) " >&6 9139else 9140 if test -n "$ac_ct_DSYMUTIL"; then 9141 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9142else 9143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9144for as_dir in $PATH 9145do 9146 IFS=$as_save_IFS 9147 test -z "$as_dir" && as_dir=. 9148 for ac_exec_ext in '' $ac_executable_extensions; do 9149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9150 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9152 break 2 9153 fi 9154done 9155 done 9156IFS=$as_save_IFS 9157 9158fi 9159fi 9160ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9161if test -n "$ac_ct_DSYMUTIL"; then 9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9163$as_echo "$ac_ct_DSYMUTIL" >&6; } 9164else 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9166$as_echo "no" >&6; } 9167fi 9168 9169 if test "x$ac_ct_DSYMUTIL" = x; then 9170 DSYMUTIL=":" 9171 else 9172 case $cross_compiling:$ac_tool_warned in 9173yes:) 9174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9176ac_tool_warned=yes ;; 9177esac 9178 DSYMUTIL=$ac_ct_DSYMUTIL 9179 fi 9180else 9181 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9182fi 9183 9184 if test -n "$ac_tool_prefix"; then 9185 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9186set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9188$as_echo_n "checking for $ac_word... " >&6; } 9189if ${ac_cv_prog_NMEDIT+:} false; then : 9190 $as_echo_n "(cached) " >&6 9191else 9192 if test -n "$NMEDIT"; then 9193 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9194else 9195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9196for as_dir in $PATH 9197do 9198 IFS=$as_save_IFS 9199 test -z "$as_dir" && as_dir=. 9200 for ac_exec_ext in '' $ac_executable_extensions; do 9201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9202 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9204 break 2 9205 fi 9206done 9207 done 9208IFS=$as_save_IFS 9209 9210fi 9211fi 9212NMEDIT=$ac_cv_prog_NMEDIT 9213if test -n "$NMEDIT"; then 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9215$as_echo "$NMEDIT" >&6; } 9216else 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9218$as_echo "no" >&6; } 9219fi 9220 9221 9222fi 9223if test -z "$ac_cv_prog_NMEDIT"; then 9224 ac_ct_NMEDIT=$NMEDIT 9225 # Extract the first word of "nmedit", so it can be a program name with args. 9226set dummy nmedit; ac_word=$2 9227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9228$as_echo_n "checking for $ac_word... " >&6; } 9229if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9230 $as_echo_n "(cached) " >&6 9231else 9232 if test -n "$ac_ct_NMEDIT"; then 9233 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9234else 9235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9236for as_dir in $PATH 9237do 9238 IFS=$as_save_IFS 9239 test -z "$as_dir" && as_dir=. 9240 for ac_exec_ext in '' $ac_executable_extensions; do 9241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9242 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9244 break 2 9245 fi 9246done 9247 done 9248IFS=$as_save_IFS 9249 9250fi 9251fi 9252ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9253if test -n "$ac_ct_NMEDIT"; then 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9255$as_echo "$ac_ct_NMEDIT" >&6; } 9256else 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9258$as_echo "no" >&6; } 9259fi 9260 9261 if test "x$ac_ct_NMEDIT" = x; then 9262 NMEDIT=":" 9263 else 9264 case $cross_compiling:$ac_tool_warned in 9265yes:) 9266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9268ac_tool_warned=yes ;; 9269esac 9270 NMEDIT=$ac_ct_NMEDIT 9271 fi 9272else 9273 NMEDIT="$ac_cv_prog_NMEDIT" 9274fi 9275 9276 if test -n "$ac_tool_prefix"; then 9277 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9278set dummy ${ac_tool_prefix}lipo; ac_word=$2 9279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9280$as_echo_n "checking for $ac_word... " >&6; } 9281if ${ac_cv_prog_LIPO+:} false; then : 9282 $as_echo_n "(cached) " >&6 9283else 9284 if test -n "$LIPO"; then 9285 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9286else 9287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9288for as_dir in $PATH 9289do 9290 IFS=$as_save_IFS 9291 test -z "$as_dir" && as_dir=. 9292 for ac_exec_ext in '' $ac_executable_extensions; do 9293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9294 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9296 break 2 9297 fi 9298done 9299 done 9300IFS=$as_save_IFS 9301 9302fi 9303fi 9304LIPO=$ac_cv_prog_LIPO 9305if test -n "$LIPO"; then 9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9307$as_echo "$LIPO" >&6; } 9308else 9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9310$as_echo "no" >&6; } 9311fi 9312 9313 9314fi 9315if test -z "$ac_cv_prog_LIPO"; then 9316 ac_ct_LIPO=$LIPO 9317 # Extract the first word of "lipo", so it can be a program name with args. 9318set dummy lipo; ac_word=$2 9319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9320$as_echo_n "checking for $ac_word... " >&6; } 9321if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9322 $as_echo_n "(cached) " >&6 9323else 9324 if test -n "$ac_ct_LIPO"; then 9325 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9326else 9327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9328for as_dir in $PATH 9329do 9330 IFS=$as_save_IFS 9331 test -z "$as_dir" && as_dir=. 9332 for ac_exec_ext in '' $ac_executable_extensions; do 9333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9334 ac_cv_prog_ac_ct_LIPO="lipo" 9335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9336 break 2 9337 fi 9338done 9339 done 9340IFS=$as_save_IFS 9341 9342fi 9343fi 9344ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9345if test -n "$ac_ct_LIPO"; then 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9347$as_echo "$ac_ct_LIPO" >&6; } 9348else 9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9350$as_echo "no" >&6; } 9351fi 9352 9353 if test "x$ac_ct_LIPO" = x; then 9354 LIPO=":" 9355 else 9356 case $cross_compiling:$ac_tool_warned in 9357yes:) 9358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9360ac_tool_warned=yes ;; 9361esac 9362 LIPO=$ac_ct_LIPO 9363 fi 9364else 9365 LIPO="$ac_cv_prog_LIPO" 9366fi 9367 9368 if test -n "$ac_tool_prefix"; then 9369 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9370set dummy ${ac_tool_prefix}otool; ac_word=$2 9371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9372$as_echo_n "checking for $ac_word... " >&6; } 9373if ${ac_cv_prog_OTOOL+:} false; then : 9374 $as_echo_n "(cached) " >&6 9375else 9376 if test -n "$OTOOL"; then 9377 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9378else 9379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9380for as_dir in $PATH 9381do 9382 IFS=$as_save_IFS 9383 test -z "$as_dir" && as_dir=. 9384 for ac_exec_ext in '' $ac_executable_extensions; do 9385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9386 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9388 break 2 9389 fi 9390done 9391 done 9392IFS=$as_save_IFS 9393 9394fi 9395fi 9396OTOOL=$ac_cv_prog_OTOOL 9397if test -n "$OTOOL"; then 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9399$as_echo "$OTOOL" >&6; } 9400else 9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9402$as_echo "no" >&6; } 9403fi 9404 9405 9406fi 9407if test -z "$ac_cv_prog_OTOOL"; then 9408 ac_ct_OTOOL=$OTOOL 9409 # Extract the first word of "otool", so it can be a program name with args. 9410set dummy otool; ac_word=$2 9411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9412$as_echo_n "checking for $ac_word... " >&6; } 9413if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9414 $as_echo_n "(cached) " >&6 9415else 9416 if test -n "$ac_ct_OTOOL"; then 9417 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9418else 9419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9420for as_dir in $PATH 9421do 9422 IFS=$as_save_IFS 9423 test -z "$as_dir" && as_dir=. 9424 for ac_exec_ext in '' $ac_executable_extensions; do 9425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9426 ac_cv_prog_ac_ct_OTOOL="otool" 9427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9428 break 2 9429 fi 9430done 9431 done 9432IFS=$as_save_IFS 9433 9434fi 9435fi 9436ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9437if test -n "$ac_ct_OTOOL"; then 9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9439$as_echo "$ac_ct_OTOOL" >&6; } 9440else 9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9442$as_echo "no" >&6; } 9443fi 9444 9445 if test "x$ac_ct_OTOOL" = x; then 9446 OTOOL=":" 9447 else 9448 case $cross_compiling:$ac_tool_warned in 9449yes:) 9450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9452ac_tool_warned=yes ;; 9453esac 9454 OTOOL=$ac_ct_OTOOL 9455 fi 9456else 9457 OTOOL="$ac_cv_prog_OTOOL" 9458fi 9459 9460 if test -n "$ac_tool_prefix"; then 9461 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9462set dummy ${ac_tool_prefix}otool64; ac_word=$2 9463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9464$as_echo_n "checking for $ac_word... " >&6; } 9465if ${ac_cv_prog_OTOOL64+:} false; then : 9466 $as_echo_n "(cached) " >&6 9467else 9468 if test -n "$OTOOL64"; then 9469 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9470else 9471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9472for as_dir in $PATH 9473do 9474 IFS=$as_save_IFS 9475 test -z "$as_dir" && as_dir=. 9476 for ac_exec_ext in '' $ac_executable_extensions; do 9477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9478 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9480 break 2 9481 fi 9482done 9483 done 9484IFS=$as_save_IFS 9485 9486fi 9487fi 9488OTOOL64=$ac_cv_prog_OTOOL64 9489if test -n "$OTOOL64"; then 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9491$as_echo "$OTOOL64" >&6; } 9492else 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9494$as_echo "no" >&6; } 9495fi 9496 9497 9498fi 9499if test -z "$ac_cv_prog_OTOOL64"; then 9500 ac_ct_OTOOL64=$OTOOL64 9501 # Extract the first word of "otool64", so it can be a program name with args. 9502set dummy otool64; ac_word=$2 9503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9504$as_echo_n "checking for $ac_word... " >&6; } 9505if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9506 $as_echo_n "(cached) " >&6 9507else 9508 if test -n "$ac_ct_OTOOL64"; then 9509 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9510else 9511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9512for as_dir in $PATH 9513do 9514 IFS=$as_save_IFS 9515 test -z "$as_dir" && as_dir=. 9516 for ac_exec_ext in '' $ac_executable_extensions; do 9517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9518 ac_cv_prog_ac_ct_OTOOL64="otool64" 9519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9520 break 2 9521 fi 9522done 9523 done 9524IFS=$as_save_IFS 9525 9526fi 9527fi 9528ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9529if test -n "$ac_ct_OTOOL64"; then 9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9531$as_echo "$ac_ct_OTOOL64" >&6; } 9532else 9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9534$as_echo "no" >&6; } 9535fi 9536 9537 if test "x$ac_ct_OTOOL64" = x; then 9538 OTOOL64=":" 9539 else 9540 case $cross_compiling:$ac_tool_warned in 9541yes:) 9542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9544ac_tool_warned=yes ;; 9545esac 9546 OTOOL64=$ac_ct_OTOOL64 9547 fi 9548else 9549 OTOOL64="$ac_cv_prog_OTOOL64" 9550fi 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9579$as_echo_n "checking for -single_module linker flag... " >&6; } 9580if ${lt_cv_apple_cc_single_mod+:} false; then : 9581 $as_echo_n "(cached) " >&6 9582else 9583 lt_cv_apple_cc_single_mod=no 9584 if test -z "${LT_MULTI_MODULE}"; then 9585 # By default we will add the -single_module flag. You can override 9586 # by either setting the environment variable LT_MULTI_MODULE 9587 # non-empty at configure time, or by adding -multi_module to the 9588 # link flags. 9589 rm -rf libconftest.dylib* 9590 echo "int foo(void){return 1;}" > conftest.c 9591 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9592-dynamiclib -Wl,-single_module conftest.c" >&5 9593 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9594 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9595 _lt_result=$? 9596 # If there is a non-empty error log, and "single_module" 9597 # appears in it, assume the flag caused a linker warning 9598 if test -s conftest.err && $GREP single_module conftest.err; then 9599 cat conftest.err >&5 9600 # Otherwise, if the output was created with a 0 exit code from 9601 # the compiler, it worked. 9602 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 9603 lt_cv_apple_cc_single_mod=yes 9604 else 9605 cat conftest.err >&5 9606 fi 9607 rm -rf libconftest.dylib* 9608 rm -f conftest.* 9609 fi 9610fi 9611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9612$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9613 9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9615$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9616if ${lt_cv_ld_exported_symbols_list+:} false; then : 9617 $as_echo_n "(cached) " >&6 9618else 9619 lt_cv_ld_exported_symbols_list=no 9620 save_LDFLAGS=$LDFLAGS 9621 echo "_main" > conftest.sym 9622 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9624/* end confdefs.h. */ 9625 9626int 9627main () 9628{ 9629 9630 ; 9631 return 0; 9632} 9633_ACEOF 9634if ac_fn_c_try_link "$LINENO"; then : 9635 lt_cv_ld_exported_symbols_list=yes 9636else 9637 lt_cv_ld_exported_symbols_list=no 9638fi 9639rm -f core conftest.err conftest.$ac_objext \ 9640 conftest$ac_exeext conftest.$ac_ext 9641 LDFLAGS="$save_LDFLAGS" 9642 9643fi 9644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9645$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9646 9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9648$as_echo_n "checking for -force_load linker flag... " >&6; } 9649if ${lt_cv_ld_force_load+:} false; then : 9650 $as_echo_n "(cached) " >&6 9651else 9652 lt_cv_ld_force_load=no 9653 cat > conftest.c << _LT_EOF 9654int forced_loaded() { return 2;} 9655_LT_EOF 9656 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9657 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9658 echo "$AR cru libconftest.a conftest.o" >&5 9659 $AR cru libconftest.a conftest.o 2>&5 9660 echo "$RANLIB libconftest.a" >&5 9661 $RANLIB libconftest.a 2>&5 9662 cat > conftest.c << _LT_EOF 9663int main() { return 0;} 9664_LT_EOF 9665 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9666 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9667 _lt_result=$? 9668 if test -s conftest.err && $GREP force_load conftest.err; then 9669 cat conftest.err >&5 9670 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 9671 lt_cv_ld_force_load=yes 9672 else 9673 cat conftest.err >&5 9674 fi 9675 rm -f conftest.err libconftest.a conftest conftest.c 9676 rm -rf conftest.dSYM 9677 9678fi 9679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9680$as_echo "$lt_cv_ld_force_load" >&6; } 9681 case $host_os in 9682 rhapsody* | darwin1.[012]) 9683 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 9684 darwin1.*) 9685 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9686 darwin*) # darwin 5.x on 9687 # if running on 10.5 or later, the deployment target defaults 9688 # to the OS version, if on x86, and 10.4, the deployment 9689 # target defaults to 10.4. Don't you love it? 9690 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9691 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9692 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9693 10.[012]*) 9694 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9695 10.*) 9696 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9697 esac 9698 ;; 9699 esac 9700 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9701 _lt_dar_single_mod='$single_module' 9702 fi 9703 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9704 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9705 else 9706 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9707 fi 9708 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9709 _lt_dsymutil='~$DSYMUTIL $lib || :' 9710 else 9711 _lt_dsymutil= 9712 fi 9713 ;; 9714 esac 9715 9716for ac_header in dlfcn.h 9717do : 9718 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9719" 9720if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9721 cat >>confdefs.h <<_ACEOF 9722#define HAVE_DLFCN_H 1 9723_ACEOF 9724 9725fi 9726 9727done 9728 9729 9730 9731 9732 9733 9734 9735# Set options 9736 9737 9738 9739 enable_dlopen=no 9740 9741 9742 enable_win32_dll=no 9743 9744 9745 # Check whether --enable-shared was given. 9746if test "${enable_shared+set}" = set; then : 9747 enableval=$enable_shared; p=${PACKAGE-default} 9748 case $enableval in 9749 yes) enable_shared=yes ;; 9750 no) enable_shared=no ;; 9751 *) 9752 enable_shared=no 9753 # Look at the argument we got. We use all the common list separators. 9754 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9755 for pkg in $enableval; do 9756 IFS="$lt_save_ifs" 9757 if test "X$pkg" = "X$p"; then 9758 enable_shared=yes 9759 fi 9760 done 9761 IFS="$lt_save_ifs" 9762 ;; 9763 esac 9764else 9765 enable_shared=yes 9766fi 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 # Check whether --enable-static was given. 9777if test "${enable_static+set}" = set; then : 9778 enableval=$enable_static; p=${PACKAGE-default} 9779 case $enableval in 9780 yes) enable_static=yes ;; 9781 no) enable_static=no ;; 9782 *) 9783 enable_static=no 9784 # Look at the argument we got. We use all the common list separators. 9785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9786 for pkg in $enableval; do 9787 IFS="$lt_save_ifs" 9788 if test "X$pkg" = "X$p"; then 9789 enable_static=yes 9790 fi 9791 done 9792 IFS="$lt_save_ifs" 9793 ;; 9794 esac 9795else 9796 enable_static=yes 9797fi 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808# Check whether --with-pic was given. 9809if test "${with_pic+set}" = set; then : 9810 withval=$with_pic; lt_p=${PACKAGE-default} 9811 case $withval in 9812 yes|no) pic_mode=$withval ;; 9813 *) 9814 pic_mode=default 9815 # Look at the argument we got. We use all the common list separators. 9816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9817 for lt_pkg in $withval; do 9818 IFS="$lt_save_ifs" 9819 if test "X$lt_pkg" = "X$lt_p"; then 9820 pic_mode=yes 9821 fi 9822 done 9823 IFS="$lt_save_ifs" 9824 ;; 9825 esac 9826else 9827 pic_mode=default 9828fi 9829 9830 9831test -z "$pic_mode" && pic_mode=default 9832 9833 9834 9835 9836 9837 9838 9839 # Check whether --enable-fast-install was given. 9840if test "${enable_fast_install+set}" = set; then : 9841 enableval=$enable_fast_install; p=${PACKAGE-default} 9842 case $enableval in 9843 yes) enable_fast_install=yes ;; 9844 no) enable_fast_install=no ;; 9845 *) 9846 enable_fast_install=no 9847 # Look at the argument we got. We use all the common list separators. 9848 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9849 for pkg in $enableval; do 9850 IFS="$lt_save_ifs" 9851 if test "X$pkg" = "X$p"; then 9852 enable_fast_install=yes 9853 fi 9854 done 9855 IFS="$lt_save_ifs" 9856 ;; 9857 esac 9858else 9859 enable_fast_install=yes 9860fi 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872# This can be used to rebuild libtool when needed 9873LIBTOOL_DEPS="$ltmain" 9874 9875# Always use our own libtool. 9876LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907test -z "$LN_S" && LN_S="ln -s" 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922if test -n "${ZSH_VERSION+set}" ; then 9923 setopt NO_GLOB_SUBST 9924fi 9925 9926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9927$as_echo_n "checking for objdir... " >&6; } 9928if ${lt_cv_objdir+:} false; then : 9929 $as_echo_n "(cached) " >&6 9930else 9931 rm -f .libs 2>/dev/null 9932mkdir .libs 2>/dev/null 9933if test -d .libs; then 9934 lt_cv_objdir=.libs 9935else 9936 # MS-DOS does not allow filenames that begin with a dot. 9937 lt_cv_objdir=_libs 9938fi 9939rmdir .libs 2>/dev/null 9940fi 9941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9942$as_echo "$lt_cv_objdir" >&6; } 9943objdir=$lt_cv_objdir 9944 9945 9946 9947 9948 9949cat >>confdefs.h <<_ACEOF 9950#define LT_OBJDIR "$lt_cv_objdir/" 9951_ACEOF 9952 9953 9954 9955 9956case $host_os in 9957aix3*) 9958 # AIX sometimes has problems with the GCC collect2 program. For some 9959 # reason, if we set the COLLECT_NAMES environment variable, the problems 9960 # vanish in a puff of smoke. 9961 if test "X${COLLECT_NAMES+set}" != Xset; then 9962 COLLECT_NAMES= 9963 export COLLECT_NAMES 9964 fi 9965 ;; 9966esac 9967 9968# Global variables: 9969ofile=libtool 9970can_build_shared=yes 9971 9972# All known linkers require a `.a' archive for static linking (except MSVC, 9973# which needs '.lib'). 9974libext=a 9975 9976with_gnu_ld="$lt_cv_prog_gnu_ld" 9977 9978old_CC="$CC" 9979old_CFLAGS="$CFLAGS" 9980 9981# Set sane defaults for various variables 9982test -z "$CC" && CC=cc 9983test -z "$LTCC" && LTCC=$CC 9984test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9985test -z "$LD" && LD=ld 9986test -z "$ac_objext" && ac_objext=o 9987 9988for cc_temp in $compiler""; do 9989 case $cc_temp in 9990 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9991 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9992 \-*) ;; 9993 *) break;; 9994 esac 9995done 9996cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9997 9998 9999# Only perform the check for file, if the check method requires it 10000test -z "$MAGIC_CMD" && MAGIC_CMD=file 10001case $deplibs_check_method in 10002file_magic*) 10003 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10005$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10006if ${lt_cv_path_MAGIC_CMD+:} false; then : 10007 $as_echo_n "(cached) " >&6 10008else 10009 case $MAGIC_CMD in 10010[\\/*] | ?:[\\/]*) 10011 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10012 ;; 10013*) 10014 lt_save_MAGIC_CMD="$MAGIC_CMD" 10015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10016 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10017 for ac_dir in $ac_dummy; do 10018 IFS="$lt_save_ifs" 10019 test -z "$ac_dir" && ac_dir=. 10020 if test -f $ac_dir/${ac_tool_prefix}file; then 10021 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10022 if test -n "$file_magic_test_file"; then 10023 case $deplibs_check_method in 10024 "file_magic "*) 10025 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10027 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10028 $EGREP "$file_magic_regex" > /dev/null; then 10029 : 10030 else 10031 cat <<_LT_EOF 1>&2 10032 10033*** Warning: the command libtool uses to detect shared libraries, 10034*** $file_magic_cmd, produces output that libtool cannot recognize. 10035*** The result is that libtool may fail to recognize shared libraries 10036*** as such. This will affect the creation of libtool libraries that 10037*** depend on shared libraries, but programs linked with such libtool 10038*** libraries will work regardless of this problem. Nevertheless, you 10039*** may want to report the problem to your system manager and/or to 10040*** bug-libtool@gnu.org 10041 10042_LT_EOF 10043 fi ;; 10044 esac 10045 fi 10046 break 10047 fi 10048 done 10049 IFS="$lt_save_ifs" 10050 MAGIC_CMD="$lt_save_MAGIC_CMD" 10051 ;; 10052esac 10053fi 10054 10055MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10056if test -n "$MAGIC_CMD"; then 10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10058$as_echo "$MAGIC_CMD" >&6; } 10059else 10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10061$as_echo "no" >&6; } 10062fi 10063 10064 10065 10066 10067 10068if test -z "$lt_cv_path_MAGIC_CMD"; then 10069 if test -n "$ac_tool_prefix"; then 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10071$as_echo_n "checking for file... " >&6; } 10072if ${lt_cv_path_MAGIC_CMD+:} false; then : 10073 $as_echo_n "(cached) " >&6 10074else 10075 case $MAGIC_CMD in 10076[\\/*] | ?:[\\/]*) 10077 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10078 ;; 10079*) 10080 lt_save_MAGIC_CMD="$MAGIC_CMD" 10081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10082 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10083 for ac_dir in $ac_dummy; do 10084 IFS="$lt_save_ifs" 10085 test -z "$ac_dir" && ac_dir=. 10086 if test -f $ac_dir/file; then 10087 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10088 if test -n "$file_magic_test_file"; then 10089 case $deplibs_check_method in 10090 "file_magic "*) 10091 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10093 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10094 $EGREP "$file_magic_regex" > /dev/null; then 10095 : 10096 else 10097 cat <<_LT_EOF 1>&2 10098 10099*** Warning: the command libtool uses to detect shared libraries, 10100*** $file_magic_cmd, produces output that libtool cannot recognize. 10101*** The result is that libtool may fail to recognize shared libraries 10102*** as such. This will affect the creation of libtool libraries that 10103*** depend on shared libraries, but programs linked with such libtool 10104*** libraries will work regardless of this problem. Nevertheless, you 10105*** may want to report the problem to your system manager and/or to 10106*** bug-libtool@gnu.org 10107 10108_LT_EOF 10109 fi ;; 10110 esac 10111 fi 10112 break 10113 fi 10114 done 10115 IFS="$lt_save_ifs" 10116 MAGIC_CMD="$lt_save_MAGIC_CMD" 10117 ;; 10118esac 10119fi 10120 10121MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10122if test -n "$MAGIC_CMD"; then 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10124$as_echo "$MAGIC_CMD" >&6; } 10125else 10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10127$as_echo "no" >&6; } 10128fi 10129 10130 10131 else 10132 MAGIC_CMD=: 10133 fi 10134fi 10135 10136 fi 10137 ;; 10138esac 10139 10140# Use C for the default configuration in the libtool script 10141 10142lt_save_CC="$CC" 10143ac_ext=c 10144ac_cpp='$CPP $CPPFLAGS' 10145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10147ac_compiler_gnu=$ac_cv_c_compiler_gnu 10148 10149 10150# Source file extension for C test sources. 10151ac_ext=c 10152 10153# Object file extension for compiled C test sources. 10154objext=o 10155objext=$objext 10156 10157# Code to be used in simple compile tests 10158lt_simple_compile_test_code="int some_variable = 0;" 10159 10160# Code to be used in simple link tests 10161lt_simple_link_test_code='int main(){return(0);}' 10162 10163 10164 10165 10166 10167 10168 10169# If no C compiler was specified, use CC. 10170LTCC=${LTCC-"$CC"} 10171 10172# If no C compiler flags were specified, use CFLAGS. 10173LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10174 10175# Allow CC to be a program name with arguments. 10176compiler=$CC 10177 10178# Save the default compiler, since it gets overwritten when the other 10179# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10180compiler_DEFAULT=$CC 10181 10182# save warnings/boilerplate of simple test code 10183ac_outfile=conftest.$ac_objext 10184echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10185eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10186_lt_compiler_boilerplate=`cat conftest.err` 10187$RM conftest* 10188 10189ac_outfile=conftest.$ac_objext 10190echo "$lt_simple_link_test_code" >conftest.$ac_ext 10191eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10192_lt_linker_boilerplate=`cat conftest.err` 10193$RM -r conftest* 10194 10195 10196if test -n "$compiler"; then 10197 10198lt_prog_compiler_no_builtin_flag= 10199 10200if test "$GCC" = yes; then 10201 case $cc_basename in 10202 nvcc*) 10203 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10204 *) 10205 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10206 esac 10207 10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10209$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10210if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10211 $as_echo_n "(cached) " >&6 10212else 10213 lt_cv_prog_compiler_rtti_exceptions=no 10214 ac_outfile=conftest.$ac_objext 10215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10216 lt_compiler_flag="-fno-rtti -fno-exceptions" 10217 # Insert the option either (1) after the last *FLAGS variable, or 10218 # (2) before a word containing "conftest.", or (3) at the end. 10219 # Note that $ac_compile itself does not contain backslashes and begins 10220 # with a dollar sign (not a hyphen), so the echo should work correctly. 10221 # The option is referenced via a variable to avoid confusing sed. 10222 lt_compile=`echo "$ac_compile" | $SED \ 10223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10225 -e 's:$: $lt_compiler_flag:'` 10226 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10227 (eval "$lt_compile" 2>conftest.err) 10228 ac_status=$? 10229 cat conftest.err >&5 10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10231 if (exit $ac_status) && test -s "$ac_outfile"; then 10232 # The compiler can only warn and ignore the option if not recognized 10233 # So say no if there are warnings other than the usual output. 10234 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10235 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10236 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10237 lt_cv_prog_compiler_rtti_exceptions=yes 10238 fi 10239 fi 10240 $RM conftest* 10241 10242fi 10243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10244$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10245 10246if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10247 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10248else 10249 : 10250fi 10251 10252fi 10253 10254 10255 10256 10257 10258 10259 lt_prog_compiler_wl= 10260lt_prog_compiler_pic= 10261lt_prog_compiler_static= 10262 10263 10264 if test "$GCC" = yes; then 10265 lt_prog_compiler_wl='-Wl,' 10266 lt_prog_compiler_static='-static' 10267 10268 case $host_os in 10269 aix*) 10270 # All AIX code is PIC. 10271 if test "$host_cpu" = ia64; then 10272 # AIX 5 now supports IA64 processor 10273 lt_prog_compiler_static='-Bstatic' 10274 fi 10275 ;; 10276 10277 amigaos*) 10278 case $host_cpu in 10279 powerpc) 10280 # see comment about AmigaOS4 .so support 10281 lt_prog_compiler_pic='-fPIC' 10282 ;; 10283 m68k) 10284 # FIXME: we need at least 68020 code to build shared libraries, but 10285 # adding the `-m68020' flag to GCC prevents building anything better, 10286 # like `-m68040'. 10287 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10288 ;; 10289 esac 10290 ;; 10291 10292 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10293 # PIC is the default for these OSes. 10294 ;; 10295 10296 mingw* | cygwin* | pw32* | os2* | cegcc*) 10297 # This hack is so that the source file can tell whether it is being 10298 # built for inclusion in a dll (and should export symbols for example). 10299 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10300 # (--disable-auto-import) libraries 10301 lt_prog_compiler_pic='-DDLL_EXPORT' 10302 ;; 10303 10304 darwin* | rhapsody*) 10305 # PIC is the default on this platform 10306 # Common symbols not allowed in MH_DYLIB files 10307 lt_prog_compiler_pic='-fno-common' 10308 ;; 10309 10310 haiku*) 10311 # PIC is the default for Haiku. 10312 # The "-static" flag exists, but is broken. 10313 lt_prog_compiler_static= 10314 ;; 10315 10316 hpux*) 10317 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10318 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10319 # sets the default TLS model and affects inlining. 10320 case $host_cpu in 10321 hppa*64*) 10322 # +Z the default 10323 ;; 10324 *) 10325 lt_prog_compiler_pic='-fPIC' 10326 ;; 10327 esac 10328 ;; 10329 10330 interix[3-9]*) 10331 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10332 # Instead, we relocate shared libraries at runtime. 10333 ;; 10334 10335 msdosdjgpp*) 10336 # Just because we use GCC doesn't mean we suddenly get shared libraries 10337 # on systems that don't support them. 10338 lt_prog_compiler_can_build_shared=no 10339 enable_shared=no 10340 ;; 10341 10342 *nto* | *qnx*) 10343 # QNX uses GNU C++, but need to define -shared option too, otherwise 10344 # it will coredump. 10345 lt_prog_compiler_pic='-fPIC -shared' 10346 ;; 10347 10348 sysv4*MP*) 10349 if test -d /usr/nec; then 10350 lt_prog_compiler_pic=-Kconform_pic 10351 fi 10352 ;; 10353 10354 *) 10355 lt_prog_compiler_pic='-fPIC' 10356 ;; 10357 esac 10358 10359 case $cc_basename in 10360 nvcc*) # Cuda Compiler Driver 2.2 10361 lt_prog_compiler_wl='-Xlinker ' 10362 if test -n "$lt_prog_compiler_pic"; then 10363 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10364 fi 10365 ;; 10366 esac 10367 else 10368 # PORTME Check for flag to pass linker flags through the system compiler. 10369 case $host_os in 10370 aix*) 10371 lt_prog_compiler_wl='-Wl,' 10372 if test "$host_cpu" = ia64; then 10373 # AIX 5 now supports IA64 processor 10374 lt_prog_compiler_static='-Bstatic' 10375 else 10376 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10377 fi 10378 ;; 10379 10380 mingw* | cygwin* | pw32* | os2* | cegcc*) 10381 # This hack is so that the source file can tell whether it is being 10382 # built for inclusion in a dll (and should export symbols for example). 10383 lt_prog_compiler_pic='-DDLL_EXPORT' 10384 ;; 10385 10386 hpux9* | hpux10* | hpux11*) 10387 lt_prog_compiler_wl='-Wl,' 10388 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10389 # not for PA HP-UX. 10390 case $host_cpu in 10391 hppa*64*|ia64*) 10392 # +Z the default 10393 ;; 10394 *) 10395 lt_prog_compiler_pic='+Z' 10396 ;; 10397 esac 10398 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10399 lt_prog_compiler_static='${wl}-a ${wl}archive' 10400 ;; 10401 10402 irix5* | irix6* | nonstopux*) 10403 lt_prog_compiler_wl='-Wl,' 10404 # PIC (with -KPIC) is the default. 10405 lt_prog_compiler_static='-non_shared' 10406 ;; 10407 10408 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10409 case $cc_basename in 10410 # old Intel for x86_64 which still supported -KPIC. 10411 ecc*) 10412 lt_prog_compiler_wl='-Wl,' 10413 lt_prog_compiler_pic='-KPIC' 10414 lt_prog_compiler_static='-static' 10415 ;; 10416 # icc used to be incompatible with GCC. 10417 # ICC 10 doesn't accept -KPIC any more. 10418 icc* | ifort*) 10419 lt_prog_compiler_wl='-Wl,' 10420 lt_prog_compiler_pic='-fPIC' 10421 lt_prog_compiler_static='-static' 10422 ;; 10423 # Lahey Fortran 8.1. 10424 lf95*) 10425 lt_prog_compiler_wl='-Wl,' 10426 lt_prog_compiler_pic='--shared' 10427 lt_prog_compiler_static='--static' 10428 ;; 10429 nagfor*) 10430 # NAG Fortran compiler 10431 lt_prog_compiler_wl='-Wl,-Wl,,' 10432 lt_prog_compiler_pic='-PIC' 10433 lt_prog_compiler_static='-Bstatic' 10434 ;; 10435 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10436 # Portland Group compilers (*not* the Pentium gcc compiler, 10437 # which looks to be a dead project) 10438 lt_prog_compiler_wl='-Wl,' 10439 lt_prog_compiler_pic='-fpic' 10440 lt_prog_compiler_static='-Bstatic' 10441 ;; 10442 ccc*) 10443 lt_prog_compiler_wl='-Wl,' 10444 # All Alpha code is PIC. 10445 lt_prog_compiler_static='-non_shared' 10446 ;; 10447 xl* | bgxl* | bgf* | mpixl*) 10448 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10449 lt_prog_compiler_wl='-Wl,' 10450 lt_prog_compiler_pic='-qpic' 10451 lt_prog_compiler_static='-qstaticlink' 10452 ;; 10453 *) 10454 case `$CC -V 2>&1 | sed 5q` in 10455 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10456 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10457 lt_prog_compiler_pic='-KPIC' 10458 lt_prog_compiler_static='-Bstatic' 10459 lt_prog_compiler_wl='' 10460 ;; 10461 *Sun\ F* | *Sun*Fortran*) 10462 lt_prog_compiler_pic='-KPIC' 10463 lt_prog_compiler_static='-Bstatic' 10464 lt_prog_compiler_wl='-Qoption ld ' 10465 ;; 10466 *Sun\ C*) 10467 # Sun C 5.9 10468 lt_prog_compiler_pic='-KPIC' 10469 lt_prog_compiler_static='-Bstatic' 10470 lt_prog_compiler_wl='-Wl,' 10471 ;; 10472 *Intel*\ [CF]*Compiler*) 10473 lt_prog_compiler_wl='-Wl,' 10474 lt_prog_compiler_pic='-fPIC' 10475 lt_prog_compiler_static='-static' 10476 ;; 10477 *Portland\ Group*) 10478 lt_prog_compiler_wl='-Wl,' 10479 lt_prog_compiler_pic='-fpic' 10480 lt_prog_compiler_static='-Bstatic' 10481 ;; 10482 esac 10483 ;; 10484 esac 10485 ;; 10486 10487 newsos6) 10488 lt_prog_compiler_pic='-KPIC' 10489 lt_prog_compiler_static='-Bstatic' 10490 ;; 10491 10492 *nto* | *qnx*) 10493 # QNX uses GNU C++, but need to define -shared option too, otherwise 10494 # it will coredump. 10495 lt_prog_compiler_pic='-fPIC -shared' 10496 ;; 10497 10498 osf3* | osf4* | osf5*) 10499 lt_prog_compiler_wl='-Wl,' 10500 # All OSF/1 code is PIC. 10501 lt_prog_compiler_static='-non_shared' 10502 ;; 10503 10504 rdos*) 10505 lt_prog_compiler_static='-non_shared' 10506 ;; 10507 10508 solaris*) 10509 lt_prog_compiler_pic='-KPIC' 10510 lt_prog_compiler_static='-Bstatic' 10511 case $cc_basename in 10512 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10513 lt_prog_compiler_wl='-Qoption ld ';; 10514 *) 10515 lt_prog_compiler_wl='-Wl,';; 10516 esac 10517 ;; 10518 10519 sunos4*) 10520 lt_prog_compiler_wl='-Qoption ld ' 10521 lt_prog_compiler_pic='-PIC' 10522 lt_prog_compiler_static='-Bstatic' 10523 ;; 10524 10525 sysv4 | sysv4.2uw2* | sysv4.3*) 10526 lt_prog_compiler_wl='-Wl,' 10527 lt_prog_compiler_pic='-KPIC' 10528 lt_prog_compiler_static='-Bstatic' 10529 ;; 10530 10531 sysv4*MP*) 10532 if test -d /usr/nec ;then 10533 lt_prog_compiler_pic='-Kconform_pic' 10534 lt_prog_compiler_static='-Bstatic' 10535 fi 10536 ;; 10537 10538 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10539 lt_prog_compiler_wl='-Wl,' 10540 lt_prog_compiler_pic='-KPIC' 10541 lt_prog_compiler_static='-Bstatic' 10542 ;; 10543 10544 unicos*) 10545 lt_prog_compiler_wl='-Wl,' 10546 lt_prog_compiler_can_build_shared=no 10547 ;; 10548 10549 uts4*) 10550 lt_prog_compiler_pic='-pic' 10551 lt_prog_compiler_static='-Bstatic' 10552 ;; 10553 10554 *) 10555 lt_prog_compiler_can_build_shared=no 10556 ;; 10557 esac 10558 fi 10559 10560case $host_os in 10561 # For platforms which do not support PIC, -DPIC is meaningless: 10562 *djgpp*) 10563 lt_prog_compiler_pic= 10564 ;; 10565 *) 10566 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10567 ;; 10568esac 10569 10570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10571$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10572if ${lt_cv_prog_compiler_pic+:} false; then : 10573 $as_echo_n "(cached) " >&6 10574else 10575 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10576fi 10577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10578$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10579lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10580 10581# 10582# Check to make sure the PIC flag actually works. 10583# 10584if test -n "$lt_prog_compiler_pic"; then 10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10586$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10587if ${lt_cv_prog_compiler_pic_works+:} false; then : 10588 $as_echo_n "(cached) " >&6 10589else 10590 lt_cv_prog_compiler_pic_works=no 10591 ac_outfile=conftest.$ac_objext 10592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10593 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10594 # Insert the option either (1) after the last *FLAGS variable, or 10595 # (2) before a word containing "conftest.", or (3) at the end. 10596 # Note that $ac_compile itself does not contain backslashes and begins 10597 # with a dollar sign (not a hyphen), so the echo should work correctly. 10598 # The option is referenced via a variable to avoid confusing sed. 10599 lt_compile=`echo "$ac_compile" | $SED \ 10600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10602 -e 's:$: $lt_compiler_flag:'` 10603 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10604 (eval "$lt_compile" 2>conftest.err) 10605 ac_status=$? 10606 cat conftest.err >&5 10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10608 if (exit $ac_status) && test -s "$ac_outfile"; then 10609 # The compiler can only warn and ignore the option if not recognized 10610 # So say no if there are warnings other than the usual output. 10611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10612 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10613 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10614 lt_cv_prog_compiler_pic_works=yes 10615 fi 10616 fi 10617 $RM conftest* 10618 10619fi 10620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10621$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10622 10623if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10624 case $lt_prog_compiler_pic in 10625 "" | " "*) ;; 10626 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10627 esac 10628else 10629 lt_prog_compiler_pic= 10630 lt_prog_compiler_can_build_shared=no 10631fi 10632 10633fi 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645# 10646# Check to make sure the static flag actually works. 10647# 10648wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10650$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10651if ${lt_cv_prog_compiler_static_works+:} false; then : 10652 $as_echo_n "(cached) " >&6 10653else 10654 lt_cv_prog_compiler_static_works=no 10655 save_LDFLAGS="$LDFLAGS" 10656 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10657 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10658 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10659 # The linker can only warn and ignore the option if not recognized 10660 # So say no if there are warnings 10661 if test -s conftest.err; then 10662 # Append any errors to the config.log. 10663 cat conftest.err 1>&5 10664 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10666 if diff conftest.exp conftest.er2 >/dev/null; then 10667 lt_cv_prog_compiler_static_works=yes 10668 fi 10669 else 10670 lt_cv_prog_compiler_static_works=yes 10671 fi 10672 fi 10673 $RM -r conftest* 10674 LDFLAGS="$save_LDFLAGS" 10675 10676fi 10677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10678$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10679 10680if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10681 : 10682else 10683 lt_prog_compiler_static= 10684fi 10685 10686 10687 10688 10689 10690 10691 10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10693$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10694if ${lt_cv_prog_compiler_c_o+:} false; then : 10695 $as_echo_n "(cached) " >&6 10696else 10697 lt_cv_prog_compiler_c_o=no 10698 $RM -r conftest 2>/dev/null 10699 mkdir conftest 10700 cd conftest 10701 mkdir out 10702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10703 10704 lt_compiler_flag="-o out/conftest2.$ac_objext" 10705 # Insert the option either (1) after the last *FLAGS variable, or 10706 # (2) before a word containing "conftest.", or (3) at the end. 10707 # Note that $ac_compile itself does not contain backslashes and begins 10708 # with a dollar sign (not a hyphen), so the echo should work correctly. 10709 lt_compile=`echo "$ac_compile" | $SED \ 10710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10712 -e 's:$: $lt_compiler_flag:'` 10713 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10714 (eval "$lt_compile" 2>out/conftest.err) 10715 ac_status=$? 10716 cat out/conftest.err >&5 10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10718 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10719 then 10720 # The compiler can only warn and ignore the option if not recognized 10721 # So say no if there are warnings 10722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10723 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10724 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10725 lt_cv_prog_compiler_c_o=yes 10726 fi 10727 fi 10728 chmod u+w . 2>&5 10729 $RM conftest* 10730 # SGI C++ compiler will create directory out/ii_files/ for 10731 # template instantiation 10732 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10733 $RM out/* && rmdir out 10734 cd .. 10735 $RM -r conftest 10736 $RM conftest* 10737 10738fi 10739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10740$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10741 10742 10743 10744 10745 10746 10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10748$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10749if ${lt_cv_prog_compiler_c_o+:} false; then : 10750 $as_echo_n "(cached) " >&6 10751else 10752 lt_cv_prog_compiler_c_o=no 10753 $RM -r conftest 2>/dev/null 10754 mkdir conftest 10755 cd conftest 10756 mkdir out 10757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10758 10759 lt_compiler_flag="-o out/conftest2.$ac_objext" 10760 # Insert the option either (1) after the last *FLAGS variable, or 10761 # (2) before a word containing "conftest.", or (3) at the end. 10762 # Note that $ac_compile itself does not contain backslashes and begins 10763 # with a dollar sign (not a hyphen), so the echo should work correctly. 10764 lt_compile=`echo "$ac_compile" | $SED \ 10765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10767 -e 's:$: $lt_compiler_flag:'` 10768 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10769 (eval "$lt_compile" 2>out/conftest.err) 10770 ac_status=$? 10771 cat out/conftest.err >&5 10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10773 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10774 then 10775 # The compiler can only warn and ignore the option if not recognized 10776 # So say no if there are warnings 10777 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10778 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10779 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10780 lt_cv_prog_compiler_c_o=yes 10781 fi 10782 fi 10783 chmod u+w . 2>&5 10784 $RM conftest* 10785 # SGI C++ compiler will create directory out/ii_files/ for 10786 # template instantiation 10787 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10788 $RM out/* && rmdir out 10789 cd .. 10790 $RM -r conftest 10791 $RM conftest* 10792 10793fi 10794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10795$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10796 10797 10798 10799 10800hard_links="nottested" 10801if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10802 # do not overwrite the value of need_locks provided by the user 10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10804$as_echo_n "checking if we can lock with hard links... " >&6; } 10805 hard_links=yes 10806 $RM conftest* 10807 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10808 touch conftest.a 10809 ln conftest.a conftest.b 2>&5 || hard_links=no 10810 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10812$as_echo "$hard_links" >&6; } 10813 if test "$hard_links" = no; then 10814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10815$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10816 need_locks=warn 10817 fi 10818else 10819 need_locks=no 10820fi 10821 10822 10823 10824 10825 10826 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10828$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10829 10830 runpath_var= 10831 allow_undefined_flag= 10832 always_export_symbols=no 10833 archive_cmds= 10834 archive_expsym_cmds= 10835 compiler_needs_object=no 10836 enable_shared_with_static_runtimes=no 10837 export_dynamic_flag_spec= 10838 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10839 hardcode_automatic=no 10840 hardcode_direct=no 10841 hardcode_direct_absolute=no 10842 hardcode_libdir_flag_spec= 10843 hardcode_libdir_separator= 10844 hardcode_minus_L=no 10845 hardcode_shlibpath_var=unsupported 10846 inherit_rpath=no 10847 link_all_deplibs=unknown 10848 module_cmds= 10849 module_expsym_cmds= 10850 old_archive_from_new_cmds= 10851 old_archive_from_expsyms_cmds= 10852 thread_safe_flag_spec= 10853 whole_archive_flag_spec= 10854 # include_expsyms should be a list of space-separated symbols to be *always* 10855 # included in the symbol list 10856 include_expsyms= 10857 # exclude_expsyms can be an extended regexp of symbols to exclude 10858 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10859 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10860 # as well as any symbol that contains `d'. 10861 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10862 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10863 # platforms (ab)use it in PIC code, but their linkers get confused if 10864 # the symbol is explicitly referenced. Since portable code cannot 10865 # rely on this symbol name, it's probably fine to never include it in 10866 # preloaded symbol tables. 10867 # Exclude shared library initialization/finalization symbols. 10868 extract_expsyms_cmds= 10869 10870 case $host_os in 10871 cygwin* | mingw* | pw32* | cegcc*) 10872 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10873 # When not using gcc, we currently assume that we are using 10874 # Microsoft Visual C++. 10875 if test "$GCC" != yes; then 10876 with_gnu_ld=no 10877 fi 10878 ;; 10879 interix*) 10880 # we just hope/assume this is gcc and not c89 (= MSVC++) 10881 with_gnu_ld=yes 10882 ;; 10883 openbsd*) 10884 with_gnu_ld=no 10885 ;; 10886 esac 10887 10888 ld_shlibs=yes 10889 10890 # On some targets, GNU ld is compatible enough with the native linker 10891 # that we're better off using the native interface for both. 10892 lt_use_gnu_ld_interface=no 10893 if test "$with_gnu_ld" = yes; then 10894 case $host_os in 10895 aix*) 10896 # The AIX port of GNU ld has always aspired to compatibility 10897 # with the native linker. However, as the warning in the GNU ld 10898 # block says, versions before 2.19.5* couldn't really create working 10899 # shared libraries, regardless of the interface used. 10900 case `$LD -v 2>&1` in 10901 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10902 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10903 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10904 *) 10905 lt_use_gnu_ld_interface=yes 10906 ;; 10907 esac 10908 ;; 10909 *) 10910 lt_use_gnu_ld_interface=yes 10911 ;; 10912 esac 10913 fi 10914 10915 if test "$lt_use_gnu_ld_interface" = yes; then 10916 # If archive_cmds runs LD, not CC, wlarc should be empty 10917 wlarc='${wl}' 10918 10919 # Set some defaults for GNU ld with shared library support. These 10920 # are reset later if shared libraries are not supported. Putting them 10921 # here allows them to be overridden if necessary. 10922 runpath_var=LD_RUN_PATH 10923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10924 export_dynamic_flag_spec='${wl}--export-dynamic' 10925 # ancient GNU ld didn't support --whole-archive et. al. 10926 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10927 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10928 else 10929 whole_archive_flag_spec= 10930 fi 10931 supports_anon_versioning=no 10932 case `$LD -v 2>&1` in 10933 *GNU\ gold*) supports_anon_versioning=yes ;; 10934 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10935 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10936 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10937 *\ 2.11.*) ;; # other 2.11 versions 10938 *) supports_anon_versioning=yes ;; 10939 esac 10940 10941 # See if GNU ld supports shared libraries. 10942 case $host_os in 10943 aix[3-9]*) 10944 # On AIX/PPC, the GNU linker is very broken 10945 if test "$host_cpu" != ia64; then 10946 ld_shlibs=no 10947 cat <<_LT_EOF 1>&2 10948 10949*** Warning: the GNU linker, at least up to release 2.19, is reported 10950*** to be unable to reliably create shared libraries on AIX. 10951*** Therefore, libtool is disabling shared libraries support. If you 10952*** really care for shared libraries, you may want to install binutils 10953*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10954*** You will then need to restart the configuration process. 10955 10956_LT_EOF 10957 fi 10958 ;; 10959 10960 amigaos*) 10961 case $host_cpu in 10962 powerpc) 10963 # see comment about AmigaOS4 .so support 10964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10965 archive_expsym_cmds='' 10966 ;; 10967 m68k) 10968 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)' 10969 hardcode_libdir_flag_spec='-L$libdir' 10970 hardcode_minus_L=yes 10971 ;; 10972 esac 10973 ;; 10974 10975 beos*) 10976 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10977 allow_undefined_flag=unsupported 10978 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10979 # support --undefined. This deserves some investigation. FIXME 10980 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10981 else 10982 ld_shlibs=no 10983 fi 10984 ;; 10985 10986 cygwin* | mingw* | pw32* | cegcc*) 10987 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10988 # as there is no search path for DLLs. 10989 hardcode_libdir_flag_spec='-L$libdir' 10990 export_dynamic_flag_spec='${wl}--export-all-symbols' 10991 allow_undefined_flag=unsupported 10992 always_export_symbols=no 10993 enable_shared_with_static_runtimes=yes 10994 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' 10995 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10996 10997 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10999 # If the export-symbols file already is a .def file (1st line 11000 # is EXPORTS), use it as is; otherwise, prepend... 11001 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11002 cp $export_symbols $output_objdir/$soname.def; 11003 else 11004 echo EXPORTS > $output_objdir/$soname.def; 11005 cat $export_symbols >> $output_objdir/$soname.def; 11006 fi~ 11007 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11008 else 11009 ld_shlibs=no 11010 fi 11011 ;; 11012 11013 haiku*) 11014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11015 link_all_deplibs=yes 11016 ;; 11017 11018 interix[3-9]*) 11019 hardcode_direct=no 11020 hardcode_shlibpath_var=no 11021 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11022 export_dynamic_flag_spec='${wl}-E' 11023 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11024 # Instead, shared libraries are loaded at an image base (0x10000000 by 11025 # default) and relocated if they conflict, which is a slow very memory 11026 # consuming and fragmenting process. To avoid this, we pick a random, 11027 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11028 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11029 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11030 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' 11031 ;; 11032 11033 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11034 tmp_diet=no 11035 if test "$host_os" = linux-dietlibc; then 11036 case $cc_basename in 11037 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11038 esac 11039 fi 11040 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11041 && test "$tmp_diet" = no 11042 then 11043 tmp_addflag=' $pic_flag' 11044 tmp_sharedflag='-shared' 11045 case $cc_basename,$host_cpu in 11046 pgcc*) # Portland Group C compiler 11047 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' 11048 tmp_addflag=' $pic_flag' 11049 ;; 11050 pgf77* | pgf90* | pgf95* | pgfortran*) 11051 # Portland Group f77 and f90 compilers 11052 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' 11053 tmp_addflag=' $pic_flag -Mnomain' ;; 11054 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11055 tmp_addflag=' -i_dynamic' ;; 11056 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11057 tmp_addflag=' -i_dynamic -nofor_main' ;; 11058 ifc* | ifort*) # Intel Fortran compiler 11059 tmp_addflag=' -nofor_main' ;; 11060 lf95*) # Lahey Fortran 8.1 11061 whole_archive_flag_spec= 11062 tmp_sharedflag='--shared' ;; 11063 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11064 tmp_sharedflag='-qmkshrobj' 11065 tmp_addflag= ;; 11066 nvcc*) # Cuda Compiler Driver 2.2 11067 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' 11068 compiler_needs_object=yes 11069 ;; 11070 esac 11071 case `$CC -V 2>&1 | sed 5q` in 11072 *Sun\ C*) # Sun C 5.9 11073 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' 11074 compiler_needs_object=yes 11075 tmp_sharedflag='-G' ;; 11076 *Sun\ F*) # Sun Fortran 8.3 11077 tmp_sharedflag='-G' ;; 11078 esac 11079 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11080 11081 if test "x$supports_anon_versioning" = xyes; then 11082 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11083 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11084 echo "local: *; };" >> $output_objdir/$libname.ver~ 11085 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11086 fi 11087 11088 case $cc_basename in 11089 xlf* | bgf* | bgxlf* | mpixlf*) 11090 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11091 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11093 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11094 if test "x$supports_anon_versioning" = xyes; then 11095 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11096 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11097 echo "local: *; };" >> $output_objdir/$libname.ver~ 11098 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11099 fi 11100 ;; 11101 esac 11102 else 11103 ld_shlibs=no 11104 fi 11105 ;; 11106 11107 netbsd*) 11108 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11109 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11110 wlarc= 11111 else 11112 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11113 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11114 fi 11115 ;; 11116 11117 solaris*) 11118 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11119 ld_shlibs=no 11120 cat <<_LT_EOF 1>&2 11121 11122*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11123*** create shared libraries on Solaris systems. Therefore, libtool 11124*** is disabling shared libraries support. We urge you to upgrade GNU 11125*** binutils to release 2.9.1 or newer. Another option is to modify 11126*** your PATH or compiler configuration so that the native linker is 11127*** used, and then restart. 11128 11129_LT_EOF 11130 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11131 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11132 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11133 else 11134 ld_shlibs=no 11135 fi 11136 ;; 11137 11138 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11139 case `$LD -v 2>&1` in 11140 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11141 ld_shlibs=no 11142 cat <<_LT_EOF 1>&2 11143 11144*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11145*** reliably create shared libraries on SCO systems. Therefore, libtool 11146*** is disabling shared libraries support. We urge you to upgrade GNU 11147*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11148*** your PATH or compiler configuration so that the native linker is 11149*** used, and then restart. 11150 11151_LT_EOF 11152 ;; 11153 *) 11154 # For security reasons, it is highly recommended that you always 11155 # use absolute paths for naming shared libraries, and exclude the 11156 # DT_RUNPATH tag from executables and libraries. But doing so 11157 # requires that you compile everything twice, which is a pain. 11158 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11161 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11162 else 11163 ld_shlibs=no 11164 fi 11165 ;; 11166 esac 11167 ;; 11168 11169 sunos4*) 11170 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11171 wlarc= 11172 hardcode_direct=yes 11173 hardcode_shlibpath_var=no 11174 ;; 11175 11176 *) 11177 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11178 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11179 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11180 else 11181 ld_shlibs=no 11182 fi 11183 ;; 11184 esac 11185 11186 if test "$ld_shlibs" = no; then 11187 runpath_var= 11188 hardcode_libdir_flag_spec= 11189 export_dynamic_flag_spec= 11190 whole_archive_flag_spec= 11191 fi 11192 else 11193 # PORTME fill in a description of your system's linker (not GNU ld) 11194 case $host_os in 11195 aix3*) 11196 allow_undefined_flag=unsupported 11197 always_export_symbols=yes 11198 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' 11199 # Note: this linker hardcodes the directories in LIBPATH if there 11200 # are no directories specified by -L. 11201 hardcode_minus_L=yes 11202 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11203 # Neither direct hardcoding nor static linking is supported with a 11204 # broken collect2. 11205 hardcode_direct=unsupported 11206 fi 11207 ;; 11208 11209 aix[4-9]*) 11210 if test "$host_cpu" = ia64; then 11211 # On IA64, the linker does run time linking by default, so we don't 11212 # have to do anything special. 11213 aix_use_runtimelinking=no 11214 exp_sym_flag='-Bexport' 11215 no_entry_flag="" 11216 else 11217 # If we're using GNU nm, then we don't want the "-C" option. 11218 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11219 # Also, AIX nm treats weak defined symbols like other global 11220 # defined symbols, whereas GNU nm marks them as "W". 11221 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11222 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' 11223 else 11224 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' 11225 fi 11226 aix_use_runtimelinking=no 11227 11228 # Test if we are trying to use run time linking or normal 11229 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11230 # need to do runtime linking. 11231 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11232 for ld_flag in $LDFLAGS; do 11233 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11234 aix_use_runtimelinking=yes 11235 break 11236 fi 11237 done 11238 ;; 11239 esac 11240 11241 exp_sym_flag='-bexport' 11242 no_entry_flag='-bnoentry' 11243 fi 11244 11245 # When large executables or shared objects are built, AIX ld can 11246 # have problems creating the table of contents. If linking a library 11247 # or program results in "error TOC overflow" add -mminimal-toc to 11248 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11249 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11250 11251 archive_cmds='' 11252 hardcode_direct=yes 11253 hardcode_direct_absolute=yes 11254 hardcode_libdir_separator=':' 11255 link_all_deplibs=yes 11256 file_list_spec='${wl}-f,' 11257 11258 if test "$GCC" = yes; then 11259 case $host_os in aix4.[012]|aix4.[012].*) 11260 # We only want to do this on AIX 4.2 and lower, the check 11261 # below for broken collect2 doesn't work under 4.3+ 11262 collect2name=`${CC} -print-prog-name=collect2` 11263 if test -f "$collect2name" && 11264 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11265 then 11266 # We have reworked collect2 11267 : 11268 else 11269 # We have old collect2 11270 hardcode_direct=unsupported 11271 # It fails to find uninstalled libraries when the uninstalled 11272 # path is not listed in the libpath. Setting hardcode_minus_L 11273 # to unsupported forces relinking 11274 hardcode_minus_L=yes 11275 hardcode_libdir_flag_spec='-L$libdir' 11276 hardcode_libdir_separator= 11277 fi 11278 ;; 11279 esac 11280 shared_flag='-shared' 11281 if test "$aix_use_runtimelinking" = yes; then 11282 shared_flag="$shared_flag "'${wl}-G' 11283 fi 11284 else 11285 # not using gcc 11286 if test "$host_cpu" = ia64; then 11287 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11288 # chokes on -Wl,-G. The following line is correct: 11289 shared_flag='-G' 11290 else 11291 if test "$aix_use_runtimelinking" = yes; then 11292 shared_flag='${wl}-G' 11293 else 11294 shared_flag='${wl}-bM:SRE' 11295 fi 11296 fi 11297 fi 11298 11299 export_dynamic_flag_spec='${wl}-bexpall' 11300 # It seems that -bexpall does not export symbols beginning with 11301 # underscore (_), so it is better to generate a list of symbols to export. 11302 always_export_symbols=yes 11303 if test "$aix_use_runtimelinking" = yes; then 11304 # Warning - without using the other runtime loading flags (-brtl), 11305 # -berok will link without error, but may produce a broken library. 11306 allow_undefined_flag='-berok' 11307 # Determine the default libpath from the value encoded in an 11308 # empty executable. 11309 if test "${lt_cv_aix_libpath+set}" = set; then 11310 aix_libpath=$lt_cv_aix_libpath 11311else 11312 if ${lt_cv_aix_libpath_+:} false; then : 11313 $as_echo_n "(cached) " >&6 11314else 11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11316/* end confdefs.h. */ 11317 11318int 11319main () 11320{ 11321 11322 ; 11323 return 0; 11324} 11325_ACEOF 11326if ac_fn_c_try_link "$LINENO"; then : 11327 11328 lt_aix_libpath_sed=' 11329 /Import File Strings/,/^$/ { 11330 /^0/ { 11331 s/^0 *\([^ ]*\) *$/\1/ 11332 p 11333 } 11334 }' 11335 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11336 # Check for a 64-bit object if we didn't find anything. 11337 if test -z "$lt_cv_aix_libpath_"; then 11338 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11339 fi 11340fi 11341rm -f core conftest.err conftest.$ac_objext \ 11342 conftest$ac_exeext conftest.$ac_ext 11343 if test -z "$lt_cv_aix_libpath_"; then 11344 lt_cv_aix_libpath_="/usr/lib:/lib" 11345 fi 11346 11347fi 11348 11349 aix_libpath=$lt_cv_aix_libpath_ 11350fi 11351 11352 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11353 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" 11354 else 11355 if test "$host_cpu" = ia64; then 11356 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11357 allow_undefined_flag="-z nodefs" 11358 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" 11359 else 11360 # Determine the default libpath from the value encoded in an 11361 # empty executable. 11362 if test "${lt_cv_aix_libpath+set}" = set; then 11363 aix_libpath=$lt_cv_aix_libpath 11364else 11365 if ${lt_cv_aix_libpath_+:} false; then : 11366 $as_echo_n "(cached) " >&6 11367else 11368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11369/* end confdefs.h. */ 11370 11371int 11372main () 11373{ 11374 11375 ; 11376 return 0; 11377} 11378_ACEOF 11379if ac_fn_c_try_link "$LINENO"; then : 11380 11381 lt_aix_libpath_sed=' 11382 /Import File Strings/,/^$/ { 11383 /^0/ { 11384 s/^0 *\([^ ]*\) *$/\1/ 11385 p 11386 } 11387 }' 11388 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11389 # Check for a 64-bit object if we didn't find anything. 11390 if test -z "$lt_cv_aix_libpath_"; then 11391 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11392 fi 11393fi 11394rm -f core conftest.err conftest.$ac_objext \ 11395 conftest$ac_exeext conftest.$ac_ext 11396 if test -z "$lt_cv_aix_libpath_"; then 11397 lt_cv_aix_libpath_="/usr/lib:/lib" 11398 fi 11399 11400fi 11401 11402 aix_libpath=$lt_cv_aix_libpath_ 11403fi 11404 11405 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11406 # Warning - without using the other run time loading flags, 11407 # -berok will link without error, but may produce a broken library. 11408 no_undefined_flag=' ${wl}-bernotok' 11409 allow_undefined_flag=' ${wl}-berok' 11410 if test "$with_gnu_ld" = yes; then 11411 # We only use this code for GNU lds that support --whole-archive. 11412 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11413 else 11414 # Exported symbols can be pulled into shared objects from archives 11415 whole_archive_flag_spec='$convenience' 11416 fi 11417 archive_cmds_need_lc=yes 11418 # This is similar to how AIX traditionally builds its shared libraries. 11419 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' 11420 fi 11421 fi 11422 ;; 11423 11424 amigaos*) 11425 case $host_cpu in 11426 powerpc) 11427 # see comment about AmigaOS4 .so support 11428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11429 archive_expsym_cmds='' 11430 ;; 11431 m68k) 11432 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)' 11433 hardcode_libdir_flag_spec='-L$libdir' 11434 hardcode_minus_L=yes 11435 ;; 11436 esac 11437 ;; 11438 11439 bsdi[45]*) 11440 export_dynamic_flag_spec=-rdynamic 11441 ;; 11442 11443 cygwin* | mingw* | pw32* | cegcc*) 11444 # When not using gcc, we currently assume that we are using 11445 # Microsoft Visual C++. 11446 # hardcode_libdir_flag_spec is actually meaningless, as there is 11447 # no search path for DLLs. 11448 case $cc_basename in 11449 cl*) 11450 # Native MSVC 11451 hardcode_libdir_flag_spec=' ' 11452 allow_undefined_flag=unsupported 11453 always_export_symbols=yes 11454 file_list_spec='@' 11455 # Tell ltmain to make .lib files, not .a files. 11456 libext=lib 11457 # Tell ltmain to make .dll files, not .so files. 11458 shrext_cmds=".dll" 11459 # FIXME: Setting linknames here is a bad hack. 11460 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 11461 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11462 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 11463 else 11464 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 11465 fi~ 11466 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11467 linknames=' 11468 # The linker will not automatically build a static lib if we build a DLL. 11469 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11470 enable_shared_with_static_runtimes=yes 11471 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11472 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11473 # Don't use ranlib 11474 old_postinstall_cmds='chmod 644 $oldlib' 11475 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11476 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11477 case $lt_outputfile in 11478 *.exe|*.EXE) ;; 11479 *) 11480 lt_outputfile="$lt_outputfile.exe" 11481 lt_tool_outputfile="$lt_tool_outputfile.exe" 11482 ;; 11483 esac~ 11484 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 11485 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11486 $RM "$lt_outputfile.manifest"; 11487 fi' 11488 ;; 11489 *) 11490 # Assume MSVC wrapper 11491 hardcode_libdir_flag_spec=' ' 11492 allow_undefined_flag=unsupported 11493 # Tell ltmain to make .lib files, not .a files. 11494 libext=lib 11495 # Tell ltmain to make .dll files, not .so files. 11496 shrext_cmds=".dll" 11497 # FIXME: Setting linknames here is a bad hack. 11498 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11499 # The linker will automatically build a .lib file if we build a DLL. 11500 old_archive_from_new_cmds='true' 11501 # FIXME: Should let the user specify the lib program. 11502 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11503 enable_shared_with_static_runtimes=yes 11504 ;; 11505 esac 11506 ;; 11507 11508 darwin* | rhapsody*) 11509 11510 11511 archive_cmds_need_lc=no 11512 hardcode_direct=no 11513 hardcode_automatic=yes 11514 hardcode_shlibpath_var=unsupported 11515 if test "$lt_cv_ld_force_load" = "yes"; then 11516 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\"`' 11517 11518 else 11519 whole_archive_flag_spec='' 11520 fi 11521 link_all_deplibs=yes 11522 allow_undefined_flag="$_lt_dar_allow_undefined" 11523 case $cc_basename in 11524 ifort*) _lt_dar_can_shared=yes ;; 11525 *) _lt_dar_can_shared=$GCC ;; 11526 esac 11527 if test "$_lt_dar_can_shared" = "yes"; then 11528 output_verbose_link_cmd=func_echo_all 11529 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11530 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11531 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}" 11532 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}" 11533 11534 else 11535 ld_shlibs=no 11536 fi 11537 11538 ;; 11539 11540 dgux*) 11541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11542 hardcode_libdir_flag_spec='-L$libdir' 11543 hardcode_shlibpath_var=no 11544 ;; 11545 11546 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11547 # support. Future versions do this automatically, but an explicit c++rt0.o 11548 # does not break anything, and helps significantly (at the cost of a little 11549 # extra space). 11550 freebsd2.2*) 11551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11552 hardcode_libdir_flag_spec='-R$libdir' 11553 hardcode_direct=yes 11554 hardcode_shlibpath_var=no 11555 ;; 11556 11557 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11558 freebsd2.*) 11559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11560 hardcode_direct=yes 11561 hardcode_minus_L=yes 11562 hardcode_shlibpath_var=no 11563 ;; 11564 11565 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11566 freebsd* | dragonfly*) 11567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11568 hardcode_libdir_flag_spec='-R$libdir' 11569 hardcode_direct=yes 11570 hardcode_shlibpath_var=no 11571 ;; 11572 11573 hpux9*) 11574 if test "$GCC" = yes; then 11575 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' 11576 else 11577 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' 11578 fi 11579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11580 hardcode_libdir_separator=: 11581 hardcode_direct=yes 11582 11583 # hardcode_minus_L: Not really in the search PATH, 11584 # but as the default location of the library. 11585 hardcode_minus_L=yes 11586 export_dynamic_flag_spec='${wl}-E' 11587 ;; 11588 11589 hpux10*) 11590 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11591 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11592 else 11593 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11594 fi 11595 if test "$with_gnu_ld" = no; then 11596 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11597 hardcode_libdir_separator=: 11598 hardcode_direct=yes 11599 hardcode_direct_absolute=yes 11600 export_dynamic_flag_spec='${wl}-E' 11601 # hardcode_minus_L: Not really in the search PATH, 11602 # but as the default location of the library. 11603 hardcode_minus_L=yes 11604 fi 11605 ;; 11606 11607 hpux11*) 11608 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11609 case $host_cpu in 11610 hppa*64*) 11611 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11612 ;; 11613 ia64*) 11614 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11615 ;; 11616 *) 11617 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11618 ;; 11619 esac 11620 else 11621 case $host_cpu in 11622 hppa*64*) 11623 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11624 ;; 11625 ia64*) 11626 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11627 ;; 11628 *) 11629 11630 # Older versions of the 11.00 compiler do not understand -b yet 11631 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11633$as_echo_n "checking if $CC understands -b... " >&6; } 11634if ${lt_cv_prog_compiler__b+:} false; then : 11635 $as_echo_n "(cached) " >&6 11636else 11637 lt_cv_prog_compiler__b=no 11638 save_LDFLAGS="$LDFLAGS" 11639 LDFLAGS="$LDFLAGS -b" 11640 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11641 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11642 # The linker can only warn and ignore the option if not recognized 11643 # So say no if there are warnings 11644 if test -s conftest.err; then 11645 # Append any errors to the config.log. 11646 cat conftest.err 1>&5 11647 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11648 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11649 if diff conftest.exp conftest.er2 >/dev/null; then 11650 lt_cv_prog_compiler__b=yes 11651 fi 11652 else 11653 lt_cv_prog_compiler__b=yes 11654 fi 11655 fi 11656 $RM -r conftest* 11657 LDFLAGS="$save_LDFLAGS" 11658 11659fi 11660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11661$as_echo "$lt_cv_prog_compiler__b" >&6; } 11662 11663if test x"$lt_cv_prog_compiler__b" = xyes; then 11664 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11665else 11666 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11667fi 11668 11669 ;; 11670 esac 11671 fi 11672 if test "$with_gnu_ld" = no; then 11673 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11674 hardcode_libdir_separator=: 11675 11676 case $host_cpu in 11677 hppa*64*|ia64*) 11678 hardcode_direct=no 11679 hardcode_shlibpath_var=no 11680 ;; 11681 *) 11682 hardcode_direct=yes 11683 hardcode_direct_absolute=yes 11684 export_dynamic_flag_spec='${wl}-E' 11685 11686 # hardcode_minus_L: Not really in the search PATH, 11687 # but as the default location of the library. 11688 hardcode_minus_L=yes 11689 ;; 11690 esac 11691 fi 11692 ;; 11693 11694 irix5* | irix6* | nonstopux*) 11695 if test "$GCC" = yes; then 11696 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' 11697 # Try to use the -exported_symbol ld option, if it does not 11698 # work, assume that -exports_file does not work either and 11699 # implicitly export all symbols. 11700 # This should be the same for all languages, so no per-tag cache variable. 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11702$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11703if ${lt_cv_irix_exported_symbol+:} false; then : 11704 $as_echo_n "(cached) " >&6 11705else 11706 save_LDFLAGS="$LDFLAGS" 11707 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11709/* end confdefs.h. */ 11710int foo (void) { return 0; } 11711_ACEOF 11712if ac_fn_c_try_link "$LINENO"; then : 11713 lt_cv_irix_exported_symbol=yes 11714else 11715 lt_cv_irix_exported_symbol=no 11716fi 11717rm -f core conftest.err conftest.$ac_objext \ 11718 conftest$ac_exeext conftest.$ac_ext 11719 LDFLAGS="$save_LDFLAGS" 11720fi 11721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11722$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11723 if test "$lt_cv_irix_exported_symbol" = yes; then 11724 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' 11725 fi 11726 else 11727 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' 11728 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' 11729 fi 11730 archive_cmds_need_lc='no' 11731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11732 hardcode_libdir_separator=: 11733 inherit_rpath=yes 11734 link_all_deplibs=yes 11735 ;; 11736 11737 netbsd*) 11738 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11739 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11740 else 11741 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11742 fi 11743 hardcode_libdir_flag_spec='-R$libdir' 11744 hardcode_direct=yes 11745 hardcode_shlibpath_var=no 11746 ;; 11747 11748 newsos6) 11749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11750 hardcode_direct=yes 11751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11752 hardcode_libdir_separator=: 11753 hardcode_shlibpath_var=no 11754 ;; 11755 11756 *nto* | *qnx*) 11757 ;; 11758 11759 openbsd*) 11760 if test -f /usr/libexec/ld.so; then 11761 hardcode_direct=yes 11762 hardcode_shlibpath_var=no 11763 hardcode_direct_absolute=yes 11764 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11765 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11766 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11767 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11768 export_dynamic_flag_spec='${wl}-E' 11769 else 11770 case $host_os in 11771 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11773 hardcode_libdir_flag_spec='-R$libdir' 11774 ;; 11775 *) 11776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11777 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11778 ;; 11779 esac 11780 fi 11781 else 11782 ld_shlibs=no 11783 fi 11784 ;; 11785 11786 os2*) 11787 hardcode_libdir_flag_spec='-L$libdir' 11788 hardcode_minus_L=yes 11789 allow_undefined_flag=unsupported 11790 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' 11791 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11792 ;; 11793 11794 osf3*) 11795 if test "$GCC" = yes; then 11796 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11797 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' 11798 else 11799 allow_undefined_flag=' -expect_unresolved \*' 11800 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' 11801 fi 11802 archive_cmds_need_lc='no' 11803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11804 hardcode_libdir_separator=: 11805 ;; 11806 11807 osf4* | osf5*) # as osf3* with the addition of -msym flag 11808 if test "$GCC" = yes; then 11809 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11810 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' 11811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11812 else 11813 allow_undefined_flag=' -expect_unresolved \*' 11814 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' 11815 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~ 11816 $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' 11817 11818 # Both c and cxx compiler support -rpath directly 11819 hardcode_libdir_flag_spec='-rpath $libdir' 11820 fi 11821 archive_cmds_need_lc='no' 11822 hardcode_libdir_separator=: 11823 ;; 11824 11825 solaris*) 11826 no_undefined_flag=' -z defs' 11827 if test "$GCC" = yes; then 11828 wlarc='${wl}' 11829 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11831 $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' 11832 else 11833 case `$CC -V 2>&1` in 11834 *"Compilers 5.0"*) 11835 wlarc='' 11836 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11837 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11838 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11839 ;; 11840 *) 11841 wlarc='${wl}' 11842 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11843 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11844 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11845 ;; 11846 esac 11847 fi 11848 hardcode_libdir_flag_spec='-R$libdir' 11849 hardcode_shlibpath_var=no 11850 case $host_os in 11851 solaris2.[0-5] | solaris2.[0-5].*) ;; 11852 *) 11853 # The compiler driver will combine and reorder linker options, 11854 # but understands `-z linker_flag'. GCC discards it without `$wl', 11855 # but is careful enough not to reorder. 11856 # Supported since Solaris 2.6 (maybe 2.5.1?) 11857 if test "$GCC" = yes; then 11858 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11859 else 11860 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11861 fi 11862 ;; 11863 esac 11864 link_all_deplibs=yes 11865 ;; 11866 11867 sunos4*) 11868 if test "x$host_vendor" = xsequent; then 11869 # Use $CC to link under sequent, because it throws in some extra .o 11870 # files that make .init and .fini sections work. 11871 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11872 else 11873 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11874 fi 11875 hardcode_libdir_flag_spec='-L$libdir' 11876 hardcode_direct=yes 11877 hardcode_minus_L=yes 11878 hardcode_shlibpath_var=no 11879 ;; 11880 11881 sysv4) 11882 case $host_vendor in 11883 sni) 11884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11885 hardcode_direct=yes # is this really true??? 11886 ;; 11887 siemens) 11888 ## LD is ld it makes a PLAMLIB 11889 ## CC just makes a GrossModule. 11890 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11891 reload_cmds='$CC -r -o $output$reload_objs' 11892 hardcode_direct=no 11893 ;; 11894 motorola) 11895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11896 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11897 ;; 11898 esac 11899 runpath_var='LD_RUN_PATH' 11900 hardcode_shlibpath_var=no 11901 ;; 11902 11903 sysv4.3*) 11904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11905 hardcode_shlibpath_var=no 11906 export_dynamic_flag_spec='-Bexport' 11907 ;; 11908 11909 sysv4*MP*) 11910 if test -d /usr/nec; then 11911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11912 hardcode_shlibpath_var=no 11913 runpath_var=LD_RUN_PATH 11914 hardcode_runpath_var=yes 11915 ld_shlibs=yes 11916 fi 11917 ;; 11918 11919 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11920 no_undefined_flag='${wl}-z,text' 11921 archive_cmds_need_lc=no 11922 hardcode_shlibpath_var=no 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 sysv5* | sco3.2v5* | sco5v6*) 11935 # Note: We can NOT use -z defs as we might desire, because we do not 11936 # link with -lc, and that would cause any symbols used from libc to 11937 # always be unresolved, which means just about no library would 11938 # ever link correctly. If we're not using GNU ld we use -z text 11939 # though, which does catch some bad symbols but isn't as heavy-handed 11940 # as -z defs. 11941 no_undefined_flag='${wl}-z,text' 11942 allow_undefined_flag='${wl}-z,nodefs' 11943 archive_cmds_need_lc=no 11944 hardcode_shlibpath_var=no 11945 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11946 hardcode_libdir_separator=':' 11947 link_all_deplibs=yes 11948 export_dynamic_flag_spec='${wl}-Bexport' 11949 runpath_var='LD_RUN_PATH' 11950 11951 if test "$GCC" = yes; then 11952 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11953 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11954 else 11955 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11956 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11957 fi 11958 ;; 11959 11960 uts4*) 11961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11962 hardcode_libdir_flag_spec='-L$libdir' 11963 hardcode_shlibpath_var=no 11964 ;; 11965 11966 *) 11967 ld_shlibs=no 11968 ;; 11969 esac 11970 11971 if test x$host_vendor = xsni; then 11972 case $host in 11973 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11974 export_dynamic_flag_spec='${wl}-Blargedynsym' 11975 ;; 11976 esac 11977 fi 11978 fi 11979 11980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11981$as_echo "$ld_shlibs" >&6; } 11982test "$ld_shlibs" = no && can_build_shared=no 11983 11984with_gnu_ld=$with_gnu_ld 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000# 12001# Do we need to explicitly link libc? 12002# 12003case "x$archive_cmds_need_lc" in 12004x|xyes) 12005 # Assume -lc should be added 12006 archive_cmds_need_lc=yes 12007 12008 if test "$enable_shared" = yes && test "$GCC" = yes; then 12009 case $archive_cmds in 12010 *'~'*) 12011 # FIXME: we may have to deal with multi-command sequences. 12012 ;; 12013 '$CC '*) 12014 # Test whether the compiler implicitly links with -lc since on some 12015 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12016 # to ld, don't add -lc before -lgcc. 12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12018$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12019if ${lt_cv_archive_cmds_need_lc+:} false; then : 12020 $as_echo_n "(cached) " >&6 12021else 12022 $RM conftest* 12023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12024 12025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12026 (eval $ac_compile) 2>&5 12027 ac_status=$? 12028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12029 test $ac_status = 0; } 2>conftest.err; then 12030 soname=conftest 12031 lib=conftest 12032 libobjs=conftest.$ac_objext 12033 deplibs= 12034 wl=$lt_prog_compiler_wl 12035 pic_flag=$lt_prog_compiler_pic 12036 compiler_flags=-v 12037 linker_flags=-v 12038 verstring= 12039 output_objdir=. 12040 libname=conftest 12041 lt_save_allow_undefined_flag=$allow_undefined_flag 12042 allow_undefined_flag= 12043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12044 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12045 ac_status=$? 12046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12047 test $ac_status = 0; } 12048 then 12049 lt_cv_archive_cmds_need_lc=no 12050 else 12051 lt_cv_archive_cmds_need_lc=yes 12052 fi 12053 allow_undefined_flag=$lt_save_allow_undefined_flag 12054 else 12055 cat conftest.err 1>&5 12056 fi 12057 $RM conftest* 12058 12059fi 12060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12061$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12062 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12063 ;; 12064 esac 12065 fi 12066 ;; 12067esac 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 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12221$as_echo_n "checking dynamic linker characteristics... " >&6; } 12222 12223if test "$GCC" = yes; then 12224 case $host_os in 12225 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12226 *) lt_awk_arg="/^libraries:/" ;; 12227 esac 12228 case $host_os in 12229 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12230 *) lt_sed_strip_eq="s,=/,/,g" ;; 12231 esac 12232 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12233 case $lt_search_path_spec in 12234 *\;*) 12235 # if the path contains ";" then we assume it to be the separator 12236 # otherwise default to the standard path separator (i.e. ":") - it is 12237 # assumed that no part of a normal pathname contains ";" but that should 12238 # okay in the real world where ";" in dirpaths is itself problematic. 12239 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12240 ;; 12241 *) 12242 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12243 ;; 12244 esac 12245 # Ok, now we have the path, separated by spaces, we can step through it 12246 # and add multilib dir if necessary. 12247 lt_tmp_lt_search_path_spec= 12248 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12249 for lt_sys_path in $lt_search_path_spec; do 12250 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12251 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12252 else 12253 test -d "$lt_sys_path" && \ 12254 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12255 fi 12256 done 12257 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12258BEGIN {RS=" "; FS="/|\n";} { 12259 lt_foo=""; 12260 lt_count=0; 12261 for (lt_i = NF; lt_i > 0; lt_i--) { 12262 if ($lt_i != "" && $lt_i != ".") { 12263 if ($lt_i == "..") { 12264 lt_count++; 12265 } else { 12266 if (lt_count == 0) { 12267 lt_foo="/" $lt_i lt_foo; 12268 } else { 12269 lt_count--; 12270 } 12271 } 12272 } 12273 } 12274 if (lt_foo != "") { lt_freq[lt_foo]++; } 12275 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12276}'` 12277 # AWK program above erroneously prepends '/' to C:/dos/paths 12278 # for these hosts. 12279 case $host_os in 12280 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12281 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12282 esac 12283 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12284else 12285 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12286fi 12287library_names_spec= 12288libname_spec='lib$name' 12289soname_spec= 12290shrext_cmds=".so" 12291postinstall_cmds= 12292postuninstall_cmds= 12293finish_cmds= 12294finish_eval= 12295shlibpath_var= 12296shlibpath_overrides_runpath=unknown 12297version_type=none 12298dynamic_linker="$host_os ld.so" 12299sys_lib_dlsearch_path_spec="/lib /usr/lib" 12300need_lib_prefix=unknown 12301hardcode_into_libs=no 12302 12303# when you set need_version to no, make sure it does not cause -set_version 12304# flags to be left without arguments 12305need_version=unknown 12306 12307case $host_os in 12308aix3*) 12309 version_type=linux # correct to gnu/linux during the next big refactor 12310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12311 shlibpath_var=LIBPATH 12312 12313 # AIX 3 has no versioning support, so we append a major version to the name. 12314 soname_spec='${libname}${release}${shared_ext}$major' 12315 ;; 12316 12317aix[4-9]*) 12318 version_type=linux # correct to gnu/linux during the next big refactor 12319 need_lib_prefix=no 12320 need_version=no 12321 hardcode_into_libs=yes 12322 if test "$host_cpu" = ia64; then 12323 # AIX 5 supports IA64 12324 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12325 shlibpath_var=LD_LIBRARY_PATH 12326 else 12327 # With GCC up to 2.95.x, collect2 would create an import file 12328 # for dependence libraries. The import file would start with 12329 # the line `#! .'. This would cause the generated library to 12330 # depend on `.', always an invalid library. This was fixed in 12331 # development snapshots of GCC prior to 3.0. 12332 case $host_os in 12333 aix4 | aix4.[01] | aix4.[01].*) 12334 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12335 echo ' yes ' 12336 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12337 : 12338 else 12339 can_build_shared=no 12340 fi 12341 ;; 12342 esac 12343 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12344 # soname into executable. Probably we can add versioning support to 12345 # collect2, so additional links can be useful in future. 12346 if test "$aix_use_runtimelinking" = yes; then 12347 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12348 # instead of lib<name>.a to let people know that these are not 12349 # typical AIX shared libraries. 12350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12351 else 12352 # We preserve .a as extension for shared libraries through AIX4.2 12353 # and later when we are not doing run time linking. 12354 library_names_spec='${libname}${release}.a $libname.a' 12355 soname_spec='${libname}${release}${shared_ext}$major' 12356 fi 12357 shlibpath_var=LIBPATH 12358 fi 12359 ;; 12360 12361amigaos*) 12362 case $host_cpu in 12363 powerpc) 12364 # Since July 2007 AmigaOS4 officially supports .so libraries. 12365 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12367 ;; 12368 m68k) 12369 library_names_spec='$libname.ixlibrary $libname.a' 12370 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12371 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' 12372 ;; 12373 esac 12374 ;; 12375 12376beos*) 12377 library_names_spec='${libname}${shared_ext}' 12378 dynamic_linker="$host_os ld.so" 12379 shlibpath_var=LIBRARY_PATH 12380 ;; 12381 12382bsdi[45]*) 12383 version_type=linux # correct to gnu/linux during the next big refactor 12384 need_version=no 12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12386 soname_spec='${libname}${release}${shared_ext}$major' 12387 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12388 shlibpath_var=LD_LIBRARY_PATH 12389 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12390 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12391 # the default ld.so.conf also contains /usr/contrib/lib and 12392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12393 # libtool to hard-code these into programs 12394 ;; 12395 12396cygwin* | mingw* | pw32* | cegcc*) 12397 version_type=windows 12398 shrext_cmds=".dll" 12399 need_version=no 12400 need_lib_prefix=no 12401 12402 case $GCC,$cc_basename in 12403 yes,*) 12404 # gcc 12405 library_names_spec='$libname.dll.a' 12406 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12407 postinstall_cmds='base_file=`basename \${file}`~ 12408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12409 dldir=$destdir/`dirname \$dlpath`~ 12410 test -d \$dldir || mkdir -p \$dldir~ 12411 $install_prog $dir/$dlname \$dldir/$dlname~ 12412 chmod a+x \$dldir/$dlname~ 12413 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12414 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12415 fi' 12416 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12417 dlpath=$dir/\$dldll~ 12418 $RM \$dlpath' 12419 shlibpath_overrides_runpath=yes 12420 12421 case $host_os in 12422 cygwin*) 12423 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12424 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12425 12426 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12427 ;; 12428 mingw* | cegcc*) 12429 # MinGW DLLs use traditional 'lib' prefix 12430 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12431 ;; 12432 pw32*) 12433 # pw32 DLLs use 'pw' prefix rather than 'lib' 12434 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12435 ;; 12436 esac 12437 dynamic_linker='Win32 ld.exe' 12438 ;; 12439 12440 *,cl*) 12441 # Native MSVC 12442 libname_spec='$name' 12443 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12444 library_names_spec='${libname}.dll.lib' 12445 12446 case $build_os in 12447 mingw*) 12448 sys_lib_search_path_spec= 12449 lt_save_ifs=$IFS 12450 IFS=';' 12451 for lt_path in $LIB 12452 do 12453 IFS=$lt_save_ifs 12454 # Let DOS variable expansion print the short 8.3 style file name. 12455 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12456 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12457 done 12458 IFS=$lt_save_ifs 12459 # Convert to MSYS style. 12460 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12461 ;; 12462 cygwin*) 12463 # Convert to unix form, then to dos form, then back to unix form 12464 # but this time dos style (no spaces!) so that the unix form looks 12465 # like /cygdrive/c/PROGRA~1:/cygdr... 12466 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12467 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12468 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12469 ;; 12470 *) 12471 sys_lib_search_path_spec="$LIB" 12472 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12473 # It is most probably a Windows format PATH. 12474 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12475 else 12476 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12477 fi 12478 # FIXME: find the short name or the path components, as spaces are 12479 # common. (e.g. "Program Files" -> "PROGRA~1") 12480 ;; 12481 esac 12482 12483 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12484 postinstall_cmds='base_file=`basename \${file}`~ 12485 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12486 dldir=$destdir/`dirname \$dlpath`~ 12487 test -d \$dldir || mkdir -p \$dldir~ 12488 $install_prog $dir/$dlname \$dldir/$dlname' 12489 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12490 dlpath=$dir/\$dldll~ 12491 $RM \$dlpath' 12492 shlibpath_overrides_runpath=yes 12493 dynamic_linker='Win32 link.exe' 12494 ;; 12495 12496 *) 12497 # Assume MSVC wrapper 12498 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12499 dynamic_linker='Win32 ld.exe' 12500 ;; 12501 esac 12502 # FIXME: first we should search . and the directory the executable is in 12503 shlibpath_var=PATH 12504 ;; 12505 12506darwin* | rhapsody*) 12507 dynamic_linker="$host_os dyld" 12508 version_type=darwin 12509 need_lib_prefix=no 12510 need_version=no 12511 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12512 soname_spec='${libname}${release}${major}$shared_ext' 12513 shlibpath_overrides_runpath=yes 12514 shlibpath_var=DYLD_LIBRARY_PATH 12515 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12516 12517 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12518 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12519 ;; 12520 12521dgux*) 12522 version_type=linux # correct to gnu/linux during the next big refactor 12523 need_lib_prefix=no 12524 need_version=no 12525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12526 soname_spec='${libname}${release}${shared_ext}$major' 12527 shlibpath_var=LD_LIBRARY_PATH 12528 ;; 12529 12530freebsd* | dragonfly*) 12531 # DragonFly does not have aout. When/if they implement a new 12532 # versioning mechanism, adjust this. 12533 if test -x /usr/bin/objformat; then 12534 objformat=`/usr/bin/objformat` 12535 else 12536 case $host_os in 12537 freebsd[23].*) objformat=aout ;; 12538 *) objformat=elf ;; 12539 esac 12540 fi 12541 version_type=freebsd-$objformat 12542 case $version_type in 12543 freebsd-elf*) 12544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12545 need_version=no 12546 need_lib_prefix=no 12547 ;; 12548 freebsd-*) 12549 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12550 need_version=yes 12551 ;; 12552 esac 12553 shlibpath_var=LD_LIBRARY_PATH 12554 case $host_os in 12555 freebsd2.*) 12556 shlibpath_overrides_runpath=yes 12557 ;; 12558 freebsd3.[01]* | freebsdelf3.[01]*) 12559 shlibpath_overrides_runpath=yes 12560 hardcode_into_libs=yes 12561 ;; 12562 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12563 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12564 shlibpath_overrides_runpath=no 12565 hardcode_into_libs=yes 12566 ;; 12567 *) # from 4.6 on, and DragonFly 12568 shlibpath_overrides_runpath=yes 12569 hardcode_into_libs=yes 12570 ;; 12571 esac 12572 ;; 12573 12574gnu*) 12575 version_type=linux # correct to gnu/linux during the next big refactor 12576 need_lib_prefix=no 12577 need_version=no 12578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12579 soname_spec='${libname}${release}${shared_ext}$major' 12580 shlibpath_var=LD_LIBRARY_PATH 12581 shlibpath_overrides_runpath=no 12582 hardcode_into_libs=yes 12583 ;; 12584 12585haiku*) 12586 version_type=linux # correct to gnu/linux during the next big refactor 12587 need_lib_prefix=no 12588 need_version=no 12589 dynamic_linker="$host_os runtime_loader" 12590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12591 soname_spec='${libname}${release}${shared_ext}$major' 12592 shlibpath_var=LIBRARY_PATH 12593 shlibpath_overrides_runpath=yes 12594 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12595 hardcode_into_libs=yes 12596 ;; 12597 12598hpux9* | hpux10* | hpux11*) 12599 # Give a soname corresponding to the major version so that dld.sl refuses to 12600 # link against other versions. 12601 version_type=sunos 12602 need_lib_prefix=no 12603 need_version=no 12604 case $host_cpu in 12605 ia64*) 12606 shrext_cmds='.so' 12607 hardcode_into_libs=yes 12608 dynamic_linker="$host_os dld.so" 12609 shlibpath_var=LD_LIBRARY_PATH 12610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12612 soname_spec='${libname}${release}${shared_ext}$major' 12613 if test "X$HPUX_IA64_MODE" = X32; then 12614 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12615 else 12616 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12617 fi 12618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12619 ;; 12620 hppa*64*) 12621 shrext_cmds='.sl' 12622 hardcode_into_libs=yes 12623 dynamic_linker="$host_os dld.sl" 12624 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12625 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12627 soname_spec='${libname}${release}${shared_ext}$major' 12628 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12630 ;; 12631 *) 12632 shrext_cmds='.sl' 12633 dynamic_linker="$host_os dld.sl" 12634 shlibpath_var=SHLIB_PATH 12635 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12637 soname_spec='${libname}${release}${shared_ext}$major' 12638 ;; 12639 esac 12640 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12641 postinstall_cmds='chmod 555 $lib' 12642 # or fails outright, so override atomically: 12643 install_override_mode=555 12644 ;; 12645 12646interix[3-9]*) 12647 version_type=linux # correct to gnu/linux during the next big refactor 12648 need_lib_prefix=no 12649 need_version=no 12650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12651 soname_spec='${libname}${release}${shared_ext}$major' 12652 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12653 shlibpath_var=LD_LIBRARY_PATH 12654 shlibpath_overrides_runpath=no 12655 hardcode_into_libs=yes 12656 ;; 12657 12658irix5* | irix6* | nonstopux*) 12659 case $host_os in 12660 nonstopux*) version_type=nonstopux ;; 12661 *) 12662 if test "$lt_cv_prog_gnu_ld" = yes; then 12663 version_type=linux # correct to gnu/linux during the next big refactor 12664 else 12665 version_type=irix 12666 fi ;; 12667 esac 12668 need_lib_prefix=no 12669 need_version=no 12670 soname_spec='${libname}${release}${shared_ext}$major' 12671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12672 case $host_os in 12673 irix5* | nonstopux*) 12674 libsuff= shlibsuff= 12675 ;; 12676 *) 12677 case $LD in # libtool.m4 will add one of these switches to LD 12678 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12679 libsuff= shlibsuff= libmagic=32-bit;; 12680 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12681 libsuff=32 shlibsuff=N32 libmagic=N32;; 12682 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12683 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12684 *) libsuff= shlibsuff= libmagic=never-match;; 12685 esac 12686 ;; 12687 esac 12688 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12689 shlibpath_overrides_runpath=no 12690 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12691 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12692 hardcode_into_libs=yes 12693 ;; 12694 12695# No shared lib support for Linux oldld, aout, or coff. 12696linux*oldld* | linux*aout* | linux*coff*) 12697 dynamic_linker=no 12698 ;; 12699 12700# This must be glibc/ELF. 12701linux* | k*bsd*-gnu | kopensolaris*-gnu) 12702 version_type=linux # correct to gnu/linux during the next big refactor 12703 need_lib_prefix=no 12704 need_version=no 12705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12706 soname_spec='${libname}${release}${shared_ext}$major' 12707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12708 shlibpath_var=LD_LIBRARY_PATH 12709 shlibpath_overrides_runpath=no 12710 12711 # Some binutils ld are patched to set DT_RUNPATH 12712 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12713 $as_echo_n "(cached) " >&6 12714else 12715 lt_cv_shlibpath_overrides_runpath=no 12716 save_LDFLAGS=$LDFLAGS 12717 save_libdir=$libdir 12718 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12719 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12721/* end confdefs.h. */ 12722 12723int 12724main () 12725{ 12726 12727 ; 12728 return 0; 12729} 12730_ACEOF 12731if ac_fn_c_try_link "$LINENO"; then : 12732 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12733 lt_cv_shlibpath_overrides_runpath=yes 12734fi 12735fi 12736rm -f core conftest.err conftest.$ac_objext \ 12737 conftest$ac_exeext conftest.$ac_ext 12738 LDFLAGS=$save_LDFLAGS 12739 libdir=$save_libdir 12740 12741fi 12742 12743 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12744 12745 # This implies no fast_install, which is unacceptable. 12746 # Some rework will be needed to allow for fast_install 12747 # before this can be enabled. 12748 hardcode_into_libs=yes 12749 12750 # Add ABI-specific directories to the system library path. 12751 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12752 12753 # Append ld.so.conf contents to the search path 12754 if test -f /etc/ld.so.conf; then 12755 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' ' '` 12756 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12757 12758 fi 12759 12760 # We used to test for /lib/ld.so.1 and disable shared libraries on 12761 # powerpc, because MkLinux only supported shared libraries with the 12762 # GNU dynamic linker. Since this was broken with cross compilers, 12763 # most powerpc-linux boxes support dynamic linking these days and 12764 # people can always --disable-shared, the test was removed, and we 12765 # assume the GNU/Linux dynamic linker is in use. 12766 dynamic_linker='GNU/Linux ld.so' 12767 ;; 12768 12769netbsd*) 12770 version_type=sunos 12771 need_lib_prefix=no 12772 need_version=no 12773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12776 dynamic_linker='NetBSD (a.out) ld.so' 12777 else 12778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12779 soname_spec='${libname}${release}${shared_ext}$major' 12780 dynamic_linker='NetBSD ld.elf_so' 12781 fi 12782 shlibpath_var=LD_LIBRARY_PATH 12783 shlibpath_overrides_runpath=yes 12784 hardcode_into_libs=yes 12785 ;; 12786 12787newsos6) 12788 version_type=linux # correct to gnu/linux during the next big refactor 12789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12790 shlibpath_var=LD_LIBRARY_PATH 12791 shlibpath_overrides_runpath=yes 12792 ;; 12793 12794*nto* | *qnx*) 12795 version_type=qnx 12796 need_lib_prefix=no 12797 need_version=no 12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12799 soname_spec='${libname}${release}${shared_ext}$major' 12800 shlibpath_var=LD_LIBRARY_PATH 12801 shlibpath_overrides_runpath=no 12802 hardcode_into_libs=yes 12803 dynamic_linker='ldqnx.so' 12804 ;; 12805 12806openbsd*) 12807 version_type=sunos 12808 sys_lib_dlsearch_path_spec="/usr/lib" 12809 need_lib_prefix=no 12810 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12811 case $host_os in 12812 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12813 *) need_version=no ;; 12814 esac 12815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12817 shlibpath_var=LD_LIBRARY_PATH 12818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12819 case $host_os in 12820 openbsd2.[89] | openbsd2.[89].*) 12821 shlibpath_overrides_runpath=no 12822 ;; 12823 *) 12824 shlibpath_overrides_runpath=yes 12825 ;; 12826 esac 12827 else 12828 shlibpath_overrides_runpath=yes 12829 fi 12830 ;; 12831 12832os2*) 12833 libname_spec='$name' 12834 shrext_cmds=".dll" 12835 need_lib_prefix=no 12836 library_names_spec='$libname${shared_ext} $libname.a' 12837 dynamic_linker='OS/2 ld.exe' 12838 shlibpath_var=LIBPATH 12839 ;; 12840 12841osf3* | osf4* | osf5*) 12842 version_type=osf 12843 need_lib_prefix=no 12844 need_version=no 12845 soname_spec='${libname}${release}${shared_ext}$major' 12846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12847 shlibpath_var=LD_LIBRARY_PATH 12848 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12849 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12850 ;; 12851 12852rdos*) 12853 dynamic_linker=no 12854 ;; 12855 12856solaris*) 12857 version_type=linux # correct to gnu/linux during the next big refactor 12858 need_lib_prefix=no 12859 need_version=no 12860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12861 soname_spec='${libname}${release}${shared_ext}$major' 12862 shlibpath_var=LD_LIBRARY_PATH 12863 shlibpath_overrides_runpath=yes 12864 hardcode_into_libs=yes 12865 # ldd complains unless libraries are executable 12866 postinstall_cmds='chmod +x $lib' 12867 ;; 12868 12869sunos4*) 12870 version_type=sunos 12871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12872 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12873 shlibpath_var=LD_LIBRARY_PATH 12874 shlibpath_overrides_runpath=yes 12875 if test "$with_gnu_ld" = yes; then 12876 need_lib_prefix=no 12877 fi 12878 need_version=yes 12879 ;; 12880 12881sysv4 | sysv4.3*) 12882 version_type=linux # correct to gnu/linux during the next big refactor 12883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12884 soname_spec='${libname}${release}${shared_ext}$major' 12885 shlibpath_var=LD_LIBRARY_PATH 12886 case $host_vendor in 12887 sni) 12888 shlibpath_overrides_runpath=no 12889 need_lib_prefix=no 12890 runpath_var=LD_RUN_PATH 12891 ;; 12892 siemens) 12893 need_lib_prefix=no 12894 ;; 12895 motorola) 12896 need_lib_prefix=no 12897 need_version=no 12898 shlibpath_overrides_runpath=no 12899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12900 ;; 12901 esac 12902 ;; 12903 12904sysv4*MP*) 12905 if test -d /usr/nec ;then 12906 version_type=linux # correct to gnu/linux during the next big refactor 12907 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12908 soname_spec='$libname${shared_ext}.$major' 12909 shlibpath_var=LD_LIBRARY_PATH 12910 fi 12911 ;; 12912 12913sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12914 version_type=freebsd-elf 12915 need_lib_prefix=no 12916 need_version=no 12917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12918 soname_spec='${libname}${release}${shared_ext}$major' 12919 shlibpath_var=LD_LIBRARY_PATH 12920 shlibpath_overrides_runpath=yes 12921 hardcode_into_libs=yes 12922 if test "$with_gnu_ld" = yes; then 12923 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12924 else 12925 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12926 case $host_os in 12927 sco3.2v5*) 12928 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12929 ;; 12930 esac 12931 fi 12932 sys_lib_dlsearch_path_spec='/usr/lib' 12933 ;; 12934 12935tpf*) 12936 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12937 version_type=linux # correct to gnu/linux during the next big refactor 12938 need_lib_prefix=no 12939 need_version=no 12940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12941 shlibpath_var=LD_LIBRARY_PATH 12942 shlibpath_overrides_runpath=no 12943 hardcode_into_libs=yes 12944 ;; 12945 12946uts4*) 12947 version_type=linux # correct to gnu/linux during the next big refactor 12948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12949 soname_spec='${libname}${release}${shared_ext}$major' 12950 shlibpath_var=LD_LIBRARY_PATH 12951 ;; 12952 12953*) 12954 dynamic_linker=no 12955 ;; 12956esac 12957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12958$as_echo "$dynamic_linker" >&6; } 12959test "$dynamic_linker" = no && can_build_shared=no 12960 12961variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12962if test "$GCC" = yes; then 12963 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12964fi 12965 12966if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12967 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12968fi 12969if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12970 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12971fi 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 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13065$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13066hardcode_action= 13067if test -n "$hardcode_libdir_flag_spec" || 13068 test -n "$runpath_var" || 13069 test "X$hardcode_automatic" = "Xyes" ; then 13070 13071 # We can hardcode non-existent directories. 13072 if test "$hardcode_direct" != no && 13073 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13074 # have to relink, otherwise we might link with an installed library 13075 # when we should be linking with a yet-to-be-installed one 13076 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13077 test "$hardcode_minus_L" != no; then 13078 # Linking always hardcodes the temporary library directory. 13079 hardcode_action=relink 13080 else 13081 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13082 hardcode_action=immediate 13083 fi 13084else 13085 # We cannot hardcode anything, or else we can only hardcode existing 13086 # directories. 13087 hardcode_action=unsupported 13088fi 13089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13090$as_echo "$hardcode_action" >&6; } 13091 13092if test "$hardcode_action" = relink || 13093 test "$inherit_rpath" = yes; then 13094 # Fast installation is not supported 13095 enable_fast_install=no 13096elif test "$shlibpath_overrides_runpath" = yes || 13097 test "$enable_shared" = no; then 13098 # Fast installation is not necessary 13099 enable_fast_install=needless 13100fi 13101 13102 13103 13104 13105 13106 13107 if test "x$enable_dlopen" != xyes; then 13108 enable_dlopen=unknown 13109 enable_dlopen_self=unknown 13110 enable_dlopen_self_static=unknown 13111else 13112 lt_cv_dlopen=no 13113 lt_cv_dlopen_libs= 13114 13115 case $host_os in 13116 beos*) 13117 lt_cv_dlopen="load_add_on" 13118 lt_cv_dlopen_libs= 13119 lt_cv_dlopen_self=yes 13120 ;; 13121 13122 mingw* | pw32* | cegcc*) 13123 lt_cv_dlopen="LoadLibrary" 13124 lt_cv_dlopen_libs= 13125 ;; 13126 13127 cygwin*) 13128 lt_cv_dlopen="dlopen" 13129 lt_cv_dlopen_libs= 13130 ;; 13131 13132 darwin*) 13133 # if libdl is installed we need to link against it 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13135$as_echo_n "checking for dlopen in -ldl... " >&6; } 13136if ${ac_cv_lib_dl_dlopen+:} false; then : 13137 $as_echo_n "(cached) " >&6 13138else 13139 ac_check_lib_save_LIBS=$LIBS 13140LIBS="-ldl $LIBS" 13141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13142/* end confdefs.h. */ 13143 13144/* Override any GCC internal prototype to avoid an error. 13145 Use char because int might match the return type of a GCC 13146 builtin and then its argument prototype would still apply. */ 13147#ifdef __cplusplus 13148extern "C" 13149#endif 13150char dlopen (); 13151int 13152main () 13153{ 13154return dlopen (); 13155 ; 13156 return 0; 13157} 13158_ACEOF 13159if ac_fn_c_try_link "$LINENO"; then : 13160 ac_cv_lib_dl_dlopen=yes 13161else 13162 ac_cv_lib_dl_dlopen=no 13163fi 13164rm -f core conftest.err conftest.$ac_objext \ 13165 conftest$ac_exeext conftest.$ac_ext 13166LIBS=$ac_check_lib_save_LIBS 13167fi 13168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13169$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13170if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13171 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13172else 13173 13174 lt_cv_dlopen="dyld" 13175 lt_cv_dlopen_libs= 13176 lt_cv_dlopen_self=yes 13177 13178fi 13179 13180 ;; 13181 13182 *) 13183 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13184if test "x$ac_cv_func_shl_load" = xyes; then : 13185 lt_cv_dlopen="shl_load" 13186else 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13188$as_echo_n "checking for shl_load in -ldld... " >&6; } 13189if ${ac_cv_lib_dld_shl_load+:} false; then : 13190 $as_echo_n "(cached) " >&6 13191else 13192 ac_check_lib_save_LIBS=$LIBS 13193LIBS="-ldld $LIBS" 13194cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13195/* end confdefs.h. */ 13196 13197/* Override any GCC internal prototype to avoid an error. 13198 Use char because int might match the return type of a GCC 13199 builtin and then its argument prototype would still apply. */ 13200#ifdef __cplusplus 13201extern "C" 13202#endif 13203char shl_load (); 13204int 13205main () 13206{ 13207return shl_load (); 13208 ; 13209 return 0; 13210} 13211_ACEOF 13212if ac_fn_c_try_link "$LINENO"; then : 13213 ac_cv_lib_dld_shl_load=yes 13214else 13215 ac_cv_lib_dld_shl_load=no 13216fi 13217rm -f core conftest.err conftest.$ac_objext \ 13218 conftest$ac_exeext conftest.$ac_ext 13219LIBS=$ac_check_lib_save_LIBS 13220fi 13221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13222$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13223if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13224 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13225else 13226 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13227if test "x$ac_cv_func_dlopen" = xyes; then : 13228 lt_cv_dlopen="dlopen" 13229else 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13231$as_echo_n "checking for dlopen in -ldl... " >&6; } 13232if ${ac_cv_lib_dl_dlopen+:} false; then : 13233 $as_echo_n "(cached) " >&6 13234else 13235 ac_check_lib_save_LIBS=$LIBS 13236LIBS="-ldl $LIBS" 13237cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13238/* end confdefs.h. */ 13239 13240/* Override any GCC internal prototype to avoid an error. 13241 Use char because int might match the return type of a GCC 13242 builtin and then its argument prototype would still apply. */ 13243#ifdef __cplusplus 13244extern "C" 13245#endif 13246char dlopen (); 13247int 13248main () 13249{ 13250return dlopen (); 13251 ; 13252 return 0; 13253} 13254_ACEOF 13255if ac_fn_c_try_link "$LINENO"; then : 13256 ac_cv_lib_dl_dlopen=yes 13257else 13258 ac_cv_lib_dl_dlopen=no 13259fi 13260rm -f core conftest.err conftest.$ac_objext \ 13261 conftest$ac_exeext conftest.$ac_ext 13262LIBS=$ac_check_lib_save_LIBS 13263fi 13264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13265$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13266if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13267 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13268else 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13270$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13271if ${ac_cv_lib_svld_dlopen+:} false; then : 13272 $as_echo_n "(cached) " >&6 13273else 13274 ac_check_lib_save_LIBS=$LIBS 13275LIBS="-lsvld $LIBS" 13276cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13277/* end confdefs.h. */ 13278 13279/* Override any GCC internal prototype to avoid an error. 13280 Use char because int might match the return type of a GCC 13281 builtin and then its argument prototype would still apply. */ 13282#ifdef __cplusplus 13283extern "C" 13284#endif 13285char dlopen (); 13286int 13287main () 13288{ 13289return dlopen (); 13290 ; 13291 return 0; 13292} 13293_ACEOF 13294if ac_fn_c_try_link "$LINENO"; then : 13295 ac_cv_lib_svld_dlopen=yes 13296else 13297 ac_cv_lib_svld_dlopen=no 13298fi 13299rm -f core conftest.err conftest.$ac_objext \ 13300 conftest$ac_exeext conftest.$ac_ext 13301LIBS=$ac_check_lib_save_LIBS 13302fi 13303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13304$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13305if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13306 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13307else 13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13309$as_echo_n "checking for dld_link in -ldld... " >&6; } 13310if ${ac_cv_lib_dld_dld_link+:} false; then : 13311 $as_echo_n "(cached) " >&6 13312else 13313 ac_check_lib_save_LIBS=$LIBS 13314LIBS="-ldld $LIBS" 13315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13316/* end confdefs.h. */ 13317 13318/* Override any GCC internal prototype to avoid an error. 13319 Use char because int might match the return type of a GCC 13320 builtin and then its argument prototype would still apply. */ 13321#ifdef __cplusplus 13322extern "C" 13323#endif 13324char dld_link (); 13325int 13326main () 13327{ 13328return dld_link (); 13329 ; 13330 return 0; 13331} 13332_ACEOF 13333if ac_fn_c_try_link "$LINENO"; then : 13334 ac_cv_lib_dld_dld_link=yes 13335else 13336 ac_cv_lib_dld_dld_link=no 13337fi 13338rm -f core conftest.err conftest.$ac_objext \ 13339 conftest$ac_exeext conftest.$ac_ext 13340LIBS=$ac_check_lib_save_LIBS 13341fi 13342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13343$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13344if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13345 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13346fi 13347 13348 13349fi 13350 13351 13352fi 13353 13354 13355fi 13356 13357 13358fi 13359 13360 13361fi 13362 13363 ;; 13364 esac 13365 13366 if test "x$lt_cv_dlopen" != xno; then 13367 enable_dlopen=yes 13368 else 13369 enable_dlopen=no 13370 fi 13371 13372 case $lt_cv_dlopen in 13373 dlopen) 13374 save_CPPFLAGS="$CPPFLAGS" 13375 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13376 13377 save_LDFLAGS="$LDFLAGS" 13378 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13379 13380 save_LIBS="$LIBS" 13381 LIBS="$lt_cv_dlopen_libs $LIBS" 13382 13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13384$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13385if ${lt_cv_dlopen_self+:} false; then : 13386 $as_echo_n "(cached) " >&6 13387else 13388 if test "$cross_compiling" = yes; then : 13389 lt_cv_dlopen_self=cross 13390else 13391 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13392 lt_status=$lt_dlunknown 13393 cat > conftest.$ac_ext <<_LT_EOF 13394#line $LINENO "configure" 13395#include "confdefs.h" 13396 13397#if HAVE_DLFCN_H 13398#include <dlfcn.h> 13399#endif 13400 13401#include <stdio.h> 13402 13403#ifdef RTLD_GLOBAL 13404# define LT_DLGLOBAL RTLD_GLOBAL 13405#else 13406# ifdef DL_GLOBAL 13407# define LT_DLGLOBAL DL_GLOBAL 13408# else 13409# define LT_DLGLOBAL 0 13410# endif 13411#endif 13412 13413/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13414 find out it does not work in some platform. */ 13415#ifndef LT_DLLAZY_OR_NOW 13416# ifdef RTLD_LAZY 13417# define LT_DLLAZY_OR_NOW RTLD_LAZY 13418# else 13419# ifdef DL_LAZY 13420# define LT_DLLAZY_OR_NOW DL_LAZY 13421# else 13422# ifdef RTLD_NOW 13423# define LT_DLLAZY_OR_NOW RTLD_NOW 13424# else 13425# ifdef DL_NOW 13426# define LT_DLLAZY_OR_NOW DL_NOW 13427# else 13428# define LT_DLLAZY_OR_NOW 0 13429# endif 13430# endif 13431# endif 13432# endif 13433#endif 13434 13435/* When -fvisbility=hidden is used, assume the code has been annotated 13436 correspondingly for the symbols needed. */ 13437#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13438int fnord () __attribute__((visibility("default"))); 13439#endif 13440 13441int fnord () { return 42; } 13442int main () 13443{ 13444 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13445 int status = $lt_dlunknown; 13446 13447 if (self) 13448 { 13449 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13450 else 13451 { 13452 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13453 else puts (dlerror ()); 13454 } 13455 /* dlclose (self); */ 13456 } 13457 else 13458 puts (dlerror ()); 13459 13460 return status; 13461} 13462_LT_EOF 13463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13464 (eval $ac_link) 2>&5 13465 ac_status=$? 13466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13467 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13468 (./conftest; exit; ) >&5 2>/dev/null 13469 lt_status=$? 13470 case x$lt_status in 13471 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13472 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13473 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13474 esac 13475 else : 13476 # compilation failed 13477 lt_cv_dlopen_self=no 13478 fi 13479fi 13480rm -fr conftest* 13481 13482 13483fi 13484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13485$as_echo "$lt_cv_dlopen_self" >&6; } 13486 13487 if test "x$lt_cv_dlopen_self" = xyes; then 13488 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13490$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13491if ${lt_cv_dlopen_self_static+:} false; then : 13492 $as_echo_n "(cached) " >&6 13493else 13494 if test "$cross_compiling" = yes; then : 13495 lt_cv_dlopen_self_static=cross 13496else 13497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13498 lt_status=$lt_dlunknown 13499 cat > conftest.$ac_ext <<_LT_EOF 13500#line $LINENO "configure" 13501#include "confdefs.h" 13502 13503#if HAVE_DLFCN_H 13504#include <dlfcn.h> 13505#endif 13506 13507#include <stdio.h> 13508 13509#ifdef RTLD_GLOBAL 13510# define LT_DLGLOBAL RTLD_GLOBAL 13511#else 13512# ifdef DL_GLOBAL 13513# define LT_DLGLOBAL DL_GLOBAL 13514# else 13515# define LT_DLGLOBAL 0 13516# endif 13517#endif 13518 13519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13520 find out it does not work in some platform. */ 13521#ifndef LT_DLLAZY_OR_NOW 13522# ifdef RTLD_LAZY 13523# define LT_DLLAZY_OR_NOW RTLD_LAZY 13524# else 13525# ifdef DL_LAZY 13526# define LT_DLLAZY_OR_NOW DL_LAZY 13527# else 13528# ifdef RTLD_NOW 13529# define LT_DLLAZY_OR_NOW RTLD_NOW 13530# else 13531# ifdef DL_NOW 13532# define LT_DLLAZY_OR_NOW DL_NOW 13533# else 13534# define LT_DLLAZY_OR_NOW 0 13535# endif 13536# endif 13537# endif 13538# endif 13539#endif 13540 13541/* When -fvisbility=hidden is used, assume the code has been annotated 13542 correspondingly for the symbols needed. */ 13543#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13544int fnord () __attribute__((visibility("default"))); 13545#endif 13546 13547int fnord () { return 42; } 13548int main () 13549{ 13550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13551 int status = $lt_dlunknown; 13552 13553 if (self) 13554 { 13555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13556 else 13557 { 13558 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13559 else puts (dlerror ()); 13560 } 13561 /* dlclose (self); */ 13562 } 13563 else 13564 puts (dlerror ()); 13565 13566 return status; 13567} 13568_LT_EOF 13569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13570 (eval $ac_link) 2>&5 13571 ac_status=$? 13572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13573 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13574 (./conftest; exit; ) >&5 2>/dev/null 13575 lt_status=$? 13576 case x$lt_status in 13577 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13578 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13579 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13580 esac 13581 else : 13582 # compilation failed 13583 lt_cv_dlopen_self_static=no 13584 fi 13585fi 13586rm -fr conftest* 13587 13588 13589fi 13590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13591$as_echo "$lt_cv_dlopen_self_static" >&6; } 13592 fi 13593 13594 CPPFLAGS="$save_CPPFLAGS" 13595 LDFLAGS="$save_LDFLAGS" 13596 LIBS="$save_LIBS" 13597 ;; 13598 esac 13599 13600 case $lt_cv_dlopen_self in 13601 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13602 *) enable_dlopen_self=unknown ;; 13603 esac 13604 13605 case $lt_cv_dlopen_self_static in 13606 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13607 *) enable_dlopen_self_static=unknown ;; 13608 esac 13609fi 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627striplib= 13628old_striplib= 13629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13630$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13631if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13632 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13633 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13635$as_echo "yes" >&6; } 13636else 13637# FIXME - insert some real tests, host_os isn't really good enough 13638 case $host_os in 13639 darwin*) 13640 if test -n "$STRIP" ; then 13641 striplib="$STRIP -x" 13642 old_striplib="$STRIP -S" 13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13644$as_echo "yes" >&6; } 13645 else 13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13647$as_echo "no" >&6; } 13648 fi 13649 ;; 13650 *) 13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13652$as_echo "no" >&6; } 13653 ;; 13654 esac 13655fi 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 # Report which library types will actually be built 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13670$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13672$as_echo "$can_build_shared" >&6; } 13673 13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13675$as_echo_n "checking whether to build shared libraries... " >&6; } 13676 test "$can_build_shared" = "no" && enable_shared=no 13677 13678 # On AIX, shared libraries and static libraries use the same namespace, and 13679 # are all built from PIC. 13680 case $host_os in 13681 aix3*) 13682 test "$enable_shared" = yes && enable_static=no 13683 if test -n "$RANLIB"; then 13684 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13685 postinstall_cmds='$RANLIB $lib' 13686 fi 13687 ;; 13688 13689 aix[4-9]*) 13690 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13691 test "$enable_shared" = yes && enable_static=no 13692 fi 13693 ;; 13694 esac 13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13696$as_echo "$enable_shared" >&6; } 13697 13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13699$as_echo_n "checking whether to build static libraries... " >&6; } 13700 # Make sure either enable_shared or enable_static is yes. 13701 test "$enable_shared" = yes || enable_static=yes 13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13703$as_echo "$enable_static" >&6; } 13704 13705 13706 13707 13708fi 13709ac_ext=c 13710ac_cpp='$CPP $CPPFLAGS' 13711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13713ac_compiler_gnu=$ac_cv_c_compiler_gnu 13714 13715CC="$lt_save_CC" 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 ac_config_commands="$ac_config_commands libtool" 13732 13733 13734 13735 13736# Only expand once: 13737 13738 13739 13740 13741# Checks for header files. 13742for 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 13743do : 13744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13745ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13746" 13747if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13748 cat >>confdefs.h <<_ACEOF 13749#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13750_ACEOF 13751 13752fi 13753 13754done 13755 13756 13757# check for types. 13758# Using own tests for int64* because autoconf builtin only give 32bit. 13759ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 13760if test "x$ac_cv_type_int8_t" = xyes; then : 13761 13762else 13763 13764cat >>confdefs.h <<_ACEOF 13765#define int8_t signed char 13766_ACEOF 13767 13768fi 13769 13770ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 13771if test "x$ac_cv_type_int16_t" = xyes; then : 13772 13773else 13774 13775cat >>confdefs.h <<_ACEOF 13776#define int16_t short 13777_ACEOF 13778 13779fi 13780 13781ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 13782if test "x$ac_cv_type_int32_t" = xyes; then : 13783 13784else 13785 13786cat >>confdefs.h <<_ACEOF 13787#define int32_t int 13788_ACEOF 13789 13790fi 13791 13792ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 13793if test "x$ac_cv_type_int64_t" = xyes; then : 13794 13795else 13796 13797cat >>confdefs.h <<_ACEOF 13798#define int64_t long long 13799_ACEOF 13800 13801fi 13802 13803ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 13804if test "x$ac_cv_type_uint8_t" = xyes; then : 13805 13806else 13807 13808cat >>confdefs.h <<_ACEOF 13809#define uint8_t unsigned char 13810_ACEOF 13811 13812fi 13813 13814ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 13815if test "x$ac_cv_type_uint16_t" = xyes; then : 13816 13817else 13818 13819cat >>confdefs.h <<_ACEOF 13820#define uint16_t unsigned short 13821_ACEOF 13822 13823fi 13824 13825ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 13826if test "x$ac_cv_type_uint32_t" = xyes; then : 13827 13828else 13829 13830cat >>confdefs.h <<_ACEOF 13831#define uint32_t unsigned int 13832_ACEOF 13833 13834fi 13835 13836ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 13837if test "x$ac_cv_type_uint64_t" = xyes; then : 13838 13839else 13840 13841cat >>confdefs.h <<_ACEOF 13842#define uint64_t unsigned long long 13843_ACEOF 13844 13845fi 13846 13847ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13848if test "x$ac_cv_type_size_t" = xyes; then : 13849 13850else 13851 13852cat >>confdefs.h <<_ACEOF 13853#define size_t unsigned int 13854_ACEOF 13855 13856fi 13857 13858ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 13859if test "x$ac_cv_type_ssize_t" = xyes; then : 13860 13861else 13862 13863cat >>confdefs.h <<_ACEOF 13864#define ssize_t int 13865_ACEOF 13866 13867fi 13868 13869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 13870$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 13871if ${ac_cv_type_uid_t+:} false; then : 13872 $as_echo_n "(cached) " >&6 13873else 13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13875/* end confdefs.h. */ 13876#include <sys/types.h> 13877 13878_ACEOF 13879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13880 $EGREP "uid_t" >/dev/null 2>&1; then : 13881 ac_cv_type_uid_t=yes 13882else 13883 ac_cv_type_uid_t=no 13884fi 13885rm -f conftest* 13886 13887fi 13888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 13889$as_echo "$ac_cv_type_uid_t" >&6; } 13890if test $ac_cv_type_uid_t = no; then 13891 13892$as_echo "#define uid_t int" >>confdefs.h 13893 13894 13895$as_echo "#define gid_t int" >>confdefs.h 13896 13897fi 13898 13899ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13900if test "x$ac_cv_type_pid_t" = xyes; then : 13901 13902else 13903 13904cat >>confdefs.h <<_ACEOF 13905#define pid_t int 13906_ACEOF 13907 13908fi 13909 13910ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 13911if test "x$ac_cv_type_off_t" = xyes; then : 13912 13913else 13914 13915cat >>confdefs.h <<_ACEOF 13916#define off_t long int 13917_ACEOF 13918 13919fi 13920 13921ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" " 13922$ac_includes_default 13923#ifdef HAVE_WINSOCK2_H 13924# include <winsock2.h> 13925#endif 13926 13927" 13928if test "x$ac_cv_type_u_char" = xyes; then : 13929 13930else 13931 13932$as_echo "#define u_char unsigned char" >>confdefs.h 13933 13934fi 13935 13936ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " 13937$ac_includes_default 13938#ifdef HAVE_SYS_RESOURCE_H 13939# include <sys/resource.h> 13940#endif 13941 13942" 13943if test "x$ac_cv_type_rlim_t" = xyes; then : 13944 13945else 13946 13947$as_echo "#define rlim_t unsigned long" >>confdefs.h 13948 13949fi 13950 13951 13952ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 13953$ac_includes_default 13954#ifdef HAVE_SYS_SOCKET_H 13955# include <sys/socket.h> 13956#endif 13957#ifdef HAVE_WS2TCPIP_H 13958# include <ws2tcpip.h> 13959#endif 13960 13961" 13962if test "x$ac_cv_type_socklen_t" = xyes; then : 13963 13964else 13965 13966$as_echo "#define socklen_t int" >>confdefs.h 13967 13968fi 13969 13970 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 13971$ac_includes_default 13972#ifdef HAVE_SYS_TYPES_H 13973# include <sys/types.h> 13974#endif 13975#ifdef HAVE_NETINET_IN_H 13976# include <netinet/in.h> 13977#endif 13978 13979" 13980if test "x$ac_cv_type_in_addr_t" = xyes; then : 13981 13982else 13983 13984$as_echo "#define in_addr_t uint32_t" >>confdefs.h 13985 13986fi 13987 13988 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 13989$ac_includes_default 13990#ifdef HAVE_SYS_TYPES_H 13991# include <sys/types.h> 13992#endif 13993#ifdef HAVE_NETINET_IN_H 13994# include <netinet/in.h> 13995#endif 13996 13997" 13998if test "x$ac_cv_type_in_port_t" = xyes; then : 13999 14000else 14001 14002$as_echo "#define in_port_t uint16_t" >>confdefs.h 14003 14004fi 14005 14006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 14007$as_echo_n "checking if memcmp compares unsigned... " >&6; } 14008if test "$cross_compiling" = yes; then : 14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 14010$as_echo "cross-compile no" >&6; } 14011 14012$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 14013 14014 case " $LIBOBJS " in 14015 *" memcmp.$ac_objext "* ) ;; 14016 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 14017 ;; 14018esac 14019 14020 14021else 14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14023/* end confdefs.h. */ 14024 14025#include <stdio.h> 14026#include <stdlib.h> 14027#include <string.h> 14028int main(void) 14029{ 14030 char a = 255, b = 0; 14031 if(memcmp(&a, &b, 1) < 0) 14032 return 1; 14033 return 0; 14034} 14035 14036_ACEOF 14037if ac_fn_c_try_run "$LINENO"; then : 14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14039$as_echo "yes" >&6; } 14040else 14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14042$as_echo "no" >&6; } 14043 14044$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 14045 14046 case " $LIBOBJS " in 14047 *" memcmp.$ac_objext "* ) ;; 14048 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 14049 ;; 14050esac 14051 14052 14053fi 14054rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14055 conftest.$ac_objext conftest.beam conftest.$ac_ext 14056fi 14057 14058 14059# The cast to long int works around a bug in the HP C Compiler 14060# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14061# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14062# This bug is HP SR number 8606223364. 14063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 14064$as_echo_n "checking size of time_t... " >&6; } 14065if ${ac_cv_sizeof_time_t+:} false; then : 14066 $as_echo_n "(cached) " >&6 14067else 14068 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 14069$ac_includes_default 14070#ifdef TIME_WITH_SYS_TIME 14071# include <sys/time.h> 14072# include <time.h> 14073#else 14074# ifdef HAVE_SYS_TIME_H 14075# include <sys/time.h> 14076# else 14077# include <time.h> 14078# endif 14079#endif 14080 14081"; then : 14082 14083else 14084 if test "$ac_cv_type_time_t" = yes; then 14085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14087as_fn_error 77 "cannot compute sizeof (time_t) 14088See \`config.log' for more details" "$LINENO" 5; } 14089 else 14090 ac_cv_sizeof_time_t=0 14091 fi 14092fi 14093 14094fi 14095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 14096$as_echo "$ac_cv_sizeof_time_t" >&6; } 14097 14098 14099 14100cat >>confdefs.h <<_ACEOF 14101#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 14102_ACEOF 14103 14104 14105 14106# add option to disable the evil rpath 14107 14108# Check whether --enable-rpath was given. 14109if test "${enable_rpath+set}" = set; then : 14110 enableval=$enable_rpath; enable_rpath=$enableval 14111else 14112 enable_rpath=yes 14113fi 14114 14115if test "x$enable_rpath" = xno; then 14116 ac_config_commands="$ac_config_commands disable-rpath" 14117 14118fi 14119 14120 14121 14122# check to see if libraries are needed for these functions. 14123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 14124$as_echo_n "checking for library containing inet_pton... " >&6; } 14125if ${ac_cv_search_inet_pton+:} false; then : 14126 $as_echo_n "(cached) " >&6 14127else 14128 ac_func_search_save_LIBS=$LIBS 14129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14130/* end confdefs.h. */ 14131 14132/* Override any GCC internal prototype to avoid an error. 14133 Use char because int might match the return type of a GCC 14134 builtin and then its argument prototype would still apply. */ 14135#ifdef __cplusplus 14136extern "C" 14137#endif 14138char inet_pton (); 14139int 14140main () 14141{ 14142return inet_pton (); 14143 ; 14144 return 0; 14145} 14146_ACEOF 14147for ac_lib in '' nsl; do 14148 if test -z "$ac_lib"; then 14149 ac_res="none required" 14150 else 14151 ac_res=-l$ac_lib 14152 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14153 fi 14154 if ac_fn_c_try_link "$LINENO"; then : 14155 ac_cv_search_inet_pton=$ac_res 14156fi 14157rm -f core conftest.err conftest.$ac_objext \ 14158 conftest$ac_exeext 14159 if ${ac_cv_search_inet_pton+:} false; then : 14160 break 14161fi 14162done 14163if ${ac_cv_search_inet_pton+:} false; then : 14164 14165else 14166 ac_cv_search_inet_pton=no 14167fi 14168rm conftest.$ac_ext 14169LIBS=$ac_func_search_save_LIBS 14170fi 14171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 14172$as_echo "$ac_cv_search_inet_pton" >&6; } 14173ac_res=$ac_cv_search_inet_pton 14174if test "$ac_res" != no; then : 14175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14176 14177fi 14178 14179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 14180$as_echo_n "checking for library containing socket... " >&6; } 14181if ${ac_cv_search_socket+:} false; then : 14182 $as_echo_n "(cached) " >&6 14183else 14184 ac_func_search_save_LIBS=$LIBS 14185cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14186/* end confdefs.h. */ 14187 14188/* Override any GCC internal prototype to avoid an error. 14189 Use char because int might match the return type of a GCC 14190 builtin and then its argument prototype would still apply. */ 14191#ifdef __cplusplus 14192extern "C" 14193#endif 14194char socket (); 14195int 14196main () 14197{ 14198return socket (); 14199 ; 14200 return 0; 14201} 14202_ACEOF 14203for ac_lib in '' socket; do 14204 if test -z "$ac_lib"; then 14205 ac_res="none required" 14206 else 14207 ac_res=-l$ac_lib 14208 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14209 fi 14210 if ac_fn_c_try_link "$LINENO"; then : 14211 ac_cv_search_socket=$ac_res 14212fi 14213rm -f core conftest.err conftest.$ac_objext \ 14214 conftest$ac_exeext 14215 if ${ac_cv_search_socket+:} false; then : 14216 break 14217fi 14218done 14219if ${ac_cv_search_socket+:} false; then : 14220 14221else 14222 ac_cv_search_socket=no 14223fi 14224rm conftest.$ac_ext 14225LIBS=$ac_func_search_save_LIBS 14226fi 14227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 14228$as_echo "$ac_cv_search_socket" >&6; } 14229ac_res=$ac_cv_search_socket 14230if test "$ac_res" != no; then : 14231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14232 14233fi 14234 14235 14236# check wether strptime also works 14237 14238# check some functions of the OS before linking libs (while still runnable). 14239for ac_header in unistd.h 14240do : 14241 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 14242if test "x$ac_cv_header_unistd_h" = xyes; then : 14243 cat >>confdefs.h <<_ACEOF 14244#define HAVE_UNISTD_H 1 14245_ACEOF 14246 14247fi 14248 14249done 14250 14251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 14252$as_echo_n "checking for working chown... " >&6; } 14253if ${ac_cv_func_chown_works+:} false; then : 14254 $as_echo_n "(cached) " >&6 14255else 14256 if test "$cross_compiling" = yes; then : 14257 ac_cv_func_chown_works=no 14258else 14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14260/* end confdefs.h. */ 14261$ac_includes_default 14262#include <fcntl.h> 14263 14264int 14265main () 14266{ 14267 char *f = "conftest.chown"; 14268 struct stat before, after; 14269 14270 if (creat (f, 0600) < 0) 14271 return 1; 14272 if (stat (f, &before) < 0) 14273 return 1; 14274 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 14275 return 1; 14276 if (stat (f, &after) < 0) 14277 return 1; 14278 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 14279 14280 ; 14281 return 0; 14282} 14283_ACEOF 14284if ac_fn_c_try_run "$LINENO"; then : 14285 ac_cv_func_chown_works=yes 14286else 14287 ac_cv_func_chown_works=no 14288fi 14289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14290 conftest.$ac_objext conftest.beam conftest.$ac_ext 14291fi 14292 14293rm -f conftest.chown 14294 14295fi 14296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 14297$as_echo "$ac_cv_func_chown_works" >&6; } 14298if test $ac_cv_func_chown_works = yes; then 14299 14300$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 14301 14302fi 14303 14304for ac_header in vfork.h 14305do : 14306 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 14307if test "x$ac_cv_header_vfork_h" = xyes; then : 14308 cat >>confdefs.h <<_ACEOF 14309#define HAVE_VFORK_H 1 14310_ACEOF 14311 14312fi 14313 14314done 14315 14316for ac_func in fork vfork 14317do : 14318 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14319ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14320if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14321 cat >>confdefs.h <<_ACEOF 14322#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14323_ACEOF 14324 14325fi 14326done 14327 14328if test "x$ac_cv_func_fork" = xyes; then 14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14330$as_echo_n "checking for working fork... " >&6; } 14331if ${ac_cv_func_fork_works+:} false; then : 14332 $as_echo_n "(cached) " >&6 14333else 14334 if test "$cross_compiling" = yes; then : 14335 ac_cv_func_fork_works=cross 14336else 14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14338/* end confdefs.h. */ 14339$ac_includes_default 14340int 14341main () 14342{ 14343 14344 /* By Ruediger Kuhlmann. */ 14345 return fork () < 0; 14346 14347 ; 14348 return 0; 14349} 14350_ACEOF 14351if ac_fn_c_try_run "$LINENO"; then : 14352 ac_cv_func_fork_works=yes 14353else 14354 ac_cv_func_fork_works=no 14355fi 14356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14357 conftest.$ac_objext conftest.beam conftest.$ac_ext 14358fi 14359 14360fi 14361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14362$as_echo "$ac_cv_func_fork_works" >&6; } 14363 14364else 14365 ac_cv_func_fork_works=$ac_cv_func_fork 14366fi 14367if test "x$ac_cv_func_fork_works" = xcross; then 14368 case $host in 14369 *-*-amigaos* | *-*-msdosdjgpp*) 14370 # Override, as these systems have only a dummy fork() stub 14371 ac_cv_func_fork_works=no 14372 ;; 14373 *) 14374 ac_cv_func_fork_works=yes 14375 ;; 14376 esac 14377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14378$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14379fi 14380ac_cv_func_vfork_works=$ac_cv_func_vfork 14381if test "x$ac_cv_func_vfork" = xyes; then 14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14383$as_echo_n "checking for working vfork... " >&6; } 14384if ${ac_cv_func_vfork_works+:} false; then : 14385 $as_echo_n "(cached) " >&6 14386else 14387 if test "$cross_compiling" = yes; then : 14388 ac_cv_func_vfork_works=cross 14389else 14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14391/* end confdefs.h. */ 14392/* Thanks to Paul Eggert for this test. */ 14393$ac_includes_default 14394#include <sys/wait.h> 14395#ifdef HAVE_VFORK_H 14396# include <vfork.h> 14397#endif 14398/* On some sparc systems, changes by the child to local and incoming 14399 argument registers are propagated back to the parent. The compiler 14400 is told about this with #include <vfork.h>, but some compilers 14401 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14402 static variable whose address is put into a register that is 14403 clobbered by the vfork. */ 14404static void 14405#ifdef __cplusplus 14406sparc_address_test (int arg) 14407# else 14408sparc_address_test (arg) int arg; 14409#endif 14410{ 14411 static pid_t child; 14412 if (!child) { 14413 child = vfork (); 14414 if (child < 0) { 14415 perror ("vfork"); 14416 _exit(2); 14417 } 14418 if (!child) { 14419 arg = getpid(); 14420 write(-1, "", 0); 14421 _exit (arg); 14422 } 14423 } 14424} 14425 14426int 14427main () 14428{ 14429 pid_t parent = getpid (); 14430 pid_t child; 14431 14432 sparc_address_test (0); 14433 14434 child = vfork (); 14435 14436 if (child == 0) { 14437 /* Here is another test for sparc vfork register problems. This 14438 test uses lots of local variables, at least as many local 14439 variables as main has allocated so far including compiler 14440 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14441 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14442 reuse the register of parent for one of the local variables, 14443 since it will think that parent can't possibly be used any more 14444 in this routine. Assigning to the local variable will thus 14445 munge parent in the parent process. */ 14446 pid_t 14447 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14448 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14449 /* Convince the compiler that p..p7 are live; otherwise, it might 14450 use the same hardware register for all 8 local variables. */ 14451 if (p != p1 || p != p2 || p != p3 || p != p4 14452 || p != p5 || p != p6 || p != p7) 14453 _exit(1); 14454 14455 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14456 from child file descriptors. If the child closes a descriptor 14457 before it execs or exits, this munges the parent's descriptor 14458 as well. Test for this by closing stdout in the child. */ 14459 _exit(close(fileno(stdout)) != 0); 14460 } else { 14461 int status; 14462 struct stat st; 14463 14464 while (wait(&status) != child) 14465 ; 14466 return ( 14467 /* Was there some problem with vforking? */ 14468 child < 0 14469 14470 /* Did the child fail? (This shouldn't happen.) */ 14471 || status 14472 14473 /* Did the vfork/compiler bug occur? */ 14474 || parent != getpid() 14475 14476 /* Did the file descriptor bug occur? */ 14477 || fstat(fileno(stdout), &st) != 0 14478 ); 14479 } 14480} 14481_ACEOF 14482if ac_fn_c_try_run "$LINENO"; then : 14483 ac_cv_func_vfork_works=yes 14484else 14485 ac_cv_func_vfork_works=no 14486fi 14487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14488 conftest.$ac_objext conftest.beam conftest.$ac_ext 14489fi 14490 14491fi 14492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14493$as_echo "$ac_cv_func_vfork_works" >&6; } 14494 14495fi; 14496if test "x$ac_cv_func_fork_works" = xcross; then 14497 ac_cv_func_vfork_works=$ac_cv_func_vfork 14498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14499$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14500fi 14501 14502if test "x$ac_cv_func_vfork_works" = xyes; then 14503 14504$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 14505 14506else 14507 14508$as_echo "#define vfork fork" >>confdefs.h 14509 14510fi 14511if test "x$ac_cv_func_fork_works" = xyes; then 14512 14513$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 14514 14515fi 14516 14517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 14518$as_echo_n "checking return type of signal handlers... " >&6; } 14519if ${ac_cv_type_signal+:} false; then : 14520 $as_echo_n "(cached) " >&6 14521else 14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14523/* end confdefs.h. */ 14524#include <sys/types.h> 14525#include <signal.h> 14526 14527int 14528main () 14529{ 14530return *(signal (0, 0)) (0) == 1; 14531 ; 14532 return 0; 14533} 14534_ACEOF 14535if ac_fn_c_try_compile "$LINENO"; then : 14536 ac_cv_type_signal=int 14537else 14538 ac_cv_type_signal=void 14539fi 14540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14541fi 14542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 14543$as_echo "$ac_cv_type_signal" >&6; } 14544 14545cat >>confdefs.h <<_ACEOF 14546#define RETSIGTYPE $ac_cv_type_signal 14547_ACEOF 14548 14549 14550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 14551$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 14552if ${ac_cv_sys_largefile_source+:} false; then : 14553 $as_echo_n "(cached) " >&6 14554else 14555 while :; do 14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14557/* end confdefs.h. */ 14558#include <sys/types.h> /* for off_t */ 14559 #include <stdio.h> 14560int 14561main () 14562{ 14563int (*fp) (FILE *, off_t, int) = fseeko; 14564 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14565 ; 14566 return 0; 14567} 14568_ACEOF 14569if ac_fn_c_try_link "$LINENO"; then : 14570 ac_cv_sys_largefile_source=no; break 14571fi 14572rm -f core conftest.err conftest.$ac_objext \ 14573 conftest$ac_exeext conftest.$ac_ext 14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14575/* end confdefs.h. */ 14576#define _LARGEFILE_SOURCE 1 14577#include <sys/types.h> /* for off_t */ 14578 #include <stdio.h> 14579int 14580main () 14581{ 14582int (*fp) (FILE *, off_t, int) = fseeko; 14583 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14584 ; 14585 return 0; 14586} 14587_ACEOF 14588if ac_fn_c_try_link "$LINENO"; then : 14589 ac_cv_sys_largefile_source=1; break 14590fi 14591rm -f core conftest.err conftest.$ac_objext \ 14592 conftest$ac_exeext conftest.$ac_ext 14593 ac_cv_sys_largefile_source=unknown 14594 break 14595done 14596fi 14597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 14598$as_echo "$ac_cv_sys_largefile_source" >&6; } 14599case $ac_cv_sys_largefile_source in #( 14600 no | unknown) ;; 14601 *) 14602cat >>confdefs.h <<_ACEOF 14603#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 14604_ACEOF 14605;; 14606esac 14607rm -rf conftest* 14608 14609# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 14610# in glibc 2.1.3, but that breaks too many other things. 14611# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 14612if test $ac_cv_sys_largefile_source != unknown; then 14613 14614$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 14615 14616fi 14617 14618 14619# Check whether --enable-largefile was given. 14620if test "${enable_largefile+set}" = set; then : 14621 enableval=$enable_largefile; 14622fi 14623 14624if test "$enable_largefile" != no; then 14625 14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14627$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 14628if ${ac_cv_sys_largefile_CC+:} false; then : 14629 $as_echo_n "(cached) " >&6 14630else 14631 ac_cv_sys_largefile_CC=no 14632 if test "$GCC" != yes; then 14633 ac_save_CC=$CC 14634 while :; do 14635 # IRIX 6.2 and later do not support large files by default, 14636 # so use the C compiler's -n32 option if that helps. 14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14638/* end confdefs.h. */ 14639#include <sys/types.h> 14640 /* Check that off_t can represent 2**63 - 1 correctly. 14641 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14642 since some C++ compilers masquerading as C compilers 14643 incorrectly reject 9223372036854775807. */ 14644#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14646 && LARGE_OFF_T % 2147483647 == 1) 14647 ? 1 : -1]; 14648int 14649main () 14650{ 14651 14652 ; 14653 return 0; 14654} 14655_ACEOF 14656 if ac_fn_c_try_compile "$LINENO"; then : 14657 break 14658fi 14659rm -f core conftest.err conftest.$ac_objext 14660 CC="$CC -n32" 14661 if ac_fn_c_try_compile "$LINENO"; then : 14662 ac_cv_sys_largefile_CC=' -n32'; break 14663fi 14664rm -f core conftest.err conftest.$ac_objext 14665 break 14666 done 14667 CC=$ac_save_CC 14668 rm -f conftest.$ac_ext 14669 fi 14670fi 14671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14672$as_echo "$ac_cv_sys_largefile_CC" >&6; } 14673 if test "$ac_cv_sys_largefile_CC" != no; then 14674 CC=$CC$ac_cv_sys_largefile_CC 14675 fi 14676 14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14678$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14679if ${ac_cv_sys_file_offset_bits+:} false; then : 14680 $as_echo_n "(cached) " >&6 14681else 14682 while :; do 14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14684/* end confdefs.h. */ 14685#include <sys/types.h> 14686 /* Check that off_t can represent 2**63 - 1 correctly. 14687 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14688 since some C++ compilers masquerading as C compilers 14689 incorrectly reject 9223372036854775807. */ 14690#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14691 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14692 && LARGE_OFF_T % 2147483647 == 1) 14693 ? 1 : -1]; 14694int 14695main () 14696{ 14697 14698 ; 14699 return 0; 14700} 14701_ACEOF 14702if ac_fn_c_try_compile "$LINENO"; then : 14703 ac_cv_sys_file_offset_bits=no; break 14704fi 14705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14707/* end confdefs.h. */ 14708#define _FILE_OFFSET_BITS 64 14709#include <sys/types.h> 14710 /* Check that off_t can represent 2**63 - 1 correctly. 14711 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14712 since some C++ compilers masquerading as C compilers 14713 incorrectly reject 9223372036854775807. */ 14714#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14715 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14716 && LARGE_OFF_T % 2147483647 == 1) 14717 ? 1 : -1]; 14718int 14719main () 14720{ 14721 14722 ; 14723 return 0; 14724} 14725_ACEOF 14726if ac_fn_c_try_compile "$LINENO"; then : 14727 ac_cv_sys_file_offset_bits=64; break 14728fi 14729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14730 ac_cv_sys_file_offset_bits=unknown 14731 break 14732done 14733fi 14734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14735$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14736case $ac_cv_sys_file_offset_bits in #( 14737 no | unknown) ;; 14738 *) 14739cat >>confdefs.h <<_ACEOF 14740#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14741_ACEOF 14742;; 14743esac 14744rm -rf conftest* 14745 if test $ac_cv_sys_file_offset_bits = unknown; then 14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14747$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14748if ${ac_cv_sys_large_files+:} false; then : 14749 $as_echo_n "(cached) " >&6 14750else 14751 while :; do 14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14753/* end confdefs.h. */ 14754#include <sys/types.h> 14755 /* Check that off_t can represent 2**63 - 1 correctly. 14756 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14757 since some C++ compilers masquerading as C compilers 14758 incorrectly reject 9223372036854775807. */ 14759#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14760 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14761 && LARGE_OFF_T % 2147483647 == 1) 14762 ? 1 : -1]; 14763int 14764main () 14765{ 14766 14767 ; 14768 return 0; 14769} 14770_ACEOF 14771if ac_fn_c_try_compile "$LINENO"; then : 14772 ac_cv_sys_large_files=no; break 14773fi 14774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14776/* end confdefs.h. */ 14777#define _LARGE_FILES 1 14778#include <sys/types.h> 14779 /* Check that off_t can represent 2**63 - 1 correctly. 14780 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14781 since some C++ compilers masquerading as C compilers 14782 incorrectly reject 9223372036854775807. */ 14783#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14784 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14785 && LARGE_OFF_T % 2147483647 == 1) 14786 ? 1 : -1]; 14787int 14788main () 14789{ 14790 14791 ; 14792 return 0; 14793} 14794_ACEOF 14795if ac_fn_c_try_compile "$LINENO"; then : 14796 ac_cv_sys_large_files=1; break 14797fi 14798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14799 ac_cv_sys_large_files=unknown 14800 break 14801done 14802fi 14803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14804$as_echo "$ac_cv_sys_large_files" >&6; } 14805case $ac_cv_sys_large_files in #( 14806 no | unknown) ;; 14807 *) 14808cat >>confdefs.h <<_ACEOF 14809#define _LARGE_FILES $ac_cv_sys_large_files 14810_ACEOF 14811;; 14812esac 14813rm -rf conftest* 14814 fi 14815 14816 14817fi 14818 14819 14820 14821 14822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5 14823$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; } 14824cache=_D_LARGEFILE_SOURCE_1 14825if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 14826 $as_echo_n "(cached) " >&6 14827else 14828 14829echo ' 14830#include <stdio.h> 14831int test() { 14832 int a = fseeko(stdin, 0, 0); 14833 return a; 14834} 14835' > conftest.c 14836echo 'void f(){}' >>conftest.c 14837if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14838eval "cv_prog_cc_flag_needed_$cache=no" 14839else 14840 14841if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then 14842eval "cv_prog_cc_flag_needed_$cache=yes" 14843else 14844eval "cv_prog_cc_flag_needed_$cache=fail" 14845#echo 'Test with flag fails too!' 14846#cat conftest.c 14847#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 14848#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 14849#exit 1 14850fi 14851 14852fi 14853rm -f conftest conftest.c conftest.o 14854 14855fi 14856 14857if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14859$as_echo "yes" >&6; } 14860: 14861CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1" 14862else 14863if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14865$as_echo "no" >&6; } 14866#echo 'Test with flag is no!' 14867#cat conftest.c 14868#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 14869#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 14870#exit 1 14871: 14872 14873else 14874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14875$as_echo "failed" >&6; } 14876: 14877 14878fi 14879fi 14880 14881 14882 14883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 14884$as_echo_n "checking if nonblocking sockets work... " >&6; } 14885if echo $target | grep mingw32 >/dev/null; then 14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 14887$as_echo "no (windows)" >&6; } 14888 14889$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 14890 14891else 14892if test "$cross_compiling" = yes; then : 14893 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 14895$as_echo "crosscompile(yes)" >&6; } 14896 14897else 14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14899/* end confdefs.h. */ 14900 14901 14902#include <stdio.h> 14903#include <string.h> 14904#include <stdlib.h> 14905#include <fcntl.h> 14906#include <errno.h> 14907#ifdef HAVE_SYS_TYPES_H 14908#include <sys/types.h> 14909#endif 14910#ifdef HAVE_SYS_SOCKET_H 14911#include <sys/socket.h> 14912#endif 14913#ifdef HAVE_NETINET_IN_H 14914#include <netinet/in.h> 14915#endif 14916#ifdef HAVE_ARPA_INET_H 14917#include <arpa/inet.h> 14918#endif 14919#ifdef HAVE_UNISTD_H 14920#include <unistd.h> 14921#endif 14922#ifdef HAVE_TIME_H 14923#include <time.h> 14924#endif 14925 14926int main(void) 14927{ 14928 int port; 14929 int sfd, cfd; 14930 int num = 10; 14931 int i, p; 14932 struct sockaddr_in a; 14933 /* test if select and nonblocking reads work well together */ 14934 /* open port. 14935 fork child to send 10 messages. 14936 select to read. 14937 then try to nonblocking read the 10 messages 14938 then, nonblocking read must give EAGAIN 14939 */ 14940 14941 port = 12345 + (time(0)%32); 14942 sfd = socket(PF_INET, SOCK_DGRAM, 0); 14943 if(sfd == -1) { 14944 perror("socket"); 14945 return 1; 14946 } 14947 memset(&a, 0, sizeof(a)); 14948 a.sin_family = AF_INET; 14949 a.sin_port = htons(port); 14950 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 14951 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 14952 perror("bind"); 14953 return 1; 14954 } 14955 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 14956 perror("fcntl"); 14957 return 1; 14958 } 14959 14960 cfd = socket(PF_INET, SOCK_DGRAM, 0); 14961 if(cfd == -1) { 14962 perror("client socket"); 14963 return 1; 14964 } 14965 a.sin_port = 0; 14966 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 14967 perror("client bind"); 14968 return 1; 14969 } 14970 a.sin_port = htons(port); 14971 14972 /* no handler, causes exit in 10 seconds */ 14973 alarm(10); 14974 14975 /* send and receive on the socket */ 14976 if((p=fork()) == 0) { 14977 for(i=0; i<num; i++) { 14978 if(sendto(cfd, &i, sizeof(i), 0, 14979 (struct sockaddr*)&a, sizeof(a)) < 0) { 14980 perror("sendto"); 14981 return 1; 14982 } 14983 } 14984 } else { 14985 /* parent */ 14986 fd_set rset; 14987 int x; 14988 if(p == -1) { 14989 perror("fork"); 14990 return 1; 14991 } 14992 FD_ZERO(&rset); 14993 FD_SET(sfd, &rset); 14994 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 14995 perror("select"); 14996 return 1; 14997 } 14998 i = 0; 14999 while(i < num) { 15000 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 15001 if(errno == EAGAIN) 15002 continue; 15003 perror("recv"); 15004 return 1; 15005 } 15006 i++; 15007 } 15008 /* now we want to get EAGAIN: nonblocking goodness */ 15009 errno = 0; 15010 recv(sfd, &x, sizeof(x), 0); 15011 if(errno != EAGAIN) { 15012 perror("trying to recv again"); 15013 return 1; 15014 } 15015 /* EAGAIN encountered */ 15016 } 15017 15018 close(sfd); 15019 close(cfd); 15020 return 0; 15021} 15022 15023_ACEOF 15024if ac_fn_c_try_run "$LINENO"; then : 15025 15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15027$as_echo "yes" >&6; } 15028 15029else 15030 15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15032$as_echo "no" >&6; } 15033 15034$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 15035 15036 15037fi 15038rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15039 conftest.$ac_objext conftest.beam conftest.$ac_ext 15040fi 15041 15042fi 15043 15044 15045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 15046$as_echo_n "checking whether mkdir has one arg... " >&6; } 15047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15048/* end confdefs.h. */ 15049 15050#include <stdio.h> 15051#include <unistd.h> 15052#ifdef HAVE_WINSOCK2_H 15053#include <winsock2.h> 15054#endif 15055#ifdef HAVE_SYS_STAT_H 15056#include <sys/stat.h> 15057#endif 15058 15059int 15060main () 15061{ 15062 15063 (void)mkdir("directory"); 15064 15065 ; 15066 return 0; 15067} 15068_ACEOF 15069if ac_fn_c_try_compile "$LINENO"; then : 15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15071$as_echo "yes" >&6; } 15072 15073$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 15074 15075 15076else 15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15078$as_echo "no" >&6; } 15079 15080fi 15081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15082 15083for ac_func in strptime 15084do : 15085 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 15086if test "x$ac_cv_func_strptime" = xyes; then : 15087 cat >>confdefs.h <<_ACEOF 15088#define HAVE_STRPTIME 1 15089_ACEOF 15090 15091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 15092$as_echo_n "checking whether strptime works... " >&6; } 15093if test c${cross_compiling} = cno; then 15094if test "$cross_compiling" = yes; then : 15095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15097as_fn_error $? "cannot run test program while cross compiling 15098See \`config.log' for more details" "$LINENO" 5; } 15099else 15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15101/* end confdefs.h. */ 15102 15103#define _XOPEN_SOURCE 600 15104#include <time.h> 15105int main(void) { struct tm tm; char *res; 15106res = 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); 15107if (!res) return 2; 15108res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 15109if (!res) return 1; return 0; } 15110 15111_ACEOF 15112if ac_fn_c_try_run "$LINENO"; then : 15113 eval "ac_cv_c_strptime_works=yes" 15114else 15115 eval "ac_cv_c_strptime_works=no" 15116fi 15117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15118 conftest.$ac_objext conftest.beam conftest.$ac_ext 15119fi 15120 15121else 15122eval "ac_cv_c_strptime_works=maybe" 15123fi 15124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 15125$as_echo "$ac_cv_c_strptime_works" >&6; } 15126if test $ac_cv_c_strptime_works = no; then 15127case " $LIBOBJS " in 15128 *" strptime.$ac_objext "* ) ;; 15129 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 15130 ;; 15131esac 15132 15133else 15134 15135cat >>confdefs.h <<_ACEOF 15136#define STRPTIME_WORKS 1 15137_ACEOF 15138 15139fi 15140 15141else 15142 case " $LIBOBJS " in 15143 *" strptime.$ac_objext "* ) ;; 15144 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 15145 ;; 15146esac 15147 15148fi 15149done 15150 15151 15152# set memory allocation checking if requested 15153# Check whether --enable-alloc-checks was given. 15154if test "${enable_alloc_checks+set}" = set; then : 15155 enableval=$enable_alloc_checks; 15156fi 15157 15158# Check whether --enable-alloc-lite was given. 15159if test "${enable_alloc_lite+set}" = set; then : 15160 enableval=$enable_alloc_lite; 15161fi 15162 15163# Check whether --enable-alloc-nonregional was given. 15164if test "${enable_alloc_nonregional+set}" = set; then : 15165 enableval=$enable_alloc_nonregional; 15166fi 15167 15168if test x_$enable_alloc_nonregional = x_yes; then 15169 15170$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h 15171 15172fi 15173if test x_$enable_alloc_checks = x_yes; then 15174 15175$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h 15176 15177else 15178 if test x_$enable_alloc_lite = x_yes; then 15179 15180$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h 15181 15182 else 15183 15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 15185$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 15186 if test "$cross_compiling" = yes; then : 15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5 15188$as_echo "no (crosscompile)" >&6; } 15189 case " $LIBOBJS " in 15190 *" malloc.$ac_objext "* ) ;; 15191 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 15192 ;; 15193esac 15194 15195 15196cat >>confdefs.h <<_ACEOF 15197#define malloc rpl_malloc_unbound 15198_ACEOF 15199 15200else 15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15202/* end confdefs.h. */ 15203#if defined STDC_HEADERS || defined HAVE_STDLIB_H 15204#include <stdlib.h> 15205#else 15206char *malloc (); 15207#endif 15208 15209int 15210main () 15211{ 15212 if(malloc(0) != 0) return 1; 15213 ; 15214 return 0; 15215} 15216 15217_ACEOF 15218if ac_fn_c_try_run "$LINENO"; then : 15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15220$as_echo "no" >&6; } 15221 case " $LIBOBJS " in 15222 *" malloc.$ac_objext "* ) ;; 15223 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 15224 ;; 15225esac 15226 15227 15228cat >>confdefs.h <<_ACEOF 15229#define malloc rpl_malloc_unbound 15230_ACEOF 15231 15232else 15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15234$as_echo "yes" >&6; } 15235 15236$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 15237 15238fi 15239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15240 conftest.$ac_objext conftest.beam conftest.$ac_ext 15241fi 15242 15243 15244 fi 15245fi 15246 15247# check windows threads (we use them, not pthreads, on windows). 15248if test "$on_mingw" = "yes"; then 15249# check windows threads 15250 for ac_header in windows.h 15251do : 15252 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 15253" 15254if test "x$ac_cv_header_windows_h" = xyes; then : 15255 cat >>confdefs.h <<_ACEOF 15256#define HAVE_WINDOWS_H 1 15257_ACEOF 15258 15259fi 15260 15261done 15262 15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5 15264$as_echo_n "checking for CreateThread... " >&6; } 15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15266/* end confdefs.h. */ 15267 15268#ifdef HAVE_WINDOWS_H 15269#include <windows.h> 15270#endif 15271 15272int 15273main () 15274{ 15275 15276 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 15277 15278 ; 15279 return 0; 15280} 15281_ACEOF 15282if ac_fn_c_try_compile "$LINENO"; then : 15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15284$as_echo "yes" >&6; } 15285 15286$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h 15287 15288 15289else 15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15291$as_echo "no" >&6; } 15292 15293fi 15294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15295 15296else 15297# not on mingw, check thread libraries. 15298 15299# check for thread library. 15300# check this first, so that the pthread lib does not get linked in via 15301# libssl or libpython, and thus distorts the tests, and we end up using 15302# the non-threadsafe C libraries. 15303 15304# Check whether --with-pthreads was given. 15305if test "${with_pthreads+set}" = set; then : 15306 withval=$with_pthreads; 15307else 15308 withval="yes" 15309fi 15310 15311ub_have_pthreads=no 15312if test x_$withval != x_no; then 15313 15314 15315ac_ext=c 15316ac_cpp='$CPP $CPPFLAGS' 15317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15319ac_compiler_gnu=$ac_cv_c_compiler_gnu 15320 15321ax_pthread_ok=no 15322 15323# We used to check for pthread.h first, but this fails if pthread.h 15324# requires special compiler flags (e.g. on True64 or Sequent). 15325# It gets checked for in the link test anyway. 15326 15327# First of all, check if the user has set any of the PTHREAD_LIBS, 15328# etcetera environment variables, and if threads linking works using 15329# them: 15330if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 15331 save_CFLAGS="$CFLAGS" 15332 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15333 save_LIBS="$LIBS" 15334 LIBS="$PTHREAD_LIBS $LIBS" 15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 15336$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15338/* end confdefs.h. */ 15339 15340/* Override any GCC internal prototype to avoid an error. 15341 Use char because int might match the return type of a GCC 15342 builtin and then its argument prototype would still apply. */ 15343#ifdef __cplusplus 15344extern "C" 15345#endif 15346char pthread_join (); 15347int 15348main () 15349{ 15350return pthread_join (); 15351 ; 15352 return 0; 15353} 15354_ACEOF 15355if ac_fn_c_try_link "$LINENO"; then : 15356 ax_pthread_ok=yes 15357fi 15358rm -f core conftest.err conftest.$ac_objext \ 15359 conftest$ac_exeext conftest.$ac_ext 15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15361$as_echo "$ax_pthread_ok" >&6; } 15362 if test x"$ax_pthread_ok" = xno; then 15363 PTHREAD_LIBS="" 15364 PTHREAD_CFLAGS="" 15365 fi 15366 LIBS="$save_LIBS" 15367 CFLAGS="$save_CFLAGS" 15368fi 15369 15370# We must check for the threads library under a number of different 15371# names; the ordering is very important because some systems 15372# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15373# libraries is broken (non-POSIX). 15374 15375# Create a list of thread flags to try. Items starting with a "-" are 15376# C compiler flags, and other items are library names, except for "none" 15377# which indicates that we try without any flags at all, and "pthread-config" 15378# which is a program returning the flags for the Pth emulation library. 15379 15380ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15381 15382# The ordering *is* (sometimes) important. Some notes on the 15383# individual items follow: 15384 15385# pthreads: AIX (must check this before -lpthread) 15386# none: in case threads are in libc; should be tried before -Kthread and 15387# other compiler flags to prevent continual compiler warnings 15388# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15389# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15390# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15391# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15392# -pthreads: Solaris/gcc 15393# -mthreads: Mingw32/gcc, Lynx/gcc 15394# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15395# doesn't hurt to check since this sometimes defines pthreads too; 15396# also defines -D_REENTRANT) 15397# ... -mt is also the pthreads flag for HP/aCC 15398# pthread: Linux, etcetera 15399# --thread-safe: KAI C++ 15400# pthread-config: use pthread-config program (for GNU Pth library) 15401 15402case ${host_os} in 15403 solaris*) 15404 15405 # On Solaris (at least, for some versions), libc contains stubbed 15406 # (non-functional) versions of the pthreads routines, so link-based 15407 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15408 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15409 # a function called by this macro, so we could check for that, but 15410 # who knows whether they'll stub that too in a future libc.) So, 15411 # we'll just look for -pthreads and -lpthread first: 15412 15413 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 15414 ;; 15415 15416 darwin*) 15417 ax_pthread_flags="-pthread $ax_pthread_flags" 15418 ;; 15419esac 15420 15421if test x"$ax_pthread_ok" = xno; then 15422for flag in $ax_pthread_flags; do 15423 15424 case $flag in 15425 none) 15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15427$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15428 ;; 15429 15430 -*) 15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15432$as_echo_n "checking whether pthreads work with $flag... " >&6; } 15433 PTHREAD_CFLAGS="$flag" 15434 ;; 15435 15436 pthread-config) 15437 # Extract the first word of "pthread-config", so it can be a program name with args. 15438set dummy pthread-config; ac_word=$2 15439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15440$as_echo_n "checking for $ac_word... " >&6; } 15441if ${ac_cv_prog_ax_pthread_config+:} false; then : 15442 $as_echo_n "(cached) " >&6 15443else 15444 if test -n "$ax_pthread_config"; then 15445 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 15446else 15447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15448for as_dir in $PATH 15449do 15450 IFS=$as_save_IFS 15451 test -z "$as_dir" && as_dir=. 15452 for ac_exec_ext in '' $ac_executable_extensions; do 15453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15454 ac_cv_prog_ax_pthread_config="yes" 15455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15456 break 2 15457 fi 15458done 15459 done 15460IFS=$as_save_IFS 15461 15462 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 15463fi 15464fi 15465ax_pthread_config=$ac_cv_prog_ax_pthread_config 15466if test -n "$ax_pthread_config"; then 15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 15468$as_echo "$ax_pthread_config" >&6; } 15469else 15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15471$as_echo "no" >&6; } 15472fi 15473 15474 15475 if test x"$ax_pthread_config" = xno; then continue; fi 15476 PTHREAD_CFLAGS="`pthread-config --cflags`" 15477 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15478 ;; 15479 15480 *) 15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15482$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15483 PTHREAD_LIBS="-l$flag" 15484 ;; 15485 esac 15486 15487 save_LIBS="$LIBS" 15488 save_CFLAGS="$CFLAGS" 15489 LIBS="$PTHREAD_LIBS $LIBS" 15490 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15491 15492 # Check for various functions. We must include pthread.h, 15493 # since some functions may be macros. (On the Sequent, we 15494 # need a special flag -Kthread to make this header compile.) 15495 # We check for pthread_join because it is in -lpthread on IRIX 15496 # while pthread_create is in libc. We check for pthread_attr_init 15497 # due to DEC craziness with -lpthreads. We check for 15498 # pthread_cleanup_push because it is one of the few pthread 15499 # functions on Solaris that doesn't have a non-functional libc stub. 15500 # We try pthread_create on general principles. 15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15502/* end confdefs.h. */ 15503#include <pthread.h> 15504 static void routine(void *a) { *((int*)a) = 0; } 15505 static void *start_routine(void *a) { return a; } 15506int 15507main () 15508{ 15509pthread_t th; pthread_attr_t attr; 15510 pthread_create(&th, 0, start_routine, 0); 15511 pthread_join(th, 0); 15512 pthread_attr_init(&attr); 15513 pthread_cleanup_push(routine, 0); 15514 pthread_cleanup_pop(0) /* ; */ 15515 ; 15516 return 0; 15517} 15518_ACEOF 15519if ac_fn_c_try_link "$LINENO"; then : 15520 ax_pthread_ok=yes 15521fi 15522rm -f core conftest.err conftest.$ac_objext \ 15523 conftest$ac_exeext conftest.$ac_ext 15524 15525 LIBS="$save_LIBS" 15526 CFLAGS="$save_CFLAGS" 15527 15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15529$as_echo "$ax_pthread_ok" >&6; } 15530 if test "x$ax_pthread_ok" = xyes; then 15531 break; 15532 fi 15533 15534 PTHREAD_LIBS="" 15535 PTHREAD_CFLAGS="" 15536done 15537fi 15538 15539# Various other checks: 15540if test "x$ax_pthread_ok" = xyes; then 15541 save_LIBS="$LIBS" 15542 LIBS="$PTHREAD_LIBS $LIBS" 15543 save_CFLAGS="$CFLAGS" 15544 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15545 15546 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15548$as_echo_n "checking for joinable pthread attribute... " >&6; } 15549 attr_name=unknown 15550 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15552/* end confdefs.h. */ 15553#include <pthread.h> 15554int 15555main () 15556{ 15557int attr = $attr; return attr /* ; */ 15558 ; 15559 return 0; 15560} 15561_ACEOF 15562if ac_fn_c_try_link "$LINENO"; then : 15563 attr_name=$attr; break 15564fi 15565rm -f core conftest.err conftest.$ac_objext \ 15566 conftest$ac_exeext conftest.$ac_ext 15567 done 15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15569$as_echo "$attr_name" >&6; } 15570 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15571 15572cat >>confdefs.h <<_ACEOF 15573#define PTHREAD_CREATE_JOINABLE $attr_name 15574_ACEOF 15575 15576 fi 15577 15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15579$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15580 flag=no 15581 case ${host_os} in 15582 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 15583 osf* | hpux*) flag="-D_REENTRANT";; 15584 solaris*) 15585 if test "$GCC" = "yes"; then 15586 flag="-D_REENTRANT" 15587 else 15588 flag="-mt -D_REENTRANT" 15589 fi 15590 ;; 15591 esac 15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15593$as_echo "${flag}" >&6; } 15594 if test "x$flag" != xno; then 15595 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15596 fi 15597 15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 15599$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 15600if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 15601 $as_echo_n "(cached) " >&6 15602else 15603 15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15605/* end confdefs.h. */ 15606 15607 #include <pthread.h> 15608int 15609main () 15610{ 15611int i = PTHREAD_PRIO_INHERIT; 15612 ; 15613 return 0; 15614} 15615_ACEOF 15616if ac_fn_c_try_link "$LINENO"; then : 15617 ax_cv_PTHREAD_PRIO_INHERIT=yes 15618else 15619 ax_cv_PTHREAD_PRIO_INHERIT=no 15620fi 15621rm -f core conftest.err conftest.$ac_objext \ 15622 conftest$ac_exeext conftest.$ac_ext 15623 15624fi 15625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 15626$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 15627 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 15628 15629$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 15630 15631fi 15632 15633 LIBS="$save_LIBS" 15634 CFLAGS="$save_CFLAGS" 15635 15636 # More AIX lossage: compile with *_r variant 15637 if test "x$GCC" != xyes; then 15638 case $host_os in 15639 aix*) 15640 case "x/$CC" in #( 15641 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 15642 #handle absolute path differently from PATH based program lookup 15643 case "x$CC" in #( 15644 x/*) : 15645 if as_fn_executable_p ${CC}_r; then : 15646 PTHREAD_CC="${CC}_r" 15647fi ;; #( 15648 *) : 15649 for ac_prog in ${CC}_r 15650do 15651 # Extract the first word of "$ac_prog", so it can be a program name with args. 15652set dummy $ac_prog; ac_word=$2 15653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15654$as_echo_n "checking for $ac_word... " >&6; } 15655if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15656 $as_echo_n "(cached) " >&6 15657else 15658 if test -n "$PTHREAD_CC"; then 15659 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15660else 15661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15662for as_dir in $PATH 15663do 15664 IFS=$as_save_IFS 15665 test -z "$as_dir" && as_dir=. 15666 for ac_exec_ext in '' $ac_executable_extensions; do 15667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15668 ac_cv_prog_PTHREAD_CC="$ac_prog" 15669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15670 break 2 15671 fi 15672done 15673 done 15674IFS=$as_save_IFS 15675 15676fi 15677fi 15678PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15679if test -n "$PTHREAD_CC"; then 15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15681$as_echo "$PTHREAD_CC" >&6; } 15682else 15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15684$as_echo "no" >&6; } 15685fi 15686 15687 15688 test -n "$PTHREAD_CC" && break 15689done 15690test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15691 ;; 15692esac ;; #( 15693 *) : 15694 ;; 15695esac 15696 ;; 15697 esac 15698 fi 15699fi 15700 15701test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15702 15703 15704 15705 15706 15707# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15708if test x"$ax_pthread_ok" = xyes; then 15709 15710 15711$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 15712 15713 LIBS="$PTHREAD_LIBS $LIBS" 15714 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15715 CC="$PTHREAD_CC" 15716 ub_have_pthreads=yes 15717 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h> 15718" 15719if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then : 15720 15721cat >>confdefs.h <<_ACEOF 15722#define HAVE_PTHREAD_SPINLOCK_T 1 15723_ACEOF 15724 15725 15726fi 15727ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 15728" 15729if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 15730 15731cat >>confdefs.h <<_ACEOF 15732#define HAVE_PTHREAD_RWLOCK_T 1 15733_ACEOF 15734 15735 15736fi 15737 15738 15739 : 15740else 15741 ax_pthread_ok=no 15742 15743fi 15744ac_ext=c 15745ac_cpp='$CPP $CPPFLAGS' 15746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15748ac_compiler_gnu=$ac_cv_c_compiler_gnu 15749 15750 15751fi 15752 15753# check solaris thread library 15754 15755# Check whether --with-solaris-threads was given. 15756if test "${with_solaris_threads+set}" = set; then : 15757 withval=$with_solaris_threads; 15758else 15759 withval="no" 15760fi 15761 15762ub_have_sol_threads=no 15763if test x_$withval != x_no; then 15764 if test x_$ub_have_pthreads != x_no; then 15765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5 15766$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;} 15767 else 15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5 15769$as_echo_n "checking for library containing thr_create... " >&6; } 15770if ${ac_cv_search_thr_create+:} false; then : 15771 $as_echo_n "(cached) " >&6 15772else 15773 ac_func_search_save_LIBS=$LIBS 15774cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15775/* end confdefs.h. */ 15776 15777/* Override any GCC internal prototype to avoid an error. 15778 Use char because int might match the return type of a GCC 15779 builtin and then its argument prototype would still apply. */ 15780#ifdef __cplusplus 15781extern "C" 15782#endif 15783char thr_create (); 15784int 15785main () 15786{ 15787return thr_create (); 15788 ; 15789 return 0; 15790} 15791_ACEOF 15792for ac_lib in '' thread; do 15793 if test -z "$ac_lib"; then 15794 ac_res="none required" 15795 else 15796 ac_res=-l$ac_lib 15797 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15798 fi 15799 if ac_fn_c_try_link "$LINENO"; then : 15800 ac_cv_search_thr_create=$ac_res 15801fi 15802rm -f core conftest.err conftest.$ac_objext \ 15803 conftest$ac_exeext 15804 if ${ac_cv_search_thr_create+:} false; then : 15805 break 15806fi 15807done 15808if ${ac_cv_search_thr_create+:} false; then : 15809 15810else 15811 ac_cv_search_thr_create=no 15812fi 15813rm conftest.$ac_ext 15814LIBS=$ac_func_search_save_LIBS 15815fi 15816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5 15817$as_echo "$ac_cv_search_thr_create" >&6; } 15818ac_res=$ac_cv_search_thr_create 15819if test "$ac_res" != no; then : 15820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15821 15822 15823$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h 15824 15825 15826 15827 15828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5 15829$as_echo_n "checking whether $CC supports -mt... " >&6; } 15830cache=`echo mt | sed 'y%.=/+-%___p_%'` 15831if eval \${cv_prog_cc_flag_$cache+:} false; then : 15832 $as_echo_n "(cached) " >&6 15833else 15834 15835echo 'void f(void){}' >conftest.c 15836if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then 15837eval "cv_prog_cc_flag_$cache=yes" 15838else 15839eval "cv_prog_cc_flag_$cache=no" 15840fi 15841rm -f conftest conftest.o conftest.c 15842 15843fi 15844 15845if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 15846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15847$as_echo "yes" >&6; } 15848: 15849CFLAGS="$CFLAGS -mt" 15850else 15851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15852$as_echo "no" >&6; } 15853: 15854CFLAGS="$CFLAGS -D_REENTRANT" 15855fi 15856 15857 ub_have_sol_threads=yes 15858 15859else 15860 15861 as_fn_error $? "no solaris threads found." "$LINENO" 5 15862 15863fi 15864 15865 fi 15866fi 15867 15868fi # end of non-mingw check of thread libraries 15869 15870# Check for PyUnbound 15871 15872# Check whether --with-pyunbound was given. 15873if test "${with_pyunbound+set}" = set; then : 15874 withval=$with_pyunbound; 15875else 15876 withval="no" 15877fi 15878 15879 15880ub_test_python=no 15881ub_with_pyunbound=no 15882if test x_$withval != x_no; then 15883 ub_with_pyunbound=yes 15884 ub_test_python=yes 15885fi 15886 15887# Check for Python module 15888 15889# Check whether --with-pythonmodule was given. 15890if test "${with_pythonmodule+set}" = set; then : 15891 withval=$with_pythonmodule; 15892else 15893 withval="no" 15894fi 15895 15896 15897ub_with_pythonmod=no 15898if test x_$withval != x_no; then 15899 ub_with_pythonmod=yes 15900 ub_test_python=yes 15901fi 15902 15903# Check for Python & SWIG only on PyUnbound or PyModule 15904if test x_$ub_test_python != x_no; then 15905 15906 # Check for Python 15907 ub_have_python=no 15908 ac_save_LIBS="$LIBS" 15909 # 15910 # Allow the use of a (user set) custom python version 15911 # 15912 15913 15914 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 15915set dummy python$PYTHON_VERSION; ac_word=$2 15916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15917$as_echo_n "checking for $ac_word... " >&6; } 15918if ${ac_cv_path_PYTHON+:} false; then : 15919 $as_echo_n "(cached) " >&6 15920else 15921 case $PYTHON in 15922 [\\/]* | ?:[\\/]*) 15923 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 15924 ;; 15925 *) 15926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15927for as_dir in $PATH 15928do 15929 IFS=$as_save_IFS 15930 test -z "$as_dir" && as_dir=. 15931 for ac_exec_ext in '' $ac_executable_extensions; do 15932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15933 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 15934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15935 break 2 15936 fi 15937done 15938 done 15939IFS=$as_save_IFS 15940 15941 ;; 15942esac 15943fi 15944PYTHON=$ac_cv_path_PYTHON 15945if test -n "$PYTHON"; then 15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 15947$as_echo "$PYTHON" >&6; } 15948else 15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15950$as_echo "no" >&6; } 15951fi 15952 15953 15954 if test -z "$PYTHON"; then 15955 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 15956 PYTHON_VERSION="" 15957 fi 15958 15959 if test -z "$PYTHON_VERSION"; then 15960 PYTHON_VERSION=`$PYTHON -c "import sys; \ 15961 print(sys.version.split()[0])"` 15962 fi 15963 15964 # 15965 # Check if you have distutils, else fail 15966 # 15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 15968$as_echo_n "checking for the distutils Python package... " >&6; } 15969 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 15970 if test -z "$ac_distutils_result"; then 15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15972$as_echo "yes" >&6; } 15973 else 15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15975$as_echo "no" >&6; } 15976 as_fn_error $? "cannot import Python module \"distutils\". 15977Please check your Python installation. The error was: 15978$ac_distutils_result" "$LINENO" 5 15979 PYTHON_VERSION="" 15980 fi 15981 15982 # 15983 # Check for Python include path 15984 # 15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 15986$as_echo_n "checking for Python include path... " >&6; } 15987 if test -z "$PYTHON_CPPFLAGS"; then 15988 python_path=`$PYTHON -c "import distutils.sysconfig; \ 15989 print(distutils.sysconfig.get_python_inc());"` 15990 if test -n "${python_path}"; then 15991 python_path="-I$python_path" 15992 fi 15993 PYTHON_CPPFLAGS=$python_path 15994 fi 15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 15996$as_echo "$PYTHON_CPPFLAGS" >&6; } 15997 15998 15999 # 16000 # Check for Python library path 16001 # 16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 16003$as_echo_n "checking for Python library path... " >&6; } 16004 if test -z "$PYTHON_LDFLAGS"; then 16005 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \ 16006 print(get_config_var('BLDLIBRARY'));"` 16007 fi 16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 16009$as_echo "$PYTHON_LDFLAGS" >&6; } 16010 16011 16012 # 16013 # Check for site packages 16014 # 16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 16016$as_echo_n "checking for Python site-packages path... " >&6; } 16017 if test -z "$PYTHON_SITE_PKG"; then 16018 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 16019 print(distutils.sysconfig.get_python_lib(1,0));"` 16020 fi 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 16022$as_echo "$PYTHON_SITE_PKG" >&6; } 16023 16024 16025 # 16026 # final check to see if everything compiles alright 16027 # 16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 16029$as_echo_n "checking consistency of all components of python development environment... " >&6; } 16030 ac_ext=c 16031ac_cpp='$CPP $CPPFLAGS' 16032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16034ac_compiler_gnu=$ac_cv_c_compiler_gnu 16035 16036 # save current global flags 16037 ac_save_LIBS="$LIBS" 16038 ac_save_CPPFLAGS="$CPPFLAGS" 16039 16040 LIBS="$LIBS $PYTHON_LDFLAGS" 16041 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 16042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16043/* end confdefs.h. */ 16044 16045 #include <Python.h> 16046 16047int 16048main () 16049{ 16050 16051 Py_Initialize(); 16052 16053 ; 16054 return 0; 16055} 16056_ACEOF 16057if ac_fn_c_try_link "$LINENO"; then : 16058 pythonexists=yes 16059else 16060 pythonexists=no 16061fi 16062rm -f core conftest.err conftest.$ac_objext \ 16063 conftest$ac_exeext conftest.$ac_ext 16064 16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 16066$as_echo "$pythonexists" >&6; } 16067 16068 if test ! "$pythonexists" = "yes"; then 16069 as_fn_error $? " 16070 Could not link test program to Python. Maybe the main Python library has been 16071 installed in some non-standard library path. If so, pass it to configure, 16072 via the LDFLAGS environment variable. 16073 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 16074 ============================================================================ 16075 ERROR! 16076 You probably have to install the development version of the Python package 16077 for your distribution. The exact name of this package varies among them. 16078 ============================================================================ 16079 " "$LINENO" 5 16080 PYTHON_VERSION="" 16081 fi 16082 ac_ext=c 16083ac_cpp='$CPP $CPPFLAGS' 16084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16086ac_compiler_gnu=$ac_cv_c_compiler_gnu 16087 16088 # turn back to default flags 16089 CPPFLAGS="$ac_save_CPPFLAGS" 16090 LIBS="$ac_save_LIBS" 16091 16092 # 16093 # all done! 16094 # 16095 16096 if test ! -z "$PYTHON_VERSION"; then 16097 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then 16098 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5 16099 fi 16100 16101 # Have Python 16102 16103$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 16104 16105 LIBS="$PYTHON_LDFLAGS $LIBS" 16106 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 16107 ub_have_python=yes 16108 16109 # Check for SWIG 16110 ub_have_swig=no 16111 16112 # Extract the first word of "swig", so it can be a program name with args. 16113set dummy swig; ac_word=$2 16114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16115$as_echo_n "checking for $ac_word... " >&6; } 16116if ${ac_cv_path_SWIG+:} false; then : 16117 $as_echo_n "(cached) " >&6 16118else 16119 case $SWIG in 16120 [\\/]* | ?:[\\/]*) 16121 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 16122 ;; 16123 *) 16124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16125for as_dir in $PATH 16126do 16127 IFS=$as_save_IFS 16128 test -z "$as_dir" && as_dir=. 16129 for ac_exec_ext in '' $ac_executable_extensions; do 16130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16131 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 16132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16133 break 2 16134 fi 16135done 16136 done 16137IFS=$as_save_IFS 16138 16139 ;; 16140esac 16141fi 16142SWIG=$ac_cv_path_SWIG 16143if test -n "$SWIG"; then 16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 16145$as_echo "$SWIG" >&6; } 16146else 16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16148$as_echo "no" >&6; } 16149fi 16150 16151 16152 if test -z "$SWIG" ; then 16153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 16154$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 16155 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 16156 elif test -n "" ; then 16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 16158$as_echo_n "checking for SWIG version... " >&6; } 16159 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'` 16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 16161$as_echo "$swig_version" >&6; } 16162 if test -n "$swig_version" ; then 16163 # Calculate the required version number components 16164 required= 16165 required_major=`echo $required | sed 's/[^0-9].*//'` 16166 if test -z "$required_major" ; then 16167 required_major=0 16168 fi 16169 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 16170 required_minor=`echo $required | sed 's/[^0-9].*//'` 16171 if test -z "$required_minor" ; then 16172 required_minor=0 16173 fi 16174 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 16175 required_patch=`echo $required | sed 's/[^0-9].*//'` 16176 if test -z "$required_patch" ; then 16177 required_patch=0 16178 fi 16179 # Calculate the available version number components 16180 available=$swig_version 16181 available_major=`echo $available | sed 's/[^0-9].*//'` 16182 if test -z "$available_major" ; then 16183 available_major=0 16184 fi 16185 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 16186 available_minor=`echo $available | sed 's/[^0-9].*//'` 16187 if test -z "$available_minor" ; then 16188 available_minor=0 16189 fi 16190 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 16191 available_patch=`echo $available | sed 's/[^0-9].*//'` 16192 if test -z "$available_patch" ; then 16193 available_patch=0 16194 fi 16195 if test $available_major -ne $required_major \ 16196 -o $available_minor -ne $required_minor \ 16197 -o $available_patch -lt $required_patch ; then 16198 { $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 16199$as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 16200 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 16201 else 16202 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 16203$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 16204 SWIG_LIB=`$SWIG -swiglib` 16205 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 16206$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 16207 fi 16208 else 16209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 16210$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 16211 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 16212 fi 16213 fi 16214 16215 16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5 16217$as_echo_n "checking SWIG... " >&6; } 16218 if test ! -x "$SWIG"; then 16219 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5 16220 else 16221 16222$as_echo "#define HAVE_SWIG 1" >>confdefs.h 16223 16224 swig="$SWIG" 16225 16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 16227$as_echo "present" >&6; } 16228 16229 # If have Python & SWIG 16230 # Declare PythonMod 16231 if test x_$ub_with_pythonmod != x_no; then 16232 16233$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h 16234 16235 WITH_PYTHONMODULE=yes 16236 16237 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo" 16238 16239 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h' 16240 16241 PYTHONMOD_INSTALL=pythonmod-install 16242 16243 PYTHONMOD_UNINSTALL=pythonmod-uninstall 16244 16245 fi 16246 16247 # Declare PyUnbound 16248 if test x_$ub_with_pyunbound != x_no; then 16249 16250$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h 16251 16252 WITH_PYUNBOUND=yes 16253 16254 PYUNBOUND_OBJ="libunbound_wrap.lo" 16255 16256 PYUNBOUND_TARGET="_unbound.la" 16257 16258 PYUNBOUND_INSTALL=pyunbound-install 16259 16260 PYUNBOUND_UNINSTALL=pyunbound-uninstall 16261 16262 fi 16263 fi 16264 else 16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5 16266$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; } 16267 ub_with_pyunbound=no 16268 ub_with_pythonmod=no 16269 fi 16270fi 16271 16272if test "`uname`" = "NetBSD"; then 16273 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_' 16274 16275fi 16276CONFIG_DATE=`date +%Y%m%d` 16277 16278 16279# Checks for libraries. 16280 16281# libnss 16282USE_NSS="no" 16283 16284# Check whether --with-nss was given. 16285if test "${with_nss+set}" = set; then : 16286 withval=$with_nss; 16287 USE_NSS="yes" 16288 16289$as_echo "#define HAVE_NSS 1" >>confdefs.h 16290 16291 if test "$withval" != "" -a "$withval" != "yes"; then 16292 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3" 16293 LDFLAGS="$LDFLAGS -L$withval/lib" 16294 16295 if test "x$enable_rpath" = xyes; then 16296 if echo "$withval/lib" | grep "^/" >/dev/null; then 16297 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 16298 fi 16299 fi 16300 16301 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" 16302 else 16303 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" 16304 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" 16305 fi 16306 LIBS="$LIBS -lnss3 -lnspr4" 16307 16308 16309fi 16310 16311 16312# openssl 16313if test $USE_NSS = "no"; then 16314 16315 16316# Check whether --with-ssl was given. 16317if test "${with_ssl+set}" = set; then : 16318 withval=$with_ssl; 16319 16320else 16321 16322 withval="yes" 16323 16324fi 16325 16326 if test x_$withval = x_no; then 16327 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5 16328 fi 16329 16330 withval=$withval 16331 if test x_$withval != x_no; then 16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 16333$as_echo_n "checking for SSL... " >&6; } 16334 if test x_$withval = x_ -o x_$withval = x_yes; then 16335 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 16336 fi 16337 for dir in $withval; do 16338 ssldir="$dir" 16339 if test -f "$dir/include/openssl/ssl.h"; then 16340 found_ssl="yes" 16341 16342cat >>confdefs.h <<_ACEOF 16343#define HAVE_SSL /**/ 16344_ACEOF 16345 16346 if test "$ssldir" != "/usr"; then 16347 CPPFLAGS="$CPPFLAGS -I$ssldir/include" 16348 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include" 16349 fi 16350 break; 16351 fi 16352 done 16353 if test x_$found_ssl != x_yes; then 16354 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 16355 else 16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 16357$as_echo "found in $ssldir" >&6; } 16358 HAVE_SSL=yes 16359 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then 16360 LDFLAGS="$LDFLAGS -L$ssldir/lib" 16361 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib" 16362 16363 if test "x$enable_rpath" = xyes; then 16364 if echo "$ssldir/lib" | grep "^/" >/dev/null; then 16365 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib" 16366 fi 16367 fi 16368 16369 fi 16370 16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5 16372$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; } 16373 LIBS="$LIBS -lcrypto" 16374 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 16375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16376/* end confdefs.h. */ 16377 16378int 16379main () 16380{ 16381 16382 int HMAC_CTX_init(void); 16383 (void)HMAC_CTX_init(); 16384 16385 ; 16386 return 0; 16387} 16388_ACEOF 16389if ac_fn_c_try_link "$LINENO"; then : 16390 16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16392$as_echo "yes" >&6; } 16393 16394$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16395 16396 16397else 16398 16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16400$as_echo "no" >&6; } 16401 # check if -lwsock32 or -lgdi32 are needed. 16402 BAKLIBS="$LIBS" 16403 BAKSSLLIBS="$LIBSSL_LIBS" 16404 LIBS="$LIBS -lgdi32" 16405 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32" 16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 16407$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; } 16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16409/* end confdefs.h. */ 16410 16411int 16412main () 16413{ 16414 16415 int HMAC_CTX_init(void); 16416 (void)HMAC_CTX_init(); 16417 16418 ; 16419 return 0; 16420} 16421_ACEOF 16422if ac_fn_c_try_link "$LINENO"; then : 16423 16424 16425$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16426 16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16428$as_echo "yes" >&6; } 16429 16430else 16431 16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16433$as_echo "no" >&6; } 16434 LIBS="$BAKLIBS" 16435 LIBSSL_LIBS="$BAKSSLLIBS" 16436 LIBS="$LIBS -ldl" 16437 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 16439$as_echo_n "checking if -lcrypto needs -ldl... " >&6; } 16440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16441/* end confdefs.h. */ 16442 16443int 16444main () 16445{ 16446 16447 int HMAC_CTX_init(void); 16448 (void)HMAC_CTX_init(); 16449 16450 ; 16451 return 0; 16452} 16453_ACEOF 16454if ac_fn_c_try_link "$LINENO"; then : 16455 16456 16457$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16458 16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16460$as_echo "yes" >&6; } 16461 16462else 16463 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16465$as_echo "no" >&6; } 16466 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 16467 16468fi 16469rm -f core conftest.err conftest.$ac_objext \ 16470 conftest$ac_exeext conftest.$ac_ext 16471 16472fi 16473rm -f core conftest.err conftest.$ac_objext \ 16474 conftest$ac_exeext conftest.$ac_ext 16475 16476fi 16477rm -f core conftest.err conftest.$ac_objext \ 16478 conftest$ac_exeext conftest.$ac_ext 16479 fi 16480 16481 16482 # openssl engine functionality needs dlopen(). 16483 BAKLIBS="$LIBS" 16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16485$as_echo_n "checking for library containing dlopen... " >&6; } 16486if ${ac_cv_search_dlopen+:} false; then : 16487 $as_echo_n "(cached) " >&6 16488else 16489 ac_func_search_save_LIBS=$LIBS 16490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16491/* end confdefs.h. */ 16492 16493/* Override any GCC internal prototype to avoid an error. 16494 Use char because int might match the return type of a GCC 16495 builtin and then its argument prototype would still apply. */ 16496#ifdef __cplusplus 16497extern "C" 16498#endif 16499char dlopen (); 16500int 16501main () 16502{ 16503return dlopen (); 16504 ; 16505 return 0; 16506} 16507_ACEOF 16508for ac_lib in '' dl; do 16509 if test -z "$ac_lib"; then 16510 ac_res="none required" 16511 else 16512 ac_res=-l$ac_lib 16513 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16514 fi 16515 if ac_fn_c_try_link "$LINENO"; then : 16516 ac_cv_search_dlopen=$ac_res 16517fi 16518rm -f core conftest.err conftest.$ac_objext \ 16519 conftest$ac_exeext 16520 if ${ac_cv_search_dlopen+:} false; then : 16521 break 16522fi 16523done 16524if ${ac_cv_search_dlopen+:} false; then : 16525 16526else 16527 ac_cv_search_dlopen=no 16528fi 16529rm conftest.$ac_ext 16530LIBS=$ac_func_search_save_LIBS 16531fi 16532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16533$as_echo "$ac_cv_search_dlopen" >&6; } 16534ac_res=$ac_cv_search_dlopen 16535if test "$ac_res" != no; then : 16536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16537 16538fi 16539 16540 if test "$LIBS" != "$BAKLIBS"; then 16541 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 16542 fi 16543 fi 16544for ac_header in openssl/ssl.h 16545do : 16546 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 16547" 16548if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 16549 cat >>confdefs.h <<_ACEOF 16550#define HAVE_OPENSSL_SSL_H 1 16551_ACEOF 16552 16553fi 16554 16555done 16556 16557for ac_header in openssl/err.h 16558do : 16559 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 16560" 16561if test "x$ac_cv_header_openssl_err_h" = xyes; then : 16562 cat >>confdefs.h <<_ACEOF 16563#define HAVE_OPENSSL_ERR_H 1 16564_ACEOF 16565 16566fi 16567 16568done 16569 16570for ac_header in openssl/rand.h 16571do : 16572 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 16573" 16574if test "x$ac_cv_header_openssl_rand_h" = xyes; then : 16575 cat >>confdefs.h <<_ACEOF 16576#define HAVE_OPENSSL_RAND_H 1 16577_ACEOF 16578 16579fi 16580 16581done 16582 16583 16584 16585 16586# check if libssl needs libdl 16587BAKLIBS="$LIBS" 16588LIBS="-lssl $LIBS" 16589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 16590$as_echo_n "checking if libssl needs libdl... " >&6; } 16591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16592/* end confdefs.h. */ 16593 16594/* Override any GCC internal prototype to avoid an error. 16595 Use char because int might match the return type of a GCC 16596 builtin and then its argument prototype would still apply. */ 16597#ifdef __cplusplus 16598extern "C" 16599#endif 16600char SSL_CTX_new (); 16601int 16602main () 16603{ 16604return SSL_CTX_new (); 16605 ; 16606 return 0; 16607} 16608_ACEOF 16609if ac_fn_c_try_link "$LINENO"; then : 16610 16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16612$as_echo "no" >&6; } 16613 LIBS="$BAKLIBS" 16614 16615else 16616 16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16618$as_echo "yes" >&6; } 16619 LIBS="$BAKLIBS" 16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16621$as_echo_n "checking for library containing dlopen... " >&6; } 16622if ${ac_cv_search_dlopen+:} false; then : 16623 $as_echo_n "(cached) " >&6 16624else 16625 ac_func_search_save_LIBS=$LIBS 16626cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16627/* end confdefs.h. */ 16628 16629/* Override any GCC internal prototype to avoid an error. 16630 Use char because int might match the return type of a GCC 16631 builtin and then its argument prototype would still apply. */ 16632#ifdef __cplusplus 16633extern "C" 16634#endif 16635char dlopen (); 16636int 16637main () 16638{ 16639return dlopen (); 16640 ; 16641 return 0; 16642} 16643_ACEOF 16644for ac_lib in '' dl; do 16645 if test -z "$ac_lib"; then 16646 ac_res="none required" 16647 else 16648 ac_res=-l$ac_lib 16649 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16650 fi 16651 if ac_fn_c_try_link "$LINENO"; then : 16652 ac_cv_search_dlopen=$ac_res 16653fi 16654rm -f core conftest.err conftest.$ac_objext \ 16655 conftest$ac_exeext 16656 if ${ac_cv_search_dlopen+:} false; then : 16657 break 16658fi 16659done 16660if ${ac_cv_search_dlopen+:} false; then : 16661 16662else 16663 ac_cv_search_dlopen=no 16664fi 16665rm conftest.$ac_ext 16666LIBS=$ac_func_search_save_LIBS 16667fi 16668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16669$as_echo "$ac_cv_search_dlopen" >&6; } 16670ac_res=$ac_cv_search_dlopen 16671if test "$ac_res" != no; then : 16672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16673 16674fi 16675 16676 16677fi 16678rm -f core conftest.err conftest.$ac_objext \ 16679 conftest$ac_exeext conftest.$ac_ext 16680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5 16681$as_echo_n "checking for LibreSSL... " >&6; } 16682if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then 16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16684$as_echo "yes" >&6; } 16685 16686$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h 16687 16688 # libressl provides these compat functions, but they may also be 16689 # declared by the OS in libc. See if they have been declared. 16690 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" 16691if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 16692 ac_have_decl=1 16693else 16694 ac_have_decl=0 16695fi 16696 16697cat >>confdefs.h <<_ACEOF 16698#define HAVE_DECL_STRLCPY $ac_have_decl 16699_ACEOF 16700ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" 16701if test "x$ac_cv_have_decl_strlcat" = xyes; then : 16702 ac_have_decl=1 16703else 16704 ac_have_decl=0 16705fi 16706 16707cat >>confdefs.h <<_ACEOF 16708#define HAVE_DECL_STRLCAT $ac_have_decl 16709_ACEOF 16710ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default" 16711if test "x$ac_cv_have_decl_arc4random" = xyes; then : 16712 ac_have_decl=1 16713else 16714 ac_have_decl=0 16715fi 16716 16717cat >>confdefs.h <<_ACEOF 16718#define HAVE_DECL_ARC4RANDOM $ac_have_decl 16719_ACEOF 16720ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default" 16721if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then : 16722 ac_have_decl=1 16723else 16724 ac_have_decl=0 16725fi 16726 16727cat >>confdefs.h <<_ACEOF 16728#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl 16729_ACEOF 16730 16731else 16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16733$as_echo "no" >&6; } 16734fi 16735for ac_header in openssl/conf.h 16736do : 16737 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default 16738" 16739if test "x$ac_cv_header_openssl_conf_h" = xyes; then : 16740 cat >>confdefs.h <<_ACEOF 16741#define HAVE_OPENSSL_CONF_H 1 16742_ACEOF 16743 16744fi 16745 16746done 16747 16748for ac_header in openssl/engine.h 16749do : 16750 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default 16751" 16752if test "x$ac_cv_header_openssl_engine_h" = xyes; then : 16753 cat >>confdefs.h <<_ACEOF 16754#define HAVE_OPENSSL_ENGINE_H 1 16755_ACEOF 16756 16757fi 16758 16759done 16760 16761for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode 16762do : 16763 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16764ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16765if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16766 cat >>confdefs.h <<_ACEOF 16767#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16768_ACEOF 16769 16770fi 16771done 16772 16773ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" " 16774$ac_includes_default 16775#ifdef HAVE_OPENSSL_ERR_H 16776#include <openssl/err.h> 16777#endif 16778 16779#ifdef HAVE_OPENSSL_RAND_H 16780#include <openssl/rand.h> 16781#endif 16782 16783#ifdef HAVE_OPENSSL_CONF_H 16784#include <openssl/conf.h> 16785#endif 16786 16787#ifdef HAVE_OPENSSL_ENGINE_H 16788#include <openssl/engine.h> 16789#endif 16790#include <openssl/ssl.h> 16791#include <openssl/evp.h> 16792 16793" 16794if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then : 16795 ac_have_decl=1 16796else 16797 ac_have_decl=0 16798fi 16799 16800cat >>confdefs.h <<_ACEOF 16801#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl 16802_ACEOF 16803ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" " 16804$ac_includes_default 16805#ifdef HAVE_OPENSSL_ERR_H 16806#include <openssl/err.h> 16807#endif 16808 16809#ifdef HAVE_OPENSSL_RAND_H 16810#include <openssl/rand.h> 16811#endif 16812 16813#ifdef HAVE_OPENSSL_CONF_H 16814#include <openssl/conf.h> 16815#endif 16816 16817#ifdef HAVE_OPENSSL_ENGINE_H 16818#include <openssl/engine.h> 16819#endif 16820#include <openssl/ssl.h> 16821#include <openssl/evp.h> 16822 16823" 16824if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then : 16825 ac_have_decl=1 16826else 16827 ac_have_decl=0 16828fi 16829 16830cat >>confdefs.h <<_ACEOF 16831#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl 16832_ACEOF 16833 16834fi 16835 16836 16837# Check whether --enable-sha2 was given. 16838if test "${enable_sha2+set}" = set; then : 16839 enableval=$enable_sha2; 16840fi 16841 16842case "$enable_sha2" in 16843 no) 16844 ;; 16845 yes|*) 16846 16847$as_echo "#define USE_SHA2 1" >>confdefs.h 16848 16849 ;; 16850esac 16851 16852# check wether gost also works 16853 16854# Check whether --enable-gost was given. 16855if test "${enable_gost+set}" = set; then : 16856 enableval=$enable_gost; 16857fi 16858 16859use_gost="no" 16860if test $USE_NSS = "no"; then 16861case "$enable_gost" in 16862 no) 16863 ;; 16864 *) 16865 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 16866if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then : 16867 : 16868else 16869 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5 16870fi 16871 16872 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 16873if test "x$ac_cv_func_EC_KEY_new" = xyes; then : 16874 16875else 16876 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5 16877fi 16878 16879 16880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 16881$as_echo_n "checking if GOST works... " >&6; } 16882if test c${cross_compiling} = cno; then 16883BAKCFLAGS="$CFLAGS" 16884if test -n "$ssldir"; then 16885 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib" 16886fi 16887if test "$cross_compiling" = yes; then : 16888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16890as_fn_error $? "cannot run test program while cross compiling 16891See \`config.log' for more details" "$LINENO" 5; } 16892else 16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16894/* end confdefs.h. */ 16895 16896#include <string.h> 16897#include <openssl/ssl.h> 16898#include <openssl/evp.h> 16899#include <openssl/engine.h> 16900#include <openssl/conf.h> 16901/* routine to load gost (from sldns) */ 16902int load_gost_id(void) 16903{ 16904 static int gost_id = 0; 16905 const EVP_PKEY_ASN1_METHOD* meth; 16906 ENGINE* e; 16907 16908 if(gost_id) return gost_id; 16909 16910 /* see if configuration loaded gost implementation from other engine*/ 16911 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 16912 if(meth) { 16913 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 16914 return gost_id; 16915 } 16916 16917 /* see if engine can be loaded already */ 16918 e = ENGINE_by_id("gost"); 16919 if(!e) { 16920 /* load it ourself, in case statically linked */ 16921 ENGINE_load_builtin_engines(); 16922 ENGINE_load_dynamic(); 16923 e = ENGINE_by_id("gost"); 16924 } 16925 if(!e) { 16926 /* no gost engine in openssl */ 16927 return 0; 16928 } 16929 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 16930 ENGINE_finish(e); 16931 ENGINE_free(e); 16932 return 0; 16933 } 16934 16935 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 16936 if(!meth) { 16937 /* algo not found */ 16938 ENGINE_finish(e); 16939 ENGINE_free(e); 16940 return 0; 16941 } 16942 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 16943 return gost_id; 16944} 16945int main(void) { 16946 EVP_MD_CTX* ctx; 16947 const EVP_MD* md; 16948 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 16949 const char* str = "Hello world"; 16950 const unsigned char check[] = { 16951 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 16952 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 16953 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 16954 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 16955 }; 16956 OPENSSL_config(NULL); 16957 (void)load_gost_id(); 16958 md = EVP_get_digestbyname("md_gost94"); 16959 if(!md) return 1; 16960 memset(digest, 0, sizeof(digest)); 16961 ctx = EVP_MD_CTX_create(); 16962 if(!ctx) return 2; 16963 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 16964 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 16965 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 16966 /* uncomment to see the hash calculated. 16967 {int i; 16968 for(i=0; i<32; i++) 16969 printf(" %2.2x", (int)digest[i]); 16970 printf("\n");} 16971 */ 16972 if(memcmp(digest, check, sizeof(check)) != 0) 16973 return 6; 16974 return 0; 16975} 16976 16977_ACEOF 16978if ac_fn_c_try_run "$LINENO"; then : 16979 eval "ac_cv_c_gost_works=yes" 16980else 16981 eval "ac_cv_c_gost_works=no" 16982fi 16983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16984 conftest.$ac_objext conftest.beam conftest.$ac_ext 16985fi 16986 16987CFLAGS="$BAKCFLAGS" 16988else 16989eval "ac_cv_c_gost_works=maybe" 16990fi 16991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5 16992$as_echo "$ac_cv_c_gost_works" >&6; } 16993 16994 if test "$ac_cv_c_gost_works" != no; then 16995 use_gost="yes" 16996 16997$as_echo "#define USE_GOST 1" >>confdefs.h 16998 16999 fi 17000 ;; 17001esac 17002fi 17003# Check whether --enable-ecdsa was given. 17004if test "${enable_ecdsa+set}" = set; then : 17005 enableval=$enable_ecdsa; 17006fi 17007 17008use_ecdsa="no" 17009case "$enable_ecdsa" in 17010 no) 17011 ;; 17012 *) 17013 if test $USE_NSS = "no"; then 17014 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 17015if test "x$ac_cv_func_ECDSA_sign" = xyes; then : 17016 17017else 17018 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17019fi 17020 17021 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 17022if test "x$ac_cv_func_SHA384_Init" = xyes; then : 17023 17024else 17025 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17026fi 17027 17028 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 17029#include <openssl/evp.h> 17030 17031" 17032if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then : 17033 ac_have_decl=1 17034else 17035 ac_have_decl=0 17036fi 17037 17038cat >>confdefs.h <<_ACEOF 17039#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl 17040_ACEOF 17041if test $ac_have_decl = 1; then : 17042 17043else 17044 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17045fi 17046ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 17047#include <openssl/evp.h> 17048 17049" 17050if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then : 17051 ac_have_decl=1 17052else 17053 ac_have_decl=0 17054fi 17055 17056cat >>confdefs.h <<_ACEOF 17057#define HAVE_DECL_NID_SECP384R1 $ac_have_decl 17058_ACEOF 17059if test $ac_have_decl = 1; then : 17060 17061else 17062 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17063fi 17064 17065 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency) 17066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5 17067$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; } 17068 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then 17069 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then 17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17071$as_echo "no" >&6; } 17072 17073cat >>confdefs.h <<_ACEOF 17074#define USE_ECDSA_EVP_WORKAROUND 1 17075_ACEOF 17076 17077 else 17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17079$as_echo "yes" >&6; } 17080 fi 17081 else 17082 # not OpenSSL, thus likely LibreSSL, which supports it 17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17084$as_echo "yes" >&6; } 17085 fi 17086 fi 17087 # we now know we have ECDSA and the required curves. 17088 17089cat >>confdefs.h <<_ACEOF 17090#define USE_ECDSA 1 17091_ACEOF 17092 17093 use_ecdsa="yes" 17094 ;; 17095esac 17096 17097# Check whether --enable-event-api was given. 17098if test "${enable_event_api+set}" = set; then : 17099 enableval=$enable_event_api; 17100fi 17101 17102use_unbound_event="no" 17103case "$enable_event_api" in 17104 yes) 17105 use_unbound_event="yes" 17106 ;; 17107 *) 17108 ;; 17109esac 17110 17111# check for libevent 17112 17113# Check whether --with-libevent was given. 17114if test "${with_libevent+set}" = set; then : 17115 withval=$with_libevent; 17116else 17117 withval="no" 17118fi 17119 17120if test x_$withval = x_yes -o x_$withval != x_no; then 17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 17122$as_echo_n "checking for libevent... " >&6; } 17123 if test x_$withval = x_ -o x_$withval = x_yes; then 17124 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 17125 fi 17126 for dir in $withval; do 17127 thedir="$dir" 17128 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 17129 found_libevent="yes" 17130 if test "$thedir" != "/usr"; then 17131 CPPFLAGS="$CPPFLAGS -I$thedir/include" 17132 fi 17133 break; 17134 fi 17135 done 17136 if test x_$found_libevent != x_yes; then 17137 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 17138 # libevent source directory 17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 17140$as_echo "found in $thedir" >&6; } 17141 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 17142 BAK_LDFLAGS_SET="1" 17143 BAK_LDFLAGS="$LDFLAGS" 17144 # remove evdns from linking 17145 mkdir build >/dev/null 2>&1 17146 mkdir build/libevent >/dev/null 2>&1 17147 mkdir build/libevent/.libs >/dev/null 2>&1 17148 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 17149 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo` 17150 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 17151 cp $ev_files_o build/libevent 17152 cp $ev_files_lo build/libevent 17153 cp $ev_files_libso build/libevent/.libs 17154 LATE_LDFLAGS="build/libevent/*.lo -lm" 17155 LDFLAGS="build/libevent/*.o $LDFLAGS -lm" 17156 else 17157 as_fn_error $? "Cannot find the libevent library in $withval 17158You can restart ./configure --with-libevent=no to use a builtin alternative. 17159Please note that this alternative is not as capable as libevent when using 17160large outgoing port ranges. " "$LINENO" 5 17161 fi 17162 else 17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 17164$as_echo "found in $thedir" >&6; } 17165 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 17166 LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 17167 17168 if test "x$enable_rpath" = xyes; then 17169 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 17170 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 17171 fi 17172 fi 17173 17174 else 17175 if test "$thedir" != "/usr" -a "$thedir" != ""; then 17176 LDFLAGS="$LDFLAGS -L$thedir/lib" 17177 17178 if test "x$enable_rpath" = xyes; then 17179 if echo "$thedir/lib" | grep "^/" >/dev/null; then 17180 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 17181 fi 17182 fi 17183 17184 fi 17185 fi 17186 fi 17187 # check for library used by libevent after 1.3c 17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 17189$as_echo_n "checking for library containing clock_gettime... " >&6; } 17190if ${ac_cv_search_clock_gettime+:} false; then : 17191 $as_echo_n "(cached) " >&6 17192else 17193 ac_func_search_save_LIBS=$LIBS 17194cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17195/* end confdefs.h. */ 17196 17197/* Override any GCC internal prototype to avoid an error. 17198 Use char because int might match the return type of a GCC 17199 builtin and then its argument prototype would still apply. */ 17200#ifdef __cplusplus 17201extern "C" 17202#endif 17203char clock_gettime (); 17204int 17205main () 17206{ 17207return clock_gettime (); 17208 ; 17209 return 0; 17210} 17211_ACEOF 17212for ac_lib in '' rt; do 17213 if test -z "$ac_lib"; then 17214 ac_res="none required" 17215 else 17216 ac_res=-l$ac_lib 17217 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17218 fi 17219 if ac_fn_c_try_link "$LINENO"; then : 17220 ac_cv_search_clock_gettime=$ac_res 17221fi 17222rm -f core conftest.err conftest.$ac_objext \ 17223 conftest$ac_exeext 17224 if ${ac_cv_search_clock_gettime+:} false; then : 17225 break 17226fi 17227done 17228if ${ac_cv_search_clock_gettime+:} false; then : 17229 17230else 17231 ac_cv_search_clock_gettime=no 17232fi 17233rm conftest.$ac_ext 17234LIBS=$ac_func_search_save_LIBS 17235fi 17236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 17237$as_echo "$ac_cv_search_clock_gettime" >&6; } 17238ac_res=$ac_cv_search_clock_gettime 17239if test "$ac_res" != no; then : 17240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17241 17242fi 17243 17244 17245 # is the event.h header libev or libevent? 17246 for ac_header in event.h 17247do : 17248 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 17249" 17250if test "x$ac_cv_header_event_h" = xyes; then : 17251 cat >>confdefs.h <<_ACEOF 17252#define HAVE_EVENT_H 1 17253_ACEOF 17254 17255fi 17256 17257done 17258 17259 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 17260#include <event.h> 17261 17262" 17263if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then : 17264 17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 17266$as_echo_n "checking for library containing event_set... " >&6; } 17267if ${ac_cv_search_event_set+:} false; then : 17268 $as_echo_n "(cached) " >&6 17269else 17270 ac_func_search_save_LIBS=$LIBS 17271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17272/* end confdefs.h. */ 17273 17274/* Override any GCC internal prototype to avoid an error. 17275 Use char because int might match the return type of a GCC 17276 builtin and then its argument prototype would still apply. */ 17277#ifdef __cplusplus 17278extern "C" 17279#endif 17280char event_set (); 17281int 17282main () 17283{ 17284return event_set (); 17285 ; 17286 return 0; 17287} 17288_ACEOF 17289for ac_lib in '' ev; do 17290 if test -z "$ac_lib"; then 17291 ac_res="none required" 17292 else 17293 ac_res=-l$ac_lib 17294 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17295 fi 17296 if ac_fn_c_try_link "$LINENO"; then : 17297 ac_cv_search_event_set=$ac_res 17298fi 17299rm -f core conftest.err conftest.$ac_objext \ 17300 conftest$ac_exeext 17301 if ${ac_cv_search_event_set+:} false; then : 17302 break 17303fi 17304done 17305if ${ac_cv_search_event_set+:} false; then : 17306 17307else 17308 ac_cv_search_event_set=no 17309fi 17310rm conftest.$ac_ext 17311LIBS=$ac_func_search_save_LIBS 17312fi 17313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 17314$as_echo "$ac_cv_search_event_set" >&6; } 17315ac_res=$ac_cv_search_event_set 17316if test "$ac_res" != no; then : 17317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17318 17319fi 17320 17321 17322else 17323 17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 17325$as_echo_n "checking for library containing event_set... " >&6; } 17326if ${ac_cv_search_event_set+:} false; then : 17327 $as_echo_n "(cached) " >&6 17328else 17329 ac_func_search_save_LIBS=$LIBS 17330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17331/* end confdefs.h. */ 17332 17333/* Override any GCC internal prototype to avoid an error. 17334 Use char because int might match the return type of a GCC 17335 builtin and then its argument prototype would still apply. */ 17336#ifdef __cplusplus 17337extern "C" 17338#endif 17339char event_set (); 17340int 17341main () 17342{ 17343return event_set (); 17344 ; 17345 return 0; 17346} 17347_ACEOF 17348for ac_lib in '' event; do 17349 if test -z "$ac_lib"; then 17350 ac_res="none required" 17351 else 17352 ac_res=-l$ac_lib 17353 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17354 fi 17355 if ac_fn_c_try_link "$LINENO"; then : 17356 ac_cv_search_event_set=$ac_res 17357fi 17358rm -f core conftest.err conftest.$ac_objext \ 17359 conftest$ac_exeext 17360 if ${ac_cv_search_event_set+:} false; then : 17361 break 17362fi 17363done 17364if ${ac_cv_search_event_set+:} false; then : 17365 17366else 17367 ac_cv_search_event_set=no 17368fi 17369rm conftest.$ac_ext 17370LIBS=$ac_func_search_save_LIBS 17371fi 17372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 17373$as_echo "$ac_cv_search_event_set" >&6; } 17374ac_res=$ac_cv_search_event_set 17375if test "$ac_res" != no; then : 17376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17377 17378fi 17379 17380 17381fi 17382 17383 for ac_func in event_base_free 17384do : 17385 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 17386if test "x$ac_cv_func_event_base_free" = xyes; then : 17387 cat >>confdefs.h <<_ACEOF 17388#define HAVE_EVENT_BASE_FREE 1 17389_ACEOF 17390 17391fi 17392done 17393 # only in libevent 1.2 and later 17394 for ac_func in event_base_once 17395do : 17396 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 17397if test "x$ac_cv_func_event_base_once" = xyes; then : 17398 cat >>confdefs.h <<_ACEOF 17399#define HAVE_EVENT_BASE_ONCE 1 17400_ACEOF 17401 17402fi 17403done 17404 # only in libevent 1.4.1 and later 17405 for ac_func in event_base_new 17406do : 17407 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 17408if test "x$ac_cv_func_event_base_new" = xyes; then : 17409 cat >>confdefs.h <<_ACEOF 17410#define HAVE_EVENT_BASE_NEW 1 17411_ACEOF 17412 17413fi 17414done 17415 # only in libevent 1.4.1 and later 17416 for ac_func in event_base_get_method 17417do : 17418 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 17419if test "x$ac_cv_func_event_base_get_method" = xyes; then : 17420 cat >>confdefs.h <<_ACEOF 17421#define HAVE_EVENT_BASE_GET_METHOD 1 17422_ACEOF 17423 17424fi 17425done 17426 # only in libevent 1.4.3 and later 17427 for ac_func in ev_loop 17428do : 17429 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 17430if test "x$ac_cv_func_ev_loop" = xyes; then : 17431 cat >>confdefs.h <<_ACEOF 17432#define HAVE_EV_LOOP 1 17433_ACEOF 17434 17435fi 17436done 17437 # only in libev. (tested on 3.51) 17438 for ac_func in ev_default_loop 17439do : 17440 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 17441if test "x$ac_cv_func_ev_default_loop" = xyes; then : 17442 cat >>confdefs.h <<_ACEOF 17443#define HAVE_EV_DEFAULT_LOOP 1 17444_ACEOF 17445 17446fi 17447done 17448 # only in libev. (tested on 4.00) 17449 if test -n "$BAK_LDFLAGS_SET"; then 17450 LDFLAGS="$BAK_LDFLAGS" 17451 fi 17452 if test "$use_unbound_event" = "yes"; then 17453 UNBOUND_EVENT_INSTALL=unbound-event-install 17454 17455 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall 17456 17457 fi 17458else 17459 17460$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h 17461 17462fi 17463 17464# check for libexpat 17465 17466# Check whether --with-libexpat was given. 17467if test "${with_libexpat+set}" = set; then : 17468 withval=$with_libexpat; 17469else 17470 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 17471fi 17472 17473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 17474$as_echo_n "checking for libexpat... " >&6; } 17475found_libexpat="no" 17476for dir in $withval ; do 17477 if test -f "$dir/include/expat.h"; then 17478 found_libexpat="yes" 17479 if test "$dir" != "/usr"; then 17480 CPPFLAGS="$CPPFLAGS -I$dir/include" 17481 LDFLAGS="$LDFLAGS -L$dir/lib" 17482 fi 17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 17484$as_echo "found in $dir" >&6; } 17485 break; 17486 fi 17487done 17488if test x_$found_libexpat != x_yes; then 17489 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5 17490fi 17491for ac_header in expat.h 17492do : 17493 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default 17494" 17495if test "x$ac_cv_header_expat_h" = xyes; then : 17496 cat >>confdefs.h <<_ACEOF 17497#define HAVE_EXPAT_H 1 17498_ACEOF 17499 17500fi 17501 17502done 17503 17504 17505# set static linking if requested 17506 17507staticexe="" 17508# Check whether --enable-static-exe was given. 17509if test "${enable_static_exe+set}" = set; then : 17510 enableval=$enable_static_exe; 17511fi 17512 17513if test x_$enable_static_exe = x_yes; then 17514 staticexe="-static" 17515 if test "$on_mingw" = yes; then 17516 staticexe="-all-static" 17517 # for static crosscompile, include gdi32 and zlib here. 17518 if test "`uname`" = "Linux"; then 17519 LIBS="$LIBS -lgdi32 -lz" 17520 fi 17521 fi 17522fi 17523 17524# set lock checking if requested 17525# Check whether --enable-lock_checks was given. 17526if test "${enable_lock_checks+set}" = set; then : 17527 enableval=$enable_lock_checks; 17528fi 17529 17530if test x_$enable_lock_checks = x_yes; then 17531 17532$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h 17533 17534 CHECKLOCK_OBJ="checklocks.lo" 17535 17536fi 17537 17538 17539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 17540$as_echo_n "checking for getaddrinfo... " >&6; } 17541ac_cv_func_getaddrinfo=no 17542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17543/* end confdefs.h. */ 17544 17545#ifdef __cplusplus 17546extern "C" 17547{ 17548#endif 17549char* getaddrinfo(); 17550char* (*f) () = getaddrinfo; 17551#ifdef __cplusplus 17552} 17553#endif 17554int main() { 17555 ; 17556 return 0; 17557} 17558 17559_ACEOF 17560if ac_fn_c_try_link "$LINENO"; then : 17561 ac_cv_func_getaddrinfo="yes" 17562if test "$ac_cv_header_windows_h" = "yes"; then 17563 17564$as_echo "#define USE_WINSOCK 1" >>confdefs.h 17565 17566 USE_WINSOCK="1" 17567 LIBS="$LIBS -lws2_32" 17568fi 17569 17570else 17571 ORIGLIBS="$LIBS" 17572LIBS="$LIBS -lws2_32" 17573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17574/* end confdefs.h. */ 17575 17576#ifdef HAVE_WS2TCPIP_H 17577#include <ws2tcpip.h> 17578#endif 17579 17580int 17581main () 17582{ 17583 17584 (void)getaddrinfo(NULL, NULL, NULL, NULL); 17585 17586 17587 ; 17588 return 0; 17589} 17590_ACEOF 17591if ac_fn_c_try_link "$LINENO"; then : 17592 17593ac_cv_func_getaddrinfo="yes" 17594 17595$as_echo "#define USE_WINSOCK 1" >>confdefs.h 17596 17597USE_WINSOCK="1" 17598 17599else 17600 17601ac_cv_func_getaddrinfo="no" 17602LIBS="$ORIGLIBS" 17603 17604fi 17605rm -f core conftest.err conftest.$ac_objext \ 17606 conftest$ac_exeext conftest.$ac_ext 17607 17608fi 17609rm -f core conftest.err conftest.$ac_objext \ 17610 conftest$ac_exeext conftest.$ac_ext 17611 17612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 17613$as_echo "$ac_cv_func_getaddrinfo" >&6; } 17614if test $ac_cv_func_getaddrinfo = yes; then 17615 17616$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 17617 17618fi 17619 17620if test "$USE_WINSOCK" = 1; then 17621 17622$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h 17623 17624 for ac_header in iphlpapi.h 17625do : 17626 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default 17627#include <windows.h> 17628 17629" 17630if test "x$ac_cv_header_iphlpapi_h" = xyes; then : 17631 cat >>confdefs.h <<_ACEOF 17632#define HAVE_IPHLPAPI_H 1 17633_ACEOF 17634 17635fi 17636 17637done 17638 17639 if test -n "$ac_tool_prefix"; then 17640 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 17641set dummy ${ac_tool_prefix}windres; ac_word=$2 17642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17643$as_echo_n "checking for $ac_word... " >&6; } 17644if ${ac_cv_prog_WINDRES+:} false; then : 17645 $as_echo_n "(cached) " >&6 17646else 17647 if test -n "$WINDRES"; then 17648 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 17649else 17650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17651for as_dir in $PATH 17652do 17653 IFS=$as_save_IFS 17654 test -z "$as_dir" && as_dir=. 17655 for ac_exec_ext in '' $ac_executable_extensions; do 17656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17657 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 17658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17659 break 2 17660 fi 17661done 17662 done 17663IFS=$as_save_IFS 17664 17665fi 17666fi 17667WINDRES=$ac_cv_prog_WINDRES 17668if test -n "$WINDRES"; then 17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 17670$as_echo "$WINDRES" >&6; } 17671else 17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17673$as_echo "no" >&6; } 17674fi 17675 17676 17677fi 17678if test -z "$ac_cv_prog_WINDRES"; then 17679 ac_ct_WINDRES=$WINDRES 17680 # Extract the first word of "windres", so it can be a program name with args. 17681set dummy windres; ac_word=$2 17682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17683$as_echo_n "checking for $ac_word... " >&6; } 17684if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 17685 $as_echo_n "(cached) " >&6 17686else 17687 if test -n "$ac_ct_WINDRES"; then 17688 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 17689else 17690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17691for as_dir in $PATH 17692do 17693 IFS=$as_save_IFS 17694 test -z "$as_dir" && as_dir=. 17695 for ac_exec_ext in '' $ac_executable_extensions; do 17696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17697 ac_cv_prog_ac_ct_WINDRES="windres" 17698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17699 break 2 17700 fi 17701done 17702 done 17703IFS=$as_save_IFS 17704 17705fi 17706fi 17707ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 17708if test -n "$ac_ct_WINDRES"; then 17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 17710$as_echo "$ac_ct_WINDRES" >&6; } 17711else 17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17713$as_echo "no" >&6; } 17714fi 17715 17716 if test "x$ac_ct_WINDRES" = x; then 17717 WINDRES="" 17718 else 17719 case $cross_compiling:$ac_tool_warned in 17720yes:) 17721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17723ac_tool_warned=yes ;; 17724esac 17725 WINDRES=$ac_ct_WINDRES 17726 fi 17727else 17728 WINDRES="$ac_cv_prog_WINDRES" 17729fi 17730 17731 LIBS="$LIBS -liphlpapi" 17732 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe" 17733 17734 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c" 17735 17736 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo" 17737 17738 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o" 17739 17740 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o" 17741 17742 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo" 17743 17744 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o" 17745 17746 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o" 17747 17748fi 17749if test $ac_cv_func_getaddrinfo = no; then 17750 case " $LIBOBJS " in 17751 *" fake-rfc2553.$ac_objext "* ) ;; 17752 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 17753 ;; 17754esac 17755 17756fi 17757# check after getaddrinfo for its libraries 17758 17759# check ioctlsocket 17760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 17761$as_echo_n "checking for ioctlsocket... " >&6; } 17762cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17763/* end confdefs.h. */ 17764 17765#ifdef HAVE_WINSOCK2_H 17766#include <winsock2.h> 17767#endif 17768 17769int 17770main () 17771{ 17772 17773 (void)ioctlsocket(0, 0, NULL); 17774 17775 ; 17776 return 0; 17777} 17778_ACEOF 17779if ac_fn_c_try_link "$LINENO"; then : 17780 17781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17782$as_echo "yes" >&6; } 17783 17784$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 17785 17786 17787else 17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17789$as_echo "no" >&6; } 17790fi 17791rm -f core conftest.err conftest.$ac_objext \ 17792 conftest$ac_exeext conftest.$ac_ext 17793 17794 17795# see if daemon(3) exists, and if it is deprecated. 17796for ac_func in daemon 17797do : 17798 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 17799if test "x$ac_cv_func_daemon" = xyes; then : 17800 cat >>confdefs.h <<_ACEOF 17801#define HAVE_DAEMON 1 17802_ACEOF 17803 17804fi 17805done 17806 17807if test $ac_cv_func_daemon = yes; then 17808 17809 17810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5 17811$as_echo_n "checking if daemon is deprecated... " >&6; } 17812cache=`echo daemon | sed 'y%.=/+-%___p_%'` 17813if eval \${cv_cc_deprecated_$cache+:} false; then : 17814 $as_echo_n "(cached) " >&6 17815else 17816 17817echo ' 17818#include <stdlib.h> 17819' >conftest.c 17820echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c 17821if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then 17822eval "cv_cc_deprecated_$cache=no" 17823else 17824eval "cv_cc_deprecated_$cache=yes" 17825fi 17826rm -f conftest conftest.o conftest.c 17827 17828fi 17829 17830if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 17831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17832$as_echo "yes" >&6; } 17833 17834cat >>confdefs.h <<_ACEOF 17835#define DEPRECATED_DAEMON 1 17836_ACEOF 17837 17838: 17839 17840else 17841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17842$as_echo "no" >&6; } 17843: 17844 17845fi 17846 17847fi 17848 17849ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " 17850$ac_includes_default 17851#ifdef HAVE_SYS_UN_H 17852#include <sys/un.h> 17853#endif 17854 17855" 17856if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : 17857 17858cat >>confdefs.h <<_ACEOF 17859#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 17860_ACEOF 17861 17862 17863fi 17864 17865ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" " 17866$ac_includes_default 17867#if HAVE_SYS_PARAM_H 17868#include <sys/param.h> 17869#endif 17870 17871#ifdef HAVE_SYS_SOCKET_H 17872#include <sys/socket.h> 17873#endif 17874 17875#ifdef HAVE_SYS_UIO_H 17876#include <sys/uio.h> 17877#endif 17878 17879#ifdef HAVE_NETINET_IN_H 17880#include <netinet/in.h> 17881#endif 17882 17883#ifdef HAVE_ARPA_INET_H 17884#include <arpa/inet.h> 17885#endif 17886 17887#ifdef HAVE_WINSOCK2_H 17888#include <winsock2.h> 17889#endif 17890 17891#ifdef HAVE_WS2TCPIP_H 17892#include <ws2tcpip.h> 17893#endif 17894 17895" 17896if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then : 17897 17898cat >>confdefs.h <<_ACEOF 17899#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1 17900_ACEOF 17901 17902 17903fi 17904 17905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 17906$as_echo_n "checking for library containing setusercontext... " >&6; } 17907if ${ac_cv_search_setusercontext+:} false; then : 17908 $as_echo_n "(cached) " >&6 17909else 17910 ac_func_search_save_LIBS=$LIBS 17911cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17912/* end confdefs.h. */ 17913 17914/* Override any GCC internal prototype to avoid an error. 17915 Use char because int might match the return type of a GCC 17916 builtin and then its argument prototype would still apply. */ 17917#ifdef __cplusplus 17918extern "C" 17919#endif 17920char setusercontext (); 17921int 17922main () 17923{ 17924return setusercontext (); 17925 ; 17926 return 0; 17927} 17928_ACEOF 17929for ac_lib in '' util; do 17930 if test -z "$ac_lib"; then 17931 ac_res="none required" 17932 else 17933 ac_res=-l$ac_lib 17934 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17935 fi 17936 if ac_fn_c_try_link "$LINENO"; then : 17937 ac_cv_search_setusercontext=$ac_res 17938fi 17939rm -f core conftest.err conftest.$ac_objext \ 17940 conftest$ac_exeext 17941 if ${ac_cv_search_setusercontext+:} false; then : 17942 break 17943fi 17944done 17945if ${ac_cv_search_setusercontext+:} false; then : 17946 17947else 17948 ac_cv_search_setusercontext=no 17949fi 17950rm conftest.$ac_ext 17951LIBS=$ac_func_search_save_LIBS 17952fi 17953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 17954$as_echo "$ac_cv_search_setusercontext" >&6; } 17955ac_res=$ac_cv_search_setusercontext 17956if test "$ac_res" != no; then : 17957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17958 17959fi 17960 17961for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent 17962do : 17963 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17964ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17965if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17966 cat >>confdefs.h <<_ACEOF 17967#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17968_ACEOF 17969 17970fi 17971done 17972 17973for ac_func in setresuid 17974do : 17975 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 17976if test "x$ac_cv_func_setresuid" = xyes; then : 17977 cat >>confdefs.h <<_ACEOF 17978#define HAVE_SETRESUID 1 17979_ACEOF 17980 17981else 17982 for ac_func in setreuid 17983do : 17984 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 17985if test "x$ac_cv_func_setreuid" = xyes; then : 17986 cat >>confdefs.h <<_ACEOF 17987#define HAVE_SETREUID 1 17988_ACEOF 17989 17990fi 17991done 17992 17993fi 17994done 17995 17996for ac_func in setresgid 17997do : 17998 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 17999if test "x$ac_cv_func_setresgid" = xyes; then : 18000 cat >>confdefs.h <<_ACEOF 18001#define HAVE_SETRESGID 1 18002_ACEOF 18003 18004else 18005 for ac_func in setregid 18006do : 18007 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 18008if test "x$ac_cv_func_setregid" = xyes; then : 18009 cat >>confdefs.h <<_ACEOF 18010#define HAVE_SETREGID 1 18011_ACEOF 18012 18013fi 18014done 18015 18016fi 18017done 18018 18019 18020# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 18021if echo $build_os | grep darwin8 > /dev/null; then 18022 18023$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 18024 18025fi 18026ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 18027if test "x$ac_cv_func_inet_aton" = xyes; then : 18028 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 18029 18030else 18031 case " $LIBOBJS " in 18032 *" inet_aton.$ac_objext "* ) ;; 18033 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 18034 ;; 18035esac 18036 18037fi 18038 18039 18040ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 18041if test "x$ac_cv_func_inet_pton" = xyes; then : 18042 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 18043 18044else 18045 case " $LIBOBJS " in 18046 *" inet_pton.$ac_objext "* ) ;; 18047 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 18048 ;; 18049esac 18050 18051fi 18052 18053 18054ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 18055if test "x$ac_cv_func_inet_ntop" = xyes; then : 18056 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 18057 18058else 18059 case " $LIBOBJS " in 18060 *" inet_ntop.$ac_objext "* ) ;; 18061 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 18062 ;; 18063esac 18064 18065fi 18066 18067 18068ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 18069if test "x$ac_cv_func_snprintf" = xyes; then : 18070 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 18071 18072else 18073 case " $LIBOBJS " in 18074 *" snprintf.$ac_objext "* ) ;; 18075 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 18076 ;; 18077esac 18078 18079fi 18080 18081 18082ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 18083if test "x$ac_cv_func_strlcat" = xyes; then : 18084 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 18085 18086else 18087 case " $LIBOBJS " in 18088 *" strlcat.$ac_objext "* ) ;; 18089 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 18090 ;; 18091esac 18092 18093fi 18094 18095 18096ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 18097if test "x$ac_cv_func_strlcpy" = xyes; then : 18098 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 18099 18100else 18101 case " $LIBOBJS " in 18102 *" strlcpy.$ac_objext "* ) ;; 18103 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 18104 ;; 18105esac 18106 18107fi 18108 18109 18110ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 18111if test "x$ac_cv_func_memmove" = xyes; then : 18112 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 18113 18114else 18115 case " $LIBOBJS " in 18116 *" memmove.$ac_objext "* ) ;; 18117 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 18118 ;; 18119esac 18120 18121fi 18122 18123 18124ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 18125if test "x$ac_cv_func_gmtime_r" = xyes; then : 18126 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 18127 18128else 18129 case " $LIBOBJS " in 18130 *" gmtime_r.$ac_objext "* ) ;; 18131 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 18132 ;; 18133esac 18134 18135fi 18136 18137 18138LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS" 18139 18140if test "$USE_NSS" = "no"; then 18141 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 18142if test "x$ac_cv_func_arc4random" = xyes; then : 18143 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h 18144 18145else 18146 case " $LIBOBJS " in 18147 *" arc4random.$ac_objext "* ) ;; 18148 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext" 18149 ;; 18150esac 18151 18152fi 18153 18154 18155 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform" 18156if test "x$ac_cv_func_arc4random_uniform" = xyes; then : 18157 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h 18158 18159else 18160 case " $LIBOBJS " in 18161 *" arc4random_uniform.$ac_objext "* ) ;; 18162 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext" 18163 ;; 18164esac 18165 18166fi 18167 18168 18169 if test "$ac_cv_func_arc4random" = "no"; then 18170 case " $LIBOBJS " in 18171 *" explicit_bzero.$ac_objext "* ) ;; 18172 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" 18173 ;; 18174esac 18175 18176 case " $LIBOBJS " in 18177 *" arc4_lock.$ac_objext "* ) ;; 18178 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext" 18179 ;; 18180esac 18181 18182 for ac_func in getentropy 18183do : 18184 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 18185if test "x$ac_cv_func_getentropy" = xyes; then : 18186 cat >>confdefs.h <<_ACEOF 18187#define HAVE_GETENTROPY 1 18188_ACEOF 18189 18190else 18191 18192 if test "$USE_WINSOCK" = 1; then 18193 case " $LIBOBJS " in 18194 *" getentropy_win.$ac_objext "* ) ;; 18195 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext" 18196 ;; 18197esac 18198 18199 else 18200 case `uname` in 18201 Darwin) 18202 case " $LIBOBJS " in 18203 *" getentropy_osx.$ac_objext "* ) ;; 18204 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext" 18205 ;; 18206esac 18207 18208 ;; 18209 SunOS) 18210 case " $LIBOBJS " in 18211 *" getentropy_solaris.$ac_objext "* ) ;; 18212 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext" 18213 ;; 18214esac 18215 18216 for ac_header in sys/sha2.h 18217do : 18218 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default 18219" 18220if test "x$ac_cv_header_sys_sha2_h" = xyes; then : 18221 cat >>confdefs.h <<_ACEOF 18222#define HAVE_SYS_SHA2_H 1 18223_ACEOF 18224 18225else 18226 18227 for ac_func in SHA512_Update 18228do : 18229 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 18230if test "x$ac_cv_func_SHA512_Update" = xyes; then : 18231 cat >>confdefs.h <<_ACEOF 18232#define HAVE_SHA512_UPDATE 1 18233_ACEOF 18234 18235else 18236 18237 case " $LIBOBJS " in 18238 *" sha512.$ac_objext "* ) ;; 18239 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 18240 ;; 18241esac 18242 18243 18244fi 18245done 18246 18247 18248fi 18249 18250done 18251 18252 if test "$ac_cv_header_sys_sha2_h" = "yes"; then 18253 # this lib needed for sha2 on solaris 18254 LIBS="$LIBS -lmd" 18255 fi 18256 ;; 18257 Linux|*) 18258 case " $LIBOBJS " in 18259 *" getentropy_linux.$ac_objext "* ) ;; 18260 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext" 18261 ;; 18262esac 18263 18264 for ac_func in SHA512_Update 18265do : 18266 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 18267if test "x$ac_cv_func_SHA512_Update" = xyes; then : 18268 cat >>confdefs.h <<_ACEOF 18269#define HAVE_SHA512_UPDATE 1 18270_ACEOF 18271 18272else 18273 18274 18275$as_echo "#define COMPAT_SHA512 1" >>confdefs.h 18276 18277 case " $LIBOBJS " in 18278 *" sha512.$ac_objext "* ) ;; 18279 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 18280 ;; 18281esac 18282 18283 18284fi 18285done 18286 18287 for ac_header in sys/sysctl.h 18288do : 18289 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 18290" 18291if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 18292 cat >>confdefs.h <<_ACEOF 18293#define HAVE_SYS_SYSCTL_H 1 18294_ACEOF 18295 18296fi 18297 18298done 18299 18300 for ac_func in getauxval 18301do : 18302 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval" 18303if test "x$ac_cv_func_getauxval" = xyes; then : 18304 cat >>confdefs.h <<_ACEOF 18305#define HAVE_GETAUXVAL 1 18306_ACEOF 18307 18308fi 18309done 18310 18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 18312$as_echo_n "checking for library containing clock_gettime... " >&6; } 18313if ${ac_cv_search_clock_gettime+:} false; then : 18314 $as_echo_n "(cached) " >&6 18315else 18316 ac_func_search_save_LIBS=$LIBS 18317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18318/* end confdefs.h. */ 18319 18320/* Override any GCC internal prototype to avoid an error. 18321 Use char because int might match the return type of a GCC 18322 builtin and then its argument prototype would still apply. */ 18323#ifdef __cplusplus 18324extern "C" 18325#endif 18326char clock_gettime (); 18327int 18328main () 18329{ 18330return clock_gettime (); 18331 ; 18332 return 0; 18333} 18334_ACEOF 18335for ac_lib in '' rt; do 18336 if test -z "$ac_lib"; then 18337 ac_res="none required" 18338 else 18339 ac_res=-l$ac_lib 18340 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18341 fi 18342 if ac_fn_c_try_link "$LINENO"; then : 18343 ac_cv_search_clock_gettime=$ac_res 18344fi 18345rm -f core conftest.err conftest.$ac_objext \ 18346 conftest$ac_exeext 18347 if ${ac_cv_search_clock_gettime+:} false; then : 18348 break 18349fi 18350done 18351if ${ac_cv_search_clock_gettime+:} false; then : 18352 18353else 18354 ac_cv_search_clock_gettime=no 18355fi 18356rm conftest.$ac_ext 18357LIBS=$ac_func_search_save_LIBS 18358fi 18359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 18360$as_echo "$ac_cv_search_clock_gettime" >&6; } 18361ac_res=$ac_cv_search_clock_gettime 18362if test "$ac_res" != no; then : 18363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18364 18365fi 18366 18367 ;; 18368 esac 18369 fi 18370 18371fi 18372done 18373 18374 fi 18375fi 18376LIBOBJ_WITHOUT_CTIME="$LIBOBJS" 18377 18378ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 18379if test "x$ac_cv_func_ctime_r" = xyes; then : 18380 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 18381 18382else 18383 case " $LIBOBJS " in 18384 *" ctime_r.$ac_objext "* ) ;; 18385 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 18386 ;; 18387esac 18388 18389fi 18390 18391 18392 18393# Check whether --enable-allsymbols was given. 18394if test "${enable_allsymbols+set}" = set; then : 18395 enableval=$enable_allsymbols; 18396fi 18397 18398case "$enable_allsymbols" in 18399 yes) 18400 COMMON_OBJ_ALL_SYMBOLS="" 18401 UBSYMS="" 18402 EXTRALINK="-L. -L.libs -lunbound" 18403 18404$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h 18405 18406 ;; 18407 no|*) 18408 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)' 18409 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def' 18410 EXTRALINK="" 18411 ;; 18412esac 18413 18414 18415 18416if test x_$enable_lock_checks = x_yes; then 18417 UBSYMS="-export-symbols clubsyms.def" 18418 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def 18419 echo lock_protect >> clubsyms.def 18420 echo lock_unprotect >> clubsyms.def 18421 echo lock_get_mem >> clubsyms.def 18422 echo checklock_start >> clubsyms.def 18423 echo checklock_stop >> clubsyms.def 18424 echo checklock_lock >> clubsyms.def 18425 echo checklock_unlock >> clubsyms.def 18426 echo checklock_init >> clubsyms.def 18427 echo checklock_thrcreate >> clubsyms.def 18428 echo checklock_thrjoin >> clubsyms.def 18429fi 18430 18431# check for dnstap if requested 18432 18433 # Check whether --enable-dnstap was given. 18434if test "${enable_dnstap+set}" = set; then : 18435 enableval=$enable_dnstap; opt_dnstap=$enableval 18436else 18437 opt_dnstap=no 18438fi 18439 18440 18441 18442# Check whether --with-dnstap-socket-path was given. 18443if test "${with_dnstap_socket_path+set}" = set; then : 18444 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval 18445else 18446 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock" 18447fi 18448 18449 18450 if test "x$opt_dnstap" != "xno"; then 18451 # Extract the first word of "protoc-c", so it can be a program name with args. 18452set dummy protoc-c; ac_word=$2 18453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18454$as_echo_n "checking for $ac_word... " >&6; } 18455if ${ac_cv_path_PROTOC_C+:} false; then : 18456 $as_echo_n "(cached) " >&6 18457else 18458 case $PROTOC_C in 18459 [\\/]* | ?:[\\/]*) 18460 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 18461 ;; 18462 *) 18463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18464for as_dir in $PATH 18465do 18466 IFS=$as_save_IFS 18467 test -z "$as_dir" && as_dir=. 18468 for ac_exec_ext in '' $ac_executable_extensions; do 18469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18470 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext" 18471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18472 break 2 18473 fi 18474done 18475 done 18476IFS=$as_save_IFS 18477 18478 ;; 18479esac 18480fi 18481PROTOC_C=$ac_cv_path_PROTOC_C 18482if test -n "$PROTOC_C"; then 18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 18484$as_echo "$PROTOC_C" >&6; } 18485else 18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18487$as_echo "no" >&6; } 18488fi 18489 18490 18491 if test -z "$PROTOC_C"; then 18492 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5 18493 fi 18494 18495# Check whether --with-protobuf-c was given. 18496if test "${with_protobuf_c+set}" = set; then : 18497 withval=$with_protobuf_c; 18498 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 18499 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then 18500 CFLAGS="$CFLAGS -I$withval/include/google" 18501 else 18502 CFLAGS="$CFLAGS -I$withval/include" 18503 fi 18504 LDFLAGS="$LDFLAGS -L$withval/lib" 18505 18506else 18507 18508 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 18509 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 18510 CFLAGS="$CFLAGS -I/usr/include/google" 18511 else 18512 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 18513 CFLAGS="$CFLAGS -I/usr/local/include/google" 18514 LDFLAGS="$LDFLAGS -L/usr/local/lib" 18515 fi 18516 fi 18517 18518fi 18519 18520 18521# Check whether --with-libfstrm was given. 18522if test "${with_libfstrm+set}" = set; then : 18523 withval=$with_libfstrm; 18524 CFLAGS="$CFLAGS -I$withval/include" 18525 LDFLAGS="$LDFLAGS -L$withval/lib" 18526 18527fi 18528 18529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5 18530$as_echo_n "checking for library containing fstrm_iothr_init... " >&6; } 18531if ${ac_cv_search_fstrm_iothr_init+:} false; then : 18532 $as_echo_n "(cached) " >&6 18533else 18534 ac_func_search_save_LIBS=$LIBS 18535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18536/* end confdefs.h. */ 18537 18538/* Override any GCC internal prototype to avoid an error. 18539 Use char because int might match the return type of a GCC 18540 builtin and then its argument prototype would still apply. */ 18541#ifdef __cplusplus 18542extern "C" 18543#endif 18544char fstrm_iothr_init (); 18545int 18546main () 18547{ 18548return fstrm_iothr_init (); 18549 ; 18550 return 0; 18551} 18552_ACEOF 18553for ac_lib in '' fstrm; do 18554 if test -z "$ac_lib"; then 18555 ac_res="none required" 18556 else 18557 ac_res=-l$ac_lib 18558 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18559 fi 18560 if ac_fn_c_try_link "$LINENO"; then : 18561 ac_cv_search_fstrm_iothr_init=$ac_res 18562fi 18563rm -f core conftest.err conftest.$ac_objext \ 18564 conftest$ac_exeext 18565 if ${ac_cv_search_fstrm_iothr_init+:} false; then : 18566 break 18567fi 18568done 18569if ${ac_cv_search_fstrm_iothr_init+:} false; then : 18570 18571else 18572 ac_cv_search_fstrm_iothr_init=no 18573fi 18574rm conftest.$ac_ext 18575LIBS=$ac_func_search_save_LIBS 18576fi 18577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5 18578$as_echo "$ac_cv_search_fstrm_iothr_init" >&6; } 18579ac_res=$ac_cv_search_fstrm_iothr_init 18580if test "$ac_res" != no; then : 18581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18582 18583else 18584 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5 18585fi 18586 18587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5 18588$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; } 18589if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 18590 $as_echo_n "(cached) " >&6 18591else 18592 ac_func_search_save_LIBS=$LIBS 18593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18594/* end confdefs.h. */ 18595 18596/* Override any GCC internal prototype to avoid an error. 18597 Use char because int might match the return type of a GCC 18598 builtin and then its argument prototype would still apply. */ 18599#ifdef __cplusplus 18600extern "C" 18601#endif 18602char protobuf_c_message_pack (); 18603int 18604main () 18605{ 18606return protobuf_c_message_pack (); 18607 ; 18608 return 0; 18609} 18610_ACEOF 18611for ac_lib in '' protobuf-c; do 18612 if test -z "$ac_lib"; then 18613 ac_res="none required" 18614 else 18615 ac_res=-l$ac_lib 18616 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18617 fi 18618 if ac_fn_c_try_link "$LINENO"; then : 18619 ac_cv_search_protobuf_c_message_pack=$ac_res 18620fi 18621rm -f core conftest.err conftest.$ac_objext \ 18622 conftest$ac_exeext 18623 if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 18624 break 18625fi 18626done 18627if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 18628 18629else 18630 ac_cv_search_protobuf_c_message_pack=no 18631fi 18632rm conftest.$ac_ext 18633LIBS=$ac_func_search_save_LIBS 18634fi 18635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5 18636$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; } 18637ac_res=$ac_cv_search_protobuf_c_message_pack 18638if test "$ac_res" != no; then : 18639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18640 18641else 18642 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5 18643fi 18644 18645 18646 18647$as_echo "#define USE_DNSTAP 1" >>confdefs.h 18648 18649 ENABLE_DNSTAP=1 18650 18651 18652 18653 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`" 18654 18655 18656cat >>confdefs.h <<_ACEOF 18657#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path" 18658_ACEOF 18659 18660 18661 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c" 18662 18663 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo" 18664 18665 18666 else 18667 18668 ENABLE_DNSTAP=0 18669 18670 18671 18672 fi 18673 18674 18675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5 18676$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; } 18677# on openBSD, the implicit rule make $< work. 18678# on Solaris, it does not work ($? is changed sources, $^ lists dependencies). 18679# gmake works. 18680cat >conftest.make <<EOF 18681all: conftest.lo 18682 18683conftest.lo foo.lo bla.lo: 18684 if test -f "\$<"; then touch \$@; fi 18685 18686.SUFFIXES: .lo 18687.c.lo: 18688 if test -f "\$<"; then touch \$@; fi 18689 18690conftest.lo: conftest.dir/conftest.c 18691EOF 18692mkdir conftest.dir 18693touch conftest.dir/conftest.c 18694rm -f conftest.lo conftest.c 18695${MAKE:-make} -f conftest.make >/dev/null 18696rm -f conftest.make conftest.c conftest.dir/conftest.c 18697rm -rf conftest.dir 18698if test ! -f conftest.lo; then 18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18700$as_echo "no" >&6; } 18701 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source' 18702 SOURCEFILE='`cat .source`' 18703else 18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18705$as_echo "yes" >&6; } 18706 SOURCEDETERMINE=':' 18707 SOURCEFILE='$<' 18708fi 18709rm -f conftest.lo 18710 18711 18712 18713# see if we want to build the library or everything 18714ALLTARGET="alltargets" 18715INSTALLTARGET="install-all" 18716 18717# Check whether --with-libunbound-only was given. 18718if test "${with_libunbound_only+set}" = set; then : 18719 withval=$with_libunbound_only; 18720 if test "$withval" = "yes"; then 18721 ALLTARGET="lib" 18722 INSTALLTARGET="install-lib" 18723 fi 18724 18725fi 18726 18727 18728 18729 18730 18731 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5 18732$as_echo "$as_me: Stripping extension flags..." >&6;} 18733 18734 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then 18735 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`" 18736 18737$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h 18738 18739 fi 18740 18741 18742 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then 18743 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`" 18744 18745$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h 18746 18747 fi 18748 18749 18750 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then 18751 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`" 18752 18753$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h 18754 18755 fi 18756 18757 18758 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then 18759 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`" 18760 18761$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h 18762 18763 fi 18764 18765 18766 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then 18767 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`" 18768 18769$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h 18770 18771 fi 18772 18773 18774 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then 18775 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`" 18776 18777$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h 18778 18779 fi 18780 18781 18782 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then 18783 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`" 18784 18785$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h 18786 18787 fi 18788 18789 18790 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then 18791 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`" 18792 18793$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h 18794 18795 fi 18796 18797 18798LDFLAGS="$LATE_LDFLAGS $LDFLAGS" 18799 18800 18801cat >>confdefs.h <<_ACEOF 18802#define MAXSYSLOGMSGLEN 10240 18803_ACEOF 18804 18805 18806 18807 18808version=1.5.2 18809 18810date=`date +'%b %e, %Y'` 18811 18812 18813ac_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" 18814 18815ac_config_headers="$ac_config_headers config.h" 18816 18817cat >confcache <<\_ACEOF 18818# This file is a shell script that caches the results of configure 18819# tests run on this system so they can be shared between configure 18820# scripts and configure runs, see configure's option --config-cache. 18821# It is not useful on other systems. If it contains results you don't 18822# want to keep, you may remove or edit it. 18823# 18824# config.status only pays attention to the cache file if you give it 18825# the --recheck option to rerun configure. 18826# 18827# `ac_cv_env_foo' variables (set or unset) will be overridden when 18828# loading this file, other *unset* `ac_cv_foo' will be assigned the 18829# following values. 18830 18831_ACEOF 18832 18833# The following way of writing the cache mishandles newlines in values, 18834# but we know of no workaround that is simple, portable, and efficient. 18835# So, we kill variables containing newlines. 18836# Ultrix sh set writes to stderr and can't be redirected directly, 18837# and sets the high bit in the cache file unless we assign to the vars. 18838( 18839 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18840 eval ac_val=\$$ac_var 18841 case $ac_val in #( 18842 *${as_nl}*) 18843 case $ac_var in #( 18844 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18845$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18846 esac 18847 case $ac_var in #( 18848 _ | IFS | as_nl) ;; #( 18849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18850 *) { eval $ac_var=; unset $ac_var;} ;; 18851 esac ;; 18852 esac 18853 done 18854 18855 (set) 2>&1 | 18856 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18857 *${as_nl}ac_space=\ *) 18858 # `set' does not quote correctly, so add quotes: double-quote 18859 # substitution turns \\\\ into \\, and sed turns \\ into \. 18860 sed -n \ 18861 "s/'/'\\\\''/g; 18862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18863 ;; #( 18864 *) 18865 # `set' quotes correctly as required by POSIX, so do not add quotes. 18866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18867 ;; 18868 esac | 18869 sort 18870) | 18871 sed ' 18872 /^ac_cv_env_/b end 18873 t clear 18874 :clear 18875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18876 t end 18877 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18878 :end' >>confcache 18879if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18880 if test -w "$cache_file"; then 18881 if test "x$cache_file" != "x/dev/null"; then 18882 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18883$as_echo "$as_me: updating cache $cache_file" >&6;} 18884 if test ! -f "$cache_file" || test -h "$cache_file"; then 18885 cat confcache >"$cache_file" 18886 else 18887 case $cache_file in #( 18888 */* | ?:*) 18889 mv -f confcache "$cache_file"$$ && 18890 mv -f "$cache_file"$$ "$cache_file" ;; #( 18891 *) 18892 mv -f confcache "$cache_file" ;; 18893 esac 18894 fi 18895 fi 18896 else 18897 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18898$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18899 fi 18900fi 18901rm -f confcache 18902 18903test "x$prefix" = xNONE && prefix=$ac_default_prefix 18904# Let make expand exec_prefix. 18905test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18906 18907DEFS=-DHAVE_CONFIG_H 18908 18909ac_libobjs= 18910ac_ltlibobjs= 18911U= 18912for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18913 # 1. Remove the extension, and $U if already installed. 18914 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18915 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18916 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18917 # will be set to the directory where LIBOBJS objects are built. 18918 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18919 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18920done 18921LIBOBJS=$ac_libobjs 18922 18923LTLIBOBJS=$ac_ltlibobjs 18924 18925 18926 18927: "${CONFIG_STATUS=./config.status}" 18928ac_write_fail=0 18929ac_clean_files_save=$ac_clean_files 18930ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18931{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18932$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18933as_write_fail=0 18934cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18935#! $SHELL 18936# Generated by $as_me. 18937# Run this file to recreate the current configuration. 18938# Compiler output produced by configure, useful for debugging 18939# configure, is in config.log if it exists. 18940 18941debug=false 18942ac_cs_recheck=false 18943ac_cs_silent=false 18944 18945SHELL=\${CONFIG_SHELL-$SHELL} 18946export SHELL 18947_ASEOF 18948cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18949## -------------------- ## 18950## M4sh Initialization. ## 18951## -------------------- ## 18952 18953# Be more Bourne compatible 18954DUALCASE=1; export DUALCASE # for MKS sh 18955if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18956 emulate sh 18957 NULLCMD=: 18958 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18959 # is contrary to our usage. Disable this feature. 18960 alias -g '${1+"$@"}'='"$@"' 18961 setopt NO_GLOB_SUBST 18962else 18963 case `(set -o) 2>/dev/null` in #( 18964 *posix*) : 18965 set -o posix ;; #( 18966 *) : 18967 ;; 18968esac 18969fi 18970 18971 18972as_nl=' 18973' 18974export as_nl 18975# Printing a long string crashes Solaris 7 /usr/bin/printf. 18976as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18977as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18978as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18979# Prefer a ksh shell builtin over an external printf program on Solaris, 18980# but without wasting forks for bash or zsh. 18981if test -z "$BASH_VERSION$ZSH_VERSION" \ 18982 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18983 as_echo='print -r --' 18984 as_echo_n='print -rn --' 18985elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18986 as_echo='printf %s\n' 18987 as_echo_n='printf %s' 18988else 18989 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18990 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18991 as_echo_n='/usr/ucb/echo -n' 18992 else 18993 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18994 as_echo_n_body='eval 18995 arg=$1; 18996 case $arg in #( 18997 *"$as_nl"*) 18998 expr "X$arg" : "X\\(.*\\)$as_nl"; 18999 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19000 esac; 19001 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19002 ' 19003 export as_echo_n_body 19004 as_echo_n='sh -c $as_echo_n_body as_echo' 19005 fi 19006 export as_echo_body 19007 as_echo='sh -c $as_echo_body as_echo' 19008fi 19009 19010# The user is always right. 19011if test "${PATH_SEPARATOR+set}" != set; then 19012 PATH_SEPARATOR=: 19013 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19014 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19015 PATH_SEPARATOR=';' 19016 } 19017fi 19018 19019 19020# IFS 19021# We need space, tab and new line, in precisely that order. Quoting is 19022# there to prevent editors from complaining about space-tab. 19023# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19024# splitting by setting IFS to empty value.) 19025IFS=" "" $as_nl" 19026 19027# Find who we are. Look in the path if we contain no directory separator. 19028as_myself= 19029case $0 in #(( 19030 *[\\/]* ) as_myself=$0 ;; 19031 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19032for as_dir in $PATH 19033do 19034 IFS=$as_save_IFS 19035 test -z "$as_dir" && as_dir=. 19036 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19037 done 19038IFS=$as_save_IFS 19039 19040 ;; 19041esac 19042# We did not find ourselves, most probably we were run as `sh COMMAND' 19043# in which case we are not to be found in the path. 19044if test "x$as_myself" = x; then 19045 as_myself=$0 19046fi 19047if test ! -f "$as_myself"; then 19048 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19049 exit 1 19050fi 19051 19052# Unset variables that we do not need and which cause bugs (e.g. in 19053# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19054# suppresses any "Segmentation fault" message there. '((' could 19055# trigger a bug in pdksh 5.2.14. 19056for as_var in BASH_ENV ENV MAIL MAILPATH 19057do eval test x\${$as_var+set} = xset \ 19058 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19059done 19060PS1='$ ' 19061PS2='> ' 19062PS4='+ ' 19063 19064# NLS nuisances. 19065LC_ALL=C 19066export LC_ALL 19067LANGUAGE=C 19068export LANGUAGE 19069 19070# CDPATH. 19071(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19072 19073 19074# as_fn_error STATUS ERROR [LINENO LOG_FD] 19075# ---------------------------------------- 19076# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19077# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19078# script with STATUS, using 1 if that was 0. 19079as_fn_error () 19080{ 19081 as_status=$1; test $as_status -eq 0 && as_status=1 19082 if test "$4"; then 19083 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19084 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19085 fi 19086 $as_echo "$as_me: error: $2" >&2 19087 as_fn_exit $as_status 19088} # as_fn_error 19089 19090 19091# as_fn_set_status STATUS 19092# ----------------------- 19093# Set $? to STATUS, without forking. 19094as_fn_set_status () 19095{ 19096 return $1 19097} # as_fn_set_status 19098 19099# as_fn_exit STATUS 19100# ----------------- 19101# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19102as_fn_exit () 19103{ 19104 set +e 19105 as_fn_set_status $1 19106 exit $1 19107} # as_fn_exit 19108 19109# as_fn_unset VAR 19110# --------------- 19111# Portably unset VAR. 19112as_fn_unset () 19113{ 19114 { eval $1=; unset $1;} 19115} 19116as_unset=as_fn_unset 19117# as_fn_append VAR VALUE 19118# ---------------------- 19119# Append the text in VALUE to the end of the definition contained in VAR. Take 19120# advantage of any shell optimizations that allow amortized linear growth over 19121# repeated appends, instead of the typical quadratic growth present in naive 19122# implementations. 19123if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19124 eval 'as_fn_append () 19125 { 19126 eval $1+=\$2 19127 }' 19128else 19129 as_fn_append () 19130 { 19131 eval $1=\$$1\$2 19132 } 19133fi # as_fn_append 19134 19135# as_fn_arith ARG... 19136# ------------------ 19137# Perform arithmetic evaluation on the ARGs, and store the result in the 19138# global $as_val. Take advantage of shells that can avoid forks. The arguments 19139# must be portable across $(()) and expr. 19140if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19141 eval 'as_fn_arith () 19142 { 19143 as_val=$(( $* )) 19144 }' 19145else 19146 as_fn_arith () 19147 { 19148 as_val=`expr "$@" || test $? -eq 1` 19149 } 19150fi # as_fn_arith 19151 19152 19153if expr a : '\(a\)' >/dev/null 2>&1 && 19154 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19155 as_expr=expr 19156else 19157 as_expr=false 19158fi 19159 19160if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19161 as_basename=basename 19162else 19163 as_basename=false 19164fi 19165 19166if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19167 as_dirname=dirname 19168else 19169 as_dirname=false 19170fi 19171 19172as_me=`$as_basename -- "$0" || 19173$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19174 X"$0" : 'X\(//\)$' \| \ 19175 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19176$as_echo X/"$0" | 19177 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19178 s//\1/ 19179 q 19180 } 19181 /^X\/\(\/\/\)$/{ 19182 s//\1/ 19183 q 19184 } 19185 /^X\/\(\/\).*/{ 19186 s//\1/ 19187 q 19188 } 19189 s/.*/./; q'` 19190 19191# Avoid depending upon Character Ranges. 19192as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19193as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19194as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19195as_cr_digits='0123456789' 19196as_cr_alnum=$as_cr_Letters$as_cr_digits 19197 19198ECHO_C= ECHO_N= ECHO_T= 19199case `echo -n x` in #((((( 19200-n*) 19201 case `echo 'xy\c'` in 19202 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19203 xy) ECHO_C='\c';; 19204 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19205 ECHO_T=' ';; 19206 esac;; 19207*) 19208 ECHO_N='-n';; 19209esac 19210 19211rm -f conf$$ conf$$.exe conf$$.file 19212if test -d conf$$.dir; then 19213 rm -f conf$$.dir/conf$$.file 19214else 19215 rm -f conf$$.dir 19216 mkdir conf$$.dir 2>/dev/null 19217fi 19218if (echo >conf$$.file) 2>/dev/null; then 19219 if ln -s conf$$.file conf$$ 2>/dev/null; then 19220 as_ln_s='ln -s' 19221 # ... but there are two gotchas: 19222 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19223 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19224 # In both cases, we have to default to `cp -pR'. 19225 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19226 as_ln_s='cp -pR' 19227 elif ln conf$$.file conf$$ 2>/dev/null; then 19228 as_ln_s=ln 19229 else 19230 as_ln_s='cp -pR' 19231 fi 19232else 19233 as_ln_s='cp -pR' 19234fi 19235rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19236rmdir conf$$.dir 2>/dev/null 19237 19238 19239# as_fn_mkdir_p 19240# ------------- 19241# Create "$as_dir" as a directory, including parents if necessary. 19242as_fn_mkdir_p () 19243{ 19244 19245 case $as_dir in #( 19246 -*) as_dir=./$as_dir;; 19247 esac 19248 test -d "$as_dir" || eval $as_mkdir_p || { 19249 as_dirs= 19250 while :; do 19251 case $as_dir in #( 19252 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19253 *) as_qdir=$as_dir;; 19254 esac 19255 as_dirs="'$as_qdir' $as_dirs" 19256 as_dir=`$as_dirname -- "$as_dir" || 19257$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19258 X"$as_dir" : 'X\(//\)[^/]' \| \ 19259 X"$as_dir" : 'X\(//\)$' \| \ 19260 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19261$as_echo X"$as_dir" | 19262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19263 s//\1/ 19264 q 19265 } 19266 /^X\(\/\/\)[^/].*/{ 19267 s//\1/ 19268 q 19269 } 19270 /^X\(\/\/\)$/{ 19271 s//\1/ 19272 q 19273 } 19274 /^X\(\/\).*/{ 19275 s//\1/ 19276 q 19277 } 19278 s/.*/./; q'` 19279 test -d "$as_dir" && break 19280 done 19281 test -z "$as_dirs" || eval "mkdir $as_dirs" 19282 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19283 19284 19285} # as_fn_mkdir_p 19286if mkdir -p . 2>/dev/null; then 19287 as_mkdir_p='mkdir -p "$as_dir"' 19288else 19289 test -d ./-p && rmdir ./-p 19290 as_mkdir_p=false 19291fi 19292 19293 19294# as_fn_executable_p FILE 19295# ----------------------- 19296# Test if FILE is an executable regular file. 19297as_fn_executable_p () 19298{ 19299 test -f "$1" && test -x "$1" 19300} # as_fn_executable_p 19301as_test_x='test -x' 19302as_executable_p=as_fn_executable_p 19303 19304# Sed expression to map a string onto a valid CPP name. 19305as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19306 19307# Sed expression to map a string onto a valid variable name. 19308as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19309 19310 19311exec 6>&1 19312## ----------------------------------- ## 19313## Main body of $CONFIG_STATUS script. ## 19314## ----------------------------------- ## 19315_ASEOF 19316test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19317 19318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19319# Save the log message, to keep $0 and so on meaningful, and to 19320# report actual input values of CONFIG_FILES etc. instead of their 19321# values after options handling. 19322ac_log=" 19323This file was extended by unbound $as_me 1.5.2, which was 19324generated by GNU Autoconf 2.69. Invocation command line was 19325 19326 CONFIG_FILES = $CONFIG_FILES 19327 CONFIG_HEADERS = $CONFIG_HEADERS 19328 CONFIG_LINKS = $CONFIG_LINKS 19329 CONFIG_COMMANDS = $CONFIG_COMMANDS 19330 $ $0 $@ 19331 19332on `(hostname || uname -n) 2>/dev/null | sed 1q` 19333" 19334 19335_ACEOF 19336 19337case $ac_config_files in *" 19338"*) set x $ac_config_files; shift; ac_config_files=$*;; 19339esac 19340 19341case $ac_config_headers in *" 19342"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19343esac 19344 19345 19346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19347# Files that config.status was made for. 19348config_files="$ac_config_files" 19349config_headers="$ac_config_headers" 19350config_commands="$ac_config_commands" 19351 19352_ACEOF 19353 19354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19355ac_cs_usage="\ 19356\`$as_me' instantiates files and other configuration actions 19357from templates according to the current configuration. Unless the files 19358and actions are specified as TAGs, all are instantiated by default. 19359 19360Usage: $0 [OPTION]... [TAG]... 19361 19362 -h, --help print this help, then exit 19363 -V, --version print version number and configuration settings, then exit 19364 --config print configuration, then exit 19365 -q, --quiet, --silent 19366 do not print progress messages 19367 -d, --debug don't remove temporary files 19368 --recheck update $as_me by reconfiguring in the same conditions 19369 --file=FILE[:TEMPLATE] 19370 instantiate the configuration file FILE 19371 --header=FILE[:TEMPLATE] 19372 instantiate the configuration header FILE 19373 19374Configuration files: 19375$config_files 19376 19377Configuration headers: 19378$config_headers 19379 19380Configuration commands: 19381$config_commands 19382 19383Report bugs to <unbound-bugs@nlnetlabs.nl>." 19384 19385_ACEOF 19386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19387ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19388ac_cs_version="\\ 19389unbound config.status 1.5.2 19390configured by $0, generated by GNU Autoconf 2.69, 19391 with options \\"\$ac_cs_config\\" 19392 19393Copyright (C) 2012 Free Software Foundation, Inc. 19394This config.status script is free software; the Free Software Foundation 19395gives unlimited permission to copy, distribute and modify it." 19396 19397ac_pwd='$ac_pwd' 19398srcdir='$srcdir' 19399AWK='$AWK' 19400test -n "\$AWK" || AWK=awk 19401_ACEOF 19402 19403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19404# The default lists apply if the user does not specify any file. 19405ac_need_defaults=: 19406while test $# != 0 19407do 19408 case $1 in 19409 --*=?*) 19410 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19411 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19412 ac_shift=: 19413 ;; 19414 --*=) 19415 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19416 ac_optarg= 19417 ac_shift=: 19418 ;; 19419 *) 19420 ac_option=$1 19421 ac_optarg=$2 19422 ac_shift=shift 19423 ;; 19424 esac 19425 19426 case $ac_option in 19427 # Handling of the options. 19428 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19429 ac_cs_recheck=: ;; 19430 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19431 $as_echo "$ac_cs_version"; exit ;; 19432 --config | --confi | --conf | --con | --co | --c ) 19433 $as_echo "$ac_cs_config"; exit ;; 19434 --debug | --debu | --deb | --de | --d | -d ) 19435 debug=: ;; 19436 --file | --fil | --fi | --f ) 19437 $ac_shift 19438 case $ac_optarg in 19439 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19440 '') as_fn_error $? "missing file argument" ;; 19441 esac 19442 as_fn_append CONFIG_FILES " '$ac_optarg'" 19443 ac_need_defaults=false;; 19444 --header | --heade | --head | --hea ) 19445 $ac_shift 19446 case $ac_optarg in 19447 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19448 esac 19449 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19450 ac_need_defaults=false;; 19451 --he | --h) 19452 # Conflict between --help and --header 19453 as_fn_error $? "ambiguous option: \`$1' 19454Try \`$0 --help' for more information.";; 19455 --help | --hel | -h ) 19456 $as_echo "$ac_cs_usage"; exit ;; 19457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19458 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19459 ac_cs_silent=: ;; 19460 19461 # This is an error. 19462 -*) as_fn_error $? "unrecognized option: \`$1' 19463Try \`$0 --help' for more information." ;; 19464 19465 *) as_fn_append ac_config_targets " $1" 19466 ac_need_defaults=false ;; 19467 19468 esac 19469 shift 19470done 19471 19472ac_configure_extra_args= 19473 19474if $ac_cs_silent; then 19475 exec 6>/dev/null 19476 ac_configure_extra_args="$ac_configure_extra_args --silent" 19477fi 19478 19479_ACEOF 19480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19481if \$ac_cs_recheck; then 19482 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19483 shift 19484 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19485 CONFIG_SHELL='$SHELL' 19486 export CONFIG_SHELL 19487 exec "\$@" 19488fi 19489 19490_ACEOF 19491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19492exec 5>>config.log 19493{ 19494 echo 19495 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19496## Running $as_me. ## 19497_ASBOX 19498 $as_echo "$ac_log" 19499} >&5 19500 19501_ACEOF 19502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19503# 19504# INIT-COMMANDS 19505# 19506 19507 19508# The HP-UX ksh and POSIX shell print the target directory to stdout 19509# if CDPATH is set. 19510(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19511 19512sed_quote_subst='$sed_quote_subst' 19513double_quote_subst='$double_quote_subst' 19514delay_variable_subst='$delay_variable_subst' 19515macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19516macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19517enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19518enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19519pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19520enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19521SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19522ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19523PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19524host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19525host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19526host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19527build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19528build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19529build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19530SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19531Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19532GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19533EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19534FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19535LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19536NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19537LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19538max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19539ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19540exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19541lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19542lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19543lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19544lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19545lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19546reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19547reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19548OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19549deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19550file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19551file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19552want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19553DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19554sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19555AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19556AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19557archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19558STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19559RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19560old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19561old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19562old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19563lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19564CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19565CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19566compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19567GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19568lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19569lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19570lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19571lt_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"`' 19572nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19573lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19574objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19575MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19576lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19577lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19578lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19579lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19580lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19581need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19582MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19583DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19584NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19585LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19586OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19587OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19588libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19589shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19590extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19591archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19592enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19593export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19594whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19595compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19596old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19597old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19598archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19599archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19600module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19601module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19602with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19603allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19604no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19605hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19606hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19607hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19608hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19609hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19610hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19611hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19612inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19613link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19614always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19615export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19616exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19617include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19618prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19619postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19620file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19621variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19622need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19623need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19624version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19625runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19626shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19627shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19628libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19629library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19630soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19631install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19632postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19633postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19634finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19635finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19636hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19637sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19638sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19639hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19640enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19641enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19642enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19643old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19644striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19645 19646LTCC='$LTCC' 19647LTCFLAGS='$LTCFLAGS' 19648compiler='$compiler_DEFAULT' 19649 19650# A function that is used when there is no print builtin or printf. 19651func_fallback_echo () 19652{ 19653 eval 'cat <<_LTECHO_EOF 19654\$1 19655_LTECHO_EOF' 19656} 19657 19658# Quote evaled strings. 19659for var in SHELL \ 19660ECHO \ 19661PATH_SEPARATOR \ 19662SED \ 19663GREP \ 19664EGREP \ 19665FGREP \ 19666LD \ 19667NM \ 19668LN_S \ 19669lt_SP2NL \ 19670lt_NL2SP \ 19671reload_flag \ 19672OBJDUMP \ 19673deplibs_check_method \ 19674file_magic_cmd \ 19675file_magic_glob \ 19676want_nocaseglob \ 19677DLLTOOL \ 19678sharedlib_from_linklib_cmd \ 19679AR \ 19680AR_FLAGS \ 19681archiver_list_spec \ 19682STRIP \ 19683RANLIB \ 19684CC \ 19685CFLAGS \ 19686compiler \ 19687lt_cv_sys_global_symbol_pipe \ 19688lt_cv_sys_global_symbol_to_cdecl \ 19689lt_cv_sys_global_symbol_to_c_name_address \ 19690lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19691nm_file_list_spec \ 19692lt_prog_compiler_no_builtin_flag \ 19693lt_prog_compiler_pic \ 19694lt_prog_compiler_wl \ 19695lt_prog_compiler_static \ 19696lt_cv_prog_compiler_c_o \ 19697need_locks \ 19698MANIFEST_TOOL \ 19699DSYMUTIL \ 19700NMEDIT \ 19701LIPO \ 19702OTOOL \ 19703OTOOL64 \ 19704shrext_cmds \ 19705export_dynamic_flag_spec \ 19706whole_archive_flag_spec \ 19707compiler_needs_object \ 19708with_gnu_ld \ 19709allow_undefined_flag \ 19710no_undefined_flag \ 19711hardcode_libdir_flag_spec \ 19712hardcode_libdir_separator \ 19713exclude_expsyms \ 19714include_expsyms \ 19715file_list_spec \ 19716variables_saved_for_relink \ 19717libname_spec \ 19718library_names_spec \ 19719soname_spec \ 19720install_override_mode \ 19721finish_eval \ 19722old_striplib \ 19723striplib; do 19724 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19725 *[\\\\\\\`\\"\\\$]*) 19726 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19727 ;; 19728 *) 19729 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19730 ;; 19731 esac 19732done 19733 19734# Double-quote double-evaled strings. 19735for var in reload_cmds \ 19736old_postinstall_cmds \ 19737old_postuninstall_cmds \ 19738old_archive_cmds \ 19739extract_expsyms_cmds \ 19740old_archive_from_new_cmds \ 19741old_archive_from_expsyms_cmds \ 19742archive_cmds \ 19743archive_expsym_cmds \ 19744module_cmds \ 19745module_expsym_cmds \ 19746export_symbols_cmds \ 19747prelink_cmds \ 19748postlink_cmds \ 19749postinstall_cmds \ 19750postuninstall_cmds \ 19751finish_cmds \ 19752sys_lib_search_path_spec \ 19753sys_lib_dlsearch_path_spec; do 19754 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19755 *[\\\\\\\`\\"\\\$]*) 19756 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19757 ;; 19758 *) 19759 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19760 ;; 19761 esac 19762done 19763 19764ac_aux_dir='$ac_aux_dir' 19765xsi_shell='$xsi_shell' 19766lt_shell_append='$lt_shell_append' 19767 19768# See if we are running on zsh, and set the options which allow our 19769# commands through without removal of \ escapes INIT. 19770if test -n "\${ZSH_VERSION+set}" ; then 19771 setopt NO_GLOB_SUBST 19772fi 19773 19774 19775 PACKAGE='$PACKAGE' 19776 VERSION='$VERSION' 19777 TIMESTAMP='$TIMESTAMP' 19778 RM='$RM' 19779 ofile='$ofile' 19780 19781 19782 19783 19784_ACEOF 19785 19786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19787 19788# Handling of arguments. 19789for ac_config_target in $ac_config_targets 19790do 19791 case $ac_config_target in 19792 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19793 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 19794 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19795 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; 19796 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;; 19797 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;; 19798 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;; 19799 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;; 19800 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;; 19801 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;; 19802 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;; 19803 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;; 19804 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;; 19805 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19806 19807 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19808 esac 19809done 19810 19811 19812# If the user did not use the arguments to specify the items to instantiate, 19813# then the envvar interface is used. Set only those that are not. 19814# We use the long form for the default assignment because of an extremely 19815# bizarre bug on SunOS 4.1.3. 19816if $ac_need_defaults; then 19817 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19818 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19819 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19820fi 19821 19822# Have a temporary directory for convenience. Make it in the build tree 19823# simply because there is no reason against having it here, and in addition, 19824# creating and moving files from /tmp can sometimes cause problems. 19825# Hook for its removal unless debugging. 19826# Note that there is a small window in which the directory will not be cleaned: 19827# after its creation but before its name has been assigned to `$tmp'. 19828$debug || 19829{ 19830 tmp= ac_tmp= 19831 trap 'exit_status=$? 19832 : "${ac_tmp:=$tmp}" 19833 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19834' 0 19835 trap 'as_fn_exit 1' 1 2 13 15 19836} 19837# Create a (secure) tmp directory for tmp files. 19838 19839{ 19840 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19841 test -d "$tmp" 19842} || 19843{ 19844 tmp=./conf$$-$RANDOM 19845 (umask 077 && mkdir "$tmp") 19846} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19847ac_tmp=$tmp 19848 19849# Set up the scripts for CONFIG_FILES section. 19850# No need to generate them if there are no CONFIG_FILES. 19851# This happens for instance with `./config.status config.h'. 19852if test -n "$CONFIG_FILES"; then 19853 19854 19855ac_cr=`echo X | tr X '\015'` 19856# On cygwin, bash can eat \r inside `` if the user requested igncr. 19857# But we know of no other shell where ac_cr would be empty at this 19858# point, so we can use a bashism as a fallback. 19859if test "x$ac_cr" = x; then 19860 eval ac_cr=\$\'\\r\' 19861fi 19862ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19863if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19864 ac_cs_awk_cr='\\r' 19865else 19866 ac_cs_awk_cr=$ac_cr 19867fi 19868 19869echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19870_ACEOF 19871 19872 19873{ 19874 echo "cat >conf$$subs.awk <<_ACEOF" && 19875 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19876 echo "_ACEOF" 19877} >conf$$subs.sh || 19878 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19879ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19880ac_delim='%!_!# ' 19881for ac_last_try in false false false false false :; do 19882 . ./conf$$subs.sh || 19883 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19884 19885 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19886 if test $ac_delim_n = $ac_delim_num; then 19887 break 19888 elif $ac_last_try; then 19889 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19890 else 19891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19892 fi 19893done 19894rm -f conf$$subs.sh 19895 19896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19897cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19898_ACEOF 19899sed -n ' 19900h 19901s/^/S["/; s/!.*/"]=/ 19902p 19903g 19904s/^[^!]*!// 19905:repl 19906t repl 19907s/'"$ac_delim"'$// 19908t delim 19909:nl 19910h 19911s/\(.\{148\}\)..*/\1/ 19912t more1 19913s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19914p 19915n 19916b repl 19917:more1 19918s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19919p 19920g 19921s/.\{148\}// 19922t nl 19923:delim 19924h 19925s/\(.\{148\}\)..*/\1/ 19926t more2 19927s/["\\]/\\&/g; s/^/"/; s/$/"/ 19928p 19929b 19930:more2 19931s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19932p 19933g 19934s/.\{148\}// 19935t delim 19936' <conf$$subs.awk | sed ' 19937/^[^""]/{ 19938 N 19939 s/\n// 19940} 19941' >>$CONFIG_STATUS || ac_write_fail=1 19942rm -f conf$$subs.awk 19943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19944_ACAWK 19945cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19946 for (key in S) S_is_set[key] = 1 19947 FS = "" 19948 19949} 19950{ 19951 line = $ 0 19952 nfields = split(line, field, "@") 19953 substed = 0 19954 len = length(field[1]) 19955 for (i = 2; i < nfields; i++) { 19956 key = field[i] 19957 keylen = length(key) 19958 if (S_is_set[key]) { 19959 value = S[key] 19960 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19961 len += length(value) + length(field[++i]) 19962 substed = 1 19963 } else 19964 len += 1 + keylen 19965 } 19966 19967 print line 19968} 19969 19970_ACAWK 19971_ACEOF 19972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19973if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19974 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19975else 19976 cat 19977fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19978 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19979_ACEOF 19980 19981# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19982# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19983# trailing colons and then remove the whole line if VPATH becomes empty 19984# (actually we leave an empty line to preserve line numbers). 19985if test "x$srcdir" = x.; then 19986 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19987h 19988s/// 19989s/^/:/ 19990s/[ ]*$/:/ 19991s/:\$(srcdir):/:/g 19992s/:\${srcdir}:/:/g 19993s/:@srcdir@:/:/g 19994s/^:*// 19995s/:*$// 19996x 19997s/\(=[ ]*\).*/\1/ 19998G 19999s/\n// 20000s/^[^=]*=[ ]*$// 20001}' 20002fi 20003 20004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20005fi # test -n "$CONFIG_FILES" 20006 20007# Set up the scripts for CONFIG_HEADERS section. 20008# No need to generate them if there are no CONFIG_HEADERS. 20009# This happens for instance with `./config.status Makefile'. 20010if test -n "$CONFIG_HEADERS"; then 20011cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20012BEGIN { 20013_ACEOF 20014 20015# Transform confdefs.h into an awk script `defines.awk', embedded as 20016# here-document in config.status, that substitutes the proper values into 20017# config.h.in to produce config.h. 20018 20019# Create a delimiter string that does not exist in confdefs.h, to ease 20020# handling of long lines. 20021ac_delim='%!_!# ' 20022for ac_last_try in false false :; do 20023 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20024 if test -z "$ac_tt"; then 20025 break 20026 elif $ac_last_try; then 20027 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20028 else 20029 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20030 fi 20031done 20032 20033# For the awk script, D is an array of macro values keyed by name, 20034# likewise P contains macro parameters if any. Preserve backslash 20035# newline sequences. 20036 20037ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20038sed -n ' 20039s/.\{148\}/&'"$ac_delim"'/g 20040t rset 20041:rset 20042s/^[ ]*#[ ]*define[ ][ ]*/ / 20043t def 20044d 20045:def 20046s/\\$// 20047t bsnl 20048s/["\\]/\\&/g 20049s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20050D["\1"]=" \3"/p 20051s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20052d 20053:bsnl 20054s/["\\]/\\&/g 20055s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20056D["\1"]=" \3\\\\\\n"\\/p 20057t cont 20058s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20059t cont 20060d 20061:cont 20062n 20063s/.\{148\}/&'"$ac_delim"'/g 20064t clear 20065:clear 20066s/\\$// 20067t bsnlc 20068s/["\\]/\\&/g; s/^/"/; s/$/"/p 20069d 20070:bsnlc 20071s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20072b cont 20073' <confdefs.h | sed ' 20074s/'"$ac_delim"'/"\\\ 20075"/g' >>$CONFIG_STATUS || ac_write_fail=1 20076 20077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20078 for (key in D) D_is_set[key] = 1 20079 FS = "" 20080} 20081/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20082 line = \$ 0 20083 split(line, arg, " ") 20084 if (arg[1] == "#") { 20085 defundef = arg[2] 20086 mac1 = arg[3] 20087 } else { 20088 defundef = substr(arg[1], 2) 20089 mac1 = arg[2] 20090 } 20091 split(mac1, mac2, "(") #) 20092 macro = mac2[1] 20093 prefix = substr(line, 1, index(line, defundef) - 1) 20094 if (D_is_set[macro]) { 20095 # Preserve the white space surrounding the "#". 20096 print prefix "define", macro P[macro] D[macro] 20097 next 20098 } else { 20099 # Replace #undef with comments. This is necessary, for example, 20100 # in the case of _POSIX_SOURCE, which is predefined and required 20101 # on some systems where configure will not decide to define it. 20102 if (defundef == "undef") { 20103 print "/*", prefix defundef, macro, "*/" 20104 next 20105 } 20106 } 20107} 20108{ print } 20109_ACAWK 20110_ACEOF 20111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20112 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20113fi # test -n "$CONFIG_HEADERS" 20114 20115 20116eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20117shift 20118for ac_tag 20119do 20120 case $ac_tag in 20121 :[FHLC]) ac_mode=$ac_tag; continue;; 20122 esac 20123 case $ac_mode$ac_tag in 20124 :[FHL]*:*);; 20125 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20126 :[FH]-) ac_tag=-:-;; 20127 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20128 esac 20129 ac_save_IFS=$IFS 20130 IFS=: 20131 set x $ac_tag 20132 IFS=$ac_save_IFS 20133 shift 20134 ac_file=$1 20135 shift 20136 20137 case $ac_mode in 20138 :L) ac_source=$1;; 20139 :[FH]) 20140 ac_file_inputs= 20141 for ac_f 20142 do 20143 case $ac_f in 20144 -) ac_f="$ac_tmp/stdin";; 20145 *) # Look for the file first in the build tree, then in the source tree 20146 # (if the path is not absolute). The absolute path cannot be DOS-style, 20147 # because $ac_f cannot contain `:'. 20148 test -f "$ac_f" || 20149 case $ac_f in 20150 [\\/$]*) false;; 20151 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20152 esac || 20153 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20154 esac 20155 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20156 as_fn_append ac_file_inputs " '$ac_f'" 20157 done 20158 20159 # Let's still pretend it is `configure' which instantiates (i.e., don't 20160 # use $as_me), people would be surprised to read: 20161 # /* config.h. Generated by config.status. */ 20162 configure_input='Generated from '` 20163 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20164 `' by configure.' 20165 if test x"$ac_file" != x-; then 20166 configure_input="$ac_file. $configure_input" 20167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20168$as_echo "$as_me: creating $ac_file" >&6;} 20169 fi 20170 # Neutralize special characters interpreted by sed in replacement strings. 20171 case $configure_input in #( 20172 *\&* | *\|* | *\\* ) 20173 ac_sed_conf_input=`$as_echo "$configure_input" | 20174 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20175 *) ac_sed_conf_input=$configure_input;; 20176 esac 20177 20178 case $ac_tag in 20179 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20181 esac 20182 ;; 20183 esac 20184 20185 ac_dir=`$as_dirname -- "$ac_file" || 20186$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20187 X"$ac_file" : 'X\(//\)[^/]' \| \ 20188 X"$ac_file" : 'X\(//\)$' \| \ 20189 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20190$as_echo X"$ac_file" | 20191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20192 s//\1/ 20193 q 20194 } 20195 /^X\(\/\/\)[^/].*/{ 20196 s//\1/ 20197 q 20198 } 20199 /^X\(\/\/\)$/{ 20200 s//\1/ 20201 q 20202 } 20203 /^X\(\/\).*/{ 20204 s//\1/ 20205 q 20206 } 20207 s/.*/./; q'` 20208 as_dir="$ac_dir"; as_fn_mkdir_p 20209 ac_builddir=. 20210 20211case "$ac_dir" in 20212.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20213*) 20214 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20215 # A ".." for each directory in $ac_dir_suffix. 20216 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20217 case $ac_top_builddir_sub in 20218 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20219 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20220 esac ;; 20221esac 20222ac_abs_top_builddir=$ac_pwd 20223ac_abs_builddir=$ac_pwd$ac_dir_suffix 20224# for backward compatibility: 20225ac_top_builddir=$ac_top_build_prefix 20226 20227case $srcdir in 20228 .) # We are building in place. 20229 ac_srcdir=. 20230 ac_top_srcdir=$ac_top_builddir_sub 20231 ac_abs_top_srcdir=$ac_pwd ;; 20232 [\\/]* | ?:[\\/]* ) # Absolute name. 20233 ac_srcdir=$srcdir$ac_dir_suffix; 20234 ac_top_srcdir=$srcdir 20235 ac_abs_top_srcdir=$srcdir ;; 20236 *) # Relative name. 20237 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20238 ac_top_srcdir=$ac_top_build_prefix$srcdir 20239 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20240esac 20241ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20242 20243 20244 case $ac_mode in 20245 :F) 20246 # 20247 # CONFIG_FILE 20248 # 20249 20250_ACEOF 20251 20252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20253# If the template does not know about datarootdir, expand it. 20254# FIXME: This hack should be removed a few years after 2.60. 20255ac_datarootdir_hack=; ac_datarootdir_seen= 20256ac_sed_dataroot=' 20257/datarootdir/ { 20258 p 20259 q 20260} 20261/@datadir@/p 20262/@docdir@/p 20263/@infodir@/p 20264/@localedir@/p 20265/@mandir@/p' 20266case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20267*datarootdir*) ac_datarootdir_seen=yes;; 20268*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20270$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20271_ACEOF 20272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20273 ac_datarootdir_hack=' 20274 s&@datadir@&$datadir&g 20275 s&@docdir@&$docdir&g 20276 s&@infodir@&$infodir&g 20277 s&@localedir@&$localedir&g 20278 s&@mandir@&$mandir&g 20279 s&\\\${datarootdir}&$datarootdir&g' ;; 20280esac 20281_ACEOF 20282 20283# Neutralize VPATH when `$srcdir' = `.'. 20284# Shell code in configure.ac might set extrasub. 20285# FIXME: do we really want to maintain this feature? 20286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20287ac_sed_extra="$ac_vpsub 20288$extrasub 20289_ACEOF 20290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20291:t 20292/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20293s|@configure_input@|$ac_sed_conf_input|;t t 20294s&@top_builddir@&$ac_top_builddir_sub&;t t 20295s&@top_build_prefix@&$ac_top_build_prefix&;t t 20296s&@srcdir@&$ac_srcdir&;t t 20297s&@abs_srcdir@&$ac_abs_srcdir&;t t 20298s&@top_srcdir@&$ac_top_srcdir&;t t 20299s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20300s&@builddir@&$ac_builddir&;t t 20301s&@abs_builddir@&$ac_abs_builddir&;t t 20302s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20303$ac_datarootdir_hack 20304" 20305eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20306 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20307 20308test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20309 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20310 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20311 "$ac_tmp/out"`; test -z "$ac_out"; } && 20312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20313which seems to be undefined. Please make sure it is defined" >&5 20314$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20315which seems to be undefined. Please make sure it is defined" >&2;} 20316 20317 rm -f "$ac_tmp/stdin" 20318 case $ac_file in 20319 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20320 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20321 esac \ 20322 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20323 ;; 20324 :H) 20325 # 20326 # CONFIG_HEADER 20327 # 20328 if test x"$ac_file" != x-; then 20329 { 20330 $as_echo "/* $configure_input */" \ 20331 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20332 } >"$ac_tmp/config.h" \ 20333 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20334 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20335 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20336$as_echo "$as_me: $ac_file is unchanged" >&6;} 20337 else 20338 rm -f "$ac_file" 20339 mv "$ac_tmp/config.h" "$ac_file" \ 20340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20341 fi 20342 else 20343 $as_echo "/* $configure_input */" \ 20344 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20345 || as_fn_error $? "could not create -" "$LINENO" 5 20346 fi 20347 ;; 20348 20349 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20350$as_echo "$as_me: executing $ac_file commands" >&6;} 20351 ;; 20352 esac 20353 20354 20355 case $ac_file$ac_mode in 20356 "libtool":C) 20357 20358 # See if we are running on zsh, and set the options which allow our 20359 # commands through without removal of \ escapes. 20360 if test -n "${ZSH_VERSION+set}" ; then 20361 setopt NO_GLOB_SUBST 20362 fi 20363 20364 cfgfile="${ofile}T" 20365 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20366 $RM "$cfgfile" 20367 20368 cat <<_LT_EOF >> "$cfgfile" 20369#! $SHELL 20370 20371# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20372# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20373# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20374# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20375# 20376# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20377# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20378# Foundation, Inc. 20379# Written by Gordon Matzigkeit, 1996 20380# 20381# This file is part of GNU Libtool. 20382# 20383# GNU Libtool is free software; you can redistribute it and/or 20384# modify it under the terms of the GNU General Public License as 20385# published by the Free Software Foundation; either version 2 of 20386# the License, or (at your option) any later version. 20387# 20388# As a special exception to the GNU General Public License, 20389# if you distribute this file as part of a program or library that 20390# is built using GNU Libtool, you may include this file under the 20391# same distribution terms that you use for the rest of that program. 20392# 20393# GNU Libtool is distributed in the hope that it will be useful, 20394# but WITHOUT ANY WARRANTY; without even the implied warranty of 20395# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20396# GNU General Public License for more details. 20397# 20398# You should have received a copy of the GNU General Public License 20399# along with GNU Libtool; see the file COPYING. If not, a copy 20400# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20401# obtained by writing to the Free Software Foundation, Inc., 20402# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20403 20404 20405# The names of the tagged configurations supported by this script. 20406available_tags="" 20407 20408# ### BEGIN LIBTOOL CONFIG 20409 20410# Which release of libtool.m4 was used? 20411macro_version=$macro_version 20412macro_revision=$macro_revision 20413 20414# Whether or not to build shared libraries. 20415build_libtool_libs=$enable_shared 20416 20417# Whether or not to build static libraries. 20418build_old_libs=$enable_static 20419 20420# What type of objects to build. 20421pic_mode=$pic_mode 20422 20423# Whether or not to optimize for fast installation. 20424fast_install=$enable_fast_install 20425 20426# Shell to use when invoking shell scripts. 20427SHELL=$lt_SHELL 20428 20429# An echo program that protects backslashes. 20430ECHO=$lt_ECHO 20431 20432# The PATH separator for the build system. 20433PATH_SEPARATOR=$lt_PATH_SEPARATOR 20434 20435# The host system. 20436host_alias=$host_alias 20437host=$host 20438host_os=$host_os 20439 20440# The build system. 20441build_alias=$build_alias 20442build=$build 20443build_os=$build_os 20444 20445# A sed program that does not truncate output. 20446SED=$lt_SED 20447 20448# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20449Xsed="\$SED -e 1s/^X//" 20450 20451# A grep program that handles long lines. 20452GREP=$lt_GREP 20453 20454# An ERE matcher. 20455EGREP=$lt_EGREP 20456 20457# A literal string matcher. 20458FGREP=$lt_FGREP 20459 20460# A BSD- or MS-compatible name lister. 20461NM=$lt_NM 20462 20463# Whether we need soft or hard links. 20464LN_S=$lt_LN_S 20465 20466# What is the maximum length of a command? 20467max_cmd_len=$max_cmd_len 20468 20469# Object file suffix (normally "o"). 20470objext=$ac_objext 20471 20472# Executable file suffix (normally ""). 20473exeext=$exeext 20474 20475# whether the shell understands "unset". 20476lt_unset=$lt_unset 20477 20478# turn spaces into newlines. 20479SP2NL=$lt_lt_SP2NL 20480 20481# turn newlines into spaces. 20482NL2SP=$lt_lt_NL2SP 20483 20484# convert \$build file names to \$host format. 20485to_host_file_cmd=$lt_cv_to_host_file_cmd 20486 20487# convert \$build files to toolchain format. 20488to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20489 20490# An object symbol dumper. 20491OBJDUMP=$lt_OBJDUMP 20492 20493# Method to check whether dependent libraries are shared objects. 20494deplibs_check_method=$lt_deplibs_check_method 20495 20496# Command to use when deplibs_check_method = "file_magic". 20497file_magic_cmd=$lt_file_magic_cmd 20498 20499# How to find potential files when deplibs_check_method = "file_magic". 20500file_magic_glob=$lt_file_magic_glob 20501 20502# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20503want_nocaseglob=$lt_want_nocaseglob 20504 20505# DLL creation program. 20506DLLTOOL=$lt_DLLTOOL 20507 20508# Command to associate shared and link libraries. 20509sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20510 20511# The archiver. 20512AR=$lt_AR 20513 20514# Flags to create an archive. 20515AR_FLAGS=$lt_AR_FLAGS 20516 20517# How to feed a file listing to the archiver. 20518archiver_list_spec=$lt_archiver_list_spec 20519 20520# A symbol stripping program. 20521STRIP=$lt_STRIP 20522 20523# Commands used to install an old-style archive. 20524RANLIB=$lt_RANLIB 20525old_postinstall_cmds=$lt_old_postinstall_cmds 20526old_postuninstall_cmds=$lt_old_postuninstall_cmds 20527 20528# Whether to use a lock for old archive extraction. 20529lock_old_archive_extraction=$lock_old_archive_extraction 20530 20531# A C compiler. 20532LTCC=$lt_CC 20533 20534# LTCC compiler flags. 20535LTCFLAGS=$lt_CFLAGS 20536 20537# Take the output of nm and produce a listing of raw symbols and C names. 20538global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20539 20540# Transform the output of nm in a proper C declaration. 20541global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20542 20543# Transform the output of nm in a C name address pair. 20544global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20545 20546# Transform the output of nm in a C name address pair when lib prefix is needed. 20547global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20548 20549# Specify filename containing input files for \$NM. 20550nm_file_list_spec=$lt_nm_file_list_spec 20551 20552# The root where to search for dependent libraries,and in which our libraries should be installed. 20553lt_sysroot=$lt_sysroot 20554 20555# The name of the directory that contains temporary libtool files. 20556objdir=$objdir 20557 20558# Used to examine libraries when file_magic_cmd begins with "file". 20559MAGIC_CMD=$MAGIC_CMD 20560 20561# Must we lock files when doing compilation? 20562need_locks=$lt_need_locks 20563 20564# Manifest tool. 20565MANIFEST_TOOL=$lt_MANIFEST_TOOL 20566 20567# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20568DSYMUTIL=$lt_DSYMUTIL 20569 20570# Tool to change global to local symbols on Mac OS X. 20571NMEDIT=$lt_NMEDIT 20572 20573# Tool to manipulate fat objects and archives on Mac OS X. 20574LIPO=$lt_LIPO 20575 20576# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20577OTOOL=$lt_OTOOL 20578 20579# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20580OTOOL64=$lt_OTOOL64 20581 20582# Old archive suffix (normally "a"). 20583libext=$libext 20584 20585# Shared library suffix (normally ".so"). 20586shrext_cmds=$lt_shrext_cmds 20587 20588# The commands to extract the exported symbol list from a shared archive. 20589extract_expsyms_cmds=$lt_extract_expsyms_cmds 20590 20591# Variables whose values should be saved in libtool wrapper scripts and 20592# restored at link time. 20593variables_saved_for_relink=$lt_variables_saved_for_relink 20594 20595# Do we need the "lib" prefix for modules? 20596need_lib_prefix=$need_lib_prefix 20597 20598# Do we need a version for libraries? 20599need_version=$need_version 20600 20601# Library versioning type. 20602version_type=$version_type 20603 20604# Shared library runtime path variable. 20605runpath_var=$runpath_var 20606 20607# Shared library path variable. 20608shlibpath_var=$shlibpath_var 20609 20610# Is shlibpath searched before the hard-coded library search path? 20611shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20612 20613# Format of library name prefix. 20614libname_spec=$lt_libname_spec 20615 20616# List of archive names. First name is the real one, the rest are links. 20617# The last name is the one that the linker finds with -lNAME 20618library_names_spec=$lt_library_names_spec 20619 20620# The coded name of the library, if different from the real name. 20621soname_spec=$lt_soname_spec 20622 20623# Permission mode override for installation of shared libraries. 20624install_override_mode=$lt_install_override_mode 20625 20626# Command to use after installation of a shared archive. 20627postinstall_cmds=$lt_postinstall_cmds 20628 20629# Command to use after uninstallation of a shared archive. 20630postuninstall_cmds=$lt_postuninstall_cmds 20631 20632# Commands used to finish a libtool library installation in a directory. 20633finish_cmds=$lt_finish_cmds 20634 20635# As "finish_cmds", except a single script fragment to be evaled but 20636# not shown. 20637finish_eval=$lt_finish_eval 20638 20639# Whether we should hardcode library paths into libraries. 20640hardcode_into_libs=$hardcode_into_libs 20641 20642# Compile-time system search path for libraries. 20643sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20644 20645# Run-time system search path for libraries. 20646sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20647 20648# Whether dlopen is supported. 20649dlopen_support=$enable_dlopen 20650 20651# Whether dlopen of programs is supported. 20652dlopen_self=$enable_dlopen_self 20653 20654# Whether dlopen of statically linked programs is supported. 20655dlopen_self_static=$enable_dlopen_self_static 20656 20657# Commands to strip libraries. 20658old_striplib=$lt_old_striplib 20659striplib=$lt_striplib 20660 20661 20662# The linker used to build libraries. 20663LD=$lt_LD 20664 20665# How to create reloadable object files. 20666reload_flag=$lt_reload_flag 20667reload_cmds=$lt_reload_cmds 20668 20669# Commands used to build an old-style archive. 20670old_archive_cmds=$lt_old_archive_cmds 20671 20672# A language specific compiler. 20673CC=$lt_compiler 20674 20675# Is the compiler the GNU compiler? 20676with_gcc=$GCC 20677 20678# Compiler flag to turn off builtin functions. 20679no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20680 20681# Additional compiler flags for building library objects. 20682pic_flag=$lt_lt_prog_compiler_pic 20683 20684# How to pass a linker flag through the compiler. 20685wl=$lt_lt_prog_compiler_wl 20686 20687# Compiler flag to prevent dynamic linking. 20688link_static_flag=$lt_lt_prog_compiler_static 20689 20690# Does compiler simultaneously support -c and -o options? 20691compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20692 20693# Whether or not to add -lc for building shared libraries. 20694build_libtool_need_lc=$archive_cmds_need_lc 20695 20696# Whether or not to disallow shared libs when runtime libs are static. 20697allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20698 20699# Compiler flag to allow reflexive dlopens. 20700export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20701 20702# Compiler flag to generate shared objects directly from archives. 20703whole_archive_flag_spec=$lt_whole_archive_flag_spec 20704 20705# Whether the compiler copes with passing no objects directly. 20706compiler_needs_object=$lt_compiler_needs_object 20707 20708# Create an old-style archive from a shared archive. 20709old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20710 20711# Create a temporary old-style archive to link instead of a shared archive. 20712old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20713 20714# Commands used to build a shared archive. 20715archive_cmds=$lt_archive_cmds 20716archive_expsym_cmds=$lt_archive_expsym_cmds 20717 20718# Commands used to build a loadable module if different from building 20719# a shared archive. 20720module_cmds=$lt_module_cmds 20721module_expsym_cmds=$lt_module_expsym_cmds 20722 20723# Whether we are building with GNU ld or not. 20724with_gnu_ld=$lt_with_gnu_ld 20725 20726# Flag that allows shared libraries with undefined symbols to be built. 20727allow_undefined_flag=$lt_allow_undefined_flag 20728 20729# Flag that enforces no undefined symbols. 20730no_undefined_flag=$lt_no_undefined_flag 20731 20732# Flag to hardcode \$libdir into a binary during linking. 20733# This must work even if \$libdir does not exist 20734hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20735 20736# Whether we need a single "-rpath" flag with a separated argument. 20737hardcode_libdir_separator=$lt_hardcode_libdir_separator 20738 20739# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20740# DIR into the resulting binary. 20741hardcode_direct=$hardcode_direct 20742 20743# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20744# DIR into the resulting binary and the resulting library dependency is 20745# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20746# library is relocated. 20747hardcode_direct_absolute=$hardcode_direct_absolute 20748 20749# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20750# into the resulting binary. 20751hardcode_minus_L=$hardcode_minus_L 20752 20753# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20754# into the resulting binary. 20755hardcode_shlibpath_var=$hardcode_shlibpath_var 20756 20757# Set to "yes" if building a shared library automatically hardcodes DIR 20758# into the library and all subsequent libraries and executables linked 20759# against it. 20760hardcode_automatic=$hardcode_automatic 20761 20762# Set to yes if linker adds runtime paths of dependent libraries 20763# to runtime path list. 20764inherit_rpath=$inherit_rpath 20765 20766# Whether libtool must link a program against all its dependency libraries. 20767link_all_deplibs=$link_all_deplibs 20768 20769# Set to "yes" if exported symbols are required. 20770always_export_symbols=$always_export_symbols 20771 20772# The commands to list exported symbols. 20773export_symbols_cmds=$lt_export_symbols_cmds 20774 20775# Symbols that should not be listed in the preloaded symbols. 20776exclude_expsyms=$lt_exclude_expsyms 20777 20778# Symbols that must always be exported. 20779include_expsyms=$lt_include_expsyms 20780 20781# Commands necessary for linking programs (against libraries) with templates. 20782prelink_cmds=$lt_prelink_cmds 20783 20784# Commands necessary for finishing linking programs. 20785postlink_cmds=$lt_postlink_cmds 20786 20787# Specify filename containing input files. 20788file_list_spec=$lt_file_list_spec 20789 20790# How to hardcode a shared library path into an executable. 20791hardcode_action=$hardcode_action 20792 20793# ### END LIBTOOL CONFIG 20794 20795_LT_EOF 20796 20797 case $host_os in 20798 aix3*) 20799 cat <<\_LT_EOF >> "$cfgfile" 20800# AIX sometimes has problems with the GCC collect2 program. For some 20801# reason, if we set the COLLECT_NAMES environment variable, the problems 20802# vanish in a puff of smoke. 20803if test "X${COLLECT_NAMES+set}" != Xset; then 20804 COLLECT_NAMES= 20805 export COLLECT_NAMES 20806fi 20807_LT_EOF 20808 ;; 20809 esac 20810 20811 20812ltmain="$ac_aux_dir/ltmain.sh" 20813 20814 20815 # We use sed instead of cat because bash on DJGPP gets confused if 20816 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20817 # text mode, it properly converts lines to CR/LF. This bash problem 20818 # is reportedly fixed, but why not run on old versions too? 20819 sed '$q' "$ltmain" >> "$cfgfile" \ 20820 || (rm -f "$cfgfile"; exit 1) 20821 20822 if test x"$xsi_shell" = xyes; then 20823 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20824func_dirname ()\ 20825{\ 20826\ case ${1} in\ 20827\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20828\ * ) func_dirname_result="${3}" ;;\ 20829\ esac\ 20830} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20831 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20833test 0 -eq $? || _lt_function_replace_fail=: 20834 20835 20836 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20837func_basename ()\ 20838{\ 20839\ func_basename_result="${1##*/}"\ 20840} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20841 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20842 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20843test 0 -eq $? || _lt_function_replace_fail=: 20844 20845 20846 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20847func_dirname_and_basename ()\ 20848{\ 20849\ case ${1} in\ 20850\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20851\ * ) func_dirname_result="${3}" ;;\ 20852\ esac\ 20853\ func_basename_result="${1##*/}"\ 20854} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20855 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20856 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20857test 0 -eq $? || _lt_function_replace_fail=: 20858 20859 20860 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20861func_stripname ()\ 20862{\ 20863\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20864\ # positional parameters, so assign one to ordinary parameter first.\ 20865\ func_stripname_result=${3}\ 20866\ func_stripname_result=${func_stripname_result#"${1}"}\ 20867\ func_stripname_result=${func_stripname_result%"${2}"}\ 20868} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20869 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20871test 0 -eq $? || _lt_function_replace_fail=: 20872 20873 20874 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20875func_split_long_opt ()\ 20876{\ 20877\ func_split_long_opt_name=${1%%=*}\ 20878\ func_split_long_opt_arg=${1#*=}\ 20879} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20880 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20881 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20882test 0 -eq $? || _lt_function_replace_fail=: 20883 20884 20885 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20886func_split_short_opt ()\ 20887{\ 20888\ func_split_short_opt_arg=${1#??}\ 20889\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20890} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20891 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20893test 0 -eq $? || _lt_function_replace_fail=: 20894 20895 20896 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20897func_lo2o ()\ 20898{\ 20899\ case ${1} in\ 20900\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20901\ *) func_lo2o_result=${1} ;;\ 20902\ esac\ 20903} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20904 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20905 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20906test 0 -eq $? || _lt_function_replace_fail=: 20907 20908 20909 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20910func_xform ()\ 20911{\ 20912 func_xform_result=${1%.*}.lo\ 20913} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20914 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20915 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20916test 0 -eq $? || _lt_function_replace_fail=: 20917 20918 20919 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20920func_arith ()\ 20921{\ 20922 func_arith_result=$(( $* ))\ 20923} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20924 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20925 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20926test 0 -eq $? || _lt_function_replace_fail=: 20927 20928 20929 sed -e '/^func_len ()$/,/^} # func_len /c\ 20930func_len ()\ 20931{\ 20932 func_len_result=${#1}\ 20933} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20934 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20935 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20936test 0 -eq $? || _lt_function_replace_fail=: 20937 20938fi 20939 20940if test x"$lt_shell_append" = xyes; then 20941 sed -e '/^func_append ()$/,/^} # func_append /c\ 20942func_append ()\ 20943{\ 20944 eval "${1}+=\\${2}"\ 20945} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20946 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20948test 0 -eq $? || _lt_function_replace_fail=: 20949 20950 20951 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20952func_append_quoted ()\ 20953{\ 20954\ func_quote_for_eval "${2}"\ 20955\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20956} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20957 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20959test 0 -eq $? || _lt_function_replace_fail=: 20960 20961 20962 # Save a `func_append' function call where possible by direct use of '+=' 20963 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20964 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20966 test 0 -eq $? || _lt_function_replace_fail=: 20967else 20968 # Save a `func_append' function call even when '+=' is not available 20969 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20970 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20972 test 0 -eq $? || _lt_function_replace_fail=: 20973fi 20974 20975if test x"$_lt_function_replace_fail" = x":"; then 20976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20977$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20978fi 20979 20980 20981 mv -f "$cfgfile" "$ofile" || 20982 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20983 chmod +x "$ofile" 20984 20985 ;; 20986 "disable-rpath":C) 20987 sed < libtool > libtool-2 \ 20988 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 20989 mv libtool-2 libtool 20990 chmod 755 libtool 20991 libtool="./libtool" 20992 ;; 20993 20994 esac 20995done # for ac_tag 20996 20997 20998as_fn_exit 0 20999_ACEOF 21000ac_clean_files=$ac_clean_files_save 21001 21002test $ac_write_fail = 0 || 21003 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21004 21005 21006# configure is writing to config.log, and then calls config.status. 21007# config.status does its own redirection, appending to config.log. 21008# Unfortunately, on DOS this fails, as config.log is still kept open 21009# by configure, so config.status won't be able to write to it; its 21010# output is simply discarded. So we exec the FD to /dev/null, 21011# effectively closing config.log, so it can be properly (re)opened and 21012# appended to by config.status. When coming back to configure, we 21013# need to make the FD available again. 21014if test "$no_create" != yes; then 21015 ac_cs_success=: 21016 ac_config_status_args= 21017 test "$silent" = yes && 21018 ac_config_status_args="$ac_config_status_args --quiet" 21019 exec 5>/dev/null 21020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21021 exec 5>>config.log 21022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21023 # would make configure fail if this is the last instruction. 21024 $ac_cs_success || as_fn_exit 1 21025fi 21026if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21028$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21029fi 21030 21031