1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for unbound 1.4.20. 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.4.20' 594PACKAGE_STRING='unbound 1.4.20' 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 635ldnsdir 636ALLTARGET 637SOURCEFILE 638SOURCEDETERMINE 639UBSYMS 640EXTRALINK 641COMMON_OBJ_ALL_SYMBOLS 642LIBOBJ_WITHOUT_CTIME 643WIN_CHECKCONF_OBJ_LINK 644WIN_CONTROL_OBJ_LINK 645WIN_UBANCHOR_OBJ_LINK 646WIN_HOST_OBJ_LINK 647WIN_DAEMON_OBJ_LINK 648WIN_DAEMON_OBJ 649WIN_DAEMON_SRC 650WINAPPS 651WINDRES 652CHECKLOCK_OBJ 653staticexe 654HAVE_SSL 655CONFIG_DATE 656NETBSD_LINTFLAGS 657PYUNBOUND_UNINSTALL 658PYUNBOUND_INSTALL 659PYUNBOUND_TARGET 660PYUNBOUND_OBJ 661WITH_PYUNBOUND 662PYTHONMOD_UNINSTALL 663PYTHONMOD_INSTALL 664PYTHONMOD_HEADER 665PYTHONMOD_OBJ 666WITH_PYTHONMODULE 667swig 668SWIG_LIB 669SWIG 670PYTHON_EXTRA_LDFLAGS 671PYTHON_EXTRA_LIBS 672PYTHON_SITE_PKG 673PYTHON_LDFLAGS 674PYTHON_CPPFLAGS 675PYTHON 676PYTHON_VERSION 677PTHREAD_CFLAGS 678PTHREAD_LIBS 679PTHREAD_CC 680acx_pthread_config 681RUNTIME_PATH 682LIBOBJS 683OTOOL64 684OTOOL 685LIPO 686NMEDIT 687DSYMUTIL 688MANIFEST_TOOL 689AWK 690RANLIB 691ac_ct_AR 692DLLTOOL 693OBJDUMP 694LN_S 695NM 696ac_ct_DUMPBIN 697DUMPBIN 698LD 699FGREP 700SED 701LIBTOOL 702AR 703libtool 704STRIP 705doxygen 706YFLAGS 707YACC 708LEXLIB 709LEX_OUTPUT_ROOT 710LEX 711debug_enabled 712DEPFLAG 713UNBOUND_USERNAME 714UNBOUND_ROOTCERT_FILE 715UNBOUND_ROOTKEY_FILE 716UNBOUND_PIDFILE 717UNBOUND_SHARE_DIR 718UNBOUND_CHROOT_DIR 719UNBOUND_RUN_DIR 720ub_conf_file 721EGREP 722GREP 723CPP 724OBJEXT 725EXEEXT 726ac_ct_CC 727CPPFLAGS 728LDFLAGS 729CFLAGS 730CC 731target_os 732target_vendor 733target_cpu 734target 735host_os 736host_vendor 737host_cpu 738host 739build_os 740build_vendor 741build_cpu 742build 743LIBUNBOUND_AGE 744LIBUNBOUND_REVISION 745LIBUNBOUND_CURRENT 746target_alias 747host_alias 748build_alias 749LIBS 750ECHO_T 751ECHO_N 752ECHO_C 753DEFS 754mandir 755localedir 756libdir 757psdir 758pdfdir 759dvidir 760htmldir 761infodir 762docdir 763oldincludedir 764includedir 765localstatedir 766sharedstatedir 767sysconfdir 768datadir 769datarootdir 770libexecdir 771sbindir 772bindir 773program_transform_name 774prefix 775exec_prefix 776PACKAGE_URL 777PACKAGE_BUGREPORT 778PACKAGE_STRING 779PACKAGE_VERSION 780PACKAGE_TARNAME 781PACKAGE_NAME 782PATH_SEPARATOR 783SHELL' 784ac_subst_files='' 785ac_user_opts=' 786enable_option_checking 787with_conf_file 788with_run_dir 789with_chroot_dir 790with_share_dir 791with_pidfile 792with_rootkey_file 793with_rootcert_file 794with_username 795enable_checking 796enable_debug 797enable_shared 798enable_static 799with_pic 800enable_fast_install 801with_gnu_ld 802with_sysroot 803enable_libtool_lock 804enable_rpath 805enable_largefile 806enable_alloc_checks 807enable_alloc_lite 808enable_alloc_nonregional 809with_pthreads 810with_solaris_threads 811with_pyunbound 812with_pythonmodule 813with_nss 814with_ssl 815enable_sha2 816enable_gost 817enable_ecdsa 818with_libevent 819with_libexpat 820enable_static_exe 821enable_lock_checks 822enable_allsymbols 823with_libunbound_only 824with_ldns 825' 826 ac_precious_vars='build_alias 827host_alias 828target_alias 829CC 830CFLAGS 831LDFLAGS 832LIBS 833CPPFLAGS 834CPP 835YACC 836YFLAGS 837PYTHON_VERSION' 838 839 840# Initialize some variables set by options. 841ac_init_help= 842ac_init_version=false 843ac_unrecognized_opts= 844ac_unrecognized_sep= 845# The variables have the same names as the options, with 846# dashes changed to underlines. 847cache_file=/dev/null 848exec_prefix=NONE 849no_create= 850no_recursion= 851prefix=NONE 852program_prefix=NONE 853program_suffix=NONE 854program_transform_name=s,x,x, 855silent= 856site= 857srcdir= 858verbose= 859x_includes=NONE 860x_libraries=NONE 861 862# Installation directory options. 863# These are left unexpanded so users can "make install exec_prefix=/foo" 864# and all the variables that are supposed to be based on exec_prefix 865# by default will actually change. 866# Use braces instead of parens because sh, perl, etc. also accept them. 867# (The list follows the same order as the GNU Coding Standards.) 868bindir='${exec_prefix}/bin' 869sbindir='${exec_prefix}/sbin' 870libexecdir='${exec_prefix}/libexec' 871datarootdir='${prefix}/share' 872datadir='${datarootdir}' 873sysconfdir='${prefix}/etc' 874sharedstatedir='${prefix}/com' 875localstatedir='${prefix}/var' 876includedir='${prefix}/include' 877oldincludedir='/usr/include' 878docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 879infodir='${datarootdir}/info' 880htmldir='${docdir}' 881dvidir='${docdir}' 882pdfdir='${docdir}' 883psdir='${docdir}' 884libdir='${exec_prefix}/lib' 885localedir='${datarootdir}/locale' 886mandir='${datarootdir}/man' 887 888ac_prev= 889ac_dashdash= 890for ac_option 891do 892 # If the previous option needs an argument, assign it. 893 if test -n "$ac_prev"; then 894 eval $ac_prev=\$ac_option 895 ac_prev= 896 continue 897 fi 898 899 case $ac_option in 900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 901 *=) ac_optarg= ;; 902 *) ac_optarg=yes ;; 903 esac 904 905 # Accept the important Cygnus configure options, so we can diagnose typos. 906 907 case $ac_dashdash$ac_option in 908 --) 909 ac_dashdash=yes ;; 910 911 -bindir | --bindir | --bindi | --bind | --bin | --bi) 912 ac_prev=bindir ;; 913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 914 bindir=$ac_optarg ;; 915 916 -build | --build | --buil | --bui | --bu) 917 ac_prev=build_alias ;; 918 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 919 build_alias=$ac_optarg ;; 920 921 -cache-file | --cache-file | --cache-fil | --cache-fi \ 922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 923 ac_prev=cache_file ;; 924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 926 cache_file=$ac_optarg ;; 927 928 --config-cache | -C) 929 cache_file=config.cache ;; 930 931 -datadir | --datadir | --datadi | --datad) 932 ac_prev=datadir ;; 933 -datadir=* | --datadir=* | --datadi=* | --datad=*) 934 datadir=$ac_optarg ;; 935 936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 937 | --dataroo | --dataro | --datar) 938 ac_prev=datarootdir ;; 939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 941 datarootdir=$ac_optarg ;; 942 943 -disable-* | --disable-*) 944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 945 # Reject names that are not valid shell variable names. 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 947 as_fn_error $? "invalid feature name: $ac_useropt" 948 ac_useropt_orig=$ac_useropt 949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 950 case $ac_user_opts in 951 *" 952"enable_$ac_useropt" 953"*) ;; 954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 955 ac_unrecognized_sep=', ';; 956 esac 957 eval enable_$ac_useropt=no ;; 958 959 -docdir | --docdir | --docdi | --doc | --do) 960 ac_prev=docdir ;; 961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 962 docdir=$ac_optarg ;; 963 964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 965 ac_prev=dvidir ;; 966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 967 dvidir=$ac_optarg ;; 968 969 -enable-* | --enable-*) 970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 971 # Reject names that are not valid shell variable names. 972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 973 as_fn_error $? "invalid feature name: $ac_useropt" 974 ac_useropt_orig=$ac_useropt 975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 976 case $ac_user_opts in 977 *" 978"enable_$ac_useropt" 979"*) ;; 980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 981 ac_unrecognized_sep=', ';; 982 esac 983 eval enable_$ac_useropt=\$ac_optarg ;; 984 985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 987 | --exec | --exe | --ex) 988 ac_prev=exec_prefix ;; 989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 991 | --exec=* | --exe=* | --ex=*) 992 exec_prefix=$ac_optarg ;; 993 994 -gas | --gas | --ga | --g) 995 # Obsolete; use --with-gas. 996 with_gas=yes ;; 997 998 -help | --help | --hel | --he | -h) 999 ac_init_help=long ;; 1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1001 ac_init_help=recursive ;; 1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1003 ac_init_help=short ;; 1004 1005 -host | --host | --hos | --ho) 1006 ac_prev=host_alias ;; 1007 -host=* | --host=* | --hos=* | --ho=*) 1008 host_alias=$ac_optarg ;; 1009 1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1011 ac_prev=htmldir ;; 1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1013 | --ht=*) 1014 htmldir=$ac_optarg ;; 1015 1016 -includedir | --includedir | --includedi | --included | --include \ 1017 | --includ | --inclu | --incl | --inc) 1018 ac_prev=includedir ;; 1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1020 | --includ=* | --inclu=* | --incl=* | --inc=*) 1021 includedir=$ac_optarg ;; 1022 1023 -infodir | --infodir | --infodi | --infod | --info | --inf) 1024 ac_prev=infodir ;; 1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1026 infodir=$ac_optarg ;; 1027 1028 -libdir | --libdir | --libdi | --libd) 1029 ac_prev=libdir ;; 1030 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1031 libdir=$ac_optarg ;; 1032 1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1034 | --libexe | --libex | --libe) 1035 ac_prev=libexecdir ;; 1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1037 | --libexe=* | --libex=* | --libe=*) 1038 libexecdir=$ac_optarg ;; 1039 1040 -localedir | --localedir | --localedi | --localed | --locale) 1041 ac_prev=localedir ;; 1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1043 localedir=$ac_optarg ;; 1044 1045 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1046 | --localstate | --localstat | --localsta | --localst | --locals) 1047 ac_prev=localstatedir ;; 1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1050 localstatedir=$ac_optarg ;; 1051 1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1053 ac_prev=mandir ;; 1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1055 mandir=$ac_optarg ;; 1056 1057 -nfp | --nfp | --nf) 1058 # Obsolete; use --without-fp. 1059 with_fp=no ;; 1060 1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1062 | --no-cr | --no-c | -n) 1063 no_create=yes ;; 1064 1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1067 no_recursion=yes ;; 1068 1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1071 | --oldin | --oldi | --old | --ol | --o) 1072 ac_prev=oldincludedir ;; 1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1076 oldincludedir=$ac_optarg ;; 1077 1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1079 ac_prev=prefix ;; 1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1081 prefix=$ac_optarg ;; 1082 1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1084 | --program-pre | --program-pr | --program-p) 1085 ac_prev=program_prefix ;; 1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1088 program_prefix=$ac_optarg ;; 1089 1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1091 | --program-suf | --program-su | --program-s) 1092 ac_prev=program_suffix ;; 1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1095 program_suffix=$ac_optarg ;; 1096 1097 -program-transform-name | --program-transform-name \ 1098 | --program-transform-nam | --program-transform-na \ 1099 | --program-transform-n | --program-transform- \ 1100 | --program-transform | --program-transfor \ 1101 | --program-transfo | --program-transf \ 1102 | --program-trans | --program-tran \ 1103 | --progr-tra | --program-tr | --program-t) 1104 ac_prev=program_transform_name ;; 1105 -program-transform-name=* | --program-transform-name=* \ 1106 | --program-transform-nam=* | --program-transform-na=* \ 1107 | --program-transform-n=* | --program-transform-=* \ 1108 | --program-transform=* | --program-transfor=* \ 1109 | --program-transfo=* | --program-transf=* \ 1110 | --program-trans=* | --program-tran=* \ 1111 | --progr-tra=* | --program-tr=* | --program-t=*) 1112 program_transform_name=$ac_optarg ;; 1113 1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1115 ac_prev=pdfdir ;; 1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1117 pdfdir=$ac_optarg ;; 1118 1119 -psdir | --psdir | --psdi | --psd | --ps) 1120 ac_prev=psdir ;; 1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1122 psdir=$ac_optarg ;; 1123 1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1125 | -silent | --silent | --silen | --sile | --sil) 1126 silent=yes ;; 1127 1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1129 ac_prev=sbindir ;; 1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1131 | --sbi=* | --sb=*) 1132 sbindir=$ac_optarg ;; 1133 1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1136 | --sharedst | --shareds | --shared | --share | --shar \ 1137 | --sha | --sh) 1138 ac_prev=sharedstatedir ;; 1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1142 | --sha=* | --sh=*) 1143 sharedstatedir=$ac_optarg ;; 1144 1145 -site | --site | --sit) 1146 ac_prev=site ;; 1147 -site=* | --site=* | --sit=*) 1148 site=$ac_optarg ;; 1149 1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1151 ac_prev=srcdir ;; 1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1153 srcdir=$ac_optarg ;; 1154 1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1156 | --syscon | --sysco | --sysc | --sys | --sy) 1157 ac_prev=sysconfdir ;; 1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1160 sysconfdir=$ac_optarg ;; 1161 1162 -target | --target | --targe | --targ | --tar | --ta | --t) 1163 ac_prev=target_alias ;; 1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1165 target_alias=$ac_optarg ;; 1166 1167 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1168 verbose=yes ;; 1169 1170 -version | --version | --versio | --versi | --vers | -V) 1171 ac_init_version=: ;; 1172 1173 -with-* | --with-*) 1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1175 # Reject names that are not valid shell variable names. 1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1177 as_fn_error $? "invalid package name: $ac_useropt" 1178 ac_useropt_orig=$ac_useropt 1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1180 case $ac_user_opts in 1181 *" 1182"with_$ac_useropt" 1183"*) ;; 1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1185 ac_unrecognized_sep=', ';; 1186 esac 1187 eval with_$ac_useropt=\$ac_optarg ;; 1188 1189 -without-* | --without-*) 1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1191 # Reject names that are not valid shell variable names. 1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1193 as_fn_error $? "invalid package name: $ac_useropt" 1194 ac_useropt_orig=$ac_useropt 1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1196 case $ac_user_opts in 1197 *" 1198"with_$ac_useropt" 1199"*) ;; 1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1201 ac_unrecognized_sep=', ';; 1202 esac 1203 eval with_$ac_useropt=no ;; 1204 1205 --x) 1206 # Obsolete; use --with-x. 1207 with_x=yes ;; 1208 1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1210 | --x-incl | --x-inc | --x-in | --x-i) 1211 ac_prev=x_includes ;; 1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1214 x_includes=$ac_optarg ;; 1215 1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1218 ac_prev=x_libraries ;; 1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1221 x_libraries=$ac_optarg ;; 1222 1223 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1224Try \`$0 --help' for more information" 1225 ;; 1226 1227 *=*) 1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1229 # Reject names that are not valid shell variable names. 1230 case $ac_envvar in #( 1231 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1232 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1233 esac 1234 eval $ac_envvar=\$ac_optarg 1235 export $ac_envvar ;; 1236 1237 *) 1238 # FIXME: should be removed in autoconf 3.0. 1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1243 ;; 1244 1245 esac 1246done 1247 1248if test -n "$ac_prev"; then 1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1250 as_fn_error $? "missing argument to $ac_option" 1251fi 1252 1253if test -n "$ac_unrecognized_opts"; then 1254 case $enable_option_checking in 1255 no) ;; 1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1258 esac 1259fi 1260 1261# Check all directory arguments for consistency. 1262for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1263 datadir sysconfdir sharedstatedir localstatedir includedir \ 1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1265 libdir localedir mandir 1266do 1267 eval ac_val=\$$ac_var 1268 # Remove trailing slashes. 1269 case $ac_val in 1270 */ ) 1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1272 eval $ac_var=\$ac_val;; 1273 esac 1274 # Be sure to have absolute directory names. 1275 case $ac_val in 1276 [\\/$]* | ?:[\\/]* ) continue;; 1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1278 esac 1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1280done 1281 1282# There might be people who depend on the old broken behavior: `$host' 1283# used to hold the argument of --host etc. 1284# FIXME: To remove some day. 1285build=$build_alias 1286host=$host_alias 1287target=$target_alias 1288 1289# FIXME: To remove some day. 1290if test "x$host_alias" != x; then 1291 if test "x$build_alias" = x; then 1292 cross_compiling=maybe 1293 elif test "x$build_alias" != "x$host_alias"; then 1294 cross_compiling=yes 1295 fi 1296fi 1297 1298ac_tool_prefix= 1299test -n "$host_alias" && ac_tool_prefix=$host_alias- 1300 1301test "$silent" = yes && exec 6>/dev/null 1302 1303 1304ac_pwd=`pwd` && test -n "$ac_pwd" && 1305ac_ls_di=`ls -di .` && 1306ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1307 as_fn_error $? "working directory cannot be determined" 1308test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1309 as_fn_error $? "pwd does not report name of working directory" 1310 1311 1312# Find the source files, if location was not specified. 1313if test -z "$srcdir"; then 1314 ac_srcdir_defaulted=yes 1315 # Try the directory containing this script, then the parent directory. 1316 ac_confdir=`$as_dirname -- "$as_myself" || 1317$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1318 X"$as_myself" : 'X\(//\)[^/]' \| \ 1319 X"$as_myself" : 'X\(//\)$' \| \ 1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1321$as_echo X"$as_myself" | 1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\/\)[^/].*/{ 1327 s//\1/ 1328 q 1329 } 1330 /^X\(\/\/\)$/{ 1331 s//\1/ 1332 q 1333 } 1334 /^X\(\/\).*/{ 1335 s//\1/ 1336 q 1337 } 1338 s/.*/./; q'` 1339 srcdir=$ac_confdir 1340 if test ! -r "$srcdir/$ac_unique_file"; then 1341 srcdir=.. 1342 fi 1343else 1344 ac_srcdir_defaulted=no 1345fi 1346if test ! -r "$srcdir/$ac_unique_file"; then 1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1349fi 1350ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1351ac_abs_confdir=`( 1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1353 pwd)` 1354# When building in place, set srcdir=. 1355if test "$ac_abs_confdir" = "$ac_pwd"; then 1356 srcdir=. 1357fi 1358# Remove unnecessary trailing slashes from srcdir. 1359# Double slashes in file names in object file debugging info 1360# mess up M-x gdb in Emacs. 1361case $srcdir in 1362*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1363esac 1364for ac_var in $ac_precious_vars; do 1365 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1366 eval ac_env_${ac_var}_value=\$${ac_var} 1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1368 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1369done 1370 1371# 1372# Report the --help message. 1373# 1374if test "$ac_init_help" = "long"; then 1375 # Omit some internal or obsolete options to make the list less imposing. 1376 # This message is too long to be a string in the A/UX 3.1 sh. 1377 cat <<_ACEOF 1378\`configure' configures unbound 1.4.20 to adapt to many kinds of systems. 1379 1380Usage: $0 [OPTION]... [VAR=VALUE]... 1381 1382To assign environment variables (e.g., CC, CFLAGS...), specify them as 1383VAR=VALUE. See below for descriptions of some of the useful variables. 1384 1385Defaults for the options are specified in brackets. 1386 1387Configuration: 1388 -h, --help display this help and exit 1389 --help=short display options specific to this package 1390 --help=recursive display the short help of all the included packages 1391 -V, --version display version information and exit 1392 -q, --quiet, --silent do not print \`checking ...' messages 1393 --cache-file=FILE cache test results in FILE [disabled] 1394 -C, --config-cache alias for \`--cache-file=config.cache' 1395 -n, --no-create do not create output files 1396 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1397 1398Installation directories: 1399 --prefix=PREFIX install architecture-independent files in PREFIX 1400 [$ac_default_prefix] 1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1402 [PREFIX] 1403 1404By default, \`make install' will install all the files in 1405\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1406an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1407for instance \`--prefix=\$HOME'. 1408 1409For better control, use the options below. 1410 1411Fine tuning of the installation directories: 1412 --bindir=DIR user executables [EPREFIX/bin] 1413 --sbindir=DIR system admin executables [EPREFIX/sbin] 1414 --libexecdir=DIR program executables [EPREFIX/libexec] 1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1418 --libdir=DIR object code libraries [EPREFIX/lib] 1419 --includedir=DIR C header files [PREFIX/include] 1420 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1423 --infodir=DIR info documentation [DATAROOTDIR/info] 1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1425 --mandir=DIR man documentation [DATAROOTDIR/man] 1426 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound] 1427 --htmldir=DIR html documentation [DOCDIR] 1428 --dvidir=DIR dvi documentation [DOCDIR] 1429 --pdfdir=DIR pdf documentation [DOCDIR] 1430 --psdir=DIR ps documentation [DOCDIR] 1431_ACEOF 1432 1433 cat <<\_ACEOF 1434 1435System types: 1436 --build=BUILD configure for building on BUILD [guessed] 1437 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1438 --target=TARGET configure for building compilers for TARGET [HOST] 1439_ACEOF 1440fi 1441 1442if test -n "$ac_init_help"; then 1443 case $ac_init_help in 1444 short | recursive ) echo "Configuration of unbound 1.4.20:";; 1445 esac 1446 cat <<\_ACEOF 1447 1448Optional Features: 1449 --disable-option-checking ignore unrecognized --enable/--with options 1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1452 --enable-checking Enable warnings, asserts, makefile-dependencies 1453 --enable-debug same as enable-checking 1454 --enable-shared[=PKGS] build shared libraries [default=yes] 1455 --enable-static[=PKGS] build static libraries [default=yes] 1456 --enable-fast-install[=PKGS] 1457 optimize for fast installation [default=yes] 1458 --disable-libtool-lock avoid locking (might break parallel builds) 1459 --disable-rpath disable hardcoded rpath (default=enabled) 1460 --disable-largefile omit support for large files 1461 --enable-alloc-checks enable to memory allocation statistics, for debug 1462 purposes 1463 --enable-alloc-lite enable for lightweight alloc assertions, for debug 1464 purposes 1465 --enable-alloc-nonregional 1466 enable nonregional allocs, slow but exposes regional 1467 allocations to other memory purifiers, for debug 1468 purposes 1469 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1470 --disable-gost Disable GOST support 1471 --disable-ecdsa Disable ECDSA support 1472 --enable-static-exe enable to compile executables statically against 1473 event, ldns libs, for debug purposes 1474 --enable-lock-checks enable to check lock and unlock calls, for debug 1475 purposes 1476 --enable-allsymbols export all symbols from libunbound and link binaries 1477 to it, smaller install size but libunbound export 1478 table is polluted by internal symbols 1479 1480Optional Packages: 1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1483 --with-conf-file=path Pathname to the Unbound configuration file 1484 --with-run-dir=path set default directory to chdir to (by default dir 1485 part of cfg file) 1486 --with-chroot-dir=path set default directory to chroot to (by default same 1487 as run-dir) 1488 --with-share-dir=path set default directory with shared data (by default 1489 same as share/unbound) 1490 --with-pidfile=filename set default pathname to unbound pidfile (default 1491 run-dir/unbound.pid) 1492 --with-rootkey-file=filename 1493 set default pathname to root key file (default 1494 run-dir/root.key). This file is read and written. 1495 --with-rootcert-file=filename 1496 set default pathname to root update certificate file 1497 (default run-dir/icannbundle.pem). This file need 1498 not exist if you are content with the builtin. 1499 --with-username=user set default user that unbound changes to (default 1500 user is unbound) 1501 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1502 both] 1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1504 --with-sysroot=DIR Search for dependent libraries within DIR 1505 (or the compiler's sysroot if not specified). 1506 --with-pthreads use pthreads library, or --without-pthreads to 1507 disable threading support. 1508 --with-solaris-threads use solaris native thread library. 1509 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it. 1510 (default=no) 1511 --with-pythonmodule build Python module, or --without-pythonmodule to 1512 disable script engine. (default=no) 1513 --with-nss=path use libnss instead of openssl, installed at path. 1514 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1515 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1516 /usr) 1517 --with-libevent=pathname 1518 use libevent (will check /usr/local /opt/local 1519 /usr/lib /usr/pkg /usr/sfw /usr or you can specify 1520 an explicit path). Slower, but allows use of large 1521 outgoing port ranges. 1522 --with-libexpat=path specify explicit path for libexpat. 1523 --with-libunbound-only do not build daemon and tool programs 1524 --with-ldns=PATH specify prefix of path of ldns library to use 1525 1526Some influential environment variables: 1527 CC C compiler command 1528 CFLAGS C compiler flags 1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1530 nonstandard directory <lib dir> 1531 LIBS libraries to pass to the linker, e.g. -l<library> 1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1533 you have headers in a nonstandard directory <include dir> 1534 CPP C preprocessor 1535 YACC The `Yet Another Compiler Compiler' implementation to use. 1536 Defaults to the first program found out of: `bison -y', `byacc', 1537 `yacc'. 1538 YFLAGS The list of arguments that will be passed by default to $YACC. 1539 This script will default YFLAGS to the empty string to avoid a 1540 default value of `-d' given by some make applications. 1541 PYTHON_VERSION 1542 The installed Python version to use, for example '2.3'. This 1543 string will be appended to the Python interpreter canonical 1544 name. 1545 1546Use these variables to override the choices made by `configure' or to help 1547it to find libraries and programs with nonstandard names/locations. 1548 1549Report bugs to <unbound-bugs@nlnetlabs.nl>. 1550_ACEOF 1551ac_status=$? 1552fi 1553 1554if test "$ac_init_help" = "recursive"; then 1555 # If there are subdirs, report their specific --help. 1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1557 test -d "$ac_dir" || 1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1559 continue 1560 ac_builddir=. 1561 1562case "$ac_dir" in 1563.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1564*) 1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1566 # A ".." for each directory in $ac_dir_suffix. 1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1568 case $ac_top_builddir_sub in 1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1571 esac ;; 1572esac 1573ac_abs_top_builddir=$ac_pwd 1574ac_abs_builddir=$ac_pwd$ac_dir_suffix 1575# for backward compatibility: 1576ac_top_builddir=$ac_top_build_prefix 1577 1578case $srcdir in 1579 .) # We are building in place. 1580 ac_srcdir=. 1581 ac_top_srcdir=$ac_top_builddir_sub 1582 ac_abs_top_srcdir=$ac_pwd ;; 1583 [\\/]* | ?:[\\/]* ) # Absolute name. 1584 ac_srcdir=$srcdir$ac_dir_suffix; 1585 ac_top_srcdir=$srcdir 1586 ac_abs_top_srcdir=$srcdir ;; 1587 *) # Relative name. 1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1589 ac_top_srcdir=$ac_top_build_prefix$srcdir 1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1591esac 1592ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1593 1594 cd "$ac_dir" || { ac_status=$?; continue; } 1595 # Check for guested configure. 1596 if test -f "$ac_srcdir/configure.gnu"; then 1597 echo && 1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1599 elif test -f "$ac_srcdir/configure"; then 1600 echo && 1601 $SHELL "$ac_srcdir/configure" --help=recursive 1602 else 1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1604 fi || ac_status=$? 1605 cd "$ac_pwd" || { ac_status=$?; break; } 1606 done 1607fi 1608 1609test -n "$ac_init_help" && exit $ac_status 1610if $ac_init_version; then 1611 cat <<\_ACEOF 1612unbound configure 1.4.20 1613generated by GNU Autoconf 2.69 1614 1615Copyright (C) 2012 Free Software Foundation, Inc. 1616This configure script is free software; the Free Software Foundation 1617gives unlimited permission to copy, distribute and modify it. 1618_ACEOF 1619 exit 1620fi 1621 1622## ------------------------ ## 1623## Autoconf initialization. ## 1624## ------------------------ ## 1625 1626# ac_fn_c_try_compile LINENO 1627# -------------------------- 1628# Try to compile conftest.$ac_ext, and return whether this succeeded. 1629ac_fn_c_try_compile () 1630{ 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 rm -f conftest.$ac_objext 1633 if { { ac_try="$ac_compile" 1634case "(($ac_try" in 1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1636 *) ac_try_echo=$ac_try;; 1637esac 1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1639$as_echo "$ac_try_echo"; } >&5 1640 (eval "$ac_compile") 2>conftest.err 1641 ac_status=$? 1642 if test -s conftest.err; then 1643 grep -v '^ *+' conftest.err >conftest.er1 1644 cat conftest.er1 >&5 1645 mv -f conftest.er1 conftest.err 1646 fi 1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1648 test $ac_status = 0; } && { 1649 test -z "$ac_c_werror_flag" || 1650 test ! -s conftest.err 1651 } && test -s conftest.$ac_objext; then : 1652 ac_retval=0 1653else 1654 $as_echo "$as_me: failed program was:" >&5 1655sed 's/^/| /' conftest.$ac_ext >&5 1656 1657 ac_retval=1 1658fi 1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1660 as_fn_set_status $ac_retval 1661 1662} # ac_fn_c_try_compile 1663 1664# ac_fn_c_try_cpp LINENO 1665# ---------------------- 1666# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1667ac_fn_c_try_cpp () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 if { { ac_try="$ac_cpp conftest.$ac_ext" 1671case "(($ac_try" in 1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1673 *) ac_try_echo=$ac_try;; 1674esac 1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1676$as_echo "$ac_try_echo"; } >&5 1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1678 ac_status=$? 1679 if test -s conftest.err; then 1680 grep -v '^ *+' conftest.err >conftest.er1 1681 cat conftest.er1 >&5 1682 mv -f conftest.er1 conftest.err 1683 fi 1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1685 test $ac_status = 0; } > conftest.i && { 1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1687 test ! -s conftest.err 1688 }; then : 1689 ac_retval=0 1690else 1691 $as_echo "$as_me: failed program was:" >&5 1692sed 's/^/| /' conftest.$ac_ext >&5 1693 1694 ac_retval=1 1695fi 1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1697 as_fn_set_status $ac_retval 1698 1699} # ac_fn_c_try_cpp 1700 1701# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1702# ------------------------------------------------------- 1703# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1704# the include files in INCLUDES and setting the cache variable VAR 1705# accordingly. 1706ac_fn_c_check_header_mongrel () 1707{ 1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1709 if eval \${$3+:} false; then : 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1711$as_echo_n "checking for $2... " >&6; } 1712if eval \${$3+:} false; then : 1713 $as_echo_n "(cached) " >&6 1714fi 1715eval ac_res=\$$3 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1717$as_echo "$ac_res" >&6; } 1718else 1719 # Is the header compilable? 1720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1721$as_echo_n "checking $2 usability... " >&6; } 1722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1723/* end confdefs.h. */ 1724$4 1725#include <$2> 1726_ACEOF 1727if ac_fn_c_try_compile "$LINENO"; then : 1728 ac_header_compiler=yes 1729else 1730 ac_header_compiler=no 1731fi 1732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1734$as_echo "$ac_header_compiler" >&6; } 1735 1736# Is the header present? 1737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1738$as_echo_n "checking $2 presence... " >&6; } 1739cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1740/* end confdefs.h. */ 1741#include <$2> 1742_ACEOF 1743if ac_fn_c_try_cpp "$LINENO"; then : 1744 ac_header_preproc=yes 1745else 1746 ac_header_preproc=no 1747fi 1748rm -f conftest.err conftest.i conftest.$ac_ext 1749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1750$as_echo "$ac_header_preproc" >&6; } 1751 1752# So? What about this header? 1753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1754 yes:no: ) 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1756$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1758$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1759 ;; 1760 no:yes:* ) 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1762$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1764$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1766$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1768$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1770$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1771( $as_echo "## ---------------------------------------- ## 1772## Report this to unbound-bugs@nlnetlabs.nl ## 1773## ---------------------------------------- ##" 1774 ) | sed "s/^/$as_me: WARNING: /" >&2 1775 ;; 1776esac 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1778$as_echo_n "checking for $2... " >&6; } 1779if eval \${$3+:} false; then : 1780 $as_echo_n "(cached) " >&6 1781else 1782 eval "$3=\$ac_header_compiler" 1783fi 1784eval ac_res=\$$3 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1786$as_echo "$ac_res" >&6; } 1787fi 1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1789 1790} # ac_fn_c_check_header_mongrel 1791 1792# ac_fn_c_try_run LINENO 1793# ---------------------- 1794# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1795# that executables *can* be run. 1796ac_fn_c_try_run () 1797{ 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 if { { ac_try="$ac_link" 1800case "(($ac_try" in 1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1802 *) ac_try_echo=$ac_try;; 1803esac 1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1805$as_echo "$ac_try_echo"; } >&5 1806 (eval "$ac_link") 2>&5 1807 ac_status=$? 1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1810 { { case "(($ac_try" in 1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1812 *) ac_try_echo=$ac_try;; 1813esac 1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1815$as_echo "$ac_try_echo"; } >&5 1816 (eval "$ac_try") 2>&5 1817 ac_status=$? 1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1819 test $ac_status = 0; }; }; then : 1820 ac_retval=0 1821else 1822 $as_echo "$as_me: program exited with status $ac_status" >&5 1823 $as_echo "$as_me: failed program was:" >&5 1824sed 's/^/| /' conftest.$ac_ext >&5 1825 1826 ac_retval=$ac_status 1827fi 1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1830 as_fn_set_status $ac_retval 1831 1832} # ac_fn_c_try_run 1833 1834# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1835# ------------------------------------------------------- 1836# Tests whether HEADER exists and can be compiled using the include files in 1837# INCLUDES, setting the cache variable VAR accordingly. 1838ac_fn_c_check_header_compile () 1839{ 1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1842$as_echo_n "checking for $2... " >&6; } 1843if eval \${$3+:} false; then : 1844 $as_echo_n "(cached) " >&6 1845else 1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1847/* end confdefs.h. */ 1848$4 1849#include <$2> 1850_ACEOF 1851if ac_fn_c_try_compile "$LINENO"; then : 1852 eval "$3=yes" 1853else 1854 eval "$3=no" 1855fi 1856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1857fi 1858eval ac_res=\$$3 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1860$as_echo "$ac_res" >&6; } 1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862 1863} # ac_fn_c_check_header_compile 1864 1865# ac_fn_c_try_link LINENO 1866# ----------------------- 1867# Try to link conftest.$ac_ext, and return whether this succeeded. 1868ac_fn_c_try_link () 1869{ 1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1871 rm -f conftest.$ac_objext conftest$ac_exeext 1872 if { { ac_try="$ac_link" 1873case "(($ac_try" in 1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1875 *) ac_try_echo=$ac_try;; 1876esac 1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1878$as_echo "$ac_try_echo"; } >&5 1879 (eval "$ac_link") 2>conftest.err 1880 ac_status=$? 1881 if test -s conftest.err; then 1882 grep -v '^ *+' conftest.err >conftest.er1 1883 cat conftest.er1 >&5 1884 mv -f conftest.er1 conftest.err 1885 fi 1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1887 test $ac_status = 0; } && { 1888 test -z "$ac_c_werror_flag" || 1889 test ! -s conftest.err 1890 } && test -s conftest$ac_exeext && { 1891 test "$cross_compiling" = yes || 1892 test -x conftest$ac_exeext 1893 }; then : 1894 ac_retval=0 1895else 1896 $as_echo "$as_me: failed program was:" >&5 1897sed 's/^/| /' conftest.$ac_ext >&5 1898 1899 ac_retval=1 1900fi 1901 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1902 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1903 # interfere with the next link command; also delete a directory that is 1904 # left behind by Apple's compiler. We do this before executing the actions. 1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1907 as_fn_set_status $ac_retval 1908 1909} # ac_fn_c_try_link 1910 1911# ac_fn_c_check_func LINENO FUNC VAR 1912# ---------------------------------- 1913# Tests whether FUNC exists, setting the cache variable VAR accordingly 1914ac_fn_c_check_func () 1915{ 1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1918$as_echo_n "checking for $2... " >&6; } 1919if eval \${$3+:} false; then : 1920 $as_echo_n "(cached) " >&6 1921else 1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1923/* end confdefs.h. */ 1924/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1925 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1926#define $2 innocuous_$2 1927 1928/* System header to define __stub macros and hopefully few prototypes, 1929 which can conflict with char $2 (); below. 1930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1931 <limits.h> exists even on freestanding compilers. */ 1932 1933#ifdef __STDC__ 1934# include <limits.h> 1935#else 1936# include <assert.h> 1937#endif 1938 1939#undef $2 1940 1941/* Override any GCC internal prototype to avoid an error. 1942 Use char because int might match the return type of a GCC 1943 builtin and then its argument prototype would still apply. */ 1944#ifdef __cplusplus 1945extern "C" 1946#endif 1947char $2 (); 1948/* The GNU C library defines this for functions which it implements 1949 to always fail with ENOSYS. Some functions are actually named 1950 something starting with __ and the normal name is an alias. */ 1951#if defined __stub_$2 || defined __stub___$2 1952choke me 1953#endif 1954 1955int 1956main () 1957{ 1958return $2 (); 1959 ; 1960 return 0; 1961} 1962_ACEOF 1963if ac_fn_c_try_link "$LINENO"; then : 1964 eval "$3=yes" 1965else 1966 eval "$3=no" 1967fi 1968rm -f core conftest.err conftest.$ac_objext \ 1969 conftest$ac_exeext conftest.$ac_ext 1970fi 1971eval ac_res=\$$3 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1973$as_echo "$ac_res" >&6; } 1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1975 1976} # ac_fn_c_check_func 1977 1978# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1979# ------------------------------------------- 1980# Tests whether TYPE exists after having included INCLUDES, setting cache 1981# variable VAR accordingly. 1982ac_fn_c_check_type () 1983{ 1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1986$as_echo_n "checking for $2... " >&6; } 1987if eval \${$3+:} false; then : 1988 $as_echo_n "(cached) " >&6 1989else 1990 eval "$3=no" 1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1992/* end confdefs.h. */ 1993$4 1994int 1995main () 1996{ 1997if (sizeof ($2)) 1998 return 0; 1999 ; 2000 return 0; 2001} 2002_ACEOF 2003if ac_fn_c_try_compile "$LINENO"; then : 2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2005/* end confdefs.h. */ 2006$4 2007int 2008main () 2009{ 2010if (sizeof (($2))) 2011 return 0; 2012 ; 2013 return 0; 2014} 2015_ACEOF 2016if ac_fn_c_try_compile "$LINENO"; then : 2017 2018else 2019 eval "$3=yes" 2020fi 2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2022fi 2023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2024fi 2025eval ac_res=\$$3 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2027$as_echo "$ac_res" >&6; } 2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2029 2030} # ac_fn_c_check_type 2031 2032# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2033# --------------------------------------------- 2034# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2035# accordingly. 2036ac_fn_c_check_decl () 2037{ 2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2039 as_decl_name=`echo $2|sed 's/ *(.*//'` 2040 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2042$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2043if eval \${$3+:} false; then : 2044 $as_echo_n "(cached) " >&6 2045else 2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047/* end confdefs.h. */ 2048$4 2049int 2050main () 2051{ 2052#ifndef $as_decl_name 2053#ifdef __cplusplus 2054 (void) $as_decl_use; 2055#else 2056 (void) $as_decl_name; 2057#endif 2058#endif 2059 2060 ; 2061 return 0; 2062} 2063_ACEOF 2064if ac_fn_c_try_compile "$LINENO"; then : 2065 eval "$3=yes" 2066else 2067 eval "$3=no" 2068fi 2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2070fi 2071eval ac_res=\$$3 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2073$as_echo "$ac_res" >&6; } 2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2075 2076} # ac_fn_c_check_decl 2077 2078# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2079# ---------------------------------------------------- 2080# Tries to find if the field MEMBER exists in type AGGR, after including 2081# INCLUDES, setting cache variable VAR accordingly. 2082ac_fn_c_check_member () 2083{ 2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2086$as_echo_n "checking for $2.$3... " >&6; } 2087if eval \${$4+:} false; then : 2088 $as_echo_n "(cached) " >&6 2089else 2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2091/* end confdefs.h. */ 2092$5 2093int 2094main () 2095{ 2096static $2 ac_aggr; 2097if (ac_aggr.$3) 2098return 0; 2099 ; 2100 return 0; 2101} 2102_ACEOF 2103if ac_fn_c_try_compile "$LINENO"; then : 2104 eval "$4=yes" 2105else 2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2107/* end confdefs.h. */ 2108$5 2109int 2110main () 2111{ 2112static $2 ac_aggr; 2113if (sizeof ac_aggr.$3) 2114return 0; 2115 ; 2116 return 0; 2117} 2118_ACEOF 2119if ac_fn_c_try_compile "$LINENO"; then : 2120 eval "$4=yes" 2121else 2122 eval "$4=no" 2123fi 2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2125fi 2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2127fi 2128eval ac_res=\$$4 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2130$as_echo "$ac_res" >&6; } 2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2132 2133} # ac_fn_c_check_member 2134cat >config.log <<_ACEOF 2135This file contains any messages produced by compilers while 2136running configure, to aid debugging if configure makes a mistake. 2137 2138It was created by unbound $as_me 1.4.20, which was 2139generated by GNU Autoconf 2.69. Invocation command line was 2140 2141 $ $0 $@ 2142 2143_ACEOF 2144exec 5>>config.log 2145{ 2146cat <<_ASUNAME 2147## --------- ## 2148## Platform. ## 2149## --------- ## 2150 2151hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2152uname -m = `(uname -m) 2>/dev/null || echo unknown` 2153uname -r = `(uname -r) 2>/dev/null || echo unknown` 2154uname -s = `(uname -s) 2>/dev/null || echo unknown` 2155uname -v = `(uname -v) 2>/dev/null || echo unknown` 2156 2157/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2158/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2159 2160/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2161/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2162/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2163/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2164/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2165/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2166/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2167 2168_ASUNAME 2169 2170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2171for as_dir in $PATH 2172do 2173 IFS=$as_save_IFS 2174 test -z "$as_dir" && as_dir=. 2175 $as_echo "PATH: $as_dir" 2176 done 2177IFS=$as_save_IFS 2178 2179} >&5 2180 2181cat >&5 <<_ACEOF 2182 2183 2184## ----------- ## 2185## Core tests. ## 2186## ----------- ## 2187 2188_ACEOF 2189 2190 2191# Keep a trace of the command line. 2192# Strip out --no-create and --no-recursion so they do not pile up. 2193# Strip out --silent because we don't want to record it for future runs. 2194# Also quote any args containing shell meta-characters. 2195# Make two passes to allow for proper duplicate-argument suppression. 2196ac_configure_args= 2197ac_configure_args0= 2198ac_configure_args1= 2199ac_must_keep_next=false 2200for ac_pass in 1 2 2201do 2202 for ac_arg 2203 do 2204 case $ac_arg in 2205 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2207 | -silent | --silent | --silen | --sile | --sil) 2208 continue ;; 2209 *\'*) 2210 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2211 esac 2212 case $ac_pass in 2213 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2214 2) 2215 as_fn_append ac_configure_args1 " '$ac_arg'" 2216 if test $ac_must_keep_next = true; then 2217 ac_must_keep_next=false # Got value, back to normal. 2218 else 2219 case $ac_arg in 2220 *=* | --config-cache | -C | -disable-* | --disable-* \ 2221 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2222 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2223 | -with-* | --with-* | -without-* | --without-* | --x) 2224 case "$ac_configure_args0 " in 2225 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2226 esac 2227 ;; 2228 -* ) ac_must_keep_next=true ;; 2229 esac 2230 fi 2231 as_fn_append ac_configure_args " '$ac_arg'" 2232 ;; 2233 esac 2234 done 2235done 2236{ ac_configure_args0=; unset ac_configure_args0;} 2237{ ac_configure_args1=; unset ac_configure_args1;} 2238 2239# When interrupted or exit'd, cleanup temporary files, and complete 2240# config.log. We remove comments because anyway the quotes in there 2241# would cause problems or look ugly. 2242# WARNING: Use '\'' to represent an apostrophe within the trap. 2243# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2244trap 'exit_status=$? 2245 # Save into config.log some information that might help in debugging. 2246 { 2247 echo 2248 2249 $as_echo "## ---------------- ## 2250## Cache variables. ## 2251## ---------------- ##" 2252 echo 2253 # The following way of writing the cache mishandles newlines in values, 2254( 2255 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2256 eval ac_val=\$$ac_var 2257 case $ac_val in #( 2258 *${as_nl}*) 2259 case $ac_var in #( 2260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2261$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2262 esac 2263 case $ac_var in #( 2264 _ | IFS | as_nl) ;; #( 2265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2266 *) { eval $ac_var=; unset $ac_var;} ;; 2267 esac ;; 2268 esac 2269 done 2270 (set) 2>&1 | 2271 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2272 *${as_nl}ac_space=\ *) 2273 sed -n \ 2274 "s/'\''/'\''\\\\'\'''\''/g; 2275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2276 ;; #( 2277 *) 2278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2279 ;; 2280 esac | 2281 sort 2282) 2283 echo 2284 2285 $as_echo "## ----------------- ## 2286## Output variables. ## 2287## ----------------- ##" 2288 echo 2289 for ac_var in $ac_subst_vars 2290 do 2291 eval ac_val=\$$ac_var 2292 case $ac_val in 2293 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2294 esac 2295 $as_echo "$ac_var='\''$ac_val'\''" 2296 done | sort 2297 echo 2298 2299 if test -n "$ac_subst_files"; then 2300 $as_echo "## ------------------- ## 2301## File substitutions. ## 2302## ------------------- ##" 2303 echo 2304 for ac_var in $ac_subst_files 2305 do 2306 eval ac_val=\$$ac_var 2307 case $ac_val in 2308 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2309 esac 2310 $as_echo "$ac_var='\''$ac_val'\''" 2311 done | sort 2312 echo 2313 fi 2314 2315 if test -s confdefs.h; then 2316 $as_echo "## ----------- ## 2317## confdefs.h. ## 2318## ----------- ##" 2319 echo 2320 cat confdefs.h 2321 echo 2322 fi 2323 test "$ac_signal" != 0 && 2324 $as_echo "$as_me: caught signal $ac_signal" 2325 $as_echo "$as_me: exit $exit_status" 2326 } >&5 2327 rm -f core *.core core.conftest.* && 2328 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2329 exit $exit_status 2330' 0 2331for ac_signal in 1 2 13 15; do 2332 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2333done 2334ac_signal=0 2335 2336# confdefs.h avoids OS command line length limits that DEFS can exceed. 2337rm -f -r conftest* confdefs.h 2338 2339$as_echo "/* confdefs.h */" > confdefs.h 2340 2341# Predefined preprocessor variables. 2342 2343cat >>confdefs.h <<_ACEOF 2344#define PACKAGE_NAME "$PACKAGE_NAME" 2345_ACEOF 2346 2347cat >>confdefs.h <<_ACEOF 2348#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2349_ACEOF 2350 2351cat >>confdefs.h <<_ACEOF 2352#define PACKAGE_VERSION "$PACKAGE_VERSION" 2353_ACEOF 2354 2355cat >>confdefs.h <<_ACEOF 2356#define PACKAGE_STRING "$PACKAGE_STRING" 2357_ACEOF 2358 2359cat >>confdefs.h <<_ACEOF 2360#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2361_ACEOF 2362 2363cat >>confdefs.h <<_ACEOF 2364#define PACKAGE_URL "$PACKAGE_URL" 2365_ACEOF 2366 2367 2368# Let the site file select an alternate cache file if it wants to. 2369# Prefer an explicitly selected file to automatically selected ones. 2370ac_site_file1=NONE 2371ac_site_file2=NONE 2372if test -n "$CONFIG_SITE"; then 2373 # We do not want a PATH search for config.site. 2374 case $CONFIG_SITE in #(( 2375 -*) ac_site_file1=./$CONFIG_SITE;; 2376 */*) ac_site_file1=$CONFIG_SITE;; 2377 *) ac_site_file1=./$CONFIG_SITE;; 2378 esac 2379elif test "x$prefix" != xNONE; then 2380 ac_site_file1=$prefix/share/config.site 2381 ac_site_file2=$prefix/etc/config.site 2382else 2383 ac_site_file1=$ac_default_prefix/share/config.site 2384 ac_site_file2=$ac_default_prefix/etc/config.site 2385fi 2386for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2387do 2388 test "x$ac_site_file" = xNONE && continue 2389 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2391$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2392 sed 's/^/| /' "$ac_site_file" >&5 2393 . "$ac_site_file" \ 2394 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2396as_fn_error $? "failed to load site script $ac_site_file 2397See \`config.log' for more details" "$LINENO" 5; } 2398 fi 2399done 2400 2401if test -r "$cache_file"; then 2402 # Some versions of bash will fail to source /dev/null (special files 2403 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2404 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2406$as_echo "$as_me: loading cache $cache_file" >&6;} 2407 case $cache_file in 2408 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2409 *) . "./$cache_file";; 2410 esac 2411 fi 2412else 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2414$as_echo "$as_me: creating cache $cache_file" >&6;} 2415 >$cache_file 2416fi 2417 2418# Check that the precious variables saved in the cache have kept the same 2419# value. 2420ac_cache_corrupted=false 2421for ac_var in $ac_precious_vars; do 2422 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2423 eval ac_new_set=\$ac_env_${ac_var}_set 2424 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2425 eval ac_new_val=\$ac_env_${ac_var}_value 2426 case $ac_old_set,$ac_new_set in 2427 set,) 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2429$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2430 ac_cache_corrupted=: ;; 2431 ,set) 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2433$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2434 ac_cache_corrupted=: ;; 2435 ,);; 2436 *) 2437 if test "x$ac_old_val" != "x$ac_new_val"; then 2438 # differences in whitespace do not lead to failure. 2439 ac_old_val_w=`echo x $ac_old_val` 2440 ac_new_val_w=`echo x $ac_new_val` 2441 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2443$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2444 ac_cache_corrupted=: 2445 else 2446 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2447$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2448 eval $ac_var=\$ac_old_val 2449 fi 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2451$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2453$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2454 fi;; 2455 esac 2456 # Pass precious variables to config.status. 2457 if test "$ac_new_set" = set; then 2458 case $ac_new_val in 2459 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2460 *) ac_arg=$ac_var=$ac_new_val ;; 2461 esac 2462 case " $ac_configure_args " in 2463 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2464 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2465 esac 2466 fi 2467done 2468if $ac_cache_corrupted; then 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2472$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2473 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2474fi 2475## -------------------- ## 2476## Main body of script. ## 2477## -------------------- ## 2478 2479ac_ext=c 2480ac_cpp='$CPP $CPPFLAGS' 2481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2483ac_compiler_gnu=$ac_cv_c_compiler_gnu 2484 2485 2486 2487LIBUNBOUND_CURRENT=3 2488LIBUNBOUND_REVISION=5 2489LIBUNBOUND_AGE=1 2490# 1.0.0 had 0:12:0 2491# 1.0.1 had 0:13:0 2492# 1.0.2 had 0:14:0 2493# 1.1.0 had 0:15:0 2494# 1.1.1 had 0:16:0 2495# 1.2.0 had 0:17:0 2496# 1.2.1 had 0:18:0 2497# 1.3.0 had 1:0:0 # ub_cancel and -export-symbols. 2498# 1.3.1 had 1:1:0 2499# 1.3.2 had 1:2:0 2500# 1.3.3 had 1:3:0 2501# 1.3.4 had 1:4:0 2502# 1.4.0-snapshots had 1:5:0 2503# 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus 2504# 1.4.1 had 2:1:0 2505# 1.4.2 had 2:2:0 2506# 1.4.3 had 2:3:0 2507# 1.4.4 had 2:4:0 2508# 1.4.5 had 2:5:0 2509# 1.4.6 had 2:6:0 2510# 1.4.7 had 2:7:0 2511# 1.4.8 had 2:8:0 2512# 1.4.9 had 2:9:0 2513# 1.4.10 had 2:10:0 2514# 1.4.11 had 2:11:0 2515# 1.4.12 had 2:12:0 2516# 1.4.13 had 2:13:0 2517# and 1.4.13p1 and 1.4.13.p2 2518# 1.4.14 had 2:14:0 2519# 1.4.15 had 3:0:1 # adds ub_version() 2520# 1.4.16 had 3:1:1 2521# 1.4.17 had 3:2:1 2522# 1.4.18 had 3:3:1 2523# 1.4.19 had 3:4:1 2524# 1.4.20 had 4:0:2 # adds libunbound.ttl 2525 2526# Current -- the number of the binary API that we're implementing 2527# Revision -- which iteration of the implementation of the binary 2528# API are we supplying? 2529# Age -- How many previous binary API versions do we also 2530# support? 2531# 2532# If we release a new version that does not change the binary API, 2533# increment Revision. 2534# 2535# If we release a new version that changes the binary API, but does 2536# not break programs compiled against the old binary API, increment 2537# Current and Age. Set Revision to 0, since this is the first 2538# implementation of the new API. 2539# 2540# Otherwise, we're changing the binary API and breaking bakward 2541# compatibility with old binaries. Increment Current. Set Age to 0, 2542# since we're backward compatible with no previous APIs. Set Revision 2543# to 0 too. 2544 2545 2546 2547 2548pretty_cmdline() { 2549 cmdline="" 2550 while test -n "$1"; do 2551 cmdline="$cmdline '"`echo $1 | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/g' `"'" 2552 shift 2553 done 2554} 2555pretty_cmdline $@ 2556 2557cat >>confdefs.h <<_ACEOF 2558#define CONFIGURE_BUILD_WITH "$cmdline" 2559_ACEOF 2560 2561ac_aux_dir= 2562for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2563 if test -f "$ac_dir/install-sh"; then 2564 ac_aux_dir=$ac_dir 2565 ac_install_sh="$ac_aux_dir/install-sh -c" 2566 break 2567 elif test -f "$ac_dir/install.sh"; then 2568 ac_aux_dir=$ac_dir 2569 ac_install_sh="$ac_aux_dir/install.sh -c" 2570 break 2571 elif test -f "$ac_dir/shtool"; then 2572 ac_aux_dir=$ac_dir 2573 ac_install_sh="$ac_aux_dir/shtool install -c" 2574 break 2575 fi 2576done 2577if test -z "$ac_aux_dir"; then 2578 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2579fi 2580 2581# These three variables are undocumented and unsupported, 2582# and are intended to be withdrawn in a future Autoconf release. 2583# They can cause serious problems if a builder's source tree is in a directory 2584# whose full name contains unusual characters. 2585ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2586ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2587ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2588 2589 2590# Make sure we can run config.sub. 2591$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2592 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2593 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2595$as_echo_n "checking build system type... " >&6; } 2596if ${ac_cv_build+:} false; then : 2597 $as_echo_n "(cached) " >&6 2598else 2599 ac_build_alias=$build_alias 2600test "x$ac_build_alias" = x && 2601 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2602test "x$ac_build_alias" = x && 2603 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2604ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2606 2607fi 2608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2609$as_echo "$ac_cv_build" >&6; } 2610case $ac_cv_build in 2611*-*-*) ;; 2612*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2613esac 2614build=$ac_cv_build 2615ac_save_IFS=$IFS; IFS='-' 2616set x $ac_cv_build 2617shift 2618build_cpu=$1 2619build_vendor=$2 2620shift; shift 2621# Remember, the first character of IFS is used to create $*, 2622# except with old shells: 2623build_os=$* 2624IFS=$ac_save_IFS 2625case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2626 2627 2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2629$as_echo_n "checking host system type... " >&6; } 2630if ${ac_cv_host+:} false; then : 2631 $as_echo_n "(cached) " >&6 2632else 2633 if test "x$host_alias" = x; then 2634 ac_cv_host=$ac_cv_build 2635else 2636 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2637 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2638fi 2639 2640fi 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2642$as_echo "$ac_cv_host" >&6; } 2643case $ac_cv_host in 2644*-*-*) ;; 2645*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2646esac 2647host=$ac_cv_host 2648ac_save_IFS=$IFS; IFS='-' 2649set x $ac_cv_host 2650shift 2651host_cpu=$1 2652host_vendor=$2 2653shift; shift 2654# Remember, the first character of IFS is used to create $*, 2655# except with old shells: 2656host_os=$* 2657IFS=$ac_save_IFS 2658case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2659 2660 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2662$as_echo_n "checking target system type... " >&6; } 2663if ${ac_cv_target+:} false; then : 2664 $as_echo_n "(cached) " >&6 2665else 2666 if test "x$target_alias" = x; then 2667 ac_cv_target=$ac_cv_host 2668else 2669 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2670 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2671fi 2672 2673fi 2674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2675$as_echo "$ac_cv_target" >&6; } 2676case $ac_cv_target in 2677*-*-*) ;; 2678*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2679esac 2680target=$ac_cv_target 2681ac_save_IFS=$IFS; IFS='-' 2682set x $ac_cv_target 2683shift 2684target_cpu=$1 2685target_vendor=$2 2686shift; shift 2687# Remember, the first character of IFS is used to create $*, 2688# except with old shells: 2689target_os=$* 2690IFS=$ac_save_IFS 2691case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2692 2693 2694# The aliases save the names the user supplied, while $host etc. 2695# will get canonicalized. 2696test -n "$target_alias" && 2697 test "$program_prefix$program_suffix$program_transform_name" = \ 2698 NONENONEs,x,x, && 2699 program_prefix=${target_alias}- 2700 2701cat >>confdefs.h <<_ACEOF 2702#define CONFIGURE_TARGET "$target" 2703_ACEOF 2704 2705 2706cat >>confdefs.h <<_ACEOF 2707#define CONFIGURE_DATE "`date`" 2708_ACEOF 2709 2710 2711CFLAGS="$CFLAGS" 2712ac_ext=c 2713ac_cpp='$CPP $CPPFLAGS' 2714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2716ac_compiler_gnu=$ac_cv_c_compiler_gnu 2717if test -n "$ac_tool_prefix"; then 2718 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2719set dummy ${ac_tool_prefix}gcc; ac_word=$2 2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2721$as_echo_n "checking for $ac_word... " >&6; } 2722if ${ac_cv_prog_CC+:} false; then : 2723 $as_echo_n "(cached) " >&6 2724else 2725 if test -n "$CC"; then 2726 ac_cv_prog_CC="$CC" # Let the user override the test. 2727else 2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2729for as_dir in $PATH 2730do 2731 IFS=$as_save_IFS 2732 test -z "$as_dir" && as_dir=. 2733 for ac_exec_ext in '' $ac_executable_extensions; do 2734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2735 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2737 break 2 2738 fi 2739done 2740 done 2741IFS=$as_save_IFS 2742 2743fi 2744fi 2745CC=$ac_cv_prog_CC 2746if test -n "$CC"; then 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2748$as_echo "$CC" >&6; } 2749else 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2751$as_echo "no" >&6; } 2752fi 2753 2754 2755fi 2756if test -z "$ac_cv_prog_CC"; then 2757 ac_ct_CC=$CC 2758 # Extract the first word of "gcc", so it can be a program name with args. 2759set dummy gcc; ac_word=$2 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2761$as_echo_n "checking for $ac_word... " >&6; } 2762if ${ac_cv_prog_ac_ct_CC+:} false; then : 2763 $as_echo_n "(cached) " >&6 2764else 2765 if test -n "$ac_ct_CC"; then 2766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2767else 2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2769for as_dir in $PATH 2770do 2771 IFS=$as_save_IFS 2772 test -z "$as_dir" && as_dir=. 2773 for ac_exec_ext in '' $ac_executable_extensions; do 2774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2775 ac_cv_prog_ac_ct_CC="gcc" 2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2777 break 2 2778 fi 2779done 2780 done 2781IFS=$as_save_IFS 2782 2783fi 2784fi 2785ac_ct_CC=$ac_cv_prog_ac_ct_CC 2786if test -n "$ac_ct_CC"; then 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2788$as_echo "$ac_ct_CC" >&6; } 2789else 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2791$as_echo "no" >&6; } 2792fi 2793 2794 if test "x$ac_ct_CC" = x; then 2795 CC="" 2796 else 2797 case $cross_compiling:$ac_tool_warned in 2798yes:) 2799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2801ac_tool_warned=yes ;; 2802esac 2803 CC=$ac_ct_CC 2804 fi 2805else 2806 CC="$ac_cv_prog_CC" 2807fi 2808 2809if test -z "$CC"; then 2810 if test -n "$ac_tool_prefix"; then 2811 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2812set dummy ${ac_tool_prefix}cc; ac_word=$2 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2814$as_echo_n "checking for $ac_word... " >&6; } 2815if ${ac_cv_prog_CC+:} false; then : 2816 $as_echo_n "(cached) " >&6 2817else 2818 if test -n "$CC"; then 2819 ac_cv_prog_CC="$CC" # Let the user override the test. 2820else 2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2822for as_dir in $PATH 2823do 2824 IFS=$as_save_IFS 2825 test -z "$as_dir" && as_dir=. 2826 for ac_exec_ext in '' $ac_executable_extensions; do 2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2828 ac_cv_prog_CC="${ac_tool_prefix}cc" 2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2830 break 2 2831 fi 2832done 2833 done 2834IFS=$as_save_IFS 2835 2836fi 2837fi 2838CC=$ac_cv_prog_CC 2839if test -n "$CC"; then 2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2841$as_echo "$CC" >&6; } 2842else 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2844$as_echo "no" >&6; } 2845fi 2846 2847 2848 fi 2849fi 2850if test -z "$CC"; then 2851 # Extract the first word of "cc", so it can be a program name with args. 2852set dummy cc; ac_word=$2 2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2854$as_echo_n "checking for $ac_word... " >&6; } 2855if ${ac_cv_prog_CC+:} false; then : 2856 $as_echo_n "(cached) " >&6 2857else 2858 if test -n "$CC"; then 2859 ac_cv_prog_CC="$CC" # Let the user override the test. 2860else 2861 ac_prog_rejected=no 2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863for as_dir in $PATH 2864do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2870 ac_prog_rejected=yes 2871 continue 2872 fi 2873 ac_cv_prog_CC="cc" 2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2875 break 2 2876 fi 2877done 2878 done 2879IFS=$as_save_IFS 2880 2881if test $ac_prog_rejected = yes; then 2882 # We found a bogon in the path, so make sure we never use it. 2883 set dummy $ac_cv_prog_CC 2884 shift 2885 if test $# != 0; then 2886 # We chose a different compiler from the bogus one. 2887 # However, it has the same basename, so the bogon will be chosen 2888 # first if we set CC to just the basename; use the full file name. 2889 shift 2890 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2891 fi 2892fi 2893fi 2894fi 2895CC=$ac_cv_prog_CC 2896if test -n "$CC"; then 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2898$as_echo "$CC" >&6; } 2899else 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2901$as_echo "no" >&6; } 2902fi 2903 2904 2905fi 2906if test -z "$CC"; then 2907 if test -n "$ac_tool_prefix"; then 2908 for ac_prog in cl.exe 2909 do 2910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2911set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2913$as_echo_n "checking for $ac_word... " >&6; } 2914if ${ac_cv_prog_CC+:} false; then : 2915 $as_echo_n "(cached) " >&6 2916else 2917 if test -n "$CC"; then 2918 ac_cv_prog_CC="$CC" # Let the user override the test. 2919else 2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2921for as_dir in $PATH 2922do 2923 IFS=$as_save_IFS 2924 test -z "$as_dir" && as_dir=. 2925 for ac_exec_ext in '' $ac_executable_extensions; do 2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2927 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2929 break 2 2930 fi 2931done 2932 done 2933IFS=$as_save_IFS 2934 2935fi 2936fi 2937CC=$ac_cv_prog_CC 2938if test -n "$CC"; then 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2940$as_echo "$CC" >&6; } 2941else 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2943$as_echo "no" >&6; } 2944fi 2945 2946 2947 test -n "$CC" && break 2948 done 2949fi 2950if test -z "$CC"; then 2951 ac_ct_CC=$CC 2952 for ac_prog in cl.exe 2953do 2954 # Extract the first word of "$ac_prog", so it can be a program name with args. 2955set dummy $ac_prog; ac_word=$2 2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2957$as_echo_n "checking for $ac_word... " >&6; } 2958if ${ac_cv_prog_ac_ct_CC+:} false; then : 2959 $as_echo_n "(cached) " >&6 2960else 2961 if test -n "$ac_ct_CC"; then 2962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2963else 2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2965for as_dir in $PATH 2966do 2967 IFS=$as_save_IFS 2968 test -z "$as_dir" && as_dir=. 2969 for ac_exec_ext in '' $ac_executable_extensions; do 2970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2971 ac_cv_prog_ac_ct_CC="$ac_prog" 2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2973 break 2 2974 fi 2975done 2976 done 2977IFS=$as_save_IFS 2978 2979fi 2980fi 2981ac_ct_CC=$ac_cv_prog_ac_ct_CC 2982if test -n "$ac_ct_CC"; then 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2984$as_echo "$ac_ct_CC" >&6; } 2985else 2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2987$as_echo "no" >&6; } 2988fi 2989 2990 2991 test -n "$ac_ct_CC" && break 2992done 2993 2994 if test "x$ac_ct_CC" = x; then 2995 CC="" 2996 else 2997 case $cross_compiling:$ac_tool_warned in 2998yes:) 2999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3001ac_tool_warned=yes ;; 3002esac 3003 CC=$ac_ct_CC 3004 fi 3005fi 3006 3007fi 3008 3009 3010test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3012as_fn_error $? "no acceptable C compiler found in \$PATH 3013See \`config.log' for more details" "$LINENO" 5; } 3014 3015# Provide some information about the compiler. 3016$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3017set X $ac_compile 3018ac_compiler=$2 3019for ac_option in --version -v -V -qversion; do 3020 { { ac_try="$ac_compiler $ac_option >&5" 3021case "(($ac_try" in 3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3023 *) ac_try_echo=$ac_try;; 3024esac 3025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3026$as_echo "$ac_try_echo"; } >&5 3027 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3028 ac_status=$? 3029 if test -s conftest.err; then 3030 sed '10a\ 3031... rest of stderr output deleted ... 3032 10q' conftest.err >conftest.er1 3033 cat conftest.er1 >&5 3034 fi 3035 rm -f conftest.er1 conftest.err 3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3037 test $ac_status = 0; } 3038done 3039 3040cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3041/* end confdefs.h. */ 3042 3043int 3044main () 3045{ 3046 3047 ; 3048 return 0; 3049} 3050_ACEOF 3051ac_clean_files_save=$ac_clean_files 3052ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3053# Try to create an executable without -o first, disregard a.out. 3054# It will help us diagnose broken compilers, and finding out an intuition 3055# of exeext. 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3057$as_echo_n "checking whether the C compiler works... " >&6; } 3058ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3059 3060# The possible output files: 3061ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3062 3063ac_rmfiles= 3064for ac_file in $ac_files 3065do 3066 case $ac_file in 3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3068 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3069 esac 3070done 3071rm -f $ac_rmfiles 3072 3073if { { ac_try="$ac_link_default" 3074case "(($ac_try" in 3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3076 *) ac_try_echo=$ac_try;; 3077esac 3078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3079$as_echo "$ac_try_echo"; } >&5 3080 (eval "$ac_link_default") 2>&5 3081 ac_status=$? 3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3083 test $ac_status = 0; }; then : 3084 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3085# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3086# in a Makefile. We should not override ac_cv_exeext if it was cached, 3087# so that the user can short-circuit this test for compilers unknown to 3088# Autoconf. 3089for ac_file in $ac_files '' 3090do 3091 test -f "$ac_file" || continue 3092 case $ac_file in 3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3094 ;; 3095 [ab].out ) 3096 # We found the default executable, but exeext='' is most 3097 # certainly right. 3098 break;; 3099 *.* ) 3100 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3101 then :; else 3102 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3103 fi 3104 # We set ac_cv_exeext here because the later test for it is not 3105 # safe: cross compilers may not add the suffix if given an `-o' 3106 # argument, so we may need to know it at that point already. 3107 # Even if this section looks crufty: it has the advantage of 3108 # actually working. 3109 break;; 3110 * ) 3111 break;; 3112 esac 3113done 3114test "$ac_cv_exeext" = no && ac_cv_exeext= 3115 3116else 3117 ac_file='' 3118fi 3119if test -z "$ac_file"; then : 3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3121$as_echo "no" >&6; } 3122$as_echo "$as_me: failed program was:" >&5 3123sed 's/^/| /' conftest.$ac_ext >&5 3124 3125{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3127as_fn_error 77 "C compiler cannot create executables 3128See \`config.log' for more details" "$LINENO" 5; } 3129else 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3131$as_echo "yes" >&6; } 3132fi 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3134$as_echo_n "checking for C compiler default output file name... " >&6; } 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3136$as_echo "$ac_file" >&6; } 3137ac_exeext=$ac_cv_exeext 3138 3139rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3140ac_clean_files=$ac_clean_files_save 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3142$as_echo_n "checking for suffix of executables... " >&6; } 3143if { { ac_try="$ac_link" 3144case "(($ac_try" in 3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3146 *) ac_try_echo=$ac_try;; 3147esac 3148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3149$as_echo "$ac_try_echo"; } >&5 3150 (eval "$ac_link") 2>&5 3151 ac_status=$? 3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3153 test $ac_status = 0; }; then : 3154 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3155# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3156# work properly (i.e., refer to `conftest.exe'), while it won't with 3157# `rm'. 3158for ac_file in conftest.exe conftest conftest.*; do 3159 test -f "$ac_file" || continue 3160 case $ac_file in 3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3163 break;; 3164 * ) break;; 3165 esac 3166done 3167else 3168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3170as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3171See \`config.log' for more details" "$LINENO" 5; } 3172fi 3173rm -f conftest conftest$ac_cv_exeext 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3175$as_echo "$ac_cv_exeext" >&6; } 3176 3177rm -f conftest.$ac_ext 3178EXEEXT=$ac_cv_exeext 3179ac_exeext=$EXEEXT 3180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3181/* end confdefs.h. */ 3182#include <stdio.h> 3183int 3184main () 3185{ 3186FILE *f = fopen ("conftest.out", "w"); 3187 return ferror (f) || fclose (f) != 0; 3188 3189 ; 3190 return 0; 3191} 3192_ACEOF 3193ac_clean_files="$ac_clean_files conftest.out" 3194# Check that the compiler produces executables we can run. If not, either 3195# the compiler is broken, or we cross compile. 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3197$as_echo_n "checking whether we are cross compiling... " >&6; } 3198if test "$cross_compiling" != yes; then 3199 { { ac_try="$ac_link" 3200case "(($ac_try" in 3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3202 *) ac_try_echo=$ac_try;; 3203esac 3204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3205$as_echo "$ac_try_echo"; } >&5 3206 (eval "$ac_link") 2>&5 3207 ac_status=$? 3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3209 test $ac_status = 0; } 3210 if { ac_try='./conftest$ac_cv_exeext' 3211 { { case "(($ac_try" in 3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3213 *) ac_try_echo=$ac_try;; 3214esac 3215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3216$as_echo "$ac_try_echo"; } >&5 3217 (eval "$ac_try") 2>&5 3218 ac_status=$? 3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3220 test $ac_status = 0; }; }; then 3221 cross_compiling=no 3222 else 3223 if test "$cross_compiling" = maybe; then 3224 cross_compiling=yes 3225 else 3226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3228as_fn_error $? "cannot run C compiled programs. 3229If you meant to cross compile, use \`--host'. 3230See \`config.log' for more details" "$LINENO" 5; } 3231 fi 3232 fi 3233fi 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3235$as_echo "$cross_compiling" >&6; } 3236 3237rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3238ac_clean_files=$ac_clean_files_save 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3240$as_echo_n "checking for suffix of object files... " >&6; } 3241if ${ac_cv_objext+:} false; then : 3242 $as_echo_n "(cached) " >&6 3243else 3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3245/* end confdefs.h. */ 3246 3247int 3248main () 3249{ 3250 3251 ; 3252 return 0; 3253} 3254_ACEOF 3255rm -f conftest.o conftest.obj 3256if { { ac_try="$ac_compile" 3257case "(($ac_try" in 3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3259 *) ac_try_echo=$ac_try;; 3260esac 3261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3262$as_echo "$ac_try_echo"; } >&5 3263 (eval "$ac_compile") 2>&5 3264 ac_status=$? 3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3266 test $ac_status = 0; }; then : 3267 for ac_file in conftest.o conftest.obj conftest.*; do 3268 test -f "$ac_file" || continue; 3269 case $ac_file in 3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3272 break;; 3273 esac 3274done 3275else 3276 $as_echo "$as_me: failed program was:" >&5 3277sed 's/^/| /' conftest.$ac_ext >&5 3278 3279{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3281as_fn_error $? "cannot compute suffix of object files: cannot compile 3282See \`config.log' for more details" "$LINENO" 5; } 3283fi 3284rm -f conftest.$ac_cv_objext conftest.$ac_ext 3285fi 3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3287$as_echo "$ac_cv_objext" >&6; } 3288OBJEXT=$ac_cv_objext 3289ac_objext=$OBJEXT 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3291$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3292if ${ac_cv_c_compiler_gnu+:} false; then : 3293 $as_echo_n "(cached) " >&6 3294else 3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3296/* end confdefs.h. */ 3297 3298int 3299main () 3300{ 3301#ifndef __GNUC__ 3302 choke me 3303#endif 3304 3305 ; 3306 return 0; 3307} 3308_ACEOF 3309if ac_fn_c_try_compile "$LINENO"; then : 3310 ac_compiler_gnu=yes 3311else 3312 ac_compiler_gnu=no 3313fi 3314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3315ac_cv_c_compiler_gnu=$ac_compiler_gnu 3316 3317fi 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3319$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3320if test $ac_compiler_gnu = yes; then 3321 GCC=yes 3322else 3323 GCC= 3324fi 3325ac_test_CFLAGS=${CFLAGS+set} 3326ac_save_CFLAGS=$CFLAGS 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3328$as_echo_n "checking whether $CC accepts -g... " >&6; } 3329if ${ac_cv_prog_cc_g+:} false; then : 3330 $as_echo_n "(cached) " >&6 3331else 3332 ac_save_c_werror_flag=$ac_c_werror_flag 3333 ac_c_werror_flag=yes 3334 ac_cv_prog_cc_g=no 3335 CFLAGS="-g" 3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3337/* end confdefs.h. */ 3338 3339int 3340main () 3341{ 3342 3343 ; 3344 return 0; 3345} 3346_ACEOF 3347if ac_fn_c_try_compile "$LINENO"; then : 3348 ac_cv_prog_cc_g=yes 3349else 3350 CFLAGS="" 3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3352/* end confdefs.h. */ 3353 3354int 3355main () 3356{ 3357 3358 ; 3359 return 0; 3360} 3361_ACEOF 3362if ac_fn_c_try_compile "$LINENO"; then : 3363 3364else 3365 ac_c_werror_flag=$ac_save_c_werror_flag 3366 CFLAGS="-g" 3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3368/* end confdefs.h. */ 3369 3370int 3371main () 3372{ 3373 3374 ; 3375 return 0; 3376} 3377_ACEOF 3378if ac_fn_c_try_compile "$LINENO"; then : 3379 ac_cv_prog_cc_g=yes 3380fi 3381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3382fi 3383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3384fi 3385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3386 ac_c_werror_flag=$ac_save_c_werror_flag 3387fi 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3389$as_echo "$ac_cv_prog_cc_g" >&6; } 3390if test "$ac_test_CFLAGS" = set; then 3391 CFLAGS=$ac_save_CFLAGS 3392elif test $ac_cv_prog_cc_g = yes; then 3393 if test "$GCC" = yes; then 3394 CFLAGS="-g -O2" 3395 else 3396 CFLAGS="-g" 3397 fi 3398else 3399 if test "$GCC" = yes; then 3400 CFLAGS="-O2" 3401 else 3402 CFLAGS= 3403 fi 3404fi 3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3406$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3407if ${ac_cv_prog_cc_c89+:} false; then : 3408 $as_echo_n "(cached) " >&6 3409else 3410 ac_cv_prog_cc_c89=no 3411ac_save_CC=$CC 3412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3413/* end confdefs.h. */ 3414#include <stdarg.h> 3415#include <stdio.h> 3416struct stat; 3417/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3418struct buf { int x; }; 3419FILE * (*rcsopen) (struct buf *, struct stat *, int); 3420static char *e (p, i) 3421 char **p; 3422 int i; 3423{ 3424 return p[i]; 3425} 3426static char *f (char * (*g) (char **, int), char **p, ...) 3427{ 3428 char *s; 3429 va_list v; 3430 va_start (v,p); 3431 s = g (p, va_arg (v,int)); 3432 va_end (v); 3433 return s; 3434} 3435 3436/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3437 function prototypes and stuff, but not '\xHH' hex character constants. 3438 These don't provoke an error unfortunately, instead are silently treated 3439 as 'x'. The following induces an error, until -std is added to get 3440 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3441 array size at least. It's necessary to write '\x00'==0 to get something 3442 that's true only with -std. */ 3443int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3444 3445/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3446 inside strings and character constants. */ 3447#define FOO(x) 'x' 3448int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3449 3450int test (int i, double x); 3451struct s1 {int (*f) (int a);}; 3452struct s2 {int (*f) (double a);}; 3453int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3454int argc; 3455char **argv; 3456int 3457main () 3458{ 3459return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3460 ; 3461 return 0; 3462} 3463_ACEOF 3464for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3465 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3466do 3467 CC="$ac_save_CC $ac_arg" 3468 if ac_fn_c_try_compile "$LINENO"; then : 3469 ac_cv_prog_cc_c89=$ac_arg 3470fi 3471rm -f core conftest.err conftest.$ac_objext 3472 test "x$ac_cv_prog_cc_c89" != "xno" && break 3473done 3474rm -f conftest.$ac_ext 3475CC=$ac_save_CC 3476 3477fi 3478# AC_CACHE_VAL 3479case "x$ac_cv_prog_cc_c89" in 3480 x) 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3482$as_echo "none needed" >&6; } ;; 3483 xno) 3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3485$as_echo "unsupported" >&6; } ;; 3486 *) 3487 CC="$CC $ac_cv_prog_cc_c89" 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3489$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3490esac 3491if test "x$ac_cv_prog_cc_c89" != xno; then : 3492 3493fi 3494 3495ac_ext=c 3496ac_cpp='$CPP $CPPFLAGS' 3497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3499ac_compiler_gnu=$ac_cv_c_compiler_gnu 3500 3501 3502ac_ext=c 3503ac_cpp='$CPP $CPPFLAGS' 3504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3506ac_compiler_gnu=$ac_cv_c_compiler_gnu 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3508$as_echo_n "checking how to run the C preprocessor... " >&6; } 3509# On Suns, sometimes $CPP names a directory. 3510if test -n "$CPP" && test -d "$CPP"; then 3511 CPP= 3512fi 3513if test -z "$CPP"; then 3514 if ${ac_cv_prog_CPP+:} false; then : 3515 $as_echo_n "(cached) " >&6 3516else 3517 # Double quotes because CPP needs to be expanded 3518 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3519 do 3520 ac_preproc_ok=false 3521for ac_c_preproc_warn_flag in '' yes 3522do 3523 # Use a header file that comes with gcc, so configuring glibc 3524 # with a fresh cross-compiler works. 3525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3526 # <limits.h> exists even on freestanding compilers. 3527 # On the NeXT, cc -E runs the code through the compiler's parser, 3528 # not just through cpp. "Syntax error" is here to catch this case. 3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3530/* end confdefs.h. */ 3531#ifdef __STDC__ 3532# include <limits.h> 3533#else 3534# include <assert.h> 3535#endif 3536 Syntax error 3537_ACEOF 3538if ac_fn_c_try_cpp "$LINENO"; then : 3539 3540else 3541 # Broken: fails on valid input. 3542continue 3543fi 3544rm -f conftest.err conftest.i conftest.$ac_ext 3545 3546 # OK, works on sane cases. Now check whether nonexistent headers 3547 # can be detected and how. 3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3549/* end confdefs.h. */ 3550#include <ac_nonexistent.h> 3551_ACEOF 3552if ac_fn_c_try_cpp "$LINENO"; then : 3553 # Broken: success on invalid input. 3554continue 3555else 3556 # Passes both tests. 3557ac_preproc_ok=: 3558break 3559fi 3560rm -f conftest.err conftest.i conftest.$ac_ext 3561 3562done 3563# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3564rm -f conftest.i conftest.err conftest.$ac_ext 3565if $ac_preproc_ok; then : 3566 break 3567fi 3568 3569 done 3570 ac_cv_prog_CPP=$CPP 3571 3572fi 3573 CPP=$ac_cv_prog_CPP 3574else 3575 ac_cv_prog_CPP=$CPP 3576fi 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3578$as_echo "$CPP" >&6; } 3579ac_preproc_ok=false 3580for ac_c_preproc_warn_flag in '' yes 3581do 3582 # Use a header file that comes with gcc, so configuring glibc 3583 # with a fresh cross-compiler works. 3584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3585 # <limits.h> exists even on freestanding compilers. 3586 # On the NeXT, cc -E runs the code through the compiler's parser, 3587 # not just through cpp. "Syntax error" is here to catch this case. 3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3589/* end confdefs.h. */ 3590#ifdef __STDC__ 3591# include <limits.h> 3592#else 3593# include <assert.h> 3594#endif 3595 Syntax error 3596_ACEOF 3597if ac_fn_c_try_cpp "$LINENO"; then : 3598 3599else 3600 # Broken: fails on valid input. 3601continue 3602fi 3603rm -f conftest.err conftest.i conftest.$ac_ext 3604 3605 # OK, works on sane cases. Now check whether nonexistent headers 3606 # can be detected and how. 3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3608/* end confdefs.h. */ 3609#include <ac_nonexistent.h> 3610_ACEOF 3611if ac_fn_c_try_cpp "$LINENO"; then : 3612 # Broken: success on invalid input. 3613continue 3614else 3615 # Passes both tests. 3616ac_preproc_ok=: 3617break 3618fi 3619rm -f conftest.err conftest.i conftest.$ac_ext 3620 3621done 3622# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3623rm -f conftest.i conftest.err conftest.$ac_ext 3624if $ac_preproc_ok; then : 3625 3626else 3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3629as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3630See \`config.log' for more details" "$LINENO" 5; } 3631fi 3632 3633ac_ext=c 3634ac_cpp='$CPP $CPPFLAGS' 3635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3637ac_compiler_gnu=$ac_cv_c_compiler_gnu 3638 3639 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3641$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3642if ${ac_cv_path_GREP+:} false; then : 3643 $as_echo_n "(cached) " >&6 3644else 3645 if test -z "$GREP"; then 3646 ac_path_GREP_found=false 3647 # Loop through the user's path and test for each of PROGNAME-LIST 3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3649for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3650do 3651 IFS=$as_save_IFS 3652 test -z "$as_dir" && as_dir=. 3653 for ac_prog in grep ggrep; do 3654 for ac_exec_ext in '' $ac_executable_extensions; do 3655 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3656 as_fn_executable_p "$ac_path_GREP" || continue 3657# Check for GNU ac_path_GREP and select it if it is found. 3658 # Check for GNU $ac_path_GREP 3659case `"$ac_path_GREP" --version 2>&1` in 3660*GNU*) 3661 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3662*) 3663 ac_count=0 3664 $as_echo_n 0123456789 >"conftest.in" 3665 while : 3666 do 3667 cat "conftest.in" "conftest.in" >"conftest.tmp" 3668 mv "conftest.tmp" "conftest.in" 3669 cp "conftest.in" "conftest.nl" 3670 $as_echo 'GREP' >> "conftest.nl" 3671 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3673 as_fn_arith $ac_count + 1 && ac_count=$as_val 3674 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3675 # Best one so far, save it but keep looking for a better one 3676 ac_cv_path_GREP="$ac_path_GREP" 3677 ac_path_GREP_max=$ac_count 3678 fi 3679 # 10*(2^10) chars as input seems more than enough 3680 test $ac_count -gt 10 && break 3681 done 3682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3683esac 3684 3685 $ac_path_GREP_found && break 3 3686 done 3687 done 3688 done 3689IFS=$as_save_IFS 3690 if test -z "$ac_cv_path_GREP"; then 3691 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3692 fi 3693else 3694 ac_cv_path_GREP=$GREP 3695fi 3696 3697fi 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3699$as_echo "$ac_cv_path_GREP" >&6; } 3700 GREP="$ac_cv_path_GREP" 3701 3702 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3704$as_echo_n "checking for egrep... " >&6; } 3705if ${ac_cv_path_EGREP+:} false; then : 3706 $as_echo_n "(cached) " >&6 3707else 3708 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3709 then ac_cv_path_EGREP="$GREP -E" 3710 else 3711 if test -z "$EGREP"; then 3712 ac_path_EGREP_found=false 3713 # Loop through the user's path and test for each of PROGNAME-LIST 3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3715for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3716do 3717 IFS=$as_save_IFS 3718 test -z "$as_dir" && as_dir=. 3719 for ac_prog in egrep; do 3720 for ac_exec_ext in '' $ac_executable_extensions; do 3721 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3722 as_fn_executable_p "$ac_path_EGREP" || continue 3723# Check for GNU ac_path_EGREP and select it if it is found. 3724 # Check for GNU $ac_path_EGREP 3725case `"$ac_path_EGREP" --version 2>&1` in 3726*GNU*) 3727 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3728*) 3729 ac_count=0 3730 $as_echo_n 0123456789 >"conftest.in" 3731 while : 3732 do 3733 cat "conftest.in" "conftest.in" >"conftest.tmp" 3734 mv "conftest.tmp" "conftest.in" 3735 cp "conftest.in" "conftest.nl" 3736 $as_echo 'EGREP' >> "conftest.nl" 3737 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3739 as_fn_arith $ac_count + 1 && ac_count=$as_val 3740 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3741 # Best one so far, save it but keep looking for a better one 3742 ac_cv_path_EGREP="$ac_path_EGREP" 3743 ac_path_EGREP_max=$ac_count 3744 fi 3745 # 10*(2^10) chars as input seems more than enough 3746 test $ac_count -gt 10 && break 3747 done 3748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3749esac 3750 3751 $ac_path_EGREP_found && break 3 3752 done 3753 done 3754 done 3755IFS=$as_save_IFS 3756 if test -z "$ac_cv_path_EGREP"; then 3757 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3758 fi 3759else 3760 ac_cv_path_EGREP=$EGREP 3761fi 3762 3763 fi 3764fi 3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3766$as_echo "$ac_cv_path_EGREP" >&6; } 3767 EGREP="$ac_cv_path_EGREP" 3768 3769 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3771$as_echo_n "checking for ANSI C header files... " >&6; } 3772if ${ac_cv_header_stdc+:} false; then : 3773 $as_echo_n "(cached) " >&6 3774else 3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3776/* end confdefs.h. */ 3777#include <stdlib.h> 3778#include <stdarg.h> 3779#include <string.h> 3780#include <float.h> 3781 3782int 3783main () 3784{ 3785 3786 ; 3787 return 0; 3788} 3789_ACEOF 3790if ac_fn_c_try_compile "$LINENO"; then : 3791 ac_cv_header_stdc=yes 3792else 3793 ac_cv_header_stdc=no 3794fi 3795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3796 3797if test $ac_cv_header_stdc = yes; then 3798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3800/* end confdefs.h. */ 3801#include <string.h> 3802 3803_ACEOF 3804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3805 $EGREP "memchr" >/dev/null 2>&1; then : 3806 3807else 3808 ac_cv_header_stdc=no 3809fi 3810rm -f conftest* 3811 3812fi 3813 3814if test $ac_cv_header_stdc = yes; then 3815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3817/* end confdefs.h. */ 3818#include <stdlib.h> 3819 3820_ACEOF 3821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3822 $EGREP "free" >/dev/null 2>&1; then : 3823 3824else 3825 ac_cv_header_stdc=no 3826fi 3827rm -f conftest* 3828 3829fi 3830 3831if test $ac_cv_header_stdc = yes; then 3832 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3833 if test "$cross_compiling" = yes; then : 3834 : 3835else 3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3837/* end confdefs.h. */ 3838#include <ctype.h> 3839#include <stdlib.h> 3840#if ((' ' & 0x0FF) == 0x020) 3841# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3842# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3843#else 3844# define ISLOWER(c) \ 3845 (('a' <= (c) && (c) <= 'i') \ 3846 || ('j' <= (c) && (c) <= 'r') \ 3847 || ('s' <= (c) && (c) <= 'z')) 3848# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3849#endif 3850 3851#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3852int 3853main () 3854{ 3855 int i; 3856 for (i = 0; i < 256; i++) 3857 if (XOR (islower (i), ISLOWER (i)) 3858 || toupper (i) != TOUPPER (i)) 3859 return 2; 3860 return 0; 3861} 3862_ACEOF 3863if ac_fn_c_try_run "$LINENO"; then : 3864 3865else 3866 ac_cv_header_stdc=no 3867fi 3868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3869 conftest.$ac_objext conftest.beam conftest.$ac_ext 3870fi 3871 3872fi 3873fi 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3875$as_echo "$ac_cv_header_stdc" >&6; } 3876if test $ac_cv_header_stdc = yes; then 3877 3878$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3879 3880fi 3881 3882# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3883for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3884 inttypes.h stdint.h unistd.h 3885do : 3886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3887ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3888" 3889if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3890 cat >>confdefs.h <<_ACEOF 3891#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3892_ACEOF 3893 3894fi 3895 3896done 3897 3898 3899 3900 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3901if test "x$ac_cv_header_minix_config_h" = xyes; then : 3902 MINIX=yes 3903else 3904 MINIX= 3905fi 3906 3907 3908 if test "$MINIX" = yes; then 3909 3910$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3911 3912 3913$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3914 3915 3916$as_echo "#define _MINIX 1" >>confdefs.h 3917 3918 fi 3919 3920 3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3922$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3923if ${ac_cv_safe_to_define___extensions__+:} false; then : 3924 $as_echo_n "(cached) " >&6 3925else 3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3927/* end confdefs.h. */ 3928 3929# define __EXTENSIONS__ 1 3930 $ac_includes_default 3931int 3932main () 3933{ 3934 3935 ; 3936 return 0; 3937} 3938_ACEOF 3939if ac_fn_c_try_compile "$LINENO"; then : 3940 ac_cv_safe_to_define___extensions__=yes 3941else 3942 ac_cv_safe_to_define___extensions__=no 3943fi 3944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3945fi 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3947$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3948 test $ac_cv_safe_to_define___extensions__ = yes && 3949 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3950 3951 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3952 3953 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3954 3955 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3956 3957 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3958 3959 3960 3961 3962case "$prefix" in 3963 NONE) 3964 prefix="/usr/local" 3965 ;; 3966esac 3967 3968# are we on MinGW? 3969if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes" 3970else 3971 if echo $target | grep mingw32 >/dev/null; then on_mingw="yes" 3972 else on_mingw="no"; fi 3973fi 3974 3975# 3976# Determine configuration file 3977# the eval is to evaluate shell expansion twice 3978if test $on_mingw = "no"; then 3979 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"` 3980else 3981 ub_conf_file="C:\\Program Files\\Unbound\\service.conf" 3982fi 3983 3984# Check whether --with-conf_file was given. 3985if test "${with_conf_file+set}" = set; then : 3986 withval=$with_conf_file; ub_conf_file="$withval" 3987fi 3988 3989 3990hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`" 3991 3992 3993cat >>confdefs.h <<_ACEOF 3994#define CONFIGFILE "$hdr_config" 3995_ACEOF 3996 3997 3998# Determine run, chroot directory and pidfile locations 3999 4000# Check whether --with-run-dir was given. 4001if test "${with_run_dir+set}" = set; then : 4002 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval" 4003else 4004 if test $on_mingw = no; then 4005 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"` 4006else 4007 UNBOUND_RUN_DIR="" 4008fi 4009 4010fi 4011 4012 4013hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4014 4015 4016cat >>confdefs.h <<_ACEOF 4017#define RUN_DIR "$hdr_run" 4018_ACEOF 4019 4020 4021 4022# Check whether --with-chroot-dir was given. 4023if test "${with_chroot_dir+set}" = set; then : 4024 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval" 4025else 4026 if test $on_mingw = no; then 4027 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR" 4028else 4029 UNBOUND_CHROOT_DIR="" 4030fi 4031 4032fi 4033 4034 4035hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4036 4037 4038cat >>confdefs.h <<_ACEOF 4039#define CHROOT_DIR "$hdr_chroot" 4040_ACEOF 4041 4042 4043 4044# Check whether --with-share-dir was given. 4045if test "${with_share_dir+set}" = set; then : 4046 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval" 4047else 4048 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR" 4049fi 4050 4051 4052 4053cat >>confdefs.h <<_ACEOF 4054#define SHARE_DIR "$UNBOUND_SHARE_DIR" 4055_ACEOF 4056 4057 4058 4059# Check whether --with-pidfile was given. 4060if test "${with_pidfile+set}" = set; then : 4061 withval=$with_pidfile; UNBOUND_PIDFILE="$withval" 4062else 4063 if test $on_mingw = no; then 4064 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid" 4065else 4066 UNBOUND_PIDFILE="" 4067fi 4068 4069fi 4070 4071 4072hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4073 4074 4075cat >>confdefs.h <<_ACEOF 4076#define PIDFILE "$hdr_pid" 4077_ACEOF 4078 4079 4080 4081# Check whether --with-rootkey-file was given. 4082if test "${with_rootkey_file+set}" = set; then : 4083 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval" 4084else 4085 if test $on_mingw = no; then 4086 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key" 4087else 4088 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key" 4089fi 4090 4091fi 4092 4093 4094hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4095 4096 4097cat >>confdefs.h <<_ACEOF 4098#define ROOT_ANCHOR_FILE "$hdr_rkey" 4099_ACEOF 4100 4101 4102 4103# Check whether --with-rootcert-file was given. 4104if test "${with_rootcert_file+set}" = set; then : 4105 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval" 4106else 4107 if test $on_mingw = no; then 4108 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem" 4109else 4110 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem" 4111fi 4112 4113fi 4114 4115 4116hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4117 4118 4119cat >>confdefs.h <<_ACEOF 4120#define ROOT_CERT_FILE "$hdr_rpem" 4121_ACEOF 4122 4123 4124 4125# Check whether --with-username was given. 4126if test "${with_username+set}" = set; then : 4127 withval=$with_username; UNBOUND_USERNAME="$withval" 4128else 4129 UNBOUND_USERNAME="unbound" 4130fi 4131 4132 4133 4134cat >>confdefs.h <<_ACEOF 4135#define UB_USERNAME "$UNBOUND_USERNAME" 4136_ACEOF 4137 4138 4139 4140$as_echo "#define WINVER 0x0502" >>confdefs.h 4141 4142wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^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]*$/\1,\2,\3,0/' ` 4143 4144 4145cat >>confdefs.h <<_ACEOF 4146#define RSRC_PACKAGE_VERSION $wnvs 4147_ACEOF 4148 4149 4150# Checks for typedefs, structures, and compiler characteristics. 4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4152$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4153if ${ac_cv_c_const+:} false; then : 4154 $as_echo_n "(cached) " >&6 4155else 4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4157/* end confdefs.h. */ 4158 4159int 4160main () 4161{ 4162 4163#ifndef __cplusplus 4164 /* Ultrix mips cc rejects this sort of thing. */ 4165 typedef int charset[2]; 4166 const charset cs = { 0, 0 }; 4167 /* SunOS 4.1.1 cc rejects this. */ 4168 char const *const *pcpcc; 4169 char **ppc; 4170 /* NEC SVR4.0.2 mips cc rejects this. */ 4171 struct point {int x, y;}; 4172 static struct point const zero = {0,0}; 4173 /* AIX XL C 1.02.0.0 rejects this. 4174 It does not let you subtract one const X* pointer from another in 4175 an arm of an if-expression whose if-part is not a constant 4176 expression */ 4177 const char *g = "string"; 4178 pcpcc = &g + (g ? g-g : 0); 4179 /* HPUX 7.0 cc rejects these. */ 4180 ++pcpcc; 4181 ppc = (char**) pcpcc; 4182 pcpcc = (char const *const *) ppc; 4183 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4184 char tx; 4185 char *t = &tx; 4186 char const *s = 0 ? (char *) 0 : (char const *) 0; 4187 4188 *t++ = 0; 4189 if (s) return 0; 4190 } 4191 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4192 int x[] = {25, 17}; 4193 const int *foo = &x[0]; 4194 ++foo; 4195 } 4196 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4197 typedef const int *iptr; 4198 iptr p = 0; 4199 ++p; 4200 } 4201 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4202 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4203 struct s { int j; const int *ap[3]; } bx; 4204 struct s *b = &bx; b->j = 5; 4205 } 4206 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4207 const int foo = 10; 4208 if (!foo) return 0; 4209 } 4210 return !cs[0] && !zero.x; 4211#endif 4212 4213 ; 4214 return 0; 4215} 4216_ACEOF 4217if ac_fn_c_try_compile "$LINENO"; then : 4218 ac_cv_c_const=yes 4219else 4220 ac_cv_c_const=no 4221fi 4222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4223fi 4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4225$as_echo "$ac_cv_c_const" >&6; } 4226if test $ac_cv_c_const = no; then 4227 4228$as_echo "#define const /**/" >>confdefs.h 4229 4230fi 4231 4232ac_ext=c 4233ac_cpp='$CPP $CPPFLAGS' 4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4236ac_compiler_gnu=$ac_cv_c_compiler_gnu 4237 4238# allow user to override the -g -O2 flags. 4239if test "x$CFLAGS" = "x" ; then 4240 4241 4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4243$as_echo_n "checking whether $CC supports -g... " >&6; } 4244cache=`echo g | sed 'y%.=/+-%___p_%'` 4245if eval \${cv_prog_cc_flag_$cache+:} false; then : 4246 $as_echo_n "(cached) " >&6 4247else 4248 4249echo 'void f(){}' >conftest.c 4250if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4251eval "cv_prog_cc_flag_$cache=yes" 4252else 4253eval "cv_prog_cc_flag_$cache=no" 4254fi 4255rm -f conftest conftest.o conftest.c 4256 4257fi 4258 4259if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4261$as_echo "yes" >&6; } 4262: 4263CFLAGS="$CFLAGS -g" 4264else 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4266$as_echo "no" >&6; } 4267: 4268 4269fi 4270 4271 4272 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4274$as_echo_n "checking whether $CC supports -O2... " >&6; } 4275cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4276if eval \${cv_prog_cc_flag_$cache+:} false; then : 4277 $as_echo_n "(cached) " >&6 4278else 4279 4280echo 'void f(){}' >conftest.c 4281if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4282eval "cv_prog_cc_flag_$cache=yes" 4283else 4284eval "cv_prog_cc_flag_$cache=no" 4285fi 4286rm -f conftest conftest.o conftest.c 4287 4288fi 4289 4290if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4292$as_echo "yes" >&6; } 4293: 4294CFLAGS="$CFLAGS -O2" 4295else 4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4297$as_echo "no" >&6; } 4298: 4299 4300fi 4301 4302fi 4303ac_ext=c 4304ac_cpp='$CPP $CPPFLAGS' 4305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4307ac_compiler_gnu=$ac_cv_c_compiler_gnu 4308if test -n "$ac_tool_prefix"; then 4309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4310set dummy ${ac_tool_prefix}gcc; ac_word=$2 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4312$as_echo_n "checking for $ac_word... " >&6; } 4313if ${ac_cv_prog_CC+:} false; then : 4314 $as_echo_n "(cached) " >&6 4315else 4316 if test -n "$CC"; then 4317 ac_cv_prog_CC="$CC" # Let the user override the test. 4318else 4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4320for as_dir in $PATH 4321do 4322 IFS=$as_save_IFS 4323 test -z "$as_dir" && as_dir=. 4324 for ac_exec_ext in '' $ac_executable_extensions; do 4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4326 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4328 break 2 4329 fi 4330done 4331 done 4332IFS=$as_save_IFS 4333 4334fi 4335fi 4336CC=$ac_cv_prog_CC 4337if test -n "$CC"; then 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4339$as_echo "$CC" >&6; } 4340else 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4342$as_echo "no" >&6; } 4343fi 4344 4345 4346fi 4347if test -z "$ac_cv_prog_CC"; then 4348 ac_ct_CC=$CC 4349 # Extract the first word of "gcc", so it can be a program name with args. 4350set dummy gcc; ac_word=$2 4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4352$as_echo_n "checking for $ac_word... " >&6; } 4353if ${ac_cv_prog_ac_ct_CC+:} false; then : 4354 $as_echo_n "(cached) " >&6 4355else 4356 if test -n "$ac_ct_CC"; then 4357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4358else 4359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4360for as_dir in $PATH 4361do 4362 IFS=$as_save_IFS 4363 test -z "$as_dir" && as_dir=. 4364 for ac_exec_ext in '' $ac_executable_extensions; do 4365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4366 ac_cv_prog_ac_ct_CC="gcc" 4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4368 break 2 4369 fi 4370done 4371 done 4372IFS=$as_save_IFS 4373 4374fi 4375fi 4376ac_ct_CC=$ac_cv_prog_ac_ct_CC 4377if test -n "$ac_ct_CC"; then 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4379$as_echo "$ac_ct_CC" >&6; } 4380else 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4382$as_echo "no" >&6; } 4383fi 4384 4385 if test "x$ac_ct_CC" = x; then 4386 CC="" 4387 else 4388 case $cross_compiling:$ac_tool_warned in 4389yes:) 4390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4392ac_tool_warned=yes ;; 4393esac 4394 CC=$ac_ct_CC 4395 fi 4396else 4397 CC="$ac_cv_prog_CC" 4398fi 4399 4400if test -z "$CC"; then 4401 if test -n "$ac_tool_prefix"; then 4402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4403set dummy ${ac_tool_prefix}cc; ac_word=$2 4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4405$as_echo_n "checking for $ac_word... " >&6; } 4406if ${ac_cv_prog_CC+:} false; then : 4407 $as_echo_n "(cached) " >&6 4408else 4409 if test -n "$CC"; then 4410 ac_cv_prog_CC="$CC" # Let the user override the test. 4411else 4412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4413for as_dir in $PATH 4414do 4415 IFS=$as_save_IFS 4416 test -z "$as_dir" && as_dir=. 4417 for ac_exec_ext in '' $ac_executable_extensions; do 4418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4419 ac_cv_prog_CC="${ac_tool_prefix}cc" 4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4421 break 2 4422 fi 4423done 4424 done 4425IFS=$as_save_IFS 4426 4427fi 4428fi 4429CC=$ac_cv_prog_CC 4430if test -n "$CC"; then 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4432$as_echo "$CC" >&6; } 4433else 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4435$as_echo "no" >&6; } 4436fi 4437 4438 4439 fi 4440fi 4441if test -z "$CC"; then 4442 # Extract the first word of "cc", so it can be a program name with args. 4443set dummy cc; ac_word=$2 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4445$as_echo_n "checking for $ac_word... " >&6; } 4446if ${ac_cv_prog_CC+:} false; then : 4447 $as_echo_n "(cached) " >&6 4448else 4449 if test -n "$CC"; then 4450 ac_cv_prog_CC="$CC" # Let the user override the test. 4451else 4452 ac_prog_rejected=no 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4461 ac_prog_rejected=yes 4462 continue 4463 fi 4464 ac_cv_prog_CC="cc" 4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4466 break 2 4467 fi 4468done 4469 done 4470IFS=$as_save_IFS 4471 4472if test $ac_prog_rejected = yes; then 4473 # We found a bogon in the path, so make sure we never use it. 4474 set dummy $ac_cv_prog_CC 4475 shift 4476 if test $# != 0; then 4477 # We chose a different compiler from the bogus one. 4478 # However, it has the same basename, so the bogon will be chosen 4479 # first if we set CC to just the basename; use the full file name. 4480 shift 4481 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4482 fi 4483fi 4484fi 4485fi 4486CC=$ac_cv_prog_CC 4487if test -n "$CC"; then 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4489$as_echo "$CC" >&6; } 4490else 4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4492$as_echo "no" >&6; } 4493fi 4494 4495 4496fi 4497if test -z "$CC"; then 4498 if test -n "$ac_tool_prefix"; then 4499 for ac_prog in cl.exe 4500 do 4501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4502set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4504$as_echo_n "checking for $ac_word... " >&6; } 4505if ${ac_cv_prog_CC+:} false; then : 4506 $as_echo_n "(cached) " >&6 4507else 4508 if test -n "$CC"; then 4509 ac_cv_prog_CC="$CC" # Let the user override the test. 4510else 4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4512for as_dir in $PATH 4513do 4514 IFS=$as_save_IFS 4515 test -z "$as_dir" && as_dir=. 4516 for ac_exec_ext in '' $ac_executable_extensions; do 4517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4520 break 2 4521 fi 4522done 4523 done 4524IFS=$as_save_IFS 4525 4526fi 4527fi 4528CC=$ac_cv_prog_CC 4529if test -n "$CC"; then 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4531$as_echo "$CC" >&6; } 4532else 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4534$as_echo "no" >&6; } 4535fi 4536 4537 4538 test -n "$CC" && break 4539 done 4540fi 4541if test -z "$CC"; then 4542 ac_ct_CC=$CC 4543 for ac_prog in cl.exe 4544do 4545 # Extract the first word of "$ac_prog", so it can be a program name with args. 4546set dummy $ac_prog; ac_word=$2 4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4548$as_echo_n "checking for $ac_word... " >&6; } 4549if ${ac_cv_prog_ac_ct_CC+:} false; then : 4550 $as_echo_n "(cached) " >&6 4551else 4552 if test -n "$ac_ct_CC"; then 4553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4554else 4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4556for as_dir in $PATH 4557do 4558 IFS=$as_save_IFS 4559 test -z "$as_dir" && as_dir=. 4560 for ac_exec_ext in '' $ac_executable_extensions; do 4561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4562 ac_cv_prog_ac_ct_CC="$ac_prog" 4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4564 break 2 4565 fi 4566done 4567 done 4568IFS=$as_save_IFS 4569 4570fi 4571fi 4572ac_ct_CC=$ac_cv_prog_ac_ct_CC 4573if test -n "$ac_ct_CC"; then 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4575$as_echo "$ac_ct_CC" >&6; } 4576else 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4578$as_echo "no" >&6; } 4579fi 4580 4581 4582 test -n "$ac_ct_CC" && break 4583done 4584 4585 if test "x$ac_ct_CC" = x; then 4586 CC="" 4587 else 4588 case $cross_compiling:$ac_tool_warned in 4589yes:) 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4592ac_tool_warned=yes ;; 4593esac 4594 CC=$ac_ct_CC 4595 fi 4596fi 4597 4598fi 4599 4600 4601test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4603as_fn_error $? "no acceptable C compiler found in \$PATH 4604See \`config.log' for more details" "$LINENO" 5; } 4605 4606# Provide some information about the compiler. 4607$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4608set X $ac_compile 4609ac_compiler=$2 4610for ac_option in --version -v -V -qversion; do 4611 { { ac_try="$ac_compiler $ac_option >&5" 4612case "(($ac_try" in 4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4614 *) ac_try_echo=$ac_try;; 4615esac 4616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4617$as_echo "$ac_try_echo"; } >&5 4618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4619 ac_status=$? 4620 if test -s conftest.err; then 4621 sed '10a\ 4622... rest of stderr output deleted ... 4623 10q' conftest.err >conftest.er1 4624 cat conftest.er1 >&5 4625 fi 4626 rm -f conftest.er1 conftest.err 4627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4628 test $ac_status = 0; } 4629done 4630 4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4632$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4633if ${ac_cv_c_compiler_gnu+:} false; then : 4634 $as_echo_n "(cached) " >&6 4635else 4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4637/* end confdefs.h. */ 4638 4639int 4640main () 4641{ 4642#ifndef __GNUC__ 4643 choke me 4644#endif 4645 4646 ; 4647 return 0; 4648} 4649_ACEOF 4650if ac_fn_c_try_compile "$LINENO"; then : 4651 ac_compiler_gnu=yes 4652else 4653 ac_compiler_gnu=no 4654fi 4655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4656ac_cv_c_compiler_gnu=$ac_compiler_gnu 4657 4658fi 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4660$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4661if test $ac_compiler_gnu = yes; then 4662 GCC=yes 4663else 4664 GCC= 4665fi 4666ac_test_CFLAGS=${CFLAGS+set} 4667ac_save_CFLAGS=$CFLAGS 4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4669$as_echo_n "checking whether $CC accepts -g... " >&6; } 4670if ${ac_cv_prog_cc_g+:} false; then : 4671 $as_echo_n "(cached) " >&6 4672else 4673 ac_save_c_werror_flag=$ac_c_werror_flag 4674 ac_c_werror_flag=yes 4675 ac_cv_prog_cc_g=no 4676 CFLAGS="-g" 4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4678/* end confdefs.h. */ 4679 4680int 4681main () 4682{ 4683 4684 ; 4685 return 0; 4686} 4687_ACEOF 4688if ac_fn_c_try_compile "$LINENO"; then : 4689 ac_cv_prog_cc_g=yes 4690else 4691 CFLAGS="" 4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4693/* end confdefs.h. */ 4694 4695int 4696main () 4697{ 4698 4699 ; 4700 return 0; 4701} 4702_ACEOF 4703if ac_fn_c_try_compile "$LINENO"; then : 4704 4705else 4706 ac_c_werror_flag=$ac_save_c_werror_flag 4707 CFLAGS="-g" 4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4709/* end confdefs.h. */ 4710 4711int 4712main () 4713{ 4714 4715 ; 4716 return 0; 4717} 4718_ACEOF 4719if ac_fn_c_try_compile "$LINENO"; then : 4720 ac_cv_prog_cc_g=yes 4721fi 4722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4723fi 4724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4725fi 4726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4727 ac_c_werror_flag=$ac_save_c_werror_flag 4728fi 4729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4730$as_echo "$ac_cv_prog_cc_g" >&6; } 4731if test "$ac_test_CFLAGS" = set; then 4732 CFLAGS=$ac_save_CFLAGS 4733elif test $ac_cv_prog_cc_g = yes; then 4734 if test "$GCC" = yes; then 4735 CFLAGS="-g -O2" 4736 else 4737 CFLAGS="-g" 4738 fi 4739else 4740 if test "$GCC" = yes; then 4741 CFLAGS="-O2" 4742 else 4743 CFLAGS= 4744 fi 4745fi 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4747$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4748if ${ac_cv_prog_cc_c89+:} false; then : 4749 $as_echo_n "(cached) " >&6 4750else 4751 ac_cv_prog_cc_c89=no 4752ac_save_CC=$CC 4753cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4754/* end confdefs.h. */ 4755#include <stdarg.h> 4756#include <stdio.h> 4757struct stat; 4758/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4759struct buf { int x; }; 4760FILE * (*rcsopen) (struct buf *, struct stat *, int); 4761static char *e (p, i) 4762 char **p; 4763 int i; 4764{ 4765 return p[i]; 4766} 4767static char *f (char * (*g) (char **, int), char **p, ...) 4768{ 4769 char *s; 4770 va_list v; 4771 va_start (v,p); 4772 s = g (p, va_arg (v,int)); 4773 va_end (v); 4774 return s; 4775} 4776 4777/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4778 function prototypes and stuff, but not '\xHH' hex character constants. 4779 These don't provoke an error unfortunately, instead are silently treated 4780 as 'x'. The following induces an error, until -std is added to get 4781 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4782 array size at least. It's necessary to write '\x00'==0 to get something 4783 that's true only with -std. */ 4784int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4785 4786/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4787 inside strings and character constants. */ 4788#define FOO(x) 'x' 4789int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4790 4791int test (int i, double x); 4792struct s1 {int (*f) (int a);}; 4793struct s2 {int (*f) (double a);}; 4794int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4795int argc; 4796char **argv; 4797int 4798main () 4799{ 4800return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4801 ; 4802 return 0; 4803} 4804_ACEOF 4805for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4807do 4808 CC="$ac_save_CC $ac_arg" 4809 if ac_fn_c_try_compile "$LINENO"; then : 4810 ac_cv_prog_cc_c89=$ac_arg 4811fi 4812rm -f core conftest.err conftest.$ac_objext 4813 test "x$ac_cv_prog_cc_c89" != "xno" && break 4814done 4815rm -f conftest.$ac_ext 4816CC=$ac_save_CC 4817 4818fi 4819# AC_CACHE_VAL 4820case "x$ac_cv_prog_cc_c89" in 4821 x) 4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4823$as_echo "none needed" >&6; } ;; 4824 xno) 4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4826$as_echo "unsupported" >&6; } ;; 4827 *) 4828 CC="$CC $ac_cv_prog_cc_c89" 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4830$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4831esac 4832if test "x$ac_cv_prog_cc_c89" != xno; then : 4833 4834fi 4835 4836ac_ext=c 4837ac_cpp='$CPP $CPPFLAGS' 4838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4840ac_compiler_gnu=$ac_cv_c_compiler_gnu 4841 4842 4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 4844$as_echo_n "checking $CC dependency flag... " >&6; } 4845echo 'void f(){}' >conftest.c 4846if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 4847 DEPFLAG="-MM" 4848else 4849 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 4850 DEPFLAG="-xM1" 4851 else 4852 DEPFLAG="-MM" # dunno do something 4853 fi 4854fi 4855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 4856$as_echo "$DEPFLAG" >&6; } 4857rm -f conftest.c 4858 4859 4860 4861 4862 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 4864$as_echo_n "checking whether $CC supports -Werror... " >&6; } 4865cache=`echo Werror | sed 'y%.=/+-%___p_%'` 4866if eval \${cv_prog_cc_flag_$cache+:} false; then : 4867 $as_echo_n "(cached) " >&6 4868else 4869 4870echo 'void f(){}' >conftest.c 4871if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 4872eval "cv_prog_cc_flag_$cache=yes" 4873else 4874eval "cv_prog_cc_flag_$cache=no" 4875fi 4876rm -f conftest conftest.o conftest.c 4877 4878fi 4879 4880if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4882$as_echo "yes" >&6; } 4883: 4884ERRFLAG="-Werror" 4885else 4886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4887$as_echo "no" >&6; } 4888: 4889ERRFLAG="-errwarn" 4890fi 4891 4892 4893 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 4895$as_echo_n "checking whether $CC supports -Wall... " >&6; } 4896cache=`echo Wall | sed 'y%.=/+-%___p_%'` 4897if eval \${cv_prog_cc_flag_$cache+:} false; then : 4898 $as_echo_n "(cached) " >&6 4899else 4900 4901echo 'void f(){}' >conftest.c 4902if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 4903eval "cv_prog_cc_flag_$cache=yes" 4904else 4905eval "cv_prog_cc_flag_$cache=no" 4906fi 4907rm -f conftest conftest.o conftest.c 4908 4909fi 4910 4911if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4913$as_echo "yes" >&6; } 4914: 4915ERRFLAG="$ERRFLAG -Wall" 4916else 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4918$as_echo "no" >&6; } 4919: 4920ERRFLAG="$ERRFLAG -errfmt" 4921fi 4922 4923 4924 4925 4926 4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 4928$as_echo_n "checking whether $CC supports -std=c99... " >&6; } 4929cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 4930if eval \${cv_prog_cc_flag_$cache+:} false; then : 4931 $as_echo_n "(cached) " >&6 4932else 4933 4934echo 'void f(){}' >conftest.c 4935if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 4936eval "cv_prog_cc_flag_$cache=yes" 4937else 4938eval "cv_prog_cc_flag_$cache=no" 4939fi 4940rm -f conftest conftest.o conftest.c 4941 4942fi 4943 4944if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4946$as_echo "yes" >&6; } 4947: 4948C99FLAG="-std=c99" 4949else 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4951$as_echo "no" >&6; } 4952: 4953 4954fi 4955 4956 4957 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 4959$as_echo_n "checking whether $CC supports -xc99... " >&6; } 4960cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 4961if eval \${cv_prog_cc_flag_$cache+:} false; then : 4962 $as_echo_n "(cached) " >&6 4963else 4964 4965echo 'void f(){}' >conftest.c 4966if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 4967eval "cv_prog_cc_flag_$cache=yes" 4968else 4969eval "cv_prog_cc_flag_$cache=no" 4970fi 4971rm -f conftest conftest.o conftest.c 4972 4973fi 4974 4975if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4977$as_echo "yes" >&6; } 4978: 4979C99FLAG="-xc99" 4980else 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4982$as_echo "no" >&6; } 4983: 4984 4985fi 4986 4987 4988for ac_header in getopt.h time.h 4989do : 4990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4991ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4992" 4993if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4994 cat >>confdefs.h <<_ACEOF 4995#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4996_ACEOF 4997 4998fi 4999 5000done 5001 5002 5003 5004 5005 5006{ $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 5007$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; } 5008cache=`$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` 5009if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5010 $as_echo_n "(cached) " >&6 5011else 5012 5013echo ' 5014#include "confdefs.h" 5015#include <stdlib.h> 5016#include <ctype.h> 5017#include <sys/time.h> 5018#ifdef HAVE_TIME_H 5019#include <time.h> 5020#endif 5021#include <unistd.h> 5022#include <netdb.h> 5023#ifdef HAVE_GETOPT_H 5024#include <getopt.h> 5025#endif 5026 5027int test() { 5028 int a; 5029 char **opts = NULL; 5030 struct timeval tv; 5031 char *t; 5032 time_t time = 0; 5033 char *buf = NULL; 5034 const char* str = NULL; 5035 struct msghdr msg; 5036 msg.msg_control = 0; 5037 t = ctime_r(&time, buf); 5038 tv.tv_usec = 10; 5039 srandom(32); 5040 a = getopt(2, opts, "a"); 5041 a = isascii(32); 5042 str = gai_strerror(0); 5043 if(str && t && tv.tv_usec && msg.msg_control) 5044 a = 0; 5045 return a; 5046} 5047' > conftest.c 5048echo 'void f(){}' >>conftest.c 5049if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5050eval "cv_prog_cc_flag_needed_$cache=no" 5051else 5052 5053if 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 5054eval "cv_prog_cc_flag_needed_$cache=yes" 5055else 5056eval "cv_prog_cc_flag_needed_$cache=fail" 5057#echo 'Test with flag fails too!' 5058#cat conftest.c 5059#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" 5060#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` 5061#exit 1 5062fi 5063 5064fi 5065rm -f conftest conftest.c conftest.o 5066 5067fi 5068 5069if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5071$as_echo "yes" >&6; } 5072: 5073CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" 5074else 5075if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5077$as_echo "no" >&6; } 5078#echo 'Test with flag is no!' 5079#cat conftest.c 5080#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" 5081#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` 5082#exit 1 5083: 5084 5085else 5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5087$as_echo "failed" >&6; } 5088: 5089 5090fi 5091fi 5092 5093 5094 5095 5096 5097{ $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 5098$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; } 5099cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 5100if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5101 $as_echo_n "(cached) " >&6 5102else 5103 5104echo ' 5105#include "confdefs.h" 5106#include <stdlib.h> 5107#include <ctype.h> 5108#include <sys/time.h> 5109#ifdef HAVE_TIME_H 5110#include <time.h> 5111#endif 5112#include <unistd.h> 5113#include <netdb.h> 5114#ifdef HAVE_GETOPT_H 5115#include <getopt.h> 5116#endif 5117 5118int test() { 5119 int a; 5120 char **opts = NULL; 5121 struct timeval tv; 5122 char *t; 5123 time_t time = 0; 5124 char *buf = NULL; 5125 const char* str = NULL; 5126 struct msghdr msg; 5127 msg.msg_control = 0; 5128 t = ctime_r(&time, buf); 5129 tv.tv_usec = 10; 5130 srandom(32); 5131 a = getopt(2, opts, "a"); 5132 a = isascii(32); 5133 str = gai_strerror(0); 5134 if(str && t && tv.tv_usec && msg.msg_control) 5135 a = 0; 5136 return a; 5137} 5138' > conftest.c 5139echo 'void f(){}' >>conftest.c 5140if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5141eval "cv_prog_cc_flag_needed_$cache=no" 5142else 5143 5144if 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 5145eval "cv_prog_cc_flag_needed_$cache=yes" 5146else 5147eval "cv_prog_cc_flag_needed_$cache=fail" 5148#echo 'Test with flag fails too!' 5149#cat conftest.c 5150#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" 5151#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` 5152#exit 1 5153fi 5154 5155fi 5156rm -f conftest conftest.c conftest.o 5157 5158fi 5159 5160if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5162$as_echo "yes" >&6; } 5163: 5164CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 5165else 5166if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5168$as_echo "no" >&6; } 5169#echo 'Test with flag is no!' 5170#cat conftest.c 5171#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" 5172#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` 5173#exit 1 5174: 5175 5176else 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5178$as_echo "failed" >&6; } 5179: 5180 5181fi 5182fi 5183 5184 5185 5186 5187 5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 5189$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 5190cache=`$as_echo "$C99FLAG" | $as_tr_sh` 5191if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5192 $as_echo_n "(cached) " >&6 5193else 5194 5195echo ' 5196#include <stdbool.h> 5197#include <ctype.h> 5198int test() { 5199 int a = 0; 5200 return a; 5201} 5202' > conftest.c 5203echo 'void f(){}' >>conftest.c 5204if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5205eval "cv_prog_cc_flag_needed_$cache=no" 5206else 5207 5208if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 5209eval "cv_prog_cc_flag_needed_$cache=yes" 5210else 5211eval "cv_prog_cc_flag_needed_$cache=fail" 5212#echo 'Test with flag fails too!' 5213#cat conftest.c 5214#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5215#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5216#exit 1 5217fi 5218 5219fi 5220rm -f conftest conftest.c conftest.o 5221 5222fi 5223 5224if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5226$as_echo "yes" >&6; } 5227: 5228CFLAGS="$CFLAGS $C99FLAG" 5229else 5230if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5232$as_echo "no" >&6; } 5233#echo 'Test with flag is no!' 5234#cat conftest.c 5235#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 5236#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 5237#exit 1 5238: 5239 5240else 5241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5242$as_echo "failed" >&6; } 5243: 5244 5245fi 5246fi 5247 5248 5249 5250 5251 5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5 5253$as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; } 5254cache=_D_BSD_SOURCE 5255if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5256 $as_echo_n "(cached) " >&6 5257else 5258 5259echo ' 5260#include <ctype.h> 5261 5262int test() { 5263 int a; 5264 a = isascii(32); 5265 return a; 5266} 5267' > conftest.c 5268echo 'void f(){}' >>conftest.c 5269if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5270eval "cv_prog_cc_flag_needed_$cache=no" 5271else 5272 5273if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5274eval "cv_prog_cc_flag_needed_$cache=yes" 5275else 5276eval "cv_prog_cc_flag_needed_$cache=fail" 5277#echo 'Test with flag fails too!' 5278#cat conftest.c 5279#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5280#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5281#exit 1 5282fi 5283 5284fi 5285rm -f conftest conftest.c conftest.o 5286 5287fi 5288 5289if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5291$as_echo "yes" >&6; } 5292: 5293CFLAGS="$CFLAGS -D_BSD_SOURCE" 5294else 5295if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5297$as_echo "no" >&6; } 5298#echo 'Test with flag is no!' 5299#cat conftest.c 5300#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1" 5301#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1` 5302#exit 1 5303: 5304 5305else 5306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5307$as_echo "failed" >&6; } 5308: 5309 5310fi 5311fi 5312 5313 5314 5315 5316 5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 5318$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 5319cache=_D_GNU_SOURCE 5320if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5321 $as_echo_n "(cached) " >&6 5322else 5323 5324echo ' 5325#include <netinet/in.h> 5326 5327int test() { 5328 struct in6_pktinfo inf; 5329 int a = (int)sizeof(inf); 5330 return a; 5331} 5332' > conftest.c 5333echo 'void f(){}' >>conftest.c 5334if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5335eval "cv_prog_cc_flag_needed_$cache=no" 5336else 5337 5338if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5339eval "cv_prog_cc_flag_needed_$cache=yes" 5340else 5341eval "cv_prog_cc_flag_needed_$cache=fail" 5342#echo 'Test with flag fails too!' 5343#cat conftest.c 5344#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5345#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5346#exit 1 5347fi 5348 5349fi 5350rm -f conftest conftest.c conftest.o 5351 5352fi 5353 5354if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5356$as_echo "yes" >&6; } 5357: 5358CFLAGS="$CFLAGS -D_GNU_SOURCE" 5359else 5360if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5362$as_echo "no" >&6; } 5363#echo 'Test with flag is no!' 5364#cat conftest.c 5365#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 5366#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 5367#exit 1 5368: 5369 5370else 5371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5372$as_echo "failed" >&6; } 5373: 5374 5375fi 5376fi 5377 5378 5379# check again for GNU_SOURCE for setresgid. May fail if setresgid 5380# is not available at all. -D_FRSRESGID is to make this check unique. 5381# otherwise we would get the previous cached result. 5382 5383 5384 5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 5386$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 5387cache=_D_GNU_SOURCE__D_FRSRESGID 5388if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5389 $as_echo_n "(cached) " >&6 5390else 5391 5392echo ' 5393#include <unistd.h> 5394 5395int test() { 5396 int a = setresgid(0,0,0); 5397 a = setresuid(0,0,0); 5398 return a; 5399} 5400' > conftest.c 5401echo 'void f(){}' >>conftest.c 5402if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5403eval "cv_prog_cc_flag_needed_$cache=no" 5404else 5405 5406if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 5407eval "cv_prog_cc_flag_needed_$cache=yes" 5408else 5409eval "cv_prog_cc_flag_needed_$cache=fail" 5410#echo 'Test with flag fails too!' 5411#cat conftest.c 5412#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5413#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5414#exit 1 5415fi 5416 5417fi 5418rm -f conftest conftest.c conftest.o 5419 5420fi 5421 5422if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5424$as_echo "yes" >&6; } 5425: 5426CFLAGS="$CFLAGS -D_GNU_SOURCE" 5427else 5428if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5430$as_echo "no" >&6; } 5431#echo 'Test with flag is no!' 5432#cat conftest.c 5433#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 5434#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 5435#exit 1 5436: 5437 5438else 5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5440$as_echo "failed" >&6; } 5441: 5442 5443fi 5444fi 5445 5446 5447 5448 5449 5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 5451$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 5452cache=_D_POSIX_C_SOURCE_200112 5453if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5454 $as_echo_n "(cached) " >&6 5455else 5456 5457echo ' 5458#include "confdefs.h" 5459#ifdef HAVE_TIME_H 5460#include <time.h> 5461#endif 5462#include <netdb.h> 5463 5464int test() { 5465 int a = 0; 5466 char *t; 5467 time_t time = 0; 5468 char *buf = NULL; 5469 const char* str = NULL; 5470 t = ctime_r(&time, buf); 5471 str = gai_strerror(0); 5472 if(t && str) 5473 a = 0; 5474 return a; 5475} 5476' > conftest.c 5477echo 'void f(){}' >>conftest.c 5478if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5479eval "cv_prog_cc_flag_needed_$cache=no" 5480else 5481 5482if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 5483eval "cv_prog_cc_flag_needed_$cache=yes" 5484else 5485eval "cv_prog_cc_flag_needed_$cache=fail" 5486#echo 'Test with flag fails too!' 5487#cat conftest.c 5488#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5489#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5490#exit 1 5491fi 5492 5493fi 5494rm -f conftest conftest.c conftest.o 5495 5496fi 5497 5498if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5500$as_echo "yes" >&6; } 5501: 5502CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 5503else 5504if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5506$as_echo "no" >&6; } 5507#echo 'Test with flag is no!' 5508#cat conftest.c 5509#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 5510#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 5511#exit 1 5512: 5513 5514else 5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5516$as_echo "failed" >&6; } 5517: 5518 5519fi 5520fi 5521 5522 5523 5524 5525 5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 5527$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 5528cache=_D__EXTENSIONS__ 5529if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 5530 $as_echo_n "(cached) " >&6 5531else 5532 5533echo ' 5534#include "confdefs.h" 5535#include <stdlib.h> 5536#include <ctype.h> 5537#include <sys/time.h> 5538#ifdef HAVE_TIME_H 5539#include <time.h> 5540#endif 5541#include <unistd.h> 5542#ifdef HAVE_GETOPT_H 5543#include <getopt.h> 5544#endif 5545 5546int test() { 5547 int a; 5548 char **opts = NULL; 5549 struct timeval tv; 5550 tv.tv_usec = 10; 5551 srandom(32); 5552 a = getopt(2, opts, "a"); 5553 a = isascii(32); 5554 if(tv.tv_usec) 5555 a = 0; 5556 return a; 5557} 5558' > conftest.c 5559echo 'void f(){}' >>conftest.c 5560if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5561eval "cv_prog_cc_flag_needed_$cache=no" 5562else 5563 5564if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 5565eval "cv_prog_cc_flag_needed_$cache=yes" 5566else 5567eval "cv_prog_cc_flag_needed_$cache=fail" 5568#echo 'Test with flag fails too!' 5569#cat conftest.c 5570#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5571#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5572#exit 1 5573fi 5574 5575fi 5576rm -f conftest conftest.c conftest.o 5577 5578fi 5579 5580if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5582$as_echo "yes" >&6; } 5583: 5584CFLAGS="$CFLAGS -D__EXTENSIONS__" 5585else 5586if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5588$as_echo "no" >&6; } 5589#echo 'Test with flag is no!' 5590#cat conftest.c 5591#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 5592#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 5593#exit 1 5594: 5595 5596else 5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5598$as_echo "failed" >&6; } 5599: 5600 5601fi 5602fi 5603 5604 5605 5606 5607# debug mode flags warnings 5608# Check whether --enable-checking was given. 5609if test "${enable_checking+set}" = set; then : 5610 enableval=$enable_checking; 5611fi 5612 5613# Check whether --enable-debug was given. 5614if test "${enable_debug+set}" = set; then : 5615 enableval=$enable_debug; 5616fi 5617 5618if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; 5619else debug_enabled="$enable_checking"; fi 5620 5621case "$debug_enabled" in 5622 yes) 5623 5624 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 5626$as_echo_n "checking whether $CC supports -W... " >&6; } 5627cache=`echo W | sed 'y%.=/+-%___p_%'` 5628if eval \${cv_prog_cc_flag_$cache+:} false; then : 5629 $as_echo_n "(cached) " >&6 5630else 5631 5632echo 'void f(){}' >conftest.c 5633if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 5634eval "cv_prog_cc_flag_$cache=yes" 5635else 5636eval "cv_prog_cc_flag_$cache=no" 5637fi 5638rm -f conftest conftest.o conftest.c 5639 5640fi 5641 5642if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5644$as_echo "yes" >&6; } 5645: 5646CFLAGS="$CFLAGS -W" 5647else 5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5649$as_echo "no" >&6; } 5650: 5651 5652fi 5653 5654 5655 5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5657$as_echo_n "checking whether $CC supports -Wall... " >&6; } 5658cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5659if eval \${cv_prog_cc_flag_$cache+:} false; then : 5660 $as_echo_n "(cached) " >&6 5661else 5662 5663echo 'void f(){}' >conftest.c 5664if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5665eval "cv_prog_cc_flag_$cache=yes" 5666else 5667eval "cv_prog_cc_flag_$cache=no" 5668fi 5669rm -f conftest conftest.o conftest.c 5670 5671fi 5672 5673if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5675$as_echo "yes" >&6; } 5676: 5677CFLAGS="$CFLAGS -Wall" 5678else 5679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5680$as_echo "no" >&6; } 5681: 5682 5683fi 5684 5685 5686 5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 5688$as_echo_n "checking whether $CC supports -Wextra... " >&6; } 5689cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 5690if eval \${cv_prog_cc_flag_$cache+:} false; then : 5691 $as_echo_n "(cached) " >&6 5692else 5693 5694echo 'void f(){}' >conftest.c 5695if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then 5696eval "cv_prog_cc_flag_$cache=yes" 5697else 5698eval "cv_prog_cc_flag_$cache=no" 5699fi 5700rm -f conftest conftest.o conftest.c 5701 5702fi 5703 5704if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5706$as_echo "yes" >&6; } 5707: 5708CFLAGS="$CFLAGS -Wextra" 5709else 5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5711$as_echo "no" >&6; } 5712: 5713 5714fi 5715 5716 5717 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 5719$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 5720cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'` 5721if eval \${cv_prog_cc_flag_$cache+:} false; then : 5722 $as_echo_n "(cached) " >&6 5723else 5724 5725echo 'void f(){}' >conftest.c 5726if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 5727eval "cv_prog_cc_flag_$cache=yes" 5728else 5729eval "cv_prog_cc_flag_$cache=no" 5730fi 5731rm -f conftest conftest.o conftest.c 5732 5733fi 5734 5735if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5737$as_echo "yes" >&6; } 5738: 5739CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5740else 5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5742$as_echo "no" >&6; } 5743: 5744 5745fi 5746 5747 5748$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h 5749 5750 ;; 5751 no|*) 5752 # nothing to do. 5753 ;; 5754esac 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 5756$as_echo_n "checking if $CC supports -flto... " >&6; } 5757BAKCFLAGS="$CFLAGS" 5758CFLAGS="$CFLAGS -flto" 5759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5760/* end confdefs.h. */ 5761 5762int 5763main () 5764{ 5765 5766 ; 5767 return 0; 5768} 5769_ACEOF 5770if ac_fn_c_try_link "$LINENO"; then : 5771 5772 if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 5773 CFLAGS="$BAKCFLAGS" 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5775$as_echo "no" >&6; } 5776 else 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5778$as_echo "yes" >&6; } 5779 fi 5780 rm -f conftest conftest.c conftest.o 5781 5782else 5783 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5784$as_echo "no" >&6; } 5785fi 5786rm -f core conftest.err conftest.$ac_objext \ 5787 conftest$ac_exeext conftest.$ac_ext 5788 5789 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5791$as_echo_n "checking for inline... " >&6; } 5792if ${ac_cv_c_inline+:} false; then : 5793 $as_echo_n "(cached) " >&6 5794else 5795 ac_cv_c_inline=no 5796for ac_kw in inline __inline__ __inline; do 5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5798/* end confdefs.h. */ 5799#ifndef __cplusplus 5800typedef int foo_t; 5801static $ac_kw foo_t static_foo () {return 0; } 5802$ac_kw foo_t foo () {return 0; } 5803#endif 5804 5805_ACEOF 5806if ac_fn_c_try_compile "$LINENO"; then : 5807 ac_cv_c_inline=$ac_kw 5808fi 5809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5810 test "$ac_cv_c_inline" != no && break 5811done 5812 5813fi 5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5815$as_echo "$ac_cv_c_inline" >&6; } 5816 5817case $ac_cv_c_inline in 5818 inline | yes) ;; 5819 *) 5820 case $ac_cv_c_inline in 5821 no) ac_val=;; 5822 *) ac_val=$ac_cv_c_inline;; 5823 esac 5824 cat >>confdefs.h <<_ACEOF 5825#ifndef __cplusplus 5826#define inline $ac_val 5827#endif 5828_ACEOF 5829 ;; 5830esac 5831 5832 5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 5834$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 5835if ${ac_cv_c_format_attribute+:} false; then : 5836 $as_echo_n "(cached) " >&6 5837else 5838 ac_cv_c_format_attribute=no 5839cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5840/* end confdefs.h. */ 5841#include <stdio.h> 5842void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 5843void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 5844 5845int 5846main () 5847{ 5848 5849 f ("%s", "str"); 5850 5851 ; 5852 return 0; 5853} 5854_ACEOF 5855if ac_fn_c_try_compile "$LINENO"; then : 5856 ac_cv_c_format_attribute="yes" 5857else 5858 ac_cv_c_format_attribute="no" 5859fi 5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5861 5862fi 5863 5864 5865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 5866$as_echo "$ac_cv_c_format_attribute" >&6; } 5867if test $ac_cv_c_format_attribute = yes; then 5868 5869$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 5870 5871fi 5872 5873 5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 5875$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 5876if ${ac_cv_c_unused_attribute+:} false; then : 5877 $as_echo_n "(cached) " >&6 5878else 5879 ac_cv_c_unused_attribute=no 5880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5881/* end confdefs.h. */ 5882#include <stdio.h> 5883void f (char *u __attribute__((unused))); 5884 5885int 5886main () 5887{ 5888 5889 f ("x"); 5890 5891 ; 5892 return 0; 5893} 5894_ACEOF 5895if ac_fn_c_try_compile "$LINENO"; then : 5896 ac_cv_c_unused_attribute="yes" 5897else 5898 ac_cv_c_unused_attribute="no" 5899fi 5900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5901 5902fi 5903 5904 5905 5906 5907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 5908$as_echo "$ac_cv_c_unused_attribute" >&6; } 5909if test $ac_cv_c_unused_attribute = yes; then 5910 5911$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 5912 5913fi 5914 5915 5916if test "$srcdir" != "."; then 5917 CPPFLAGS="$CPPFLAGS -I$srcdir" 5918fi 5919 5920 5921 5922for ac_prog in flex lex 5923do 5924 # Extract the first word of "$ac_prog", so it can be a program name with args. 5925set dummy $ac_prog; ac_word=$2 5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5927$as_echo_n "checking for $ac_word... " >&6; } 5928if ${ac_cv_prog_LEX+:} false; then : 5929 $as_echo_n "(cached) " >&6 5930else 5931 if test -n "$LEX"; then 5932 ac_cv_prog_LEX="$LEX" # Let the user override the test. 5933else 5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5935for as_dir in $PATH 5936do 5937 IFS=$as_save_IFS 5938 test -z "$as_dir" && as_dir=. 5939 for ac_exec_ext in '' $ac_executable_extensions; do 5940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5941 ac_cv_prog_LEX="$ac_prog" 5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5943 break 2 5944 fi 5945done 5946 done 5947IFS=$as_save_IFS 5948 5949fi 5950fi 5951LEX=$ac_cv_prog_LEX 5952if test -n "$LEX"; then 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 5954$as_echo "$LEX" >&6; } 5955else 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5957$as_echo "no" >&6; } 5958fi 5959 5960 5961 test -n "$LEX" && break 5962done 5963test -n "$LEX" || LEX=":" 5964 5965if test "x$LEX" != "x:"; then 5966 cat >conftest.l <<_ACEOF 5967%% 5968a { ECHO; } 5969b { REJECT; } 5970c { yymore (); } 5971d { yyless (1); } 5972e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 5973 yyless ((input () != 0)); } 5974f { unput (yytext[0]); } 5975. { BEGIN INITIAL; } 5976%% 5977#ifdef YYTEXT_POINTER 5978extern char *yytext; 5979#endif 5980int 5981main (void) 5982{ 5983 return ! yylex () + ! yywrap (); 5984} 5985_ACEOF 5986{ { ac_try="$LEX conftest.l" 5987case "(($ac_try" in 5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5989 *) ac_try_echo=$ac_try;; 5990esac 5991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5992$as_echo "$ac_try_echo"; } >&5 5993 (eval "$LEX conftest.l") 2>&5 5994 ac_status=$? 5995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5996 test $ac_status = 0; } 5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 5998$as_echo_n "checking lex output file root... " >&6; } 5999if ${ac_cv_prog_lex_root+:} false; then : 6000 $as_echo_n "(cached) " >&6 6001else 6002 6003if test -f lex.yy.c; then 6004 ac_cv_prog_lex_root=lex.yy 6005elif test -f lexyy.c; then 6006 ac_cv_prog_lex_root=lexyy 6007else 6008 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 6009fi 6010fi 6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 6012$as_echo "$ac_cv_prog_lex_root" >&6; } 6013LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 6014 6015if test -z "${LEXLIB+set}"; then 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 6017$as_echo_n "checking lex library... " >&6; } 6018if ${ac_cv_lib_lex+:} false; then : 6019 $as_echo_n "(cached) " >&6 6020else 6021 6022 ac_save_LIBS=$LIBS 6023 ac_cv_lib_lex='none needed' 6024 for ac_lib in '' -lfl -ll; do 6025 LIBS="$ac_lib $ac_save_LIBS" 6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6027/* end confdefs.h. */ 6028`cat $LEX_OUTPUT_ROOT.c` 6029_ACEOF 6030if ac_fn_c_try_link "$LINENO"; then : 6031 ac_cv_lib_lex=$ac_lib 6032fi 6033rm -f core conftest.err conftest.$ac_objext \ 6034 conftest$ac_exeext conftest.$ac_ext 6035 test "$ac_cv_lib_lex" != 'none needed' && break 6036 done 6037 LIBS=$ac_save_LIBS 6038 6039fi 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 6041$as_echo "$ac_cv_lib_lex" >&6; } 6042 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 6043fi 6044 6045 6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 6047$as_echo_n "checking whether yytext is a pointer... " >&6; } 6048if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 6049 $as_echo_n "(cached) " >&6 6050else 6051 # POSIX says lex can declare yytext either as a pointer or an array; the 6052# default is implementation-dependent. Figure out which it is, since 6053# not all implementations provide the %pointer and %array declarations. 6054ac_cv_prog_lex_yytext_pointer=no 6055ac_save_LIBS=$LIBS 6056LIBS="$LEXLIB $ac_save_LIBS" 6057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6058/* end confdefs.h. */ 6059 6060 #define YYTEXT_POINTER 1 6061`cat $LEX_OUTPUT_ROOT.c` 6062_ACEOF 6063if ac_fn_c_try_link "$LINENO"; then : 6064 ac_cv_prog_lex_yytext_pointer=yes 6065fi 6066rm -f core conftest.err conftest.$ac_objext \ 6067 conftest$ac_exeext conftest.$ac_ext 6068LIBS=$ac_save_LIBS 6069 6070fi 6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 6072$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 6073if test $ac_cv_prog_lex_yytext_pointer = yes; then 6074 6075$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 6076 6077fi 6078rm -f conftest.l $LEX_OUTPUT_ROOT.c 6079 6080fi 6081 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5 6083$as_echo_n "checking for yylex_destroy... " >&6; } 6084 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then 6085 6086$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h 6087 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6089$as_echo "yes" >&6; } 6090 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6091$as_echo "no" >&6; }; fi 6092 6093for ac_prog in 'bison -y' byacc 6094do 6095 # Extract the first word of "$ac_prog", so it can be a program name with args. 6096set dummy $ac_prog; ac_word=$2 6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6098$as_echo_n "checking for $ac_word... " >&6; } 6099if ${ac_cv_prog_YACC+:} false; then : 6100 $as_echo_n "(cached) " >&6 6101else 6102 if test -n "$YACC"; then 6103 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6104else 6105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6106for as_dir in $PATH 6107do 6108 IFS=$as_save_IFS 6109 test -z "$as_dir" && as_dir=. 6110 for ac_exec_ext in '' $ac_executable_extensions; do 6111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6112 ac_cv_prog_YACC="$ac_prog" 6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6114 break 2 6115 fi 6116done 6117 done 6118IFS=$as_save_IFS 6119 6120fi 6121fi 6122YACC=$ac_cv_prog_YACC 6123if test -n "$YACC"; then 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 6125$as_echo "$YACC" >&6; } 6126else 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6128$as_echo "no" >&6; } 6129fi 6130 6131 6132 test -n "$YACC" && break 6133done 6134test -n "$YACC" || YACC="yacc" 6135 6136# Extract the first word of "doxygen", so it can be a program name with args. 6137set dummy doxygen; ac_word=$2 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6139$as_echo_n "checking for $ac_word... " >&6; } 6140if ${ac_cv_prog_doxygen+:} false; then : 6141 $as_echo_n "(cached) " >&6 6142else 6143 if test -n "$doxygen"; then 6144 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 6145else 6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6147for as_dir in $PATH 6148do 6149 IFS=$as_save_IFS 6150 test -z "$as_dir" && as_dir=. 6151 for ac_exec_ext in '' $ac_executable_extensions; do 6152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6153 ac_cv_prog_doxygen="doxygen" 6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6155 break 2 6156 fi 6157done 6158 done 6159IFS=$as_save_IFS 6160 6161fi 6162fi 6163doxygen=$ac_cv_prog_doxygen 6164if test -n "$doxygen"; then 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 6166$as_echo "$doxygen" >&6; } 6167else 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6169$as_echo "no" >&6; } 6170fi 6171 6172 6173if test -n "$ac_tool_prefix"; then 6174 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6175set dummy ${ac_tool_prefix}strip; ac_word=$2 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6177$as_echo_n "checking for $ac_word... " >&6; } 6178if ${ac_cv_prog_STRIP+:} false; then : 6179 $as_echo_n "(cached) " >&6 6180else 6181 if test -n "$STRIP"; then 6182 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6183else 6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6185for as_dir in $PATH 6186do 6187 IFS=$as_save_IFS 6188 test -z "$as_dir" && as_dir=. 6189 for ac_exec_ext in '' $ac_executable_extensions; do 6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6191 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6193 break 2 6194 fi 6195done 6196 done 6197IFS=$as_save_IFS 6198 6199fi 6200fi 6201STRIP=$ac_cv_prog_STRIP 6202if test -n "$STRIP"; then 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6204$as_echo "$STRIP" >&6; } 6205else 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6207$as_echo "no" >&6; } 6208fi 6209 6210 6211fi 6212if test -z "$ac_cv_prog_STRIP"; then 6213 ac_ct_STRIP=$STRIP 6214 # Extract the first word of "strip", so it can be a program name with args. 6215set dummy strip; ac_word=$2 6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6217$as_echo_n "checking for $ac_word... " >&6; } 6218if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6219 $as_echo_n "(cached) " >&6 6220else 6221 if test -n "$ac_ct_STRIP"; then 6222 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6223else 6224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6225for as_dir in $PATH 6226do 6227 IFS=$as_save_IFS 6228 test -z "$as_dir" && as_dir=. 6229 for ac_exec_ext in '' $ac_executable_extensions; do 6230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6231 ac_cv_prog_ac_ct_STRIP="strip" 6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6233 break 2 6234 fi 6235done 6236 done 6237IFS=$as_save_IFS 6238 6239fi 6240fi 6241ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6242if test -n "$ac_ct_STRIP"; then 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6244$as_echo "$ac_ct_STRIP" >&6; } 6245else 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6247$as_echo "no" >&6; } 6248fi 6249 6250 if test "x$ac_ct_STRIP" = x; then 6251 STRIP="" 6252 else 6253 case $cross_compiling:$ac_tool_warned in 6254yes:) 6255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6257ac_tool_warned=yes ;; 6258esac 6259 STRIP=$ac_ct_STRIP 6260 fi 6261else 6262 STRIP="$ac_cv_prog_STRIP" 6263fi 6264 6265 6266# skip these tests, we do not need them. 6267 6268 6269 6270 6271 6272 6273 6274 6275# always use ./libtool unless override from commandline (libtool=mylibtool) 6276if test -z "$libtool"; then 6277 libtool="./libtool" 6278fi 6279 6280# avoid libtool max commandline length test on systems that fork slowly. 6281 6282if echo "$host_os" | grep "sunos4" >/dev/null; then 6283 lt_cv_sys_max_cmd_len=32750; 6284fi 6285if test -n "$ac_tool_prefix"; then 6286 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6287set dummy ${ac_tool_prefix}ar; ac_word=$2 6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6289$as_echo_n "checking for $ac_word... " >&6; } 6290if ${ac_cv_path_AR+:} false; then : 6291 $as_echo_n "(cached) " >&6 6292else 6293 case $AR in 6294 [\\/]* | ?:[\\/]*) 6295 ac_cv_path_AR="$AR" # Let the user override the test with a path. 6296 ;; 6297 *) 6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6299for as_dir in $PATH 6300do 6301 IFS=$as_save_IFS 6302 test -z "$as_dir" && as_dir=. 6303 for ac_exec_ext in '' $ac_executable_extensions; do 6304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6305 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6307 break 2 6308 fi 6309done 6310 done 6311IFS=$as_save_IFS 6312 6313 ;; 6314esac 6315fi 6316AR=$ac_cv_path_AR 6317if test -n "$AR"; then 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6319$as_echo "$AR" >&6; } 6320else 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6322$as_echo "no" >&6; } 6323fi 6324 6325 6326fi 6327if test -z "$ac_cv_path_AR"; then 6328 ac_pt_AR=$AR 6329 # Extract the first word of "ar", so it can be a program name with args. 6330set dummy ar; ac_word=$2 6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6332$as_echo_n "checking for $ac_word... " >&6; } 6333if ${ac_cv_path_ac_pt_AR+:} false; then : 6334 $as_echo_n "(cached) " >&6 6335else 6336 case $ac_pt_AR in 6337 [\\/]* | ?:[\\/]*) 6338 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 6339 ;; 6340 *) 6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6342for as_dir in $PATH 6343do 6344 IFS=$as_save_IFS 6345 test -z "$as_dir" && as_dir=. 6346 for ac_exec_ext in '' $ac_executable_extensions; do 6347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6348 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6350 break 2 6351 fi 6352done 6353 done 6354IFS=$as_save_IFS 6355 6356 ;; 6357esac 6358fi 6359ac_pt_AR=$ac_cv_path_ac_pt_AR 6360if test -n "$ac_pt_AR"; then 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 6362$as_echo "$ac_pt_AR" >&6; } 6363else 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6365$as_echo "no" >&6; } 6366fi 6367 6368 if test "x$ac_pt_AR" = x; then 6369 AR="false" 6370 else 6371 case $cross_compiling:$ac_tool_warned in 6372yes:) 6373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6375ac_tool_warned=yes ;; 6376esac 6377 AR=$ac_pt_AR 6378 fi 6379else 6380 AR="$ac_cv_path_AR" 6381fi 6382 6383if test $AR = false; then 6384 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 6385fi 6386 6387case `pwd` in 6388 *\ * | *\ *) 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6390$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6391esac 6392 6393 6394 6395macro_version='2.4.2' 6396macro_revision='1.3337' 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410ltmain="$ac_aux_dir/ltmain.sh" 6411 6412# Backslashify metacharacters that are still active within 6413# double-quoted strings. 6414sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6415 6416# Same as above, but do not quote variable references. 6417double_quote_subst='s/\(["`\\]\)/\\\1/g' 6418 6419# Sed substitution to delay expansion of an escaped shell variable in a 6420# double_quote_subst'ed string. 6421delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6422 6423# Sed substitution to delay expansion of an escaped single quote. 6424delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6425 6426# Sed substitution to avoid accidental globbing in evaled expressions 6427no_glob_subst='s/\*/\\\*/g' 6428 6429ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6430ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6431ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6432 6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6434$as_echo_n "checking how to print strings... " >&6; } 6435# Test print first, because it will be a builtin if present. 6436if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6437 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6438 ECHO='print -r --' 6439elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6440 ECHO='printf %s\n' 6441else 6442 # Use this function as a fallback that always works. 6443 func_fallback_echo () 6444 { 6445 eval 'cat <<_LTECHO_EOF 6446$1 6447_LTECHO_EOF' 6448 } 6449 ECHO='func_fallback_echo' 6450fi 6451 6452# func_echo_all arg... 6453# Invoke $ECHO with all args, space-separated. 6454func_echo_all () 6455{ 6456 $ECHO "" 6457} 6458 6459case "$ECHO" in 6460 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6461$as_echo "printf" >&6; } ;; 6462 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6463$as_echo "print -r" >&6; } ;; 6464 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6465$as_echo "cat" >&6; } ;; 6466esac 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6482$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6483if ${ac_cv_path_SED+:} false; then : 6484 $as_echo_n "(cached) " >&6 6485else 6486 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6487 for ac_i in 1 2 3 4 5 6 7; do 6488 ac_script="$ac_script$as_nl$ac_script" 6489 done 6490 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6491 { ac_script=; unset ac_script;} 6492 if test -z "$SED"; then 6493 ac_path_SED_found=false 6494 # Loop through the user's path and test for each of PROGNAME-LIST 6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6496for as_dir in $PATH 6497do 6498 IFS=$as_save_IFS 6499 test -z "$as_dir" && as_dir=. 6500 for ac_prog in sed gsed; do 6501 for ac_exec_ext in '' $ac_executable_extensions; do 6502 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6503 as_fn_executable_p "$ac_path_SED" || continue 6504# Check for GNU ac_path_SED and select it if it is found. 6505 # Check for GNU $ac_path_SED 6506case `"$ac_path_SED" --version 2>&1` in 6507*GNU*) 6508 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6509*) 6510 ac_count=0 6511 $as_echo_n 0123456789 >"conftest.in" 6512 while : 6513 do 6514 cat "conftest.in" "conftest.in" >"conftest.tmp" 6515 mv "conftest.tmp" "conftest.in" 6516 cp "conftest.in" "conftest.nl" 6517 $as_echo '' >> "conftest.nl" 6518 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6520 as_fn_arith $ac_count + 1 && ac_count=$as_val 6521 if test $ac_count -gt ${ac_path_SED_max-0}; then 6522 # Best one so far, save it but keep looking for a better one 6523 ac_cv_path_SED="$ac_path_SED" 6524 ac_path_SED_max=$ac_count 6525 fi 6526 # 10*(2^10) chars as input seems more than enough 6527 test $ac_count -gt 10 && break 6528 done 6529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6530esac 6531 6532 $ac_path_SED_found && break 3 6533 done 6534 done 6535 done 6536IFS=$as_save_IFS 6537 if test -z "$ac_cv_path_SED"; then 6538 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6539 fi 6540else 6541 ac_cv_path_SED=$SED 6542fi 6543 6544fi 6545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6546$as_echo "$ac_cv_path_SED" >&6; } 6547 SED="$ac_cv_path_SED" 6548 rm -f conftest.sed 6549 6550test -z "$SED" && SED=sed 6551Xsed="$SED -e 1s/^X//" 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6564$as_echo_n "checking for fgrep... " >&6; } 6565if ${ac_cv_path_FGREP+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6569 then ac_cv_path_FGREP="$GREP -F" 6570 else 6571 if test -z "$FGREP"; then 6572 ac_path_FGREP_found=false 6573 # Loop through the user's path and test for each of PROGNAME-LIST 6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6575for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6576do 6577 IFS=$as_save_IFS 6578 test -z "$as_dir" && as_dir=. 6579 for ac_prog in fgrep; do 6580 for ac_exec_ext in '' $ac_executable_extensions; do 6581 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6582 as_fn_executable_p "$ac_path_FGREP" || continue 6583# Check for GNU ac_path_FGREP and select it if it is found. 6584 # Check for GNU $ac_path_FGREP 6585case `"$ac_path_FGREP" --version 2>&1` in 6586*GNU*) 6587 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6588*) 6589 ac_count=0 6590 $as_echo_n 0123456789 >"conftest.in" 6591 while : 6592 do 6593 cat "conftest.in" "conftest.in" >"conftest.tmp" 6594 mv "conftest.tmp" "conftest.in" 6595 cp "conftest.in" "conftest.nl" 6596 $as_echo 'FGREP' >> "conftest.nl" 6597 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6599 as_fn_arith $ac_count + 1 && ac_count=$as_val 6600 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6601 # Best one so far, save it but keep looking for a better one 6602 ac_cv_path_FGREP="$ac_path_FGREP" 6603 ac_path_FGREP_max=$ac_count 6604 fi 6605 # 10*(2^10) chars as input seems more than enough 6606 test $ac_count -gt 10 && break 6607 done 6608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6609esac 6610 6611 $ac_path_FGREP_found && break 3 6612 done 6613 done 6614 done 6615IFS=$as_save_IFS 6616 if test -z "$ac_cv_path_FGREP"; then 6617 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6618 fi 6619else 6620 ac_cv_path_FGREP=$FGREP 6621fi 6622 6623 fi 6624fi 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6626$as_echo "$ac_cv_path_FGREP" >&6; } 6627 FGREP="$ac_cv_path_FGREP" 6628 6629 6630test -z "$GREP" && GREP=grep 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650# Check whether --with-gnu-ld was given. 6651if test "${with_gnu_ld+set}" = set; then : 6652 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6653else 6654 with_gnu_ld=no 6655fi 6656 6657ac_prog=ld 6658if test "$GCC" = yes; then 6659 # Check if gcc -print-prog-name=ld gives a path. 6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6661$as_echo_n "checking for ld used by $CC... " >&6; } 6662 case $host in 6663 *-*-mingw*) 6664 # gcc leaves a trailing carriage return which upsets mingw 6665 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6666 *) 6667 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6668 esac 6669 case $ac_prog in 6670 # Accept absolute paths. 6671 [\\/]* | ?:[\\/]*) 6672 re_direlt='/[^/][^/]*/\.\./' 6673 # Canonicalize the pathname of ld 6674 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6675 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6676 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6677 done 6678 test -z "$LD" && LD="$ac_prog" 6679 ;; 6680 "") 6681 # If it fails, then pretend we aren't using GCC. 6682 ac_prog=ld 6683 ;; 6684 *) 6685 # If it is relative, then search for the first ld in PATH. 6686 with_gnu_ld=unknown 6687 ;; 6688 esac 6689elif test "$with_gnu_ld" = yes; then 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6691$as_echo_n "checking for GNU ld... " >&6; } 6692else 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6694$as_echo_n "checking for non-GNU ld... " >&6; } 6695fi 6696if ${lt_cv_path_LD+:} false; then : 6697 $as_echo_n "(cached) " >&6 6698else 6699 if test -z "$LD"; then 6700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6701 for ac_dir in $PATH; do 6702 IFS="$lt_save_ifs" 6703 test -z "$ac_dir" && ac_dir=. 6704 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6705 lt_cv_path_LD="$ac_dir/$ac_prog" 6706 # Check to see if the program is GNU ld. I'd rather use --version, 6707 # but apparently some variants of GNU ld only accept -v. 6708 # Break only if it was the GNU/non-GNU ld that we prefer. 6709 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6710 *GNU* | *'with BFD'*) 6711 test "$with_gnu_ld" != no && break 6712 ;; 6713 *) 6714 test "$with_gnu_ld" != yes && break 6715 ;; 6716 esac 6717 fi 6718 done 6719 IFS="$lt_save_ifs" 6720else 6721 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6722fi 6723fi 6724 6725LD="$lt_cv_path_LD" 6726if test -n "$LD"; then 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6728$as_echo "$LD" >&6; } 6729else 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6731$as_echo "no" >&6; } 6732fi 6733test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6735$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6736if ${lt_cv_prog_gnu_ld+:} false; then : 6737 $as_echo_n "(cached) " >&6 6738else 6739 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6740case `$LD -v 2>&1 </dev/null` in 6741*GNU* | *'with BFD'*) 6742 lt_cv_prog_gnu_ld=yes 6743 ;; 6744*) 6745 lt_cv_prog_gnu_ld=no 6746 ;; 6747esac 6748fi 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6750$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6751with_gnu_ld=$lt_cv_prog_gnu_ld 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6762$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6763if ${lt_cv_path_NM+:} false; then : 6764 $as_echo_n "(cached) " >&6 6765else 6766 if test -n "$NM"; then 6767 # Let the user override the test. 6768 lt_cv_path_NM="$NM" 6769else 6770 lt_nm_to_check="${ac_tool_prefix}nm" 6771 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6772 lt_nm_to_check="$lt_nm_to_check nm" 6773 fi 6774 for lt_tmp_nm in $lt_nm_to_check; do 6775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6776 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6777 IFS="$lt_save_ifs" 6778 test -z "$ac_dir" && ac_dir=. 6779 tmp_nm="$ac_dir/$lt_tmp_nm" 6780 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6781 # Check to see if the nm accepts a BSD-compat flag. 6782 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6783 # nm: unknown option "B" ignored 6784 # Tru64's nm complains that /dev/null is an invalid object file 6785 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6786 */dev/null* | *'Invalid file or object type'*) 6787 lt_cv_path_NM="$tmp_nm -B" 6788 break 6789 ;; 6790 *) 6791 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6792 */dev/null*) 6793 lt_cv_path_NM="$tmp_nm -p" 6794 break 6795 ;; 6796 *) 6797 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6798 continue # so that we can try to find one that supports BSD flags 6799 ;; 6800 esac 6801 ;; 6802 esac 6803 fi 6804 done 6805 IFS="$lt_save_ifs" 6806 done 6807 : ${lt_cv_path_NM=no} 6808fi 6809fi 6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6811$as_echo "$lt_cv_path_NM" >&6; } 6812if test "$lt_cv_path_NM" != "no"; then 6813 NM="$lt_cv_path_NM" 6814else 6815 # Didn't find any BSD compatible name lister, look for dumpbin. 6816 if test -n "$DUMPBIN"; then : 6817 # Let the user override the test. 6818 else 6819 if test -n "$ac_tool_prefix"; then 6820 for ac_prog in dumpbin "link -dump" 6821 do 6822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6823set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6825$as_echo_n "checking for $ac_word... " >&6; } 6826if ${ac_cv_prog_DUMPBIN+:} false; then : 6827 $as_echo_n "(cached) " >&6 6828else 6829 if test -n "$DUMPBIN"; then 6830 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6831else 6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6833for as_dir in $PATH 6834do 6835 IFS=$as_save_IFS 6836 test -z "$as_dir" && as_dir=. 6837 for ac_exec_ext in '' $ac_executable_extensions; do 6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6839 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6841 break 2 6842 fi 6843done 6844 done 6845IFS=$as_save_IFS 6846 6847fi 6848fi 6849DUMPBIN=$ac_cv_prog_DUMPBIN 6850if test -n "$DUMPBIN"; then 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6852$as_echo "$DUMPBIN" >&6; } 6853else 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6855$as_echo "no" >&6; } 6856fi 6857 6858 6859 test -n "$DUMPBIN" && break 6860 done 6861fi 6862if test -z "$DUMPBIN"; then 6863 ac_ct_DUMPBIN=$DUMPBIN 6864 for ac_prog in dumpbin "link -dump" 6865do 6866 # Extract the first word of "$ac_prog", so it can be a program name with args. 6867set dummy $ac_prog; ac_word=$2 6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6869$as_echo_n "checking for $ac_word... " >&6; } 6870if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6871 $as_echo_n "(cached) " >&6 6872else 6873 if test -n "$ac_ct_DUMPBIN"; then 6874 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6875else 6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6877for as_dir in $PATH 6878do 6879 IFS=$as_save_IFS 6880 test -z "$as_dir" && as_dir=. 6881 for ac_exec_ext in '' $ac_executable_extensions; do 6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6883 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6885 break 2 6886 fi 6887done 6888 done 6889IFS=$as_save_IFS 6890 6891fi 6892fi 6893ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6894if test -n "$ac_ct_DUMPBIN"; then 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6896$as_echo "$ac_ct_DUMPBIN" >&6; } 6897else 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6899$as_echo "no" >&6; } 6900fi 6901 6902 6903 test -n "$ac_ct_DUMPBIN" && break 6904done 6905 6906 if test "x$ac_ct_DUMPBIN" = x; then 6907 DUMPBIN=":" 6908 else 6909 case $cross_compiling:$ac_tool_warned in 6910yes:) 6911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6913ac_tool_warned=yes ;; 6914esac 6915 DUMPBIN=$ac_ct_DUMPBIN 6916 fi 6917fi 6918 6919 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6920 *COFF*) 6921 DUMPBIN="$DUMPBIN -symbols" 6922 ;; 6923 *) 6924 DUMPBIN=: 6925 ;; 6926 esac 6927 fi 6928 6929 if test "$DUMPBIN" != ":"; then 6930 NM="$DUMPBIN" 6931 fi 6932fi 6933test -z "$NM" && NM=nm 6934 6935 6936 6937 6938 6939 6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6941$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6942if ${lt_cv_nm_interface+:} false; then : 6943 $as_echo_n "(cached) " >&6 6944else 6945 lt_cv_nm_interface="BSD nm" 6946 echo "int some_variable = 0;" > conftest.$ac_ext 6947 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6948 (eval "$ac_compile" 2>conftest.err) 6949 cat conftest.err >&5 6950 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6951 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6952 cat conftest.err >&5 6953 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6954 cat conftest.out >&5 6955 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6956 lt_cv_nm_interface="MS dumpbin" 6957 fi 6958 rm -f conftest* 6959fi 6960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6961$as_echo "$lt_cv_nm_interface" >&6; } 6962 6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6964$as_echo_n "checking whether ln -s works... " >&6; } 6965LN_S=$as_ln_s 6966if test "$LN_S" = "ln -s"; then 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6968$as_echo "yes" >&6; } 6969else 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6971$as_echo "no, using $LN_S" >&6; } 6972fi 6973 6974# find the maximum length of command line arguments 6975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6976$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6977if ${lt_cv_sys_max_cmd_len+:} false; then : 6978 $as_echo_n "(cached) " >&6 6979else 6980 i=0 6981 teststring="ABCD" 6982 6983 case $build_os in 6984 msdosdjgpp*) 6985 # On DJGPP, this test can blow up pretty badly due to problems in libc 6986 # (any single argument exceeding 2000 bytes causes a buffer overrun 6987 # during glob expansion). Even if it were fixed, the result of this 6988 # check would be larger than it should be. 6989 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6990 ;; 6991 6992 gnu*) 6993 # Under GNU Hurd, this test is not required because there is 6994 # no limit to the length of command line arguments. 6995 # Libtool will interpret -1 as no limit whatsoever 6996 lt_cv_sys_max_cmd_len=-1; 6997 ;; 6998 6999 cygwin* | mingw* | cegcc*) 7000 # On Win9x/ME, this test blows up -- it succeeds, but takes 7001 # about 5 minutes as the teststring grows exponentially. 7002 # Worse, since 9x/ME are not pre-emptively multitasking, 7003 # you end up with a "frozen" computer, even though with patience 7004 # the test eventually succeeds (with a max line length of 256k). 7005 # Instead, let's just punt: use the minimum linelength reported by 7006 # all of the supported platforms: 8192 (on NT/2K/XP). 7007 lt_cv_sys_max_cmd_len=8192; 7008 ;; 7009 7010 mint*) 7011 # On MiNT this can take a long time and run out of memory. 7012 lt_cv_sys_max_cmd_len=8192; 7013 ;; 7014 7015 amigaos*) 7016 # On AmigaOS with pdksh, this test takes hours, literally. 7017 # So we just punt and use a minimum line length of 8192. 7018 lt_cv_sys_max_cmd_len=8192; 7019 ;; 7020 7021 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7022 # This has been around since 386BSD, at least. Likely further. 7023 if test -x /sbin/sysctl; then 7024 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7025 elif test -x /usr/sbin/sysctl; then 7026 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7027 else 7028 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7029 fi 7030 # And add a safety zone 7031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7032 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7033 ;; 7034 7035 interix*) 7036 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7037 lt_cv_sys_max_cmd_len=196608 7038 ;; 7039 7040 os2*) 7041 # The test takes a long time on OS/2. 7042 lt_cv_sys_max_cmd_len=8192 7043 ;; 7044 7045 osf*) 7046 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7047 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7048 # nice to cause kernel panics so lets avoid the loop below. 7049 # First set a reasonable default. 7050 lt_cv_sys_max_cmd_len=16384 7051 # 7052 if test -x /sbin/sysconfig; then 7053 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7054 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7055 esac 7056 fi 7057 ;; 7058 sco3.2v5*) 7059 lt_cv_sys_max_cmd_len=102400 7060 ;; 7061 sysv5* | sco5v6* | sysv4.2uw2*) 7062 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7063 if test -n "$kargmax"; then 7064 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7065 else 7066 lt_cv_sys_max_cmd_len=32768 7067 fi 7068 ;; 7069 *) 7070 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7071 if test -n "$lt_cv_sys_max_cmd_len"; then 7072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7074 else 7075 # Make teststring a little bigger before we do anything with it. 7076 # a 1K string should be a reasonable start. 7077 for i in 1 2 3 4 5 6 7 8 ; do 7078 teststring=$teststring$teststring 7079 done 7080 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7081 # If test is not a shell built-in, we'll probably end up computing a 7082 # maximum length that is only half of the actual maximum length, but 7083 # we can't tell. 7084 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 7085 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7086 test $i != 17 # 1/2 MB should be enough 7087 do 7088 i=`expr $i + 1` 7089 teststring=$teststring$teststring 7090 done 7091 # Only check the string length outside the loop. 7092 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7093 teststring= 7094 # Add a significant safety factor because C++ compilers can tack on 7095 # massive amounts of additional arguments before passing them to the 7096 # linker. It appears as though 1/2 is a usable value. 7097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7098 fi 7099 ;; 7100 esac 7101 7102fi 7103 7104if test -n $lt_cv_sys_max_cmd_len ; then 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7106$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7107else 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7109$as_echo "none" >&6; } 7110fi 7111max_cmd_len=$lt_cv_sys_max_cmd_len 7112 7113 7114 7115 7116 7117 7118: ${CP="cp -f"} 7119: ${MV="mv -f"} 7120: ${RM="rm -f"} 7121 7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7123$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7124# Try some XSI features 7125xsi_shell=no 7126( _lt_dummy="a/b/c" 7127 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7128 = c,a/b,b/c, \ 7129 && eval 'test $(( 1 + 1 )) -eq 2 \ 7130 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7131 && xsi_shell=yes 7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7133$as_echo "$xsi_shell" >&6; } 7134 7135 7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7137$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7138lt_shell_append=no 7139( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7140 >/dev/null 2>&1 \ 7141 && lt_shell_append=yes 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7143$as_echo "$lt_shell_append" >&6; } 7144 7145 7146if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7147 lt_unset=unset 7148else 7149 lt_unset=false 7150fi 7151 7152 7153 7154 7155 7156# test EBCDIC or ASCII 7157case `echo X|tr X '\101'` in 7158 A) # ASCII based system 7159 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7160 lt_SP2NL='tr \040 \012' 7161 lt_NL2SP='tr \015\012 \040\040' 7162 ;; 7163 *) # EBCDIC based system 7164 lt_SP2NL='tr \100 \n' 7165 lt_NL2SP='tr \r\n \100\100' 7166 ;; 7167esac 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7178$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7179if ${lt_cv_to_host_file_cmd+:} false; then : 7180 $as_echo_n "(cached) " >&6 7181else 7182 case $host in 7183 *-*-mingw* ) 7184 case $build in 7185 *-*-mingw* ) # actually msys 7186 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7187 ;; 7188 *-*-cygwin* ) 7189 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7190 ;; 7191 * ) # otherwise, assume *nix 7192 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7193 ;; 7194 esac 7195 ;; 7196 *-*-cygwin* ) 7197 case $build in 7198 *-*-mingw* ) # actually msys 7199 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7200 ;; 7201 *-*-cygwin* ) 7202 lt_cv_to_host_file_cmd=func_convert_file_noop 7203 ;; 7204 * ) # otherwise, assume *nix 7205 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7206 ;; 7207 esac 7208 ;; 7209 * ) # unhandled hosts (and "normal" native builds) 7210 lt_cv_to_host_file_cmd=func_convert_file_noop 7211 ;; 7212esac 7213 7214fi 7215 7216to_host_file_cmd=$lt_cv_to_host_file_cmd 7217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7218$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7219 7220 7221 7222 7223 7224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7225$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7226if ${lt_cv_to_tool_file_cmd+:} false; then : 7227 $as_echo_n "(cached) " >&6 7228else 7229 #assume ordinary cross tools, or native build. 7230lt_cv_to_tool_file_cmd=func_convert_file_noop 7231case $host in 7232 *-*-mingw* ) 7233 case $build in 7234 *-*-mingw* ) # actually msys 7235 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7236 ;; 7237 esac 7238 ;; 7239esac 7240 7241fi 7242 7243to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7245$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7246 7247 7248 7249 7250 7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7252$as_echo_n "checking for $LD option to reload object files... " >&6; } 7253if ${lt_cv_ld_reload_flag+:} false; then : 7254 $as_echo_n "(cached) " >&6 7255else 7256 lt_cv_ld_reload_flag='-r' 7257fi 7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7259$as_echo "$lt_cv_ld_reload_flag" >&6; } 7260reload_flag=$lt_cv_ld_reload_flag 7261case $reload_flag in 7262"" | " "*) ;; 7263*) reload_flag=" $reload_flag" ;; 7264esac 7265reload_cmds='$LD$reload_flag -o $output$reload_objs' 7266case $host_os in 7267 cygwin* | mingw* | pw32* | cegcc*) 7268 if test "$GCC" != yes; then 7269 reload_cmds=false 7270 fi 7271 ;; 7272 darwin*) 7273 if test "$GCC" = yes; then 7274 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7275 else 7276 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7277 fi 7278 ;; 7279esac 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289if test -n "$ac_tool_prefix"; then 7290 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7291set dummy ${ac_tool_prefix}objdump; ac_word=$2 7292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7293$as_echo_n "checking for $ac_word... " >&6; } 7294if ${ac_cv_prog_OBJDUMP+:} false; then : 7295 $as_echo_n "(cached) " >&6 7296else 7297 if test -n "$OBJDUMP"; then 7298 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7299else 7300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7301for as_dir in $PATH 7302do 7303 IFS=$as_save_IFS 7304 test -z "$as_dir" && as_dir=. 7305 for ac_exec_ext in '' $ac_executable_extensions; do 7306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7307 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7309 break 2 7310 fi 7311done 7312 done 7313IFS=$as_save_IFS 7314 7315fi 7316fi 7317OBJDUMP=$ac_cv_prog_OBJDUMP 7318if test -n "$OBJDUMP"; then 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7320$as_echo "$OBJDUMP" >&6; } 7321else 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7323$as_echo "no" >&6; } 7324fi 7325 7326 7327fi 7328if test -z "$ac_cv_prog_OBJDUMP"; then 7329 ac_ct_OBJDUMP=$OBJDUMP 7330 # Extract the first word of "objdump", so it can be a program name with args. 7331set dummy objdump; ac_word=$2 7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7333$as_echo_n "checking for $ac_word... " >&6; } 7334if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7335 $as_echo_n "(cached) " >&6 7336else 7337 if test -n "$ac_ct_OBJDUMP"; then 7338 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7339else 7340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7341for as_dir in $PATH 7342do 7343 IFS=$as_save_IFS 7344 test -z "$as_dir" && as_dir=. 7345 for ac_exec_ext in '' $ac_executable_extensions; do 7346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7347 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7349 break 2 7350 fi 7351done 7352 done 7353IFS=$as_save_IFS 7354 7355fi 7356fi 7357ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7358if test -n "$ac_ct_OBJDUMP"; then 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7360$as_echo "$ac_ct_OBJDUMP" >&6; } 7361else 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7363$as_echo "no" >&6; } 7364fi 7365 7366 if test "x$ac_ct_OBJDUMP" = x; then 7367 OBJDUMP="false" 7368 else 7369 case $cross_compiling:$ac_tool_warned in 7370yes:) 7371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7373ac_tool_warned=yes ;; 7374esac 7375 OBJDUMP=$ac_ct_OBJDUMP 7376 fi 7377else 7378 OBJDUMP="$ac_cv_prog_OBJDUMP" 7379fi 7380 7381test -z "$OBJDUMP" && OBJDUMP=objdump 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7392$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7393if ${lt_cv_deplibs_check_method+:} false; then : 7394 $as_echo_n "(cached) " >&6 7395else 7396 lt_cv_file_magic_cmd='$MAGIC_CMD' 7397lt_cv_file_magic_test_file= 7398lt_cv_deplibs_check_method='unknown' 7399# Need to set the preceding variable on all platforms that support 7400# interlibrary dependencies. 7401# 'none' -- dependencies not supported. 7402# `unknown' -- same as none, but documents that we really don't know. 7403# 'pass_all' -- all dependencies passed with no checks. 7404# 'test_compile' -- check by making test program. 7405# 'file_magic [[regex]]' -- check by looking for files in library path 7406# which responds to the $file_magic_cmd with a given extended regex. 7407# If you have `file' or equivalent on your system and you're not sure 7408# whether `pass_all' will *always* work, you probably want this one. 7409 7410case $host_os in 7411aix[4-9]*) 7412 lt_cv_deplibs_check_method=pass_all 7413 ;; 7414 7415beos*) 7416 lt_cv_deplibs_check_method=pass_all 7417 ;; 7418 7419bsdi[45]*) 7420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7421 lt_cv_file_magic_cmd='/usr/bin/file -L' 7422 lt_cv_file_magic_test_file=/shlib/libc.so 7423 ;; 7424 7425cygwin*) 7426 # func_win32_libid is a shell function defined in ltmain.sh 7427 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7428 lt_cv_file_magic_cmd='func_win32_libid' 7429 ;; 7430 7431mingw* | pw32*) 7432 # Base MSYS/MinGW do not provide the 'file' command needed by 7433 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7434 # unless we find 'file', for example because we are cross-compiling. 7435 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7436 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7437 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7438 lt_cv_file_magic_cmd='func_win32_libid' 7439 else 7440 # Keep this pattern in sync with the one in func_win32_libid. 7441 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7442 lt_cv_file_magic_cmd='$OBJDUMP -f' 7443 fi 7444 ;; 7445 7446cegcc*) 7447 # use the weaker test based on 'objdump'. See mingw*. 7448 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7449 lt_cv_file_magic_cmd='$OBJDUMP -f' 7450 ;; 7451 7452darwin* | rhapsody*) 7453 lt_cv_deplibs_check_method=pass_all 7454 ;; 7455 7456freebsd* | dragonfly*) 7457 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7458 case $host_cpu in 7459 i*86 ) 7460 # Not sure whether the presence of OpenBSD here was a mistake. 7461 # Let's accept both of them until this is cleared up. 7462 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7463 lt_cv_file_magic_cmd=/usr/bin/file 7464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7465 ;; 7466 esac 7467 else 7468 lt_cv_deplibs_check_method=pass_all 7469 fi 7470 ;; 7471 7472gnu*) 7473 lt_cv_deplibs_check_method=pass_all 7474 ;; 7475 7476haiku*) 7477 lt_cv_deplibs_check_method=pass_all 7478 ;; 7479 7480hpux10.20* | hpux11*) 7481 lt_cv_file_magic_cmd=/usr/bin/file 7482 case $host_cpu in 7483 ia64*) 7484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7485 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7486 ;; 7487 hppa*64*) 7488 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]' 7489 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7490 ;; 7491 *) 7492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7493 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7494 ;; 7495 esac 7496 ;; 7497 7498interix[3-9]*) 7499 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7501 ;; 7502 7503irix5* | irix6* | nonstopux*) 7504 case $LD in 7505 *-32|*"-32 ") libmagic=32-bit;; 7506 *-n32|*"-n32 ") libmagic=N32;; 7507 *-64|*"-64 ") libmagic=64-bit;; 7508 *) libmagic=never-match;; 7509 esac 7510 lt_cv_deplibs_check_method=pass_all 7511 ;; 7512 7513# This must be glibc/ELF. 7514linux* | k*bsd*-gnu | kopensolaris*-gnu) 7515 lt_cv_deplibs_check_method=pass_all 7516 ;; 7517 7518netbsd*) 7519 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7521 else 7522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7523 fi 7524 ;; 7525 7526newos6*) 7527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7528 lt_cv_file_magic_cmd=/usr/bin/file 7529 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7530 ;; 7531 7532*nto* | *qnx*) 7533 lt_cv_deplibs_check_method=pass_all 7534 ;; 7535 7536openbsd*) 7537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7539 else 7540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7541 fi 7542 ;; 7543 7544osf3* | osf4* | osf5*) 7545 lt_cv_deplibs_check_method=pass_all 7546 ;; 7547 7548rdos*) 7549 lt_cv_deplibs_check_method=pass_all 7550 ;; 7551 7552solaris*) 7553 lt_cv_deplibs_check_method=pass_all 7554 ;; 7555 7556sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7557 lt_cv_deplibs_check_method=pass_all 7558 ;; 7559 7560sysv4 | sysv4.3*) 7561 case $host_vendor in 7562 motorola) 7563 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]' 7564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7565 ;; 7566 ncr) 7567 lt_cv_deplibs_check_method=pass_all 7568 ;; 7569 sequent) 7570 lt_cv_file_magic_cmd='/bin/file' 7571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7572 ;; 7573 sni) 7574 lt_cv_file_magic_cmd='/bin/file' 7575 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7576 lt_cv_file_magic_test_file=/lib/libc.so 7577 ;; 7578 siemens) 7579 lt_cv_deplibs_check_method=pass_all 7580 ;; 7581 pc) 7582 lt_cv_deplibs_check_method=pass_all 7583 ;; 7584 esac 7585 ;; 7586 7587tpf*) 7588 lt_cv_deplibs_check_method=pass_all 7589 ;; 7590esac 7591 7592fi 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7594$as_echo "$lt_cv_deplibs_check_method" >&6; } 7595 7596file_magic_glob= 7597want_nocaseglob=no 7598if test "$build" = "$host"; then 7599 case $host_os in 7600 mingw* | pw32*) 7601 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7602 want_nocaseglob=yes 7603 else 7604 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7605 fi 7606 ;; 7607 esac 7608fi 7609 7610file_magic_cmd=$lt_cv_file_magic_cmd 7611deplibs_check_method=$lt_cv_deplibs_check_method 7612test -z "$deplibs_check_method" && deplibs_check_method=unknown 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635if test -n "$ac_tool_prefix"; then 7636 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7637set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7639$as_echo_n "checking for $ac_word... " >&6; } 7640if ${ac_cv_prog_DLLTOOL+:} false; then : 7641 $as_echo_n "(cached) " >&6 7642else 7643 if test -n "$DLLTOOL"; then 7644 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7645else 7646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7647for as_dir in $PATH 7648do 7649 IFS=$as_save_IFS 7650 test -z "$as_dir" && as_dir=. 7651 for ac_exec_ext in '' $ac_executable_extensions; do 7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7653 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7655 break 2 7656 fi 7657done 7658 done 7659IFS=$as_save_IFS 7660 7661fi 7662fi 7663DLLTOOL=$ac_cv_prog_DLLTOOL 7664if test -n "$DLLTOOL"; then 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7666$as_echo "$DLLTOOL" >&6; } 7667else 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7669$as_echo "no" >&6; } 7670fi 7671 7672 7673fi 7674if test -z "$ac_cv_prog_DLLTOOL"; then 7675 ac_ct_DLLTOOL=$DLLTOOL 7676 # Extract the first word of "dlltool", so it can be a program name with args. 7677set dummy dlltool; ac_word=$2 7678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7679$as_echo_n "checking for $ac_word... " >&6; } 7680if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7681 $as_echo_n "(cached) " >&6 7682else 7683 if test -n "$ac_ct_DLLTOOL"; then 7684 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7685else 7686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7687for as_dir in $PATH 7688do 7689 IFS=$as_save_IFS 7690 test -z "$as_dir" && as_dir=. 7691 for ac_exec_ext in '' $ac_executable_extensions; do 7692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7693 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7695 break 2 7696 fi 7697done 7698 done 7699IFS=$as_save_IFS 7700 7701fi 7702fi 7703ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7704if test -n "$ac_ct_DLLTOOL"; then 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7706$as_echo "$ac_ct_DLLTOOL" >&6; } 7707else 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7709$as_echo "no" >&6; } 7710fi 7711 7712 if test "x$ac_ct_DLLTOOL" = x; then 7713 DLLTOOL="false" 7714 else 7715 case $cross_compiling:$ac_tool_warned in 7716yes:) 7717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7719ac_tool_warned=yes ;; 7720esac 7721 DLLTOOL=$ac_ct_DLLTOOL 7722 fi 7723else 7724 DLLTOOL="$ac_cv_prog_DLLTOOL" 7725fi 7726 7727test -z "$DLLTOOL" && DLLTOOL=dlltool 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7739$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7740if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7741 $as_echo_n "(cached) " >&6 7742else 7743 lt_cv_sharedlib_from_linklib_cmd='unknown' 7744 7745case $host_os in 7746cygwin* | mingw* | pw32* | cegcc*) 7747 # two different shell functions defined in ltmain.sh 7748 # decide which to use based on capabilities of $DLLTOOL 7749 case `$DLLTOOL --help 2>&1` in 7750 *--identify-strict*) 7751 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7752 ;; 7753 *) 7754 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7755 ;; 7756 esac 7757 ;; 7758*) 7759 # fallback: assume linklib IS sharedlib 7760 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 7761 ;; 7762esac 7763 7764fi 7765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7766$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7767sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7768test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7769 7770 7771 7772 7773 7774 7775 7776if test -n "$ac_tool_prefix"; then 7777 for ac_prog in ar 7778 do 7779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7780set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7782$as_echo_n "checking for $ac_word... " >&6; } 7783if ${ac_cv_prog_AR+:} false; then : 7784 $as_echo_n "(cached) " >&6 7785else 7786 if test -n "$AR"; then 7787 ac_cv_prog_AR="$AR" # Let the user override the test. 7788else 7789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7790for as_dir in $PATH 7791do 7792 IFS=$as_save_IFS 7793 test -z "$as_dir" && as_dir=. 7794 for ac_exec_ext in '' $ac_executable_extensions; do 7795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7796 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7798 break 2 7799 fi 7800done 7801 done 7802IFS=$as_save_IFS 7803 7804fi 7805fi 7806AR=$ac_cv_prog_AR 7807if test -n "$AR"; then 7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7809$as_echo "$AR" >&6; } 7810else 7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7812$as_echo "no" >&6; } 7813fi 7814 7815 7816 test -n "$AR" && break 7817 done 7818fi 7819if test -z "$AR"; then 7820 ac_ct_AR=$AR 7821 for ac_prog in ar 7822do 7823 # Extract the first word of "$ac_prog", so it can be a program name with args. 7824set dummy $ac_prog; ac_word=$2 7825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7826$as_echo_n "checking for $ac_word... " >&6; } 7827if ${ac_cv_prog_ac_ct_AR+:} false; then : 7828 $as_echo_n "(cached) " >&6 7829else 7830 if test -n "$ac_ct_AR"; then 7831 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7832else 7833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7834for as_dir in $PATH 7835do 7836 IFS=$as_save_IFS 7837 test -z "$as_dir" && as_dir=. 7838 for ac_exec_ext in '' $ac_executable_extensions; do 7839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7840 ac_cv_prog_ac_ct_AR="$ac_prog" 7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7842 break 2 7843 fi 7844done 7845 done 7846IFS=$as_save_IFS 7847 7848fi 7849fi 7850ac_ct_AR=$ac_cv_prog_ac_ct_AR 7851if test -n "$ac_ct_AR"; then 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7853$as_echo "$ac_ct_AR" >&6; } 7854else 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7856$as_echo "no" >&6; } 7857fi 7858 7859 7860 test -n "$ac_ct_AR" && break 7861done 7862 7863 if test "x$ac_ct_AR" = x; then 7864 AR="false" 7865 else 7866 case $cross_compiling:$ac_tool_warned in 7867yes:) 7868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7870ac_tool_warned=yes ;; 7871esac 7872 AR=$ac_ct_AR 7873 fi 7874fi 7875 7876: ${AR=ar} 7877: ${AR_FLAGS=cru} 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7890$as_echo_n "checking for archiver @FILE support... " >&6; } 7891if ${lt_cv_ar_at_file+:} false; then : 7892 $as_echo_n "(cached) " >&6 7893else 7894 lt_cv_ar_at_file=no 7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7896/* end confdefs.h. */ 7897 7898int 7899main () 7900{ 7901 7902 ; 7903 return 0; 7904} 7905_ACEOF 7906if ac_fn_c_try_compile "$LINENO"; then : 7907 echo conftest.$ac_objext > conftest.lst 7908 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7910 (eval $lt_ar_try) 2>&5 7911 ac_status=$? 7912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7913 test $ac_status = 0; } 7914 if test "$ac_status" -eq 0; then 7915 # Ensure the archiver fails upon bogus file names. 7916 rm -f conftest.$ac_objext libconftest.a 7917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7918 (eval $lt_ar_try) 2>&5 7919 ac_status=$? 7920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7921 test $ac_status = 0; } 7922 if test "$ac_status" -ne 0; then 7923 lt_cv_ar_at_file=@ 7924 fi 7925 fi 7926 rm -f conftest.* libconftest.a 7927 7928fi 7929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7930 7931fi 7932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7933$as_echo "$lt_cv_ar_at_file" >&6; } 7934 7935if test "x$lt_cv_ar_at_file" = xno; then 7936 archiver_list_spec= 7937else 7938 archiver_list_spec=$lt_cv_ar_at_file 7939fi 7940 7941 7942 7943 7944 7945 7946 7947if test -n "$ac_tool_prefix"; then 7948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7949set dummy ${ac_tool_prefix}strip; ac_word=$2 7950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7951$as_echo_n "checking for $ac_word... " >&6; } 7952if ${ac_cv_prog_STRIP+:} false; then : 7953 $as_echo_n "(cached) " >&6 7954else 7955 if test -n "$STRIP"; then 7956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7957else 7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7959for as_dir in $PATH 7960do 7961 IFS=$as_save_IFS 7962 test -z "$as_dir" && as_dir=. 7963 for ac_exec_ext in '' $ac_executable_extensions; do 7964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7965 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7967 break 2 7968 fi 7969done 7970 done 7971IFS=$as_save_IFS 7972 7973fi 7974fi 7975STRIP=$ac_cv_prog_STRIP 7976if test -n "$STRIP"; then 7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7978$as_echo "$STRIP" >&6; } 7979else 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7981$as_echo "no" >&6; } 7982fi 7983 7984 7985fi 7986if test -z "$ac_cv_prog_STRIP"; then 7987 ac_ct_STRIP=$STRIP 7988 # Extract the first word of "strip", so it can be a program name with args. 7989set dummy strip; ac_word=$2 7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7991$as_echo_n "checking for $ac_word... " >&6; } 7992if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7993 $as_echo_n "(cached) " >&6 7994else 7995 if test -n "$ac_ct_STRIP"; then 7996 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7997else 7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7999for as_dir in $PATH 8000do 8001 IFS=$as_save_IFS 8002 test -z "$as_dir" && as_dir=. 8003 for ac_exec_ext in '' $ac_executable_extensions; do 8004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8005 ac_cv_prog_ac_ct_STRIP="strip" 8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8007 break 2 8008 fi 8009done 8010 done 8011IFS=$as_save_IFS 8012 8013fi 8014fi 8015ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8016if test -n "$ac_ct_STRIP"; then 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8018$as_echo "$ac_ct_STRIP" >&6; } 8019else 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8021$as_echo "no" >&6; } 8022fi 8023 8024 if test "x$ac_ct_STRIP" = x; then 8025 STRIP=":" 8026 else 8027 case $cross_compiling:$ac_tool_warned in 8028yes:) 8029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8031ac_tool_warned=yes ;; 8032esac 8033 STRIP=$ac_ct_STRIP 8034 fi 8035else 8036 STRIP="$ac_cv_prog_STRIP" 8037fi 8038 8039test -z "$STRIP" && STRIP=: 8040 8041 8042 8043 8044 8045 8046if test -n "$ac_tool_prefix"; then 8047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8048set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8050$as_echo_n "checking for $ac_word... " >&6; } 8051if ${ac_cv_prog_RANLIB+:} false; then : 8052 $as_echo_n "(cached) " >&6 8053else 8054 if test -n "$RANLIB"; then 8055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8056else 8057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8058for as_dir in $PATH 8059do 8060 IFS=$as_save_IFS 8061 test -z "$as_dir" && as_dir=. 8062 for ac_exec_ext in '' $ac_executable_extensions; do 8063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8064 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8066 break 2 8067 fi 8068done 8069 done 8070IFS=$as_save_IFS 8071 8072fi 8073fi 8074RANLIB=$ac_cv_prog_RANLIB 8075if test -n "$RANLIB"; then 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8077$as_echo "$RANLIB" >&6; } 8078else 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8080$as_echo "no" >&6; } 8081fi 8082 8083 8084fi 8085if test -z "$ac_cv_prog_RANLIB"; then 8086 ac_ct_RANLIB=$RANLIB 8087 # Extract the first word of "ranlib", so it can be a program name with args. 8088set dummy ranlib; ac_word=$2 8089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8090$as_echo_n "checking for $ac_word... " >&6; } 8091if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8092 $as_echo_n "(cached) " >&6 8093else 8094 if test -n "$ac_ct_RANLIB"; then 8095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8096else 8097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8098for as_dir in $PATH 8099do 8100 IFS=$as_save_IFS 8101 test -z "$as_dir" && as_dir=. 8102 for ac_exec_ext in '' $ac_executable_extensions; do 8103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8104 ac_cv_prog_ac_ct_RANLIB="ranlib" 8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8106 break 2 8107 fi 8108done 8109 done 8110IFS=$as_save_IFS 8111 8112fi 8113fi 8114ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8115if test -n "$ac_ct_RANLIB"; then 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8117$as_echo "$ac_ct_RANLIB" >&6; } 8118else 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8120$as_echo "no" >&6; } 8121fi 8122 8123 if test "x$ac_ct_RANLIB" = x; then 8124 RANLIB=":" 8125 else 8126 case $cross_compiling:$ac_tool_warned in 8127yes:) 8128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8130ac_tool_warned=yes ;; 8131esac 8132 RANLIB=$ac_ct_RANLIB 8133 fi 8134else 8135 RANLIB="$ac_cv_prog_RANLIB" 8136fi 8137 8138test -z "$RANLIB" && RANLIB=: 8139 8140 8141 8142 8143 8144 8145# Determine commands to create old-style static archives. 8146old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8147old_postinstall_cmds='chmod 644 $oldlib' 8148old_postuninstall_cmds= 8149 8150if test -n "$RANLIB"; then 8151 case $host_os in 8152 openbsd*) 8153 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8154 ;; 8155 *) 8156 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8157 ;; 8158 esac 8159 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8160fi 8161 8162case $host_os in 8163 darwin*) 8164 lock_old_archive_extraction=yes ;; 8165 *) 8166 lock_old_archive_extraction=no ;; 8167esac 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189for ac_prog in gawk mawk nawk awk 8190do 8191 # Extract the first word of "$ac_prog", so it can be a program name with args. 8192set dummy $ac_prog; ac_word=$2 8193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8194$as_echo_n "checking for $ac_word... " >&6; } 8195if ${ac_cv_prog_AWK+:} false; then : 8196 $as_echo_n "(cached) " >&6 8197else 8198 if test -n "$AWK"; then 8199 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8200else 8201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8202for as_dir in $PATH 8203do 8204 IFS=$as_save_IFS 8205 test -z "$as_dir" && as_dir=. 8206 for ac_exec_ext in '' $ac_executable_extensions; do 8207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8208 ac_cv_prog_AWK="$ac_prog" 8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8210 break 2 8211 fi 8212done 8213 done 8214IFS=$as_save_IFS 8215 8216fi 8217fi 8218AWK=$ac_cv_prog_AWK 8219if test -n "$AWK"; then 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8221$as_echo "$AWK" >&6; } 8222else 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8224$as_echo "no" >&6; } 8225fi 8226 8227 8228 test -n "$AWK" && break 8229done 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249# If no C compiler was specified, use CC. 8250LTCC=${LTCC-"$CC"} 8251 8252# If no C compiler flags were specified, use CFLAGS. 8253LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8254 8255# Allow CC to be a program name with arguments. 8256compiler=$CC 8257 8258 8259# Check for command to grab the raw symbol name followed by C symbol from nm. 8260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8261$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8262if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8263 $as_echo_n "(cached) " >&6 8264else 8265 8266# These are sane defaults that work on at least a few old systems. 8267# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8268 8269# Character class describing NM global symbol codes. 8270symcode='[BCDEGRST]' 8271 8272# Regexp to match symbols that can be accessed directly from C. 8273sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8274 8275# Define system-specific variables. 8276case $host_os in 8277aix*) 8278 symcode='[BCDT]' 8279 ;; 8280cygwin* | mingw* | pw32* | cegcc*) 8281 symcode='[ABCDGISTW]' 8282 ;; 8283hpux*) 8284 if test "$host_cpu" = ia64; then 8285 symcode='[ABCDEGRST]' 8286 fi 8287 ;; 8288irix* | nonstopux*) 8289 symcode='[BCDEGRST]' 8290 ;; 8291osf*) 8292 symcode='[BCDEGQRST]' 8293 ;; 8294solaris*) 8295 symcode='[BDRT]' 8296 ;; 8297sco3.2v5*) 8298 symcode='[DT]' 8299 ;; 8300sysv4.2uw2*) 8301 symcode='[DT]' 8302 ;; 8303sysv5* | sco5v6* | unixware* | OpenUNIX*) 8304 symcode='[ABDT]' 8305 ;; 8306sysv4) 8307 symcode='[DFNSTU]' 8308 ;; 8309esac 8310 8311# If we're using GNU nm, then use its standard symbol codes. 8312case `$NM -V 2>&1` in 8313*GNU* | *'with BFD'*) 8314 symcode='[ABCDGIRSTW]' ;; 8315esac 8316 8317# Transform an extracted symbol line into a proper C declaration. 8318# Some systems (esp. on ia64) link data and code symbols differently, 8319# so use this general approach. 8320lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8321 8322# Transform an extracted symbol line into symbol name and symbol address 8323lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 8324lt_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'" 8325 8326# Handle CRLF in mingw tool chain 8327opt_cr= 8328case $build_os in 8329mingw*) 8330 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8331 ;; 8332esac 8333 8334# Try without a prefix underscore, then with it. 8335for ac_symprfx in "" "_"; do 8336 8337 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8338 symxfrm="\\1 $ac_symprfx\\2 \\2" 8339 8340 # Write the raw and C identifiers. 8341 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8342 # Fake it for dumpbin and say T for any non-static function 8343 # and D for any global variable. 8344 # Also find C++ and __fastcall symbols from MSVC++, 8345 # which start with @ or ?. 8346 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8347" {last_section=section; section=\$ 3};"\ 8348" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8349" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8350" \$ 0!~/External *\|/{next};"\ 8351" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8352" {if(hide[section]) next};"\ 8353" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 8354" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 8355" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 8356" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 8357" ' prfx=^$ac_symprfx" 8358 else 8359 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8360 fi 8361 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8362 8363 # Check to see that the pipe works correctly. 8364 pipe_works=no 8365 8366 rm -f conftest* 8367 cat > conftest.$ac_ext <<_LT_EOF 8368#ifdef __cplusplus 8369extern "C" { 8370#endif 8371char nm_test_var; 8372void nm_test_func(void); 8373void nm_test_func(void){} 8374#ifdef __cplusplus 8375} 8376#endif 8377int main(){nm_test_var='a';nm_test_func();return(0);} 8378_LT_EOF 8379 8380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8381 (eval $ac_compile) 2>&5 8382 ac_status=$? 8383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8384 test $ac_status = 0; }; then 8385 # Now try to grab the symbols. 8386 nlist=conftest.nm 8387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8388 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8389 ac_status=$? 8390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8391 test $ac_status = 0; } && test -s "$nlist"; then 8392 # Try sorting and uniquifying the output. 8393 if sort "$nlist" | uniq > "$nlist"T; then 8394 mv -f "$nlist"T "$nlist" 8395 else 8396 rm -f "$nlist"T 8397 fi 8398 8399 # Make sure that we snagged all the symbols we need. 8400 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8401 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8402 cat <<_LT_EOF > conftest.$ac_ext 8403/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8404#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 8405/* DATA imports from DLLs on WIN32 con't be const, because runtime 8406 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8407# define LT_DLSYM_CONST 8408#elif defined(__osf__) 8409/* This system does not cope well with relocations in const data. */ 8410# define LT_DLSYM_CONST 8411#else 8412# define LT_DLSYM_CONST const 8413#endif 8414 8415#ifdef __cplusplus 8416extern "C" { 8417#endif 8418 8419_LT_EOF 8420 # Now generate the symbol file. 8421 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8422 8423 cat <<_LT_EOF >> conftest.$ac_ext 8424 8425/* The mapping between symbol names and symbols. */ 8426LT_DLSYM_CONST struct { 8427 const char *name; 8428 void *address; 8429} 8430lt__PROGRAM__LTX_preloaded_symbols[] = 8431{ 8432 { "@PROGRAM@", (void *) 0 }, 8433_LT_EOF 8434 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8435 cat <<\_LT_EOF >> conftest.$ac_ext 8436 {0, (void *) 0} 8437}; 8438 8439/* This works around a problem in FreeBSD linker */ 8440#ifdef FREEBSD_WORKAROUND 8441static const void *lt_preloaded_setup() { 8442 return lt__PROGRAM__LTX_preloaded_symbols; 8443} 8444#endif 8445 8446#ifdef __cplusplus 8447} 8448#endif 8449_LT_EOF 8450 # Now try linking the two files. 8451 mv conftest.$ac_objext conftstm.$ac_objext 8452 lt_globsym_save_LIBS=$LIBS 8453 lt_globsym_save_CFLAGS=$CFLAGS 8454 LIBS="conftstm.$ac_objext" 8455 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8457 (eval $ac_link) 2>&5 8458 ac_status=$? 8459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8460 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8461 pipe_works=yes 8462 fi 8463 LIBS=$lt_globsym_save_LIBS 8464 CFLAGS=$lt_globsym_save_CFLAGS 8465 else 8466 echo "cannot find nm_test_func in $nlist" >&5 8467 fi 8468 else 8469 echo "cannot find nm_test_var in $nlist" >&5 8470 fi 8471 else 8472 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8473 fi 8474 else 8475 echo "$progname: failed program was:" >&5 8476 cat conftest.$ac_ext >&5 8477 fi 8478 rm -rf conftest* conftst* 8479 8480 # Do not use the global_symbol_pipe unless it works. 8481 if test "$pipe_works" = yes; then 8482 break 8483 else 8484 lt_cv_sys_global_symbol_pipe= 8485 fi 8486done 8487 8488fi 8489 8490if test -z "$lt_cv_sys_global_symbol_pipe"; then 8491 lt_cv_sys_global_symbol_to_cdecl= 8492fi 8493if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8495$as_echo "failed" >&6; } 8496else 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8498$as_echo "ok" >&6; } 8499fi 8500 8501# Response file support. 8502if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8503 nm_file_list_spec='@' 8504elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8505 nm_file_list_spec='@' 8506fi 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8535$as_echo_n "checking for sysroot... " >&6; } 8536 8537# Check whether --with-sysroot was given. 8538if test "${with_sysroot+set}" = set; then : 8539 withval=$with_sysroot; 8540else 8541 with_sysroot=no 8542fi 8543 8544 8545lt_sysroot= 8546case ${with_sysroot} in #( 8547 yes) 8548 if test "$GCC" = yes; then 8549 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8550 fi 8551 ;; #( 8552 /*) 8553 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8554 ;; #( 8555 no|'') 8556 ;; #( 8557 *) 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 8559$as_echo "${with_sysroot}" >&6; } 8560 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8561 ;; 8562esac 8563 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8565$as_echo "${lt_sysroot:-no}" >&6; } 8566 8567 8568 8569 8570 8571# Check whether --enable-libtool-lock was given. 8572if test "${enable_libtool_lock+set}" = set; then : 8573 enableval=$enable_libtool_lock; 8574fi 8575 8576test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8577 8578# Some flags need to be propagated to the compiler or linker for good 8579# libtool support. 8580case $host in 8581ia64-*-hpux*) 8582 # Find out which ABI we are using. 8583 echo 'int i;' > conftest.$ac_ext 8584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8585 (eval $ac_compile) 2>&5 8586 ac_status=$? 8587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8588 test $ac_status = 0; }; then 8589 case `/usr/bin/file conftest.$ac_objext` in 8590 *ELF-32*) 8591 HPUX_IA64_MODE="32" 8592 ;; 8593 *ELF-64*) 8594 HPUX_IA64_MODE="64" 8595 ;; 8596 esac 8597 fi 8598 rm -rf conftest* 8599 ;; 8600*-*-irix6*) 8601 # Find out which ABI we are using. 8602 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8604 (eval $ac_compile) 2>&5 8605 ac_status=$? 8606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8607 test $ac_status = 0; }; then 8608 if test "$lt_cv_prog_gnu_ld" = yes; then 8609 case `/usr/bin/file conftest.$ac_objext` in 8610 *32-bit*) 8611 LD="${LD-ld} -melf32bsmip" 8612 ;; 8613 *N32*) 8614 LD="${LD-ld} -melf32bmipn32" 8615 ;; 8616 *64-bit*) 8617 LD="${LD-ld} -melf64bmip" 8618 ;; 8619 esac 8620 else 8621 case `/usr/bin/file conftest.$ac_objext` in 8622 *32-bit*) 8623 LD="${LD-ld} -32" 8624 ;; 8625 *N32*) 8626 LD="${LD-ld} -n32" 8627 ;; 8628 *64-bit*) 8629 LD="${LD-ld} -64" 8630 ;; 8631 esac 8632 fi 8633 fi 8634 rm -rf conftest* 8635 ;; 8636 8637x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 8638s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8639 # Find out which ABI we are using. 8640 echo 'int i;' > conftest.$ac_ext 8641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8642 (eval $ac_compile) 2>&5 8643 ac_status=$? 8644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8645 test $ac_status = 0; }; then 8646 case `/usr/bin/file conftest.o` in 8647 *32-bit*) 8648 case $host in 8649 x86_64-*kfreebsd*-gnu) 8650 LD="${LD-ld} -m elf_i386_fbsd" 8651 ;; 8652 x86_64-*linux*) 8653 LD="${LD-ld} -m elf_i386" 8654 ;; 8655 ppc64-*linux*|powerpc64-*linux*) 8656 LD="${LD-ld} -m elf32ppclinux" 8657 ;; 8658 s390x-*linux*) 8659 LD="${LD-ld} -m elf_s390" 8660 ;; 8661 sparc64-*linux*) 8662 LD="${LD-ld} -m elf32_sparc" 8663 ;; 8664 esac 8665 ;; 8666 *64-bit*) 8667 case $host in 8668 x86_64-*kfreebsd*-gnu) 8669 LD="${LD-ld} -m elf_x86_64_fbsd" 8670 ;; 8671 x86_64-*linux*) 8672 LD="${LD-ld} -m elf_x86_64" 8673 ;; 8674 ppc*-*linux*|powerpc*-*linux*) 8675 LD="${LD-ld} -m elf64ppc" 8676 ;; 8677 s390*-*linux*|s390*-*tpf*) 8678 LD="${LD-ld} -m elf64_s390" 8679 ;; 8680 sparc*-*linux*) 8681 LD="${LD-ld} -m elf64_sparc" 8682 ;; 8683 esac 8684 ;; 8685 esac 8686 fi 8687 rm -rf conftest* 8688 ;; 8689 8690*-*-sco3.2v5*) 8691 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8692 SAVE_CFLAGS="$CFLAGS" 8693 CFLAGS="$CFLAGS -belf" 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8695$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8696if ${lt_cv_cc_needs_belf+:} false; then : 8697 $as_echo_n "(cached) " >&6 8698else 8699 ac_ext=c 8700ac_cpp='$CPP $CPPFLAGS' 8701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8703ac_compiler_gnu=$ac_cv_c_compiler_gnu 8704 8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8706/* end confdefs.h. */ 8707 8708int 8709main () 8710{ 8711 8712 ; 8713 return 0; 8714} 8715_ACEOF 8716if ac_fn_c_try_link "$LINENO"; then : 8717 lt_cv_cc_needs_belf=yes 8718else 8719 lt_cv_cc_needs_belf=no 8720fi 8721rm -f core conftest.err conftest.$ac_objext \ 8722 conftest$ac_exeext conftest.$ac_ext 8723 ac_ext=c 8724ac_cpp='$CPP $CPPFLAGS' 8725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8727ac_compiler_gnu=$ac_cv_c_compiler_gnu 8728 8729fi 8730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8731$as_echo "$lt_cv_cc_needs_belf" >&6; } 8732 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8733 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8734 CFLAGS="$SAVE_CFLAGS" 8735 fi 8736 ;; 8737*-*solaris*) 8738 # Find out which ABI we are using. 8739 echo 'int i;' > conftest.$ac_ext 8740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8741 (eval $ac_compile) 2>&5 8742 ac_status=$? 8743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8744 test $ac_status = 0; }; then 8745 case `/usr/bin/file conftest.o` in 8746 *64-bit*) 8747 case $lt_cv_prog_gnu_ld in 8748 yes*) 8749 case $host in 8750 i?86-*-solaris*) 8751 LD="${LD-ld} -m elf_x86_64" 8752 ;; 8753 sparc*-*-solaris*) 8754 LD="${LD-ld} -m elf64_sparc" 8755 ;; 8756 esac 8757 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8758 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8759 LD="${LD-ld}_sol2" 8760 fi 8761 ;; 8762 *) 8763 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8764 LD="${LD-ld} -64" 8765 fi 8766 ;; 8767 esac 8768 ;; 8769 esac 8770 fi 8771 rm -rf conftest* 8772 ;; 8773esac 8774 8775need_locks="$enable_libtool_lock" 8776 8777if test -n "$ac_tool_prefix"; then 8778 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8779set dummy ${ac_tool_prefix}mt; ac_word=$2 8780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8781$as_echo_n "checking for $ac_word... " >&6; } 8782if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8783 $as_echo_n "(cached) " >&6 8784else 8785 if test -n "$MANIFEST_TOOL"; then 8786 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8787else 8788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8789for as_dir in $PATH 8790do 8791 IFS=$as_save_IFS 8792 test -z "$as_dir" && as_dir=. 8793 for ac_exec_ext in '' $ac_executable_extensions; do 8794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8795 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8797 break 2 8798 fi 8799done 8800 done 8801IFS=$as_save_IFS 8802 8803fi 8804fi 8805MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8806if test -n "$MANIFEST_TOOL"; then 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8808$as_echo "$MANIFEST_TOOL" >&6; } 8809else 8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8811$as_echo "no" >&6; } 8812fi 8813 8814 8815fi 8816if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8817 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8818 # Extract the first word of "mt", so it can be a program name with args. 8819set dummy mt; ac_word=$2 8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8821$as_echo_n "checking for $ac_word... " >&6; } 8822if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8823 $as_echo_n "(cached) " >&6 8824else 8825 if test -n "$ac_ct_MANIFEST_TOOL"; then 8826 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8827else 8828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8829for as_dir in $PATH 8830do 8831 IFS=$as_save_IFS 8832 test -z "$as_dir" && as_dir=. 8833 for ac_exec_ext in '' $ac_executable_extensions; do 8834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8835 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8837 break 2 8838 fi 8839done 8840 done 8841IFS=$as_save_IFS 8842 8843fi 8844fi 8845ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8846if test -n "$ac_ct_MANIFEST_TOOL"; then 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8848$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8849else 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8851$as_echo "no" >&6; } 8852fi 8853 8854 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8855 MANIFEST_TOOL=":" 8856 else 8857 case $cross_compiling:$ac_tool_warned in 8858yes:) 8859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8861ac_tool_warned=yes ;; 8862esac 8863 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8864 fi 8865else 8866 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8867fi 8868 8869test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8871$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8872if ${lt_cv_path_mainfest_tool+:} false; then : 8873 $as_echo_n "(cached) " >&6 8874else 8875 lt_cv_path_mainfest_tool=no 8876 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8877 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8878 cat conftest.err >&5 8879 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8880 lt_cv_path_mainfest_tool=yes 8881 fi 8882 rm -f conftest* 8883fi 8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8885$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8886if test "x$lt_cv_path_mainfest_tool" != xyes; then 8887 MANIFEST_TOOL=: 8888fi 8889 8890 8891 8892 8893 8894 8895 case $host_os in 8896 rhapsody* | darwin*) 8897 if test -n "$ac_tool_prefix"; then 8898 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8899set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8901$as_echo_n "checking for $ac_word... " >&6; } 8902if ${ac_cv_prog_DSYMUTIL+:} false; then : 8903 $as_echo_n "(cached) " >&6 8904else 8905 if test -n "$DSYMUTIL"; then 8906 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8907else 8908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8909for as_dir in $PATH 8910do 8911 IFS=$as_save_IFS 8912 test -z "$as_dir" && as_dir=. 8913 for ac_exec_ext in '' $ac_executable_extensions; do 8914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8915 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8917 break 2 8918 fi 8919done 8920 done 8921IFS=$as_save_IFS 8922 8923fi 8924fi 8925DSYMUTIL=$ac_cv_prog_DSYMUTIL 8926if test -n "$DSYMUTIL"; then 8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8928$as_echo "$DSYMUTIL" >&6; } 8929else 8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8931$as_echo "no" >&6; } 8932fi 8933 8934 8935fi 8936if test -z "$ac_cv_prog_DSYMUTIL"; then 8937 ac_ct_DSYMUTIL=$DSYMUTIL 8938 # Extract the first word of "dsymutil", so it can be a program name with args. 8939set dummy dsymutil; ac_word=$2 8940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8941$as_echo_n "checking for $ac_word... " >&6; } 8942if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8943 $as_echo_n "(cached) " >&6 8944else 8945 if test -n "$ac_ct_DSYMUTIL"; then 8946 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8947else 8948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8949for as_dir in $PATH 8950do 8951 IFS=$as_save_IFS 8952 test -z "$as_dir" && as_dir=. 8953 for ac_exec_ext in '' $ac_executable_extensions; do 8954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8955 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8957 break 2 8958 fi 8959done 8960 done 8961IFS=$as_save_IFS 8962 8963fi 8964fi 8965ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8966if test -n "$ac_ct_DSYMUTIL"; then 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8968$as_echo "$ac_ct_DSYMUTIL" >&6; } 8969else 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8971$as_echo "no" >&6; } 8972fi 8973 8974 if test "x$ac_ct_DSYMUTIL" = x; then 8975 DSYMUTIL=":" 8976 else 8977 case $cross_compiling:$ac_tool_warned in 8978yes:) 8979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8981ac_tool_warned=yes ;; 8982esac 8983 DSYMUTIL=$ac_ct_DSYMUTIL 8984 fi 8985else 8986 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8987fi 8988 8989 if test -n "$ac_tool_prefix"; then 8990 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8991set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8993$as_echo_n "checking for $ac_word... " >&6; } 8994if ${ac_cv_prog_NMEDIT+:} false; then : 8995 $as_echo_n "(cached) " >&6 8996else 8997 if test -n "$NMEDIT"; then 8998 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8999else 9000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9001for as_dir in $PATH 9002do 9003 IFS=$as_save_IFS 9004 test -z "$as_dir" && as_dir=. 9005 for ac_exec_ext in '' $ac_executable_extensions; do 9006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9007 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9009 break 2 9010 fi 9011done 9012 done 9013IFS=$as_save_IFS 9014 9015fi 9016fi 9017NMEDIT=$ac_cv_prog_NMEDIT 9018if test -n "$NMEDIT"; then 9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9020$as_echo "$NMEDIT" >&6; } 9021else 9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9023$as_echo "no" >&6; } 9024fi 9025 9026 9027fi 9028if test -z "$ac_cv_prog_NMEDIT"; then 9029 ac_ct_NMEDIT=$NMEDIT 9030 # Extract the first word of "nmedit", so it can be a program name with args. 9031set dummy nmedit; ac_word=$2 9032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9033$as_echo_n "checking for $ac_word... " >&6; } 9034if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9035 $as_echo_n "(cached) " >&6 9036else 9037 if test -n "$ac_ct_NMEDIT"; then 9038 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9039else 9040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9041for as_dir in $PATH 9042do 9043 IFS=$as_save_IFS 9044 test -z "$as_dir" && as_dir=. 9045 for ac_exec_ext in '' $ac_executable_extensions; do 9046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9047 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9049 break 2 9050 fi 9051done 9052 done 9053IFS=$as_save_IFS 9054 9055fi 9056fi 9057ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9058if test -n "$ac_ct_NMEDIT"; then 9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9060$as_echo "$ac_ct_NMEDIT" >&6; } 9061else 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9063$as_echo "no" >&6; } 9064fi 9065 9066 if test "x$ac_ct_NMEDIT" = x; then 9067 NMEDIT=":" 9068 else 9069 case $cross_compiling:$ac_tool_warned in 9070yes:) 9071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9073ac_tool_warned=yes ;; 9074esac 9075 NMEDIT=$ac_ct_NMEDIT 9076 fi 9077else 9078 NMEDIT="$ac_cv_prog_NMEDIT" 9079fi 9080 9081 if test -n "$ac_tool_prefix"; then 9082 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9083set dummy ${ac_tool_prefix}lipo; ac_word=$2 9084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9085$as_echo_n "checking for $ac_word... " >&6; } 9086if ${ac_cv_prog_LIPO+:} false; then : 9087 $as_echo_n "(cached) " >&6 9088else 9089 if test -n "$LIPO"; then 9090 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9091else 9092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9093for as_dir in $PATH 9094do 9095 IFS=$as_save_IFS 9096 test -z "$as_dir" && as_dir=. 9097 for ac_exec_ext in '' $ac_executable_extensions; do 9098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9099 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9101 break 2 9102 fi 9103done 9104 done 9105IFS=$as_save_IFS 9106 9107fi 9108fi 9109LIPO=$ac_cv_prog_LIPO 9110if test -n "$LIPO"; then 9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9112$as_echo "$LIPO" >&6; } 9113else 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9115$as_echo "no" >&6; } 9116fi 9117 9118 9119fi 9120if test -z "$ac_cv_prog_LIPO"; then 9121 ac_ct_LIPO=$LIPO 9122 # Extract the first word of "lipo", so it can be a program name with args. 9123set dummy lipo; ac_word=$2 9124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9125$as_echo_n "checking for $ac_word... " >&6; } 9126if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9127 $as_echo_n "(cached) " >&6 9128else 9129 if test -n "$ac_ct_LIPO"; then 9130 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9131else 9132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9133for as_dir in $PATH 9134do 9135 IFS=$as_save_IFS 9136 test -z "$as_dir" && as_dir=. 9137 for ac_exec_ext in '' $ac_executable_extensions; do 9138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9139 ac_cv_prog_ac_ct_LIPO="lipo" 9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9141 break 2 9142 fi 9143done 9144 done 9145IFS=$as_save_IFS 9146 9147fi 9148fi 9149ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9150if test -n "$ac_ct_LIPO"; then 9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9152$as_echo "$ac_ct_LIPO" >&6; } 9153else 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9155$as_echo "no" >&6; } 9156fi 9157 9158 if test "x$ac_ct_LIPO" = x; then 9159 LIPO=":" 9160 else 9161 case $cross_compiling:$ac_tool_warned in 9162yes:) 9163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9165ac_tool_warned=yes ;; 9166esac 9167 LIPO=$ac_ct_LIPO 9168 fi 9169else 9170 LIPO="$ac_cv_prog_LIPO" 9171fi 9172 9173 if test -n "$ac_tool_prefix"; then 9174 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9175set dummy ${ac_tool_prefix}otool; ac_word=$2 9176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9177$as_echo_n "checking for $ac_word... " >&6; } 9178if ${ac_cv_prog_OTOOL+:} false; then : 9179 $as_echo_n "(cached) " >&6 9180else 9181 if test -n "$OTOOL"; then 9182 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9183else 9184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9185for as_dir in $PATH 9186do 9187 IFS=$as_save_IFS 9188 test -z "$as_dir" && as_dir=. 9189 for ac_exec_ext in '' $ac_executable_extensions; do 9190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9191 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9193 break 2 9194 fi 9195done 9196 done 9197IFS=$as_save_IFS 9198 9199fi 9200fi 9201OTOOL=$ac_cv_prog_OTOOL 9202if test -n "$OTOOL"; then 9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9204$as_echo "$OTOOL" >&6; } 9205else 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9207$as_echo "no" >&6; } 9208fi 9209 9210 9211fi 9212if test -z "$ac_cv_prog_OTOOL"; then 9213 ac_ct_OTOOL=$OTOOL 9214 # Extract the first word of "otool", so it can be a program name with args. 9215set dummy otool; ac_word=$2 9216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9217$as_echo_n "checking for $ac_word... " >&6; } 9218if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9219 $as_echo_n "(cached) " >&6 9220else 9221 if test -n "$ac_ct_OTOOL"; then 9222 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9223else 9224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9225for as_dir in $PATH 9226do 9227 IFS=$as_save_IFS 9228 test -z "$as_dir" && as_dir=. 9229 for ac_exec_ext in '' $ac_executable_extensions; do 9230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9231 ac_cv_prog_ac_ct_OTOOL="otool" 9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9233 break 2 9234 fi 9235done 9236 done 9237IFS=$as_save_IFS 9238 9239fi 9240fi 9241ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9242if test -n "$ac_ct_OTOOL"; then 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9244$as_echo "$ac_ct_OTOOL" >&6; } 9245else 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9247$as_echo "no" >&6; } 9248fi 9249 9250 if test "x$ac_ct_OTOOL" = x; then 9251 OTOOL=":" 9252 else 9253 case $cross_compiling:$ac_tool_warned in 9254yes:) 9255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9257ac_tool_warned=yes ;; 9258esac 9259 OTOOL=$ac_ct_OTOOL 9260 fi 9261else 9262 OTOOL="$ac_cv_prog_OTOOL" 9263fi 9264 9265 if test -n "$ac_tool_prefix"; then 9266 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9267set dummy ${ac_tool_prefix}otool64; ac_word=$2 9268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9269$as_echo_n "checking for $ac_word... " >&6; } 9270if ${ac_cv_prog_OTOOL64+:} false; then : 9271 $as_echo_n "(cached) " >&6 9272else 9273 if test -n "$OTOOL64"; then 9274 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9275else 9276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9277for as_dir in $PATH 9278do 9279 IFS=$as_save_IFS 9280 test -z "$as_dir" && as_dir=. 9281 for ac_exec_ext in '' $ac_executable_extensions; do 9282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9283 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9285 break 2 9286 fi 9287done 9288 done 9289IFS=$as_save_IFS 9290 9291fi 9292fi 9293OTOOL64=$ac_cv_prog_OTOOL64 9294if test -n "$OTOOL64"; then 9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9296$as_echo "$OTOOL64" >&6; } 9297else 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9299$as_echo "no" >&6; } 9300fi 9301 9302 9303fi 9304if test -z "$ac_cv_prog_OTOOL64"; then 9305 ac_ct_OTOOL64=$OTOOL64 9306 # Extract the first word of "otool64", so it can be a program name with args. 9307set dummy otool64; ac_word=$2 9308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9309$as_echo_n "checking for $ac_word... " >&6; } 9310if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9311 $as_echo_n "(cached) " >&6 9312else 9313 if test -n "$ac_ct_OTOOL64"; then 9314 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9315else 9316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9317for as_dir in $PATH 9318do 9319 IFS=$as_save_IFS 9320 test -z "$as_dir" && as_dir=. 9321 for ac_exec_ext in '' $ac_executable_extensions; do 9322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9323 ac_cv_prog_ac_ct_OTOOL64="otool64" 9324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9325 break 2 9326 fi 9327done 9328 done 9329IFS=$as_save_IFS 9330 9331fi 9332fi 9333ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9334if test -n "$ac_ct_OTOOL64"; then 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9336$as_echo "$ac_ct_OTOOL64" >&6; } 9337else 9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9339$as_echo "no" >&6; } 9340fi 9341 9342 if test "x$ac_ct_OTOOL64" = x; then 9343 OTOOL64=":" 9344 else 9345 case $cross_compiling:$ac_tool_warned in 9346yes:) 9347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9349ac_tool_warned=yes ;; 9350esac 9351 OTOOL64=$ac_ct_OTOOL64 9352 fi 9353else 9354 OTOOL64="$ac_cv_prog_OTOOL64" 9355fi 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9384$as_echo_n "checking for -single_module linker flag... " >&6; } 9385if ${lt_cv_apple_cc_single_mod+:} false; then : 9386 $as_echo_n "(cached) " >&6 9387else 9388 lt_cv_apple_cc_single_mod=no 9389 if test -z "${LT_MULTI_MODULE}"; then 9390 # By default we will add the -single_module flag. You can override 9391 # by either setting the environment variable LT_MULTI_MODULE 9392 # non-empty at configure time, or by adding -multi_module to the 9393 # link flags. 9394 rm -rf libconftest.dylib* 9395 echo "int foo(void){return 1;}" > conftest.c 9396 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9397-dynamiclib -Wl,-single_module conftest.c" >&5 9398 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9399 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9400 _lt_result=$? 9401 # If there is a non-empty error log, and "single_module" 9402 # appears in it, assume the flag caused a linker warning 9403 if test -s conftest.err && $GREP single_module conftest.err; then 9404 cat conftest.err >&5 9405 # Otherwise, if the output was created with a 0 exit code from 9406 # the compiler, it worked. 9407 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 9408 lt_cv_apple_cc_single_mod=yes 9409 else 9410 cat conftest.err >&5 9411 fi 9412 rm -rf libconftest.dylib* 9413 rm -f conftest.* 9414 fi 9415fi 9416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9417$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9418 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9420$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9421if ${lt_cv_ld_exported_symbols_list+:} false; then : 9422 $as_echo_n "(cached) " >&6 9423else 9424 lt_cv_ld_exported_symbols_list=no 9425 save_LDFLAGS=$LDFLAGS 9426 echo "_main" > conftest.sym 9427 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9429/* end confdefs.h. */ 9430 9431int 9432main () 9433{ 9434 9435 ; 9436 return 0; 9437} 9438_ACEOF 9439if ac_fn_c_try_link "$LINENO"; then : 9440 lt_cv_ld_exported_symbols_list=yes 9441else 9442 lt_cv_ld_exported_symbols_list=no 9443fi 9444rm -f core conftest.err conftest.$ac_objext \ 9445 conftest$ac_exeext conftest.$ac_ext 9446 LDFLAGS="$save_LDFLAGS" 9447 9448fi 9449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9450$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9451 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9453$as_echo_n "checking for -force_load linker flag... " >&6; } 9454if ${lt_cv_ld_force_load+:} false; then : 9455 $as_echo_n "(cached) " >&6 9456else 9457 lt_cv_ld_force_load=no 9458 cat > conftest.c << _LT_EOF 9459int forced_loaded() { return 2;} 9460_LT_EOF 9461 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9462 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9463 echo "$AR cru libconftest.a conftest.o" >&5 9464 $AR cru libconftest.a conftest.o 2>&5 9465 echo "$RANLIB libconftest.a" >&5 9466 $RANLIB libconftest.a 2>&5 9467 cat > conftest.c << _LT_EOF 9468int main() { return 0;} 9469_LT_EOF 9470 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9471 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9472 _lt_result=$? 9473 if test -s conftest.err && $GREP force_load conftest.err; then 9474 cat conftest.err >&5 9475 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 9476 lt_cv_ld_force_load=yes 9477 else 9478 cat conftest.err >&5 9479 fi 9480 rm -f conftest.err libconftest.a conftest conftest.c 9481 rm -rf conftest.dSYM 9482 9483fi 9484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9485$as_echo "$lt_cv_ld_force_load" >&6; } 9486 case $host_os in 9487 rhapsody* | darwin1.[012]) 9488 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 9489 darwin1.*) 9490 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9491 darwin*) # darwin 5.x on 9492 # if running on 10.5 or later, the deployment target defaults 9493 # to the OS version, if on x86, and 10.4, the deployment 9494 # target defaults to 10.4. Don't you love it? 9495 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9496 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9497 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9498 10.[012]*) 9499 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9500 10.*) 9501 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9502 esac 9503 ;; 9504 esac 9505 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9506 _lt_dar_single_mod='$single_module' 9507 fi 9508 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9509 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9510 else 9511 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9512 fi 9513 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9514 _lt_dsymutil='~$DSYMUTIL $lib || :' 9515 else 9516 _lt_dsymutil= 9517 fi 9518 ;; 9519 esac 9520 9521for ac_header in dlfcn.h 9522do : 9523 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9524" 9525if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9526 cat >>confdefs.h <<_ACEOF 9527#define HAVE_DLFCN_H 1 9528_ACEOF 9529 9530fi 9531 9532done 9533 9534 9535 9536 9537 9538 9539 9540# Set options 9541 9542 9543 9544 enable_dlopen=no 9545 9546 9547 enable_win32_dll=no 9548 9549 9550 # Check whether --enable-shared was given. 9551if test "${enable_shared+set}" = set; then : 9552 enableval=$enable_shared; p=${PACKAGE-default} 9553 case $enableval in 9554 yes) enable_shared=yes ;; 9555 no) enable_shared=no ;; 9556 *) 9557 enable_shared=no 9558 # Look at the argument we got. We use all the common list separators. 9559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9560 for pkg in $enableval; do 9561 IFS="$lt_save_ifs" 9562 if test "X$pkg" = "X$p"; then 9563 enable_shared=yes 9564 fi 9565 done 9566 IFS="$lt_save_ifs" 9567 ;; 9568 esac 9569else 9570 enable_shared=yes 9571fi 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 # Check whether --enable-static was given. 9582if test "${enable_static+set}" = set; then : 9583 enableval=$enable_static; p=${PACKAGE-default} 9584 case $enableval in 9585 yes) enable_static=yes ;; 9586 no) enable_static=no ;; 9587 *) 9588 enable_static=no 9589 # Look at the argument we got. We use all the common list separators. 9590 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9591 for pkg in $enableval; do 9592 IFS="$lt_save_ifs" 9593 if test "X$pkg" = "X$p"; then 9594 enable_static=yes 9595 fi 9596 done 9597 IFS="$lt_save_ifs" 9598 ;; 9599 esac 9600else 9601 enable_static=yes 9602fi 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613# Check whether --with-pic was given. 9614if test "${with_pic+set}" = set; then : 9615 withval=$with_pic; lt_p=${PACKAGE-default} 9616 case $withval in 9617 yes|no) pic_mode=$withval ;; 9618 *) 9619 pic_mode=default 9620 # Look at the argument we got. We use all the common list separators. 9621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9622 for lt_pkg in $withval; do 9623 IFS="$lt_save_ifs" 9624 if test "X$lt_pkg" = "X$lt_p"; then 9625 pic_mode=yes 9626 fi 9627 done 9628 IFS="$lt_save_ifs" 9629 ;; 9630 esac 9631else 9632 pic_mode=default 9633fi 9634 9635 9636test -z "$pic_mode" && pic_mode=default 9637 9638 9639 9640 9641 9642 9643 9644 # Check whether --enable-fast-install was given. 9645if test "${enable_fast_install+set}" = set; then : 9646 enableval=$enable_fast_install; p=${PACKAGE-default} 9647 case $enableval in 9648 yes) enable_fast_install=yes ;; 9649 no) enable_fast_install=no ;; 9650 *) 9651 enable_fast_install=no 9652 # Look at the argument we got. We use all the common list separators. 9653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9654 for pkg in $enableval; do 9655 IFS="$lt_save_ifs" 9656 if test "X$pkg" = "X$p"; then 9657 enable_fast_install=yes 9658 fi 9659 done 9660 IFS="$lt_save_ifs" 9661 ;; 9662 esac 9663else 9664 enable_fast_install=yes 9665fi 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677# This can be used to rebuild libtool when needed 9678LIBTOOL_DEPS="$ltmain" 9679 9680# Always use our own libtool. 9681LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712test -z "$LN_S" && LN_S="ln -s" 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727if test -n "${ZSH_VERSION+set}" ; then 9728 setopt NO_GLOB_SUBST 9729fi 9730 9731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9732$as_echo_n "checking for objdir... " >&6; } 9733if ${lt_cv_objdir+:} false; then : 9734 $as_echo_n "(cached) " >&6 9735else 9736 rm -f .libs 2>/dev/null 9737mkdir .libs 2>/dev/null 9738if test -d .libs; then 9739 lt_cv_objdir=.libs 9740else 9741 # MS-DOS does not allow filenames that begin with a dot. 9742 lt_cv_objdir=_libs 9743fi 9744rmdir .libs 2>/dev/null 9745fi 9746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9747$as_echo "$lt_cv_objdir" >&6; } 9748objdir=$lt_cv_objdir 9749 9750 9751 9752 9753 9754cat >>confdefs.h <<_ACEOF 9755#define LT_OBJDIR "$lt_cv_objdir/" 9756_ACEOF 9757 9758 9759 9760 9761case $host_os in 9762aix3*) 9763 # AIX sometimes has problems with the GCC collect2 program. For some 9764 # reason, if we set the COLLECT_NAMES environment variable, the problems 9765 # vanish in a puff of smoke. 9766 if test "X${COLLECT_NAMES+set}" != Xset; then 9767 COLLECT_NAMES= 9768 export COLLECT_NAMES 9769 fi 9770 ;; 9771esac 9772 9773# Global variables: 9774ofile=libtool 9775can_build_shared=yes 9776 9777# All known linkers require a `.a' archive for static linking (except MSVC, 9778# which needs '.lib'). 9779libext=a 9780 9781with_gnu_ld="$lt_cv_prog_gnu_ld" 9782 9783old_CC="$CC" 9784old_CFLAGS="$CFLAGS" 9785 9786# Set sane defaults for various variables 9787test -z "$CC" && CC=cc 9788test -z "$LTCC" && LTCC=$CC 9789test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9790test -z "$LD" && LD=ld 9791test -z "$ac_objext" && ac_objext=o 9792 9793for cc_temp in $compiler""; do 9794 case $cc_temp in 9795 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9796 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9797 \-*) ;; 9798 *) break;; 9799 esac 9800done 9801cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9802 9803 9804# Only perform the check for file, if the check method requires it 9805test -z "$MAGIC_CMD" && MAGIC_CMD=file 9806case $deplibs_check_method in 9807file_magic*) 9808 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9810$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9811if ${lt_cv_path_MAGIC_CMD+:} false; then : 9812 $as_echo_n "(cached) " >&6 9813else 9814 case $MAGIC_CMD in 9815[\\/*] | ?:[\\/]*) 9816 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9817 ;; 9818*) 9819 lt_save_MAGIC_CMD="$MAGIC_CMD" 9820 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9821 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9822 for ac_dir in $ac_dummy; do 9823 IFS="$lt_save_ifs" 9824 test -z "$ac_dir" && ac_dir=. 9825 if test -f $ac_dir/${ac_tool_prefix}file; then 9826 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9827 if test -n "$file_magic_test_file"; then 9828 case $deplibs_check_method in 9829 "file_magic "*) 9830 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9831 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9832 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9833 $EGREP "$file_magic_regex" > /dev/null; then 9834 : 9835 else 9836 cat <<_LT_EOF 1>&2 9837 9838*** Warning: the command libtool uses to detect shared libraries, 9839*** $file_magic_cmd, produces output that libtool cannot recognize. 9840*** The result is that libtool may fail to recognize shared libraries 9841*** as such. This will affect the creation of libtool libraries that 9842*** depend on shared libraries, but programs linked with such libtool 9843*** libraries will work regardless of this problem. Nevertheless, you 9844*** may want to report the problem to your system manager and/or to 9845*** bug-libtool@gnu.org 9846 9847_LT_EOF 9848 fi ;; 9849 esac 9850 fi 9851 break 9852 fi 9853 done 9854 IFS="$lt_save_ifs" 9855 MAGIC_CMD="$lt_save_MAGIC_CMD" 9856 ;; 9857esac 9858fi 9859 9860MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9861if test -n "$MAGIC_CMD"; then 9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9863$as_echo "$MAGIC_CMD" >&6; } 9864else 9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9866$as_echo "no" >&6; } 9867fi 9868 9869 9870 9871 9872 9873if test -z "$lt_cv_path_MAGIC_CMD"; then 9874 if test -n "$ac_tool_prefix"; then 9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9876$as_echo_n "checking for file... " >&6; } 9877if ${lt_cv_path_MAGIC_CMD+:} false; then : 9878 $as_echo_n "(cached) " >&6 9879else 9880 case $MAGIC_CMD in 9881[\\/*] | ?:[\\/]*) 9882 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9883 ;; 9884*) 9885 lt_save_MAGIC_CMD="$MAGIC_CMD" 9886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9887 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9888 for ac_dir in $ac_dummy; do 9889 IFS="$lt_save_ifs" 9890 test -z "$ac_dir" && ac_dir=. 9891 if test -f $ac_dir/file; then 9892 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9893 if test -n "$file_magic_test_file"; then 9894 case $deplibs_check_method in 9895 "file_magic "*) 9896 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9898 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9899 $EGREP "$file_magic_regex" > /dev/null; then 9900 : 9901 else 9902 cat <<_LT_EOF 1>&2 9903 9904*** Warning: the command libtool uses to detect shared libraries, 9905*** $file_magic_cmd, produces output that libtool cannot recognize. 9906*** The result is that libtool may fail to recognize shared libraries 9907*** as such. This will affect the creation of libtool libraries that 9908*** depend on shared libraries, but programs linked with such libtool 9909*** libraries will work regardless of this problem. Nevertheless, you 9910*** may want to report the problem to your system manager and/or to 9911*** bug-libtool@gnu.org 9912 9913_LT_EOF 9914 fi ;; 9915 esac 9916 fi 9917 break 9918 fi 9919 done 9920 IFS="$lt_save_ifs" 9921 MAGIC_CMD="$lt_save_MAGIC_CMD" 9922 ;; 9923esac 9924fi 9925 9926MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9927if test -n "$MAGIC_CMD"; then 9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9929$as_echo "$MAGIC_CMD" >&6; } 9930else 9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9932$as_echo "no" >&6; } 9933fi 9934 9935 9936 else 9937 MAGIC_CMD=: 9938 fi 9939fi 9940 9941 fi 9942 ;; 9943esac 9944 9945# Use C for the default configuration in the libtool script 9946 9947lt_save_CC="$CC" 9948ac_ext=c 9949ac_cpp='$CPP $CPPFLAGS' 9950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9952ac_compiler_gnu=$ac_cv_c_compiler_gnu 9953 9954 9955# Source file extension for C test sources. 9956ac_ext=c 9957 9958# Object file extension for compiled C test sources. 9959objext=o 9960objext=$objext 9961 9962# Code to be used in simple compile tests 9963lt_simple_compile_test_code="int some_variable = 0;" 9964 9965# Code to be used in simple link tests 9966lt_simple_link_test_code='int main(){return(0);}' 9967 9968 9969 9970 9971 9972 9973 9974# If no C compiler was specified, use CC. 9975LTCC=${LTCC-"$CC"} 9976 9977# If no C compiler flags were specified, use CFLAGS. 9978LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9979 9980# Allow CC to be a program name with arguments. 9981compiler=$CC 9982 9983# Save the default compiler, since it gets overwritten when the other 9984# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9985compiler_DEFAULT=$CC 9986 9987# save warnings/boilerplate of simple test code 9988ac_outfile=conftest.$ac_objext 9989echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9990eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9991_lt_compiler_boilerplate=`cat conftest.err` 9992$RM conftest* 9993 9994ac_outfile=conftest.$ac_objext 9995echo "$lt_simple_link_test_code" >conftest.$ac_ext 9996eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9997_lt_linker_boilerplate=`cat conftest.err` 9998$RM -r conftest* 9999 10000 10001if test -n "$compiler"; then 10002 10003lt_prog_compiler_no_builtin_flag= 10004 10005if test "$GCC" = yes; then 10006 case $cc_basename in 10007 nvcc*) 10008 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10009 *) 10010 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10011 esac 10012 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10014$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10015if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10016 $as_echo_n "(cached) " >&6 10017else 10018 lt_cv_prog_compiler_rtti_exceptions=no 10019 ac_outfile=conftest.$ac_objext 10020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10021 lt_compiler_flag="-fno-rtti -fno-exceptions" 10022 # Insert the option either (1) after the last *FLAGS variable, or 10023 # (2) before a word containing "conftest.", or (3) at the end. 10024 # Note that $ac_compile itself does not contain backslashes and begins 10025 # with a dollar sign (not a hyphen), so the echo should work correctly. 10026 # The option is referenced via a variable to avoid confusing sed. 10027 lt_compile=`echo "$ac_compile" | $SED \ 10028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10030 -e 's:$: $lt_compiler_flag:'` 10031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10032 (eval "$lt_compile" 2>conftest.err) 10033 ac_status=$? 10034 cat conftest.err >&5 10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10036 if (exit $ac_status) && test -s "$ac_outfile"; then 10037 # The compiler can only warn and ignore the option if not recognized 10038 # So say no if there are warnings other than the usual output. 10039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10041 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10042 lt_cv_prog_compiler_rtti_exceptions=yes 10043 fi 10044 fi 10045 $RM conftest* 10046 10047fi 10048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10049$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10050 10051if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10052 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10053else 10054 : 10055fi 10056 10057fi 10058 10059 10060 10061 10062 10063 10064 lt_prog_compiler_wl= 10065lt_prog_compiler_pic= 10066lt_prog_compiler_static= 10067 10068 10069 if test "$GCC" = yes; then 10070 lt_prog_compiler_wl='-Wl,' 10071 lt_prog_compiler_static='-static' 10072 10073 case $host_os in 10074 aix*) 10075 # All AIX code is PIC. 10076 if test "$host_cpu" = ia64; then 10077 # AIX 5 now supports IA64 processor 10078 lt_prog_compiler_static='-Bstatic' 10079 fi 10080 ;; 10081 10082 amigaos*) 10083 case $host_cpu in 10084 powerpc) 10085 # see comment about AmigaOS4 .so support 10086 lt_prog_compiler_pic='-fPIC' 10087 ;; 10088 m68k) 10089 # FIXME: we need at least 68020 code to build shared libraries, but 10090 # adding the `-m68020' flag to GCC prevents building anything better, 10091 # like `-m68040'. 10092 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10093 ;; 10094 esac 10095 ;; 10096 10097 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10098 # PIC is the default for these OSes. 10099 ;; 10100 10101 mingw* | cygwin* | pw32* | os2* | cegcc*) 10102 # This hack is so that the source file can tell whether it is being 10103 # built for inclusion in a dll (and should export symbols for example). 10104 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10105 # (--disable-auto-import) libraries 10106 lt_prog_compiler_pic='-DDLL_EXPORT' 10107 ;; 10108 10109 darwin* | rhapsody*) 10110 # PIC is the default on this platform 10111 # Common symbols not allowed in MH_DYLIB files 10112 lt_prog_compiler_pic='-fno-common' 10113 ;; 10114 10115 haiku*) 10116 # PIC is the default for Haiku. 10117 # The "-static" flag exists, but is broken. 10118 lt_prog_compiler_static= 10119 ;; 10120 10121 hpux*) 10122 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10123 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10124 # sets the default TLS model and affects inlining. 10125 case $host_cpu in 10126 hppa*64*) 10127 # +Z the default 10128 ;; 10129 *) 10130 lt_prog_compiler_pic='-fPIC' 10131 ;; 10132 esac 10133 ;; 10134 10135 interix[3-9]*) 10136 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10137 # Instead, we relocate shared libraries at runtime. 10138 ;; 10139 10140 msdosdjgpp*) 10141 # Just because we use GCC doesn't mean we suddenly get shared libraries 10142 # on systems that don't support them. 10143 lt_prog_compiler_can_build_shared=no 10144 enable_shared=no 10145 ;; 10146 10147 *nto* | *qnx*) 10148 # QNX uses GNU C++, but need to define -shared option too, otherwise 10149 # it will coredump. 10150 lt_prog_compiler_pic='-fPIC -shared' 10151 ;; 10152 10153 sysv4*MP*) 10154 if test -d /usr/nec; then 10155 lt_prog_compiler_pic=-Kconform_pic 10156 fi 10157 ;; 10158 10159 *) 10160 lt_prog_compiler_pic='-fPIC' 10161 ;; 10162 esac 10163 10164 case $cc_basename in 10165 nvcc*) # Cuda Compiler Driver 2.2 10166 lt_prog_compiler_wl='-Xlinker ' 10167 if test -n "$lt_prog_compiler_pic"; then 10168 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10169 fi 10170 ;; 10171 esac 10172 else 10173 # PORTME Check for flag to pass linker flags through the system compiler. 10174 case $host_os in 10175 aix*) 10176 lt_prog_compiler_wl='-Wl,' 10177 if test "$host_cpu" = ia64; then 10178 # AIX 5 now supports IA64 processor 10179 lt_prog_compiler_static='-Bstatic' 10180 else 10181 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10182 fi 10183 ;; 10184 10185 mingw* | cygwin* | pw32* | os2* | cegcc*) 10186 # This hack is so that the source file can tell whether it is being 10187 # built for inclusion in a dll (and should export symbols for example). 10188 lt_prog_compiler_pic='-DDLL_EXPORT' 10189 ;; 10190 10191 hpux9* | hpux10* | hpux11*) 10192 lt_prog_compiler_wl='-Wl,' 10193 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10194 # not for PA HP-UX. 10195 case $host_cpu in 10196 hppa*64*|ia64*) 10197 # +Z the default 10198 ;; 10199 *) 10200 lt_prog_compiler_pic='+Z' 10201 ;; 10202 esac 10203 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10204 lt_prog_compiler_static='${wl}-a ${wl}archive' 10205 ;; 10206 10207 irix5* | irix6* | nonstopux*) 10208 lt_prog_compiler_wl='-Wl,' 10209 # PIC (with -KPIC) is the default. 10210 lt_prog_compiler_static='-non_shared' 10211 ;; 10212 10213 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10214 case $cc_basename in 10215 # old Intel for x86_64 which still supported -KPIC. 10216 ecc*) 10217 lt_prog_compiler_wl='-Wl,' 10218 lt_prog_compiler_pic='-KPIC' 10219 lt_prog_compiler_static='-static' 10220 ;; 10221 # icc used to be incompatible with GCC. 10222 # ICC 10 doesn't accept -KPIC any more. 10223 icc* | ifort*) 10224 lt_prog_compiler_wl='-Wl,' 10225 lt_prog_compiler_pic='-fPIC' 10226 lt_prog_compiler_static='-static' 10227 ;; 10228 # Lahey Fortran 8.1. 10229 lf95*) 10230 lt_prog_compiler_wl='-Wl,' 10231 lt_prog_compiler_pic='--shared' 10232 lt_prog_compiler_static='--static' 10233 ;; 10234 nagfor*) 10235 # NAG Fortran compiler 10236 lt_prog_compiler_wl='-Wl,-Wl,,' 10237 lt_prog_compiler_pic='-PIC' 10238 lt_prog_compiler_static='-Bstatic' 10239 ;; 10240 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10241 # Portland Group compilers (*not* the Pentium gcc compiler, 10242 # which looks to be a dead project) 10243 lt_prog_compiler_wl='-Wl,' 10244 lt_prog_compiler_pic='-fpic' 10245 lt_prog_compiler_static='-Bstatic' 10246 ;; 10247 ccc*) 10248 lt_prog_compiler_wl='-Wl,' 10249 # All Alpha code is PIC. 10250 lt_prog_compiler_static='-non_shared' 10251 ;; 10252 xl* | bgxl* | bgf* | mpixl*) 10253 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10254 lt_prog_compiler_wl='-Wl,' 10255 lt_prog_compiler_pic='-qpic' 10256 lt_prog_compiler_static='-qstaticlink' 10257 ;; 10258 *) 10259 case `$CC -V 2>&1 | sed 5q` in 10260 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10261 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10262 lt_prog_compiler_pic='-KPIC' 10263 lt_prog_compiler_static='-Bstatic' 10264 lt_prog_compiler_wl='' 10265 ;; 10266 *Sun\ F* | *Sun*Fortran*) 10267 lt_prog_compiler_pic='-KPIC' 10268 lt_prog_compiler_static='-Bstatic' 10269 lt_prog_compiler_wl='-Qoption ld ' 10270 ;; 10271 *Sun\ C*) 10272 # Sun C 5.9 10273 lt_prog_compiler_pic='-KPIC' 10274 lt_prog_compiler_static='-Bstatic' 10275 lt_prog_compiler_wl='-Wl,' 10276 ;; 10277 *Intel*\ [CF]*Compiler*) 10278 lt_prog_compiler_wl='-Wl,' 10279 lt_prog_compiler_pic='-fPIC' 10280 lt_prog_compiler_static='-static' 10281 ;; 10282 *Portland\ Group*) 10283 lt_prog_compiler_wl='-Wl,' 10284 lt_prog_compiler_pic='-fpic' 10285 lt_prog_compiler_static='-Bstatic' 10286 ;; 10287 esac 10288 ;; 10289 esac 10290 ;; 10291 10292 newsos6) 10293 lt_prog_compiler_pic='-KPIC' 10294 lt_prog_compiler_static='-Bstatic' 10295 ;; 10296 10297 *nto* | *qnx*) 10298 # QNX uses GNU C++, but need to define -shared option too, otherwise 10299 # it will coredump. 10300 lt_prog_compiler_pic='-fPIC -shared' 10301 ;; 10302 10303 osf3* | osf4* | osf5*) 10304 lt_prog_compiler_wl='-Wl,' 10305 # All OSF/1 code is PIC. 10306 lt_prog_compiler_static='-non_shared' 10307 ;; 10308 10309 rdos*) 10310 lt_prog_compiler_static='-non_shared' 10311 ;; 10312 10313 solaris*) 10314 lt_prog_compiler_pic='-KPIC' 10315 lt_prog_compiler_static='-Bstatic' 10316 case $cc_basename in 10317 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10318 lt_prog_compiler_wl='-Qoption ld ';; 10319 *) 10320 lt_prog_compiler_wl='-Wl,';; 10321 esac 10322 ;; 10323 10324 sunos4*) 10325 lt_prog_compiler_wl='-Qoption ld ' 10326 lt_prog_compiler_pic='-PIC' 10327 lt_prog_compiler_static='-Bstatic' 10328 ;; 10329 10330 sysv4 | sysv4.2uw2* | sysv4.3*) 10331 lt_prog_compiler_wl='-Wl,' 10332 lt_prog_compiler_pic='-KPIC' 10333 lt_prog_compiler_static='-Bstatic' 10334 ;; 10335 10336 sysv4*MP*) 10337 if test -d /usr/nec ;then 10338 lt_prog_compiler_pic='-Kconform_pic' 10339 lt_prog_compiler_static='-Bstatic' 10340 fi 10341 ;; 10342 10343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10344 lt_prog_compiler_wl='-Wl,' 10345 lt_prog_compiler_pic='-KPIC' 10346 lt_prog_compiler_static='-Bstatic' 10347 ;; 10348 10349 unicos*) 10350 lt_prog_compiler_wl='-Wl,' 10351 lt_prog_compiler_can_build_shared=no 10352 ;; 10353 10354 uts4*) 10355 lt_prog_compiler_pic='-pic' 10356 lt_prog_compiler_static='-Bstatic' 10357 ;; 10358 10359 *) 10360 lt_prog_compiler_can_build_shared=no 10361 ;; 10362 esac 10363 fi 10364 10365case $host_os in 10366 # For platforms which do not support PIC, -DPIC is meaningless: 10367 *djgpp*) 10368 lt_prog_compiler_pic= 10369 ;; 10370 *) 10371 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10372 ;; 10373esac 10374 10375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10376$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10377if ${lt_cv_prog_compiler_pic+:} false; then : 10378 $as_echo_n "(cached) " >&6 10379else 10380 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10381fi 10382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10383$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10384lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10385 10386# 10387# Check to make sure the PIC flag actually works. 10388# 10389if test -n "$lt_prog_compiler_pic"; then 10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10391$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10392if ${lt_cv_prog_compiler_pic_works+:} false; then : 10393 $as_echo_n "(cached) " >&6 10394else 10395 lt_cv_prog_compiler_pic_works=no 10396 ac_outfile=conftest.$ac_objext 10397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10398 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10399 # Insert the option either (1) after the last *FLAGS variable, or 10400 # (2) before a word containing "conftest.", or (3) at the end. 10401 # Note that $ac_compile itself does not contain backslashes and begins 10402 # with a dollar sign (not a hyphen), so the echo should work correctly. 10403 # The option is referenced via a variable to avoid confusing sed. 10404 lt_compile=`echo "$ac_compile" | $SED \ 10405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10407 -e 's:$: $lt_compiler_flag:'` 10408 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10409 (eval "$lt_compile" 2>conftest.err) 10410 ac_status=$? 10411 cat conftest.err >&5 10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10413 if (exit $ac_status) && test -s "$ac_outfile"; then 10414 # The compiler can only warn and ignore the option if not recognized 10415 # So say no if there are warnings other than the usual output. 10416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10419 lt_cv_prog_compiler_pic_works=yes 10420 fi 10421 fi 10422 $RM conftest* 10423 10424fi 10425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10426$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10427 10428if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10429 case $lt_prog_compiler_pic in 10430 "" | " "*) ;; 10431 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10432 esac 10433else 10434 lt_prog_compiler_pic= 10435 lt_prog_compiler_can_build_shared=no 10436fi 10437 10438fi 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450# 10451# Check to make sure the static flag actually works. 10452# 10453wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10455$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10456if ${lt_cv_prog_compiler_static_works+:} false; then : 10457 $as_echo_n "(cached) " >&6 10458else 10459 lt_cv_prog_compiler_static_works=no 10460 save_LDFLAGS="$LDFLAGS" 10461 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10462 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10463 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10464 # The linker can only warn and ignore the option if not recognized 10465 # So say no if there are warnings 10466 if test -s conftest.err; then 10467 # Append any errors to the config.log. 10468 cat conftest.err 1>&5 10469 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10471 if diff conftest.exp conftest.er2 >/dev/null; then 10472 lt_cv_prog_compiler_static_works=yes 10473 fi 10474 else 10475 lt_cv_prog_compiler_static_works=yes 10476 fi 10477 fi 10478 $RM -r conftest* 10479 LDFLAGS="$save_LDFLAGS" 10480 10481fi 10482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10483$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10484 10485if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10486 : 10487else 10488 lt_prog_compiler_static= 10489fi 10490 10491 10492 10493 10494 10495 10496 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10498$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10499if ${lt_cv_prog_compiler_c_o+:} false; then : 10500 $as_echo_n "(cached) " >&6 10501else 10502 lt_cv_prog_compiler_c_o=no 10503 $RM -r conftest 2>/dev/null 10504 mkdir conftest 10505 cd conftest 10506 mkdir out 10507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10508 10509 lt_compiler_flag="-o out/conftest2.$ac_objext" 10510 # Insert the option either (1) after the last *FLAGS variable, or 10511 # (2) before a word containing "conftest.", or (3) at the end. 10512 # Note that $ac_compile itself does not contain backslashes and begins 10513 # with a dollar sign (not a hyphen), so the echo should work correctly. 10514 lt_compile=`echo "$ac_compile" | $SED \ 10515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10517 -e 's:$: $lt_compiler_flag:'` 10518 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10519 (eval "$lt_compile" 2>out/conftest.err) 10520 ac_status=$? 10521 cat out/conftest.err >&5 10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10523 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10524 then 10525 # The compiler can only warn and ignore the option if not recognized 10526 # So say no if there are warnings 10527 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10528 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10529 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10530 lt_cv_prog_compiler_c_o=yes 10531 fi 10532 fi 10533 chmod u+w . 2>&5 10534 $RM conftest* 10535 # SGI C++ compiler will create directory out/ii_files/ for 10536 # template instantiation 10537 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10538 $RM out/* && rmdir out 10539 cd .. 10540 $RM -r conftest 10541 $RM conftest* 10542 10543fi 10544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10545$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10546 10547 10548 10549 10550 10551 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10553$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10554if ${lt_cv_prog_compiler_c_o+:} false; then : 10555 $as_echo_n "(cached) " >&6 10556else 10557 lt_cv_prog_compiler_c_o=no 10558 $RM -r conftest 2>/dev/null 10559 mkdir conftest 10560 cd conftest 10561 mkdir out 10562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10563 10564 lt_compiler_flag="-o out/conftest2.$ac_objext" 10565 # Insert the option either (1) after the last *FLAGS variable, or 10566 # (2) before a word containing "conftest.", or (3) at the end. 10567 # Note that $ac_compile itself does not contain backslashes and begins 10568 # with a dollar sign (not a hyphen), so the echo should work correctly. 10569 lt_compile=`echo "$ac_compile" | $SED \ 10570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10572 -e 's:$: $lt_compiler_flag:'` 10573 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10574 (eval "$lt_compile" 2>out/conftest.err) 10575 ac_status=$? 10576 cat out/conftest.err >&5 10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10578 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10579 then 10580 # The compiler can only warn and ignore the option if not recognized 10581 # So say no if there are warnings 10582 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10583 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10584 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10585 lt_cv_prog_compiler_c_o=yes 10586 fi 10587 fi 10588 chmod u+w . 2>&5 10589 $RM conftest* 10590 # SGI C++ compiler will create directory out/ii_files/ for 10591 # template instantiation 10592 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10593 $RM out/* && rmdir out 10594 cd .. 10595 $RM -r conftest 10596 $RM conftest* 10597 10598fi 10599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10600$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10601 10602 10603 10604 10605hard_links="nottested" 10606if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10607 # do not overwrite the value of need_locks provided by the user 10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10609$as_echo_n "checking if we can lock with hard links... " >&6; } 10610 hard_links=yes 10611 $RM conftest* 10612 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10613 touch conftest.a 10614 ln conftest.a conftest.b 2>&5 || hard_links=no 10615 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10617$as_echo "$hard_links" >&6; } 10618 if test "$hard_links" = no; then 10619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10620$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10621 need_locks=warn 10622 fi 10623else 10624 need_locks=no 10625fi 10626 10627 10628 10629 10630 10631 10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10633$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10634 10635 runpath_var= 10636 allow_undefined_flag= 10637 always_export_symbols=no 10638 archive_cmds= 10639 archive_expsym_cmds= 10640 compiler_needs_object=no 10641 enable_shared_with_static_runtimes=no 10642 export_dynamic_flag_spec= 10643 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10644 hardcode_automatic=no 10645 hardcode_direct=no 10646 hardcode_direct_absolute=no 10647 hardcode_libdir_flag_spec= 10648 hardcode_libdir_separator= 10649 hardcode_minus_L=no 10650 hardcode_shlibpath_var=unsupported 10651 inherit_rpath=no 10652 link_all_deplibs=unknown 10653 module_cmds= 10654 module_expsym_cmds= 10655 old_archive_from_new_cmds= 10656 old_archive_from_expsyms_cmds= 10657 thread_safe_flag_spec= 10658 whole_archive_flag_spec= 10659 # include_expsyms should be a list of space-separated symbols to be *always* 10660 # included in the symbol list 10661 include_expsyms= 10662 # exclude_expsyms can be an extended regexp of symbols to exclude 10663 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10664 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10665 # as well as any symbol that contains `d'. 10666 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10667 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10668 # platforms (ab)use it in PIC code, but their linkers get confused if 10669 # the symbol is explicitly referenced. Since portable code cannot 10670 # rely on this symbol name, it's probably fine to never include it in 10671 # preloaded symbol tables. 10672 # Exclude shared library initialization/finalization symbols. 10673 extract_expsyms_cmds= 10674 10675 case $host_os in 10676 cygwin* | mingw* | pw32* | cegcc*) 10677 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10678 # When not using gcc, we currently assume that we are using 10679 # Microsoft Visual C++. 10680 if test "$GCC" != yes; then 10681 with_gnu_ld=no 10682 fi 10683 ;; 10684 interix*) 10685 # we just hope/assume this is gcc and not c89 (= MSVC++) 10686 with_gnu_ld=yes 10687 ;; 10688 openbsd*) 10689 with_gnu_ld=no 10690 ;; 10691 esac 10692 10693 ld_shlibs=yes 10694 10695 # On some targets, GNU ld is compatible enough with the native linker 10696 # that we're better off using the native interface for both. 10697 lt_use_gnu_ld_interface=no 10698 if test "$with_gnu_ld" = yes; then 10699 case $host_os in 10700 aix*) 10701 # The AIX port of GNU ld has always aspired to compatibility 10702 # with the native linker. However, as the warning in the GNU ld 10703 # block says, versions before 2.19.5* couldn't really create working 10704 # shared libraries, regardless of the interface used. 10705 case `$LD -v 2>&1` in 10706 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10707 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10708 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10709 *) 10710 lt_use_gnu_ld_interface=yes 10711 ;; 10712 esac 10713 ;; 10714 *) 10715 lt_use_gnu_ld_interface=yes 10716 ;; 10717 esac 10718 fi 10719 10720 if test "$lt_use_gnu_ld_interface" = yes; then 10721 # If archive_cmds runs LD, not CC, wlarc should be empty 10722 wlarc='${wl}' 10723 10724 # Set some defaults for GNU ld with shared library support. These 10725 # are reset later if shared libraries are not supported. Putting them 10726 # here allows them to be overridden if necessary. 10727 runpath_var=LD_RUN_PATH 10728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10729 export_dynamic_flag_spec='${wl}--export-dynamic' 10730 # ancient GNU ld didn't support --whole-archive et. al. 10731 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10732 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10733 else 10734 whole_archive_flag_spec= 10735 fi 10736 supports_anon_versioning=no 10737 case `$LD -v 2>&1` in 10738 *GNU\ gold*) supports_anon_versioning=yes ;; 10739 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10740 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10741 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10742 *\ 2.11.*) ;; # other 2.11 versions 10743 *) supports_anon_versioning=yes ;; 10744 esac 10745 10746 # See if GNU ld supports shared libraries. 10747 case $host_os in 10748 aix[3-9]*) 10749 # On AIX/PPC, the GNU linker is very broken 10750 if test "$host_cpu" != ia64; then 10751 ld_shlibs=no 10752 cat <<_LT_EOF 1>&2 10753 10754*** Warning: the GNU linker, at least up to release 2.19, is reported 10755*** to be unable to reliably create shared libraries on AIX. 10756*** Therefore, libtool is disabling shared libraries support. If you 10757*** really care for shared libraries, you may want to install binutils 10758*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10759*** You will then need to restart the configuration process. 10760 10761_LT_EOF 10762 fi 10763 ;; 10764 10765 amigaos*) 10766 case $host_cpu in 10767 powerpc) 10768 # see comment about AmigaOS4 .so support 10769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10770 archive_expsym_cmds='' 10771 ;; 10772 m68k) 10773 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)' 10774 hardcode_libdir_flag_spec='-L$libdir' 10775 hardcode_minus_L=yes 10776 ;; 10777 esac 10778 ;; 10779 10780 beos*) 10781 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10782 allow_undefined_flag=unsupported 10783 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10784 # support --undefined. This deserves some investigation. FIXME 10785 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10786 else 10787 ld_shlibs=no 10788 fi 10789 ;; 10790 10791 cygwin* | mingw* | pw32* | cegcc*) 10792 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10793 # as there is no search path for DLLs. 10794 hardcode_libdir_flag_spec='-L$libdir' 10795 export_dynamic_flag_spec='${wl}--export-all-symbols' 10796 allow_undefined_flag=unsupported 10797 always_export_symbols=no 10798 enable_shared_with_static_runtimes=yes 10799 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' 10800 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10801 10802 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10804 # If the export-symbols file already is a .def file (1st line 10805 # is EXPORTS), use it as is; otherwise, prepend... 10806 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10807 cp $export_symbols $output_objdir/$soname.def; 10808 else 10809 echo EXPORTS > $output_objdir/$soname.def; 10810 cat $export_symbols >> $output_objdir/$soname.def; 10811 fi~ 10812 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10813 else 10814 ld_shlibs=no 10815 fi 10816 ;; 10817 10818 haiku*) 10819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10820 link_all_deplibs=yes 10821 ;; 10822 10823 interix[3-9]*) 10824 hardcode_direct=no 10825 hardcode_shlibpath_var=no 10826 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10827 export_dynamic_flag_spec='${wl}-E' 10828 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10829 # Instead, shared libraries are loaded at an image base (0x10000000 by 10830 # default) and relocated if they conflict, which is a slow very memory 10831 # consuming and fragmenting process. To avoid this, we pick a random, 10832 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10833 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10834 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10835 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' 10836 ;; 10837 10838 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10839 tmp_diet=no 10840 if test "$host_os" = linux-dietlibc; then 10841 case $cc_basename in 10842 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10843 esac 10844 fi 10845 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10846 && test "$tmp_diet" = no 10847 then 10848 tmp_addflag=' $pic_flag' 10849 tmp_sharedflag='-shared' 10850 case $cc_basename,$host_cpu in 10851 pgcc*) # Portland Group C compiler 10852 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' 10853 tmp_addflag=' $pic_flag' 10854 ;; 10855 pgf77* | pgf90* | pgf95* | pgfortran*) 10856 # Portland Group f77 and f90 compilers 10857 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' 10858 tmp_addflag=' $pic_flag -Mnomain' ;; 10859 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10860 tmp_addflag=' -i_dynamic' ;; 10861 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10862 tmp_addflag=' -i_dynamic -nofor_main' ;; 10863 ifc* | ifort*) # Intel Fortran compiler 10864 tmp_addflag=' -nofor_main' ;; 10865 lf95*) # Lahey Fortran 8.1 10866 whole_archive_flag_spec= 10867 tmp_sharedflag='--shared' ;; 10868 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10869 tmp_sharedflag='-qmkshrobj' 10870 tmp_addflag= ;; 10871 nvcc*) # Cuda Compiler Driver 2.2 10872 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' 10873 compiler_needs_object=yes 10874 ;; 10875 esac 10876 case `$CC -V 2>&1 | sed 5q` in 10877 *Sun\ C*) # Sun C 5.9 10878 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' 10879 compiler_needs_object=yes 10880 tmp_sharedflag='-G' ;; 10881 *Sun\ F*) # Sun Fortran 8.3 10882 tmp_sharedflag='-G' ;; 10883 esac 10884 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10885 10886 if test "x$supports_anon_versioning" = xyes; then 10887 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10888 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10889 echo "local: *; };" >> $output_objdir/$libname.ver~ 10890 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10891 fi 10892 10893 case $cc_basename in 10894 xlf* | bgf* | bgxlf* | mpixlf*) 10895 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10896 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10898 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10899 if test "x$supports_anon_versioning" = xyes; then 10900 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10901 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10902 echo "local: *; };" >> $output_objdir/$libname.ver~ 10903 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10904 fi 10905 ;; 10906 esac 10907 else 10908 ld_shlibs=no 10909 fi 10910 ;; 10911 10912 netbsd*) 10913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10914 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10915 wlarc= 10916 else 10917 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10918 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10919 fi 10920 ;; 10921 10922 solaris*) 10923 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10924 ld_shlibs=no 10925 cat <<_LT_EOF 1>&2 10926 10927*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10928*** create shared libraries on Solaris systems. Therefore, libtool 10929*** is disabling shared libraries support. We urge you to upgrade GNU 10930*** binutils to release 2.9.1 or newer. Another option is to modify 10931*** your PATH or compiler configuration so that the native linker is 10932*** used, and then restart. 10933 10934_LT_EOF 10935 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10936 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10937 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10938 else 10939 ld_shlibs=no 10940 fi 10941 ;; 10942 10943 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10944 case `$LD -v 2>&1` in 10945 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10946 ld_shlibs=no 10947 cat <<_LT_EOF 1>&2 10948 10949*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10950*** reliably create shared libraries on SCO systems. Therefore, libtool 10951*** is disabling shared libraries support. We urge you to upgrade GNU 10952*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10953*** your PATH or compiler configuration so that the native linker is 10954*** used, and then restart. 10955 10956_LT_EOF 10957 ;; 10958 *) 10959 # For security reasons, it is highly recommended that you always 10960 # use absolute paths for naming shared libraries, and exclude the 10961 # DT_RUNPATH tag from executables and libraries. But doing so 10962 # requires that you compile everything twice, which is a pain. 10963 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10966 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10967 else 10968 ld_shlibs=no 10969 fi 10970 ;; 10971 esac 10972 ;; 10973 10974 sunos4*) 10975 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10976 wlarc= 10977 hardcode_direct=yes 10978 hardcode_shlibpath_var=no 10979 ;; 10980 10981 *) 10982 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10983 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10984 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10985 else 10986 ld_shlibs=no 10987 fi 10988 ;; 10989 esac 10990 10991 if test "$ld_shlibs" = no; then 10992 runpath_var= 10993 hardcode_libdir_flag_spec= 10994 export_dynamic_flag_spec= 10995 whole_archive_flag_spec= 10996 fi 10997 else 10998 # PORTME fill in a description of your system's linker (not GNU ld) 10999 case $host_os in 11000 aix3*) 11001 allow_undefined_flag=unsupported 11002 always_export_symbols=yes 11003 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' 11004 # Note: this linker hardcodes the directories in LIBPATH if there 11005 # are no directories specified by -L. 11006 hardcode_minus_L=yes 11007 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11008 # Neither direct hardcoding nor static linking is supported with a 11009 # broken collect2. 11010 hardcode_direct=unsupported 11011 fi 11012 ;; 11013 11014 aix[4-9]*) 11015 if test "$host_cpu" = ia64; then 11016 # On IA64, the linker does run time linking by default, so we don't 11017 # have to do anything special. 11018 aix_use_runtimelinking=no 11019 exp_sym_flag='-Bexport' 11020 no_entry_flag="" 11021 else 11022 # If we're using GNU nm, then we don't want the "-C" option. 11023 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11024 # Also, AIX nm treats weak defined symbols like other global 11025 # defined symbols, whereas GNU nm marks them as "W". 11026 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11027 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' 11028 else 11029 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' 11030 fi 11031 aix_use_runtimelinking=no 11032 11033 # Test if we are trying to use run time linking or normal 11034 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11035 # need to do runtime linking. 11036 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11037 for ld_flag in $LDFLAGS; do 11038 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11039 aix_use_runtimelinking=yes 11040 break 11041 fi 11042 done 11043 ;; 11044 esac 11045 11046 exp_sym_flag='-bexport' 11047 no_entry_flag='-bnoentry' 11048 fi 11049 11050 # When large executables or shared objects are built, AIX ld can 11051 # have problems creating the table of contents. If linking a library 11052 # or program results in "error TOC overflow" add -mminimal-toc to 11053 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11054 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11055 11056 archive_cmds='' 11057 hardcode_direct=yes 11058 hardcode_direct_absolute=yes 11059 hardcode_libdir_separator=':' 11060 link_all_deplibs=yes 11061 file_list_spec='${wl}-f,' 11062 11063 if test "$GCC" = yes; then 11064 case $host_os in aix4.[012]|aix4.[012].*) 11065 # We only want to do this on AIX 4.2 and lower, the check 11066 # below for broken collect2 doesn't work under 4.3+ 11067 collect2name=`${CC} -print-prog-name=collect2` 11068 if test -f "$collect2name" && 11069 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11070 then 11071 # We have reworked collect2 11072 : 11073 else 11074 # We have old collect2 11075 hardcode_direct=unsupported 11076 # It fails to find uninstalled libraries when the uninstalled 11077 # path is not listed in the libpath. Setting hardcode_minus_L 11078 # to unsupported forces relinking 11079 hardcode_minus_L=yes 11080 hardcode_libdir_flag_spec='-L$libdir' 11081 hardcode_libdir_separator= 11082 fi 11083 ;; 11084 esac 11085 shared_flag='-shared' 11086 if test "$aix_use_runtimelinking" = yes; then 11087 shared_flag="$shared_flag "'${wl}-G' 11088 fi 11089 else 11090 # not using gcc 11091 if test "$host_cpu" = ia64; then 11092 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11093 # chokes on -Wl,-G. The following line is correct: 11094 shared_flag='-G' 11095 else 11096 if test "$aix_use_runtimelinking" = yes; then 11097 shared_flag='${wl}-G' 11098 else 11099 shared_flag='${wl}-bM:SRE' 11100 fi 11101 fi 11102 fi 11103 11104 export_dynamic_flag_spec='${wl}-bexpall' 11105 # It seems that -bexpall does not export symbols beginning with 11106 # underscore (_), so it is better to generate a list of symbols to export. 11107 always_export_symbols=yes 11108 if test "$aix_use_runtimelinking" = yes; then 11109 # Warning - without using the other runtime loading flags (-brtl), 11110 # -berok will link without error, but may produce a broken library. 11111 allow_undefined_flag='-berok' 11112 # Determine the default libpath from the value encoded in an 11113 # empty executable. 11114 if test "${lt_cv_aix_libpath+set}" = set; then 11115 aix_libpath=$lt_cv_aix_libpath 11116else 11117 if ${lt_cv_aix_libpath_+:} false; then : 11118 $as_echo_n "(cached) " >&6 11119else 11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11121/* end confdefs.h. */ 11122 11123int 11124main () 11125{ 11126 11127 ; 11128 return 0; 11129} 11130_ACEOF 11131if ac_fn_c_try_link "$LINENO"; then : 11132 11133 lt_aix_libpath_sed=' 11134 /Import File Strings/,/^$/ { 11135 /^0/ { 11136 s/^0 *\([^ ]*\) *$/\1/ 11137 p 11138 } 11139 }' 11140 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11141 # Check for a 64-bit object if we didn't find anything. 11142 if test -z "$lt_cv_aix_libpath_"; then 11143 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11144 fi 11145fi 11146rm -f core conftest.err conftest.$ac_objext \ 11147 conftest$ac_exeext conftest.$ac_ext 11148 if test -z "$lt_cv_aix_libpath_"; then 11149 lt_cv_aix_libpath_="/usr/lib:/lib" 11150 fi 11151 11152fi 11153 11154 aix_libpath=$lt_cv_aix_libpath_ 11155fi 11156 11157 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11158 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" 11159 else 11160 if test "$host_cpu" = ia64; then 11161 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11162 allow_undefined_flag="-z nodefs" 11163 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" 11164 else 11165 # Determine the default libpath from the value encoded in an 11166 # empty executable. 11167 if test "${lt_cv_aix_libpath+set}" = set; then 11168 aix_libpath=$lt_cv_aix_libpath 11169else 11170 if ${lt_cv_aix_libpath_+:} false; then : 11171 $as_echo_n "(cached) " >&6 11172else 11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11174/* end confdefs.h. */ 11175 11176int 11177main () 11178{ 11179 11180 ; 11181 return 0; 11182} 11183_ACEOF 11184if ac_fn_c_try_link "$LINENO"; then : 11185 11186 lt_aix_libpath_sed=' 11187 /Import File Strings/,/^$/ { 11188 /^0/ { 11189 s/^0 *\([^ ]*\) *$/\1/ 11190 p 11191 } 11192 }' 11193 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11194 # Check for a 64-bit object if we didn't find anything. 11195 if test -z "$lt_cv_aix_libpath_"; then 11196 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11197 fi 11198fi 11199rm -f core conftest.err conftest.$ac_objext \ 11200 conftest$ac_exeext conftest.$ac_ext 11201 if test -z "$lt_cv_aix_libpath_"; then 11202 lt_cv_aix_libpath_="/usr/lib:/lib" 11203 fi 11204 11205fi 11206 11207 aix_libpath=$lt_cv_aix_libpath_ 11208fi 11209 11210 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11211 # Warning - without using the other run time loading flags, 11212 # -berok will link without error, but may produce a broken library. 11213 no_undefined_flag=' ${wl}-bernotok' 11214 allow_undefined_flag=' ${wl}-berok' 11215 if test "$with_gnu_ld" = yes; then 11216 # We only use this code for GNU lds that support --whole-archive. 11217 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11218 else 11219 # Exported symbols can be pulled into shared objects from archives 11220 whole_archive_flag_spec='$convenience' 11221 fi 11222 archive_cmds_need_lc=yes 11223 # This is similar to how AIX traditionally builds its shared libraries. 11224 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' 11225 fi 11226 fi 11227 ;; 11228 11229 amigaos*) 11230 case $host_cpu in 11231 powerpc) 11232 # see comment about AmigaOS4 .so support 11233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11234 archive_expsym_cmds='' 11235 ;; 11236 m68k) 11237 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)' 11238 hardcode_libdir_flag_spec='-L$libdir' 11239 hardcode_minus_L=yes 11240 ;; 11241 esac 11242 ;; 11243 11244 bsdi[45]*) 11245 export_dynamic_flag_spec=-rdynamic 11246 ;; 11247 11248 cygwin* | mingw* | pw32* | cegcc*) 11249 # When not using gcc, we currently assume that we are using 11250 # Microsoft Visual C++. 11251 # hardcode_libdir_flag_spec is actually meaningless, as there is 11252 # no search path for DLLs. 11253 case $cc_basename in 11254 cl*) 11255 # Native MSVC 11256 hardcode_libdir_flag_spec=' ' 11257 allow_undefined_flag=unsupported 11258 always_export_symbols=yes 11259 file_list_spec='@' 11260 # Tell ltmain to make .lib files, not .a files. 11261 libext=lib 11262 # Tell ltmain to make .dll files, not .so files. 11263 shrext_cmds=".dll" 11264 # FIXME: Setting linknames here is a bad hack. 11265 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 11266 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11267 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 11268 else 11269 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 11270 fi~ 11271 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11272 linknames=' 11273 # The linker will not automatically build a static lib if we build a DLL. 11274 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11275 enable_shared_with_static_runtimes=yes 11276 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11277 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11278 # Don't use ranlib 11279 old_postinstall_cmds='chmod 644 $oldlib' 11280 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11281 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11282 case $lt_outputfile in 11283 *.exe|*.EXE) ;; 11284 *) 11285 lt_outputfile="$lt_outputfile.exe" 11286 lt_tool_outputfile="$lt_tool_outputfile.exe" 11287 ;; 11288 esac~ 11289 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 11290 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11291 $RM "$lt_outputfile.manifest"; 11292 fi' 11293 ;; 11294 *) 11295 # Assume MSVC wrapper 11296 hardcode_libdir_flag_spec=' ' 11297 allow_undefined_flag=unsupported 11298 # Tell ltmain to make .lib files, not .a files. 11299 libext=lib 11300 # Tell ltmain to make .dll files, not .so files. 11301 shrext_cmds=".dll" 11302 # FIXME: Setting linknames here is a bad hack. 11303 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11304 # The linker will automatically build a .lib file if we build a DLL. 11305 old_archive_from_new_cmds='true' 11306 # FIXME: Should let the user specify the lib program. 11307 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11308 enable_shared_with_static_runtimes=yes 11309 ;; 11310 esac 11311 ;; 11312 11313 darwin* | rhapsody*) 11314 11315 11316 archive_cmds_need_lc=no 11317 hardcode_direct=no 11318 hardcode_automatic=yes 11319 hardcode_shlibpath_var=unsupported 11320 if test "$lt_cv_ld_force_load" = "yes"; then 11321 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\"`' 11322 11323 else 11324 whole_archive_flag_spec='' 11325 fi 11326 link_all_deplibs=yes 11327 allow_undefined_flag="$_lt_dar_allow_undefined" 11328 case $cc_basename in 11329 ifort*) _lt_dar_can_shared=yes ;; 11330 *) _lt_dar_can_shared=$GCC ;; 11331 esac 11332 if test "$_lt_dar_can_shared" = "yes"; then 11333 output_verbose_link_cmd=func_echo_all 11334 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11335 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11336 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}" 11337 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}" 11338 11339 else 11340 ld_shlibs=no 11341 fi 11342 11343 ;; 11344 11345 dgux*) 11346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11347 hardcode_libdir_flag_spec='-L$libdir' 11348 hardcode_shlibpath_var=no 11349 ;; 11350 11351 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11352 # support. Future versions do this automatically, but an explicit c++rt0.o 11353 # does not break anything, and helps significantly (at the cost of a little 11354 # extra space). 11355 freebsd2.2*) 11356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11357 hardcode_libdir_flag_spec='-R$libdir' 11358 hardcode_direct=yes 11359 hardcode_shlibpath_var=no 11360 ;; 11361 11362 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11363 freebsd2.*) 11364 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11365 hardcode_direct=yes 11366 hardcode_minus_L=yes 11367 hardcode_shlibpath_var=no 11368 ;; 11369 11370 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11371 freebsd* | dragonfly*) 11372 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11373 hardcode_libdir_flag_spec='-R$libdir' 11374 hardcode_direct=yes 11375 hardcode_shlibpath_var=no 11376 ;; 11377 11378 hpux9*) 11379 if test "$GCC" = yes; then 11380 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' 11381 else 11382 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' 11383 fi 11384 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11385 hardcode_libdir_separator=: 11386 hardcode_direct=yes 11387 11388 # hardcode_minus_L: Not really in the search PATH, 11389 # but as the default location of the library. 11390 hardcode_minus_L=yes 11391 export_dynamic_flag_spec='${wl}-E' 11392 ;; 11393 11394 hpux10*) 11395 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11396 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11397 else 11398 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11399 fi 11400 if test "$with_gnu_ld" = no; then 11401 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11402 hardcode_libdir_separator=: 11403 hardcode_direct=yes 11404 hardcode_direct_absolute=yes 11405 export_dynamic_flag_spec='${wl}-E' 11406 # hardcode_minus_L: Not really in the search PATH, 11407 # but as the default location of the library. 11408 hardcode_minus_L=yes 11409 fi 11410 ;; 11411 11412 hpux11*) 11413 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11414 case $host_cpu in 11415 hppa*64*) 11416 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11417 ;; 11418 ia64*) 11419 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11420 ;; 11421 *) 11422 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11423 ;; 11424 esac 11425 else 11426 case $host_cpu in 11427 hppa*64*) 11428 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11429 ;; 11430 ia64*) 11431 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11432 ;; 11433 *) 11434 11435 # Older versions of the 11.00 compiler do not understand -b yet 11436 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11438$as_echo_n "checking if $CC understands -b... " >&6; } 11439if ${lt_cv_prog_compiler__b+:} false; then : 11440 $as_echo_n "(cached) " >&6 11441else 11442 lt_cv_prog_compiler__b=no 11443 save_LDFLAGS="$LDFLAGS" 11444 LDFLAGS="$LDFLAGS -b" 11445 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11446 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11447 # The linker can only warn and ignore the option if not recognized 11448 # So say no if there are warnings 11449 if test -s conftest.err; then 11450 # Append any errors to the config.log. 11451 cat conftest.err 1>&5 11452 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11454 if diff conftest.exp conftest.er2 >/dev/null; then 11455 lt_cv_prog_compiler__b=yes 11456 fi 11457 else 11458 lt_cv_prog_compiler__b=yes 11459 fi 11460 fi 11461 $RM -r conftest* 11462 LDFLAGS="$save_LDFLAGS" 11463 11464fi 11465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11466$as_echo "$lt_cv_prog_compiler__b" >&6; } 11467 11468if test x"$lt_cv_prog_compiler__b" = xyes; then 11469 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11470else 11471 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11472fi 11473 11474 ;; 11475 esac 11476 fi 11477 if test "$with_gnu_ld" = no; then 11478 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11479 hardcode_libdir_separator=: 11480 11481 case $host_cpu in 11482 hppa*64*|ia64*) 11483 hardcode_direct=no 11484 hardcode_shlibpath_var=no 11485 ;; 11486 *) 11487 hardcode_direct=yes 11488 hardcode_direct_absolute=yes 11489 export_dynamic_flag_spec='${wl}-E' 11490 11491 # hardcode_minus_L: Not really in the search PATH, 11492 # but as the default location of the library. 11493 hardcode_minus_L=yes 11494 ;; 11495 esac 11496 fi 11497 ;; 11498 11499 irix5* | irix6* | nonstopux*) 11500 if test "$GCC" = yes; then 11501 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' 11502 # Try to use the -exported_symbol ld option, if it does not 11503 # work, assume that -exports_file does not work either and 11504 # implicitly export all symbols. 11505 # This should be the same for all languages, so no per-tag cache variable. 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11507$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11508if ${lt_cv_irix_exported_symbol+:} false; then : 11509 $as_echo_n "(cached) " >&6 11510else 11511 save_LDFLAGS="$LDFLAGS" 11512 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11514/* end confdefs.h. */ 11515int foo (void) { return 0; } 11516_ACEOF 11517if ac_fn_c_try_link "$LINENO"; then : 11518 lt_cv_irix_exported_symbol=yes 11519else 11520 lt_cv_irix_exported_symbol=no 11521fi 11522rm -f core conftest.err conftest.$ac_objext \ 11523 conftest$ac_exeext conftest.$ac_ext 11524 LDFLAGS="$save_LDFLAGS" 11525fi 11526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11527$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11528 if test "$lt_cv_irix_exported_symbol" = yes; then 11529 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' 11530 fi 11531 else 11532 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' 11533 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' 11534 fi 11535 archive_cmds_need_lc='no' 11536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11537 hardcode_libdir_separator=: 11538 inherit_rpath=yes 11539 link_all_deplibs=yes 11540 ;; 11541 11542 netbsd*) 11543 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11545 else 11546 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11547 fi 11548 hardcode_libdir_flag_spec='-R$libdir' 11549 hardcode_direct=yes 11550 hardcode_shlibpath_var=no 11551 ;; 11552 11553 newsos6) 11554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11555 hardcode_direct=yes 11556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11557 hardcode_libdir_separator=: 11558 hardcode_shlibpath_var=no 11559 ;; 11560 11561 *nto* | *qnx*) 11562 ;; 11563 11564 openbsd*) 11565 if test -f /usr/libexec/ld.so; then 11566 hardcode_direct=yes 11567 hardcode_shlibpath_var=no 11568 hardcode_direct_absolute=yes 11569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11570 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11571 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11573 export_dynamic_flag_spec='${wl}-E' 11574 else 11575 case $host_os in 11576 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11578 hardcode_libdir_flag_spec='-R$libdir' 11579 ;; 11580 *) 11581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11583 ;; 11584 esac 11585 fi 11586 else 11587 ld_shlibs=no 11588 fi 11589 ;; 11590 11591 os2*) 11592 hardcode_libdir_flag_spec='-L$libdir' 11593 hardcode_minus_L=yes 11594 allow_undefined_flag=unsupported 11595 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' 11596 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11597 ;; 11598 11599 osf3*) 11600 if test "$GCC" = yes; then 11601 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11602 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' 11603 else 11604 allow_undefined_flag=' -expect_unresolved \*' 11605 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' 11606 fi 11607 archive_cmds_need_lc='no' 11608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11609 hardcode_libdir_separator=: 11610 ;; 11611 11612 osf4* | osf5*) # as osf3* with the addition of -msym flag 11613 if test "$GCC" = yes; then 11614 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11615 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' 11616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11617 else 11618 allow_undefined_flag=' -expect_unresolved \*' 11619 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' 11620 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~ 11621 $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' 11622 11623 # Both c and cxx compiler support -rpath directly 11624 hardcode_libdir_flag_spec='-rpath $libdir' 11625 fi 11626 archive_cmds_need_lc='no' 11627 hardcode_libdir_separator=: 11628 ;; 11629 11630 solaris*) 11631 no_undefined_flag=' -z defs' 11632 if test "$GCC" = yes; then 11633 wlarc='${wl}' 11634 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11635 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11636 $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' 11637 else 11638 case `$CC -V 2>&1` in 11639 *"Compilers 5.0"*) 11640 wlarc='' 11641 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11642 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11643 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11644 ;; 11645 *) 11646 wlarc='${wl}' 11647 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11648 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11649 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11650 ;; 11651 esac 11652 fi 11653 hardcode_libdir_flag_spec='-R$libdir' 11654 hardcode_shlibpath_var=no 11655 case $host_os in 11656 solaris2.[0-5] | solaris2.[0-5].*) ;; 11657 *) 11658 # The compiler driver will combine and reorder linker options, 11659 # but understands `-z linker_flag'. GCC discards it without `$wl', 11660 # but is careful enough not to reorder. 11661 # Supported since Solaris 2.6 (maybe 2.5.1?) 11662 if test "$GCC" = yes; then 11663 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11664 else 11665 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11666 fi 11667 ;; 11668 esac 11669 link_all_deplibs=yes 11670 ;; 11671 11672 sunos4*) 11673 if test "x$host_vendor" = xsequent; then 11674 # Use $CC to link under sequent, because it throws in some extra .o 11675 # files that make .init and .fini sections work. 11676 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11677 else 11678 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11679 fi 11680 hardcode_libdir_flag_spec='-L$libdir' 11681 hardcode_direct=yes 11682 hardcode_minus_L=yes 11683 hardcode_shlibpath_var=no 11684 ;; 11685 11686 sysv4) 11687 case $host_vendor in 11688 sni) 11689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11690 hardcode_direct=yes # is this really true??? 11691 ;; 11692 siemens) 11693 ## LD is ld it makes a PLAMLIB 11694 ## CC just makes a GrossModule. 11695 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11696 reload_cmds='$CC -r -o $output$reload_objs' 11697 hardcode_direct=no 11698 ;; 11699 motorola) 11700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11701 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11702 ;; 11703 esac 11704 runpath_var='LD_RUN_PATH' 11705 hardcode_shlibpath_var=no 11706 ;; 11707 11708 sysv4.3*) 11709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11710 hardcode_shlibpath_var=no 11711 export_dynamic_flag_spec='-Bexport' 11712 ;; 11713 11714 sysv4*MP*) 11715 if test -d /usr/nec; then 11716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11717 hardcode_shlibpath_var=no 11718 runpath_var=LD_RUN_PATH 11719 hardcode_runpath_var=yes 11720 ld_shlibs=yes 11721 fi 11722 ;; 11723 11724 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11725 no_undefined_flag='${wl}-z,text' 11726 archive_cmds_need_lc=no 11727 hardcode_shlibpath_var=no 11728 runpath_var='LD_RUN_PATH' 11729 11730 if test "$GCC" = yes; then 11731 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11732 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11733 else 11734 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11735 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11736 fi 11737 ;; 11738 11739 sysv5* | sco3.2v5* | sco5v6*) 11740 # Note: We can NOT use -z defs as we might desire, because we do not 11741 # link with -lc, and that would cause any symbols used from libc to 11742 # always be unresolved, which means just about no library would 11743 # ever link correctly. If we're not using GNU ld we use -z text 11744 # though, which does catch some bad symbols but isn't as heavy-handed 11745 # as -z defs. 11746 no_undefined_flag='${wl}-z,text' 11747 allow_undefined_flag='${wl}-z,nodefs' 11748 archive_cmds_need_lc=no 11749 hardcode_shlibpath_var=no 11750 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11751 hardcode_libdir_separator=':' 11752 link_all_deplibs=yes 11753 export_dynamic_flag_spec='${wl}-Bexport' 11754 runpath_var='LD_RUN_PATH' 11755 11756 if test "$GCC" = yes; then 11757 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11758 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11759 else 11760 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11761 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11762 fi 11763 ;; 11764 11765 uts4*) 11766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11767 hardcode_libdir_flag_spec='-L$libdir' 11768 hardcode_shlibpath_var=no 11769 ;; 11770 11771 *) 11772 ld_shlibs=no 11773 ;; 11774 esac 11775 11776 if test x$host_vendor = xsni; then 11777 case $host in 11778 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11779 export_dynamic_flag_spec='${wl}-Blargedynsym' 11780 ;; 11781 esac 11782 fi 11783 fi 11784 11785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11786$as_echo "$ld_shlibs" >&6; } 11787test "$ld_shlibs" = no && can_build_shared=no 11788 11789with_gnu_ld=$with_gnu_ld 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805# 11806# Do we need to explicitly link libc? 11807# 11808case "x$archive_cmds_need_lc" in 11809x|xyes) 11810 # Assume -lc should be added 11811 archive_cmds_need_lc=yes 11812 11813 if test "$enable_shared" = yes && test "$GCC" = yes; then 11814 case $archive_cmds in 11815 *'~'*) 11816 # FIXME: we may have to deal with multi-command sequences. 11817 ;; 11818 '$CC '*) 11819 # Test whether the compiler implicitly links with -lc since on some 11820 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11821 # to ld, don't add -lc before -lgcc. 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11823$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11824if ${lt_cv_archive_cmds_need_lc+:} false; then : 11825 $as_echo_n "(cached) " >&6 11826else 11827 $RM conftest* 11828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11829 11830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11831 (eval $ac_compile) 2>&5 11832 ac_status=$? 11833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11834 test $ac_status = 0; } 2>conftest.err; then 11835 soname=conftest 11836 lib=conftest 11837 libobjs=conftest.$ac_objext 11838 deplibs= 11839 wl=$lt_prog_compiler_wl 11840 pic_flag=$lt_prog_compiler_pic 11841 compiler_flags=-v 11842 linker_flags=-v 11843 verstring= 11844 output_objdir=. 11845 libname=conftest 11846 lt_save_allow_undefined_flag=$allow_undefined_flag 11847 allow_undefined_flag= 11848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11849 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11850 ac_status=$? 11851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11852 test $ac_status = 0; } 11853 then 11854 lt_cv_archive_cmds_need_lc=no 11855 else 11856 lt_cv_archive_cmds_need_lc=yes 11857 fi 11858 allow_undefined_flag=$lt_save_allow_undefined_flag 11859 else 11860 cat conftest.err 1>&5 11861 fi 11862 $RM conftest* 11863 11864fi 11865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11866$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11867 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11868 ;; 11869 esac 11870 fi 11871 ;; 11872esac 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12026$as_echo_n "checking dynamic linker characteristics... " >&6; } 12027 12028if test "$GCC" = yes; then 12029 case $host_os in 12030 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12031 *) lt_awk_arg="/^libraries:/" ;; 12032 esac 12033 case $host_os in 12034 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12035 *) lt_sed_strip_eq="s,=/,/,g" ;; 12036 esac 12037 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12038 case $lt_search_path_spec in 12039 *\;*) 12040 # if the path contains ";" then we assume it to be the separator 12041 # otherwise default to the standard path separator (i.e. ":") - it is 12042 # assumed that no part of a normal pathname contains ";" but that should 12043 # okay in the real world where ";" in dirpaths is itself problematic. 12044 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12045 ;; 12046 *) 12047 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12048 ;; 12049 esac 12050 # Ok, now we have the path, separated by spaces, we can step through it 12051 # and add multilib dir if necessary. 12052 lt_tmp_lt_search_path_spec= 12053 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12054 for lt_sys_path in $lt_search_path_spec; do 12055 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12056 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12057 else 12058 test -d "$lt_sys_path" && \ 12059 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12060 fi 12061 done 12062 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12063BEGIN {RS=" "; FS="/|\n";} { 12064 lt_foo=""; 12065 lt_count=0; 12066 for (lt_i = NF; lt_i > 0; lt_i--) { 12067 if ($lt_i != "" && $lt_i != ".") { 12068 if ($lt_i == "..") { 12069 lt_count++; 12070 } else { 12071 if (lt_count == 0) { 12072 lt_foo="/" $lt_i lt_foo; 12073 } else { 12074 lt_count--; 12075 } 12076 } 12077 } 12078 } 12079 if (lt_foo != "") { lt_freq[lt_foo]++; } 12080 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12081}'` 12082 # AWK program above erroneously prepends '/' to C:/dos/paths 12083 # for these hosts. 12084 case $host_os in 12085 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12086 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12087 esac 12088 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12089else 12090 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12091fi 12092library_names_spec= 12093libname_spec='lib$name' 12094soname_spec= 12095shrext_cmds=".so" 12096postinstall_cmds= 12097postuninstall_cmds= 12098finish_cmds= 12099finish_eval= 12100shlibpath_var= 12101shlibpath_overrides_runpath=unknown 12102version_type=none 12103dynamic_linker="$host_os ld.so" 12104sys_lib_dlsearch_path_spec="/lib /usr/lib" 12105need_lib_prefix=unknown 12106hardcode_into_libs=no 12107 12108# when you set need_version to no, make sure it does not cause -set_version 12109# flags to be left without arguments 12110need_version=unknown 12111 12112case $host_os in 12113aix3*) 12114 version_type=linux # correct to gnu/linux during the next big refactor 12115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12116 shlibpath_var=LIBPATH 12117 12118 # AIX 3 has no versioning support, so we append a major version to the name. 12119 soname_spec='${libname}${release}${shared_ext}$major' 12120 ;; 12121 12122aix[4-9]*) 12123 version_type=linux # correct to gnu/linux during the next big refactor 12124 need_lib_prefix=no 12125 need_version=no 12126 hardcode_into_libs=yes 12127 if test "$host_cpu" = ia64; then 12128 # AIX 5 supports IA64 12129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12130 shlibpath_var=LD_LIBRARY_PATH 12131 else 12132 # With GCC up to 2.95.x, collect2 would create an import file 12133 # for dependence libraries. The import file would start with 12134 # the line `#! .'. This would cause the generated library to 12135 # depend on `.', always an invalid library. This was fixed in 12136 # development snapshots of GCC prior to 3.0. 12137 case $host_os in 12138 aix4 | aix4.[01] | aix4.[01].*) 12139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12140 echo ' yes ' 12141 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12142 : 12143 else 12144 can_build_shared=no 12145 fi 12146 ;; 12147 esac 12148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12149 # soname into executable. Probably we can add versioning support to 12150 # collect2, so additional links can be useful in future. 12151 if test "$aix_use_runtimelinking" = yes; then 12152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12153 # instead of lib<name>.a to let people know that these are not 12154 # typical AIX shared libraries. 12155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12156 else 12157 # We preserve .a as extension for shared libraries through AIX4.2 12158 # and later when we are not doing run time linking. 12159 library_names_spec='${libname}${release}.a $libname.a' 12160 soname_spec='${libname}${release}${shared_ext}$major' 12161 fi 12162 shlibpath_var=LIBPATH 12163 fi 12164 ;; 12165 12166amigaos*) 12167 case $host_cpu in 12168 powerpc) 12169 # Since July 2007 AmigaOS4 officially supports .so libraries. 12170 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12172 ;; 12173 m68k) 12174 library_names_spec='$libname.ixlibrary $libname.a' 12175 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12176 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' 12177 ;; 12178 esac 12179 ;; 12180 12181beos*) 12182 library_names_spec='${libname}${shared_ext}' 12183 dynamic_linker="$host_os ld.so" 12184 shlibpath_var=LIBRARY_PATH 12185 ;; 12186 12187bsdi[45]*) 12188 version_type=linux # correct to gnu/linux during the next big refactor 12189 need_version=no 12190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12191 soname_spec='${libname}${release}${shared_ext}$major' 12192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12193 shlibpath_var=LD_LIBRARY_PATH 12194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12196 # the default ld.so.conf also contains /usr/contrib/lib and 12197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12198 # libtool to hard-code these into programs 12199 ;; 12200 12201cygwin* | mingw* | pw32* | cegcc*) 12202 version_type=windows 12203 shrext_cmds=".dll" 12204 need_version=no 12205 need_lib_prefix=no 12206 12207 case $GCC,$cc_basename in 12208 yes,*) 12209 # gcc 12210 library_names_spec='$libname.dll.a' 12211 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12212 postinstall_cmds='base_file=`basename \${file}`~ 12213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12214 dldir=$destdir/`dirname \$dlpath`~ 12215 test -d \$dldir || mkdir -p \$dldir~ 12216 $install_prog $dir/$dlname \$dldir/$dlname~ 12217 chmod a+x \$dldir/$dlname~ 12218 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12219 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12220 fi' 12221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12222 dlpath=$dir/\$dldll~ 12223 $RM \$dlpath' 12224 shlibpath_overrides_runpath=yes 12225 12226 case $host_os in 12227 cygwin*) 12228 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12229 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12230 12231 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12232 ;; 12233 mingw* | cegcc*) 12234 # MinGW DLLs use traditional 'lib' prefix 12235 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12236 ;; 12237 pw32*) 12238 # pw32 DLLs use 'pw' prefix rather than 'lib' 12239 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12240 ;; 12241 esac 12242 dynamic_linker='Win32 ld.exe' 12243 ;; 12244 12245 *,cl*) 12246 # Native MSVC 12247 libname_spec='$name' 12248 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12249 library_names_spec='${libname}.dll.lib' 12250 12251 case $build_os in 12252 mingw*) 12253 sys_lib_search_path_spec= 12254 lt_save_ifs=$IFS 12255 IFS=';' 12256 for lt_path in $LIB 12257 do 12258 IFS=$lt_save_ifs 12259 # Let DOS variable expansion print the short 8.3 style file name. 12260 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12261 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12262 done 12263 IFS=$lt_save_ifs 12264 # Convert to MSYS style. 12265 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12266 ;; 12267 cygwin*) 12268 # Convert to unix form, then to dos form, then back to unix form 12269 # but this time dos style (no spaces!) so that the unix form looks 12270 # like /cygdrive/c/PROGRA~1:/cygdr... 12271 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12272 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12273 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12274 ;; 12275 *) 12276 sys_lib_search_path_spec="$LIB" 12277 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12278 # It is most probably a Windows format PATH. 12279 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12280 else 12281 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12282 fi 12283 # FIXME: find the short name or the path components, as spaces are 12284 # common. (e.g. "Program Files" -> "PROGRA~1") 12285 ;; 12286 esac 12287 12288 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12289 postinstall_cmds='base_file=`basename \${file}`~ 12290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12291 dldir=$destdir/`dirname \$dlpath`~ 12292 test -d \$dldir || mkdir -p \$dldir~ 12293 $install_prog $dir/$dlname \$dldir/$dlname' 12294 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12295 dlpath=$dir/\$dldll~ 12296 $RM \$dlpath' 12297 shlibpath_overrides_runpath=yes 12298 dynamic_linker='Win32 link.exe' 12299 ;; 12300 12301 *) 12302 # Assume MSVC wrapper 12303 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12304 dynamic_linker='Win32 ld.exe' 12305 ;; 12306 esac 12307 # FIXME: first we should search . and the directory the executable is in 12308 shlibpath_var=PATH 12309 ;; 12310 12311darwin* | rhapsody*) 12312 dynamic_linker="$host_os dyld" 12313 version_type=darwin 12314 need_lib_prefix=no 12315 need_version=no 12316 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12317 soname_spec='${libname}${release}${major}$shared_ext' 12318 shlibpath_overrides_runpath=yes 12319 shlibpath_var=DYLD_LIBRARY_PATH 12320 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12321 12322 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12323 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12324 ;; 12325 12326dgux*) 12327 version_type=linux # correct to gnu/linux during the next big refactor 12328 need_lib_prefix=no 12329 need_version=no 12330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12331 soname_spec='${libname}${release}${shared_ext}$major' 12332 shlibpath_var=LD_LIBRARY_PATH 12333 ;; 12334 12335freebsd* | dragonfly*) 12336 # DragonFly does not have aout. When/if they implement a new 12337 # versioning mechanism, adjust this. 12338 if test -x /usr/bin/objformat; then 12339 objformat=`/usr/bin/objformat` 12340 else 12341 case $host_os in 12342 freebsd[23].*) objformat=aout ;; 12343 *) objformat=elf ;; 12344 esac 12345 fi 12346 version_type=freebsd-$objformat 12347 case $version_type in 12348 freebsd-elf*) 12349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12350 need_version=no 12351 need_lib_prefix=no 12352 ;; 12353 freebsd-*) 12354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12355 need_version=yes 12356 ;; 12357 esac 12358 shlibpath_var=LD_LIBRARY_PATH 12359 case $host_os in 12360 freebsd2.*) 12361 shlibpath_overrides_runpath=yes 12362 ;; 12363 freebsd3.[01]* | freebsdelf3.[01]*) 12364 shlibpath_overrides_runpath=yes 12365 hardcode_into_libs=yes 12366 ;; 12367 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12368 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12369 shlibpath_overrides_runpath=no 12370 hardcode_into_libs=yes 12371 ;; 12372 *) # from 4.6 on, and DragonFly 12373 shlibpath_overrides_runpath=yes 12374 hardcode_into_libs=yes 12375 ;; 12376 esac 12377 ;; 12378 12379gnu*) 12380 version_type=linux # correct to gnu/linux during the next big refactor 12381 need_lib_prefix=no 12382 need_version=no 12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12384 soname_spec='${libname}${release}${shared_ext}$major' 12385 shlibpath_var=LD_LIBRARY_PATH 12386 shlibpath_overrides_runpath=no 12387 hardcode_into_libs=yes 12388 ;; 12389 12390haiku*) 12391 version_type=linux # correct to gnu/linux during the next big refactor 12392 need_lib_prefix=no 12393 need_version=no 12394 dynamic_linker="$host_os runtime_loader" 12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12396 soname_spec='${libname}${release}${shared_ext}$major' 12397 shlibpath_var=LIBRARY_PATH 12398 shlibpath_overrides_runpath=yes 12399 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12400 hardcode_into_libs=yes 12401 ;; 12402 12403hpux9* | hpux10* | hpux11*) 12404 # Give a soname corresponding to the major version so that dld.sl refuses to 12405 # link against other versions. 12406 version_type=sunos 12407 need_lib_prefix=no 12408 need_version=no 12409 case $host_cpu in 12410 ia64*) 12411 shrext_cmds='.so' 12412 hardcode_into_libs=yes 12413 dynamic_linker="$host_os dld.so" 12414 shlibpath_var=LD_LIBRARY_PATH 12415 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12417 soname_spec='${libname}${release}${shared_ext}$major' 12418 if test "X$HPUX_IA64_MODE" = X32; then 12419 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12420 else 12421 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12422 fi 12423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12424 ;; 12425 hppa*64*) 12426 shrext_cmds='.sl' 12427 hardcode_into_libs=yes 12428 dynamic_linker="$host_os dld.sl" 12429 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12430 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12432 soname_spec='${libname}${release}${shared_ext}$major' 12433 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12435 ;; 12436 *) 12437 shrext_cmds='.sl' 12438 dynamic_linker="$host_os dld.sl" 12439 shlibpath_var=SHLIB_PATH 12440 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12442 soname_spec='${libname}${release}${shared_ext}$major' 12443 ;; 12444 esac 12445 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12446 postinstall_cmds='chmod 555 $lib' 12447 # or fails outright, so override atomically: 12448 install_override_mode=555 12449 ;; 12450 12451interix[3-9]*) 12452 version_type=linux # correct to gnu/linux during the next big refactor 12453 need_lib_prefix=no 12454 need_version=no 12455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12456 soname_spec='${libname}${release}${shared_ext}$major' 12457 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12458 shlibpath_var=LD_LIBRARY_PATH 12459 shlibpath_overrides_runpath=no 12460 hardcode_into_libs=yes 12461 ;; 12462 12463irix5* | irix6* | nonstopux*) 12464 case $host_os in 12465 nonstopux*) version_type=nonstopux ;; 12466 *) 12467 if test "$lt_cv_prog_gnu_ld" = yes; then 12468 version_type=linux # correct to gnu/linux during the next big refactor 12469 else 12470 version_type=irix 12471 fi ;; 12472 esac 12473 need_lib_prefix=no 12474 need_version=no 12475 soname_spec='${libname}${release}${shared_ext}$major' 12476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12477 case $host_os in 12478 irix5* | nonstopux*) 12479 libsuff= shlibsuff= 12480 ;; 12481 *) 12482 case $LD in # libtool.m4 will add one of these switches to LD 12483 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12484 libsuff= shlibsuff= libmagic=32-bit;; 12485 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12486 libsuff=32 shlibsuff=N32 libmagic=N32;; 12487 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12488 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12489 *) libsuff= shlibsuff= libmagic=never-match;; 12490 esac 12491 ;; 12492 esac 12493 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12494 shlibpath_overrides_runpath=no 12495 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12496 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12497 hardcode_into_libs=yes 12498 ;; 12499 12500# No shared lib support for Linux oldld, aout, or coff. 12501linux*oldld* | linux*aout* | linux*coff*) 12502 dynamic_linker=no 12503 ;; 12504 12505# This must be glibc/ELF. 12506linux* | k*bsd*-gnu | kopensolaris*-gnu) 12507 version_type=linux # correct to gnu/linux during the next big refactor 12508 need_lib_prefix=no 12509 need_version=no 12510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12511 soname_spec='${libname}${release}${shared_ext}$major' 12512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12513 shlibpath_var=LD_LIBRARY_PATH 12514 shlibpath_overrides_runpath=no 12515 12516 # Some binutils ld are patched to set DT_RUNPATH 12517 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12518 $as_echo_n "(cached) " >&6 12519else 12520 lt_cv_shlibpath_overrides_runpath=no 12521 save_LDFLAGS=$LDFLAGS 12522 save_libdir=$libdir 12523 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12524 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12526/* end confdefs.h. */ 12527 12528int 12529main () 12530{ 12531 12532 ; 12533 return 0; 12534} 12535_ACEOF 12536if ac_fn_c_try_link "$LINENO"; then : 12537 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12538 lt_cv_shlibpath_overrides_runpath=yes 12539fi 12540fi 12541rm -f core conftest.err conftest.$ac_objext \ 12542 conftest$ac_exeext conftest.$ac_ext 12543 LDFLAGS=$save_LDFLAGS 12544 libdir=$save_libdir 12545 12546fi 12547 12548 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12549 12550 # This implies no fast_install, which is unacceptable. 12551 # Some rework will be needed to allow for fast_install 12552 # before this can be enabled. 12553 hardcode_into_libs=yes 12554 12555 # Append ld.so.conf contents to the search path 12556 if test -f /etc/ld.so.conf; then 12557 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' ' '` 12558 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12559 fi 12560 12561 # We used to test for /lib/ld.so.1 and disable shared libraries on 12562 # powerpc, because MkLinux only supported shared libraries with the 12563 # GNU dynamic linker. Since this was broken with cross compilers, 12564 # most powerpc-linux boxes support dynamic linking these days and 12565 # people can always --disable-shared, the test was removed, and we 12566 # assume the GNU/Linux dynamic linker is in use. 12567 dynamic_linker='GNU/Linux ld.so' 12568 ;; 12569 12570netbsd*) 12571 version_type=sunos 12572 need_lib_prefix=no 12573 need_version=no 12574 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12577 dynamic_linker='NetBSD (a.out) ld.so' 12578 else 12579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12580 soname_spec='${libname}${release}${shared_ext}$major' 12581 dynamic_linker='NetBSD ld.elf_so' 12582 fi 12583 shlibpath_var=LD_LIBRARY_PATH 12584 shlibpath_overrides_runpath=yes 12585 hardcode_into_libs=yes 12586 ;; 12587 12588newsos6) 12589 version_type=linux # correct to gnu/linux during the next big refactor 12590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12591 shlibpath_var=LD_LIBRARY_PATH 12592 shlibpath_overrides_runpath=yes 12593 ;; 12594 12595*nto* | *qnx*) 12596 version_type=qnx 12597 need_lib_prefix=no 12598 need_version=no 12599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12600 soname_spec='${libname}${release}${shared_ext}$major' 12601 shlibpath_var=LD_LIBRARY_PATH 12602 shlibpath_overrides_runpath=no 12603 hardcode_into_libs=yes 12604 dynamic_linker='ldqnx.so' 12605 ;; 12606 12607openbsd*) 12608 version_type=sunos 12609 sys_lib_dlsearch_path_spec="/usr/lib" 12610 need_lib_prefix=no 12611 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12612 case $host_os in 12613 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12614 *) need_version=no ;; 12615 esac 12616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12618 shlibpath_var=LD_LIBRARY_PATH 12619 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12620 case $host_os in 12621 openbsd2.[89] | openbsd2.[89].*) 12622 shlibpath_overrides_runpath=no 12623 ;; 12624 *) 12625 shlibpath_overrides_runpath=yes 12626 ;; 12627 esac 12628 else 12629 shlibpath_overrides_runpath=yes 12630 fi 12631 ;; 12632 12633os2*) 12634 libname_spec='$name' 12635 shrext_cmds=".dll" 12636 need_lib_prefix=no 12637 library_names_spec='$libname${shared_ext} $libname.a' 12638 dynamic_linker='OS/2 ld.exe' 12639 shlibpath_var=LIBPATH 12640 ;; 12641 12642osf3* | osf4* | osf5*) 12643 version_type=osf 12644 need_lib_prefix=no 12645 need_version=no 12646 soname_spec='${libname}${release}${shared_ext}$major' 12647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12648 shlibpath_var=LD_LIBRARY_PATH 12649 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12650 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12651 ;; 12652 12653rdos*) 12654 dynamic_linker=no 12655 ;; 12656 12657solaris*) 12658 version_type=linux # correct to gnu/linux during the next big refactor 12659 need_lib_prefix=no 12660 need_version=no 12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12662 soname_spec='${libname}${release}${shared_ext}$major' 12663 shlibpath_var=LD_LIBRARY_PATH 12664 shlibpath_overrides_runpath=yes 12665 hardcode_into_libs=yes 12666 # ldd complains unless libraries are executable 12667 postinstall_cmds='chmod +x $lib' 12668 ;; 12669 12670sunos4*) 12671 version_type=sunos 12672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12673 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12674 shlibpath_var=LD_LIBRARY_PATH 12675 shlibpath_overrides_runpath=yes 12676 if test "$with_gnu_ld" = yes; then 12677 need_lib_prefix=no 12678 fi 12679 need_version=yes 12680 ;; 12681 12682sysv4 | sysv4.3*) 12683 version_type=linux # correct to gnu/linux during the next big refactor 12684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12685 soname_spec='${libname}${release}${shared_ext}$major' 12686 shlibpath_var=LD_LIBRARY_PATH 12687 case $host_vendor in 12688 sni) 12689 shlibpath_overrides_runpath=no 12690 need_lib_prefix=no 12691 runpath_var=LD_RUN_PATH 12692 ;; 12693 siemens) 12694 need_lib_prefix=no 12695 ;; 12696 motorola) 12697 need_lib_prefix=no 12698 need_version=no 12699 shlibpath_overrides_runpath=no 12700 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12701 ;; 12702 esac 12703 ;; 12704 12705sysv4*MP*) 12706 if test -d /usr/nec ;then 12707 version_type=linux # correct to gnu/linux during the next big refactor 12708 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12709 soname_spec='$libname${shared_ext}.$major' 12710 shlibpath_var=LD_LIBRARY_PATH 12711 fi 12712 ;; 12713 12714sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12715 version_type=freebsd-elf 12716 need_lib_prefix=no 12717 need_version=no 12718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12719 soname_spec='${libname}${release}${shared_ext}$major' 12720 shlibpath_var=LD_LIBRARY_PATH 12721 shlibpath_overrides_runpath=yes 12722 hardcode_into_libs=yes 12723 if test "$with_gnu_ld" = yes; then 12724 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12725 else 12726 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12727 case $host_os in 12728 sco3.2v5*) 12729 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12730 ;; 12731 esac 12732 fi 12733 sys_lib_dlsearch_path_spec='/usr/lib' 12734 ;; 12735 12736tpf*) 12737 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12738 version_type=linux # correct to gnu/linux during the next big refactor 12739 need_lib_prefix=no 12740 need_version=no 12741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12742 shlibpath_var=LD_LIBRARY_PATH 12743 shlibpath_overrides_runpath=no 12744 hardcode_into_libs=yes 12745 ;; 12746 12747uts4*) 12748 version_type=linux # correct to gnu/linux during the next big refactor 12749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12750 soname_spec='${libname}${release}${shared_ext}$major' 12751 shlibpath_var=LD_LIBRARY_PATH 12752 ;; 12753 12754*) 12755 dynamic_linker=no 12756 ;; 12757esac 12758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12759$as_echo "$dynamic_linker" >&6; } 12760test "$dynamic_linker" = no && can_build_shared=no 12761 12762variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12763if test "$GCC" = yes; then 12764 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12765fi 12766 12767if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12768 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12769fi 12770if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12771 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12772fi 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12866$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12867hardcode_action= 12868if test -n "$hardcode_libdir_flag_spec" || 12869 test -n "$runpath_var" || 12870 test "X$hardcode_automatic" = "Xyes" ; then 12871 12872 # We can hardcode non-existent directories. 12873 if test "$hardcode_direct" != no && 12874 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12875 # have to relink, otherwise we might link with an installed library 12876 # when we should be linking with a yet-to-be-installed one 12877 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 12878 test "$hardcode_minus_L" != no; then 12879 # Linking always hardcodes the temporary library directory. 12880 hardcode_action=relink 12881 else 12882 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12883 hardcode_action=immediate 12884 fi 12885else 12886 # We cannot hardcode anything, or else we can only hardcode existing 12887 # directories. 12888 hardcode_action=unsupported 12889fi 12890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12891$as_echo "$hardcode_action" >&6; } 12892 12893if test "$hardcode_action" = relink || 12894 test "$inherit_rpath" = yes; then 12895 # Fast installation is not supported 12896 enable_fast_install=no 12897elif test "$shlibpath_overrides_runpath" = yes || 12898 test "$enable_shared" = no; then 12899 # Fast installation is not necessary 12900 enable_fast_install=needless 12901fi 12902 12903 12904 12905 12906 12907 12908 if test "x$enable_dlopen" != xyes; then 12909 enable_dlopen=unknown 12910 enable_dlopen_self=unknown 12911 enable_dlopen_self_static=unknown 12912else 12913 lt_cv_dlopen=no 12914 lt_cv_dlopen_libs= 12915 12916 case $host_os in 12917 beos*) 12918 lt_cv_dlopen="load_add_on" 12919 lt_cv_dlopen_libs= 12920 lt_cv_dlopen_self=yes 12921 ;; 12922 12923 mingw* | pw32* | cegcc*) 12924 lt_cv_dlopen="LoadLibrary" 12925 lt_cv_dlopen_libs= 12926 ;; 12927 12928 cygwin*) 12929 lt_cv_dlopen="dlopen" 12930 lt_cv_dlopen_libs= 12931 ;; 12932 12933 darwin*) 12934 # if libdl is installed we need to link against it 12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12936$as_echo_n "checking for dlopen in -ldl... " >&6; } 12937if ${ac_cv_lib_dl_dlopen+:} false; then : 12938 $as_echo_n "(cached) " >&6 12939else 12940 ac_check_lib_save_LIBS=$LIBS 12941LIBS="-ldl $LIBS" 12942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12943/* end confdefs.h. */ 12944 12945/* Override any GCC internal prototype to avoid an error. 12946 Use char because int might match the return type of a GCC 12947 builtin and then its argument prototype would still apply. */ 12948#ifdef __cplusplus 12949extern "C" 12950#endif 12951char dlopen (); 12952int 12953main () 12954{ 12955return dlopen (); 12956 ; 12957 return 0; 12958} 12959_ACEOF 12960if ac_fn_c_try_link "$LINENO"; then : 12961 ac_cv_lib_dl_dlopen=yes 12962else 12963 ac_cv_lib_dl_dlopen=no 12964fi 12965rm -f core conftest.err conftest.$ac_objext \ 12966 conftest$ac_exeext conftest.$ac_ext 12967LIBS=$ac_check_lib_save_LIBS 12968fi 12969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12970$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12971if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12973else 12974 12975 lt_cv_dlopen="dyld" 12976 lt_cv_dlopen_libs= 12977 lt_cv_dlopen_self=yes 12978 12979fi 12980 12981 ;; 12982 12983 *) 12984 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12985if test "x$ac_cv_func_shl_load" = xyes; then : 12986 lt_cv_dlopen="shl_load" 12987else 12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12989$as_echo_n "checking for shl_load in -ldld... " >&6; } 12990if ${ac_cv_lib_dld_shl_load+:} false; then : 12991 $as_echo_n "(cached) " >&6 12992else 12993 ac_check_lib_save_LIBS=$LIBS 12994LIBS="-ldld $LIBS" 12995cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12996/* end confdefs.h. */ 12997 12998/* Override any GCC internal prototype to avoid an error. 12999 Use char because int might match the return type of a GCC 13000 builtin and then its argument prototype would still apply. */ 13001#ifdef __cplusplus 13002extern "C" 13003#endif 13004char shl_load (); 13005int 13006main () 13007{ 13008return shl_load (); 13009 ; 13010 return 0; 13011} 13012_ACEOF 13013if ac_fn_c_try_link "$LINENO"; then : 13014 ac_cv_lib_dld_shl_load=yes 13015else 13016 ac_cv_lib_dld_shl_load=no 13017fi 13018rm -f core conftest.err conftest.$ac_objext \ 13019 conftest$ac_exeext conftest.$ac_ext 13020LIBS=$ac_check_lib_save_LIBS 13021fi 13022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13023$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13024if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13025 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13026else 13027 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13028if test "x$ac_cv_func_dlopen" = xyes; then : 13029 lt_cv_dlopen="dlopen" 13030else 13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13032$as_echo_n "checking for dlopen in -ldl... " >&6; } 13033if ${ac_cv_lib_dl_dlopen+:} false; then : 13034 $as_echo_n "(cached) " >&6 13035else 13036 ac_check_lib_save_LIBS=$LIBS 13037LIBS="-ldl $LIBS" 13038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13039/* end confdefs.h. */ 13040 13041/* Override any GCC internal prototype to avoid an error. 13042 Use char because int might match the return type of a GCC 13043 builtin and then its argument prototype would still apply. */ 13044#ifdef __cplusplus 13045extern "C" 13046#endif 13047char dlopen (); 13048int 13049main () 13050{ 13051return dlopen (); 13052 ; 13053 return 0; 13054} 13055_ACEOF 13056if ac_fn_c_try_link "$LINENO"; then : 13057 ac_cv_lib_dl_dlopen=yes 13058else 13059 ac_cv_lib_dl_dlopen=no 13060fi 13061rm -f core conftest.err conftest.$ac_objext \ 13062 conftest$ac_exeext conftest.$ac_ext 13063LIBS=$ac_check_lib_save_LIBS 13064fi 13065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13066$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13067if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13069else 13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13071$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13072if ${ac_cv_lib_svld_dlopen+:} false; then : 13073 $as_echo_n "(cached) " >&6 13074else 13075 ac_check_lib_save_LIBS=$LIBS 13076LIBS="-lsvld $LIBS" 13077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13078/* end confdefs.h. */ 13079 13080/* Override any GCC internal prototype to avoid an error. 13081 Use char because int might match the return type of a GCC 13082 builtin and then its argument prototype would still apply. */ 13083#ifdef __cplusplus 13084extern "C" 13085#endif 13086char dlopen (); 13087int 13088main () 13089{ 13090return dlopen (); 13091 ; 13092 return 0; 13093} 13094_ACEOF 13095if ac_fn_c_try_link "$LINENO"; then : 13096 ac_cv_lib_svld_dlopen=yes 13097else 13098 ac_cv_lib_svld_dlopen=no 13099fi 13100rm -f core conftest.err conftest.$ac_objext \ 13101 conftest$ac_exeext conftest.$ac_ext 13102LIBS=$ac_check_lib_save_LIBS 13103fi 13104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13105$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13106if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13108else 13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13110$as_echo_n "checking for dld_link in -ldld... " >&6; } 13111if ${ac_cv_lib_dld_dld_link+:} false; then : 13112 $as_echo_n "(cached) " >&6 13113else 13114 ac_check_lib_save_LIBS=$LIBS 13115LIBS="-ldld $LIBS" 13116cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13117/* end confdefs.h. */ 13118 13119/* Override any GCC internal prototype to avoid an error. 13120 Use char because int might match the return type of a GCC 13121 builtin and then its argument prototype would still apply. */ 13122#ifdef __cplusplus 13123extern "C" 13124#endif 13125char dld_link (); 13126int 13127main () 13128{ 13129return dld_link (); 13130 ; 13131 return 0; 13132} 13133_ACEOF 13134if ac_fn_c_try_link "$LINENO"; then : 13135 ac_cv_lib_dld_dld_link=yes 13136else 13137 ac_cv_lib_dld_dld_link=no 13138fi 13139rm -f core conftest.err conftest.$ac_objext \ 13140 conftest$ac_exeext conftest.$ac_ext 13141LIBS=$ac_check_lib_save_LIBS 13142fi 13143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13144$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13145if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13146 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13147fi 13148 13149 13150fi 13151 13152 13153fi 13154 13155 13156fi 13157 13158 13159fi 13160 13161 13162fi 13163 13164 ;; 13165 esac 13166 13167 if test "x$lt_cv_dlopen" != xno; then 13168 enable_dlopen=yes 13169 else 13170 enable_dlopen=no 13171 fi 13172 13173 case $lt_cv_dlopen in 13174 dlopen) 13175 save_CPPFLAGS="$CPPFLAGS" 13176 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13177 13178 save_LDFLAGS="$LDFLAGS" 13179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13180 13181 save_LIBS="$LIBS" 13182 LIBS="$lt_cv_dlopen_libs $LIBS" 13183 13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13185$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13186if ${lt_cv_dlopen_self+:} false; then : 13187 $as_echo_n "(cached) " >&6 13188else 13189 if test "$cross_compiling" = yes; then : 13190 lt_cv_dlopen_self=cross 13191else 13192 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13193 lt_status=$lt_dlunknown 13194 cat > conftest.$ac_ext <<_LT_EOF 13195#line $LINENO "configure" 13196#include "confdefs.h" 13197 13198#if HAVE_DLFCN_H 13199#include <dlfcn.h> 13200#endif 13201 13202#include <stdio.h> 13203 13204#ifdef RTLD_GLOBAL 13205# define LT_DLGLOBAL RTLD_GLOBAL 13206#else 13207# ifdef DL_GLOBAL 13208# define LT_DLGLOBAL DL_GLOBAL 13209# else 13210# define LT_DLGLOBAL 0 13211# endif 13212#endif 13213 13214/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13215 find out it does not work in some platform. */ 13216#ifndef LT_DLLAZY_OR_NOW 13217# ifdef RTLD_LAZY 13218# define LT_DLLAZY_OR_NOW RTLD_LAZY 13219# else 13220# ifdef DL_LAZY 13221# define LT_DLLAZY_OR_NOW DL_LAZY 13222# else 13223# ifdef RTLD_NOW 13224# define LT_DLLAZY_OR_NOW RTLD_NOW 13225# else 13226# ifdef DL_NOW 13227# define LT_DLLAZY_OR_NOW DL_NOW 13228# else 13229# define LT_DLLAZY_OR_NOW 0 13230# endif 13231# endif 13232# endif 13233# endif 13234#endif 13235 13236/* When -fvisbility=hidden is used, assume the code has been annotated 13237 correspondingly for the symbols needed. */ 13238#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13239int fnord () __attribute__((visibility("default"))); 13240#endif 13241 13242int fnord () { return 42; } 13243int main () 13244{ 13245 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13246 int status = $lt_dlunknown; 13247 13248 if (self) 13249 { 13250 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13251 else 13252 { 13253 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13254 else puts (dlerror ()); 13255 } 13256 /* dlclose (self); */ 13257 } 13258 else 13259 puts (dlerror ()); 13260 13261 return status; 13262} 13263_LT_EOF 13264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13265 (eval $ac_link) 2>&5 13266 ac_status=$? 13267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13268 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13269 (./conftest; exit; ) >&5 2>/dev/null 13270 lt_status=$? 13271 case x$lt_status in 13272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13274 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13275 esac 13276 else : 13277 # compilation failed 13278 lt_cv_dlopen_self=no 13279 fi 13280fi 13281rm -fr conftest* 13282 13283 13284fi 13285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13286$as_echo "$lt_cv_dlopen_self" >&6; } 13287 13288 if test "x$lt_cv_dlopen_self" = xyes; then 13289 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13291$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13292if ${lt_cv_dlopen_self_static+:} false; then : 13293 $as_echo_n "(cached) " >&6 13294else 13295 if test "$cross_compiling" = yes; then : 13296 lt_cv_dlopen_self_static=cross 13297else 13298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13299 lt_status=$lt_dlunknown 13300 cat > conftest.$ac_ext <<_LT_EOF 13301#line $LINENO "configure" 13302#include "confdefs.h" 13303 13304#if HAVE_DLFCN_H 13305#include <dlfcn.h> 13306#endif 13307 13308#include <stdio.h> 13309 13310#ifdef RTLD_GLOBAL 13311# define LT_DLGLOBAL RTLD_GLOBAL 13312#else 13313# ifdef DL_GLOBAL 13314# define LT_DLGLOBAL DL_GLOBAL 13315# else 13316# define LT_DLGLOBAL 0 13317# endif 13318#endif 13319 13320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13321 find out it does not work in some platform. */ 13322#ifndef LT_DLLAZY_OR_NOW 13323# ifdef RTLD_LAZY 13324# define LT_DLLAZY_OR_NOW RTLD_LAZY 13325# else 13326# ifdef DL_LAZY 13327# define LT_DLLAZY_OR_NOW DL_LAZY 13328# else 13329# ifdef RTLD_NOW 13330# define LT_DLLAZY_OR_NOW RTLD_NOW 13331# else 13332# ifdef DL_NOW 13333# define LT_DLLAZY_OR_NOW DL_NOW 13334# else 13335# define LT_DLLAZY_OR_NOW 0 13336# endif 13337# endif 13338# endif 13339# endif 13340#endif 13341 13342/* When -fvisbility=hidden is used, assume the code has been annotated 13343 correspondingly for the symbols needed. */ 13344#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13345int fnord () __attribute__((visibility("default"))); 13346#endif 13347 13348int fnord () { return 42; } 13349int main () 13350{ 13351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13352 int status = $lt_dlunknown; 13353 13354 if (self) 13355 { 13356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13357 else 13358 { 13359 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13360 else puts (dlerror ()); 13361 } 13362 /* dlclose (self); */ 13363 } 13364 else 13365 puts (dlerror ()); 13366 13367 return status; 13368} 13369_LT_EOF 13370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13371 (eval $ac_link) 2>&5 13372 ac_status=$? 13373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13374 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13375 (./conftest; exit; ) >&5 2>/dev/null 13376 lt_status=$? 13377 case x$lt_status in 13378 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13379 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13380 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13381 esac 13382 else : 13383 # compilation failed 13384 lt_cv_dlopen_self_static=no 13385 fi 13386fi 13387rm -fr conftest* 13388 13389 13390fi 13391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13392$as_echo "$lt_cv_dlopen_self_static" >&6; } 13393 fi 13394 13395 CPPFLAGS="$save_CPPFLAGS" 13396 LDFLAGS="$save_LDFLAGS" 13397 LIBS="$save_LIBS" 13398 ;; 13399 esac 13400 13401 case $lt_cv_dlopen_self in 13402 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13403 *) enable_dlopen_self=unknown ;; 13404 esac 13405 13406 case $lt_cv_dlopen_self_static in 13407 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13408 *) enable_dlopen_self_static=unknown ;; 13409 esac 13410fi 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428striplib= 13429old_striplib= 13430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13431$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13432if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13433 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13434 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13436$as_echo "yes" >&6; } 13437else 13438# FIXME - insert some real tests, host_os isn't really good enough 13439 case $host_os in 13440 darwin*) 13441 if test -n "$STRIP" ; then 13442 striplib="$STRIP -x" 13443 old_striplib="$STRIP -S" 13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13445$as_echo "yes" >&6; } 13446 else 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13448$as_echo "no" >&6; } 13449 fi 13450 ;; 13451 *) 13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13453$as_echo "no" >&6; } 13454 ;; 13455 esac 13456fi 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 # Report which library types will actually be built 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13471$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13473$as_echo "$can_build_shared" >&6; } 13474 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13476$as_echo_n "checking whether to build shared libraries... " >&6; } 13477 test "$can_build_shared" = "no" && enable_shared=no 13478 13479 # On AIX, shared libraries and static libraries use the same namespace, and 13480 # are all built from PIC. 13481 case $host_os in 13482 aix3*) 13483 test "$enable_shared" = yes && enable_static=no 13484 if test -n "$RANLIB"; then 13485 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13486 postinstall_cmds='$RANLIB $lib' 13487 fi 13488 ;; 13489 13490 aix[4-9]*) 13491 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13492 test "$enable_shared" = yes && enable_static=no 13493 fi 13494 ;; 13495 esac 13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13497$as_echo "$enable_shared" >&6; } 13498 13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13500$as_echo_n "checking whether to build static libraries... " >&6; } 13501 # Make sure either enable_shared or enable_static is yes. 13502 test "$enable_shared" = yes || enable_static=yes 13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13504$as_echo "$enable_static" >&6; } 13505 13506 13507 13508 13509fi 13510ac_ext=c 13511ac_cpp='$CPP $CPPFLAGS' 13512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13514ac_compiler_gnu=$ac_cv_c_compiler_gnu 13515 13516CC="$lt_save_CC" 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 ac_config_commands="$ac_config_commands libtool" 13533 13534 13535 13536 13537# Only expand once: 13538 13539 13540 13541 13542# Checks for header files. 13543for ac_header in stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.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 13544do : 13545 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13546ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13547" 13548if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13549 cat >>confdefs.h <<_ACEOF 13550#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13551_ACEOF 13552 13553fi 13554 13555done 13556 13557 13558# check for types. 13559# Using own tests for int64* because autoconf builtin only give 32bit. 13560ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 13561if test "x$ac_cv_type_int8_t" = xyes; then : 13562 13563else 13564 13565cat >>confdefs.h <<_ACEOF 13566#define int8_t signed char 13567_ACEOF 13568 13569fi 13570 13571ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 13572if test "x$ac_cv_type_int16_t" = xyes; then : 13573 13574else 13575 13576cat >>confdefs.h <<_ACEOF 13577#define int16_t short 13578_ACEOF 13579 13580fi 13581 13582ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 13583if test "x$ac_cv_type_int32_t" = xyes; then : 13584 13585else 13586 13587cat >>confdefs.h <<_ACEOF 13588#define int32_t int 13589_ACEOF 13590 13591fi 13592 13593ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 13594if test "x$ac_cv_type_int64_t" = xyes; then : 13595 13596else 13597 13598cat >>confdefs.h <<_ACEOF 13599#define int64_t long long 13600_ACEOF 13601 13602fi 13603 13604ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 13605if test "x$ac_cv_type_uint8_t" = xyes; then : 13606 13607else 13608 13609cat >>confdefs.h <<_ACEOF 13610#define uint8_t unsigned char 13611_ACEOF 13612 13613fi 13614 13615ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 13616if test "x$ac_cv_type_uint16_t" = xyes; then : 13617 13618else 13619 13620cat >>confdefs.h <<_ACEOF 13621#define uint16_t unsigned short 13622_ACEOF 13623 13624fi 13625 13626ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 13627if test "x$ac_cv_type_uint32_t" = xyes; then : 13628 13629else 13630 13631cat >>confdefs.h <<_ACEOF 13632#define uint32_t unsigned int 13633_ACEOF 13634 13635fi 13636 13637ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 13638if test "x$ac_cv_type_uint64_t" = xyes; then : 13639 13640else 13641 13642cat >>confdefs.h <<_ACEOF 13643#define uint64_t unsigned long long 13644_ACEOF 13645 13646fi 13647 13648ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13649if test "x$ac_cv_type_size_t" = xyes; then : 13650 13651else 13652 13653cat >>confdefs.h <<_ACEOF 13654#define size_t unsigned int 13655_ACEOF 13656 13657fi 13658 13659ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 13660if test "x$ac_cv_type_ssize_t" = xyes; then : 13661 13662else 13663 13664cat >>confdefs.h <<_ACEOF 13665#define ssize_t int 13666_ACEOF 13667 13668fi 13669 13670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 13671$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 13672if ${ac_cv_type_uid_t+:} false; then : 13673 $as_echo_n "(cached) " >&6 13674else 13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13676/* end confdefs.h. */ 13677#include <sys/types.h> 13678 13679_ACEOF 13680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13681 $EGREP "uid_t" >/dev/null 2>&1; then : 13682 ac_cv_type_uid_t=yes 13683else 13684 ac_cv_type_uid_t=no 13685fi 13686rm -f conftest* 13687 13688fi 13689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 13690$as_echo "$ac_cv_type_uid_t" >&6; } 13691if test $ac_cv_type_uid_t = no; then 13692 13693$as_echo "#define uid_t int" >>confdefs.h 13694 13695 13696$as_echo "#define gid_t int" >>confdefs.h 13697 13698fi 13699 13700ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13701if test "x$ac_cv_type_pid_t" = xyes; then : 13702 13703else 13704 13705cat >>confdefs.h <<_ACEOF 13706#define pid_t int 13707_ACEOF 13708 13709fi 13710 13711ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 13712if test "x$ac_cv_type_off_t" = xyes; then : 13713 13714else 13715 13716cat >>confdefs.h <<_ACEOF 13717#define off_t long int 13718_ACEOF 13719 13720fi 13721 13722ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" " 13723$ac_includes_default 13724#ifdef HAVE_WINSOCK2_H 13725# include <winsock2.h> 13726#endif 13727 13728" 13729if test "x$ac_cv_type_u_char" = xyes; then : 13730 13731else 13732 13733$as_echo "#define u_char unsigned char" >>confdefs.h 13734 13735fi 13736 13737ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " 13738$ac_includes_default 13739#ifdef HAVE_SYS_RESOURCE_H 13740# include <sys/resource.h> 13741#endif 13742 13743" 13744if test "x$ac_cv_type_rlim_t" = xyes; then : 13745 13746else 13747 13748$as_echo "#define rlim_t unsigned long" >>confdefs.h 13749 13750fi 13751 13752 13753ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 13754$ac_includes_default 13755#ifdef HAVE_SYS_SOCKET_H 13756# include <sys/socket.h> 13757#endif 13758#ifdef HAVE_WS2TCPIP_H 13759# include <ws2tcpip.h> 13760#endif 13761 13762" 13763if test "x$ac_cv_type_socklen_t" = xyes; then : 13764 13765else 13766 13767$as_echo "#define socklen_t int" >>confdefs.h 13768 13769fi 13770 13771 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 13772$ac_includes_default 13773#ifdef HAVE_SYS_TYPES_H 13774# include <sys/types.h> 13775#endif 13776#ifdef HAVE_NETINET_IN_H 13777# include <netinet/in.h> 13778#endif 13779 13780" 13781if test "x$ac_cv_type_in_addr_t" = xyes; then : 13782 13783else 13784 13785$as_echo "#define in_addr_t uint32_t" >>confdefs.h 13786 13787fi 13788 13789 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 13790$ac_includes_default 13791#ifdef HAVE_SYS_TYPES_H 13792# include <sys/types.h> 13793#endif 13794#ifdef HAVE_NETINET_IN_H 13795# include <netinet/in.h> 13796#endif 13797 13798" 13799if test "x$ac_cv_type_in_port_t" = xyes; then : 13800 13801else 13802 13803$as_echo "#define in_port_t uint16_t" >>confdefs.h 13804 13805fi 13806 13807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 13808$as_echo_n "checking if memcmp compares unsigned... " >&6; } 13809if test "$cross_compiling" = yes; then : 13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 13811$as_echo "cross-compile no" >&6; } 13812 13813$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 13814 13815 case " $LIBOBJS " in 13816 *" memcmp.$ac_objext "* ) ;; 13817 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 13818 ;; 13819esac 13820 13821 13822else 13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13824/* end confdefs.h. */ 13825 13826#include <stdio.h> 13827#include <stdlib.h> 13828#include <string.h> 13829int main(void) 13830{ 13831 char a = 255, b = 0; 13832 if(memcmp(&a, &b, 1) < 0) 13833 return 1; 13834 return 0; 13835} 13836 13837_ACEOF 13838if ac_fn_c_try_run "$LINENO"; then : 13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13840$as_echo "yes" >&6; } 13841else 13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13843$as_echo "no" >&6; } 13844 13845$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 13846 13847 case " $LIBOBJS " in 13848 *" memcmp.$ac_objext "* ) ;; 13849 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 13850 ;; 13851esac 13852 13853 13854fi 13855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13856 conftest.$ac_objext conftest.beam conftest.$ac_ext 13857fi 13858 13859 13860# add option to disable the evil rpath 13861 13862# Check whether --enable-rpath was given. 13863if test "${enable_rpath+set}" = set; then : 13864 enableval=$enable_rpath; enable_rpath=$enableval 13865else 13866 enable_rpath=yes 13867fi 13868 13869if test "x$enable_rpath" = xno; then 13870 ac_config_commands="$ac_config_commands disable-rpath" 13871 13872fi 13873 13874 13875 13876# check to see if libraries are needed for these functions. 13877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 13878$as_echo_n "checking for library containing inet_pton... " >&6; } 13879if ${ac_cv_search_inet_pton+:} false; then : 13880 $as_echo_n "(cached) " >&6 13881else 13882 ac_func_search_save_LIBS=$LIBS 13883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13884/* end confdefs.h. */ 13885 13886/* Override any GCC internal prototype to avoid an error. 13887 Use char because int might match the return type of a GCC 13888 builtin and then its argument prototype would still apply. */ 13889#ifdef __cplusplus 13890extern "C" 13891#endif 13892char inet_pton (); 13893int 13894main () 13895{ 13896return inet_pton (); 13897 ; 13898 return 0; 13899} 13900_ACEOF 13901for ac_lib in '' nsl; do 13902 if test -z "$ac_lib"; then 13903 ac_res="none required" 13904 else 13905 ac_res=-l$ac_lib 13906 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13907 fi 13908 if ac_fn_c_try_link "$LINENO"; then : 13909 ac_cv_search_inet_pton=$ac_res 13910fi 13911rm -f core conftest.err conftest.$ac_objext \ 13912 conftest$ac_exeext 13913 if ${ac_cv_search_inet_pton+:} false; then : 13914 break 13915fi 13916done 13917if ${ac_cv_search_inet_pton+:} false; then : 13918 13919else 13920 ac_cv_search_inet_pton=no 13921fi 13922rm conftest.$ac_ext 13923LIBS=$ac_func_search_save_LIBS 13924fi 13925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 13926$as_echo "$ac_cv_search_inet_pton" >&6; } 13927ac_res=$ac_cv_search_inet_pton 13928if test "$ac_res" != no; then : 13929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13930 13931fi 13932 13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 13934$as_echo_n "checking for library containing socket... " >&6; } 13935if ${ac_cv_search_socket+:} false; then : 13936 $as_echo_n "(cached) " >&6 13937else 13938 ac_func_search_save_LIBS=$LIBS 13939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13940/* end confdefs.h. */ 13941 13942/* Override any GCC internal prototype to avoid an error. 13943 Use char because int might match the return type of a GCC 13944 builtin and then its argument prototype would still apply. */ 13945#ifdef __cplusplus 13946extern "C" 13947#endif 13948char socket (); 13949int 13950main () 13951{ 13952return socket (); 13953 ; 13954 return 0; 13955} 13956_ACEOF 13957for ac_lib in '' socket; do 13958 if test -z "$ac_lib"; then 13959 ac_res="none required" 13960 else 13961 ac_res=-l$ac_lib 13962 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13963 fi 13964 if ac_fn_c_try_link "$LINENO"; then : 13965 ac_cv_search_socket=$ac_res 13966fi 13967rm -f core conftest.err conftest.$ac_objext \ 13968 conftest$ac_exeext 13969 if ${ac_cv_search_socket+:} false; then : 13970 break 13971fi 13972done 13973if ${ac_cv_search_socket+:} false; then : 13974 13975else 13976 ac_cv_search_socket=no 13977fi 13978rm conftest.$ac_ext 13979LIBS=$ac_func_search_save_LIBS 13980fi 13981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 13982$as_echo "$ac_cv_search_socket" >&6; } 13983ac_res=$ac_cv_search_socket 13984if test "$ac_res" != no; then : 13985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13986 13987fi 13988 13989 13990# check wether strptime also works 13991 13992# check some functions of the OS before linking libs (while still runnable). 13993for ac_header in unistd.h 13994do : 13995 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 13996if test "x$ac_cv_header_unistd_h" = xyes; then : 13997 cat >>confdefs.h <<_ACEOF 13998#define HAVE_UNISTD_H 1 13999_ACEOF 14000 14001fi 14002 14003done 14004 14005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 14006$as_echo_n "checking for working chown... " >&6; } 14007if ${ac_cv_func_chown_works+:} false; then : 14008 $as_echo_n "(cached) " >&6 14009else 14010 if test "$cross_compiling" = yes; then : 14011 ac_cv_func_chown_works=no 14012else 14013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14014/* end confdefs.h. */ 14015$ac_includes_default 14016#include <fcntl.h> 14017 14018int 14019main () 14020{ 14021 char *f = "conftest.chown"; 14022 struct stat before, after; 14023 14024 if (creat (f, 0600) < 0) 14025 return 1; 14026 if (stat (f, &before) < 0) 14027 return 1; 14028 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 14029 return 1; 14030 if (stat (f, &after) < 0) 14031 return 1; 14032 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 14033 14034 ; 14035 return 0; 14036} 14037_ACEOF 14038if ac_fn_c_try_run "$LINENO"; then : 14039 ac_cv_func_chown_works=yes 14040else 14041 ac_cv_func_chown_works=no 14042fi 14043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14044 conftest.$ac_objext conftest.beam conftest.$ac_ext 14045fi 14046 14047rm -f conftest.chown 14048 14049fi 14050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 14051$as_echo "$ac_cv_func_chown_works" >&6; } 14052if test $ac_cv_func_chown_works = yes; then 14053 14054$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 14055 14056fi 14057 14058for ac_header in vfork.h 14059do : 14060 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 14061if test "x$ac_cv_header_vfork_h" = xyes; then : 14062 cat >>confdefs.h <<_ACEOF 14063#define HAVE_VFORK_H 1 14064_ACEOF 14065 14066fi 14067 14068done 14069 14070for ac_func in fork vfork 14071do : 14072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14073ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14074if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14075 cat >>confdefs.h <<_ACEOF 14076#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14077_ACEOF 14078 14079fi 14080done 14081 14082if test "x$ac_cv_func_fork" = xyes; then 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14084$as_echo_n "checking for working fork... " >&6; } 14085if ${ac_cv_func_fork_works+:} false; then : 14086 $as_echo_n "(cached) " >&6 14087else 14088 if test "$cross_compiling" = yes; then : 14089 ac_cv_func_fork_works=cross 14090else 14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14092/* end confdefs.h. */ 14093$ac_includes_default 14094int 14095main () 14096{ 14097 14098 /* By Ruediger Kuhlmann. */ 14099 return fork () < 0; 14100 14101 ; 14102 return 0; 14103} 14104_ACEOF 14105if ac_fn_c_try_run "$LINENO"; then : 14106 ac_cv_func_fork_works=yes 14107else 14108 ac_cv_func_fork_works=no 14109fi 14110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14111 conftest.$ac_objext conftest.beam conftest.$ac_ext 14112fi 14113 14114fi 14115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14116$as_echo "$ac_cv_func_fork_works" >&6; } 14117 14118else 14119 ac_cv_func_fork_works=$ac_cv_func_fork 14120fi 14121if test "x$ac_cv_func_fork_works" = xcross; then 14122 case $host in 14123 *-*-amigaos* | *-*-msdosdjgpp*) 14124 # Override, as these systems have only a dummy fork() stub 14125 ac_cv_func_fork_works=no 14126 ;; 14127 *) 14128 ac_cv_func_fork_works=yes 14129 ;; 14130 esac 14131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14132$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14133fi 14134ac_cv_func_vfork_works=$ac_cv_func_vfork 14135if test "x$ac_cv_func_vfork" = xyes; then 14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14137$as_echo_n "checking for working vfork... " >&6; } 14138if ${ac_cv_func_vfork_works+:} false; then : 14139 $as_echo_n "(cached) " >&6 14140else 14141 if test "$cross_compiling" = yes; then : 14142 ac_cv_func_vfork_works=cross 14143else 14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14145/* end confdefs.h. */ 14146/* Thanks to Paul Eggert for this test. */ 14147$ac_includes_default 14148#include <sys/wait.h> 14149#ifdef HAVE_VFORK_H 14150# include <vfork.h> 14151#endif 14152/* On some sparc systems, changes by the child to local and incoming 14153 argument registers are propagated back to the parent. The compiler 14154 is told about this with #include <vfork.h>, but some compilers 14155 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14156 static variable whose address is put into a register that is 14157 clobbered by the vfork. */ 14158static void 14159#ifdef __cplusplus 14160sparc_address_test (int arg) 14161# else 14162sparc_address_test (arg) int arg; 14163#endif 14164{ 14165 static pid_t child; 14166 if (!child) { 14167 child = vfork (); 14168 if (child < 0) { 14169 perror ("vfork"); 14170 _exit(2); 14171 } 14172 if (!child) { 14173 arg = getpid(); 14174 write(-1, "", 0); 14175 _exit (arg); 14176 } 14177 } 14178} 14179 14180int 14181main () 14182{ 14183 pid_t parent = getpid (); 14184 pid_t child; 14185 14186 sparc_address_test (0); 14187 14188 child = vfork (); 14189 14190 if (child == 0) { 14191 /* Here is another test for sparc vfork register problems. This 14192 test uses lots of local variables, at least as many local 14193 variables as main has allocated so far including compiler 14194 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14195 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14196 reuse the register of parent for one of the local variables, 14197 since it will think that parent can't possibly be used any more 14198 in this routine. Assigning to the local variable will thus 14199 munge parent in the parent process. */ 14200 pid_t 14201 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14202 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14203 /* Convince the compiler that p..p7 are live; otherwise, it might 14204 use the same hardware register for all 8 local variables. */ 14205 if (p != p1 || p != p2 || p != p3 || p != p4 14206 || p != p5 || p != p6 || p != p7) 14207 _exit(1); 14208 14209 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14210 from child file descriptors. If the child closes a descriptor 14211 before it execs or exits, this munges the parent's descriptor 14212 as well. Test for this by closing stdout in the child. */ 14213 _exit(close(fileno(stdout)) != 0); 14214 } else { 14215 int status; 14216 struct stat st; 14217 14218 while (wait(&status) != child) 14219 ; 14220 return ( 14221 /* Was there some problem with vforking? */ 14222 child < 0 14223 14224 /* Did the child fail? (This shouldn't happen.) */ 14225 || status 14226 14227 /* Did the vfork/compiler bug occur? */ 14228 || parent != getpid() 14229 14230 /* Did the file descriptor bug occur? */ 14231 || fstat(fileno(stdout), &st) != 0 14232 ); 14233 } 14234} 14235_ACEOF 14236if ac_fn_c_try_run "$LINENO"; then : 14237 ac_cv_func_vfork_works=yes 14238else 14239 ac_cv_func_vfork_works=no 14240fi 14241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14242 conftest.$ac_objext conftest.beam conftest.$ac_ext 14243fi 14244 14245fi 14246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14247$as_echo "$ac_cv_func_vfork_works" >&6; } 14248 14249fi; 14250if test "x$ac_cv_func_fork_works" = xcross; then 14251 ac_cv_func_vfork_works=$ac_cv_func_vfork 14252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14253$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14254fi 14255 14256if test "x$ac_cv_func_vfork_works" = xyes; then 14257 14258$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 14259 14260else 14261 14262$as_echo "#define vfork fork" >>confdefs.h 14263 14264fi 14265if test "x$ac_cv_func_fork_works" = xyes; then 14266 14267$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 14268 14269fi 14270 14271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 14272$as_echo_n "checking return type of signal handlers... " >&6; } 14273if ${ac_cv_type_signal+:} false; then : 14274 $as_echo_n "(cached) " >&6 14275else 14276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14277/* end confdefs.h. */ 14278#include <sys/types.h> 14279#include <signal.h> 14280 14281int 14282main () 14283{ 14284return *(signal (0, 0)) (0) == 1; 14285 ; 14286 return 0; 14287} 14288_ACEOF 14289if ac_fn_c_try_compile "$LINENO"; then : 14290 ac_cv_type_signal=int 14291else 14292 ac_cv_type_signal=void 14293fi 14294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14295fi 14296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 14297$as_echo "$ac_cv_type_signal" >&6; } 14298 14299cat >>confdefs.h <<_ACEOF 14300#define RETSIGTYPE $ac_cv_type_signal 14301_ACEOF 14302 14303 14304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 14305$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 14306if ${ac_cv_sys_largefile_source+:} false; then : 14307 $as_echo_n "(cached) " >&6 14308else 14309 while :; do 14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14311/* end confdefs.h. */ 14312#include <sys/types.h> /* for off_t */ 14313 #include <stdio.h> 14314int 14315main () 14316{ 14317int (*fp) (FILE *, off_t, int) = fseeko; 14318 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14319 ; 14320 return 0; 14321} 14322_ACEOF 14323if ac_fn_c_try_link "$LINENO"; then : 14324 ac_cv_sys_largefile_source=no; break 14325fi 14326rm -f core conftest.err conftest.$ac_objext \ 14327 conftest$ac_exeext conftest.$ac_ext 14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14329/* end confdefs.h. */ 14330#define _LARGEFILE_SOURCE 1 14331#include <sys/types.h> /* for off_t */ 14332 #include <stdio.h> 14333int 14334main () 14335{ 14336int (*fp) (FILE *, off_t, int) = fseeko; 14337 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 14338 ; 14339 return 0; 14340} 14341_ACEOF 14342if ac_fn_c_try_link "$LINENO"; then : 14343 ac_cv_sys_largefile_source=1; break 14344fi 14345rm -f core conftest.err conftest.$ac_objext \ 14346 conftest$ac_exeext conftest.$ac_ext 14347 ac_cv_sys_largefile_source=unknown 14348 break 14349done 14350fi 14351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 14352$as_echo "$ac_cv_sys_largefile_source" >&6; } 14353case $ac_cv_sys_largefile_source in #( 14354 no | unknown) ;; 14355 *) 14356cat >>confdefs.h <<_ACEOF 14357#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 14358_ACEOF 14359;; 14360esac 14361rm -rf conftest* 14362 14363# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 14364# in glibc 2.1.3, but that breaks too many other things. 14365# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 14366if test $ac_cv_sys_largefile_source != unknown; then 14367 14368$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 14369 14370fi 14371 14372 14373# Check whether --enable-largefile was given. 14374if test "${enable_largefile+set}" = set; then : 14375 enableval=$enable_largefile; 14376fi 14377 14378if test "$enable_largefile" != no; then 14379 14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14381$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 14382if ${ac_cv_sys_largefile_CC+:} false; then : 14383 $as_echo_n "(cached) " >&6 14384else 14385 ac_cv_sys_largefile_CC=no 14386 if test "$GCC" != yes; then 14387 ac_save_CC=$CC 14388 while :; do 14389 # IRIX 6.2 and later do not support large files by default, 14390 # so use the C compiler's -n32 option if that helps. 14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14392/* end confdefs.h. */ 14393#include <sys/types.h> 14394 /* Check that off_t can represent 2**63 - 1 correctly. 14395 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14396 since some C++ compilers masquerading as C compilers 14397 incorrectly reject 9223372036854775807. */ 14398#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14400 && LARGE_OFF_T % 2147483647 == 1) 14401 ? 1 : -1]; 14402int 14403main () 14404{ 14405 14406 ; 14407 return 0; 14408} 14409_ACEOF 14410 if ac_fn_c_try_compile "$LINENO"; then : 14411 break 14412fi 14413rm -f core conftest.err conftest.$ac_objext 14414 CC="$CC -n32" 14415 if ac_fn_c_try_compile "$LINENO"; then : 14416 ac_cv_sys_largefile_CC=' -n32'; break 14417fi 14418rm -f core conftest.err conftest.$ac_objext 14419 break 14420 done 14421 CC=$ac_save_CC 14422 rm -f conftest.$ac_ext 14423 fi 14424fi 14425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14426$as_echo "$ac_cv_sys_largefile_CC" >&6; } 14427 if test "$ac_cv_sys_largefile_CC" != no; then 14428 CC=$CC$ac_cv_sys_largefile_CC 14429 fi 14430 14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14432$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14433if ${ac_cv_sys_file_offset_bits+:} false; then : 14434 $as_echo_n "(cached) " >&6 14435else 14436 while :; do 14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14438/* end confdefs.h. */ 14439#include <sys/types.h> 14440 /* Check that off_t can represent 2**63 - 1 correctly. 14441 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14442 since some C++ compilers masquerading as C compilers 14443 incorrectly reject 9223372036854775807. */ 14444#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14446 && LARGE_OFF_T % 2147483647 == 1) 14447 ? 1 : -1]; 14448int 14449main () 14450{ 14451 14452 ; 14453 return 0; 14454} 14455_ACEOF 14456if ac_fn_c_try_compile "$LINENO"; then : 14457 ac_cv_sys_file_offset_bits=no; break 14458fi 14459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14461/* end confdefs.h. */ 14462#define _FILE_OFFSET_BITS 64 14463#include <sys/types.h> 14464 /* Check that off_t can represent 2**63 - 1 correctly. 14465 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14466 since some C++ compilers masquerading as C compilers 14467 incorrectly reject 9223372036854775807. */ 14468#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14470 && LARGE_OFF_T % 2147483647 == 1) 14471 ? 1 : -1]; 14472int 14473main () 14474{ 14475 14476 ; 14477 return 0; 14478} 14479_ACEOF 14480if ac_fn_c_try_compile "$LINENO"; then : 14481 ac_cv_sys_file_offset_bits=64; break 14482fi 14483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14484 ac_cv_sys_file_offset_bits=unknown 14485 break 14486done 14487fi 14488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14489$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14490case $ac_cv_sys_file_offset_bits in #( 14491 no | unknown) ;; 14492 *) 14493cat >>confdefs.h <<_ACEOF 14494#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14495_ACEOF 14496;; 14497esac 14498rm -rf conftest* 14499 if test $ac_cv_sys_file_offset_bits = unknown; then 14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14501$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14502if ${ac_cv_sys_large_files+:} false; then : 14503 $as_echo_n "(cached) " >&6 14504else 14505 while :; do 14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14507/* end confdefs.h. */ 14508#include <sys/types.h> 14509 /* Check that off_t can represent 2**63 - 1 correctly. 14510 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14511 since some C++ compilers masquerading as C compilers 14512 incorrectly reject 9223372036854775807. */ 14513#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14515 && LARGE_OFF_T % 2147483647 == 1) 14516 ? 1 : -1]; 14517int 14518main () 14519{ 14520 14521 ; 14522 return 0; 14523} 14524_ACEOF 14525if ac_fn_c_try_compile "$LINENO"; then : 14526 ac_cv_sys_large_files=no; break 14527fi 14528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14530/* end confdefs.h. */ 14531#define _LARGE_FILES 1 14532#include <sys/types.h> 14533 /* Check that off_t can represent 2**63 - 1 correctly. 14534 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14535 since some C++ compilers masquerading as C compilers 14536 incorrectly reject 9223372036854775807. */ 14537#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14539 && LARGE_OFF_T % 2147483647 == 1) 14540 ? 1 : -1]; 14541int 14542main () 14543{ 14544 14545 ; 14546 return 0; 14547} 14548_ACEOF 14549if ac_fn_c_try_compile "$LINENO"; then : 14550 ac_cv_sys_large_files=1; break 14551fi 14552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14553 ac_cv_sys_large_files=unknown 14554 break 14555done 14556fi 14557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14558$as_echo "$ac_cv_sys_large_files" >&6; } 14559case $ac_cv_sys_large_files in #( 14560 no | unknown) ;; 14561 *) 14562cat >>confdefs.h <<_ACEOF 14563#define _LARGE_FILES $ac_cv_sys_large_files 14564_ACEOF 14565;; 14566esac 14567rm -rf conftest* 14568 fi 14569 14570 14571fi 14572 14573 14574 14575 14576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5 14577$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; } 14578cache=_D_LARGEFILE_SOURCE_1 14579if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : 14580 $as_echo_n "(cached) " >&6 14581else 14582 14583echo ' 14584#include <stdio.h> 14585int test() { 14586 int a = fseeko(stdin, 0, 0); 14587 return a; 14588} 14589' > conftest.c 14590echo 'void f(){}' >>conftest.c 14591if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 14592eval "cv_prog_cc_flag_needed_$cache=no" 14593else 14594 14595if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then 14596eval "cv_prog_cc_flag_needed_$cache=yes" 14597else 14598eval "cv_prog_cc_flag_needed_$cache=fail" 14599#echo 'Test with flag fails too!' 14600#cat conftest.c 14601#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 14602#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 14603#exit 1 14604fi 14605 14606fi 14607rm -f conftest conftest.c conftest.o 14608 14609fi 14610 14611if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 14612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14613$as_echo "yes" >&6; } 14614: 14615CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1" 14616else 14617if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 14618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14619$as_echo "no" >&6; } 14620#echo 'Test with flag is no!' 14621#cat conftest.c 14622#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 14623#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 14624#exit 1 14625: 14626 14627else 14628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14629$as_echo "failed" >&6; } 14630: 14631 14632fi 14633fi 14634 14635 14636 14637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 14638$as_echo_n "checking if nonblocking sockets work... " >&6; } 14639if echo $target | grep mingw32 >/dev/null; then 14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 14641$as_echo "no (windows)" >&6; } 14642 14643$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 14644 14645else 14646if test "$cross_compiling" = yes; then : 14647 14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 14649$as_echo "crosscompile(yes)" >&6; } 14650 14651else 14652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14653/* end confdefs.h. */ 14654 14655 14656#include <stdio.h> 14657#include <string.h> 14658#include <stdlib.h> 14659#include <fcntl.h> 14660#include <errno.h> 14661#ifdef HAVE_SYS_TYPES_H 14662#include <sys/types.h> 14663#endif 14664#ifdef HAVE_SYS_SOCKET_H 14665#include <sys/socket.h> 14666#endif 14667#ifdef HAVE_NETINET_IN_H 14668#include <netinet/in.h> 14669#endif 14670#ifdef HAVE_ARPA_INET_H 14671#include <arpa/inet.h> 14672#endif 14673#ifdef HAVE_UNISTD_H 14674#include <unistd.h> 14675#endif 14676#ifdef HAVE_TIME_H 14677#include <time.h> 14678#endif 14679 14680int main(void) 14681{ 14682 int port; 14683 int sfd, cfd; 14684 int num = 10; 14685 int i, p; 14686 struct sockaddr_in a; 14687 /* test if select and nonblocking reads work well together */ 14688 /* open port. 14689 fork child to send 10 messages. 14690 select to read. 14691 then try to nonblocking read the 10 messages 14692 then, nonblocking read must give EAGAIN 14693 */ 14694 14695 port = 12345 + (time(0)%32); 14696 sfd = socket(PF_INET, SOCK_DGRAM, 0); 14697 if(sfd == -1) { 14698 perror("socket"); 14699 return 1; 14700 } 14701 memset(&a, 0, sizeof(a)); 14702 a.sin_family = AF_INET; 14703 a.sin_port = htons(port); 14704 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 14705 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 14706 perror("bind"); 14707 return 1; 14708 } 14709 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 14710 perror("fcntl"); 14711 return 1; 14712 } 14713 14714 cfd = socket(PF_INET, SOCK_DGRAM, 0); 14715 if(cfd == -1) { 14716 perror("client socket"); 14717 return 1; 14718 } 14719 a.sin_port = 0; 14720 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 14721 perror("client bind"); 14722 return 1; 14723 } 14724 a.sin_port = htons(port); 14725 14726 /* no handler, causes exit in 10 seconds */ 14727 alarm(10); 14728 14729 /* send and receive on the socket */ 14730 if((p=fork()) == 0) { 14731 for(i=0; i<num; i++) { 14732 if(sendto(cfd, &i, sizeof(i), 0, 14733 (struct sockaddr*)&a, sizeof(a)) < 0) { 14734 perror("sendto"); 14735 return 1; 14736 } 14737 } 14738 } else { 14739 /* parent */ 14740 fd_set rset; 14741 int x; 14742 if(p == -1) { 14743 perror("fork"); 14744 return 1; 14745 } 14746 FD_ZERO(&rset); 14747 FD_SET(sfd, &rset); 14748 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 14749 perror("select"); 14750 return 1; 14751 } 14752 i = 0; 14753 while(i < num) { 14754 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 14755 if(errno == EAGAIN) 14756 continue; 14757 perror("recv"); 14758 return 1; 14759 } 14760 i++; 14761 } 14762 /* now we want to get EAGAIN: nonblocking goodness */ 14763 errno = 0; 14764 recv(sfd, &x, sizeof(x), 0); 14765 if(errno != EAGAIN) { 14766 perror("trying to recv again"); 14767 return 1; 14768 } 14769 /* EAGAIN encountered */ 14770 } 14771 14772 close(sfd); 14773 close(cfd); 14774 return 0; 14775} 14776 14777_ACEOF 14778if ac_fn_c_try_run "$LINENO"; then : 14779 14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14781$as_echo "yes" >&6; } 14782 14783else 14784 14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14786$as_echo "no" >&6; } 14787 14788$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 14789 14790 14791fi 14792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14793 conftest.$ac_objext conftest.beam conftest.$ac_ext 14794fi 14795 14796fi 14797 14798 14799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 14800$as_echo_n "checking whether mkdir has one arg... " >&6; } 14801cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14802/* end confdefs.h. */ 14803 14804#include <stdio.h> 14805#include <unistd.h> 14806#ifdef HAVE_WINSOCK2_H 14807#include <winsock2.h> 14808#endif 14809#ifdef HAVE_SYS_STAT_H 14810#include <sys/stat.h> 14811#endif 14812 14813int 14814main () 14815{ 14816 14817 (void)mkdir("directory"); 14818 14819 ; 14820 return 0; 14821} 14822_ACEOF 14823if ac_fn_c_try_compile "$LINENO"; then : 14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14825$as_echo "yes" >&6; } 14826 14827$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 14828 14829 14830else 14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14832$as_echo "no" >&6; } 14833 14834fi 14835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14836 14837for ac_func in strptime 14838do : 14839 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 14840if test "x$ac_cv_func_strptime" = xyes; then : 14841 cat >>confdefs.h <<_ACEOF 14842#define HAVE_STRPTIME 1 14843_ACEOF 14844 14845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 14846$as_echo_n "checking whether strptime works... " >&6; } 14847if test c${cross_compiling} = cno; then 14848if test "$cross_compiling" = yes; then : 14849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14851as_fn_error $? "cannot run test program while cross compiling 14852See \`config.log' for more details" "$LINENO" 5; } 14853else 14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14855/* end confdefs.h. */ 14856 14857#define _XOPEN_SOURCE 14858#include <time.h> 14859int main(void) { struct tm tm; char *res; 14860res = 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); 14861if (!res) return 2; 14862res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 14863if (!res) return 1; return 0; } 14864 14865_ACEOF 14866if ac_fn_c_try_run "$LINENO"; then : 14867 eval "ac_cv_c_strptime_works=yes" 14868else 14869 eval "ac_cv_c_strptime_works=no" 14870fi 14871rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14872 conftest.$ac_objext conftest.beam conftest.$ac_ext 14873fi 14874 14875else 14876eval "ac_cv_c_strptime_works=maybe" 14877fi 14878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 14879$as_echo "$ac_cv_c_strptime_works" >&6; } 14880if test $ac_cv_c_strptime_works = no; then 14881case " $LIBOBJS " in 14882 *" strptime.$ac_objext "* ) ;; 14883 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 14884 ;; 14885esac 14886 14887else 14888 14889cat >>confdefs.h <<_ACEOF 14890#define STRPTIME_WORKS 1 14891_ACEOF 14892 14893fi 14894 14895else 14896 case " $LIBOBJS " in 14897 *" strptime.$ac_objext "* ) ;; 14898 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 14899 ;; 14900esac 14901 14902fi 14903done 14904 14905 14906# set memory allocation checking if requested 14907# Check whether --enable-alloc-checks was given. 14908if test "${enable_alloc_checks+set}" = set; then : 14909 enableval=$enable_alloc_checks; 14910fi 14911 14912# Check whether --enable-alloc-lite was given. 14913if test "${enable_alloc_lite+set}" = set; then : 14914 enableval=$enable_alloc_lite; 14915fi 14916 14917# Check whether --enable-alloc-nonregional was given. 14918if test "${enable_alloc_nonregional+set}" = set; then : 14919 enableval=$enable_alloc_nonregional; 14920fi 14921 14922if test x_$enable_alloc_nonregional = x_yes; then 14923 14924$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h 14925 14926fi 14927if test x_$enable_alloc_checks = x_yes; then 14928 14929$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h 14930 14931else 14932 if test x_$enable_alloc_lite = x_yes; then 14933 14934$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h 14935 14936 else 14937 14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 14939$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 14940 if test "$cross_compiling" = yes; then : 14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5 14942$as_echo "no (crosscompile)" >&6; } 14943 case " $LIBOBJS " in 14944 *" malloc.$ac_objext "* ) ;; 14945 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 14946 ;; 14947esac 14948 14949 14950cat >>confdefs.h <<_ACEOF 14951#define malloc rpl_malloc_unbound 14952_ACEOF 14953 14954else 14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14956/* end confdefs.h. */ 14957#if defined STDC_HEADERS || defined HAVE_STDLIB_H 14958#include <stdlib.h> 14959#else 14960char *malloc (); 14961#endif 14962 14963int 14964main () 14965{ 14966 if(malloc(0) != 0) return 1; 14967 ; 14968 return 0; 14969} 14970 14971_ACEOF 14972if ac_fn_c_try_run "$LINENO"; then : 14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14974$as_echo "no" >&6; } 14975 case " $LIBOBJS " in 14976 *" malloc.$ac_objext "* ) ;; 14977 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 14978 ;; 14979esac 14980 14981 14982cat >>confdefs.h <<_ACEOF 14983#define malloc rpl_malloc_unbound 14984_ACEOF 14985 14986else 14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14988$as_echo "yes" >&6; } 14989 14990$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 14991 14992fi 14993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14994 conftest.$ac_objext conftest.beam conftest.$ac_ext 14995fi 14996 14997 14998 fi 14999fi 15000 15001# check windows threads (we use them, not pthreads, on windows). 15002if test "$on_mingw" = "yes"; then 15003# check windows threads 15004 for ac_header in windows.h 15005do : 15006 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 15007" 15008if test "x$ac_cv_header_windows_h" = xyes; then : 15009 cat >>confdefs.h <<_ACEOF 15010#define HAVE_WINDOWS_H 1 15011_ACEOF 15012 15013fi 15014 15015done 15016 15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5 15018$as_echo_n "checking for CreateThread... " >&6; } 15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15020/* end confdefs.h. */ 15021 15022#ifdef HAVE_WINDOWS_H 15023#include <windows.h> 15024#endif 15025 15026int 15027main () 15028{ 15029 15030 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 15031 15032 ; 15033 return 0; 15034} 15035_ACEOF 15036if ac_fn_c_try_compile "$LINENO"; then : 15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15038$as_echo "yes" >&6; } 15039 15040$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h 15041 15042 15043else 15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15045$as_echo "no" >&6; } 15046 15047fi 15048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15049 15050else 15051# not on mingw, check thread libraries. 15052 15053# check for thread library. 15054# check this first, so that the pthread lib does not get linked in via 15055# libssl or libpython, and thus distorts the tests, and we end up using 15056# the non-threadsafe C libraries. 15057 15058# Check whether --with-pthreads was given. 15059if test "${with_pthreads+set}" = set; then : 15060 withval=$with_pthreads; 15061else 15062 withval="yes" 15063fi 15064 15065ub_have_pthreads=no 15066if test x_$withval != x_no; then 15067 15068 15069 15070ac_ext=c 15071ac_cpp='$CPP $CPPFLAGS' 15072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15074ac_compiler_gnu=$ac_cv_c_compiler_gnu 15075 15076acx_pthread_ok=no 15077 15078# We used to check for pthread.h first, but this fails if pthread.h 15079# requires special compiler flags (e.g. on True64 or Sequent). 15080# It gets checked for in the link test anyway. 15081 15082# First of all, check if the user has set any of the PTHREAD_LIBS, 15083# etcetera environment variables, and if threads linking works using 15084# them: 15085if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 15086 save_CFLAGS="$CFLAGS" 15087 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15088 save_LIBS="$LIBS" 15089 LIBS="$PTHREAD_LIBS $LIBS" 15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 15091$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15093/* end confdefs.h. */ 15094 15095/* Override any GCC internal prototype to avoid an error. 15096 Use char because int might match the return type of a GCC 15097 builtin and then its argument prototype would still apply. */ 15098#ifdef __cplusplus 15099extern "C" 15100#endif 15101char pthread_join (); 15102int 15103main () 15104{ 15105return pthread_join (); 15106 ; 15107 return 0; 15108} 15109_ACEOF 15110if ac_fn_c_try_link "$LINENO"; then : 15111 acx_pthread_ok=yes 15112fi 15113rm -f core conftest.err conftest.$ac_objext \ 15114 conftest$ac_exeext conftest.$ac_ext 15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15116$as_echo "$acx_pthread_ok" >&6; } 15117 if test x"$acx_pthread_ok" = xno; then 15118 PTHREAD_LIBS="" 15119 PTHREAD_CFLAGS="" 15120 fi 15121 LIBS="$save_LIBS" 15122 CFLAGS="$save_CFLAGS" 15123fi 15124 15125# We must check for the threads library under a number of different 15126# names; the ordering is very important because some systems 15127# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15128# libraries is broken (non-POSIX). 15129 15130# Create a list of thread flags to try. Items starting with a "-" are 15131# C compiler flags, and other items are library names, except for "none" 15132# which indicates that we try without any flags at all, and "pthread-config" 15133# which is a program returning the flags for the Pth emulation library. 15134 15135acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15136 15137# The ordering *is* (sometimes) important. Some notes on the 15138# individual items follow: 15139 15140# pthreads: AIX (must check this before -lpthread) 15141# none: in case threads are in libc; should be tried before -Kthread and 15142# other compiler flags to prevent continual compiler warnings 15143# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15144# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15145# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15146# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15147# -pthreads: Solaris/gcc 15148# -mthreads: Mingw32/gcc, Lynx/gcc 15149# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15150# doesn't hurt to check since this sometimes defines pthreads too; 15151# also defines -D_REENTRANT) 15152# ... -mt is also the pthreads flag for HP/aCC 15153# pthread: Linux, etcetera 15154# --thread-safe: KAI C++ 15155# pthread-config: use pthread-config program (for GNU Pth library) 15156 15157case "${host_cpu}-${host_os}" in 15158 *solaris*) 15159 15160 # On Solaris (at least, for some versions), libc contains stubbed 15161 # (non-functional) versions of the pthreads routines, so link-based 15162 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15163 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15164 # a function called by this macro, so we could check for that, but 15165 # who knows whether they'll stub that too in a future libc.) So, 15166 # we'll just look for -pthreads and -lpthread first: 15167 15168 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 15169 ;; 15170esac 15171 15172if test x"$acx_pthread_ok" = xno; then 15173for flag in $acx_pthread_flags; do 15174 15175 case $flag in 15176 none) 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15178$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15179 ;; 15180 15181 -*) 15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15183$as_echo_n "checking whether pthreads work with $flag... " >&6; } 15184 PTHREAD_CFLAGS="$flag" 15185 ;; 15186 15187 pthread-config) 15188 # Extract the first word of "pthread-config", so it can be a program name with args. 15189set dummy pthread-config; ac_word=$2 15190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15191$as_echo_n "checking for $ac_word... " >&6; } 15192if ${ac_cv_prog_acx_pthread_config+:} false; then : 15193 $as_echo_n "(cached) " >&6 15194else 15195 if test -n "$acx_pthread_config"; then 15196 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 15197else 15198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15199for as_dir in $PATH 15200do 15201 IFS=$as_save_IFS 15202 test -z "$as_dir" && as_dir=. 15203 for ac_exec_ext in '' $ac_executable_extensions; do 15204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15205 ac_cv_prog_acx_pthread_config="yes" 15206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15207 break 2 15208 fi 15209done 15210 done 15211IFS=$as_save_IFS 15212 15213 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 15214fi 15215fi 15216acx_pthread_config=$ac_cv_prog_acx_pthread_config 15217if test -n "$acx_pthread_config"; then 15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 15219$as_echo "$acx_pthread_config" >&6; } 15220else 15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15222$as_echo "no" >&6; } 15223fi 15224 15225 15226 if test x"$acx_pthread_config" = xno; then continue; fi 15227 PTHREAD_CFLAGS="`pthread-config --cflags`" 15228 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15229 ;; 15230 15231 *) 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15233$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15234 PTHREAD_LIBS="-l$flag" 15235 ;; 15236 esac 15237 15238 save_LIBS="$LIBS" 15239 save_CFLAGS="$CFLAGS" 15240 LIBS="$PTHREAD_LIBS $LIBS" 15241 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15242 15243 # Check for various functions. We must include pthread.h, 15244 # since some functions may be macros. (On the Sequent, we 15245 # need a special flag -Kthread to make this header compile.) 15246 # We check for pthread_join because it is in -lpthread on IRIX 15247 # while pthread_create is in libc. We check for pthread_attr_init 15248 # due to DEC craziness with -lpthreads. We check for 15249 # pthread_cleanup_push because it is one of the few pthread 15250 # functions on Solaris that doesn't have a non-functional libc stub. 15251 # We try pthread_create on general principles. 15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15253/* end confdefs.h. */ 15254#include <pthread.h> 15255int 15256main () 15257{ 15258pthread_t th; pthread_join(th, 0); 15259 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15260 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15261 ; 15262 return 0; 15263} 15264_ACEOF 15265if ac_fn_c_try_link "$LINENO"; then : 15266 acx_pthread_ok=yes 15267fi 15268rm -f core conftest.err conftest.$ac_objext \ 15269 conftest$ac_exeext conftest.$ac_ext 15270 15271 LIBS="$save_LIBS" 15272 CFLAGS="$save_CFLAGS" 15273 15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15275$as_echo "$acx_pthread_ok" >&6; } 15276 if test "x$acx_pthread_ok" = xyes; then 15277 break; 15278 fi 15279 15280 PTHREAD_LIBS="" 15281 PTHREAD_CFLAGS="" 15282done 15283fi 15284 15285# Various other checks: 15286if test "x$acx_pthread_ok" = xyes; then 15287 save_LIBS="$LIBS" 15288 LIBS="$PTHREAD_LIBS $LIBS" 15289 save_CFLAGS="$CFLAGS" 15290 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15291 15292 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15294$as_echo_n "checking for joinable pthread attribute... " >&6; } 15295 attr_name=unknown 15296 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15298/* end confdefs.h. */ 15299#include <pthread.h> 15300int 15301main () 15302{ 15303int attr=$attr; return attr; 15304 ; 15305 return 0; 15306} 15307_ACEOF 15308if ac_fn_c_try_link "$LINENO"; then : 15309 attr_name=$attr; break 15310fi 15311rm -f core conftest.err conftest.$ac_objext \ 15312 conftest$ac_exeext conftest.$ac_ext 15313 done 15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15315$as_echo "$attr_name" >&6; } 15316 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15317 15318cat >>confdefs.h <<_ACEOF 15319#define PTHREAD_CREATE_JOINABLE $attr_name 15320_ACEOF 15321 15322 fi 15323 15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15325$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15326 flag=no 15327 case "${host_cpu}-${host_os}" in 15328 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 15329 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 15330 esac 15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15332$as_echo "${flag}" >&6; } 15333 if test "x$flag" != xno; then 15334 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15335 fi 15336 15337 LIBS="$save_LIBS" 15338 CFLAGS="$save_CFLAGS" 15339 15340 # More AIX lossage: must compile with xlc_r or cc_r 15341 if test x"$GCC" != xyes; then 15342 for ac_prog in xlc_r cc_r 15343do 15344 # Extract the first word of "$ac_prog", so it can be a program name with args. 15345set dummy $ac_prog; ac_word=$2 15346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15347$as_echo_n "checking for $ac_word... " >&6; } 15348if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15349 $as_echo_n "(cached) " >&6 15350else 15351 if test -n "$PTHREAD_CC"; then 15352 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15353else 15354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15355for as_dir in $PATH 15356do 15357 IFS=$as_save_IFS 15358 test -z "$as_dir" && as_dir=. 15359 for ac_exec_ext in '' $ac_executable_extensions; do 15360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15361 ac_cv_prog_PTHREAD_CC="$ac_prog" 15362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15363 break 2 15364 fi 15365done 15366 done 15367IFS=$as_save_IFS 15368 15369fi 15370fi 15371PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15372if test -n "$PTHREAD_CC"; then 15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15374$as_echo "$PTHREAD_CC" >&6; } 15375else 15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15377$as_echo "no" >&6; } 15378fi 15379 15380 15381 test -n "$PTHREAD_CC" && break 15382done 15383test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 15384 15385 else 15386 PTHREAD_CC=$CC 15387 fi 15388else 15389 PTHREAD_CC="$CC" 15390fi 15391 15392 15393 15394 15395 15396# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15397if test x"$acx_pthread_ok" = xyes; then 15398 15399 15400$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 15401 15402 LIBS="$PTHREAD_LIBS $LIBS" 15403 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15404 CC="$PTHREAD_CC" 15405 ub_have_pthreads=yes 15406 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h> 15407" 15408if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then : 15409 15410cat >>confdefs.h <<_ACEOF 15411#define HAVE_PTHREAD_SPINLOCK_T 1 15412_ACEOF 15413 15414 15415fi 15416ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 15417" 15418if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 15419 15420cat >>confdefs.h <<_ACEOF 15421#define HAVE_PTHREAD_RWLOCK_T 1 15422_ACEOF 15423 15424 15425fi 15426 15427 15428 : 15429else 15430 acx_pthread_ok=no 15431 15432fi 15433ac_ext=c 15434ac_cpp='$CPP $CPPFLAGS' 15435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15437ac_compiler_gnu=$ac_cv_c_compiler_gnu 15438 15439 15440fi 15441 15442# check solaris thread library 15443 15444# Check whether --with-solaris-threads was given. 15445if test "${with_solaris_threads+set}" = set; then : 15446 withval=$with_solaris_threads; 15447else 15448 withval="no" 15449fi 15450 15451ub_have_sol_threads=no 15452if test x_$withval != x_no; then 15453 if test x_$ub_have_pthreads != x_no; then 15454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5 15455$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;} 15456 else 15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5 15458$as_echo_n "checking for library containing thr_create... " >&6; } 15459if ${ac_cv_search_thr_create+:} false; then : 15460 $as_echo_n "(cached) " >&6 15461else 15462 ac_func_search_save_LIBS=$LIBS 15463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15464/* end confdefs.h. */ 15465 15466/* Override any GCC internal prototype to avoid an error. 15467 Use char because int might match the return type of a GCC 15468 builtin and then its argument prototype would still apply. */ 15469#ifdef __cplusplus 15470extern "C" 15471#endif 15472char thr_create (); 15473int 15474main () 15475{ 15476return thr_create (); 15477 ; 15478 return 0; 15479} 15480_ACEOF 15481for ac_lib in '' thread; do 15482 if test -z "$ac_lib"; then 15483 ac_res="none required" 15484 else 15485 ac_res=-l$ac_lib 15486 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15487 fi 15488 if ac_fn_c_try_link "$LINENO"; then : 15489 ac_cv_search_thr_create=$ac_res 15490fi 15491rm -f core conftest.err conftest.$ac_objext \ 15492 conftest$ac_exeext 15493 if ${ac_cv_search_thr_create+:} false; then : 15494 break 15495fi 15496done 15497if ${ac_cv_search_thr_create+:} false; then : 15498 15499else 15500 ac_cv_search_thr_create=no 15501fi 15502rm conftest.$ac_ext 15503LIBS=$ac_func_search_save_LIBS 15504fi 15505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5 15506$as_echo "$ac_cv_search_thr_create" >&6; } 15507ac_res=$ac_cv_search_thr_create 15508if test "$ac_res" != no; then : 15509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15510 15511 15512$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h 15513 15514 15515 15516 15517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5 15518$as_echo_n "checking whether $CC supports -mt... " >&6; } 15519cache=`echo mt | sed 'y%.=/+-%___p_%'` 15520if eval \${cv_prog_cc_flag_$cache+:} false; then : 15521 $as_echo_n "(cached) " >&6 15522else 15523 15524echo 'void f(){}' >conftest.c 15525if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then 15526eval "cv_prog_cc_flag_$cache=yes" 15527else 15528eval "cv_prog_cc_flag_$cache=no" 15529fi 15530rm -f conftest conftest.o conftest.c 15531 15532fi 15533 15534if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 15535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15536$as_echo "yes" >&6; } 15537: 15538CFLAGS="$CFLAGS -mt" 15539else 15540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15541$as_echo "no" >&6; } 15542: 15543CFLAGS="$CFLAGS -D_REENTRANT" 15544fi 15545 15546 ub_have_sol_threads=yes 15547 15548else 15549 15550 as_fn_error $? "no solaris threads found." "$LINENO" 5 15551 15552fi 15553 15554 fi 15555fi 15556 15557fi # end of non-mingw check of thread libraries 15558 15559# Check for PyUnbound 15560 15561# Check whether --with-pyunbound was given. 15562if test "${with_pyunbound+set}" = set; then : 15563 withval=$with_pyunbound; 15564else 15565 withval="no" 15566fi 15567 15568 15569ub_test_python=no 15570ub_with_pyunbound=no 15571if test x_$withval != x_no; then 15572 ub_with_pyunbound=yes 15573 ub_test_python=yes 15574fi 15575 15576# Check for Python module 15577 15578# Check whether --with-pythonmodule was given. 15579if test "${with_pythonmodule+set}" = set; then : 15580 withval=$with_pythonmodule; 15581else 15582 withval="no" 15583fi 15584 15585 15586ub_with_pythonmod=no 15587if test x_$withval != x_no; then 15588 ub_with_pythonmod=yes 15589 ub_test_python=yes 15590fi 15591 15592# Check for Python & SWIG only on PyUnbound or PyModule 15593if test x_$ub_test_python != x_no; then 15594 15595 # Check for Python 15596 ub_have_python=no 15597 ac_save_LIBS="$LIBS" 15598 # 15599 # Allow the use of a (user set) custom python version 15600 # 15601 15602 15603 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 15604set dummy python$PYTHON_VERSION; ac_word=$2 15605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15606$as_echo_n "checking for $ac_word... " >&6; } 15607if ${ac_cv_path_PYTHON+:} false; then : 15608 $as_echo_n "(cached) " >&6 15609else 15610 case $PYTHON in 15611 [\\/]* | ?:[\\/]*) 15612 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 15613 ;; 15614 *) 15615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15616for as_dir in $PATH 15617do 15618 IFS=$as_save_IFS 15619 test -z "$as_dir" && as_dir=. 15620 for ac_exec_ext in '' $ac_executable_extensions; do 15621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15622 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 15623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15624 break 2 15625 fi 15626done 15627 done 15628IFS=$as_save_IFS 15629 15630 ;; 15631esac 15632fi 15633PYTHON=$ac_cv_path_PYTHON 15634if test -n "$PYTHON"; then 15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 15636$as_echo "$PYTHON" >&6; } 15637else 15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15639$as_echo "no" >&6; } 15640fi 15641 15642 15643 if test -z "$PYTHON"; then 15644 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 15645 PYTHON_VERSION="" 15646 fi 15647 15648 if test -z "$PYTHON_VERSION"; then 15649 PYTHON_VERSION=`$PYTHON -c "import sys, string; \ 15650 print string.split(sys.version)[0]"` 15651 fi 15652 15653 # 15654 # Check for a version of Python >= 2.1.0 15655 # 15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5 15657$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; } 15658 ac_supports_python_ver=`$PYTHON -c "import sys, string; \ 15659 ver = string.split(sys.version)[0]; \ 15660 print ver >= '2.1.0'"` 15661 if test "$ac_supports_python_ver" != "True"; then 15662 if test -z "$PYTHON_NOVERSIONCHECK"; then 15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15664$as_echo "no" >&6; } 15665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15667as_fn_error $? " 15668This version of the AC_PYTHON_DEVEL macro 15669doesn't work properly with versions of Python before 156702.1.0. You may need to re-run configure, setting the 15671variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG, 15672PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. 15673Moreover, to disable this check, set PYTHON_NOVERSIONCHECK 15674to something else than an empty string. 15675 15676See \`config.log' for more details" "$LINENO" 5; } 15677 else 15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5 15679$as_echo "skip at user request" >&6; } 15680 fi 15681 else 15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15683$as_echo "yes" >&6; } 15684 fi 15685 15686 # 15687 # if the macro parameter ``version'' is set, honour it 15688 # 15689 if test -n ""; then 15690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5 15691$as_echo_n "checking for a version of Python ... " >&6; } 15692 ac_supports_python_ver=`$PYTHON -c "import sys, string; \ 15693 ver = string.split(sys.version)[0]; \ 15694 print ver "` 15695 if test "$ac_supports_python_ver" = "True"; then 15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15697$as_echo "yes" >&6; } 15698 else 15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15700$as_echo "no" >&6; } 15701 as_fn_error $? "this package requires Python . 15702If you have it installed, but it isn't the default Python 15703interpreter in your system path, please pass the PYTHON_VERSION 15704variable to configure. See \`\`configure --help'' for reference. 15705" "$LINENO" 5 15706 PYTHON_VERSION="" 15707 fi 15708 fi 15709 15710 # 15711 # Check if you have distutils, else fail 15712 # 15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 15714$as_echo_n "checking for the distutils Python package... " >&6; } 15715 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 15716 if test -z "$ac_distutils_result"; then 15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15718$as_echo "yes" >&6; } 15719 else 15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15721$as_echo "no" >&6; } 15722 as_fn_error $? "cannot import Python module \"distutils\". 15723Please check your Python installation. The error was: 15724$ac_distutils_result" "$LINENO" 5 15725 PYTHON_VERSION="" 15726 fi 15727 15728 # 15729 # Check for Python include path 15730 # 15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 15732$as_echo_n "checking for Python include path... " >&6; } 15733 if test -z "$PYTHON_CPPFLAGS"; then 15734 python_path=`$PYTHON -c "import distutils.sysconfig; \ 15735 print distutils.sysconfig.get_python_inc();"` 15736 if test -n "${python_path}"; then 15737 python_path="-I$python_path" 15738 fi 15739 PYTHON_CPPFLAGS=$python_path 15740 fi 15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 15742$as_echo "$PYTHON_CPPFLAGS" >&6; } 15743 15744 15745 # 15746 # Check for Python library path 15747 # 15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 15749$as_echo_n "checking for Python library path... " >&6; } 15750 if test -z "$PYTHON_LDFLAGS"; then 15751 # (makes two attempts to ensure we've got a version number 15752 # from the interpreter) 15753 py_version=`$PYTHON -c "from distutils.sysconfig import *; \ 15754 from string import join; \ 15755 print join(get_config_vars('VERSION'))"` 15756 if test "$py_version" = "None"; then 15757 if test -n "$PYTHON_VERSION"; then 15758 py_version=$PYTHON_VERSION 15759 else 15760 py_version=`$PYTHON -c "import sys; \ 15761 print sys.version[:3]"` 15762 fi 15763 fi 15764 15765 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \ 15766 from string import join; \ 15767 print '-L' + get_python_lib(0,1), \ 15768 '-L' + os.path.dirname(get_python_lib(0,1)), \ 15769 '-lpython';"`$py_version 15770 fi 15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 15772$as_echo "$PYTHON_LDFLAGS" >&6; } 15773 15774 15775 # 15776 # Check for site packages 15777 # 15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 15779$as_echo_n "checking for Python site-packages path... " >&6; } 15780 if test -z "$PYTHON_SITE_PKG"; then 15781 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 15782 print distutils.sysconfig.get_python_lib(1,0);"` 15783 fi 15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 15785$as_echo "$PYTHON_SITE_PKG" >&6; } 15786 15787 15788 # 15789 # libraries which must be linked in when embedding 15790 # 15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5 15792$as_echo_n "checking python extra libraries... " >&6; } 15793 if test -z "$PYTHON_EXTRA_LIBS"; then 15794 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ 15795 conf = distutils.sysconfig.get_config_var; \ 15796 print conf('LOCALMODLIBS'), conf('LIBS')"` 15797 fi 15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5 15799$as_echo "$PYTHON_EXTRA_LIBS" >&6; } 15800 15801 15802 # 15803 # linking flags needed when embedding 15804 # 15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5 15806$as_echo_n "checking python extra linking flags... " >&6; } 15807 if test -z "$PYTHON_EXTRA_LDFLAGS"; then 15808 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ 15809 conf = distutils.sysconfig.get_config_var; \ 15810 print conf('LINKFORSHARED')"` 15811 fi 15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5 15813$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; } 15814 15815 15816 # 15817 # final check to see if everything compiles alright 15818 # 15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 15820$as_echo_n "checking consistency of all components of python development environment... " >&6; } 15821 ac_ext=c 15822ac_cpp='$CPP $CPPFLAGS' 15823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15825ac_compiler_gnu=$ac_cv_c_compiler_gnu 15826 15827 # save current global flags 15828 ac_save_LIBS="$LIBS" 15829 ac_save_CPPFLAGS="$CPPFLAGS" 15830 15831 LIBS="$LIBS $PYTHON_LDFLAGS" 15832 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 15833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15834/* end confdefs.h. */ 15835 15836 #include <Python.h> 15837 15838int 15839main () 15840{ 15841 15842 Py_Initialize(); 15843 15844 ; 15845 return 0; 15846} 15847_ACEOF 15848if ac_fn_c_try_link "$LINENO"; then : 15849 pythonexists=yes 15850else 15851 pythonexists=no 15852fi 15853rm -f core conftest.err conftest.$ac_objext \ 15854 conftest$ac_exeext conftest.$ac_ext 15855 15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 15857$as_echo "$pythonexists" >&6; } 15858 15859 if test ! "$pythonexists" = "yes"; then 15860 as_fn_error $? " 15861 Could not link test program to Python. Maybe the main Python library has been 15862 installed in some non-standard library path. If so, pass it to configure, 15863 via the LDFLAGS environment variable. 15864 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 15865 ============================================================================ 15866 ERROR! 15867 You probably have to install the development version of the Python package 15868 for your distribution. The exact name of this package varies among them. 15869 ============================================================================ 15870 " "$LINENO" 5 15871 PYTHON_VERSION="" 15872 fi 15873 ac_ext=c 15874ac_cpp='$CPP $CPPFLAGS' 15875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15877ac_compiler_gnu=$ac_cv_c_compiler_gnu 15878 15879 # turn back to default flags 15880 CPPFLAGS="$ac_save_CPPFLAGS" 15881 LIBS="$ac_save_LIBS" 15882 15883 # 15884 # all done! 15885 # 15886 15887 if test ! -z "$PYTHON_VERSION"; then 15888 if test `$PYTHON -c "print '$PYTHON_VERSION' >= '2.4.0'"` = "False"; then 15889 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5 15890 fi 15891 15892 # Have Python 15893 15894$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 15895 15896 LIBS="$PYTHON_LDFLAGS $LIBS" 15897 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 15898 ub_have_python=yes 15899 15900 # Check for SWIG 15901 ub_have_swig=no 15902 15903 # Extract the first word of "swig", so it can be a program name with args. 15904set dummy swig; ac_word=$2 15905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15906$as_echo_n "checking for $ac_word... " >&6; } 15907if ${ac_cv_path_SWIG+:} false; then : 15908 $as_echo_n "(cached) " >&6 15909else 15910 case $SWIG in 15911 [\\/]* | ?:[\\/]*) 15912 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 15913 ;; 15914 *) 15915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15916for as_dir in $PATH 15917do 15918 IFS=$as_save_IFS 15919 test -z "$as_dir" && as_dir=. 15920 for ac_exec_ext in '' $ac_executable_extensions; do 15921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15922 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 15923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15924 break 2 15925 fi 15926done 15927 done 15928IFS=$as_save_IFS 15929 15930 ;; 15931esac 15932fi 15933SWIG=$ac_cv_path_SWIG 15934if test -n "$SWIG"; then 15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 15936$as_echo "$SWIG" >&6; } 15937else 15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15939$as_echo "no" >&6; } 15940fi 15941 15942 15943 if test -z "$SWIG" ; then 15944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5 15945$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;} 15946 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false' 15947 elif test -n "" ; then 15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5 15949$as_echo_n "checking for SWIG version... " >&6; } 15950 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'` 15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 15952$as_echo "$swig_version" >&6; } 15953 if test -n "$swig_version" ; then 15954 # Calculate the required version number components 15955 required= 15956 required_major=`echo $required | sed 's/[^0-9].*//'` 15957 if test -z "$required_major" ; then 15958 required_major=0 15959 fi 15960 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 15961 required_minor=`echo $required | sed 's/[^0-9].*//'` 15962 if test -z "$required_minor" ; then 15963 required_minor=0 15964 fi 15965 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 15966 required_patch=`echo $required | sed 's/[^0-9].*//'` 15967 if test -z "$required_patch" ; then 15968 required_patch=0 15969 fi 15970 # Calculate the available version number components 15971 available=$swig_version 15972 available_major=`echo $available | sed 's/[^0-9].*//'` 15973 if test -z "$available_major" ; then 15974 available_major=0 15975 fi 15976 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 15977 available_minor=`echo $available | sed 's/[^0-9].*//'` 15978 if test -z "$available_minor" ; then 15979 available_minor=0 15980 fi 15981 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 15982 available_patch=`echo $available | sed 's/[^0-9].*//'` 15983 if test -z "$available_patch" ; then 15984 available_patch=0 15985 fi 15986 if test $available_major -ne $required_major \ 15987 -o $available_minor -ne $required_minor \ 15988 -o $available_patch -lt $required_patch ; then 15989 { $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 15990$as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;} 15991 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false' 15992 else 15993 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5 15994$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;} 15995 SWIG_LIB=`$SWIG -swiglib` 15996 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5 15997$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;} 15998 fi 15999 else 16000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 16001$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 16002 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false' 16003 fi 16004 fi 16005 16006 16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5 16008$as_echo_n "checking SWIG... " >&6; } 16009 if test ! -x "$SWIG"; then 16010 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5 16011 else 16012 16013$as_echo "#define HAVE_SWIG 1" >>confdefs.h 16014 16015 swig="$SWIG" 16016 16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 16018$as_echo "present" >&6; } 16019 16020 # If have Python & SWIG 16021 # Declare PythonMod 16022 if test x_$ub_with_pythonmod != x_no; then 16023 16024$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h 16025 16026 WITH_PYTHONMODULE=yes 16027 16028 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo" 16029 16030 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h' 16031 16032 PYTHONMOD_INSTALL=pythonmod-install 16033 16034 PYTHONMOD_UNINSTALL=pythonmod-uninstall 16035 16036 fi 16037 16038 # Declare PyUnbound 16039 if test x_$ub_with_pyunbound != x_no; then 16040 16041$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h 16042 16043 WITH_PYUNBOUND=yes 16044 16045 PYUNBOUND_OBJ="libunbound_wrap.lo" 16046 16047 PYUNBOUND_TARGET="_unbound.la" 16048 16049 PYUNBOUND_INSTALL=pyunbound-install 16050 16051 PYUNBOUND_UNINSTALL=pyunbound-uninstall 16052 16053 fi 16054 fi 16055 else 16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5 16057$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; } 16058 ub_with_pyunbound=no 16059 ub_with_pythonmod=no 16060 fi 16061fi 16062 16063if test "`uname`" = "NetBSD"; then 16064 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_' 16065 16066fi 16067CONFIG_DATE=`date +%Y%m%d` 16068 16069 16070# Checks for libraries. 16071 16072# libnss 16073USE_NSS="no" 16074 16075# Check whether --with-nss was given. 16076if test "${with_nss+set}" = set; then : 16077 withval=$with_nss; 16078 USE_NSS="yes" 16079 16080$as_echo "#define HAVE_NSS 1" >>confdefs.h 16081 16082 if test "$withval" != "" -a "$withval" != "yes"; then 16083 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3" 16084 LDFLAGS="$LDFLAGS -L$withval/lib" 16085 16086 if test "x$enable_rpath" = xyes; then 16087 if echo "$withval/lib" | grep "^/" >/dev/null; then 16088 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 16089 fi 16090 fi 16091 16092 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" 16093 else 16094 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" 16095 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" 16096 fi 16097 LIBS="$LIBS -lnss3 -lnspr4" 16098 16099 16100fi 16101 16102 16103# openssl 16104if test $USE_NSS = "no"; then 16105 16106 16107# Check whether --with-ssl was given. 16108if test "${with_ssl+set}" = set; then : 16109 withval=$with_ssl; 16110 16111else 16112 16113 withval="yes" 16114 16115fi 16116 16117 if test x_$withval = x_no; then 16118 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5 16119 fi 16120 16121 withval=$withval 16122 if test x_$withval != x_no; then 16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 16124$as_echo_n "checking for SSL... " >&6; } 16125 if test x_$withval = x_ -o x_$withval = x_yes; then 16126 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 16127 fi 16128 for dir in $withval; do 16129 ssldir="$dir" 16130 if test -f "$dir/include/openssl/ssl.h"; then 16131 found_ssl="yes" 16132 16133cat >>confdefs.h <<_ACEOF 16134#define HAVE_SSL /**/ 16135_ACEOF 16136 16137 if test "$ssldir" != "/usr"; then 16138 CPPFLAGS="$CPPFLAGS -I$ssldir/include" 16139 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include" 16140 fi 16141 break; 16142 fi 16143 done 16144 if test x_$found_ssl != x_yes; then 16145 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 16146 else 16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 16148$as_echo "found in $ssldir" >&6; } 16149 HAVE_SSL=yes 16150 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then 16151 LDFLAGS="$LDFLAGS -L$ssldir/lib" 16152 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib" 16153 16154 if test "x$enable_rpath" = xyes; then 16155 if echo "$ssldir/lib" | grep "^/" >/dev/null; then 16156 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib" 16157 fi 16158 fi 16159 16160 fi 16161 16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5 16163$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; } 16164 LIBS="$LIBS -lcrypto" 16165 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16167/* end confdefs.h. */ 16168 16169int 16170main () 16171{ 16172 16173 int HMAC_CTX_init(void); 16174 (void)HMAC_CTX_init(); 16175 16176 ; 16177 return 0; 16178} 16179_ACEOF 16180if ac_fn_c_try_link "$LINENO"; then : 16181 16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16183$as_echo "yes" >&6; } 16184 16185$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16186 16187 16188else 16189 16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16191$as_echo "no" >&6; } 16192 # check if -lwsock32 or -lgdi32 are needed. 16193 BAKLIBS="$LIBS" 16194 BAKSSLLIBS="$LIBSSL_LIBS" 16195 LIBS="$LIBS -lgdi32" 16196 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32" 16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 16198$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; } 16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16200/* end confdefs.h. */ 16201 16202int 16203main () 16204{ 16205 16206 int HMAC_CTX_init(void); 16207 (void)HMAC_CTX_init(); 16208 16209 ; 16210 return 0; 16211} 16212_ACEOF 16213if ac_fn_c_try_link "$LINENO"; then : 16214 16215 16216$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16217 16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16219$as_echo "yes" >&6; } 16220 16221else 16222 16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16224$as_echo "no" >&6; } 16225 LIBS="$BAKLIBS" 16226 LIBSSL_LIBS="$BAKSSLLIBS" 16227 LIBS="$LIBS -ldl" 16228 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 16230$as_echo_n "checking if -lcrypto needs -ldl... " >&6; } 16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16232/* end confdefs.h. */ 16233 16234int 16235main () 16236{ 16237 16238 int HMAC_CTX_init(void); 16239 (void)HMAC_CTX_init(); 16240 16241 ; 16242 return 0; 16243} 16244_ACEOF 16245if ac_fn_c_try_link "$LINENO"; then : 16246 16247 16248$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h 16249 16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16251$as_echo "yes" >&6; } 16252 16253else 16254 16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16256$as_echo "no" >&6; } 16257 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 16258 16259fi 16260rm -f core conftest.err conftest.$ac_objext \ 16261 conftest$ac_exeext conftest.$ac_ext 16262 16263fi 16264rm -f core conftest.err conftest.$ac_objext \ 16265 conftest$ac_exeext conftest.$ac_ext 16266 16267fi 16268rm -f core conftest.err conftest.$ac_objext \ 16269 conftest$ac_exeext conftest.$ac_ext 16270 fi 16271 16272 16273 # openssl engine functionality needs dlopen(). 16274 BAKLIBS="$LIBS" 16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16276$as_echo_n "checking for library containing dlopen... " >&6; } 16277if ${ac_cv_search_dlopen+:} false; then : 16278 $as_echo_n "(cached) " >&6 16279else 16280 ac_func_search_save_LIBS=$LIBS 16281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16282/* end confdefs.h. */ 16283 16284/* Override any GCC internal prototype to avoid an error. 16285 Use char because int might match the return type of a GCC 16286 builtin and then its argument prototype would still apply. */ 16287#ifdef __cplusplus 16288extern "C" 16289#endif 16290char dlopen (); 16291int 16292main () 16293{ 16294return dlopen (); 16295 ; 16296 return 0; 16297} 16298_ACEOF 16299for ac_lib in '' dl; do 16300 if test -z "$ac_lib"; then 16301 ac_res="none required" 16302 else 16303 ac_res=-l$ac_lib 16304 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16305 fi 16306 if ac_fn_c_try_link "$LINENO"; then : 16307 ac_cv_search_dlopen=$ac_res 16308fi 16309rm -f core conftest.err conftest.$ac_objext \ 16310 conftest$ac_exeext 16311 if ${ac_cv_search_dlopen+:} false; then : 16312 break 16313fi 16314done 16315if ${ac_cv_search_dlopen+:} false; then : 16316 16317else 16318 ac_cv_search_dlopen=no 16319fi 16320rm conftest.$ac_ext 16321LIBS=$ac_func_search_save_LIBS 16322fi 16323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16324$as_echo "$ac_cv_search_dlopen" >&6; } 16325ac_res=$ac_cv_search_dlopen 16326if test "$ac_res" != no; then : 16327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16328 16329fi 16330 16331 if test "$LIBS" != "$BAKLIBS"; then 16332 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 16333 fi 16334 fi 16335for ac_header in openssl/ssl.h 16336do : 16337 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 16338" 16339if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 16340 cat >>confdefs.h <<_ACEOF 16341#define HAVE_OPENSSL_SSL_H 1 16342_ACEOF 16343 16344fi 16345 16346done 16347 16348for ac_header in openssl/err.h 16349do : 16350 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 16351" 16352if test "x$ac_cv_header_openssl_err_h" = xyes; then : 16353 cat >>confdefs.h <<_ACEOF 16354#define HAVE_OPENSSL_ERR_H 1 16355_ACEOF 16356 16357fi 16358 16359done 16360 16361for ac_header in openssl/rand.h 16362do : 16363 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 16364" 16365if test "x$ac_cv_header_openssl_rand_h" = xyes; then : 16366 cat >>confdefs.h <<_ACEOF 16367#define HAVE_OPENSSL_RAND_H 1 16368_ACEOF 16369 16370fi 16371 16372done 16373 16374 16375 16376 16377# check if libssl needs libdl 16378BAKLIBS="$LIBS" 16379LIBS="-lssl $LIBS" 16380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 16381$as_echo_n "checking if libssl needs libdl... " >&6; } 16382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16383/* end confdefs.h. */ 16384 16385/* Override any GCC internal prototype to avoid an error. 16386 Use char because int might match the return type of a GCC 16387 builtin and then its argument prototype would still apply. */ 16388#ifdef __cplusplus 16389extern "C" 16390#endif 16391char SSL_CTX_new (); 16392int 16393main () 16394{ 16395return SSL_CTX_new (); 16396 ; 16397 return 0; 16398} 16399_ACEOF 16400if ac_fn_c_try_link "$LINENO"; then : 16401 16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16403$as_echo "no" >&6; } 16404 LIBS="$BAKLIBS" 16405 16406else 16407 16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16409$as_echo "yes" >&6; } 16410 LIBS="$BAKLIBS" 16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16412$as_echo_n "checking for library containing dlopen... " >&6; } 16413if ${ac_cv_search_dlopen+:} false; then : 16414 $as_echo_n "(cached) " >&6 16415else 16416 ac_func_search_save_LIBS=$LIBS 16417cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16418/* end confdefs.h. */ 16419 16420/* Override any GCC internal prototype to avoid an error. 16421 Use char because int might match the return type of a GCC 16422 builtin and then its argument prototype would still apply. */ 16423#ifdef __cplusplus 16424extern "C" 16425#endif 16426char dlopen (); 16427int 16428main () 16429{ 16430return dlopen (); 16431 ; 16432 return 0; 16433} 16434_ACEOF 16435for ac_lib in '' dl; do 16436 if test -z "$ac_lib"; then 16437 ac_res="none required" 16438 else 16439 ac_res=-l$ac_lib 16440 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16441 fi 16442 if ac_fn_c_try_link "$LINENO"; then : 16443 ac_cv_search_dlopen=$ac_res 16444fi 16445rm -f core conftest.err conftest.$ac_objext \ 16446 conftest$ac_exeext 16447 if ${ac_cv_search_dlopen+:} false; then : 16448 break 16449fi 16450done 16451if ${ac_cv_search_dlopen+:} false; then : 16452 16453else 16454 ac_cv_search_dlopen=no 16455fi 16456rm conftest.$ac_ext 16457LIBS=$ac_func_search_save_LIBS 16458fi 16459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16460$as_echo "$ac_cv_search_dlopen" >&6; } 16461ac_res=$ac_cv_search_dlopen 16462if test "$ac_res" != no; then : 16463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16464 16465fi 16466 16467 16468fi 16469rm -f core conftest.err conftest.$ac_objext \ 16470 conftest$ac_exeext conftest.$ac_ext 16471for ac_header in openssl/conf.h 16472do : 16473 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default 16474" 16475if test "x$ac_cv_header_openssl_conf_h" = xyes; then : 16476 cat >>confdefs.h <<_ACEOF 16477#define HAVE_OPENSSL_CONF_H 1 16478_ACEOF 16479 16480fi 16481 16482done 16483 16484for ac_header in openssl/engine.h 16485do : 16486 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default 16487" 16488if test "x$ac_cv_header_openssl_engine_h" = xyes; then : 16489 cat >>confdefs.h <<_ACEOF 16490#define HAVE_OPENSSL_ENGINE_H 1 16491_ACEOF 16492 16493fi 16494 16495done 16496 16497for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode 16498do : 16499 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16500ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16501if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16502 cat >>confdefs.h <<_ACEOF 16503#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16504_ACEOF 16505 16506fi 16507done 16508 16509ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" " 16510$ac_includes_default 16511#ifdef HAVE_OPENSSL_ERR_H 16512#include <openssl/err.h> 16513#endif 16514 16515#ifdef HAVE_OPENSSL_RAND_H 16516#include <openssl/rand.h> 16517#endif 16518 16519#ifdef HAVE_OPENSSL_CONF_H 16520#include <openssl/conf.h> 16521#endif 16522 16523#ifdef HAVE_OPENSSL_ENGINE_H 16524#include <openssl/engine.h> 16525#endif 16526#include <openssl/ssl.h> 16527#include <openssl/evp.h> 16528 16529" 16530if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then : 16531 ac_have_decl=1 16532else 16533 ac_have_decl=0 16534fi 16535 16536cat >>confdefs.h <<_ACEOF 16537#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl 16538_ACEOF 16539ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" " 16540$ac_includes_default 16541#ifdef HAVE_OPENSSL_ERR_H 16542#include <openssl/err.h> 16543#endif 16544 16545#ifdef HAVE_OPENSSL_RAND_H 16546#include <openssl/rand.h> 16547#endif 16548 16549#ifdef HAVE_OPENSSL_CONF_H 16550#include <openssl/conf.h> 16551#endif 16552 16553#ifdef HAVE_OPENSSL_ENGINE_H 16554#include <openssl/engine.h> 16555#endif 16556#include <openssl/ssl.h> 16557#include <openssl/evp.h> 16558 16559" 16560if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then : 16561 ac_have_decl=1 16562else 16563 ac_have_decl=0 16564fi 16565 16566cat >>confdefs.h <<_ACEOF 16567#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl 16568_ACEOF 16569 16570fi 16571 16572 16573# Check whether --enable-sha2 was given. 16574if test "${enable_sha2+set}" = set; then : 16575 enableval=$enable_sha2; 16576fi 16577 16578case "$enable_sha2" in 16579 no) 16580 ;; 16581 yes|*) 16582 16583$as_echo "#define USE_SHA2 1" >>confdefs.h 16584 16585 ;; 16586esac 16587 16588# check wether gost also works 16589 16590# Check whether --enable-gost was given. 16591if test "${enable_gost+set}" = set; then : 16592 enableval=$enable_gost; 16593fi 16594 16595use_gost="no" 16596if test $USE_NSS = "no"; then 16597case "$enable_gost" in 16598 no) 16599 ;; 16600 *) 16601 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 16602if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then : 16603 : 16604else 16605 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5 16606fi 16607 16608 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 16609if test "x$ac_cv_func_EC_KEY_new" = xyes; then : 16610 16611else 16612 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5 16613fi 16614 16615 16616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 16617$as_echo_n "checking if GOST works... " >&6; } 16618if test c${cross_compiling} = cno; then 16619BAKCFLAGS="$CFLAGS" 16620if test -n "$ssldir"; then 16621 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib" 16622fi 16623if test "$cross_compiling" = yes; then : 16624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16626as_fn_error $? "cannot run test program while cross compiling 16627See \`config.log' for more details" "$LINENO" 5; } 16628else 16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16630/* end confdefs.h. */ 16631 16632#include <string.h> 16633#include <openssl/ssl.h> 16634#include <openssl/evp.h> 16635#include <openssl/engine.h> 16636#include <openssl/conf.h> 16637/* routine to load gost from ldns */ 16638int load_gost_id(void) 16639{ 16640 static int gost_id = 0; 16641 const EVP_PKEY_ASN1_METHOD* meth; 16642 ENGINE* e; 16643 16644 if(gost_id) return gost_id; 16645 16646 /* see if configuration loaded gost implementation from other engine*/ 16647 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 16648 if(meth) { 16649 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 16650 return gost_id; 16651 } 16652 16653 /* see if engine can be loaded already */ 16654 e = ENGINE_by_id("gost"); 16655 if(!e) { 16656 /* load it ourself, in case statically linked */ 16657 ENGINE_load_builtin_engines(); 16658 ENGINE_load_dynamic(); 16659 e = ENGINE_by_id("gost"); 16660 } 16661 if(!e) { 16662 /* no gost engine in openssl */ 16663 return 0; 16664 } 16665 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 16666 ENGINE_finish(e); 16667 ENGINE_free(e); 16668 return 0; 16669 } 16670 16671 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 16672 if(!meth) { 16673 /* algo not found */ 16674 ENGINE_finish(e); 16675 ENGINE_free(e); 16676 return 0; 16677 } 16678 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 16679 return gost_id; 16680} 16681int main(void) { 16682 EVP_MD_CTX* ctx; 16683 const EVP_MD* md; 16684 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 16685 const char* str = "Hello world"; 16686 const unsigned char check[] = { 16687 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 16688 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 16689 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 16690 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 16691 }; 16692 OPENSSL_config(NULL); 16693 (void)load_gost_id(); 16694 md = EVP_get_digestbyname("md_gost94"); 16695 if(!md) return 1; 16696 memset(digest, 0, sizeof(digest)); 16697 ctx = EVP_MD_CTX_create(); 16698 if(!ctx) return 2; 16699 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 16700 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 16701 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 16702 /* uncomment to see the hash calculated. 16703 {int i; 16704 for(i=0; i<32; i++) 16705 printf(" %2.2x", (int)digest[i]); 16706 printf("\n");} 16707 */ 16708 if(memcmp(digest, check, sizeof(check)) != 0) 16709 return 6; 16710 return 0; 16711} 16712 16713_ACEOF 16714if ac_fn_c_try_run "$LINENO"; then : 16715 eval "ac_cv_c_gost_works=yes" 16716else 16717 eval "ac_cv_c_gost_works=no" 16718fi 16719rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16720 conftest.$ac_objext conftest.beam conftest.$ac_ext 16721fi 16722 16723CFLAGS="$BAKCFLAGS" 16724else 16725eval "ac_cv_c_gost_works=maybe" 16726fi 16727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5 16728$as_echo "$ac_cv_c_gost_works" >&6; } 16729 16730 if test "$ac_cv_c_gost_works" != no; then 16731 use_gost="yes" 16732 16733$as_echo "#define USE_GOST 1" >>confdefs.h 16734 16735 fi 16736 ;; 16737esac 16738fi 16739# Check whether --enable-ecdsa was given. 16740if test "${enable_ecdsa+set}" = set; then : 16741 enableval=$enable_ecdsa; 16742fi 16743 16744use_ecdsa="no" 16745case "$enable_ecdsa" in 16746 no) 16747 ;; 16748 *) 16749 if test $USE_NSS = "no"; then 16750 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 16751if test "x$ac_cv_func_ECDSA_sign" = xyes; then : 16752 16753else 16754 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 16755fi 16756 16757 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 16758if test "x$ac_cv_func_SHA384_Init" = xyes; then : 16759 16760else 16761 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 16762fi 16763 16764 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 16765#include <openssl/evp.h> 16766 16767" 16768if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then : 16769 ac_have_decl=1 16770else 16771 ac_have_decl=0 16772fi 16773 16774cat >>confdefs.h <<_ACEOF 16775#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl 16776_ACEOF 16777if test $ac_have_decl = 1; then : 16778 16779else 16780 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 16781fi 16782ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 16783#include <openssl/evp.h> 16784 16785" 16786if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then : 16787 ac_have_decl=1 16788else 16789 ac_have_decl=0 16790fi 16791 16792cat >>confdefs.h <<_ACEOF 16793#define HAVE_DECL_NID_SECP384R1 $ac_have_decl 16794_ACEOF 16795if test $ac_have_decl = 1; then : 16796 16797else 16798 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 16799fi 16800 16801 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency) 16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5 16803$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; } 16804 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then 16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16806$as_echo "no" >&6; } 16807 16808cat >>confdefs.h <<_ACEOF 16809#define USE_ECDSA_EVP_WORKAROUND 1 16810_ACEOF 16811 16812 else 16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16814$as_echo "yes" >&6; } 16815 fi 16816 fi 16817 # we now know we have ECDSA and the required curves. 16818 16819cat >>confdefs.h <<_ACEOF 16820#define USE_ECDSA 1 16821_ACEOF 16822 16823 use_ecdsa="yes" 16824 ;; 16825esac 16826 16827# check for libevent 16828 16829# Check whether --with-libevent was given. 16830if test "${with_libevent+set}" = set; then : 16831 withval=$with_libevent; 16832else 16833 withval="no" 16834fi 16835 16836if test x_$withval = x_yes -o x_$withval != x_no; then 16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 16838$as_echo_n "checking for libevent... " >&6; } 16839 if test x_$withval = x_ -o x_$withval = x_yes; then 16840 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 16841 fi 16842 for dir in $withval; do 16843 thedir="$dir" 16844 if test -f "$dir/include/event.h"; then 16845 found_libevent="yes" 16846 if test "$thedir" != "/usr"; then 16847 CPPFLAGS="$CPPFLAGS -I$thedir/include" 16848 fi 16849 break; 16850 fi 16851 done 16852 if test x_$found_libevent != x_yes; then 16853 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 16854 # libevent source directory 16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 16856$as_echo "found in $thedir" >&6; } 16857 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 16858 BAK_LDFLAGS_SET="1" 16859 BAK_LDFLAGS="$LDFLAGS" 16860 # remove evdns from linking 16861 mkdir build >/dev/null 2>&1 16862 mkdir build/libevent >/dev/null 2>&1 16863 mkdir build/libevent/.libs >/dev/null 2>&1 16864 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 16865 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo` 16866 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 16867 cp $ev_files_o build/libevent 16868 cp $ev_files_lo build/libevent 16869 cp $ev_files_libso build/libevent/.libs 16870 LATE_LDFLAGS="build/libevent/*.lo -lm" 16871 LDFLAGS="build/libevent/*.o $LDFLAGS -lm" 16872 else 16873 as_fn_error $? "Cannot find the libevent library in $withval 16874You can restart ./configure --with-libevent=no to use a builtin alternative. 16875Please note that this alternative is not as capable as libevent when using 16876large outgoing port ranges. " "$LINENO" 5 16877 fi 16878 else 16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 16880$as_echo "found in $thedir" >&6; } 16881 if test "$thedir" != "/usr" -a "$thedir" != ""; then 16882 LDFLAGS="$LDFLAGS -L$thedir/lib" 16883 16884 if test "x$enable_rpath" = xyes; then 16885 if echo "$thedir/lib" | grep "^/" >/dev/null; then 16886 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 16887 fi 16888 fi 16889 16890 fi 16891 fi 16892 # check for library used by libevent after 1.3c 16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 16894$as_echo_n "checking for library containing clock_gettime... " >&6; } 16895if ${ac_cv_search_clock_gettime+:} false; then : 16896 $as_echo_n "(cached) " >&6 16897else 16898 ac_func_search_save_LIBS=$LIBS 16899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16900/* end confdefs.h. */ 16901 16902/* Override any GCC internal prototype to avoid an error. 16903 Use char because int might match the return type of a GCC 16904 builtin and then its argument prototype would still apply. */ 16905#ifdef __cplusplus 16906extern "C" 16907#endif 16908char clock_gettime (); 16909int 16910main () 16911{ 16912return clock_gettime (); 16913 ; 16914 return 0; 16915} 16916_ACEOF 16917for ac_lib in '' rt; do 16918 if test -z "$ac_lib"; then 16919 ac_res="none required" 16920 else 16921 ac_res=-l$ac_lib 16922 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16923 fi 16924 if ac_fn_c_try_link "$LINENO"; then : 16925 ac_cv_search_clock_gettime=$ac_res 16926fi 16927rm -f core conftest.err conftest.$ac_objext \ 16928 conftest$ac_exeext 16929 if ${ac_cv_search_clock_gettime+:} false; then : 16930 break 16931fi 16932done 16933if ${ac_cv_search_clock_gettime+:} false; then : 16934 16935else 16936 ac_cv_search_clock_gettime=no 16937fi 16938rm conftest.$ac_ext 16939LIBS=$ac_func_search_save_LIBS 16940fi 16941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 16942$as_echo "$ac_cv_search_clock_gettime" >&6; } 16943ac_res=$ac_cv_search_clock_gettime 16944if test "$ac_res" != no; then : 16945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16946 16947fi 16948 16949 16950 # is the event.h header libev or libevent? 16951 for ac_header in event.h 16952do : 16953 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 16954" 16955if test "x$ac_cv_header_event_h" = xyes; then : 16956 cat >>confdefs.h <<_ACEOF 16957#define HAVE_EVENT_H 1 16958_ACEOF 16959 16960fi 16961 16962done 16963 16964 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 16965#include <event.h> 16966 16967" 16968if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then : 16969 16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 16971$as_echo_n "checking for library containing event_set... " >&6; } 16972if ${ac_cv_search_event_set+:} false; then : 16973 $as_echo_n "(cached) " >&6 16974else 16975 ac_func_search_save_LIBS=$LIBS 16976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16977/* end confdefs.h. */ 16978 16979/* Override any GCC internal prototype to avoid an error. 16980 Use char because int might match the return type of a GCC 16981 builtin and then its argument prototype would still apply. */ 16982#ifdef __cplusplus 16983extern "C" 16984#endif 16985char event_set (); 16986int 16987main () 16988{ 16989return event_set (); 16990 ; 16991 return 0; 16992} 16993_ACEOF 16994for ac_lib in '' ev; do 16995 if test -z "$ac_lib"; then 16996 ac_res="none required" 16997 else 16998 ac_res=-l$ac_lib 16999 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17000 fi 17001 if ac_fn_c_try_link "$LINENO"; then : 17002 ac_cv_search_event_set=$ac_res 17003fi 17004rm -f core conftest.err conftest.$ac_objext \ 17005 conftest$ac_exeext 17006 if ${ac_cv_search_event_set+:} false; then : 17007 break 17008fi 17009done 17010if ${ac_cv_search_event_set+:} false; then : 17011 17012else 17013 ac_cv_search_event_set=no 17014fi 17015rm conftest.$ac_ext 17016LIBS=$ac_func_search_save_LIBS 17017fi 17018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 17019$as_echo "$ac_cv_search_event_set" >&6; } 17020ac_res=$ac_cv_search_event_set 17021if test "$ac_res" != no; then : 17022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17023 17024fi 17025 17026 17027else 17028 17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 17030$as_echo_n "checking for library containing event_set... " >&6; } 17031if ${ac_cv_search_event_set+:} false; then : 17032 $as_echo_n "(cached) " >&6 17033else 17034 ac_func_search_save_LIBS=$LIBS 17035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17036/* end confdefs.h. */ 17037 17038/* Override any GCC internal prototype to avoid an error. 17039 Use char because int might match the return type of a GCC 17040 builtin and then its argument prototype would still apply. */ 17041#ifdef __cplusplus 17042extern "C" 17043#endif 17044char event_set (); 17045int 17046main () 17047{ 17048return event_set (); 17049 ; 17050 return 0; 17051} 17052_ACEOF 17053for ac_lib in '' event; do 17054 if test -z "$ac_lib"; then 17055 ac_res="none required" 17056 else 17057 ac_res=-l$ac_lib 17058 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17059 fi 17060 if ac_fn_c_try_link "$LINENO"; then : 17061 ac_cv_search_event_set=$ac_res 17062fi 17063rm -f core conftest.err conftest.$ac_objext \ 17064 conftest$ac_exeext 17065 if ${ac_cv_search_event_set+:} false; then : 17066 break 17067fi 17068done 17069if ${ac_cv_search_event_set+:} false; then : 17070 17071else 17072 ac_cv_search_event_set=no 17073fi 17074rm conftest.$ac_ext 17075LIBS=$ac_func_search_save_LIBS 17076fi 17077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 17078$as_echo "$ac_cv_search_event_set" >&6; } 17079ac_res=$ac_cv_search_event_set 17080if test "$ac_res" != no; then : 17081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17082 17083fi 17084 17085 17086fi 17087 17088 for ac_func in event_base_free 17089do : 17090 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 17091if test "x$ac_cv_func_event_base_free" = xyes; then : 17092 cat >>confdefs.h <<_ACEOF 17093#define HAVE_EVENT_BASE_FREE 1 17094_ACEOF 17095 17096fi 17097done 17098 # only in libevent 1.2 and later 17099 for ac_func in event_base_once 17100do : 17101 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 17102if test "x$ac_cv_func_event_base_once" = xyes; then : 17103 cat >>confdefs.h <<_ACEOF 17104#define HAVE_EVENT_BASE_ONCE 1 17105_ACEOF 17106 17107fi 17108done 17109 # only in libevent 1.4.1 and later 17110 for ac_func in event_base_new 17111do : 17112 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 17113if test "x$ac_cv_func_event_base_new" = xyes; then : 17114 cat >>confdefs.h <<_ACEOF 17115#define HAVE_EVENT_BASE_NEW 1 17116_ACEOF 17117 17118fi 17119done 17120 # only in libevent 1.4.1 and later 17121 for ac_func in event_base_get_method 17122do : 17123 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 17124if test "x$ac_cv_func_event_base_get_method" = xyes; then : 17125 cat >>confdefs.h <<_ACEOF 17126#define HAVE_EVENT_BASE_GET_METHOD 1 17127_ACEOF 17128 17129fi 17130done 17131 # only in libevent 1.4.3 and later 17132 for ac_func in ev_loop 17133do : 17134 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 17135if test "x$ac_cv_func_ev_loop" = xyes; then : 17136 cat >>confdefs.h <<_ACEOF 17137#define HAVE_EV_LOOP 1 17138_ACEOF 17139 17140fi 17141done 17142 # only in libev. (tested on 3.51) 17143 for ac_func in ev_default_loop 17144do : 17145 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 17146if test "x$ac_cv_func_ev_default_loop" = xyes; then : 17147 cat >>confdefs.h <<_ACEOF 17148#define HAVE_EV_DEFAULT_LOOP 1 17149_ACEOF 17150 17151fi 17152done 17153 # only in libev. (tested on 4.00) 17154 if test -n "$BAK_LDFLAGS_SET"; then 17155 LDFLAGS="$BAK_LDFLAGS" 17156 fi 17157else 17158 17159$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h 17160 17161fi 17162 17163# check for libexpat 17164 17165# Check whether --with-libexpat was given. 17166if test "${with_libexpat+set}" = set; then : 17167 withval=$with_libexpat; 17168else 17169 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 17170fi 17171 17172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 17173$as_echo_n "checking for libexpat... " >&6; } 17174found_libexpat="no" 17175for dir in $withval ; do 17176 if test -f "$dir/include/expat.h"; then 17177 found_libexpat="yes" 17178 if test "$dir" != "/usr"; then 17179 CPPFLAGS="$CPPFLAGS -I$dir/include" 17180 LDFLAGS="$LDFLAGS -L$dir/lib" 17181 fi 17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 17183$as_echo "found in $dir" >&6; } 17184 break; 17185 fi 17186done 17187if test x_$found_libexpat != x_yes; then 17188 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5 17189fi 17190for ac_header in expat.h 17191do : 17192 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default 17193" 17194if test "x$ac_cv_header_expat_h" = xyes; then : 17195 cat >>confdefs.h <<_ACEOF 17196#define HAVE_EXPAT_H 1 17197_ACEOF 17198 17199fi 17200 17201done 17202 17203 17204# set static linking if requested 17205 17206staticexe="" 17207# Check whether --enable-static-exe was given. 17208if test "${enable_static_exe+set}" = set; then : 17209 enableval=$enable_static_exe; 17210fi 17211 17212if test x_$enable_static_exe = x_yes; then 17213 staticexe="-static" 17214 if test "$on_mingw" = yes; then 17215 staticexe="-all-static" 17216 # for static crosscompile, include gdi32 and zlib here. 17217 if test "`uname`" = "Linux"; then 17218 LIBS="$LIBS -lgdi32 -lz" 17219 fi 17220 fi 17221fi 17222 17223# set lock checking if requested 17224# Check whether --enable-lock_checks was given. 17225if test "${enable_lock_checks+set}" = set; then : 17226 enableval=$enable_lock_checks; 17227fi 17228 17229if test x_$enable_lock_checks = x_yes; then 17230 17231$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h 17232 17233 CHECKLOCK_OBJ="checklocks.lo" 17234 17235fi 17236 17237 17238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 17239$as_echo_n "checking for getaddrinfo... " >&6; } 17240ac_cv_func_getaddrinfo=no 17241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17242/* end confdefs.h. */ 17243 17244#ifdef __cplusplus 17245extern "C" 17246{ 17247#endif 17248char* getaddrinfo(); 17249char* (*f) () = getaddrinfo; 17250#ifdef __cplusplus 17251} 17252#endif 17253int main() { 17254 ; 17255 return 0; 17256} 17257 17258_ACEOF 17259if ac_fn_c_try_link "$LINENO"; then : 17260 ac_cv_func_getaddrinfo="yes" 17261if test "$ac_cv_header_windows_h" = "yes"; then 17262 17263$as_echo "#define USE_WINSOCK 1" >>confdefs.h 17264 17265 USE_WINSOCK="1" 17266 LIBS="$LIBS -lws2_32" 17267fi 17268 17269else 17270 ORIGLIBS="$LIBS" 17271LIBS="$LIBS -lws2_32" 17272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17273/* end confdefs.h. */ 17274 17275#ifdef HAVE_WS2TCPIP_H 17276#include <ws2tcpip.h> 17277#endif 17278 17279int 17280main () 17281{ 17282 17283 (void)getaddrinfo(NULL, NULL, NULL, NULL); 17284 17285 17286 ; 17287 return 0; 17288} 17289_ACEOF 17290if ac_fn_c_try_link "$LINENO"; then : 17291 17292ac_cv_func_getaddrinfo="yes" 17293 17294$as_echo "#define USE_WINSOCK 1" >>confdefs.h 17295 17296USE_WINSOCK="1" 17297 17298else 17299 17300ac_cv_func_getaddrinfo="no" 17301LIBS="$ORIGLIBS" 17302 17303fi 17304rm -f core conftest.err conftest.$ac_objext \ 17305 conftest$ac_exeext conftest.$ac_ext 17306 17307fi 17308rm -f core conftest.err conftest.$ac_objext \ 17309 conftest$ac_exeext conftest.$ac_ext 17310 17311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 17312$as_echo "$ac_cv_func_getaddrinfo" >&6; } 17313if test $ac_cv_func_getaddrinfo = yes; then 17314 17315$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 17316 17317fi 17318 17319if test "$USE_WINSOCK" = 1; then 17320 17321$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h 17322 17323 for ac_header in iphlpapi.h 17324do : 17325 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default 17326#include <windows.h> 17327 17328" 17329if test "x$ac_cv_header_iphlpapi_h" = xyes; then : 17330 cat >>confdefs.h <<_ACEOF 17331#define HAVE_IPHLPAPI_H 1 17332_ACEOF 17333 17334fi 17335 17336done 17337 17338 if test -n "$ac_tool_prefix"; then 17339 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 17340set dummy ${ac_tool_prefix}windres; ac_word=$2 17341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17342$as_echo_n "checking for $ac_word... " >&6; } 17343if ${ac_cv_prog_WINDRES+:} false; then : 17344 $as_echo_n "(cached) " >&6 17345else 17346 if test -n "$WINDRES"; then 17347 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 17348else 17349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17350for as_dir in $PATH 17351do 17352 IFS=$as_save_IFS 17353 test -z "$as_dir" && as_dir=. 17354 for ac_exec_ext in '' $ac_executable_extensions; do 17355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17356 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 17357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17358 break 2 17359 fi 17360done 17361 done 17362IFS=$as_save_IFS 17363 17364fi 17365fi 17366WINDRES=$ac_cv_prog_WINDRES 17367if test -n "$WINDRES"; then 17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 17369$as_echo "$WINDRES" >&6; } 17370else 17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17372$as_echo "no" >&6; } 17373fi 17374 17375 17376fi 17377if test -z "$ac_cv_prog_WINDRES"; then 17378 ac_ct_WINDRES=$WINDRES 17379 # Extract the first word of "windres", so it can be a program name with args. 17380set dummy windres; ac_word=$2 17381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17382$as_echo_n "checking for $ac_word... " >&6; } 17383if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 17384 $as_echo_n "(cached) " >&6 17385else 17386 if test -n "$ac_ct_WINDRES"; then 17387 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 17388else 17389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17390for as_dir in $PATH 17391do 17392 IFS=$as_save_IFS 17393 test -z "$as_dir" && as_dir=. 17394 for ac_exec_ext in '' $ac_executable_extensions; do 17395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17396 ac_cv_prog_ac_ct_WINDRES="windres" 17397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17398 break 2 17399 fi 17400done 17401 done 17402IFS=$as_save_IFS 17403 17404fi 17405fi 17406ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 17407if test -n "$ac_ct_WINDRES"; then 17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 17409$as_echo "$ac_ct_WINDRES" >&6; } 17410else 17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17412$as_echo "no" >&6; } 17413fi 17414 17415 if test "x$ac_ct_WINDRES" = x; then 17416 WINDRES="" 17417 else 17418 case $cross_compiling:$ac_tool_warned in 17419yes:) 17420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17422ac_tool_warned=yes ;; 17423esac 17424 WINDRES=$ac_ct_WINDRES 17425 fi 17426else 17427 WINDRES="$ac_cv_prog_WINDRES" 17428fi 17429 17430 LIBS="$LIBS -liphlpapi" 17431 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe" 17432 17433 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c" 17434 17435 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo" 17436 17437 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o" 17438 17439 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o" 17440 17441 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo" 17442 17443 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o" 17444 17445 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o" 17446 17447fi 17448if test $ac_cv_func_getaddrinfo = no; then 17449 case " $LIBOBJS " in 17450 *" fake-rfc2553.$ac_objext "* ) ;; 17451 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 17452 ;; 17453esac 17454 17455fi 17456# check after getaddrinfo for its libraries 17457 17458# check ioctlsocket 17459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 17460$as_echo_n "checking for ioctlsocket... " >&6; } 17461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17462/* end confdefs.h. */ 17463 17464#ifdef HAVE_WINSOCK2_H 17465#include <winsock2.h> 17466#endif 17467 17468int 17469main () 17470{ 17471 17472 (void)ioctlsocket(0, 0, NULL); 17473 17474 ; 17475 return 0; 17476} 17477_ACEOF 17478if ac_fn_c_try_link "$LINENO"; then : 17479 17480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17481$as_echo "yes" >&6; } 17482 17483$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 17484 17485 17486else 17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17488$as_echo "no" >&6; } 17489fi 17490rm -f core conftest.err conftest.$ac_objext \ 17491 conftest$ac_exeext conftest.$ac_ext 17492 17493 17494# see if daemon(3) exists, and if it is deprecated. 17495for ac_func in daemon 17496do : 17497 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 17498if test "x$ac_cv_func_daemon" = xyes; then : 17499 cat >>confdefs.h <<_ACEOF 17500#define HAVE_DAEMON 1 17501_ACEOF 17502 17503fi 17504done 17505 17506if test $ac_cv_func_daemon = yes; then 17507 17508 17509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5 17510$as_echo_n "checking if daemon is deprecated... " >&6; } 17511cache=`echo daemon | sed 'y%.=/+-%___p_%'` 17512if eval \${cv_cc_deprecated_$cache+:} false; then : 17513 $as_echo_n "(cached) " >&6 17514else 17515 17516echo ' 17517#include <stdlib.h> 17518' >conftest.c 17519echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c 17520if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then 17521eval "cv_cc_deprecated_$cache=no" 17522else 17523eval "cv_cc_deprecated_$cache=yes" 17524fi 17525rm -f conftest conftest.o conftest.c 17526 17527fi 17528 17529if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 17530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17531$as_echo "yes" >&6; } 17532 17533cat >>confdefs.h <<_ACEOF 17534#define DEPRECATED_DAEMON 1 17535_ACEOF 17536 17537: 17538 17539else 17540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17541$as_echo "no" >&6; } 17542: 17543 17544fi 17545 17546fi 17547 17548ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" " 17549$ac_includes_default 17550#if HAVE_SYS_PARAM_H 17551#include <sys/param.h> 17552#endif 17553 17554#ifdef HAVE_SYS_SOCKET_H 17555#include <sys/socket.h> 17556#endif 17557 17558#ifdef HAVE_SYS_UIO_H 17559#include <sys/uio.h> 17560#endif 17561 17562#ifdef HAVE_NETINET_IN_H 17563#include <netinet/in.h> 17564#endif 17565 17566#ifdef HAVE_ARPA_INET_H 17567#include <arpa/inet.h> 17568#endif 17569 17570#ifdef HAVE_WINSOCK2_H 17571#include <winsock2.h> 17572#endif 17573 17574#ifdef HAVE_WS2TCPIP_H 17575#include <ws2tcpip.h> 17576#endif 17577 17578" 17579if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then : 17580 17581cat >>confdefs.h <<_ACEOF 17582#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1 17583_ACEOF 17584 17585 17586fi 17587 17588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 17589$as_echo_n "checking for library containing setusercontext... " >&6; } 17590if ${ac_cv_search_setusercontext+:} false; then : 17591 $as_echo_n "(cached) " >&6 17592else 17593 ac_func_search_save_LIBS=$LIBS 17594cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17595/* end confdefs.h. */ 17596 17597/* Override any GCC internal prototype to avoid an error. 17598 Use char because int might match the return type of a GCC 17599 builtin and then its argument prototype would still apply. */ 17600#ifdef __cplusplus 17601extern "C" 17602#endif 17603char setusercontext (); 17604int 17605main () 17606{ 17607return setusercontext (); 17608 ; 17609 return 0; 17610} 17611_ACEOF 17612for ac_lib in '' util; do 17613 if test -z "$ac_lib"; then 17614 ac_res="none required" 17615 else 17616 ac_res=-l$ac_lib 17617 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17618 fi 17619 if ac_fn_c_try_link "$LINENO"; then : 17620 ac_cv_search_setusercontext=$ac_res 17621fi 17622rm -f core conftest.err conftest.$ac_objext \ 17623 conftest$ac_exeext 17624 if ${ac_cv_search_setusercontext+:} false; then : 17625 break 17626fi 17627done 17628if ${ac_cv_search_setusercontext+:} false; then : 17629 17630else 17631 ac_cv_search_setusercontext=no 17632fi 17633rm conftest.$ac_ext 17634LIBS=$ac_func_search_save_LIBS 17635fi 17636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 17637$as_echo "$ac_cv_search_setusercontext" >&6; } 17638ac_res=$ac_cv_search_setusercontext 17639if test "$ac_res" != no; then : 17640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17641 17642fi 17643 17644for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot kill sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex 17645do : 17646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17647ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17648if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17649 cat >>confdefs.h <<_ACEOF 17650#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17651_ACEOF 17652 17653fi 17654done 17655 17656for ac_func in setresuid 17657do : 17658 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 17659if test "x$ac_cv_func_setresuid" = xyes; then : 17660 cat >>confdefs.h <<_ACEOF 17661#define HAVE_SETRESUID 1 17662_ACEOF 17663 17664else 17665 for ac_func in setreuid 17666do : 17667 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 17668if test "x$ac_cv_func_setreuid" = xyes; then : 17669 cat >>confdefs.h <<_ACEOF 17670#define HAVE_SETREUID 1 17671_ACEOF 17672 17673fi 17674done 17675 17676fi 17677done 17678 17679for ac_func in setresgid 17680do : 17681 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 17682if test "x$ac_cv_func_setresgid" = xyes; then : 17683 cat >>confdefs.h <<_ACEOF 17684#define HAVE_SETRESGID 1 17685_ACEOF 17686 17687else 17688 for ac_func in setregid 17689do : 17690 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 17691if test "x$ac_cv_func_setregid" = xyes; then : 17692 cat >>confdefs.h <<_ACEOF 17693#define HAVE_SETREGID 1 17694_ACEOF 17695 17696fi 17697done 17698 17699fi 17700done 17701 17702 17703# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 17704if echo $build_os | grep darwin8 > /dev/null; then 17705 17706$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 17707 17708fi 17709ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 17710if test "x$ac_cv_func_inet_aton" = xyes; then : 17711 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 17712 17713else 17714 case " $LIBOBJS " in 17715 *" inet_aton.$ac_objext "* ) ;; 17716 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 17717 ;; 17718esac 17719 17720fi 17721 17722 17723ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 17724if test "x$ac_cv_func_inet_pton" = xyes; then : 17725 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 17726 17727else 17728 case " $LIBOBJS " in 17729 *" inet_pton.$ac_objext "* ) ;; 17730 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 17731 ;; 17732esac 17733 17734fi 17735 17736 17737ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 17738if test "x$ac_cv_func_inet_ntop" = xyes; then : 17739 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 17740 17741else 17742 case " $LIBOBJS " in 17743 *" inet_ntop.$ac_objext "* ) ;; 17744 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 17745 ;; 17746esac 17747 17748fi 17749 17750 17751ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 17752if test "x$ac_cv_func_snprintf" = xyes; then : 17753 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 17754 17755else 17756 case " $LIBOBJS " in 17757 *" snprintf.$ac_objext "* ) ;; 17758 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 17759 ;; 17760esac 17761 17762fi 17763 17764 17765ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 17766if test "x$ac_cv_func_strlcpy" = xyes; then : 17767 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 17768 17769else 17770 case " $LIBOBJS " in 17771 *" strlcpy.$ac_objext "* ) ;; 17772 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 17773 ;; 17774esac 17775 17776fi 17777 17778 17779ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 17780if test "x$ac_cv_func_memmove" = xyes; then : 17781 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 17782 17783else 17784 case " $LIBOBJS " in 17785 *" memmove.$ac_objext "* ) ;; 17786 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 17787 ;; 17788esac 17789 17790fi 17791 17792 17793ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 17794if test "x$ac_cv_func_gmtime_r" = xyes; then : 17795 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 17796 17797else 17798 case " $LIBOBJS " in 17799 *" gmtime_r.$ac_objext "* ) ;; 17800 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 17801 ;; 17802esac 17803 17804fi 17805 17806 17807LIBOBJ_WITHOUT_CTIME="$LIBOBJS" 17808 17809ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 17810if test "x$ac_cv_func_ctime_r" = xyes; then : 17811 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 17812 17813else 17814 case " $LIBOBJS " in 17815 *" ctime_r.$ac_objext "* ) ;; 17816 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 17817 ;; 17818esac 17819 17820fi 17821 17822 17823 17824# Check whether --enable-allsymbols was given. 17825if test "${enable_allsymbols+set}" = set; then : 17826 enableval=$enable_allsymbols; 17827fi 17828 17829case "$enable_allsymbols" in 17830 yes) 17831 COMMON_OBJ_ALL_SYMBOLS="" 17832 UBSYMS="" 17833 EXTRALINK="-L. -L.libs -lunbound" 17834 17835$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h 17836 17837 ;; 17838 no|*) 17839 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)' 17840 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def' 17841 EXTRALINK="" 17842 ;; 17843esac 17844 17845 17846 17847if test x_$enable_lock_checks = x_yes; then 17848 UBSYMS="-export-symbols clubsyms.def" 17849 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def 17850 echo lock_protect >> clubsyms.def 17851 echo lock_unprotect >> clubsyms.def 17852 echo lock_get_mem >> clubsyms.def 17853 echo checklock_start >> clubsyms.def 17854 echo checklock_stop >> clubsyms.def 17855 echo checklock_lock >> clubsyms.def 17856 echo checklock_unlock >> clubsyms.def 17857 echo checklock_init >> clubsyms.def 17858 echo checklock_thrcreate >> clubsyms.def 17859 echo checklock_thrjoin >> clubsyms.def 17860fi 17861 17862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5 17863$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; } 17864# on openBSD, the implicit rule make $< work. 17865# on Solaris, it does not work ($? is changed sources, $^ lists dependencies). 17866# gmake works. 17867cat >conftest.make <<EOF 17868all: conftest.lo 17869 17870conftest.lo foo.lo bla.lo: 17871 if test -f "\$<"; then touch \$@; fi 17872 17873.SUFFIXES: .lo 17874.c.lo: 17875 if test -f "\$<"; then touch \$@; fi 17876 17877conftest.lo: conftest.dir/conftest.c 17878EOF 17879mkdir conftest.dir 17880touch conftest.dir/conftest.c 17881rm -f conftest.lo conftest.c 17882${MAKE:-make} -f conftest.make >/dev/null 17883rm -f conftest.make conftest.c conftest.dir/conftest.c 17884rm -rf conftest.dir 17885if test ! -f conftest.lo; then 17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17887$as_echo "no" >&6; } 17888 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source' 17889 SOURCEFILE='`cat .source`' 17890else 17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17892$as_echo "yes" >&6; } 17893 SOURCEDETERMINE=':' 17894 SOURCEFILE='$<' 17895fi 17896rm -f conftest.lo 17897 17898 17899 17900# see if we want to build the library or everything 17901ALLTARGET="alltargets" 17902 17903# Check whether --with-libunbound-only was given. 17904if test "${with_libunbound_only+set}" = set; then : 17905 withval=$with_libunbound_only; 17906 if test "$withval" = "yes"; then 17907 ALLTARGET="lib" 17908 fi 17909 17910fi 17911 17912 17913 17914# check this after all other compilation checks, since the linking of the lib 17915# may break checks after this. 17916 17917# Check whether --with-ldns was given. 17918if test "${with_ldns+set}" = set; then : 17919 withval=$with_ldns; 17920 if test "$withval" != "yes"; then 17921 if test "$withval" != "/usr" -a "$withval" != ""; then 17922 CPPFLAGS="-I$withval/include $CPPFLAGS" 17923 LDFLAGS="-L$withval/lib $LDFLAGS" 17924 17925 if test "x$enable_rpath" = xyes; then 17926 if echo "$withval/lib" | grep "^/" >/dev/null; then 17927 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 17928 fi 17929 fi 17930 17931 fi 17932 ldnsdir="$withval" 17933 17934 fi 17935 17936fi 17937 17938 17939# check if ldns is good enough 17940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_rr_new in -lldns" >&5 17941$as_echo_n "checking for ldns_rr_new in -lldns... " >&6; } 17942if ${ac_cv_lib_ldns_ldns_rr_new+:} false; then : 17943 $as_echo_n "(cached) " >&6 17944else 17945 ac_check_lib_save_LIBS=$LIBS 17946LIBS="-lldns $LIBS" 17947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17948/* end confdefs.h. */ 17949 17950/* Override any GCC internal prototype to avoid an error. 17951 Use char because int might match the return type of a GCC 17952 builtin and then its argument prototype would still apply. */ 17953#ifdef __cplusplus 17954extern "C" 17955#endif 17956char ldns_rr_new (); 17957int 17958main () 17959{ 17960return ldns_rr_new (); 17961 ; 17962 return 0; 17963} 17964_ACEOF 17965if ac_fn_c_try_link "$LINENO"; then : 17966 ac_cv_lib_ldns_ldns_rr_new=yes 17967else 17968 ac_cv_lib_ldns_ldns_rr_new=no 17969fi 17970rm -f core conftest.err conftest.$ac_objext \ 17971 conftest$ac_exeext conftest.$ac_ext 17972LIBS=$ac_check_lib_save_LIBS 17973fi 17974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_rr_new" >&5 17975$as_echo "$ac_cv_lib_ldns_ldns_rr_new" >&6; } 17976if test "x$ac_cv_lib_ldns_ldns_rr_new" = xyes; then : 17977 cat >>confdefs.h <<_ACEOF 17978#define HAVE_LIBLDNS 1 17979_ACEOF 17980 17981 LIBS="-lldns $LIBS" 17982 17983else 17984 17985 as_fn_error $? "No ldns library found, install the ldns library into system lib dir or use --with-ldns=path to other location. The --with-ldns can point to the make-dir of ldns. Install the package ldns or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5 17986 17987fi 17988 17989ac_fn_c_check_func "$LINENO" "ldns_buffer_copy" "ac_cv_func_ldns_buffer_copy" 17990if test "x$ac_cv_func_ldns_buffer_copy" = xyes; then : 17991 17992fi 17993 17994if test $USE_NSS = "no"; then 17995 ac_fn_c_check_func "$LINENO" "ldns_key_buf2rsa_raw" "ac_cv_func_ldns_key_buf2rsa_raw" 17996if test "x$ac_cv_func_ldns_key_buf2rsa_raw" = xyes; then : 17997 17998fi 17999 18000else 18001 ac_cv_func_ldns_key_buf2rsa_raw="yes" 18002fi 18003ac_fn_c_check_func "$LINENO" "ldns_get_random" "ac_cv_func_ldns_get_random" 18004if test "x$ac_cv_func_ldns_get_random" = xyes; then : 18005 18006fi 18007 18008ac_fn_c_check_func "$LINENO" "ldns_b32_ntop_extended_hex" "ac_cv_func_ldns_b32_ntop_extended_hex" 18009if test "x$ac_cv_func_ldns_b32_ntop_extended_hex" = xyes; then : 18010 18011fi 18012 18013if test x$use_gost = xyes -a x$USE_NSS = xno; then 18014 ac_fn_c_check_func "$LINENO" "ldns_key_EVP_load_gost_id" "ac_cv_func_ldns_key_EVP_load_gost_id" 18015if test "x$ac_cv_func_ldns_key_EVP_load_gost_id" = xyes; then : 18016 18017fi 18018 18019 for ac_func in ldns_key_EVP_unload_gost 18020do : 18021 ac_fn_c_check_func "$LINENO" "ldns_key_EVP_unload_gost" "ac_cv_func_ldns_key_EVP_unload_gost" 18022if test "x$ac_cv_func_ldns_key_EVP_unload_gost" = xyes; then : 18023 cat >>confdefs.h <<_ACEOF 18024#define HAVE_LDNS_KEY_EVP_UNLOAD_GOST 1 18025_ACEOF 18026 18027fi 18028done 18029 18030else 18031 ac_cv_func_ldns_key_EVP_load_gost_id="yes" 18032fi 18033if test x$use_ecdsa = xyes; then 18034 ac_fn_c_check_decl "$LINENO" "LDNS_ECDSAP384SHA384" "ac_cv_have_decl_LDNS_ECDSAP384SHA384" " 18035$ac_includes_default 18036#ifdef HAVE_SYS_SOCKET_H 18037# include <sys/socket.h> 18038#endif 18039#ifdef HAVE_WS2TCPIP_H 18040# include <ws2tcpip.h> 18041#endif 18042#include <ldns/ldns.h> 18043 18044" 18045if test "x$ac_cv_have_decl_LDNS_ECDSAP384SHA384" = xyes; then : 18046 18047fi 18048 18049else 18050 ac_cv_have_decl_LDNS_ECDSAP384SHA384="yes" 18051fi 18052for ac_header in ldns/ldns.h 18053do : 18054 ac_fn_c_check_header_compile "$LINENO" "ldns/ldns.h" "ac_cv_header_ldns_ldns_h" "$ac_includes_default 18055#ifdef HAVE_SYS_SOCKET_H 18056#include <sys/socket.h> 18057#endif 18058 18059#ifdef HAVE_NETINET_IN_H 18060#include <netinet/in.h> 18061#endif 18062 18063#ifdef HAVE_ARPA_INET_H 18064#include <arpa/inet.h> 18065#endif 18066 18067#ifdef HAVE_WINSOCK2_H 18068#include <winsock2.h> 18069#endif 18070 18071#ifdef HAVE_WS2TCPIP_H 18072#include <ws2tcpip.h> 18073#endif 18074 18075" 18076if test "x$ac_cv_header_ldns_ldns_h" = xyes; then : 18077 cat >>confdefs.h <<_ACEOF 18078#define HAVE_LDNS_LDNS_H 1 18079_ACEOF 18080 18081else 18082 18083 as_fn_error $? "No ldns include file found, install the ldns library development files. Install package ldns-dev or ldns-devel or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5 18084 18085fi 18086 18087done 18088 18089if test $ac_cv_func_ldns_buffer_copy = yes \ 18090 -a $ac_cv_func_ldns_key_buf2rsa_raw = yes \ 18091 -a $ac_cv_func_ldns_get_random = yes \ 18092 -a $ac_cv_header_ldns_ldns_h = yes \ 18093 -a $ac_cv_func_ldns_b32_ntop_extended_hex = yes \ 18094 -a $ac_cv_func_ldns_key_EVP_load_gost_id = yes \ 18095 -a $ac_cv_have_decl_LDNS_ECDSAP384SHA384 = yes; then 18096 : 18097else 18098 as_fn_error $? "ldns library is not recent, update the ldns library, install it into system lib dir or use --with-ldns=path to other location. The --with-ldns can point to the make-dir of ldns. Package libldns or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5 18099fi 18100 18101 18102 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5 18103$as_echo "$as_me: Stripping extension flags..." >&6;} 18104 18105 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then 18106 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`" 18107 18108$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h 18109 18110 fi 18111 18112 18113 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then 18114 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`" 18115 18116$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h 18117 18118 fi 18119 18120 18121 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then 18122 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`" 18123 18124$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h 18125 18126 fi 18127 18128 18129 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then 18130 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`" 18131 18132$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h 18133 18134 fi 18135 18136 18137 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then 18138 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`" 18139 18140$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h 18141 18142 fi 18143 18144 18145 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then 18146 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`" 18147 18148$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h 18149 18150 fi 18151 18152 18153 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then 18154 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`" 18155 18156$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h 18157 18158 fi 18159 18160 18161 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then 18162 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`" 18163 18164$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h 18165 18166 fi 18167 18168 18169LDFLAGS="$LATE_LDFLAGS $LDFLAGS" 18170 18171 18172cat >>confdefs.h <<_ACEOF 18173#define MAXSYSLOGMSGLEN 10240 18174_ACEOF 18175 18176 18177 18178 18179ac_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 smallapp/unbound-control-setup.sh" 18180 18181ac_config_headers="$ac_config_headers config.h" 18182 18183cat >confcache <<\_ACEOF 18184# This file is a shell script that caches the results of configure 18185# tests run on this system so they can be shared between configure 18186# scripts and configure runs, see configure's option --config-cache. 18187# It is not useful on other systems. If it contains results you don't 18188# want to keep, you may remove or edit it. 18189# 18190# config.status only pays attention to the cache file if you give it 18191# the --recheck option to rerun configure. 18192# 18193# `ac_cv_env_foo' variables (set or unset) will be overridden when 18194# loading this file, other *unset* `ac_cv_foo' will be assigned the 18195# following values. 18196 18197_ACEOF 18198 18199# The following way of writing the cache mishandles newlines in values, 18200# but we know of no workaround that is simple, portable, and efficient. 18201# So, we kill variables containing newlines. 18202# Ultrix sh set writes to stderr and can't be redirected directly, 18203# and sets the high bit in the cache file unless we assign to the vars. 18204( 18205 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18206 eval ac_val=\$$ac_var 18207 case $ac_val in #( 18208 *${as_nl}*) 18209 case $ac_var in #( 18210 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18211$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18212 esac 18213 case $ac_var in #( 18214 _ | IFS | as_nl) ;; #( 18215 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18216 *) { eval $ac_var=; unset $ac_var;} ;; 18217 esac ;; 18218 esac 18219 done 18220 18221 (set) 2>&1 | 18222 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18223 *${as_nl}ac_space=\ *) 18224 # `set' does not quote correctly, so add quotes: double-quote 18225 # substitution turns \\\\ into \\, and sed turns \\ into \. 18226 sed -n \ 18227 "s/'/'\\\\''/g; 18228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18229 ;; #( 18230 *) 18231 # `set' quotes correctly as required by POSIX, so do not add quotes. 18232 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18233 ;; 18234 esac | 18235 sort 18236) | 18237 sed ' 18238 /^ac_cv_env_/b end 18239 t clear 18240 :clear 18241 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18242 t end 18243 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18244 :end' >>confcache 18245if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18246 if test -w "$cache_file"; then 18247 if test "x$cache_file" != "x/dev/null"; then 18248 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18249$as_echo "$as_me: updating cache $cache_file" >&6;} 18250 if test ! -f "$cache_file" || test -h "$cache_file"; then 18251 cat confcache >"$cache_file" 18252 else 18253 case $cache_file in #( 18254 */* | ?:*) 18255 mv -f confcache "$cache_file"$$ && 18256 mv -f "$cache_file"$$ "$cache_file" ;; #( 18257 *) 18258 mv -f confcache "$cache_file" ;; 18259 esac 18260 fi 18261 fi 18262 else 18263 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18264$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18265 fi 18266fi 18267rm -f confcache 18268 18269test "x$prefix" = xNONE && prefix=$ac_default_prefix 18270# Let make expand exec_prefix. 18271test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18272 18273DEFS=-DHAVE_CONFIG_H 18274 18275ac_libobjs= 18276ac_ltlibobjs= 18277U= 18278for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18279 # 1. Remove the extension, and $U if already installed. 18280 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18281 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18282 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18283 # will be set to the directory where LIBOBJS objects are built. 18284 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18285 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18286done 18287LIBOBJS=$ac_libobjs 18288 18289LTLIBOBJS=$ac_ltlibobjs 18290 18291 18292 18293: "${CONFIG_STATUS=./config.status}" 18294ac_write_fail=0 18295ac_clean_files_save=$ac_clean_files 18296ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18297{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18298$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18299as_write_fail=0 18300cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18301#! $SHELL 18302# Generated by $as_me. 18303# Run this file to recreate the current configuration. 18304# Compiler output produced by configure, useful for debugging 18305# configure, is in config.log if it exists. 18306 18307debug=false 18308ac_cs_recheck=false 18309ac_cs_silent=false 18310 18311SHELL=\${CONFIG_SHELL-$SHELL} 18312export SHELL 18313_ASEOF 18314cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18315## -------------------- ## 18316## M4sh Initialization. ## 18317## -------------------- ## 18318 18319# Be more Bourne compatible 18320DUALCASE=1; export DUALCASE # for MKS sh 18321if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18322 emulate sh 18323 NULLCMD=: 18324 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18325 # is contrary to our usage. Disable this feature. 18326 alias -g '${1+"$@"}'='"$@"' 18327 setopt NO_GLOB_SUBST 18328else 18329 case `(set -o) 2>/dev/null` in #( 18330 *posix*) : 18331 set -o posix ;; #( 18332 *) : 18333 ;; 18334esac 18335fi 18336 18337 18338as_nl=' 18339' 18340export as_nl 18341# Printing a long string crashes Solaris 7 /usr/bin/printf. 18342as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18343as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18344as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18345# Prefer a ksh shell builtin over an external printf program on Solaris, 18346# but without wasting forks for bash or zsh. 18347if test -z "$BASH_VERSION$ZSH_VERSION" \ 18348 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18349 as_echo='print -r --' 18350 as_echo_n='print -rn --' 18351elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18352 as_echo='printf %s\n' 18353 as_echo_n='printf %s' 18354else 18355 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18356 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18357 as_echo_n='/usr/ucb/echo -n' 18358 else 18359 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18360 as_echo_n_body='eval 18361 arg=$1; 18362 case $arg in #( 18363 *"$as_nl"*) 18364 expr "X$arg" : "X\\(.*\\)$as_nl"; 18365 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18366 esac; 18367 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18368 ' 18369 export as_echo_n_body 18370 as_echo_n='sh -c $as_echo_n_body as_echo' 18371 fi 18372 export as_echo_body 18373 as_echo='sh -c $as_echo_body as_echo' 18374fi 18375 18376# The user is always right. 18377if test "${PATH_SEPARATOR+set}" != set; then 18378 PATH_SEPARATOR=: 18379 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18380 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18381 PATH_SEPARATOR=';' 18382 } 18383fi 18384 18385 18386# IFS 18387# We need space, tab and new line, in precisely that order. Quoting is 18388# there to prevent editors from complaining about space-tab. 18389# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18390# splitting by setting IFS to empty value.) 18391IFS=" "" $as_nl" 18392 18393# Find who we are. Look in the path if we contain no directory separator. 18394as_myself= 18395case $0 in #(( 18396 *[\\/]* ) as_myself=$0 ;; 18397 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18398for as_dir in $PATH 18399do 18400 IFS=$as_save_IFS 18401 test -z "$as_dir" && as_dir=. 18402 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18403 done 18404IFS=$as_save_IFS 18405 18406 ;; 18407esac 18408# We did not find ourselves, most probably we were run as `sh COMMAND' 18409# in which case we are not to be found in the path. 18410if test "x$as_myself" = x; then 18411 as_myself=$0 18412fi 18413if test ! -f "$as_myself"; then 18414 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18415 exit 1 18416fi 18417 18418# Unset variables that we do not need and which cause bugs (e.g. in 18419# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18420# suppresses any "Segmentation fault" message there. '((' could 18421# trigger a bug in pdksh 5.2.14. 18422for as_var in BASH_ENV ENV MAIL MAILPATH 18423do eval test x\${$as_var+set} = xset \ 18424 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18425done 18426PS1='$ ' 18427PS2='> ' 18428PS4='+ ' 18429 18430# NLS nuisances. 18431LC_ALL=C 18432export LC_ALL 18433LANGUAGE=C 18434export LANGUAGE 18435 18436# CDPATH. 18437(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18438 18439 18440# as_fn_error STATUS ERROR [LINENO LOG_FD] 18441# ---------------------------------------- 18442# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18443# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18444# script with STATUS, using 1 if that was 0. 18445as_fn_error () 18446{ 18447 as_status=$1; test $as_status -eq 0 && as_status=1 18448 if test "$4"; then 18449 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18450 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18451 fi 18452 $as_echo "$as_me: error: $2" >&2 18453 as_fn_exit $as_status 18454} # as_fn_error 18455 18456 18457# as_fn_set_status STATUS 18458# ----------------------- 18459# Set $? to STATUS, without forking. 18460as_fn_set_status () 18461{ 18462 return $1 18463} # as_fn_set_status 18464 18465# as_fn_exit STATUS 18466# ----------------- 18467# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18468as_fn_exit () 18469{ 18470 set +e 18471 as_fn_set_status $1 18472 exit $1 18473} # as_fn_exit 18474 18475# as_fn_unset VAR 18476# --------------- 18477# Portably unset VAR. 18478as_fn_unset () 18479{ 18480 { eval $1=; unset $1;} 18481} 18482as_unset=as_fn_unset 18483# as_fn_append VAR VALUE 18484# ---------------------- 18485# Append the text in VALUE to the end of the definition contained in VAR. Take 18486# advantage of any shell optimizations that allow amortized linear growth over 18487# repeated appends, instead of the typical quadratic growth present in naive 18488# implementations. 18489if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18490 eval 'as_fn_append () 18491 { 18492 eval $1+=\$2 18493 }' 18494else 18495 as_fn_append () 18496 { 18497 eval $1=\$$1\$2 18498 } 18499fi # as_fn_append 18500 18501# as_fn_arith ARG... 18502# ------------------ 18503# Perform arithmetic evaluation on the ARGs, and store the result in the 18504# global $as_val. Take advantage of shells that can avoid forks. The arguments 18505# must be portable across $(()) and expr. 18506if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18507 eval 'as_fn_arith () 18508 { 18509 as_val=$(( $* )) 18510 }' 18511else 18512 as_fn_arith () 18513 { 18514 as_val=`expr "$@" || test $? -eq 1` 18515 } 18516fi # as_fn_arith 18517 18518 18519if expr a : '\(a\)' >/dev/null 2>&1 && 18520 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18521 as_expr=expr 18522else 18523 as_expr=false 18524fi 18525 18526if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18527 as_basename=basename 18528else 18529 as_basename=false 18530fi 18531 18532if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18533 as_dirname=dirname 18534else 18535 as_dirname=false 18536fi 18537 18538as_me=`$as_basename -- "$0" || 18539$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18540 X"$0" : 'X\(//\)$' \| \ 18541 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18542$as_echo X/"$0" | 18543 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18544 s//\1/ 18545 q 18546 } 18547 /^X\/\(\/\/\)$/{ 18548 s//\1/ 18549 q 18550 } 18551 /^X\/\(\/\).*/{ 18552 s//\1/ 18553 q 18554 } 18555 s/.*/./; q'` 18556 18557# Avoid depending upon Character Ranges. 18558as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18559as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18560as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18561as_cr_digits='0123456789' 18562as_cr_alnum=$as_cr_Letters$as_cr_digits 18563 18564ECHO_C= ECHO_N= ECHO_T= 18565case `echo -n x` in #((((( 18566-n*) 18567 case `echo 'xy\c'` in 18568 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18569 xy) ECHO_C='\c';; 18570 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18571 ECHO_T=' ';; 18572 esac;; 18573*) 18574 ECHO_N='-n';; 18575esac 18576 18577rm -f conf$$ conf$$.exe conf$$.file 18578if test -d conf$$.dir; then 18579 rm -f conf$$.dir/conf$$.file 18580else 18581 rm -f conf$$.dir 18582 mkdir conf$$.dir 2>/dev/null 18583fi 18584if (echo >conf$$.file) 2>/dev/null; then 18585 if ln -s conf$$.file conf$$ 2>/dev/null; then 18586 as_ln_s='ln -s' 18587 # ... but there are two gotchas: 18588 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18589 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18590 # In both cases, we have to default to `cp -pR'. 18591 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18592 as_ln_s='cp -pR' 18593 elif ln conf$$.file conf$$ 2>/dev/null; then 18594 as_ln_s=ln 18595 else 18596 as_ln_s='cp -pR' 18597 fi 18598else 18599 as_ln_s='cp -pR' 18600fi 18601rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18602rmdir conf$$.dir 2>/dev/null 18603 18604 18605# as_fn_mkdir_p 18606# ------------- 18607# Create "$as_dir" as a directory, including parents if necessary. 18608as_fn_mkdir_p () 18609{ 18610 18611 case $as_dir in #( 18612 -*) as_dir=./$as_dir;; 18613 esac 18614 test -d "$as_dir" || eval $as_mkdir_p || { 18615 as_dirs= 18616 while :; do 18617 case $as_dir in #( 18618 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18619 *) as_qdir=$as_dir;; 18620 esac 18621 as_dirs="'$as_qdir' $as_dirs" 18622 as_dir=`$as_dirname -- "$as_dir" || 18623$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18624 X"$as_dir" : 'X\(//\)[^/]' \| \ 18625 X"$as_dir" : 'X\(//\)$' \| \ 18626 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18627$as_echo X"$as_dir" | 18628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18629 s//\1/ 18630 q 18631 } 18632 /^X\(\/\/\)[^/].*/{ 18633 s//\1/ 18634 q 18635 } 18636 /^X\(\/\/\)$/{ 18637 s//\1/ 18638 q 18639 } 18640 /^X\(\/\).*/{ 18641 s//\1/ 18642 q 18643 } 18644 s/.*/./; q'` 18645 test -d "$as_dir" && break 18646 done 18647 test -z "$as_dirs" || eval "mkdir $as_dirs" 18648 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18649 18650 18651} # as_fn_mkdir_p 18652if mkdir -p . 2>/dev/null; then 18653 as_mkdir_p='mkdir -p "$as_dir"' 18654else 18655 test -d ./-p && rmdir ./-p 18656 as_mkdir_p=false 18657fi 18658 18659 18660# as_fn_executable_p FILE 18661# ----------------------- 18662# Test if FILE is an executable regular file. 18663as_fn_executable_p () 18664{ 18665 test -f "$1" && test -x "$1" 18666} # as_fn_executable_p 18667as_test_x='test -x' 18668as_executable_p=as_fn_executable_p 18669 18670# Sed expression to map a string onto a valid CPP name. 18671as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18672 18673# Sed expression to map a string onto a valid variable name. 18674as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18675 18676 18677exec 6>&1 18678## ----------------------------------- ## 18679## Main body of $CONFIG_STATUS script. ## 18680## ----------------------------------- ## 18681_ASEOF 18682test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18683 18684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18685# Save the log message, to keep $0 and so on meaningful, and to 18686# report actual input values of CONFIG_FILES etc. instead of their 18687# values after options handling. 18688ac_log=" 18689This file was extended by unbound $as_me 1.4.20, which was 18690generated by GNU Autoconf 2.69. Invocation command line was 18691 18692 CONFIG_FILES = $CONFIG_FILES 18693 CONFIG_HEADERS = $CONFIG_HEADERS 18694 CONFIG_LINKS = $CONFIG_LINKS 18695 CONFIG_COMMANDS = $CONFIG_COMMANDS 18696 $ $0 $@ 18697 18698on `(hostname || uname -n) 2>/dev/null | sed 1q` 18699" 18700 18701_ACEOF 18702 18703case $ac_config_files in *" 18704"*) set x $ac_config_files; shift; ac_config_files=$*;; 18705esac 18706 18707case $ac_config_headers in *" 18708"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18709esac 18710 18711 18712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18713# Files that config.status was made for. 18714config_files="$ac_config_files" 18715config_headers="$ac_config_headers" 18716config_commands="$ac_config_commands" 18717 18718_ACEOF 18719 18720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18721ac_cs_usage="\ 18722\`$as_me' instantiates files and other configuration actions 18723from templates according to the current configuration. Unless the files 18724and actions are specified as TAGs, all are instantiated by default. 18725 18726Usage: $0 [OPTION]... [TAG]... 18727 18728 -h, --help print this help, then exit 18729 -V, --version print version number and configuration settings, then exit 18730 --config print configuration, then exit 18731 -q, --quiet, --silent 18732 do not print progress messages 18733 -d, --debug don't remove temporary files 18734 --recheck update $as_me by reconfiguring in the same conditions 18735 --file=FILE[:TEMPLATE] 18736 instantiate the configuration file FILE 18737 --header=FILE[:TEMPLATE] 18738 instantiate the configuration header FILE 18739 18740Configuration files: 18741$config_files 18742 18743Configuration headers: 18744$config_headers 18745 18746Configuration commands: 18747$config_commands 18748 18749Report bugs to <unbound-bugs@nlnetlabs.nl>." 18750 18751_ACEOF 18752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18753ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18754ac_cs_version="\\ 18755unbound config.status 1.4.20 18756configured by $0, generated by GNU Autoconf 2.69, 18757 with options \\"\$ac_cs_config\\" 18758 18759Copyright (C) 2012 Free Software Foundation, Inc. 18760This config.status script is free software; the Free Software Foundation 18761gives unlimited permission to copy, distribute and modify it." 18762 18763ac_pwd='$ac_pwd' 18764srcdir='$srcdir' 18765AWK='$AWK' 18766test -n "\$AWK" || AWK=awk 18767_ACEOF 18768 18769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18770# The default lists apply if the user does not specify any file. 18771ac_need_defaults=: 18772while test $# != 0 18773do 18774 case $1 in 18775 --*=?*) 18776 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18777 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18778 ac_shift=: 18779 ;; 18780 --*=) 18781 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18782 ac_optarg= 18783 ac_shift=: 18784 ;; 18785 *) 18786 ac_option=$1 18787 ac_optarg=$2 18788 ac_shift=shift 18789 ;; 18790 esac 18791 18792 case $ac_option in 18793 # Handling of the options. 18794 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18795 ac_cs_recheck=: ;; 18796 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18797 $as_echo "$ac_cs_version"; exit ;; 18798 --config | --confi | --conf | --con | --co | --c ) 18799 $as_echo "$ac_cs_config"; exit ;; 18800 --debug | --debu | --deb | --de | --d | -d ) 18801 debug=: ;; 18802 --file | --fil | --fi | --f ) 18803 $ac_shift 18804 case $ac_optarg in 18805 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18806 '') as_fn_error $? "missing file argument" ;; 18807 esac 18808 as_fn_append CONFIG_FILES " '$ac_optarg'" 18809 ac_need_defaults=false;; 18810 --header | --heade | --head | --hea ) 18811 $ac_shift 18812 case $ac_optarg in 18813 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18814 esac 18815 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18816 ac_need_defaults=false;; 18817 --he | --h) 18818 # Conflict between --help and --header 18819 as_fn_error $? "ambiguous option: \`$1' 18820Try \`$0 --help' for more information.";; 18821 --help | --hel | -h ) 18822 $as_echo "$ac_cs_usage"; exit ;; 18823 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18824 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18825 ac_cs_silent=: ;; 18826 18827 # This is an error. 18828 -*) as_fn_error $? "unrecognized option: \`$1' 18829Try \`$0 --help' for more information." ;; 18830 18831 *) as_fn_append ac_config_targets " $1" 18832 ac_need_defaults=false ;; 18833 18834 esac 18835 shift 18836done 18837 18838ac_configure_extra_args= 18839 18840if $ac_cs_silent; then 18841 exec 6>/dev/null 18842 ac_configure_extra_args="$ac_configure_extra_args --silent" 18843fi 18844 18845_ACEOF 18846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18847if \$ac_cs_recheck; then 18848 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18849 shift 18850 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18851 CONFIG_SHELL='$SHELL' 18852 export CONFIG_SHELL 18853 exec "\$@" 18854fi 18855 18856_ACEOF 18857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18858exec 5>>config.log 18859{ 18860 echo 18861 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18862## Running $as_me. ## 18863_ASBOX 18864 $as_echo "$ac_log" 18865} >&5 18866 18867_ACEOF 18868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18869# 18870# INIT-COMMANDS 18871# 18872 18873 18874# The HP-UX ksh and POSIX shell print the target directory to stdout 18875# if CDPATH is set. 18876(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18877 18878sed_quote_subst='$sed_quote_subst' 18879double_quote_subst='$double_quote_subst' 18880delay_variable_subst='$delay_variable_subst' 18881macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18882macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18883enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18884enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18885pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18886enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18887SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18888ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18889PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18890host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18891host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18892host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18893build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18894build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18895build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18896SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18897Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18898GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18899EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18900FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18901LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18902NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18903LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18904max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18905ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18906exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18907lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18908lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18909lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18910lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18911lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18912reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18913reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18914OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18915deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18916file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18917file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18918want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18919DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18920sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18921AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18922AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18923archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18924STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18925RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18926old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18927old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18928old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18929lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18930CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18931CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18932compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18933GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18934lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18935lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18936lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18937lt_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"`' 18938nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18939lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18940objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18941MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18942lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18943lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18944lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18945lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18946lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18947need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18948MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18949DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18950NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18951LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18952OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18953OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18954libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18955shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18956extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18957archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18958enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18959export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18960whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18961compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18962old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18963old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18964archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18965archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18966module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18967module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18968with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18969allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18970no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18971hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18972hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18973hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18974hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18975hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18976hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18977hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18978inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18979link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18980always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18981export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18982exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18983include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18984prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18985postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18986file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18987variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18988need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18989need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18990version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18991runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18992shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18993shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18994libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18995library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18996soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18997install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18998postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18999postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19000finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19001finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19002hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19003sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19004sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19005hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19006enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19007enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19008enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19009old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19010striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19011 19012LTCC='$LTCC' 19013LTCFLAGS='$LTCFLAGS' 19014compiler='$compiler_DEFAULT' 19015 19016# A function that is used when there is no print builtin or printf. 19017func_fallback_echo () 19018{ 19019 eval 'cat <<_LTECHO_EOF 19020\$1 19021_LTECHO_EOF' 19022} 19023 19024# Quote evaled strings. 19025for var in SHELL \ 19026ECHO \ 19027PATH_SEPARATOR \ 19028SED \ 19029GREP \ 19030EGREP \ 19031FGREP \ 19032LD \ 19033NM \ 19034LN_S \ 19035lt_SP2NL \ 19036lt_NL2SP \ 19037reload_flag \ 19038OBJDUMP \ 19039deplibs_check_method \ 19040file_magic_cmd \ 19041file_magic_glob \ 19042want_nocaseglob \ 19043DLLTOOL \ 19044sharedlib_from_linklib_cmd \ 19045AR \ 19046AR_FLAGS \ 19047archiver_list_spec \ 19048STRIP \ 19049RANLIB \ 19050CC \ 19051CFLAGS \ 19052compiler \ 19053lt_cv_sys_global_symbol_pipe \ 19054lt_cv_sys_global_symbol_to_cdecl \ 19055lt_cv_sys_global_symbol_to_c_name_address \ 19056lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19057nm_file_list_spec \ 19058lt_prog_compiler_no_builtin_flag \ 19059lt_prog_compiler_pic \ 19060lt_prog_compiler_wl \ 19061lt_prog_compiler_static \ 19062lt_cv_prog_compiler_c_o \ 19063need_locks \ 19064MANIFEST_TOOL \ 19065DSYMUTIL \ 19066NMEDIT \ 19067LIPO \ 19068OTOOL \ 19069OTOOL64 \ 19070shrext_cmds \ 19071export_dynamic_flag_spec \ 19072whole_archive_flag_spec \ 19073compiler_needs_object \ 19074with_gnu_ld \ 19075allow_undefined_flag \ 19076no_undefined_flag \ 19077hardcode_libdir_flag_spec \ 19078hardcode_libdir_separator \ 19079exclude_expsyms \ 19080include_expsyms \ 19081file_list_spec \ 19082variables_saved_for_relink \ 19083libname_spec \ 19084library_names_spec \ 19085soname_spec \ 19086install_override_mode \ 19087finish_eval \ 19088old_striplib \ 19089striplib; do 19090 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19091 *[\\\\\\\`\\"\\\$]*) 19092 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19093 ;; 19094 *) 19095 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19096 ;; 19097 esac 19098done 19099 19100# Double-quote double-evaled strings. 19101for var in reload_cmds \ 19102old_postinstall_cmds \ 19103old_postuninstall_cmds \ 19104old_archive_cmds \ 19105extract_expsyms_cmds \ 19106old_archive_from_new_cmds \ 19107old_archive_from_expsyms_cmds \ 19108archive_cmds \ 19109archive_expsym_cmds \ 19110module_cmds \ 19111module_expsym_cmds \ 19112export_symbols_cmds \ 19113prelink_cmds \ 19114postlink_cmds \ 19115postinstall_cmds \ 19116postuninstall_cmds \ 19117finish_cmds \ 19118sys_lib_search_path_spec \ 19119sys_lib_dlsearch_path_spec; do 19120 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19121 *[\\\\\\\`\\"\\\$]*) 19122 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19123 ;; 19124 *) 19125 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19126 ;; 19127 esac 19128done 19129 19130ac_aux_dir='$ac_aux_dir' 19131xsi_shell='$xsi_shell' 19132lt_shell_append='$lt_shell_append' 19133 19134# See if we are running on zsh, and set the options which allow our 19135# commands through without removal of \ escapes INIT. 19136if test -n "\${ZSH_VERSION+set}" ; then 19137 setopt NO_GLOB_SUBST 19138fi 19139 19140 19141 PACKAGE='$PACKAGE' 19142 VERSION='$VERSION' 19143 TIMESTAMP='$TIMESTAMP' 19144 RM='$RM' 19145 ofile='$ofile' 19146 19147 19148 19149 19150_ACEOF 19151 19152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19153 19154# Handling of arguments. 19155for ac_config_target in $ac_config_targets 19156do 19157 case $ac_config_target in 19158 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19159 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 19160 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19161 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; 19162 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;; 19163 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;; 19164 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;; 19165 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;; 19166 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;; 19167 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;; 19168 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;; 19169 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19170 19171 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19172 esac 19173done 19174 19175 19176# If the user did not use the arguments to specify the items to instantiate, 19177# then the envvar interface is used. Set only those that are not. 19178# We use the long form for the default assignment because of an extremely 19179# bizarre bug on SunOS 4.1.3. 19180if $ac_need_defaults; then 19181 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19182 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19183 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19184fi 19185 19186# Have a temporary directory for convenience. Make it in the build tree 19187# simply because there is no reason against having it here, and in addition, 19188# creating and moving files from /tmp can sometimes cause problems. 19189# Hook for its removal unless debugging. 19190# Note that there is a small window in which the directory will not be cleaned: 19191# after its creation but before its name has been assigned to `$tmp'. 19192$debug || 19193{ 19194 tmp= ac_tmp= 19195 trap 'exit_status=$? 19196 : "${ac_tmp:=$tmp}" 19197 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19198' 0 19199 trap 'as_fn_exit 1' 1 2 13 15 19200} 19201# Create a (secure) tmp directory for tmp files. 19202 19203{ 19204 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19205 test -d "$tmp" 19206} || 19207{ 19208 tmp=./conf$$-$RANDOM 19209 (umask 077 && mkdir "$tmp") 19210} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19211ac_tmp=$tmp 19212 19213# Set up the scripts for CONFIG_FILES section. 19214# No need to generate them if there are no CONFIG_FILES. 19215# This happens for instance with `./config.status config.h'. 19216if test -n "$CONFIG_FILES"; then 19217 19218 19219ac_cr=`echo X | tr X '\015'` 19220# On cygwin, bash can eat \r inside `` if the user requested igncr. 19221# But we know of no other shell where ac_cr would be empty at this 19222# point, so we can use a bashism as a fallback. 19223if test "x$ac_cr" = x; then 19224 eval ac_cr=\$\'\\r\' 19225fi 19226ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19227if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19228 ac_cs_awk_cr='\\r' 19229else 19230 ac_cs_awk_cr=$ac_cr 19231fi 19232 19233echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19234_ACEOF 19235 19236 19237{ 19238 echo "cat >conf$$subs.awk <<_ACEOF" && 19239 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19240 echo "_ACEOF" 19241} >conf$$subs.sh || 19242 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19243ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19244ac_delim='%!_!# ' 19245for ac_last_try in false false false false false :; do 19246 . ./conf$$subs.sh || 19247 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19248 19249 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19250 if test $ac_delim_n = $ac_delim_num; then 19251 break 19252 elif $ac_last_try; then 19253 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19254 else 19255 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19256 fi 19257done 19258rm -f conf$$subs.sh 19259 19260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19261cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19262_ACEOF 19263sed -n ' 19264h 19265s/^/S["/; s/!.*/"]=/ 19266p 19267g 19268s/^[^!]*!// 19269:repl 19270t repl 19271s/'"$ac_delim"'$// 19272t delim 19273:nl 19274h 19275s/\(.\{148\}\)..*/\1/ 19276t more1 19277s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19278p 19279n 19280b repl 19281:more1 19282s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19283p 19284g 19285s/.\{148\}// 19286t nl 19287:delim 19288h 19289s/\(.\{148\}\)..*/\1/ 19290t more2 19291s/["\\]/\\&/g; s/^/"/; s/$/"/ 19292p 19293b 19294:more2 19295s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19296p 19297g 19298s/.\{148\}// 19299t delim 19300' <conf$$subs.awk | sed ' 19301/^[^""]/{ 19302 N 19303 s/\n// 19304} 19305' >>$CONFIG_STATUS || ac_write_fail=1 19306rm -f conf$$subs.awk 19307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19308_ACAWK 19309cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19310 for (key in S) S_is_set[key] = 1 19311 FS = "" 19312 19313} 19314{ 19315 line = $ 0 19316 nfields = split(line, field, "@") 19317 substed = 0 19318 len = length(field[1]) 19319 for (i = 2; i < nfields; i++) { 19320 key = field[i] 19321 keylen = length(key) 19322 if (S_is_set[key]) { 19323 value = S[key] 19324 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19325 len += length(value) + length(field[++i]) 19326 substed = 1 19327 } else 19328 len += 1 + keylen 19329 } 19330 19331 print line 19332} 19333 19334_ACAWK 19335_ACEOF 19336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19337if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19338 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19339else 19340 cat 19341fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19342 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19343_ACEOF 19344 19345# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19346# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19347# trailing colons and then remove the whole line if VPATH becomes empty 19348# (actually we leave an empty line to preserve line numbers). 19349if test "x$srcdir" = x.; then 19350 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19351h 19352s/// 19353s/^/:/ 19354s/[ ]*$/:/ 19355s/:\$(srcdir):/:/g 19356s/:\${srcdir}:/:/g 19357s/:@srcdir@:/:/g 19358s/^:*// 19359s/:*$// 19360x 19361s/\(=[ ]*\).*/\1/ 19362G 19363s/\n// 19364s/^[^=]*=[ ]*$// 19365}' 19366fi 19367 19368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19369fi # test -n "$CONFIG_FILES" 19370 19371# Set up the scripts for CONFIG_HEADERS section. 19372# No need to generate them if there are no CONFIG_HEADERS. 19373# This happens for instance with `./config.status Makefile'. 19374if test -n "$CONFIG_HEADERS"; then 19375cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19376BEGIN { 19377_ACEOF 19378 19379# Transform confdefs.h into an awk script `defines.awk', embedded as 19380# here-document in config.status, that substitutes the proper values into 19381# config.h.in to produce config.h. 19382 19383# Create a delimiter string that does not exist in confdefs.h, to ease 19384# handling of long lines. 19385ac_delim='%!_!# ' 19386for ac_last_try in false false :; do 19387 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19388 if test -z "$ac_tt"; then 19389 break 19390 elif $ac_last_try; then 19391 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19392 else 19393 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19394 fi 19395done 19396 19397# For the awk script, D is an array of macro values keyed by name, 19398# likewise P contains macro parameters if any. Preserve backslash 19399# newline sequences. 19400 19401ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19402sed -n ' 19403s/.\{148\}/&'"$ac_delim"'/g 19404t rset 19405:rset 19406s/^[ ]*#[ ]*define[ ][ ]*/ / 19407t def 19408d 19409:def 19410s/\\$// 19411t bsnl 19412s/["\\]/\\&/g 19413s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19414D["\1"]=" \3"/p 19415s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19416d 19417:bsnl 19418s/["\\]/\\&/g 19419s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19420D["\1"]=" \3\\\\\\n"\\/p 19421t cont 19422s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19423t cont 19424d 19425:cont 19426n 19427s/.\{148\}/&'"$ac_delim"'/g 19428t clear 19429:clear 19430s/\\$// 19431t bsnlc 19432s/["\\]/\\&/g; s/^/"/; s/$/"/p 19433d 19434:bsnlc 19435s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19436b cont 19437' <confdefs.h | sed ' 19438s/'"$ac_delim"'/"\\\ 19439"/g' >>$CONFIG_STATUS || ac_write_fail=1 19440 19441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19442 for (key in D) D_is_set[key] = 1 19443 FS = "" 19444} 19445/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19446 line = \$ 0 19447 split(line, arg, " ") 19448 if (arg[1] == "#") { 19449 defundef = arg[2] 19450 mac1 = arg[3] 19451 } else { 19452 defundef = substr(arg[1], 2) 19453 mac1 = arg[2] 19454 } 19455 split(mac1, mac2, "(") #) 19456 macro = mac2[1] 19457 prefix = substr(line, 1, index(line, defundef) - 1) 19458 if (D_is_set[macro]) { 19459 # Preserve the white space surrounding the "#". 19460 print prefix "define", macro P[macro] D[macro] 19461 next 19462 } else { 19463 # Replace #undef with comments. This is necessary, for example, 19464 # in the case of _POSIX_SOURCE, which is predefined and required 19465 # on some systems where configure will not decide to define it. 19466 if (defundef == "undef") { 19467 print "/*", prefix defundef, macro, "*/" 19468 next 19469 } 19470 } 19471} 19472{ print } 19473_ACAWK 19474_ACEOF 19475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19476 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19477fi # test -n "$CONFIG_HEADERS" 19478 19479 19480eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19481shift 19482for ac_tag 19483do 19484 case $ac_tag in 19485 :[FHLC]) ac_mode=$ac_tag; continue;; 19486 esac 19487 case $ac_mode$ac_tag in 19488 :[FHL]*:*);; 19489 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19490 :[FH]-) ac_tag=-:-;; 19491 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19492 esac 19493 ac_save_IFS=$IFS 19494 IFS=: 19495 set x $ac_tag 19496 IFS=$ac_save_IFS 19497 shift 19498 ac_file=$1 19499 shift 19500 19501 case $ac_mode in 19502 :L) ac_source=$1;; 19503 :[FH]) 19504 ac_file_inputs= 19505 for ac_f 19506 do 19507 case $ac_f in 19508 -) ac_f="$ac_tmp/stdin";; 19509 *) # Look for the file first in the build tree, then in the source tree 19510 # (if the path is not absolute). The absolute path cannot be DOS-style, 19511 # because $ac_f cannot contain `:'. 19512 test -f "$ac_f" || 19513 case $ac_f in 19514 [\\/$]*) false;; 19515 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19516 esac || 19517 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19518 esac 19519 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19520 as_fn_append ac_file_inputs " '$ac_f'" 19521 done 19522 19523 # Let's still pretend it is `configure' which instantiates (i.e., don't 19524 # use $as_me), people would be surprised to read: 19525 # /* config.h. Generated by config.status. */ 19526 configure_input='Generated from '` 19527 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19528 `' by configure.' 19529 if test x"$ac_file" != x-; then 19530 configure_input="$ac_file. $configure_input" 19531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19532$as_echo "$as_me: creating $ac_file" >&6;} 19533 fi 19534 # Neutralize special characters interpreted by sed in replacement strings. 19535 case $configure_input in #( 19536 *\&* | *\|* | *\\* ) 19537 ac_sed_conf_input=`$as_echo "$configure_input" | 19538 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19539 *) ac_sed_conf_input=$configure_input;; 19540 esac 19541 19542 case $ac_tag in 19543 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19544 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19545 esac 19546 ;; 19547 esac 19548 19549 ac_dir=`$as_dirname -- "$ac_file" || 19550$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19551 X"$ac_file" : 'X\(//\)[^/]' \| \ 19552 X"$ac_file" : 'X\(//\)$' \| \ 19553 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19554$as_echo X"$ac_file" | 19555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19556 s//\1/ 19557 q 19558 } 19559 /^X\(\/\/\)[^/].*/{ 19560 s//\1/ 19561 q 19562 } 19563 /^X\(\/\/\)$/{ 19564 s//\1/ 19565 q 19566 } 19567 /^X\(\/\).*/{ 19568 s//\1/ 19569 q 19570 } 19571 s/.*/./; q'` 19572 as_dir="$ac_dir"; as_fn_mkdir_p 19573 ac_builddir=. 19574 19575case "$ac_dir" in 19576.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19577*) 19578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19579 # A ".." for each directory in $ac_dir_suffix. 19580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19581 case $ac_top_builddir_sub in 19582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19584 esac ;; 19585esac 19586ac_abs_top_builddir=$ac_pwd 19587ac_abs_builddir=$ac_pwd$ac_dir_suffix 19588# for backward compatibility: 19589ac_top_builddir=$ac_top_build_prefix 19590 19591case $srcdir in 19592 .) # We are building in place. 19593 ac_srcdir=. 19594 ac_top_srcdir=$ac_top_builddir_sub 19595 ac_abs_top_srcdir=$ac_pwd ;; 19596 [\\/]* | ?:[\\/]* ) # Absolute name. 19597 ac_srcdir=$srcdir$ac_dir_suffix; 19598 ac_top_srcdir=$srcdir 19599 ac_abs_top_srcdir=$srcdir ;; 19600 *) # Relative name. 19601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19602 ac_top_srcdir=$ac_top_build_prefix$srcdir 19603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19604esac 19605ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19606 19607 19608 case $ac_mode in 19609 :F) 19610 # 19611 # CONFIG_FILE 19612 # 19613 19614_ACEOF 19615 19616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19617# If the template does not know about datarootdir, expand it. 19618# FIXME: This hack should be removed a few years after 2.60. 19619ac_datarootdir_hack=; ac_datarootdir_seen= 19620ac_sed_dataroot=' 19621/datarootdir/ { 19622 p 19623 q 19624} 19625/@datadir@/p 19626/@docdir@/p 19627/@infodir@/p 19628/@localedir@/p 19629/@mandir@/p' 19630case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19631*datarootdir*) ac_datarootdir_seen=yes;; 19632*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19634$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19635_ACEOF 19636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19637 ac_datarootdir_hack=' 19638 s&@datadir@&$datadir&g 19639 s&@docdir@&$docdir&g 19640 s&@infodir@&$infodir&g 19641 s&@localedir@&$localedir&g 19642 s&@mandir@&$mandir&g 19643 s&\\\${datarootdir}&$datarootdir&g' ;; 19644esac 19645_ACEOF 19646 19647# Neutralize VPATH when `$srcdir' = `.'. 19648# Shell code in configure.ac might set extrasub. 19649# FIXME: do we really want to maintain this feature? 19650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19651ac_sed_extra="$ac_vpsub 19652$extrasub 19653_ACEOF 19654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19655:t 19656/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19657s|@configure_input@|$ac_sed_conf_input|;t t 19658s&@top_builddir@&$ac_top_builddir_sub&;t t 19659s&@top_build_prefix@&$ac_top_build_prefix&;t t 19660s&@srcdir@&$ac_srcdir&;t t 19661s&@abs_srcdir@&$ac_abs_srcdir&;t t 19662s&@top_srcdir@&$ac_top_srcdir&;t t 19663s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19664s&@builddir@&$ac_builddir&;t t 19665s&@abs_builddir@&$ac_abs_builddir&;t t 19666s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19667$ac_datarootdir_hack 19668" 19669eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19670 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19671 19672test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19673 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19674 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19675 "$ac_tmp/out"`; test -z "$ac_out"; } && 19676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19677which seems to be undefined. Please make sure it is defined" >&5 19678$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19679which seems to be undefined. Please make sure it is defined" >&2;} 19680 19681 rm -f "$ac_tmp/stdin" 19682 case $ac_file in 19683 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19684 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19685 esac \ 19686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19687 ;; 19688 :H) 19689 # 19690 # CONFIG_HEADER 19691 # 19692 if test x"$ac_file" != x-; then 19693 { 19694 $as_echo "/* $configure_input */" \ 19695 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19696 } >"$ac_tmp/config.h" \ 19697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19698 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19699 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19700$as_echo "$as_me: $ac_file is unchanged" >&6;} 19701 else 19702 rm -f "$ac_file" 19703 mv "$ac_tmp/config.h" "$ac_file" \ 19704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19705 fi 19706 else 19707 $as_echo "/* $configure_input */" \ 19708 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19709 || as_fn_error $? "could not create -" "$LINENO" 5 19710 fi 19711 ;; 19712 19713 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19714$as_echo "$as_me: executing $ac_file commands" >&6;} 19715 ;; 19716 esac 19717 19718 19719 case $ac_file$ac_mode in 19720 "libtool":C) 19721 19722 # See if we are running on zsh, and set the options which allow our 19723 # commands through without removal of \ escapes. 19724 if test -n "${ZSH_VERSION+set}" ; then 19725 setopt NO_GLOB_SUBST 19726 fi 19727 19728 cfgfile="${ofile}T" 19729 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19730 $RM "$cfgfile" 19731 19732 cat <<_LT_EOF >> "$cfgfile" 19733#! $SHELL 19734 19735# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19736# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19737# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19738# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19739# 19740# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19741# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19742# Foundation, Inc. 19743# Written by Gordon Matzigkeit, 1996 19744# 19745# This file is part of GNU Libtool. 19746# 19747# GNU Libtool is free software; you can redistribute it and/or 19748# modify it under the terms of the GNU General Public License as 19749# published by the Free Software Foundation; either version 2 of 19750# the License, or (at your option) any later version. 19751# 19752# As a special exception to the GNU General Public License, 19753# if you distribute this file as part of a program or library that 19754# is built using GNU Libtool, you may include this file under the 19755# same distribution terms that you use for the rest of that program. 19756# 19757# GNU Libtool is distributed in the hope that it will be useful, 19758# but WITHOUT ANY WARRANTY; without even the implied warranty of 19759# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19760# GNU General Public License for more details. 19761# 19762# You should have received a copy of the GNU General Public License 19763# along with GNU Libtool; see the file COPYING. If not, a copy 19764# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19765# obtained by writing to the Free Software Foundation, Inc., 19766# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19767 19768 19769# The names of the tagged configurations supported by this script. 19770available_tags="" 19771 19772# ### BEGIN LIBTOOL CONFIG 19773 19774# Which release of libtool.m4 was used? 19775macro_version=$macro_version 19776macro_revision=$macro_revision 19777 19778# Whether or not to build shared libraries. 19779build_libtool_libs=$enable_shared 19780 19781# Whether or not to build static libraries. 19782build_old_libs=$enable_static 19783 19784# What type of objects to build. 19785pic_mode=$pic_mode 19786 19787# Whether or not to optimize for fast installation. 19788fast_install=$enable_fast_install 19789 19790# Shell to use when invoking shell scripts. 19791SHELL=$lt_SHELL 19792 19793# An echo program that protects backslashes. 19794ECHO=$lt_ECHO 19795 19796# The PATH separator for the build system. 19797PATH_SEPARATOR=$lt_PATH_SEPARATOR 19798 19799# The host system. 19800host_alias=$host_alias 19801host=$host 19802host_os=$host_os 19803 19804# The build system. 19805build_alias=$build_alias 19806build=$build 19807build_os=$build_os 19808 19809# A sed program that does not truncate output. 19810SED=$lt_SED 19811 19812# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19813Xsed="\$SED -e 1s/^X//" 19814 19815# A grep program that handles long lines. 19816GREP=$lt_GREP 19817 19818# An ERE matcher. 19819EGREP=$lt_EGREP 19820 19821# A literal string matcher. 19822FGREP=$lt_FGREP 19823 19824# A BSD- or MS-compatible name lister. 19825NM=$lt_NM 19826 19827# Whether we need soft or hard links. 19828LN_S=$lt_LN_S 19829 19830# What is the maximum length of a command? 19831max_cmd_len=$max_cmd_len 19832 19833# Object file suffix (normally "o"). 19834objext=$ac_objext 19835 19836# Executable file suffix (normally ""). 19837exeext=$exeext 19838 19839# whether the shell understands "unset". 19840lt_unset=$lt_unset 19841 19842# turn spaces into newlines. 19843SP2NL=$lt_lt_SP2NL 19844 19845# turn newlines into spaces. 19846NL2SP=$lt_lt_NL2SP 19847 19848# convert \$build file names to \$host format. 19849to_host_file_cmd=$lt_cv_to_host_file_cmd 19850 19851# convert \$build files to toolchain format. 19852to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19853 19854# An object symbol dumper. 19855OBJDUMP=$lt_OBJDUMP 19856 19857# Method to check whether dependent libraries are shared objects. 19858deplibs_check_method=$lt_deplibs_check_method 19859 19860# Command to use when deplibs_check_method = "file_magic". 19861file_magic_cmd=$lt_file_magic_cmd 19862 19863# How to find potential files when deplibs_check_method = "file_magic". 19864file_magic_glob=$lt_file_magic_glob 19865 19866# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19867want_nocaseglob=$lt_want_nocaseglob 19868 19869# DLL creation program. 19870DLLTOOL=$lt_DLLTOOL 19871 19872# Command to associate shared and link libraries. 19873sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19874 19875# The archiver. 19876AR=$lt_AR 19877 19878# Flags to create an archive. 19879AR_FLAGS=$lt_AR_FLAGS 19880 19881# How to feed a file listing to the archiver. 19882archiver_list_spec=$lt_archiver_list_spec 19883 19884# A symbol stripping program. 19885STRIP=$lt_STRIP 19886 19887# Commands used to install an old-style archive. 19888RANLIB=$lt_RANLIB 19889old_postinstall_cmds=$lt_old_postinstall_cmds 19890old_postuninstall_cmds=$lt_old_postuninstall_cmds 19891 19892# Whether to use a lock for old archive extraction. 19893lock_old_archive_extraction=$lock_old_archive_extraction 19894 19895# A C compiler. 19896LTCC=$lt_CC 19897 19898# LTCC compiler flags. 19899LTCFLAGS=$lt_CFLAGS 19900 19901# Take the output of nm and produce a listing of raw symbols and C names. 19902global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19903 19904# Transform the output of nm in a proper C declaration. 19905global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19906 19907# Transform the output of nm in a C name address pair. 19908global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19909 19910# Transform the output of nm in a C name address pair when lib prefix is needed. 19911global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19912 19913# Specify filename containing input files for \$NM. 19914nm_file_list_spec=$lt_nm_file_list_spec 19915 19916# The root where to search for dependent libraries,and in which our libraries should be installed. 19917lt_sysroot=$lt_sysroot 19918 19919# The name of the directory that contains temporary libtool files. 19920objdir=$objdir 19921 19922# Used to examine libraries when file_magic_cmd begins with "file". 19923MAGIC_CMD=$MAGIC_CMD 19924 19925# Must we lock files when doing compilation? 19926need_locks=$lt_need_locks 19927 19928# Manifest tool. 19929MANIFEST_TOOL=$lt_MANIFEST_TOOL 19930 19931# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19932DSYMUTIL=$lt_DSYMUTIL 19933 19934# Tool to change global to local symbols on Mac OS X. 19935NMEDIT=$lt_NMEDIT 19936 19937# Tool to manipulate fat objects and archives on Mac OS X. 19938LIPO=$lt_LIPO 19939 19940# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19941OTOOL=$lt_OTOOL 19942 19943# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19944OTOOL64=$lt_OTOOL64 19945 19946# Old archive suffix (normally "a"). 19947libext=$libext 19948 19949# Shared library suffix (normally ".so"). 19950shrext_cmds=$lt_shrext_cmds 19951 19952# The commands to extract the exported symbol list from a shared archive. 19953extract_expsyms_cmds=$lt_extract_expsyms_cmds 19954 19955# Variables whose values should be saved in libtool wrapper scripts and 19956# restored at link time. 19957variables_saved_for_relink=$lt_variables_saved_for_relink 19958 19959# Do we need the "lib" prefix for modules? 19960need_lib_prefix=$need_lib_prefix 19961 19962# Do we need a version for libraries? 19963need_version=$need_version 19964 19965# Library versioning type. 19966version_type=$version_type 19967 19968# Shared library runtime path variable. 19969runpath_var=$runpath_var 19970 19971# Shared library path variable. 19972shlibpath_var=$shlibpath_var 19973 19974# Is shlibpath searched before the hard-coded library search path? 19975shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19976 19977# Format of library name prefix. 19978libname_spec=$lt_libname_spec 19979 19980# List of archive names. First name is the real one, the rest are links. 19981# The last name is the one that the linker finds with -lNAME 19982library_names_spec=$lt_library_names_spec 19983 19984# The coded name of the library, if different from the real name. 19985soname_spec=$lt_soname_spec 19986 19987# Permission mode override for installation of shared libraries. 19988install_override_mode=$lt_install_override_mode 19989 19990# Command to use after installation of a shared archive. 19991postinstall_cmds=$lt_postinstall_cmds 19992 19993# Command to use after uninstallation of a shared archive. 19994postuninstall_cmds=$lt_postuninstall_cmds 19995 19996# Commands used to finish a libtool library installation in a directory. 19997finish_cmds=$lt_finish_cmds 19998 19999# As "finish_cmds", except a single script fragment to be evaled but 20000# not shown. 20001finish_eval=$lt_finish_eval 20002 20003# Whether we should hardcode library paths into libraries. 20004hardcode_into_libs=$hardcode_into_libs 20005 20006# Compile-time system search path for libraries. 20007sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20008 20009# Run-time system search path for libraries. 20010sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20011 20012# Whether dlopen is supported. 20013dlopen_support=$enable_dlopen 20014 20015# Whether dlopen of programs is supported. 20016dlopen_self=$enable_dlopen_self 20017 20018# Whether dlopen of statically linked programs is supported. 20019dlopen_self_static=$enable_dlopen_self_static 20020 20021# Commands to strip libraries. 20022old_striplib=$lt_old_striplib 20023striplib=$lt_striplib 20024 20025 20026# The linker used to build libraries. 20027LD=$lt_LD 20028 20029# How to create reloadable object files. 20030reload_flag=$lt_reload_flag 20031reload_cmds=$lt_reload_cmds 20032 20033# Commands used to build an old-style archive. 20034old_archive_cmds=$lt_old_archive_cmds 20035 20036# A language specific compiler. 20037CC=$lt_compiler 20038 20039# Is the compiler the GNU compiler? 20040with_gcc=$GCC 20041 20042# Compiler flag to turn off builtin functions. 20043no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20044 20045# Additional compiler flags for building library objects. 20046pic_flag=$lt_lt_prog_compiler_pic 20047 20048# How to pass a linker flag through the compiler. 20049wl=$lt_lt_prog_compiler_wl 20050 20051# Compiler flag to prevent dynamic linking. 20052link_static_flag=$lt_lt_prog_compiler_static 20053 20054# Does compiler simultaneously support -c and -o options? 20055compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20056 20057# Whether or not to add -lc for building shared libraries. 20058build_libtool_need_lc=$archive_cmds_need_lc 20059 20060# Whether or not to disallow shared libs when runtime libs are static. 20061allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20062 20063# Compiler flag to allow reflexive dlopens. 20064export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20065 20066# Compiler flag to generate shared objects directly from archives. 20067whole_archive_flag_spec=$lt_whole_archive_flag_spec 20068 20069# Whether the compiler copes with passing no objects directly. 20070compiler_needs_object=$lt_compiler_needs_object 20071 20072# Create an old-style archive from a shared archive. 20073old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20074 20075# Create a temporary old-style archive to link instead of a shared archive. 20076old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20077 20078# Commands used to build a shared archive. 20079archive_cmds=$lt_archive_cmds 20080archive_expsym_cmds=$lt_archive_expsym_cmds 20081 20082# Commands used to build a loadable module if different from building 20083# a shared archive. 20084module_cmds=$lt_module_cmds 20085module_expsym_cmds=$lt_module_expsym_cmds 20086 20087# Whether we are building with GNU ld or not. 20088with_gnu_ld=$lt_with_gnu_ld 20089 20090# Flag that allows shared libraries with undefined symbols to be built. 20091allow_undefined_flag=$lt_allow_undefined_flag 20092 20093# Flag that enforces no undefined symbols. 20094no_undefined_flag=$lt_no_undefined_flag 20095 20096# Flag to hardcode \$libdir into a binary during linking. 20097# This must work even if \$libdir does not exist 20098hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20099 20100# Whether we need a single "-rpath" flag with a separated argument. 20101hardcode_libdir_separator=$lt_hardcode_libdir_separator 20102 20103# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20104# DIR into the resulting binary. 20105hardcode_direct=$hardcode_direct 20106 20107# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20108# DIR into the resulting binary and the resulting library dependency is 20109# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20110# library is relocated. 20111hardcode_direct_absolute=$hardcode_direct_absolute 20112 20113# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20114# into the resulting binary. 20115hardcode_minus_L=$hardcode_minus_L 20116 20117# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20118# into the resulting binary. 20119hardcode_shlibpath_var=$hardcode_shlibpath_var 20120 20121# Set to "yes" if building a shared library automatically hardcodes DIR 20122# into the library and all subsequent libraries and executables linked 20123# against it. 20124hardcode_automatic=$hardcode_automatic 20125 20126# Set to yes if linker adds runtime paths of dependent libraries 20127# to runtime path list. 20128inherit_rpath=$inherit_rpath 20129 20130# Whether libtool must link a program against all its dependency libraries. 20131link_all_deplibs=$link_all_deplibs 20132 20133# Set to "yes" if exported symbols are required. 20134always_export_symbols=$always_export_symbols 20135 20136# The commands to list exported symbols. 20137export_symbols_cmds=$lt_export_symbols_cmds 20138 20139# Symbols that should not be listed in the preloaded symbols. 20140exclude_expsyms=$lt_exclude_expsyms 20141 20142# Symbols that must always be exported. 20143include_expsyms=$lt_include_expsyms 20144 20145# Commands necessary for linking programs (against libraries) with templates. 20146prelink_cmds=$lt_prelink_cmds 20147 20148# Commands necessary for finishing linking programs. 20149postlink_cmds=$lt_postlink_cmds 20150 20151# Specify filename containing input files. 20152file_list_spec=$lt_file_list_spec 20153 20154# How to hardcode a shared library path into an executable. 20155hardcode_action=$hardcode_action 20156 20157# ### END LIBTOOL CONFIG 20158 20159_LT_EOF 20160 20161 case $host_os in 20162 aix3*) 20163 cat <<\_LT_EOF >> "$cfgfile" 20164# AIX sometimes has problems with the GCC collect2 program. For some 20165# reason, if we set the COLLECT_NAMES environment variable, the problems 20166# vanish in a puff of smoke. 20167if test "X${COLLECT_NAMES+set}" != Xset; then 20168 COLLECT_NAMES= 20169 export COLLECT_NAMES 20170fi 20171_LT_EOF 20172 ;; 20173 esac 20174 20175 20176ltmain="$ac_aux_dir/ltmain.sh" 20177 20178 20179 # We use sed instead of cat because bash on DJGPP gets confused if 20180 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20181 # text mode, it properly converts lines to CR/LF. This bash problem 20182 # is reportedly fixed, but why not run on old versions too? 20183 sed '$q' "$ltmain" >> "$cfgfile" \ 20184 || (rm -f "$cfgfile"; exit 1) 20185 20186 if test x"$xsi_shell" = xyes; then 20187 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20188func_dirname ()\ 20189{\ 20190\ case ${1} in\ 20191\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20192\ * ) func_dirname_result="${3}" ;;\ 20193\ esac\ 20194} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20195 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20196 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20197test 0 -eq $? || _lt_function_replace_fail=: 20198 20199 20200 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20201func_basename ()\ 20202{\ 20203\ func_basename_result="${1##*/}"\ 20204} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20205 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20206 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20207test 0 -eq $? || _lt_function_replace_fail=: 20208 20209 20210 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20211func_dirname_and_basename ()\ 20212{\ 20213\ case ${1} in\ 20214\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20215\ * ) func_dirname_result="${3}" ;;\ 20216\ esac\ 20217\ func_basename_result="${1##*/}"\ 20218} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20219 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20220 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20221test 0 -eq $? || _lt_function_replace_fail=: 20222 20223 20224 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20225func_stripname ()\ 20226{\ 20227\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20228\ # positional parameters, so assign one to ordinary parameter first.\ 20229\ func_stripname_result=${3}\ 20230\ func_stripname_result=${func_stripname_result#"${1}"}\ 20231\ func_stripname_result=${func_stripname_result%"${2}"}\ 20232} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20233 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20235test 0 -eq $? || _lt_function_replace_fail=: 20236 20237 20238 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20239func_split_long_opt ()\ 20240{\ 20241\ func_split_long_opt_name=${1%%=*}\ 20242\ func_split_long_opt_arg=${1#*=}\ 20243} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20244 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20246test 0 -eq $? || _lt_function_replace_fail=: 20247 20248 20249 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20250func_split_short_opt ()\ 20251{\ 20252\ func_split_short_opt_arg=${1#??}\ 20253\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20254} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20255 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20256 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20257test 0 -eq $? || _lt_function_replace_fail=: 20258 20259 20260 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20261func_lo2o ()\ 20262{\ 20263\ case ${1} in\ 20264\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20265\ *) func_lo2o_result=${1} ;;\ 20266\ esac\ 20267} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20268 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20270test 0 -eq $? || _lt_function_replace_fail=: 20271 20272 20273 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20274func_xform ()\ 20275{\ 20276 func_xform_result=${1%.*}.lo\ 20277} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20278 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20279 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20280test 0 -eq $? || _lt_function_replace_fail=: 20281 20282 20283 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20284func_arith ()\ 20285{\ 20286 func_arith_result=$(( $* ))\ 20287} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20288 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20290test 0 -eq $? || _lt_function_replace_fail=: 20291 20292 20293 sed -e '/^func_len ()$/,/^} # func_len /c\ 20294func_len ()\ 20295{\ 20296 func_len_result=${#1}\ 20297} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20298 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20299 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20300test 0 -eq $? || _lt_function_replace_fail=: 20301 20302fi 20303 20304if test x"$lt_shell_append" = xyes; then 20305 sed -e '/^func_append ()$/,/^} # func_append /c\ 20306func_append ()\ 20307{\ 20308 eval "${1}+=\\${2}"\ 20309} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20310 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20311 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20312test 0 -eq $? || _lt_function_replace_fail=: 20313 20314 20315 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20316func_append_quoted ()\ 20317{\ 20318\ func_quote_for_eval "${2}"\ 20319\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20320} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20321 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20323test 0 -eq $? || _lt_function_replace_fail=: 20324 20325 20326 # Save a `func_append' function call where possible by direct use of '+=' 20327 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20328 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20330 test 0 -eq $? || _lt_function_replace_fail=: 20331else 20332 # Save a `func_append' function call even when '+=' is not available 20333 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20334 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20335 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20336 test 0 -eq $? || _lt_function_replace_fail=: 20337fi 20338 20339if test x"$_lt_function_replace_fail" = x":"; then 20340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20341$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20342fi 20343 20344 20345 mv -f "$cfgfile" "$ofile" || 20346 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20347 chmod +x "$ofile" 20348 20349 ;; 20350 "disable-rpath":C) 20351 sed < libtool > libtool-2 \ 20352 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 20353 mv libtool-2 libtool 20354 chmod 755 libtool 20355 libtool="./libtool" 20356 ;; 20357 20358 esac 20359done # for ac_tag 20360 20361 20362as_fn_exit 0 20363_ACEOF 20364ac_clean_files=$ac_clean_files_save 20365 20366test $ac_write_fail = 0 || 20367 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20368 20369 20370# configure is writing to config.log, and then calls config.status. 20371# config.status does its own redirection, appending to config.log. 20372# Unfortunately, on DOS this fails, as config.log is still kept open 20373# by configure, so config.status won't be able to write to it; its 20374# output is simply discarded. So we exec the FD to /dev/null, 20375# effectively closing config.log, so it can be properly (re)opened and 20376# appended to by config.status. When coming back to configure, we 20377# need to make the FD available again. 20378if test "$no_create" != yes; then 20379 ac_cs_success=: 20380 ac_config_status_args= 20381 test "$silent" = yes && 20382 ac_config_status_args="$ac_config_status_args --quiet" 20383 exec 5>/dev/null 20384 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20385 exec 5>>config.log 20386 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20387 # would make configure fail if this is the last instruction. 20388 $ac_cs_success || as_fn_exit 1 20389fi 20390if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20392$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20393fi 20394 20395