1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for unbound 1.5.7. 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.7' 594PACKAGE_STRING='unbound 1.5.7' 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 664SSLLIB 665HAVE_SSL 666CONFIG_DATE 667NETBSD_LINTFLAGS 668PYUNBOUND_UNINSTALL 669PYUNBOUND_INSTALL 670PYUNBOUND_TARGET 671PYUNBOUND_OBJ 672WITH_PYUNBOUND 673PYTHONMOD_UNINSTALL 674PYTHONMOD_INSTALL 675PYTHONMOD_HEADER 676PYTHONMOD_OBJ 677WITH_PYTHONMODULE 678swig 679SWIG_LIB 680SWIG 681PY_MAJOR_VERSION 682PYTHON_SITE_PKG 683PYTHON_LDFLAGS 684PYTHON_CPPFLAGS 685PYTHON 686PYTHON_VERSION 687PTHREAD_CFLAGS 688PTHREAD_LIBS 689PTHREAD_CC 690ax_pthread_config 691RUNTIME_PATH 692LIBOBJS 693OTOOL64 694OTOOL 695LIPO 696NMEDIT 697DSYMUTIL 698MANIFEST_TOOL 699AWK 700RANLIB 701ac_ct_AR 702DLLTOOL 703OBJDUMP 704LN_S 705NM 706ac_ct_DUMPBIN 707DUMPBIN 708LD 709FGREP 710SED 711LIBTOOL 712AR 713host_os 714host_vendor 715host_cpu 716host 717build_os 718build_vendor 719build_cpu 720build 721libtool 722STRIP 723doxygen 724YFLAGS 725YACC 726LEXLIB 727LEX_OUTPUT_ROOT 728LEX 729debug_enabled 730DEPFLAG 731UNBOUND_USERNAME 732UNBOUND_ROOTCERT_FILE 733UNBOUND_ROOTKEY_FILE 734UNBOUND_PIDFILE 735UNBOUND_SHARE_DIR 736UNBOUND_CHROOT_DIR 737UNBOUND_RUN_DIR 738ub_conf_dir 739ub_conf_file 740EGREP 741GREP 742CPP 743OBJEXT 744EXEEXT 745ac_ct_CC 746CPPFLAGS 747LDFLAGS 748CFLAGS 749CC 750LIBUNBOUND_AGE 751LIBUNBOUND_REVISION 752LIBUNBOUND_CURRENT 753UNBOUND_VERSION_MICRO 754UNBOUND_VERSION_MINOR 755UNBOUND_VERSION_MAJOR 756target_alias 757host_alias 758build_alias 759LIBS 760ECHO_T 761ECHO_N 762ECHO_C 763DEFS 764mandir 765localedir 766libdir 767psdir 768pdfdir 769dvidir 770htmldir 771infodir 772docdir 773oldincludedir 774includedir 775localstatedir 776sharedstatedir 777sysconfdir 778datadir 779datarootdir 780libexecdir 781sbindir 782bindir 783program_transform_name 784prefix 785exec_prefix 786PACKAGE_URL 787PACKAGE_BUGREPORT 788PACKAGE_STRING 789PACKAGE_VERSION 790PACKAGE_TARNAME 791PACKAGE_NAME 792PATH_SEPARATOR 793SHELL' 794ac_subst_files='' 795ac_user_opts=' 796enable_option_checking 797with_conf_file 798with_run_dir 799with_chroot_dir 800with_share_dir 801with_pidfile 802with_rootkey_file 803with_rootcert_file 804with_username 805enable_checking 806enable_debug 807enable_flto 808enable_pie 809enable_relro_now 810enable_shared 811enable_static 812with_pic 813enable_fast_install 814with_gnu_ld 815with_sysroot 816enable_libtool_lock 817enable_rpath 818enable_largefile 819enable_alloc_checks 820enable_alloc_lite 821enable_alloc_nonregional 822with_pthreads 823with_solaris_threads 824with_pyunbound 825with_pythonmodule 826with_nss 827with_nettle 828with_ssl 829enable_sha2 830enable_gost 831enable_ecdsa 832enable_event_api 833with_libevent 834with_libexpat 835enable_static_exe 836enable_lock_checks 837enable_allsymbols 838enable_dnstap 839with_dnstap_socket_path 840with_protobuf_c 841with_libfstrm 842with_libunbound_only 843' 844 ac_precious_vars='build_alias 845host_alias 846target_alias 847CC 848CFLAGS 849LDFLAGS 850LIBS 851CPPFLAGS 852CPP 853YACC 854YFLAGS 855PYTHON_VERSION' 856 857 858# Initialize some variables set by options. 859ac_init_help= 860ac_init_version=false 861ac_unrecognized_opts= 862ac_unrecognized_sep= 863# The variables have the same names as the options, with 864# dashes changed to underlines. 865cache_file=/dev/null 866exec_prefix=NONE 867no_create= 868no_recursion= 869prefix=NONE 870program_prefix=NONE 871program_suffix=NONE 872program_transform_name=s,x,x, 873silent= 874site= 875srcdir= 876verbose= 877x_includes=NONE 878x_libraries=NONE 879 880# Installation directory options. 881# These are left unexpanded so users can "make install exec_prefix=/foo" 882# and all the variables that are supposed to be based on exec_prefix 883# by default will actually change. 884# Use braces instead of parens because sh, perl, etc. also accept them. 885# (The list follows the same order as the GNU Coding Standards.) 886bindir='${exec_prefix}/bin' 887sbindir='${exec_prefix}/sbin' 888libexecdir='${exec_prefix}/libexec' 889datarootdir='${prefix}/share' 890datadir='${datarootdir}' 891sysconfdir='${prefix}/etc' 892sharedstatedir='${prefix}/com' 893localstatedir='${prefix}/var' 894includedir='${prefix}/include' 895oldincludedir='/usr/include' 896docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 897infodir='${datarootdir}/info' 898htmldir='${docdir}' 899dvidir='${docdir}' 900pdfdir='${docdir}' 901psdir='${docdir}' 902libdir='${exec_prefix}/lib' 903localedir='${datarootdir}/locale' 904mandir='${datarootdir}/man' 905 906ac_prev= 907ac_dashdash= 908for ac_option 909do 910 # If the previous option needs an argument, assign it. 911 if test -n "$ac_prev"; then 912 eval $ac_prev=\$ac_option 913 ac_prev= 914 continue 915 fi 916 917 case $ac_option in 918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 919 *=) ac_optarg= ;; 920 *) ac_optarg=yes ;; 921 esac 922 923 # Accept the important Cygnus configure options, so we can diagnose typos. 924 925 case $ac_dashdash$ac_option in 926 --) 927 ac_dashdash=yes ;; 928 929 -bindir | --bindir | --bindi | --bind | --bin | --bi) 930 ac_prev=bindir ;; 931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 932 bindir=$ac_optarg ;; 933 934 -build | --build | --buil | --bui | --bu) 935 ac_prev=build_alias ;; 936 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 937 build_alias=$ac_optarg ;; 938 939 -cache-file | --cache-file | --cache-fil | --cache-fi \ 940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 941 ac_prev=cache_file ;; 942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 944 cache_file=$ac_optarg ;; 945 946 --config-cache | -C) 947 cache_file=config.cache ;; 948 949 -datadir | --datadir | --datadi | --datad) 950 ac_prev=datadir ;; 951 -datadir=* | --datadir=* | --datadi=* | --datad=*) 952 datadir=$ac_optarg ;; 953 954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 955 | --dataroo | --dataro | --datar) 956 ac_prev=datarootdir ;; 957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 959 datarootdir=$ac_optarg ;; 960 961 -disable-* | --disable-*) 962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 963 # Reject names that are not valid shell variable names. 964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 965 as_fn_error $? "invalid feature name: $ac_useropt" 966 ac_useropt_orig=$ac_useropt 967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 968 case $ac_user_opts in 969 *" 970"enable_$ac_useropt" 971"*) ;; 972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 973 ac_unrecognized_sep=', ';; 974 esac 975 eval enable_$ac_useropt=no ;; 976 977 -docdir | --docdir | --docdi | --doc | --do) 978 ac_prev=docdir ;; 979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 980 docdir=$ac_optarg ;; 981 982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 983 ac_prev=dvidir ;; 984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 985 dvidir=$ac_optarg ;; 986 987 -enable-* | --enable-*) 988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 989 # Reject names that are not valid shell variable names. 990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 991 as_fn_error $? "invalid feature name: $ac_useropt" 992 ac_useropt_orig=$ac_useropt 993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 994 case $ac_user_opts in 995 *" 996"enable_$ac_useropt" 997"*) ;; 998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 999 ac_unrecognized_sep=', ';; 1000 esac 1001 eval enable_$ac_useropt=\$ac_optarg ;; 1002 1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1005 | --exec | --exe | --ex) 1006 ac_prev=exec_prefix ;; 1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1009 | --exec=* | --exe=* | --ex=*) 1010 exec_prefix=$ac_optarg ;; 1011 1012 -gas | --gas | --ga | --g) 1013 # Obsolete; use --with-gas. 1014 with_gas=yes ;; 1015 1016 -help | --help | --hel | --he | -h) 1017 ac_init_help=long ;; 1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1019 ac_init_help=recursive ;; 1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1021 ac_init_help=short ;; 1022 1023 -host | --host | --hos | --ho) 1024 ac_prev=host_alias ;; 1025 -host=* | --host=* | --hos=* | --ho=*) 1026 host_alias=$ac_optarg ;; 1027 1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1029 ac_prev=htmldir ;; 1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1031 | --ht=*) 1032 htmldir=$ac_optarg ;; 1033 1034 -includedir | --includedir | --includedi | --included | --include \ 1035 | --includ | --inclu | --incl | --inc) 1036 ac_prev=includedir ;; 1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1038 | --includ=* | --inclu=* | --incl=* | --inc=*) 1039 includedir=$ac_optarg ;; 1040 1041 -infodir | --infodir | --infodi | --infod | --info | --inf) 1042 ac_prev=infodir ;; 1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1044 infodir=$ac_optarg ;; 1045 1046 -libdir | --libdir | --libdi | --libd) 1047 ac_prev=libdir ;; 1048 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1049 libdir=$ac_optarg ;; 1050 1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1052 | --libexe | --libex | --libe) 1053 ac_prev=libexecdir ;; 1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1055 | --libexe=* | --libex=* | --libe=*) 1056 libexecdir=$ac_optarg ;; 1057 1058 -localedir | --localedir | --localedi | --localed | --locale) 1059 ac_prev=localedir ;; 1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1061 localedir=$ac_optarg ;; 1062 1063 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1064 | --localstate | --localstat | --localsta | --localst | --locals) 1065 ac_prev=localstatedir ;; 1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1068 localstatedir=$ac_optarg ;; 1069 1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1071 ac_prev=mandir ;; 1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1073 mandir=$ac_optarg ;; 1074 1075 -nfp | --nfp | --nf) 1076 # Obsolete; use --without-fp. 1077 with_fp=no ;; 1078 1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1080 | --no-cr | --no-c | -n) 1081 no_create=yes ;; 1082 1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1085 no_recursion=yes ;; 1086 1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1089 | --oldin | --oldi | --old | --ol | --o) 1090 ac_prev=oldincludedir ;; 1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1094 oldincludedir=$ac_optarg ;; 1095 1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1097 ac_prev=prefix ;; 1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1099 prefix=$ac_optarg ;; 1100 1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1102 | --program-pre | --program-pr | --program-p) 1103 ac_prev=program_prefix ;; 1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1106 program_prefix=$ac_optarg ;; 1107 1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1109 | --program-suf | --program-su | --program-s) 1110 ac_prev=program_suffix ;; 1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1113 program_suffix=$ac_optarg ;; 1114 1115 -program-transform-name | --program-transform-name \ 1116 | --program-transform-nam | --program-transform-na \ 1117 | --program-transform-n | --program-transform- \ 1118 | --program-transform | --program-transfor \ 1119 | --program-transfo | --program-transf \ 1120 | --program-trans | --program-tran \ 1121 | --progr-tra | --program-tr | --program-t) 1122 ac_prev=program_transform_name ;; 1123 -program-transform-name=* | --program-transform-name=* \ 1124 | --program-transform-nam=* | --program-transform-na=* \ 1125 | --program-transform-n=* | --program-transform-=* \ 1126 | --program-transform=* | --program-transfor=* \ 1127 | --program-transfo=* | --program-transf=* \ 1128 | --program-trans=* | --program-tran=* \ 1129 | --progr-tra=* | --program-tr=* | --program-t=*) 1130 program_transform_name=$ac_optarg ;; 1131 1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1133 ac_prev=pdfdir ;; 1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1135 pdfdir=$ac_optarg ;; 1136 1137 -psdir | --psdir | --psdi | --psd | --ps) 1138 ac_prev=psdir ;; 1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1140 psdir=$ac_optarg ;; 1141 1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1143 | -silent | --silent | --silen | --sile | --sil) 1144 silent=yes ;; 1145 1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1147 ac_prev=sbindir ;; 1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1149 | --sbi=* | --sb=*) 1150 sbindir=$ac_optarg ;; 1151 1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1154 | --sharedst | --shareds | --shared | --share | --shar \ 1155 | --sha | --sh) 1156 ac_prev=sharedstatedir ;; 1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1160 | --sha=* | --sh=*) 1161 sharedstatedir=$ac_optarg ;; 1162 1163 -site | --site | --sit) 1164 ac_prev=site ;; 1165 -site=* | --site=* | --sit=*) 1166 site=$ac_optarg ;; 1167 1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1169 ac_prev=srcdir ;; 1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1171 srcdir=$ac_optarg ;; 1172 1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1174 | --syscon | --sysco | --sysc | --sys | --sy) 1175 ac_prev=sysconfdir ;; 1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1178 sysconfdir=$ac_optarg ;; 1179 1180 -target | --target | --targe | --targ | --tar | --ta | --t) 1181 ac_prev=target_alias ;; 1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1183 target_alias=$ac_optarg ;; 1184 1185 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1186 verbose=yes ;; 1187 1188 -version | --version | --versio | --versi | --vers | -V) 1189 ac_init_version=: ;; 1190 1191 -with-* | --with-*) 1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1193 # Reject names that are not valid shell variable names. 1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1195 as_fn_error $? "invalid package name: $ac_useropt" 1196 ac_useropt_orig=$ac_useropt 1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1198 case $ac_user_opts in 1199 *" 1200"with_$ac_useropt" 1201"*) ;; 1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1203 ac_unrecognized_sep=', ';; 1204 esac 1205 eval with_$ac_useropt=\$ac_optarg ;; 1206 1207 -without-* | --without-*) 1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1209 # Reject names that are not valid shell variable names. 1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1211 as_fn_error $? "invalid package name: $ac_useropt" 1212 ac_useropt_orig=$ac_useropt 1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1214 case $ac_user_opts in 1215 *" 1216"with_$ac_useropt" 1217"*) ;; 1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1219 ac_unrecognized_sep=', ';; 1220 esac 1221 eval with_$ac_useropt=no ;; 1222 1223 --x) 1224 # Obsolete; use --with-x. 1225 with_x=yes ;; 1226 1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1228 | --x-incl | --x-inc | --x-in | --x-i) 1229 ac_prev=x_includes ;; 1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1232 x_includes=$ac_optarg ;; 1233 1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1236 ac_prev=x_libraries ;; 1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1239 x_libraries=$ac_optarg ;; 1240 1241 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1242Try \`$0 --help' for more information" 1243 ;; 1244 1245 *=*) 1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1247 # Reject names that are not valid shell variable names. 1248 case $ac_envvar in #( 1249 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1250 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1251 esac 1252 eval $ac_envvar=\$ac_optarg 1253 export $ac_envvar ;; 1254 1255 *) 1256 # FIXME: should be removed in autoconf 3.0. 1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1261 ;; 1262 1263 esac 1264done 1265 1266if test -n "$ac_prev"; then 1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1268 as_fn_error $? "missing argument to $ac_option" 1269fi 1270 1271if test -n "$ac_unrecognized_opts"; then 1272 case $enable_option_checking in 1273 no) ;; 1274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1276 esac 1277fi 1278 1279# Check all directory arguments for consistency. 1280for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1281 datadir sysconfdir sharedstatedir localstatedir includedir \ 1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1283 libdir localedir mandir 1284do 1285 eval ac_val=\$$ac_var 1286 # Remove trailing slashes. 1287 case $ac_val in 1288 */ ) 1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1290 eval $ac_var=\$ac_val;; 1291 esac 1292 # Be sure to have absolute directory names. 1293 case $ac_val in 1294 [\\/$]* | ?:[\\/]* ) continue;; 1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1296 esac 1297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1298done 1299 1300# There might be people who depend on the old broken behavior: `$host' 1301# used to hold the argument of --host etc. 1302# FIXME: To remove some day. 1303build=$build_alias 1304host=$host_alias 1305target=$target_alias 1306 1307# FIXME: To remove some day. 1308if test "x$host_alias" != x; then 1309 if test "x$build_alias" = x; then 1310 cross_compiling=maybe 1311 elif test "x$build_alias" != "x$host_alias"; then 1312 cross_compiling=yes 1313 fi 1314fi 1315 1316ac_tool_prefix= 1317test -n "$host_alias" && ac_tool_prefix=$host_alias- 1318 1319test "$silent" = yes && exec 6>/dev/null 1320 1321 1322ac_pwd=`pwd` && test -n "$ac_pwd" && 1323ac_ls_di=`ls -di .` && 1324ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1325 as_fn_error $? "working directory cannot be determined" 1326test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1327 as_fn_error $? "pwd does not report name of working directory" 1328 1329 1330# Find the source files, if location was not specified. 1331if test -z "$srcdir"; then 1332 ac_srcdir_defaulted=yes 1333 # Try the directory containing this script, then the parent directory. 1334 ac_confdir=`$as_dirname -- "$as_myself" || 1335$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1336 X"$as_myself" : 'X\(//\)[^/]' \| \ 1337 X"$as_myself" : 'X\(//\)$' \| \ 1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1339$as_echo X"$as_myself" | 1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1341 s//\1/ 1342 q 1343 } 1344 /^X\(\/\/\)[^/].*/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\/\)$/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\).*/{ 1353 s//\1/ 1354 q 1355 } 1356 s/.*/./; q'` 1357 srcdir=$ac_confdir 1358 if test ! -r "$srcdir/$ac_unique_file"; then 1359 srcdir=.. 1360 fi 1361else 1362 ac_srcdir_defaulted=no 1363fi 1364if test ! -r "$srcdir/$ac_unique_file"; then 1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1367fi 1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1369ac_abs_confdir=`( 1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1371 pwd)` 1372# When building in place, set srcdir=. 1373if test "$ac_abs_confdir" = "$ac_pwd"; then 1374 srcdir=. 1375fi 1376# Remove unnecessary trailing slashes from srcdir. 1377# Double slashes in file names in object file debugging info 1378# mess up M-x gdb in Emacs. 1379case $srcdir in 1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1381esac 1382for ac_var in $ac_precious_vars; do 1383 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1384 eval ac_env_${ac_var}_value=\$${ac_var} 1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1386 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1387done 1388 1389# 1390# Report the --help message. 1391# 1392if test "$ac_init_help" = "long"; then 1393 # Omit some internal or obsolete options to make the list less imposing. 1394 # This message is too long to be a string in the A/UX 3.1 sh. 1395 cat <<_ACEOF 1396\`configure' configures unbound 1.5.7 to adapt to many kinds of systems. 1397 1398Usage: $0 [OPTION]... [VAR=VALUE]... 1399 1400To assign environment variables (e.g., CC, CFLAGS...), specify them as 1401VAR=VALUE. See below for descriptions of some of the useful variables. 1402 1403Defaults for the options are specified in brackets. 1404 1405Configuration: 1406 -h, --help display this help and exit 1407 --help=short display options specific to this package 1408 --help=recursive display the short help of all the included packages 1409 -V, --version display version information and exit 1410 -q, --quiet, --silent do not print \`checking ...' messages 1411 --cache-file=FILE cache test results in FILE [disabled] 1412 -C, --config-cache alias for \`--cache-file=config.cache' 1413 -n, --no-create do not create output files 1414 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1415 1416Installation directories: 1417 --prefix=PREFIX install architecture-independent files in PREFIX 1418 [$ac_default_prefix] 1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1420 [PREFIX] 1421 1422By default, \`make install' will install all the files in 1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1424an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1425for instance \`--prefix=\$HOME'. 1426 1427For better control, use the options below. 1428 1429Fine tuning of the installation directories: 1430 --bindir=DIR user executables [EPREFIX/bin] 1431 --sbindir=DIR system admin executables [EPREFIX/sbin] 1432 --libexecdir=DIR program executables [EPREFIX/libexec] 1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1436 --libdir=DIR object code libraries [EPREFIX/lib] 1437 --includedir=DIR C header files [PREFIX/include] 1438 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1441 --infodir=DIR info documentation [DATAROOTDIR/info] 1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1443 --mandir=DIR man documentation [DATAROOTDIR/man] 1444 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound] 1445 --htmldir=DIR html documentation [DOCDIR] 1446 --dvidir=DIR dvi documentation [DOCDIR] 1447 --pdfdir=DIR pdf documentation [DOCDIR] 1448 --psdir=DIR ps documentation [DOCDIR] 1449_ACEOF 1450 1451 cat <<\_ACEOF 1452 1453System types: 1454 --build=BUILD configure for building on BUILD [guessed] 1455 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1456_ACEOF 1457fi 1458 1459if test -n "$ac_init_help"; then 1460 case $ac_init_help in 1461 short | recursive ) echo "Configuration of unbound 1.5.7:";; 1462 esac 1463 cat <<\_ACEOF 1464 1465Optional Features: 1466 --disable-option-checking ignore unrecognized --enable/--with options 1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1469 --enable-checking Enable warnings, asserts, makefile-dependencies 1470 --enable-debug same as enable-checking 1471 --disable-flto Disable link-time optimization (gcc specific option) 1472 --enable-pie Enable Position-Independent Executable (eg. to fully 1473 benefit from ASLR, small performance penalty) 1474 --enable-relro-now Enable full relocation binding at load-time (RELRO 1475 NOW, to protect GOT and .dtor areas) 1476 --enable-shared[=PKGS] build shared libraries [default=yes] 1477 --enable-static[=PKGS] build static libraries [default=yes] 1478 --enable-fast-install[=PKGS] 1479 optimize for fast installation [default=yes] 1480 --disable-libtool-lock avoid locking (might break parallel builds) 1481 --disable-rpath disable hardcoded rpath (default=enabled) 1482 --disable-largefile omit support for large files 1483 --enable-alloc-checks enable to memory allocation statistics, for debug 1484 purposes 1485 --enable-alloc-lite enable for lightweight alloc assertions, for debug 1486 purposes 1487 --enable-alloc-nonregional 1488 enable nonregional allocs, slow but exposes regional 1489 allocations to other memory purifiers, for debug 1490 purposes 1491 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1492 --disable-gost Disable GOST support 1493 --disable-ecdsa Disable ECDSA support 1494 --enable-event-api Enable (experimental) libevent-based libunbound API 1495 installed to unbound-event.h 1496 --enable-static-exe enable to compile executables statically against 1497 (event) libs, for debug purposes 1498 --enable-lock-checks enable to check lock and unlock calls, for debug 1499 purposes 1500 --enable-allsymbols export all symbols from libunbound and link binaries 1501 to it, smaller install size but libunbound export 1502 table is polluted by internal symbols 1503 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c) 1504 1505Optional Packages: 1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1508 --with-conf-file=path Pathname to the Unbound configuration file 1509 --with-run-dir=path set default directory to chdir to (by default dir 1510 part of cfg file) 1511 --with-chroot-dir=path set default directory to chroot to (by default same 1512 as run-dir) 1513 --with-share-dir=path set default directory with shared data (by default 1514 same as share/unbound) 1515 --with-pidfile=filename set default pathname to unbound pidfile (default 1516 run-dir/unbound.pid) 1517 --with-rootkey-file=filename 1518 set default pathname to root key file (default 1519 run-dir/root.key). This file is read and written. 1520 --with-rootcert-file=filename 1521 set default pathname to root update certificate file 1522 (default run-dir/icannbundle.pem). This file need 1523 not exist if you are content with the builtin. 1524 --with-username=user set default user that unbound changes to (default 1525 user is unbound) 1526 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1527 both] 1528 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1529 --with-sysroot=DIR Search for dependent libraries within DIR 1530 (or the compiler's sysroot if not specified). 1531 --with-pthreads use pthreads library, or --without-pthreads to 1532 disable threading support. 1533 --with-solaris-threads use solaris native thread library. 1534 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it. 1535 (default=no) 1536 --with-pythonmodule build Python module, or --without-pythonmodule to 1537 disable script engine. (default=no) 1538 --with-nss=path use libnss instead of openssl, installed at path. 1539 --with-nettle=path use libnettle as crypto library, installed at path. 1540 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1541 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1542 /usr) 1543 --with-libevent=pathname 1544 use libevent (will check /usr/local /opt/local 1545 /usr/lib /usr/pkg /usr/sfw /usr or you can specify 1546 an explicit path). Slower, but allows use of large 1547 outgoing port ranges. 1548 --with-libexpat=path specify explicit path for libexpat. 1549 --with-dnstap-socket-path=pathname 1550 set default dnstap socket path 1551 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap 1552 --with-libfstrm=path Path where libfstrm is installed, for dnstap 1553 --with-libunbound-only do not build daemon and tool programs 1554 1555Some influential environment variables: 1556 CC C compiler command 1557 CFLAGS C compiler flags 1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1559 nonstandard directory <lib dir> 1560 LIBS libraries to pass to the linker, e.g. -l<library> 1561 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1562 you have headers in a nonstandard directory <include dir> 1563 CPP C preprocessor 1564 YACC The `Yet Another Compiler Compiler' implementation to use. 1565 Defaults to the first program found out of: `bison -y', `byacc', 1566 `yacc'. 1567 YFLAGS The list of arguments that will be passed by default to $YACC. 1568 This script will default YFLAGS to the empty string to avoid a 1569 default value of `-d' given by some make applications. 1570 PYTHON_VERSION 1571 The installed Python version to use, for example '2.3'. This 1572 string will be appended to the Python interpreter canonical 1573 name. 1574 1575Use these variables to override the choices made by `configure' or to help 1576it to find libraries and programs with nonstandard names/locations. 1577 1578Report bugs to <unbound-bugs@nlnetlabs.nl>. 1579_ACEOF 1580ac_status=$? 1581fi 1582 1583if test "$ac_init_help" = "recursive"; then 1584 # If there are subdirs, report their specific --help. 1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1586 test -d "$ac_dir" || 1587 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1588 continue 1589 ac_builddir=. 1590 1591case "$ac_dir" in 1592.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1593*) 1594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1595 # A ".." for each directory in $ac_dir_suffix. 1596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1597 case $ac_top_builddir_sub in 1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1600 esac ;; 1601esac 1602ac_abs_top_builddir=$ac_pwd 1603ac_abs_builddir=$ac_pwd$ac_dir_suffix 1604# for backward compatibility: 1605ac_top_builddir=$ac_top_build_prefix 1606 1607case $srcdir in 1608 .) # We are building in place. 1609 ac_srcdir=. 1610 ac_top_srcdir=$ac_top_builddir_sub 1611 ac_abs_top_srcdir=$ac_pwd ;; 1612 [\\/]* | ?:[\\/]* ) # Absolute name. 1613 ac_srcdir=$srcdir$ac_dir_suffix; 1614 ac_top_srcdir=$srcdir 1615 ac_abs_top_srcdir=$srcdir ;; 1616 *) # Relative name. 1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1618 ac_top_srcdir=$ac_top_build_prefix$srcdir 1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1620esac 1621ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1622 1623 cd "$ac_dir" || { ac_status=$?; continue; } 1624 # Check for guested configure. 1625 if test -f "$ac_srcdir/configure.gnu"; then 1626 echo && 1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1628 elif test -f "$ac_srcdir/configure"; then 1629 echo && 1630 $SHELL "$ac_srcdir/configure" --help=recursive 1631 else 1632 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1633 fi || ac_status=$? 1634 cd "$ac_pwd" || { ac_status=$?; break; } 1635 done 1636fi 1637 1638test -n "$ac_init_help" && exit $ac_status 1639if $ac_init_version; then 1640 cat <<\_ACEOF 1641unbound configure 1.5.7 1642generated by GNU Autoconf 2.69 1643 1644Copyright (C) 2012 Free Software Foundation, Inc. 1645This configure script is free software; the Free Software Foundation 1646gives unlimited permission to copy, distribute and modify it. 1647_ACEOF 1648 exit 1649fi 1650 1651## ------------------------ ## 1652## Autoconf initialization. ## 1653## ------------------------ ## 1654 1655# ac_fn_c_try_compile LINENO 1656# -------------------------- 1657# Try to compile conftest.$ac_ext, and return whether this succeeded. 1658ac_fn_c_try_compile () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 rm -f conftest.$ac_objext 1662 if { { ac_try="$ac_compile" 1663case "(($ac_try" in 1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1665 *) ac_try_echo=$ac_try;; 1666esac 1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1668$as_echo "$ac_try_echo"; } >&5 1669 (eval "$ac_compile") 2>conftest.err 1670 ac_status=$? 1671 if test -s conftest.err; then 1672 grep -v '^ *+' conftest.err >conftest.er1 1673 cat conftest.er1 >&5 1674 mv -f conftest.er1 conftest.err 1675 fi 1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1677 test $ac_status = 0; } && { 1678 test -z "$ac_c_werror_flag" || 1679 test ! -s conftest.err 1680 } && test -s conftest.$ac_objext; then : 1681 ac_retval=0 1682else 1683 $as_echo "$as_me: failed program was:" >&5 1684sed 's/^/| /' conftest.$ac_ext >&5 1685 1686 ac_retval=1 1687fi 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689 as_fn_set_status $ac_retval 1690 1691} # ac_fn_c_try_compile 1692 1693# ac_fn_c_try_cpp LINENO 1694# ---------------------- 1695# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1696ac_fn_c_try_cpp () 1697{ 1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1699 if { { ac_try="$ac_cpp conftest.$ac_ext" 1700case "(($ac_try" in 1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1702 *) ac_try_echo=$ac_try;; 1703esac 1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1705$as_echo "$ac_try_echo"; } >&5 1706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1707 ac_status=$? 1708 if test -s conftest.err; then 1709 grep -v '^ *+' conftest.err >conftest.er1 1710 cat conftest.er1 >&5 1711 mv -f conftest.er1 conftest.err 1712 fi 1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1714 test $ac_status = 0; } > conftest.i && { 1715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1716 test ! -s conftest.err 1717 }; then : 1718 ac_retval=0 1719else 1720 $as_echo "$as_me: failed program was:" >&5 1721sed 's/^/| /' conftest.$ac_ext >&5 1722 1723 ac_retval=1 1724fi 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1726 as_fn_set_status $ac_retval 1727 1728} # ac_fn_c_try_cpp 1729 1730# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1731# ------------------------------------------------------- 1732# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1733# the include files in INCLUDES and setting the cache variable VAR 1734# accordingly. 1735ac_fn_c_check_header_mongrel () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 if eval \${$3+:} false; then : 1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1740$as_echo_n "checking for $2... " >&6; } 1741if eval \${$3+:} false; then : 1742 $as_echo_n "(cached) " >&6 1743fi 1744eval ac_res=\$$3 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1746$as_echo "$ac_res" >&6; } 1747else 1748 # Is the header compilable? 1749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1750$as_echo_n "checking $2 usability... " >&6; } 1751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1752/* end confdefs.h. */ 1753$4 1754#include <$2> 1755_ACEOF 1756if ac_fn_c_try_compile "$LINENO"; then : 1757 ac_header_compiler=yes 1758else 1759 ac_header_compiler=no 1760fi 1761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1763$as_echo "$ac_header_compiler" >&6; } 1764 1765# Is the header present? 1766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1767$as_echo_n "checking $2 presence... " >&6; } 1768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1769/* end confdefs.h. */ 1770#include <$2> 1771_ACEOF 1772if ac_fn_c_try_cpp "$LINENO"; then : 1773 ac_header_preproc=yes 1774else 1775 ac_header_preproc=no 1776fi 1777rm -f conftest.err conftest.i conftest.$ac_ext 1778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1779$as_echo "$ac_header_preproc" >&6; } 1780 1781# So? What about this header? 1782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1783 yes:no: ) 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1785$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1787$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1788 ;; 1789 no:yes:* ) 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1791$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1793$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1795$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1797$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1799$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1800( $as_echo "## ---------------------------------------- ## 1801## Report this to unbound-bugs@nlnetlabs.nl ## 1802## ---------------------------------------- ##" 1803 ) | sed "s/^/$as_me: WARNING: /" >&2 1804 ;; 1805esac 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1807$as_echo_n "checking for $2... " >&6; } 1808if eval \${$3+:} false; then : 1809 $as_echo_n "(cached) " >&6 1810else 1811 eval "$3=\$ac_header_compiler" 1812fi 1813eval ac_res=\$$3 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1815$as_echo "$ac_res" >&6; } 1816fi 1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1818 1819} # ac_fn_c_check_header_mongrel 1820 1821# ac_fn_c_try_run LINENO 1822# ---------------------- 1823# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1824# that executables *can* be run. 1825ac_fn_c_try_run () 1826{ 1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1828 if { { ac_try="$ac_link" 1829case "(($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_link") 2>&5 1836 ac_status=$? 1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1839 { { case "(($ac_try" in 1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1841 *) ac_try_echo=$ac_try;; 1842esac 1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1844$as_echo "$ac_try_echo"; } >&5 1845 (eval "$ac_try") 2>&5 1846 ac_status=$? 1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1848 test $ac_status = 0; }; }; then : 1849 ac_retval=0 1850else 1851 $as_echo "$as_me: program exited with status $ac_status" >&5 1852 $as_echo "$as_me: failed program was:" >&5 1853sed 's/^/| /' conftest.$ac_ext >&5 1854 1855 ac_retval=$ac_status 1856fi 1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1859 as_fn_set_status $ac_retval 1860 1861} # ac_fn_c_try_run 1862 1863# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1864# ------------------------------------------------------- 1865# Tests whether HEADER exists and can be compiled using the include files in 1866# INCLUDES, setting the cache variable VAR accordingly. 1867ac_fn_c_check_header_compile () 1868{ 1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1871$as_echo_n "checking for $2... " >&6; } 1872if eval \${$3+:} false; then : 1873 $as_echo_n "(cached) " >&6 1874else 1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1876/* end confdefs.h. */ 1877$4 1878#include <$2> 1879_ACEOF 1880if ac_fn_c_try_compile "$LINENO"; then : 1881 eval "$3=yes" 1882else 1883 eval "$3=no" 1884fi 1885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1886fi 1887eval ac_res=\$$3 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1889$as_echo "$ac_res" >&6; } 1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1891 1892} # ac_fn_c_check_header_compile 1893 1894# ac_fn_c_try_link LINENO 1895# ----------------------- 1896# Try to link conftest.$ac_ext, and return whether this succeeded. 1897ac_fn_c_try_link () 1898{ 1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1900 rm -f conftest.$ac_objext conftest$ac_exeext 1901 if { { ac_try="$ac_link" 1902case "(($ac_try" in 1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1904 *) ac_try_echo=$ac_try;; 1905esac 1906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1907$as_echo "$ac_try_echo"; } >&5 1908 (eval "$ac_link") 2>conftest.err 1909 ac_status=$? 1910 if test -s conftest.err; then 1911 grep -v '^ *+' conftest.err >conftest.er1 1912 cat conftest.er1 >&5 1913 mv -f conftest.er1 conftest.err 1914 fi 1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1916 test $ac_status = 0; } && { 1917 test -z "$ac_c_werror_flag" || 1918 test ! -s conftest.err 1919 } && test -s conftest$ac_exeext && { 1920 test "$cross_compiling" = yes || 1921 test -x conftest$ac_exeext 1922 }; then : 1923 ac_retval=0 1924else 1925 $as_echo "$as_me: failed program was:" >&5 1926sed 's/^/| /' conftest.$ac_ext >&5 1927 1928 ac_retval=1 1929fi 1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1932 # interfere with the next link command; also delete a directory that is 1933 # left behind by Apple's compiler. We do this before executing the actions. 1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1936 as_fn_set_status $ac_retval 1937 1938} # ac_fn_c_try_link 1939 1940# ac_fn_c_check_func LINENO FUNC VAR 1941# ---------------------------------- 1942# Tests whether FUNC exists, setting the cache variable VAR accordingly 1943ac_fn_c_check_func () 1944{ 1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1947$as_echo_n "checking for $2... " >&6; } 1948if eval \${$3+:} false; then : 1949 $as_echo_n "(cached) " >&6 1950else 1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1952/* end confdefs.h. */ 1953/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1954 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1955#define $2 innocuous_$2 1956 1957/* System header to define __stub macros and hopefully few prototypes, 1958 which can conflict with char $2 (); below. 1959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1960 <limits.h> exists even on freestanding compilers. */ 1961 1962#ifdef __STDC__ 1963# include <limits.h> 1964#else 1965# include <assert.h> 1966#endif 1967 1968#undef $2 1969 1970/* Override any GCC internal prototype to avoid an error. 1971 Use char because int might match the return type of a GCC 1972 builtin and then its argument prototype would still apply. */ 1973#ifdef __cplusplus 1974extern "C" 1975#endif 1976char $2 (); 1977/* The GNU C library defines this for functions which it implements 1978 to always fail with ENOSYS. Some functions are actually named 1979 something starting with __ and the normal name is an alias. */ 1980#if defined __stub_$2 || defined __stub___$2 1981choke me 1982#endif 1983 1984int 1985main () 1986{ 1987return $2 (); 1988 ; 1989 return 0; 1990} 1991_ACEOF 1992if ac_fn_c_try_link "$LINENO"; then : 1993 eval "$3=yes" 1994else 1995 eval "$3=no" 1996fi 1997rm -f core conftest.err conftest.$ac_objext \ 1998 conftest$ac_exeext conftest.$ac_ext 1999fi 2000eval ac_res=\$$3 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2002$as_echo "$ac_res" >&6; } 2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2004 2005} # ac_fn_c_check_func 2006 2007# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2008# ------------------------------------------- 2009# Tests whether TYPE exists after having included INCLUDES, setting cache 2010# variable VAR accordingly. 2011ac_fn_c_check_type () 2012{ 2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2015$as_echo_n "checking for $2... " >&6; } 2016if eval \${$3+:} false; then : 2017 $as_echo_n "(cached) " >&6 2018else 2019 eval "$3=no" 2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2021/* end confdefs.h. */ 2022$4 2023int 2024main () 2025{ 2026if (sizeof ($2)) 2027 return 0; 2028 ; 2029 return 0; 2030} 2031_ACEOF 2032if ac_fn_c_try_compile "$LINENO"; then : 2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2034/* end confdefs.h. */ 2035$4 2036int 2037main () 2038{ 2039if (sizeof (($2))) 2040 return 0; 2041 ; 2042 return 0; 2043} 2044_ACEOF 2045if ac_fn_c_try_compile "$LINENO"; then : 2046 2047else 2048 eval "$3=yes" 2049fi 2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2051fi 2052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2053fi 2054eval ac_res=\$$3 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2056$as_echo "$ac_res" >&6; } 2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2058 2059} # ac_fn_c_check_type 2060 2061# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2062# -------------------------------------------- 2063# Tries to find the compile-time value of EXPR in a program that includes 2064# INCLUDES, setting VAR accordingly. Returns whether the value could be 2065# computed 2066ac_fn_c_compute_int () 2067{ 2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2069 if test "$cross_compiling" = yes; then 2070 # Depending upon the size, compute the lo and hi bounds. 2071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2072/* end confdefs.h. */ 2073$4 2074int 2075main () 2076{ 2077static int test_array [1 - 2 * !(($2) >= 0)]; 2078test_array [0] = 0; 2079return test_array [0]; 2080 2081 ; 2082 return 0; 2083} 2084_ACEOF 2085if ac_fn_c_try_compile "$LINENO"; then : 2086 ac_lo=0 ac_mid=0 2087 while :; do 2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2089/* end confdefs.h. */ 2090$4 2091int 2092main () 2093{ 2094static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2095test_array [0] = 0; 2096return test_array [0]; 2097 2098 ; 2099 return 0; 2100} 2101_ACEOF 2102if ac_fn_c_try_compile "$LINENO"; then : 2103 ac_hi=$ac_mid; break 2104else 2105 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2106 if test $ac_lo -le $ac_mid; then 2107 ac_lo= ac_hi= 2108 break 2109 fi 2110 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2111fi 2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2113 done 2114else 2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2116/* end confdefs.h. */ 2117$4 2118int 2119main () 2120{ 2121static int test_array [1 - 2 * !(($2) < 0)]; 2122test_array [0] = 0; 2123return test_array [0]; 2124 2125 ; 2126 return 0; 2127} 2128_ACEOF 2129if ac_fn_c_try_compile "$LINENO"; then : 2130 ac_hi=-1 ac_mid=-1 2131 while :; do 2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2133/* end confdefs.h. */ 2134$4 2135int 2136main () 2137{ 2138static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2139test_array [0] = 0; 2140return test_array [0]; 2141 2142 ; 2143 return 0; 2144} 2145_ACEOF 2146if ac_fn_c_try_compile "$LINENO"; then : 2147 ac_lo=$ac_mid; break 2148else 2149 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2150 if test $ac_mid -le $ac_hi; then 2151 ac_lo= ac_hi= 2152 break 2153 fi 2154 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2155fi 2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2157 done 2158else 2159 ac_lo= ac_hi= 2160fi 2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2162fi 2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2164# Binary search between lo and hi bounds. 2165while test "x$ac_lo" != "x$ac_hi"; do 2166 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2168/* end confdefs.h. */ 2169$4 2170int 2171main () 2172{ 2173static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2174test_array [0] = 0; 2175return test_array [0]; 2176 2177 ; 2178 return 0; 2179} 2180_ACEOF 2181if ac_fn_c_try_compile "$LINENO"; then : 2182 ac_hi=$ac_mid 2183else 2184 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2185fi 2186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2187done 2188case $ac_lo in #(( 2189?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2190'') ac_retval=1 ;; 2191esac 2192 else 2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2194/* end confdefs.h. */ 2195$4 2196static long int longval () { return $2; } 2197static unsigned long int ulongval () { return $2; } 2198#include <stdio.h> 2199#include <stdlib.h> 2200int 2201main () 2202{ 2203 2204 FILE *f = fopen ("conftest.val", "w"); 2205 if (! f) 2206 return 1; 2207 if (($2) < 0) 2208 { 2209 long int i = longval (); 2210 if (i != ($2)) 2211 return 1; 2212 fprintf (f, "%ld", i); 2213 } 2214 else 2215 { 2216 unsigned long int i = ulongval (); 2217 if (i != ($2)) 2218 return 1; 2219 fprintf (f, "%lu", i); 2220 } 2221 /* Do not output a trailing newline, as this causes \r\n confusion 2222 on some platforms. */ 2223 return ferror (f) || fclose (f) != 0; 2224 2225 ; 2226 return 0; 2227} 2228_ACEOF 2229if ac_fn_c_try_run "$LINENO"; then : 2230 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2231else 2232 ac_retval=1 2233fi 2234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2235 conftest.$ac_objext conftest.beam conftest.$ac_ext 2236rm -f conftest.val 2237 2238 fi 2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2240 as_fn_set_status $ac_retval 2241 2242} # ac_fn_c_compute_int 2243 2244# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2245# --------------------------------------------- 2246# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2247# accordingly. 2248ac_fn_c_check_decl () 2249{ 2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2251 as_decl_name=`echo $2|sed 's/ *(.*//'` 2252 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2254$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2255if eval \${$3+:} false; then : 2256 $as_echo_n "(cached) " >&6 2257else 2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2259/* end confdefs.h. */ 2260$4 2261int 2262main () 2263{ 2264#ifndef $as_decl_name 2265#ifdef __cplusplus 2266 (void) $as_decl_use; 2267#else 2268 (void) $as_decl_name; 2269#endif 2270#endif 2271 2272 ; 2273 return 0; 2274} 2275_ACEOF 2276if ac_fn_c_try_compile "$LINENO"; then : 2277 eval "$3=yes" 2278else 2279 eval "$3=no" 2280fi 2281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2282fi 2283eval ac_res=\$$3 2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2285$as_echo "$ac_res" >&6; } 2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2287 2288} # ac_fn_c_check_decl 2289 2290# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2291# ---------------------------------------------------- 2292# Tries to find if the field MEMBER exists in type AGGR, after including 2293# INCLUDES, setting cache variable VAR accordingly. 2294ac_fn_c_check_member () 2295{ 2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2298$as_echo_n "checking for $2.$3... " >&6; } 2299if eval \${$4+:} false; then : 2300 $as_echo_n "(cached) " >&6 2301else 2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2303/* end confdefs.h. */ 2304$5 2305int 2306main () 2307{ 2308static $2 ac_aggr; 2309if (ac_aggr.$3) 2310return 0; 2311 ; 2312 return 0; 2313} 2314_ACEOF 2315if ac_fn_c_try_compile "$LINENO"; then : 2316 eval "$4=yes" 2317else 2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2319/* end confdefs.h. */ 2320$5 2321int 2322main () 2323{ 2324static $2 ac_aggr; 2325if (sizeof ac_aggr.$3) 2326return 0; 2327 ; 2328 return 0; 2329} 2330_ACEOF 2331if ac_fn_c_try_compile "$LINENO"; then : 2332 eval "$4=yes" 2333else 2334 eval "$4=no" 2335fi 2336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2337fi 2338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2339fi 2340eval ac_res=\$$4 2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2342$as_echo "$ac_res" >&6; } 2343 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2344 2345} # ac_fn_c_check_member 2346cat >config.log <<_ACEOF 2347This file contains any messages produced by compilers while 2348running configure, to aid debugging if configure makes a mistake. 2349 2350It was created by unbound $as_me 1.5.7, which was 2351generated by GNU Autoconf 2.69. Invocation command line was 2352 2353 $ $0 $@ 2354 2355_ACEOF 2356exec 5>>config.log 2357{ 2358cat <<_ASUNAME 2359## --------- ## 2360## Platform. ## 2361## --------- ## 2362 2363hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2364uname -m = `(uname -m) 2>/dev/null || echo unknown` 2365uname -r = `(uname -r) 2>/dev/null || echo unknown` 2366uname -s = `(uname -s) 2>/dev/null || echo unknown` 2367uname -v = `(uname -v) 2>/dev/null || echo unknown` 2368 2369/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2370/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2371 2372/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2373/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2374/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2375/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2376/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2377/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2378/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2379 2380_ASUNAME 2381 2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2383for as_dir in $PATH 2384do 2385 IFS=$as_save_IFS 2386 test -z "$as_dir" && as_dir=. 2387 $as_echo "PATH: $as_dir" 2388 done 2389IFS=$as_save_IFS 2390 2391} >&5 2392 2393cat >&5 <<_ACEOF 2394 2395 2396## ----------- ## 2397## Core tests. ## 2398## ----------- ## 2399 2400_ACEOF 2401 2402 2403# Keep a trace of the command line. 2404# Strip out --no-create and --no-recursion so they do not pile up. 2405# Strip out --silent because we don't want to record it for future runs. 2406# Also quote any args containing shell meta-characters. 2407# Make two passes to allow for proper duplicate-argument suppression. 2408ac_configure_args= 2409ac_configure_args0= 2410ac_configure_args1= 2411ac_must_keep_next=false 2412for ac_pass in 1 2 2413do 2414 for ac_arg 2415 do 2416 case $ac_arg in 2417 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2418 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2419 | -silent | --silent | --silen | --sile | --sil) 2420 continue ;; 2421 *\'*) 2422 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2423 esac 2424 case $ac_pass in 2425 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2426 2) 2427 as_fn_append ac_configure_args1 " '$ac_arg'" 2428 if test $ac_must_keep_next = true; then 2429 ac_must_keep_next=false # Got value, back to normal. 2430 else 2431 case $ac_arg in 2432 *=* | --config-cache | -C | -disable-* | --disable-* \ 2433 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2434 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2435 | -with-* | --with-* | -without-* | --without-* | --x) 2436 case "$ac_configure_args0 " in 2437 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2438 esac 2439 ;; 2440 -* ) ac_must_keep_next=true ;; 2441 esac 2442 fi 2443 as_fn_append ac_configure_args " '$ac_arg'" 2444 ;; 2445 esac 2446 done 2447done 2448{ ac_configure_args0=; unset ac_configure_args0;} 2449{ ac_configure_args1=; unset ac_configure_args1;} 2450 2451# When interrupted or exit'd, cleanup temporary files, and complete 2452# config.log. We remove comments because anyway the quotes in there 2453# would cause problems or look ugly. 2454# WARNING: Use '\'' to represent an apostrophe within the trap. 2455# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2456trap 'exit_status=$? 2457 # Save into config.log some information that might help in debugging. 2458 { 2459 echo 2460 2461 $as_echo "## ---------------- ## 2462## Cache variables. ## 2463## ---------------- ##" 2464 echo 2465 # The following way of writing the cache mishandles newlines in values, 2466( 2467 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2468 eval ac_val=\$$ac_var 2469 case $ac_val in #( 2470 *${as_nl}*) 2471 case $ac_var in #( 2472 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2473$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2474 esac 2475 case $ac_var in #( 2476 _ | IFS | as_nl) ;; #( 2477 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2478 *) { eval $ac_var=; unset $ac_var;} ;; 2479 esac ;; 2480 esac 2481 done 2482 (set) 2>&1 | 2483 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2484 *${as_nl}ac_space=\ *) 2485 sed -n \ 2486 "s/'\''/'\''\\\\'\'''\''/g; 2487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2488 ;; #( 2489 *) 2490 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2491 ;; 2492 esac | 2493 sort 2494) 2495 echo 2496 2497 $as_echo "## ----------------- ## 2498## Output variables. ## 2499## ----------------- ##" 2500 echo 2501 for ac_var in $ac_subst_vars 2502 do 2503 eval ac_val=\$$ac_var 2504 case $ac_val in 2505 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2506 esac 2507 $as_echo "$ac_var='\''$ac_val'\''" 2508 done | sort 2509 echo 2510 2511 if test -n "$ac_subst_files"; then 2512 $as_echo "## ------------------- ## 2513## File substitutions. ## 2514## ------------------- ##" 2515 echo 2516 for ac_var in $ac_subst_files 2517 do 2518 eval ac_val=\$$ac_var 2519 case $ac_val in 2520 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2521 esac 2522 $as_echo "$ac_var='\''$ac_val'\''" 2523 done | sort 2524 echo 2525 fi 2526 2527 if test -s confdefs.h; then 2528 $as_echo "## ----------- ## 2529## confdefs.h. ## 2530## ----------- ##" 2531 echo 2532 cat confdefs.h 2533 echo 2534 fi 2535 test "$ac_signal" != 0 && 2536 $as_echo "$as_me: caught signal $ac_signal" 2537 $as_echo "$as_me: exit $exit_status" 2538 } >&5 2539 rm -f core *.core core.conftest.* && 2540 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2541 exit $exit_status 2542' 0 2543for ac_signal in 1 2 13 15; do 2544 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2545done 2546ac_signal=0 2547 2548# confdefs.h avoids OS command line length limits that DEFS can exceed. 2549rm -f -r conftest* confdefs.h 2550 2551$as_echo "/* confdefs.h */" > confdefs.h 2552 2553# Predefined preprocessor variables. 2554 2555cat >>confdefs.h <<_ACEOF 2556#define PACKAGE_NAME "$PACKAGE_NAME" 2557_ACEOF 2558 2559cat >>confdefs.h <<_ACEOF 2560#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2561_ACEOF 2562 2563cat >>confdefs.h <<_ACEOF 2564#define PACKAGE_VERSION "$PACKAGE_VERSION" 2565_ACEOF 2566 2567cat >>confdefs.h <<_ACEOF 2568#define PACKAGE_STRING "$PACKAGE_STRING" 2569_ACEOF 2570 2571cat >>confdefs.h <<_ACEOF 2572#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2573_ACEOF 2574 2575cat >>confdefs.h <<_ACEOF 2576#define PACKAGE_URL "$PACKAGE_URL" 2577_ACEOF 2578 2579 2580# Let the site file select an alternate cache file if it wants to. 2581# Prefer an explicitly selected file to automatically selected ones. 2582ac_site_file1=NONE 2583ac_site_file2=NONE 2584if test -n "$CONFIG_SITE"; then 2585 # We do not want a PATH search for config.site. 2586 case $CONFIG_SITE in #(( 2587 -*) ac_site_file1=./$CONFIG_SITE;; 2588 */*) ac_site_file1=$CONFIG_SITE;; 2589 *) ac_site_file1=./$CONFIG_SITE;; 2590 esac 2591elif test "x$prefix" != xNONE; then 2592 ac_site_file1=$prefix/share/config.site 2593 ac_site_file2=$prefix/etc/config.site 2594else 2595 ac_site_file1=$ac_default_prefix/share/config.site 2596 ac_site_file2=$ac_default_prefix/etc/config.site 2597fi 2598for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2599do 2600 test "x$ac_site_file" = xNONE && continue 2601 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2603$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2604 sed 's/^/| /' "$ac_site_file" >&5 2605 . "$ac_site_file" \ 2606 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2608as_fn_error $? "failed to load site script $ac_site_file 2609See \`config.log' for more details" "$LINENO" 5; } 2610 fi 2611done 2612 2613if test -r "$cache_file"; then 2614 # Some versions of bash will fail to source /dev/null (special files 2615 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2616 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2617 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2618$as_echo "$as_me: loading cache $cache_file" >&6;} 2619 case $cache_file in 2620 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2621 *) . "./$cache_file";; 2622 esac 2623 fi 2624else 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2626$as_echo "$as_me: creating cache $cache_file" >&6;} 2627 >$cache_file 2628fi 2629 2630# Check that the precious variables saved in the cache have kept the same 2631# value. 2632ac_cache_corrupted=false 2633for ac_var in $ac_precious_vars; do 2634 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2635 eval ac_new_set=\$ac_env_${ac_var}_set 2636 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2637 eval ac_new_val=\$ac_env_${ac_var}_value 2638 case $ac_old_set,$ac_new_set in 2639 set,) 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2641$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2642 ac_cache_corrupted=: ;; 2643 ,set) 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2645$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2646 ac_cache_corrupted=: ;; 2647 ,);; 2648 *) 2649 if test "x$ac_old_val" != "x$ac_new_val"; then 2650 # differences in whitespace do not lead to failure. 2651 ac_old_val_w=`echo x $ac_old_val` 2652 ac_new_val_w=`echo x $ac_new_val` 2653 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2655$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2656 ac_cache_corrupted=: 2657 else 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2659$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2660 eval $ac_var=\$ac_old_val 2661 fi 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2663$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2665$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2666 fi;; 2667 esac 2668 # Pass precious variables to config.status. 2669 if test "$ac_new_set" = set; then 2670 case $ac_new_val in 2671 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2672 *) ac_arg=$ac_var=$ac_new_val ;; 2673 esac 2674 case " $ac_configure_args " in 2675 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2676 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2677 esac 2678 fi 2679done 2680if $ac_cache_corrupted; then 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2684$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2685 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2686fi 2687## -------------------- ## 2688## Main body of script. ## 2689## -------------------- ## 2690 2691ac_ext=c 2692ac_cpp='$CPP $CPPFLAGS' 2693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2695ac_compiler_gnu=$ac_cv_c_compiler_gnu 2696 2697 2698UNBOUND_VERSION_MAJOR=1 2699 2700UNBOUND_VERSION_MINOR=5 2701 2702UNBOUND_VERSION_MICRO=7 2703 2704 2705LIBUNBOUND_CURRENT=5 2706LIBUNBOUND_REVISION=10 2707LIBUNBOUND_AGE=3 2708# 1.0.0 had 0:12:0 2709# 1.0.1 had 0:13:0 2710# 1.0.2 had 0:14:0 2711# 1.1.0 had 0:15:0 2712# 1.1.1 had 0:16:0 2713# 1.2.0 had 0:17:0 2714# 1.2.1 had 0:18:0 2715# 1.3.0 had 1:0:0 # ub_cancel and -export-symbols. 2716# 1.3.1 had 1:1:0 2717# 1.3.2 had 1:2:0 2718# 1.3.3 had 1:3:0 2719# 1.3.4 had 1:4:0 2720# 1.4.0-snapshots had 1:5:0 2721# 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus 2722# 1.4.1 had 2:1:0 2723# 1.4.2 had 2:2:0 2724# 1.4.3 had 2:3:0 2725# 1.4.4 had 2:4:0 2726# 1.4.5 had 2:5:0 2727# 1.4.6 had 2:6:0 2728# 1.4.7 had 2:7:0 2729# 1.4.8 had 2:8:0 2730# 1.4.9 had 2:9:0 2731# 1.4.10 had 2:10:0 2732# 1.4.11 had 2:11:0 2733# 1.4.12 had 2:12:0 2734# 1.4.13 had 2:13:0 2735# and 1.4.13p1 and 1.4.13.p2 2736# 1.4.14 had 2:14:0 2737# 1.4.15 had 3:0:1 # adds ub_version() 2738# 1.4.16 had 3:1:1 2739# 1.4.17 had 3:2:1 2740# 1.4.18 had 3:3:1 2741# 1.4.19 had 3:4:1 2742# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1 2743# 1.4.21 had 4:1:2 2744# 1.4.22 had 4:1:2 2745# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr 2746# 1.5.1 had 5:3:3 2747# 1.5.2 had 5:5:3 2748# 1.5.3 had 5:6:3 2749# 1.5.4 had 5:7:3 2750# 1.5.5 had 5:8:3 2751# 1.5.6 had 5:9:3 2752# 1.5.7 had 5:10:3 2753 2754# Current -- the number of the binary API that we're implementing 2755# Revision -- which iteration of the implementation of the binary 2756# API are we supplying? 2757# Age -- How many previous binary API versions do we also 2758# support? 2759# 2760# If we release a new version that does not change the binary API, 2761# increment Revision. 2762# 2763# If we release a new version that changes the binary API, but does 2764# not break programs compiled against the old binary API, increment 2765# Current and Age. Set Revision to 0, since this is the first 2766# implementation of the new API. 2767# 2768# Otherwise, we're changing the binary API and breaking bakward 2769# compatibility with old binaries. Increment Current. Set Age to 0, 2770# since we're backward compatible with no previous APIs. Set Revision 2771# to 0 too. 2772 2773 2774 2775 2776CFLAGS="$CFLAGS" 2777ac_ext=c 2778ac_cpp='$CPP $CPPFLAGS' 2779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2781ac_compiler_gnu=$ac_cv_c_compiler_gnu 2782if test -n "$ac_tool_prefix"; then 2783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2784set dummy ${ac_tool_prefix}gcc; ac_word=$2 2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2786$as_echo_n "checking for $ac_word... " >&6; } 2787if ${ac_cv_prog_CC+:} false; then : 2788 $as_echo_n "(cached) " >&6 2789else 2790 if test -n "$CC"; then 2791 ac_cv_prog_CC="$CC" # Let the user override the test. 2792else 2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2794for as_dir in $PATH 2795do 2796 IFS=$as_save_IFS 2797 test -z "$as_dir" && as_dir=. 2798 for ac_exec_ext in '' $ac_executable_extensions; do 2799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2800 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2802 break 2 2803 fi 2804done 2805 done 2806IFS=$as_save_IFS 2807 2808fi 2809fi 2810CC=$ac_cv_prog_CC 2811if test -n "$CC"; then 2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2813$as_echo "$CC" >&6; } 2814else 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2816$as_echo "no" >&6; } 2817fi 2818 2819 2820fi 2821if test -z "$ac_cv_prog_CC"; then 2822 ac_ct_CC=$CC 2823 # Extract the first word of "gcc", so it can be a program name with args. 2824set dummy gcc; ac_word=$2 2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2826$as_echo_n "checking for $ac_word... " >&6; } 2827if ${ac_cv_prog_ac_ct_CC+:} false; then : 2828 $as_echo_n "(cached) " >&6 2829else 2830 if test -n "$ac_ct_CC"; then 2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2832else 2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2834for as_dir in $PATH 2835do 2836 IFS=$as_save_IFS 2837 test -z "$as_dir" && as_dir=. 2838 for ac_exec_ext in '' $ac_executable_extensions; do 2839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2840 ac_cv_prog_ac_ct_CC="gcc" 2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2842 break 2 2843 fi 2844done 2845 done 2846IFS=$as_save_IFS 2847 2848fi 2849fi 2850ac_ct_CC=$ac_cv_prog_ac_ct_CC 2851if test -n "$ac_ct_CC"; then 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2853$as_echo "$ac_ct_CC" >&6; } 2854else 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2856$as_echo "no" >&6; } 2857fi 2858 2859 if test "x$ac_ct_CC" = x; then 2860 CC="" 2861 else 2862 case $cross_compiling:$ac_tool_warned in 2863yes:) 2864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2866ac_tool_warned=yes ;; 2867esac 2868 CC=$ac_ct_CC 2869 fi 2870else 2871 CC="$ac_cv_prog_CC" 2872fi 2873 2874if test -z "$CC"; then 2875 if test -n "$ac_tool_prefix"; then 2876 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2877set dummy ${ac_tool_prefix}cc; ac_word=$2 2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2879$as_echo_n "checking for $ac_word... " >&6; } 2880if ${ac_cv_prog_CC+:} false; then : 2881 $as_echo_n "(cached) " >&6 2882else 2883 if test -n "$CC"; then 2884 ac_cv_prog_CC="$CC" # Let the user override the test. 2885else 2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2887for as_dir in $PATH 2888do 2889 IFS=$as_save_IFS 2890 test -z "$as_dir" && as_dir=. 2891 for ac_exec_ext in '' $ac_executable_extensions; do 2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2893 ac_cv_prog_CC="${ac_tool_prefix}cc" 2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2895 break 2 2896 fi 2897done 2898 done 2899IFS=$as_save_IFS 2900 2901fi 2902fi 2903CC=$ac_cv_prog_CC 2904if test -n "$CC"; then 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2906$as_echo "$CC" >&6; } 2907else 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2909$as_echo "no" >&6; } 2910fi 2911 2912 2913 fi 2914fi 2915if test -z "$CC"; then 2916 # Extract the first word of "cc", so it can be a program name with args. 2917set dummy cc; ac_word=$2 2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2919$as_echo_n "checking for $ac_word... " >&6; } 2920if ${ac_cv_prog_CC+:} false; then : 2921 $as_echo_n "(cached) " >&6 2922else 2923 if test -n "$CC"; then 2924 ac_cv_prog_CC="$CC" # Let the user override the test. 2925else 2926 ac_prog_rejected=no 2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2928for as_dir in $PATH 2929do 2930 IFS=$as_save_IFS 2931 test -z "$as_dir" && as_dir=. 2932 for ac_exec_ext in '' $ac_executable_extensions; do 2933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2934 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2935 ac_prog_rejected=yes 2936 continue 2937 fi 2938 ac_cv_prog_CC="cc" 2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2940 break 2 2941 fi 2942done 2943 done 2944IFS=$as_save_IFS 2945 2946if test $ac_prog_rejected = yes; then 2947 # We found a bogon in the path, so make sure we never use it. 2948 set dummy $ac_cv_prog_CC 2949 shift 2950 if test $# != 0; then 2951 # We chose a different compiler from the bogus one. 2952 # However, it has the same basename, so the bogon will be chosen 2953 # first if we set CC to just the basename; use the full file name. 2954 shift 2955 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2956 fi 2957fi 2958fi 2959fi 2960CC=$ac_cv_prog_CC 2961if test -n "$CC"; then 2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2963$as_echo "$CC" >&6; } 2964else 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2966$as_echo "no" >&6; } 2967fi 2968 2969 2970fi 2971if test -z "$CC"; then 2972 if test -n "$ac_tool_prefix"; then 2973 for ac_prog in cl.exe 2974 do 2975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2976set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2978$as_echo_n "checking for $ac_word... " >&6; } 2979if ${ac_cv_prog_CC+:} false; then : 2980 $as_echo_n "(cached) " >&6 2981else 2982 if test -n "$CC"; then 2983 ac_cv_prog_CC="$CC" # Let the user override the test. 2984else 2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2986for as_dir in $PATH 2987do 2988 IFS=$as_save_IFS 2989 test -z "$as_dir" && as_dir=. 2990 for ac_exec_ext in '' $ac_executable_extensions; do 2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2994 break 2 2995 fi 2996done 2997 done 2998IFS=$as_save_IFS 2999 3000fi 3001fi 3002CC=$ac_cv_prog_CC 3003if test -n "$CC"; then 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3005$as_echo "$CC" >&6; } 3006else 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3008$as_echo "no" >&6; } 3009fi 3010 3011 3012 test -n "$CC" && break 3013 done 3014fi 3015if test -z "$CC"; then 3016 ac_ct_CC=$CC 3017 for ac_prog in cl.exe 3018do 3019 # Extract the first word of "$ac_prog", so it can be a program name with args. 3020set dummy $ac_prog; ac_word=$2 3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3022$as_echo_n "checking for $ac_word... " >&6; } 3023if ${ac_cv_prog_ac_ct_CC+:} false; then : 3024 $as_echo_n "(cached) " >&6 3025else 3026 if test -n "$ac_ct_CC"; then 3027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3028else 3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3030for as_dir in $PATH 3031do 3032 IFS=$as_save_IFS 3033 test -z "$as_dir" && as_dir=. 3034 for ac_exec_ext in '' $ac_executable_extensions; do 3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3036 ac_cv_prog_ac_ct_CC="$ac_prog" 3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3038 break 2 3039 fi 3040done 3041 done 3042IFS=$as_save_IFS 3043 3044fi 3045fi 3046ac_ct_CC=$ac_cv_prog_ac_ct_CC 3047if test -n "$ac_ct_CC"; then 3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3049$as_echo "$ac_ct_CC" >&6; } 3050else 3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3052$as_echo "no" >&6; } 3053fi 3054 3055 3056 test -n "$ac_ct_CC" && break 3057done 3058 3059 if test "x$ac_ct_CC" = x; then 3060 CC="" 3061 else 3062 case $cross_compiling:$ac_tool_warned in 3063yes:) 3064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3066ac_tool_warned=yes ;; 3067esac 3068 CC=$ac_ct_CC 3069 fi 3070fi 3071 3072fi 3073 3074 3075test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3077as_fn_error $? "no acceptable C compiler found in \$PATH 3078See \`config.log' for more details" "$LINENO" 5; } 3079 3080# Provide some information about the compiler. 3081$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3082set X $ac_compile 3083ac_compiler=$2 3084for ac_option in --version -v -V -qversion; do 3085 { { ac_try="$ac_compiler $ac_option >&5" 3086case "(($ac_try" in 3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3088 *) ac_try_echo=$ac_try;; 3089esac 3090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3091$as_echo "$ac_try_echo"; } >&5 3092 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3093 ac_status=$? 3094 if test -s conftest.err; then 3095 sed '10a\ 3096... rest of stderr output deleted ... 3097 10q' conftest.err >conftest.er1 3098 cat conftest.er1 >&5 3099 fi 3100 rm -f conftest.er1 conftest.err 3101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3102 test $ac_status = 0; } 3103done 3104 3105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3106/* end confdefs.h. */ 3107 3108int 3109main () 3110{ 3111 3112 ; 3113 return 0; 3114} 3115_ACEOF 3116ac_clean_files_save=$ac_clean_files 3117ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3118# Try to create an executable without -o first, disregard a.out. 3119# It will help us diagnose broken compilers, and finding out an intuition 3120# of exeext. 3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3122$as_echo_n "checking whether the C compiler works... " >&6; } 3123ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3124 3125# The possible output files: 3126ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3127 3128ac_rmfiles= 3129for ac_file in $ac_files 3130do 3131 case $ac_file in 3132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3133 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3134 esac 3135done 3136rm -f $ac_rmfiles 3137 3138if { { ac_try="$ac_link_default" 3139case "(($ac_try" in 3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3141 *) ac_try_echo=$ac_try;; 3142esac 3143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3144$as_echo "$ac_try_echo"; } >&5 3145 (eval "$ac_link_default") 2>&5 3146 ac_status=$? 3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3148 test $ac_status = 0; }; then : 3149 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3150# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3151# in a Makefile. We should not override ac_cv_exeext if it was cached, 3152# so that the user can short-circuit this test for compilers unknown to 3153# Autoconf. 3154for ac_file in $ac_files '' 3155do 3156 test -f "$ac_file" || continue 3157 case $ac_file in 3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3159 ;; 3160 [ab].out ) 3161 # We found the default executable, but exeext='' is most 3162 # certainly right. 3163 break;; 3164 *.* ) 3165 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3166 then :; else 3167 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3168 fi 3169 # We set ac_cv_exeext here because the later test for it is not 3170 # safe: cross compilers may not add the suffix if given an `-o' 3171 # argument, so we may need to know it at that point already. 3172 # Even if this section looks crufty: it has the advantage of 3173 # actually working. 3174 break;; 3175 * ) 3176 break;; 3177 esac 3178done 3179test "$ac_cv_exeext" = no && ac_cv_exeext= 3180 3181else 3182 ac_file='' 3183fi 3184if test -z "$ac_file"; then : 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3186$as_echo "no" >&6; } 3187$as_echo "$as_me: failed program was:" >&5 3188sed 's/^/| /' conftest.$ac_ext >&5 3189 3190{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3192as_fn_error 77 "C compiler cannot create executables 3193See \`config.log' for more details" "$LINENO" 5; } 3194else 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3196$as_echo "yes" >&6; } 3197fi 3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3199$as_echo_n "checking for C compiler default output file name... " >&6; } 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3201$as_echo "$ac_file" >&6; } 3202ac_exeext=$ac_cv_exeext 3203 3204rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3205ac_clean_files=$ac_clean_files_save 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3207$as_echo_n "checking for suffix of executables... " >&6; } 3208if { { ac_try="$ac_link" 3209case "(($ac_try" in 3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3211 *) ac_try_echo=$ac_try;; 3212esac 3213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3214$as_echo "$ac_try_echo"; } >&5 3215 (eval "$ac_link") 2>&5 3216 ac_status=$? 3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3218 test $ac_status = 0; }; then : 3219 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3220# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3221# work properly (i.e., refer to `conftest.exe'), while it won't with 3222# `rm'. 3223for ac_file in conftest.exe conftest conftest.*; do 3224 test -f "$ac_file" || continue 3225 case $ac_file in 3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3228 break;; 3229 * ) break;; 3230 esac 3231done 3232else 3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3235as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3236See \`config.log' for more details" "$LINENO" 5; } 3237fi 3238rm -f conftest conftest$ac_cv_exeext 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3240$as_echo "$ac_cv_exeext" >&6; } 3241 3242rm -f conftest.$ac_ext 3243EXEEXT=$ac_cv_exeext 3244ac_exeext=$EXEEXT 3245cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3246/* end confdefs.h. */ 3247#include <stdio.h> 3248int 3249main () 3250{ 3251FILE *f = fopen ("conftest.out", "w"); 3252 return ferror (f) || fclose (f) != 0; 3253 3254 ; 3255 return 0; 3256} 3257_ACEOF 3258ac_clean_files="$ac_clean_files conftest.out" 3259# Check that the compiler produces executables we can run. If not, either 3260# the compiler is broken, or we cross compile. 3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3262$as_echo_n "checking whether we are cross compiling... " >&6; } 3263if test "$cross_compiling" != yes; then 3264 { { ac_try="$ac_link" 3265case "(($ac_try" in 3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3267 *) ac_try_echo=$ac_try;; 3268esac 3269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3270$as_echo "$ac_try_echo"; } >&5 3271 (eval "$ac_link") 2>&5 3272 ac_status=$? 3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3274 test $ac_status = 0; } 3275 if { ac_try='./conftest$ac_cv_exeext' 3276 { { case "(($ac_try" in 3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3278 *) ac_try_echo=$ac_try;; 3279esac 3280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3281$as_echo "$ac_try_echo"; } >&5 3282 (eval "$ac_try") 2>&5 3283 ac_status=$? 3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3285 test $ac_status = 0; }; }; then 3286 cross_compiling=no 3287 else 3288 if test "$cross_compiling" = maybe; then 3289 cross_compiling=yes 3290 else 3291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3293as_fn_error $? "cannot run C compiled programs. 3294If you meant to cross compile, use \`--host'. 3295See \`config.log' for more details" "$LINENO" 5; } 3296 fi 3297 fi 3298fi 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3300$as_echo "$cross_compiling" >&6; } 3301 3302rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3303ac_clean_files=$ac_clean_files_save 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3305$as_echo_n "checking for suffix of object files... " >&6; } 3306if ${ac_cv_objext+:} false; then : 3307 $as_echo_n "(cached) " >&6 3308else 3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3310/* end confdefs.h. */ 3311 3312int 3313main () 3314{ 3315 3316 ; 3317 return 0; 3318} 3319_ACEOF 3320rm -f conftest.o conftest.obj 3321if { { ac_try="$ac_compile" 3322case "(($ac_try" in 3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3324 *) ac_try_echo=$ac_try;; 3325esac 3326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3327$as_echo "$ac_try_echo"; } >&5 3328 (eval "$ac_compile") 2>&5 3329 ac_status=$? 3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3331 test $ac_status = 0; }; then : 3332 for ac_file in conftest.o conftest.obj conftest.*; do 3333 test -f "$ac_file" || continue; 3334 case $ac_file in 3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3336 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3337 break;; 3338 esac 3339done 3340else 3341 $as_echo "$as_me: failed program was:" >&5 3342sed 's/^/| /' conftest.$ac_ext >&5 3343 3344{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3346as_fn_error $? "cannot compute suffix of object files: cannot compile 3347See \`config.log' for more details" "$LINENO" 5; } 3348fi 3349rm -f conftest.$ac_cv_objext conftest.$ac_ext 3350fi 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3352$as_echo "$ac_cv_objext" >&6; } 3353OBJEXT=$ac_cv_objext 3354ac_objext=$OBJEXT 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3356$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3357if ${ac_cv_c_compiler_gnu+:} false; then : 3358 $as_echo_n "(cached) " >&6 3359else 3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3361/* end confdefs.h. */ 3362 3363int 3364main () 3365{ 3366#ifndef __GNUC__ 3367 choke me 3368#endif 3369 3370 ; 3371 return 0; 3372} 3373_ACEOF 3374if ac_fn_c_try_compile "$LINENO"; then : 3375 ac_compiler_gnu=yes 3376else 3377 ac_compiler_gnu=no 3378fi 3379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3380ac_cv_c_compiler_gnu=$ac_compiler_gnu 3381 3382fi 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3384$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3385if test $ac_compiler_gnu = yes; then 3386 GCC=yes 3387else 3388 GCC= 3389fi 3390ac_test_CFLAGS=${CFLAGS+set} 3391ac_save_CFLAGS=$CFLAGS 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3393$as_echo_n "checking whether $CC accepts -g... " >&6; } 3394if ${ac_cv_prog_cc_g+:} false; then : 3395 $as_echo_n "(cached) " >&6 3396else 3397 ac_save_c_werror_flag=$ac_c_werror_flag 3398 ac_c_werror_flag=yes 3399 ac_cv_prog_cc_g=no 3400 CFLAGS="-g" 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 ac_cv_prog_cc_g=yes 3414else 3415 CFLAGS="" 3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3417/* end confdefs.h. */ 3418 3419int 3420main () 3421{ 3422 3423 ; 3424 return 0; 3425} 3426_ACEOF 3427if ac_fn_c_try_compile "$LINENO"; then : 3428 3429else 3430 ac_c_werror_flag=$ac_save_c_werror_flag 3431 CFLAGS="-g" 3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3433/* end confdefs.h. */ 3434 3435int 3436main () 3437{ 3438 3439 ; 3440 return 0; 3441} 3442_ACEOF 3443if ac_fn_c_try_compile "$LINENO"; then : 3444 ac_cv_prog_cc_g=yes 3445fi 3446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3447fi 3448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3449fi 3450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3451 ac_c_werror_flag=$ac_save_c_werror_flag 3452fi 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3454$as_echo "$ac_cv_prog_cc_g" >&6; } 3455if test "$ac_test_CFLAGS" = set; then 3456 CFLAGS=$ac_save_CFLAGS 3457elif test $ac_cv_prog_cc_g = yes; then 3458 if test "$GCC" = yes; then 3459 CFLAGS="-g -O2" 3460 else 3461 CFLAGS="-g" 3462 fi 3463else 3464 if test "$GCC" = yes; then 3465 CFLAGS="-O2" 3466 else 3467 CFLAGS= 3468 fi 3469fi 3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3471$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3472if ${ac_cv_prog_cc_c89+:} false; then : 3473 $as_echo_n "(cached) " >&6 3474else 3475 ac_cv_prog_cc_c89=no 3476ac_save_CC=$CC 3477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3478/* end confdefs.h. */ 3479#include <stdarg.h> 3480#include <stdio.h> 3481struct stat; 3482/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3483struct buf { int x; }; 3484FILE * (*rcsopen) (struct buf *, struct stat *, int); 3485static char *e (p, i) 3486 char **p; 3487 int i; 3488{ 3489 return p[i]; 3490} 3491static char *f (char * (*g) (char **, int), char **p, ...) 3492{ 3493 char *s; 3494 va_list v; 3495 va_start (v,p); 3496 s = g (p, va_arg (v,int)); 3497 va_end (v); 3498 return s; 3499} 3500 3501/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3502 function prototypes and stuff, but not '\xHH' hex character constants. 3503 These don't provoke an error unfortunately, instead are silently treated 3504 as 'x'. The following induces an error, until -std is added to get 3505 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3506 array size at least. It's necessary to write '\x00'==0 to get something 3507 that's true only with -std. */ 3508int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3509 3510/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3511 inside strings and character constants. */ 3512#define FOO(x) 'x' 3513int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3514 3515int test (int i, double x); 3516struct s1 {int (*f) (int a);}; 3517struct s2 {int (*f) (double a);}; 3518int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3519int argc; 3520char **argv; 3521int 3522main () 3523{ 3524return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3525 ; 3526 return 0; 3527} 3528_ACEOF 3529for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3530 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3531do 3532 CC="$ac_save_CC $ac_arg" 3533 if ac_fn_c_try_compile "$LINENO"; then : 3534 ac_cv_prog_cc_c89=$ac_arg 3535fi 3536rm -f core conftest.err conftest.$ac_objext 3537 test "x$ac_cv_prog_cc_c89" != "xno" && break 3538done 3539rm -f conftest.$ac_ext 3540CC=$ac_save_CC 3541 3542fi 3543# AC_CACHE_VAL 3544case "x$ac_cv_prog_cc_c89" in 3545 x) 3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3547$as_echo "none needed" >&6; } ;; 3548 xno) 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3550$as_echo "unsupported" >&6; } ;; 3551 *) 3552 CC="$CC $ac_cv_prog_cc_c89" 3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3554$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3555esac 3556if test "x$ac_cv_prog_cc_c89" != xno; then : 3557 3558fi 3559 3560ac_ext=c 3561ac_cpp='$CPP $CPPFLAGS' 3562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3564ac_compiler_gnu=$ac_cv_c_compiler_gnu 3565 3566 3567ac_ext=c 3568ac_cpp='$CPP $CPPFLAGS' 3569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3571ac_compiler_gnu=$ac_cv_c_compiler_gnu 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3573$as_echo_n "checking how to run the C preprocessor... " >&6; } 3574# On Suns, sometimes $CPP names a directory. 3575if test -n "$CPP" && test -d "$CPP"; then 3576 CPP= 3577fi 3578if test -z "$CPP"; then 3579 if ${ac_cv_prog_CPP+:} false; then : 3580 $as_echo_n "(cached) " >&6 3581else 3582 # Double quotes because CPP needs to be expanded 3583 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3584 do 3585 ac_preproc_ok=false 3586for ac_c_preproc_warn_flag in '' yes 3587do 3588 # Use a header file that comes with gcc, so configuring glibc 3589 # with a fresh cross-compiler works. 3590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3591 # <limits.h> exists even on freestanding compilers. 3592 # On the NeXT, cc -E runs the code through the compiler's parser, 3593 # not just through cpp. "Syntax error" is here to catch this case. 3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595/* end confdefs.h. */ 3596#ifdef __STDC__ 3597# include <limits.h> 3598#else 3599# include <assert.h> 3600#endif 3601 Syntax error 3602_ACEOF 3603if ac_fn_c_try_cpp "$LINENO"; then : 3604 3605else 3606 # Broken: fails on valid input. 3607continue 3608fi 3609rm -f conftest.err conftest.i conftest.$ac_ext 3610 3611 # OK, works on sane cases. Now check whether nonexistent headers 3612 # can be detected and how. 3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3614/* end confdefs.h. */ 3615#include <ac_nonexistent.h> 3616_ACEOF 3617if ac_fn_c_try_cpp "$LINENO"; then : 3618 # Broken: success on invalid input. 3619continue 3620else 3621 # Passes both tests. 3622ac_preproc_ok=: 3623break 3624fi 3625rm -f conftest.err conftest.i conftest.$ac_ext 3626 3627done 3628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3629rm -f conftest.i conftest.err conftest.$ac_ext 3630if $ac_preproc_ok; then : 3631 break 3632fi 3633 3634 done 3635 ac_cv_prog_CPP=$CPP 3636 3637fi 3638 CPP=$ac_cv_prog_CPP 3639else 3640 ac_cv_prog_CPP=$CPP 3641fi 3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3643$as_echo "$CPP" >&6; } 3644ac_preproc_ok=false 3645for ac_c_preproc_warn_flag in '' yes 3646do 3647 # Use a header file that comes with gcc, so configuring glibc 3648 # with a fresh cross-compiler works. 3649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3650 # <limits.h> exists even on freestanding compilers. 3651 # On the NeXT, cc -E runs the code through the compiler's parser, 3652 # not just through cpp. "Syntax error" is here to catch this case. 3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3654/* end confdefs.h. */ 3655#ifdef __STDC__ 3656# include <limits.h> 3657#else 3658# include <assert.h> 3659#endif 3660 Syntax error 3661_ACEOF 3662if ac_fn_c_try_cpp "$LINENO"; then : 3663 3664else 3665 # Broken: fails on valid input. 3666continue 3667fi 3668rm -f conftest.err conftest.i conftest.$ac_ext 3669 3670 # OK, works on sane cases. Now check whether nonexistent headers 3671 # can be detected and how. 3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3673/* end confdefs.h. */ 3674#include <ac_nonexistent.h> 3675_ACEOF 3676if ac_fn_c_try_cpp "$LINENO"; then : 3677 # Broken: success on invalid input. 3678continue 3679else 3680 # Passes both tests. 3681ac_preproc_ok=: 3682break 3683fi 3684rm -f conftest.err conftest.i conftest.$ac_ext 3685 3686done 3687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3688rm -f conftest.i conftest.err conftest.$ac_ext 3689if $ac_preproc_ok; then : 3690 3691else 3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3694as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3695See \`config.log' for more details" "$LINENO" 5; } 3696fi 3697 3698ac_ext=c 3699ac_cpp='$CPP $CPPFLAGS' 3700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3702ac_compiler_gnu=$ac_cv_c_compiler_gnu 3703 3704 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3706$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3707if ${ac_cv_path_GREP+:} false; then : 3708 $as_echo_n "(cached) " >&6 3709else 3710 if test -z "$GREP"; then 3711 ac_path_GREP_found=false 3712 # Loop through the user's path and test for each of PROGNAME-LIST 3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3714for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3715do 3716 IFS=$as_save_IFS 3717 test -z "$as_dir" && as_dir=. 3718 for ac_prog in grep ggrep; do 3719 for ac_exec_ext in '' $ac_executable_extensions; do 3720 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3721 as_fn_executable_p "$ac_path_GREP" || continue 3722# Check for GNU ac_path_GREP and select it if it is found. 3723 # Check for GNU $ac_path_GREP 3724case `"$ac_path_GREP" --version 2>&1` in 3725*GNU*) 3726 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3727*) 3728 ac_count=0 3729 $as_echo_n 0123456789 >"conftest.in" 3730 while : 3731 do 3732 cat "conftest.in" "conftest.in" >"conftest.tmp" 3733 mv "conftest.tmp" "conftest.in" 3734 cp "conftest.in" "conftest.nl" 3735 $as_echo 'GREP' >> "conftest.nl" 3736 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3738 as_fn_arith $ac_count + 1 && ac_count=$as_val 3739 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3740 # Best one so far, save it but keep looking for a better one 3741 ac_cv_path_GREP="$ac_path_GREP" 3742 ac_path_GREP_max=$ac_count 3743 fi 3744 # 10*(2^10) chars as input seems more than enough 3745 test $ac_count -gt 10 && break 3746 done 3747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3748esac 3749 3750 $ac_path_GREP_found && break 3 3751 done 3752 done 3753 done 3754IFS=$as_save_IFS 3755 if test -z "$ac_cv_path_GREP"; then 3756 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3757 fi 3758else 3759 ac_cv_path_GREP=$GREP 3760fi 3761 3762fi 3763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3764$as_echo "$ac_cv_path_GREP" >&6; } 3765 GREP="$ac_cv_path_GREP" 3766 3767 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3769$as_echo_n "checking for egrep... " >&6; } 3770if ${ac_cv_path_EGREP+:} false; then : 3771 $as_echo_n "(cached) " >&6 3772else 3773 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3774 then ac_cv_path_EGREP="$GREP -E" 3775 else 3776 if test -z "$EGREP"; then 3777 ac_path_EGREP_found=false 3778 # Loop through the user's path and test for each of PROGNAME-LIST 3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3780for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3781do 3782 IFS=$as_save_IFS 3783 test -z "$as_dir" && as_dir=. 3784 for ac_prog in egrep; do 3785 for ac_exec_ext in '' $ac_executable_extensions; do 3786 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3787 as_fn_executable_p "$ac_path_EGREP" || continue 3788# Check for GNU ac_path_EGREP and select it if it is found. 3789 # Check for GNU $ac_path_EGREP 3790case `"$ac_path_EGREP" --version 2>&1` in 3791*GNU*) 3792 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3793*) 3794 ac_count=0 3795 $as_echo_n 0123456789 >"conftest.in" 3796 while : 3797 do 3798 cat "conftest.in" "conftest.in" >"conftest.tmp" 3799 mv "conftest.tmp" "conftest.in" 3800 cp "conftest.in" "conftest.nl" 3801 $as_echo 'EGREP' >> "conftest.nl" 3802 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3804 as_fn_arith $ac_count + 1 && ac_count=$as_val 3805 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3806 # Best one so far, save it but keep looking for a better one 3807 ac_cv_path_EGREP="$ac_path_EGREP" 3808 ac_path_EGREP_max=$ac_count 3809 fi 3810 # 10*(2^10) chars as input seems more than enough 3811 test $ac_count -gt 10 && break 3812 done 3813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3814esac 3815 3816 $ac_path_EGREP_found && break 3 3817 done 3818 done 3819 done 3820IFS=$as_save_IFS 3821 if test -z "$ac_cv_path_EGREP"; then 3822 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3823 fi 3824else 3825 ac_cv_path_EGREP=$EGREP 3826fi 3827 3828 fi 3829fi 3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3831$as_echo "$ac_cv_path_EGREP" >&6; } 3832 EGREP="$ac_cv_path_EGREP" 3833 3834 3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3836$as_echo_n "checking for ANSI C header files... " >&6; } 3837if ${ac_cv_header_stdc+:} false; then : 3838 $as_echo_n "(cached) " >&6 3839else 3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3841/* end confdefs.h. */ 3842#include <stdlib.h> 3843#include <stdarg.h> 3844#include <string.h> 3845#include <float.h> 3846 3847int 3848main () 3849{ 3850 3851 ; 3852 return 0; 3853} 3854_ACEOF 3855if ac_fn_c_try_compile "$LINENO"; then : 3856 ac_cv_header_stdc=yes 3857else 3858 ac_cv_header_stdc=no 3859fi 3860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3861 3862if test $ac_cv_header_stdc = yes; then 3863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3865/* end confdefs.h. */ 3866#include <string.h> 3867 3868_ACEOF 3869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3870 $EGREP "memchr" >/dev/null 2>&1; then : 3871 3872else 3873 ac_cv_header_stdc=no 3874fi 3875rm -f conftest* 3876 3877fi 3878 3879if test $ac_cv_header_stdc = yes; then 3880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3882/* end confdefs.h. */ 3883#include <stdlib.h> 3884 3885_ACEOF 3886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3887 $EGREP "free" >/dev/null 2>&1; then : 3888 3889else 3890 ac_cv_header_stdc=no 3891fi 3892rm -f conftest* 3893 3894fi 3895 3896if test $ac_cv_header_stdc = yes; then 3897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3898 if test "$cross_compiling" = yes; then : 3899 : 3900else 3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3902/* end confdefs.h. */ 3903#include <ctype.h> 3904#include <stdlib.h> 3905#if ((' ' & 0x0FF) == 0x020) 3906# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3907# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3908#else 3909# define ISLOWER(c) \ 3910 (('a' <= (c) && (c) <= 'i') \ 3911 || ('j' <= (c) && (c) <= 'r') \ 3912 || ('s' <= (c) && (c) <= 'z')) 3913# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3914#endif 3915 3916#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3917int 3918main () 3919{ 3920 int i; 3921 for (i = 0; i < 256; i++) 3922 if (XOR (islower (i), ISLOWER (i)) 3923 || toupper (i) != TOUPPER (i)) 3924 return 2; 3925 return 0; 3926} 3927_ACEOF 3928if ac_fn_c_try_run "$LINENO"; then : 3929 3930else 3931 ac_cv_header_stdc=no 3932fi 3933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3934 conftest.$ac_objext conftest.beam conftest.$ac_ext 3935fi 3936 3937fi 3938fi 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3940$as_echo "$ac_cv_header_stdc" >&6; } 3941if test $ac_cv_header_stdc = yes; then 3942 3943$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3944 3945fi 3946 3947# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3948for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3949 inttypes.h stdint.h unistd.h 3950do : 3951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3952ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3953" 3954if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3955 cat >>confdefs.h <<_ACEOF 3956#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3957_ACEOF 3958 3959fi 3960 3961done 3962 3963 3964 3965 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3966if test "x$ac_cv_header_minix_config_h" = xyes; then : 3967 MINIX=yes 3968else 3969 MINIX= 3970fi 3971 3972 3973 if test "$MINIX" = yes; then 3974 3975$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3976 3977 3978$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3979 3980 3981$as_echo "#define _MINIX 1" >>confdefs.h 3982 3983 fi 3984 3985 3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3987$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3988if ${ac_cv_safe_to_define___extensions__+:} false; then : 3989 $as_echo_n "(cached) " >&6 3990else 3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3992/* end confdefs.h. */ 3993 3994# define __EXTENSIONS__ 1 3995 $ac_includes_default 3996int 3997main () 3998{ 3999 4000 ; 4001 return 0; 4002} 4003_ACEOF 4004if ac_fn_c_try_compile "$LINENO"; then : 4005 ac_cv_safe_to_define___extensions__=yes 4006else 4007 ac_cv_safe_to_define___extensions__=no 4008fi 4009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4010fi 4011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4012$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4013 test $ac_cv_safe_to_define___extensions__ = yes && 4014 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4015 4016 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4017 4018 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4019 4020 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4021 4022 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4023 4024 4025 4026if test "$ac_cv_header_minix_config_h" = "yes"; then 4027 4028$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 4029 4030fi 4031 4032case "$prefix" in 4033 NONE) 4034 prefix="/usr/local" 4035 ;; 4036esac 4037 4038# are we on MinGW? 4039if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes" 4040else 4041 if echo $target | grep mingw32 >/dev/null; then on_mingw="yes" 4042 else on_mingw="no"; fi 4043fi 4044 4045# 4046# Determine configuration file 4047# the eval is to evaluate shell expansion twice 4048if test $on_mingw = "no"; then 4049 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"` 4050else 4051 ub_conf_file="C:\\Program Files\\Unbound\\service.conf" 4052fi 4053 4054# Check whether --with-conf_file was given. 4055if test "${with_conf_file+set}" = set; then : 4056 withval=$with_conf_file; ub_conf_file="$withval" 4057fi 4058 4059 4060hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`" 4061 4062 4063cat >>confdefs.h <<_ACEOF 4064#define CONFIGFILE "$hdr_config" 4065_ACEOF 4066 4067ub_conf_dir=`$as_dirname -- "$ub_conf_file" || 4068$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4069 X"$ub_conf_file" : 'X\(//\)[^/]' \| \ 4070 X"$ub_conf_file" : 'X\(//\)$' \| \ 4071 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null || 4072$as_echo X"$ub_conf_file" | 4073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4074 s//\1/ 4075 q 4076 } 4077 /^X\(\/\/\)[^/].*/{ 4078 s//\1/ 4079 q 4080 } 4081 /^X\(\/\/\)$/{ 4082 s//\1/ 4083 q 4084 } 4085 /^X\(\/\).*/{ 4086 s//\1/ 4087 q 4088 } 4089 s/.*/./; q'` 4090 4091 4092# Determine run, chroot directory and pidfile locations 4093 4094# Check whether --with-run-dir was given. 4095if test "${with_run_dir+set}" = set; then : 4096 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval" 4097else 4098 if test $on_mingw = no; then 4099 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"` 4100else 4101 UNBOUND_RUN_DIR="" 4102fi 4103 4104fi 4105 4106 4107hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4108 4109 4110cat >>confdefs.h <<_ACEOF 4111#define RUN_DIR "$hdr_run" 4112_ACEOF 4113 4114 4115 4116# Check whether --with-chroot-dir was given. 4117if test "${with_chroot_dir+set}" = set; then : 4118 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval" 4119else 4120 if test $on_mingw = no; then 4121 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR" 4122else 4123 UNBOUND_CHROOT_DIR="" 4124fi 4125 4126fi 4127 4128 4129hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4130 4131 4132cat >>confdefs.h <<_ACEOF 4133#define CHROOT_DIR "$hdr_chroot" 4134_ACEOF 4135 4136 4137 4138# Check whether --with-share-dir was given. 4139if test "${with_share_dir+set}" = set; then : 4140 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval" 4141else 4142 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR" 4143fi 4144 4145 4146 4147cat >>confdefs.h <<_ACEOF 4148#define SHARE_DIR "$UNBOUND_SHARE_DIR" 4149_ACEOF 4150 4151 4152 4153# Check whether --with-pidfile was given. 4154if test "${with_pidfile+set}" = set; then : 4155 withval=$with_pidfile; UNBOUND_PIDFILE="$withval" 4156else 4157 if test $on_mingw = no; then 4158 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid" 4159else 4160 UNBOUND_PIDFILE="" 4161fi 4162 4163fi 4164 4165 4166hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4167 4168 4169cat >>confdefs.h <<_ACEOF 4170#define PIDFILE "$hdr_pid" 4171_ACEOF 4172 4173 4174 4175# Check whether --with-rootkey-file was given. 4176if test "${with_rootkey_file+set}" = set; then : 4177 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval" 4178else 4179 if test $on_mingw = no; then 4180 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key" 4181else 4182 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key" 4183fi 4184 4185fi 4186 4187 4188hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4189 4190 4191cat >>confdefs.h <<_ACEOF 4192#define ROOT_ANCHOR_FILE "$hdr_rkey" 4193_ACEOF 4194 4195 4196 4197# Check whether --with-rootcert-file was given. 4198if test "${with_rootcert_file+set}" = set; then : 4199 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval" 4200else 4201 if test $on_mingw = no; then 4202 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem" 4203else 4204 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem" 4205fi 4206 4207fi 4208 4209 4210hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4211 4212 4213cat >>confdefs.h <<_ACEOF 4214#define ROOT_CERT_FILE "$hdr_rpem" 4215_ACEOF 4216 4217 4218 4219# Check whether --with-username was given. 4220if test "${with_username+set}" = set; then : 4221 withval=$with_username; UNBOUND_USERNAME="$withval" 4222else 4223 UNBOUND_USERNAME="unbound" 4224fi 4225 4226 4227 4228cat >>confdefs.h <<_ACEOF 4229#define UB_USERNAME "$UNBOUND_USERNAME" 4230_ACEOF 4231 4232 4233 4234$as_echo "#define WINVER 0x0502" >>confdefs.h 4235 4236wnvs=`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/' ` 4237 4238 4239cat >>confdefs.h <<_ACEOF 4240#define RSRC_PACKAGE_VERSION $wnvs 4241_ACEOF 4242 4243 4244# Checks for typedefs, structures, and compiler characteristics. 4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4246$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4247if ${ac_cv_c_const+:} false; then : 4248 $as_echo_n "(cached) " >&6 4249else 4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4251/* end confdefs.h. */ 4252 4253int 4254main () 4255{ 4256 4257#ifndef __cplusplus 4258 /* Ultrix mips cc rejects this sort of thing. */ 4259 typedef int charset[2]; 4260 const charset cs = { 0, 0 }; 4261 /* SunOS 4.1.1 cc rejects this. */ 4262 char const *const *pcpcc; 4263 char **ppc; 4264 /* NEC SVR4.0.2 mips cc rejects this. */ 4265 struct point {int x, y;}; 4266 static struct point const zero = {0,0}; 4267 /* AIX XL C 1.02.0.0 rejects this. 4268 It does not let you subtract one const X* pointer from another in 4269 an arm of an if-expression whose if-part is not a constant 4270 expression */ 4271 const char *g = "string"; 4272 pcpcc = &g + (g ? g-g : 0); 4273 /* HPUX 7.0 cc rejects these. */ 4274 ++pcpcc; 4275 ppc = (char**) pcpcc; 4276 pcpcc = (char const *const *) ppc; 4277 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4278 char tx; 4279 char *t = &tx; 4280 char const *s = 0 ? (char *) 0 : (char const *) 0; 4281 4282 *t++ = 0; 4283 if (s) return 0; 4284 } 4285 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4286 int x[] = {25, 17}; 4287 const int *foo = &x[0]; 4288 ++foo; 4289 } 4290 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4291 typedef const int *iptr; 4292 iptr p = 0; 4293 ++p; 4294 } 4295 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4296 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4297 struct s { int j; const int *ap[3]; } bx; 4298 struct s *b = &bx; b->j = 5; 4299 } 4300 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4301 const int foo = 10; 4302 if (!foo) return 0; 4303 } 4304 return !cs[0] && !zero.x; 4305#endif 4306 4307 ; 4308 return 0; 4309} 4310_ACEOF 4311if ac_fn_c_try_compile "$LINENO"; then : 4312 ac_cv_c_const=yes 4313else 4314 ac_cv_c_const=no 4315fi 4316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4317fi 4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4319$as_echo "$ac_cv_c_const" >&6; } 4320if test $ac_cv_c_const = no; then 4321 4322$as_echo "#define const /**/" >>confdefs.h 4323 4324fi 4325 4326ac_ext=c 4327ac_cpp='$CPP $CPPFLAGS' 4328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4330ac_compiler_gnu=$ac_cv_c_compiler_gnu 4331 4332# allow user to override the -g -O2 flags. 4333if test "x$CFLAGS" = "x" ; then 4334 4335 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4337$as_echo_n "checking whether $CC supports -g... " >&6; } 4338cache=`echo g | sed 'y%.=/+-%___p_%'` 4339if eval \${cv_prog_cc_flag_$cache+:} false; then : 4340 $as_echo_n "(cached) " >&6 4341else 4342 4343echo 'void f(void){}' >conftest.c 4344if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4345eval "cv_prog_cc_flag_$cache=yes" 4346else 4347eval "cv_prog_cc_flag_$cache=no" 4348fi 4349rm -f conftest conftest.o conftest.c 4350 4351fi 4352 4353if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4355$as_echo "yes" >&6; } 4356: 4357CFLAGS="$CFLAGS -g" 4358else 4359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4360$as_echo "no" >&6; } 4361: 4362 4363fi 4364 4365 4366 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4368$as_echo_n "checking whether $CC supports -O2... " >&6; } 4369cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4370if eval \${cv_prog_cc_flag_$cache+:} false; then : 4371 $as_echo_n "(cached) " >&6 4372else 4373 4374echo 'void f(void){}' >conftest.c 4375if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4376eval "cv_prog_cc_flag_$cache=yes" 4377else 4378eval "cv_prog_cc_flag_$cache=no" 4379fi 4380rm -f conftest conftest.o conftest.c 4381 4382fi 4383 4384if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4386$as_echo "yes" >&6; } 4387: 4388CFLAGS="$CFLAGS -O2" 4389else 4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4391$as_echo "no" >&6; } 4392: 4393 4394fi 4395 4396fi 4397ac_ext=c 4398ac_cpp='$CPP $CPPFLAGS' 4399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4401ac_compiler_gnu=$ac_cv_c_compiler_gnu 4402if test -n "$ac_tool_prefix"; then 4403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4404set dummy ${ac_tool_prefix}gcc; ac_word=$2 4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4406$as_echo_n "checking for $ac_word... " >&6; } 4407if ${ac_cv_prog_CC+:} false; then : 4408 $as_echo_n "(cached) " >&6 4409else 4410 if test -n "$CC"; then 4411 ac_cv_prog_CC="$CC" # Let the user override the test. 4412else 4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4414for as_dir in $PATH 4415do 4416 IFS=$as_save_IFS 4417 test -z "$as_dir" && as_dir=. 4418 for ac_exec_ext in '' $ac_executable_extensions; do 4419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4420 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4422 break 2 4423 fi 4424done 4425 done 4426IFS=$as_save_IFS 4427 4428fi 4429fi 4430CC=$ac_cv_prog_CC 4431if test -n "$CC"; then 4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4433$as_echo "$CC" >&6; } 4434else 4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4436$as_echo "no" >&6; } 4437fi 4438 4439 4440fi 4441if test -z "$ac_cv_prog_CC"; then 4442 ac_ct_CC=$CC 4443 # Extract the first word of "gcc", so it can be a program name with args. 4444set dummy gcc; ac_word=$2 4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4446$as_echo_n "checking for $ac_word... " >&6; } 4447if ${ac_cv_prog_ac_ct_CC+:} false; then : 4448 $as_echo_n "(cached) " >&6 4449else 4450 if test -n "$ac_ct_CC"; then 4451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4452else 4453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4454for as_dir in $PATH 4455do 4456 IFS=$as_save_IFS 4457 test -z "$as_dir" && as_dir=. 4458 for ac_exec_ext in '' $ac_executable_extensions; do 4459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4460 ac_cv_prog_ac_ct_CC="gcc" 4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4462 break 2 4463 fi 4464done 4465 done 4466IFS=$as_save_IFS 4467 4468fi 4469fi 4470ac_ct_CC=$ac_cv_prog_ac_ct_CC 4471if test -n "$ac_ct_CC"; then 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4473$as_echo "$ac_ct_CC" >&6; } 4474else 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4476$as_echo "no" >&6; } 4477fi 4478 4479 if test "x$ac_ct_CC" = x; then 4480 CC="" 4481 else 4482 case $cross_compiling:$ac_tool_warned in 4483yes:) 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4486ac_tool_warned=yes ;; 4487esac 4488 CC=$ac_ct_CC 4489 fi 4490else 4491 CC="$ac_cv_prog_CC" 4492fi 4493 4494if test -z "$CC"; then 4495 if test -n "$ac_tool_prefix"; then 4496 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4497set dummy ${ac_tool_prefix}cc; ac_word=$2 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4499$as_echo_n "checking for $ac_word... " >&6; } 4500if ${ac_cv_prog_CC+:} false; then : 4501 $as_echo_n "(cached) " >&6 4502else 4503 if test -n "$CC"; then 4504 ac_cv_prog_CC="$CC" # Let the user override the test. 4505else 4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4507for as_dir in $PATH 4508do 4509 IFS=$as_save_IFS 4510 test -z "$as_dir" && as_dir=. 4511 for ac_exec_ext in '' $ac_executable_extensions; do 4512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4513 ac_cv_prog_CC="${ac_tool_prefix}cc" 4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4515 break 2 4516 fi 4517done 4518 done 4519IFS=$as_save_IFS 4520 4521fi 4522fi 4523CC=$ac_cv_prog_CC 4524if test -n "$CC"; then 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4526$as_echo "$CC" >&6; } 4527else 4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4529$as_echo "no" >&6; } 4530fi 4531 4532 4533 fi 4534fi 4535if test -z "$CC"; then 4536 # Extract the first word of "cc", so it can be a program name with args. 4537set dummy cc; ac_word=$2 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4539$as_echo_n "checking for $ac_word... " >&6; } 4540if ${ac_cv_prog_CC+:} false; then : 4541 $as_echo_n "(cached) " >&6 4542else 4543 if test -n "$CC"; then 4544 ac_cv_prog_CC="$CC" # Let the user override the test. 4545else 4546 ac_prog_rejected=no 4547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4548for as_dir in $PATH 4549do 4550 IFS=$as_save_IFS 4551 test -z "$as_dir" && as_dir=. 4552 for ac_exec_ext in '' $ac_executable_extensions; do 4553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4555 ac_prog_rejected=yes 4556 continue 4557 fi 4558 ac_cv_prog_CC="cc" 4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4560 break 2 4561 fi 4562done 4563 done 4564IFS=$as_save_IFS 4565 4566if test $ac_prog_rejected = yes; then 4567 # We found a bogon in the path, so make sure we never use it. 4568 set dummy $ac_cv_prog_CC 4569 shift 4570 if test $# != 0; then 4571 # We chose a different compiler from the bogus one. 4572 # However, it has the same basename, so the bogon will be chosen 4573 # first if we set CC to just the basename; use the full file name. 4574 shift 4575 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4576 fi 4577fi 4578fi 4579fi 4580CC=$ac_cv_prog_CC 4581if test -n "$CC"; then 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4583$as_echo "$CC" >&6; } 4584else 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4586$as_echo "no" >&6; } 4587fi 4588 4589 4590fi 4591if test -z "$CC"; then 4592 if test -n "$ac_tool_prefix"; then 4593 for ac_prog in cl.exe 4594 do 4595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4596set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4598$as_echo_n "checking for $ac_word... " >&6; } 4599if ${ac_cv_prog_CC+:} false; then : 4600 $as_echo_n "(cached) " >&6 4601else 4602 if test -n "$CC"; then 4603 ac_cv_prog_CC="$CC" # Let the user override the test. 4604else 4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4606for as_dir in $PATH 4607do 4608 IFS=$as_save_IFS 4609 test -z "$as_dir" && as_dir=. 4610 for ac_exec_ext in '' $ac_executable_extensions; do 4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4614 break 2 4615 fi 4616done 4617 done 4618IFS=$as_save_IFS 4619 4620fi 4621fi 4622CC=$ac_cv_prog_CC 4623if test -n "$CC"; then 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4625$as_echo "$CC" >&6; } 4626else 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4628$as_echo "no" >&6; } 4629fi 4630 4631 4632 test -n "$CC" && break 4633 done 4634fi 4635if test -z "$CC"; then 4636 ac_ct_CC=$CC 4637 for ac_prog in cl.exe 4638do 4639 # Extract the first word of "$ac_prog", so it can be a program name with args. 4640set dummy $ac_prog; ac_word=$2 4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4642$as_echo_n "checking for $ac_word... " >&6; } 4643if ${ac_cv_prog_ac_ct_CC+:} false; then : 4644 $as_echo_n "(cached) " >&6 4645else 4646 if test -n "$ac_ct_CC"; then 4647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4648else 4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4650for as_dir in $PATH 4651do 4652 IFS=$as_save_IFS 4653 test -z "$as_dir" && as_dir=. 4654 for ac_exec_ext in '' $ac_executable_extensions; do 4655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4656 ac_cv_prog_ac_ct_CC="$ac_prog" 4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4658 break 2 4659 fi 4660done 4661 done 4662IFS=$as_save_IFS 4663 4664fi 4665fi 4666ac_ct_CC=$ac_cv_prog_ac_ct_CC 4667if test -n "$ac_ct_CC"; then 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4669$as_echo "$ac_ct_CC" >&6; } 4670else 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4672$as_echo "no" >&6; } 4673fi 4674 4675 4676 test -n "$ac_ct_CC" && break 4677done 4678 4679 if test "x$ac_ct_CC" = x; then 4680 CC="" 4681 else 4682 case $cross_compiling:$ac_tool_warned in 4683yes:) 4684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4686ac_tool_warned=yes ;; 4687esac 4688 CC=$ac_ct_CC 4689 fi 4690fi 4691 4692fi 4693 4694 4695test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4697as_fn_error $? "no acceptable C compiler found in \$PATH 4698See \`config.log' for more details" "$LINENO" 5; } 4699 4700# Provide some information about the compiler. 4701$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4702set X $ac_compile 4703ac_compiler=$2 4704for ac_option in --version -v -V -qversion; do 4705 { { ac_try="$ac_compiler $ac_option >&5" 4706case "(($ac_try" in 4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4708 *) ac_try_echo=$ac_try;; 4709esac 4710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4711$as_echo "$ac_try_echo"; } >&5 4712 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4713 ac_status=$? 4714 if test -s conftest.err; then 4715 sed '10a\ 4716... rest of stderr output deleted ... 4717 10q' conftest.err >conftest.er1 4718 cat conftest.er1 >&5 4719 fi 4720 rm -f conftest.er1 conftest.err 4721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4722 test $ac_status = 0; } 4723done 4724 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4726$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4727if ${ac_cv_c_compiler_gnu+:} false; then : 4728 $as_echo_n "(cached) " >&6 4729else 4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4731/* end confdefs.h. */ 4732 4733int 4734main () 4735{ 4736#ifndef __GNUC__ 4737 choke me 4738#endif 4739 4740 ; 4741 return 0; 4742} 4743_ACEOF 4744if ac_fn_c_try_compile "$LINENO"; then : 4745 ac_compiler_gnu=yes 4746else 4747 ac_compiler_gnu=no 4748fi 4749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4750ac_cv_c_compiler_gnu=$ac_compiler_gnu 4751 4752fi 4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4754$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4755if test $ac_compiler_gnu = yes; then 4756 GCC=yes 4757else 4758 GCC= 4759fi 4760ac_test_CFLAGS=${CFLAGS+set} 4761ac_save_CFLAGS=$CFLAGS 4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4763$as_echo_n "checking whether $CC accepts -g... " >&6; } 4764if ${ac_cv_prog_cc_g+:} false; then : 4765 $as_echo_n "(cached) " >&6 4766else 4767 ac_save_c_werror_flag=$ac_c_werror_flag 4768 ac_c_werror_flag=yes 4769 ac_cv_prog_cc_g=no 4770 CFLAGS="-g" 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 ac_cv_prog_cc_g=yes 4784else 4785 CFLAGS="" 4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4787/* end confdefs.h. */ 4788 4789int 4790main () 4791{ 4792 4793 ; 4794 return 0; 4795} 4796_ACEOF 4797if ac_fn_c_try_compile "$LINENO"; then : 4798 4799else 4800 ac_c_werror_flag=$ac_save_c_werror_flag 4801 CFLAGS="-g" 4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4803/* end confdefs.h. */ 4804 4805int 4806main () 4807{ 4808 4809 ; 4810 return 0; 4811} 4812_ACEOF 4813if ac_fn_c_try_compile "$LINENO"; then : 4814 ac_cv_prog_cc_g=yes 4815fi 4816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4817fi 4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4819fi 4820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4821 ac_c_werror_flag=$ac_save_c_werror_flag 4822fi 4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4824$as_echo "$ac_cv_prog_cc_g" >&6; } 4825if test "$ac_test_CFLAGS" = set; then 4826 CFLAGS=$ac_save_CFLAGS 4827elif test $ac_cv_prog_cc_g = yes; then 4828 if test "$GCC" = yes; then 4829 CFLAGS="-g -O2" 4830 else 4831 CFLAGS="-g" 4832 fi 4833else 4834 if test "$GCC" = yes; then 4835 CFLAGS="-O2" 4836 else 4837 CFLAGS= 4838 fi 4839fi 4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4841$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4842if ${ac_cv_prog_cc_c89+:} false; then : 4843 $as_echo_n "(cached) " >&6 4844else 4845 ac_cv_prog_cc_c89=no 4846ac_save_CC=$CC 4847cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4848/* end confdefs.h. */ 4849#include <stdarg.h> 4850#include <stdio.h> 4851struct stat; 4852/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4853struct buf { int x; }; 4854FILE * (*rcsopen) (struct buf *, struct stat *, int); 4855static char *e (p, i) 4856 char **p; 4857 int i; 4858{ 4859 return p[i]; 4860} 4861static char *f (char * (*g) (char **, int), char **p, ...) 4862{ 4863 char *s; 4864 va_list v; 4865 va_start (v,p); 4866 s = g (p, va_arg (v,int)); 4867 va_end (v); 4868 return s; 4869} 4870 4871/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4872 function prototypes and stuff, but not '\xHH' hex character constants. 4873 These don't provoke an error unfortunately, instead are silently treated 4874 as 'x'. The following induces an error, until -std is added to get 4875 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4876 array size at least. It's necessary to write '\x00'==0 to get something 4877 that's true only with -std. */ 4878int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4879 4880/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4881 inside strings and character constants. */ 4882#define FOO(x) 'x' 4883int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4884 4885int test (int i, double x); 4886struct s1 {int (*f) (int a);}; 4887struct s2 {int (*f) (double a);}; 4888int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4889int argc; 4890char **argv; 4891int 4892main () 4893{ 4894return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4895 ; 4896 return 0; 4897} 4898_ACEOF 4899for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4900 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4901do 4902 CC="$ac_save_CC $ac_arg" 4903 if ac_fn_c_try_compile "$LINENO"; then : 4904 ac_cv_prog_cc_c89=$ac_arg 4905fi 4906rm -f core conftest.err conftest.$ac_objext 4907 test "x$ac_cv_prog_cc_c89" != "xno" && break 4908done 4909rm -f conftest.$ac_ext 4910CC=$ac_save_CC 4911 4912fi 4913# AC_CACHE_VAL 4914case "x$ac_cv_prog_cc_c89" in 4915 x) 4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4917$as_echo "none needed" >&6; } ;; 4918 xno) 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4920$as_echo "unsupported" >&6; } ;; 4921 *) 4922 CC="$CC $ac_cv_prog_cc_c89" 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4924$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4925esac 4926if test "x$ac_cv_prog_cc_c89" != xno; then : 4927 4928fi 4929 4930ac_ext=c 4931ac_cpp='$CPP $CPPFLAGS' 4932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4934ac_compiler_gnu=$ac_cv_c_compiler_gnu 4935 4936 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 4938$as_echo_n "checking $CC dependency flag... " >&6; } 4939echo 'void f(){}' >conftest.c 4940if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 4941 DEPFLAG="-MM" 4942else 4943 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 4944 DEPFLAG="-xM1" 4945 else 4946 DEPFLAG="-MM" # dunno do something 4947 fi 4948fi 4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 4950$as_echo "$DEPFLAG" >&6; } 4951rm -f conftest.c 4952 4953 4954 4955 4956 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 4958$as_echo_n "checking whether $CC supports -Werror... " >&6; } 4959cache=`echo Werror | sed 'y%.=/+-%___p_%'` 4960if eval \${cv_prog_cc_flag_$cache+:} false; then : 4961 $as_echo_n "(cached) " >&6 4962else 4963 4964echo 'void f(void){}' >conftest.c 4965if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 4966eval "cv_prog_cc_flag_$cache=yes" 4967else 4968eval "cv_prog_cc_flag_$cache=no" 4969fi 4970rm -f conftest conftest.o conftest.c 4971 4972fi 4973 4974if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4976$as_echo "yes" >&6; } 4977: 4978ERRFLAG="-Werror" 4979else 4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4981$as_echo "no" >&6; } 4982: 4983ERRFLAG="-errwarn" 4984fi 4985 4986 4987 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 4989$as_echo_n "checking whether $CC supports -Wall... " >&6; } 4990cache=`echo Wall | sed 'y%.=/+-%___p_%'` 4991if eval \${cv_prog_cc_flag_$cache+:} false; then : 4992 $as_echo_n "(cached) " >&6 4993else 4994 4995echo 'void f(void){}' >conftest.c 4996if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 4997eval "cv_prog_cc_flag_$cache=yes" 4998else 4999eval "cv_prog_cc_flag_$cache=no" 5000fi 5001rm -f conftest conftest.o conftest.c 5002 5003fi 5004 5005if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5007$as_echo "yes" >&6; } 5008: 5009ERRFLAG="$ERRFLAG -Wall" 5010else 5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5012$as_echo "no" >&6; } 5013: 5014ERRFLAG="$ERRFLAG -errfmt" 5015fi 5016 5017 5018 5019 5020 5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 5022$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 5023cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 5024if eval \${cv_prog_cc_flag_$cache+:} false; then : 5025 $as_echo_n "(cached) " >&6 5026else 5027 5028echo 'void f(void){}' >conftest.c 5029if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 5030eval "cv_prog_cc_flag_$cache=yes" 5031else 5032eval "cv_prog_cc_flag_$cache=no" 5033fi 5034rm -f conftest conftest.o conftest.c 5035 5036fi 5037 5038if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5040$as_echo "yes" >&6; } 5041: 5042C99FLAG="-std=c99" 5043else 5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5045$as_echo "no" >&6; } 5046: 5047 5048fi 5049 5050 5051 5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 5053$as_echo_n "checking whether $CC supports -xc99... " >&6; } 5054cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 5055if eval \${cv_prog_cc_flag_$cache+:} false; then : 5056 $as_echo_n "(cached) " >&6 5057else 5058 5059echo 'void f(void){}' >conftest.c 5060if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 5061eval "cv_prog_cc_flag_$cache=yes" 5062else 5063eval "cv_prog_cc_flag_$cache=no" 5064fi 5065rm -f conftest conftest.o conftest.c 5066 5067fi 5068 5069if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5071$as_echo "yes" >&6; } 5072: 5073C99FLAG="-xc99" 5074else 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5076$as_echo "no" >&6; } 5077: 5078 5079fi 5080 5081 5082for ac_header in getopt.h time.h 5083do : 5084 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5085ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5086" 5087if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5088 cat >>confdefs.h <<_ACEOF 5089#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5090_ACEOF 5091 5092fi 5093 5094done 5095 5096 5097 5098 5099 5100{ $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 5101$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; } 5102cache=`$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` 5103if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5104 $as_echo_n "(cached) " >&6 5105else 5106 5107echo ' 5108#include "confdefs.h" 5109#include <stdlib.h> 5110#include <ctype.h> 5111#include <sys/time.h> 5112#ifdef HAVE_TIME_H 5113#include <time.h> 5114#endif 5115#include <unistd.h> 5116#include <netdb.h> 5117#ifdef HAVE_GETOPT_H 5118#include <getopt.h> 5119#endif 5120 5121int test() { 5122 int a; 5123 char **opts = NULL; 5124 struct timeval tv; 5125 char *t; 5126 time_t time = 0; 5127 char *buf = NULL; 5128 const char* str = NULL; 5129 struct msghdr msg; 5130 msg.msg_control = 0; 5131 t = ctime_r(&time, buf); 5132 tv.tv_usec = 10; 5133 srandom(32); 5134 a = getopt(2, opts, "a"); 5135 a = isascii(32); 5136 str = gai_strerror(0); 5137 if(str && t && tv.tv_usec && msg.msg_control) 5138 a = 0; 5139 return a; 5140} 5141' > conftest.c 5142echo 'void f(){}' >>conftest.c 5143if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5144eval "cv_prog_cc_flag_needed_$cache=no" 5145else 5146 5147if 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 5148eval "cv_prog_cc_flag_needed_$cache=yes" 5149else 5150eval "cv_prog_cc_flag_needed_$cache=fail" 5151#echo 'Test with flag fails too!' 5152#cat conftest.c 5153#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" 5154#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` 5155#exit 1 5156fi 5157 5158fi 5159rm -f conftest conftest.c conftest.o 5160 5161fi 5162 5163if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5165$as_echo "yes" >&6; } 5166: 5167CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" 5168else 5169if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5171$as_echo "no" >&6; } 5172#echo 'Test with flag is no!' 5173#cat conftest.c 5174#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" 5175#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` 5176#exit 1 5177: 5178 5179else 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5181$as_echo "failed" >&6; } 5182: 5183 5184fi 5185fi 5186 5187 5188 5189 5190 5191{ $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 5192$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; } 5193cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 5194if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5195 $as_echo_n "(cached) " >&6 5196else 5197 5198echo ' 5199#include "confdefs.h" 5200#include <stdlib.h> 5201#include <ctype.h> 5202#include <sys/time.h> 5203#ifdef HAVE_TIME_H 5204#include <time.h> 5205#endif 5206#include <unistd.h> 5207#include <netdb.h> 5208#ifdef HAVE_GETOPT_H 5209#include <getopt.h> 5210#endif 5211 5212int test() { 5213 int a; 5214 char **opts = NULL; 5215 struct timeval tv; 5216 char *t; 5217 time_t time = 0; 5218 char *buf = NULL; 5219 const char* str = NULL; 5220 struct msghdr msg; 5221 msg.msg_control = 0; 5222 t = ctime_r(&time, buf); 5223 tv.tv_usec = 10; 5224 srandom(32); 5225 a = getopt(2, opts, "a"); 5226 a = isascii(32); 5227 str = gai_strerror(0); 5228 if(str && t && tv.tv_usec && msg.msg_control) 5229 a = 0; 5230 return a; 5231} 5232' > conftest.c 5233echo 'void f(){}' >>conftest.c 5234if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5235eval "cv_prog_cc_flag_needed_$cache=no" 5236else 5237 5238if 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 5239eval "cv_prog_cc_flag_needed_$cache=yes" 5240else 5241eval "cv_prog_cc_flag_needed_$cache=fail" 5242#echo 'Test with flag fails too!' 5243#cat conftest.c 5244#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" 5245#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` 5246#exit 1 5247fi 5248 5249fi 5250rm -f conftest conftest.c conftest.o 5251 5252fi 5253 5254if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5256$as_echo "yes" >&6; } 5257: 5258CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 5259else 5260if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5262$as_echo "no" >&6; } 5263#echo 'Test with flag is no!' 5264#cat conftest.c 5265#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" 5266#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` 5267#exit 1 5268: 5269 5270else 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5272$as_echo "failed" >&6; } 5273: 5274 5275fi 5276fi 5277 5278 5279 5280 5281 5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 5283$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 5284cache=`$as_echo "$C99FLAG" | $as_tr_sh` 5285if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5286 $as_echo_n "(cached) " >&6 5287else 5288 5289echo ' 5290#include <stdbool.h> 5291#include <ctype.h> 5292int test() { 5293 int a = 0; 5294 return a; 5295} 5296' > conftest.c 5297echo 'void f(){}' >>conftest.c 5298if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5299eval "cv_prog_cc_flag_needed_$cache=no" 5300else 5301 5302if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 5303eval "cv_prog_cc_flag_needed_$cache=yes" 5304else 5305eval "cv_prog_cc_flag_needed_$cache=fail" 5306#echo 'Test with flag fails too!' 5307#cat conftest.c 5308#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5309#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5310#exit 1 5311fi 5312 5313fi 5314rm -f conftest conftest.c conftest.o 5315 5316fi 5317 5318if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5320$as_echo "yes" >&6; } 5321: 5322CFLAGS="$CFLAGS $C99FLAG" 5323else 5324if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5326$as_echo "no" >&6; } 5327#echo 'Test with flag is no!' 5328#cat conftest.c 5329#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5330#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5331#exit 1 5332: 5333 5334else 5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5336$as_echo "failed" >&6; } 5337: 5338 5339fi 5340fi 5341 5342 5343 5344 5345 5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5 5347$as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; } 5348cache=_D_BSD_SOURCE 5349if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5350 $as_echo_n "(cached) " >&6 5351else 5352 5353echo ' 5354#include <ctype.h> 5355 5356int test() { 5357 int a; 5358 a = isascii(32); 5359 return a; 5360} 5361' > conftest.c 5362echo 'void f(){}' >>conftest.c 5363if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5364eval "cv_prog_cc_flag_needed_$cache=no" 5365else 5366 5367if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5368eval "cv_prog_cc_flag_needed_$cache=yes" 5369else 5370eval "cv_prog_cc_flag_needed_$cache=fail" 5371#echo 'Test with flag fails too!' 5372#cat conftest.c 5373#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5374#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5375#exit 1 5376fi 5377 5378fi 5379rm -f conftest conftest.c conftest.o 5380 5381fi 5382 5383if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5385$as_echo "yes" >&6; } 5386: 5387CFLAGS="$CFLAGS -D_BSD_SOURCE" 5388else 5389if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5391$as_echo "no" >&6; } 5392#echo 'Test with flag is no!' 5393#cat conftest.c 5394#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5395#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5396#exit 1 5397: 5398 5399else 5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5401$as_echo "failed" >&6; } 5402: 5403 5404fi 5405fi 5406 5407 5408 5409 5410 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 5412$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 5413cache=_D_GNU_SOURCE 5414if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5415 $as_echo_n "(cached) " >&6 5416else 5417 5418echo ' 5419#include <netinet/in.h> 5420 5421int test() { 5422 struct in6_pktinfo inf; 5423 int a = (int)sizeof(inf); 5424 return a; 5425} 5426' > conftest.c 5427echo 'void f(){}' >>conftest.c 5428if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5429eval "cv_prog_cc_flag_needed_$cache=no" 5430else 5431 5432if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5433eval "cv_prog_cc_flag_needed_$cache=yes" 5434else 5435eval "cv_prog_cc_flag_needed_$cache=fail" 5436#echo 'Test with flag fails too!' 5437#cat conftest.c 5438#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5439#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5440#exit 1 5441fi 5442 5443fi 5444rm -f conftest conftest.c conftest.o 5445 5446fi 5447 5448if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5450$as_echo "yes" >&6; } 5451: 5452CFLAGS="$CFLAGS -D_GNU_SOURCE" 5453else 5454if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5456$as_echo "no" >&6; } 5457#echo 'Test with flag is no!' 5458#cat conftest.c 5459#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5460#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5461#exit 1 5462: 5463 5464else 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5466$as_echo "failed" >&6; } 5467: 5468 5469fi 5470fi 5471 5472 5473# check again for GNU_SOURCE for setresgid. May fail if setresgid 5474# is not available at all. -D_FRSRESGID is to make this check unique. 5475# otherwise we would get the previous cached result. 5476 5477 5478 5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 5480$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 5481cache=_D_GNU_SOURCE__D_FRSRESGID 5482if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5483 $as_echo_n "(cached) " >&6 5484else 5485 5486echo ' 5487#include <unistd.h> 5488 5489int test() { 5490 int a = setresgid(0,0,0); 5491 a = setresuid(0,0,0); 5492 return a; 5493} 5494' > conftest.c 5495echo 'void f(){}' >>conftest.c 5496if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5497eval "cv_prog_cc_flag_needed_$cache=no" 5498else 5499 5500if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 5501eval "cv_prog_cc_flag_needed_$cache=yes" 5502else 5503eval "cv_prog_cc_flag_needed_$cache=fail" 5504#echo 'Test with flag fails too!' 5505#cat conftest.c 5506#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5507#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5508#exit 1 5509fi 5510 5511fi 5512rm -f conftest conftest.c conftest.o 5513 5514fi 5515 5516if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5518$as_echo "yes" >&6; } 5519: 5520CFLAGS="$CFLAGS -D_GNU_SOURCE" 5521else 5522if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5524$as_echo "no" >&6; } 5525#echo 'Test with flag is no!' 5526#cat conftest.c 5527#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5528#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5529#exit 1 5530: 5531 5532else 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5534$as_echo "failed" >&6; } 5535: 5536 5537fi 5538fi 5539 5540 5541 5542 5543 5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 5545$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 5546cache=_D_POSIX_C_SOURCE_200112 5547if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5548 $as_echo_n "(cached) " >&6 5549else 5550 5551echo ' 5552#include "confdefs.h" 5553#ifdef HAVE_TIME_H 5554#include <time.h> 5555#endif 5556#include <netdb.h> 5557 5558int test() { 5559 int a = 0; 5560 char *t; 5561 time_t time = 0; 5562 char *buf = NULL; 5563 const char* str = NULL; 5564 t = ctime_r(&time, buf); 5565 str = gai_strerror(0); 5566 if(t && str) 5567 a = 0; 5568 return a; 5569} 5570' > conftest.c 5571echo 'void f(){}' >>conftest.c 5572if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5573eval "cv_prog_cc_flag_needed_$cache=no" 5574else 5575 5576if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 5577eval "cv_prog_cc_flag_needed_$cache=yes" 5578else 5579eval "cv_prog_cc_flag_needed_$cache=fail" 5580#echo 'Test with flag fails too!' 5581#cat conftest.c 5582#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5583#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5584#exit 1 5585fi 5586 5587fi 5588rm -f conftest conftest.c conftest.o 5589 5590fi 5591 5592if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5594$as_echo "yes" >&6; } 5595: 5596CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 5597else 5598if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5600$as_echo "no" >&6; } 5601#echo 'Test with flag is no!' 5602#cat conftest.c 5603#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5604#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5605#exit 1 5606: 5607 5608else 5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5610$as_echo "failed" >&6; } 5611: 5612 5613fi 5614fi 5615 5616 5617 5618 5619 5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 5621$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 5622cache=_D__EXTENSIONS__ 5623if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5624 $as_echo_n "(cached) " >&6 5625else 5626 5627echo ' 5628#include "confdefs.h" 5629#include <stdlib.h> 5630#include <ctype.h> 5631#include <sys/time.h> 5632#ifdef HAVE_TIME_H 5633#include <time.h> 5634#endif 5635#include <unistd.h> 5636#ifdef HAVE_GETOPT_H 5637#include <getopt.h> 5638#endif 5639 5640int test() { 5641 int a; 5642 char **opts = NULL; 5643 struct timeval tv; 5644 tv.tv_usec = 10; 5645 srandom(32); 5646 a = getopt(2, opts, "a"); 5647 a = isascii(32); 5648 if(tv.tv_usec) 5649 a = 0; 5650 return a; 5651} 5652' > conftest.c 5653echo 'void f(){}' >>conftest.c 5654if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5655eval "cv_prog_cc_flag_needed_$cache=no" 5656else 5657 5658if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 5659eval "cv_prog_cc_flag_needed_$cache=yes" 5660else 5661eval "cv_prog_cc_flag_needed_$cache=fail" 5662#echo 'Test with flag fails too!' 5663#cat conftest.c 5664#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5665#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5666#exit 1 5667fi 5668 5669fi 5670rm -f conftest conftest.c conftest.o 5671 5672fi 5673 5674if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5676$as_echo "yes" >&6; } 5677: 5678CFLAGS="$CFLAGS -D__EXTENSIONS__" 5679else 5680if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5682$as_echo "no" >&6; } 5683#echo 'Test with flag is no!' 5684#cat conftest.c 5685#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5686#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5687#exit 1 5688: 5689 5690else 5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5692$as_echo "failed" >&6; } 5693: 5694 5695fi 5696fi 5697 5698 5699 5700 5701# debug mode flags warnings 5702# Check whether --enable-checking was given. 5703if test "${enable_checking+set}" = set; then : 5704 enableval=$enable_checking; 5705fi 5706 5707# Check whether --enable-debug was given. 5708if test "${enable_debug+set}" = set; then : 5709 enableval=$enable_debug; 5710fi 5711 5712if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; 5713else debug_enabled="$enable_checking"; fi 5714 5715case "$debug_enabled" in 5716 yes) 5717 5718 5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 5720$as_echo_n "checking whether $CC supports -W... " >&6; } 5721cache=`echo W | sed 'y%.=/+-%___p_%'` 5722if eval \${cv_prog_cc_flag_$cache+:} false; then : 5723 $as_echo_n "(cached) " >&6 5724else 5725 5726echo 'void f(void){}' >conftest.c 5727if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 5728eval "cv_prog_cc_flag_$cache=yes" 5729else 5730eval "cv_prog_cc_flag_$cache=no" 5731fi 5732rm -f conftest conftest.o conftest.c 5733 5734fi 5735 5736if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5738$as_echo "yes" >&6; } 5739: 5740CFLAGS="$CFLAGS -W" 5741else 5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5743$as_echo "no" >&6; } 5744: 5745 5746fi 5747 5748 5749 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5751$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5752cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5753if eval \${cv_prog_cc_flag_$cache+:} false; then : 5754 $as_echo_n "(cached) " >&6 5755else 5756 5757echo 'void f(void){}' >conftest.c 5758if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5759eval "cv_prog_cc_flag_$cache=yes" 5760else 5761eval "cv_prog_cc_flag_$cache=no" 5762fi 5763rm -f conftest conftest.o conftest.c 5764 5765fi 5766 5767if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5769$as_echo "yes" >&6; } 5770: 5771CFLAGS="$CFLAGS -Wall" 5772else 5773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5774$as_echo "no" >&6; } 5775: 5776 5777fi 5778 5779 5780 5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 5782$as_echo_n "checking whether $CC supports -Wextra... " >&6; } 5783cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 5784if eval \${cv_prog_cc_flag_$cache+:} false; then : 5785 $as_echo_n "(cached) " >&6 5786else 5787 5788echo 'void f(void){}' >conftest.c 5789if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then 5790eval "cv_prog_cc_flag_$cache=yes" 5791else 5792eval "cv_prog_cc_flag_$cache=no" 5793fi 5794rm -f conftest conftest.o conftest.c 5795 5796fi 5797 5798if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5800$as_echo "yes" >&6; } 5801: 5802CFLAGS="$CFLAGS -Wextra" 5803else 5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5805$as_echo "no" >&6; } 5806: 5807 5808fi 5809 5810 5811 5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 5813$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 5814cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'` 5815if eval \${cv_prog_cc_flag_$cache+:} false; then : 5816 $as_echo_n "(cached) " >&6 5817else 5818 5819echo 'void f(void){}' >conftest.c 5820if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 5821eval "cv_prog_cc_flag_$cache=yes" 5822else 5823eval "cv_prog_cc_flag_$cache=no" 5824fi 5825rm -f conftest conftest.o conftest.c 5826 5827fi 5828 5829if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5831$as_echo "yes" >&6; } 5832: 5833CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5834else 5835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5836$as_echo "no" >&6; } 5837: 5838 5839fi 5840 5841 5842$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h 5843 5844 ;; 5845 no|*) 5846 # nothing to do. 5847 ;; 5848esac 5849 5850 # Check whether --enable-flto was given. 5851if test "${enable_flto+set}" = set; then : 5852 enableval=$enable_flto; 5853fi 5854 5855 if test "x$enable_flto" != "xno"; then : 5856 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 5858$as_echo_n "checking if $CC supports -flto... " >&6; } 5859 BAKCFLAGS="$CFLAGS" 5860 CFLAGS="$CFLAGS -flto" 5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5862/* end confdefs.h. */ 5863 5864int 5865main () 5866{ 5867 5868 ; 5869 return 0; 5870} 5871_ACEOF 5872if ac_fn_c_try_link "$LINENO"; then : 5873 5874 if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 5875 CFLAGS="$BAKCFLAGS" 5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5877$as_echo "no" >&6; } 5878 else 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5880$as_echo "yes" >&6; } 5881 fi 5882 rm -f conftest conftest.c conftest.o 5883 5884else 5885 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5886$as_echo "no" >&6; } 5887fi 5888rm -f core conftest.err conftest.$ac_objext \ 5889 conftest$ac_exeext conftest.$ac_ext 5890 5891fi 5892 5893 5894 # Check whether --enable-pie was given. 5895if test "${enable_pie+set}" = set; then : 5896 enableval=$enable_pie; 5897fi 5898 5899 if test "x$enable_pie" = "xyes"; then : 5900 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5 5902$as_echo_n "checking if $CC supports PIE... " >&6; } 5903 BAKLDFLAGS="$LDFLAGS" 5904 BAKCFLAGS="$CFLAGS" 5905 LDFLAGS="$LDFLAGS -pie" 5906 CFLAGS="$CFLAGS -fPIE" 5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5908/* end confdefs.h. */ 5909 5910int 5911main () 5912{ 5913 5914 ; 5915 return 0; 5916} 5917_ACEOF 5918if ac_fn_c_try_link "$LINENO"; then : 5919 5920 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 5921 LDFLAGS="$BAKLDFLAGS" 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5923$as_echo "no" >&6; } 5924 else 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5926$as_echo "yes" >&6; } 5927 fi 5928 rm -f conftest conftest.c conftest.o 5929 5930else 5931 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5932$as_echo "no" >&6; } 5933fi 5934rm -f core conftest.err conftest.$ac_objext \ 5935 conftest$ac_exeext conftest.$ac_ext 5936 5937fi 5938 5939 5940 # Check whether --enable-relro_now was given. 5941if test "${enable_relro_now+set}" = set; then : 5942 enableval=$enable_relro_now; 5943fi 5944 5945 if test "x$enable_relro_now" = "xyes"; then : 5946 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5 5948$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; } 5949 BAKLDFLAGS="$LDFLAGS" 5950 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now" 5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5952/* end confdefs.h. */ 5953 5954int 5955main () 5956{ 5957 5958 ; 5959 return 0; 5960} 5961_ACEOF 5962if ac_fn_c_try_link "$LINENO"; then : 5963 5964 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 5965 LDFLAGS="$BAKLDFLAGS" 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5967$as_echo "no" >&6; } 5968 else 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5970$as_echo "yes" >&6; } 5971 fi 5972 rm -f conftest conftest.c conftest.o 5973 5974else 5975 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5976$as_echo "no" >&6; } 5977fi 5978rm -f core conftest.err conftest.$ac_objext \ 5979 conftest$ac_exeext conftest.$ac_ext 5980 5981fi 5982 5983 5984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5985$as_echo_n "checking for inline... " >&6; } 5986if ${ac_cv_c_inline+:} false; then : 5987 $as_echo_n "(cached) " >&6 5988else 5989 ac_cv_c_inline=no 5990for ac_kw in inline __inline__ __inline; do 5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5992/* end confdefs.h. */ 5993#ifndef __cplusplus 5994typedef int foo_t; 5995static $ac_kw foo_t static_foo () {return 0; } 5996$ac_kw foo_t foo () {return 0; } 5997#endif 5998 5999_ACEOF 6000if ac_fn_c_try_compile "$LINENO"; then : 6001 ac_cv_c_inline=$ac_kw 6002fi 6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6004 test "$ac_cv_c_inline" != no && break 6005done 6006 6007fi 6008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6009$as_echo "$ac_cv_c_inline" >&6; } 6010 6011case $ac_cv_c_inline in 6012 inline | yes) ;; 6013 *) 6014 case $ac_cv_c_inline in 6015 no) ac_val=;; 6016 *) ac_val=$ac_cv_c_inline;; 6017 esac 6018 cat >>confdefs.h <<_ACEOF 6019#ifndef __cplusplus 6020#define inline $ac_val 6021#endif 6022_ACEOF 6023 ;; 6024esac 6025 6026 6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 6028$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 6029if ${ac_cv_c_format_attribute+:} false; then : 6030 $as_echo_n "(cached) " >&6 6031else 6032 ac_cv_c_format_attribute=no 6033cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6034/* end confdefs.h. */ 6035#include <stdio.h> 6036void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6037void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6038 6039int 6040main () 6041{ 6042 6043 f ("%s", "str"); 6044 6045 ; 6046 return 0; 6047} 6048_ACEOF 6049if ac_fn_c_try_compile "$LINENO"; then : 6050 ac_cv_c_format_attribute="yes" 6051else 6052 ac_cv_c_format_attribute="no" 6053fi 6054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6055 6056fi 6057 6058 6059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 6060$as_echo "$ac_cv_c_format_attribute" >&6; } 6061if test $ac_cv_c_format_attribute = yes; then 6062 6063$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 6064 6065fi 6066 6067 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 6069$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 6070if ${ac_cv_c_unused_attribute+:} false; then : 6071 $as_echo_n "(cached) " >&6 6072else 6073 ac_cv_c_unused_attribute=no 6074cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6075/* end confdefs.h. */ 6076#include <stdio.h> 6077void f (char *u __attribute__((unused))); 6078 6079int 6080main () 6081{ 6082 6083 f ("x"); 6084 6085 ; 6086 return 0; 6087} 6088_ACEOF 6089if ac_fn_c_try_compile "$LINENO"; then : 6090 ac_cv_c_unused_attribute="yes" 6091else 6092 ac_cv_c_unused_attribute="no" 6093fi 6094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6095 6096fi 6097 6098 6099 6100 6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 6102$as_echo "$ac_cv_c_unused_attribute" >&6; } 6103if test $ac_cv_c_unused_attribute = yes; then 6104 6105$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 6106 6107fi 6108 6109 6110if test "$srcdir" != "."; then 6111 CPPFLAGS="$CPPFLAGS -I$srcdir" 6112fi 6113 6114 6115 6116for ac_prog in flex lex 6117do 6118 # Extract the first word of "$ac_prog", so it can be a program name with args. 6119set dummy $ac_prog; ac_word=$2 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6121$as_echo_n "checking for $ac_word... " >&6; } 6122if ${ac_cv_prog_LEX+:} false; then : 6123 $as_echo_n "(cached) " >&6 6124else 6125 if test -n "$LEX"; then 6126 ac_cv_prog_LEX="$LEX" # Let the user override the test. 6127else 6128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6129for as_dir in $PATH 6130do 6131 IFS=$as_save_IFS 6132 test -z "$as_dir" && as_dir=. 6133 for ac_exec_ext in '' $ac_executable_extensions; do 6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6135 ac_cv_prog_LEX="$ac_prog" 6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6137 break 2 6138 fi 6139done 6140 done 6141IFS=$as_save_IFS 6142 6143fi 6144fi 6145LEX=$ac_cv_prog_LEX 6146if test -n "$LEX"; then 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 6148$as_echo "$LEX" >&6; } 6149else 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6151$as_echo "no" >&6; } 6152fi 6153 6154 6155 test -n "$LEX" && break 6156done 6157test -n "$LEX" || LEX=":" 6158 6159if test "x$LEX" != "x:"; then 6160 cat >conftest.l <<_ACEOF 6161%% 6162a { ECHO; } 6163b { REJECT; } 6164c { yymore (); } 6165d { yyless (1); } 6166e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 6167 yyless ((input () != 0)); } 6168f { unput (yytext[0]); } 6169. { BEGIN INITIAL; } 6170%% 6171#ifdef YYTEXT_POINTER 6172extern char *yytext; 6173#endif 6174int 6175main (void) 6176{ 6177 return ! yylex () + ! yywrap (); 6178} 6179_ACEOF 6180{ { ac_try="$LEX conftest.l" 6181case "(($ac_try" in 6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6183 *) ac_try_echo=$ac_try;; 6184esac 6185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6186$as_echo "$ac_try_echo"; } >&5 6187 (eval "$LEX conftest.l") 2>&5 6188 ac_status=$? 6189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6190 test $ac_status = 0; } 6191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 6192$as_echo_n "checking lex output file root... " >&6; } 6193if ${ac_cv_prog_lex_root+:} false; then : 6194 $as_echo_n "(cached) " >&6 6195else 6196 6197if test -f lex.yy.c; then 6198 ac_cv_prog_lex_root=lex.yy 6199elif test -f lexyy.c; then 6200 ac_cv_prog_lex_root=lexyy 6201else 6202 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 6203fi 6204fi 6205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 6206$as_echo "$ac_cv_prog_lex_root" >&6; } 6207LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 6208 6209if test -z "${LEXLIB+set}"; then 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 6211$as_echo_n "checking lex library... " >&6; } 6212if ${ac_cv_lib_lex+:} false; then : 6213 $as_echo_n "(cached) " >&6 6214else 6215 6216 ac_save_LIBS=$LIBS 6217 ac_cv_lib_lex='none needed' 6218 for ac_lib in '' -lfl -ll; do 6219 LIBS="$ac_lib $ac_save_LIBS" 6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6221/* end confdefs.h. */ 6222`cat $LEX_OUTPUT_ROOT.c` 6223_ACEOF 6224if ac_fn_c_try_link "$LINENO"; then : 6225 ac_cv_lib_lex=$ac_lib 6226fi 6227rm -f core conftest.err conftest.$ac_objext \ 6228 conftest$ac_exeext conftest.$ac_ext 6229 test "$ac_cv_lib_lex" != 'none needed' && break 6230 done 6231 LIBS=$ac_save_LIBS 6232 6233fi 6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 6235$as_echo "$ac_cv_lib_lex" >&6; } 6236 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 6237fi 6238 6239 6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 6241$as_echo_n "checking whether yytext is a pointer... " >&6; } 6242if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 6243 $as_echo_n "(cached) " >&6 6244else 6245 # POSIX says lex can declare yytext either as a pointer or an array; the 6246# default is implementation-dependent. Figure out which it is, since 6247# not all implementations provide the %pointer and %array declarations. 6248ac_cv_prog_lex_yytext_pointer=no 6249ac_save_LIBS=$LIBS 6250LIBS="$LEXLIB $ac_save_LIBS" 6251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6252/* end confdefs.h. */ 6253 6254 #define YYTEXT_POINTER 1 6255`cat $LEX_OUTPUT_ROOT.c` 6256_ACEOF 6257if ac_fn_c_try_link "$LINENO"; then : 6258 ac_cv_prog_lex_yytext_pointer=yes 6259fi 6260rm -f core conftest.err conftest.$ac_objext \ 6261 conftest$ac_exeext conftest.$ac_ext 6262LIBS=$ac_save_LIBS 6263 6264fi 6265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 6266$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 6267if test $ac_cv_prog_lex_yytext_pointer = yes; then 6268 6269$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 6270 6271fi 6272rm -f conftest.l $LEX_OUTPUT_ROOT.c 6273 6274fi 6275 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5 6277$as_echo_n "checking for yylex_destroy... " >&6; } 6278 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then 6279 6280$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h 6281 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6283$as_echo "yes" >&6; } 6284 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6285$as_echo "no" >&6; }; fi 6286 6287for ac_prog in 'bison -y' byacc 6288do 6289 # Extract the first word of "$ac_prog", so it can be a program name with args. 6290set dummy $ac_prog; ac_word=$2 6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6292$as_echo_n "checking for $ac_word... " >&6; } 6293if ${ac_cv_prog_YACC+:} false; then : 6294 $as_echo_n "(cached) " >&6 6295else 6296 if test -n "$YACC"; then 6297 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6298else 6299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6300for as_dir in $PATH 6301do 6302 IFS=$as_save_IFS 6303 test -z "$as_dir" && as_dir=. 6304 for ac_exec_ext in '' $ac_executable_extensions; do 6305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6306 ac_cv_prog_YACC="$ac_prog" 6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6308 break 2 6309 fi 6310done 6311 done 6312IFS=$as_save_IFS 6313 6314fi 6315fi 6316YACC=$ac_cv_prog_YACC 6317if test -n "$YACC"; then 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 6319$as_echo "$YACC" >&6; } 6320else 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6322$as_echo "no" >&6; } 6323fi 6324 6325 6326 test -n "$YACC" && break 6327done 6328test -n "$YACC" || YACC="yacc" 6329 6330# Extract the first word of "doxygen", so it can be a program name with args. 6331set dummy doxygen; ac_word=$2 6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6333$as_echo_n "checking for $ac_word... " >&6; } 6334if ${ac_cv_prog_doxygen+:} false; then : 6335 $as_echo_n "(cached) " >&6 6336else 6337 if test -n "$doxygen"; then 6338 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 6339else 6340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6341for as_dir in $PATH 6342do 6343 IFS=$as_save_IFS 6344 test -z "$as_dir" && as_dir=. 6345 for ac_exec_ext in '' $ac_executable_extensions; do 6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6347 ac_cv_prog_doxygen="doxygen" 6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6349 break 2 6350 fi 6351done 6352 done 6353IFS=$as_save_IFS 6354 6355fi 6356fi 6357doxygen=$ac_cv_prog_doxygen 6358if test -n "$doxygen"; then 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 6360$as_echo "$doxygen" >&6; } 6361else 6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6363$as_echo "no" >&6; } 6364fi 6365 6366 6367if test -n "$ac_tool_prefix"; then 6368 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6369set dummy ${ac_tool_prefix}strip; ac_word=$2 6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6371$as_echo_n "checking for $ac_word... " >&6; } 6372if ${ac_cv_prog_STRIP+:} false; then : 6373 $as_echo_n "(cached) " >&6 6374else 6375 if test -n "$STRIP"; then 6376 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6377else 6378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6379for as_dir in $PATH 6380do 6381 IFS=$as_save_IFS 6382 test -z "$as_dir" && as_dir=. 6383 for ac_exec_ext in '' $ac_executable_extensions; do 6384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6385 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6387 break 2 6388 fi 6389done 6390 done 6391IFS=$as_save_IFS 6392 6393fi 6394fi 6395STRIP=$ac_cv_prog_STRIP 6396if test -n "$STRIP"; then 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6398$as_echo "$STRIP" >&6; } 6399else 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6401$as_echo "no" >&6; } 6402fi 6403 6404 6405fi 6406if test -z "$ac_cv_prog_STRIP"; then 6407 ac_ct_STRIP=$STRIP 6408 # Extract the first word of "strip", so it can be a program name with args. 6409set dummy strip; ac_word=$2 6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6411$as_echo_n "checking for $ac_word... " >&6; } 6412if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6413 $as_echo_n "(cached) " >&6 6414else 6415 if test -n "$ac_ct_STRIP"; then 6416 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6417else 6418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6419for as_dir in $PATH 6420do 6421 IFS=$as_save_IFS 6422 test -z "$as_dir" && as_dir=. 6423 for ac_exec_ext in '' $ac_executable_extensions; do 6424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6425 ac_cv_prog_ac_ct_STRIP="strip" 6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6427 break 2 6428 fi 6429done 6430 done 6431IFS=$as_save_IFS 6432 6433fi 6434fi 6435ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6436if test -n "$ac_ct_STRIP"; then 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6438$as_echo "$ac_ct_STRIP" >&6; } 6439else 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6441$as_echo "no" >&6; } 6442fi 6443 6444 if test "x$ac_ct_STRIP" = x; then 6445 STRIP="" 6446 else 6447 case $cross_compiling:$ac_tool_warned in 6448yes:) 6449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6451ac_tool_warned=yes ;; 6452esac 6453 STRIP=$ac_ct_STRIP 6454 fi 6455else 6456 STRIP="$ac_cv_prog_STRIP" 6457fi 6458 6459ac_aux_dir= 6460for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 6461 if test -f "$ac_dir/install-sh"; then 6462 ac_aux_dir=$ac_dir 6463 ac_install_sh="$ac_aux_dir/install-sh -c" 6464 break 6465 elif test -f "$ac_dir/install.sh"; then 6466 ac_aux_dir=$ac_dir 6467 ac_install_sh="$ac_aux_dir/install.sh -c" 6468 break 6469 elif test -f "$ac_dir/shtool"; then 6470 ac_aux_dir=$ac_dir 6471 ac_install_sh="$ac_aux_dir/shtool install -c" 6472 break 6473 fi 6474done 6475if test -z "$ac_aux_dir"; then 6476 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 6477fi 6478 6479# These three variables are undocumented and unsupported, 6480# and are intended to be withdrawn in a future Autoconf release. 6481# They can cause serious problems if a builder's source tree is in a directory 6482# whose full name contains unusual characters. 6483ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 6484ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 6485ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 6486 6487 6488# Make sure we can run config.sub. 6489$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6490 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6491 6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6493$as_echo_n "checking build system type... " >&6; } 6494if ${ac_cv_build+:} false; then : 6495 $as_echo_n "(cached) " >&6 6496else 6497 ac_build_alias=$build_alias 6498test "x$ac_build_alias" = x && 6499 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6500test "x$ac_build_alias" = x && 6501 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6502ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6504 6505fi 6506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6507$as_echo "$ac_cv_build" >&6; } 6508case $ac_cv_build in 6509*-*-*) ;; 6510*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6511esac 6512build=$ac_cv_build 6513ac_save_IFS=$IFS; IFS='-' 6514set x $ac_cv_build 6515shift 6516build_cpu=$1 6517build_vendor=$2 6518shift; shift 6519# Remember, the first character of IFS is used to create $*, 6520# except with old shells: 6521build_os=$* 6522IFS=$ac_save_IFS 6523case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6524 6525 6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6527$as_echo_n "checking host system type... " >&6; } 6528if ${ac_cv_host+:} false; then : 6529 $as_echo_n "(cached) " >&6 6530else 6531 if test "x$host_alias" = x; then 6532 ac_cv_host=$ac_cv_build 6533else 6534 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6535 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6536fi 6537 6538fi 6539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6540$as_echo "$ac_cv_host" >&6; } 6541case $ac_cv_host in 6542*-*-*) ;; 6543*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6544esac 6545host=$ac_cv_host 6546ac_save_IFS=$IFS; IFS='-' 6547set x $ac_cv_host 6548shift 6549host_cpu=$1 6550host_vendor=$2 6551shift; shift 6552# Remember, the first character of IFS is used to create $*, 6553# except with old shells: 6554host_os=$* 6555IFS=$ac_save_IFS 6556case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6557 6558 6559 6560# skip these tests, we do not need them. 6561 6562 6563 6564 6565 6566 6567 6568 6569# always use ./libtool unless override from commandline (libtool=mylibtool) 6570if test -z "$libtool"; then 6571 libtool="./libtool" 6572fi 6573 6574# avoid libtool max commandline length test on systems that fork slowly. 6575 6576if echo "$host_os" | grep "sunos4" >/dev/null; then 6577 lt_cv_sys_max_cmd_len=32750; 6578fi 6579if test -n "$ac_tool_prefix"; then 6580 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6581set dummy ${ac_tool_prefix}ar; ac_word=$2 6582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6583$as_echo_n "checking for $ac_word... " >&6; } 6584if ${ac_cv_path_AR+:} false; then : 6585 $as_echo_n "(cached) " >&6 6586else 6587 case $AR in 6588 [\\/]* | ?:[\\/]*) 6589 ac_cv_path_AR="$AR" # Let the user override the test with a path. 6590 ;; 6591 *) 6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6593for as_dir in $PATH 6594do 6595 IFS=$as_save_IFS 6596 test -z "$as_dir" && as_dir=. 6597 for ac_exec_ext in '' $ac_executable_extensions; do 6598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6599 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 6600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6601 break 2 6602 fi 6603done 6604 done 6605IFS=$as_save_IFS 6606 6607 ;; 6608esac 6609fi 6610AR=$ac_cv_path_AR 6611if test -n "$AR"; then 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6613$as_echo "$AR" >&6; } 6614else 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6616$as_echo "no" >&6; } 6617fi 6618 6619 6620fi 6621if test -z "$ac_cv_path_AR"; then 6622 ac_pt_AR=$AR 6623 # Extract the first word of "ar", so it can be a program name with args. 6624set dummy ar; ac_word=$2 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6626$as_echo_n "checking for $ac_word... " >&6; } 6627if ${ac_cv_path_ac_pt_AR+:} false; then : 6628 $as_echo_n "(cached) " >&6 6629else 6630 case $ac_pt_AR in 6631 [\\/]* | ?:[\\/]*) 6632 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 6633 ;; 6634 *) 6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6636for as_dir in $PATH 6637do 6638 IFS=$as_save_IFS 6639 test -z "$as_dir" && as_dir=. 6640 for ac_exec_ext in '' $ac_executable_extensions; do 6641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6642 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6644 break 2 6645 fi 6646done 6647 done 6648IFS=$as_save_IFS 6649 6650 ;; 6651esac 6652fi 6653ac_pt_AR=$ac_cv_path_ac_pt_AR 6654if test -n "$ac_pt_AR"; then 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 6656$as_echo "$ac_pt_AR" >&6; } 6657else 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6659$as_echo "no" >&6; } 6660fi 6661 6662 if test "x$ac_pt_AR" = x; then 6663 AR="false" 6664 else 6665 case $cross_compiling:$ac_tool_warned in 6666yes:) 6667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6669ac_tool_warned=yes ;; 6670esac 6671 AR=$ac_pt_AR 6672 fi 6673else 6674 AR="$ac_cv_path_AR" 6675fi 6676 6677if test $AR = false; then 6678 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 6679fi 6680 6681case `pwd` in 6682 *\ * | *\ *) 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6684$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6685esac 6686 6687 6688 6689macro_version='2.4.2' 6690macro_revision='1.3337' 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704ltmain="$ac_aux_dir/ltmain.sh" 6705 6706# Backslashify metacharacters that are still active within 6707# double-quoted strings. 6708sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6709 6710# Same as above, but do not quote variable references. 6711double_quote_subst='s/\(["`\\]\)/\\\1/g' 6712 6713# Sed substitution to delay expansion of an escaped shell variable in a 6714# double_quote_subst'ed string. 6715delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6716 6717# Sed substitution to delay expansion of an escaped single quote. 6718delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6719 6720# Sed substitution to avoid accidental globbing in evaled expressions 6721no_glob_subst='s/\*/\\\*/g' 6722 6723ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6724ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6725ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6726 6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6728$as_echo_n "checking how to print strings... " >&6; } 6729# Test print first, because it will be a builtin if present. 6730if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6731 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6732 ECHO='print -r --' 6733elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6734 ECHO='printf %s\n' 6735else 6736 # Use this function as a fallback that always works. 6737 func_fallback_echo () 6738 { 6739 eval 'cat <<_LTECHO_EOF 6740$1 6741_LTECHO_EOF' 6742 } 6743 ECHO='func_fallback_echo' 6744fi 6745 6746# func_echo_all arg... 6747# Invoke $ECHO with all args, space-separated. 6748func_echo_all () 6749{ 6750 $ECHO "" 6751} 6752 6753case "$ECHO" in 6754 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6755$as_echo "printf" >&6; } ;; 6756 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6757$as_echo "print -r" >&6; } ;; 6758 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6759$as_echo "cat" >&6; } ;; 6760esac 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6776$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6777if ${ac_cv_path_SED+:} false; then : 6778 $as_echo_n "(cached) " >&6 6779else 6780 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6781 for ac_i in 1 2 3 4 5 6 7; do 6782 ac_script="$ac_script$as_nl$ac_script" 6783 done 6784 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6785 { ac_script=; unset ac_script;} 6786 if test -z "$SED"; then 6787 ac_path_SED_found=false 6788 # Loop through the user's path and test for each of PROGNAME-LIST 6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6790for as_dir in $PATH 6791do 6792 IFS=$as_save_IFS 6793 test -z "$as_dir" && as_dir=. 6794 for ac_prog in sed gsed; do 6795 for ac_exec_ext in '' $ac_executable_extensions; do 6796 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6797 as_fn_executable_p "$ac_path_SED" || continue 6798# Check for GNU ac_path_SED and select it if it is found. 6799 # Check for GNU $ac_path_SED 6800case `"$ac_path_SED" --version 2>&1` in 6801*GNU*) 6802 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6803*) 6804 ac_count=0 6805 $as_echo_n 0123456789 >"conftest.in" 6806 while : 6807 do 6808 cat "conftest.in" "conftest.in" >"conftest.tmp" 6809 mv "conftest.tmp" "conftest.in" 6810 cp "conftest.in" "conftest.nl" 6811 $as_echo '' >> "conftest.nl" 6812 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6814 as_fn_arith $ac_count + 1 && ac_count=$as_val 6815 if test $ac_count -gt ${ac_path_SED_max-0}; then 6816 # Best one so far, save it but keep looking for a better one 6817 ac_cv_path_SED="$ac_path_SED" 6818 ac_path_SED_max=$ac_count 6819 fi 6820 # 10*(2^10) chars as input seems more than enough 6821 test $ac_count -gt 10 && break 6822 done 6823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6824esac 6825 6826 $ac_path_SED_found && break 3 6827 done 6828 done 6829 done 6830IFS=$as_save_IFS 6831 if test -z "$ac_cv_path_SED"; then 6832 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6833 fi 6834else 6835 ac_cv_path_SED=$SED 6836fi 6837 6838fi 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6840$as_echo "$ac_cv_path_SED" >&6; } 6841 SED="$ac_cv_path_SED" 6842 rm -f conftest.sed 6843 6844test -z "$SED" && SED=sed 6845Xsed="$SED -e 1s/^X//" 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6858$as_echo_n "checking for fgrep... " >&6; } 6859if ${ac_cv_path_FGREP+:} false; then : 6860 $as_echo_n "(cached) " >&6 6861else 6862 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6863 then ac_cv_path_FGREP="$GREP -F" 6864 else 6865 if test -z "$FGREP"; then 6866 ac_path_FGREP_found=false 6867 # Loop through the user's path and test for each of PROGNAME-LIST 6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6869for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6870do 6871 IFS=$as_save_IFS 6872 test -z "$as_dir" && as_dir=. 6873 for ac_prog in fgrep; do 6874 for ac_exec_ext in '' $ac_executable_extensions; do 6875 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6876 as_fn_executable_p "$ac_path_FGREP" || continue 6877# Check for GNU ac_path_FGREP and select it if it is found. 6878 # Check for GNU $ac_path_FGREP 6879case `"$ac_path_FGREP" --version 2>&1` in 6880*GNU*) 6881 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6882*) 6883 ac_count=0 6884 $as_echo_n 0123456789 >"conftest.in" 6885 while : 6886 do 6887 cat "conftest.in" "conftest.in" >"conftest.tmp" 6888 mv "conftest.tmp" "conftest.in" 6889 cp "conftest.in" "conftest.nl" 6890 $as_echo 'FGREP' >> "conftest.nl" 6891 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6893 as_fn_arith $ac_count + 1 && ac_count=$as_val 6894 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6895 # Best one so far, save it but keep looking for a better one 6896 ac_cv_path_FGREP="$ac_path_FGREP" 6897 ac_path_FGREP_max=$ac_count 6898 fi 6899 # 10*(2^10) chars as input seems more than enough 6900 test $ac_count -gt 10 && break 6901 done 6902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6903esac 6904 6905 $ac_path_FGREP_found && break 3 6906 done 6907 done 6908 done 6909IFS=$as_save_IFS 6910 if test -z "$ac_cv_path_FGREP"; then 6911 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6912 fi 6913else 6914 ac_cv_path_FGREP=$FGREP 6915fi 6916 6917 fi 6918fi 6919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6920$as_echo "$ac_cv_path_FGREP" >&6; } 6921 FGREP="$ac_cv_path_FGREP" 6922 6923 6924test -z "$GREP" && GREP=grep 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944# Check whether --with-gnu-ld was given. 6945if test "${with_gnu_ld+set}" = set; then : 6946 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6947else 6948 with_gnu_ld=no 6949fi 6950 6951ac_prog=ld 6952if test "$GCC" = yes; then 6953 # Check if gcc -print-prog-name=ld gives a path. 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6955$as_echo_n "checking for ld used by $CC... " >&6; } 6956 case $host in 6957 *-*-mingw*) 6958 # gcc leaves a trailing carriage return which upsets mingw 6959 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6960 *) 6961 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6962 esac 6963 case $ac_prog in 6964 # Accept absolute paths. 6965 [\\/]* | ?:[\\/]*) 6966 re_direlt='/[^/][^/]*/\.\./' 6967 # Canonicalize the pathname of ld 6968 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6969 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6970 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6971 done 6972 test -z "$LD" && LD="$ac_prog" 6973 ;; 6974 "") 6975 # If it fails, then pretend we aren't using GCC. 6976 ac_prog=ld 6977 ;; 6978 *) 6979 # If it is relative, then search for the first ld in PATH. 6980 with_gnu_ld=unknown 6981 ;; 6982 esac 6983elif test "$with_gnu_ld" = yes; then 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6985$as_echo_n "checking for GNU ld... " >&6; } 6986else 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6988$as_echo_n "checking for non-GNU ld... " >&6; } 6989fi 6990if ${lt_cv_path_LD+:} false; then : 6991 $as_echo_n "(cached) " >&6 6992else 6993 if test -z "$LD"; then 6994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6995 for ac_dir in $PATH; do 6996 IFS="$lt_save_ifs" 6997 test -z "$ac_dir" && ac_dir=. 6998 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6999 lt_cv_path_LD="$ac_dir/$ac_prog" 7000 # Check to see if the program is GNU ld. I'd rather use --version, 7001 # but apparently some variants of GNU ld only accept -v. 7002 # Break only if it was the GNU/non-GNU ld that we prefer. 7003 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7004 *GNU* | *'with BFD'*) 7005 test "$with_gnu_ld" != no && break 7006 ;; 7007 *) 7008 test "$with_gnu_ld" != yes && break 7009 ;; 7010 esac 7011 fi 7012 done 7013 IFS="$lt_save_ifs" 7014else 7015 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7016fi 7017fi 7018 7019LD="$lt_cv_path_LD" 7020if test -n "$LD"; then 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7022$as_echo "$LD" >&6; } 7023else 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7025$as_echo "no" >&6; } 7026fi 7027test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7029$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7030if ${lt_cv_prog_gnu_ld+:} false; then : 7031 $as_echo_n "(cached) " >&6 7032else 7033 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7034case `$LD -v 2>&1 </dev/null` in 7035*GNU* | *'with BFD'*) 7036 lt_cv_prog_gnu_ld=yes 7037 ;; 7038*) 7039 lt_cv_prog_gnu_ld=no 7040 ;; 7041esac 7042fi 7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7044$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7045with_gnu_ld=$lt_cv_prog_gnu_ld 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7056$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7057if ${lt_cv_path_NM+:} false; then : 7058 $as_echo_n "(cached) " >&6 7059else 7060 if test -n "$NM"; then 7061 # Let the user override the test. 7062 lt_cv_path_NM="$NM" 7063else 7064 lt_nm_to_check="${ac_tool_prefix}nm" 7065 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7066 lt_nm_to_check="$lt_nm_to_check nm" 7067 fi 7068 for lt_tmp_nm in $lt_nm_to_check; do 7069 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7070 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7071 IFS="$lt_save_ifs" 7072 test -z "$ac_dir" && ac_dir=. 7073 tmp_nm="$ac_dir/$lt_tmp_nm" 7074 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 7075 # Check to see if the nm accepts a BSD-compat flag. 7076 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7077 # nm: unknown option "B" ignored 7078 # Tru64's nm complains that /dev/null is an invalid object file 7079 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 7080 */dev/null* | *'Invalid file or object type'*) 7081 lt_cv_path_NM="$tmp_nm -B" 7082 break 7083 ;; 7084 *) 7085 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7086 */dev/null*) 7087 lt_cv_path_NM="$tmp_nm -p" 7088 break 7089 ;; 7090 *) 7091 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7092 continue # so that we can try to find one that supports BSD flags 7093 ;; 7094 esac 7095 ;; 7096 esac 7097 fi 7098 done 7099 IFS="$lt_save_ifs" 7100 done 7101 : ${lt_cv_path_NM=no} 7102fi 7103fi 7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7105$as_echo "$lt_cv_path_NM" >&6; } 7106if test "$lt_cv_path_NM" != "no"; then 7107 NM="$lt_cv_path_NM" 7108else 7109 # Didn't find any BSD compatible name lister, look for dumpbin. 7110 if test -n "$DUMPBIN"; then : 7111 # Let the user override the test. 7112 else 7113 if test -n "$ac_tool_prefix"; then 7114 for ac_prog in dumpbin "link -dump" 7115 do 7116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7117set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7119$as_echo_n "checking for $ac_word... " >&6; } 7120if ${ac_cv_prog_DUMPBIN+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122else 7123 if test -n "$DUMPBIN"; then 7124 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7125else 7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7127for as_dir in $PATH 7128do 7129 IFS=$as_save_IFS 7130 test -z "$as_dir" && as_dir=. 7131 for ac_exec_ext in '' $ac_executable_extensions; do 7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7133 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7135 break 2 7136 fi 7137done 7138 done 7139IFS=$as_save_IFS 7140 7141fi 7142fi 7143DUMPBIN=$ac_cv_prog_DUMPBIN 7144if test -n "$DUMPBIN"; then 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7146$as_echo "$DUMPBIN" >&6; } 7147else 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7149$as_echo "no" >&6; } 7150fi 7151 7152 7153 test -n "$DUMPBIN" && break 7154 done 7155fi 7156if test -z "$DUMPBIN"; then 7157 ac_ct_DUMPBIN=$DUMPBIN 7158 for ac_prog in dumpbin "link -dump" 7159do 7160 # Extract the first word of "$ac_prog", so it can be a program name with args. 7161set dummy $ac_prog; ac_word=$2 7162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7163$as_echo_n "checking for $ac_word... " >&6; } 7164if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7165 $as_echo_n "(cached) " >&6 7166else 7167 if test -n "$ac_ct_DUMPBIN"; then 7168 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7169else 7170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7171for as_dir in $PATH 7172do 7173 IFS=$as_save_IFS 7174 test -z "$as_dir" && as_dir=. 7175 for ac_exec_ext in '' $ac_executable_extensions; do 7176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7177 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7179 break 2 7180 fi 7181done 7182 done 7183IFS=$as_save_IFS 7184 7185fi 7186fi 7187ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7188if test -n "$ac_ct_DUMPBIN"; then 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7190$as_echo "$ac_ct_DUMPBIN" >&6; } 7191else 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7193$as_echo "no" >&6; } 7194fi 7195 7196 7197 test -n "$ac_ct_DUMPBIN" && break 7198done 7199 7200 if test "x$ac_ct_DUMPBIN" = x; then 7201 DUMPBIN=":" 7202 else 7203 case $cross_compiling:$ac_tool_warned in 7204yes:) 7205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7207ac_tool_warned=yes ;; 7208esac 7209 DUMPBIN=$ac_ct_DUMPBIN 7210 fi 7211fi 7212 7213 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7214 *COFF*) 7215 DUMPBIN="$DUMPBIN -symbols" 7216 ;; 7217 *) 7218 DUMPBIN=: 7219 ;; 7220 esac 7221 fi 7222 7223 if test "$DUMPBIN" != ":"; then 7224 NM="$DUMPBIN" 7225 fi 7226fi 7227test -z "$NM" && NM=nm 7228 7229 7230 7231 7232 7233 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7235$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7236if ${lt_cv_nm_interface+:} false; then : 7237 $as_echo_n "(cached) " >&6 7238else 7239 lt_cv_nm_interface="BSD nm" 7240 echo "int some_variable = 0;" > conftest.$ac_ext 7241 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7242 (eval "$ac_compile" 2>conftest.err) 7243 cat conftest.err >&5 7244 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7245 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7246 cat conftest.err >&5 7247 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7248 cat conftest.out >&5 7249 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7250 lt_cv_nm_interface="MS dumpbin" 7251 fi 7252 rm -f conftest* 7253fi 7254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7255$as_echo "$lt_cv_nm_interface" >&6; } 7256 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7258$as_echo_n "checking whether ln -s works... " >&6; } 7259LN_S=$as_ln_s 7260if test "$LN_S" = "ln -s"; then 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7262$as_echo "yes" >&6; } 7263else 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7265$as_echo "no, using $LN_S" >&6; } 7266fi 7267 7268# find the maximum length of command line arguments 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7270$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7271if ${lt_cv_sys_max_cmd_len+:} false; then : 7272 $as_echo_n "(cached) " >&6 7273else 7274 i=0 7275 teststring="ABCD" 7276 7277 case $build_os in 7278 msdosdjgpp*) 7279 # On DJGPP, this test can blow up pretty badly due to problems in libc 7280 # (any single argument exceeding 2000 bytes causes a buffer overrun 7281 # during glob expansion). Even if it were fixed, the result of this 7282 # check would be larger than it should be. 7283 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7284 ;; 7285 7286 gnu*) 7287 # Under GNU Hurd, this test is not required because there is 7288 # no limit to the length of command line arguments. 7289 # Libtool will interpret -1 as no limit whatsoever 7290 lt_cv_sys_max_cmd_len=-1; 7291 ;; 7292 7293 cygwin* | mingw* | cegcc*) 7294 # On Win9x/ME, this test blows up -- it succeeds, but takes 7295 # about 5 minutes as the teststring grows exponentially. 7296 # Worse, since 9x/ME are not pre-emptively multitasking, 7297 # you end up with a "frozen" computer, even though with patience 7298 # the test eventually succeeds (with a max line length of 256k). 7299 # Instead, let's just punt: use the minimum linelength reported by 7300 # all of the supported platforms: 8192 (on NT/2K/XP). 7301 lt_cv_sys_max_cmd_len=8192; 7302 ;; 7303 7304 mint*) 7305 # On MiNT this can take a long time and run out of memory. 7306 lt_cv_sys_max_cmd_len=8192; 7307 ;; 7308 7309 amigaos*) 7310 # On AmigaOS with pdksh, this test takes hours, literally. 7311 # So we just punt and use a minimum line length of 8192. 7312 lt_cv_sys_max_cmd_len=8192; 7313 ;; 7314 7315 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7316 # This has been around since 386BSD, at least. Likely further. 7317 if test -x /sbin/sysctl; then 7318 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7319 elif test -x /usr/sbin/sysctl; then 7320 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7321 else 7322 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7323 fi 7324 # And add a safety zone 7325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7327 ;; 7328 7329 interix*) 7330 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7331 lt_cv_sys_max_cmd_len=196608 7332 ;; 7333 7334 os2*) 7335 # The test takes a long time on OS/2. 7336 lt_cv_sys_max_cmd_len=8192 7337 ;; 7338 7339 osf*) 7340 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7341 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7342 # nice to cause kernel panics so lets avoid the loop below. 7343 # First set a reasonable default. 7344 lt_cv_sys_max_cmd_len=16384 7345 # 7346 if test -x /sbin/sysconfig; then 7347 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7348 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7349 esac 7350 fi 7351 ;; 7352 sco3.2v5*) 7353 lt_cv_sys_max_cmd_len=102400 7354 ;; 7355 sysv5* | sco5v6* | sysv4.2uw2*) 7356 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7357 if test -n "$kargmax"; then 7358 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7359 else 7360 lt_cv_sys_max_cmd_len=32768 7361 fi 7362 ;; 7363 *) 7364 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7365 if test -n "$lt_cv_sys_max_cmd_len"; then 7366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7368 else 7369 # Make teststring a little bigger before we do anything with it. 7370 # a 1K string should be a reasonable start. 7371 for i in 1 2 3 4 5 6 7 8 ; do 7372 teststring=$teststring$teststring 7373 done 7374 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7375 # If test is not a shell built-in, we'll probably end up computing a 7376 # maximum length that is only half of the actual maximum length, but 7377 # we can't tell. 7378 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 7379 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7380 test $i != 17 # 1/2 MB should be enough 7381 do 7382 i=`expr $i + 1` 7383 teststring=$teststring$teststring 7384 done 7385 # Only check the string length outside the loop. 7386 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7387 teststring= 7388 # Add a significant safety factor because C++ compilers can tack on 7389 # massive amounts of additional arguments before passing them to the 7390 # linker. It appears as though 1/2 is a usable value. 7391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7392 fi 7393 ;; 7394 esac 7395 7396fi 7397 7398if test -n $lt_cv_sys_max_cmd_len ; then 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7400$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7401else 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7403$as_echo "none" >&6; } 7404fi 7405max_cmd_len=$lt_cv_sys_max_cmd_len 7406 7407 7408 7409 7410 7411 7412: ${CP="cp -f"} 7413: ${MV="mv -f"} 7414: ${RM="rm -f"} 7415 7416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7417$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7418# Try some XSI features 7419xsi_shell=no 7420( _lt_dummy="a/b/c" 7421 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7422 = c,a/b,b/c, \ 7423 && eval 'test $(( 1 + 1 )) -eq 2 \ 7424 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7425 && xsi_shell=yes 7426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7427$as_echo "$xsi_shell" >&6; } 7428 7429 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7431$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7432lt_shell_append=no 7433( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7434 >/dev/null 2>&1 \ 7435 && lt_shell_append=yes 7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7437$as_echo "$lt_shell_append" >&6; } 7438 7439 7440if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7441 lt_unset=unset 7442else 7443 lt_unset=false 7444fi 7445 7446 7447 7448 7449 7450# test EBCDIC or ASCII 7451case `echo X|tr X '\101'` in 7452 A) # ASCII based system 7453 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7454 lt_SP2NL='tr \040 \012' 7455 lt_NL2SP='tr \015\012 \040\040' 7456 ;; 7457 *) # EBCDIC based system 7458 lt_SP2NL='tr \100 \n' 7459 lt_NL2SP='tr \r\n \100\100' 7460 ;; 7461esac 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7472$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7473if ${lt_cv_to_host_file_cmd+:} false; then : 7474 $as_echo_n "(cached) " >&6 7475else 7476 case $host in 7477 *-*-mingw* ) 7478 case $build in 7479 *-*-mingw* ) # actually msys 7480 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7481 ;; 7482 *-*-cygwin* ) 7483 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7484 ;; 7485 * ) # otherwise, assume *nix 7486 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7487 ;; 7488 esac 7489 ;; 7490 *-*-cygwin* ) 7491 case $build in 7492 *-*-mingw* ) # actually msys 7493 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7494 ;; 7495 *-*-cygwin* ) 7496 lt_cv_to_host_file_cmd=func_convert_file_noop 7497 ;; 7498 * ) # otherwise, assume *nix 7499 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7500 ;; 7501 esac 7502 ;; 7503 * ) # unhandled hosts (and "normal" native builds) 7504 lt_cv_to_host_file_cmd=func_convert_file_noop 7505 ;; 7506esac 7507 7508fi 7509 7510to_host_file_cmd=$lt_cv_to_host_file_cmd 7511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7512$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7513 7514 7515 7516 7517 7518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7519$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7520if ${lt_cv_to_tool_file_cmd+:} false; then : 7521 $as_echo_n "(cached) " >&6 7522else 7523 #assume ordinary cross tools, or native build. 7524lt_cv_to_tool_file_cmd=func_convert_file_noop 7525case $host in 7526 *-*-mingw* ) 7527 case $build in 7528 *-*-mingw* ) # actually msys 7529 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7530 ;; 7531 esac 7532 ;; 7533esac 7534 7535fi 7536 7537to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7539$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7540 7541 7542 7543 7544 7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7546$as_echo_n "checking for $LD option to reload object files... " >&6; } 7547if ${lt_cv_ld_reload_flag+:} false; then : 7548 $as_echo_n "(cached) " >&6 7549else 7550 lt_cv_ld_reload_flag='-r' 7551fi 7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7553$as_echo "$lt_cv_ld_reload_flag" >&6; } 7554reload_flag=$lt_cv_ld_reload_flag 7555case $reload_flag in 7556"" | " "*) ;; 7557*) reload_flag=" $reload_flag" ;; 7558esac 7559reload_cmds='$LD$reload_flag -o $output$reload_objs' 7560case $host_os in 7561 cygwin* | mingw* | pw32* | cegcc*) 7562 if test "$GCC" != yes; then 7563 reload_cmds=false 7564 fi 7565 ;; 7566 darwin*) 7567 if test "$GCC" = yes; then 7568 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7569 else 7570 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7571 fi 7572 ;; 7573esac 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583if test -n "$ac_tool_prefix"; then 7584 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7585set dummy ${ac_tool_prefix}objdump; ac_word=$2 7586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7587$as_echo_n "checking for $ac_word... " >&6; } 7588if ${ac_cv_prog_OBJDUMP+:} false; then : 7589 $as_echo_n "(cached) " >&6 7590else 7591 if test -n "$OBJDUMP"; then 7592 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7593else 7594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7595for as_dir in $PATH 7596do 7597 IFS=$as_save_IFS 7598 test -z "$as_dir" && as_dir=. 7599 for ac_exec_ext in '' $ac_executable_extensions; do 7600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7601 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7603 break 2 7604 fi 7605done 7606 done 7607IFS=$as_save_IFS 7608 7609fi 7610fi 7611OBJDUMP=$ac_cv_prog_OBJDUMP 7612if test -n "$OBJDUMP"; then 7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7614$as_echo "$OBJDUMP" >&6; } 7615else 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7617$as_echo "no" >&6; } 7618fi 7619 7620 7621fi 7622if test -z "$ac_cv_prog_OBJDUMP"; then 7623 ac_ct_OBJDUMP=$OBJDUMP 7624 # Extract the first word of "objdump", so it can be a program name with args. 7625set dummy objdump; ac_word=$2 7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7627$as_echo_n "checking for $ac_word... " >&6; } 7628if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7629 $as_echo_n "(cached) " >&6 7630else 7631 if test -n "$ac_ct_OBJDUMP"; then 7632 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7633else 7634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7635for as_dir in $PATH 7636do 7637 IFS=$as_save_IFS 7638 test -z "$as_dir" && as_dir=. 7639 for ac_exec_ext in '' $ac_executable_extensions; do 7640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7641 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7643 break 2 7644 fi 7645done 7646 done 7647IFS=$as_save_IFS 7648 7649fi 7650fi 7651ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7652if test -n "$ac_ct_OBJDUMP"; then 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7654$as_echo "$ac_ct_OBJDUMP" >&6; } 7655else 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7657$as_echo "no" >&6; } 7658fi 7659 7660 if test "x$ac_ct_OBJDUMP" = x; then 7661 OBJDUMP="false" 7662 else 7663 case $cross_compiling:$ac_tool_warned in 7664yes:) 7665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7667ac_tool_warned=yes ;; 7668esac 7669 OBJDUMP=$ac_ct_OBJDUMP 7670 fi 7671else 7672 OBJDUMP="$ac_cv_prog_OBJDUMP" 7673fi 7674 7675test -z "$OBJDUMP" && OBJDUMP=objdump 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7686$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7687if ${lt_cv_deplibs_check_method+:} false; then : 7688 $as_echo_n "(cached) " >&6 7689else 7690 lt_cv_file_magic_cmd='$MAGIC_CMD' 7691lt_cv_file_magic_test_file= 7692lt_cv_deplibs_check_method='unknown' 7693# Need to set the preceding variable on all platforms that support 7694# interlibrary dependencies. 7695# 'none' -- dependencies not supported. 7696# `unknown' -- same as none, but documents that we really don't know. 7697# 'pass_all' -- all dependencies passed with no checks. 7698# 'test_compile' -- check by making test program. 7699# 'file_magic [[regex]]' -- check by looking for files in library path 7700# which responds to the $file_magic_cmd with a given extended regex. 7701# If you have `file' or equivalent on your system and you're not sure 7702# whether `pass_all' will *always* work, you probably want this one. 7703 7704case $host_os in 7705aix[4-9]*) 7706 lt_cv_deplibs_check_method=pass_all 7707 ;; 7708 7709beos*) 7710 lt_cv_deplibs_check_method=pass_all 7711 ;; 7712 7713bsdi[45]*) 7714 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7715 lt_cv_file_magic_cmd='/usr/bin/file -L' 7716 lt_cv_file_magic_test_file=/shlib/libc.so 7717 ;; 7718 7719cygwin*) 7720 # func_win32_libid is a shell function defined in ltmain.sh 7721 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7722 lt_cv_file_magic_cmd='func_win32_libid' 7723 ;; 7724 7725mingw* | pw32*) 7726 # Base MSYS/MinGW do not provide the 'file' command needed by 7727 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7728 # unless we find 'file', for example because we are cross-compiling. 7729 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7730 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7731 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7732 lt_cv_file_magic_cmd='func_win32_libid' 7733 else 7734 # Keep this pattern in sync with the one in func_win32_libid. 7735 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7736 lt_cv_file_magic_cmd='$OBJDUMP -f' 7737 fi 7738 ;; 7739 7740cegcc*) 7741 # use the weaker test based on 'objdump'. See mingw*. 7742 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7743 lt_cv_file_magic_cmd='$OBJDUMP -f' 7744 ;; 7745 7746darwin* | rhapsody*) 7747 lt_cv_deplibs_check_method=pass_all 7748 ;; 7749 7750freebsd* | dragonfly*) 7751 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7752 case $host_cpu in 7753 i*86 ) 7754 # Not sure whether the presence of OpenBSD here was a mistake. 7755 # Let's accept both of them until this is cleared up. 7756 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7757 lt_cv_file_magic_cmd=/usr/bin/file 7758 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7759 ;; 7760 esac 7761 else 7762 lt_cv_deplibs_check_method=pass_all 7763 fi 7764 ;; 7765 7766gnu*) 7767 lt_cv_deplibs_check_method=pass_all 7768 ;; 7769 7770haiku*) 7771 lt_cv_deplibs_check_method=pass_all 7772 ;; 7773 7774hpux10.20* | hpux11*) 7775 lt_cv_file_magic_cmd=/usr/bin/file 7776 case $host_cpu in 7777 ia64*) 7778 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7779 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7780 ;; 7781 hppa*64*) 7782 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]' 7783 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7784 ;; 7785 *) 7786 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7787 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7788 ;; 7789 esac 7790 ;; 7791 7792interix[3-9]*) 7793 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7795 ;; 7796 7797irix5* | irix6* | nonstopux*) 7798 case $LD in 7799 *-32|*"-32 ") libmagic=32-bit;; 7800 *-n32|*"-n32 ") libmagic=N32;; 7801 *-64|*"-64 ") libmagic=64-bit;; 7802 *) libmagic=never-match;; 7803 esac 7804 lt_cv_deplibs_check_method=pass_all 7805 ;; 7806 7807# This must be glibc/ELF. 7808linux* | k*bsd*-gnu | kopensolaris*-gnu) 7809 lt_cv_deplibs_check_method=pass_all 7810 ;; 7811 7812netbsd*) 7813 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7815 else 7816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7817 fi 7818 ;; 7819 7820newos6*) 7821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7822 lt_cv_file_magic_cmd=/usr/bin/file 7823 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7824 ;; 7825 7826*nto* | *qnx*) 7827 lt_cv_deplibs_check_method=pass_all 7828 ;; 7829 7830openbsd*) 7831 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7833 else 7834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7835 fi 7836 ;; 7837 7838osf3* | osf4* | osf5*) 7839 lt_cv_deplibs_check_method=pass_all 7840 ;; 7841 7842rdos*) 7843 lt_cv_deplibs_check_method=pass_all 7844 ;; 7845 7846solaris*) 7847 lt_cv_deplibs_check_method=pass_all 7848 ;; 7849 7850sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7851 lt_cv_deplibs_check_method=pass_all 7852 ;; 7853 7854sysv4 | sysv4.3*) 7855 case $host_vendor in 7856 motorola) 7857 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]' 7858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7859 ;; 7860 ncr) 7861 lt_cv_deplibs_check_method=pass_all 7862 ;; 7863 sequent) 7864 lt_cv_file_magic_cmd='/bin/file' 7865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7866 ;; 7867 sni) 7868 lt_cv_file_magic_cmd='/bin/file' 7869 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7870 lt_cv_file_magic_test_file=/lib/libc.so 7871 ;; 7872 siemens) 7873 lt_cv_deplibs_check_method=pass_all 7874 ;; 7875 pc) 7876 lt_cv_deplibs_check_method=pass_all 7877 ;; 7878 esac 7879 ;; 7880 7881tpf*) 7882 lt_cv_deplibs_check_method=pass_all 7883 ;; 7884esac 7885 7886fi 7887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7888$as_echo "$lt_cv_deplibs_check_method" >&6; } 7889 7890file_magic_glob= 7891want_nocaseglob=no 7892if test "$build" = "$host"; then 7893 case $host_os in 7894 mingw* | pw32*) 7895 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7896 want_nocaseglob=yes 7897 else 7898 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7899 fi 7900 ;; 7901 esac 7902fi 7903 7904file_magic_cmd=$lt_cv_file_magic_cmd 7905deplibs_check_method=$lt_cv_deplibs_check_method 7906test -z "$deplibs_check_method" && deplibs_check_method=unknown 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929if test -n "$ac_tool_prefix"; then 7930 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7931set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7933$as_echo_n "checking for $ac_word... " >&6; } 7934if ${ac_cv_prog_DLLTOOL+:} false; then : 7935 $as_echo_n "(cached) " >&6 7936else 7937 if test -n "$DLLTOOL"; then 7938 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7939else 7940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7941for as_dir in $PATH 7942do 7943 IFS=$as_save_IFS 7944 test -z "$as_dir" && as_dir=. 7945 for ac_exec_ext in '' $ac_executable_extensions; do 7946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7947 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7949 break 2 7950 fi 7951done 7952 done 7953IFS=$as_save_IFS 7954 7955fi 7956fi 7957DLLTOOL=$ac_cv_prog_DLLTOOL 7958if test -n "$DLLTOOL"; then 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7960$as_echo "$DLLTOOL" >&6; } 7961else 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7963$as_echo "no" >&6; } 7964fi 7965 7966 7967fi 7968if test -z "$ac_cv_prog_DLLTOOL"; then 7969 ac_ct_DLLTOOL=$DLLTOOL 7970 # Extract the first word of "dlltool", so it can be a program name with args. 7971set dummy dlltool; ac_word=$2 7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7973$as_echo_n "checking for $ac_word... " >&6; } 7974if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7975 $as_echo_n "(cached) " >&6 7976else 7977 if test -n "$ac_ct_DLLTOOL"; then 7978 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7979else 7980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7981for as_dir in $PATH 7982do 7983 IFS=$as_save_IFS 7984 test -z "$as_dir" && as_dir=. 7985 for ac_exec_ext in '' $ac_executable_extensions; do 7986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7987 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7989 break 2 7990 fi 7991done 7992 done 7993IFS=$as_save_IFS 7994 7995fi 7996fi 7997ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7998if test -n "$ac_ct_DLLTOOL"; then 7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8000$as_echo "$ac_ct_DLLTOOL" >&6; } 8001else 8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8003$as_echo "no" >&6; } 8004fi 8005 8006 if test "x$ac_ct_DLLTOOL" = x; then 8007 DLLTOOL="false" 8008 else 8009 case $cross_compiling:$ac_tool_warned in 8010yes:) 8011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8013ac_tool_warned=yes ;; 8014esac 8015 DLLTOOL=$ac_ct_DLLTOOL 8016 fi 8017else 8018 DLLTOOL="$ac_cv_prog_DLLTOOL" 8019fi 8020 8021test -z "$DLLTOOL" && DLLTOOL=dlltool 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8033$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8034if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8035 $as_echo_n "(cached) " >&6 8036else 8037 lt_cv_sharedlib_from_linklib_cmd='unknown' 8038 8039case $host_os in 8040cygwin* | mingw* | pw32* | cegcc*) 8041 # two different shell functions defined in ltmain.sh 8042 # decide which to use based on capabilities of $DLLTOOL 8043 case `$DLLTOOL --help 2>&1` in 8044 *--identify-strict*) 8045 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8046 ;; 8047 *) 8048 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8049 ;; 8050 esac 8051 ;; 8052*) 8053 # fallback: assume linklib IS sharedlib 8054 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 8055 ;; 8056esac 8057 8058fi 8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8060$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8061sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8062test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8063 8064 8065 8066 8067 8068 8069 8070if test -n "$ac_tool_prefix"; then 8071 for ac_prog in ar 8072 do 8073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8074set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8076$as_echo_n "checking for $ac_word... " >&6; } 8077if ${ac_cv_prog_AR+:} false; then : 8078 $as_echo_n "(cached) " >&6 8079else 8080 if test -n "$AR"; then 8081 ac_cv_prog_AR="$AR" # Let the user override the test. 8082else 8083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8084for as_dir in $PATH 8085do 8086 IFS=$as_save_IFS 8087 test -z "$as_dir" && as_dir=. 8088 for ac_exec_ext in '' $ac_executable_extensions; do 8089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8090 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8092 break 2 8093 fi 8094done 8095 done 8096IFS=$as_save_IFS 8097 8098fi 8099fi 8100AR=$ac_cv_prog_AR 8101if test -n "$AR"; then 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8103$as_echo "$AR" >&6; } 8104else 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8106$as_echo "no" >&6; } 8107fi 8108 8109 8110 test -n "$AR" && break 8111 done 8112fi 8113if test -z "$AR"; then 8114 ac_ct_AR=$AR 8115 for ac_prog in ar 8116do 8117 # Extract the first word of "$ac_prog", so it can be a program name with args. 8118set dummy $ac_prog; ac_word=$2 8119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8120$as_echo_n "checking for $ac_word... " >&6; } 8121if ${ac_cv_prog_ac_ct_AR+:} false; then : 8122 $as_echo_n "(cached) " >&6 8123else 8124 if test -n "$ac_ct_AR"; then 8125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8126else 8127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8128for as_dir in $PATH 8129do 8130 IFS=$as_save_IFS 8131 test -z "$as_dir" && as_dir=. 8132 for ac_exec_ext in '' $ac_executable_extensions; do 8133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8134 ac_cv_prog_ac_ct_AR="$ac_prog" 8135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8136 break 2 8137 fi 8138done 8139 done 8140IFS=$as_save_IFS 8141 8142fi 8143fi 8144ac_ct_AR=$ac_cv_prog_ac_ct_AR 8145if test -n "$ac_ct_AR"; then 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8147$as_echo "$ac_ct_AR" >&6; } 8148else 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8150$as_echo "no" >&6; } 8151fi 8152 8153 8154 test -n "$ac_ct_AR" && break 8155done 8156 8157 if test "x$ac_ct_AR" = x; then 8158 AR="false" 8159 else 8160 case $cross_compiling:$ac_tool_warned in 8161yes:) 8162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8164ac_tool_warned=yes ;; 8165esac 8166 AR=$ac_ct_AR 8167 fi 8168fi 8169 8170: ${AR=ar} 8171: ${AR_FLAGS=cru} 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8184$as_echo_n "checking for archiver @FILE support... " >&6; } 8185if ${lt_cv_ar_at_file+:} false; then : 8186 $as_echo_n "(cached) " >&6 8187else 8188 lt_cv_ar_at_file=no 8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8190/* end confdefs.h. */ 8191 8192int 8193main () 8194{ 8195 8196 ; 8197 return 0; 8198} 8199_ACEOF 8200if ac_fn_c_try_compile "$LINENO"; then : 8201 echo conftest.$ac_objext > conftest.lst 8202 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8204 (eval $lt_ar_try) 2>&5 8205 ac_status=$? 8206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8207 test $ac_status = 0; } 8208 if test "$ac_status" -eq 0; then 8209 # Ensure the archiver fails upon bogus file names. 8210 rm -f conftest.$ac_objext libconftest.a 8211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8212 (eval $lt_ar_try) 2>&5 8213 ac_status=$? 8214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8215 test $ac_status = 0; } 8216 if test "$ac_status" -ne 0; then 8217 lt_cv_ar_at_file=@ 8218 fi 8219 fi 8220 rm -f conftest.* libconftest.a 8221 8222fi 8223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8224 8225fi 8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8227$as_echo "$lt_cv_ar_at_file" >&6; } 8228 8229if test "x$lt_cv_ar_at_file" = xno; then 8230 archiver_list_spec= 8231else 8232 archiver_list_spec=$lt_cv_ar_at_file 8233fi 8234 8235 8236 8237 8238 8239 8240 8241if test -n "$ac_tool_prefix"; then 8242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8243set dummy ${ac_tool_prefix}strip; ac_word=$2 8244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8245$as_echo_n "checking for $ac_word... " >&6; } 8246if ${ac_cv_prog_STRIP+:} false; then : 8247 $as_echo_n "(cached) " >&6 8248else 8249 if test -n "$STRIP"; then 8250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8251else 8252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8253for as_dir in $PATH 8254do 8255 IFS=$as_save_IFS 8256 test -z "$as_dir" && as_dir=. 8257 for ac_exec_ext in '' $ac_executable_extensions; do 8258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8259 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8261 break 2 8262 fi 8263done 8264 done 8265IFS=$as_save_IFS 8266 8267fi 8268fi 8269STRIP=$ac_cv_prog_STRIP 8270if test -n "$STRIP"; then 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8272$as_echo "$STRIP" >&6; } 8273else 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8275$as_echo "no" >&6; } 8276fi 8277 8278 8279fi 8280if test -z "$ac_cv_prog_STRIP"; then 8281 ac_ct_STRIP=$STRIP 8282 # Extract the first word of "strip", so it can be a program name with args. 8283set dummy strip; ac_word=$2 8284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8285$as_echo_n "checking for $ac_word... " >&6; } 8286if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8287 $as_echo_n "(cached) " >&6 8288else 8289 if test -n "$ac_ct_STRIP"; then 8290 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8291else 8292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8293for as_dir in $PATH 8294do 8295 IFS=$as_save_IFS 8296 test -z "$as_dir" && as_dir=. 8297 for ac_exec_ext in '' $ac_executable_extensions; do 8298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8299 ac_cv_prog_ac_ct_STRIP="strip" 8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8301 break 2 8302 fi 8303done 8304 done 8305IFS=$as_save_IFS 8306 8307fi 8308fi 8309ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8310if test -n "$ac_ct_STRIP"; then 8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8312$as_echo "$ac_ct_STRIP" >&6; } 8313else 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8315$as_echo "no" >&6; } 8316fi 8317 8318 if test "x$ac_ct_STRIP" = x; then 8319 STRIP=":" 8320 else 8321 case $cross_compiling:$ac_tool_warned in 8322yes:) 8323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8325ac_tool_warned=yes ;; 8326esac 8327 STRIP=$ac_ct_STRIP 8328 fi 8329else 8330 STRIP="$ac_cv_prog_STRIP" 8331fi 8332 8333test -z "$STRIP" && STRIP=: 8334 8335 8336 8337 8338 8339 8340if test -n "$ac_tool_prefix"; then 8341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8342set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8344$as_echo_n "checking for $ac_word... " >&6; } 8345if ${ac_cv_prog_RANLIB+:} false; then : 8346 $as_echo_n "(cached) " >&6 8347else 8348 if test -n "$RANLIB"; then 8349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8350else 8351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8352for as_dir in $PATH 8353do 8354 IFS=$as_save_IFS 8355 test -z "$as_dir" && as_dir=. 8356 for ac_exec_ext in '' $ac_executable_extensions; do 8357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8358 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8360 break 2 8361 fi 8362done 8363 done 8364IFS=$as_save_IFS 8365 8366fi 8367fi 8368RANLIB=$ac_cv_prog_RANLIB 8369if test -n "$RANLIB"; then 8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8371$as_echo "$RANLIB" >&6; } 8372else 8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8374$as_echo "no" >&6; } 8375fi 8376 8377 8378fi 8379if test -z "$ac_cv_prog_RANLIB"; then 8380 ac_ct_RANLIB=$RANLIB 8381 # Extract the first word of "ranlib", so it can be a program name with args. 8382set dummy ranlib; ac_word=$2 8383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8384$as_echo_n "checking for $ac_word... " >&6; } 8385if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8386 $as_echo_n "(cached) " >&6 8387else 8388 if test -n "$ac_ct_RANLIB"; then 8389 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8390else 8391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8392for as_dir in $PATH 8393do 8394 IFS=$as_save_IFS 8395 test -z "$as_dir" && as_dir=. 8396 for ac_exec_ext in '' $ac_executable_extensions; do 8397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8398 ac_cv_prog_ac_ct_RANLIB="ranlib" 8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8400 break 2 8401 fi 8402done 8403 done 8404IFS=$as_save_IFS 8405 8406fi 8407fi 8408ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8409if test -n "$ac_ct_RANLIB"; then 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8411$as_echo "$ac_ct_RANLIB" >&6; } 8412else 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8414$as_echo "no" >&6; } 8415fi 8416 8417 if test "x$ac_ct_RANLIB" = x; then 8418 RANLIB=":" 8419 else 8420 case $cross_compiling:$ac_tool_warned in 8421yes:) 8422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8424ac_tool_warned=yes ;; 8425esac 8426 RANLIB=$ac_ct_RANLIB 8427 fi 8428else 8429 RANLIB="$ac_cv_prog_RANLIB" 8430fi 8431 8432test -z "$RANLIB" && RANLIB=: 8433 8434 8435 8436 8437 8438 8439# Determine commands to create old-style static archives. 8440old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8441old_postinstall_cmds='chmod 644 $oldlib' 8442old_postuninstall_cmds= 8443 8444if test -n "$RANLIB"; then 8445 case $host_os in 8446 openbsd*) 8447 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8448 ;; 8449 *) 8450 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8451 ;; 8452 esac 8453 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8454fi 8455 8456case $host_os in 8457 darwin*) 8458 lock_old_archive_extraction=yes ;; 8459 *) 8460 lock_old_archive_extraction=no ;; 8461esac 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483for ac_prog in gawk mawk nawk awk 8484do 8485 # Extract the first word of "$ac_prog", so it can be a program name with args. 8486set dummy $ac_prog; ac_word=$2 8487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8488$as_echo_n "checking for $ac_word... " >&6; } 8489if ${ac_cv_prog_AWK+:} false; then : 8490 $as_echo_n "(cached) " >&6 8491else 8492 if test -n "$AWK"; then 8493 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8494else 8495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8496for as_dir in $PATH 8497do 8498 IFS=$as_save_IFS 8499 test -z "$as_dir" && as_dir=. 8500 for ac_exec_ext in '' $ac_executable_extensions; do 8501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8502 ac_cv_prog_AWK="$ac_prog" 8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8504 break 2 8505 fi 8506done 8507 done 8508IFS=$as_save_IFS 8509 8510fi 8511fi 8512AWK=$ac_cv_prog_AWK 8513if test -n "$AWK"; then 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8515$as_echo "$AWK" >&6; } 8516else 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8518$as_echo "no" >&6; } 8519fi 8520 8521 8522 test -n "$AWK" && break 8523done 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543# If no C compiler was specified, use CC. 8544LTCC=${LTCC-"$CC"} 8545 8546# If no C compiler flags were specified, use CFLAGS. 8547LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8548 8549# Allow CC to be a program name with arguments. 8550compiler=$CC 8551 8552 8553# Check for command to grab the raw symbol name followed by C symbol from nm. 8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8555$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8556if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8557 $as_echo_n "(cached) " >&6 8558else 8559 8560# These are sane defaults that work on at least a few old systems. 8561# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8562 8563# Character class describing NM global symbol codes. 8564symcode='[BCDEGRST]' 8565 8566# Regexp to match symbols that can be accessed directly from C. 8567sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8568 8569# Define system-specific variables. 8570case $host_os in 8571aix*) 8572 symcode='[BCDT]' 8573 ;; 8574cygwin* | mingw* | pw32* | cegcc*) 8575 symcode='[ABCDGISTW]' 8576 ;; 8577hpux*) 8578 if test "$host_cpu" = ia64; then 8579 symcode='[ABCDEGRST]' 8580 fi 8581 ;; 8582irix* | nonstopux*) 8583 symcode='[BCDEGRST]' 8584 ;; 8585osf*) 8586 symcode='[BCDEGQRST]' 8587 ;; 8588solaris*) 8589 symcode='[BDRT]' 8590 ;; 8591sco3.2v5*) 8592 symcode='[DT]' 8593 ;; 8594sysv4.2uw2*) 8595 symcode='[DT]' 8596 ;; 8597sysv5* | sco5v6* | unixware* | OpenUNIX*) 8598 symcode='[ABDT]' 8599 ;; 8600sysv4) 8601 symcode='[DFNSTU]' 8602 ;; 8603esac 8604 8605# If we're using GNU nm, then use its standard symbol codes. 8606case `$NM -V 2>&1` in 8607*GNU* | *'with BFD'*) 8608 symcode='[ABCDGIRSTW]' ;; 8609esac 8610 8611# Transform an extracted symbol line into a proper C declaration. 8612# Some systems (esp. on ia64) link data and code symbols differently, 8613# so use this general approach. 8614lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8615 8616# Transform an extracted symbol line into symbol name and symbol address 8617lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 8618lt_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'" 8619 8620# Handle CRLF in mingw tool chain 8621opt_cr= 8622case $build_os in 8623mingw*) 8624 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8625 ;; 8626esac 8627 8628# Try without a prefix underscore, then with it. 8629for ac_symprfx in "" "_"; do 8630 8631 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8632 symxfrm="\\1 $ac_symprfx\\2 \\2" 8633 8634 # Write the raw and C identifiers. 8635 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8636 # Fake it for dumpbin and say T for any non-static function 8637 # and D for any global variable. 8638 # Also find C++ and __fastcall symbols from MSVC++, 8639 # which start with @ or ?. 8640 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8641" {last_section=section; section=\$ 3};"\ 8642" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8643" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8644" \$ 0!~/External *\|/{next};"\ 8645" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8646" {if(hide[section]) next};"\ 8647" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 8648" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 8649" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 8650" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 8651" ' prfx=^$ac_symprfx" 8652 else 8653 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8654 fi 8655 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8656 8657 # Check to see that the pipe works correctly. 8658 pipe_works=no 8659 8660 rm -f conftest* 8661 cat > conftest.$ac_ext <<_LT_EOF 8662#ifdef __cplusplus 8663extern "C" { 8664#endif 8665char nm_test_var; 8666void nm_test_func(void); 8667void nm_test_func(void){} 8668#ifdef __cplusplus 8669} 8670#endif 8671int main(){nm_test_var='a';nm_test_func();return(0);} 8672_LT_EOF 8673 8674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8675 (eval $ac_compile) 2>&5 8676 ac_status=$? 8677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8678 test $ac_status = 0; }; then 8679 # Now try to grab the symbols. 8680 nlist=conftest.nm 8681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8682 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8683 ac_status=$? 8684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8685 test $ac_status = 0; } && test -s "$nlist"; then 8686 # Try sorting and uniquifying the output. 8687 if sort "$nlist" | uniq > "$nlist"T; then 8688 mv -f "$nlist"T "$nlist" 8689 else 8690 rm -f "$nlist"T 8691 fi 8692 8693 # Make sure that we snagged all the symbols we need. 8694 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8695 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8696 cat <<_LT_EOF > conftest.$ac_ext 8697/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8698#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 8699/* DATA imports from DLLs on WIN32 con't be const, because runtime 8700 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8701# define LT_DLSYM_CONST 8702#elif defined(__osf__) 8703/* This system does not cope well with relocations in const data. */ 8704# define LT_DLSYM_CONST 8705#else 8706# define LT_DLSYM_CONST const 8707#endif 8708 8709#ifdef __cplusplus 8710extern "C" { 8711#endif 8712 8713_LT_EOF 8714 # Now generate the symbol file. 8715 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8716 8717 cat <<_LT_EOF >> conftest.$ac_ext 8718 8719/* The mapping between symbol names and symbols. */ 8720LT_DLSYM_CONST struct { 8721 const char *name; 8722 void *address; 8723} 8724lt__PROGRAM__LTX_preloaded_symbols[] = 8725{ 8726 { "@PROGRAM@", (void *) 0 }, 8727_LT_EOF 8728 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8729 cat <<\_LT_EOF >> conftest.$ac_ext 8730 {0, (void *) 0} 8731}; 8732 8733/* This works around a problem in FreeBSD linker */ 8734#ifdef FREEBSD_WORKAROUND 8735static const void *lt_preloaded_setup() { 8736 return lt__PROGRAM__LTX_preloaded_symbols; 8737} 8738#endif 8739 8740#ifdef __cplusplus 8741} 8742#endif 8743_LT_EOF 8744 # Now try linking the two files. 8745 mv conftest.$ac_objext conftstm.$ac_objext 8746 lt_globsym_save_LIBS=$LIBS 8747 lt_globsym_save_CFLAGS=$CFLAGS 8748 LIBS="conftstm.$ac_objext" 8749 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8751 (eval $ac_link) 2>&5 8752 ac_status=$? 8753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8754 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8755 pipe_works=yes 8756 fi 8757 LIBS=$lt_globsym_save_LIBS 8758 CFLAGS=$lt_globsym_save_CFLAGS 8759 else 8760 echo "cannot find nm_test_func in $nlist" >&5 8761 fi 8762 else 8763 echo "cannot find nm_test_var in $nlist" >&5 8764 fi 8765 else 8766 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8767 fi 8768 else 8769 echo "$progname: failed program was:" >&5 8770 cat conftest.$ac_ext >&5 8771 fi 8772 rm -rf conftest* conftst* 8773 8774 # Do not use the global_symbol_pipe unless it works. 8775 if test "$pipe_works" = yes; then 8776 break 8777 else 8778 lt_cv_sys_global_symbol_pipe= 8779 fi 8780done 8781 8782fi 8783 8784if test -z "$lt_cv_sys_global_symbol_pipe"; then 8785 lt_cv_sys_global_symbol_to_cdecl= 8786fi 8787if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8789$as_echo "failed" >&6; } 8790else 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8792$as_echo "ok" >&6; } 8793fi 8794 8795# Response file support. 8796if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8797 nm_file_list_spec='@' 8798elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8799 nm_file_list_spec='@' 8800fi 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8829$as_echo_n "checking for sysroot... " >&6; } 8830 8831# Check whether --with-sysroot was given. 8832if test "${with_sysroot+set}" = set; then : 8833 withval=$with_sysroot; 8834else 8835 with_sysroot=no 8836fi 8837 8838 8839lt_sysroot= 8840case ${with_sysroot} in #( 8841 yes) 8842 if test "$GCC" = yes; then 8843 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8844 fi 8845 ;; #( 8846 /*) 8847 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8848 ;; #( 8849 no|'') 8850 ;; #( 8851 *) 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 8853$as_echo "${with_sysroot}" >&6; } 8854 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8855 ;; 8856esac 8857 8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8859$as_echo "${lt_sysroot:-no}" >&6; } 8860 8861 8862 8863 8864 8865# Check whether --enable-libtool-lock was given. 8866if test "${enable_libtool_lock+set}" = set; then : 8867 enableval=$enable_libtool_lock; 8868fi 8869 8870test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8871 8872# Some flags need to be propagated to the compiler or linker for good 8873# libtool support. 8874case $host in 8875ia64-*-hpux*) 8876 # Find out which ABI we are using. 8877 echo 'int i;' > conftest.$ac_ext 8878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8879 (eval $ac_compile) 2>&5 8880 ac_status=$? 8881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8882 test $ac_status = 0; }; then 8883 case `/usr/bin/file conftest.$ac_objext` in 8884 *ELF-32*) 8885 HPUX_IA64_MODE="32" 8886 ;; 8887 *ELF-64*) 8888 HPUX_IA64_MODE="64" 8889 ;; 8890 esac 8891 fi 8892 rm -rf conftest* 8893 ;; 8894*-*-irix6*) 8895 # Find out which ABI we are using. 8896 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8898 (eval $ac_compile) 2>&5 8899 ac_status=$? 8900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8901 test $ac_status = 0; }; then 8902 if test "$lt_cv_prog_gnu_ld" = yes; then 8903 case `/usr/bin/file conftest.$ac_objext` in 8904 *32-bit*) 8905 LD="${LD-ld} -melf32bsmip" 8906 ;; 8907 *N32*) 8908 LD="${LD-ld} -melf32bmipn32" 8909 ;; 8910 *64-bit*) 8911 LD="${LD-ld} -melf64bmip" 8912 ;; 8913 esac 8914 else 8915 case `/usr/bin/file conftest.$ac_objext` in 8916 *32-bit*) 8917 LD="${LD-ld} -32" 8918 ;; 8919 *N32*) 8920 LD="${LD-ld} -n32" 8921 ;; 8922 *64-bit*) 8923 LD="${LD-ld} -64" 8924 ;; 8925 esac 8926 fi 8927 fi 8928 rm -rf conftest* 8929 ;; 8930 8931x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8932s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 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 *32-bit*) 8942 case $host in 8943 x86_64-*kfreebsd*-gnu) 8944 LD="${LD-ld} -m elf_i386_fbsd" 8945 ;; 8946 x86_64-*linux*) 8947 LD="${LD-ld} -m elf_i386" 8948 ;; 8949 powerpc64le-*linux*) 8950 LD="${LD-ld} -m elf32lppclinux" 8951 ;; 8952 powerpc64-*linux*) 8953 LD="${LD-ld} -m elf32ppclinux" 8954 ;; 8955 s390x-*linux*) 8956 LD="${LD-ld} -m elf_s390" 8957 ;; 8958 sparc64-*linux*) 8959 LD="${LD-ld} -m elf32_sparc" 8960 ;; 8961 esac 8962 ;; 8963 *64-bit*) 8964 case $host in 8965 x86_64-*kfreebsd*-gnu) 8966 LD="${LD-ld} -m elf_x86_64_fbsd" 8967 ;; 8968 x86_64-*linux*) 8969 LD="${LD-ld} -m elf_x86_64" 8970 ;; 8971 powerpcle-*linux*) 8972 LD="${LD-ld} -m elf64lppc" 8973 ;; 8974 powerpc-*linux*) 8975 LD="${LD-ld} -m elf64ppc" 8976 ;; 8977 s390*-*linux*|s390*-*tpf*) 8978 LD="${LD-ld} -m elf64_s390" 8979 ;; 8980 sparc*-*linux*) 8981 LD="${LD-ld} -m elf64_sparc" 8982 ;; 8983 esac 8984 ;; 8985 esac 8986 fi 8987 rm -rf conftest* 8988 ;; 8989 8990*-*-sco3.2v5*) 8991 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8992 SAVE_CFLAGS="$CFLAGS" 8993 CFLAGS="$CFLAGS -belf" 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8995$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8996if ${lt_cv_cc_needs_belf+:} false; then : 8997 $as_echo_n "(cached) " >&6 8998else 8999 ac_ext=c 9000ac_cpp='$CPP $CPPFLAGS' 9001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9003ac_compiler_gnu=$ac_cv_c_compiler_gnu 9004 9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9006/* end confdefs.h. */ 9007 9008int 9009main () 9010{ 9011 9012 ; 9013 return 0; 9014} 9015_ACEOF 9016if ac_fn_c_try_link "$LINENO"; then : 9017 lt_cv_cc_needs_belf=yes 9018else 9019 lt_cv_cc_needs_belf=no 9020fi 9021rm -f core conftest.err conftest.$ac_objext \ 9022 conftest$ac_exeext conftest.$ac_ext 9023 ac_ext=c 9024ac_cpp='$CPP $CPPFLAGS' 9025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9027ac_compiler_gnu=$ac_cv_c_compiler_gnu 9028 9029fi 9030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9031$as_echo "$lt_cv_cc_needs_belf" >&6; } 9032 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 9033 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9034 CFLAGS="$SAVE_CFLAGS" 9035 fi 9036 ;; 9037*-*solaris*) 9038 # Find out which ABI we are using. 9039 echo 'int i;' > conftest.$ac_ext 9040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9041 (eval $ac_compile) 2>&5 9042 ac_status=$? 9043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9044 test $ac_status = 0; }; then 9045 case `/usr/bin/file conftest.o` in 9046 *64-bit*) 9047 case $lt_cv_prog_gnu_ld in 9048 yes*) 9049 case $host in 9050 i?86-*-solaris*) 9051 LD="${LD-ld} -m elf_x86_64" 9052 ;; 9053 sparc*-*-solaris*) 9054 LD="${LD-ld} -m elf64_sparc" 9055 ;; 9056 esac 9057 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9058 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9059 LD="${LD-ld}_sol2" 9060 fi 9061 ;; 9062 *) 9063 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9064 LD="${LD-ld} -64" 9065 fi 9066 ;; 9067 esac 9068 ;; 9069 esac 9070 fi 9071 rm -rf conftest* 9072 ;; 9073esac 9074 9075need_locks="$enable_libtool_lock" 9076 9077if test -n "$ac_tool_prefix"; then 9078 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9079set dummy ${ac_tool_prefix}mt; ac_word=$2 9080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9081$as_echo_n "checking for $ac_word... " >&6; } 9082if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9083 $as_echo_n "(cached) " >&6 9084else 9085 if test -n "$MANIFEST_TOOL"; then 9086 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9087else 9088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9089for as_dir in $PATH 9090do 9091 IFS=$as_save_IFS 9092 test -z "$as_dir" && as_dir=. 9093 for ac_exec_ext in '' $ac_executable_extensions; do 9094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9095 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9097 break 2 9098 fi 9099done 9100 done 9101IFS=$as_save_IFS 9102 9103fi 9104fi 9105MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9106if test -n "$MANIFEST_TOOL"; then 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9108$as_echo "$MANIFEST_TOOL" >&6; } 9109else 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9111$as_echo "no" >&6; } 9112fi 9113 9114 9115fi 9116if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9117 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9118 # Extract the first word of "mt", so it can be a program name with args. 9119set dummy mt; ac_word=$2 9120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9121$as_echo_n "checking for $ac_word... " >&6; } 9122if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9123 $as_echo_n "(cached) " >&6 9124else 9125 if test -n "$ac_ct_MANIFEST_TOOL"; then 9126 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9127else 9128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9129for as_dir in $PATH 9130do 9131 IFS=$as_save_IFS 9132 test -z "$as_dir" && as_dir=. 9133 for ac_exec_ext in '' $ac_executable_extensions; do 9134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9135 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9137 break 2 9138 fi 9139done 9140 done 9141IFS=$as_save_IFS 9142 9143fi 9144fi 9145ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9146if test -n "$ac_ct_MANIFEST_TOOL"; then 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9148$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9149else 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9151$as_echo "no" >&6; } 9152fi 9153 9154 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9155 MANIFEST_TOOL=":" 9156 else 9157 case $cross_compiling:$ac_tool_warned in 9158yes:) 9159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9161ac_tool_warned=yes ;; 9162esac 9163 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9164 fi 9165else 9166 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9167fi 9168 9169test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9171$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9172if ${lt_cv_path_mainfest_tool+:} false; then : 9173 $as_echo_n "(cached) " >&6 9174else 9175 lt_cv_path_mainfest_tool=no 9176 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9177 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9178 cat conftest.err >&5 9179 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9180 lt_cv_path_mainfest_tool=yes 9181 fi 9182 rm -f conftest* 9183fi 9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9185$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9186if test "x$lt_cv_path_mainfest_tool" != xyes; then 9187 MANIFEST_TOOL=: 9188fi 9189 9190 9191 9192 9193 9194 9195 case $host_os in 9196 rhapsody* | darwin*) 9197 if test -n "$ac_tool_prefix"; then 9198 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9199set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9201$as_echo_n "checking for $ac_word... " >&6; } 9202if ${ac_cv_prog_DSYMUTIL+:} false; then : 9203 $as_echo_n "(cached) " >&6 9204else 9205 if test -n "$DSYMUTIL"; then 9206 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9207else 9208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9209for as_dir in $PATH 9210do 9211 IFS=$as_save_IFS 9212 test -z "$as_dir" && as_dir=. 9213 for ac_exec_ext in '' $ac_executable_extensions; do 9214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9215 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9217 break 2 9218 fi 9219done 9220 done 9221IFS=$as_save_IFS 9222 9223fi 9224fi 9225DSYMUTIL=$ac_cv_prog_DSYMUTIL 9226if test -n "$DSYMUTIL"; then 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9228$as_echo "$DSYMUTIL" >&6; } 9229else 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9231$as_echo "no" >&6; } 9232fi 9233 9234 9235fi 9236if test -z "$ac_cv_prog_DSYMUTIL"; then 9237 ac_ct_DSYMUTIL=$DSYMUTIL 9238 # Extract the first word of "dsymutil", so it can be a program name with args. 9239set dummy dsymutil; ac_word=$2 9240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9241$as_echo_n "checking for $ac_word... " >&6; } 9242if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9243 $as_echo_n "(cached) " >&6 9244else 9245 if test -n "$ac_ct_DSYMUTIL"; then 9246 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9247else 9248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9249for as_dir in $PATH 9250do 9251 IFS=$as_save_IFS 9252 test -z "$as_dir" && as_dir=. 9253 for ac_exec_ext in '' $ac_executable_extensions; do 9254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9255 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9257 break 2 9258 fi 9259done 9260 done 9261IFS=$as_save_IFS 9262 9263fi 9264fi 9265ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9266if test -n "$ac_ct_DSYMUTIL"; then 9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9268$as_echo "$ac_ct_DSYMUTIL" >&6; } 9269else 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9271$as_echo "no" >&6; } 9272fi 9273 9274 if test "x$ac_ct_DSYMUTIL" = x; then 9275 DSYMUTIL=":" 9276 else 9277 case $cross_compiling:$ac_tool_warned in 9278yes:) 9279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9281ac_tool_warned=yes ;; 9282esac 9283 DSYMUTIL=$ac_ct_DSYMUTIL 9284 fi 9285else 9286 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9287fi 9288 9289 if test -n "$ac_tool_prefix"; then 9290 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9291set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9293$as_echo_n "checking for $ac_word... " >&6; } 9294if ${ac_cv_prog_NMEDIT+:} false; then : 9295 $as_echo_n "(cached) " >&6 9296else 9297 if test -n "$NMEDIT"; then 9298 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9299else 9300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9301for as_dir in $PATH 9302do 9303 IFS=$as_save_IFS 9304 test -z "$as_dir" && as_dir=. 9305 for ac_exec_ext in '' $ac_executable_extensions; do 9306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9307 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9309 break 2 9310 fi 9311done 9312 done 9313IFS=$as_save_IFS 9314 9315fi 9316fi 9317NMEDIT=$ac_cv_prog_NMEDIT 9318if test -n "$NMEDIT"; then 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9320$as_echo "$NMEDIT" >&6; } 9321else 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9323$as_echo "no" >&6; } 9324fi 9325 9326 9327fi 9328if test -z "$ac_cv_prog_NMEDIT"; then 9329 ac_ct_NMEDIT=$NMEDIT 9330 # Extract the first word of "nmedit", so it can be a program name with args. 9331set dummy nmedit; ac_word=$2 9332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9333$as_echo_n "checking for $ac_word... " >&6; } 9334if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9335 $as_echo_n "(cached) " >&6 9336else 9337 if test -n "$ac_ct_NMEDIT"; then 9338 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9339else 9340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9341for as_dir in $PATH 9342do 9343 IFS=$as_save_IFS 9344 test -z "$as_dir" && as_dir=. 9345 for ac_exec_ext in '' $ac_executable_extensions; do 9346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9347 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9349 break 2 9350 fi 9351done 9352 done 9353IFS=$as_save_IFS 9354 9355fi 9356fi 9357ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9358if test -n "$ac_ct_NMEDIT"; then 9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9360$as_echo "$ac_ct_NMEDIT" >&6; } 9361else 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9363$as_echo "no" >&6; } 9364fi 9365 9366 if test "x$ac_ct_NMEDIT" = x; then 9367 NMEDIT=":" 9368 else 9369 case $cross_compiling:$ac_tool_warned in 9370yes:) 9371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9373ac_tool_warned=yes ;; 9374esac 9375 NMEDIT=$ac_ct_NMEDIT 9376 fi 9377else 9378 NMEDIT="$ac_cv_prog_NMEDIT" 9379fi 9380 9381 if test -n "$ac_tool_prefix"; then 9382 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9383set dummy ${ac_tool_prefix}lipo; ac_word=$2 9384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9385$as_echo_n "checking for $ac_word... " >&6; } 9386if ${ac_cv_prog_LIPO+:} false; then : 9387 $as_echo_n "(cached) " >&6 9388else 9389 if test -n "$LIPO"; then 9390 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9391else 9392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9393for as_dir in $PATH 9394do 9395 IFS=$as_save_IFS 9396 test -z "$as_dir" && as_dir=. 9397 for ac_exec_ext in '' $ac_executable_extensions; do 9398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9399 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9401 break 2 9402 fi 9403done 9404 done 9405IFS=$as_save_IFS 9406 9407fi 9408fi 9409LIPO=$ac_cv_prog_LIPO 9410if test -n "$LIPO"; then 9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9412$as_echo "$LIPO" >&6; } 9413else 9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9415$as_echo "no" >&6; } 9416fi 9417 9418 9419fi 9420if test -z "$ac_cv_prog_LIPO"; then 9421 ac_ct_LIPO=$LIPO 9422 # Extract the first word of "lipo", so it can be a program name with args. 9423set dummy lipo; ac_word=$2 9424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9425$as_echo_n "checking for $ac_word... " >&6; } 9426if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9427 $as_echo_n "(cached) " >&6 9428else 9429 if test -n "$ac_ct_LIPO"; then 9430 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9431else 9432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9433for as_dir in $PATH 9434do 9435 IFS=$as_save_IFS 9436 test -z "$as_dir" && as_dir=. 9437 for ac_exec_ext in '' $ac_executable_extensions; do 9438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9439 ac_cv_prog_ac_ct_LIPO="lipo" 9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9441 break 2 9442 fi 9443done 9444 done 9445IFS=$as_save_IFS 9446 9447fi 9448fi 9449ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9450if test -n "$ac_ct_LIPO"; then 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9452$as_echo "$ac_ct_LIPO" >&6; } 9453else 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9455$as_echo "no" >&6; } 9456fi 9457 9458 if test "x$ac_ct_LIPO" = x; then 9459 LIPO=":" 9460 else 9461 case $cross_compiling:$ac_tool_warned in 9462yes:) 9463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9465ac_tool_warned=yes ;; 9466esac 9467 LIPO=$ac_ct_LIPO 9468 fi 9469else 9470 LIPO="$ac_cv_prog_LIPO" 9471fi 9472 9473 if test -n "$ac_tool_prefix"; then 9474 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9475set dummy ${ac_tool_prefix}otool; ac_word=$2 9476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9477$as_echo_n "checking for $ac_word... " >&6; } 9478if ${ac_cv_prog_OTOOL+:} false; then : 9479 $as_echo_n "(cached) " >&6 9480else 9481 if test -n "$OTOOL"; then 9482 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9483else 9484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9485for as_dir in $PATH 9486do 9487 IFS=$as_save_IFS 9488 test -z "$as_dir" && as_dir=. 9489 for ac_exec_ext in '' $ac_executable_extensions; do 9490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9491 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9493 break 2 9494 fi 9495done 9496 done 9497IFS=$as_save_IFS 9498 9499fi 9500fi 9501OTOOL=$ac_cv_prog_OTOOL 9502if test -n "$OTOOL"; then 9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9504$as_echo "$OTOOL" >&6; } 9505else 9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9507$as_echo "no" >&6; } 9508fi 9509 9510 9511fi 9512if test -z "$ac_cv_prog_OTOOL"; then 9513 ac_ct_OTOOL=$OTOOL 9514 # Extract the first word of "otool", so it can be a program name with args. 9515set dummy otool; ac_word=$2 9516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9517$as_echo_n "checking for $ac_word... " >&6; } 9518if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9519 $as_echo_n "(cached) " >&6 9520else 9521 if test -n "$ac_ct_OTOOL"; then 9522 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9523else 9524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9525for as_dir in $PATH 9526do 9527 IFS=$as_save_IFS 9528 test -z "$as_dir" && as_dir=. 9529 for ac_exec_ext in '' $ac_executable_extensions; do 9530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9531 ac_cv_prog_ac_ct_OTOOL="otool" 9532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9533 break 2 9534 fi 9535done 9536 done 9537IFS=$as_save_IFS 9538 9539fi 9540fi 9541ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9542if test -n "$ac_ct_OTOOL"; then 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9544$as_echo "$ac_ct_OTOOL" >&6; } 9545else 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9547$as_echo "no" >&6; } 9548fi 9549 9550 if test "x$ac_ct_OTOOL" = x; then 9551 OTOOL=":" 9552 else 9553 case $cross_compiling:$ac_tool_warned in 9554yes:) 9555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9557ac_tool_warned=yes ;; 9558esac 9559 OTOOL=$ac_ct_OTOOL 9560 fi 9561else 9562 OTOOL="$ac_cv_prog_OTOOL" 9563fi 9564 9565 if test -n "$ac_tool_prefix"; then 9566 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9567set dummy ${ac_tool_prefix}otool64; ac_word=$2 9568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9569$as_echo_n "checking for $ac_word... " >&6; } 9570if ${ac_cv_prog_OTOOL64+:} false; then : 9571 $as_echo_n "(cached) " >&6 9572else 9573 if test -n "$OTOOL64"; then 9574 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9575else 9576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9577for as_dir in $PATH 9578do 9579 IFS=$as_save_IFS 9580 test -z "$as_dir" && as_dir=. 9581 for ac_exec_ext in '' $ac_executable_extensions; do 9582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9583 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9585 break 2 9586 fi 9587done 9588 done 9589IFS=$as_save_IFS 9590 9591fi 9592fi 9593OTOOL64=$ac_cv_prog_OTOOL64 9594if test -n "$OTOOL64"; then 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9596$as_echo "$OTOOL64" >&6; } 9597else 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9599$as_echo "no" >&6; } 9600fi 9601 9602 9603fi 9604if test -z "$ac_cv_prog_OTOOL64"; then 9605 ac_ct_OTOOL64=$OTOOL64 9606 # Extract the first word of "otool64", so it can be a program name with args. 9607set dummy otool64; ac_word=$2 9608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9609$as_echo_n "checking for $ac_word... " >&6; } 9610if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9611 $as_echo_n "(cached) " >&6 9612else 9613 if test -n "$ac_ct_OTOOL64"; then 9614 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9615else 9616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9617for as_dir in $PATH 9618do 9619 IFS=$as_save_IFS 9620 test -z "$as_dir" && as_dir=. 9621 for ac_exec_ext in '' $ac_executable_extensions; do 9622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9623 ac_cv_prog_ac_ct_OTOOL64="otool64" 9624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9625 break 2 9626 fi 9627done 9628 done 9629IFS=$as_save_IFS 9630 9631fi 9632fi 9633ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9634if test -n "$ac_ct_OTOOL64"; then 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9636$as_echo "$ac_ct_OTOOL64" >&6; } 9637else 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9639$as_echo "no" >&6; } 9640fi 9641 9642 if test "x$ac_ct_OTOOL64" = x; then 9643 OTOOL64=":" 9644 else 9645 case $cross_compiling:$ac_tool_warned in 9646yes:) 9647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9649ac_tool_warned=yes ;; 9650esac 9651 OTOOL64=$ac_ct_OTOOL64 9652 fi 9653else 9654 OTOOL64="$ac_cv_prog_OTOOL64" 9655fi 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9684$as_echo_n "checking for -single_module linker flag... " >&6; } 9685if ${lt_cv_apple_cc_single_mod+:} false; then : 9686 $as_echo_n "(cached) " >&6 9687else 9688 lt_cv_apple_cc_single_mod=no 9689 if test -z "${LT_MULTI_MODULE}"; then 9690 # By default we will add the -single_module flag. You can override 9691 # by either setting the environment variable LT_MULTI_MODULE 9692 # non-empty at configure time, or by adding -multi_module to the 9693 # link flags. 9694 rm -rf libconftest.dylib* 9695 echo "int foo(void){return 1;}" > conftest.c 9696 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9697-dynamiclib -Wl,-single_module conftest.c" >&5 9698 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9699 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9700 _lt_result=$? 9701 # If there is a non-empty error log, and "single_module" 9702 # appears in it, assume the flag caused a linker warning 9703 if test -s conftest.err && $GREP single_module conftest.err; then 9704 cat conftest.err >&5 9705 # Otherwise, if the output was created with a 0 exit code from 9706 # the compiler, it worked. 9707 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 9708 lt_cv_apple_cc_single_mod=yes 9709 else 9710 cat conftest.err >&5 9711 fi 9712 rm -rf libconftest.dylib* 9713 rm -f conftest.* 9714 fi 9715fi 9716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9717$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9718 9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9720$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9721if ${lt_cv_ld_exported_symbols_list+:} false; then : 9722 $as_echo_n "(cached) " >&6 9723else 9724 lt_cv_ld_exported_symbols_list=no 9725 save_LDFLAGS=$LDFLAGS 9726 echo "_main" > conftest.sym 9727 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9729/* end confdefs.h. */ 9730 9731int 9732main () 9733{ 9734 9735 ; 9736 return 0; 9737} 9738_ACEOF 9739if ac_fn_c_try_link "$LINENO"; then : 9740 lt_cv_ld_exported_symbols_list=yes 9741else 9742 lt_cv_ld_exported_symbols_list=no 9743fi 9744rm -f core conftest.err conftest.$ac_objext \ 9745 conftest$ac_exeext conftest.$ac_ext 9746 LDFLAGS="$save_LDFLAGS" 9747 9748fi 9749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9750$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9751 9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9753$as_echo_n "checking for -force_load linker flag... " >&6; } 9754if ${lt_cv_ld_force_load+:} false; then : 9755 $as_echo_n "(cached) " >&6 9756else 9757 lt_cv_ld_force_load=no 9758 cat > conftest.c << _LT_EOF 9759int forced_loaded() { return 2;} 9760_LT_EOF 9761 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9762 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9763 echo "$AR cru libconftest.a conftest.o" >&5 9764 $AR cru libconftest.a conftest.o 2>&5 9765 echo "$RANLIB libconftest.a" >&5 9766 $RANLIB libconftest.a 2>&5 9767 cat > conftest.c << _LT_EOF 9768int main() { return 0;} 9769_LT_EOF 9770 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9771 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9772 _lt_result=$? 9773 if test -s conftest.err && $GREP force_load conftest.err; then 9774 cat conftest.err >&5 9775 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 9776 lt_cv_ld_force_load=yes 9777 else 9778 cat conftest.err >&5 9779 fi 9780 rm -f conftest.err libconftest.a conftest conftest.c 9781 rm -rf conftest.dSYM 9782 9783fi 9784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9785$as_echo "$lt_cv_ld_force_load" >&6; } 9786 case $host_os in 9787 rhapsody* | darwin1.[012]) 9788 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 9789 darwin1.*) 9790 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9791 darwin*) # darwin 5.x on 9792 # if running on 10.5 or later, the deployment target defaults 9793 # to the OS version, if on x86, and 10.4, the deployment 9794 # target defaults to 10.4. Don't you love it? 9795 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9796 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9797 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9798 10.[012]*) 9799 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9800 10.*) 9801 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9802 esac 9803 ;; 9804 esac 9805 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9806 _lt_dar_single_mod='$single_module' 9807 fi 9808 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9809 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9810 else 9811 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9812 fi 9813 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9814 _lt_dsymutil='~$DSYMUTIL $lib || :' 9815 else 9816 _lt_dsymutil= 9817 fi 9818 ;; 9819 esac 9820 9821for ac_header in dlfcn.h 9822do : 9823 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9824" 9825if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9826 cat >>confdefs.h <<_ACEOF 9827#define HAVE_DLFCN_H 1 9828_ACEOF 9829 9830fi 9831 9832done 9833 9834 9835 9836 9837 9838 9839 9840# Set options 9841 9842 9843 9844 enable_dlopen=no 9845 9846 9847 enable_win32_dll=no 9848 9849 9850 # Check whether --enable-shared was given. 9851if test "${enable_shared+set}" = set; then : 9852 enableval=$enable_shared; p=${PACKAGE-default} 9853 case $enableval in 9854 yes) enable_shared=yes ;; 9855 no) enable_shared=no ;; 9856 *) 9857 enable_shared=no 9858 # Look at the argument we got. We use all the common list separators. 9859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9860 for pkg in $enableval; do 9861 IFS="$lt_save_ifs" 9862 if test "X$pkg" = "X$p"; then 9863 enable_shared=yes 9864 fi 9865 done 9866 IFS="$lt_save_ifs" 9867 ;; 9868 esac 9869else 9870 enable_shared=yes 9871fi 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 # Check whether --enable-static was given. 9882if test "${enable_static+set}" = set; then : 9883 enableval=$enable_static; p=${PACKAGE-default} 9884 case $enableval in 9885 yes) enable_static=yes ;; 9886 no) enable_static=no ;; 9887 *) 9888 enable_static=no 9889 # Look at the argument we got. We use all the common list separators. 9890 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9891 for pkg in $enableval; do 9892 IFS="$lt_save_ifs" 9893 if test "X$pkg" = "X$p"; then 9894 enable_static=yes 9895 fi 9896 done 9897 IFS="$lt_save_ifs" 9898 ;; 9899 esac 9900else 9901 enable_static=yes 9902fi 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913# Check whether --with-pic was given. 9914if test "${with_pic+set}" = set; then : 9915 withval=$with_pic; lt_p=${PACKAGE-default} 9916 case $withval in 9917 yes|no) pic_mode=$withval ;; 9918 *) 9919 pic_mode=default 9920 # Look at the argument we got. We use all the common list separators. 9921 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9922 for lt_pkg in $withval; do 9923 IFS="$lt_save_ifs" 9924 if test "X$lt_pkg" = "X$lt_p"; then 9925 pic_mode=yes 9926 fi 9927 done 9928 IFS="$lt_save_ifs" 9929 ;; 9930 esac 9931else 9932 pic_mode=default 9933fi 9934 9935 9936test -z "$pic_mode" && pic_mode=default 9937 9938 9939 9940 9941 9942 9943 9944 # Check whether --enable-fast-install was given. 9945if test "${enable_fast_install+set}" = set; then : 9946 enableval=$enable_fast_install; p=${PACKAGE-default} 9947 case $enableval in 9948 yes) enable_fast_install=yes ;; 9949 no) enable_fast_install=no ;; 9950 *) 9951 enable_fast_install=no 9952 # Look at the argument we got. We use all the common list separators. 9953 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9954 for pkg in $enableval; do 9955 IFS="$lt_save_ifs" 9956 if test "X$pkg" = "X$p"; then 9957 enable_fast_install=yes 9958 fi 9959 done 9960 IFS="$lt_save_ifs" 9961 ;; 9962 esac 9963else 9964 enable_fast_install=yes 9965fi 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977# This can be used to rebuild libtool when needed 9978LIBTOOL_DEPS="$ltmain" 9979 9980# Always use our own libtool. 9981LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012test -z "$LN_S" && LN_S="ln -s" 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027if test -n "${ZSH_VERSION+set}" ; then 10028 setopt NO_GLOB_SUBST 10029fi 10030 10031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10032$as_echo_n "checking for objdir... " >&6; } 10033if ${lt_cv_objdir+:} false; then : 10034 $as_echo_n "(cached) " >&6 10035else 10036 rm -f .libs 2>/dev/null 10037mkdir .libs 2>/dev/null 10038if test -d .libs; then 10039 lt_cv_objdir=.libs 10040else 10041 # MS-DOS does not allow filenames that begin with a dot. 10042 lt_cv_objdir=_libs 10043fi 10044rmdir .libs 2>/dev/null 10045fi 10046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10047$as_echo "$lt_cv_objdir" >&6; } 10048objdir=$lt_cv_objdir 10049 10050 10051 10052 10053 10054cat >>confdefs.h <<_ACEOF 10055#define LT_OBJDIR "$lt_cv_objdir/" 10056_ACEOF 10057 10058 10059 10060 10061case $host_os in 10062aix3*) 10063 # AIX sometimes has problems with the GCC collect2 program. For some 10064 # reason, if we set the COLLECT_NAMES environment variable, the problems 10065 # vanish in a puff of smoke. 10066 if test "X${COLLECT_NAMES+set}" != Xset; then 10067 COLLECT_NAMES= 10068 export COLLECT_NAMES 10069 fi 10070 ;; 10071esac 10072 10073# Global variables: 10074ofile=libtool 10075can_build_shared=yes 10076 10077# All known linkers require a `.a' archive for static linking (except MSVC, 10078# which needs '.lib'). 10079libext=a 10080 10081with_gnu_ld="$lt_cv_prog_gnu_ld" 10082 10083old_CC="$CC" 10084old_CFLAGS="$CFLAGS" 10085 10086# Set sane defaults for various variables 10087test -z "$CC" && CC=cc 10088test -z "$LTCC" && LTCC=$CC 10089test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10090test -z "$LD" && LD=ld 10091test -z "$ac_objext" && ac_objext=o 10092 10093for cc_temp in $compiler""; do 10094 case $cc_temp in 10095 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10096 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10097 \-*) ;; 10098 *) break;; 10099 esac 10100done 10101cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10102 10103 10104# Only perform the check for file, if the check method requires it 10105test -z "$MAGIC_CMD" && MAGIC_CMD=file 10106case $deplibs_check_method in 10107file_magic*) 10108 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10110$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10111if ${lt_cv_path_MAGIC_CMD+:} false; then : 10112 $as_echo_n "(cached) " >&6 10113else 10114 case $MAGIC_CMD in 10115[\\/*] | ?:[\\/]*) 10116 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10117 ;; 10118*) 10119 lt_save_MAGIC_CMD="$MAGIC_CMD" 10120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10121 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10122 for ac_dir in $ac_dummy; do 10123 IFS="$lt_save_ifs" 10124 test -z "$ac_dir" && ac_dir=. 10125 if test -f $ac_dir/${ac_tool_prefix}file; then 10126 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10127 if test -n "$file_magic_test_file"; then 10128 case $deplibs_check_method in 10129 "file_magic "*) 10130 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10132 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10133 $EGREP "$file_magic_regex" > /dev/null; then 10134 : 10135 else 10136 cat <<_LT_EOF 1>&2 10137 10138*** Warning: the command libtool uses to detect shared libraries, 10139*** $file_magic_cmd, produces output that libtool cannot recognize. 10140*** The result is that libtool may fail to recognize shared libraries 10141*** as such. This will affect the creation of libtool libraries that 10142*** depend on shared libraries, but programs linked with such libtool 10143*** libraries will work regardless of this problem. Nevertheless, you 10144*** may want to report the problem to your system manager and/or to 10145*** bug-libtool@gnu.org 10146 10147_LT_EOF 10148 fi ;; 10149 esac 10150 fi 10151 break 10152 fi 10153 done 10154 IFS="$lt_save_ifs" 10155 MAGIC_CMD="$lt_save_MAGIC_CMD" 10156 ;; 10157esac 10158fi 10159 10160MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10161if test -n "$MAGIC_CMD"; then 10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10163$as_echo "$MAGIC_CMD" >&6; } 10164else 10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10166$as_echo "no" >&6; } 10167fi 10168 10169 10170 10171 10172 10173if test -z "$lt_cv_path_MAGIC_CMD"; then 10174 if test -n "$ac_tool_prefix"; then 10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10176$as_echo_n "checking for file... " >&6; } 10177if ${lt_cv_path_MAGIC_CMD+:} false; then : 10178 $as_echo_n "(cached) " >&6 10179else 10180 case $MAGIC_CMD in 10181[\\/*] | ?:[\\/]*) 10182 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10183 ;; 10184*) 10185 lt_save_MAGIC_CMD="$MAGIC_CMD" 10186 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10187 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10188 for ac_dir in $ac_dummy; do 10189 IFS="$lt_save_ifs" 10190 test -z "$ac_dir" && ac_dir=. 10191 if test -f $ac_dir/file; then 10192 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10193 if test -n "$file_magic_test_file"; then 10194 case $deplibs_check_method in 10195 "file_magic "*) 10196 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10197 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10198 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10199 $EGREP "$file_magic_regex" > /dev/null; then 10200 : 10201 else 10202 cat <<_LT_EOF 1>&2 10203 10204*** Warning: the command libtool uses to detect shared libraries, 10205*** $file_magic_cmd, produces output that libtool cannot recognize. 10206*** The result is that libtool may fail to recognize shared libraries 10207*** as such. This will affect the creation of libtool libraries that 10208*** depend on shared libraries, but programs linked with such libtool 10209*** libraries will work regardless of this problem. Nevertheless, you 10210*** may want to report the problem to your system manager and/or to 10211*** bug-libtool@gnu.org 10212 10213_LT_EOF 10214 fi ;; 10215 esac 10216 fi 10217 break 10218 fi 10219 done 10220 IFS="$lt_save_ifs" 10221 MAGIC_CMD="$lt_save_MAGIC_CMD" 10222 ;; 10223esac 10224fi 10225 10226MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10227if test -n "$MAGIC_CMD"; then 10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10229$as_echo "$MAGIC_CMD" >&6; } 10230else 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10232$as_echo "no" >&6; } 10233fi 10234 10235 10236 else 10237 MAGIC_CMD=: 10238 fi 10239fi 10240 10241 fi 10242 ;; 10243esac 10244 10245# Use C for the default configuration in the libtool script 10246 10247lt_save_CC="$CC" 10248ac_ext=c 10249ac_cpp='$CPP $CPPFLAGS' 10250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10252ac_compiler_gnu=$ac_cv_c_compiler_gnu 10253 10254 10255# Source file extension for C test sources. 10256ac_ext=c 10257 10258# Object file extension for compiled C test sources. 10259objext=o 10260objext=$objext 10261 10262# Code to be used in simple compile tests 10263lt_simple_compile_test_code="int some_variable = 0;" 10264 10265# Code to be used in simple link tests 10266lt_simple_link_test_code='int main(){return(0);}' 10267 10268 10269 10270 10271 10272 10273 10274# If no C compiler was specified, use CC. 10275LTCC=${LTCC-"$CC"} 10276 10277# If no C compiler flags were specified, use CFLAGS. 10278LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10279 10280# Allow CC to be a program name with arguments. 10281compiler=$CC 10282 10283# Save the default compiler, since it gets overwritten when the other 10284# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10285compiler_DEFAULT=$CC 10286 10287# save warnings/boilerplate of simple test code 10288ac_outfile=conftest.$ac_objext 10289echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10290eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10291_lt_compiler_boilerplate=`cat conftest.err` 10292$RM conftest* 10293 10294ac_outfile=conftest.$ac_objext 10295echo "$lt_simple_link_test_code" >conftest.$ac_ext 10296eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10297_lt_linker_boilerplate=`cat conftest.err` 10298$RM -r conftest* 10299 10300 10301if test -n "$compiler"; then 10302 10303lt_prog_compiler_no_builtin_flag= 10304 10305if test "$GCC" = yes; then 10306 case $cc_basename in 10307 nvcc*) 10308 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10309 *) 10310 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10311 esac 10312 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10314$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10315if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10316 $as_echo_n "(cached) " >&6 10317else 10318 lt_cv_prog_compiler_rtti_exceptions=no 10319 ac_outfile=conftest.$ac_objext 10320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10321 lt_compiler_flag="-fno-rtti -fno-exceptions" 10322 # Insert the option either (1) after the last *FLAGS variable, or 10323 # (2) before a word containing "conftest.", or (3) at the end. 10324 # Note that $ac_compile itself does not contain backslashes and begins 10325 # with a dollar sign (not a hyphen), so the echo should work correctly. 10326 # The option is referenced via a variable to avoid confusing sed. 10327 lt_compile=`echo "$ac_compile" | $SED \ 10328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10330 -e 's:$: $lt_compiler_flag:'` 10331 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10332 (eval "$lt_compile" 2>conftest.err) 10333 ac_status=$? 10334 cat conftest.err >&5 10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10336 if (exit $ac_status) && test -s "$ac_outfile"; then 10337 # The compiler can only warn and ignore the option if not recognized 10338 # So say no if there are warnings other than the usual output. 10339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10342 lt_cv_prog_compiler_rtti_exceptions=yes 10343 fi 10344 fi 10345 $RM conftest* 10346 10347fi 10348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10349$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10350 10351if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10352 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10353else 10354 : 10355fi 10356 10357fi 10358 10359 10360 10361 10362 10363 10364 lt_prog_compiler_wl= 10365lt_prog_compiler_pic= 10366lt_prog_compiler_static= 10367 10368 10369 if test "$GCC" = yes; then 10370 lt_prog_compiler_wl='-Wl,' 10371 lt_prog_compiler_static='-static' 10372 10373 case $host_os in 10374 aix*) 10375 # All AIX code is PIC. 10376 if test "$host_cpu" = ia64; then 10377 # AIX 5 now supports IA64 processor 10378 lt_prog_compiler_static='-Bstatic' 10379 fi 10380 ;; 10381 10382 amigaos*) 10383 case $host_cpu in 10384 powerpc) 10385 # see comment about AmigaOS4 .so support 10386 lt_prog_compiler_pic='-fPIC' 10387 ;; 10388 m68k) 10389 # FIXME: we need at least 68020 code to build shared libraries, but 10390 # adding the `-m68020' flag to GCC prevents building anything better, 10391 # like `-m68040'. 10392 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10393 ;; 10394 esac 10395 ;; 10396 10397 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10398 # PIC is the default for these OSes. 10399 ;; 10400 10401 mingw* | cygwin* | pw32* | os2* | cegcc*) 10402 # This hack is so that the source file can tell whether it is being 10403 # built for inclusion in a dll (and should export symbols for example). 10404 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10405 # (--disable-auto-import) libraries 10406 lt_prog_compiler_pic='-DDLL_EXPORT' 10407 ;; 10408 10409 darwin* | rhapsody*) 10410 # PIC is the default on this platform 10411 # Common symbols not allowed in MH_DYLIB files 10412 lt_prog_compiler_pic='-fno-common' 10413 ;; 10414 10415 haiku*) 10416 # PIC is the default for Haiku. 10417 # The "-static" flag exists, but is broken. 10418 lt_prog_compiler_static= 10419 ;; 10420 10421 hpux*) 10422 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10423 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10424 # sets the default TLS model and affects inlining. 10425 case $host_cpu in 10426 hppa*64*) 10427 # +Z the default 10428 ;; 10429 *) 10430 lt_prog_compiler_pic='-fPIC' 10431 ;; 10432 esac 10433 ;; 10434 10435 interix[3-9]*) 10436 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10437 # Instead, we relocate shared libraries at runtime. 10438 ;; 10439 10440 msdosdjgpp*) 10441 # Just because we use GCC doesn't mean we suddenly get shared libraries 10442 # on systems that don't support them. 10443 lt_prog_compiler_can_build_shared=no 10444 enable_shared=no 10445 ;; 10446 10447 *nto* | *qnx*) 10448 # QNX uses GNU C++, but need to define -shared option too, otherwise 10449 # it will coredump. 10450 lt_prog_compiler_pic='-fPIC -shared' 10451 ;; 10452 10453 sysv4*MP*) 10454 if test -d /usr/nec; then 10455 lt_prog_compiler_pic=-Kconform_pic 10456 fi 10457 ;; 10458 10459 *) 10460 lt_prog_compiler_pic='-fPIC' 10461 ;; 10462 esac 10463 10464 case $cc_basename in 10465 nvcc*) # Cuda Compiler Driver 2.2 10466 lt_prog_compiler_wl='-Xlinker ' 10467 if test -n "$lt_prog_compiler_pic"; then 10468 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10469 fi 10470 ;; 10471 esac 10472 else 10473 # PORTME Check for flag to pass linker flags through the system compiler. 10474 case $host_os in 10475 aix*) 10476 lt_prog_compiler_wl='-Wl,' 10477 if test "$host_cpu" = ia64; then 10478 # AIX 5 now supports IA64 processor 10479 lt_prog_compiler_static='-Bstatic' 10480 else 10481 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10482 fi 10483 ;; 10484 10485 mingw* | cygwin* | pw32* | os2* | cegcc*) 10486 # This hack is so that the source file can tell whether it is being 10487 # built for inclusion in a dll (and should export symbols for example). 10488 lt_prog_compiler_pic='-DDLL_EXPORT' 10489 ;; 10490 10491 hpux9* | hpux10* | hpux11*) 10492 lt_prog_compiler_wl='-Wl,' 10493 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10494 # not for PA HP-UX. 10495 case $host_cpu in 10496 hppa*64*|ia64*) 10497 # +Z the default 10498 ;; 10499 *) 10500 lt_prog_compiler_pic='+Z' 10501 ;; 10502 esac 10503 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10504 lt_prog_compiler_static='${wl}-a ${wl}archive' 10505 ;; 10506 10507 irix5* | irix6* | nonstopux*) 10508 lt_prog_compiler_wl='-Wl,' 10509 # PIC (with -KPIC) is the default. 10510 lt_prog_compiler_static='-non_shared' 10511 ;; 10512 10513 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10514 case $cc_basename in 10515 # old Intel for x86_64 which still supported -KPIC. 10516 ecc*) 10517 lt_prog_compiler_wl='-Wl,' 10518 lt_prog_compiler_pic='-KPIC' 10519 lt_prog_compiler_static='-static' 10520 ;; 10521 # icc used to be incompatible with GCC. 10522 # ICC 10 doesn't accept -KPIC any more. 10523 icc* | ifort*) 10524 lt_prog_compiler_wl='-Wl,' 10525 lt_prog_compiler_pic='-fPIC' 10526 lt_prog_compiler_static='-static' 10527 ;; 10528 # Lahey Fortran 8.1. 10529 lf95*) 10530 lt_prog_compiler_wl='-Wl,' 10531 lt_prog_compiler_pic='--shared' 10532 lt_prog_compiler_static='--static' 10533 ;; 10534 nagfor*) 10535 # NAG Fortran compiler 10536 lt_prog_compiler_wl='-Wl,-Wl,,' 10537 lt_prog_compiler_pic='-PIC' 10538 lt_prog_compiler_static='-Bstatic' 10539 ;; 10540 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10541 # Portland Group compilers (*not* the Pentium gcc compiler, 10542 # which looks to be a dead project) 10543 lt_prog_compiler_wl='-Wl,' 10544 lt_prog_compiler_pic='-fpic' 10545 lt_prog_compiler_static='-Bstatic' 10546 ;; 10547 ccc*) 10548 lt_prog_compiler_wl='-Wl,' 10549 # All Alpha code is PIC. 10550 lt_prog_compiler_static='-non_shared' 10551 ;; 10552 xl* | bgxl* | bgf* | mpixl*) 10553 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10554 lt_prog_compiler_wl='-Wl,' 10555 lt_prog_compiler_pic='-qpic' 10556 lt_prog_compiler_static='-qstaticlink' 10557 ;; 10558 *) 10559 case `$CC -V 2>&1 | sed 5q` in 10560 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10561 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10562 lt_prog_compiler_pic='-KPIC' 10563 lt_prog_compiler_static='-Bstatic' 10564 lt_prog_compiler_wl='' 10565 ;; 10566 *Sun\ F* | *Sun*Fortran*) 10567 lt_prog_compiler_pic='-KPIC' 10568 lt_prog_compiler_static='-Bstatic' 10569 lt_prog_compiler_wl='-Qoption ld ' 10570 ;; 10571 *Sun\ C*) 10572 # Sun C 5.9 10573 lt_prog_compiler_pic='-KPIC' 10574 lt_prog_compiler_static='-Bstatic' 10575 lt_prog_compiler_wl='-Wl,' 10576 ;; 10577 *Intel*\ [CF]*Compiler*) 10578 lt_prog_compiler_wl='-Wl,' 10579 lt_prog_compiler_pic='-fPIC' 10580 lt_prog_compiler_static='-static' 10581 ;; 10582 *Portland\ Group*) 10583 lt_prog_compiler_wl='-Wl,' 10584 lt_prog_compiler_pic='-fpic' 10585 lt_prog_compiler_static='-Bstatic' 10586 ;; 10587 esac 10588 ;; 10589 esac 10590 ;; 10591 10592 newsos6) 10593 lt_prog_compiler_pic='-KPIC' 10594 lt_prog_compiler_static='-Bstatic' 10595 ;; 10596 10597 *nto* | *qnx*) 10598 # QNX uses GNU C++, but need to define -shared option too, otherwise 10599 # it will coredump. 10600 lt_prog_compiler_pic='-fPIC -shared' 10601 ;; 10602 10603 osf3* | osf4* | osf5*) 10604 lt_prog_compiler_wl='-Wl,' 10605 # All OSF/1 code is PIC. 10606 lt_prog_compiler_static='-non_shared' 10607 ;; 10608 10609 rdos*) 10610 lt_prog_compiler_static='-non_shared' 10611 ;; 10612 10613 solaris*) 10614 lt_prog_compiler_pic='-KPIC' 10615 lt_prog_compiler_static='-Bstatic' 10616 case $cc_basename in 10617 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10618 lt_prog_compiler_wl='-Qoption ld ';; 10619 *) 10620 lt_prog_compiler_wl='-Wl,';; 10621 esac 10622 ;; 10623 10624 sunos4*) 10625 lt_prog_compiler_wl='-Qoption ld ' 10626 lt_prog_compiler_pic='-PIC' 10627 lt_prog_compiler_static='-Bstatic' 10628 ;; 10629 10630 sysv4 | sysv4.2uw2* | sysv4.3*) 10631 lt_prog_compiler_wl='-Wl,' 10632 lt_prog_compiler_pic='-KPIC' 10633 lt_prog_compiler_static='-Bstatic' 10634 ;; 10635 10636 sysv4*MP*) 10637 if test -d /usr/nec ;then 10638 lt_prog_compiler_pic='-Kconform_pic' 10639 lt_prog_compiler_static='-Bstatic' 10640 fi 10641 ;; 10642 10643 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10644 lt_prog_compiler_wl='-Wl,' 10645 lt_prog_compiler_pic='-KPIC' 10646 lt_prog_compiler_static='-Bstatic' 10647 ;; 10648 10649 unicos*) 10650 lt_prog_compiler_wl='-Wl,' 10651 lt_prog_compiler_can_build_shared=no 10652 ;; 10653 10654 uts4*) 10655 lt_prog_compiler_pic='-pic' 10656 lt_prog_compiler_static='-Bstatic' 10657 ;; 10658 10659 *) 10660 lt_prog_compiler_can_build_shared=no 10661 ;; 10662 esac 10663 fi 10664 10665case $host_os in 10666 # For platforms which do not support PIC, -DPIC is meaningless: 10667 *djgpp*) 10668 lt_prog_compiler_pic= 10669 ;; 10670 *) 10671 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10672 ;; 10673esac 10674 10675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10676$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10677if ${lt_cv_prog_compiler_pic+:} false; then : 10678 $as_echo_n "(cached) " >&6 10679else 10680 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10681fi 10682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10683$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10684lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10685 10686# 10687# Check to make sure the PIC flag actually works. 10688# 10689if test -n "$lt_prog_compiler_pic"; then 10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10691$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10692if ${lt_cv_prog_compiler_pic_works+:} false; then : 10693 $as_echo_n "(cached) " >&6 10694else 10695 lt_cv_prog_compiler_pic_works=no 10696 ac_outfile=conftest.$ac_objext 10697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10698 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10699 # Insert the option either (1) after the last *FLAGS variable, or 10700 # (2) before a word containing "conftest.", or (3) at the end. 10701 # Note that $ac_compile itself does not contain backslashes and begins 10702 # with a dollar sign (not a hyphen), so the echo should work correctly. 10703 # The option is referenced via a variable to avoid confusing sed. 10704 lt_compile=`echo "$ac_compile" | $SED \ 10705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10707 -e 's:$: $lt_compiler_flag:'` 10708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10709 (eval "$lt_compile" 2>conftest.err) 10710 ac_status=$? 10711 cat conftest.err >&5 10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10713 if (exit $ac_status) && test -s "$ac_outfile"; then 10714 # The compiler can only warn and ignore the option if not recognized 10715 # So say no if there are warnings other than the usual output. 10716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10718 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10719 lt_cv_prog_compiler_pic_works=yes 10720 fi 10721 fi 10722 $RM conftest* 10723 10724fi 10725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10726$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10727 10728if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10729 case $lt_prog_compiler_pic in 10730 "" | " "*) ;; 10731 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10732 esac 10733else 10734 lt_prog_compiler_pic= 10735 lt_prog_compiler_can_build_shared=no 10736fi 10737 10738fi 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750# 10751# Check to make sure the static flag actually works. 10752# 10753wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10755$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10756if ${lt_cv_prog_compiler_static_works+:} false; then : 10757 $as_echo_n "(cached) " >&6 10758else 10759 lt_cv_prog_compiler_static_works=no 10760 save_LDFLAGS="$LDFLAGS" 10761 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10762 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10763 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10764 # The linker can only warn and ignore the option if not recognized 10765 # So say no if there are warnings 10766 if test -s conftest.err; then 10767 # Append any errors to the config.log. 10768 cat conftest.err 1>&5 10769 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10771 if diff conftest.exp conftest.er2 >/dev/null; then 10772 lt_cv_prog_compiler_static_works=yes 10773 fi 10774 else 10775 lt_cv_prog_compiler_static_works=yes 10776 fi 10777 fi 10778 $RM -r conftest* 10779 LDFLAGS="$save_LDFLAGS" 10780 10781fi 10782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10783$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10784 10785if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10786 : 10787else 10788 lt_prog_compiler_static= 10789fi 10790 10791 10792 10793 10794 10795 10796 10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10798$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10799if ${lt_cv_prog_compiler_c_o+:} false; then : 10800 $as_echo_n "(cached) " >&6 10801else 10802 lt_cv_prog_compiler_c_o=no 10803 $RM -r conftest 2>/dev/null 10804 mkdir conftest 10805 cd conftest 10806 mkdir out 10807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10808 10809 lt_compiler_flag="-o out/conftest2.$ac_objext" 10810 # Insert the option either (1) after the last *FLAGS variable, or 10811 # (2) before a word containing "conftest.", or (3) at the end. 10812 # Note that $ac_compile itself does not contain backslashes and begins 10813 # with a dollar sign (not a hyphen), so the echo should work correctly. 10814 lt_compile=`echo "$ac_compile" | $SED \ 10815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10817 -e 's:$: $lt_compiler_flag:'` 10818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10819 (eval "$lt_compile" 2>out/conftest.err) 10820 ac_status=$? 10821 cat out/conftest.err >&5 10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10823 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10824 then 10825 # The compiler can only warn and ignore the option if not recognized 10826 # So say no if there are warnings 10827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10828 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10829 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10830 lt_cv_prog_compiler_c_o=yes 10831 fi 10832 fi 10833 chmod u+w . 2>&5 10834 $RM conftest* 10835 # SGI C++ compiler will create directory out/ii_files/ for 10836 # template instantiation 10837 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10838 $RM out/* && rmdir out 10839 cd .. 10840 $RM -r conftest 10841 $RM conftest* 10842 10843fi 10844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10845$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10846 10847 10848 10849 10850 10851 10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10853$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10854if ${lt_cv_prog_compiler_c_o+:} false; then : 10855 $as_echo_n "(cached) " >&6 10856else 10857 lt_cv_prog_compiler_c_o=no 10858 $RM -r conftest 2>/dev/null 10859 mkdir conftest 10860 cd conftest 10861 mkdir out 10862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10863 10864 lt_compiler_flag="-o out/conftest2.$ac_objext" 10865 # Insert the option either (1) after the last *FLAGS variable, or 10866 # (2) before a word containing "conftest.", or (3) at the end. 10867 # Note that $ac_compile itself does not contain backslashes and begins 10868 # with a dollar sign (not a hyphen), so the echo should work correctly. 10869 lt_compile=`echo "$ac_compile" | $SED \ 10870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10872 -e 's:$: $lt_compiler_flag:'` 10873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10874 (eval "$lt_compile" 2>out/conftest.err) 10875 ac_status=$? 10876 cat out/conftest.err >&5 10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10878 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10879 then 10880 # The compiler can only warn and ignore the option if not recognized 10881 # So say no if there are warnings 10882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10885 lt_cv_prog_compiler_c_o=yes 10886 fi 10887 fi 10888 chmod u+w . 2>&5 10889 $RM conftest* 10890 # SGI C++ compiler will create directory out/ii_files/ for 10891 # template instantiation 10892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10893 $RM out/* && rmdir out 10894 cd .. 10895 $RM -r conftest 10896 $RM conftest* 10897 10898fi 10899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10900$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10901 10902 10903 10904 10905hard_links="nottested" 10906if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10907 # do not overwrite the value of need_locks provided by the user 10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10909$as_echo_n "checking if we can lock with hard links... " >&6; } 10910 hard_links=yes 10911 $RM conftest* 10912 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10913 touch conftest.a 10914 ln conftest.a conftest.b 2>&5 || hard_links=no 10915 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10917$as_echo "$hard_links" >&6; } 10918 if test "$hard_links" = no; then 10919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10920$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10921 need_locks=warn 10922 fi 10923else 10924 need_locks=no 10925fi 10926 10927 10928 10929 10930 10931 10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10933$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10934 10935 runpath_var= 10936 allow_undefined_flag= 10937 always_export_symbols=no 10938 archive_cmds= 10939 archive_expsym_cmds= 10940 compiler_needs_object=no 10941 enable_shared_with_static_runtimes=no 10942 export_dynamic_flag_spec= 10943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10944 hardcode_automatic=no 10945 hardcode_direct=no 10946 hardcode_direct_absolute=no 10947 hardcode_libdir_flag_spec= 10948 hardcode_libdir_separator= 10949 hardcode_minus_L=no 10950 hardcode_shlibpath_var=unsupported 10951 inherit_rpath=no 10952 link_all_deplibs=unknown 10953 module_cmds= 10954 module_expsym_cmds= 10955 old_archive_from_new_cmds= 10956 old_archive_from_expsyms_cmds= 10957 thread_safe_flag_spec= 10958 whole_archive_flag_spec= 10959 # include_expsyms should be a list of space-separated symbols to be *always* 10960 # included in the symbol list 10961 include_expsyms= 10962 # exclude_expsyms can be an extended regexp of symbols to exclude 10963 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10964 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10965 # as well as any symbol that contains `d'. 10966 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10967 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10968 # platforms (ab)use it in PIC code, but their linkers get confused if 10969 # the symbol is explicitly referenced. Since portable code cannot 10970 # rely on this symbol name, it's probably fine to never include it in 10971 # preloaded symbol tables. 10972 # Exclude shared library initialization/finalization symbols. 10973 extract_expsyms_cmds= 10974 10975 case $host_os in 10976 cygwin* | mingw* | pw32* | cegcc*) 10977 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10978 # When not using gcc, we currently assume that we are using 10979 # Microsoft Visual C++. 10980 if test "$GCC" != yes; then 10981 with_gnu_ld=no 10982 fi 10983 ;; 10984 interix*) 10985 # we just hope/assume this is gcc and not c89 (= MSVC++) 10986 with_gnu_ld=yes 10987 ;; 10988 openbsd*) 10989 with_gnu_ld=no 10990 ;; 10991 esac 10992 10993 ld_shlibs=yes 10994 10995 # On some targets, GNU ld is compatible enough with the native linker 10996 # that we're better off using the native interface for both. 10997 lt_use_gnu_ld_interface=no 10998 if test "$with_gnu_ld" = yes; then 10999 case $host_os in 11000 aix*) 11001 # The AIX port of GNU ld has always aspired to compatibility 11002 # with the native linker. However, as the warning in the GNU ld 11003 # block says, versions before 2.19.5* couldn't really create working 11004 # shared libraries, regardless of the interface used. 11005 case `$LD -v 2>&1` in 11006 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11007 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11008 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11009 *) 11010 lt_use_gnu_ld_interface=yes 11011 ;; 11012 esac 11013 ;; 11014 *) 11015 lt_use_gnu_ld_interface=yes 11016 ;; 11017 esac 11018 fi 11019 11020 if test "$lt_use_gnu_ld_interface" = yes; then 11021 # If archive_cmds runs LD, not CC, wlarc should be empty 11022 wlarc='${wl}' 11023 11024 # Set some defaults for GNU ld with shared library support. These 11025 # are reset later if shared libraries are not supported. Putting them 11026 # here allows them to be overridden if necessary. 11027 runpath_var=LD_RUN_PATH 11028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11029 export_dynamic_flag_spec='${wl}--export-dynamic' 11030 # ancient GNU ld didn't support --whole-archive et. al. 11031 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11032 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11033 else 11034 whole_archive_flag_spec= 11035 fi 11036 supports_anon_versioning=no 11037 case `$LD -v 2>&1` in 11038 *GNU\ gold*) supports_anon_versioning=yes ;; 11039 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11040 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11041 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11042 *\ 2.11.*) ;; # other 2.11 versions 11043 *) supports_anon_versioning=yes ;; 11044 esac 11045 11046 # See if GNU ld supports shared libraries. 11047 case $host_os in 11048 aix[3-9]*) 11049 # On AIX/PPC, the GNU linker is very broken 11050 if test "$host_cpu" != ia64; then 11051 ld_shlibs=no 11052 cat <<_LT_EOF 1>&2 11053 11054*** Warning: the GNU linker, at least up to release 2.19, is reported 11055*** to be unable to reliably create shared libraries on AIX. 11056*** Therefore, libtool is disabling shared libraries support. If you 11057*** really care for shared libraries, you may want to install binutils 11058*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11059*** You will then need to restart the configuration process. 11060 11061_LT_EOF 11062 fi 11063 ;; 11064 11065 amigaos*) 11066 case $host_cpu in 11067 powerpc) 11068 # see comment about AmigaOS4 .so support 11069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11070 archive_expsym_cmds='' 11071 ;; 11072 m68k) 11073 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)' 11074 hardcode_libdir_flag_spec='-L$libdir' 11075 hardcode_minus_L=yes 11076 ;; 11077 esac 11078 ;; 11079 11080 beos*) 11081 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11082 allow_undefined_flag=unsupported 11083 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11084 # support --undefined. This deserves some investigation. FIXME 11085 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11086 else 11087 ld_shlibs=no 11088 fi 11089 ;; 11090 11091 cygwin* | mingw* | pw32* | cegcc*) 11092 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11093 # as there is no search path for DLLs. 11094 hardcode_libdir_flag_spec='-L$libdir' 11095 export_dynamic_flag_spec='${wl}--export-all-symbols' 11096 allow_undefined_flag=unsupported 11097 always_export_symbols=no 11098 enable_shared_with_static_runtimes=yes 11099 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' 11100 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11101 11102 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11104 # If the export-symbols file already is a .def file (1st line 11105 # is EXPORTS), use it as is; otherwise, prepend... 11106 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11107 cp $export_symbols $output_objdir/$soname.def; 11108 else 11109 echo EXPORTS > $output_objdir/$soname.def; 11110 cat $export_symbols >> $output_objdir/$soname.def; 11111 fi~ 11112 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11113 else 11114 ld_shlibs=no 11115 fi 11116 ;; 11117 11118 haiku*) 11119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11120 link_all_deplibs=yes 11121 ;; 11122 11123 interix[3-9]*) 11124 hardcode_direct=no 11125 hardcode_shlibpath_var=no 11126 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11127 export_dynamic_flag_spec='${wl}-E' 11128 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11129 # Instead, shared libraries are loaded at an image base (0x10000000 by 11130 # default) and relocated if they conflict, which is a slow very memory 11131 # consuming and fragmenting process. To avoid this, we pick a random, 11132 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11133 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11134 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11135 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' 11136 ;; 11137 11138 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11139 tmp_diet=no 11140 if test "$host_os" = linux-dietlibc; then 11141 case $cc_basename in 11142 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11143 esac 11144 fi 11145 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11146 && test "$tmp_diet" = no 11147 then 11148 tmp_addflag=' $pic_flag' 11149 tmp_sharedflag='-shared' 11150 case $cc_basename,$host_cpu in 11151 pgcc*) # Portland Group C compiler 11152 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' 11153 tmp_addflag=' $pic_flag' 11154 ;; 11155 pgf77* | pgf90* | pgf95* | pgfortran*) 11156 # Portland Group f77 and f90 compilers 11157 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' 11158 tmp_addflag=' $pic_flag -Mnomain' ;; 11159 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11160 tmp_addflag=' -i_dynamic' ;; 11161 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11162 tmp_addflag=' -i_dynamic -nofor_main' ;; 11163 ifc* | ifort*) # Intel Fortran compiler 11164 tmp_addflag=' -nofor_main' ;; 11165 lf95*) # Lahey Fortran 8.1 11166 whole_archive_flag_spec= 11167 tmp_sharedflag='--shared' ;; 11168 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11169 tmp_sharedflag='-qmkshrobj' 11170 tmp_addflag= ;; 11171 nvcc*) # Cuda Compiler Driver 2.2 11172 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' 11173 compiler_needs_object=yes 11174 ;; 11175 esac 11176 case `$CC -V 2>&1 | sed 5q` in 11177 *Sun\ C*) # Sun C 5.9 11178 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' 11179 compiler_needs_object=yes 11180 tmp_sharedflag='-G' ;; 11181 *Sun\ F*) # Sun Fortran 8.3 11182 tmp_sharedflag='-G' ;; 11183 esac 11184 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11185 11186 if test "x$supports_anon_versioning" = xyes; then 11187 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11188 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11189 echo "local: *; };" >> $output_objdir/$libname.ver~ 11190 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11191 fi 11192 11193 case $cc_basename in 11194 xlf* | bgf* | bgxlf* | mpixlf*) 11195 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11196 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11198 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11199 if test "x$supports_anon_versioning" = xyes; then 11200 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11201 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11202 echo "local: *; };" >> $output_objdir/$libname.ver~ 11203 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11204 fi 11205 ;; 11206 esac 11207 else 11208 ld_shlibs=no 11209 fi 11210 ;; 11211 11212 netbsd*) 11213 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11214 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11215 wlarc= 11216 else 11217 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11218 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11219 fi 11220 ;; 11221 11222 solaris*) 11223 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11224 ld_shlibs=no 11225 cat <<_LT_EOF 1>&2 11226 11227*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11228*** create shared libraries on Solaris systems. Therefore, libtool 11229*** is disabling shared libraries support. We urge you to upgrade GNU 11230*** binutils to release 2.9.1 or newer. Another option is to modify 11231*** your PATH or compiler configuration so that the native linker is 11232*** used, and then restart. 11233 11234_LT_EOF 11235 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11236 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11237 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11238 else 11239 ld_shlibs=no 11240 fi 11241 ;; 11242 11243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11244 case `$LD -v 2>&1` in 11245 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11246 ld_shlibs=no 11247 cat <<_LT_EOF 1>&2 11248 11249*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11250*** reliably create shared libraries on SCO systems. Therefore, libtool 11251*** is disabling shared libraries support. We urge you to upgrade GNU 11252*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11253*** your PATH or compiler configuration so that the native linker is 11254*** used, and then restart. 11255 11256_LT_EOF 11257 ;; 11258 *) 11259 # For security reasons, it is highly recommended that you always 11260 # use absolute paths for naming shared libraries, and exclude the 11261 # DT_RUNPATH tag from executables and libraries. But doing so 11262 # requires that you compile everything twice, which is a pain. 11263 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11267 else 11268 ld_shlibs=no 11269 fi 11270 ;; 11271 esac 11272 ;; 11273 11274 sunos4*) 11275 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11276 wlarc= 11277 hardcode_direct=yes 11278 hardcode_shlibpath_var=no 11279 ;; 11280 11281 *) 11282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11284 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11285 else 11286 ld_shlibs=no 11287 fi 11288 ;; 11289 esac 11290 11291 if test "$ld_shlibs" = no; then 11292 runpath_var= 11293 hardcode_libdir_flag_spec= 11294 export_dynamic_flag_spec= 11295 whole_archive_flag_spec= 11296 fi 11297 else 11298 # PORTME fill in a description of your system's linker (not GNU ld) 11299 case $host_os in 11300 aix3*) 11301 allow_undefined_flag=unsupported 11302 always_export_symbols=yes 11303 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' 11304 # Note: this linker hardcodes the directories in LIBPATH if there 11305 # are no directories specified by -L. 11306 hardcode_minus_L=yes 11307 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11308 # Neither direct hardcoding nor static linking is supported with a 11309 # broken collect2. 11310 hardcode_direct=unsupported 11311 fi 11312 ;; 11313 11314 aix[4-9]*) 11315 if test "$host_cpu" = ia64; then 11316 # On IA64, the linker does run time linking by default, so we don't 11317 # have to do anything special. 11318 aix_use_runtimelinking=no 11319 exp_sym_flag='-Bexport' 11320 no_entry_flag="" 11321 else 11322 # If we're using GNU nm, then we don't want the "-C" option. 11323 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11324 # Also, AIX nm treats weak defined symbols like other global 11325 # defined symbols, whereas GNU nm marks them as "W". 11326 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11327 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' 11328 else 11329 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' 11330 fi 11331 aix_use_runtimelinking=no 11332 11333 # Test if we are trying to use run time linking or normal 11334 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11335 # need to do runtime linking. 11336 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11337 for ld_flag in $LDFLAGS; do 11338 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11339 aix_use_runtimelinking=yes 11340 break 11341 fi 11342 done 11343 ;; 11344 esac 11345 11346 exp_sym_flag='-bexport' 11347 no_entry_flag='-bnoentry' 11348 fi 11349 11350 # When large executables or shared objects are built, AIX ld can 11351 # have problems creating the table of contents. If linking a library 11352 # or program results in "error TOC overflow" add -mminimal-toc to 11353 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11354 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11355 11356 archive_cmds='' 11357 hardcode_direct=yes 11358 hardcode_direct_absolute=yes 11359 hardcode_libdir_separator=':' 11360 link_all_deplibs=yes 11361 file_list_spec='${wl}-f,' 11362 11363 if test "$GCC" = yes; then 11364 case $host_os in aix4.[012]|aix4.[012].*) 11365 # We only want to do this on AIX 4.2 and lower, the check 11366 # below for broken collect2 doesn't work under 4.3+ 11367 collect2name=`${CC} -print-prog-name=collect2` 11368 if test -f "$collect2name" && 11369 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11370 then 11371 # We have reworked collect2 11372 : 11373 else 11374 # We have old collect2 11375 hardcode_direct=unsupported 11376 # It fails to find uninstalled libraries when the uninstalled 11377 # path is not listed in the libpath. Setting hardcode_minus_L 11378 # to unsupported forces relinking 11379 hardcode_minus_L=yes 11380 hardcode_libdir_flag_spec='-L$libdir' 11381 hardcode_libdir_separator= 11382 fi 11383 ;; 11384 esac 11385 shared_flag='-shared' 11386 if test "$aix_use_runtimelinking" = yes; then 11387 shared_flag="$shared_flag "'${wl}-G' 11388 fi 11389 else 11390 # not using gcc 11391 if test "$host_cpu" = ia64; then 11392 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11393 # chokes on -Wl,-G. The following line is correct: 11394 shared_flag='-G' 11395 else 11396 if test "$aix_use_runtimelinking" = yes; then 11397 shared_flag='${wl}-G' 11398 else 11399 shared_flag='${wl}-bM:SRE' 11400 fi 11401 fi 11402 fi 11403 11404 export_dynamic_flag_spec='${wl}-bexpall' 11405 # It seems that -bexpall does not export symbols beginning with 11406 # underscore (_), so it is better to generate a list of symbols to export. 11407 always_export_symbols=yes 11408 if test "$aix_use_runtimelinking" = yes; then 11409 # Warning - without using the other runtime loading flags (-brtl), 11410 # -berok will link without error, but may produce a broken library. 11411 allow_undefined_flag='-berok' 11412 # Determine the default libpath from the value encoded in an 11413 # empty executable. 11414 if test "${lt_cv_aix_libpath+set}" = set; then 11415 aix_libpath=$lt_cv_aix_libpath 11416else 11417 if ${lt_cv_aix_libpath_+:} false; then : 11418 $as_echo_n "(cached) " >&6 11419else 11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11421/* end confdefs.h. */ 11422 11423int 11424main () 11425{ 11426 11427 ; 11428 return 0; 11429} 11430_ACEOF 11431if ac_fn_c_try_link "$LINENO"; then : 11432 11433 lt_aix_libpath_sed=' 11434 /Import File Strings/,/^$/ { 11435 /^0/ { 11436 s/^0 *\([^ ]*\) *$/\1/ 11437 p 11438 } 11439 }' 11440 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11441 # Check for a 64-bit object if we didn't find anything. 11442 if test -z "$lt_cv_aix_libpath_"; then 11443 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11444 fi 11445fi 11446rm -f core conftest.err conftest.$ac_objext \ 11447 conftest$ac_exeext conftest.$ac_ext 11448 if test -z "$lt_cv_aix_libpath_"; then 11449 lt_cv_aix_libpath_="/usr/lib:/lib" 11450 fi 11451 11452fi 11453 11454 aix_libpath=$lt_cv_aix_libpath_ 11455fi 11456 11457 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11458 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" 11459 else 11460 if test "$host_cpu" = ia64; then 11461 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11462 allow_undefined_flag="-z nodefs" 11463 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" 11464 else 11465 # Determine the default libpath from the value encoded in an 11466 # empty executable. 11467 if test "${lt_cv_aix_libpath+set}" = set; then 11468 aix_libpath=$lt_cv_aix_libpath 11469else 11470 if ${lt_cv_aix_libpath_+:} false; then : 11471 $as_echo_n "(cached) " >&6 11472else 11473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11474/* end confdefs.h. */ 11475 11476int 11477main () 11478{ 11479 11480 ; 11481 return 0; 11482} 11483_ACEOF 11484if ac_fn_c_try_link "$LINENO"; then : 11485 11486 lt_aix_libpath_sed=' 11487 /Import File Strings/,/^$/ { 11488 /^0/ { 11489 s/^0 *\([^ ]*\) *$/\1/ 11490 p 11491 } 11492 }' 11493 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11494 # Check for a 64-bit object if we didn't find anything. 11495 if test -z "$lt_cv_aix_libpath_"; then 11496 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11497 fi 11498fi 11499rm -f core conftest.err conftest.$ac_objext \ 11500 conftest$ac_exeext conftest.$ac_ext 11501 if test -z "$lt_cv_aix_libpath_"; then 11502 lt_cv_aix_libpath_="/usr/lib:/lib" 11503 fi 11504 11505fi 11506 11507 aix_libpath=$lt_cv_aix_libpath_ 11508fi 11509 11510 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11511 # Warning - without using the other run time loading flags, 11512 # -berok will link without error, but may produce a broken library. 11513 no_undefined_flag=' ${wl}-bernotok' 11514 allow_undefined_flag=' ${wl}-berok' 11515 if test "$with_gnu_ld" = yes; then 11516 # We only use this code for GNU lds that support --whole-archive. 11517 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11518 else 11519 # Exported symbols can be pulled into shared objects from archives 11520 whole_archive_flag_spec='$convenience' 11521 fi 11522 archive_cmds_need_lc=yes 11523 # This is similar to how AIX traditionally builds its shared libraries. 11524 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' 11525 fi 11526 fi 11527 ;; 11528 11529 amigaos*) 11530 case $host_cpu in 11531 powerpc) 11532 # see comment about AmigaOS4 .so support 11533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11534 archive_expsym_cmds='' 11535 ;; 11536 m68k) 11537 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)' 11538 hardcode_libdir_flag_spec='-L$libdir' 11539 hardcode_minus_L=yes 11540 ;; 11541 esac 11542 ;; 11543 11544 bsdi[45]*) 11545 export_dynamic_flag_spec=-rdynamic 11546 ;; 11547 11548 cygwin* | mingw* | pw32* | cegcc*) 11549 # When not using gcc, we currently assume that we are using 11550 # Microsoft Visual C++. 11551 # hardcode_libdir_flag_spec is actually meaningless, as there is 11552 # no search path for DLLs. 11553 case $cc_basename in 11554 cl*) 11555 # Native MSVC 11556 hardcode_libdir_flag_spec=' ' 11557 allow_undefined_flag=unsupported 11558 always_export_symbols=yes 11559 file_list_spec='@' 11560 # Tell ltmain to make .lib files, not .a files. 11561 libext=lib 11562 # Tell ltmain to make .dll files, not .so files. 11563 shrext_cmds=".dll" 11564 # FIXME: Setting linknames here is a bad hack. 11565 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 11566 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11567 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 11568 else 11569 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 11570 fi~ 11571 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11572 linknames=' 11573 # The linker will not automatically build a static lib if we build a DLL. 11574 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11575 enable_shared_with_static_runtimes=yes 11576 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11577 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11578 # Don't use ranlib 11579 old_postinstall_cmds='chmod 644 $oldlib' 11580 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11581 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11582 case $lt_outputfile in 11583 *.exe|*.EXE) ;; 11584 *) 11585 lt_outputfile="$lt_outputfile.exe" 11586 lt_tool_outputfile="$lt_tool_outputfile.exe" 11587 ;; 11588 esac~ 11589 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 11590 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11591 $RM "$lt_outputfile.manifest"; 11592 fi' 11593 ;; 11594 *) 11595 # Assume MSVC wrapper 11596 hardcode_libdir_flag_spec=' ' 11597 allow_undefined_flag=unsupported 11598 # Tell ltmain to make .lib files, not .a files. 11599 libext=lib 11600 # Tell ltmain to make .dll files, not .so files. 11601 shrext_cmds=".dll" 11602 # FIXME: Setting linknames here is a bad hack. 11603 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11604 # The linker will automatically build a .lib file if we build a DLL. 11605 old_archive_from_new_cmds='true' 11606 # FIXME: Should let the user specify the lib program. 11607 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11608 enable_shared_with_static_runtimes=yes 11609 ;; 11610 esac 11611 ;; 11612 11613 darwin* | rhapsody*) 11614 11615 11616 archive_cmds_need_lc=no 11617 hardcode_direct=no 11618 hardcode_automatic=yes 11619 hardcode_shlibpath_var=unsupported 11620 if test "$lt_cv_ld_force_load" = "yes"; then 11621 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\"`' 11622 11623 else 11624 whole_archive_flag_spec='' 11625 fi 11626 link_all_deplibs=yes 11627 allow_undefined_flag="$_lt_dar_allow_undefined" 11628 case $cc_basename in 11629 ifort*) _lt_dar_can_shared=yes ;; 11630 *) _lt_dar_can_shared=$GCC ;; 11631 esac 11632 if test "$_lt_dar_can_shared" = "yes"; then 11633 output_verbose_link_cmd=func_echo_all 11634 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11635 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11636 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}" 11637 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}" 11638 11639 else 11640 ld_shlibs=no 11641 fi 11642 11643 ;; 11644 11645 dgux*) 11646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11647 hardcode_libdir_flag_spec='-L$libdir' 11648 hardcode_shlibpath_var=no 11649 ;; 11650 11651 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11652 # support. Future versions do this automatically, but an explicit c++rt0.o 11653 # does not break anything, and helps significantly (at the cost of a little 11654 # extra space). 11655 freebsd2.2*) 11656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11657 hardcode_libdir_flag_spec='-R$libdir' 11658 hardcode_direct=yes 11659 hardcode_shlibpath_var=no 11660 ;; 11661 11662 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11663 freebsd2.*) 11664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11665 hardcode_direct=yes 11666 hardcode_minus_L=yes 11667 hardcode_shlibpath_var=no 11668 ;; 11669 11670 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11671 freebsd* | dragonfly*) 11672 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11673 hardcode_libdir_flag_spec='-R$libdir' 11674 hardcode_direct=yes 11675 hardcode_shlibpath_var=no 11676 ;; 11677 11678 hpux9*) 11679 if test "$GCC" = yes; then 11680 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' 11681 else 11682 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' 11683 fi 11684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11685 hardcode_libdir_separator=: 11686 hardcode_direct=yes 11687 11688 # hardcode_minus_L: Not really in the search PATH, 11689 # but as the default location of the library. 11690 hardcode_minus_L=yes 11691 export_dynamic_flag_spec='${wl}-E' 11692 ;; 11693 11694 hpux10*) 11695 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11696 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11697 else 11698 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11699 fi 11700 if test "$with_gnu_ld" = no; then 11701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11702 hardcode_libdir_separator=: 11703 hardcode_direct=yes 11704 hardcode_direct_absolute=yes 11705 export_dynamic_flag_spec='${wl}-E' 11706 # hardcode_minus_L: Not really in the search PATH, 11707 # but as the default location of the library. 11708 hardcode_minus_L=yes 11709 fi 11710 ;; 11711 11712 hpux11*) 11713 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11714 case $host_cpu in 11715 hppa*64*) 11716 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11717 ;; 11718 ia64*) 11719 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11720 ;; 11721 *) 11722 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11723 ;; 11724 esac 11725 else 11726 case $host_cpu in 11727 hppa*64*) 11728 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11729 ;; 11730 ia64*) 11731 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11732 ;; 11733 *) 11734 11735 # Older versions of the 11.00 compiler do not understand -b yet 11736 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11738$as_echo_n "checking if $CC understands -b... " >&6; } 11739if ${lt_cv_prog_compiler__b+:} false; then : 11740 $as_echo_n "(cached) " >&6 11741else 11742 lt_cv_prog_compiler__b=no 11743 save_LDFLAGS="$LDFLAGS" 11744 LDFLAGS="$LDFLAGS -b" 11745 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11747 # The linker can only warn and ignore the option if not recognized 11748 # So say no if there are warnings 11749 if test -s conftest.err; then 11750 # Append any errors to the config.log. 11751 cat conftest.err 1>&5 11752 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11754 if diff conftest.exp conftest.er2 >/dev/null; then 11755 lt_cv_prog_compiler__b=yes 11756 fi 11757 else 11758 lt_cv_prog_compiler__b=yes 11759 fi 11760 fi 11761 $RM -r conftest* 11762 LDFLAGS="$save_LDFLAGS" 11763 11764fi 11765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11766$as_echo "$lt_cv_prog_compiler__b" >&6; } 11767 11768if test x"$lt_cv_prog_compiler__b" = xyes; then 11769 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11770else 11771 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11772fi 11773 11774 ;; 11775 esac 11776 fi 11777 if test "$with_gnu_ld" = no; then 11778 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11779 hardcode_libdir_separator=: 11780 11781 case $host_cpu in 11782 hppa*64*|ia64*) 11783 hardcode_direct=no 11784 hardcode_shlibpath_var=no 11785 ;; 11786 *) 11787 hardcode_direct=yes 11788 hardcode_direct_absolute=yes 11789 export_dynamic_flag_spec='${wl}-E' 11790 11791 # hardcode_minus_L: Not really in the search PATH, 11792 # but as the default location of the library. 11793 hardcode_minus_L=yes 11794 ;; 11795 esac 11796 fi 11797 ;; 11798 11799 irix5* | irix6* | nonstopux*) 11800 if test "$GCC" = yes; then 11801 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' 11802 # Try to use the -exported_symbol ld option, if it does not 11803 # work, assume that -exports_file does not work either and 11804 # implicitly export all symbols. 11805 # This should be the same for all languages, so no per-tag cache variable. 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11807$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11808if ${lt_cv_irix_exported_symbol+:} false; then : 11809 $as_echo_n "(cached) " >&6 11810else 11811 save_LDFLAGS="$LDFLAGS" 11812 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11814/* end confdefs.h. */ 11815int foo (void) { return 0; } 11816_ACEOF 11817if ac_fn_c_try_link "$LINENO"; then : 11818 lt_cv_irix_exported_symbol=yes 11819else 11820 lt_cv_irix_exported_symbol=no 11821fi 11822rm -f core conftest.err conftest.$ac_objext \ 11823 conftest$ac_exeext conftest.$ac_ext 11824 LDFLAGS="$save_LDFLAGS" 11825fi 11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11827$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11828 if test "$lt_cv_irix_exported_symbol" = yes; then 11829 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' 11830 fi 11831 else 11832 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' 11833 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' 11834 fi 11835 archive_cmds_need_lc='no' 11836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11837 hardcode_libdir_separator=: 11838 inherit_rpath=yes 11839 link_all_deplibs=yes 11840 ;; 11841 11842 netbsd*) 11843 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11845 else 11846 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11847 fi 11848 hardcode_libdir_flag_spec='-R$libdir' 11849 hardcode_direct=yes 11850 hardcode_shlibpath_var=no 11851 ;; 11852 11853 newsos6) 11854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11855 hardcode_direct=yes 11856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11857 hardcode_libdir_separator=: 11858 hardcode_shlibpath_var=no 11859 ;; 11860 11861 *nto* | *qnx*) 11862 ;; 11863 11864 openbsd*) 11865 if test -f /usr/libexec/ld.so; then 11866 hardcode_direct=yes 11867 hardcode_shlibpath_var=no 11868 hardcode_direct_absolute=yes 11869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11871 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11873 export_dynamic_flag_spec='${wl}-E' 11874 else 11875 case $host_os in 11876 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11877 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11878 hardcode_libdir_flag_spec='-R$libdir' 11879 ;; 11880 *) 11881 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11882 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11883 ;; 11884 esac 11885 fi 11886 else 11887 ld_shlibs=no 11888 fi 11889 ;; 11890 11891 os2*) 11892 hardcode_libdir_flag_spec='-L$libdir' 11893 hardcode_minus_L=yes 11894 allow_undefined_flag=unsupported 11895 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' 11896 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11897 ;; 11898 11899 osf3*) 11900 if test "$GCC" = yes; then 11901 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11902 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' 11903 else 11904 allow_undefined_flag=' -expect_unresolved \*' 11905 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' 11906 fi 11907 archive_cmds_need_lc='no' 11908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11909 hardcode_libdir_separator=: 11910 ;; 11911 11912 osf4* | osf5*) # as osf3* with the addition of -msym flag 11913 if test "$GCC" = yes; then 11914 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11915 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' 11916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11917 else 11918 allow_undefined_flag=' -expect_unresolved \*' 11919 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' 11920 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~ 11921 $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' 11922 11923 # Both c and cxx compiler support -rpath directly 11924 hardcode_libdir_flag_spec='-rpath $libdir' 11925 fi 11926 archive_cmds_need_lc='no' 11927 hardcode_libdir_separator=: 11928 ;; 11929 11930 solaris*) 11931 no_undefined_flag=' -z defs' 11932 if test "$GCC" = yes; then 11933 wlarc='${wl}' 11934 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11936 $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' 11937 else 11938 case `$CC -V 2>&1` in 11939 *"Compilers 5.0"*) 11940 wlarc='' 11941 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11942 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11943 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11944 ;; 11945 *) 11946 wlarc='${wl}' 11947 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11949 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11950 ;; 11951 esac 11952 fi 11953 hardcode_libdir_flag_spec='-R$libdir' 11954 hardcode_shlibpath_var=no 11955 case $host_os in 11956 solaris2.[0-5] | solaris2.[0-5].*) ;; 11957 *) 11958 # The compiler driver will combine and reorder linker options, 11959 # but understands `-z linker_flag'. GCC discards it without `$wl', 11960 # but is careful enough not to reorder. 11961 # Supported since Solaris 2.6 (maybe 2.5.1?) 11962 if test "$GCC" = yes; then 11963 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11964 else 11965 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11966 fi 11967 ;; 11968 esac 11969 link_all_deplibs=yes 11970 ;; 11971 11972 sunos4*) 11973 if test "x$host_vendor" = xsequent; then 11974 # Use $CC to link under sequent, because it throws in some extra .o 11975 # files that make .init and .fini sections work. 11976 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11977 else 11978 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11979 fi 11980 hardcode_libdir_flag_spec='-L$libdir' 11981 hardcode_direct=yes 11982 hardcode_minus_L=yes 11983 hardcode_shlibpath_var=no 11984 ;; 11985 11986 sysv4) 11987 case $host_vendor in 11988 sni) 11989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11990 hardcode_direct=yes # is this really true??? 11991 ;; 11992 siemens) 11993 ## LD is ld it makes a PLAMLIB 11994 ## CC just makes a GrossModule. 11995 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11996 reload_cmds='$CC -r -o $output$reload_objs' 11997 hardcode_direct=no 11998 ;; 11999 motorola) 12000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12001 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12002 ;; 12003 esac 12004 runpath_var='LD_RUN_PATH' 12005 hardcode_shlibpath_var=no 12006 ;; 12007 12008 sysv4.3*) 12009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12010 hardcode_shlibpath_var=no 12011 export_dynamic_flag_spec='-Bexport' 12012 ;; 12013 12014 sysv4*MP*) 12015 if test -d /usr/nec; then 12016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12017 hardcode_shlibpath_var=no 12018 runpath_var=LD_RUN_PATH 12019 hardcode_runpath_var=yes 12020 ld_shlibs=yes 12021 fi 12022 ;; 12023 12024 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12025 no_undefined_flag='${wl}-z,text' 12026 archive_cmds_need_lc=no 12027 hardcode_shlibpath_var=no 12028 runpath_var='LD_RUN_PATH' 12029 12030 if test "$GCC" = yes; then 12031 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12032 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12033 else 12034 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12035 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12036 fi 12037 ;; 12038 12039 sysv5* | sco3.2v5* | sco5v6*) 12040 # Note: We can NOT use -z defs as we might desire, because we do not 12041 # link with -lc, and that would cause any symbols used from libc to 12042 # always be unresolved, which means just about no library would 12043 # ever link correctly. If we're not using GNU ld we use -z text 12044 # though, which does catch some bad symbols but isn't as heavy-handed 12045 # as -z defs. 12046 no_undefined_flag='${wl}-z,text' 12047 allow_undefined_flag='${wl}-z,nodefs' 12048 archive_cmds_need_lc=no 12049 hardcode_shlibpath_var=no 12050 hardcode_libdir_flag_spec='${wl}-R,$libdir' 12051 hardcode_libdir_separator=':' 12052 link_all_deplibs=yes 12053 export_dynamic_flag_spec='${wl}-Bexport' 12054 runpath_var='LD_RUN_PATH' 12055 12056 if test "$GCC" = yes; then 12057 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12058 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12059 else 12060 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12061 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12062 fi 12063 ;; 12064 12065 uts4*) 12066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12067 hardcode_libdir_flag_spec='-L$libdir' 12068 hardcode_shlibpath_var=no 12069 ;; 12070 12071 *) 12072 ld_shlibs=no 12073 ;; 12074 esac 12075 12076 if test x$host_vendor = xsni; then 12077 case $host in 12078 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12079 export_dynamic_flag_spec='${wl}-Blargedynsym' 12080 ;; 12081 esac 12082 fi 12083 fi 12084 12085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12086$as_echo "$ld_shlibs" >&6; } 12087test "$ld_shlibs" = no && can_build_shared=no 12088 12089with_gnu_ld=$with_gnu_ld 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105# 12106# Do we need to explicitly link libc? 12107# 12108case "x$archive_cmds_need_lc" in 12109x|xyes) 12110 # Assume -lc should be added 12111 archive_cmds_need_lc=yes 12112 12113 if test "$enable_shared" = yes && test "$GCC" = yes; then 12114 case $archive_cmds in 12115 *'~'*) 12116 # FIXME: we may have to deal with multi-command sequences. 12117 ;; 12118 '$CC '*) 12119 # Test whether the compiler implicitly links with -lc since on some 12120 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12121 # to ld, don't add -lc before -lgcc. 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12123$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12124if ${lt_cv_archive_cmds_need_lc+:} false; then : 12125 $as_echo_n "(cached) " >&6 12126else 12127 $RM conftest* 12128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12129 12130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12131 (eval $ac_compile) 2>&5 12132 ac_status=$? 12133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12134 test $ac_status = 0; } 2>conftest.err; then 12135 soname=conftest 12136 lib=conftest 12137 libobjs=conftest.$ac_objext 12138 deplibs= 12139 wl=$lt_prog_compiler_wl 12140 pic_flag=$lt_prog_compiler_pic 12141 compiler_flags=-v 12142 linker_flags=-v 12143 verstring= 12144 output_objdir=. 12145 libname=conftest 12146 lt_save_allow_undefined_flag=$allow_undefined_flag 12147 allow_undefined_flag= 12148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12149 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12150 ac_status=$? 12151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12152 test $ac_status = 0; } 12153 then 12154 lt_cv_archive_cmds_need_lc=no 12155 else 12156 lt_cv_archive_cmds_need_lc=yes 12157 fi 12158 allow_undefined_flag=$lt_save_allow_undefined_flag 12159 else 12160 cat conftest.err 1>&5 12161 fi 12162 $RM conftest* 12163 12164fi 12165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12166$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12167 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12168 ;; 12169 esac 12170 fi 12171 ;; 12172esac 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 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12326$as_echo_n "checking dynamic linker characteristics... " >&6; } 12327 12328if test "$GCC" = yes; then 12329 case $host_os in 12330 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12331 *) lt_awk_arg="/^libraries:/" ;; 12332 esac 12333 case $host_os in 12334 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12335 *) lt_sed_strip_eq="s,=/,/,g" ;; 12336 esac 12337 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12338 case $lt_search_path_spec in 12339 *\;*) 12340 # if the path contains ";" then we assume it to be the separator 12341 # otherwise default to the standard path separator (i.e. ":") - it is 12342 # assumed that no part of a normal pathname contains ";" but that should 12343 # okay in the real world where ";" in dirpaths is itself problematic. 12344 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12345 ;; 12346 *) 12347 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12348 ;; 12349 esac 12350 # Ok, now we have the path, separated by spaces, we can step through it 12351 # and add multilib dir if necessary. 12352 lt_tmp_lt_search_path_spec= 12353 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12354 for lt_sys_path in $lt_search_path_spec; do 12355 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12356 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12357 else 12358 test -d "$lt_sys_path" && \ 12359 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12360 fi 12361 done 12362 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12363BEGIN {RS=" "; FS="/|\n";} { 12364 lt_foo=""; 12365 lt_count=0; 12366 for (lt_i = NF; lt_i > 0; lt_i--) { 12367 if ($lt_i != "" && $lt_i != ".") { 12368 if ($lt_i == "..") { 12369 lt_count++; 12370 } else { 12371 if (lt_count == 0) { 12372 lt_foo="/" $lt_i lt_foo; 12373 } else { 12374 lt_count--; 12375 } 12376 } 12377 } 12378 } 12379 if (lt_foo != "") { lt_freq[lt_foo]++; } 12380 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12381}'` 12382 # AWK program above erroneously prepends '/' to C:/dos/paths 12383 # for these hosts. 12384 case $host_os in 12385 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12386 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12387 esac 12388 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12389else 12390 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12391fi 12392library_names_spec= 12393libname_spec='lib$name' 12394soname_spec= 12395shrext_cmds=".so" 12396postinstall_cmds= 12397postuninstall_cmds= 12398finish_cmds= 12399finish_eval= 12400shlibpath_var= 12401shlibpath_overrides_runpath=unknown 12402version_type=none 12403dynamic_linker="$host_os ld.so" 12404sys_lib_dlsearch_path_spec="/lib /usr/lib" 12405need_lib_prefix=unknown 12406hardcode_into_libs=no 12407 12408# when you set need_version to no, make sure it does not cause -set_version 12409# flags to be left without arguments 12410need_version=unknown 12411 12412case $host_os in 12413aix3*) 12414 version_type=linux # correct to gnu/linux during the next big refactor 12415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12416 shlibpath_var=LIBPATH 12417 12418 # AIX 3 has no versioning support, so we append a major version to the name. 12419 soname_spec='${libname}${release}${shared_ext}$major' 12420 ;; 12421 12422aix[4-9]*) 12423 version_type=linux # correct to gnu/linux during the next big refactor 12424 need_lib_prefix=no 12425 need_version=no 12426 hardcode_into_libs=yes 12427 if test "$host_cpu" = ia64; then 12428 # AIX 5 supports IA64 12429 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12430 shlibpath_var=LD_LIBRARY_PATH 12431 else 12432 # With GCC up to 2.95.x, collect2 would create an import file 12433 # for dependence libraries. The import file would start with 12434 # the line `#! .'. This would cause the generated library to 12435 # depend on `.', always an invalid library. This was fixed in 12436 # development snapshots of GCC prior to 3.0. 12437 case $host_os in 12438 aix4 | aix4.[01] | aix4.[01].*) 12439 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12440 echo ' yes ' 12441 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12442 : 12443 else 12444 can_build_shared=no 12445 fi 12446 ;; 12447 esac 12448 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12449 # soname into executable. Probably we can add versioning support to 12450 # collect2, so additional links can be useful in future. 12451 if test "$aix_use_runtimelinking" = yes; then 12452 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12453 # instead of lib<name>.a to let people know that these are not 12454 # typical AIX shared libraries. 12455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12456 else 12457 # We preserve .a as extension for shared libraries through AIX4.2 12458 # and later when we are not doing run time linking. 12459 library_names_spec='${libname}${release}.a $libname.a' 12460 soname_spec='${libname}${release}${shared_ext}$major' 12461 fi 12462 shlibpath_var=LIBPATH 12463 fi 12464 ;; 12465 12466amigaos*) 12467 case $host_cpu in 12468 powerpc) 12469 # Since July 2007 AmigaOS4 officially supports .so libraries. 12470 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12472 ;; 12473 m68k) 12474 library_names_spec='$libname.ixlibrary $libname.a' 12475 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12476 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' 12477 ;; 12478 esac 12479 ;; 12480 12481beos*) 12482 library_names_spec='${libname}${shared_ext}' 12483 dynamic_linker="$host_os ld.so" 12484 shlibpath_var=LIBRARY_PATH 12485 ;; 12486 12487bsdi[45]*) 12488 version_type=linux # correct to gnu/linux during the next big refactor 12489 need_version=no 12490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12491 soname_spec='${libname}${release}${shared_ext}$major' 12492 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12493 shlibpath_var=LD_LIBRARY_PATH 12494 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12495 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12496 # the default ld.so.conf also contains /usr/contrib/lib and 12497 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12498 # libtool to hard-code these into programs 12499 ;; 12500 12501cygwin* | mingw* | pw32* | cegcc*) 12502 version_type=windows 12503 shrext_cmds=".dll" 12504 need_version=no 12505 need_lib_prefix=no 12506 12507 case $GCC,$cc_basename in 12508 yes,*) 12509 # gcc 12510 library_names_spec='$libname.dll.a' 12511 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12512 postinstall_cmds='base_file=`basename \${file}`~ 12513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12514 dldir=$destdir/`dirname \$dlpath`~ 12515 test -d \$dldir || mkdir -p \$dldir~ 12516 $install_prog $dir/$dlname \$dldir/$dlname~ 12517 chmod a+x \$dldir/$dlname~ 12518 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12519 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12520 fi' 12521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12522 dlpath=$dir/\$dldll~ 12523 $RM \$dlpath' 12524 shlibpath_overrides_runpath=yes 12525 12526 case $host_os in 12527 cygwin*) 12528 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12529 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12530 12531 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12532 ;; 12533 mingw* | cegcc*) 12534 # MinGW DLLs use traditional 'lib' prefix 12535 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12536 ;; 12537 pw32*) 12538 # pw32 DLLs use 'pw' prefix rather than 'lib' 12539 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12540 ;; 12541 esac 12542 dynamic_linker='Win32 ld.exe' 12543 ;; 12544 12545 *,cl*) 12546 # Native MSVC 12547 libname_spec='$name' 12548 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12549 library_names_spec='${libname}.dll.lib' 12550 12551 case $build_os in 12552 mingw*) 12553 sys_lib_search_path_spec= 12554 lt_save_ifs=$IFS 12555 IFS=';' 12556 for lt_path in $LIB 12557 do 12558 IFS=$lt_save_ifs 12559 # Let DOS variable expansion print the short 8.3 style file name. 12560 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12561 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12562 done 12563 IFS=$lt_save_ifs 12564 # Convert to MSYS style. 12565 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12566 ;; 12567 cygwin*) 12568 # Convert to unix form, then to dos form, then back to unix form 12569 # but this time dos style (no spaces!) so that the unix form looks 12570 # like /cygdrive/c/PROGRA~1:/cygdr... 12571 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12572 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12573 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12574 ;; 12575 *) 12576 sys_lib_search_path_spec="$LIB" 12577 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12578 # It is most probably a Windows format PATH. 12579 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12580 else 12581 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12582 fi 12583 # FIXME: find the short name or the path components, as spaces are 12584 # common. (e.g. "Program Files" -> "PROGRA~1") 12585 ;; 12586 esac 12587 12588 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12589 postinstall_cmds='base_file=`basename \${file}`~ 12590 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12591 dldir=$destdir/`dirname \$dlpath`~ 12592 test -d \$dldir || mkdir -p \$dldir~ 12593 $install_prog $dir/$dlname \$dldir/$dlname' 12594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12595 dlpath=$dir/\$dldll~ 12596 $RM \$dlpath' 12597 shlibpath_overrides_runpath=yes 12598 dynamic_linker='Win32 link.exe' 12599 ;; 12600 12601 *) 12602 # Assume MSVC wrapper 12603 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12604 dynamic_linker='Win32 ld.exe' 12605 ;; 12606 esac 12607 # FIXME: first we should search . and the directory the executable is in 12608 shlibpath_var=PATH 12609 ;; 12610 12611darwin* | rhapsody*) 12612 dynamic_linker="$host_os dyld" 12613 version_type=darwin 12614 need_lib_prefix=no 12615 need_version=no 12616 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12617 soname_spec='${libname}${release}${major}$shared_ext' 12618 shlibpath_overrides_runpath=yes 12619 shlibpath_var=DYLD_LIBRARY_PATH 12620 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12621 12622 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12623 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12624 ;; 12625 12626dgux*) 12627 version_type=linux # correct to gnu/linux during the next big refactor 12628 need_lib_prefix=no 12629 need_version=no 12630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12631 soname_spec='${libname}${release}${shared_ext}$major' 12632 shlibpath_var=LD_LIBRARY_PATH 12633 ;; 12634 12635freebsd* | dragonfly*) 12636 # DragonFly does not have aout. When/if they implement a new 12637 # versioning mechanism, adjust this. 12638 if test -x /usr/bin/objformat; then 12639 objformat=`/usr/bin/objformat` 12640 else 12641 case $host_os in 12642 freebsd[23].*) objformat=aout ;; 12643 *) objformat=elf ;; 12644 esac 12645 fi 12646 version_type=freebsd-$objformat 12647 case $version_type in 12648 freebsd-elf*) 12649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12650 need_version=no 12651 need_lib_prefix=no 12652 ;; 12653 freebsd-*) 12654 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12655 need_version=yes 12656 ;; 12657 esac 12658 shlibpath_var=LD_LIBRARY_PATH 12659 case $host_os in 12660 freebsd2.*) 12661 shlibpath_overrides_runpath=yes 12662 ;; 12663 freebsd3.[01]* | freebsdelf3.[01]*) 12664 shlibpath_overrides_runpath=yes 12665 hardcode_into_libs=yes 12666 ;; 12667 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12668 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12669 shlibpath_overrides_runpath=no 12670 hardcode_into_libs=yes 12671 ;; 12672 *) # from 4.6 on, and DragonFly 12673 shlibpath_overrides_runpath=yes 12674 hardcode_into_libs=yes 12675 ;; 12676 esac 12677 ;; 12678 12679gnu*) 12680 version_type=linux # correct to gnu/linux during the next big refactor 12681 need_lib_prefix=no 12682 need_version=no 12683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12684 soname_spec='${libname}${release}${shared_ext}$major' 12685 shlibpath_var=LD_LIBRARY_PATH 12686 shlibpath_overrides_runpath=no 12687 hardcode_into_libs=yes 12688 ;; 12689 12690haiku*) 12691 version_type=linux # correct to gnu/linux during the next big refactor 12692 need_lib_prefix=no 12693 need_version=no 12694 dynamic_linker="$host_os runtime_loader" 12695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12696 soname_spec='${libname}${release}${shared_ext}$major' 12697 shlibpath_var=LIBRARY_PATH 12698 shlibpath_overrides_runpath=yes 12699 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12700 hardcode_into_libs=yes 12701 ;; 12702 12703hpux9* | hpux10* | hpux11*) 12704 # Give a soname corresponding to the major version so that dld.sl refuses to 12705 # link against other versions. 12706 version_type=sunos 12707 need_lib_prefix=no 12708 need_version=no 12709 case $host_cpu in 12710 ia64*) 12711 shrext_cmds='.so' 12712 hardcode_into_libs=yes 12713 dynamic_linker="$host_os dld.so" 12714 shlibpath_var=LD_LIBRARY_PATH 12715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12717 soname_spec='${libname}${release}${shared_ext}$major' 12718 if test "X$HPUX_IA64_MODE" = X32; then 12719 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12720 else 12721 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12722 fi 12723 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12724 ;; 12725 hppa*64*) 12726 shrext_cmds='.sl' 12727 hardcode_into_libs=yes 12728 dynamic_linker="$host_os dld.sl" 12729 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12732 soname_spec='${libname}${release}${shared_ext}$major' 12733 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12735 ;; 12736 *) 12737 shrext_cmds='.sl' 12738 dynamic_linker="$host_os dld.sl" 12739 shlibpath_var=SHLIB_PATH 12740 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12742 soname_spec='${libname}${release}${shared_ext}$major' 12743 ;; 12744 esac 12745 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12746 postinstall_cmds='chmod 555 $lib' 12747 # or fails outright, so override atomically: 12748 install_override_mode=555 12749 ;; 12750 12751interix[3-9]*) 12752 version_type=linux # correct to gnu/linux during the next big refactor 12753 need_lib_prefix=no 12754 need_version=no 12755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12756 soname_spec='${libname}${release}${shared_ext}$major' 12757 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12758 shlibpath_var=LD_LIBRARY_PATH 12759 shlibpath_overrides_runpath=no 12760 hardcode_into_libs=yes 12761 ;; 12762 12763irix5* | irix6* | nonstopux*) 12764 case $host_os in 12765 nonstopux*) version_type=nonstopux ;; 12766 *) 12767 if test "$lt_cv_prog_gnu_ld" = yes; then 12768 version_type=linux # correct to gnu/linux during the next big refactor 12769 else 12770 version_type=irix 12771 fi ;; 12772 esac 12773 need_lib_prefix=no 12774 need_version=no 12775 soname_spec='${libname}${release}${shared_ext}$major' 12776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12777 case $host_os in 12778 irix5* | nonstopux*) 12779 libsuff= shlibsuff= 12780 ;; 12781 *) 12782 case $LD in # libtool.m4 will add one of these switches to LD 12783 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12784 libsuff= shlibsuff= libmagic=32-bit;; 12785 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12786 libsuff=32 shlibsuff=N32 libmagic=N32;; 12787 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12788 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12789 *) libsuff= shlibsuff= libmagic=never-match;; 12790 esac 12791 ;; 12792 esac 12793 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12794 shlibpath_overrides_runpath=no 12795 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12796 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12797 hardcode_into_libs=yes 12798 ;; 12799 12800# No shared lib support for Linux oldld, aout, or coff. 12801linux*oldld* | linux*aout* | linux*coff*) 12802 dynamic_linker=no 12803 ;; 12804 12805# This must be glibc/ELF. 12806linux* | k*bsd*-gnu | kopensolaris*-gnu) 12807 version_type=linux # correct to gnu/linux during the next big refactor 12808 need_lib_prefix=no 12809 need_version=no 12810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12811 soname_spec='${libname}${release}${shared_ext}$major' 12812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12813 shlibpath_var=LD_LIBRARY_PATH 12814 shlibpath_overrides_runpath=no 12815 12816 # Some binutils ld are patched to set DT_RUNPATH 12817 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12818 $as_echo_n "(cached) " >&6 12819else 12820 lt_cv_shlibpath_overrides_runpath=no 12821 save_LDFLAGS=$LDFLAGS 12822 save_libdir=$libdir 12823 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12824 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12826/* end confdefs.h. */ 12827 12828int 12829main () 12830{ 12831 12832 ; 12833 return 0; 12834} 12835_ACEOF 12836if ac_fn_c_try_link "$LINENO"; then : 12837 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12838 lt_cv_shlibpath_overrides_runpath=yes 12839fi 12840fi 12841rm -f core conftest.err conftest.$ac_objext \ 12842 conftest$ac_exeext conftest.$ac_ext 12843 LDFLAGS=$save_LDFLAGS 12844 libdir=$save_libdir 12845 12846fi 12847 12848 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12849 12850 # This implies no fast_install, which is unacceptable. 12851 # Some rework will be needed to allow for fast_install 12852 # before this can be enabled. 12853 hardcode_into_libs=yes 12854 12855 # Add ABI-specific directories to the system library path. 12856 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12857 12858 # Append ld.so.conf contents to the search path 12859 if test -f /etc/ld.so.conf; then 12860 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' ' '` 12861 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12862 12863 fi 12864 12865 # We used to test for /lib/ld.so.1 and disable shared libraries on 12866 # powerpc, because MkLinux only supported shared libraries with the 12867 # GNU dynamic linker. Since this was broken with cross compilers, 12868 # most powerpc-linux boxes support dynamic linking these days and 12869 # people can always --disable-shared, the test was removed, and we 12870 # assume the GNU/Linux dynamic linker is in use. 12871 dynamic_linker='GNU/Linux ld.so' 12872 ;; 12873 12874netbsd*) 12875 version_type=sunos 12876 need_lib_prefix=no 12877 need_version=no 12878 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12881 dynamic_linker='NetBSD (a.out) ld.so' 12882 else 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 dynamic_linker='NetBSD ld.elf_so' 12886 fi 12887 shlibpath_var=LD_LIBRARY_PATH 12888 shlibpath_overrides_runpath=yes 12889 hardcode_into_libs=yes 12890 ;; 12891 12892newsos6) 12893 version_type=linux # correct to gnu/linux during the next big refactor 12894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12895 shlibpath_var=LD_LIBRARY_PATH 12896 shlibpath_overrides_runpath=yes 12897 ;; 12898 12899*nto* | *qnx*) 12900 version_type=qnx 12901 need_lib_prefix=no 12902 need_version=no 12903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12904 soname_spec='${libname}${release}${shared_ext}$major' 12905 shlibpath_var=LD_LIBRARY_PATH 12906 shlibpath_overrides_runpath=no 12907 hardcode_into_libs=yes 12908 dynamic_linker='ldqnx.so' 12909 ;; 12910 12911openbsd*) 12912 version_type=sunos 12913 sys_lib_dlsearch_path_spec="/usr/lib" 12914 need_lib_prefix=no 12915 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12916 case $host_os in 12917 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12918 *) need_version=no ;; 12919 esac 12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12922 shlibpath_var=LD_LIBRARY_PATH 12923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12924 case $host_os in 12925 openbsd2.[89] | openbsd2.[89].*) 12926 shlibpath_overrides_runpath=no 12927 ;; 12928 *) 12929 shlibpath_overrides_runpath=yes 12930 ;; 12931 esac 12932 else 12933 shlibpath_overrides_runpath=yes 12934 fi 12935 ;; 12936 12937os2*) 12938 libname_spec='$name' 12939 shrext_cmds=".dll" 12940 need_lib_prefix=no 12941 library_names_spec='$libname${shared_ext} $libname.a' 12942 dynamic_linker='OS/2 ld.exe' 12943 shlibpath_var=LIBPATH 12944 ;; 12945 12946osf3* | osf4* | osf5*) 12947 version_type=osf 12948 need_lib_prefix=no 12949 need_version=no 12950 soname_spec='${libname}${release}${shared_ext}$major' 12951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12952 shlibpath_var=LD_LIBRARY_PATH 12953 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12954 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12955 ;; 12956 12957rdos*) 12958 dynamic_linker=no 12959 ;; 12960 12961solaris*) 12962 version_type=linux # correct to gnu/linux during the next big refactor 12963 need_lib_prefix=no 12964 need_version=no 12965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12966 soname_spec='${libname}${release}${shared_ext}$major' 12967 shlibpath_var=LD_LIBRARY_PATH 12968 shlibpath_overrides_runpath=yes 12969 hardcode_into_libs=yes 12970 # ldd complains unless libraries are executable 12971 postinstall_cmds='chmod +x $lib' 12972 ;; 12973 12974sunos4*) 12975 version_type=sunos 12976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12977 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12978 shlibpath_var=LD_LIBRARY_PATH 12979 shlibpath_overrides_runpath=yes 12980 if test "$with_gnu_ld" = yes; then 12981 need_lib_prefix=no 12982 fi 12983 need_version=yes 12984 ;; 12985 12986sysv4 | sysv4.3*) 12987 version_type=linux # correct to gnu/linux during the next big refactor 12988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12989 soname_spec='${libname}${release}${shared_ext}$major' 12990 shlibpath_var=LD_LIBRARY_PATH 12991 case $host_vendor in 12992 sni) 12993 shlibpath_overrides_runpath=no 12994 need_lib_prefix=no 12995 runpath_var=LD_RUN_PATH 12996 ;; 12997 siemens) 12998 need_lib_prefix=no 12999 ;; 13000 motorola) 13001 need_lib_prefix=no 13002 need_version=no 13003 shlibpath_overrides_runpath=no 13004 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13005 ;; 13006 esac 13007 ;; 13008 13009sysv4*MP*) 13010 if test -d /usr/nec ;then 13011 version_type=linux # correct to gnu/linux during the next big refactor 13012 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13013 soname_spec='$libname${shared_ext}.$major' 13014 shlibpath_var=LD_LIBRARY_PATH 13015 fi 13016 ;; 13017 13018sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13019 version_type=freebsd-elf 13020 need_lib_prefix=no 13021 need_version=no 13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13023 soname_spec='${libname}${release}${shared_ext}$major' 13024 shlibpath_var=LD_LIBRARY_PATH 13025 shlibpath_overrides_runpath=yes 13026 hardcode_into_libs=yes 13027 if test "$with_gnu_ld" = yes; then 13028 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13029 else 13030 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13031 case $host_os in 13032 sco3.2v5*) 13033 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13034 ;; 13035 esac 13036 fi 13037 sys_lib_dlsearch_path_spec='/usr/lib' 13038 ;; 13039 13040tpf*) 13041 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13042 version_type=linux # correct to gnu/linux during the next big refactor 13043 need_lib_prefix=no 13044 need_version=no 13045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13046 shlibpath_var=LD_LIBRARY_PATH 13047 shlibpath_overrides_runpath=no 13048 hardcode_into_libs=yes 13049 ;; 13050 13051uts4*) 13052 version_type=linux # correct to gnu/linux during the next big refactor 13053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13054 soname_spec='${libname}${release}${shared_ext}$major' 13055 shlibpath_var=LD_LIBRARY_PATH 13056 ;; 13057 13058*) 13059 dynamic_linker=no 13060 ;; 13061esac 13062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13063$as_echo "$dynamic_linker" >&6; } 13064test "$dynamic_linker" = no && can_build_shared=no 13065 13066variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13067if test "$GCC" = yes; then 13068 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13069fi 13070 13071if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13072 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13073fi 13074if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13075 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13076fi 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13170$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13171hardcode_action= 13172if test -n "$hardcode_libdir_flag_spec" || 13173 test -n "$runpath_var" || 13174 test "X$hardcode_automatic" = "Xyes" ; then 13175 13176 # We can hardcode non-existent directories. 13177 if test "$hardcode_direct" != no && 13178 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13179 # have to relink, otherwise we might link with an installed library 13180 # when we should be linking with a yet-to-be-installed one 13181 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13182 test "$hardcode_minus_L" != no; then 13183 # Linking always hardcodes the temporary library directory. 13184 hardcode_action=relink 13185 else 13186 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13187 hardcode_action=immediate 13188 fi 13189else 13190 # We cannot hardcode anything, or else we can only hardcode existing 13191 # directories. 13192 hardcode_action=unsupported 13193fi 13194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13195$as_echo "$hardcode_action" >&6; } 13196 13197if test "$hardcode_action" = relink || 13198 test "$inherit_rpath" = yes; then 13199 # Fast installation is not supported 13200 enable_fast_install=no 13201elif test "$shlibpath_overrides_runpath" = yes || 13202 test "$enable_shared" = no; then 13203 # Fast installation is not necessary 13204 enable_fast_install=needless 13205fi 13206 13207 13208 13209 13210 13211 13212 if test "x$enable_dlopen" != xyes; then 13213 enable_dlopen=unknown 13214 enable_dlopen_self=unknown 13215 enable_dlopen_self_static=unknown 13216else 13217 lt_cv_dlopen=no 13218 lt_cv_dlopen_libs= 13219 13220 case $host_os in 13221 beos*) 13222 lt_cv_dlopen="load_add_on" 13223 lt_cv_dlopen_libs= 13224 lt_cv_dlopen_self=yes 13225 ;; 13226 13227 mingw* | pw32* | cegcc*) 13228 lt_cv_dlopen="LoadLibrary" 13229 lt_cv_dlopen_libs= 13230 ;; 13231 13232 cygwin*) 13233 lt_cv_dlopen="dlopen" 13234 lt_cv_dlopen_libs= 13235 ;; 13236 13237 darwin*) 13238 # if libdl is installed we need to link against it 13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13240$as_echo_n "checking for dlopen in -ldl... " >&6; } 13241if ${ac_cv_lib_dl_dlopen+:} false; then : 13242 $as_echo_n "(cached) " >&6 13243else 13244 ac_check_lib_save_LIBS=$LIBS 13245LIBS="-ldl $LIBS" 13246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13247/* end confdefs.h. */ 13248 13249/* Override any GCC internal prototype to avoid an error. 13250 Use char because int might match the return type of a GCC 13251 builtin and then its argument prototype would still apply. */ 13252#ifdef __cplusplus 13253extern "C" 13254#endif 13255char dlopen (); 13256int 13257main () 13258{ 13259return dlopen (); 13260 ; 13261 return 0; 13262} 13263_ACEOF 13264if ac_fn_c_try_link "$LINENO"; then : 13265 ac_cv_lib_dl_dlopen=yes 13266else 13267 ac_cv_lib_dl_dlopen=no 13268fi 13269rm -f core conftest.err conftest.$ac_objext \ 13270 conftest$ac_exeext conftest.$ac_ext 13271LIBS=$ac_check_lib_save_LIBS 13272fi 13273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13274$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13275if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13277else 13278 13279 lt_cv_dlopen="dyld" 13280 lt_cv_dlopen_libs= 13281 lt_cv_dlopen_self=yes 13282 13283fi 13284 13285 ;; 13286 13287 *) 13288 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13289if test "x$ac_cv_func_shl_load" = xyes; then : 13290 lt_cv_dlopen="shl_load" 13291else 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13293$as_echo_n "checking for shl_load in -ldld... " >&6; } 13294if ${ac_cv_lib_dld_shl_load+:} false; then : 13295 $as_echo_n "(cached) " >&6 13296else 13297 ac_check_lib_save_LIBS=$LIBS 13298LIBS="-ldld $LIBS" 13299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13300/* end confdefs.h. */ 13301 13302/* Override any GCC internal prototype to avoid an error. 13303 Use char because int might match the return type of a GCC 13304 builtin and then its argument prototype would still apply. */ 13305#ifdef __cplusplus 13306extern "C" 13307#endif 13308char shl_load (); 13309int 13310main () 13311{ 13312return shl_load (); 13313 ; 13314 return 0; 13315} 13316_ACEOF 13317if ac_fn_c_try_link "$LINENO"; then : 13318 ac_cv_lib_dld_shl_load=yes 13319else 13320 ac_cv_lib_dld_shl_load=no 13321fi 13322rm -f core conftest.err conftest.$ac_objext \ 13323 conftest$ac_exeext conftest.$ac_ext 13324LIBS=$ac_check_lib_save_LIBS 13325fi 13326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13327$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13328if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13329 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13330else 13331 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13332if test "x$ac_cv_func_dlopen" = xyes; then : 13333 lt_cv_dlopen="dlopen" 13334else 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13336$as_echo_n "checking for dlopen in -ldl... " >&6; } 13337if ${ac_cv_lib_dl_dlopen+:} false; then : 13338 $as_echo_n "(cached) " >&6 13339else 13340 ac_check_lib_save_LIBS=$LIBS 13341LIBS="-ldl $LIBS" 13342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13343/* end confdefs.h. */ 13344 13345/* Override any GCC internal prototype to avoid an error. 13346 Use char because int might match the return type of a GCC 13347 builtin and then its argument prototype would still apply. */ 13348#ifdef __cplusplus 13349extern "C" 13350#endif 13351char dlopen (); 13352int 13353main () 13354{ 13355return dlopen (); 13356 ; 13357 return 0; 13358} 13359_ACEOF 13360if ac_fn_c_try_link "$LINENO"; then : 13361 ac_cv_lib_dl_dlopen=yes 13362else 13363 ac_cv_lib_dl_dlopen=no 13364fi 13365rm -f core conftest.err conftest.$ac_objext \ 13366 conftest$ac_exeext conftest.$ac_ext 13367LIBS=$ac_check_lib_save_LIBS 13368fi 13369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13370$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13371if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13372 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13373else 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13375$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13376if ${ac_cv_lib_svld_dlopen+:} false; then : 13377 $as_echo_n "(cached) " >&6 13378else 13379 ac_check_lib_save_LIBS=$LIBS 13380LIBS="-lsvld $LIBS" 13381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13382/* end confdefs.h. */ 13383 13384/* Override any GCC internal prototype to avoid an error. 13385 Use char because int might match the return type of a GCC 13386 builtin and then its argument prototype would still apply. */ 13387#ifdef __cplusplus 13388extern "C" 13389#endif 13390char dlopen (); 13391int 13392main () 13393{ 13394return dlopen (); 13395 ; 13396 return 0; 13397} 13398_ACEOF 13399if ac_fn_c_try_link "$LINENO"; then : 13400 ac_cv_lib_svld_dlopen=yes 13401else 13402 ac_cv_lib_svld_dlopen=no 13403fi 13404rm -f core conftest.err conftest.$ac_objext \ 13405 conftest$ac_exeext conftest.$ac_ext 13406LIBS=$ac_check_lib_save_LIBS 13407fi 13408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13409$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13410if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13411 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13412else 13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13414$as_echo_n "checking for dld_link in -ldld... " >&6; } 13415if ${ac_cv_lib_dld_dld_link+:} false; then : 13416 $as_echo_n "(cached) " >&6 13417else 13418 ac_check_lib_save_LIBS=$LIBS 13419LIBS="-ldld $LIBS" 13420cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13421/* end confdefs.h. */ 13422 13423/* Override any GCC internal prototype to avoid an error. 13424 Use char because int might match the return type of a GCC 13425 builtin and then its argument prototype would still apply. */ 13426#ifdef __cplusplus 13427extern "C" 13428#endif 13429char dld_link (); 13430int 13431main () 13432{ 13433return dld_link (); 13434 ; 13435 return 0; 13436} 13437_ACEOF 13438if ac_fn_c_try_link "$LINENO"; then : 13439 ac_cv_lib_dld_dld_link=yes 13440else 13441 ac_cv_lib_dld_dld_link=no 13442fi 13443rm -f core conftest.err conftest.$ac_objext \ 13444 conftest$ac_exeext conftest.$ac_ext 13445LIBS=$ac_check_lib_save_LIBS 13446fi 13447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13448$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13449if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13450 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13451fi 13452 13453 13454fi 13455 13456 13457fi 13458 13459 13460fi 13461 13462 13463fi 13464 13465 13466fi 13467 13468 ;; 13469 esac 13470 13471 if test "x$lt_cv_dlopen" != xno; then 13472 enable_dlopen=yes 13473 else 13474 enable_dlopen=no 13475 fi 13476 13477 case $lt_cv_dlopen in 13478 dlopen) 13479 save_CPPFLAGS="$CPPFLAGS" 13480 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13481 13482 save_LDFLAGS="$LDFLAGS" 13483 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13484 13485 save_LIBS="$LIBS" 13486 LIBS="$lt_cv_dlopen_libs $LIBS" 13487 13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13489$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13490if ${lt_cv_dlopen_self+:} false; then : 13491 $as_echo_n "(cached) " >&6 13492else 13493 if test "$cross_compiling" = yes; then : 13494 lt_cv_dlopen_self=cross 13495else 13496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13497 lt_status=$lt_dlunknown 13498 cat > conftest.$ac_ext <<_LT_EOF 13499#line $LINENO "configure" 13500#include "confdefs.h" 13501 13502#if HAVE_DLFCN_H 13503#include <dlfcn.h> 13504#endif 13505 13506#include <stdio.h> 13507 13508#ifdef RTLD_GLOBAL 13509# define LT_DLGLOBAL RTLD_GLOBAL 13510#else 13511# ifdef DL_GLOBAL 13512# define LT_DLGLOBAL DL_GLOBAL 13513# else 13514# define LT_DLGLOBAL 0 13515# endif 13516#endif 13517 13518/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13519 find out it does not work in some platform. */ 13520#ifndef LT_DLLAZY_OR_NOW 13521# ifdef RTLD_LAZY 13522# define LT_DLLAZY_OR_NOW RTLD_LAZY 13523# else 13524# ifdef DL_LAZY 13525# define LT_DLLAZY_OR_NOW DL_LAZY 13526# else 13527# ifdef RTLD_NOW 13528# define LT_DLLAZY_OR_NOW RTLD_NOW 13529# else 13530# ifdef DL_NOW 13531# define LT_DLLAZY_OR_NOW DL_NOW 13532# else 13533# define LT_DLLAZY_OR_NOW 0 13534# endif 13535# endif 13536# endif 13537# endif 13538#endif 13539 13540/* When -fvisbility=hidden is used, assume the code has been annotated 13541 correspondingly for the symbols needed. */ 13542#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13543int fnord () __attribute__((visibility("default"))); 13544#endif 13545 13546int fnord () { return 42; } 13547int main () 13548{ 13549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13550 int status = $lt_dlunknown; 13551 13552 if (self) 13553 { 13554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13555 else 13556 { 13557 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13558 else puts (dlerror ()); 13559 } 13560 /* dlclose (self); */ 13561 } 13562 else 13563 puts (dlerror ()); 13564 13565 return status; 13566} 13567_LT_EOF 13568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13569 (eval $ac_link) 2>&5 13570 ac_status=$? 13571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13572 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13573 (./conftest; exit; ) >&5 2>/dev/null 13574 lt_status=$? 13575 case x$lt_status in 13576 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13577 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13578 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13579 esac 13580 else : 13581 # compilation failed 13582 lt_cv_dlopen_self=no 13583 fi 13584fi 13585rm -fr conftest* 13586 13587 13588fi 13589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13590$as_echo "$lt_cv_dlopen_self" >&6; } 13591 13592 if test "x$lt_cv_dlopen_self" = xyes; then 13593 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13595$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13596if ${lt_cv_dlopen_self_static+:} false; then : 13597 $as_echo_n "(cached) " >&6 13598else 13599 if test "$cross_compiling" = yes; then : 13600 lt_cv_dlopen_self_static=cross 13601else 13602 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13603 lt_status=$lt_dlunknown 13604 cat > conftest.$ac_ext <<_LT_EOF 13605#line $LINENO "configure" 13606#include "confdefs.h" 13607 13608#if HAVE_DLFCN_H 13609#include <dlfcn.h> 13610#endif 13611 13612#include <stdio.h> 13613 13614#ifdef RTLD_GLOBAL 13615# define LT_DLGLOBAL RTLD_GLOBAL 13616#else 13617# ifdef DL_GLOBAL 13618# define LT_DLGLOBAL DL_GLOBAL 13619# else 13620# define LT_DLGLOBAL 0 13621# endif 13622#endif 13623 13624/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13625 find out it does not work in some platform. */ 13626#ifndef LT_DLLAZY_OR_NOW 13627# ifdef RTLD_LAZY 13628# define LT_DLLAZY_OR_NOW RTLD_LAZY 13629# else 13630# ifdef DL_LAZY 13631# define LT_DLLAZY_OR_NOW DL_LAZY 13632# else 13633# ifdef RTLD_NOW 13634# define LT_DLLAZY_OR_NOW RTLD_NOW 13635# else 13636# ifdef DL_NOW 13637# define LT_DLLAZY_OR_NOW DL_NOW 13638# else 13639# define LT_DLLAZY_OR_NOW 0 13640# endif 13641# endif 13642# endif 13643# endif 13644#endif 13645 13646/* When -fvisbility=hidden is used, assume the code has been annotated 13647 correspondingly for the symbols needed. */ 13648#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13649int fnord () __attribute__((visibility("default"))); 13650#endif 13651 13652int fnord () { return 42; } 13653int main () 13654{ 13655 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13656 int status = $lt_dlunknown; 13657 13658 if (self) 13659 { 13660 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13661 else 13662 { 13663 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13664 else puts (dlerror ()); 13665 } 13666 /* dlclose (self); */ 13667 } 13668 else 13669 puts (dlerror ()); 13670 13671 return status; 13672} 13673_LT_EOF 13674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13675 (eval $ac_link) 2>&5 13676 ac_status=$? 13677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13678 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13679 (./conftest; exit; ) >&5 2>/dev/null 13680 lt_status=$? 13681 case x$lt_status in 13682 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13683 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13684 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13685 esac 13686 else : 13687 # compilation failed 13688 lt_cv_dlopen_self_static=no 13689 fi 13690fi 13691rm -fr conftest* 13692 13693 13694fi 13695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13696$as_echo "$lt_cv_dlopen_self_static" >&6; } 13697 fi 13698 13699 CPPFLAGS="$save_CPPFLAGS" 13700 LDFLAGS="$save_LDFLAGS" 13701 LIBS="$save_LIBS" 13702 ;; 13703 esac 13704 13705 case $lt_cv_dlopen_self in 13706 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13707 *) enable_dlopen_self=unknown ;; 13708 esac 13709 13710 case $lt_cv_dlopen_self_static in 13711 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13712 *) enable_dlopen_self_static=unknown ;; 13713 esac 13714fi 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732striplib= 13733old_striplib= 13734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13735$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13736if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13737 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13738 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13740$as_echo "yes" >&6; } 13741else 13742# FIXME - insert some real tests, host_os isn't really good enough 13743 case $host_os in 13744 darwin*) 13745 if test -n "$STRIP" ; then 13746 striplib="$STRIP -x" 13747 old_striplib="$STRIP -S" 13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13749$as_echo "yes" >&6; } 13750 else 13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13752$as_echo "no" >&6; } 13753 fi 13754 ;; 13755 *) 13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13757$as_echo "no" >&6; } 13758 ;; 13759 esac 13760fi 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 # Report which library types will actually be built 13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13775$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13777$as_echo "$can_build_shared" >&6; } 13778 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13780$as_echo_n "checking whether to build shared libraries... " >&6; } 13781 test "$can_build_shared" = "no" && enable_shared=no 13782 13783 # On AIX, shared libraries and static libraries use the same namespace, and 13784 # are all built from PIC. 13785 case $host_os in 13786 aix3*) 13787 test "$enable_shared" = yes && enable_static=no 13788 if test -n "$RANLIB"; then 13789 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13790 postinstall_cmds='$RANLIB $lib' 13791 fi 13792 ;; 13793 13794 aix[4-9]*) 13795 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13796 test "$enable_shared" = yes && enable_static=no 13797 fi 13798 ;; 13799 esac 13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13801$as_echo "$enable_shared" >&6; } 13802 13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13804$as_echo_n "checking whether to build static libraries... " >&6; } 13805 # Make sure either enable_shared or enable_static is yes. 13806 test "$enable_shared" = yes || enable_static=yes 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13808$as_echo "$enable_static" >&6; } 13809 13810 13811 13812 13813fi 13814ac_ext=c 13815ac_cpp='$CPP $CPPFLAGS' 13816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13818ac_compiler_gnu=$ac_cv_c_compiler_gnu 13819 13820CC="$lt_save_CC" 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 ac_config_commands="$ac_config_commands libtool" 13837 13838 13839 13840 13841# Only expand once: 13842 13843 13844 13845 13846# Checks for header files. 13847for 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 13848do : 13849 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13850ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13851" 13852if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13853 cat >>confdefs.h <<_ACEOF 13854#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13855_ACEOF 13856 13857fi 13858 13859done 13860 13861 13862# check for types. 13863# Using own tests for int64* because autoconf builtin only give 32bit. 13864ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 13865if test "x$ac_cv_type_int8_t" = xyes; then : 13866 13867else 13868 13869cat >>confdefs.h <<_ACEOF 13870#define int8_t signed char 13871_ACEOF 13872 13873fi 13874 13875ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 13876if test "x$ac_cv_type_int16_t" = xyes; then : 13877 13878else 13879 13880cat >>confdefs.h <<_ACEOF 13881#define int16_t short 13882_ACEOF 13883 13884fi 13885 13886ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 13887if test "x$ac_cv_type_int32_t" = xyes; then : 13888 13889else 13890 13891cat >>confdefs.h <<_ACEOF 13892#define int32_t int 13893_ACEOF 13894 13895fi 13896 13897ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 13898if test "x$ac_cv_type_int64_t" = xyes; then : 13899 13900else 13901 13902cat >>confdefs.h <<_ACEOF 13903#define int64_t long long 13904_ACEOF 13905 13906fi 13907 13908ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 13909if test "x$ac_cv_type_uint8_t" = xyes; then : 13910 13911else 13912 13913cat >>confdefs.h <<_ACEOF 13914#define uint8_t unsigned char 13915_ACEOF 13916 13917fi 13918 13919ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 13920if test "x$ac_cv_type_uint16_t" = xyes; then : 13921 13922else 13923 13924cat >>confdefs.h <<_ACEOF 13925#define uint16_t unsigned short 13926_ACEOF 13927 13928fi 13929 13930ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 13931if test "x$ac_cv_type_uint32_t" = xyes; then : 13932 13933else 13934 13935cat >>confdefs.h <<_ACEOF 13936#define uint32_t unsigned int 13937_ACEOF 13938 13939fi 13940 13941ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 13942if test "x$ac_cv_type_uint64_t" = xyes; then : 13943 13944else 13945 13946cat >>confdefs.h <<_ACEOF 13947#define uint64_t unsigned long long 13948_ACEOF 13949 13950fi 13951 13952ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13953if test "x$ac_cv_type_size_t" = xyes; then : 13954 13955else 13956 13957cat >>confdefs.h <<_ACEOF 13958#define size_t unsigned int 13959_ACEOF 13960 13961fi 13962 13963ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 13964if test "x$ac_cv_type_ssize_t" = xyes; then : 13965 13966else 13967 13968cat >>confdefs.h <<_ACEOF 13969#define ssize_t int 13970_ACEOF 13971 13972fi 13973 13974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 13975$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 13976if ${ac_cv_type_uid_t+:} false; then : 13977 $as_echo_n "(cached) " >&6 13978else 13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13980/* end confdefs.h. */ 13981#include <sys/types.h> 13982 13983_ACEOF 13984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13985 $EGREP "uid_t" >/dev/null 2>&1; then : 13986 ac_cv_type_uid_t=yes 13987else 13988 ac_cv_type_uid_t=no 13989fi 13990rm -f conftest* 13991 13992fi 13993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 13994$as_echo "$ac_cv_type_uid_t" >&6; } 13995if test $ac_cv_type_uid_t = no; then 13996 13997$as_echo "#define uid_t int" >>confdefs.h 13998 13999 14000$as_echo "#define gid_t int" >>confdefs.h 14001 14002fi 14003 14004ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 14005if test "x$ac_cv_type_pid_t" = xyes; then : 14006 14007else 14008 14009cat >>confdefs.h <<_ACEOF 14010#define pid_t int 14011_ACEOF 14012 14013fi 14014 14015ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 14016if test "x$ac_cv_type_off_t" = xyes; then : 14017 14018else 14019 14020cat >>confdefs.h <<_ACEOF 14021#define off_t long int 14022_ACEOF 14023 14024fi 14025 14026ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" " 14027$ac_includes_default 14028#ifdef HAVE_WINSOCK2_H 14029# include <winsock2.h> 14030#endif 14031 14032" 14033if test "x$ac_cv_type_u_char" = xyes; then : 14034 14035else 14036 14037$as_echo "#define u_char unsigned char" >>confdefs.h 14038 14039fi 14040 14041ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " 14042$ac_includes_default 14043#ifdef HAVE_SYS_RESOURCE_H 14044# include <sys/resource.h> 14045#endif 14046 14047" 14048if test "x$ac_cv_type_rlim_t" = xyes; then : 14049 14050else 14051 14052$as_echo "#define rlim_t unsigned long" >>confdefs.h 14053 14054fi 14055 14056 14057ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 14058$ac_includes_default 14059#ifdef HAVE_SYS_SOCKET_H 14060# include <sys/socket.h> 14061#endif 14062#ifdef HAVE_WS2TCPIP_H 14063# include <ws2tcpip.h> 14064#endif 14065 14066" 14067if test "x$ac_cv_type_socklen_t" = xyes; then : 14068 14069else 14070 14071$as_echo "#define socklen_t int" >>confdefs.h 14072 14073fi 14074 14075 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 14076$ac_includes_default 14077#ifdef HAVE_SYS_TYPES_H 14078# include <sys/types.h> 14079#endif 14080#ifdef HAVE_NETINET_IN_H 14081# include <netinet/in.h> 14082#endif 14083 14084" 14085if test "x$ac_cv_type_in_addr_t" = xyes; then : 14086 14087else 14088 14089$as_echo "#define in_addr_t uint32_t" >>confdefs.h 14090 14091fi 14092 14093 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 14094$ac_includes_default 14095#ifdef HAVE_SYS_TYPES_H 14096# include <sys/types.h> 14097#endif 14098#ifdef HAVE_NETINET_IN_H 14099# include <netinet/in.h> 14100#endif 14101 14102" 14103if test "x$ac_cv_type_in_port_t" = xyes; then : 14104 14105else 14106 14107$as_echo "#define in_port_t uint16_t" >>confdefs.h 14108 14109fi 14110 14111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 14112$as_echo_n "checking if memcmp compares unsigned... " >&6; } 14113if test "$cross_compiling" = yes; then : 14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 14115$as_echo "cross-compile no" >&6; } 14116 14117$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 14118 14119 case " $LIBOBJS " in 14120 *" memcmp.$ac_objext "* ) ;; 14121 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 14122 ;; 14123esac 14124 14125 14126else 14127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14128/* end confdefs.h. */ 14129 14130#include <stdio.h> 14131#include <stdlib.h> 14132#include <string.h> 14133int main(void) 14134{ 14135 char a = 255, b = 0; 14136 if(memcmp(&a, &b, 1) < 0) 14137 return 1; 14138 return 0; 14139} 14140 14141_ACEOF 14142if ac_fn_c_try_run "$LINENO"; then : 14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14144$as_echo "yes" >&6; } 14145else 14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14147$as_echo "no" >&6; } 14148 14149$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 14150 14151 case " $LIBOBJS " in 14152 *" memcmp.$ac_objext "* ) ;; 14153 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 14154 ;; 14155esac 14156 14157 14158fi 14159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14160 conftest.$ac_objext conftest.beam conftest.$ac_ext 14161fi 14162 14163 14164# The cast to long int works around a bug in the HP C Compiler 14165# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14166# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14167# This bug is HP SR number 8606223364. 14168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 14169$as_echo_n "checking size of time_t... " >&6; } 14170if ${ac_cv_sizeof_time_t+:} false; then : 14171 $as_echo_n "(cached) " >&6 14172else 14173 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 14174$ac_includes_default 14175#ifdef TIME_WITH_SYS_TIME 14176# include <sys/time.h> 14177# include <time.h> 14178#else 14179# ifdef HAVE_SYS_TIME_H 14180# include <sys/time.h> 14181# else 14182# include <time.h> 14183# endif 14184#endif 14185 14186"; then : 14187 14188else 14189 if test "$ac_cv_type_time_t" = yes; then 14190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14192as_fn_error 77 "cannot compute sizeof (time_t) 14193See \`config.log' for more details" "$LINENO" 5; } 14194 else 14195 ac_cv_sizeof_time_t=0 14196 fi 14197fi 14198 14199fi 14200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 14201$as_echo "$ac_cv_sizeof_time_t" >&6; } 14202 14203 14204 14205cat >>confdefs.h <<_ACEOF 14206#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 14207_ACEOF 14208 14209 14210 14211# add option to disable the evil rpath 14212 14213# Check whether --enable-rpath was given. 14214if test "${enable_rpath+set}" = set; then : 14215 enableval=$enable_rpath; enable_rpath=$enableval 14216else 14217 enable_rpath=yes 14218fi 14219 14220if test "x$enable_rpath" = xno; then 14221 ac_config_commands="$ac_config_commands disable-rpath" 14222 14223fi 14224 14225 14226 14227# check to see if libraries are needed for these functions. 14228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 14229$as_echo_n "checking for library containing inet_pton... " >&6; } 14230if ${ac_cv_search_inet_pton+:} false; then : 14231 $as_echo_n "(cached) " >&6 14232else 14233 ac_func_search_save_LIBS=$LIBS 14234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14235/* end confdefs.h. */ 14236 14237/* Override any GCC internal prototype to avoid an error. 14238 Use char because int might match the return type of a GCC 14239 builtin and then its argument prototype would still apply. */ 14240#ifdef __cplusplus 14241extern "C" 14242#endif 14243char inet_pton (); 14244int 14245main () 14246{ 14247return inet_pton (); 14248 ; 14249 return 0; 14250} 14251_ACEOF 14252for ac_lib in '' nsl; do 14253 if test -z "$ac_lib"; then 14254 ac_res="none required" 14255 else 14256 ac_res=-l$ac_lib 14257 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14258 fi 14259 if ac_fn_c_try_link "$LINENO"; then : 14260 ac_cv_search_inet_pton=$ac_res 14261fi 14262rm -f core conftest.err conftest.$ac_objext \ 14263 conftest$ac_exeext 14264 if ${ac_cv_search_inet_pton+:} false; then : 14265 break 14266fi 14267done 14268if ${ac_cv_search_inet_pton+:} false; then : 14269 14270else 14271 ac_cv_search_inet_pton=no 14272fi 14273rm conftest.$ac_ext 14274LIBS=$ac_func_search_save_LIBS 14275fi 14276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 14277$as_echo "$ac_cv_search_inet_pton" >&6; } 14278ac_res=$ac_cv_search_inet_pton 14279if test "$ac_res" != no; then : 14280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14281 14282fi 14283 14284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 14285$as_echo_n "checking for library containing socket... " >&6; } 14286if ${ac_cv_search_socket+:} false; then : 14287 $as_echo_n "(cached) " >&6 14288else 14289 ac_func_search_save_LIBS=$LIBS 14290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14291/* end confdefs.h. */ 14292 14293/* Override any GCC internal prototype to avoid an error. 14294 Use char because int might match the return type of a GCC 14295 builtin and then its argument prototype would still apply. */ 14296#ifdef __cplusplus 14297extern "C" 14298#endif 14299char socket (); 14300int 14301main () 14302{ 14303return socket (); 14304 ; 14305 return 0; 14306} 14307_ACEOF 14308for ac_lib in '' socket; do 14309 if test -z "$ac_lib"; then 14310 ac_res="none required" 14311 else 14312 ac_res=-l$ac_lib 14313 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14314 fi 14315 if ac_fn_c_try_link "$LINENO"; then : 14316 ac_cv_search_socket=$ac_res 14317fi 14318rm -f core conftest.err conftest.$ac_objext \ 14319 conftest$ac_exeext 14320 if ${ac_cv_search_socket+:} false; then : 14321 break 14322fi 14323done 14324if ${ac_cv_search_socket+:} false; then : 14325 14326else 14327 ac_cv_search_socket=no 14328fi 14329rm conftest.$ac_ext 14330LIBS=$ac_func_search_save_LIBS 14331fi 14332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 14333$as_echo "$ac_cv_search_socket" >&6; } 14334ac_res=$ac_cv_search_socket 14335if test "$ac_res" != no; then : 14336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14337 14338fi 14339 14340 14341# check wether strptime also works 14342 14343# check some functions of the OS before linking libs (while still runnable). 14344for ac_header in unistd.h 14345do : 14346 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 14347if test "x$ac_cv_header_unistd_h" = xyes; then : 14348 cat >>confdefs.h <<_ACEOF 14349#define HAVE_UNISTD_H 1 14350_ACEOF 14351 14352fi 14353 14354done 14355 14356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 14357$as_echo_n "checking for working chown... " >&6; } 14358if ${ac_cv_func_chown_works+:} false; then : 14359 $as_echo_n "(cached) " >&6 14360else 14361 if test "$cross_compiling" = yes; then : 14362 ac_cv_func_chown_works=no 14363else 14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14365/* end confdefs.h. */ 14366$ac_includes_default 14367#include <fcntl.h> 14368 14369int 14370main () 14371{ 14372 char *f = "conftest.chown"; 14373 struct stat before, after; 14374 14375 if (creat (f, 0600) < 0) 14376 return 1; 14377 if (stat (f, &before) < 0) 14378 return 1; 14379 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 14380 return 1; 14381 if (stat (f, &after) < 0) 14382 return 1; 14383 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 14384 14385 ; 14386 return 0; 14387} 14388_ACEOF 14389if ac_fn_c_try_run "$LINENO"; then : 14390 ac_cv_func_chown_works=yes 14391else 14392 ac_cv_func_chown_works=no 14393fi 14394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14395 conftest.$ac_objext conftest.beam conftest.$ac_ext 14396fi 14397 14398rm -f conftest.chown 14399 14400fi 14401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 14402$as_echo "$ac_cv_func_chown_works" >&6; } 14403if test $ac_cv_func_chown_works = yes; then 14404 14405$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 14406 14407fi 14408 14409for ac_header in vfork.h 14410do : 14411 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 14412if test "x$ac_cv_header_vfork_h" = xyes; then : 14413 cat >>confdefs.h <<_ACEOF 14414#define HAVE_VFORK_H 1 14415_ACEOF 14416 14417fi 14418 14419done 14420 14421for ac_func in fork vfork 14422do : 14423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14424ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14425if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14426 cat >>confdefs.h <<_ACEOF 14427#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14428_ACEOF 14429 14430fi 14431done 14432 14433if test "x$ac_cv_func_fork" = xyes; then 14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14435$as_echo_n "checking for working fork... " >&6; } 14436if ${ac_cv_func_fork_works+:} false; then : 14437 $as_echo_n "(cached) " >&6 14438else 14439 if test "$cross_compiling" = yes; then : 14440 ac_cv_func_fork_works=cross 14441else 14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14443/* end confdefs.h. */ 14444$ac_includes_default 14445int 14446main () 14447{ 14448 14449 /* By Ruediger Kuhlmann. */ 14450 return fork () < 0; 14451 14452 ; 14453 return 0; 14454} 14455_ACEOF 14456if ac_fn_c_try_run "$LINENO"; then : 14457 ac_cv_func_fork_works=yes 14458else 14459 ac_cv_func_fork_works=no 14460fi 14461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14462 conftest.$ac_objext conftest.beam conftest.$ac_ext 14463fi 14464 14465fi 14466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14467$as_echo "$ac_cv_func_fork_works" >&6; } 14468 14469else 14470 ac_cv_func_fork_works=$ac_cv_func_fork 14471fi 14472if test "x$ac_cv_func_fork_works" = xcross; then 14473 case $host in 14474 *-*-amigaos* | *-*-msdosdjgpp*) 14475 # Override, as these systems have only a dummy fork() stub 14476 ac_cv_func_fork_works=no 14477 ;; 14478 *) 14479 ac_cv_func_fork_works=yes 14480 ;; 14481 esac 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14483$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14484fi 14485ac_cv_func_vfork_works=$ac_cv_func_vfork 14486if test "x$ac_cv_func_vfork" = xyes; then 14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14488$as_echo_n "checking for working vfork... " >&6; } 14489if ${ac_cv_func_vfork_works+:} false; then : 14490 $as_echo_n "(cached) " >&6 14491else 14492 if test "$cross_compiling" = yes; then : 14493 ac_cv_func_vfork_works=cross 14494else 14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14496/* end confdefs.h. */ 14497/* Thanks to Paul Eggert for this test. */ 14498$ac_includes_default 14499#include <sys/wait.h> 14500#ifdef HAVE_VFORK_H 14501# include <vfork.h> 14502#endif 14503/* On some sparc systems, changes by the child to local and incoming 14504 argument registers are propagated back to the parent. The compiler 14505 is told about this with #include <vfork.h>, but some compilers 14506 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14507 static variable whose address is put into a register that is 14508 clobbered by the vfork. */ 14509static void 14510#ifdef __cplusplus 14511sparc_address_test (int arg) 14512# else 14513sparc_address_test (arg) int arg; 14514#endif 14515{ 14516 static pid_t child; 14517 if (!child) { 14518 child = vfork (); 14519 if (child < 0) { 14520 perror ("vfork"); 14521 _exit(2); 14522 } 14523 if (!child) { 14524 arg = getpid(); 14525 write(-1, "", 0); 14526 _exit (arg); 14527 } 14528 } 14529} 14530 14531int 14532main () 14533{ 14534 pid_t parent = getpid (); 14535 pid_t child; 14536 14537 sparc_address_test (0); 14538 14539 child = vfork (); 14540 14541 if (child == 0) { 14542 /* Here is another test for sparc vfork register problems. This 14543 test uses lots of local variables, at least as many local 14544 variables as main has allocated so far including compiler 14545 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14546 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14547 reuse the register of parent for one of the local variables, 14548 since it will think that parent can't possibly be used any more 14549 in this routine. Assigning to the local variable will thus 14550 munge parent in the parent process. */ 14551 pid_t 14552 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14553 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14554 /* Convince the compiler that p..p7 are live; otherwise, it might 14555 use the same hardware register for all 8 local variables. */ 14556 if (p != p1 || p != p2 || p != p3 || p != p4 14557 || p != p5 || p != p6 || p != p7) 14558 _exit(1); 14559 14560 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14561 from child file descriptors. If the child closes a descriptor 14562 before it execs or exits, this munges the parent's descriptor 14563 as well. Test for this by closing stdout in the child. */ 14564 _exit(close(fileno(stdout)) != 0); 14565 } else { 14566 int status; 14567 struct stat st; 14568 14569 while (wait(&status) != child) 14570 ; 14571 return ( 14572 /* Was there some problem with vforking? */ 14573 child < 0 14574 14575 /* Did the child fail? (This shouldn't happen.) */ 14576 || status 14577 14578 /* Did the vfork/compiler bug occur? */ 14579 || parent != getpid() 14580 14581 /* Did the file descriptor bug occur? */ 14582 || fstat(fileno(stdout), &st) != 0 14583 ); 14584 } 14585} 14586_ACEOF 14587if ac_fn_c_try_run "$LINENO"; then : 14588 ac_cv_func_vfork_works=yes 14589else 14590 ac_cv_func_vfork_works=no 14591fi 14592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14593 conftest.$ac_objext conftest.beam conftest.$ac_ext 14594fi 14595 14596fi 14597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14598$as_echo "$ac_cv_func_vfork_works" >&6; } 14599 14600fi; 14601if test "x$ac_cv_func_fork_works" = xcross; then 14602 ac_cv_func_vfork_works=$ac_cv_func_vfork 14603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14604$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14605fi 14606 14607if test "x$ac_cv_func_vfork_works" = xyes; then 14608 14609$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 14610 14611else 14612 14613$as_echo "#define vfork fork" >>confdefs.h 14614 14615fi 14616if test "x$ac_cv_func_fork_works" = xyes; then 14617 14618$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 14619 14620fi 14621 14622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 14623$as_echo_n "checking return type of signal handlers... " >&6; } 14624if ${ac_cv_type_signal+:} false; then : 14625 $as_echo_n "(cached) " >&6 14626else 14627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14628/* end confdefs.h. */ 14629#include <sys/types.h> 14630#include <signal.h> 14631 14632int 14633main () 14634{ 14635return *(signal (0, 0)) (0) == 1; 14636 ; 14637 return 0; 14638} 14639_ACEOF 14640if ac_fn_c_try_compile "$LINENO"; then : 14641 ac_cv_type_signal=int 14642else 14643 ac_cv_type_signal=void 14644fi 14645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14646fi 14647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 14648$as_echo "$ac_cv_type_signal" >&6; } 14649 14650cat >>confdefs.h <<_ACEOF 14651#define RETSIGTYPE $ac_cv_type_signal 14652_ACEOF 14653 14654 14655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 14656$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 14657if ${ac_cv_sys_largefile_source+:} false; then : 14658 $as_echo_n "(cached) " >&6 14659else 14660 while :; do 14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14662/* end confdefs.h. */ 14663#include <sys/types.h> /* for off_t */ 14664 #include <stdio.h> 14665int 14666main () 14667{ 14668int (*fp) (FILE *, off_t, int) = fseeko; 14669 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14670 ; 14671 return 0; 14672} 14673_ACEOF 14674if ac_fn_c_try_link "$LINENO"; then : 14675 ac_cv_sys_largefile_source=no; break 14676fi 14677rm -f core conftest.err conftest.$ac_objext \ 14678 conftest$ac_exeext conftest.$ac_ext 14679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14680/* end confdefs.h. */ 14681#define _LARGEFILE_SOURCE 1 14682#include <sys/types.h> /* for off_t */ 14683 #include <stdio.h> 14684int 14685main () 14686{ 14687int (*fp) (FILE *, off_t, int) = fseeko; 14688 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14689 ; 14690 return 0; 14691} 14692_ACEOF 14693if ac_fn_c_try_link "$LINENO"; then : 14694 ac_cv_sys_largefile_source=1; break 14695fi 14696rm -f core conftest.err conftest.$ac_objext \ 14697 conftest$ac_exeext conftest.$ac_ext 14698 ac_cv_sys_largefile_source=unknown 14699 break 14700done 14701fi 14702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 14703$as_echo "$ac_cv_sys_largefile_source" >&6; } 14704case $ac_cv_sys_largefile_source in #( 14705 no | unknown) ;; 14706 *) 14707cat >>confdefs.h <<_ACEOF 14708#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 14709_ACEOF 14710;; 14711esac 14712rm -rf conftest* 14713 14714# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 14715# in glibc 2.1.3, but that breaks too many other things. 14716# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 14717if test $ac_cv_sys_largefile_source != unknown; then 14718 14719$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 14720 14721fi 14722 14723 14724# Check whether --enable-largefile was given. 14725if test "${enable_largefile+set}" = set; then : 14726 enableval=$enable_largefile; 14727fi 14728 14729if test "$enable_largefile" != no; then 14730 14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14732$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 14733if ${ac_cv_sys_largefile_CC+:} false; then : 14734 $as_echo_n "(cached) " >&6 14735else 14736 ac_cv_sys_largefile_CC=no 14737 if test "$GCC" != yes; then 14738 ac_save_CC=$CC 14739 while :; do 14740 # IRIX 6.2 and later do not support large files by default, 14741 # so use the C compiler's -n32 option if that helps. 14742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14743/* end confdefs.h. */ 14744#include <sys/types.h> 14745 /* Check that off_t can represent 2**63 - 1 correctly. 14746 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14747 since some C++ compilers masquerading as C compilers 14748 incorrectly reject 9223372036854775807. */ 14749#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14750 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14751 && LARGE_OFF_T % 2147483647 == 1) 14752 ? 1 : -1]; 14753int 14754main () 14755{ 14756 14757 ; 14758 return 0; 14759} 14760_ACEOF 14761 if ac_fn_c_try_compile "$LINENO"; then : 14762 break 14763fi 14764rm -f core conftest.err conftest.$ac_objext 14765 CC="$CC -n32" 14766 if ac_fn_c_try_compile "$LINENO"; then : 14767 ac_cv_sys_largefile_CC=' -n32'; break 14768fi 14769rm -f core conftest.err conftest.$ac_objext 14770 break 14771 done 14772 CC=$ac_save_CC 14773 rm -f conftest.$ac_ext 14774 fi 14775fi 14776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14777$as_echo "$ac_cv_sys_largefile_CC" >&6; } 14778 if test "$ac_cv_sys_largefile_CC" != no; then 14779 CC=$CC$ac_cv_sys_largefile_CC 14780 fi 14781 14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14783$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14784if ${ac_cv_sys_file_offset_bits+:} false; then : 14785 $as_echo_n "(cached) " >&6 14786else 14787 while :; do 14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14789/* end confdefs.h. */ 14790#include <sys/types.h> 14791 /* Check that off_t can represent 2**63 - 1 correctly. 14792 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14793 since some C++ compilers masquerading as C compilers 14794 incorrectly reject 9223372036854775807. */ 14795#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14797 && LARGE_OFF_T % 2147483647 == 1) 14798 ? 1 : -1]; 14799int 14800main () 14801{ 14802 14803 ; 14804 return 0; 14805} 14806_ACEOF 14807if ac_fn_c_try_compile "$LINENO"; then : 14808 ac_cv_sys_file_offset_bits=no; break 14809fi 14810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14812/* end confdefs.h. */ 14813#define _FILE_OFFSET_BITS 64 14814#include <sys/types.h> 14815 /* Check that off_t can represent 2**63 - 1 correctly. 14816 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14817 since some C++ compilers masquerading as C compilers 14818 incorrectly reject 9223372036854775807. */ 14819#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14821 && LARGE_OFF_T % 2147483647 == 1) 14822 ? 1 : -1]; 14823int 14824main () 14825{ 14826 14827 ; 14828 return 0; 14829} 14830_ACEOF 14831if ac_fn_c_try_compile "$LINENO"; then : 14832 ac_cv_sys_file_offset_bits=64; break 14833fi 14834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14835 ac_cv_sys_file_offset_bits=unknown 14836 break 14837done 14838fi 14839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14840$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14841case $ac_cv_sys_file_offset_bits in #( 14842 no | unknown) ;; 14843 *) 14844cat >>confdefs.h <<_ACEOF 14845#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14846_ACEOF 14847;; 14848esac 14849rm -rf conftest* 14850 if test $ac_cv_sys_file_offset_bits = unknown; then 14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14852$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14853if ${ac_cv_sys_large_files+:} false; then : 14854 $as_echo_n "(cached) " >&6 14855else 14856 while :; do 14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14858/* end confdefs.h. */ 14859#include <sys/types.h> 14860 /* Check that off_t can represent 2**63 - 1 correctly. 14861 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14862 since some C++ compilers masquerading as C compilers 14863 incorrectly reject 9223372036854775807. */ 14864#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14866 && LARGE_OFF_T % 2147483647 == 1) 14867 ? 1 : -1]; 14868int 14869main () 14870{ 14871 14872 ; 14873 return 0; 14874} 14875_ACEOF 14876if ac_fn_c_try_compile "$LINENO"; then : 14877 ac_cv_sys_large_files=no; break 14878fi 14879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14881/* end confdefs.h. */ 14882#define _LARGE_FILES 1 14883#include <sys/types.h> 14884 /* Check that off_t can represent 2**63 - 1 correctly. 14885 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14886 since some C++ compilers masquerading as C compilers 14887 incorrectly reject 9223372036854775807. */ 14888#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14890 && LARGE_OFF_T % 2147483647 == 1) 14891 ? 1 : -1]; 14892int 14893main () 14894{ 14895 14896 ; 14897 return 0; 14898} 14899_ACEOF 14900if ac_fn_c_try_compile "$LINENO"; then : 14901 ac_cv_sys_large_files=1; break 14902fi 14903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14904 ac_cv_sys_large_files=unknown 14905 break 14906done 14907fi 14908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14909$as_echo "$ac_cv_sys_large_files" >&6; } 14910case $ac_cv_sys_large_files in #( 14911 no | unknown) ;; 14912 *) 14913cat >>confdefs.h <<_ACEOF 14914#define _LARGE_FILES $ac_cv_sys_large_files 14915_ACEOF 14916;; 14917esac 14918rm -rf conftest* 14919 fi 14920 14921 14922fi 14923 14924 14925 14926 14927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5 14928$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; } 14929cache=_D_LARGEFILE_SOURCE_1 14930if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 14931 $as_echo_n "(cached) " >&6 14932else 14933 14934echo ' 14935#include <stdio.h> 14936int test() { 14937 int a = fseeko(stdin, 0, 0); 14938 return a; 14939} 14940' > conftest.c 14941echo 'void f(){}' >>conftest.c 14942if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14943eval "cv_prog_cc_flag_needed_$cache=no" 14944else 14945 14946if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then 14947eval "cv_prog_cc_flag_needed_$cache=yes" 14948else 14949eval "cv_prog_cc_flag_needed_$cache=fail" 14950#echo 'Test with flag fails too!' 14951#cat conftest.c 14952#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 14953#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 14954#exit 1 14955fi 14956 14957fi 14958rm -f conftest conftest.c conftest.o 14959 14960fi 14961 14962if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14964$as_echo "yes" >&6; } 14965: 14966CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1" 14967else 14968if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14970$as_echo "no" >&6; } 14971#echo 'Test with flag is no!' 14972#cat conftest.c 14973#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 14974#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 14975#exit 1 14976: 14977 14978else 14979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14980$as_echo "failed" >&6; } 14981: 14982 14983fi 14984fi 14985 14986 14987 14988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 14989$as_echo_n "checking if nonblocking sockets work... " >&6; } 14990if echo $target | grep mingw32 >/dev/null; then 14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 14992$as_echo "no (windows)" >&6; } 14993 14994$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 14995 14996else 14997if test "$cross_compiling" = yes; then : 14998 14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 15000$as_echo "crosscompile(yes)" >&6; } 15001 15002else 15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15004/* end confdefs.h. */ 15005 15006 15007#include <stdio.h> 15008#include <string.h> 15009#include <stdlib.h> 15010#include <fcntl.h> 15011#include <errno.h> 15012#ifdef HAVE_SYS_TYPES_H 15013#include <sys/types.h> 15014#endif 15015#ifdef HAVE_SYS_SOCKET_H 15016#include <sys/socket.h> 15017#endif 15018#ifdef HAVE_NETINET_IN_H 15019#include <netinet/in.h> 15020#endif 15021#ifdef HAVE_ARPA_INET_H 15022#include <arpa/inet.h> 15023#endif 15024#ifdef HAVE_UNISTD_H 15025#include <unistd.h> 15026#endif 15027#ifdef HAVE_TIME_H 15028#include <time.h> 15029#endif 15030 15031int main(void) 15032{ 15033 int port; 15034 int sfd, cfd; 15035 int num = 10; 15036 int i, p; 15037 struct sockaddr_in a; 15038 /* test if select and nonblocking reads work well together */ 15039 /* open port. 15040 fork child to send 10 messages. 15041 select to read. 15042 then try to nonblocking read the 10 messages 15043 then, nonblocking read must give EAGAIN 15044 */ 15045 15046 port = 12345 + (time(0)%32); 15047 sfd = socket(PF_INET, SOCK_DGRAM, 0); 15048 if(sfd == -1) { 15049 perror("socket"); 15050 return 1; 15051 } 15052 memset(&a, 0, sizeof(a)); 15053 a.sin_family = AF_INET; 15054 a.sin_port = htons(port); 15055 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 15056 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 15057 perror("bind"); 15058 return 1; 15059 } 15060 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 15061 perror("fcntl"); 15062 return 1; 15063 } 15064 15065 cfd = socket(PF_INET, SOCK_DGRAM, 0); 15066 if(cfd == -1) { 15067 perror("client socket"); 15068 return 1; 15069 } 15070 a.sin_port = 0; 15071 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 15072 perror("client bind"); 15073 return 1; 15074 } 15075 a.sin_port = htons(port); 15076 15077 /* no handler, causes exit in 10 seconds */ 15078 alarm(10); 15079 15080 /* send and receive on the socket */ 15081 if((p=fork()) == 0) { 15082 for(i=0; i<num; i++) { 15083 if(sendto(cfd, &i, sizeof(i), 0, 15084 (struct sockaddr*)&a, sizeof(a)) < 0) { 15085 perror("sendto"); 15086 return 1; 15087 } 15088 } 15089 } else { 15090 /* parent */ 15091 fd_set rset; 15092 int x; 15093 if(p == -1) { 15094 perror("fork"); 15095 return 1; 15096 } 15097 FD_ZERO(&rset); 15098 FD_SET(sfd, &rset); 15099 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 15100 perror("select"); 15101 return 1; 15102 } 15103 i = 0; 15104 while(i < num) { 15105 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 15106 if(errno == EAGAIN) 15107 continue; 15108 perror("recv"); 15109 return 1; 15110 } 15111 i++; 15112 } 15113 /* now we want to get EAGAIN: nonblocking goodness */ 15114 errno = 0; 15115 recv(sfd, &x, sizeof(x), 0); 15116 if(errno != EAGAIN) { 15117 perror("trying to recv again"); 15118 return 1; 15119 } 15120 /* EAGAIN encountered */ 15121 } 15122 15123 close(sfd); 15124 close(cfd); 15125 return 0; 15126} 15127 15128_ACEOF 15129if ac_fn_c_try_run "$LINENO"; then : 15130 15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15132$as_echo "yes" >&6; } 15133 15134else 15135 15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15137$as_echo "no" >&6; } 15138 15139$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 15140 15141 15142fi 15143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15144 conftest.$ac_objext conftest.beam conftest.$ac_ext 15145fi 15146 15147fi 15148 15149 15150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 15151$as_echo_n "checking whether mkdir has one arg... " >&6; } 15152cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15153/* end confdefs.h. */ 15154 15155#include <stdio.h> 15156#include <unistd.h> 15157#ifdef HAVE_WINSOCK2_H 15158#include <winsock2.h> 15159#endif 15160#ifdef HAVE_SYS_STAT_H 15161#include <sys/stat.h> 15162#endif 15163 15164int 15165main () 15166{ 15167 15168 (void)mkdir("directory"); 15169 15170 ; 15171 return 0; 15172} 15173_ACEOF 15174if ac_fn_c_try_compile "$LINENO"; then : 15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15176$as_echo "yes" >&6; } 15177 15178$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 15179 15180 15181else 15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15183$as_echo "no" >&6; } 15184 15185fi 15186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15187 15188for ac_func in strptime 15189do : 15190 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 15191if test "x$ac_cv_func_strptime" = xyes; then : 15192 cat >>confdefs.h <<_ACEOF 15193#define HAVE_STRPTIME 1 15194_ACEOF 15195 15196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 15197$as_echo_n "checking whether strptime works... " >&6; } 15198if test c${cross_compiling} = cno; then 15199if test "$cross_compiling" = yes; then : 15200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15202as_fn_error $? "cannot run test program while cross compiling 15203See \`config.log' for more details" "$LINENO" 5; } 15204else 15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15206/* end confdefs.h. */ 15207 15208#define _XOPEN_SOURCE 600 15209#include <time.h> 15210int main(void) { struct tm tm; char *res; 15211res = 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); 15212if (!res) return 2; 15213res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 15214if (!res) return 1; return 0; } 15215 15216_ACEOF 15217if ac_fn_c_try_run "$LINENO"; then : 15218 eval "ac_cv_c_strptime_works=yes" 15219else 15220 eval "ac_cv_c_strptime_works=no" 15221fi 15222rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15223 conftest.$ac_objext conftest.beam conftest.$ac_ext 15224fi 15225 15226else 15227eval "ac_cv_c_strptime_works=maybe" 15228fi 15229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 15230$as_echo "$ac_cv_c_strptime_works" >&6; } 15231if test $ac_cv_c_strptime_works = no; then 15232case " $LIBOBJS " in 15233 *" strptime.$ac_objext "* ) ;; 15234 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 15235 ;; 15236esac 15237 15238else 15239 15240cat >>confdefs.h <<_ACEOF 15241#define STRPTIME_WORKS 1 15242_ACEOF 15243 15244fi 15245 15246else 15247 case " $LIBOBJS " in 15248 *" strptime.$ac_objext "* ) ;; 15249 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 15250 ;; 15251esac 15252 15253fi 15254done 15255 15256 15257# set memory allocation checking if requested 15258# Check whether --enable-alloc-checks was given. 15259if test "${enable_alloc_checks+set}" = set; then : 15260 enableval=$enable_alloc_checks; 15261fi 15262 15263# Check whether --enable-alloc-lite was given. 15264if test "${enable_alloc_lite+set}" = set; then : 15265 enableval=$enable_alloc_lite; 15266fi 15267 15268# Check whether --enable-alloc-nonregional was given. 15269if test "${enable_alloc_nonregional+set}" = set; then : 15270 enableval=$enable_alloc_nonregional; 15271fi 15272 15273if test x_$enable_alloc_nonregional = x_yes; then 15274 15275$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h 15276 15277fi 15278if test x_$enable_alloc_checks = x_yes; then 15279 15280$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h 15281 15282else 15283 if test x_$enable_alloc_lite = x_yes; then 15284 15285$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h 15286 15287 else 15288 15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 15290$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 15291 if test "$cross_compiling" = yes; then : 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5 15293$as_echo "no (crosscompile)" >&6; } 15294 case " $LIBOBJS " in 15295 *" malloc.$ac_objext "* ) ;; 15296 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 15297 ;; 15298esac 15299 15300 15301cat >>confdefs.h <<_ACEOF 15302#define malloc rpl_malloc_unbound 15303_ACEOF 15304 15305else 15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15307/* end confdefs.h. */ 15308#if defined STDC_HEADERS || defined HAVE_STDLIB_H 15309#include <stdlib.h> 15310#else 15311char *malloc (); 15312#endif 15313 15314int 15315main () 15316{ 15317 if(malloc(0) != 0) return 1; 15318 ; 15319 return 0; 15320} 15321 15322_ACEOF 15323if ac_fn_c_try_run "$LINENO"; then : 15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15325$as_echo "no" >&6; } 15326 case " $LIBOBJS " in 15327 *" malloc.$ac_objext "* ) ;; 15328 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 15329 ;; 15330esac 15331 15332 15333cat >>confdefs.h <<_ACEOF 15334#define malloc rpl_malloc_unbound 15335_ACEOF 15336 15337else 15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15339$as_echo "yes" >&6; } 15340 15341$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 15342 15343fi 15344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15345 conftest.$ac_objext conftest.beam conftest.$ac_ext 15346fi 15347 15348 15349 fi 15350fi 15351 15352# check windows threads (we use them, not pthreads, on windows). 15353if test "$on_mingw" = "yes"; then 15354# check windows threads 15355 for ac_header in windows.h 15356do : 15357 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 15358" 15359if test "x$ac_cv_header_windows_h" = xyes; then : 15360 cat >>confdefs.h <<_ACEOF 15361#define HAVE_WINDOWS_H 1 15362_ACEOF 15363 15364fi 15365 15366done 15367 15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5 15369$as_echo_n "checking for CreateThread... " >&6; } 15370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15371/* end confdefs.h. */ 15372 15373#ifdef HAVE_WINDOWS_H 15374#include <windows.h> 15375#endif 15376 15377int 15378main () 15379{ 15380 15381 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 15382 15383 ; 15384 return 0; 15385} 15386_ACEOF 15387if ac_fn_c_try_compile "$LINENO"; then : 15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15389$as_echo "yes" >&6; } 15390 15391$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h 15392 15393 15394else 15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15396$as_echo "no" >&6; } 15397 15398fi 15399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15400 15401else 15402# not on mingw, check thread libraries. 15403 15404# check for thread library. 15405# check this first, so that the pthread lib does not get linked in via 15406# libssl or libpython, and thus distorts the tests, and we end up using 15407# the non-threadsafe C libraries. 15408 15409# Check whether --with-pthreads was given. 15410if test "${with_pthreads+set}" = set; then : 15411 withval=$with_pthreads; 15412else 15413 withval="yes" 15414fi 15415 15416ub_have_pthreads=no 15417if test x_$withval != x_no; then 15418 15419 15420ac_ext=c 15421ac_cpp='$CPP $CPPFLAGS' 15422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15424ac_compiler_gnu=$ac_cv_c_compiler_gnu 15425 15426ax_pthread_ok=no 15427 15428# We used to check for pthread.h first, but this fails if pthread.h 15429# requires special compiler flags (e.g. on True64 or Sequent). 15430# It gets checked for in the link test anyway. 15431 15432# First of all, check if the user has set any of the PTHREAD_LIBS, 15433# etcetera environment variables, and if threads linking works using 15434# them: 15435if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 15436 save_CFLAGS="$CFLAGS" 15437 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15438 save_LIBS="$LIBS" 15439 LIBS="$PTHREAD_LIBS $LIBS" 15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 15441$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15443/* end confdefs.h. */ 15444 15445/* Override any GCC internal prototype to avoid an error. 15446 Use char because int might match the return type of a GCC 15447 builtin and then its argument prototype would still apply. */ 15448#ifdef __cplusplus 15449extern "C" 15450#endif 15451char pthread_join (); 15452int 15453main () 15454{ 15455return pthread_join (); 15456 ; 15457 return 0; 15458} 15459_ACEOF 15460if ac_fn_c_try_link "$LINENO"; then : 15461 ax_pthread_ok=yes 15462fi 15463rm -f core conftest.err conftest.$ac_objext \ 15464 conftest$ac_exeext conftest.$ac_ext 15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15466$as_echo "$ax_pthread_ok" >&6; } 15467 if test x"$ax_pthread_ok" = xno; then 15468 PTHREAD_LIBS="" 15469 PTHREAD_CFLAGS="" 15470 fi 15471 LIBS="$save_LIBS" 15472 CFLAGS="$save_CFLAGS" 15473fi 15474 15475# We must check for the threads library under a number of different 15476# names; the ordering is very important because some systems 15477# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15478# libraries is broken (non-POSIX). 15479 15480# Create a list of thread flags to try. Items starting with a "-" are 15481# C compiler flags, and other items are library names, except for "none" 15482# which indicates that we try without any flags at all, and "pthread-config" 15483# which is a program returning the flags for the Pth emulation library. 15484 15485ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15486 15487# The ordering *is* (sometimes) important. Some notes on the 15488# individual items follow: 15489 15490# pthreads: AIX (must check this before -lpthread) 15491# none: in case threads are in libc; should be tried before -Kthread and 15492# other compiler flags to prevent continual compiler warnings 15493# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15494# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15495# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15496# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15497# -pthreads: Solaris/gcc 15498# -mthreads: Mingw32/gcc, Lynx/gcc 15499# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15500# doesn't hurt to check since this sometimes defines pthreads too; 15501# also defines -D_REENTRANT) 15502# ... -mt is also the pthreads flag for HP/aCC 15503# pthread: Linux, etcetera 15504# --thread-safe: KAI C++ 15505# pthread-config: use pthread-config program (for GNU Pth library) 15506 15507case ${host_os} in 15508 solaris*) 15509 15510 # On Solaris (at least, for some versions), libc contains stubbed 15511 # (non-functional) versions of the pthreads routines, so link-based 15512 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15513 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15514 # a function called by this macro, so we could check for that, but 15515 # who knows whether they'll stub that too in a future libc.) So, 15516 # we'll just look for -pthreads and -lpthread first: 15517 15518 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 15519 ;; 15520 15521 darwin*) 15522 ax_pthread_flags="-pthread $ax_pthread_flags" 15523 ;; 15524esac 15525 15526if test x"$ax_pthread_ok" = xno; then 15527for flag in $ax_pthread_flags; do 15528 15529 case $flag in 15530 none) 15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15532$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15533 ;; 15534 15535 -*) 15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15537$as_echo_n "checking whether pthreads work with $flag... " >&6; } 15538 PTHREAD_CFLAGS="$flag" 15539 ;; 15540 15541 pthread-config) 15542 # Extract the first word of "pthread-config", so it can be a program name with args. 15543set dummy pthread-config; ac_word=$2 15544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15545$as_echo_n "checking for $ac_word... " >&6; } 15546if ${ac_cv_prog_ax_pthread_config+:} false; then : 15547 $as_echo_n "(cached) " >&6 15548else 15549 if test -n "$ax_pthread_config"; then 15550 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 15551else 15552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15553for as_dir in $PATH 15554do 15555 IFS=$as_save_IFS 15556 test -z "$as_dir" && as_dir=. 15557 for ac_exec_ext in '' $ac_executable_extensions; do 15558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15559 ac_cv_prog_ax_pthread_config="yes" 15560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15561 break 2 15562 fi 15563done 15564 done 15565IFS=$as_save_IFS 15566 15567 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 15568fi 15569fi 15570ax_pthread_config=$ac_cv_prog_ax_pthread_config 15571if test -n "$ax_pthread_config"; then 15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 15573$as_echo "$ax_pthread_config" >&6; } 15574else 15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15576$as_echo "no" >&6; } 15577fi 15578 15579 15580 if test x"$ax_pthread_config" = xno; then continue; fi 15581 PTHREAD_CFLAGS="`pthread-config --cflags`" 15582 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15583 ;; 15584 15585 *) 15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15587$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15588 PTHREAD_LIBS="-l$flag" 15589 ;; 15590 esac 15591 15592 save_LIBS="$LIBS" 15593 save_CFLAGS="$CFLAGS" 15594 LIBS="$PTHREAD_LIBS $LIBS" 15595 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15596 15597 # Check for various functions. We must include pthread.h, 15598 # since some functions may be macros. (On the Sequent, we 15599 # need a special flag -Kthread to make this header compile.) 15600 # We check for pthread_join because it is in -lpthread on IRIX 15601 # while pthread_create is in libc. We check for pthread_attr_init 15602 # due to DEC craziness with -lpthreads. We check for 15603 # pthread_cleanup_push because it is one of the few pthread 15604 # functions on Solaris that doesn't have a non-functional libc stub. 15605 # We try pthread_create on general principles. 15606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15607/* end confdefs.h. */ 15608#include <pthread.h> 15609 static void routine(void *a) { *((int*)a) = 0; } 15610 static void *start_routine(void *a) { return a; } 15611int 15612main () 15613{ 15614pthread_t th; pthread_attr_t attr; 15615 pthread_create(&th, 0, start_routine, 0); 15616 pthread_join(th, 0); 15617 pthread_attr_init(&attr); 15618 pthread_cleanup_push(routine, 0); 15619 pthread_cleanup_pop(0) /* ; */ 15620 ; 15621 return 0; 15622} 15623_ACEOF 15624if ac_fn_c_try_link "$LINENO"; then : 15625 ax_pthread_ok=yes 15626fi 15627rm -f core conftest.err conftest.$ac_objext \ 15628 conftest$ac_exeext conftest.$ac_ext 15629 15630 LIBS="$save_LIBS" 15631 CFLAGS="$save_CFLAGS" 15632 15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15634$as_echo "$ax_pthread_ok" >&6; } 15635 if test "x$ax_pthread_ok" = xyes; then 15636 break; 15637 fi 15638 15639 PTHREAD_LIBS="" 15640 PTHREAD_CFLAGS="" 15641done 15642fi 15643 15644# Various other checks: 15645if test "x$ax_pthread_ok" = xyes; then 15646 save_LIBS="$LIBS" 15647 LIBS="$PTHREAD_LIBS $LIBS" 15648 save_CFLAGS="$CFLAGS" 15649 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15650 15651 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15653$as_echo_n "checking for joinable pthread attribute... " >&6; } 15654 attr_name=unknown 15655 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15657/* end confdefs.h. */ 15658#include <pthread.h> 15659int 15660main () 15661{ 15662int attr = $attr; return attr /* ; */ 15663 ; 15664 return 0; 15665} 15666_ACEOF 15667if ac_fn_c_try_link "$LINENO"; then : 15668 attr_name=$attr; break 15669fi 15670rm -f core conftest.err conftest.$ac_objext \ 15671 conftest$ac_exeext conftest.$ac_ext 15672 done 15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15674$as_echo "$attr_name" >&6; } 15675 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15676 15677cat >>confdefs.h <<_ACEOF 15678#define PTHREAD_CREATE_JOINABLE $attr_name 15679_ACEOF 15680 15681 fi 15682 15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15684$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15685 flag=no 15686 case ${host_os} in 15687 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 15688 osf* | hpux*) flag="-D_REENTRANT";; 15689 solaris*) 15690 if test "$GCC" = "yes"; then 15691 flag="-D_REENTRANT" 15692 else 15693 flag="-mt -D_REENTRANT" 15694 fi 15695 ;; 15696 esac 15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15698$as_echo "${flag}" >&6; } 15699 if test "x$flag" != xno; then 15700 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15701 fi 15702 15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 15704$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 15705if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 15706 $as_echo_n "(cached) " >&6 15707else 15708 15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15710/* end confdefs.h. */ 15711 15712 #include <pthread.h> 15713int 15714main () 15715{ 15716int i = PTHREAD_PRIO_INHERIT; 15717 ; 15718 return 0; 15719} 15720_ACEOF 15721if ac_fn_c_try_link "$LINENO"; then : 15722 ax_cv_PTHREAD_PRIO_INHERIT=yes 15723else 15724 ax_cv_PTHREAD_PRIO_INHERIT=no 15725fi 15726rm -f core conftest.err conftest.$ac_objext \ 15727 conftest$ac_exeext conftest.$ac_ext 15728 15729fi 15730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 15731$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 15732 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 15733 15734$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 15735 15736fi 15737 15738 LIBS="$save_LIBS" 15739 CFLAGS="$save_CFLAGS" 15740 15741 # More AIX lossage: compile with *_r variant 15742 if test "x$GCC" != xyes; then 15743 case $host_os in 15744 aix*) 15745 case "x/$CC" in #( 15746 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 15747 #handle absolute path differently from PATH based program lookup 15748 case "x$CC" in #( 15749 x/*) : 15750 if as_fn_executable_p ${CC}_r; then : 15751 PTHREAD_CC="${CC}_r" 15752fi ;; #( 15753 *) : 15754 for ac_prog in ${CC}_r 15755do 15756 # Extract the first word of "$ac_prog", so it can be a program name with args. 15757set dummy $ac_prog; ac_word=$2 15758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15759$as_echo_n "checking for $ac_word... " >&6; } 15760if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15761 $as_echo_n "(cached) " >&6 15762else 15763 if test -n "$PTHREAD_CC"; then 15764 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15765else 15766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15767for as_dir in $PATH 15768do 15769 IFS=$as_save_IFS 15770 test -z "$as_dir" && as_dir=. 15771 for ac_exec_ext in '' $ac_executable_extensions; do 15772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15773 ac_cv_prog_PTHREAD_CC="$ac_prog" 15774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15775 break 2 15776 fi 15777done 15778 done 15779IFS=$as_save_IFS 15780 15781fi 15782fi 15783PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15784if test -n "$PTHREAD_CC"; then 15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15786$as_echo "$PTHREAD_CC" >&6; } 15787else 15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15789$as_echo "no" >&6; } 15790fi 15791 15792 15793 test -n "$PTHREAD_CC" && break 15794done 15795test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15796 ;; 15797esac ;; #( 15798 *) : 15799 ;; 15800esac 15801 ;; 15802 esac 15803 fi 15804fi 15805 15806test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15807 15808 15809 15810 15811 15812# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15813if test x"$ax_pthread_ok" = xyes; then 15814 15815 15816$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 15817 15818 LIBS="$PTHREAD_LIBS $LIBS" 15819 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15820 CC="$PTHREAD_CC" 15821 ub_have_pthreads=yes 15822 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h> 15823" 15824if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then : 15825 15826cat >>confdefs.h <<_ACEOF 15827#define HAVE_PTHREAD_SPINLOCK_T 1 15828_ACEOF 15829 15830 15831fi 15832ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 15833" 15834if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 15835 15836cat >>confdefs.h <<_ACEOF 15837#define HAVE_PTHREAD_RWLOCK_T 1 15838_ACEOF 15839 15840 15841fi 15842 15843 15844 : 15845else 15846 ax_pthread_ok=no 15847 15848fi 15849ac_ext=c 15850ac_cpp='$CPP $CPPFLAGS' 15851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15853ac_compiler_gnu=$ac_cv_c_compiler_gnu 15854 15855 15856fi 15857 15858# check solaris thread library 15859 15860# Check whether --with-solaris-threads was given. 15861if test "${with_solaris_threads+set}" = set; then : 15862 withval=$with_solaris_threads; 15863else 15864 withval="no" 15865fi 15866 15867ub_have_sol_threads=no 15868if test x_$withval != x_no; then 15869 if test x_$ub_have_pthreads != x_no; then 15870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5 15871$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;} 15872 else 15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5 15874$as_echo_n "checking for library containing thr_create... " >&6; } 15875if ${ac_cv_search_thr_create+:} false; then : 15876 $as_echo_n "(cached) " >&6 15877else 15878 ac_func_search_save_LIBS=$LIBS 15879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15880/* end confdefs.h. */ 15881 15882/* Override any GCC internal prototype to avoid an error. 15883 Use char because int might match the return type of a GCC 15884 builtin and then its argument prototype would still apply. */ 15885#ifdef __cplusplus 15886extern "C" 15887#endif 15888char thr_create (); 15889int 15890main () 15891{ 15892return thr_create (); 15893 ; 15894 return 0; 15895} 15896_ACEOF 15897for ac_lib in '' thread; do 15898 if test -z "$ac_lib"; then 15899 ac_res="none required" 15900 else 15901 ac_res=-l$ac_lib 15902 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15903 fi 15904 if ac_fn_c_try_link "$LINENO"; then : 15905 ac_cv_search_thr_create=$ac_res 15906fi 15907rm -f core conftest.err conftest.$ac_objext \ 15908 conftest$ac_exeext 15909 if ${ac_cv_search_thr_create+:} false; then : 15910 break 15911fi 15912done 15913if ${ac_cv_search_thr_create+:} false; then : 15914 15915else 15916 ac_cv_search_thr_create=no 15917fi 15918rm conftest.$ac_ext 15919LIBS=$ac_func_search_save_LIBS 15920fi 15921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5 15922$as_echo "$ac_cv_search_thr_create" >&6; } 15923ac_res=$ac_cv_search_thr_create 15924if test "$ac_res" != no; then : 15925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15926 15927 15928$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h 15929 15930 15931 15932 15933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5 15934$as_echo_n "checking whether $CC supports -mt... " >&6; } 15935cache=`echo mt | sed 'y%.=/+-%___p_%'` 15936if eval \${cv_prog_cc_flag_$cache+:} false; then : 15937 $as_echo_n "(cached) " >&6 15938else 15939 15940echo 'void f(void){}' >conftest.c 15941if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then 15942eval "cv_prog_cc_flag_$cache=yes" 15943else 15944eval "cv_prog_cc_flag_$cache=no" 15945fi 15946rm -f conftest conftest.o conftest.c 15947 15948fi 15949 15950if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 15951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15952$as_echo "yes" >&6; } 15953: 15954CFLAGS="$CFLAGS -mt" 15955else 15956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15957$as_echo "no" >&6; } 15958: 15959CFLAGS="$CFLAGS -D_REENTRANT" 15960fi 15961 15962 ub_have_sol_threads=yes 15963 15964else 15965 15966 as_fn_error $? "no solaris threads found." "$LINENO" 5 15967 15968fi 15969 15970 fi 15971fi 15972 15973fi # end of non-mingw check of thread libraries 15974 15975# Check for PyUnbound 15976 15977# Check whether --with-pyunbound was given. 15978if test "${with_pyunbound+set}" = set; then : 15979 withval=$with_pyunbound; 15980else 15981 withval="no" 15982fi 15983 15984 15985ub_test_python=no 15986ub_with_pyunbound=no 15987if test x_$withval != x_no; then 15988 ub_with_pyunbound=yes 15989 ub_test_python=yes 15990fi 15991 15992# Check for Python module 15993 15994# Check whether --with-pythonmodule was given. 15995if test "${with_pythonmodule+set}" = set; then : 15996 withval=$with_pythonmodule; 15997else 15998 withval="no" 15999fi 16000 16001 16002ub_with_pythonmod=no 16003if test x_$withval != x_no; then 16004 ub_with_pythonmod=yes 16005 ub_test_python=yes 16006fi 16007 16008# Check for Python & SWIG only on PyUnbound or PyModule 16009if test x_$ub_test_python != x_no; then 16010 16011 # Check for Python 16012 ub_have_python=no 16013 ac_save_LIBS="$LIBS" 16014 # 16015 # Allow the use of a (user set) custom python version 16016 # 16017 16018 16019 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 16020set dummy python$PYTHON_VERSION; ac_word=$2 16021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16022$as_echo_n "checking for $ac_word... " >&6; } 16023if ${ac_cv_path_PYTHON+:} false; then : 16024 $as_echo_n "(cached) " >&6 16025else 16026 case $PYTHON in 16027 [\\/]* | ?:[\\/]*) 16028 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 16029 ;; 16030 *) 16031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16032for as_dir in $PATH 16033do 16034 IFS=$as_save_IFS 16035 test -z "$as_dir" && as_dir=. 16036 for ac_exec_ext in '' $ac_executable_extensions; do 16037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16038 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 16039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16040 break 2 16041 fi 16042done 16043 done 16044IFS=$as_save_IFS 16045 16046 ;; 16047esac 16048fi 16049PYTHON=$ac_cv_path_PYTHON 16050if test -n "$PYTHON"; then 16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 16052$as_echo "$PYTHON" >&6; } 16053else 16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16055$as_echo "no" >&6; } 16056fi 16057 16058 16059 if test -z "$PYTHON"; then 16060 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 16061 PYTHON_VERSION="" 16062 fi 16063 16064 if test -z "$PYTHON_VERSION"; then 16065 PYTHON_VERSION=`$PYTHON -c "import sys; \ 16066 print(sys.version.split()[0])"` 16067 fi 16068 16069 # 16070 # Check if you have distutils, else fail 16071 # 16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 16073$as_echo_n "checking for the distutils Python package... " >&6; } 16074 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 16075 if test -z "$ac_distutils_result"; then 16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16077$as_echo "yes" >&6; } 16078 else 16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16080$as_echo "no" >&6; } 16081 as_fn_error $? "cannot import Python module \"distutils\". 16082Please check your Python installation. The error was: 16083$ac_distutils_result" "$LINENO" 5 16084 PYTHON_VERSION="" 16085 fi 16086 16087 # 16088 # Check for Python include path 16089 # 16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 16091$as_echo_n "checking for Python include path... " >&6; } 16092 if test -z "$PYTHON_CPPFLAGS"; then 16093 python_path=`$PYTHON -c "import distutils.sysconfig; \ 16094 print(distutils.sysconfig.get_python_inc());"` 16095 if test -n "${python_path}"; then 16096 python_path="-I$python_path" 16097 fi 16098 PYTHON_CPPFLAGS=$python_path 16099 fi 16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 16101$as_echo "$PYTHON_CPPFLAGS" >&6; } 16102 16103 16104 # 16105 # Check for Python library path 16106 # 16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 16108$as_echo_n "checking for Python library path... " >&6; } 16109 if test -z "$PYTHON_LDFLAGS"; then 16110 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \ 16111 print(get_config_var('BLDLIBRARY'));"` 16112 fi 16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 16114$as_echo "$PYTHON_LDFLAGS" >&6; } 16115 16116 16117 # 16118 # Check for site packages 16119 # 16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 16121$as_echo_n "checking for Python site-packages path... " >&6; } 16122 if test -z "$PYTHON_SITE_PKG"; then 16123 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 16124 print(distutils.sysconfig.get_python_lib(1,0));"` 16125 fi 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 16127$as_echo "$PYTHON_SITE_PKG" >&6; } 16128 16129 16130 # 16131 # final check to see if everything compiles alright 16132 # 16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 16134$as_echo_n "checking consistency of all components of python development environment... " >&6; } 16135 ac_ext=c 16136ac_cpp='$CPP $CPPFLAGS' 16137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16139ac_compiler_gnu=$ac_cv_c_compiler_gnu 16140 16141 # save current global flags 16142 ac_save_LIBS="$LIBS" 16143 ac_save_CPPFLAGS="$CPPFLAGS" 16144 16145 LIBS="$LIBS $PYTHON_LDFLAGS" 16146 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 16147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16148/* end confdefs.h. */ 16149 16150 #include <Python.h> 16151 16152int 16153main () 16154{ 16155 16156 Py_Initialize(); 16157 16158 ; 16159 return 0; 16160} 16161_ACEOF 16162if ac_fn_c_try_link "$LINENO"; then : 16163 pythonexists=yes 16164else 16165 pythonexists=no 16166fi 16167rm -f core conftest.err conftest.$ac_objext \ 16168 conftest$ac_exeext conftest.$ac_ext 16169 16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 16171$as_echo "$pythonexists" >&6; } 16172 16173 if test ! "$pythonexists" = "yes"; then 16174 as_fn_error $? " 16175 Could not link test program to Python. Maybe the main Python library has been 16176 installed in some non-standard library path. If so, pass it to configure, 16177 via the LDFLAGS environment variable. 16178 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 16179 ============================================================================ 16180 ERROR! 16181 You probably have to install the development version of the Python package 16182 for your distribution. The exact name of this package varies among them. 16183 ============================================================================ 16184 " "$LINENO" 5 16185 PYTHON_VERSION="" 16186 fi 16187 ac_ext=c 16188ac_cpp='$CPP $CPPFLAGS' 16189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16191ac_compiler_gnu=$ac_cv_c_compiler_gnu 16192 16193 # turn back to default flags 16194 CPPFLAGS="$ac_save_CPPFLAGS" 16195 LIBS="$ac_save_LIBS" 16196 16197 # 16198 # all done! 16199 # 16200 16201 if test ! -z "$PYTHON_VERSION"; then 16202 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then 16203 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5 16204 fi 16205 16206 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`" 16207 16208 # Have Python 16209 16210$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 16211 16212 LIBS="$PYTHON_LDFLAGS $LIBS" 16213 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 16214 ub_have_python=yes 16215 16216 # Check for SWIG 16217 ub_have_swig=no 16218 16219 # Extract the first word of "swig", so it can be a program name with args. 16220set dummy swig; ac_word=$2 16221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16222$as_echo_n "checking for $ac_word... " >&6; } 16223if ${ac_cv_path_SWIG+:} false; then : 16224 $as_echo_n "(cached) " >&6 16225else 16226 case $SWIG in 16227 [\\/]* | ?:[\\/]*) 16228 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 16229 ;; 16230 *) 16231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16232for as_dir in $PATH 16233do 16234 IFS=$as_save_IFS 16235 test -z "$as_dir" && as_dir=. 16236 for ac_exec_ext in '' $ac_executable_extensions; do 16237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16238 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 16239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16240 break 2 16241 fi 16242done 16243 done 16244IFS=$as_save_IFS 16245 16246 ;; 16247esac 16248fi 16249SWIG=$ac_cv_path_SWIG 16250if test -n "$SWIG"; then 16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 16252$as_echo "$SWIG" >&6; } 16253else 16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16255$as_echo "no" >&6; } 16256fi 16257 16258 16259 if test -z "$SWIG" ; then 16260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 16261$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 16262 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 16263 elif test -n "" ; then 16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 16265$as_echo_n "checking for SWIG version... " >&6; } 16266 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'` 16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 16268$as_echo "$swig_version" >&6; } 16269 if test -n "$swig_version" ; then 16270 # Calculate the required version number components 16271 required= 16272 required_major=`echo $required | sed 's/[^0-9].*//'` 16273 if test -z "$required_major" ; then 16274 required_major=0 16275 fi 16276 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 16277 required_minor=`echo $required | sed 's/[^0-9].*//'` 16278 if test -z "$required_minor" ; then 16279 required_minor=0 16280 fi 16281 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 16282 required_patch=`echo $required | sed 's/[^0-9].*//'` 16283 if test -z "$required_patch" ; then 16284 required_patch=0 16285 fi 16286 # Calculate the available version number components 16287 available=$swig_version 16288 available_major=`echo $available | sed 's/[^0-9].*//'` 16289 if test -z "$available_major" ; then 16290 available_major=0 16291 fi 16292 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 16293 available_minor=`echo $available | sed 's/[^0-9].*//'` 16294 if test -z "$available_minor" ; then 16295 available_minor=0 16296 fi 16297 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 16298 available_patch=`echo $available | sed 's/[^0-9].*//'` 16299 if test -z "$available_patch" ; then 16300 available_patch=0 16301 fi 16302 if test $available_major -ne $required_major \ 16303 -o $available_minor -ne $required_minor \ 16304 -o $available_patch -lt $required_patch ; then 16305 { $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 16306$as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 16307 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 16308 else 16309 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 16310$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 16311 SWIG_LIB=`$SWIG -swiglib` 16312 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 16313$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 16314 fi 16315 else 16316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 16317$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 16318 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 16319 fi 16320 fi 16321 16322 16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5 16324$as_echo_n "checking SWIG... " >&6; } 16325 if test ! -x "$SWIG"; then 16326 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5 16327 else 16328 16329$as_echo "#define HAVE_SWIG 1" >>confdefs.h 16330 16331 swig="$SWIG" 16332 16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 16334$as_echo "present" >&6; } 16335 16336 # If have Python & SWIG 16337 # Declare PythonMod 16338 if test x_$ub_with_pythonmod != x_no; then 16339 16340$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h 16341 16342 WITH_PYTHONMODULE=yes 16343 16344 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo" 16345 16346 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h' 16347 16348 PYTHONMOD_INSTALL=pythonmod-install 16349 16350 PYTHONMOD_UNINSTALL=pythonmod-uninstall 16351 16352 fi 16353 16354 # Declare PyUnbound 16355 if test x_$ub_with_pyunbound != x_no; then 16356 16357$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h 16358 16359 WITH_PYUNBOUND=yes 16360 16361 PYUNBOUND_OBJ="libunbound_wrap.lo" 16362 16363 PYUNBOUND_TARGET="_unbound.la" 16364 16365 PYUNBOUND_INSTALL=pyunbound-install 16366 16367 PYUNBOUND_UNINSTALL=pyunbound-uninstall 16368 16369 fi 16370 fi 16371 else 16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5 16373$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; } 16374 ub_with_pyunbound=no 16375 ub_with_pythonmod=no 16376 fi 16377fi 16378 16379if test "`uname`" = "NetBSD"; then 16380 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_' 16381 16382fi 16383CONFIG_DATE=`date +%Y%m%d` 16384 16385 16386# Checks for libraries. 16387 16388# libnss 16389USE_NSS="no" 16390 16391# Check whether --with-nss was given. 16392if test "${with_nss+set}" = set; then : 16393 withval=$with_nss; 16394 USE_NSS="yes" 16395 16396$as_echo "#define HAVE_NSS 1" >>confdefs.h 16397 16398 if test "$withval" != "" -a "$withval" != "yes"; then 16399 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3" 16400 LDFLAGS="$LDFLAGS -L$withval/lib" 16401 16402 if test "x$enable_rpath" = xyes; then 16403 if echo "$withval/lib" | grep "^/" >/dev/null; then 16404 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 16405 fi 16406 fi 16407 16408 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" 16409 else 16410 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" 16411 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" 16412 fi 16413 LIBS="$LIBS -lnss3 -lnspr4" 16414 SSLLIB="" 16415 16416 16417fi 16418 16419 16420# libnettle 16421USE_NETTLE="no" 16422 16423# Check whether --with-nettle was given. 16424if test "${with_nettle+set}" = set; then : 16425 withval=$with_nettle; 16426 USE_NETTLE="yes" 16427 16428$as_echo "#define HAVE_NETTLE 1" >>confdefs.h 16429 16430 if test "$withval" != "" -a "$withval" != "yes"; then 16431 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle" 16432 LDFLAGS="$LDFLAGS -L$withval/lib" 16433 16434 if test "x$enable_rpath" = xyes; then 16435 if echo "$withval/lib" | grep "^/" >/dev/null; then 16436 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 16437 fi 16438 fi 16439 16440 else 16441 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle" 16442 fi 16443 LIBS="$LIBS -lhogweed -lnettle -lgmp" 16444 SSLLIB="" 16445 16446 16447fi 16448 16449 16450# openssl 16451if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 16452 16453 16454# Check whether --with-ssl was given. 16455if test "${with_ssl+set}" = set; then : 16456 withval=$with_ssl; 16457 16458else 16459 16460 withval="yes" 16461 16462fi 16463 16464 if test x_$withval = x_no; then 16465 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5 16466 fi 16467 16468 withval=$withval 16469 if test x_$withval != x_no; then 16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 16471$as_echo_n "checking for SSL... " >&6; } 16472 if test x_$withval = x_ -o x_$withval = x_yes; then 16473 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 16474 fi 16475 for dir in $withval; do 16476 ssldir="$dir" 16477 if test -f "$dir/include/openssl/ssl.h"; then 16478 found_ssl="yes" 16479 16480cat >>confdefs.h <<_ACEOF 16481#define HAVE_SSL /**/ 16482_ACEOF 16483 16484 if test "$ssldir" != "/usr"; then 16485 CPPFLAGS="$CPPFLAGS -I$ssldir/include" 16486 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include" 16487 fi 16488 break; 16489 fi 16490 done 16491 if test x_$found_ssl != x_yes; then 16492 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 16493 else 16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 16495$as_echo "found in $ssldir" >&6; } 16496 HAVE_SSL=yes 16497 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then 16498 LDFLAGS="$LDFLAGS -L$ssldir/lib" 16499 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib" 16500 16501 if test "x$enable_rpath" = xyes; then 16502 if echo "$ssldir/lib" | grep "^/" >/dev/null; then 16503 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib" 16504 fi 16505 fi 16506 16507 fi 16508 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5 16510$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; } 16511 LIBS="$LIBS -lcrypto" 16512 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 16513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16514/* end confdefs.h. */ 16515 16516int 16517main () 16518{ 16519 16520 int HMAC_CTX_init(void); 16521 (void)HMAC_CTX_init(); 16522 16523 ; 16524 return 0; 16525} 16526_ACEOF 16527if ac_fn_c_try_link "$LINENO"; then : 16528 16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16530$as_echo "yes" >&6; } 16531 16532$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16533 16534 16535else 16536 16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16538$as_echo "no" >&6; } 16539 # check if -lwsock32 or -lgdi32 are needed. 16540 BAKLIBS="$LIBS" 16541 BAKSSLLIBS="$LIBSSL_LIBS" 16542 LIBS="$LIBS -lgdi32" 16543 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32" 16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 16545$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; } 16546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16547/* end confdefs.h. */ 16548 16549int 16550main () 16551{ 16552 16553 int HMAC_CTX_init(void); 16554 (void)HMAC_CTX_init(); 16555 16556 ; 16557 return 0; 16558} 16559_ACEOF 16560if ac_fn_c_try_link "$LINENO"; then : 16561 16562 16563$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16564 16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16566$as_echo "yes" >&6; } 16567 16568else 16569 16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16571$as_echo "no" >&6; } 16572 LIBS="$BAKLIBS" 16573 LIBSSL_LIBS="$BAKSSLLIBS" 16574 LIBS="$LIBS -ldl" 16575 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 16576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 16577$as_echo_n "checking if -lcrypto needs -ldl... " >&6; } 16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16579/* end confdefs.h. */ 16580 16581int 16582main () 16583{ 16584 16585 int HMAC_CTX_init(void); 16586 (void)HMAC_CTX_init(); 16587 16588 ; 16589 return 0; 16590} 16591_ACEOF 16592if ac_fn_c_try_link "$LINENO"; then : 16593 16594 16595$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16596 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16598$as_echo "yes" >&6; } 16599 16600else 16601 16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16603$as_echo "no" >&6; } 16604 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 16605 16606fi 16607rm -f core conftest.err conftest.$ac_objext \ 16608 conftest$ac_exeext conftest.$ac_ext 16609 16610fi 16611rm -f core conftest.err conftest.$ac_objext \ 16612 conftest$ac_exeext conftest.$ac_ext 16613 16614fi 16615rm -f core conftest.err conftest.$ac_objext \ 16616 conftest$ac_exeext conftest.$ac_ext 16617 fi 16618 16619 16620 fi 16621for ac_header in openssl/ssl.h 16622do : 16623 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 16624" 16625if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 16626 cat >>confdefs.h <<_ACEOF 16627#define HAVE_OPENSSL_SSL_H 1 16628_ACEOF 16629 16630fi 16631 16632done 16633 16634for ac_header in openssl/err.h 16635do : 16636 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 16637" 16638if test "x$ac_cv_header_openssl_err_h" = xyes; then : 16639 cat >>confdefs.h <<_ACEOF 16640#define HAVE_OPENSSL_ERR_H 1 16641_ACEOF 16642 16643fi 16644 16645done 16646 16647for ac_header in openssl/rand.h 16648do : 16649 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 16650" 16651if test "x$ac_cv_header_openssl_rand_h" = xyes; then : 16652 cat >>confdefs.h <<_ACEOF 16653#define HAVE_OPENSSL_RAND_H 1 16654_ACEOF 16655 16656fi 16657 16658done 16659 16660 16661 16662 16663# check if libssl needs libdl 16664BAKLIBS="$LIBS" 16665LIBS="-lssl $LIBS" 16666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 16667$as_echo_n "checking if libssl needs libdl... " >&6; } 16668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16669/* end confdefs.h. */ 16670 16671/* Override any GCC internal prototype to avoid an error. 16672 Use char because int might match the return type of a GCC 16673 builtin and then its argument prototype would still apply. */ 16674#ifdef __cplusplus 16675extern "C" 16676#endif 16677char SSL_CTX_new (); 16678int 16679main () 16680{ 16681return SSL_CTX_new (); 16682 ; 16683 return 0; 16684} 16685_ACEOF 16686if ac_fn_c_try_link "$LINENO"; then : 16687 16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16689$as_echo "no" >&6; } 16690 LIBS="$BAKLIBS" 16691 16692else 16693 16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16695$as_echo "yes" >&6; } 16696 LIBS="$BAKLIBS" 16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16698$as_echo_n "checking for library containing dlopen... " >&6; } 16699if ${ac_cv_search_dlopen+:} false; then : 16700 $as_echo_n "(cached) " >&6 16701else 16702 ac_func_search_save_LIBS=$LIBS 16703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16704/* end confdefs.h. */ 16705 16706/* Override any GCC internal prototype to avoid an error. 16707 Use char because int might match the return type of a GCC 16708 builtin and then its argument prototype would still apply. */ 16709#ifdef __cplusplus 16710extern "C" 16711#endif 16712char dlopen (); 16713int 16714main () 16715{ 16716return dlopen (); 16717 ; 16718 return 0; 16719} 16720_ACEOF 16721for ac_lib in '' dl; do 16722 if test -z "$ac_lib"; then 16723 ac_res="none required" 16724 else 16725 ac_res=-l$ac_lib 16726 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16727 fi 16728 if ac_fn_c_try_link "$LINENO"; then : 16729 ac_cv_search_dlopen=$ac_res 16730fi 16731rm -f core conftest.err conftest.$ac_objext \ 16732 conftest$ac_exeext 16733 if ${ac_cv_search_dlopen+:} false; then : 16734 break 16735fi 16736done 16737if ${ac_cv_search_dlopen+:} false; then : 16738 16739else 16740 ac_cv_search_dlopen=no 16741fi 16742rm conftest.$ac_ext 16743LIBS=$ac_func_search_save_LIBS 16744fi 16745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16746$as_echo "$ac_cv_search_dlopen" >&6; } 16747ac_res=$ac_cv_search_dlopen 16748if test "$ac_res" != no; then : 16749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16750 16751fi 16752 16753 16754fi 16755rm -f core conftest.err conftest.$ac_objext \ 16756 conftest$ac_exeext conftest.$ac_ext 16757SSLLIB="-lssl" 16758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5 16759$as_echo_n "checking for LibreSSL... " >&6; } 16760if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then 16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16762$as_echo "yes" >&6; } 16763 16764$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h 16765 16766 # libressl provides these compat functions, but they may also be 16767 # declared by the OS in libc. See if they have been declared. 16768 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" 16769if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 16770 ac_have_decl=1 16771else 16772 ac_have_decl=0 16773fi 16774 16775cat >>confdefs.h <<_ACEOF 16776#define HAVE_DECL_STRLCPY $ac_have_decl 16777_ACEOF 16778ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" 16779if test "x$ac_cv_have_decl_strlcat" = xyes; then : 16780 ac_have_decl=1 16781else 16782 ac_have_decl=0 16783fi 16784 16785cat >>confdefs.h <<_ACEOF 16786#define HAVE_DECL_STRLCAT $ac_have_decl 16787_ACEOF 16788ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default" 16789if test "x$ac_cv_have_decl_arc4random" = xyes; then : 16790 ac_have_decl=1 16791else 16792 ac_have_decl=0 16793fi 16794 16795cat >>confdefs.h <<_ACEOF 16796#define HAVE_DECL_ARC4RANDOM $ac_have_decl 16797_ACEOF 16798ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default" 16799if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then : 16800 ac_have_decl=1 16801else 16802 ac_have_decl=0 16803fi 16804 16805cat >>confdefs.h <<_ACEOF 16806#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl 16807_ACEOF 16808ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default" 16809if test "x$ac_cv_have_decl_reallocarray" = xyes; then : 16810 ac_have_decl=1 16811else 16812 ac_have_decl=0 16813fi 16814 16815cat >>confdefs.h <<_ACEOF 16816#define HAVE_DECL_REALLOCARRAY $ac_have_decl 16817_ACEOF 16818 16819else 16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16821$as_echo "no" >&6; } 16822fi 16823for ac_header in openssl/conf.h 16824do : 16825 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default 16826" 16827if test "x$ac_cv_header_openssl_conf_h" = xyes; then : 16828 cat >>confdefs.h <<_ACEOF 16829#define HAVE_OPENSSL_CONF_H 1 16830_ACEOF 16831 16832fi 16833 16834done 16835 16836for ac_header in openssl/engine.h 16837do : 16838 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default 16839" 16840if test "x$ac_cv_header_openssl_engine_h" = xyes; then : 16841 cat >>confdefs.h <<_ACEOF 16842#define HAVE_OPENSSL_ENGINE_H 1 16843_ACEOF 16844 16845fi 16846 16847done 16848 16849for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode 16850do : 16851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16852ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16853if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16854 cat >>confdefs.h <<_ACEOF 16855#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16856_ACEOF 16857 16858fi 16859done 16860 16861ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" " 16862$ac_includes_default 16863#ifdef HAVE_OPENSSL_ERR_H 16864#include <openssl/err.h> 16865#endif 16866 16867#ifdef HAVE_OPENSSL_RAND_H 16868#include <openssl/rand.h> 16869#endif 16870 16871#ifdef HAVE_OPENSSL_CONF_H 16872#include <openssl/conf.h> 16873#endif 16874 16875#ifdef HAVE_OPENSSL_ENGINE_H 16876#include <openssl/engine.h> 16877#endif 16878#include <openssl/ssl.h> 16879#include <openssl/evp.h> 16880 16881" 16882if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then : 16883 ac_have_decl=1 16884else 16885 ac_have_decl=0 16886fi 16887 16888cat >>confdefs.h <<_ACEOF 16889#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl 16890_ACEOF 16891ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" " 16892$ac_includes_default 16893#ifdef HAVE_OPENSSL_ERR_H 16894#include <openssl/err.h> 16895#endif 16896 16897#ifdef HAVE_OPENSSL_RAND_H 16898#include <openssl/rand.h> 16899#endif 16900 16901#ifdef HAVE_OPENSSL_CONF_H 16902#include <openssl/conf.h> 16903#endif 16904 16905#ifdef HAVE_OPENSSL_ENGINE_H 16906#include <openssl/engine.h> 16907#endif 16908#include <openssl/ssl.h> 16909#include <openssl/evp.h> 16910 16911" 16912if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then : 16913 ac_have_decl=1 16914else 16915 ac_have_decl=0 16916fi 16917 16918cat >>confdefs.h <<_ACEOF 16919#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl 16920_ACEOF 16921ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" " 16922$ac_includes_default 16923#ifdef HAVE_OPENSSL_ERR_H 16924#include <openssl/err.h> 16925#endif 16926 16927#ifdef HAVE_OPENSSL_RAND_H 16928#include <openssl/rand.h> 16929#endif 16930 16931#ifdef HAVE_OPENSSL_CONF_H 16932#include <openssl/conf.h> 16933#endif 16934 16935#ifdef HAVE_OPENSSL_ENGINE_H 16936#include <openssl/engine.h> 16937#endif 16938#include <openssl/ssl.h> 16939#include <openssl/evp.h> 16940 16941" 16942if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then : 16943 ac_have_decl=1 16944else 16945 ac_have_decl=0 16946fi 16947 16948cat >>confdefs.h <<_ACEOF 16949#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl 16950_ACEOF 16951 16952fi 16953 16954 16955 16956# Check whether --enable-sha2 was given. 16957if test "${enable_sha2+set}" = set; then : 16958 enableval=$enable_sha2; 16959fi 16960 16961case "$enable_sha2" in 16962 no) 16963 ;; 16964 yes|*) 16965 16966$as_echo "#define USE_SHA2 1" >>confdefs.h 16967 16968 ;; 16969esac 16970 16971# check wether gost also works 16972 16973# Check whether --enable-gost was given. 16974if test "${enable_gost+set}" = set; then : 16975 enableval=$enable_gost; 16976fi 16977 16978use_gost="no" 16979if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 16980case "$enable_gost" in 16981 no) 16982 ;; 16983 *) 16984 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 16985if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then : 16986 : 16987else 16988 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5 16989fi 16990 16991 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 16992if test "x$ac_cv_func_EC_KEY_new" = xyes; then : 16993 16994else 16995 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5 16996fi 16997 16998 16999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 17000$as_echo_n "checking if GOST works... " >&6; } 17001if test c${cross_compiling} = cno; then 17002BAKCFLAGS="$CFLAGS" 17003if test -n "$ssldir"; then 17004 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib" 17005fi 17006if test "$cross_compiling" = yes; then : 17007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17009as_fn_error $? "cannot run test program while cross compiling 17010See \`config.log' for more details" "$LINENO" 5; } 17011else 17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17013/* end confdefs.h. */ 17014 17015#include <string.h> 17016#include <openssl/ssl.h> 17017#include <openssl/evp.h> 17018#include <openssl/engine.h> 17019#include <openssl/conf.h> 17020/* routine to load gost (from sldns) */ 17021int load_gost_id(void) 17022{ 17023 static int gost_id = 0; 17024 const EVP_PKEY_ASN1_METHOD* meth; 17025 ENGINE* e; 17026 17027 if(gost_id) return gost_id; 17028 17029 /* see if configuration loaded gost implementation from other engine*/ 17030 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 17031 if(meth) { 17032 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 17033 return gost_id; 17034 } 17035 17036 /* see if engine can be loaded already */ 17037 e = ENGINE_by_id("gost"); 17038 if(!e) { 17039 /* load it ourself, in case statically linked */ 17040 ENGINE_load_builtin_engines(); 17041 ENGINE_load_dynamic(); 17042 e = ENGINE_by_id("gost"); 17043 } 17044 if(!e) { 17045 /* no gost engine in openssl */ 17046 return 0; 17047 } 17048 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 17049 ENGINE_finish(e); 17050 ENGINE_free(e); 17051 return 0; 17052 } 17053 17054 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 17055 if(!meth) { 17056 /* algo not found */ 17057 ENGINE_finish(e); 17058 ENGINE_free(e); 17059 return 0; 17060 } 17061 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 17062 return gost_id; 17063} 17064int main(void) { 17065 EVP_MD_CTX* ctx; 17066 const EVP_MD* md; 17067 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 17068 const char* str = "Hello world"; 17069 const unsigned char check[] = { 17070 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 17071 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 17072 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 17073 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 17074 }; 17075 OPENSSL_config(NULL); 17076 (void)load_gost_id(); 17077 md = EVP_get_digestbyname("md_gost94"); 17078 if(!md) return 1; 17079 memset(digest, 0, sizeof(digest)); 17080 ctx = EVP_MD_CTX_create(); 17081 if(!ctx) return 2; 17082 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 17083 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 17084 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 17085 /* uncomment to see the hash calculated. 17086 {int i; 17087 for(i=0; i<32; i++) 17088 printf(" %2.2x", (int)digest[i]); 17089 printf("\n");} 17090 */ 17091 if(memcmp(digest, check, sizeof(check)) != 0) 17092 return 6; 17093 return 0; 17094} 17095 17096_ACEOF 17097if ac_fn_c_try_run "$LINENO"; then : 17098 eval "ac_cv_c_gost_works=yes" 17099else 17100 eval "ac_cv_c_gost_works=no" 17101fi 17102rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17103 conftest.$ac_objext conftest.beam conftest.$ac_ext 17104fi 17105 17106CFLAGS="$BAKCFLAGS" 17107else 17108eval "ac_cv_c_gost_works=maybe" 17109fi 17110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5 17111$as_echo "$ac_cv_c_gost_works" >&6; } 17112 17113 if test "$ac_cv_c_gost_works" != no; then 17114 use_gost="yes" 17115 17116$as_echo "#define USE_GOST 1" >>confdefs.h 17117 17118 fi 17119 ;; 17120esac 17121fi 17122# Check whether --enable-ecdsa was given. 17123if test "${enable_ecdsa+set}" = set; then : 17124 enableval=$enable_ecdsa; 17125fi 17126 17127use_ecdsa="no" 17128case "$enable_ecdsa" in 17129 no) 17130 ;; 17131 *) 17132 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 17133 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 17134if test "x$ac_cv_func_ECDSA_sign" = xyes; then : 17135 17136else 17137 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17138fi 17139 17140 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 17141if test "x$ac_cv_func_SHA384_Init" = xyes; then : 17142 17143else 17144 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17145fi 17146 17147 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 17148#include <openssl/evp.h> 17149 17150" 17151if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then : 17152 ac_have_decl=1 17153else 17154 ac_have_decl=0 17155fi 17156 17157cat >>confdefs.h <<_ACEOF 17158#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl 17159_ACEOF 17160if test $ac_have_decl = 1; then : 17161 17162else 17163 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17164fi 17165ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 17166#include <openssl/evp.h> 17167 17168" 17169if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then : 17170 ac_have_decl=1 17171else 17172 ac_have_decl=0 17173fi 17174 17175cat >>confdefs.h <<_ACEOF 17176#define HAVE_DECL_NID_SECP384R1 $ac_have_decl 17177_ACEOF 17178if test $ac_have_decl = 1; then : 17179 17180else 17181 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 17182fi 17183 17184 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency) 17185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5 17186$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; } 17187 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then 17188 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then 17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17190$as_echo "no" >&6; } 17191 17192cat >>confdefs.h <<_ACEOF 17193#define USE_ECDSA_EVP_WORKAROUND 1 17194_ACEOF 17195 17196 else 17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17198$as_echo "yes" >&6; } 17199 fi 17200 else 17201 # not OpenSSL, thus likely LibreSSL, which supports it 17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17203$as_echo "yes" >&6; } 17204 fi 17205 fi 17206 # we now know we have ECDSA and the required curves. 17207 17208cat >>confdefs.h <<_ACEOF 17209#define USE_ECDSA 1 17210_ACEOF 17211 17212 use_ecdsa="yes" 17213 ;; 17214esac 17215 17216# Check whether --enable-event-api was given. 17217if test "${enable_event_api+set}" = set; then : 17218 enableval=$enable_event_api; 17219fi 17220 17221use_unbound_event="no" 17222case "$enable_event_api" in 17223 yes) 17224 use_unbound_event="yes" 17225 ;; 17226 *) 17227 ;; 17228esac 17229 17230# check for libevent 17231 17232# Check whether --with-libevent was given. 17233if test "${with_libevent+set}" = set; then : 17234 withval=$with_libevent; 17235else 17236 withval="no" 17237fi 17238 17239if test x_$withval = x_yes -o x_$withval != x_no; then 17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 17241$as_echo_n "checking for libevent... " >&6; } 17242 if test x_$withval = x_ -o x_$withval = x_yes; then 17243 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 17244 fi 17245 for dir in $withval; do 17246 thedir="$dir" 17247 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 17248 found_libevent="yes" 17249 if test "$thedir" != "/usr"; then 17250 CPPFLAGS="$CPPFLAGS -I$thedir/include" 17251 fi 17252 break; 17253 fi 17254 done 17255 if test x_$found_libevent != x_yes; then 17256 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 17257 # libevent source directory 17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 17259$as_echo "found in $thedir" >&6; } 17260 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 17261 BAK_LDFLAGS_SET="1" 17262 BAK_LDFLAGS="$LDFLAGS" 17263 # remove evdns from linking 17264 mkdir build >/dev/null 2>&1 17265 mkdir build/libevent >/dev/null 2>&1 17266 mkdir build/libevent/.libs >/dev/null 2>&1 17267 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 17268 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo` 17269 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 17270 cp $ev_files_o build/libevent 17271 cp $ev_files_lo build/libevent 17272 cp $ev_files_libso build/libevent/.libs 17273 LATE_LDFLAGS="build/libevent/*.lo -lm" 17274 LDFLAGS="build/libevent/*.o $LDFLAGS -lm" 17275 else 17276 as_fn_error $? "Cannot find the libevent library in $withval 17277You can restart ./configure --with-libevent=no to use a builtin alternative. 17278Please note that this alternative is not as capable as libevent when using 17279large outgoing port ranges. " "$LINENO" 5 17280 fi 17281 else 17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 17283$as_echo "found in $thedir" >&6; } 17284 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 17285 LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 17286 17287 if test "x$enable_rpath" = xyes; then 17288 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 17289 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 17290 fi 17291 fi 17292 17293 else 17294 if test "$thedir" != "/usr" -a "$thedir" != ""; then 17295 LDFLAGS="$LDFLAGS -L$thedir/lib" 17296 17297 if test "x$enable_rpath" = xyes; then 17298 if echo "$thedir/lib" | grep "^/" >/dev/null; then 17299 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 17300 fi 17301 fi 17302 17303 fi 17304 fi 17305 fi 17306 # check for library used by libevent after 1.3c 17307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 17308$as_echo_n "checking for library containing clock_gettime... " >&6; } 17309if ${ac_cv_search_clock_gettime+:} false; then : 17310 $as_echo_n "(cached) " >&6 17311else 17312 ac_func_search_save_LIBS=$LIBS 17313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17314/* end confdefs.h. */ 17315 17316/* Override any GCC internal prototype to avoid an error. 17317 Use char because int might match the return type of a GCC 17318 builtin and then its argument prototype would still apply. */ 17319#ifdef __cplusplus 17320extern "C" 17321#endif 17322char clock_gettime (); 17323int 17324main () 17325{ 17326return clock_gettime (); 17327 ; 17328 return 0; 17329} 17330_ACEOF 17331for ac_lib in '' rt; do 17332 if test -z "$ac_lib"; then 17333 ac_res="none required" 17334 else 17335 ac_res=-l$ac_lib 17336 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17337 fi 17338 if ac_fn_c_try_link "$LINENO"; then : 17339 ac_cv_search_clock_gettime=$ac_res 17340fi 17341rm -f core conftest.err conftest.$ac_objext \ 17342 conftest$ac_exeext 17343 if ${ac_cv_search_clock_gettime+:} false; then : 17344 break 17345fi 17346done 17347if ${ac_cv_search_clock_gettime+:} false; then : 17348 17349else 17350 ac_cv_search_clock_gettime=no 17351fi 17352rm conftest.$ac_ext 17353LIBS=$ac_func_search_save_LIBS 17354fi 17355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 17356$as_echo "$ac_cv_search_clock_gettime" >&6; } 17357ac_res=$ac_cv_search_clock_gettime 17358if test "$ac_res" != no; then : 17359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17360 17361fi 17362 17363 17364 # is the event.h header libev or libevent? 17365 for ac_header in event.h 17366do : 17367 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 17368" 17369if test "x$ac_cv_header_event_h" = xyes; then : 17370 cat >>confdefs.h <<_ACEOF 17371#define HAVE_EVENT_H 1 17372_ACEOF 17373 17374fi 17375 17376done 17377 17378 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 17379#include <event.h> 17380 17381" 17382if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then : 17383 17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 17385$as_echo_n "checking for library containing event_set... " >&6; } 17386if ${ac_cv_search_event_set+:} false; then : 17387 $as_echo_n "(cached) " >&6 17388else 17389 ac_func_search_save_LIBS=$LIBS 17390cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17391/* end confdefs.h. */ 17392 17393/* Override any GCC internal prototype to avoid an error. 17394 Use char because int might match the return type of a GCC 17395 builtin and then its argument prototype would still apply. */ 17396#ifdef __cplusplus 17397extern "C" 17398#endif 17399char event_set (); 17400int 17401main () 17402{ 17403return event_set (); 17404 ; 17405 return 0; 17406} 17407_ACEOF 17408for ac_lib in '' ev; do 17409 if test -z "$ac_lib"; then 17410 ac_res="none required" 17411 else 17412 ac_res=-l$ac_lib 17413 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17414 fi 17415 if ac_fn_c_try_link "$LINENO"; then : 17416 ac_cv_search_event_set=$ac_res 17417fi 17418rm -f core conftest.err conftest.$ac_objext \ 17419 conftest$ac_exeext 17420 if ${ac_cv_search_event_set+:} false; then : 17421 break 17422fi 17423done 17424if ${ac_cv_search_event_set+:} false; then : 17425 17426else 17427 ac_cv_search_event_set=no 17428fi 17429rm conftest.$ac_ext 17430LIBS=$ac_func_search_save_LIBS 17431fi 17432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 17433$as_echo "$ac_cv_search_event_set" >&6; } 17434ac_res=$ac_cv_search_event_set 17435if test "$ac_res" != no; then : 17436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17437 17438fi 17439 17440 17441else 17442 17443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 17444$as_echo_n "checking for library containing event_set... " >&6; } 17445if ${ac_cv_search_event_set+:} false; then : 17446 $as_echo_n "(cached) " >&6 17447else 17448 ac_func_search_save_LIBS=$LIBS 17449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17450/* end confdefs.h. */ 17451 17452/* Override any GCC internal prototype to avoid an error. 17453 Use char because int might match the return type of a GCC 17454 builtin and then its argument prototype would still apply. */ 17455#ifdef __cplusplus 17456extern "C" 17457#endif 17458char event_set (); 17459int 17460main () 17461{ 17462return event_set (); 17463 ; 17464 return 0; 17465} 17466_ACEOF 17467for ac_lib in '' event; do 17468 if test -z "$ac_lib"; then 17469 ac_res="none required" 17470 else 17471 ac_res=-l$ac_lib 17472 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17473 fi 17474 if ac_fn_c_try_link "$LINENO"; then : 17475 ac_cv_search_event_set=$ac_res 17476fi 17477rm -f core conftest.err conftest.$ac_objext \ 17478 conftest$ac_exeext 17479 if ${ac_cv_search_event_set+:} false; then : 17480 break 17481fi 17482done 17483if ${ac_cv_search_event_set+:} false; then : 17484 17485else 17486 ac_cv_search_event_set=no 17487fi 17488rm conftest.$ac_ext 17489LIBS=$ac_func_search_save_LIBS 17490fi 17491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 17492$as_echo "$ac_cv_search_event_set" >&6; } 17493ac_res=$ac_cv_search_event_set 17494if test "$ac_res" != no; then : 17495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17496 17497fi 17498 17499 17500fi 17501 17502 for ac_func in event_base_free 17503do : 17504 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 17505if test "x$ac_cv_func_event_base_free" = xyes; then : 17506 cat >>confdefs.h <<_ACEOF 17507#define HAVE_EVENT_BASE_FREE 1 17508_ACEOF 17509 17510fi 17511done 17512 # only in libevent 1.2 and later 17513 for ac_func in event_base_once 17514do : 17515 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 17516if test "x$ac_cv_func_event_base_once" = xyes; then : 17517 cat >>confdefs.h <<_ACEOF 17518#define HAVE_EVENT_BASE_ONCE 1 17519_ACEOF 17520 17521fi 17522done 17523 # only in libevent 1.4.1 and later 17524 for ac_func in event_base_new 17525do : 17526 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 17527if test "x$ac_cv_func_event_base_new" = xyes; then : 17528 cat >>confdefs.h <<_ACEOF 17529#define HAVE_EVENT_BASE_NEW 1 17530_ACEOF 17531 17532fi 17533done 17534 # only in libevent 1.4.1 and later 17535 for ac_func in event_base_get_method 17536do : 17537 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 17538if test "x$ac_cv_func_event_base_get_method" = xyes; then : 17539 cat >>confdefs.h <<_ACEOF 17540#define HAVE_EVENT_BASE_GET_METHOD 1 17541_ACEOF 17542 17543fi 17544done 17545 # only in libevent 1.4.3 and later 17546 for ac_func in ev_loop 17547do : 17548 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 17549if test "x$ac_cv_func_ev_loop" = xyes; then : 17550 cat >>confdefs.h <<_ACEOF 17551#define HAVE_EV_LOOP 1 17552_ACEOF 17553 17554fi 17555done 17556 # only in libev. (tested on 3.51) 17557 for ac_func in ev_default_loop 17558do : 17559 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 17560if test "x$ac_cv_func_ev_default_loop" = xyes; then : 17561 cat >>confdefs.h <<_ACEOF 17562#define HAVE_EV_DEFAULT_LOOP 1 17563_ACEOF 17564 17565fi 17566done 17567 # only in libev. (tested on 4.00) 17568 if test -n "$BAK_LDFLAGS_SET"; then 17569 LDFLAGS="$BAK_LDFLAGS" 17570 fi 17571 if test "$use_unbound_event" = "yes"; then 17572 UNBOUND_EVENT_INSTALL=unbound-event-install 17573 17574 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall 17575 17576 fi 17577else 17578 17579$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h 17580 17581fi 17582 17583# check for libexpat 17584 17585# Check whether --with-libexpat was given. 17586if test "${with_libexpat+set}" = set; then : 17587 withval=$with_libexpat; 17588else 17589 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 17590fi 17591 17592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 17593$as_echo_n "checking for libexpat... " >&6; } 17594found_libexpat="no" 17595for dir in $withval ; do 17596 if test -f "$dir/include/expat.h"; then 17597 found_libexpat="yes" 17598 if test "$dir" != "/usr"; then 17599 CPPFLAGS="$CPPFLAGS -I$dir/include" 17600 LDFLAGS="$LDFLAGS -L$dir/lib" 17601 fi 17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 17603$as_echo "found in $dir" >&6; } 17604 break; 17605 fi 17606done 17607if test x_$found_libexpat != x_yes; then 17608 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5 17609fi 17610for ac_header in expat.h 17611do : 17612 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default 17613" 17614if test "x$ac_cv_header_expat_h" = xyes; then : 17615 cat >>confdefs.h <<_ACEOF 17616#define HAVE_EXPAT_H 1 17617_ACEOF 17618 17619fi 17620 17621done 17622 17623ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default 17624#include <expat.h> 17625 17626" 17627if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then : 17628 ac_have_decl=1 17629else 17630 ac_have_decl=0 17631fi 17632 17633cat >>confdefs.h <<_ACEOF 17634#define HAVE_DECL_XML_STOPPARSER $ac_have_decl 17635_ACEOF 17636 17637 17638# set static linking if requested 17639 17640staticexe="" 17641# Check whether --enable-static-exe was given. 17642if test "${enable_static_exe+set}" = set; then : 17643 enableval=$enable_static_exe; 17644fi 17645 17646if test x_$enable_static_exe = x_yes; then 17647 staticexe="-static" 17648 if test "$on_mingw" = yes; then 17649 staticexe="-all-static" 17650 # for static crosscompile, include gdi32 and zlib here. 17651 if test "`uname`" = "Linux"; then 17652 LIBS="$LIBS -lgdi32 -lz" 17653 fi 17654 fi 17655fi 17656 17657# set lock checking if requested 17658# Check whether --enable-lock_checks was given. 17659if test "${enable_lock_checks+set}" = set; then : 17660 enableval=$enable_lock_checks; 17661fi 17662 17663if test x_$enable_lock_checks = x_yes; then 17664 17665$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h 17666 17667 CHECKLOCK_OBJ="checklocks.lo" 17668 17669fi 17670 17671 17672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 17673$as_echo_n "checking for getaddrinfo... " >&6; } 17674ac_cv_func_getaddrinfo=no 17675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17676/* end confdefs.h. */ 17677 17678#ifdef __cplusplus 17679extern "C" 17680{ 17681#endif 17682char* getaddrinfo(); 17683char* (*f) () = getaddrinfo; 17684#ifdef __cplusplus 17685} 17686#endif 17687int main() { 17688 ; 17689 return 0; 17690} 17691 17692_ACEOF 17693if ac_fn_c_try_link "$LINENO"; then : 17694 ac_cv_func_getaddrinfo="yes" 17695if test "$ac_cv_header_windows_h" = "yes"; then 17696 17697$as_echo "#define USE_WINSOCK 1" >>confdefs.h 17698 17699 USE_WINSOCK="1" 17700 LIBS="$LIBS -lws2_32" 17701fi 17702 17703else 17704 ORIGLIBS="$LIBS" 17705LIBS="$LIBS -lws2_32" 17706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17707/* end confdefs.h. */ 17708 17709#ifdef HAVE_WS2TCPIP_H 17710#include <ws2tcpip.h> 17711#endif 17712 17713int 17714main () 17715{ 17716 17717 (void)getaddrinfo(NULL, NULL, NULL, NULL); 17718 17719 17720 ; 17721 return 0; 17722} 17723_ACEOF 17724if ac_fn_c_try_link "$LINENO"; then : 17725 17726ac_cv_func_getaddrinfo="yes" 17727 17728$as_echo "#define USE_WINSOCK 1" >>confdefs.h 17729 17730USE_WINSOCK="1" 17731 17732else 17733 17734ac_cv_func_getaddrinfo="no" 17735LIBS="$ORIGLIBS" 17736 17737fi 17738rm -f core conftest.err conftest.$ac_objext \ 17739 conftest$ac_exeext conftest.$ac_ext 17740 17741fi 17742rm -f core conftest.err conftest.$ac_objext \ 17743 conftest$ac_exeext conftest.$ac_ext 17744 17745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 17746$as_echo "$ac_cv_func_getaddrinfo" >&6; } 17747if test $ac_cv_func_getaddrinfo = yes; then 17748 17749$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 17750 17751fi 17752 17753if test "$USE_WINSOCK" = 1; then 17754 17755$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h 17756 17757 for ac_header in iphlpapi.h 17758do : 17759 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default 17760#include <windows.h> 17761 17762" 17763if test "x$ac_cv_header_iphlpapi_h" = xyes; then : 17764 cat >>confdefs.h <<_ACEOF 17765#define HAVE_IPHLPAPI_H 1 17766_ACEOF 17767 17768fi 17769 17770done 17771 17772 if test -n "$ac_tool_prefix"; then 17773 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 17774set dummy ${ac_tool_prefix}windres; ac_word=$2 17775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17776$as_echo_n "checking for $ac_word... " >&6; } 17777if ${ac_cv_prog_WINDRES+:} false; then : 17778 $as_echo_n "(cached) " >&6 17779else 17780 if test -n "$WINDRES"; then 17781 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 17782else 17783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17784for as_dir in $PATH 17785do 17786 IFS=$as_save_IFS 17787 test -z "$as_dir" && as_dir=. 17788 for ac_exec_ext in '' $ac_executable_extensions; do 17789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17790 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 17791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17792 break 2 17793 fi 17794done 17795 done 17796IFS=$as_save_IFS 17797 17798fi 17799fi 17800WINDRES=$ac_cv_prog_WINDRES 17801if test -n "$WINDRES"; then 17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 17803$as_echo "$WINDRES" >&6; } 17804else 17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17806$as_echo "no" >&6; } 17807fi 17808 17809 17810fi 17811if test -z "$ac_cv_prog_WINDRES"; then 17812 ac_ct_WINDRES=$WINDRES 17813 # Extract the first word of "windres", so it can be a program name with args. 17814set dummy windres; ac_word=$2 17815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17816$as_echo_n "checking for $ac_word... " >&6; } 17817if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 17818 $as_echo_n "(cached) " >&6 17819else 17820 if test -n "$ac_ct_WINDRES"; then 17821 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 17822else 17823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17824for as_dir in $PATH 17825do 17826 IFS=$as_save_IFS 17827 test -z "$as_dir" && as_dir=. 17828 for ac_exec_ext in '' $ac_executable_extensions; do 17829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17830 ac_cv_prog_ac_ct_WINDRES="windres" 17831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17832 break 2 17833 fi 17834done 17835 done 17836IFS=$as_save_IFS 17837 17838fi 17839fi 17840ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 17841if test -n "$ac_ct_WINDRES"; then 17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 17843$as_echo "$ac_ct_WINDRES" >&6; } 17844else 17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17846$as_echo "no" >&6; } 17847fi 17848 17849 if test "x$ac_ct_WINDRES" = x; then 17850 WINDRES="" 17851 else 17852 case $cross_compiling:$ac_tool_warned in 17853yes:) 17854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17856ac_tool_warned=yes ;; 17857esac 17858 WINDRES=$ac_ct_WINDRES 17859 fi 17860else 17861 WINDRES="$ac_cv_prog_WINDRES" 17862fi 17863 17864 LIBS="$LIBS -liphlpapi" 17865 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe" 17866 17867 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c" 17868 17869 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo" 17870 17871 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o" 17872 17873 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o" 17874 17875 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo" 17876 17877 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o" 17878 17879 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o" 17880 17881fi 17882if test $ac_cv_func_getaddrinfo = no; then 17883 case " $LIBOBJS " in 17884 *" fake-rfc2553.$ac_objext "* ) ;; 17885 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 17886 ;; 17887esac 17888 17889fi 17890# check after getaddrinfo for its libraries 17891 17892# check ioctlsocket 17893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 17894$as_echo_n "checking for ioctlsocket... " >&6; } 17895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17896/* end confdefs.h. */ 17897 17898#ifdef HAVE_WINSOCK2_H 17899#include <winsock2.h> 17900#endif 17901 17902int 17903main () 17904{ 17905 17906 (void)ioctlsocket(0, 0, NULL); 17907 17908 ; 17909 return 0; 17910} 17911_ACEOF 17912if ac_fn_c_try_link "$LINENO"; then : 17913 17914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17915$as_echo "yes" >&6; } 17916 17917$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 17918 17919 17920else 17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17922$as_echo "no" >&6; } 17923fi 17924rm -f core conftest.err conftest.$ac_objext \ 17925 conftest$ac_exeext conftest.$ac_ext 17926 17927 17928# see if daemon(3) exists, and if it is deprecated. 17929for ac_func in daemon 17930do : 17931 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 17932if test "x$ac_cv_func_daemon" = xyes; then : 17933 cat >>confdefs.h <<_ACEOF 17934#define HAVE_DAEMON 1 17935_ACEOF 17936 17937fi 17938done 17939 17940if test $ac_cv_func_daemon = yes; then 17941 17942 17943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5 17944$as_echo_n "checking if daemon is deprecated... " >&6; } 17945cache=`echo daemon | sed 'y%.=/+-%___p_%'` 17946if eval \${cv_cc_deprecated_$cache+:} false; then : 17947 $as_echo_n "(cached) " >&6 17948else 17949 17950echo ' 17951#include <stdlib.h> 17952' >conftest.c 17953echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c 17954if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then 17955eval "cv_cc_deprecated_$cache=no" 17956else 17957eval "cv_cc_deprecated_$cache=yes" 17958fi 17959rm -f conftest conftest.o conftest.c 17960 17961fi 17962 17963if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 17964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17965$as_echo "yes" >&6; } 17966 17967cat >>confdefs.h <<_ACEOF 17968#define DEPRECATED_DAEMON 1 17969_ACEOF 17970 17971: 17972 17973else 17974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17975$as_echo "no" >&6; } 17976: 17977 17978fi 17979 17980fi 17981 17982ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " 17983$ac_includes_default 17984#ifdef HAVE_SYS_UN_H 17985#include <sys/un.h> 17986#endif 17987 17988" 17989if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : 17990 17991cat >>confdefs.h <<_ACEOF 17992#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 17993_ACEOF 17994 17995 17996fi 17997 17998ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" " 17999$ac_includes_default 18000#if HAVE_SYS_PARAM_H 18001#include <sys/param.h> 18002#endif 18003 18004#ifdef HAVE_SYS_SOCKET_H 18005#include <sys/socket.h> 18006#endif 18007 18008#ifdef HAVE_SYS_UIO_H 18009#include <sys/uio.h> 18010#endif 18011 18012#ifdef HAVE_NETINET_IN_H 18013#include <netinet/in.h> 18014#endif 18015 18016#ifdef HAVE_ARPA_INET_H 18017#include <arpa/inet.h> 18018#endif 18019 18020#ifdef HAVE_WINSOCK2_H 18021#include <winsock2.h> 18022#endif 18023 18024#ifdef HAVE_WS2TCPIP_H 18025#include <ws2tcpip.h> 18026#endif 18027 18028" 18029if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then : 18030 18031cat >>confdefs.h <<_ACEOF 18032#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1 18033_ACEOF 18034 18035 18036fi 18037 18038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 18039$as_echo_n "checking for library containing setusercontext... " >&6; } 18040if ${ac_cv_search_setusercontext+:} false; then : 18041 $as_echo_n "(cached) " >&6 18042else 18043 ac_func_search_save_LIBS=$LIBS 18044cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18045/* end confdefs.h. */ 18046 18047/* Override any GCC internal prototype to avoid an error. 18048 Use char because int might match the return type of a GCC 18049 builtin and then its argument prototype would still apply. */ 18050#ifdef __cplusplus 18051extern "C" 18052#endif 18053char setusercontext (); 18054int 18055main () 18056{ 18057return setusercontext (); 18058 ; 18059 return 0; 18060} 18061_ACEOF 18062for ac_lib in '' util; do 18063 if test -z "$ac_lib"; then 18064 ac_res="none required" 18065 else 18066 ac_res=-l$ac_lib 18067 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18068 fi 18069 if ac_fn_c_try_link "$LINENO"; then : 18070 ac_cv_search_setusercontext=$ac_res 18071fi 18072rm -f core conftest.err conftest.$ac_objext \ 18073 conftest$ac_exeext 18074 if ${ac_cv_search_setusercontext+:} false; then : 18075 break 18076fi 18077done 18078if ${ac_cv_search_setusercontext+:} false; then : 18079 18080else 18081 ac_cv_search_setusercontext=no 18082fi 18083rm conftest.$ac_ext 18084LIBS=$ac_func_search_save_LIBS 18085fi 18086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 18087$as_echo "$ac_cv_search_setusercontext" >&6; } 18088ac_res=$ac_cv_search_setusercontext 18089if test "$ac_res" != no; then : 18090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18091 18092fi 18093 18094for 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 fsync 18095do : 18096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18097ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18098if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18099 cat >>confdefs.h <<_ACEOF 18100#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18101_ACEOF 18102 18103fi 18104done 18105 18106for ac_func in setresuid 18107do : 18108 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 18109if test "x$ac_cv_func_setresuid" = xyes; then : 18110 cat >>confdefs.h <<_ACEOF 18111#define HAVE_SETRESUID 1 18112_ACEOF 18113 18114else 18115 for ac_func in setreuid 18116do : 18117 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 18118if test "x$ac_cv_func_setreuid" = xyes; then : 18119 cat >>confdefs.h <<_ACEOF 18120#define HAVE_SETREUID 1 18121_ACEOF 18122 18123fi 18124done 18125 18126fi 18127done 18128 18129for ac_func in setresgid 18130do : 18131 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 18132if test "x$ac_cv_func_setresgid" = xyes; then : 18133 cat >>confdefs.h <<_ACEOF 18134#define HAVE_SETRESGID 1 18135_ACEOF 18136 18137else 18138 for ac_func in setregid 18139do : 18140 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 18141if test "x$ac_cv_func_setregid" = xyes; then : 18142 cat >>confdefs.h <<_ACEOF 18143#define HAVE_SETREGID 1 18144_ACEOF 18145 18146fi 18147done 18148 18149fi 18150done 18151 18152 18153# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 18154if echo $build_os | grep darwin8 > /dev/null; then 18155 18156$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 18157 18158fi 18159ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 18160if test "x$ac_cv_func_inet_aton" = xyes; then : 18161 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 18162 18163else 18164 case " $LIBOBJS " in 18165 *" inet_aton.$ac_objext "* ) ;; 18166 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 18167 ;; 18168esac 18169 18170fi 18171 18172 18173ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 18174if test "x$ac_cv_func_inet_pton" = xyes; then : 18175 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 18176 18177else 18178 case " $LIBOBJS " in 18179 *" inet_pton.$ac_objext "* ) ;; 18180 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 18181 ;; 18182esac 18183 18184fi 18185 18186 18187ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 18188if test "x$ac_cv_func_inet_ntop" = xyes; then : 18189 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 18190 18191else 18192 case " $LIBOBJS " in 18193 *" inet_ntop.$ac_objext "* ) ;; 18194 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 18195 ;; 18196esac 18197 18198fi 18199 18200 18201ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 18202if test "x$ac_cv_func_snprintf" = xyes; then : 18203 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 18204 18205else 18206 case " $LIBOBJS " in 18207 *" snprintf.$ac_objext "* ) ;; 18208 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 18209 ;; 18210esac 18211 18212fi 18213 18214 18215# test if snprintf return the proper length 18216if test "x$ac_cv_func_snprintf" = xyes; then 18217 if test c${cross_compiling} = cno; then 18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5 18219$as_echo_n "checking for correct snprintf return value... " >&6; } 18220 if test "$cross_compiling" = yes; then : 18221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18223as_fn_error $? "cannot run test program while cross compiling 18224See \`config.log' for more details" "$LINENO" 5; } 18225else 18226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18227/* end confdefs.h. */ 18228$ac_includes_default 18229 18230int main(void) { return !(snprintf(NULL, 0, "test") == 4); } 18231 18232_ACEOF 18233if ac_fn_c_try_run "$LINENO"; then : 18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18235$as_echo "yes" >&6; } 18236else 18237 18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18239$as_echo "no" >&6; } 18240 18241$as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h 18242 18243 case " $LIBOBJS " in 18244 *" snprintf.$ac_objext "* ) ;; 18245 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 18246 ;; 18247esac 18248 18249 18250fi 18251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18252 conftest.$ac_objext conftest.beam conftest.$ac_ext 18253fi 18254 18255 fi 18256fi 18257ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 18258if test "x$ac_cv_func_strlcat" = xyes; then : 18259 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 18260 18261else 18262 case " $LIBOBJS " in 18263 *" strlcat.$ac_objext "* ) ;; 18264 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 18265 ;; 18266esac 18267 18268fi 18269 18270 18271ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 18272if test "x$ac_cv_func_strlcpy" = xyes; then : 18273 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 18274 18275else 18276 case " $LIBOBJS " in 18277 *" strlcpy.$ac_objext "* ) ;; 18278 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 18279 ;; 18280esac 18281 18282fi 18283 18284 18285ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 18286if test "x$ac_cv_func_memmove" = xyes; then : 18287 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 18288 18289else 18290 case " $LIBOBJS " in 18291 *" memmove.$ac_objext "* ) ;; 18292 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 18293 ;; 18294esac 18295 18296fi 18297 18298 18299ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 18300if test "x$ac_cv_func_gmtime_r" = xyes; then : 18301 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 18302 18303else 18304 case " $LIBOBJS " in 18305 *" gmtime_r.$ac_objext "* ) ;; 18306 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 18307 ;; 18308esac 18309 18310fi 18311 18312 18313ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" 18314if test "x$ac_cv_func_isblank" = xyes; then : 18315 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h 18316 18317else 18318 case " $LIBOBJS " in 18319 *" isblank.$ac_objext "* ) ;; 18320 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 18321 ;; 18322esac 18323 18324fi 18325 18326 18327LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS" 18328 18329ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 18330if test "x$ac_cv_func_reallocarray" = xyes; then : 18331 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h 18332 18333else 18334 case " $LIBOBJS " in 18335 *" reallocarray.$ac_objext "* ) ;; 18336 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 18337 ;; 18338esac 18339 18340fi 18341 18342 18343if test "$USE_NSS" = "no"; then 18344 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 18345if test "x$ac_cv_func_arc4random" = xyes; then : 18346 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h 18347 18348else 18349 case " $LIBOBJS " in 18350 *" arc4random.$ac_objext "* ) ;; 18351 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext" 18352 ;; 18353esac 18354 18355fi 18356 18357 18358 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform" 18359if test "x$ac_cv_func_arc4random_uniform" = xyes; then : 18360 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h 18361 18362else 18363 case " $LIBOBJS " in 18364 *" arc4random_uniform.$ac_objext "* ) ;; 18365 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext" 18366 ;; 18367esac 18368 18369fi 18370 18371 18372 if test "$ac_cv_func_arc4random" = "no"; then 18373 case " $LIBOBJS " in 18374 *" explicit_bzero.$ac_objext "* ) ;; 18375 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" 18376 ;; 18377esac 18378 18379 case " $LIBOBJS " in 18380 *" arc4_lock.$ac_objext "* ) ;; 18381 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext" 18382 ;; 18383esac 18384 18385 for ac_func in getentropy 18386do : 18387 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 18388if test "x$ac_cv_func_getentropy" = xyes; then : 18389 cat >>confdefs.h <<_ACEOF 18390#define HAVE_GETENTROPY 1 18391_ACEOF 18392 18393else 18394 18395 if test "$USE_WINSOCK" = 1; then 18396 case " $LIBOBJS " in 18397 *" getentropy_win.$ac_objext "* ) ;; 18398 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext" 18399 ;; 18400esac 18401 18402 else 18403 case `uname` in 18404 Darwin) 18405 case " $LIBOBJS " in 18406 *" getentropy_osx.$ac_objext "* ) ;; 18407 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext" 18408 ;; 18409esac 18410 18411 ;; 18412 SunOS) 18413 case " $LIBOBJS " in 18414 *" getentropy_solaris.$ac_objext "* ) ;; 18415 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext" 18416 ;; 18417esac 18418 18419 for ac_header in sys/sha2.h 18420do : 18421 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default 18422" 18423if test "x$ac_cv_header_sys_sha2_h" = xyes; then : 18424 cat >>confdefs.h <<_ACEOF 18425#define HAVE_SYS_SHA2_H 1 18426_ACEOF 18427 18428else 18429 18430 for ac_func in SHA512_Update 18431do : 18432 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 18433if test "x$ac_cv_func_SHA512_Update" = xyes; then : 18434 cat >>confdefs.h <<_ACEOF 18435#define HAVE_SHA512_UPDATE 1 18436_ACEOF 18437 18438else 18439 18440 case " $LIBOBJS " in 18441 *" sha512.$ac_objext "* ) ;; 18442 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 18443 ;; 18444esac 18445 18446 18447fi 18448done 18449 18450 18451fi 18452 18453done 18454 18455 if test "$ac_cv_header_sys_sha2_h" = "yes"; then 18456 # this lib needed for sha2 on solaris 18457 LIBS="$LIBS -lmd" 18458 fi 18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 18460$as_echo_n "checking for library containing clock_gettime... " >&6; } 18461if ${ac_cv_search_clock_gettime+:} false; then : 18462 $as_echo_n "(cached) " >&6 18463else 18464 ac_func_search_save_LIBS=$LIBS 18465cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18466/* end confdefs.h. */ 18467 18468/* Override any GCC internal prototype to avoid an error. 18469 Use char because int might match the return type of a GCC 18470 builtin and then its argument prototype would still apply. */ 18471#ifdef __cplusplus 18472extern "C" 18473#endif 18474char clock_gettime (); 18475int 18476main () 18477{ 18478return clock_gettime (); 18479 ; 18480 return 0; 18481} 18482_ACEOF 18483for ac_lib in '' rt; do 18484 if test -z "$ac_lib"; then 18485 ac_res="none required" 18486 else 18487 ac_res=-l$ac_lib 18488 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18489 fi 18490 if ac_fn_c_try_link "$LINENO"; then : 18491 ac_cv_search_clock_gettime=$ac_res 18492fi 18493rm -f core conftest.err conftest.$ac_objext \ 18494 conftest$ac_exeext 18495 if ${ac_cv_search_clock_gettime+:} false; then : 18496 break 18497fi 18498done 18499if ${ac_cv_search_clock_gettime+:} false; then : 18500 18501else 18502 ac_cv_search_clock_gettime=no 18503fi 18504rm conftest.$ac_ext 18505LIBS=$ac_func_search_save_LIBS 18506fi 18507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 18508$as_echo "$ac_cv_search_clock_gettime" >&6; } 18509ac_res=$ac_cv_search_clock_gettime 18510if test "$ac_res" != no; then : 18511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18512 18513fi 18514 18515 ;; 18516 Linux|*) 18517 case " $LIBOBJS " in 18518 *" getentropy_linux.$ac_objext "* ) ;; 18519 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext" 18520 ;; 18521esac 18522 18523 for ac_func in SHA512_Update 18524do : 18525 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 18526if test "x$ac_cv_func_SHA512_Update" = xyes; then : 18527 cat >>confdefs.h <<_ACEOF 18528#define HAVE_SHA512_UPDATE 1 18529_ACEOF 18530 18531else 18532 18533 18534$as_echo "#define COMPAT_SHA512 1" >>confdefs.h 18535 18536 case " $LIBOBJS " in 18537 *" sha512.$ac_objext "* ) ;; 18538 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 18539 ;; 18540esac 18541 18542 18543fi 18544done 18545 18546 for ac_header in sys/sysctl.h 18547do : 18548 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 18549" 18550if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 18551 cat >>confdefs.h <<_ACEOF 18552#define HAVE_SYS_SYSCTL_H 1 18553_ACEOF 18554 18555fi 18556 18557done 18558 18559 for ac_func in getauxval 18560do : 18561 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval" 18562if test "x$ac_cv_func_getauxval" = xyes; then : 18563 cat >>confdefs.h <<_ACEOF 18564#define HAVE_GETAUXVAL 1 18565_ACEOF 18566 18567fi 18568done 18569 18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 18571$as_echo_n "checking for library containing clock_gettime... " >&6; } 18572if ${ac_cv_search_clock_gettime+:} false; then : 18573 $as_echo_n "(cached) " >&6 18574else 18575 ac_func_search_save_LIBS=$LIBS 18576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18577/* end confdefs.h. */ 18578 18579/* Override any GCC internal prototype to avoid an error. 18580 Use char because int might match the return type of a GCC 18581 builtin and then its argument prototype would still apply. */ 18582#ifdef __cplusplus 18583extern "C" 18584#endif 18585char clock_gettime (); 18586int 18587main () 18588{ 18589return clock_gettime (); 18590 ; 18591 return 0; 18592} 18593_ACEOF 18594for ac_lib in '' rt; do 18595 if test -z "$ac_lib"; then 18596 ac_res="none required" 18597 else 18598 ac_res=-l$ac_lib 18599 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18600 fi 18601 if ac_fn_c_try_link "$LINENO"; then : 18602 ac_cv_search_clock_gettime=$ac_res 18603fi 18604rm -f core conftest.err conftest.$ac_objext \ 18605 conftest$ac_exeext 18606 if ${ac_cv_search_clock_gettime+:} false; then : 18607 break 18608fi 18609done 18610if ${ac_cv_search_clock_gettime+:} false; then : 18611 18612else 18613 ac_cv_search_clock_gettime=no 18614fi 18615rm conftest.$ac_ext 18616LIBS=$ac_func_search_save_LIBS 18617fi 18618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 18619$as_echo "$ac_cv_search_clock_gettime" >&6; } 18620ac_res=$ac_cv_search_clock_gettime 18621if test "$ac_res" != no; then : 18622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18623 18624fi 18625 18626 ;; 18627 esac 18628 fi 18629 18630fi 18631done 18632 18633 fi 18634fi 18635LIBOBJ_WITHOUT_CTIME="$LIBOBJS" 18636 18637ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 18638if test "x$ac_cv_func_ctime_r" = xyes; then : 18639 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 18640 18641else 18642 case " $LIBOBJS " in 18643 *" ctime_r.$ac_objext "* ) ;; 18644 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 18645 ;; 18646esac 18647 18648fi 18649 18650 18651 18652# Check whether --enable-allsymbols was given. 18653if test "${enable_allsymbols+set}" = set; then : 18654 enableval=$enable_allsymbols; 18655fi 18656 18657case "$enable_allsymbols" in 18658 yes) 18659 COMMON_OBJ_ALL_SYMBOLS="" 18660 UBSYMS="" 18661 EXTRALINK="-L. -L.libs -lunbound" 18662 18663$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h 18664 18665 ;; 18666 no|*) 18667 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)' 18668 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def' 18669 EXTRALINK="" 18670 ;; 18671esac 18672 18673 18674 18675if test x_$enable_lock_checks = x_yes; then 18676 UBSYMS="-export-symbols clubsyms.def" 18677 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def 18678 echo lock_protect >> clubsyms.def 18679 echo lock_unprotect >> clubsyms.def 18680 echo lock_get_mem >> clubsyms.def 18681 echo checklock_start >> clubsyms.def 18682 echo checklock_stop >> clubsyms.def 18683 echo checklock_lock >> clubsyms.def 18684 echo checklock_unlock >> clubsyms.def 18685 echo checklock_init >> clubsyms.def 18686 echo checklock_thrcreate >> clubsyms.def 18687 echo checklock_thrjoin >> clubsyms.def 18688fi 18689 18690# check for dnstap if requested 18691 18692 # Check whether --enable-dnstap was given. 18693if test "${enable_dnstap+set}" = set; then : 18694 enableval=$enable_dnstap; opt_dnstap=$enableval 18695else 18696 opt_dnstap=no 18697fi 18698 18699 18700 18701# Check whether --with-dnstap-socket-path was given. 18702if test "${with_dnstap_socket_path+set}" = set; then : 18703 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval 18704else 18705 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock" 18706fi 18707 18708 18709 if test "x$opt_dnstap" != "xno"; then 18710 # Extract the first word of "protoc-c", so it can be a program name with args. 18711set dummy protoc-c; ac_word=$2 18712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18713$as_echo_n "checking for $ac_word... " >&6; } 18714if ${ac_cv_path_PROTOC_C+:} false; then : 18715 $as_echo_n "(cached) " >&6 18716else 18717 case $PROTOC_C in 18718 [\\/]* | ?:[\\/]*) 18719 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 18720 ;; 18721 *) 18722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18723for as_dir in $PATH 18724do 18725 IFS=$as_save_IFS 18726 test -z "$as_dir" && as_dir=. 18727 for ac_exec_ext in '' $ac_executable_extensions; do 18728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18729 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext" 18730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18731 break 2 18732 fi 18733done 18734 done 18735IFS=$as_save_IFS 18736 18737 ;; 18738esac 18739fi 18740PROTOC_C=$ac_cv_path_PROTOC_C 18741if test -n "$PROTOC_C"; then 18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 18743$as_echo "$PROTOC_C" >&6; } 18744else 18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18746$as_echo "no" >&6; } 18747fi 18748 18749 18750 if test -z "$PROTOC_C"; then 18751 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5 18752 fi 18753 18754# Check whether --with-protobuf-c was given. 18755if test "${with_protobuf_c+set}" = set; then : 18756 withval=$with_protobuf_c; 18757 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 18758 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then 18759 CFLAGS="$CFLAGS -I$withval/include/google" 18760 else 18761 CFLAGS="$CFLAGS -I$withval/include" 18762 fi 18763 LDFLAGS="$LDFLAGS -L$withval/lib" 18764 18765else 18766 18767 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 18768 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 18769 CFLAGS="$CFLAGS -I/usr/include/google" 18770 else 18771 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 18772 CFLAGS="$CFLAGS -I/usr/local/include/google" 18773 LDFLAGS="$LDFLAGS -L/usr/local/lib" 18774 fi 18775 fi 18776 18777fi 18778 18779 18780# Check whether --with-libfstrm was given. 18781if test "${with_libfstrm+set}" = set; then : 18782 withval=$with_libfstrm; 18783 CFLAGS="$CFLAGS -I$withval/include" 18784 LDFLAGS="$LDFLAGS -L$withval/lib" 18785 18786fi 18787 18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5 18789$as_echo_n "checking for library containing fstrm_iothr_init... " >&6; } 18790if ${ac_cv_search_fstrm_iothr_init+:} false; then : 18791 $as_echo_n "(cached) " >&6 18792else 18793 ac_func_search_save_LIBS=$LIBS 18794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18795/* end confdefs.h. */ 18796 18797/* Override any GCC internal prototype to avoid an error. 18798 Use char because int might match the return type of a GCC 18799 builtin and then its argument prototype would still apply. */ 18800#ifdef __cplusplus 18801extern "C" 18802#endif 18803char fstrm_iothr_init (); 18804int 18805main () 18806{ 18807return fstrm_iothr_init (); 18808 ; 18809 return 0; 18810} 18811_ACEOF 18812for ac_lib in '' fstrm; do 18813 if test -z "$ac_lib"; then 18814 ac_res="none required" 18815 else 18816 ac_res=-l$ac_lib 18817 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18818 fi 18819 if ac_fn_c_try_link "$LINENO"; then : 18820 ac_cv_search_fstrm_iothr_init=$ac_res 18821fi 18822rm -f core conftest.err conftest.$ac_objext \ 18823 conftest$ac_exeext 18824 if ${ac_cv_search_fstrm_iothr_init+:} false; then : 18825 break 18826fi 18827done 18828if ${ac_cv_search_fstrm_iothr_init+:} false; then : 18829 18830else 18831 ac_cv_search_fstrm_iothr_init=no 18832fi 18833rm conftest.$ac_ext 18834LIBS=$ac_func_search_save_LIBS 18835fi 18836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5 18837$as_echo "$ac_cv_search_fstrm_iothr_init" >&6; } 18838ac_res=$ac_cv_search_fstrm_iothr_init 18839if test "$ac_res" != no; then : 18840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18841 18842else 18843 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5 18844fi 18845 18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5 18847$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; } 18848if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 18849 $as_echo_n "(cached) " >&6 18850else 18851 ac_func_search_save_LIBS=$LIBS 18852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18853/* end confdefs.h. */ 18854 18855/* Override any GCC internal prototype to avoid an error. 18856 Use char because int might match the return type of a GCC 18857 builtin and then its argument prototype would still apply. */ 18858#ifdef __cplusplus 18859extern "C" 18860#endif 18861char protobuf_c_message_pack (); 18862int 18863main () 18864{ 18865return protobuf_c_message_pack (); 18866 ; 18867 return 0; 18868} 18869_ACEOF 18870for ac_lib in '' protobuf-c; do 18871 if test -z "$ac_lib"; then 18872 ac_res="none required" 18873 else 18874 ac_res=-l$ac_lib 18875 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18876 fi 18877 if ac_fn_c_try_link "$LINENO"; then : 18878 ac_cv_search_protobuf_c_message_pack=$ac_res 18879fi 18880rm -f core conftest.err conftest.$ac_objext \ 18881 conftest$ac_exeext 18882 if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 18883 break 18884fi 18885done 18886if ${ac_cv_search_protobuf_c_message_pack+:} false; then : 18887 18888else 18889 ac_cv_search_protobuf_c_message_pack=no 18890fi 18891rm conftest.$ac_ext 18892LIBS=$ac_func_search_save_LIBS 18893fi 18894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5 18895$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; } 18896ac_res=$ac_cv_search_protobuf_c_message_pack 18897if test "$ac_res" != no; then : 18898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18899 18900else 18901 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5 18902fi 18903 18904 18905 18906$as_echo "#define USE_DNSTAP 1" >>confdefs.h 18907 18908 ENABLE_DNSTAP=1 18909 18910 18911 18912 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`" 18913 18914 18915cat >>confdefs.h <<_ACEOF 18916#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path" 18917_ACEOF 18918 18919 18920 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c" 18921 18922 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo" 18923 18924 18925 else 18926 18927 ENABLE_DNSTAP=0 18928 18929 18930 18931 fi 18932 18933 18934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5 18935$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; } 18936# on openBSD, the implicit rule make $< work. 18937# on Solaris, it does not work ($? is changed sources, $^ lists dependencies). 18938# gmake works. 18939cat >conftest.make <<EOF 18940all: conftest.lo 18941 18942conftest.lo foo.lo bla.lo: 18943 if test -f "\$<"; then touch \$@; fi 18944 18945.SUFFIXES: .lo 18946.c.lo: 18947 if test -f "\$<"; then touch \$@; fi 18948 18949conftest.lo: conftest.dir/conftest.c 18950EOF 18951mkdir conftest.dir 18952touch conftest.dir/conftest.c 18953rm -f conftest.lo conftest.c 18954${MAKE:-make} -f conftest.make >/dev/null 18955rm -f conftest.make conftest.c conftest.dir/conftest.c 18956rm -rf conftest.dir 18957if test ! -f conftest.lo; then 18958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18959$as_echo "no" >&6; } 18960 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source' 18961 SOURCEFILE='`cat .source`' 18962else 18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18964$as_echo "yes" >&6; } 18965 SOURCEDETERMINE=':' 18966 SOURCEFILE='$<' 18967fi 18968rm -f conftest.lo 18969 18970 18971 18972# see if we want to build the library or everything 18973ALLTARGET="alltargets" 18974INSTALLTARGET="install-all" 18975 18976# Check whether --with-libunbound-only was given. 18977if test "${with_libunbound_only+set}" = set; then : 18978 withval=$with_libunbound_only; 18979 if test "$withval" = "yes"; then 18980 ALLTARGET="lib" 18981 INSTALLTARGET="install-lib" 18982 fi 18983 18984fi 18985 18986 18987 18988 18989 18990 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5 18991$as_echo "$as_me: Stripping extension flags..." >&6;} 18992 18993 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then 18994 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`" 18995 18996$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h 18997 18998 fi 18999 19000 19001 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then 19002 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`" 19003 19004$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h 19005 19006 fi 19007 19008 19009 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then 19010 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`" 19011 19012$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h 19013 19014 fi 19015 19016 19017 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then 19018 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`" 19019 19020$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h 19021 19022 fi 19023 19024 19025 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then 19026 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`" 19027 19028$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h 19029 19030 fi 19031 19032 19033 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then 19034 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`" 19035 19036$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h 19037 19038 fi 19039 19040 19041 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then 19042 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`" 19043 19044$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h 19045 19046 fi 19047 19048 19049 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then 19050 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`" 19051 19052$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h 19053 19054 fi 19055 19056 19057LDFLAGS="$LATE_LDFLAGS $LDFLAGS" 19058 19059 19060cat >>confdefs.h <<_ACEOF 19061#define MAXSYSLOGMSGLEN 10240 19062_ACEOF 19063 19064 19065 19066 19067version=1.5.7 19068 19069date=`date +'%b %e, %Y'` 19070 19071 19072ac_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" 19073 19074ac_config_headers="$ac_config_headers config.h" 19075 19076cat >confcache <<\_ACEOF 19077# This file is a shell script that caches the results of configure 19078# tests run on this system so they can be shared between configure 19079# scripts and configure runs, see configure's option --config-cache. 19080# It is not useful on other systems. If it contains results you don't 19081# want to keep, you may remove or edit it. 19082# 19083# config.status only pays attention to the cache file if you give it 19084# the --recheck option to rerun configure. 19085# 19086# `ac_cv_env_foo' variables (set or unset) will be overridden when 19087# loading this file, other *unset* `ac_cv_foo' will be assigned the 19088# following values. 19089 19090_ACEOF 19091 19092# The following way of writing the cache mishandles newlines in values, 19093# but we know of no workaround that is simple, portable, and efficient. 19094# So, we kill variables containing newlines. 19095# Ultrix sh set writes to stderr and can't be redirected directly, 19096# and sets the high bit in the cache file unless we assign to the vars. 19097( 19098 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19099 eval ac_val=\$$ac_var 19100 case $ac_val in #( 19101 *${as_nl}*) 19102 case $ac_var in #( 19103 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19104$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19105 esac 19106 case $ac_var in #( 19107 _ | IFS | as_nl) ;; #( 19108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19109 *) { eval $ac_var=; unset $ac_var;} ;; 19110 esac ;; 19111 esac 19112 done 19113 19114 (set) 2>&1 | 19115 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19116 *${as_nl}ac_space=\ *) 19117 # `set' does not quote correctly, so add quotes: double-quote 19118 # substitution turns \\\\ into \\, and sed turns \\ into \. 19119 sed -n \ 19120 "s/'/'\\\\''/g; 19121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19122 ;; #( 19123 *) 19124 # `set' quotes correctly as required by POSIX, so do not add quotes. 19125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19126 ;; 19127 esac | 19128 sort 19129) | 19130 sed ' 19131 /^ac_cv_env_/b end 19132 t clear 19133 :clear 19134 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19135 t end 19136 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19137 :end' >>confcache 19138if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19139 if test -w "$cache_file"; then 19140 if test "x$cache_file" != "x/dev/null"; then 19141 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19142$as_echo "$as_me: updating cache $cache_file" >&6;} 19143 if test ! -f "$cache_file" || test -h "$cache_file"; then 19144 cat confcache >"$cache_file" 19145 else 19146 case $cache_file in #( 19147 */* | ?:*) 19148 mv -f confcache "$cache_file"$$ && 19149 mv -f "$cache_file"$$ "$cache_file" ;; #( 19150 *) 19151 mv -f confcache "$cache_file" ;; 19152 esac 19153 fi 19154 fi 19155 else 19156 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19157$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19158 fi 19159fi 19160rm -f confcache 19161 19162test "x$prefix" = xNONE && prefix=$ac_default_prefix 19163# Let make expand exec_prefix. 19164test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19165 19166DEFS=-DHAVE_CONFIG_H 19167 19168ac_libobjs= 19169ac_ltlibobjs= 19170U= 19171for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19172 # 1. Remove the extension, and $U if already installed. 19173 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19174 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19175 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19176 # will be set to the directory where LIBOBJS objects are built. 19177 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19178 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19179done 19180LIBOBJS=$ac_libobjs 19181 19182LTLIBOBJS=$ac_ltlibobjs 19183 19184 19185 19186: "${CONFIG_STATUS=./config.status}" 19187ac_write_fail=0 19188ac_clean_files_save=$ac_clean_files 19189ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19190{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19191$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19192as_write_fail=0 19193cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19194#! $SHELL 19195# Generated by $as_me. 19196# Run this file to recreate the current configuration. 19197# Compiler output produced by configure, useful for debugging 19198# configure, is in config.log if it exists. 19199 19200debug=false 19201ac_cs_recheck=false 19202ac_cs_silent=false 19203 19204SHELL=\${CONFIG_SHELL-$SHELL} 19205export SHELL 19206_ASEOF 19207cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19208## -------------------- ## 19209## M4sh Initialization. ## 19210## -------------------- ## 19211 19212# Be more Bourne compatible 19213DUALCASE=1; export DUALCASE # for MKS sh 19214if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19215 emulate sh 19216 NULLCMD=: 19217 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19218 # is contrary to our usage. Disable this feature. 19219 alias -g '${1+"$@"}'='"$@"' 19220 setopt NO_GLOB_SUBST 19221else 19222 case `(set -o) 2>/dev/null` in #( 19223 *posix*) : 19224 set -o posix ;; #( 19225 *) : 19226 ;; 19227esac 19228fi 19229 19230 19231as_nl=' 19232' 19233export as_nl 19234# Printing a long string crashes Solaris 7 /usr/bin/printf. 19235as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19236as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19237as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19238# Prefer a ksh shell builtin over an external printf program on Solaris, 19239# but without wasting forks for bash or zsh. 19240if test -z "$BASH_VERSION$ZSH_VERSION" \ 19241 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19242 as_echo='print -r --' 19243 as_echo_n='print -rn --' 19244elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19245 as_echo='printf %s\n' 19246 as_echo_n='printf %s' 19247else 19248 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19249 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19250 as_echo_n='/usr/ucb/echo -n' 19251 else 19252 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19253 as_echo_n_body='eval 19254 arg=$1; 19255 case $arg in #( 19256 *"$as_nl"*) 19257 expr "X$arg" : "X\\(.*\\)$as_nl"; 19258 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19259 esac; 19260 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19261 ' 19262 export as_echo_n_body 19263 as_echo_n='sh -c $as_echo_n_body as_echo' 19264 fi 19265 export as_echo_body 19266 as_echo='sh -c $as_echo_body as_echo' 19267fi 19268 19269# The user is always right. 19270if test "${PATH_SEPARATOR+set}" != set; then 19271 PATH_SEPARATOR=: 19272 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19273 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19274 PATH_SEPARATOR=';' 19275 } 19276fi 19277 19278 19279# IFS 19280# We need space, tab and new line, in precisely that order. Quoting is 19281# there to prevent editors from complaining about space-tab. 19282# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19283# splitting by setting IFS to empty value.) 19284IFS=" "" $as_nl" 19285 19286# Find who we are. Look in the path if we contain no directory separator. 19287as_myself= 19288case $0 in #(( 19289 *[\\/]* ) as_myself=$0 ;; 19290 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19291for as_dir in $PATH 19292do 19293 IFS=$as_save_IFS 19294 test -z "$as_dir" && as_dir=. 19295 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19296 done 19297IFS=$as_save_IFS 19298 19299 ;; 19300esac 19301# We did not find ourselves, most probably we were run as `sh COMMAND' 19302# in which case we are not to be found in the path. 19303if test "x$as_myself" = x; then 19304 as_myself=$0 19305fi 19306if test ! -f "$as_myself"; then 19307 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19308 exit 1 19309fi 19310 19311# Unset variables that we do not need and which cause bugs (e.g. in 19312# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19313# suppresses any "Segmentation fault" message there. '((' could 19314# trigger a bug in pdksh 5.2.14. 19315for as_var in BASH_ENV ENV MAIL MAILPATH 19316do eval test x\${$as_var+set} = xset \ 19317 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19318done 19319PS1='$ ' 19320PS2='> ' 19321PS4='+ ' 19322 19323# NLS nuisances. 19324LC_ALL=C 19325export LC_ALL 19326LANGUAGE=C 19327export LANGUAGE 19328 19329# CDPATH. 19330(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19331 19332 19333# as_fn_error STATUS ERROR [LINENO LOG_FD] 19334# ---------------------------------------- 19335# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19336# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19337# script with STATUS, using 1 if that was 0. 19338as_fn_error () 19339{ 19340 as_status=$1; test $as_status -eq 0 && as_status=1 19341 if test "$4"; then 19342 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19343 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19344 fi 19345 $as_echo "$as_me: error: $2" >&2 19346 as_fn_exit $as_status 19347} # as_fn_error 19348 19349 19350# as_fn_set_status STATUS 19351# ----------------------- 19352# Set $? to STATUS, without forking. 19353as_fn_set_status () 19354{ 19355 return $1 19356} # as_fn_set_status 19357 19358# as_fn_exit STATUS 19359# ----------------- 19360# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19361as_fn_exit () 19362{ 19363 set +e 19364 as_fn_set_status $1 19365 exit $1 19366} # as_fn_exit 19367 19368# as_fn_unset VAR 19369# --------------- 19370# Portably unset VAR. 19371as_fn_unset () 19372{ 19373 { eval $1=; unset $1;} 19374} 19375as_unset=as_fn_unset 19376# as_fn_append VAR VALUE 19377# ---------------------- 19378# Append the text in VALUE to the end of the definition contained in VAR. Take 19379# advantage of any shell optimizations that allow amortized linear growth over 19380# repeated appends, instead of the typical quadratic growth present in naive 19381# implementations. 19382if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19383 eval 'as_fn_append () 19384 { 19385 eval $1+=\$2 19386 }' 19387else 19388 as_fn_append () 19389 { 19390 eval $1=\$$1\$2 19391 } 19392fi # as_fn_append 19393 19394# as_fn_arith ARG... 19395# ------------------ 19396# Perform arithmetic evaluation on the ARGs, and store the result in the 19397# global $as_val. Take advantage of shells that can avoid forks. The arguments 19398# must be portable across $(()) and expr. 19399if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19400 eval 'as_fn_arith () 19401 { 19402 as_val=$(( $* )) 19403 }' 19404else 19405 as_fn_arith () 19406 { 19407 as_val=`expr "$@" || test $? -eq 1` 19408 } 19409fi # as_fn_arith 19410 19411 19412if expr a : '\(a\)' >/dev/null 2>&1 && 19413 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19414 as_expr=expr 19415else 19416 as_expr=false 19417fi 19418 19419if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19420 as_basename=basename 19421else 19422 as_basename=false 19423fi 19424 19425if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19426 as_dirname=dirname 19427else 19428 as_dirname=false 19429fi 19430 19431as_me=`$as_basename -- "$0" || 19432$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19433 X"$0" : 'X\(//\)$' \| \ 19434 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19435$as_echo X/"$0" | 19436 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19437 s//\1/ 19438 q 19439 } 19440 /^X\/\(\/\/\)$/{ 19441 s//\1/ 19442 q 19443 } 19444 /^X\/\(\/\).*/{ 19445 s//\1/ 19446 q 19447 } 19448 s/.*/./; q'` 19449 19450# Avoid depending upon Character Ranges. 19451as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19452as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19453as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19454as_cr_digits='0123456789' 19455as_cr_alnum=$as_cr_Letters$as_cr_digits 19456 19457ECHO_C= ECHO_N= ECHO_T= 19458case `echo -n x` in #((((( 19459-n*) 19460 case `echo 'xy\c'` in 19461 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19462 xy) ECHO_C='\c';; 19463 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19464 ECHO_T=' ';; 19465 esac;; 19466*) 19467 ECHO_N='-n';; 19468esac 19469 19470rm -f conf$$ conf$$.exe conf$$.file 19471if test -d conf$$.dir; then 19472 rm -f conf$$.dir/conf$$.file 19473else 19474 rm -f conf$$.dir 19475 mkdir conf$$.dir 2>/dev/null 19476fi 19477if (echo >conf$$.file) 2>/dev/null; then 19478 if ln -s conf$$.file conf$$ 2>/dev/null; then 19479 as_ln_s='ln -s' 19480 # ... but there are two gotchas: 19481 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19482 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19483 # In both cases, we have to default to `cp -pR'. 19484 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19485 as_ln_s='cp -pR' 19486 elif ln conf$$.file conf$$ 2>/dev/null; then 19487 as_ln_s=ln 19488 else 19489 as_ln_s='cp -pR' 19490 fi 19491else 19492 as_ln_s='cp -pR' 19493fi 19494rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19495rmdir conf$$.dir 2>/dev/null 19496 19497 19498# as_fn_mkdir_p 19499# ------------- 19500# Create "$as_dir" as a directory, including parents if necessary. 19501as_fn_mkdir_p () 19502{ 19503 19504 case $as_dir in #( 19505 -*) as_dir=./$as_dir;; 19506 esac 19507 test -d "$as_dir" || eval $as_mkdir_p || { 19508 as_dirs= 19509 while :; do 19510 case $as_dir in #( 19511 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19512 *) as_qdir=$as_dir;; 19513 esac 19514 as_dirs="'$as_qdir' $as_dirs" 19515 as_dir=`$as_dirname -- "$as_dir" || 19516$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19517 X"$as_dir" : 'X\(//\)[^/]' \| \ 19518 X"$as_dir" : 'X\(//\)$' \| \ 19519 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19520$as_echo X"$as_dir" | 19521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19522 s//\1/ 19523 q 19524 } 19525 /^X\(\/\/\)[^/].*/{ 19526 s//\1/ 19527 q 19528 } 19529 /^X\(\/\/\)$/{ 19530 s//\1/ 19531 q 19532 } 19533 /^X\(\/\).*/{ 19534 s//\1/ 19535 q 19536 } 19537 s/.*/./; q'` 19538 test -d "$as_dir" && break 19539 done 19540 test -z "$as_dirs" || eval "mkdir $as_dirs" 19541 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19542 19543 19544} # as_fn_mkdir_p 19545if mkdir -p . 2>/dev/null; then 19546 as_mkdir_p='mkdir -p "$as_dir"' 19547else 19548 test -d ./-p && rmdir ./-p 19549 as_mkdir_p=false 19550fi 19551 19552 19553# as_fn_executable_p FILE 19554# ----------------------- 19555# Test if FILE is an executable regular file. 19556as_fn_executable_p () 19557{ 19558 test -f "$1" && test -x "$1" 19559} # as_fn_executable_p 19560as_test_x='test -x' 19561as_executable_p=as_fn_executable_p 19562 19563# Sed expression to map a string onto a valid CPP name. 19564as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19565 19566# Sed expression to map a string onto a valid variable name. 19567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19568 19569 19570exec 6>&1 19571## ----------------------------------- ## 19572## Main body of $CONFIG_STATUS script. ## 19573## ----------------------------------- ## 19574_ASEOF 19575test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19576 19577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19578# Save the log message, to keep $0 and so on meaningful, and to 19579# report actual input values of CONFIG_FILES etc. instead of their 19580# values after options handling. 19581ac_log=" 19582This file was extended by unbound $as_me 1.5.7, which was 19583generated by GNU Autoconf 2.69. Invocation command line was 19584 19585 CONFIG_FILES = $CONFIG_FILES 19586 CONFIG_HEADERS = $CONFIG_HEADERS 19587 CONFIG_LINKS = $CONFIG_LINKS 19588 CONFIG_COMMANDS = $CONFIG_COMMANDS 19589 $ $0 $@ 19590 19591on `(hostname || uname -n) 2>/dev/null | sed 1q` 19592" 19593 19594_ACEOF 19595 19596case $ac_config_files in *" 19597"*) set x $ac_config_files; shift; ac_config_files=$*;; 19598esac 19599 19600case $ac_config_headers in *" 19601"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19602esac 19603 19604 19605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19606# Files that config.status was made for. 19607config_files="$ac_config_files" 19608config_headers="$ac_config_headers" 19609config_commands="$ac_config_commands" 19610 19611_ACEOF 19612 19613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19614ac_cs_usage="\ 19615\`$as_me' instantiates files and other configuration actions 19616from templates according to the current configuration. Unless the files 19617and actions are specified as TAGs, all are instantiated by default. 19618 19619Usage: $0 [OPTION]... [TAG]... 19620 19621 -h, --help print this help, then exit 19622 -V, --version print version number and configuration settings, then exit 19623 --config print configuration, then exit 19624 -q, --quiet, --silent 19625 do not print progress messages 19626 -d, --debug don't remove temporary files 19627 --recheck update $as_me by reconfiguring in the same conditions 19628 --file=FILE[:TEMPLATE] 19629 instantiate the configuration file FILE 19630 --header=FILE[:TEMPLATE] 19631 instantiate the configuration header FILE 19632 19633Configuration files: 19634$config_files 19635 19636Configuration headers: 19637$config_headers 19638 19639Configuration commands: 19640$config_commands 19641 19642Report bugs to <unbound-bugs@nlnetlabs.nl>." 19643 19644_ACEOF 19645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19646ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19647ac_cs_version="\\ 19648unbound config.status 1.5.7 19649configured by $0, generated by GNU Autoconf 2.69, 19650 with options \\"\$ac_cs_config\\" 19651 19652Copyright (C) 2012 Free Software Foundation, Inc. 19653This config.status script is free software; the Free Software Foundation 19654gives unlimited permission to copy, distribute and modify it." 19655 19656ac_pwd='$ac_pwd' 19657srcdir='$srcdir' 19658AWK='$AWK' 19659test -n "\$AWK" || AWK=awk 19660_ACEOF 19661 19662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19663# The default lists apply if the user does not specify any file. 19664ac_need_defaults=: 19665while test $# != 0 19666do 19667 case $1 in 19668 --*=?*) 19669 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19670 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19671 ac_shift=: 19672 ;; 19673 --*=) 19674 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19675 ac_optarg= 19676 ac_shift=: 19677 ;; 19678 *) 19679 ac_option=$1 19680 ac_optarg=$2 19681 ac_shift=shift 19682 ;; 19683 esac 19684 19685 case $ac_option in 19686 # Handling of the options. 19687 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19688 ac_cs_recheck=: ;; 19689 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19690 $as_echo "$ac_cs_version"; exit ;; 19691 --config | --confi | --conf | --con | --co | --c ) 19692 $as_echo "$ac_cs_config"; exit ;; 19693 --debug | --debu | --deb | --de | --d | -d ) 19694 debug=: ;; 19695 --file | --fil | --fi | --f ) 19696 $ac_shift 19697 case $ac_optarg in 19698 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19699 '') as_fn_error $? "missing file argument" ;; 19700 esac 19701 as_fn_append CONFIG_FILES " '$ac_optarg'" 19702 ac_need_defaults=false;; 19703 --header | --heade | --head | --hea ) 19704 $ac_shift 19705 case $ac_optarg in 19706 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19707 esac 19708 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19709 ac_need_defaults=false;; 19710 --he | --h) 19711 # Conflict between --help and --header 19712 as_fn_error $? "ambiguous option: \`$1' 19713Try \`$0 --help' for more information.";; 19714 --help | --hel | -h ) 19715 $as_echo "$ac_cs_usage"; exit ;; 19716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19717 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19718 ac_cs_silent=: ;; 19719 19720 # This is an error. 19721 -*) as_fn_error $? "unrecognized option: \`$1' 19722Try \`$0 --help' for more information." ;; 19723 19724 *) as_fn_append ac_config_targets " $1" 19725 ac_need_defaults=false ;; 19726 19727 esac 19728 shift 19729done 19730 19731ac_configure_extra_args= 19732 19733if $ac_cs_silent; then 19734 exec 6>/dev/null 19735 ac_configure_extra_args="$ac_configure_extra_args --silent" 19736fi 19737 19738_ACEOF 19739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19740if \$ac_cs_recheck; then 19741 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19742 shift 19743 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19744 CONFIG_SHELL='$SHELL' 19745 export CONFIG_SHELL 19746 exec "\$@" 19747fi 19748 19749_ACEOF 19750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19751exec 5>>config.log 19752{ 19753 echo 19754 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19755## Running $as_me. ## 19756_ASBOX 19757 $as_echo "$ac_log" 19758} >&5 19759 19760_ACEOF 19761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19762# 19763# INIT-COMMANDS 19764# 19765 19766 19767# The HP-UX ksh and POSIX shell print the target directory to stdout 19768# if CDPATH is set. 19769(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19770 19771sed_quote_subst='$sed_quote_subst' 19772double_quote_subst='$double_quote_subst' 19773delay_variable_subst='$delay_variable_subst' 19774macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19775macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19776enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19777enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19778pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19779enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19780SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19781ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19782PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19783host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19784host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19785host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19786build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19787build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19788build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19789SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19790Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19791GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19792EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19793FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19794LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19795NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19796LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19797max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19798ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19799exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19800lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19801lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19802lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19803lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19804lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19805reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19806reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19807OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19808deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19809file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19810file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19811want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19812DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19813sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19814AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19815AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19816archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19817STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19818RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19819old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19820old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19821old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19822lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19823CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19824CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19825compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19826GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19827lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19828lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19829lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19830lt_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"`' 19831nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19832lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19833objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19834MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19835lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19836lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19837lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19838lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19839lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19840need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19841MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19842DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19843NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19844LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19845OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19846OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19847libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19848shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19849extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19850archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19851enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19852export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19853whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19854compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19855old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19856old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19857archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19858archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19859module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19860module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19861with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19862allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19863no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19864hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19865hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19866hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19867hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19868hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19869hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19870hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19871inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19872link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19873always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19874export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19875exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19876include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19877prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19878postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19879file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19880variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19881need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19882need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19883version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19884runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19885shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19886shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19887libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19888library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19889soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19890install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19891postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19892postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19893finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19894finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19895hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19896sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19897sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19898hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19899enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19900enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19901enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19902old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19903striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19904 19905LTCC='$LTCC' 19906LTCFLAGS='$LTCFLAGS' 19907compiler='$compiler_DEFAULT' 19908 19909# A function that is used when there is no print builtin or printf. 19910func_fallback_echo () 19911{ 19912 eval 'cat <<_LTECHO_EOF 19913\$1 19914_LTECHO_EOF' 19915} 19916 19917# Quote evaled strings. 19918for var in SHELL \ 19919ECHO \ 19920PATH_SEPARATOR \ 19921SED \ 19922GREP \ 19923EGREP \ 19924FGREP \ 19925LD \ 19926NM \ 19927LN_S \ 19928lt_SP2NL \ 19929lt_NL2SP \ 19930reload_flag \ 19931OBJDUMP \ 19932deplibs_check_method \ 19933file_magic_cmd \ 19934file_magic_glob \ 19935want_nocaseglob \ 19936DLLTOOL \ 19937sharedlib_from_linklib_cmd \ 19938AR \ 19939AR_FLAGS \ 19940archiver_list_spec \ 19941STRIP \ 19942RANLIB \ 19943CC \ 19944CFLAGS \ 19945compiler \ 19946lt_cv_sys_global_symbol_pipe \ 19947lt_cv_sys_global_symbol_to_cdecl \ 19948lt_cv_sys_global_symbol_to_c_name_address \ 19949lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19950nm_file_list_spec \ 19951lt_prog_compiler_no_builtin_flag \ 19952lt_prog_compiler_pic \ 19953lt_prog_compiler_wl \ 19954lt_prog_compiler_static \ 19955lt_cv_prog_compiler_c_o \ 19956need_locks \ 19957MANIFEST_TOOL \ 19958DSYMUTIL \ 19959NMEDIT \ 19960LIPO \ 19961OTOOL \ 19962OTOOL64 \ 19963shrext_cmds \ 19964export_dynamic_flag_spec \ 19965whole_archive_flag_spec \ 19966compiler_needs_object \ 19967with_gnu_ld \ 19968allow_undefined_flag \ 19969no_undefined_flag \ 19970hardcode_libdir_flag_spec \ 19971hardcode_libdir_separator \ 19972exclude_expsyms \ 19973include_expsyms \ 19974file_list_spec \ 19975variables_saved_for_relink \ 19976libname_spec \ 19977library_names_spec \ 19978soname_spec \ 19979install_override_mode \ 19980finish_eval \ 19981old_striplib \ 19982striplib; do 19983 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19984 *[\\\\\\\`\\"\\\$]*) 19985 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19986 ;; 19987 *) 19988 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19989 ;; 19990 esac 19991done 19992 19993# Double-quote double-evaled strings. 19994for var in reload_cmds \ 19995old_postinstall_cmds \ 19996old_postuninstall_cmds \ 19997old_archive_cmds \ 19998extract_expsyms_cmds \ 19999old_archive_from_new_cmds \ 20000old_archive_from_expsyms_cmds \ 20001archive_cmds \ 20002archive_expsym_cmds \ 20003module_cmds \ 20004module_expsym_cmds \ 20005export_symbols_cmds \ 20006prelink_cmds \ 20007postlink_cmds \ 20008postinstall_cmds \ 20009postuninstall_cmds \ 20010finish_cmds \ 20011sys_lib_search_path_spec \ 20012sys_lib_dlsearch_path_spec; do 20013 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20014 *[\\\\\\\`\\"\\\$]*) 20015 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20016 ;; 20017 *) 20018 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20019 ;; 20020 esac 20021done 20022 20023ac_aux_dir='$ac_aux_dir' 20024xsi_shell='$xsi_shell' 20025lt_shell_append='$lt_shell_append' 20026 20027# See if we are running on zsh, and set the options which allow our 20028# commands through without removal of \ escapes INIT. 20029if test -n "\${ZSH_VERSION+set}" ; then 20030 setopt NO_GLOB_SUBST 20031fi 20032 20033 20034 PACKAGE='$PACKAGE' 20035 VERSION='$VERSION' 20036 TIMESTAMP='$TIMESTAMP' 20037 RM='$RM' 20038 ofile='$ofile' 20039 20040 20041 20042 20043_ACEOF 20044 20045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20046 20047# Handling of arguments. 20048for ac_config_target in $ac_config_targets 20049do 20050 case $ac_config_target in 20051 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20052 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 20053 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20054 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; 20055 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;; 20056 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;; 20057 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;; 20058 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;; 20059 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;; 20060 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;; 20061 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;; 20062 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;; 20063 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;; 20064 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20065 20066 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20067 esac 20068done 20069 20070 20071# If the user did not use the arguments to specify the items to instantiate, 20072# then the envvar interface is used. Set only those that are not. 20073# We use the long form for the default assignment because of an extremely 20074# bizarre bug on SunOS 4.1.3. 20075if $ac_need_defaults; then 20076 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20077 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20078 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20079fi 20080 20081# Have a temporary directory for convenience. Make it in the build tree 20082# simply because there is no reason against having it here, and in addition, 20083# creating and moving files from /tmp can sometimes cause problems. 20084# Hook for its removal unless debugging. 20085# Note that there is a small window in which the directory will not be cleaned: 20086# after its creation but before its name has been assigned to `$tmp'. 20087$debug || 20088{ 20089 tmp= ac_tmp= 20090 trap 'exit_status=$? 20091 : "${ac_tmp:=$tmp}" 20092 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20093' 0 20094 trap 'as_fn_exit 1' 1 2 13 15 20095} 20096# Create a (secure) tmp directory for tmp files. 20097 20098{ 20099 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20100 test -d "$tmp" 20101} || 20102{ 20103 tmp=./conf$$-$RANDOM 20104 (umask 077 && mkdir "$tmp") 20105} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20106ac_tmp=$tmp 20107 20108# Set up the scripts for CONFIG_FILES section. 20109# No need to generate them if there are no CONFIG_FILES. 20110# This happens for instance with `./config.status config.h'. 20111if test -n "$CONFIG_FILES"; then 20112 20113 20114ac_cr=`echo X | tr X '\015'` 20115# On cygwin, bash can eat \r inside `` if the user requested igncr. 20116# But we know of no other shell where ac_cr would be empty at this 20117# point, so we can use a bashism as a fallback. 20118if test "x$ac_cr" = x; then 20119 eval ac_cr=\$\'\\r\' 20120fi 20121ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20122if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20123 ac_cs_awk_cr='\\r' 20124else 20125 ac_cs_awk_cr=$ac_cr 20126fi 20127 20128echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20129_ACEOF 20130 20131 20132{ 20133 echo "cat >conf$$subs.awk <<_ACEOF" && 20134 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20135 echo "_ACEOF" 20136} >conf$$subs.sh || 20137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20138ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20139ac_delim='%!_!# ' 20140for ac_last_try in false false false false false :; do 20141 . ./conf$$subs.sh || 20142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20143 20144 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20145 if test $ac_delim_n = $ac_delim_num; then 20146 break 20147 elif $ac_last_try; then 20148 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20149 else 20150 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20151 fi 20152done 20153rm -f conf$$subs.sh 20154 20155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20156cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20157_ACEOF 20158sed -n ' 20159h 20160s/^/S["/; s/!.*/"]=/ 20161p 20162g 20163s/^[^!]*!// 20164:repl 20165t repl 20166s/'"$ac_delim"'$// 20167t delim 20168:nl 20169h 20170s/\(.\{148\}\)..*/\1/ 20171t more1 20172s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20173p 20174n 20175b repl 20176:more1 20177s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20178p 20179g 20180s/.\{148\}// 20181t nl 20182:delim 20183h 20184s/\(.\{148\}\)..*/\1/ 20185t more2 20186s/["\\]/\\&/g; s/^/"/; s/$/"/ 20187p 20188b 20189:more2 20190s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20191p 20192g 20193s/.\{148\}// 20194t delim 20195' <conf$$subs.awk | sed ' 20196/^[^""]/{ 20197 N 20198 s/\n// 20199} 20200' >>$CONFIG_STATUS || ac_write_fail=1 20201rm -f conf$$subs.awk 20202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20203_ACAWK 20204cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20205 for (key in S) S_is_set[key] = 1 20206 FS = "" 20207 20208} 20209{ 20210 line = $ 0 20211 nfields = split(line, field, "@") 20212 substed = 0 20213 len = length(field[1]) 20214 for (i = 2; i < nfields; i++) { 20215 key = field[i] 20216 keylen = length(key) 20217 if (S_is_set[key]) { 20218 value = S[key] 20219 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20220 len += length(value) + length(field[++i]) 20221 substed = 1 20222 } else 20223 len += 1 + keylen 20224 } 20225 20226 print line 20227} 20228 20229_ACAWK 20230_ACEOF 20231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20232if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20233 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20234else 20235 cat 20236fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20237 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20238_ACEOF 20239 20240# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20241# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20242# trailing colons and then remove the whole line if VPATH becomes empty 20243# (actually we leave an empty line to preserve line numbers). 20244if test "x$srcdir" = x.; then 20245 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20246h 20247s/// 20248s/^/:/ 20249s/[ ]*$/:/ 20250s/:\$(srcdir):/:/g 20251s/:\${srcdir}:/:/g 20252s/:@srcdir@:/:/g 20253s/^:*// 20254s/:*$// 20255x 20256s/\(=[ ]*\).*/\1/ 20257G 20258s/\n// 20259s/^[^=]*=[ ]*$// 20260}' 20261fi 20262 20263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20264fi # test -n "$CONFIG_FILES" 20265 20266# Set up the scripts for CONFIG_HEADERS section. 20267# No need to generate them if there are no CONFIG_HEADERS. 20268# This happens for instance with `./config.status Makefile'. 20269if test -n "$CONFIG_HEADERS"; then 20270cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20271BEGIN { 20272_ACEOF 20273 20274# Transform confdefs.h into an awk script `defines.awk', embedded as 20275# here-document in config.status, that substitutes the proper values into 20276# config.h.in to produce config.h. 20277 20278# Create a delimiter string that does not exist in confdefs.h, to ease 20279# handling of long lines. 20280ac_delim='%!_!# ' 20281for ac_last_try in false false :; do 20282 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20283 if test -z "$ac_tt"; then 20284 break 20285 elif $ac_last_try; then 20286 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20287 else 20288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20289 fi 20290done 20291 20292# For the awk script, D is an array of macro values keyed by name, 20293# likewise P contains macro parameters if any. Preserve backslash 20294# newline sequences. 20295 20296ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20297sed -n ' 20298s/.\{148\}/&'"$ac_delim"'/g 20299t rset 20300:rset 20301s/^[ ]*#[ ]*define[ ][ ]*/ / 20302t def 20303d 20304:def 20305s/\\$// 20306t bsnl 20307s/["\\]/\\&/g 20308s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20309D["\1"]=" \3"/p 20310s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20311d 20312:bsnl 20313s/["\\]/\\&/g 20314s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20315D["\1"]=" \3\\\\\\n"\\/p 20316t cont 20317s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20318t cont 20319d 20320:cont 20321n 20322s/.\{148\}/&'"$ac_delim"'/g 20323t clear 20324:clear 20325s/\\$// 20326t bsnlc 20327s/["\\]/\\&/g; s/^/"/; s/$/"/p 20328d 20329:bsnlc 20330s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20331b cont 20332' <confdefs.h | sed ' 20333s/'"$ac_delim"'/"\\\ 20334"/g' >>$CONFIG_STATUS || ac_write_fail=1 20335 20336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20337 for (key in D) D_is_set[key] = 1 20338 FS = "" 20339} 20340/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20341 line = \$ 0 20342 split(line, arg, " ") 20343 if (arg[1] == "#") { 20344 defundef = arg[2] 20345 mac1 = arg[3] 20346 } else { 20347 defundef = substr(arg[1], 2) 20348 mac1 = arg[2] 20349 } 20350 split(mac1, mac2, "(") #) 20351 macro = mac2[1] 20352 prefix = substr(line, 1, index(line, defundef) - 1) 20353 if (D_is_set[macro]) { 20354 # Preserve the white space surrounding the "#". 20355 print prefix "define", macro P[macro] D[macro] 20356 next 20357 } else { 20358 # Replace #undef with comments. This is necessary, for example, 20359 # in the case of _POSIX_SOURCE, which is predefined and required 20360 # on some systems where configure will not decide to define it. 20361 if (defundef == "undef") { 20362 print "/*", prefix defundef, macro, "*/" 20363 next 20364 } 20365 } 20366} 20367{ print } 20368_ACAWK 20369_ACEOF 20370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20371 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20372fi # test -n "$CONFIG_HEADERS" 20373 20374 20375eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20376shift 20377for ac_tag 20378do 20379 case $ac_tag in 20380 :[FHLC]) ac_mode=$ac_tag; continue;; 20381 esac 20382 case $ac_mode$ac_tag in 20383 :[FHL]*:*);; 20384 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20385 :[FH]-) ac_tag=-:-;; 20386 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20387 esac 20388 ac_save_IFS=$IFS 20389 IFS=: 20390 set x $ac_tag 20391 IFS=$ac_save_IFS 20392 shift 20393 ac_file=$1 20394 shift 20395 20396 case $ac_mode in 20397 :L) ac_source=$1;; 20398 :[FH]) 20399 ac_file_inputs= 20400 for ac_f 20401 do 20402 case $ac_f in 20403 -) ac_f="$ac_tmp/stdin";; 20404 *) # Look for the file first in the build tree, then in the source tree 20405 # (if the path is not absolute). The absolute path cannot be DOS-style, 20406 # because $ac_f cannot contain `:'. 20407 test -f "$ac_f" || 20408 case $ac_f in 20409 [\\/$]*) false;; 20410 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20411 esac || 20412 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20413 esac 20414 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20415 as_fn_append ac_file_inputs " '$ac_f'" 20416 done 20417 20418 # Let's still pretend it is `configure' which instantiates (i.e., don't 20419 # use $as_me), people would be surprised to read: 20420 # /* config.h. Generated by config.status. */ 20421 configure_input='Generated from '` 20422 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20423 `' by configure.' 20424 if test x"$ac_file" != x-; then 20425 configure_input="$ac_file. $configure_input" 20426 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20427$as_echo "$as_me: creating $ac_file" >&6;} 20428 fi 20429 # Neutralize special characters interpreted by sed in replacement strings. 20430 case $configure_input in #( 20431 *\&* | *\|* | *\\* ) 20432 ac_sed_conf_input=`$as_echo "$configure_input" | 20433 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20434 *) ac_sed_conf_input=$configure_input;; 20435 esac 20436 20437 case $ac_tag in 20438 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20439 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20440 esac 20441 ;; 20442 esac 20443 20444 ac_dir=`$as_dirname -- "$ac_file" || 20445$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20446 X"$ac_file" : 'X\(//\)[^/]' \| \ 20447 X"$ac_file" : 'X\(//\)$' \| \ 20448 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20449$as_echo X"$ac_file" | 20450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20451 s//\1/ 20452 q 20453 } 20454 /^X\(\/\/\)[^/].*/{ 20455 s//\1/ 20456 q 20457 } 20458 /^X\(\/\/\)$/{ 20459 s//\1/ 20460 q 20461 } 20462 /^X\(\/\).*/{ 20463 s//\1/ 20464 q 20465 } 20466 s/.*/./; q'` 20467 as_dir="$ac_dir"; as_fn_mkdir_p 20468 ac_builddir=. 20469 20470case "$ac_dir" in 20471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20472*) 20473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20474 # A ".." for each directory in $ac_dir_suffix. 20475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20476 case $ac_top_builddir_sub in 20477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20479 esac ;; 20480esac 20481ac_abs_top_builddir=$ac_pwd 20482ac_abs_builddir=$ac_pwd$ac_dir_suffix 20483# for backward compatibility: 20484ac_top_builddir=$ac_top_build_prefix 20485 20486case $srcdir in 20487 .) # We are building in place. 20488 ac_srcdir=. 20489 ac_top_srcdir=$ac_top_builddir_sub 20490 ac_abs_top_srcdir=$ac_pwd ;; 20491 [\\/]* | ?:[\\/]* ) # Absolute name. 20492 ac_srcdir=$srcdir$ac_dir_suffix; 20493 ac_top_srcdir=$srcdir 20494 ac_abs_top_srcdir=$srcdir ;; 20495 *) # Relative name. 20496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20497 ac_top_srcdir=$ac_top_build_prefix$srcdir 20498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20499esac 20500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20501 20502 20503 case $ac_mode in 20504 :F) 20505 # 20506 # CONFIG_FILE 20507 # 20508 20509_ACEOF 20510 20511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20512# If the template does not know about datarootdir, expand it. 20513# FIXME: This hack should be removed a few years after 2.60. 20514ac_datarootdir_hack=; ac_datarootdir_seen= 20515ac_sed_dataroot=' 20516/datarootdir/ { 20517 p 20518 q 20519} 20520/@datadir@/p 20521/@docdir@/p 20522/@infodir@/p 20523/@localedir@/p 20524/@mandir@/p' 20525case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20526*datarootdir*) ac_datarootdir_seen=yes;; 20527*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20529$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20530_ACEOF 20531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20532 ac_datarootdir_hack=' 20533 s&@datadir@&$datadir&g 20534 s&@docdir@&$docdir&g 20535 s&@infodir@&$infodir&g 20536 s&@localedir@&$localedir&g 20537 s&@mandir@&$mandir&g 20538 s&\\\${datarootdir}&$datarootdir&g' ;; 20539esac 20540_ACEOF 20541 20542# Neutralize VPATH when `$srcdir' = `.'. 20543# Shell code in configure.ac might set extrasub. 20544# FIXME: do we really want to maintain this feature? 20545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20546ac_sed_extra="$ac_vpsub 20547$extrasub 20548_ACEOF 20549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20550:t 20551/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20552s|@configure_input@|$ac_sed_conf_input|;t t 20553s&@top_builddir@&$ac_top_builddir_sub&;t t 20554s&@top_build_prefix@&$ac_top_build_prefix&;t t 20555s&@srcdir@&$ac_srcdir&;t t 20556s&@abs_srcdir@&$ac_abs_srcdir&;t t 20557s&@top_srcdir@&$ac_top_srcdir&;t t 20558s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20559s&@builddir@&$ac_builddir&;t t 20560s&@abs_builddir@&$ac_abs_builddir&;t t 20561s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20562$ac_datarootdir_hack 20563" 20564eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20565 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20566 20567test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20568 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20569 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20570 "$ac_tmp/out"`; test -z "$ac_out"; } && 20571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20572which seems to be undefined. Please make sure it is defined" >&5 20573$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20574which seems to be undefined. Please make sure it is defined" >&2;} 20575 20576 rm -f "$ac_tmp/stdin" 20577 case $ac_file in 20578 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20579 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20580 esac \ 20581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20582 ;; 20583 :H) 20584 # 20585 # CONFIG_HEADER 20586 # 20587 if test x"$ac_file" != x-; then 20588 { 20589 $as_echo "/* $configure_input */" \ 20590 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20591 } >"$ac_tmp/config.h" \ 20592 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20593 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20594 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20595$as_echo "$as_me: $ac_file is unchanged" >&6;} 20596 else 20597 rm -f "$ac_file" 20598 mv "$ac_tmp/config.h" "$ac_file" \ 20599 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20600 fi 20601 else 20602 $as_echo "/* $configure_input */" \ 20603 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20604 || as_fn_error $? "could not create -" "$LINENO" 5 20605 fi 20606 ;; 20607 20608 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20609$as_echo "$as_me: executing $ac_file commands" >&6;} 20610 ;; 20611 esac 20612 20613 20614 case $ac_file$ac_mode in 20615 "libtool":C) 20616 20617 # See if we are running on zsh, and set the options which allow our 20618 # commands through without removal of \ escapes. 20619 if test -n "${ZSH_VERSION+set}" ; then 20620 setopt NO_GLOB_SUBST 20621 fi 20622 20623 cfgfile="${ofile}T" 20624 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20625 $RM "$cfgfile" 20626 20627 cat <<_LT_EOF >> "$cfgfile" 20628#! $SHELL 20629 20630# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20631# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20632# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20633# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20634# 20635# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20636# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20637# Foundation, Inc. 20638# Written by Gordon Matzigkeit, 1996 20639# 20640# This file is part of GNU Libtool. 20641# 20642# GNU Libtool is free software; you can redistribute it and/or 20643# modify it under the terms of the GNU General Public License as 20644# published by the Free Software Foundation; either version 2 of 20645# the License, or (at your option) any later version. 20646# 20647# As a special exception to the GNU General Public License, 20648# if you distribute this file as part of a program or library that 20649# is built using GNU Libtool, you may include this file under the 20650# same distribution terms that you use for the rest of that program. 20651# 20652# GNU Libtool is distributed in the hope that it will be useful, 20653# but WITHOUT ANY WARRANTY; without even the implied warranty of 20654# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20655# GNU General Public License for more details. 20656# 20657# You should have received a copy of the GNU General Public License 20658# along with GNU Libtool; see the file COPYING. If not, a copy 20659# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20660# obtained by writing to the Free Software Foundation, Inc., 20661# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20662 20663 20664# The names of the tagged configurations supported by this script. 20665available_tags="" 20666 20667# ### BEGIN LIBTOOL CONFIG 20668 20669# Which release of libtool.m4 was used? 20670macro_version=$macro_version 20671macro_revision=$macro_revision 20672 20673# Whether or not to build shared libraries. 20674build_libtool_libs=$enable_shared 20675 20676# Whether or not to build static libraries. 20677build_old_libs=$enable_static 20678 20679# What type of objects to build. 20680pic_mode=$pic_mode 20681 20682# Whether or not to optimize for fast installation. 20683fast_install=$enable_fast_install 20684 20685# Shell to use when invoking shell scripts. 20686SHELL=$lt_SHELL 20687 20688# An echo program that protects backslashes. 20689ECHO=$lt_ECHO 20690 20691# The PATH separator for the build system. 20692PATH_SEPARATOR=$lt_PATH_SEPARATOR 20693 20694# The host system. 20695host_alias=$host_alias 20696host=$host 20697host_os=$host_os 20698 20699# The build system. 20700build_alias=$build_alias 20701build=$build 20702build_os=$build_os 20703 20704# A sed program that does not truncate output. 20705SED=$lt_SED 20706 20707# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20708Xsed="\$SED -e 1s/^X//" 20709 20710# A grep program that handles long lines. 20711GREP=$lt_GREP 20712 20713# An ERE matcher. 20714EGREP=$lt_EGREP 20715 20716# A literal string matcher. 20717FGREP=$lt_FGREP 20718 20719# A BSD- or MS-compatible name lister. 20720NM=$lt_NM 20721 20722# Whether we need soft or hard links. 20723LN_S=$lt_LN_S 20724 20725# What is the maximum length of a command? 20726max_cmd_len=$max_cmd_len 20727 20728# Object file suffix (normally "o"). 20729objext=$ac_objext 20730 20731# Executable file suffix (normally ""). 20732exeext=$exeext 20733 20734# whether the shell understands "unset". 20735lt_unset=$lt_unset 20736 20737# turn spaces into newlines. 20738SP2NL=$lt_lt_SP2NL 20739 20740# turn newlines into spaces. 20741NL2SP=$lt_lt_NL2SP 20742 20743# convert \$build file names to \$host format. 20744to_host_file_cmd=$lt_cv_to_host_file_cmd 20745 20746# convert \$build files to toolchain format. 20747to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20748 20749# An object symbol dumper. 20750OBJDUMP=$lt_OBJDUMP 20751 20752# Method to check whether dependent libraries are shared objects. 20753deplibs_check_method=$lt_deplibs_check_method 20754 20755# Command to use when deplibs_check_method = "file_magic". 20756file_magic_cmd=$lt_file_magic_cmd 20757 20758# How to find potential files when deplibs_check_method = "file_magic". 20759file_magic_glob=$lt_file_magic_glob 20760 20761# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20762want_nocaseglob=$lt_want_nocaseglob 20763 20764# DLL creation program. 20765DLLTOOL=$lt_DLLTOOL 20766 20767# Command to associate shared and link libraries. 20768sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20769 20770# The archiver. 20771AR=$lt_AR 20772 20773# Flags to create an archive. 20774AR_FLAGS=$lt_AR_FLAGS 20775 20776# How to feed a file listing to the archiver. 20777archiver_list_spec=$lt_archiver_list_spec 20778 20779# A symbol stripping program. 20780STRIP=$lt_STRIP 20781 20782# Commands used to install an old-style archive. 20783RANLIB=$lt_RANLIB 20784old_postinstall_cmds=$lt_old_postinstall_cmds 20785old_postuninstall_cmds=$lt_old_postuninstall_cmds 20786 20787# Whether to use a lock for old archive extraction. 20788lock_old_archive_extraction=$lock_old_archive_extraction 20789 20790# A C compiler. 20791LTCC=$lt_CC 20792 20793# LTCC compiler flags. 20794LTCFLAGS=$lt_CFLAGS 20795 20796# Take the output of nm and produce a listing of raw symbols and C names. 20797global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20798 20799# Transform the output of nm in a proper C declaration. 20800global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20801 20802# Transform the output of nm in a C name address pair. 20803global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20804 20805# Transform the output of nm in a C name address pair when lib prefix is needed. 20806global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20807 20808# Specify filename containing input files for \$NM. 20809nm_file_list_spec=$lt_nm_file_list_spec 20810 20811# The root where to search for dependent libraries,and in which our libraries should be installed. 20812lt_sysroot=$lt_sysroot 20813 20814# The name of the directory that contains temporary libtool files. 20815objdir=$objdir 20816 20817# Used to examine libraries when file_magic_cmd begins with "file". 20818MAGIC_CMD=$MAGIC_CMD 20819 20820# Must we lock files when doing compilation? 20821need_locks=$lt_need_locks 20822 20823# Manifest tool. 20824MANIFEST_TOOL=$lt_MANIFEST_TOOL 20825 20826# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20827DSYMUTIL=$lt_DSYMUTIL 20828 20829# Tool to change global to local symbols on Mac OS X. 20830NMEDIT=$lt_NMEDIT 20831 20832# Tool to manipulate fat objects and archives on Mac OS X. 20833LIPO=$lt_LIPO 20834 20835# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20836OTOOL=$lt_OTOOL 20837 20838# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20839OTOOL64=$lt_OTOOL64 20840 20841# Old archive suffix (normally "a"). 20842libext=$libext 20843 20844# Shared library suffix (normally ".so"). 20845shrext_cmds=$lt_shrext_cmds 20846 20847# The commands to extract the exported symbol list from a shared archive. 20848extract_expsyms_cmds=$lt_extract_expsyms_cmds 20849 20850# Variables whose values should be saved in libtool wrapper scripts and 20851# restored at link time. 20852variables_saved_for_relink=$lt_variables_saved_for_relink 20853 20854# Do we need the "lib" prefix for modules? 20855need_lib_prefix=$need_lib_prefix 20856 20857# Do we need a version for libraries? 20858need_version=$need_version 20859 20860# Library versioning type. 20861version_type=$version_type 20862 20863# Shared library runtime path variable. 20864runpath_var=$runpath_var 20865 20866# Shared library path variable. 20867shlibpath_var=$shlibpath_var 20868 20869# Is shlibpath searched before the hard-coded library search path? 20870shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20871 20872# Format of library name prefix. 20873libname_spec=$lt_libname_spec 20874 20875# List of archive names. First name is the real one, the rest are links. 20876# The last name is the one that the linker finds with -lNAME 20877library_names_spec=$lt_library_names_spec 20878 20879# The coded name of the library, if different from the real name. 20880soname_spec=$lt_soname_spec 20881 20882# Permission mode override for installation of shared libraries. 20883install_override_mode=$lt_install_override_mode 20884 20885# Command to use after installation of a shared archive. 20886postinstall_cmds=$lt_postinstall_cmds 20887 20888# Command to use after uninstallation of a shared archive. 20889postuninstall_cmds=$lt_postuninstall_cmds 20890 20891# Commands used to finish a libtool library installation in a directory. 20892finish_cmds=$lt_finish_cmds 20893 20894# As "finish_cmds", except a single script fragment to be evaled but 20895# not shown. 20896finish_eval=$lt_finish_eval 20897 20898# Whether we should hardcode library paths into libraries. 20899hardcode_into_libs=$hardcode_into_libs 20900 20901# Compile-time system search path for libraries. 20902sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20903 20904# Run-time system search path for libraries. 20905sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20906 20907# Whether dlopen is supported. 20908dlopen_support=$enable_dlopen 20909 20910# Whether dlopen of programs is supported. 20911dlopen_self=$enable_dlopen_self 20912 20913# Whether dlopen of statically linked programs is supported. 20914dlopen_self_static=$enable_dlopen_self_static 20915 20916# Commands to strip libraries. 20917old_striplib=$lt_old_striplib 20918striplib=$lt_striplib 20919 20920 20921# The linker used to build libraries. 20922LD=$lt_LD 20923 20924# How to create reloadable object files. 20925reload_flag=$lt_reload_flag 20926reload_cmds=$lt_reload_cmds 20927 20928# Commands used to build an old-style archive. 20929old_archive_cmds=$lt_old_archive_cmds 20930 20931# A language specific compiler. 20932CC=$lt_compiler 20933 20934# Is the compiler the GNU compiler? 20935with_gcc=$GCC 20936 20937# Compiler flag to turn off builtin functions. 20938no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20939 20940# Additional compiler flags for building library objects. 20941pic_flag=$lt_lt_prog_compiler_pic 20942 20943# How to pass a linker flag through the compiler. 20944wl=$lt_lt_prog_compiler_wl 20945 20946# Compiler flag to prevent dynamic linking. 20947link_static_flag=$lt_lt_prog_compiler_static 20948 20949# Does compiler simultaneously support -c and -o options? 20950compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20951 20952# Whether or not to add -lc for building shared libraries. 20953build_libtool_need_lc=$archive_cmds_need_lc 20954 20955# Whether or not to disallow shared libs when runtime libs are static. 20956allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20957 20958# Compiler flag to allow reflexive dlopens. 20959export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20960 20961# Compiler flag to generate shared objects directly from archives. 20962whole_archive_flag_spec=$lt_whole_archive_flag_spec 20963 20964# Whether the compiler copes with passing no objects directly. 20965compiler_needs_object=$lt_compiler_needs_object 20966 20967# Create an old-style archive from a shared archive. 20968old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20969 20970# Create a temporary old-style archive to link instead of a shared archive. 20971old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20972 20973# Commands used to build a shared archive. 20974archive_cmds=$lt_archive_cmds 20975archive_expsym_cmds=$lt_archive_expsym_cmds 20976 20977# Commands used to build a loadable module if different from building 20978# a shared archive. 20979module_cmds=$lt_module_cmds 20980module_expsym_cmds=$lt_module_expsym_cmds 20981 20982# Whether we are building with GNU ld or not. 20983with_gnu_ld=$lt_with_gnu_ld 20984 20985# Flag that allows shared libraries with undefined symbols to be built. 20986allow_undefined_flag=$lt_allow_undefined_flag 20987 20988# Flag that enforces no undefined symbols. 20989no_undefined_flag=$lt_no_undefined_flag 20990 20991# Flag to hardcode \$libdir into a binary during linking. 20992# This must work even if \$libdir does not exist 20993hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20994 20995# Whether we need a single "-rpath" flag with a separated argument. 20996hardcode_libdir_separator=$lt_hardcode_libdir_separator 20997 20998# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20999# DIR into the resulting binary. 21000hardcode_direct=$hardcode_direct 21001 21002# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21003# DIR into the resulting binary and the resulting library dependency is 21004# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21005# library is relocated. 21006hardcode_direct_absolute=$hardcode_direct_absolute 21007 21008# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21009# into the resulting binary. 21010hardcode_minus_L=$hardcode_minus_L 21011 21012# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21013# into the resulting binary. 21014hardcode_shlibpath_var=$hardcode_shlibpath_var 21015 21016# Set to "yes" if building a shared library automatically hardcodes DIR 21017# into the library and all subsequent libraries and executables linked 21018# against it. 21019hardcode_automatic=$hardcode_automatic 21020 21021# Set to yes if linker adds runtime paths of dependent libraries 21022# to runtime path list. 21023inherit_rpath=$inherit_rpath 21024 21025# Whether libtool must link a program against all its dependency libraries. 21026link_all_deplibs=$link_all_deplibs 21027 21028# Set to "yes" if exported symbols are required. 21029always_export_symbols=$always_export_symbols 21030 21031# The commands to list exported symbols. 21032export_symbols_cmds=$lt_export_symbols_cmds 21033 21034# Symbols that should not be listed in the preloaded symbols. 21035exclude_expsyms=$lt_exclude_expsyms 21036 21037# Symbols that must always be exported. 21038include_expsyms=$lt_include_expsyms 21039 21040# Commands necessary for linking programs (against libraries) with templates. 21041prelink_cmds=$lt_prelink_cmds 21042 21043# Commands necessary for finishing linking programs. 21044postlink_cmds=$lt_postlink_cmds 21045 21046# Specify filename containing input files. 21047file_list_spec=$lt_file_list_spec 21048 21049# How to hardcode a shared library path into an executable. 21050hardcode_action=$hardcode_action 21051 21052# ### END LIBTOOL CONFIG 21053 21054_LT_EOF 21055 21056 case $host_os in 21057 aix3*) 21058 cat <<\_LT_EOF >> "$cfgfile" 21059# AIX sometimes has problems with the GCC collect2 program. For some 21060# reason, if we set the COLLECT_NAMES environment variable, the problems 21061# vanish in a puff of smoke. 21062if test "X${COLLECT_NAMES+set}" != Xset; then 21063 COLLECT_NAMES= 21064 export COLLECT_NAMES 21065fi 21066_LT_EOF 21067 ;; 21068 esac 21069 21070 21071ltmain="$ac_aux_dir/ltmain.sh" 21072 21073 21074 # We use sed instead of cat because bash on DJGPP gets confused if 21075 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21076 # text mode, it properly converts lines to CR/LF. This bash problem 21077 # is reportedly fixed, but why not run on old versions too? 21078 sed '$q' "$ltmain" >> "$cfgfile" \ 21079 || (rm -f "$cfgfile"; exit 1) 21080 21081 if test x"$xsi_shell" = xyes; then 21082 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21083func_dirname ()\ 21084{\ 21085\ case ${1} in\ 21086\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21087\ * ) func_dirname_result="${3}" ;;\ 21088\ esac\ 21089} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21090 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21091 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21092test 0 -eq $? || _lt_function_replace_fail=: 21093 21094 21095 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21096func_basename ()\ 21097{\ 21098\ func_basename_result="${1##*/}"\ 21099} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21100 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21101 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21102test 0 -eq $? || _lt_function_replace_fail=: 21103 21104 21105 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21106func_dirname_and_basename ()\ 21107{\ 21108\ case ${1} in\ 21109\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21110\ * ) func_dirname_result="${3}" ;;\ 21111\ esac\ 21112\ func_basename_result="${1##*/}"\ 21113} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21114 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21116test 0 -eq $? || _lt_function_replace_fail=: 21117 21118 21119 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21120func_stripname ()\ 21121{\ 21122\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21123\ # positional parameters, so assign one to ordinary parameter first.\ 21124\ func_stripname_result=${3}\ 21125\ func_stripname_result=${func_stripname_result#"${1}"}\ 21126\ func_stripname_result=${func_stripname_result%"${2}"}\ 21127} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21128 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21130test 0 -eq $? || _lt_function_replace_fail=: 21131 21132 21133 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21134func_split_long_opt ()\ 21135{\ 21136\ func_split_long_opt_name=${1%%=*}\ 21137\ func_split_long_opt_arg=${1#*=}\ 21138} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21139 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21140 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21141test 0 -eq $? || _lt_function_replace_fail=: 21142 21143 21144 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21145func_split_short_opt ()\ 21146{\ 21147\ func_split_short_opt_arg=${1#??}\ 21148\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21149} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21150 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21151 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21152test 0 -eq $? || _lt_function_replace_fail=: 21153 21154 21155 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21156func_lo2o ()\ 21157{\ 21158\ case ${1} in\ 21159\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21160\ *) func_lo2o_result=${1} ;;\ 21161\ esac\ 21162} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21163 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21164 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21165test 0 -eq $? || _lt_function_replace_fail=: 21166 21167 21168 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21169func_xform ()\ 21170{\ 21171 func_xform_result=${1%.*}.lo\ 21172} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21173 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21174 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21175test 0 -eq $? || _lt_function_replace_fail=: 21176 21177 21178 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21179func_arith ()\ 21180{\ 21181 func_arith_result=$(( $* ))\ 21182} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21183 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21184 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21185test 0 -eq $? || _lt_function_replace_fail=: 21186 21187 21188 sed -e '/^func_len ()$/,/^} # func_len /c\ 21189func_len ()\ 21190{\ 21191 func_len_result=${#1}\ 21192} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21193 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21194 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21195test 0 -eq $? || _lt_function_replace_fail=: 21196 21197fi 21198 21199if test x"$lt_shell_append" = xyes; then 21200 sed -e '/^func_append ()$/,/^} # func_append /c\ 21201func_append ()\ 21202{\ 21203 eval "${1}+=\\${2}"\ 21204} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21205 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21206 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21207test 0 -eq $? || _lt_function_replace_fail=: 21208 21209 21210 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21211func_append_quoted ()\ 21212{\ 21213\ func_quote_for_eval "${2}"\ 21214\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21215} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21216 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21217 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21218test 0 -eq $? || _lt_function_replace_fail=: 21219 21220 21221 # Save a `func_append' function call where possible by direct use of '+=' 21222 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21223 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21224 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21225 test 0 -eq $? || _lt_function_replace_fail=: 21226else 21227 # Save a `func_append' function call even when '+=' is not available 21228 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21229 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21231 test 0 -eq $? || _lt_function_replace_fail=: 21232fi 21233 21234if test x"$_lt_function_replace_fail" = x":"; then 21235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21236$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21237fi 21238 21239 21240 mv -f "$cfgfile" "$ofile" || 21241 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21242 chmod +x "$ofile" 21243 21244 ;; 21245 "disable-rpath":C) 21246 sed < libtool > libtool-2 \ 21247 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 21248 mv libtool-2 libtool 21249 chmod 755 libtool 21250 libtool="./libtool" 21251 ;; 21252 21253 esac 21254done # for ac_tag 21255 21256 21257as_fn_exit 0 21258_ACEOF 21259ac_clean_files=$ac_clean_files_save 21260 21261test $ac_write_fail = 0 || 21262 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21263 21264 21265# configure is writing to config.log, and then calls config.status. 21266# config.status does its own redirection, appending to config.log. 21267# Unfortunately, on DOS this fails, as config.log is still kept open 21268# by configure, so config.status won't be able to write to it; its 21269# output is simply discarded. So we exec the FD to /dev/null, 21270# effectively closing config.log, so it can be properly (re)opened and 21271# appended to by config.status. When coming back to configure, we 21272# need to make the FD available again. 21273if test "$no_create" != yes; then 21274 ac_cs_success=: 21275 ac_config_status_args= 21276 test "$silent" = yes && 21277 ac_config_status_args="$ac_config_status_args --quiet" 21278 exec 5>/dev/null 21279 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21280 exec 5>>config.log 21281 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21282 # would make configure fail if this is the last instruction. 21283 $ac_cs_success || as_fn_exit 1 21284fi 21285if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21287$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21288fi 21289 21290