1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for unbound 1.21.1. 4# 5# Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 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'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: unbound-bugs@nlnetlabs.nl or 280$0: https://github.com/NLnetLabs/unbound/issues about your 281$0: system, including any error possibly output before this 282$0: message. Then install a modern shell, or manually run 283$0: the script under such a shell if you do have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602test -n "$DJDIR" || exec 7<&0 </dev/null 603exec 6>&1 604 605# Name of the host. 606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607# so uname gets run too. 608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610# 611# Initializations. 612# 613ac_default_prefix=/usr/local 614ac_clean_files= 615ac_config_libobj_dir=. 616LIBOBJS= 617cross_compiling=no 618subdirs= 619MFLAGS= 620MAKEFLAGS= 621 622# Identity of this package. 623PACKAGE_NAME='unbound' 624PACKAGE_TARNAME='unbound' 625PACKAGE_VERSION='1.21.1' 626PACKAGE_STRING='unbound 1.21.1' 627PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues' 628PACKAGE_URL='' 629 630# Factoring default headers for most tests. 631ac_includes_default="\ 632#include <stddef.h> 633#ifdef HAVE_STDIO_H 634# include <stdio.h> 635#endif 636#ifdef HAVE_STDLIB_H 637# include <stdlib.h> 638#endif 639#ifdef HAVE_STRING_H 640# include <string.h> 641#endif 642#ifdef HAVE_INTTYPES_H 643# include <inttypes.h> 644#endif 645#ifdef HAVE_STDINT_H 646# include <stdint.h> 647#endif 648#ifdef HAVE_STRINGS_H 649# include <strings.h> 650#endif 651#ifdef HAVE_SYS_TYPES_H 652# include <sys/types.h> 653#endif 654#ifdef HAVE_SYS_STAT_H 655# include <sys/stat.h> 656#endif 657#ifdef HAVE_UNISTD_H 658# include <unistd.h> 659#endif" 660 661ac_header_c_list= 662ac_func_c_list= 663ac_subst_vars='LTLIBOBJS 664date 665version 666INSTALLTARGET 667ALLTARGET 668SOURCEFILE 669SOURCEDETERMINE 670IPSET_OBJ 671IPSET_SRC 672IPSECMOD_HEADER 673IPSECMOD_OBJ 674CACHEDB_OBJ 675CACHEDB_SRC 676DNSCRYPT_OBJ 677DNSCRYPT_SRC 678ENABLE_DNSCRYPT 679ENABLE_DNSCRYPT_XCHACHA20 680DNSTAP_OBJ 681DNSTAP_SRC 682DNSTAP_SOCKET_TESTBIN 683DNSTAP_SOCKET_PATH 684opt_dnstap_socket_path 685ENABLE_DNSTAP 686PROTOBUFC_LIBS 687PROTOBUFC_CFLAGS 688PROTOC_C 689UBSYMS 690EXTRALINK 691COMMON_OBJ_ALL_SYMBOLS 692LIBOBJ_WITHOUT_CTIME 693LIBOBJ_WITHOUT_CTIMEARC4 694WIN_CHECKCONF_OBJ_LINK 695WIN_CONTROL_OBJ_LINK 696WIN_UBANCHOR_OBJ_LINK 697WIN_HOST_OBJ_LINK 698WIN_DAEMON_OBJ_LINK 699WIN_DAEMON_OBJ 700WIN_DAEMON_SRC 701WINAPPS 702WINDRES 703CHECKLOCK_OBJ 704staticexe 705PC_LIBEVENT_DEPENDENCY 706UNBOUND_EVENT_UNINSTALL 707UNBOUND_EVENT_INSTALL 708SUBNET_HEADER 709SUBNET_OBJ 710PC_LIBBSD_DEPENDENCY 711SSLLIB 712HAVE_SSL 713PC_CRYPTO_DEPENDENCY 714CONFIG_DATE 715GCC_DOCKER_LINTFLAGS 716NETBSD_LINTFLAGS 717PYUNBOUND_UNINSTALL 718PYUNBOUND_INSTALL 719PYUNBOUND_TARGET 720PYUNBOUND_OBJ 721WITH_PYUNBOUND 722PYTHONMOD_UNINSTALL 723PYTHONMOD_INSTALL 724PYTHONMOD_HEADER 725PYTHONMOD_OBJ 726WITH_PYTHONMODULE 727swig 728SWIG_LIB 729SWIG 730PC_PY_DEPENDENCY 731PYTHON_LIBS 732PY_MAJOR_VERSION 733PYTHON_SITE_PKG 734PYTHON_LDFLAGS 735PYTHON_CPPFLAGS 736PYTHON 737PYTHON_VERSION 738DYNLIBMOD_EXTRALIBS 739DYNLIBMOD_HEADER 740DYNLIBMOD_OBJ 741WITH_DYNLIBMODULE 742PTHREAD_CFLAGS_ONLY 743PTHREAD_CFLAGS 744PTHREAD_LIBS 745PTHREAD_CXX 746PTHREAD_CC 747ax_pthread_config 748ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ 749SLDNS_ALLOCCHECK_EXTRA_OBJ 750USE_SYSTEMD_FALSE 751USE_SYSTEMD_TRUE 752SYSTEMD_DAEMON_LIBS 753SYSTEMD_DAEMON_CFLAGS 754SYSTEMD_LIBS 755SYSTEMD_CFLAGS 756RUNTIME_PATH 757LIBOBJS 758CPP 759PKG_CONFIG_LIBDIR 760PKG_CONFIG_PATH 761PKG_CONFIG 762LT_SYS_LIBRARY_PATH 763OTOOL64 764OTOOL 765LIPO 766NMEDIT 767DSYMUTIL 768MANIFEST_TOOL 769AWK 770RANLIB 771ac_ct_AR 772DLLTOOL 773OBJDUMP 774FILECMD 775LN_S 776NM 777ac_ct_DUMPBIN 778DUMPBIN 779LD 780FGREP 781EGREP 782SED 783LIBTOOL 784AR 785host_os 786host_vendor 787host_cpu 788host 789build_os 790build_vendor 791build_cpu 792build 793libtool 794STRIP 795doxygen 796YFLAGS 797YACC 798LEXLIB 799LEX_OUTPUT_ROOT 800LEX 801debug_enabled 802DEPFLAG 803GREP 804UNBOUND_USERNAME 805UNBOUND_ROOTCERT_FILE 806UNBOUND_ROOTKEY_FILE 807UNBOUND_PIDFILE 808UNBOUND_SHARE_DIR 809UNBOUND_CHROOT_DIR 810UNBOUND_RUN_DIR 811ub_conf_dir 812ub_conf_file 813UNBOUND_LOCALSTATE_DIR 814UNBOUND_SYSCONF_DIR 815UNBOUND_SBIN_DIR 816OBJEXT 817EXEEXT 818ac_ct_CC 819CPPFLAGS 820LDFLAGS 821CFLAGS 822CC 823LIBUNBOUND_AGE 824LIBUNBOUND_REVISION 825LIBUNBOUND_CURRENT 826UNBOUND_VERSION_MICRO 827UNBOUND_VERSION_MINOR 828UNBOUND_VERSION_MAJOR 829target_alias 830host_alias 831build_alias 832LIBS 833ECHO_T 834ECHO_N 835ECHO_C 836DEFS 837mandir 838localedir 839libdir 840psdir 841pdfdir 842dvidir 843htmldir 844infodir 845docdir 846oldincludedir 847includedir 848runstatedir 849localstatedir 850sharedstatedir 851sysconfdir 852datadir 853datarootdir 854libexecdir 855sbindir 856bindir 857program_transform_name 858prefix 859exec_prefix 860PACKAGE_URL 861PACKAGE_BUGREPORT 862PACKAGE_STRING 863PACKAGE_VERSION 864PACKAGE_TARNAME 865PACKAGE_NAME 866PATH_SEPARATOR 867SHELL' 868ac_subst_files='' 869ac_user_opts=' 870enable_option_checking 871with_conf_file 872with_run_dir 873with_chroot_dir 874with_share_dir 875with_pidfile 876with_rootkey_file 877with_rootcert_file 878with_username 879enable_checking 880enable_debug 881enable_flto 882enable_pie 883enable_relro_now 884enable_shared 885enable_static 886with_pic 887enable_fast_install 888with_aix_soname 889with_gnu_ld 890with_sysroot 891enable_libtool_lock 892enable_rpath 893enable_largefile 894enable_systemd 895enable_alloc_checks 896enable_alloc_lite 897enable_alloc_nonregional 898with_pthreads 899with_solaris_threads 900with_syslog_facility 901with_dynlibmodule 902with_pyunbound 903with_pythonmodule 904enable_swig_version_check 905with_nss 906with_nettle 907with_ssl 908with_libbsd 909enable_sha1 910enable_sha2 911enable_subnet 912enable_gost 913enable_ecdsa 914enable_dsa 915with_deprecate_rsa_1024 916enable_ed25519 917enable_ed448 918enable_event_api 919enable_tfo_client 920enable_tfo_server 921with_libevent 922with_libexpat 923with_libhiredis 924with_libnghttp2 925enable_static_exe 926enable_fully_static 927enable_lock_checks 928enable_allsymbols 929enable_dnstap 930with_dnstap_socket_path 931with_protobuf_c 932enable_dnscrypt 933with_libsodium 934enable_cachedb 935enable_ipsecmod 936enable_ipset 937with_libmnl 938enable_explicit_port_randomisation 939enable_linux_ip_local_port_range 940with_libunbound_only 941' 942 ac_precious_vars='build_alias 943host_alias 944target_alias 945CC 946CFLAGS 947LDFLAGS 948LIBS 949CPPFLAGS 950YACC 951YFLAGS 952LT_SYS_LIBRARY_PATH 953PKG_CONFIG 954PKG_CONFIG_PATH 955PKG_CONFIG_LIBDIR 956CPP 957SYSTEMD_CFLAGS 958SYSTEMD_LIBS 959SYSTEMD_DAEMON_CFLAGS 960SYSTEMD_DAEMON_LIBS 961PYTHON_VERSION 962PROTOBUFC_CFLAGS 963PROTOBUFC_LIBS' 964 965 966# Initialize some variables set by options. 967ac_init_help= 968ac_init_version=false 969ac_unrecognized_opts= 970ac_unrecognized_sep= 971# The variables have the same names as the options, with 972# dashes changed to underlines. 973cache_file=/dev/null 974exec_prefix=NONE 975no_create= 976no_recursion= 977prefix=NONE 978program_prefix=NONE 979program_suffix=NONE 980program_transform_name=s,x,x, 981silent= 982site= 983srcdir= 984verbose= 985x_includes=NONE 986x_libraries=NONE 987 988# Installation directory options. 989# These are left unexpanded so users can "make install exec_prefix=/foo" 990# and all the variables that are supposed to be based on exec_prefix 991# by default will actually change. 992# Use braces instead of parens because sh, perl, etc. also accept them. 993# (The list follows the same order as the GNU Coding Standards.) 994bindir='${exec_prefix}/bin' 995sbindir='${exec_prefix}/sbin' 996libexecdir='${exec_prefix}/libexec' 997datarootdir='${prefix}/share' 998datadir='${datarootdir}' 999sysconfdir='${prefix}/etc' 1000sharedstatedir='${prefix}/com' 1001localstatedir='${prefix}/var' 1002runstatedir='${localstatedir}/run' 1003includedir='${prefix}/include' 1004oldincludedir='/usr/include' 1005docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1006infodir='${datarootdir}/info' 1007htmldir='${docdir}' 1008dvidir='${docdir}' 1009pdfdir='${docdir}' 1010psdir='${docdir}' 1011libdir='${exec_prefix}/lib' 1012localedir='${datarootdir}/locale' 1013mandir='${datarootdir}/man' 1014 1015ac_prev= 1016ac_dashdash= 1017for ac_option 1018do 1019 # If the previous option needs an argument, assign it. 1020 if test -n "$ac_prev"; then 1021 eval $ac_prev=\$ac_option 1022 ac_prev= 1023 continue 1024 fi 1025 1026 case $ac_option in 1027 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1028 *=) ac_optarg= ;; 1029 *) ac_optarg=yes ;; 1030 esac 1031 1032 case $ac_dashdash$ac_option in 1033 --) 1034 ac_dashdash=yes ;; 1035 1036 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1037 ac_prev=bindir ;; 1038 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1039 bindir=$ac_optarg ;; 1040 1041 -build | --build | --buil | --bui | --bu) 1042 ac_prev=build_alias ;; 1043 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1044 build_alias=$ac_optarg ;; 1045 1046 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1047 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1048 ac_prev=cache_file ;; 1049 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1050 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1051 cache_file=$ac_optarg ;; 1052 1053 --config-cache | -C) 1054 cache_file=config.cache ;; 1055 1056 -datadir | --datadir | --datadi | --datad) 1057 ac_prev=datadir ;; 1058 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1059 datadir=$ac_optarg ;; 1060 1061 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1062 | --dataroo | --dataro | --datar) 1063 ac_prev=datarootdir ;; 1064 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1065 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1066 datarootdir=$ac_optarg ;; 1067 1068 -disable-* | --disable-*) 1069 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1070 # Reject names that are not valid shell variable names. 1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1072 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1073 ac_useropt_orig=$ac_useropt 1074 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1075 case $ac_user_opts in 1076 *" 1077"enable_$ac_useropt" 1078"*) ;; 1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1080 ac_unrecognized_sep=', ';; 1081 esac 1082 eval enable_$ac_useropt=no ;; 1083 1084 -docdir | --docdir | --docdi | --doc | --do) 1085 ac_prev=docdir ;; 1086 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1087 docdir=$ac_optarg ;; 1088 1089 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1090 ac_prev=dvidir ;; 1091 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1092 dvidir=$ac_optarg ;; 1093 1094 -enable-* | --enable-*) 1095 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1096 # Reject names that are not valid shell variable names. 1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1098 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1099 ac_useropt_orig=$ac_useropt 1100 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1101 case $ac_user_opts in 1102 *" 1103"enable_$ac_useropt" 1104"*) ;; 1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1106 ac_unrecognized_sep=', ';; 1107 esac 1108 eval enable_$ac_useropt=\$ac_optarg ;; 1109 1110 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1111 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1112 | --exec | --exe | --ex) 1113 ac_prev=exec_prefix ;; 1114 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1115 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1116 | --exec=* | --exe=* | --ex=*) 1117 exec_prefix=$ac_optarg ;; 1118 1119 -gas | --gas | --ga | --g) 1120 # Obsolete; use --with-gas. 1121 with_gas=yes ;; 1122 1123 -help | --help | --hel | --he | -h) 1124 ac_init_help=long ;; 1125 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1126 ac_init_help=recursive ;; 1127 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1128 ac_init_help=short ;; 1129 1130 -host | --host | --hos | --ho) 1131 ac_prev=host_alias ;; 1132 -host=* | --host=* | --hos=* | --ho=*) 1133 host_alias=$ac_optarg ;; 1134 1135 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1136 ac_prev=htmldir ;; 1137 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1138 | --ht=*) 1139 htmldir=$ac_optarg ;; 1140 1141 -includedir | --includedir | --includedi | --included | --include \ 1142 | --includ | --inclu | --incl | --inc) 1143 ac_prev=includedir ;; 1144 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1145 | --includ=* | --inclu=* | --incl=* | --inc=*) 1146 includedir=$ac_optarg ;; 1147 1148 -infodir | --infodir | --infodi | --infod | --info | --inf) 1149 ac_prev=infodir ;; 1150 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1151 infodir=$ac_optarg ;; 1152 1153 -libdir | --libdir | --libdi | --libd) 1154 ac_prev=libdir ;; 1155 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1156 libdir=$ac_optarg ;; 1157 1158 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1159 | --libexe | --libex | --libe) 1160 ac_prev=libexecdir ;; 1161 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1162 | --libexe=* | --libex=* | --libe=*) 1163 libexecdir=$ac_optarg ;; 1164 1165 -localedir | --localedir | --localedi | --localed | --locale) 1166 ac_prev=localedir ;; 1167 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1168 localedir=$ac_optarg ;; 1169 1170 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1171 | --localstate | --localstat | --localsta | --localst | --locals) 1172 ac_prev=localstatedir ;; 1173 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1174 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1175 localstatedir=$ac_optarg ;; 1176 1177 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1178 ac_prev=mandir ;; 1179 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1180 mandir=$ac_optarg ;; 1181 1182 -nfp | --nfp | --nf) 1183 # Obsolete; use --without-fp. 1184 with_fp=no ;; 1185 1186 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1187 | --no-cr | --no-c | -n) 1188 no_create=yes ;; 1189 1190 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1191 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1192 no_recursion=yes ;; 1193 1194 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1195 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1196 | --oldin | --oldi | --old | --ol | --o) 1197 ac_prev=oldincludedir ;; 1198 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1199 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1200 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1201 oldincludedir=$ac_optarg ;; 1202 1203 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1204 ac_prev=prefix ;; 1205 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1206 prefix=$ac_optarg ;; 1207 1208 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1209 | --program-pre | --program-pr | --program-p) 1210 ac_prev=program_prefix ;; 1211 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1212 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1213 program_prefix=$ac_optarg ;; 1214 1215 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1216 | --program-suf | --program-su | --program-s) 1217 ac_prev=program_suffix ;; 1218 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1219 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1220 program_suffix=$ac_optarg ;; 1221 1222 -program-transform-name | --program-transform-name \ 1223 | --program-transform-nam | --program-transform-na \ 1224 | --program-transform-n | --program-transform- \ 1225 | --program-transform | --program-transfor \ 1226 | --program-transfo | --program-transf \ 1227 | --program-trans | --program-tran \ 1228 | --progr-tra | --program-tr | --program-t) 1229 ac_prev=program_transform_name ;; 1230 -program-transform-name=* | --program-transform-name=* \ 1231 | --program-transform-nam=* | --program-transform-na=* \ 1232 | --program-transform-n=* | --program-transform-=* \ 1233 | --program-transform=* | --program-transfor=* \ 1234 | --program-transfo=* | --program-transf=* \ 1235 | --program-trans=* | --program-tran=* \ 1236 | --progr-tra=* | --program-tr=* | --program-t=*) 1237 program_transform_name=$ac_optarg ;; 1238 1239 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1240 ac_prev=pdfdir ;; 1241 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1242 pdfdir=$ac_optarg ;; 1243 1244 -psdir | --psdir | --psdi | --psd | --ps) 1245 ac_prev=psdir ;; 1246 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1247 psdir=$ac_optarg ;; 1248 1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1250 | -silent | --silent | --silen | --sile | --sil) 1251 silent=yes ;; 1252 1253 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1254 | --runstate | --runstat | --runsta | --runst | --runs \ 1255 | --run | --ru | --r) 1256 ac_prev=runstatedir ;; 1257 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1258 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1259 | --run=* | --ru=* | --r=*) 1260 runstatedir=$ac_optarg ;; 1261 1262 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1263 ac_prev=sbindir ;; 1264 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1265 | --sbi=* | --sb=*) 1266 sbindir=$ac_optarg ;; 1267 1268 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1269 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1270 | --sharedst | --shareds | --shared | --share | --shar \ 1271 | --sha | --sh) 1272 ac_prev=sharedstatedir ;; 1273 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1274 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1275 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1276 | --sha=* | --sh=*) 1277 sharedstatedir=$ac_optarg ;; 1278 1279 -site | --site | --sit) 1280 ac_prev=site ;; 1281 -site=* | --site=* | --sit=*) 1282 site=$ac_optarg ;; 1283 1284 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1285 ac_prev=srcdir ;; 1286 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1287 srcdir=$ac_optarg ;; 1288 1289 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1290 | --syscon | --sysco | --sysc | --sys | --sy) 1291 ac_prev=sysconfdir ;; 1292 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1293 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1294 sysconfdir=$ac_optarg ;; 1295 1296 -target | --target | --targe | --targ | --tar | --ta | --t) 1297 ac_prev=target_alias ;; 1298 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1299 target_alias=$ac_optarg ;; 1300 1301 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1302 verbose=yes ;; 1303 1304 -version | --version | --versio | --versi | --vers | -V) 1305 ac_init_version=: ;; 1306 1307 -with-* | --with-*) 1308 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1309 # Reject names that are not valid shell variable names. 1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1311 as_fn_error $? "invalid package name: \`$ac_useropt'" 1312 ac_useropt_orig=$ac_useropt 1313 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1314 case $ac_user_opts in 1315 *" 1316"with_$ac_useropt" 1317"*) ;; 1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1319 ac_unrecognized_sep=', ';; 1320 esac 1321 eval with_$ac_useropt=\$ac_optarg ;; 1322 1323 -without-* | --without-*) 1324 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1325 # Reject names that are not valid shell variable names. 1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1327 as_fn_error $? "invalid package name: \`$ac_useropt'" 1328 ac_useropt_orig=$ac_useropt 1329 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1330 case $ac_user_opts in 1331 *" 1332"with_$ac_useropt" 1333"*) ;; 1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1335 ac_unrecognized_sep=', ';; 1336 esac 1337 eval with_$ac_useropt=no ;; 1338 1339 --x) 1340 # Obsolete; use --with-x. 1341 with_x=yes ;; 1342 1343 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1344 | --x-incl | --x-inc | --x-in | --x-i) 1345 ac_prev=x_includes ;; 1346 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1347 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1348 x_includes=$ac_optarg ;; 1349 1350 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1351 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1352 ac_prev=x_libraries ;; 1353 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1354 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1355 x_libraries=$ac_optarg ;; 1356 1357 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1358Try \`$0 --help' for more information" 1359 ;; 1360 1361 *=*) 1362 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1363 # Reject names that are not valid shell variable names. 1364 case $ac_envvar in #( 1365 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1366 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1367 esac 1368 eval $ac_envvar=\$ac_optarg 1369 export $ac_envvar ;; 1370 1371 *) 1372 # FIXME: should be removed in autoconf 3.0. 1373 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1374 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1375 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1376 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1377 ;; 1378 1379 esac 1380done 1381 1382if test -n "$ac_prev"; then 1383 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1384 as_fn_error $? "missing argument to $ac_option" 1385fi 1386 1387if test -n "$ac_unrecognized_opts"; then 1388 case $enable_option_checking in 1389 no) ;; 1390 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1391 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1392 esac 1393fi 1394 1395# Check all directory arguments for consistency. 1396for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1397 datadir sysconfdir sharedstatedir localstatedir includedir \ 1398 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1399 libdir localedir mandir runstatedir 1400do 1401 eval ac_val=\$$ac_var 1402 # Remove trailing slashes. 1403 case $ac_val in 1404 */ ) 1405 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1406 eval $ac_var=\$ac_val;; 1407 esac 1408 # Be sure to have absolute directory names. 1409 case $ac_val in 1410 [\\/$]* | ?:[\\/]* ) continue;; 1411 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1412 esac 1413 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1414done 1415 1416# There might be people who depend on the old broken behavior: `$host' 1417# used to hold the argument of --host etc. 1418# FIXME: To remove some day. 1419build=$build_alias 1420host=$host_alias 1421target=$target_alias 1422 1423# FIXME: To remove some day. 1424if test "x$host_alias" != x; then 1425 if test "x$build_alias" = x; then 1426 cross_compiling=maybe 1427 elif test "x$build_alias" != "x$host_alias"; then 1428 cross_compiling=yes 1429 fi 1430fi 1431 1432ac_tool_prefix= 1433test -n "$host_alias" && ac_tool_prefix=$host_alias- 1434 1435test "$silent" = yes && exec 6>/dev/null 1436 1437 1438ac_pwd=`pwd` && test -n "$ac_pwd" && 1439ac_ls_di=`ls -di .` && 1440ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1441 as_fn_error $? "working directory cannot be determined" 1442test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1443 as_fn_error $? "pwd does not report name of working directory" 1444 1445 1446# Find the source files, if location was not specified. 1447if test -z "$srcdir"; then 1448 ac_srcdir_defaulted=yes 1449 # Try the directory containing this script, then the parent directory. 1450 ac_confdir=`$as_dirname -- "$as_myself" || 1451$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1452 X"$as_myself" : 'X\(//\)[^/]' \| \ 1453 X"$as_myself" : 'X\(//\)$' \| \ 1454 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1455printf "%s\n" X"$as_myself" | 1456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1457 s//\1/ 1458 q 1459 } 1460 /^X\(\/\/\)[^/].*/{ 1461 s//\1/ 1462 q 1463 } 1464 /^X\(\/\/\)$/{ 1465 s//\1/ 1466 q 1467 } 1468 /^X\(\/\).*/{ 1469 s//\1/ 1470 q 1471 } 1472 s/.*/./; q'` 1473 srcdir=$ac_confdir 1474 if test ! -r "$srcdir/$ac_unique_file"; then 1475 srcdir=.. 1476 fi 1477else 1478 ac_srcdir_defaulted=no 1479fi 1480if test ! -r "$srcdir/$ac_unique_file"; then 1481 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1482 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1483fi 1484ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1485ac_abs_confdir=`( 1486 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1487 pwd)` 1488# When building in place, set srcdir=. 1489if test "$ac_abs_confdir" = "$ac_pwd"; then 1490 srcdir=. 1491fi 1492# Remove unnecessary trailing slashes from srcdir. 1493# Double slashes in file names in object file debugging info 1494# mess up M-x gdb in Emacs. 1495case $srcdir in 1496*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1497esac 1498for ac_var in $ac_precious_vars; do 1499 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1500 eval ac_env_${ac_var}_value=\$${ac_var} 1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1502 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1503done 1504 1505# 1506# Report the --help message. 1507# 1508if test "$ac_init_help" = "long"; then 1509 # Omit some internal or obsolete options to make the list less imposing. 1510 # This message is too long to be a string in the A/UX 3.1 sh. 1511 cat <<_ACEOF 1512\`configure' configures unbound 1.21.1 to adapt to many kinds of systems. 1513 1514Usage: $0 [OPTION]... [VAR=VALUE]... 1515 1516To assign environment variables (e.g., CC, CFLAGS...), specify them as 1517VAR=VALUE. See below for descriptions of some of the useful variables. 1518 1519Defaults for the options are specified in brackets. 1520 1521Configuration: 1522 -h, --help display this help and exit 1523 --help=short display options specific to this package 1524 --help=recursive display the short help of all the included packages 1525 -V, --version display version information and exit 1526 -q, --quiet, --silent do not print \`checking ...' messages 1527 --cache-file=FILE cache test results in FILE [disabled] 1528 -C, --config-cache alias for \`--cache-file=config.cache' 1529 -n, --no-create do not create output files 1530 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1531 1532Installation directories: 1533 --prefix=PREFIX install architecture-independent files in PREFIX 1534 [$ac_default_prefix] 1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1536 [PREFIX] 1537 1538By default, \`make install' will install all the files in 1539\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1540an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1541for instance \`--prefix=\$HOME'. 1542 1543For better control, use the options below. 1544 1545Fine tuning of the installation directories: 1546 --bindir=DIR user executables [EPREFIX/bin] 1547 --sbindir=DIR system admin executables [EPREFIX/sbin] 1548 --libexecdir=DIR program executables [EPREFIX/libexec] 1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1552 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1553 --libdir=DIR object code libraries [EPREFIX/lib] 1554 --includedir=DIR C header files [PREFIX/include] 1555 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1558 --infodir=DIR info documentation [DATAROOTDIR/info] 1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1560 --mandir=DIR man documentation [DATAROOTDIR/man] 1561 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound] 1562 --htmldir=DIR html documentation [DOCDIR] 1563 --dvidir=DIR dvi documentation [DOCDIR] 1564 --pdfdir=DIR pdf documentation [DOCDIR] 1565 --psdir=DIR ps documentation [DOCDIR] 1566_ACEOF 1567 1568 cat <<\_ACEOF 1569 1570System types: 1571 --build=BUILD configure for building on BUILD [guessed] 1572 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1573_ACEOF 1574fi 1575 1576if test -n "$ac_init_help"; then 1577 case $ac_init_help in 1578 short | recursive ) echo "Configuration of unbound 1.21.1:";; 1579 esac 1580 cat <<\_ACEOF 1581 1582Optional Features: 1583 --disable-option-checking ignore unrecognized --enable/--with options 1584 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1585 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1586 --enable-checking Enable warnings, asserts, makefile-dependencies 1587 --enable-debug same as enable-checking 1588 --disable-flto Disable link-time optimization (gcc specific option) 1589 --enable-pie Enable Position-Independent Executable (eg. to fully 1590 benefit from ASLR, small performance penalty) 1591 --enable-relro-now Enable full relocation binding at load-time (RELRO 1592 NOW, to protect GOT and .dtor areas) 1593 --enable-shared[=PKGS] build shared libraries [default=yes] 1594 --enable-static[=PKGS] build static libraries [default=yes] 1595 --enable-fast-install[=PKGS] 1596 optimize for fast installation [default=yes] 1597 --disable-libtool-lock avoid locking (might break parallel builds) 1598 --disable-rpath disable hardcoded rpath (default=enabled) 1599 --disable-largefile omit support for large files 1600 --enable-systemd compile with systemd support (requires libsystemd, 1601 pkg-config) 1602 --enable-alloc-checks enable to memory allocation statistics, for debug 1603 purposes 1604 --enable-alloc-lite enable for lightweight alloc assertions, for debug 1605 purposes 1606 --enable-alloc-nonregional 1607 enable nonregional allocs, slow but exposes regional 1608 allocations to other memory purifiers, for debug 1609 purposes 1610 --disable-swig-version-check 1611 Disable swig version check to build python modules 1612 with older swig even though that is unreliable 1613 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3 1614 support 1615 --disable-sha2 Disable SHA256 and SHA512 RRSIG support 1616 --enable-subnet Enable client subnet 1617 --disable-gost Disable GOST support 1618 --disable-ecdsa Disable ECDSA support 1619 --disable-dsa Disable DSA support 1620 --disable-ed25519 Disable ED25519 support 1621 --disable-ed448 Disable ED448 support 1622 --enable-event-api Enable (experimental) pluggable event base 1623 libunbound API installed to unbound-event.h 1624 --enable-tfo-client Enable TCP Fast Open for client mode 1625 --enable-tfo-server Enable TCP Fast Open for server mode 1626 --enable-static-exe enable to compile executables statically against 1627 (event) uninstalled libs, for debug purposes 1628 --enable-fully-static enable to compile fully static 1629 --enable-lock-checks enable to check lock and unlock calls, for debug 1630 purposes 1631 --enable-allsymbols export all symbols from libunbound and link binaries 1632 to it, smaller install size but libunbound export 1633 table is polluted by internal symbols 1634 --enable-dnstap Enable dnstap support (requires protobuf-c) 1635 --enable-dnscrypt Enable dnscrypt support (requires libsodium) 1636 --enable-cachedb enable cachedb module that can use external cache 1637 storage 1638 --enable-ipsecmod Enable ipsecmod module that facilitates 1639 opportunistic IPsec 1640 --enable-ipset enable ipset module 1641 --disable-explicit-port-randomisation 1642 disable explicit source port randomisation and rely 1643 on the kernel to provide random source ports 1644 --enable-linux-ip-local-port-range 1645 Define this to enable use of 1646 /proc/sys/net/ipv4/ip_local_port_range as a default 1647 outgoing port range. This is only for the libunbound 1648 on Linux and does not affect unbound resolving 1649 daemon itself. This may severely limit the number of 1650 available outgoing ports and thus decrease 1651 randomness. Define this only when the target system 1652 restricts (e.g. some of SELinux enabled 1653 distributions) the use of non-ephemeral ports. 1654 1655Optional Packages: 1656 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1657 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1658 --with-conf-file=path Pathname to the Unbound configuration file 1659 --with-run-dir=path set default directory to chdir to (by default dir 1660 part of cfg file) 1661 --with-chroot-dir=path set default directory to chroot to (by default same 1662 as run-dir) 1663 --with-share-dir=path set default directory with shared data (by default 1664 same as share/unbound) 1665 --with-pidfile=filename set default pathname to unbound pidfile (default 1666 run-dir/unbound.pid) 1667 --with-rootkey-file=filename 1668 set default pathname to root key file (default 1669 run-dir/root.key). This file is read and written. 1670 --with-rootcert-file=filename 1671 set default pathname to root update certificate file 1672 (default run-dir/icannbundle.pem). This file need 1673 not exist if you are content with the builtin. 1674 --with-username=user set default user that unbound changes to (default 1675 user is unbound) 1676 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1677 both] 1678 --with-aix-soname=aix|svr4|both 1679 shared library versioning (aka "SONAME") variant to 1680 provide on AIX, [default=aix]. 1681 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1682 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1683 compiler's sysroot if not specified). 1684 --with-pthreads use pthreads library, or --without-pthreads to 1685 disable threading support. 1686 --with-solaris-threads use solaris native thread library. 1687 --with-syslog-facility=LOCAL0 - LOCAL7 1688 set SYSLOG_FACILITY, default DAEMON 1689 --with-dynlibmodule build dynamic library module, or 1690 --without-dynlibmodule to disable it. (default=no) 1691 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it. 1692 (default=no) 1693 --with-pythonmodule build Python module, or --without-pythonmodule to 1694 disable script engine. (default=no) 1695 --with-nss=path use libnss instead of openssl, installed at path. 1696 --with-nettle=path use libnettle as crypto library, installed at path. 1697 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl 1698 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw 1699 /usr or specify like /usr/include/openssl11) 1700 --with-libbsd Use portable libbsd functions 1701 --with-deprecate-rsa-1024 1702 Deprecate RSA 1024 bit length, makes that an 1703 unsupported key, for use when OpenSSL FIPS refuses 1704 1024 bit verification 1705 --with-libevent=pathname 1706 use libevent (will check /usr/local /opt/local 1707 /usr/lib /usr/pkg /usr/sfw /usr or you can specify 1708 an explicit path). Slower, but allows use of large 1709 outgoing port ranges. 1710 --with-libexpat=path specify explicit path for libexpat. 1711 --with-libhiredis=path specify explicit path for libhiredis. 1712 --with-libnghttp2=path specify explicit path for libnghttp2. 1713 --with-dnstap-socket-path=pathname 1714 set default dnstap socket path 1715 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap 1716 --with-libsodium=path Path where libsodium is installed, for dnscrypt 1717 --with-libmnl=path specify explicit path for libmnl. 1718 --with-libunbound-only do not build daemon and tool programs 1719 1720Some influential environment variables: 1721 CC C compiler command 1722 CFLAGS C compiler flags 1723 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1724 nonstandard directory <lib dir> 1725 LIBS libraries to pass to the linker, e.g. -l<library> 1726 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1727 you have headers in a nonstandard directory <include dir> 1728 YACC The `Yet Another Compiler Compiler' implementation to use. 1729 Defaults to the first program found out of: `bison -y', `byacc', 1730 `yacc'. 1731 YFLAGS The list of arguments that will be passed by default to $YACC. 1732 This script will default YFLAGS to the empty string to avoid a 1733 default value of `-d' given by some make applications. 1734 LT_SYS_LIBRARY_PATH 1735 User-defined run-time library search path. 1736 PKG_CONFIG path to pkg-config utility 1737 PKG_CONFIG_PATH 1738 directories to add to pkg-config's search path 1739 PKG_CONFIG_LIBDIR 1740 path overriding pkg-config's built-in search path 1741 CPP C preprocessor 1742 SYSTEMD_CFLAGS 1743 C compiler flags for SYSTEMD, overriding pkg-config 1744 SYSTEMD_LIBS 1745 linker flags for SYSTEMD, overriding pkg-config 1746 SYSTEMD_DAEMON_CFLAGS 1747 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 1748 SYSTEMD_DAEMON_LIBS 1749 linker flags for SYSTEMD_DAEMON, overriding pkg-config 1750 PYTHON_VERSION 1751 The installed Python version to use, for example '2.3'. This 1752 string will be appended to the Python interpreter canonical 1753 name. 1754 PROTOBUFC_CFLAGS 1755 C compiler flags for PROTOBUFC, overriding pkg-config 1756 PROTOBUFC_LIBS 1757 linker flags for PROTOBUFC, overriding pkg-config 1758 1759Use these variables to override the choices made by `configure' or to help 1760it to find libraries and programs with nonstandard names/locations. 1761 1762Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>. 1763_ACEOF 1764ac_status=$? 1765fi 1766 1767if test "$ac_init_help" = "recursive"; then 1768 # If there are subdirs, report their specific --help. 1769 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1770 test -d "$ac_dir" || 1771 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1772 continue 1773 ac_builddir=. 1774 1775case "$ac_dir" in 1776.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1777*) 1778 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1779 # A ".." for each directory in $ac_dir_suffix. 1780 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1781 case $ac_top_builddir_sub in 1782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1784 esac ;; 1785esac 1786ac_abs_top_builddir=$ac_pwd 1787ac_abs_builddir=$ac_pwd$ac_dir_suffix 1788# for backward compatibility: 1789ac_top_builddir=$ac_top_build_prefix 1790 1791case $srcdir in 1792 .) # We are building in place. 1793 ac_srcdir=. 1794 ac_top_srcdir=$ac_top_builddir_sub 1795 ac_abs_top_srcdir=$ac_pwd ;; 1796 [\\/]* | ?:[\\/]* ) # Absolute name. 1797 ac_srcdir=$srcdir$ac_dir_suffix; 1798 ac_top_srcdir=$srcdir 1799 ac_abs_top_srcdir=$srcdir ;; 1800 *) # Relative name. 1801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1802 ac_top_srcdir=$ac_top_build_prefix$srcdir 1803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1804esac 1805ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1806 1807 cd "$ac_dir" || { ac_status=$?; continue; } 1808 # Check for configure.gnu first; this name is used for a wrapper for 1809 # Metaconfig's "Configure" on case-insensitive file systems. 1810 if test -f "$ac_srcdir/configure.gnu"; then 1811 echo && 1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1813 elif test -f "$ac_srcdir/configure"; then 1814 echo && 1815 $SHELL "$ac_srcdir/configure" --help=recursive 1816 else 1817 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1818 fi || ac_status=$? 1819 cd "$ac_pwd" || { ac_status=$?; break; } 1820 done 1821fi 1822 1823test -n "$ac_init_help" && exit $ac_status 1824if $ac_init_version; then 1825 cat <<\_ACEOF 1826unbound configure 1.21.1 1827generated by GNU Autoconf 2.71 1828 1829Copyright (C) 2021 Free Software Foundation, Inc. 1830This configure script is free software; the Free Software Foundation 1831gives unlimited permission to copy, distribute and modify it. 1832_ACEOF 1833 exit 1834fi 1835 1836## ------------------------ ## 1837## Autoconf initialization. ## 1838## ------------------------ ## 1839 1840# ac_fn_c_try_compile LINENO 1841# -------------------------- 1842# Try to compile conftest.$ac_ext, and return whether this succeeded. 1843ac_fn_c_try_compile () 1844{ 1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1846 rm -f conftest.$ac_objext conftest.beam 1847 if { { ac_try="$ac_compile" 1848case "(($ac_try" in 1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1850 *) ac_try_echo=$ac_try;; 1851esac 1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1853printf "%s\n" "$ac_try_echo"; } >&5 1854 (eval "$ac_compile") 2>conftest.err 1855 ac_status=$? 1856 if test -s conftest.err; then 1857 grep -v '^ *+' conftest.err >conftest.er1 1858 cat conftest.er1 >&5 1859 mv -f conftest.er1 conftest.err 1860 fi 1861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1862 test $ac_status = 0; } && { 1863 test -z "$ac_c_werror_flag" || 1864 test ! -s conftest.err 1865 } && test -s conftest.$ac_objext 1866then : 1867 ac_retval=0 1868else $as_nop 1869 printf "%s\n" "$as_me: failed program was:" >&5 1870sed 's/^/| /' conftest.$ac_ext >&5 1871 1872 ac_retval=1 1873fi 1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1875 as_fn_set_status $ac_retval 1876 1877} # ac_fn_c_try_compile 1878 1879# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1880# ------------------------------------------------------- 1881# Tests whether HEADER exists and can be compiled using the include files in 1882# INCLUDES, setting the cache variable VAR accordingly. 1883ac_fn_c_check_header_compile () 1884{ 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1887printf %s "checking for $2... " >&6; } 1888if eval test \${$3+y} 1889then : 1890 printf %s "(cached) " >&6 1891else $as_nop 1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1893/* end confdefs.h. */ 1894$4 1895#include <$2> 1896_ACEOF 1897if ac_fn_c_try_compile "$LINENO" 1898then : 1899 eval "$3=yes" 1900else $as_nop 1901 eval "$3=no" 1902fi 1903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1904fi 1905eval ac_res=\$$3 1906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1907printf "%s\n" "$ac_res" >&6; } 1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1909 1910} # ac_fn_c_check_header_compile 1911 1912# ac_fn_c_try_link LINENO 1913# ----------------------- 1914# Try to link conftest.$ac_ext, and return whether this succeeded. 1915ac_fn_c_try_link () 1916{ 1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1918 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1919 if { { ac_try="$ac_link" 1920case "(($ac_try" in 1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1922 *) ac_try_echo=$ac_try;; 1923esac 1924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1925printf "%s\n" "$ac_try_echo"; } >&5 1926 (eval "$ac_link") 2>conftest.err 1927 ac_status=$? 1928 if test -s conftest.err; then 1929 grep -v '^ *+' conftest.err >conftest.er1 1930 cat conftest.er1 >&5 1931 mv -f conftest.er1 conftest.err 1932 fi 1933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1934 test $ac_status = 0; } && { 1935 test -z "$ac_c_werror_flag" || 1936 test ! -s conftest.err 1937 } && test -s conftest$ac_exeext && { 1938 test "$cross_compiling" = yes || 1939 test -x conftest$ac_exeext 1940 } 1941then : 1942 ac_retval=0 1943else $as_nop 1944 printf "%s\n" "$as_me: failed program was:" >&5 1945sed 's/^/| /' conftest.$ac_ext >&5 1946 1947 ac_retval=1 1948fi 1949 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1950 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1951 # interfere with the next link command; also delete a directory that is 1952 # left behind by Apple's compiler. We do this before executing the actions. 1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1955 as_fn_set_status $ac_retval 1956 1957} # ac_fn_c_try_link 1958 1959# ac_fn_c_check_func LINENO FUNC VAR 1960# ---------------------------------- 1961# Tests whether FUNC exists, setting the cache variable VAR accordingly 1962ac_fn_c_check_func () 1963{ 1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1966printf %s "checking for $2... " >&6; } 1967if eval test \${$3+y} 1968then : 1969 printf %s "(cached) " >&6 1970else $as_nop 1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1972/* end confdefs.h. */ 1973/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1974 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1975#define $2 innocuous_$2 1976 1977/* System header to define __stub macros and hopefully few prototypes, 1978 which can conflict with char $2 (); below. */ 1979 1980#include <limits.h> 1981#undef $2 1982 1983/* Override any GCC internal prototype to avoid an error. 1984 Use char because int might match the return type of a GCC 1985 builtin and then its argument prototype would still apply. */ 1986#ifdef __cplusplus 1987extern "C" 1988#endif 1989char $2 (); 1990/* The GNU C library defines this for functions which it implements 1991 to always fail with ENOSYS. Some functions are actually named 1992 something starting with __ and the normal name is an alias. */ 1993#if defined __stub_$2 || defined __stub___$2 1994choke me 1995#endif 1996 1997int 1998main (void) 1999{ 2000return $2 (); 2001 ; 2002 return 0; 2003} 2004_ACEOF 2005if ac_fn_c_try_link "$LINENO" 2006then : 2007 eval "$3=yes" 2008else $as_nop 2009 eval "$3=no" 2010fi 2011rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2012 conftest$ac_exeext conftest.$ac_ext 2013fi 2014eval ac_res=\$$3 2015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2016printf "%s\n" "$ac_res" >&6; } 2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2018 2019} # ac_fn_c_check_func 2020 2021# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2022# ------------------------------------------- 2023# Tests whether TYPE exists after having included INCLUDES, setting cache 2024# variable VAR accordingly. 2025ac_fn_c_check_type () 2026{ 2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2029printf %s "checking for $2... " >&6; } 2030if eval test \${$3+y} 2031then : 2032 printf %s "(cached) " >&6 2033else $as_nop 2034 eval "$3=no" 2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2036/* end confdefs.h. */ 2037$4 2038int 2039main (void) 2040{ 2041if (sizeof ($2)) 2042 return 0; 2043 ; 2044 return 0; 2045} 2046_ACEOF 2047if ac_fn_c_try_compile "$LINENO" 2048then : 2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2050/* end confdefs.h. */ 2051$4 2052int 2053main (void) 2054{ 2055if (sizeof (($2))) 2056 return 0; 2057 ; 2058 return 0; 2059} 2060_ACEOF 2061if ac_fn_c_try_compile "$LINENO" 2062then : 2063 2064else $as_nop 2065 eval "$3=yes" 2066fi 2067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2068fi 2069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2070fi 2071eval ac_res=\$$3 2072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2073printf "%s\n" "$ac_res" >&6; } 2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2075 2076} # ac_fn_c_check_type 2077 2078# ac_fn_c_try_cpp LINENO 2079# ---------------------- 2080# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2081ac_fn_c_try_cpp () 2082{ 2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2084 if { { ac_try="$ac_cpp conftest.$ac_ext" 2085case "(($ac_try" in 2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2087 *) ac_try_echo=$ac_try;; 2088esac 2089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2090printf "%s\n" "$ac_try_echo"; } >&5 2091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2092 ac_status=$? 2093 if test -s conftest.err; then 2094 grep -v '^ *+' conftest.err >conftest.er1 2095 cat conftest.er1 >&5 2096 mv -f conftest.er1 conftest.err 2097 fi 2098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2099 test $ac_status = 0; } > conftest.i && { 2100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2101 test ! -s conftest.err 2102 } 2103then : 2104 ac_retval=0 2105else $as_nop 2106 printf "%s\n" "$as_me: failed program was:" >&5 2107sed 's/^/| /' conftest.$ac_ext >&5 2108 2109 ac_retval=1 2110fi 2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2112 as_fn_set_status $ac_retval 2113 2114} # ac_fn_c_try_cpp 2115 2116# ac_fn_c_try_run LINENO 2117# ---------------------- 2118# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2119# executables *can* be run. 2120ac_fn_c_try_run () 2121{ 2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2123 if { { ac_try="$ac_link" 2124case "(($ac_try" in 2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2126 *) ac_try_echo=$ac_try;; 2127esac 2128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2129printf "%s\n" "$ac_try_echo"; } >&5 2130 (eval "$ac_link") 2>&5 2131 ac_status=$? 2132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2133 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2134 { { case "(($ac_try" in 2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2136 *) ac_try_echo=$ac_try;; 2137esac 2138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2139printf "%s\n" "$ac_try_echo"; } >&5 2140 (eval "$ac_try") 2>&5 2141 ac_status=$? 2142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2143 test $ac_status = 0; }; } 2144then : 2145 ac_retval=0 2146else $as_nop 2147 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2148 printf "%s\n" "$as_me: failed program was:" >&5 2149sed 's/^/| /' conftest.$ac_ext >&5 2150 2151 ac_retval=$ac_status 2152fi 2153 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2155 as_fn_set_status $ac_retval 2156 2157} # ac_fn_c_try_run 2158 2159# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2160# -------------------------------------------- 2161# Tries to find the compile-time value of EXPR in a program that includes 2162# INCLUDES, setting VAR accordingly. Returns whether the value could be 2163# computed 2164ac_fn_c_compute_int () 2165{ 2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2167 if test "$cross_compiling" = yes; then 2168 # Depending upon the size, compute the lo and hi bounds. 2169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2170/* end confdefs.h. */ 2171$4 2172int 2173main (void) 2174{ 2175static int test_array [1 - 2 * !(($2) >= 0)]; 2176test_array [0] = 0; 2177return test_array [0]; 2178 2179 ; 2180 return 0; 2181} 2182_ACEOF 2183if ac_fn_c_try_compile "$LINENO" 2184then : 2185 ac_lo=0 ac_mid=0 2186 while :; do 2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2188/* end confdefs.h. */ 2189$4 2190int 2191main (void) 2192{ 2193static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2194test_array [0] = 0; 2195return test_array [0]; 2196 2197 ; 2198 return 0; 2199} 2200_ACEOF 2201if ac_fn_c_try_compile "$LINENO" 2202then : 2203 ac_hi=$ac_mid; break 2204else $as_nop 2205 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2206 if test $ac_lo -le $ac_mid; then 2207 ac_lo= ac_hi= 2208 break 2209 fi 2210 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2211fi 2212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2213 done 2214else $as_nop 2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2216/* end confdefs.h. */ 2217$4 2218int 2219main (void) 2220{ 2221static int test_array [1 - 2 * !(($2) < 0)]; 2222test_array [0] = 0; 2223return test_array [0]; 2224 2225 ; 2226 return 0; 2227} 2228_ACEOF 2229if ac_fn_c_try_compile "$LINENO" 2230then : 2231 ac_hi=-1 ac_mid=-1 2232 while :; do 2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2234/* end confdefs.h. */ 2235$4 2236int 2237main (void) 2238{ 2239static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2240test_array [0] = 0; 2241return test_array [0]; 2242 2243 ; 2244 return 0; 2245} 2246_ACEOF 2247if ac_fn_c_try_compile "$LINENO" 2248then : 2249 ac_lo=$ac_mid; break 2250else $as_nop 2251 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2252 if test $ac_mid -le $ac_hi; then 2253 ac_lo= ac_hi= 2254 break 2255 fi 2256 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2257fi 2258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2259 done 2260else $as_nop 2261 ac_lo= ac_hi= 2262fi 2263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2264fi 2265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2266# Binary search between lo and hi bounds. 2267while test "x$ac_lo" != "x$ac_hi"; do 2268 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2270/* end confdefs.h. */ 2271$4 2272int 2273main (void) 2274{ 2275static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2276test_array [0] = 0; 2277return test_array [0]; 2278 2279 ; 2280 return 0; 2281} 2282_ACEOF 2283if ac_fn_c_try_compile "$LINENO" 2284then : 2285 ac_hi=$ac_mid 2286else $as_nop 2287 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2288fi 2289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2290done 2291case $ac_lo in #(( 2292?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2293'') ac_retval=1 ;; 2294esac 2295 else 2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2297/* end confdefs.h. */ 2298$4 2299static long int longval (void) { return $2; } 2300static unsigned long int ulongval (void) { return $2; } 2301#include <stdio.h> 2302#include <stdlib.h> 2303int 2304main (void) 2305{ 2306 2307 FILE *f = fopen ("conftest.val", "w"); 2308 if (! f) 2309 return 1; 2310 if (($2) < 0) 2311 { 2312 long int i = longval (); 2313 if (i != ($2)) 2314 return 1; 2315 fprintf (f, "%ld", i); 2316 } 2317 else 2318 { 2319 unsigned long int i = ulongval (); 2320 if (i != ($2)) 2321 return 1; 2322 fprintf (f, "%lu", i); 2323 } 2324 /* Do not output a trailing newline, as this causes \r\n confusion 2325 on some platforms. */ 2326 return ferror (f) || fclose (f) != 0; 2327 2328 ; 2329 return 0; 2330} 2331_ACEOF 2332if ac_fn_c_try_run "$LINENO" 2333then : 2334 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2335else $as_nop 2336 ac_retval=1 2337fi 2338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2339 conftest.$ac_objext conftest.beam conftest.$ac_ext 2340rm -f conftest.val 2341 2342 fi 2343 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2344 as_fn_set_status $ac_retval 2345 2346} # ac_fn_c_compute_int 2347 2348# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2349# ------------------------------------------------------------------ 2350# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2351# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2352ac_fn_check_decl () 2353{ 2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2355 as_decl_name=`echo $2|sed 's/ *(.*//'` 2356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2357printf %s "checking whether $as_decl_name is declared... " >&6; } 2358if eval test \${$3+y} 2359then : 2360 printf %s "(cached) " >&6 2361else $as_nop 2362 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2363 eval ac_save_FLAGS=\$$6 2364 as_fn_append $6 " $5" 2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2366/* end confdefs.h. */ 2367$4 2368int 2369main (void) 2370{ 2371#ifndef $as_decl_name 2372#ifdef __cplusplus 2373 (void) $as_decl_use; 2374#else 2375 (void) $as_decl_name; 2376#endif 2377#endif 2378 2379 ; 2380 return 0; 2381} 2382_ACEOF 2383if ac_fn_c_try_compile "$LINENO" 2384then : 2385 eval "$3=yes" 2386else $as_nop 2387 eval "$3=no" 2388fi 2389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2390 eval $6=\$ac_save_FLAGS 2391 2392fi 2393eval ac_res=\$$3 2394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2395printf "%s\n" "$ac_res" >&6; } 2396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2397 2398} # ac_fn_check_decl 2399 2400# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2401# ---------------------------------------------------- 2402# Tries to find if the field MEMBER exists in type AGGR, after including 2403# INCLUDES, setting cache variable VAR accordingly. 2404ac_fn_c_check_member () 2405{ 2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2408printf %s "checking for $2.$3... " >&6; } 2409if eval test \${$4+y} 2410then : 2411 printf %s "(cached) " >&6 2412else $as_nop 2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2414/* end confdefs.h. */ 2415$5 2416int 2417main (void) 2418{ 2419static $2 ac_aggr; 2420if (ac_aggr.$3) 2421return 0; 2422 ; 2423 return 0; 2424} 2425_ACEOF 2426if ac_fn_c_try_compile "$LINENO" 2427then : 2428 eval "$4=yes" 2429else $as_nop 2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2431/* end confdefs.h. */ 2432$5 2433int 2434main (void) 2435{ 2436static $2 ac_aggr; 2437if (sizeof ac_aggr.$3) 2438return 0; 2439 ; 2440 return 0; 2441} 2442_ACEOF 2443if ac_fn_c_try_compile "$LINENO" 2444then : 2445 eval "$4=yes" 2446else $as_nop 2447 eval "$4=no" 2448fi 2449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2450fi 2451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2452fi 2453eval ac_res=\$$4 2454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2455printf "%s\n" "$ac_res" >&6; } 2456 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2457 2458} # ac_fn_c_check_member 2459ac_configure_args_raw= 2460for ac_arg 2461do 2462 case $ac_arg in 2463 *\'*) 2464 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2465 esac 2466 as_fn_append ac_configure_args_raw " '$ac_arg'" 2467done 2468 2469case $ac_configure_args_raw in 2470 *$as_nl*) 2471 ac_safe_unquote= ;; 2472 *) 2473 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2474 ac_unsafe_a="$ac_unsafe_z#~" 2475 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2476 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2477esac 2478 2479cat >config.log <<_ACEOF 2480This file contains any messages produced by compilers while 2481running configure, to aid debugging if configure makes a mistake. 2482 2483It was created by unbound $as_me 1.21.1, which was 2484generated by GNU Autoconf 2.71. Invocation command line was 2485 2486 $ $0$ac_configure_args_raw 2487 2488_ACEOF 2489exec 5>>config.log 2490{ 2491cat <<_ASUNAME 2492## --------- ## 2493## Platform. ## 2494## --------- ## 2495 2496hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2497uname -m = `(uname -m) 2>/dev/null || echo unknown` 2498uname -r = `(uname -r) 2>/dev/null || echo unknown` 2499uname -s = `(uname -s) 2>/dev/null || echo unknown` 2500uname -v = `(uname -v) 2>/dev/null || echo unknown` 2501 2502/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2503/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2504 2505/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2506/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2507/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2508/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2509/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2510/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2511/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2512 2513_ASUNAME 2514 2515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2516for as_dir in $PATH 2517do 2518 IFS=$as_save_IFS 2519 case $as_dir in #((( 2520 '') as_dir=./ ;; 2521 */) ;; 2522 *) as_dir=$as_dir/ ;; 2523 esac 2524 printf "%s\n" "PATH: $as_dir" 2525 done 2526IFS=$as_save_IFS 2527 2528} >&5 2529 2530cat >&5 <<_ACEOF 2531 2532 2533## ----------- ## 2534## Core tests. ## 2535## ----------- ## 2536 2537_ACEOF 2538 2539 2540# Keep a trace of the command line. 2541# Strip out --no-create and --no-recursion so they do not pile up. 2542# Strip out --silent because we don't want to record it for future runs. 2543# Also quote any args containing shell meta-characters. 2544# Make two passes to allow for proper duplicate-argument suppression. 2545ac_configure_args= 2546ac_configure_args0= 2547ac_configure_args1= 2548ac_must_keep_next=false 2549for ac_pass in 1 2 2550do 2551 for ac_arg 2552 do 2553 case $ac_arg in 2554 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2555 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2556 | -silent | --silent | --silen | --sile | --sil) 2557 continue ;; 2558 *\'*) 2559 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2560 esac 2561 case $ac_pass in 2562 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2563 2) 2564 as_fn_append ac_configure_args1 " '$ac_arg'" 2565 if test $ac_must_keep_next = true; then 2566 ac_must_keep_next=false # Got value, back to normal. 2567 else 2568 case $ac_arg in 2569 *=* | --config-cache | -C | -disable-* | --disable-* \ 2570 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2571 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2572 | -with-* | --with-* | -without-* | --without-* | --x) 2573 case "$ac_configure_args0 " in 2574 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2575 esac 2576 ;; 2577 -* ) ac_must_keep_next=true ;; 2578 esac 2579 fi 2580 as_fn_append ac_configure_args " '$ac_arg'" 2581 ;; 2582 esac 2583 done 2584done 2585{ ac_configure_args0=; unset ac_configure_args0;} 2586{ ac_configure_args1=; unset ac_configure_args1;} 2587 2588# When interrupted or exit'd, cleanup temporary files, and complete 2589# config.log. We remove comments because anyway the quotes in there 2590# would cause problems or look ugly. 2591# WARNING: Use '\'' to represent an apostrophe within the trap. 2592# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2593trap 'exit_status=$? 2594 # Sanitize IFS. 2595 IFS=" "" $as_nl" 2596 # Save into config.log some information that might help in debugging. 2597 { 2598 echo 2599 2600 printf "%s\n" "## ---------------- ## 2601## Cache variables. ## 2602## ---------------- ##" 2603 echo 2604 # The following way of writing the cache mishandles newlines in values, 2605( 2606 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2607 eval ac_val=\$$ac_var 2608 case $ac_val in #( 2609 *${as_nl}*) 2610 case $ac_var in #( 2611 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2612printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2613 esac 2614 case $ac_var in #( 2615 _ | IFS | as_nl) ;; #( 2616 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2617 *) { eval $ac_var=; unset $ac_var;} ;; 2618 esac ;; 2619 esac 2620 done 2621 (set) 2>&1 | 2622 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2623 *${as_nl}ac_space=\ *) 2624 sed -n \ 2625 "s/'\''/'\''\\\\'\'''\''/g; 2626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2627 ;; #( 2628 *) 2629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2630 ;; 2631 esac | 2632 sort 2633) 2634 echo 2635 2636 printf "%s\n" "## ----------------- ## 2637## Output variables. ## 2638## ----------------- ##" 2639 echo 2640 for ac_var in $ac_subst_vars 2641 do 2642 eval ac_val=\$$ac_var 2643 case $ac_val in 2644 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2645 esac 2646 printf "%s\n" "$ac_var='\''$ac_val'\''" 2647 done | sort 2648 echo 2649 2650 if test -n "$ac_subst_files"; then 2651 printf "%s\n" "## ------------------- ## 2652## File substitutions. ## 2653## ------------------- ##" 2654 echo 2655 for ac_var in $ac_subst_files 2656 do 2657 eval ac_val=\$$ac_var 2658 case $ac_val in 2659 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2660 esac 2661 printf "%s\n" "$ac_var='\''$ac_val'\''" 2662 done | sort 2663 echo 2664 fi 2665 2666 if test -s confdefs.h; then 2667 printf "%s\n" "## ----------- ## 2668## confdefs.h. ## 2669## ----------- ##" 2670 echo 2671 cat confdefs.h 2672 echo 2673 fi 2674 test "$ac_signal" != 0 && 2675 printf "%s\n" "$as_me: caught signal $ac_signal" 2676 printf "%s\n" "$as_me: exit $exit_status" 2677 } >&5 2678 rm -f core *.core core.conftest.* && 2679 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2680 exit $exit_status 2681' 0 2682for ac_signal in 1 2 13 15; do 2683 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2684done 2685ac_signal=0 2686 2687# confdefs.h avoids OS command line length limits that DEFS can exceed. 2688rm -f -r conftest* confdefs.h 2689 2690printf "%s\n" "/* confdefs.h */" > confdefs.h 2691 2692# Predefined preprocessor variables. 2693 2694printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2695 2696printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2697 2698printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2699 2700printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2701 2702printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2703 2704printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2705 2706 2707# Let the site file select an alternate cache file if it wants to. 2708# Prefer an explicitly selected file to automatically selected ones. 2709if test -n "$CONFIG_SITE"; then 2710 ac_site_files="$CONFIG_SITE" 2711elif test "x$prefix" != xNONE; then 2712 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2713else 2714 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2715fi 2716 2717for ac_site_file in $ac_site_files 2718do 2719 case $ac_site_file in #( 2720 */*) : 2721 ;; #( 2722 *) : 2723 ac_site_file=./$ac_site_file ;; 2724esac 2725 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2727printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2728 sed 's/^/| /' "$ac_site_file" >&5 2729 . "$ac_site_file" \ 2730 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2731printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2732as_fn_error $? "failed to load site script $ac_site_file 2733See \`config.log' for more details" "$LINENO" 5; } 2734 fi 2735done 2736 2737if test -r "$cache_file"; then 2738 # Some versions of bash will fail to source /dev/null (special files 2739 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2740 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2742printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2743 case $cache_file in 2744 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2745 *) . "./$cache_file";; 2746 esac 2747 fi 2748else 2749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2750printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2751 >$cache_file 2752fi 2753 2754as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2755# Test code for whether the C compiler supports C89 (global declarations) 2756ac_c_conftest_c89_globals=' 2757/* Does the compiler advertise C89 conformance? 2758 Do not test the value of __STDC__, because some compilers set it to 0 2759 while being otherwise adequately conformant. */ 2760#if !defined __STDC__ 2761# error "Compiler does not advertise C89 conformance" 2762#endif 2763 2764#include <stddef.h> 2765#include <stdarg.h> 2766struct stat; 2767/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2768struct buf { int x; }; 2769struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2770static char *e (p, i) 2771 char **p; 2772 int i; 2773{ 2774 return p[i]; 2775} 2776static char *f (char * (*g) (char **, int), char **p, ...) 2777{ 2778 char *s; 2779 va_list v; 2780 va_start (v,p); 2781 s = g (p, va_arg (v,int)); 2782 va_end (v); 2783 return s; 2784} 2785 2786/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2787 function prototypes and stuff, but not \xHH hex character constants. 2788 These do not provoke an error unfortunately, instead are silently treated 2789 as an "x". The following induces an error, until -std is added to get 2790 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2791 array size at least. It is necessary to write \x00 == 0 to get something 2792 that is true only with -std. */ 2793int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2794 2795/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2796 inside strings and character constants. */ 2797#define FOO(x) '\''x'\'' 2798int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2799 2800int test (int i, double x); 2801struct s1 {int (*f) (int a);}; 2802struct s2 {int (*f) (double a);}; 2803int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2804 int, int);' 2805 2806# Test code for whether the C compiler supports C89 (body of main). 2807ac_c_conftest_c89_main=' 2808ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2809' 2810 2811# Test code for whether the C compiler supports C99 (global declarations) 2812ac_c_conftest_c99_globals=' 2813// Does the compiler advertise C99 conformance? 2814#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2815# error "Compiler does not advertise C99 conformance" 2816#endif 2817 2818#include <stdbool.h> 2819extern int puts (const char *); 2820extern int printf (const char *, ...); 2821extern int dprintf (int, const char *, ...); 2822extern void *malloc (size_t); 2823 2824// Check varargs macros. These examples are taken from C99 6.10.3.5. 2825// dprintf is used instead of fprintf to avoid needing to declare 2826// FILE and stderr. 2827#define debug(...) dprintf (2, __VA_ARGS__) 2828#define showlist(...) puts (#__VA_ARGS__) 2829#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2830static void 2831test_varargs_macros (void) 2832{ 2833 int x = 1234; 2834 int y = 5678; 2835 debug ("Flag"); 2836 debug ("X = %d\n", x); 2837 showlist (The first, second, and third items.); 2838 report (x>y, "x is %d but y is %d", x, y); 2839} 2840 2841// Check long long types. 2842#define BIG64 18446744073709551615ull 2843#define BIG32 4294967295ul 2844#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2845#if !BIG_OK 2846 #error "your preprocessor is broken" 2847#endif 2848#if BIG_OK 2849#else 2850 #error "your preprocessor is broken" 2851#endif 2852static long long int bignum = -9223372036854775807LL; 2853static unsigned long long int ubignum = BIG64; 2854 2855struct incomplete_array 2856{ 2857 int datasize; 2858 double data[]; 2859}; 2860 2861struct named_init { 2862 int number; 2863 const wchar_t *name; 2864 double average; 2865}; 2866 2867typedef const char *ccp; 2868 2869static inline int 2870test_restrict (ccp restrict text) 2871{ 2872 // See if C++-style comments work. 2873 // Iterate through items via the restricted pointer. 2874 // Also check for declarations in for loops. 2875 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2876 continue; 2877 return 0; 2878} 2879 2880// Check varargs and va_copy. 2881static bool 2882test_varargs (const char *format, ...) 2883{ 2884 va_list args; 2885 va_start (args, format); 2886 va_list args_copy; 2887 va_copy (args_copy, args); 2888 2889 const char *str = ""; 2890 int number = 0; 2891 float fnumber = 0; 2892 2893 while (*format) 2894 { 2895 switch (*format++) 2896 { 2897 case '\''s'\'': // string 2898 str = va_arg (args_copy, const char *); 2899 break; 2900 case '\''d'\'': // int 2901 number = va_arg (args_copy, int); 2902 break; 2903 case '\''f'\'': // float 2904 fnumber = va_arg (args_copy, double); 2905 break; 2906 default: 2907 break; 2908 } 2909 } 2910 va_end (args_copy); 2911 va_end (args); 2912 2913 return *str && number && fnumber; 2914} 2915' 2916 2917# Test code for whether the C compiler supports C99 (body of main). 2918ac_c_conftest_c99_main=' 2919 // Check bool. 2920 _Bool success = false; 2921 success |= (argc != 0); 2922 2923 // Check restrict. 2924 if (test_restrict ("String literal") == 0) 2925 success = true; 2926 char *restrict newvar = "Another string"; 2927 2928 // Check varargs. 2929 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2930 test_varargs_macros (); 2931 2932 // Check flexible array members. 2933 struct incomplete_array *ia = 2934 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2935 ia->datasize = 10; 2936 for (int i = 0; i < ia->datasize; ++i) 2937 ia->data[i] = i * 1.234; 2938 2939 // Check named initializers. 2940 struct named_init ni = { 2941 .number = 34, 2942 .name = L"Test wide string", 2943 .average = 543.34343, 2944 }; 2945 2946 ni.number = 58; 2947 2948 int dynamic_array[ni.number]; 2949 dynamic_array[0] = argv[0][0]; 2950 dynamic_array[ni.number - 1] = 543; 2951 2952 // work around unused variable warnings 2953 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2954 || dynamic_array[ni.number - 1] != 543); 2955' 2956 2957# Test code for whether the C compiler supports C11 (global declarations) 2958ac_c_conftest_c11_globals=' 2959// Does the compiler advertise C11 conformance? 2960#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2961# error "Compiler does not advertise C11 conformance" 2962#endif 2963 2964// Check _Alignas. 2965char _Alignas (double) aligned_as_double; 2966char _Alignas (0) no_special_alignment; 2967extern char aligned_as_int; 2968char _Alignas (0) _Alignas (int) aligned_as_int; 2969 2970// Check _Alignof. 2971enum 2972{ 2973 int_alignment = _Alignof (int), 2974 int_array_alignment = _Alignof (int[100]), 2975 char_alignment = _Alignof (char) 2976}; 2977_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2978 2979// Check _Noreturn. 2980int _Noreturn does_not_return (void) { for (;;) continue; } 2981 2982// Check _Static_assert. 2983struct test_static_assert 2984{ 2985 int x; 2986 _Static_assert (sizeof (int) <= sizeof (long int), 2987 "_Static_assert does not work in struct"); 2988 long int y; 2989}; 2990 2991// Check UTF-8 literals. 2992#define u8 syntax error! 2993char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2994 2995// Check duplicate typedefs. 2996typedef long *long_ptr; 2997typedef long int *long_ptr; 2998typedef long_ptr long_ptr; 2999 3000// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 3001struct anonymous 3002{ 3003 union { 3004 struct { int i; int j; }; 3005 struct { int k; long int l; } w; 3006 }; 3007 int m; 3008} v1; 3009' 3010 3011# Test code for whether the C compiler supports C11 (body of main). 3012ac_c_conftest_c11_main=' 3013 _Static_assert ((offsetof (struct anonymous, i) 3014 == offsetof (struct anonymous, w.k)), 3015 "Anonymous union alignment botch"); 3016 v1.i = 2; 3017 v1.w.k = 5; 3018 ok |= v1.i != 5; 3019' 3020 3021# Test code for whether the C compiler supports C11 (complete). 3022ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 3023${ac_c_conftest_c99_globals} 3024${ac_c_conftest_c11_globals} 3025 3026int 3027main (int argc, char **argv) 3028{ 3029 int ok = 0; 3030 ${ac_c_conftest_c89_main} 3031 ${ac_c_conftest_c99_main} 3032 ${ac_c_conftest_c11_main} 3033 return ok; 3034} 3035" 3036 3037# Test code for whether the C compiler supports C99 (complete). 3038ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3039${ac_c_conftest_c99_globals} 3040 3041int 3042main (int argc, char **argv) 3043{ 3044 int ok = 0; 3045 ${ac_c_conftest_c89_main} 3046 ${ac_c_conftest_c99_main} 3047 return ok; 3048} 3049" 3050 3051# Test code for whether the C compiler supports C89 (complete). 3052ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3053 3054int 3055main (int argc, char **argv) 3056{ 3057 int ok = 0; 3058 ${ac_c_conftest_c89_main} 3059 return ok; 3060} 3061" 3062 3063as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3064as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3065as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3066as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3067as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3068as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3069as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3070as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3071as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 3072as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 3073as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 3074as_fn_append ac_func_c_list " fork HAVE_FORK" 3075as_fn_append ac_func_c_list " vfork HAVE_VFORK" 3076 3077# Auxiliary files required by this configure script. 3078ac_aux_files="ltmain.sh config.guess config.sub" 3079 3080# Locations in which to look for auxiliary files. 3081ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 3082 3083# Search for a directory containing all of the required auxiliary files, 3084# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3085# If we don't find one directory that contains all the files we need, 3086# we report the set of missing files from the *first* directory in 3087# $ac_aux_dir_candidates and give up. 3088ac_missing_aux_files="" 3089ac_first_candidate=: 3090printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3092as_found=false 3093for as_dir in $ac_aux_dir_candidates 3094do 3095 IFS=$as_save_IFS 3096 case $as_dir in #((( 3097 '') as_dir=./ ;; 3098 */) ;; 3099 *) as_dir=$as_dir/ ;; 3100 esac 3101 as_found=: 3102 3103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3104 ac_aux_dir_found=yes 3105 ac_install_sh= 3106 for ac_aux in $ac_aux_files 3107 do 3108 # As a special case, if "install-sh" is required, that requirement 3109 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3110 # and $ac_install_sh is set appropriately for whichever one is found. 3111 if test x"$ac_aux" = x"install-sh" 3112 then 3113 if test -f "${as_dir}install-sh"; then 3114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3115 ac_install_sh="${as_dir}install-sh -c" 3116 elif test -f "${as_dir}install.sh"; then 3117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3118 ac_install_sh="${as_dir}install.sh -c" 3119 elif test -f "${as_dir}shtool"; then 3120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3121 ac_install_sh="${as_dir}shtool install -c" 3122 else 3123 ac_aux_dir_found=no 3124 if $ac_first_candidate; then 3125 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3126 else 3127 break 3128 fi 3129 fi 3130 else 3131 if test -f "${as_dir}${ac_aux}"; then 3132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3133 else 3134 ac_aux_dir_found=no 3135 if $ac_first_candidate; then 3136 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3137 else 3138 break 3139 fi 3140 fi 3141 fi 3142 done 3143 if test "$ac_aux_dir_found" = yes; then 3144 ac_aux_dir="$as_dir" 3145 break 3146 fi 3147 ac_first_candidate=false 3148 3149 as_found=false 3150done 3151IFS=$as_save_IFS 3152if $as_found 3153then : 3154 3155else $as_nop 3156 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3157fi 3158 3159 3160# These three variables are undocumented and unsupported, 3161# and are intended to be withdrawn in a future Autoconf release. 3162# They can cause serious problems if a builder's source tree is in a directory 3163# whose full name contains unusual characters. 3164if test -f "${ac_aux_dir}config.guess"; then 3165 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3166fi 3167if test -f "${ac_aux_dir}config.sub"; then 3168 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3169fi 3170if test -f "$ac_aux_dir/configure"; then 3171 ac_configure="$SHELL ${ac_aux_dir}configure" 3172fi 3173 3174# Check that the precious variables saved in the cache have kept the same 3175# value. 3176ac_cache_corrupted=false 3177for ac_var in $ac_precious_vars; do 3178 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3179 eval ac_new_set=\$ac_env_${ac_var}_set 3180 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3181 eval ac_new_val=\$ac_env_${ac_var}_value 3182 case $ac_old_set,$ac_new_set in 3183 set,) 3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3185printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3186 ac_cache_corrupted=: ;; 3187 ,set) 3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3189printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3190 ac_cache_corrupted=: ;; 3191 ,);; 3192 *) 3193 if test "x$ac_old_val" != "x$ac_new_val"; then 3194 # differences in whitespace do not lead to failure. 3195 ac_old_val_w=`echo x $ac_old_val` 3196 ac_new_val_w=`echo x $ac_new_val` 3197 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3199printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3200 ac_cache_corrupted=: 3201 else 3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3203printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3204 eval $ac_var=\$ac_old_val 3205 fi 3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3207printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3209printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3210 fi;; 3211 esac 3212 # Pass precious variables to config.status. 3213 if test "$ac_new_set" = set; then 3214 case $ac_new_val in 3215 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3216 *) ac_arg=$ac_var=$ac_new_val ;; 3217 esac 3218 case " $ac_configure_args " in 3219 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3220 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3221 esac 3222 fi 3223done 3224if $ac_cache_corrupted; then 3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3226printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3228printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3229 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3230 and start over" "$LINENO" 5 3231fi 3232## -------------------- ## 3233## Main body of script. ## 3234## -------------------- ## 3235 3236ac_ext=c 3237ac_cpp='$CPP $CPPFLAGS' 3238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3240ac_compiler_gnu=$ac_cv_c_compiler_gnu 3241 3242 3243UNBOUND_VERSION_MAJOR=1 3244 3245UNBOUND_VERSION_MINOR=21 3246 3247UNBOUND_VERSION_MICRO=1 3248 3249 3250LIBUNBOUND_CURRENT=9 3251LIBUNBOUND_REVISION=29 3252LIBUNBOUND_AGE=1 3253# 1.0.0 had 0:12:0 3254# 1.0.1 had 0:13:0 3255# 1.0.2 had 0:14:0 3256# 1.1.0 had 0:15:0 3257# 1.1.1 had 0:16:0 3258# 1.2.0 had 0:17:0 3259# 1.2.1 had 0:18:0 3260# 1.3.0 had 1:0:0 # ub_cancel and -export-symbols. 3261# 1.3.1 had 1:1:0 3262# 1.3.2 had 1:2:0 3263# 1.3.3 had 1:3:0 3264# 1.3.4 had 1:4:0 3265# 1.4.0-snapshots had 1:5:0 3266# 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus 3267# 1.4.1 had 2:1:0 3268# 1.4.2 had 2:2:0 3269# 1.4.3 had 2:3:0 3270# 1.4.4 had 2:4:0 3271# 1.4.5 had 2:5:0 3272# 1.4.6 had 2:6:0 3273# 1.4.7 had 2:7:0 3274# 1.4.8 had 2:8:0 3275# 1.4.9 had 2:9:0 3276# 1.4.10 had 2:10:0 3277# 1.4.11 had 2:11:0 3278# 1.4.12 had 2:12:0 3279# 1.4.13 had 2:13:0 3280# and 1.4.13p1 and 1.4.13.p2 3281# 1.4.14 had 2:14:0 3282# 1.4.15 had 3:0:1 # adds ub_version() 3283# 1.4.16 had 3:1:1 3284# 1.4.17 had 3:2:1 3285# 1.4.18 had 3:3:1 3286# 1.4.19 had 3:4:1 3287# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1 3288# 1.4.21 had 4:1:2 3289# 1.4.22 had 4:1:2 3290# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr 3291# 1.5.1 had 5:3:3 3292# 1.5.2 had 5:5:3 3293# 1.5.3 had 5:6:3 3294# 1.5.4 had 5:7:3 3295# 1.5.5 had 5:8:3 3296# 1.5.6 had 5:9:3 3297# 1.5.7 had 5:10:3 3298# 1.5.8 had 6:0:4 # adds ub_ctx_set_stub 3299# 1.5.9 had 6:1:4 3300# 1.5.10 had 6:2:4 3301# 1.6.0 had 6:3:4 3302# 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type 3303# 1.6.2 had 7:1:5 3304# 1.6.3 had 7:2:5 3305# 1.6.4 had 7:3:5 3306# 1.6.5 had 7:4:5 3307# 1.6.6 had 7:5:5 3308# 1.6.7 had 7:6:5 3309# 1.6.8 had 7:7:5 3310# 1.7.0 had 7:8:5 3311# 1.7.1 had 7:9:5 3312# 1.7.2 had 7:10:5 3313# 1.7.3 had 7:11:5 3314# 1.8.0 had 8:0:0 # changes the event callback function signature 3315# 1.8.1 had 8:1:0 3316# 1.8.2 had 8:2:0 3317# 1.8.3 had 8:3:0 3318# 1.9.0 had 9:0:1 # add ub_ctx_set_tls 3319# 1.9.1 had 9:1:1 3320# 1.9.2 had 9:2:1 3321# 1.9.3 had 9:3:1 3322# 1.9.4 had 9:4:1 3323# 1.9.5 had 9:5:1 3324# 1.9.6 had 9:6:1 3325# 1.10.0 had 9:7:1 3326# 1.10.1 had 9:8:1 3327# 1.11.0 had 9:9:1 3328# 1.12.0 had 9:10:1 3329# 1.13.0 had 9:11:1 3330# 1.13.1 had 9:12:1 3331# 1.13.2 had 9:13:1 3332# 1.14.0 had 9:14:1 3333# 1.15.0 had 9:15:1 3334# 1.16.0 had 9:16:1 3335# 1.16.1 had 9:17:1 3336# 1.16.2 had 9:18:1 3337# 1.16.3 had 9:19:1 3338# 1.17.0 had 9:20:1 3339# 1.17.1 had 9:21:1 3340# 1.18.0 had 9:22:1 3341# 1.19.0 had 9:23:1 3342# 1.19.1 had 9:24:1 3343# 1.19.2 had 9:25:1 3344# 1.19.3 had 9:26:1 3345# 1.20.0 had 9:27:1 3346# 1.21.0 had 9:28:1 3347# 1.21.1 had 9:29:1 3348 3349# Current -- the number of the binary API that we're implementing 3350# Revision -- which iteration of the implementation of the binary 3351# API are we supplying? 3352# Age -- How many previous binary API versions do we also 3353# support? 3354# 3355# If we release a new version that does not change the binary API, 3356# increment Revision. 3357# 3358# If we release a new version that changes the binary API, but does 3359# not break programs compiled against the old binary API, increment 3360# Current and Age. Set Revision to 0, since this is the first 3361# implementation of the new API. 3362# 3363# Otherwise, we're changing the binary API and breaking backward 3364# compatibility with old binaries. Increment Current. Set Age to 0, 3365# since we're backward compatible with no previous APIs. Set Revision 3366# to 0 too. 3367 3368 3369 3370 3371 3372cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`" 3373 3374printf "%s\n" "#define CONFCMDLINE \"$cmdln\"" >>confdefs.h 3375 3376 3377CFLAGS="$CFLAGS" 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387ac_ext=c 3388ac_cpp='$CPP $CPPFLAGS' 3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3391ac_compiler_gnu=$ac_cv_c_compiler_gnu 3392if test -n "$ac_tool_prefix"; then 3393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3394set dummy ${ac_tool_prefix}gcc; ac_word=$2 3395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3396printf %s "checking for $ac_word... " >&6; } 3397if test ${ac_cv_prog_CC+y} 3398then : 3399 printf %s "(cached) " >&6 3400else $as_nop 3401 if test -n "$CC"; then 3402 ac_cv_prog_CC="$CC" # Let the user override the test. 3403else 3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3405for as_dir in $PATH 3406do 3407 IFS=$as_save_IFS 3408 case $as_dir in #((( 3409 '') as_dir=./ ;; 3410 */) ;; 3411 *) as_dir=$as_dir/ ;; 3412 esac 3413 for ac_exec_ext in '' $ac_executable_extensions; do 3414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3415 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3417 break 2 3418 fi 3419done 3420 done 3421IFS=$as_save_IFS 3422 3423fi 3424fi 3425CC=$ac_cv_prog_CC 3426if test -n "$CC"; then 3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3428printf "%s\n" "$CC" >&6; } 3429else 3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3431printf "%s\n" "no" >&6; } 3432fi 3433 3434 3435fi 3436if test -z "$ac_cv_prog_CC"; then 3437 ac_ct_CC=$CC 3438 # Extract the first word of "gcc", so it can be a program name with args. 3439set dummy gcc; ac_word=$2 3440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3441printf %s "checking for $ac_word... " >&6; } 3442if test ${ac_cv_prog_ac_ct_CC+y} 3443then : 3444 printf %s "(cached) " >&6 3445else $as_nop 3446 if test -n "$ac_ct_CC"; then 3447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3448else 3449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3450for as_dir in $PATH 3451do 3452 IFS=$as_save_IFS 3453 case $as_dir in #((( 3454 '') as_dir=./ ;; 3455 */) ;; 3456 *) as_dir=$as_dir/ ;; 3457 esac 3458 for ac_exec_ext in '' $ac_executable_extensions; do 3459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3460 ac_cv_prog_ac_ct_CC="gcc" 3461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3462 break 2 3463 fi 3464done 3465 done 3466IFS=$as_save_IFS 3467 3468fi 3469fi 3470ac_ct_CC=$ac_cv_prog_ac_ct_CC 3471if test -n "$ac_ct_CC"; then 3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3473printf "%s\n" "$ac_ct_CC" >&6; } 3474else 3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3476printf "%s\n" "no" >&6; } 3477fi 3478 3479 if test "x$ac_ct_CC" = x; then 3480 CC="" 3481 else 3482 case $cross_compiling:$ac_tool_warned in 3483yes:) 3484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3485printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3486ac_tool_warned=yes ;; 3487esac 3488 CC=$ac_ct_CC 3489 fi 3490else 3491 CC="$ac_cv_prog_CC" 3492fi 3493 3494if test -z "$CC"; then 3495 if test -n "$ac_tool_prefix"; then 3496 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3497set dummy ${ac_tool_prefix}cc; ac_word=$2 3498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3499printf %s "checking for $ac_word... " >&6; } 3500if test ${ac_cv_prog_CC+y} 3501then : 3502 printf %s "(cached) " >&6 3503else $as_nop 3504 if test -n "$CC"; then 3505 ac_cv_prog_CC="$CC" # Let the user override the test. 3506else 3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3508for as_dir in $PATH 3509do 3510 IFS=$as_save_IFS 3511 case $as_dir in #((( 3512 '') as_dir=./ ;; 3513 */) ;; 3514 *) as_dir=$as_dir/ ;; 3515 esac 3516 for ac_exec_ext in '' $ac_executable_extensions; do 3517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3518 ac_cv_prog_CC="${ac_tool_prefix}cc" 3519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3520 break 2 3521 fi 3522done 3523 done 3524IFS=$as_save_IFS 3525 3526fi 3527fi 3528CC=$ac_cv_prog_CC 3529if test -n "$CC"; then 3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3531printf "%s\n" "$CC" >&6; } 3532else 3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3534printf "%s\n" "no" >&6; } 3535fi 3536 3537 3538 fi 3539fi 3540if test -z "$CC"; then 3541 # Extract the first word of "cc", so it can be a program name with args. 3542set dummy cc; ac_word=$2 3543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3544printf %s "checking for $ac_word... " >&6; } 3545if test ${ac_cv_prog_CC+y} 3546then : 3547 printf %s "(cached) " >&6 3548else $as_nop 3549 if test -n "$CC"; then 3550 ac_cv_prog_CC="$CC" # Let the user override the test. 3551else 3552 ac_prog_rejected=no 3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3554for as_dir in $PATH 3555do 3556 IFS=$as_save_IFS 3557 case $as_dir in #((( 3558 '') as_dir=./ ;; 3559 */) ;; 3560 *) as_dir=$as_dir/ ;; 3561 esac 3562 for ac_exec_ext in '' $ac_executable_extensions; do 3563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3564 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3565 ac_prog_rejected=yes 3566 continue 3567 fi 3568 ac_cv_prog_CC="cc" 3569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3570 break 2 3571 fi 3572done 3573 done 3574IFS=$as_save_IFS 3575 3576if test $ac_prog_rejected = yes; then 3577 # We found a bogon in the path, so make sure we never use it. 3578 set dummy $ac_cv_prog_CC 3579 shift 3580 if test $# != 0; then 3581 # We chose a different compiler from the bogus one. 3582 # However, it has the same basename, so the bogon will be chosen 3583 # first if we set CC to just the basename; use the full file name. 3584 shift 3585 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3586 fi 3587fi 3588fi 3589fi 3590CC=$ac_cv_prog_CC 3591if test -n "$CC"; then 3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3593printf "%s\n" "$CC" >&6; } 3594else 3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3596printf "%s\n" "no" >&6; } 3597fi 3598 3599 3600fi 3601if test -z "$CC"; then 3602 if test -n "$ac_tool_prefix"; then 3603 for ac_prog in cl.exe 3604 do 3605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3606set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3608printf %s "checking for $ac_word... " >&6; } 3609if test ${ac_cv_prog_CC+y} 3610then : 3611 printf %s "(cached) " >&6 3612else $as_nop 3613 if test -n "$CC"; then 3614 ac_cv_prog_CC="$CC" # Let the user override the test. 3615else 3616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3617for as_dir in $PATH 3618do 3619 IFS=$as_save_IFS 3620 case $as_dir in #((( 3621 '') as_dir=./ ;; 3622 */) ;; 3623 *) as_dir=$as_dir/ ;; 3624 esac 3625 for ac_exec_ext in '' $ac_executable_extensions; do 3626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3629 break 2 3630 fi 3631done 3632 done 3633IFS=$as_save_IFS 3634 3635fi 3636fi 3637CC=$ac_cv_prog_CC 3638if test -n "$CC"; then 3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3640printf "%s\n" "$CC" >&6; } 3641else 3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3643printf "%s\n" "no" >&6; } 3644fi 3645 3646 3647 test -n "$CC" && break 3648 done 3649fi 3650if test -z "$CC"; then 3651 ac_ct_CC=$CC 3652 for ac_prog in cl.exe 3653do 3654 # Extract the first word of "$ac_prog", so it can be a program name with args. 3655set dummy $ac_prog; ac_word=$2 3656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3657printf %s "checking for $ac_word... " >&6; } 3658if test ${ac_cv_prog_ac_ct_CC+y} 3659then : 3660 printf %s "(cached) " >&6 3661else $as_nop 3662 if test -n "$ac_ct_CC"; then 3663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3664else 3665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3666for as_dir in $PATH 3667do 3668 IFS=$as_save_IFS 3669 case $as_dir in #((( 3670 '') as_dir=./ ;; 3671 */) ;; 3672 *) as_dir=$as_dir/ ;; 3673 esac 3674 for ac_exec_ext in '' $ac_executable_extensions; do 3675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3676 ac_cv_prog_ac_ct_CC="$ac_prog" 3677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3678 break 2 3679 fi 3680done 3681 done 3682IFS=$as_save_IFS 3683 3684fi 3685fi 3686ac_ct_CC=$ac_cv_prog_ac_ct_CC 3687if test -n "$ac_ct_CC"; then 3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3689printf "%s\n" "$ac_ct_CC" >&6; } 3690else 3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3692printf "%s\n" "no" >&6; } 3693fi 3694 3695 3696 test -n "$ac_ct_CC" && break 3697done 3698 3699 if test "x$ac_ct_CC" = x; then 3700 CC="" 3701 else 3702 case $cross_compiling:$ac_tool_warned in 3703yes:) 3704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3705printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3706ac_tool_warned=yes ;; 3707esac 3708 CC=$ac_ct_CC 3709 fi 3710fi 3711 3712fi 3713if test -z "$CC"; then 3714 if test -n "$ac_tool_prefix"; then 3715 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3716set dummy ${ac_tool_prefix}clang; ac_word=$2 3717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3718printf %s "checking for $ac_word... " >&6; } 3719if test ${ac_cv_prog_CC+y} 3720then : 3721 printf %s "(cached) " >&6 3722else $as_nop 3723 if test -n "$CC"; then 3724 ac_cv_prog_CC="$CC" # Let the user override the test. 3725else 3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3727for as_dir in $PATH 3728do 3729 IFS=$as_save_IFS 3730 case $as_dir in #((( 3731 '') as_dir=./ ;; 3732 */) ;; 3733 *) as_dir=$as_dir/ ;; 3734 esac 3735 for ac_exec_ext in '' $ac_executable_extensions; do 3736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3737 ac_cv_prog_CC="${ac_tool_prefix}clang" 3738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3739 break 2 3740 fi 3741done 3742 done 3743IFS=$as_save_IFS 3744 3745fi 3746fi 3747CC=$ac_cv_prog_CC 3748if test -n "$CC"; then 3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3750printf "%s\n" "$CC" >&6; } 3751else 3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3753printf "%s\n" "no" >&6; } 3754fi 3755 3756 3757fi 3758if test -z "$ac_cv_prog_CC"; then 3759 ac_ct_CC=$CC 3760 # Extract the first word of "clang", so it can be a program name with args. 3761set dummy clang; ac_word=$2 3762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3763printf %s "checking for $ac_word... " >&6; } 3764if test ${ac_cv_prog_ac_ct_CC+y} 3765then : 3766 printf %s "(cached) " >&6 3767else $as_nop 3768 if test -n "$ac_ct_CC"; then 3769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3770else 3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3772for as_dir in $PATH 3773do 3774 IFS=$as_save_IFS 3775 case $as_dir in #((( 3776 '') as_dir=./ ;; 3777 */) ;; 3778 *) as_dir=$as_dir/ ;; 3779 esac 3780 for ac_exec_ext in '' $ac_executable_extensions; do 3781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3782 ac_cv_prog_ac_ct_CC="clang" 3783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3784 break 2 3785 fi 3786done 3787 done 3788IFS=$as_save_IFS 3789 3790fi 3791fi 3792ac_ct_CC=$ac_cv_prog_ac_ct_CC 3793if test -n "$ac_ct_CC"; then 3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3795printf "%s\n" "$ac_ct_CC" >&6; } 3796else 3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3798printf "%s\n" "no" >&6; } 3799fi 3800 3801 if test "x$ac_ct_CC" = x; then 3802 CC="" 3803 else 3804 case $cross_compiling:$ac_tool_warned in 3805yes:) 3806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3807printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3808ac_tool_warned=yes ;; 3809esac 3810 CC=$ac_ct_CC 3811 fi 3812else 3813 CC="$ac_cv_prog_CC" 3814fi 3815 3816fi 3817 3818 3819test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3820printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3821as_fn_error $? "no acceptable C compiler found in \$PATH 3822See \`config.log' for more details" "$LINENO" 5; } 3823 3824# Provide some information about the compiler. 3825printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3826set X $ac_compile 3827ac_compiler=$2 3828for ac_option in --version -v -V -qversion -version; do 3829 { { ac_try="$ac_compiler $ac_option >&5" 3830case "(($ac_try" in 3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3832 *) ac_try_echo=$ac_try;; 3833esac 3834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3835printf "%s\n" "$ac_try_echo"; } >&5 3836 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3837 ac_status=$? 3838 if test -s conftest.err; then 3839 sed '10a\ 3840... rest of stderr output deleted ... 3841 10q' conftest.err >conftest.er1 3842 cat conftest.er1 >&5 3843 fi 3844 rm -f conftest.er1 conftest.err 3845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3846 test $ac_status = 0; } 3847done 3848 3849cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3850/* end confdefs.h. */ 3851 3852int 3853main (void) 3854{ 3855 3856 ; 3857 return 0; 3858} 3859_ACEOF 3860ac_clean_files_save=$ac_clean_files 3861ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3862# Try to create an executable without -o first, disregard a.out. 3863# It will help us diagnose broken compilers, and finding out an intuition 3864# of exeext. 3865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3866printf %s "checking whether the C compiler works... " >&6; } 3867ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3868 3869# The possible output files: 3870ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3871 3872ac_rmfiles= 3873for ac_file in $ac_files 3874do 3875 case $ac_file in 3876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3877 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3878 esac 3879done 3880rm -f $ac_rmfiles 3881 3882if { { ac_try="$ac_link_default" 3883case "(($ac_try" in 3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3885 *) ac_try_echo=$ac_try;; 3886esac 3887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3888printf "%s\n" "$ac_try_echo"; } >&5 3889 (eval "$ac_link_default") 2>&5 3890 ac_status=$? 3891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3892 test $ac_status = 0; } 3893then : 3894 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3895# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3896# in a Makefile. We should not override ac_cv_exeext if it was cached, 3897# so that the user can short-circuit this test for compilers unknown to 3898# Autoconf. 3899for ac_file in $ac_files '' 3900do 3901 test -f "$ac_file" || continue 3902 case $ac_file in 3903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3904 ;; 3905 [ab].out ) 3906 # We found the default executable, but exeext='' is most 3907 # certainly right. 3908 break;; 3909 *.* ) 3910 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3911 then :; else 3912 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3913 fi 3914 # We set ac_cv_exeext here because the later test for it is not 3915 # safe: cross compilers may not add the suffix if given an `-o' 3916 # argument, so we may need to know it at that point already. 3917 # Even if this section looks crufty: it has the advantage of 3918 # actually working. 3919 break;; 3920 * ) 3921 break;; 3922 esac 3923done 3924test "$ac_cv_exeext" = no && ac_cv_exeext= 3925 3926else $as_nop 3927 ac_file='' 3928fi 3929if test -z "$ac_file" 3930then : 3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3932printf "%s\n" "no" >&6; } 3933printf "%s\n" "$as_me: failed program was:" >&5 3934sed 's/^/| /' conftest.$ac_ext >&5 3935 3936{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3937printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3938as_fn_error 77 "C compiler cannot create executables 3939See \`config.log' for more details" "$LINENO" 5; } 3940else $as_nop 3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3942printf "%s\n" "yes" >&6; } 3943fi 3944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3945printf %s "checking for C compiler default output file name... " >&6; } 3946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3947printf "%s\n" "$ac_file" >&6; } 3948ac_exeext=$ac_cv_exeext 3949 3950rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3951ac_clean_files=$ac_clean_files_save 3952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3953printf %s "checking for suffix of executables... " >&6; } 3954if { { ac_try="$ac_link" 3955case "(($ac_try" in 3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3957 *) ac_try_echo=$ac_try;; 3958esac 3959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3960printf "%s\n" "$ac_try_echo"; } >&5 3961 (eval "$ac_link") 2>&5 3962 ac_status=$? 3963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3964 test $ac_status = 0; } 3965then : 3966 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3967# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3968# work properly (i.e., refer to `conftest.exe'), while it won't with 3969# `rm'. 3970for ac_file in conftest.exe conftest conftest.*; do 3971 test -f "$ac_file" || continue 3972 case $ac_file in 3973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3974 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3975 break;; 3976 * ) break;; 3977 esac 3978done 3979else $as_nop 3980 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3981printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3982as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3983See \`config.log' for more details" "$LINENO" 5; } 3984fi 3985rm -f conftest conftest$ac_cv_exeext 3986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3987printf "%s\n" "$ac_cv_exeext" >&6; } 3988 3989rm -f conftest.$ac_ext 3990EXEEXT=$ac_cv_exeext 3991ac_exeext=$EXEEXT 3992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3993/* end confdefs.h. */ 3994#include <stdio.h> 3995int 3996main (void) 3997{ 3998FILE *f = fopen ("conftest.out", "w"); 3999 return ferror (f) || fclose (f) != 0; 4000 4001 ; 4002 return 0; 4003} 4004_ACEOF 4005ac_clean_files="$ac_clean_files conftest.out" 4006# Check that the compiler produces executables we can run. If not, either 4007# the compiler is broken, or we cross compile. 4008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4009printf %s "checking whether we are cross compiling... " >&6; } 4010if test "$cross_compiling" != yes; then 4011 { { ac_try="$ac_link" 4012case "(($ac_try" in 4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4014 *) ac_try_echo=$ac_try;; 4015esac 4016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4017printf "%s\n" "$ac_try_echo"; } >&5 4018 (eval "$ac_link") 2>&5 4019 ac_status=$? 4020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4021 test $ac_status = 0; } 4022 if { ac_try='./conftest$ac_cv_exeext' 4023 { { case "(($ac_try" in 4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4025 *) ac_try_echo=$ac_try;; 4026esac 4027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4028printf "%s\n" "$ac_try_echo"; } >&5 4029 (eval "$ac_try") 2>&5 4030 ac_status=$? 4031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4032 test $ac_status = 0; }; }; then 4033 cross_compiling=no 4034 else 4035 if test "$cross_compiling" = maybe; then 4036 cross_compiling=yes 4037 else 4038 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4039printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4040as_fn_error 77 "cannot run C compiled programs. 4041If you meant to cross compile, use \`--host'. 4042See \`config.log' for more details" "$LINENO" 5; } 4043 fi 4044 fi 4045fi 4046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4047printf "%s\n" "$cross_compiling" >&6; } 4048 4049rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4050ac_clean_files=$ac_clean_files_save 4051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4052printf %s "checking for suffix of object files... " >&6; } 4053if test ${ac_cv_objext+y} 4054then : 4055 printf %s "(cached) " >&6 4056else $as_nop 4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4058/* end confdefs.h. */ 4059 4060int 4061main (void) 4062{ 4063 4064 ; 4065 return 0; 4066} 4067_ACEOF 4068rm -f conftest.o conftest.obj 4069if { { ac_try="$ac_compile" 4070case "(($ac_try" in 4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4072 *) ac_try_echo=$ac_try;; 4073esac 4074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4075printf "%s\n" "$ac_try_echo"; } >&5 4076 (eval "$ac_compile") 2>&5 4077 ac_status=$? 4078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4079 test $ac_status = 0; } 4080then : 4081 for ac_file in conftest.o conftest.obj conftest.*; do 4082 test -f "$ac_file" || continue; 4083 case $ac_file in 4084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4085 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4086 break;; 4087 esac 4088done 4089else $as_nop 4090 printf "%s\n" "$as_me: failed program was:" >&5 4091sed 's/^/| /' conftest.$ac_ext >&5 4092 4093{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4094printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4095as_fn_error $? "cannot compute suffix of object files: cannot compile 4096See \`config.log' for more details" "$LINENO" 5; } 4097fi 4098rm -f conftest.$ac_cv_objext conftest.$ac_ext 4099fi 4100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4101printf "%s\n" "$ac_cv_objext" >&6; } 4102OBJEXT=$ac_cv_objext 4103ac_objext=$OBJEXT 4104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4105printf %s "checking whether the compiler supports GNU C... " >&6; } 4106if test ${ac_cv_c_compiler_gnu+y} 4107then : 4108 printf %s "(cached) " >&6 4109else $as_nop 4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4111/* end confdefs.h. */ 4112 4113int 4114main (void) 4115{ 4116#ifndef __GNUC__ 4117 choke me 4118#endif 4119 4120 ; 4121 return 0; 4122} 4123_ACEOF 4124if ac_fn_c_try_compile "$LINENO" 4125then : 4126 ac_compiler_gnu=yes 4127else $as_nop 4128 ac_compiler_gnu=no 4129fi 4130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4131ac_cv_c_compiler_gnu=$ac_compiler_gnu 4132 4133fi 4134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4135printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4136ac_compiler_gnu=$ac_cv_c_compiler_gnu 4137 4138if test $ac_compiler_gnu = yes; then 4139 GCC=yes 4140else 4141 GCC= 4142fi 4143ac_test_CFLAGS=${CFLAGS+y} 4144ac_save_CFLAGS=$CFLAGS 4145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4146printf %s "checking whether $CC accepts -g... " >&6; } 4147if test ${ac_cv_prog_cc_g+y} 4148then : 4149 printf %s "(cached) " >&6 4150else $as_nop 4151 ac_save_c_werror_flag=$ac_c_werror_flag 4152 ac_c_werror_flag=yes 4153 ac_cv_prog_cc_g=no 4154 CFLAGS="-g" 4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4156/* end confdefs.h. */ 4157 4158int 4159main (void) 4160{ 4161 4162 ; 4163 return 0; 4164} 4165_ACEOF 4166if ac_fn_c_try_compile "$LINENO" 4167then : 4168 ac_cv_prog_cc_g=yes 4169else $as_nop 4170 CFLAGS="" 4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4172/* end confdefs.h. */ 4173 4174int 4175main (void) 4176{ 4177 4178 ; 4179 return 0; 4180} 4181_ACEOF 4182if ac_fn_c_try_compile "$LINENO" 4183then : 4184 4185else $as_nop 4186 ac_c_werror_flag=$ac_save_c_werror_flag 4187 CFLAGS="-g" 4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4189/* end confdefs.h. */ 4190 4191int 4192main (void) 4193{ 4194 4195 ; 4196 return 0; 4197} 4198_ACEOF 4199if ac_fn_c_try_compile "$LINENO" 4200then : 4201 ac_cv_prog_cc_g=yes 4202fi 4203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4204fi 4205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4206fi 4207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4208 ac_c_werror_flag=$ac_save_c_werror_flag 4209fi 4210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4211printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4212if test $ac_test_CFLAGS; then 4213 CFLAGS=$ac_save_CFLAGS 4214elif test $ac_cv_prog_cc_g = yes; then 4215 if test "$GCC" = yes; then 4216 CFLAGS="-g -O2" 4217 else 4218 CFLAGS="-g" 4219 fi 4220else 4221 if test "$GCC" = yes; then 4222 CFLAGS="-O2" 4223 else 4224 CFLAGS= 4225 fi 4226fi 4227ac_prog_cc_stdc=no 4228if test x$ac_prog_cc_stdc = xno 4229then : 4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4231printf %s "checking for $CC option to enable C11 features... " >&6; } 4232if test ${ac_cv_prog_cc_c11+y} 4233then : 4234 printf %s "(cached) " >&6 4235else $as_nop 4236 ac_cv_prog_cc_c11=no 4237ac_save_CC=$CC 4238cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4239/* end confdefs.h. */ 4240$ac_c_conftest_c11_program 4241_ACEOF 4242for ac_arg in '' -std=gnu11 4243do 4244 CC="$ac_save_CC $ac_arg" 4245 if ac_fn_c_try_compile "$LINENO" 4246then : 4247 ac_cv_prog_cc_c11=$ac_arg 4248fi 4249rm -f core conftest.err conftest.$ac_objext conftest.beam 4250 test "x$ac_cv_prog_cc_c11" != "xno" && break 4251done 4252rm -f conftest.$ac_ext 4253CC=$ac_save_CC 4254fi 4255 4256if test "x$ac_cv_prog_cc_c11" = xno 4257then : 4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4259printf "%s\n" "unsupported" >&6; } 4260else $as_nop 4261 if test "x$ac_cv_prog_cc_c11" = x 4262then : 4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4264printf "%s\n" "none needed" >&6; } 4265else $as_nop 4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4267printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4268 CC="$CC $ac_cv_prog_cc_c11" 4269fi 4270 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4271 ac_prog_cc_stdc=c11 4272fi 4273fi 4274if test x$ac_prog_cc_stdc = xno 4275then : 4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4277printf %s "checking for $CC option to enable C99 features... " >&6; } 4278if test ${ac_cv_prog_cc_c99+y} 4279then : 4280 printf %s "(cached) " >&6 4281else $as_nop 4282 ac_cv_prog_cc_c99=no 4283ac_save_CC=$CC 4284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4285/* end confdefs.h. */ 4286$ac_c_conftest_c99_program 4287_ACEOF 4288for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4289do 4290 CC="$ac_save_CC $ac_arg" 4291 if ac_fn_c_try_compile "$LINENO" 4292then : 4293 ac_cv_prog_cc_c99=$ac_arg 4294fi 4295rm -f core conftest.err conftest.$ac_objext conftest.beam 4296 test "x$ac_cv_prog_cc_c99" != "xno" && break 4297done 4298rm -f conftest.$ac_ext 4299CC=$ac_save_CC 4300fi 4301 4302if test "x$ac_cv_prog_cc_c99" = xno 4303then : 4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4305printf "%s\n" "unsupported" >&6; } 4306else $as_nop 4307 if test "x$ac_cv_prog_cc_c99" = x 4308then : 4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4310printf "%s\n" "none needed" >&6; } 4311else $as_nop 4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4313printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4314 CC="$CC $ac_cv_prog_cc_c99" 4315fi 4316 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4317 ac_prog_cc_stdc=c99 4318fi 4319fi 4320if test x$ac_prog_cc_stdc = xno 4321then : 4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4323printf %s "checking for $CC option to enable C89 features... " >&6; } 4324if test ${ac_cv_prog_cc_c89+y} 4325then : 4326 printf %s "(cached) " >&6 4327else $as_nop 4328 ac_cv_prog_cc_c89=no 4329ac_save_CC=$CC 4330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4331/* end confdefs.h. */ 4332$ac_c_conftest_c89_program 4333_ACEOF 4334for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4335do 4336 CC="$ac_save_CC $ac_arg" 4337 if ac_fn_c_try_compile "$LINENO" 4338then : 4339 ac_cv_prog_cc_c89=$ac_arg 4340fi 4341rm -f core conftest.err conftest.$ac_objext conftest.beam 4342 test "x$ac_cv_prog_cc_c89" != "xno" && break 4343done 4344rm -f conftest.$ac_ext 4345CC=$ac_save_CC 4346fi 4347 4348if test "x$ac_cv_prog_cc_c89" = xno 4349then : 4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4351printf "%s\n" "unsupported" >&6; } 4352else $as_nop 4353 if test "x$ac_cv_prog_cc_c89" = x 4354then : 4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4356printf "%s\n" "none needed" >&6; } 4357else $as_nop 4358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4359printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4360 CC="$CC $ac_cv_prog_cc_c89" 4361fi 4362 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4363 ac_prog_cc_stdc=c89 4364fi 4365fi 4366 4367ac_ext=c 4368ac_cpp='$CPP $CPPFLAGS' 4369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4371ac_compiler_gnu=$ac_cv_c_compiler_gnu 4372 4373 4374ac_header= ac_cache= 4375for ac_item in $ac_header_c_list 4376do 4377 if test $ac_cache; then 4378 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4379 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4380 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4381 fi 4382 ac_header= ac_cache= 4383 elif test $ac_header; then 4384 ac_cache=$ac_item 4385 else 4386 ac_header=$ac_item 4387 fi 4388done 4389 4390 4391 4392 4393 4394 4395 4396 4397if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4398then : 4399 4400printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4401 4402fi 4403 4404 4405 4406 4407 4408 4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4410printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4411if test ${ac_cv_safe_to_define___extensions__+y} 4412then : 4413 printf %s "(cached) " >&6 4414else $as_nop 4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4416/* end confdefs.h. */ 4417 4418# define __EXTENSIONS__ 1 4419 $ac_includes_default 4420int 4421main (void) 4422{ 4423 4424 ; 4425 return 0; 4426} 4427_ACEOF 4428if ac_fn_c_try_compile "$LINENO" 4429then : 4430 ac_cv_safe_to_define___extensions__=yes 4431else $as_nop 4432 ac_cv_safe_to_define___extensions__=no 4433fi 4434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4435fi 4436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4437printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4438 4439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4440printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4441if test ${ac_cv_should_define__xopen_source+y} 4442then : 4443 printf %s "(cached) " >&6 4444else $as_nop 4445 ac_cv_should_define__xopen_source=no 4446 if test $ac_cv_header_wchar_h = yes 4447then : 4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4449/* end confdefs.h. */ 4450 4451 #include <wchar.h> 4452 mbstate_t x; 4453int 4454main (void) 4455{ 4456 4457 ; 4458 return 0; 4459} 4460_ACEOF 4461if ac_fn_c_try_compile "$LINENO" 4462then : 4463 4464else $as_nop 4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4466/* end confdefs.h. */ 4467 4468 #define _XOPEN_SOURCE 500 4469 #include <wchar.h> 4470 mbstate_t x; 4471int 4472main (void) 4473{ 4474 4475 ; 4476 return 0; 4477} 4478_ACEOF 4479if ac_fn_c_try_compile "$LINENO" 4480then : 4481 ac_cv_should_define__xopen_source=yes 4482fi 4483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4484fi 4485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4486fi 4487fi 4488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4489printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4490 4491 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4492 4493 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4494 4495 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4496 4497 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4498 4499 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4500 4501 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4502 4503 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4504 4505 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4506 4507 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4508 4509 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4510 4511 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4512 4513 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4514 4515 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4516 4517 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4518 4519 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4520 4521 if test $ac_cv_header_minix_config_h = yes 4522then : 4523 MINIX=yes 4524 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4525 4526 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4527 4528 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4529 4530else $as_nop 4531 MINIX= 4532fi 4533 if test $ac_cv_safe_to_define___extensions__ = yes 4534then : 4535 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4536 4537fi 4538 if test $ac_cv_should_define__xopen_source = yes 4539then : 4540 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4541 4542fi 4543 4544if test "$ac_cv_header_minix_config_h" = "yes"; then 4545 4546printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4547 4548fi 4549 4550case "$prefix" in 4551 NONE) 4552 prefix="/usr/local" 4553 ;; 4554esac 4555case "$exec_prefix" in 4556 NONE) 4557 exec_prefix="$prefix" 4558 ;; 4559esac 4560 4561# are we on MinGW? 4562if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes" 4563else 4564 if echo $host | grep mingw >/dev/null; then on_mingw="yes" 4565 else on_mingw="no"; fi 4566fi 4567 4568# 4569# Determine configuration file 4570# the eval is to evaluate shell expansion twice 4571UNBOUND_SBIN_DIR=`eval echo "${sbindir}"` 4572 4573UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"` 4574 4575UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"` 4576 4577if test $on_mingw = "no"; then 4578 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"` 4579else 4580 ub_conf_file="C:\\Program Files\\Unbound\\service.conf" 4581fi 4582 4583# Check whether --with-conf_file was given. 4584if test ${with_conf_file+y} 4585then : 4586 withval=$with_conf_file; ub_conf_file="$withval" 4587fi 4588 4589 4590hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`" 4591 4592 4593printf "%s\n" "#define CONFIGFILE \"$hdr_config\"" >>confdefs.h 4594 4595ub_conf_dir=`$as_dirname -- "$ub_conf_file" || 4596$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4597 X"$ub_conf_file" : 'X\(//\)[^/]' \| \ 4598 X"$ub_conf_file" : 'X\(//\)$' \| \ 4599 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null || 4600printf "%s\n" X"$ub_conf_file" | 4601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4602 s//\1/ 4603 q 4604 } 4605 /^X\(\/\/\)[^/].*/{ 4606 s//\1/ 4607 q 4608 } 4609 /^X\(\/\/\)$/{ 4610 s//\1/ 4611 q 4612 } 4613 /^X\(\/\).*/{ 4614 s//\1/ 4615 q 4616 } 4617 s/.*/./; q'` 4618 4619 4620# Determine run, chroot directory and pidfile locations 4621 4622# Check whether --with-run-dir was given. 4623if test ${with_run_dir+y} 4624then : 4625 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval" 4626else $as_nop 4627 if test $on_mingw = no; then 4628 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"` 4629else 4630 UNBOUND_RUN_DIR="" 4631fi 4632 4633fi 4634 4635 4636hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4637 4638 4639printf "%s\n" "#define RUN_DIR \"$hdr_run\"" >>confdefs.h 4640 4641 4642 4643# Check whether --with-chroot-dir was given. 4644if test ${with_chroot_dir+y} 4645then : 4646 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval" 4647else $as_nop 4648 if test $on_mingw = no; then 4649 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR" 4650else 4651 UNBOUND_CHROOT_DIR="" 4652fi 4653 4654fi 4655 4656 4657hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`" 4658 4659 4660printf "%s\n" "#define CHROOT_DIR \"$hdr_chroot\"" >>confdefs.h 4661 4662 4663 4664# Check whether --with-share-dir was given. 4665if test ${with_share_dir+y} 4666then : 4667 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval" 4668else $as_nop 4669 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR" 4670fi 4671 4672 4673 4674printf "%s\n" "#define SHARE_DIR \"$UNBOUND_SHARE_DIR\"" >>confdefs.h 4675 4676 4677 4678# Check whether --with-pidfile was given. 4679if test ${with_pidfile+y} 4680then : 4681 withval=$with_pidfile; UNBOUND_PIDFILE="$withval" 4682else $as_nop 4683 if test $on_mingw = no; then 4684 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid" 4685else 4686 UNBOUND_PIDFILE="" 4687fi 4688 4689fi 4690 4691 4692hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4693 4694 4695printf "%s\n" "#define PIDFILE \"$hdr_pid\"" >>confdefs.h 4696 4697 4698 4699# Check whether --with-rootkey-file was given. 4700if test ${with_rootkey_file+y} 4701then : 4702 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval" 4703else $as_nop 4704 if test $on_mingw = no; then 4705 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key" 4706else 4707 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key" 4708fi 4709 4710fi 4711 4712 4713hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4714 4715 4716printf "%s\n" "#define ROOT_ANCHOR_FILE \"$hdr_rkey\"" >>confdefs.h 4717 4718 4719 4720# Check whether --with-rootcert-file was given. 4721if test ${with_rootcert_file+y} 4722then : 4723 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval" 4724else $as_nop 4725 if test $on_mingw = no; then 4726 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem" 4727else 4728 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem" 4729fi 4730 4731fi 4732 4733 4734hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`" 4735 4736 4737printf "%s\n" "#define ROOT_CERT_FILE \"$hdr_rpem\"" >>confdefs.h 4738 4739 4740 4741# Check whether --with-username was given. 4742if test ${with_username+y} 4743then : 4744 withval=$with_username; UNBOUND_USERNAME="$withval" 4745else $as_nop 4746 UNBOUND_USERNAME="unbound" 4747fi 4748 4749 4750 4751printf "%s\n" "#define UB_USERNAME \"$UNBOUND_USERNAME\"" >>confdefs.h 4752 4753 4754 4755printf "%s\n" "#define WINVER 0x0502" >>confdefs.h 4756 4757wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\).*$/\1,\2,\3,\4/' -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1,\2,\3,0/' ` 4758 4759 4760printf "%s\n" "#define RSRC_PACKAGE_VERSION $wnvs" >>confdefs.h 4761 4762 4763# Check for 'grep -e' program, here, since ACX_CHECK_FLTO needs that. 4764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4765printf %s "checking for grep that handles long lines and -e... " >&6; } 4766if test ${ac_cv_path_GREP+y} 4767then : 4768 printf %s "(cached) " >&6 4769else $as_nop 4770 if test -z "$GREP"; then 4771 ac_path_GREP_found=false 4772 # Loop through the user's path and test for each of PROGNAME-LIST 4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4774for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4775do 4776 IFS=$as_save_IFS 4777 case $as_dir in #((( 4778 '') as_dir=./ ;; 4779 */) ;; 4780 *) as_dir=$as_dir/ ;; 4781 esac 4782 for ac_prog in grep ggrep 4783 do 4784 for ac_exec_ext in '' $ac_executable_extensions; do 4785 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4786 as_fn_executable_p "$ac_path_GREP" || continue 4787# Check for GNU ac_path_GREP and select it if it is found. 4788 # Check for GNU $ac_path_GREP 4789case `"$ac_path_GREP" --version 2>&1` in 4790*GNU*) 4791 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4792*) 4793 ac_count=0 4794 printf %s 0123456789 >"conftest.in" 4795 while : 4796 do 4797 cat "conftest.in" "conftest.in" >"conftest.tmp" 4798 mv "conftest.tmp" "conftest.in" 4799 cp "conftest.in" "conftest.nl" 4800 printf "%s\n" 'GREP' >> "conftest.nl" 4801 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4802 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4803 as_fn_arith $ac_count + 1 && ac_count=$as_val 4804 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4805 # Best one so far, save it but keep looking for a better one 4806 ac_cv_path_GREP="$ac_path_GREP" 4807 ac_path_GREP_max=$ac_count 4808 fi 4809 # 10*(2^10) chars as input seems more than enough 4810 test $ac_count -gt 10 && break 4811 done 4812 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4813esac 4814 4815 $ac_path_GREP_found && break 3 4816 done 4817 done 4818 done 4819IFS=$as_save_IFS 4820 if test -z "$ac_cv_path_GREP"; then 4821 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4822 fi 4823else 4824 ac_cv_path_GREP=$GREP 4825fi 4826 4827fi 4828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4829printf "%s\n" "$ac_cv_path_GREP" >&6; } 4830 GREP="$ac_cv_path_GREP" 4831 4832 4833 4834# Checks for typedefs, structures, and compiler characteristics. 4835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4836printf %s "checking for an ANSI C-conforming const... " >&6; } 4837if test ${ac_cv_c_const+y} 4838then : 4839 printf %s "(cached) " >&6 4840else $as_nop 4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4842/* end confdefs.h. */ 4843 4844int 4845main (void) 4846{ 4847 4848#ifndef __cplusplus 4849 /* Ultrix mips cc rejects this sort of thing. */ 4850 typedef int charset[2]; 4851 const charset cs = { 0, 0 }; 4852 /* SunOS 4.1.1 cc rejects this. */ 4853 char const *const *pcpcc; 4854 char **ppc; 4855 /* NEC SVR4.0.2 mips cc rejects this. */ 4856 struct point {int x, y;}; 4857 static struct point const zero = {0,0}; 4858 /* IBM XL C 1.02.0.0 rejects this. 4859 It does not let you subtract one const X* pointer from another in 4860 an arm of an if-expression whose if-part is not a constant 4861 expression */ 4862 const char *g = "string"; 4863 pcpcc = &g + (g ? g-g : 0); 4864 /* HPUX 7.0 cc rejects these. */ 4865 ++pcpcc; 4866 ppc = (char**) pcpcc; 4867 pcpcc = (char const *const *) ppc; 4868 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4869 char tx; 4870 char *t = &tx; 4871 char const *s = 0 ? (char *) 0 : (char const *) 0; 4872 4873 *t++ = 0; 4874 if (s) return 0; 4875 } 4876 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4877 int x[] = {25, 17}; 4878 const int *foo = &x[0]; 4879 ++foo; 4880 } 4881 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4882 typedef const int *iptr; 4883 iptr p = 0; 4884 ++p; 4885 } 4886 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 4887 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4888 struct s { int j; const int *ap[3]; } bx; 4889 struct s *b = &bx; b->j = 5; 4890 } 4891 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4892 const int foo = 10; 4893 if (!foo) return 0; 4894 } 4895 return !cs[0] && !zero.x; 4896#endif 4897 4898 ; 4899 return 0; 4900} 4901_ACEOF 4902if ac_fn_c_try_compile "$LINENO" 4903then : 4904 ac_cv_c_const=yes 4905else $as_nop 4906 ac_cv_c_const=no 4907fi 4908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4909fi 4910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4911printf "%s\n" "$ac_cv_c_const" >&6; } 4912if test $ac_cv_c_const = no; then 4913 4914printf "%s\n" "#define const /**/" >>confdefs.h 4915 4916fi 4917 4918ac_ext=c 4919ac_cpp='$CPP $CPPFLAGS' 4920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4922ac_compiler_gnu=$ac_cv_c_compiler_gnu 4923 4924# allow user to override the -g -O2 flags. 4925default_cflags=no 4926if test "x$CFLAGS" = "x" ; then 4927 4928 4929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5 4930printf %s "checking whether $CC supports -g... " >&6; } 4931cache=`echo g | sed 'y%.=/+-%___p_%'` 4932if eval test \${cv_prog_cc_flag_$cache+y} 4933then : 4934 printf %s "(cached) " >&6 4935else $as_nop 4936 4937echo 'void f(void){}' >conftest.c 4938if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then 4939eval "cv_prog_cc_flag_$cache=yes" 4940else 4941eval "cv_prog_cc_flag_$cache=no" 4942fi 4943rm -f conftest conftest.o conftest.c 4944 4945fi 4946 4947if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4949printf "%s\n" "yes" >&6; } 4950: 4951CFLAGS="$CFLAGS -g" 4952else 4953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4954printf "%s\n" "no" >&6; } 4955: 4956 4957fi 4958 4959 4960 4961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5 4962printf %s "checking whether $CC supports -O2... " >&6; } 4963cache=`echo O2 | sed 'y%.=/+-%___p_%'` 4964if eval test \${cv_prog_cc_flag_$cache+y} 4965then : 4966 printf %s "(cached) " >&6 4967else $as_nop 4968 4969echo 'void f(void){}' >conftest.c 4970if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then 4971eval "cv_prog_cc_flag_$cache=yes" 4972else 4973eval "cv_prog_cc_flag_$cache=no" 4974fi 4975rm -f conftest conftest.o conftest.c 4976 4977fi 4978 4979if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 4980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4981printf "%s\n" "yes" >&6; } 4982: 4983CFLAGS="$CFLAGS -O2" 4984else 4985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4986printf "%s\n" "no" >&6; } 4987: 4988 4989fi 4990 4991default_cflags=yes 4992fi 4993ac_ext=c 4994ac_cpp='$CPP $CPPFLAGS' 4995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4997ac_compiler_gnu=$ac_cv_c_compiler_gnu 4998if test -n "$ac_tool_prefix"; then 4999 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5000set dummy ${ac_tool_prefix}gcc; ac_word=$2 5001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5002printf %s "checking for $ac_word... " >&6; } 5003if test ${ac_cv_prog_CC+y} 5004then : 5005 printf %s "(cached) " >&6 5006else $as_nop 5007 if test -n "$CC"; then 5008 ac_cv_prog_CC="$CC" # Let the user override the test. 5009else 5010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5011for as_dir in $PATH 5012do 5013 IFS=$as_save_IFS 5014 case $as_dir in #((( 5015 '') as_dir=./ ;; 5016 */) ;; 5017 *) as_dir=$as_dir/ ;; 5018 esac 5019 for ac_exec_ext in '' $ac_executable_extensions; do 5020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5021 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5023 break 2 5024 fi 5025done 5026 done 5027IFS=$as_save_IFS 5028 5029fi 5030fi 5031CC=$ac_cv_prog_CC 5032if test -n "$CC"; then 5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5034printf "%s\n" "$CC" >&6; } 5035else 5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5037printf "%s\n" "no" >&6; } 5038fi 5039 5040 5041fi 5042if test -z "$ac_cv_prog_CC"; then 5043 ac_ct_CC=$CC 5044 # Extract the first word of "gcc", so it can be a program name with args. 5045set dummy gcc; ac_word=$2 5046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5047printf %s "checking for $ac_word... " >&6; } 5048if test ${ac_cv_prog_ac_ct_CC+y} 5049then : 5050 printf %s "(cached) " >&6 5051else $as_nop 5052 if test -n "$ac_ct_CC"; then 5053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5054else 5055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5056for as_dir in $PATH 5057do 5058 IFS=$as_save_IFS 5059 case $as_dir in #((( 5060 '') as_dir=./ ;; 5061 */) ;; 5062 *) as_dir=$as_dir/ ;; 5063 esac 5064 for ac_exec_ext in '' $ac_executable_extensions; do 5065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5066 ac_cv_prog_ac_ct_CC="gcc" 5067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5068 break 2 5069 fi 5070done 5071 done 5072IFS=$as_save_IFS 5073 5074fi 5075fi 5076ac_ct_CC=$ac_cv_prog_ac_ct_CC 5077if test -n "$ac_ct_CC"; then 5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5079printf "%s\n" "$ac_ct_CC" >&6; } 5080else 5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5082printf "%s\n" "no" >&6; } 5083fi 5084 5085 if test "x$ac_ct_CC" = x; then 5086 CC="" 5087 else 5088 case $cross_compiling:$ac_tool_warned in 5089yes:) 5090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5091printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5092ac_tool_warned=yes ;; 5093esac 5094 CC=$ac_ct_CC 5095 fi 5096else 5097 CC="$ac_cv_prog_CC" 5098fi 5099 5100if test -z "$CC"; then 5101 if test -n "$ac_tool_prefix"; then 5102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5103set dummy ${ac_tool_prefix}cc; ac_word=$2 5104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5105printf %s "checking for $ac_word... " >&6; } 5106if test ${ac_cv_prog_CC+y} 5107then : 5108 printf %s "(cached) " >&6 5109else $as_nop 5110 if test -n "$CC"; then 5111 ac_cv_prog_CC="$CC" # Let the user override the test. 5112else 5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5114for as_dir in $PATH 5115do 5116 IFS=$as_save_IFS 5117 case $as_dir in #((( 5118 '') as_dir=./ ;; 5119 */) ;; 5120 *) as_dir=$as_dir/ ;; 5121 esac 5122 for ac_exec_ext in '' $ac_executable_extensions; do 5123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5124 ac_cv_prog_CC="${ac_tool_prefix}cc" 5125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5126 break 2 5127 fi 5128done 5129 done 5130IFS=$as_save_IFS 5131 5132fi 5133fi 5134CC=$ac_cv_prog_CC 5135if test -n "$CC"; then 5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5137printf "%s\n" "$CC" >&6; } 5138else 5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5140printf "%s\n" "no" >&6; } 5141fi 5142 5143 5144 fi 5145fi 5146if test -z "$CC"; then 5147 # Extract the first word of "cc", so it can be a program name with args. 5148set dummy cc; ac_word=$2 5149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5150printf %s "checking for $ac_word... " >&6; } 5151if test ${ac_cv_prog_CC+y} 5152then : 5153 printf %s "(cached) " >&6 5154else $as_nop 5155 if test -n "$CC"; then 5156 ac_cv_prog_CC="$CC" # Let the user override the test. 5157else 5158 ac_prog_rejected=no 5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5160for as_dir in $PATH 5161do 5162 IFS=$as_save_IFS 5163 case $as_dir in #((( 5164 '') as_dir=./ ;; 5165 */) ;; 5166 *) as_dir=$as_dir/ ;; 5167 esac 5168 for ac_exec_ext in '' $ac_executable_extensions; do 5169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5170 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5171 ac_prog_rejected=yes 5172 continue 5173 fi 5174 ac_cv_prog_CC="cc" 5175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5176 break 2 5177 fi 5178done 5179 done 5180IFS=$as_save_IFS 5181 5182if test $ac_prog_rejected = yes; then 5183 # We found a bogon in the path, so make sure we never use it. 5184 set dummy $ac_cv_prog_CC 5185 shift 5186 if test $# != 0; then 5187 # We chose a different compiler from the bogus one. 5188 # However, it has the same basename, so the bogon will be chosen 5189 # first if we set CC to just the basename; use the full file name. 5190 shift 5191 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 5192 fi 5193fi 5194fi 5195fi 5196CC=$ac_cv_prog_CC 5197if test -n "$CC"; then 5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5199printf "%s\n" "$CC" >&6; } 5200else 5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5202printf "%s\n" "no" >&6; } 5203fi 5204 5205 5206fi 5207if test -z "$CC"; then 5208 if test -n "$ac_tool_prefix"; then 5209 for ac_prog in cl.exe 5210 do 5211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5212set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5214printf %s "checking for $ac_word... " >&6; } 5215if test ${ac_cv_prog_CC+y} 5216then : 5217 printf %s "(cached) " >&6 5218else $as_nop 5219 if test -n "$CC"; then 5220 ac_cv_prog_CC="$CC" # Let the user override the test. 5221else 5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5223for as_dir in $PATH 5224do 5225 IFS=$as_save_IFS 5226 case $as_dir in #((( 5227 '') as_dir=./ ;; 5228 */) ;; 5229 *) as_dir=$as_dir/ ;; 5230 esac 5231 for ac_exec_ext in '' $ac_executable_extensions; do 5232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5233 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5235 break 2 5236 fi 5237done 5238 done 5239IFS=$as_save_IFS 5240 5241fi 5242fi 5243CC=$ac_cv_prog_CC 5244if test -n "$CC"; then 5245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5246printf "%s\n" "$CC" >&6; } 5247else 5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5249printf "%s\n" "no" >&6; } 5250fi 5251 5252 5253 test -n "$CC" && break 5254 done 5255fi 5256if test -z "$CC"; then 5257 ac_ct_CC=$CC 5258 for ac_prog in cl.exe 5259do 5260 # Extract the first word of "$ac_prog", so it can be a program name with args. 5261set dummy $ac_prog; ac_word=$2 5262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5263printf %s "checking for $ac_word... " >&6; } 5264if test ${ac_cv_prog_ac_ct_CC+y} 5265then : 5266 printf %s "(cached) " >&6 5267else $as_nop 5268 if test -n "$ac_ct_CC"; then 5269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5270else 5271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5272for as_dir in $PATH 5273do 5274 IFS=$as_save_IFS 5275 case $as_dir in #((( 5276 '') as_dir=./ ;; 5277 */) ;; 5278 *) as_dir=$as_dir/ ;; 5279 esac 5280 for ac_exec_ext in '' $ac_executable_extensions; do 5281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5282 ac_cv_prog_ac_ct_CC="$ac_prog" 5283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5284 break 2 5285 fi 5286done 5287 done 5288IFS=$as_save_IFS 5289 5290fi 5291fi 5292ac_ct_CC=$ac_cv_prog_ac_ct_CC 5293if test -n "$ac_ct_CC"; then 5294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5295printf "%s\n" "$ac_ct_CC" >&6; } 5296else 5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5298printf "%s\n" "no" >&6; } 5299fi 5300 5301 5302 test -n "$ac_ct_CC" && break 5303done 5304 5305 if test "x$ac_ct_CC" = x; then 5306 CC="" 5307 else 5308 case $cross_compiling:$ac_tool_warned in 5309yes:) 5310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5311printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5312ac_tool_warned=yes ;; 5313esac 5314 CC=$ac_ct_CC 5315 fi 5316fi 5317 5318fi 5319if test -z "$CC"; then 5320 if test -n "$ac_tool_prefix"; then 5321 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 5322set dummy ${ac_tool_prefix}clang; ac_word=$2 5323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5324printf %s "checking for $ac_word... " >&6; } 5325if test ${ac_cv_prog_CC+y} 5326then : 5327 printf %s "(cached) " >&6 5328else $as_nop 5329 if test -n "$CC"; then 5330 ac_cv_prog_CC="$CC" # Let the user override the test. 5331else 5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5333for as_dir in $PATH 5334do 5335 IFS=$as_save_IFS 5336 case $as_dir in #((( 5337 '') as_dir=./ ;; 5338 */) ;; 5339 *) as_dir=$as_dir/ ;; 5340 esac 5341 for ac_exec_ext in '' $ac_executable_extensions; do 5342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5343 ac_cv_prog_CC="${ac_tool_prefix}clang" 5344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5345 break 2 5346 fi 5347done 5348 done 5349IFS=$as_save_IFS 5350 5351fi 5352fi 5353CC=$ac_cv_prog_CC 5354if test -n "$CC"; then 5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5356printf "%s\n" "$CC" >&6; } 5357else 5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5359printf "%s\n" "no" >&6; } 5360fi 5361 5362 5363fi 5364if test -z "$ac_cv_prog_CC"; then 5365 ac_ct_CC=$CC 5366 # Extract the first word of "clang", so it can be a program name with args. 5367set dummy clang; ac_word=$2 5368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5369printf %s "checking for $ac_word... " >&6; } 5370if test ${ac_cv_prog_ac_ct_CC+y} 5371then : 5372 printf %s "(cached) " >&6 5373else $as_nop 5374 if test -n "$ac_ct_CC"; then 5375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5376else 5377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5378for as_dir in $PATH 5379do 5380 IFS=$as_save_IFS 5381 case $as_dir in #((( 5382 '') as_dir=./ ;; 5383 */) ;; 5384 *) as_dir=$as_dir/ ;; 5385 esac 5386 for ac_exec_ext in '' $ac_executable_extensions; do 5387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5388 ac_cv_prog_ac_ct_CC="clang" 5389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5390 break 2 5391 fi 5392done 5393 done 5394IFS=$as_save_IFS 5395 5396fi 5397fi 5398ac_ct_CC=$ac_cv_prog_ac_ct_CC 5399if test -n "$ac_ct_CC"; then 5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5401printf "%s\n" "$ac_ct_CC" >&6; } 5402else 5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5404printf "%s\n" "no" >&6; } 5405fi 5406 5407 if test "x$ac_ct_CC" = x; then 5408 CC="" 5409 else 5410 case $cross_compiling:$ac_tool_warned in 5411yes:) 5412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5413printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5414ac_tool_warned=yes ;; 5415esac 5416 CC=$ac_ct_CC 5417 fi 5418else 5419 CC="$ac_cv_prog_CC" 5420fi 5421 5422fi 5423 5424 5425test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5426printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5427as_fn_error $? "no acceptable C compiler found in \$PATH 5428See \`config.log' for more details" "$LINENO" 5; } 5429 5430# Provide some information about the compiler. 5431printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5432set X $ac_compile 5433ac_compiler=$2 5434for ac_option in --version -v -V -qversion -version; do 5435 { { ac_try="$ac_compiler $ac_option >&5" 5436case "(($ac_try" in 5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5438 *) ac_try_echo=$ac_try;; 5439esac 5440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5441printf "%s\n" "$ac_try_echo"; } >&5 5442 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5443 ac_status=$? 5444 if test -s conftest.err; then 5445 sed '10a\ 5446... rest of stderr output deleted ... 5447 10q' conftest.err >conftest.er1 5448 cat conftest.er1 >&5 5449 fi 5450 rm -f conftest.er1 conftest.err 5451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5452 test $ac_status = 0; } 5453done 5454 5455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5456printf %s "checking whether the compiler supports GNU C... " >&6; } 5457if test ${ac_cv_c_compiler_gnu+y} 5458then : 5459 printf %s "(cached) " >&6 5460else $as_nop 5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5462/* end confdefs.h. */ 5463 5464int 5465main (void) 5466{ 5467#ifndef __GNUC__ 5468 choke me 5469#endif 5470 5471 ; 5472 return 0; 5473} 5474_ACEOF 5475if ac_fn_c_try_compile "$LINENO" 5476then : 5477 ac_compiler_gnu=yes 5478else $as_nop 5479 ac_compiler_gnu=no 5480fi 5481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5482ac_cv_c_compiler_gnu=$ac_compiler_gnu 5483 5484fi 5485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5486printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5487ac_compiler_gnu=$ac_cv_c_compiler_gnu 5488 5489if test $ac_compiler_gnu = yes; then 5490 GCC=yes 5491else 5492 GCC= 5493fi 5494ac_test_CFLAGS=${CFLAGS+y} 5495ac_save_CFLAGS=$CFLAGS 5496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5497printf %s "checking whether $CC accepts -g... " >&6; } 5498if test ${ac_cv_prog_cc_g+y} 5499then : 5500 printf %s "(cached) " >&6 5501else $as_nop 5502 ac_save_c_werror_flag=$ac_c_werror_flag 5503 ac_c_werror_flag=yes 5504 ac_cv_prog_cc_g=no 5505 CFLAGS="-g" 5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5507/* end confdefs.h. */ 5508 5509int 5510main (void) 5511{ 5512 5513 ; 5514 return 0; 5515} 5516_ACEOF 5517if ac_fn_c_try_compile "$LINENO" 5518then : 5519 ac_cv_prog_cc_g=yes 5520else $as_nop 5521 CFLAGS="" 5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5523/* end confdefs.h. */ 5524 5525int 5526main (void) 5527{ 5528 5529 ; 5530 return 0; 5531} 5532_ACEOF 5533if ac_fn_c_try_compile "$LINENO" 5534then : 5535 5536else $as_nop 5537 ac_c_werror_flag=$ac_save_c_werror_flag 5538 CFLAGS="-g" 5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5540/* end confdefs.h. */ 5541 5542int 5543main (void) 5544{ 5545 5546 ; 5547 return 0; 5548} 5549_ACEOF 5550if ac_fn_c_try_compile "$LINENO" 5551then : 5552 ac_cv_prog_cc_g=yes 5553fi 5554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5555fi 5556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5557fi 5558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5559 ac_c_werror_flag=$ac_save_c_werror_flag 5560fi 5561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5562printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5563if test $ac_test_CFLAGS; then 5564 CFLAGS=$ac_save_CFLAGS 5565elif test $ac_cv_prog_cc_g = yes; then 5566 if test "$GCC" = yes; then 5567 CFLAGS="-g -O2" 5568 else 5569 CFLAGS="-g" 5570 fi 5571else 5572 if test "$GCC" = yes; then 5573 CFLAGS="-O2" 5574 else 5575 CFLAGS= 5576 fi 5577fi 5578ac_prog_cc_stdc=no 5579if test x$ac_prog_cc_stdc = xno 5580then : 5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5582printf %s "checking for $CC option to enable C11 features... " >&6; } 5583if test ${ac_cv_prog_cc_c11+y} 5584then : 5585 printf %s "(cached) " >&6 5586else $as_nop 5587 ac_cv_prog_cc_c11=no 5588ac_save_CC=$CC 5589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5590/* end confdefs.h. */ 5591$ac_c_conftest_c11_program 5592_ACEOF 5593for ac_arg in '' -std=gnu11 5594do 5595 CC="$ac_save_CC $ac_arg" 5596 if ac_fn_c_try_compile "$LINENO" 5597then : 5598 ac_cv_prog_cc_c11=$ac_arg 5599fi 5600rm -f core conftest.err conftest.$ac_objext conftest.beam 5601 test "x$ac_cv_prog_cc_c11" != "xno" && break 5602done 5603rm -f conftest.$ac_ext 5604CC=$ac_save_CC 5605fi 5606 5607if test "x$ac_cv_prog_cc_c11" = xno 5608then : 5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5610printf "%s\n" "unsupported" >&6; } 5611else $as_nop 5612 if test "x$ac_cv_prog_cc_c11" = x 5613then : 5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5615printf "%s\n" "none needed" >&6; } 5616else $as_nop 5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5618printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5619 CC="$CC $ac_cv_prog_cc_c11" 5620fi 5621 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5622 ac_prog_cc_stdc=c11 5623fi 5624fi 5625if test x$ac_prog_cc_stdc = xno 5626then : 5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5628printf %s "checking for $CC option to enable C99 features... " >&6; } 5629if test ${ac_cv_prog_cc_c99+y} 5630then : 5631 printf %s "(cached) " >&6 5632else $as_nop 5633 ac_cv_prog_cc_c99=no 5634ac_save_CC=$CC 5635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636/* end confdefs.h. */ 5637$ac_c_conftest_c99_program 5638_ACEOF 5639for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5640do 5641 CC="$ac_save_CC $ac_arg" 5642 if ac_fn_c_try_compile "$LINENO" 5643then : 5644 ac_cv_prog_cc_c99=$ac_arg 5645fi 5646rm -f core conftest.err conftest.$ac_objext conftest.beam 5647 test "x$ac_cv_prog_cc_c99" != "xno" && break 5648done 5649rm -f conftest.$ac_ext 5650CC=$ac_save_CC 5651fi 5652 5653if test "x$ac_cv_prog_cc_c99" = xno 5654then : 5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5656printf "%s\n" "unsupported" >&6; } 5657else $as_nop 5658 if test "x$ac_cv_prog_cc_c99" = x 5659then : 5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5661printf "%s\n" "none needed" >&6; } 5662else $as_nop 5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5664printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5665 CC="$CC $ac_cv_prog_cc_c99" 5666fi 5667 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5668 ac_prog_cc_stdc=c99 5669fi 5670fi 5671if test x$ac_prog_cc_stdc = xno 5672then : 5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5674printf %s "checking for $CC option to enable C89 features... " >&6; } 5675if test ${ac_cv_prog_cc_c89+y} 5676then : 5677 printf %s "(cached) " >&6 5678else $as_nop 5679 ac_cv_prog_cc_c89=no 5680ac_save_CC=$CC 5681cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5682/* end confdefs.h. */ 5683$ac_c_conftest_c89_program 5684_ACEOF 5685for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5686do 5687 CC="$ac_save_CC $ac_arg" 5688 if ac_fn_c_try_compile "$LINENO" 5689then : 5690 ac_cv_prog_cc_c89=$ac_arg 5691fi 5692rm -f core conftest.err conftest.$ac_objext conftest.beam 5693 test "x$ac_cv_prog_cc_c89" != "xno" && break 5694done 5695rm -f conftest.$ac_ext 5696CC=$ac_save_CC 5697fi 5698 5699if test "x$ac_cv_prog_cc_c89" = xno 5700then : 5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5702printf "%s\n" "unsupported" >&6; } 5703else $as_nop 5704 if test "x$ac_cv_prog_cc_c89" = x 5705then : 5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5707printf "%s\n" "none needed" >&6; } 5708else $as_nop 5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5710printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5711 CC="$CC $ac_cv_prog_cc_c89" 5712fi 5713 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5714 ac_prog_cc_stdc=c89 5715fi 5716fi 5717 5718ac_ext=c 5719ac_cpp='$CPP $CPPFLAGS' 5720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5722ac_compiler_gnu=$ac_cv_c_compiler_gnu 5723 5724 5725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5 5726printf %s "checking $CC dependency flag... " >&6; } 5727echo 'void f(void){}' >conftest.c 5728if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5729 DEPFLAG="-MM" 5730else 5731 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then 5732 DEPFLAG="-xM1" 5733 else 5734 DEPFLAG="-MM" # dunno do something 5735 fi 5736fi 5737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5 5738printf "%s\n" "$DEPFLAG" >&6; } 5739rm -f conftest.c 5740 5741 5742 5743 5744 5745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5 5746printf %s "checking whether $CC supports -Werror... " >&6; } 5747cache=`echo Werror | sed 'y%.=/+-%___p_%'` 5748if eval test \${cv_prog_cc_flag_$cache+y} 5749then : 5750 printf %s "(cached) " >&6 5751else $as_nop 5752 5753echo 'void f(void){}' >conftest.c 5754if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then 5755eval "cv_prog_cc_flag_$cache=yes" 5756else 5757eval "cv_prog_cc_flag_$cache=no" 5758fi 5759rm -f conftest conftest.o conftest.c 5760 5761fi 5762 5763if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5765printf "%s\n" "yes" >&6; } 5766: 5767ERRFLAG="-Werror" 5768else 5769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5770printf "%s\n" "no" >&6; } 5771: 5772ERRFLAG="-errwarn" 5773fi 5774 5775 5776 5777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 5778printf %s "checking whether $CC supports -Wall... " >&6; } 5779cache=`echo Wall | sed 'y%.=/+-%___p_%'` 5780if eval test \${cv_prog_cc_flag_$cache+y} 5781then : 5782 printf %s "(cached) " >&6 5783else $as_nop 5784 5785echo 'void f(void){}' >conftest.c 5786if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 5787eval "cv_prog_cc_flag_$cache=yes" 5788else 5789eval "cv_prog_cc_flag_$cache=no" 5790fi 5791rm -f conftest conftest.o conftest.c 5792 5793fi 5794 5795if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5797printf "%s\n" "yes" >&6; } 5798: 5799ERRFLAG="$ERRFLAG -Wall" 5800else 5801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5802printf "%s\n" "no" >&6; } 5803: 5804ERRFLAG="$ERRFLAG -errfmt" 5805fi 5806 5807 5808 5809 5810 5811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5 5812printf %s "checking whether $CC supports -std=c99... " >&6; } 5813cache=`echo std=c99 | sed 'y%.=/+-%___p_%'` 5814if eval test \${cv_prog_cc_flag_$cache+y} 5815then : 5816 printf %s "(cached) " >&6 5817else $as_nop 5818 5819echo 'void f(void){}' >conftest.c 5820if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then 5821eval "cv_prog_cc_flag_$cache=yes" 5822else 5823eval "cv_prog_cc_flag_$cache=no" 5824fi 5825rm -f conftest conftest.o conftest.c 5826 5827fi 5828 5829if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5831printf "%s\n" "yes" >&6; } 5832: 5833C99FLAG="-std=c99" 5834else 5835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5836printf "%s\n" "no" >&6; } 5837: 5838 5839fi 5840 5841 5842 5843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5 5844printf %s "checking whether $CC supports -xc99... " >&6; } 5845cache=`echo xc99 | sed 'y%.=/+-%___p_%'` 5846if eval test \${cv_prog_cc_flag_$cache+y} 5847then : 5848 printf %s "(cached) " >&6 5849else $as_nop 5850 5851echo 'void f(void){}' >conftest.c 5852if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then 5853eval "cv_prog_cc_flag_$cache=yes" 5854else 5855eval "cv_prog_cc_flag_$cache=no" 5856fi 5857rm -f conftest conftest.o conftest.c 5858 5859fi 5860 5861if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 5862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5863printf "%s\n" "yes" >&6; } 5864: 5865C99FLAG="-xc99" 5866else 5867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5868printf "%s\n" "no" >&6; } 5869: 5870 5871fi 5872 5873 5874ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default 5875" 5876if test "x$ac_cv_header_getopt_h" = xyes 5877then : 5878 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 5879 5880fi 5881ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default 5882" 5883if test "x$ac_cv_header_time_h" = xyes 5884then : 5885 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 5886 5887fi 5888 5889 5890 5891 5892 5893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5 5894printf %s "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; } 5895cache=`printf "%s\n" "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh` 5896if eval test \${cv_prog_cc_flag_needed_$cache+y} 5897then : 5898 printf %s "(cached) " >&6 5899else $as_nop 5900 5901echo ' 5902#include "confdefs.h" 5903#include <stdlib.h> 5904#include <ctype.h> 5905#include <sys/time.h> 5906#ifdef HAVE_TIME_H 5907#include <time.h> 5908#endif 5909#include <unistd.h> 5910#include <netdb.h> 5911#ifdef HAVE_GETOPT_H 5912#include <getopt.h> 5913#endif 5914 5915int test(void) { 5916 int a; 5917 char **opts = NULL; 5918 struct timeval tv; 5919 char *t; 5920 time_t time = 0; 5921 char *buf = NULL; 5922 const char* str = NULL; 5923 struct msghdr msg; 5924 msg.msg_control = 0; 5925 t = ctime_r(&time, buf); 5926 tv.tv_usec = 10; 5927 srandom(32); 5928 a = getopt(2, opts, "a"); 5929 a = isascii(32); 5930 str = gai_strerror(0); 5931 if(str && t && tv.tv_usec && msg.msg_control) 5932 a = 0; 5933 return a; 5934} 5935' > conftest.c 5936echo 'void f(void){}' >>conftest.c 5937if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 5938eval "cv_prog_cc_flag_needed_$cache=no" 5939else 5940 5941if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 5942eval "cv_prog_cc_flag_needed_$cache=yes" 5943else 5944eval "cv_prog_cc_flag_needed_$cache=fail" 5945#echo 'Test with flag fails too!' 5946#cat conftest.c 5947#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5948#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5949#exit 1 5950fi 5951 5952fi 5953rm -f conftest conftest.c conftest.o 5954 5955fi 5956 5957if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 5958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5959printf "%s\n" "yes" >&6; } 5960: 5961CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" 5962else 5963if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 5964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5965printf "%s\n" "no" >&6; } 5966#echo 'Test with flag is no!' 5967#cat conftest.c 5968#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 5969#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 5970#exit 1 5971: 5972 5973else 5974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5975printf "%s\n" "failed" >&6; } 5976: 5977 5978fi 5979fi 5980 5981 5982 5983 5984 5985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5 5986printf %s "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; } 5987cache=`printf "%s\n" "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh` 5988if eval test \${cv_prog_cc_flag_needed_$cache+y} 5989then : 5990 printf %s "(cached) " >&6 5991else $as_nop 5992 5993echo ' 5994#include "confdefs.h" 5995#include <stdlib.h> 5996#include <ctype.h> 5997#include <sys/time.h> 5998#ifdef HAVE_TIME_H 5999#include <time.h> 6000#endif 6001#include <unistd.h> 6002#include <netdb.h> 6003#ifdef HAVE_GETOPT_H 6004#include <getopt.h> 6005#endif 6006 6007int test(void) { 6008 int a; 6009 char **opts = NULL; 6010 struct timeval tv; 6011 char *t; 6012 time_t time = 0; 6013 char *buf = NULL; 6014 const char* str = NULL; 6015 struct msghdr msg; 6016 msg.msg_control = 0; 6017 t = ctime_r(&time, buf); 6018 tv.tv_usec = 10; 6019 srandom(32); 6020 a = getopt(2, opts, "a"); 6021 a = isascii(32); 6022 str = gai_strerror(0); 6023 if(str && t && tv.tv_usec && msg.msg_control) 6024 a = 0; 6025 return a; 6026} 6027' > conftest.c 6028echo 'void f(void){}' >>conftest.c 6029if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6030eval "cv_prog_cc_flag_needed_$cache=no" 6031else 6032 6033if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 6034eval "cv_prog_cc_flag_needed_$cache=yes" 6035else 6036eval "cv_prog_cc_flag_needed_$cache=fail" 6037#echo 'Test with flag fails too!' 6038#cat conftest.c 6039#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 6040#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 6041#exit 1 6042fi 6043 6044fi 6045rm -f conftest conftest.c conftest.o 6046 6047fi 6048 6049if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6051printf "%s\n" "yes" >&6; } 6052: 6053CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" 6054else 6055if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6057printf "%s\n" "no" >&6; } 6058#echo 'Test with flag is no!' 6059#cat conftest.c 6060#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1" 6061#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1` 6062#exit 1 6063: 6064 6065else 6066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6067printf "%s\n" "failed" >&6; } 6068: 6069 6070fi 6071fi 6072 6073 6074 6075 6076 6077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5 6078printf %s "checking whether we need $C99FLAG as a flag for $CC... " >&6; } 6079cache=`printf "%s\n" "$C99FLAG" | $as_tr_sh` 6080if eval test \${cv_prog_cc_flag_needed_$cache+y} 6081then : 6082 printf %s "(cached) " >&6 6083else $as_nop 6084 6085echo ' 6086#include <stdbool.h> 6087#include <ctype.h> 6088int test(void) { 6089 int a = 0; 6090 return a; 6091} 6092' > conftest.c 6093echo 'void f(void){}' >>conftest.c 6094if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6095eval "cv_prog_cc_flag_needed_$cache=no" 6096else 6097 6098if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then 6099eval "cv_prog_cc_flag_needed_$cache=yes" 6100else 6101eval "cv_prog_cc_flag_needed_$cache=fail" 6102#echo 'Test with flag fails too!' 6103#cat conftest.c 6104#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 6105#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 6106#exit 1 6107fi 6108 6109fi 6110rm -f conftest conftest.c conftest.o 6111 6112fi 6113 6114if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6116printf "%s\n" "yes" >&6; } 6117: 6118CFLAGS="$CFLAGS $C99FLAG" 6119else 6120if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6122printf "%s\n" "no" >&6; } 6123#echo 'Test with flag is no!' 6124#cat conftest.c 6125#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1" 6126#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1` 6127#exit 1 6128: 6129 6130else 6131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6132printf "%s\n" "failed" >&6; } 6133: 6134 6135fi 6136fi 6137 6138 6139 6140 6141 6142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5 6143printf %s "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; } 6144cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE 6145if eval test \${cv_prog_cc_flag_needed_$cache+y} 6146then : 6147 printf %s "(cached) " >&6 6148else $as_nop 6149 6150echo ' 6151#include <ctype.h> 6152 6153int test(void) { 6154 int a; 6155 a = isascii(32); 6156 return a; 6157} 6158' > conftest.c 6159echo 'void f(void){}' >>conftest.c 6160if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6161eval "cv_prog_cc_flag_needed_$cache=no" 6162else 6163 6164if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 6165eval "cv_prog_cc_flag_needed_$cache=yes" 6166else 6167eval "cv_prog_cc_flag_needed_$cache=fail" 6168#echo 'Test with flag fails too!' 6169#cat conftest.c 6170#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 6171#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 6172#exit 1 6173fi 6174 6175fi 6176rm -f conftest conftest.c conftest.o 6177 6178fi 6179 6180if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6182printf "%s\n" "yes" >&6; } 6183: 6184CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE" 6185else 6186if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6188printf "%s\n" "no" >&6; } 6189#echo 'Test with flag is no!' 6190#cat conftest.c 6191#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1" 6192#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1` 6193#exit 1 6194: 6195 6196else 6197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6198printf "%s\n" "failed" >&6; } 6199: 6200 6201fi 6202fi 6203 6204 6205 6206 6207 6208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5 6209printf %s "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; } 6210cache=_D_GNU_SOURCE 6211if eval test \${cv_prog_cc_flag_needed_$cache+y} 6212then : 6213 printf %s "(cached) " >&6 6214else $as_nop 6215 6216echo ' 6217#include <netinet/in.h> 6218 6219int test(void) { 6220 struct in6_pktinfo inf; 6221 int a = (int)sizeof(inf); 6222 return a; 6223} 6224' > conftest.c 6225echo 'void f(void){}' >>conftest.c 6226if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6227eval "cv_prog_cc_flag_needed_$cache=no" 6228else 6229 6230if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then 6231eval "cv_prog_cc_flag_needed_$cache=yes" 6232else 6233eval "cv_prog_cc_flag_needed_$cache=fail" 6234#echo 'Test with flag fails too!' 6235#cat conftest.c 6236#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 6237#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 6238#exit 1 6239fi 6240 6241fi 6242rm -f conftest conftest.c conftest.o 6243 6244fi 6245 6246if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6248printf "%s\n" "yes" >&6; } 6249: 6250CFLAGS="$CFLAGS -D_GNU_SOURCE" 6251else 6252if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6254printf "%s\n" "no" >&6; } 6255#echo 'Test with flag is no!' 6256#cat conftest.c 6257#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1" 6258#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1` 6259#exit 1 6260: 6261 6262else 6263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6264printf "%s\n" "failed" >&6; } 6265: 6266 6267fi 6268fi 6269 6270 6271# check again for GNU_SOURCE for setresgid. May fail if setresgid 6272# is not available at all. -D_FRSRESGID is to make this check unique. 6273# otherwise we would get the previous cached result. 6274 6275 6276 6277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5 6278printf %s "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; } 6279cache=_D_GNU_SOURCE__D_FRSRESGID 6280if eval test \${cv_prog_cc_flag_needed_$cache+y} 6281then : 6282 printf %s "(cached) " >&6 6283else $as_nop 6284 6285echo ' 6286#include <unistd.h> 6287 6288int test(void) { 6289 int a = setresgid(0,0,0); 6290 a = setresuid(0,0,0); 6291 return a; 6292} 6293' > conftest.c 6294echo 'void f(void){}' >>conftest.c 6295if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6296eval "cv_prog_cc_flag_needed_$cache=no" 6297else 6298 6299if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then 6300eval "cv_prog_cc_flag_needed_$cache=yes" 6301else 6302eval "cv_prog_cc_flag_needed_$cache=fail" 6303#echo 'Test with flag fails too!' 6304#cat conftest.c 6305#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 6306#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 6307#exit 1 6308fi 6309 6310fi 6311rm -f conftest conftest.c conftest.o 6312 6313fi 6314 6315if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6317printf "%s\n" "yes" >&6; } 6318: 6319CFLAGS="$CFLAGS -D_GNU_SOURCE" 6320else 6321if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6323printf "%s\n" "no" >&6; } 6324#echo 'Test with flag is no!' 6325#cat conftest.c 6326#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1" 6327#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1` 6328#exit 1 6329: 6330 6331else 6332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6333printf "%s\n" "failed" >&6; } 6334: 6335 6336fi 6337fi 6338 6339 6340 6341 6342 6343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 6344printf %s "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; } 6345cache=_D_POSIX_C_SOURCE_200112 6346if eval test \${cv_prog_cc_flag_needed_$cache+y} 6347then : 6348 printf %s "(cached) " >&6 6349else $as_nop 6350 6351echo ' 6352#include "confdefs.h" 6353#ifdef HAVE_TIME_H 6354#include <time.h> 6355#endif 6356#include <netdb.h> 6357 6358int test(void) { 6359 int a = 0; 6360 char *t; 6361 time_t time = 0; 6362 char *buf = NULL; 6363 const char* str = NULL; 6364 t = ctime_r(&time, buf); 6365 str = gai_strerror(0); 6366 if(t && str) 6367 a = 0; 6368 return a; 6369} 6370' > conftest.c 6371echo 'void f(void){}' >>conftest.c 6372if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6373eval "cv_prog_cc_flag_needed_$cache=no" 6374else 6375 6376if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then 6377eval "cv_prog_cc_flag_needed_$cache=yes" 6378else 6379eval "cv_prog_cc_flag_needed_$cache=fail" 6380#echo 'Test with flag fails too!' 6381#cat conftest.c 6382#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 6383#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 6384#exit 1 6385fi 6386 6387fi 6388rm -f conftest conftest.c conftest.o 6389 6390fi 6391 6392if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6394printf "%s\n" "yes" >&6; } 6395: 6396CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112" 6397else 6398if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6400printf "%s\n" "no" >&6; } 6401#echo 'Test with flag is no!' 6402#cat conftest.c 6403#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1" 6404#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1` 6405#exit 1 6406: 6407 6408else 6409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6410printf "%s\n" "failed" >&6; } 6411: 6412 6413fi 6414fi 6415 6416 6417 6418 6419 6420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5 6421printf %s "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; } 6422cache=_D__EXTENSIONS__ 6423if eval test \${cv_prog_cc_flag_needed_$cache+y} 6424then : 6425 printf %s "(cached) " >&6 6426else $as_nop 6427 6428echo ' 6429#include "confdefs.h" 6430#include <stdlib.h> 6431#include <ctype.h> 6432#include <sys/time.h> 6433#ifdef HAVE_TIME_H 6434#include <time.h> 6435#endif 6436#include <unistd.h> 6437#ifdef HAVE_GETOPT_H 6438#include <getopt.h> 6439#endif 6440 6441int test(void) { 6442 int a; 6443 char **opts = NULL; 6444 struct timeval tv; 6445 tv.tv_usec = 10; 6446 srandom(32); 6447 a = getopt(2, opts, "a"); 6448 a = isascii(32); 6449 if(tv.tv_usec) 6450 a = 0; 6451 return a; 6452} 6453' > conftest.c 6454echo 'void f(void){}' >>conftest.c 6455if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 6456eval "cv_prog_cc_flag_needed_$cache=no" 6457else 6458 6459if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then 6460eval "cv_prog_cc_flag_needed_$cache=yes" 6461else 6462eval "cv_prog_cc_flag_needed_$cache=fail" 6463#echo 'Test with flag fails too!' 6464#cat conftest.c 6465#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 6466#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 6467#exit 1 6468fi 6469 6470fi 6471rm -f conftest conftest.c conftest.o 6472 6473fi 6474 6475if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 6476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6477printf "%s\n" "yes" >&6; } 6478: 6479CFLAGS="$CFLAGS -D__EXTENSIONS__" 6480else 6481if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 6482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6483printf "%s\n" "no" >&6; } 6484#echo 'Test with flag is no!' 6485#cat conftest.c 6486#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1" 6487#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1` 6488#exit 1 6489: 6490 6491else 6492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6493printf "%s\n" "failed" >&6; } 6494: 6495 6496fi 6497fi 6498 6499 6500 6501 6502# debug mode flags warnings 6503# Check whether --enable-checking was given. 6504if test ${enable_checking+y} 6505then : 6506 enableval=$enable_checking; 6507fi 6508 6509# Check whether --enable-debug was given. 6510if test ${enable_debug+y} 6511then : 6512 enableval=$enable_debug; 6513fi 6514 6515if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; 6516else debug_enabled="$enable_checking"; fi 6517 6518case "$debug_enabled" in 6519 yes) 6520 6521 6522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5 6523printf %s "checking whether $CC supports -W... " >&6; } 6524cache=`echo W | sed 'y%.=/+-%___p_%'` 6525if eval test \${cv_prog_cc_flag_$cache+y} 6526then : 6527 printf %s "(cached) " >&6 6528else $as_nop 6529 6530echo 'void f(void){}' >conftest.c 6531if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then 6532eval "cv_prog_cc_flag_$cache=yes" 6533else 6534eval "cv_prog_cc_flag_$cache=no" 6535fi 6536rm -f conftest conftest.o conftest.c 6537 6538fi 6539 6540if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6542printf "%s\n" "yes" >&6; } 6543: 6544CFLAGS="$CFLAGS -W" 6545else 6546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6547printf "%s\n" "no" >&6; } 6548: 6549 6550fi 6551 6552 6553 6554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5 6555printf %s "checking whether $CC supports -Wall... " >&6; } 6556cache=`echo Wall | sed 'y%.=/+-%___p_%'` 6557if eval test \${cv_prog_cc_flag_$cache+y} 6558then : 6559 printf %s "(cached) " >&6 6560else $as_nop 6561 6562echo 'void f(void){}' >conftest.c 6563if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then 6564eval "cv_prog_cc_flag_$cache=yes" 6565else 6566eval "cv_prog_cc_flag_$cache=no" 6567fi 6568rm -f conftest conftest.o conftest.c 6569 6570fi 6571 6572if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6574printf "%s\n" "yes" >&6; } 6575: 6576CFLAGS="$CFLAGS -Wall" 6577else 6578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6579printf "%s\n" "no" >&6; } 6580: 6581 6582fi 6583 6584 6585 6586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5 6587printf %s "checking whether $CC supports -Wextra... " >&6; } 6588cache=`echo Wextra | sed 'y%.=/+-%___p_%'` 6589if eval test \${cv_prog_cc_flag_$cache+y} 6590then : 6591 printf %s "(cached) " >&6 6592else $as_nop 6593 6594echo 'void f(void){}' >conftest.c 6595if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then 6596eval "cv_prog_cc_flag_$cache=yes" 6597else 6598eval "cv_prog_cc_flag_$cache=no" 6599fi 6600rm -f conftest conftest.o conftest.c 6601 6602fi 6603 6604if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6606printf "%s\n" "yes" >&6; } 6607: 6608CFLAGS="$CFLAGS -Wextra" 6609else 6610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6611printf "%s\n" "no" >&6; } 6612: 6613 6614fi 6615 6616 6617 6618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5 6619printf %s "checking whether $CC supports -Wdeclaration-after-statement... " >&6; } 6620cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'` 6621if eval test \${cv_prog_cc_flag_$cache+y} 6622then : 6623 printf %s "(cached) " >&6 6624else $as_nop 6625 6626echo 'void f(void){}' >conftest.c 6627if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then 6628eval "cv_prog_cc_flag_$cache=yes" 6629else 6630eval "cv_prog_cc_flag_$cache=no" 6631fi 6632rm -f conftest conftest.o conftest.c 6633 6634fi 6635 6636if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 6637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6638printf "%s\n" "yes" >&6; } 6639: 6640CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6641else 6642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6643printf "%s\n" "no" >&6; } 6644: 6645 6646fi 6647 6648 6649printf "%s\n" "#define UNBOUND_DEBUG /**/" >>confdefs.h 6650 6651 ;; 6652 no|*) 6653 # nothing to do. 6654 ;; 6655esac 6656if test "$default_cflags" = "yes"; then 6657 # only when CFLAGS was "" at the start, if the users wants to 6658 # override we shouldn't add default cflags, because they wouldn't 6659 # be able to turn off these options and set the CFLAGS wanted. 6660 6661 # Check whether --enable-flto was given. 6662if test ${enable_flto+y} 6663then : 6664 enableval=$enable_flto; 6665fi 6666 6667 if test "x$enable_flto" != "xno" 6668then : 6669 6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5 6671printf %s "checking if $CC supports -flto... " >&6; } 6672 BAKCFLAGS="$CFLAGS" 6673 CFLAGS="$CFLAGS -flto" 6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6675/* end confdefs.h. */ 6676 6677int 6678main (void) 6679{ 6680 6681 ; 6682 return 0; 6683} 6684_ACEOF 6685if ac_fn_c_try_link "$LINENO" 6686then : 6687 6688 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then 6689 CFLAGS="$BAKCFLAGS" 6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6691printf "%s\n" "no" >&6; } 6692 else 6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6694printf "%s\n" "yes" >&6; } 6695 fi 6696 rm -f conftest conftest.c conftest.o 6697 6698else $as_nop 6699 CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6700printf "%s\n" "no" >&6; } 6701fi 6702rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6703 conftest$ac_exeext conftest.$ac_ext 6704 6705fi 6706 6707 6708 # Check whether --enable-pie was given. 6709if test ${enable_pie+y} 6710then : 6711 enableval=$enable_pie; 6712fi 6713 6714 if test "x$enable_pie" = "xyes" 6715then : 6716 6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5 6718printf %s "checking if $CC supports PIE... " >&6; } 6719 BAKLDFLAGS="$LDFLAGS" 6720 BAKCFLAGS="$CFLAGS" 6721 LDFLAGS="$LDFLAGS -pie" 6722 CFLAGS="$CFLAGS -fPIE" 6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6724/* end confdefs.h. */ 6725 6726int 6727main (void) 6728{ 6729 6730 ; 6731 return 0; 6732} 6733_ACEOF 6734if ac_fn_c_try_link "$LINENO" 6735then : 6736 6737 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6738 LDFLAGS="$BAKLDFLAGS" 6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6740printf "%s\n" "no" >&6; } 6741 else 6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6743printf "%s\n" "yes" >&6; } 6744 fi 6745 rm -f conftest conftest.c conftest.o 6746 6747else $as_nop 6748 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6749printf "%s\n" "no" >&6; } 6750fi 6751rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6752 conftest$ac_exeext conftest.$ac_ext 6753 6754fi 6755 6756 6757 # Check whether --enable-relro_now was given. 6758if test ${enable_relro_now+y} 6759then : 6760 enableval=$enable_relro_now; 6761fi 6762 6763 if test "x$enable_relro_now" = "xyes" 6764then : 6765 6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5 6767printf %s "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; } 6768 BAKLDFLAGS="$LDFLAGS" 6769 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now" 6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6771/* end confdefs.h. */ 6772 6773int 6774main (void) 6775{ 6776 6777 ; 6778 return 0; 6779} 6780_ACEOF 6781if ac_fn_c_try_link "$LINENO" 6782then : 6783 6784 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then 6785 LDFLAGS="$BAKLDFLAGS" 6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6787printf "%s\n" "no" >&6; } 6788 else 6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6790printf "%s\n" "yes" >&6; } 6791 fi 6792 rm -f conftest conftest.c conftest.o 6793 6794else $as_nop 6795 LDFLAGS="$BAKLDFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6796printf "%s\n" "no" >&6; } 6797fi 6798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6799 conftest$ac_exeext conftest.$ac_ext 6800 6801fi 6802 6803fi 6804 6805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6806printf %s "checking for inline... " >&6; } 6807if test ${ac_cv_c_inline+y} 6808then : 6809 printf %s "(cached) " >&6 6810else $as_nop 6811 ac_cv_c_inline=no 6812for ac_kw in inline __inline__ __inline; do 6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6814/* end confdefs.h. */ 6815#ifndef __cplusplus 6816typedef int foo_t; 6817static $ac_kw foo_t static_foo (void) {return 0; } 6818$ac_kw foo_t foo (void) {return 0; } 6819#endif 6820 6821_ACEOF 6822if ac_fn_c_try_compile "$LINENO" 6823then : 6824 ac_cv_c_inline=$ac_kw 6825fi 6826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6827 test "$ac_cv_c_inline" != no && break 6828done 6829 6830fi 6831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6832printf "%s\n" "$ac_cv_c_inline" >&6; } 6833 6834case $ac_cv_c_inline in 6835 inline | yes) ;; 6836 *) 6837 case $ac_cv_c_inline in 6838 no) ac_val=;; 6839 *) ac_val=$ac_cv_c_inline;; 6840 esac 6841 cat >>confdefs.h <<_ACEOF 6842#ifndef __cplusplus 6843#define inline $ac_val 6844#endif 6845_ACEOF 6846 ;; 6847esac 6848 6849 6850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5 6851printf %s "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; } 6852if test ${ac_cv_c_format_attribute+y} 6853then : 6854 printf %s "(cached) " >&6 6855else $as_nop 6856 ac_cv_c_format_attribute=no 6857cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6858/* end confdefs.h. */ 6859#include <stdio.h> 6860void f (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6861void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2))); 6862 6863int 6864main (void) 6865{ 6866 6867 f ("%s", "str"); 6868 6869 ; 6870 return 0; 6871} 6872_ACEOF 6873if ac_fn_c_try_compile "$LINENO" 6874then : 6875 ac_cv_c_format_attribute="yes" 6876else $as_nop 6877 ac_cv_c_format_attribute="no" 6878fi 6879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6880 6881fi 6882 6883 6884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5 6885printf "%s\n" "$ac_cv_c_format_attribute" >&6; } 6886if test $ac_cv_c_format_attribute = yes; then 6887 6888printf "%s\n" "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 6889 6890fi 6891 6892 6893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5 6894printf %s "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; } 6895if test ${ac_cv_c_unused_attribute+y} 6896then : 6897 printf %s "(cached) " >&6 6898else $as_nop 6899 ac_cv_c_unused_attribute=no 6900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6901/* end confdefs.h. */ 6902#include <stdio.h> 6903void f (char *u __attribute__((unused))); 6904 6905int 6906main (void) 6907{ 6908 6909 f ("x"); 6910 6911 ; 6912 return 0; 6913} 6914_ACEOF 6915if ac_fn_c_try_compile "$LINENO" 6916then : 6917 ac_cv_c_unused_attribute="yes" 6918else $as_nop 6919 ac_cv_c_unused_attribute="no" 6920fi 6921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6922 6923fi 6924 6925 6926 6927 6928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5 6929printf "%s\n" "$ac_cv_c_unused_attribute" >&6; } 6930if test $ac_cv_c_unused_attribute = yes; then 6931 6932printf "%s\n" "#define HAVE_ATTR_UNUSED 1" >>confdefs.h 6933 6934fi 6935 6936 6937 6938 6939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5 6940printf %s "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; } 6941if test ${ac_cv_c_weak_attribute+y} 6942then : 6943 printf %s "(cached) " >&6 6944else $as_nop 6945 ac_cv_c_weak_attribute=no 6946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6947/* end confdefs.h. */ 6948 #include <stdio.h> 6949__attribute__((weak)) void f(int x) { printf("%d", x); } 6950 6951int 6952main (void) 6953{ 6954 6955 f(1); 6956 6957 ; 6958 return 0; 6959} 6960_ACEOF 6961if ac_fn_c_try_compile "$LINENO" 6962then : 6963 ac_cv_c_weak_attribute="yes" 6964else $as_nop 6965 ac_cv_c_weak_attribute="no" 6966fi 6967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6968 6969fi 6970 6971 6972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5 6973printf "%s\n" "$ac_cv_c_weak_attribute" >&6; } 6974if test $ac_cv_c_weak_attribute = yes; then 6975 6976printf "%s\n" "#define HAVE_ATTR_WEAK 1" >>confdefs.h 6977 6978 6979printf "%s\n" "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h 6980 6981else 6982 6983printf "%s\n" "#define ATTR_WEAK /**/" >>confdefs.h 6984 6985fi 6986 6987 6988 6989 6990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5 6991printf %s "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; } 6992if test ${ac_cv_c_noreturn_attribute+y} 6993then : 6994 printf %s "(cached) " >&6 6995else $as_nop 6996 ac_cv_c_noreturn_attribute=no 6997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6998/* end confdefs.h. */ 6999 #include <stdio.h> 7000__attribute__((noreturn)) void f(int x) { printf("%d", x); } 7001 7002int 7003main (void) 7004{ 7005 7006 f(1); 7007 7008 ; 7009 return 0; 7010} 7011_ACEOF 7012if ac_fn_c_try_compile "$LINENO" 7013then : 7014 ac_cv_c_noreturn_attribute="yes" 7015else $as_nop 7016 ac_cv_c_noreturn_attribute="no" 7017fi 7018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7019 7020fi 7021 7022 7023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5 7024printf "%s\n" "$ac_cv_c_noreturn_attribute" >&6; } 7025if test $ac_cv_c_noreturn_attribute = yes; then 7026 7027printf "%s\n" "#define HAVE_ATTR_NORETURN 1" >>confdefs.h 7028 7029 7030printf "%s\n" "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h 7031 7032else 7033 7034printf "%s\n" "#define ATTR_NORETURN /**/" >>confdefs.h 7035 7036fi 7037 7038 7039 7040 7041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"fallthrough\" attribute" >&5 7042printf %s "checking whether the C compiler (${CC-cc}) accepts the \"fallthrough\" attribute... " >&6; } 7043BAKCFLAGS="$CFLAGS" 7044CFLAGS="$CFLAGS -Werror" 7045if test ${ac_cv_c_fallthrough_attribute+y} 7046then : 7047 printf %s "(cached) " >&6 7048else $as_nop 7049 ac_cv_c_fallthrough_attribute=no 7050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7051/* end confdefs.h. */ 7052 #include <stdio.h> 7053void f(int x) { 7054 int y = 0; 7055 switch(x) { 7056 case 1: 7057 y = 1; 7058 __attribute__((fallthrough)); 7059 /* fallthrough */ 7060 case 2: 7061 y++; 7062 break; 7063 case 3: 7064 y = 3; 7065 break; 7066 } 7067 printf("%d", y); 7068} 7069 7070int 7071main (void) 7072{ 7073 7074 f(1); 7075 7076 ; 7077 return 0; 7078} 7079_ACEOF 7080if ac_fn_c_try_compile "$LINENO" 7081then : 7082 ac_cv_c_fallthrough_attribute="yes" 7083else $as_nop 7084 ac_cv_c_fallthrough_attribute="no" 7085fi 7086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7087 7088fi 7089 7090CFLAGS="$BAKCFLAGS" 7091 7092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fallthrough_attribute" >&5 7093printf "%s\n" "$ac_cv_c_fallthrough_attribute" >&6; } 7094if test $ac_cv_c_fallthrough_attribute = yes; then 7095 7096printf "%s\n" "#define HAVE_ATTR_FALLTHROUGH 1" >>confdefs.h 7097 7098 7099printf "%s\n" "#define ATTR_FALLTHROUGH __attribute__((fallthrough));" >>confdefs.h 7100 7101else 7102 7103printf "%s\n" "#define ATTR_FALLTHROUGH /**/" >>confdefs.h 7104 7105fi 7106 7107 7108if test "$srcdir" != "."; then 7109 CPPFLAGS="$CPPFLAGS -I$srcdir" 7110fi 7111 7112 7113 7114 7115 7116for ac_prog in flex lex 7117do 7118 # Extract the first word of "$ac_prog", so it can be a program name with args. 7119set dummy $ac_prog; ac_word=$2 7120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7121printf %s "checking for $ac_word... " >&6; } 7122if test ${ac_cv_prog_LEX+y} 7123then : 7124 printf %s "(cached) " >&6 7125else $as_nop 7126 if test -n "$LEX"; then 7127 ac_cv_prog_LEX="$LEX" # Let the user override the test. 7128else 7129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7130for as_dir in $PATH 7131do 7132 IFS=$as_save_IFS 7133 case $as_dir in #((( 7134 '') as_dir=./ ;; 7135 */) ;; 7136 *) as_dir=$as_dir/ ;; 7137 esac 7138 for ac_exec_ext in '' $ac_executable_extensions; do 7139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7140 ac_cv_prog_LEX="$ac_prog" 7141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7142 break 2 7143 fi 7144done 7145 done 7146IFS=$as_save_IFS 7147 7148fi 7149fi 7150LEX=$ac_cv_prog_LEX 7151if test -n "$LEX"; then 7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 7153printf "%s\n" "$LEX" >&6; } 7154else 7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7156printf "%s\n" "no" >&6; } 7157fi 7158 7159 7160 test -n "$LEX" && break 7161done 7162test -n "$LEX" || LEX=":" 7163 7164 if test "x$LEX" != "x:"; then 7165 cat >conftest.l <<_ACEOF 7166%{ 7167#ifdef __cplusplus 7168extern "C" 7169#endif 7170int yywrap(void); 7171%} 7172%% 7173a { ECHO; } 7174b { REJECT; } 7175c { yymore (); } 7176d { yyless (1); } 7177e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 7178#ifdef __cplusplus 7179 yyless ((yyinput () != 0)); 7180#else 7181 yyless ((input () != 0)); 7182#endif 7183 } 7184f { unput (yytext[0]); } 7185. { BEGIN INITIAL; } 7186%% 7187#ifdef YYTEXT_POINTER 7188extern char *yytext; 7189#endif 7190int 7191yywrap (void) 7192{ 7193 return 1; 7194} 7195int 7196main (void) 7197{ 7198 return ! yylex (); 7199} 7200_ACEOF 7201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 7202printf %s "checking for lex output file root... " >&6; } 7203if test ${ac_cv_prog_lex_root+y} 7204then : 7205 printf %s "(cached) " >&6 7206else $as_nop 7207 7208ac_cv_prog_lex_root=unknown 7209{ { ac_try="$LEX conftest.l" 7210case "(($ac_try" in 7211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7212 *) ac_try_echo=$ac_try;; 7213esac 7214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7215printf "%s\n" "$ac_try_echo"; } >&5 7216 (eval "$LEX conftest.l") 2>&5 7217 ac_status=$? 7218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7219 test $ac_status = 0; } && 7220if test -f lex.yy.c; then 7221 ac_cv_prog_lex_root=lex.yy 7222elif test -f lexyy.c; then 7223 ac_cv_prog_lex_root=lexyy 7224fi 7225fi 7226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 7227printf "%s\n" "$ac_cv_prog_lex_root" >&6; } 7228if test "$ac_cv_prog_lex_root" = unknown 7229then : 7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 7231printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} 7232 LEX=: LEXLIB= 7233fi 7234LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 7235 7236if test ${LEXLIB+y} 7237then : 7238 7239else $as_nop 7240 7241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 7242printf %s "checking for lex library... " >&6; } 7243if test ${ac_cv_lib_lex+y} 7244then : 7245 printf %s "(cached) " >&6 7246else $as_nop 7247 7248 ac_save_LIBS="$LIBS" 7249 ac_found=false 7250 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do 7251 case $ac_cv_lib_lex in #( 7252 'none needed') : 7253 ;; #( 7254 'not found') : 7255 break ;; #( 7256 *) : 7257 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( 7258 *) : 7259 ;; 7260esac 7261 7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7263/* end confdefs.h. */ 7264`cat $LEX_OUTPUT_ROOT.c` 7265_ACEOF 7266if ac_fn_c_try_link "$LINENO" 7267then : 7268 ac_found=: 7269fi 7270rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7271 conftest$ac_exeext conftest.$ac_ext 7272 if $ac_found; then 7273 break 7274 fi 7275 done 7276 LIBS="$ac_save_LIBS" 7277 7278fi 7279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 7280printf "%s\n" "$ac_cv_lib_lex" >&6; } 7281 if test "$ac_cv_lib_lex" = 'not found' 7282then : 7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 7284printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} 7285 LEX=: LEXLIB= 7286elif test "$ac_cv_lib_lex" = 'none needed' 7287then : 7288 LEXLIB='' 7289else $as_nop 7290 LEXLIB=$ac_cv_lib_lex 7291fi 7292 7293fi 7294 7295 7296if test "$LEX" != : 7297then : 7298 7299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 7300printf %s "checking whether yytext is a pointer... " >&6; } 7301if test ${ac_cv_prog_lex_yytext_pointer+y} 7302then : 7303 printf %s "(cached) " >&6 7304else $as_nop 7305 # POSIX says lex can declare yytext either as a pointer or an array; the 7306# default is implementation-dependent. Figure out which it is, since 7307# not all implementations provide the %pointer and %array declarations. 7308ac_cv_prog_lex_yytext_pointer=no 7309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7310/* end confdefs.h. */ 7311 7312 #define YYTEXT_POINTER 1 7313`cat $LEX_OUTPUT_ROOT.c` 7314_ACEOF 7315if ac_fn_c_try_compile "$LINENO" 7316then : 7317 ac_cv_prog_lex_yytext_pointer=yes 7318fi 7319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7320 7321fi 7322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 7323printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } 7324if test $ac_cv_prog_lex_yytext_pointer = yes; then 7325 7326printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h 7327 7328fi 7329 7330fi 7331rm -f conftest.l $LEX_OUTPUT_ROOT.c 7332 7333fi 7334if test "$LEX" != "" -a "$LEX" != ":"; then 7335 7336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5 7337printf %s "checking for yylex_destroy... " >&6; } 7338 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then 7339 7340printf "%s\n" "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h 7341 7342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7343printf "%s\n" "yes" >&6; } 7344 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7345printf "%s\n" "no" >&6; }; 7346 LEX=":" 7347 fi 7348 7349fi 7350if test "$LEX" != "" -a "$LEX" != ":"; then 7351 7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5 7353printf %s "checking for lex %option... " >&6; } 7354 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then 7355%option nounput 7356%% 7357EOF 7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7359printf "%s\n" "yes" >&6; } 7360 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7361printf "%s\n" "no" >&6; }; 7362 LEX=":" 7363 fi 7364 7365fi 7366if test "$LEX" = "" -o "$LEX" = ":"; then 7367 if test ! -f util/configlexer.c; then 7368 as_fn_error $? "no lex and no util/configlexer.c: need flex and bison to compile from source repository." "$LINENO" 5 7369 fi 7370fi 7371for ac_prog in 'bison -y' byacc 7372do 7373 # Extract the first word of "$ac_prog", so it can be a program name with args. 7374set dummy $ac_prog; ac_word=$2 7375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7376printf %s "checking for $ac_word... " >&6; } 7377if test ${ac_cv_prog_YACC+y} 7378then : 7379 printf %s "(cached) " >&6 7380else $as_nop 7381 if test -n "$YACC"; then 7382 ac_cv_prog_YACC="$YACC" # Let the user override the test. 7383else 7384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7385for as_dir in $PATH 7386do 7387 IFS=$as_save_IFS 7388 case $as_dir in #((( 7389 '') as_dir=./ ;; 7390 */) ;; 7391 *) as_dir=$as_dir/ ;; 7392 esac 7393 for ac_exec_ext in '' $ac_executable_extensions; do 7394 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7395 ac_cv_prog_YACC="$ac_prog" 7396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7397 break 2 7398 fi 7399done 7400 done 7401IFS=$as_save_IFS 7402 7403fi 7404fi 7405YACC=$ac_cv_prog_YACC 7406if test -n "$YACC"; then 7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 7408printf "%s\n" "$YACC" >&6; } 7409else 7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7411printf "%s\n" "no" >&6; } 7412fi 7413 7414 7415 test -n "$YACC" && break 7416done 7417test -n "$YACC" || YACC="yacc" 7418 7419if test "$YACC" = "" -o "$YACC" = ":"; then 7420 if test ! -f util/configparser.c; then 7421 as_fn_error $? "no yacc and no util/configparser.c: need flex and bison to compile from source repository." "$LINENO" 5 7422 fi 7423fi 7424# Extract the first word of "doxygen", so it can be a program name with args. 7425set dummy doxygen; ac_word=$2 7426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7427printf %s "checking for $ac_word... " >&6; } 7428if test ${ac_cv_prog_doxygen+y} 7429then : 7430 printf %s "(cached) " >&6 7431else $as_nop 7432 if test -n "$doxygen"; then 7433 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 7434else 7435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7436for as_dir in $PATH 7437do 7438 IFS=$as_save_IFS 7439 case $as_dir in #((( 7440 '') as_dir=./ ;; 7441 */) ;; 7442 *) as_dir=$as_dir/ ;; 7443 esac 7444 for ac_exec_ext in '' $ac_executable_extensions; do 7445 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7446 ac_cv_prog_doxygen="doxygen" 7447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7448 break 2 7449 fi 7450done 7451 done 7452IFS=$as_save_IFS 7453 7454fi 7455fi 7456doxygen=$ac_cv_prog_doxygen 7457if test -n "$doxygen"; then 7458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 7459printf "%s\n" "$doxygen" >&6; } 7460else 7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7462printf "%s\n" "no" >&6; } 7463fi 7464 7465 7466if test -n "$ac_tool_prefix"; then 7467 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7468set dummy ${ac_tool_prefix}strip; ac_word=$2 7469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7470printf %s "checking for $ac_word... " >&6; } 7471if test ${ac_cv_prog_STRIP+y} 7472then : 7473 printf %s "(cached) " >&6 7474else $as_nop 7475 if test -n "$STRIP"; then 7476 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7477else 7478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7479for as_dir in $PATH 7480do 7481 IFS=$as_save_IFS 7482 case $as_dir in #((( 7483 '') as_dir=./ ;; 7484 */) ;; 7485 *) as_dir=$as_dir/ ;; 7486 esac 7487 for ac_exec_ext in '' $ac_executable_extensions; do 7488 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7489 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7491 break 2 7492 fi 7493done 7494 done 7495IFS=$as_save_IFS 7496 7497fi 7498fi 7499STRIP=$ac_cv_prog_STRIP 7500if test -n "$STRIP"; then 7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7502printf "%s\n" "$STRIP" >&6; } 7503else 7504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7505printf "%s\n" "no" >&6; } 7506fi 7507 7508 7509fi 7510if test -z "$ac_cv_prog_STRIP"; then 7511 ac_ct_STRIP=$STRIP 7512 # Extract the first word of "strip", so it can be a program name with args. 7513set dummy strip; ac_word=$2 7514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7515printf %s "checking for $ac_word... " >&6; } 7516if test ${ac_cv_prog_ac_ct_STRIP+y} 7517then : 7518 printf %s "(cached) " >&6 7519else $as_nop 7520 if test -n "$ac_ct_STRIP"; then 7521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7522else 7523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7524for as_dir in $PATH 7525do 7526 IFS=$as_save_IFS 7527 case $as_dir in #((( 7528 '') as_dir=./ ;; 7529 */) ;; 7530 *) as_dir=$as_dir/ ;; 7531 esac 7532 for ac_exec_ext in '' $ac_executable_extensions; do 7533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7534 ac_cv_prog_ac_ct_STRIP="strip" 7535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7536 break 2 7537 fi 7538done 7539 done 7540IFS=$as_save_IFS 7541 7542fi 7543fi 7544ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7545if test -n "$ac_ct_STRIP"; then 7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7547printf "%s\n" "$ac_ct_STRIP" >&6; } 7548else 7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7550printf "%s\n" "no" >&6; } 7551fi 7552 7553 if test "x$ac_ct_STRIP" = x; then 7554 STRIP="" 7555 else 7556 case $cross_compiling:$ac_tool_warned in 7557yes:) 7558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7559printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7560ac_tool_warned=yes ;; 7561esac 7562 STRIP=$ac_ct_STRIP 7563 fi 7564else 7565 STRIP="$ac_cv_prog_STRIP" 7566fi 7567 7568 7569 7570 7571 # Make sure we can run config.sub. 7572$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 7573 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 7574 7575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 7576printf %s "checking build system type... " >&6; } 7577if test ${ac_cv_build+y} 7578then : 7579 printf %s "(cached) " >&6 7580else $as_nop 7581 ac_build_alias=$build_alias 7582test "x$ac_build_alias" = x && 7583 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 7584test "x$ac_build_alias" = x && 7585 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 7586ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 7587 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 7588 7589fi 7590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 7591printf "%s\n" "$ac_cv_build" >&6; } 7592case $ac_cv_build in 7593*-*-*) ;; 7594*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 7595esac 7596build=$ac_cv_build 7597ac_save_IFS=$IFS; IFS='-' 7598set x $ac_cv_build 7599shift 7600build_cpu=$1 7601build_vendor=$2 7602shift; shift 7603# Remember, the first character of IFS is used to create $*, 7604# except with old shells: 7605build_os=$* 7606IFS=$ac_save_IFS 7607case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 7608 7609 7610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 7611printf %s "checking host system type... " >&6; } 7612if test ${ac_cv_host+y} 7613then : 7614 printf %s "(cached) " >&6 7615else $as_nop 7616 if test "x$host_alias" = x; then 7617 ac_cv_host=$ac_cv_build 7618else 7619 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 7620 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 7621fi 7622 7623fi 7624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 7625printf "%s\n" "$ac_cv_host" >&6; } 7626case $ac_cv_host in 7627*-*-*) ;; 7628*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 7629esac 7630host=$ac_cv_host 7631ac_save_IFS=$IFS; IFS='-' 7632set x $ac_cv_host 7633shift 7634host_cpu=$1 7635host_vendor=$2 7636shift; shift 7637# Remember, the first character of IFS is used to create $*, 7638# except with old shells: 7639host_os=$* 7640IFS=$ac_save_IFS 7641case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 7642 7643 7644 7645# skip these tests, we do not need them. 7646 7647 7648 7649 7650 7651 7652 7653 7654# always use ./libtool unless override from commandline (libtool=mylibtool) 7655if test -z "$libtool"; then 7656 libtool="./libtool" 7657fi 7658 7659# avoid libtool max commandline length test on systems that fork slowly. 7660 7661if echo "$host_os" | grep "sunos4" >/dev/null; then 7662 lt_cv_sys_max_cmd_len=32750; 7663fi 7664if test -n "$ac_tool_prefix"; then 7665 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7666set dummy ${ac_tool_prefix}ar; ac_word=$2 7667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7668printf %s "checking for $ac_word... " >&6; } 7669if test ${ac_cv_path_AR+y} 7670then : 7671 printf %s "(cached) " >&6 7672else $as_nop 7673 case $AR in 7674 [\\/]* | ?:[\\/]*) 7675 ac_cv_path_AR="$AR" # Let the user override the test with a path. 7676 ;; 7677 *) 7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7679for as_dir in $PATH 7680do 7681 IFS=$as_save_IFS 7682 case $as_dir in #((( 7683 '') as_dir=./ ;; 7684 */) ;; 7685 *) as_dir=$as_dir/ ;; 7686 esac 7687 for ac_exec_ext in '' $ac_executable_extensions; do 7688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7689 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext" 7690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7691 break 2 7692 fi 7693done 7694 done 7695IFS=$as_save_IFS 7696 7697 ;; 7698esac 7699fi 7700AR=$ac_cv_path_AR 7701if test -n "$AR"; then 7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7703printf "%s\n" "$AR" >&6; } 7704else 7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7706printf "%s\n" "no" >&6; } 7707fi 7708 7709 7710fi 7711if test -z "$ac_cv_path_AR"; then 7712 ac_pt_AR=$AR 7713 # Extract the first word of "ar", so it can be a program name with args. 7714set dummy ar; ac_word=$2 7715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7716printf %s "checking for $ac_word... " >&6; } 7717if test ${ac_cv_path_ac_pt_AR+y} 7718then : 7719 printf %s "(cached) " >&6 7720else $as_nop 7721 case $ac_pt_AR in 7722 [\\/]* | ?:[\\/]*) 7723 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 7724 ;; 7725 *) 7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7727for as_dir in $PATH 7728do 7729 IFS=$as_save_IFS 7730 case $as_dir in #((( 7731 '') as_dir=./ ;; 7732 */) ;; 7733 *) as_dir=$as_dir/ ;; 7734 esac 7735 for ac_exec_ext in '' $ac_executable_extensions; do 7736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7737 ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext" 7738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7739 break 2 7740 fi 7741done 7742 done 7743IFS=$as_save_IFS 7744 7745 ;; 7746esac 7747fi 7748ac_pt_AR=$ac_cv_path_ac_pt_AR 7749if test -n "$ac_pt_AR"; then 7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 7751printf "%s\n" "$ac_pt_AR" >&6; } 7752else 7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7754printf "%s\n" "no" >&6; } 7755fi 7756 7757 if test "x$ac_pt_AR" = x; then 7758 AR="false" 7759 else 7760 case $cross_compiling:$ac_tool_warned in 7761yes:) 7762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7763printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7764ac_tool_warned=yes ;; 7765esac 7766 AR=$ac_pt_AR 7767 fi 7768else 7769 AR="$ac_cv_path_AR" 7770fi 7771 7772if test $AR = false; then 7773 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5 7774fi 7775 7776 7777case `pwd` in 7778 *\ * | *\ *) 7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7780printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7781esac 7782 7783 7784 7785macro_version='2.4.7' 7786macro_revision='2.4.7' 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801ltmain=$ac_aux_dir/ltmain.sh 7802 7803# Backslashify metacharacters that are still active within 7804# double-quoted strings. 7805sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7806 7807# Same as above, but do not quote variable references. 7808double_quote_subst='s/\(["`\\]\)/\\\1/g' 7809 7810# Sed substitution to delay expansion of an escaped shell variable in a 7811# double_quote_subst'ed string. 7812delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7813 7814# Sed substitution to delay expansion of an escaped single quote. 7815delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7816 7817# Sed substitution to avoid accidental globbing in evaled expressions 7818no_glob_subst='s/\*/\\\*/g' 7819 7820ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7821ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7822ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7823 7824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7825printf %s "checking how to print strings... " >&6; } 7826# Test print first, because it will be a builtin if present. 7827if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7828 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7829 ECHO='print -r --' 7830elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7831 ECHO='printf %s\n' 7832else 7833 # Use this function as a fallback that always works. 7834 func_fallback_echo () 7835 { 7836 eval 'cat <<_LTECHO_EOF 7837$1 7838_LTECHO_EOF' 7839 } 7840 ECHO='func_fallback_echo' 7841fi 7842 7843# func_echo_all arg... 7844# Invoke $ECHO with all args, space-separated. 7845func_echo_all () 7846{ 7847 $ECHO "" 7848} 7849 7850case $ECHO in 7851 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7852printf "%s\n" "printf" >&6; } ;; 7853 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7854printf "%s\n" "print -r" >&6; } ;; 7855 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7856printf "%s\n" "cat" >&6; } ;; 7857esac 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7873printf %s "checking for a sed that does not truncate output... " >&6; } 7874if test ${ac_cv_path_SED+y} 7875then : 7876 printf %s "(cached) " >&6 7877else $as_nop 7878 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7879 for ac_i in 1 2 3 4 5 6 7; do 7880 ac_script="$ac_script$as_nl$ac_script" 7881 done 7882 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7883 { ac_script=; unset ac_script;} 7884 if test -z "$SED"; then 7885 ac_path_SED_found=false 7886 # Loop through the user's path and test for each of PROGNAME-LIST 7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7888for as_dir in $PATH 7889do 7890 IFS=$as_save_IFS 7891 case $as_dir in #((( 7892 '') as_dir=./ ;; 7893 */) ;; 7894 *) as_dir=$as_dir/ ;; 7895 esac 7896 for ac_prog in sed gsed 7897 do 7898 for ac_exec_ext in '' $ac_executable_extensions; do 7899 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 7900 as_fn_executable_p "$ac_path_SED" || continue 7901# Check for GNU ac_path_SED and select it if it is found. 7902 # Check for GNU $ac_path_SED 7903case `"$ac_path_SED" --version 2>&1` in 7904*GNU*) 7905 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7906*) 7907 ac_count=0 7908 printf %s 0123456789 >"conftest.in" 7909 while : 7910 do 7911 cat "conftest.in" "conftest.in" >"conftest.tmp" 7912 mv "conftest.tmp" "conftest.in" 7913 cp "conftest.in" "conftest.nl" 7914 printf "%s\n" '' >> "conftest.nl" 7915 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7917 as_fn_arith $ac_count + 1 && ac_count=$as_val 7918 if test $ac_count -gt ${ac_path_SED_max-0}; then 7919 # Best one so far, save it but keep looking for a better one 7920 ac_cv_path_SED="$ac_path_SED" 7921 ac_path_SED_max=$ac_count 7922 fi 7923 # 10*(2^10) chars as input seems more than enough 7924 test $ac_count -gt 10 && break 7925 done 7926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7927esac 7928 7929 $ac_path_SED_found && break 3 7930 done 7931 done 7932 done 7933IFS=$as_save_IFS 7934 if test -z "$ac_cv_path_SED"; then 7935 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7936 fi 7937else 7938 ac_cv_path_SED=$SED 7939fi 7940 7941fi 7942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7943printf "%s\n" "$ac_cv_path_SED" >&6; } 7944 SED="$ac_cv_path_SED" 7945 rm -f conftest.sed 7946 7947test -z "$SED" && SED=sed 7948Xsed="$SED -e 1s/^X//" 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7961printf %s "checking for egrep... " >&6; } 7962if test ${ac_cv_path_EGREP+y} 7963then : 7964 printf %s "(cached) " >&6 7965else $as_nop 7966 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7967 then ac_cv_path_EGREP="$GREP -E" 7968 else 7969 if test -z "$EGREP"; then 7970 ac_path_EGREP_found=false 7971 # Loop through the user's path and test for each of PROGNAME-LIST 7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7973for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7974do 7975 IFS=$as_save_IFS 7976 case $as_dir in #((( 7977 '') as_dir=./ ;; 7978 */) ;; 7979 *) as_dir=$as_dir/ ;; 7980 esac 7981 for ac_prog in egrep 7982 do 7983 for ac_exec_ext in '' $ac_executable_extensions; do 7984 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 7985 as_fn_executable_p "$ac_path_EGREP" || continue 7986# Check for GNU ac_path_EGREP and select it if it is found. 7987 # Check for GNU $ac_path_EGREP 7988case `"$ac_path_EGREP" --version 2>&1` in 7989*GNU*) 7990 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7991*) 7992 ac_count=0 7993 printf %s 0123456789 >"conftest.in" 7994 while : 7995 do 7996 cat "conftest.in" "conftest.in" >"conftest.tmp" 7997 mv "conftest.tmp" "conftest.in" 7998 cp "conftest.in" "conftest.nl" 7999 printf "%s\n" 'EGREP' >> "conftest.nl" 8000 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 8001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8002 as_fn_arith $ac_count + 1 && ac_count=$as_val 8003 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 8004 # Best one so far, save it but keep looking for a better one 8005 ac_cv_path_EGREP="$ac_path_EGREP" 8006 ac_path_EGREP_max=$ac_count 8007 fi 8008 # 10*(2^10) chars as input seems more than enough 8009 test $ac_count -gt 10 && break 8010 done 8011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8012esac 8013 8014 $ac_path_EGREP_found && break 3 8015 done 8016 done 8017 done 8018IFS=$as_save_IFS 8019 if test -z "$ac_cv_path_EGREP"; then 8020 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8021 fi 8022else 8023 ac_cv_path_EGREP=$EGREP 8024fi 8025 8026 fi 8027fi 8028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 8029printf "%s\n" "$ac_cv_path_EGREP" >&6; } 8030 EGREP="$ac_cv_path_EGREP" 8031 8032 8033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8034printf %s "checking for fgrep... " >&6; } 8035if test ${ac_cv_path_FGREP+y} 8036then : 8037 printf %s "(cached) " >&6 8038else $as_nop 8039 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8040 then ac_cv_path_FGREP="$GREP -F" 8041 else 8042 if test -z "$FGREP"; then 8043 ac_path_FGREP_found=false 8044 # Loop through the user's path and test for each of PROGNAME-LIST 8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8046for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8047do 8048 IFS=$as_save_IFS 8049 case $as_dir in #((( 8050 '') as_dir=./ ;; 8051 */) ;; 8052 *) as_dir=$as_dir/ ;; 8053 esac 8054 for ac_prog in fgrep 8055 do 8056 for ac_exec_ext in '' $ac_executable_extensions; do 8057 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 8058 as_fn_executable_p "$ac_path_FGREP" || continue 8059# Check for GNU ac_path_FGREP and select it if it is found. 8060 # Check for GNU $ac_path_FGREP 8061case `"$ac_path_FGREP" --version 2>&1` in 8062*GNU*) 8063 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 8064*) 8065 ac_count=0 8066 printf %s 0123456789 >"conftest.in" 8067 while : 8068 do 8069 cat "conftest.in" "conftest.in" >"conftest.tmp" 8070 mv "conftest.tmp" "conftest.in" 8071 cp "conftest.in" "conftest.nl" 8072 printf "%s\n" 'FGREP' >> "conftest.nl" 8073 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 8074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8075 as_fn_arith $ac_count + 1 && ac_count=$as_val 8076 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 8077 # Best one so far, save it but keep looking for a better one 8078 ac_cv_path_FGREP="$ac_path_FGREP" 8079 ac_path_FGREP_max=$ac_count 8080 fi 8081 # 10*(2^10) chars as input seems more than enough 8082 test $ac_count -gt 10 && break 8083 done 8084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8085esac 8086 8087 $ac_path_FGREP_found && break 3 8088 done 8089 done 8090 done 8091IFS=$as_save_IFS 8092 if test -z "$ac_cv_path_FGREP"; then 8093 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8094 fi 8095else 8096 ac_cv_path_FGREP=$FGREP 8097fi 8098 8099 fi 8100fi 8101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 8102printf "%s\n" "$ac_cv_path_FGREP" >&6; } 8103 FGREP="$ac_cv_path_FGREP" 8104 8105 8106test -z "$GREP" && GREP=grep 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126# Check whether --with-gnu-ld was given. 8127if test ${with_gnu_ld+y} 8128then : 8129 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 8130else $as_nop 8131 with_gnu_ld=no 8132fi 8133 8134ac_prog=ld 8135if test yes = "$GCC"; then 8136 # Check if gcc -print-prog-name=ld gives a path. 8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8138printf %s "checking for ld used by $CC... " >&6; } 8139 case $host in 8140 *-*-mingw*) 8141 # gcc leaves a trailing carriage return, which upsets mingw 8142 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8143 *) 8144 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8145 esac 8146 case $ac_prog in 8147 # Accept absolute paths. 8148 [\\/]* | ?:[\\/]*) 8149 re_direlt='/[^/][^/]*/\.\./' 8150 # Canonicalize the pathname of ld 8151 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8152 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8153 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8154 done 8155 test -z "$LD" && LD=$ac_prog 8156 ;; 8157 "") 8158 # If it fails, then pretend we aren't using GCC. 8159 ac_prog=ld 8160 ;; 8161 *) 8162 # If it is relative, then search for the first ld in PATH. 8163 with_gnu_ld=unknown 8164 ;; 8165 esac 8166elif test yes = "$with_gnu_ld"; then 8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8168printf %s "checking for GNU ld... " >&6; } 8169else 8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8171printf %s "checking for non-GNU ld... " >&6; } 8172fi 8173if test ${lt_cv_path_LD+y} 8174then : 8175 printf %s "(cached) " >&6 8176else $as_nop 8177 if test -z "$LD"; then 8178 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8179 for ac_dir in $PATH; do 8180 IFS=$lt_save_ifs 8181 test -z "$ac_dir" && ac_dir=. 8182 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8183 lt_cv_path_LD=$ac_dir/$ac_prog 8184 # Check to see if the program is GNU ld. I'd rather use --version, 8185 # but apparently some variants of GNU ld only accept -v. 8186 # Break only if it was the GNU/non-GNU ld that we prefer. 8187 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8188 *GNU* | *'with BFD'*) 8189 test no != "$with_gnu_ld" && break 8190 ;; 8191 *) 8192 test yes != "$with_gnu_ld" && break 8193 ;; 8194 esac 8195 fi 8196 done 8197 IFS=$lt_save_ifs 8198else 8199 lt_cv_path_LD=$LD # Let the user override the test with a path. 8200fi 8201fi 8202 8203LD=$lt_cv_path_LD 8204if test -n "$LD"; then 8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8206printf "%s\n" "$LD" >&6; } 8207else 8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8209printf "%s\n" "no" >&6; } 8210fi 8211test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8213printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 8214if test ${lt_cv_prog_gnu_ld+y} 8215then : 8216 printf %s "(cached) " >&6 8217else $as_nop 8218 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8219case `$LD -v 2>&1 </dev/null` in 8220*GNU* | *'with BFD'*) 8221 lt_cv_prog_gnu_ld=yes 8222 ;; 8223*) 8224 lt_cv_prog_gnu_ld=no 8225 ;; 8226esac 8227fi 8228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8229printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 8230with_gnu_ld=$lt_cv_prog_gnu_ld 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 8241printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 8242if test ${lt_cv_path_NM+y} 8243then : 8244 printf %s "(cached) " >&6 8245else $as_nop 8246 if test -n "$NM"; then 8247 # Let the user override the test. 8248 lt_cv_path_NM=$NM 8249else 8250 lt_nm_to_check=${ac_tool_prefix}nm 8251 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8252 lt_nm_to_check="$lt_nm_to_check nm" 8253 fi 8254 for lt_tmp_nm in $lt_nm_to_check; do 8255 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8256 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8257 IFS=$lt_save_ifs 8258 test -z "$ac_dir" && ac_dir=. 8259 tmp_nm=$ac_dir/$lt_tmp_nm 8260 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 8261 # Check to see if the nm accepts a BSD-compat flag. 8262 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 8263 # nm: unknown option "B" ignored 8264 # Tru64's nm complains that /dev/null is an invalid object file 8265 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 8266 case $build_os in 8267 mingw*) lt_bad_file=conftest.nm/nofile ;; 8268 *) lt_bad_file=/dev/null ;; 8269 esac 8270 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 8271 *$lt_bad_file* | *'Invalid file or object type'*) 8272 lt_cv_path_NM="$tmp_nm -B" 8273 break 2 8274 ;; 8275 *) 8276 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 8277 */dev/null*) 8278 lt_cv_path_NM="$tmp_nm -p" 8279 break 2 8280 ;; 8281 *) 8282 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8283 continue # so that we can try to find one that supports BSD flags 8284 ;; 8285 esac 8286 ;; 8287 esac 8288 fi 8289 done 8290 IFS=$lt_save_ifs 8291 done 8292 : ${lt_cv_path_NM=no} 8293fi 8294fi 8295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8296printf "%s\n" "$lt_cv_path_NM" >&6; } 8297if test no != "$lt_cv_path_NM"; then 8298 NM=$lt_cv_path_NM 8299else 8300 # Didn't find any BSD compatible name lister, look for dumpbin. 8301 if test -n "$DUMPBIN"; then : 8302 # Let the user override the test. 8303 else 8304 if test -n "$ac_tool_prefix"; then 8305 for ac_prog in dumpbin "link -dump" 8306 do 8307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8308set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8310printf %s "checking for $ac_word... " >&6; } 8311if test ${ac_cv_prog_DUMPBIN+y} 8312then : 8313 printf %s "(cached) " >&6 8314else $as_nop 8315 if test -n "$DUMPBIN"; then 8316 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 8317else 8318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8319for as_dir in $PATH 8320do 8321 IFS=$as_save_IFS 8322 case $as_dir in #((( 8323 '') as_dir=./ ;; 8324 */) ;; 8325 *) as_dir=$as_dir/ ;; 8326 esac 8327 for ac_exec_ext in '' $ac_executable_extensions; do 8328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8329 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8331 break 2 8332 fi 8333done 8334 done 8335IFS=$as_save_IFS 8336 8337fi 8338fi 8339DUMPBIN=$ac_cv_prog_DUMPBIN 8340if test -n "$DUMPBIN"; then 8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8342printf "%s\n" "$DUMPBIN" >&6; } 8343else 8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8345printf "%s\n" "no" >&6; } 8346fi 8347 8348 8349 test -n "$DUMPBIN" && break 8350 done 8351fi 8352if test -z "$DUMPBIN"; then 8353 ac_ct_DUMPBIN=$DUMPBIN 8354 for ac_prog in dumpbin "link -dump" 8355do 8356 # Extract the first word of "$ac_prog", so it can be a program name with args. 8357set dummy $ac_prog; ac_word=$2 8358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8359printf %s "checking for $ac_word... " >&6; } 8360if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 8361then : 8362 printf %s "(cached) " >&6 8363else $as_nop 8364 if test -n "$ac_ct_DUMPBIN"; then 8365 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8366else 8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8368for as_dir in $PATH 8369do 8370 IFS=$as_save_IFS 8371 case $as_dir in #((( 8372 '') as_dir=./ ;; 8373 */) ;; 8374 *) as_dir=$as_dir/ ;; 8375 esac 8376 for ac_exec_ext in '' $ac_executable_extensions; do 8377 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8378 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8380 break 2 8381 fi 8382done 8383 done 8384IFS=$as_save_IFS 8385 8386fi 8387fi 8388ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8389if test -n "$ac_ct_DUMPBIN"; then 8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8391printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 8392else 8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8394printf "%s\n" "no" >&6; } 8395fi 8396 8397 8398 test -n "$ac_ct_DUMPBIN" && break 8399done 8400 8401 if test "x$ac_ct_DUMPBIN" = x; then 8402 DUMPBIN=":" 8403 else 8404 case $cross_compiling:$ac_tool_warned in 8405yes:) 8406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8407printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8408ac_tool_warned=yes ;; 8409esac 8410 DUMPBIN=$ac_ct_DUMPBIN 8411 fi 8412fi 8413 8414 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 8415 *COFF*) 8416 DUMPBIN="$DUMPBIN -symbols -headers" 8417 ;; 8418 *) 8419 DUMPBIN=: 8420 ;; 8421 esac 8422 fi 8423 8424 if test : != "$DUMPBIN"; then 8425 NM=$DUMPBIN 8426 fi 8427fi 8428test -z "$NM" && NM=nm 8429 8430 8431 8432 8433 8434 8435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8436printf %s "checking the name lister ($NM) interface... " >&6; } 8437if test ${lt_cv_nm_interface+y} 8438then : 8439 printf %s "(cached) " >&6 8440else $as_nop 8441 lt_cv_nm_interface="BSD nm" 8442 echo "int some_variable = 0;" > conftest.$ac_ext 8443 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8444 (eval "$ac_compile" 2>conftest.err) 8445 cat conftest.err >&5 8446 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8447 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8448 cat conftest.err >&5 8449 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8450 cat conftest.out >&5 8451 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8452 lt_cv_nm_interface="MS dumpbin" 8453 fi 8454 rm -f conftest* 8455fi 8456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8457printf "%s\n" "$lt_cv_nm_interface" >&6; } 8458 8459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8460printf %s "checking whether ln -s works... " >&6; } 8461LN_S=$as_ln_s 8462if test "$LN_S" = "ln -s"; then 8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8464printf "%s\n" "yes" >&6; } 8465else 8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8467printf "%s\n" "no, using $LN_S" >&6; } 8468fi 8469 8470# find the maximum length of command line arguments 8471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8472printf %s "checking the maximum length of command line arguments... " >&6; } 8473if test ${lt_cv_sys_max_cmd_len+y} 8474then : 8475 printf %s "(cached) " >&6 8476else $as_nop 8477 i=0 8478 teststring=ABCD 8479 8480 case $build_os in 8481 msdosdjgpp*) 8482 # On DJGPP, this test can blow up pretty badly due to problems in libc 8483 # (any single argument exceeding 2000 bytes causes a buffer overrun 8484 # during glob expansion). Even if it were fixed, the result of this 8485 # check would be larger than it should be. 8486 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8487 ;; 8488 8489 gnu*) 8490 # Under GNU Hurd, this test is not required because there is 8491 # no limit to the length of command line arguments. 8492 # Libtool will interpret -1 as no limit whatsoever 8493 lt_cv_sys_max_cmd_len=-1; 8494 ;; 8495 8496 cygwin* | mingw* | cegcc*) 8497 # On Win9x/ME, this test blows up -- it succeeds, but takes 8498 # about 5 minutes as the teststring grows exponentially. 8499 # Worse, since 9x/ME are not pre-emptively multitasking, 8500 # you end up with a "frozen" computer, even though with patience 8501 # the test eventually succeeds (with a max line length of 256k). 8502 # Instead, let's just punt: use the minimum linelength reported by 8503 # all of the supported platforms: 8192 (on NT/2K/XP). 8504 lt_cv_sys_max_cmd_len=8192; 8505 ;; 8506 8507 mint*) 8508 # On MiNT this can take a long time and run out of memory. 8509 lt_cv_sys_max_cmd_len=8192; 8510 ;; 8511 8512 amigaos*) 8513 # On AmigaOS with pdksh, this test takes hours, literally. 8514 # So we just punt and use a minimum line length of 8192. 8515 lt_cv_sys_max_cmd_len=8192; 8516 ;; 8517 8518 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 8519 # This has been around since 386BSD, at least. Likely further. 8520 if test -x /sbin/sysctl; then 8521 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8522 elif test -x /usr/sbin/sysctl; then 8523 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8524 else 8525 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8526 fi 8527 # And add a safety zone 8528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8530 ;; 8531 8532 interix*) 8533 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8534 lt_cv_sys_max_cmd_len=196608 8535 ;; 8536 8537 os2*) 8538 # The test takes a long time on OS/2. 8539 lt_cv_sys_max_cmd_len=8192 8540 ;; 8541 8542 osf*) 8543 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8544 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8545 # nice to cause kernel panics so lets avoid the loop below. 8546 # First set a reasonable default. 8547 lt_cv_sys_max_cmd_len=16384 8548 # 8549 if test -x /sbin/sysconfig; then 8550 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8551 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8552 esac 8553 fi 8554 ;; 8555 sco3.2v5*) 8556 lt_cv_sys_max_cmd_len=102400 8557 ;; 8558 sysv5* | sco5v6* | sysv4.2uw2*) 8559 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8560 if test -n "$kargmax"; then 8561 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 8562 else 8563 lt_cv_sys_max_cmd_len=32768 8564 fi 8565 ;; 8566 *) 8567 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8568 if test -n "$lt_cv_sys_max_cmd_len" && \ 8569 test undefined != "$lt_cv_sys_max_cmd_len"; then 8570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8572 else 8573 # Make teststring a little bigger before we do anything with it. 8574 # a 1K string should be a reasonable start. 8575 for i in 1 2 3 4 5 6 7 8; do 8576 teststring=$teststring$teststring 8577 done 8578 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8579 # If test is not a shell built-in, we'll probably end up computing a 8580 # maximum length that is only half of the actual maximum length, but 8581 # we can't tell. 8582 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 8583 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8584 test 17 != "$i" # 1/2 MB should be enough 8585 do 8586 i=`expr $i + 1` 8587 teststring=$teststring$teststring 8588 done 8589 # Only check the string length outside the loop. 8590 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8591 teststring= 8592 # Add a significant safety factor because C++ compilers can tack on 8593 # massive amounts of additional arguments before passing them to the 8594 # linker. It appears as though 1/2 is a usable value. 8595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8596 fi 8597 ;; 8598 esac 8599 8600fi 8601 8602if test -n "$lt_cv_sys_max_cmd_len"; then 8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8604printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 8605else 8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 8607printf "%s\n" "none" >&6; } 8608fi 8609max_cmd_len=$lt_cv_sys_max_cmd_len 8610 8611 8612 8613 8614 8615 8616: ${CP="cp -f"} 8617: ${MV="mv -f"} 8618: ${RM="rm -f"} 8619 8620if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8621 lt_unset=unset 8622else 8623 lt_unset=false 8624fi 8625 8626 8627 8628 8629 8630# test EBCDIC or ASCII 8631case `echo X|tr X '\101'` in 8632 A) # ASCII based system 8633 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8634 lt_SP2NL='tr \040 \012' 8635 lt_NL2SP='tr \015\012 \040\040' 8636 ;; 8637 *) # EBCDIC based system 8638 lt_SP2NL='tr \100 \n' 8639 lt_NL2SP='tr \r\n \100\100' 8640 ;; 8641esac 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8652printf %s "checking how to convert $build file names to $host format... " >&6; } 8653if test ${lt_cv_to_host_file_cmd+y} 8654then : 8655 printf %s "(cached) " >&6 8656else $as_nop 8657 case $host in 8658 *-*-mingw* ) 8659 case $build in 8660 *-*-mingw* ) # actually msys 8661 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8662 ;; 8663 *-*-cygwin* ) 8664 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8665 ;; 8666 * ) # otherwise, assume *nix 8667 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8668 ;; 8669 esac 8670 ;; 8671 *-*-cygwin* ) 8672 case $build in 8673 *-*-mingw* ) # actually msys 8674 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8675 ;; 8676 *-*-cygwin* ) 8677 lt_cv_to_host_file_cmd=func_convert_file_noop 8678 ;; 8679 * ) # otherwise, assume *nix 8680 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8681 ;; 8682 esac 8683 ;; 8684 * ) # unhandled hosts (and "normal" native builds) 8685 lt_cv_to_host_file_cmd=func_convert_file_noop 8686 ;; 8687esac 8688 8689fi 8690 8691to_host_file_cmd=$lt_cv_to_host_file_cmd 8692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8693printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 8694 8695 8696 8697 8698 8699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8700printf %s "checking how to convert $build file names to toolchain format... " >&6; } 8701if test ${lt_cv_to_tool_file_cmd+y} 8702then : 8703 printf %s "(cached) " >&6 8704else $as_nop 8705 #assume ordinary cross tools, or native build. 8706lt_cv_to_tool_file_cmd=func_convert_file_noop 8707case $host in 8708 *-*-mingw* ) 8709 case $build in 8710 *-*-mingw* ) # actually msys 8711 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8712 ;; 8713 esac 8714 ;; 8715esac 8716 8717fi 8718 8719to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8721printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 8722 8723 8724 8725 8726 8727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8728printf %s "checking for $LD option to reload object files... " >&6; } 8729if test ${lt_cv_ld_reload_flag+y} 8730then : 8731 printf %s "(cached) " >&6 8732else $as_nop 8733 lt_cv_ld_reload_flag='-r' 8734fi 8735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8736printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 8737reload_flag=$lt_cv_ld_reload_flag 8738case $reload_flag in 8739"" | " "*) ;; 8740*) reload_flag=" $reload_flag" ;; 8741esac 8742reload_cmds='$LD$reload_flag -o $output$reload_objs' 8743case $host_os in 8744 cygwin* | mingw* | pw32* | cegcc*) 8745 if test yes != "$GCC"; then 8746 reload_cmds=false 8747 fi 8748 ;; 8749 darwin*) 8750 if test yes = "$GCC"; then 8751 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 8752 else 8753 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8754 fi 8755 ;; 8756esac 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766if test -n "$ac_tool_prefix"; then 8767 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 8768set dummy ${ac_tool_prefix}file; ac_word=$2 8769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8770printf %s "checking for $ac_word... " >&6; } 8771if test ${ac_cv_prog_FILECMD+y} 8772then : 8773 printf %s "(cached) " >&6 8774else $as_nop 8775 if test -n "$FILECMD"; then 8776 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 8777else 8778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8779for as_dir in $PATH 8780do 8781 IFS=$as_save_IFS 8782 case $as_dir in #((( 8783 '') as_dir=./ ;; 8784 */) ;; 8785 *) as_dir=$as_dir/ ;; 8786 esac 8787 for ac_exec_ext in '' $ac_executable_extensions; do 8788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8789 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 8790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8791 break 2 8792 fi 8793done 8794 done 8795IFS=$as_save_IFS 8796 8797fi 8798fi 8799FILECMD=$ac_cv_prog_FILECMD 8800if test -n "$FILECMD"; then 8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 8802printf "%s\n" "$FILECMD" >&6; } 8803else 8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8805printf "%s\n" "no" >&6; } 8806fi 8807 8808 8809fi 8810if test -z "$ac_cv_prog_FILECMD"; then 8811 ac_ct_FILECMD=$FILECMD 8812 # Extract the first word of "file", so it can be a program name with args. 8813set dummy file; ac_word=$2 8814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8815printf %s "checking for $ac_word... " >&6; } 8816if test ${ac_cv_prog_ac_ct_FILECMD+y} 8817then : 8818 printf %s "(cached) " >&6 8819else $as_nop 8820 if test -n "$ac_ct_FILECMD"; then 8821 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 8822else 8823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8824for as_dir in $PATH 8825do 8826 IFS=$as_save_IFS 8827 case $as_dir in #((( 8828 '') as_dir=./ ;; 8829 */) ;; 8830 *) as_dir=$as_dir/ ;; 8831 esac 8832 for ac_exec_ext in '' $ac_executable_extensions; do 8833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8834 ac_cv_prog_ac_ct_FILECMD="file" 8835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8836 break 2 8837 fi 8838done 8839 done 8840IFS=$as_save_IFS 8841 8842fi 8843fi 8844ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 8845if test -n "$ac_ct_FILECMD"; then 8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 8847printf "%s\n" "$ac_ct_FILECMD" >&6; } 8848else 8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8850printf "%s\n" "no" >&6; } 8851fi 8852 8853 if test "x$ac_ct_FILECMD" = x; then 8854 FILECMD=":" 8855 else 8856 case $cross_compiling:$ac_tool_warned in 8857yes:) 8858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8859printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8860ac_tool_warned=yes ;; 8861esac 8862 FILECMD=$ac_ct_FILECMD 8863 fi 8864else 8865 FILECMD="$ac_cv_prog_FILECMD" 8866fi 8867 8868 8869 8870 8871 8872 8873 8874if test -n "$ac_tool_prefix"; then 8875 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8876set dummy ${ac_tool_prefix}objdump; ac_word=$2 8877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8878printf %s "checking for $ac_word... " >&6; } 8879if test ${ac_cv_prog_OBJDUMP+y} 8880then : 8881 printf %s "(cached) " >&6 8882else $as_nop 8883 if test -n "$OBJDUMP"; then 8884 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8885else 8886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8887for as_dir in $PATH 8888do 8889 IFS=$as_save_IFS 8890 case $as_dir in #((( 8891 '') as_dir=./ ;; 8892 */) ;; 8893 *) as_dir=$as_dir/ ;; 8894 esac 8895 for ac_exec_ext in '' $ac_executable_extensions; do 8896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8897 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8899 break 2 8900 fi 8901done 8902 done 8903IFS=$as_save_IFS 8904 8905fi 8906fi 8907OBJDUMP=$ac_cv_prog_OBJDUMP 8908if test -n "$OBJDUMP"; then 8909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8910printf "%s\n" "$OBJDUMP" >&6; } 8911else 8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8913printf "%s\n" "no" >&6; } 8914fi 8915 8916 8917fi 8918if test -z "$ac_cv_prog_OBJDUMP"; then 8919 ac_ct_OBJDUMP=$OBJDUMP 8920 # Extract the first word of "objdump", so it can be a program name with args. 8921set dummy objdump; ac_word=$2 8922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8923printf %s "checking for $ac_word... " >&6; } 8924if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 8925then : 8926 printf %s "(cached) " >&6 8927else $as_nop 8928 if test -n "$ac_ct_OBJDUMP"; then 8929 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8930else 8931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8932for as_dir in $PATH 8933do 8934 IFS=$as_save_IFS 8935 case $as_dir in #((( 8936 '') as_dir=./ ;; 8937 */) ;; 8938 *) as_dir=$as_dir/ ;; 8939 esac 8940 for ac_exec_ext in '' $ac_executable_extensions; do 8941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8942 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8944 break 2 8945 fi 8946done 8947 done 8948IFS=$as_save_IFS 8949 8950fi 8951fi 8952ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8953if test -n "$ac_ct_OBJDUMP"; then 8954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8955printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 8956else 8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8958printf "%s\n" "no" >&6; } 8959fi 8960 8961 if test "x$ac_ct_OBJDUMP" = x; then 8962 OBJDUMP="false" 8963 else 8964 case $cross_compiling:$ac_tool_warned in 8965yes:) 8966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8967printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8968ac_tool_warned=yes ;; 8969esac 8970 OBJDUMP=$ac_ct_OBJDUMP 8971 fi 8972else 8973 OBJDUMP="$ac_cv_prog_OBJDUMP" 8974fi 8975 8976test -z "$OBJDUMP" && OBJDUMP=objdump 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8987printf %s "checking how to recognize dependent libraries... " >&6; } 8988if test ${lt_cv_deplibs_check_method+y} 8989then : 8990 printf %s "(cached) " >&6 8991else $as_nop 8992 lt_cv_file_magic_cmd='$MAGIC_CMD' 8993lt_cv_file_magic_test_file= 8994lt_cv_deplibs_check_method='unknown' 8995# Need to set the preceding variable on all platforms that support 8996# interlibrary dependencies. 8997# 'none' -- dependencies not supported. 8998# 'unknown' -- same as none, but documents that we really don't know. 8999# 'pass_all' -- all dependencies passed with no checks. 9000# 'test_compile' -- check by making test program. 9001# 'file_magic [[regex]]' -- check by looking for files in library path 9002# that responds to the $file_magic_cmd with a given extended regex. 9003# If you have 'file' or equivalent on your system and you're not sure 9004# whether 'pass_all' will *always* work, you probably want this one. 9005 9006case $host_os in 9007aix[4-9]*) 9008 lt_cv_deplibs_check_method=pass_all 9009 ;; 9010 9011beos*) 9012 lt_cv_deplibs_check_method=pass_all 9013 ;; 9014 9015bsdi[45]*) 9016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 9017 lt_cv_file_magic_cmd='$FILECMD -L' 9018 lt_cv_file_magic_test_file=/shlib/libc.so 9019 ;; 9020 9021cygwin*) 9022 # func_win32_libid is a shell function defined in ltmain.sh 9023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9024 lt_cv_file_magic_cmd='func_win32_libid' 9025 ;; 9026 9027mingw* | pw32*) 9028 # Base MSYS/MinGW do not provide the 'file' command needed by 9029 # func_win32_libid shell function, so use a weaker test based on 'objdump', 9030 # unless we find 'file', for example because we are cross-compiling. 9031 if ( file / ) >/dev/null 2>&1; then 9032 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9033 lt_cv_file_magic_cmd='func_win32_libid' 9034 else 9035 # Keep this pattern in sync with the one in func_win32_libid. 9036 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 9037 lt_cv_file_magic_cmd='$OBJDUMP -f' 9038 fi 9039 ;; 9040 9041cegcc*) 9042 # use the weaker test based on 'objdump'. See mingw*. 9043 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 9044 lt_cv_file_magic_cmd='$OBJDUMP -f' 9045 ;; 9046 9047darwin* | rhapsody*) 9048 lt_cv_deplibs_check_method=pass_all 9049 ;; 9050 9051freebsd* | dragonfly* | midnightbsd*) 9052 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9053 case $host_cpu in 9054 i*86 ) 9055 # Not sure whether the presence of OpenBSD here was a mistake. 9056 # Let's accept both of them until this is cleared up. 9057 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 9058 lt_cv_file_magic_cmd=$FILECMD 9059 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 9060 ;; 9061 esac 9062 else 9063 lt_cv_deplibs_check_method=pass_all 9064 fi 9065 ;; 9066 9067haiku*) 9068 lt_cv_deplibs_check_method=pass_all 9069 ;; 9070 9071hpux10.20* | hpux11*) 9072 lt_cv_file_magic_cmd=$FILECMD 9073 case $host_cpu in 9074 ia64*) 9075 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 9076 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 9077 ;; 9078 hppa*64*) 9079 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]' 9080 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 9081 ;; 9082 *) 9083 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 9084 lt_cv_file_magic_test_file=/usr/lib/libc.sl 9085 ;; 9086 esac 9087 ;; 9088 9089interix[3-9]*) 9090 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 9091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 9092 ;; 9093 9094irix5* | irix6* | nonstopux*) 9095 case $LD in 9096 *-32|*"-32 ") libmagic=32-bit;; 9097 *-n32|*"-n32 ") libmagic=N32;; 9098 *-64|*"-64 ") libmagic=64-bit;; 9099 *) libmagic=never-match;; 9100 esac 9101 lt_cv_deplibs_check_method=pass_all 9102 ;; 9103 9104# This must be glibc/ELF. 9105linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9106 lt_cv_deplibs_check_method=pass_all 9107 ;; 9108 9109netbsd*) 9110 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9112 else 9113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 9114 fi 9115 ;; 9116 9117newos6*) 9118 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 9119 lt_cv_file_magic_cmd=$FILECMD 9120 lt_cv_file_magic_test_file=/usr/lib/libnls.so 9121 ;; 9122 9123*nto* | *qnx*) 9124 lt_cv_deplibs_check_method=pass_all 9125 ;; 9126 9127openbsd* | bitrig*) 9128 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 9130 else 9131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9132 fi 9133 ;; 9134 9135osf3* | osf4* | osf5*) 9136 lt_cv_deplibs_check_method=pass_all 9137 ;; 9138 9139rdos*) 9140 lt_cv_deplibs_check_method=pass_all 9141 ;; 9142 9143solaris*) 9144 lt_cv_deplibs_check_method=pass_all 9145 ;; 9146 9147sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9148 lt_cv_deplibs_check_method=pass_all 9149 ;; 9150 9151sysv4 | sysv4.3*) 9152 case $host_vendor in 9153 motorola) 9154 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]' 9155 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 9156 ;; 9157 ncr) 9158 lt_cv_deplibs_check_method=pass_all 9159 ;; 9160 sequent) 9161 lt_cv_file_magic_cmd='/bin/file' 9162 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 9163 ;; 9164 sni) 9165 lt_cv_file_magic_cmd='/bin/file' 9166 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 9167 lt_cv_file_magic_test_file=/lib/libc.so 9168 ;; 9169 siemens) 9170 lt_cv_deplibs_check_method=pass_all 9171 ;; 9172 pc) 9173 lt_cv_deplibs_check_method=pass_all 9174 ;; 9175 esac 9176 ;; 9177 9178tpf*) 9179 lt_cv_deplibs_check_method=pass_all 9180 ;; 9181os2*) 9182 lt_cv_deplibs_check_method=pass_all 9183 ;; 9184esac 9185 9186fi 9187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 9188printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 9189 9190file_magic_glob= 9191want_nocaseglob=no 9192if test "$build" = "$host"; then 9193 case $host_os in 9194 mingw* | pw32*) 9195 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 9196 want_nocaseglob=yes 9197 else 9198 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 9199 fi 9200 ;; 9201 esac 9202fi 9203 9204file_magic_cmd=$lt_cv_file_magic_cmd 9205deplibs_check_method=$lt_cv_deplibs_check_method 9206test -z "$deplibs_check_method" && deplibs_check_method=unknown 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229if test -n "$ac_tool_prefix"; then 9230 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9231set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9233printf %s "checking for $ac_word... " >&6; } 9234if test ${ac_cv_prog_DLLTOOL+y} 9235then : 9236 printf %s "(cached) " >&6 9237else $as_nop 9238 if test -n "$DLLTOOL"; then 9239 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9240else 9241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9242for as_dir in $PATH 9243do 9244 IFS=$as_save_IFS 9245 case $as_dir in #((( 9246 '') as_dir=./ ;; 9247 */) ;; 9248 *) as_dir=$as_dir/ ;; 9249 esac 9250 for ac_exec_ext in '' $ac_executable_extensions; do 9251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9252 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9254 break 2 9255 fi 9256done 9257 done 9258IFS=$as_save_IFS 9259 9260fi 9261fi 9262DLLTOOL=$ac_cv_prog_DLLTOOL 9263if test -n "$DLLTOOL"; then 9264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9265printf "%s\n" "$DLLTOOL" >&6; } 9266else 9267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9268printf "%s\n" "no" >&6; } 9269fi 9270 9271 9272fi 9273if test -z "$ac_cv_prog_DLLTOOL"; then 9274 ac_ct_DLLTOOL=$DLLTOOL 9275 # Extract the first word of "dlltool", so it can be a program name with args. 9276set dummy dlltool; ac_word=$2 9277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9278printf %s "checking for $ac_word... " >&6; } 9279if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 9280then : 9281 printf %s "(cached) " >&6 9282else $as_nop 9283 if test -n "$ac_ct_DLLTOOL"; then 9284 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9285else 9286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9287for as_dir in $PATH 9288do 9289 IFS=$as_save_IFS 9290 case $as_dir in #((( 9291 '') as_dir=./ ;; 9292 */) ;; 9293 *) as_dir=$as_dir/ ;; 9294 esac 9295 for ac_exec_ext in '' $ac_executable_extensions; do 9296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9297 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9299 break 2 9300 fi 9301done 9302 done 9303IFS=$as_save_IFS 9304 9305fi 9306fi 9307ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9308if test -n "$ac_ct_DLLTOOL"; then 9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9310printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 9311else 9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9313printf "%s\n" "no" >&6; } 9314fi 9315 9316 if test "x$ac_ct_DLLTOOL" = x; then 9317 DLLTOOL="false" 9318 else 9319 case $cross_compiling:$ac_tool_warned in 9320yes:) 9321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9322printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9323ac_tool_warned=yes ;; 9324esac 9325 DLLTOOL=$ac_ct_DLLTOOL 9326 fi 9327else 9328 DLLTOOL="$ac_cv_prog_DLLTOOL" 9329fi 9330 9331test -z "$DLLTOOL" && DLLTOOL=dlltool 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 9343printf %s "checking how to associate runtime and link libraries... " >&6; } 9344if test ${lt_cv_sharedlib_from_linklib_cmd+y} 9345then : 9346 printf %s "(cached) " >&6 9347else $as_nop 9348 lt_cv_sharedlib_from_linklib_cmd='unknown' 9349 9350case $host_os in 9351cygwin* | mingw* | pw32* | cegcc*) 9352 # two different shell functions defined in ltmain.sh; 9353 # decide which one to use based on capabilities of $DLLTOOL 9354 case `$DLLTOOL --help 2>&1` in 9355 *--identify-strict*) 9356 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 9357 ;; 9358 *) 9359 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 9360 ;; 9361 esac 9362 ;; 9363*) 9364 # fallback: assume linklib IS sharedlib 9365 lt_cv_sharedlib_from_linklib_cmd=$ECHO 9366 ;; 9367esac 9368 9369fi 9370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 9371printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 9372sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 9373test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 9374 9375 9376 9377 9378 9379 9380 9381if test -n "$ac_tool_prefix"; then 9382 for ac_prog in ar 9383 do 9384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9385set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9387printf %s "checking for $ac_word... " >&6; } 9388if test ${ac_cv_prog_AR+y} 9389then : 9390 printf %s "(cached) " >&6 9391else $as_nop 9392 if test -n "$AR"; then 9393 ac_cv_prog_AR="$AR" # Let the user override the test. 9394else 9395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9396for as_dir in $PATH 9397do 9398 IFS=$as_save_IFS 9399 case $as_dir in #((( 9400 '') as_dir=./ ;; 9401 */) ;; 9402 *) as_dir=$as_dir/ ;; 9403 esac 9404 for ac_exec_ext in '' $ac_executable_extensions; do 9405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9406 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9408 break 2 9409 fi 9410done 9411 done 9412IFS=$as_save_IFS 9413 9414fi 9415fi 9416AR=$ac_cv_prog_AR 9417if test -n "$AR"; then 9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9419printf "%s\n" "$AR" >&6; } 9420else 9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9422printf "%s\n" "no" >&6; } 9423fi 9424 9425 9426 test -n "$AR" && break 9427 done 9428fi 9429if test -z "$AR"; then 9430 ac_ct_AR=$AR 9431 for ac_prog in ar 9432do 9433 # Extract the first word of "$ac_prog", so it can be a program name with args. 9434set dummy $ac_prog; ac_word=$2 9435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9436printf %s "checking for $ac_word... " >&6; } 9437if test ${ac_cv_prog_ac_ct_AR+y} 9438then : 9439 printf %s "(cached) " >&6 9440else $as_nop 9441 if test -n "$ac_ct_AR"; then 9442 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9443else 9444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9445for as_dir in $PATH 9446do 9447 IFS=$as_save_IFS 9448 case $as_dir in #((( 9449 '') as_dir=./ ;; 9450 */) ;; 9451 *) as_dir=$as_dir/ ;; 9452 esac 9453 for ac_exec_ext in '' $ac_executable_extensions; do 9454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9455 ac_cv_prog_ac_ct_AR="$ac_prog" 9456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9457 break 2 9458 fi 9459done 9460 done 9461IFS=$as_save_IFS 9462 9463fi 9464fi 9465ac_ct_AR=$ac_cv_prog_ac_ct_AR 9466if test -n "$ac_ct_AR"; then 9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9468printf "%s\n" "$ac_ct_AR" >&6; } 9469else 9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9471printf "%s\n" "no" >&6; } 9472fi 9473 9474 9475 test -n "$ac_ct_AR" && break 9476done 9477 9478 if test "x$ac_ct_AR" = x; then 9479 AR="false" 9480 else 9481 case $cross_compiling:$ac_tool_warned in 9482yes:) 9483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9484printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9485ac_tool_warned=yes ;; 9486esac 9487 AR=$ac_ct_AR 9488 fi 9489fi 9490 9491: ${AR=ar} 9492 9493 9494 9495 9496 9497 9498# Use ARFLAGS variable as AR's operation code to sync the variable naming with 9499# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 9500# higher priority because thats what people were doing historically (setting 9501# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 9502# variable obsoleted/removed. 9503 9504test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 9505lt_ar_flags=$AR_FLAGS 9506 9507 9508 9509 9510 9511 9512# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 9513# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 9514 9515 9516 9517 9518 9519 9520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 9521printf %s "checking for archiver @FILE support... " >&6; } 9522if test ${lt_cv_ar_at_file+y} 9523then : 9524 printf %s "(cached) " >&6 9525else $as_nop 9526 lt_cv_ar_at_file=no 9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9528/* end confdefs.h. */ 9529 9530int 9531main (void) 9532{ 9533 9534 ; 9535 return 0; 9536} 9537_ACEOF 9538if ac_fn_c_try_compile "$LINENO" 9539then : 9540 echo conftest.$ac_objext > conftest.lst 9541 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9543 (eval $lt_ar_try) 2>&5 9544 ac_status=$? 9545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9546 test $ac_status = 0; } 9547 if test 0 -eq "$ac_status"; then 9548 # Ensure the archiver fails upon bogus file names. 9549 rm -f conftest.$ac_objext libconftest.a 9550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9551 (eval $lt_ar_try) 2>&5 9552 ac_status=$? 9553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9554 test $ac_status = 0; } 9555 if test 0 -ne "$ac_status"; then 9556 lt_cv_ar_at_file=@ 9557 fi 9558 fi 9559 rm -f conftest.* libconftest.a 9560 9561fi 9562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9563 9564fi 9565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9566printf "%s\n" "$lt_cv_ar_at_file" >&6; } 9567 9568if test no = "$lt_cv_ar_at_file"; then 9569 archiver_list_spec= 9570else 9571 archiver_list_spec=$lt_cv_ar_at_file 9572fi 9573 9574 9575 9576 9577 9578 9579 9580if test -n "$ac_tool_prefix"; then 9581 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9582set dummy ${ac_tool_prefix}strip; ac_word=$2 9583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9584printf %s "checking for $ac_word... " >&6; } 9585if test ${ac_cv_prog_STRIP+y} 9586then : 9587 printf %s "(cached) " >&6 9588else $as_nop 9589 if test -n "$STRIP"; then 9590 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9591else 9592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9593for as_dir in $PATH 9594do 9595 IFS=$as_save_IFS 9596 case $as_dir in #((( 9597 '') as_dir=./ ;; 9598 */) ;; 9599 *) as_dir=$as_dir/ ;; 9600 esac 9601 for ac_exec_ext in '' $ac_executable_extensions; do 9602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9603 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9605 break 2 9606 fi 9607done 9608 done 9609IFS=$as_save_IFS 9610 9611fi 9612fi 9613STRIP=$ac_cv_prog_STRIP 9614if test -n "$STRIP"; then 9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9616printf "%s\n" "$STRIP" >&6; } 9617else 9618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9619printf "%s\n" "no" >&6; } 9620fi 9621 9622 9623fi 9624if test -z "$ac_cv_prog_STRIP"; then 9625 ac_ct_STRIP=$STRIP 9626 # Extract the first word of "strip", so it can be a program name with args. 9627set dummy strip; ac_word=$2 9628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9629printf %s "checking for $ac_word... " >&6; } 9630if test ${ac_cv_prog_ac_ct_STRIP+y} 9631then : 9632 printf %s "(cached) " >&6 9633else $as_nop 9634 if test -n "$ac_ct_STRIP"; then 9635 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9636else 9637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9638for as_dir in $PATH 9639do 9640 IFS=$as_save_IFS 9641 case $as_dir in #((( 9642 '') as_dir=./ ;; 9643 */) ;; 9644 *) as_dir=$as_dir/ ;; 9645 esac 9646 for ac_exec_ext in '' $ac_executable_extensions; do 9647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9648 ac_cv_prog_ac_ct_STRIP="strip" 9649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9650 break 2 9651 fi 9652done 9653 done 9654IFS=$as_save_IFS 9655 9656fi 9657fi 9658ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9659if test -n "$ac_ct_STRIP"; then 9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9661printf "%s\n" "$ac_ct_STRIP" >&6; } 9662else 9663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9664printf "%s\n" "no" >&6; } 9665fi 9666 9667 if test "x$ac_ct_STRIP" = x; then 9668 STRIP=":" 9669 else 9670 case $cross_compiling:$ac_tool_warned in 9671yes:) 9672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9673printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9674ac_tool_warned=yes ;; 9675esac 9676 STRIP=$ac_ct_STRIP 9677 fi 9678else 9679 STRIP="$ac_cv_prog_STRIP" 9680fi 9681 9682test -z "$STRIP" && STRIP=: 9683 9684 9685 9686 9687 9688 9689if test -n "$ac_tool_prefix"; then 9690 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9691set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9693printf %s "checking for $ac_word... " >&6; } 9694if test ${ac_cv_prog_RANLIB+y} 9695then : 9696 printf %s "(cached) " >&6 9697else $as_nop 9698 if test -n "$RANLIB"; then 9699 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9700else 9701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9702for as_dir in $PATH 9703do 9704 IFS=$as_save_IFS 9705 case $as_dir in #((( 9706 '') as_dir=./ ;; 9707 */) ;; 9708 *) as_dir=$as_dir/ ;; 9709 esac 9710 for ac_exec_ext in '' $ac_executable_extensions; do 9711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9712 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9714 break 2 9715 fi 9716done 9717 done 9718IFS=$as_save_IFS 9719 9720fi 9721fi 9722RANLIB=$ac_cv_prog_RANLIB 9723if test -n "$RANLIB"; then 9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9725printf "%s\n" "$RANLIB" >&6; } 9726else 9727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9728printf "%s\n" "no" >&6; } 9729fi 9730 9731 9732fi 9733if test -z "$ac_cv_prog_RANLIB"; then 9734 ac_ct_RANLIB=$RANLIB 9735 # Extract the first word of "ranlib", so it can be a program name with args. 9736set dummy ranlib; ac_word=$2 9737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9738printf %s "checking for $ac_word... " >&6; } 9739if test ${ac_cv_prog_ac_ct_RANLIB+y} 9740then : 9741 printf %s "(cached) " >&6 9742else $as_nop 9743 if test -n "$ac_ct_RANLIB"; then 9744 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9745else 9746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9747for as_dir in $PATH 9748do 9749 IFS=$as_save_IFS 9750 case $as_dir in #((( 9751 '') as_dir=./ ;; 9752 */) ;; 9753 *) as_dir=$as_dir/ ;; 9754 esac 9755 for ac_exec_ext in '' $ac_executable_extensions; do 9756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9757 ac_cv_prog_ac_ct_RANLIB="ranlib" 9758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9759 break 2 9760 fi 9761done 9762 done 9763IFS=$as_save_IFS 9764 9765fi 9766fi 9767ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9768if test -n "$ac_ct_RANLIB"; then 9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9770printf "%s\n" "$ac_ct_RANLIB" >&6; } 9771else 9772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9773printf "%s\n" "no" >&6; } 9774fi 9775 9776 if test "x$ac_ct_RANLIB" = x; then 9777 RANLIB=":" 9778 else 9779 case $cross_compiling:$ac_tool_warned in 9780yes:) 9781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9782printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9783ac_tool_warned=yes ;; 9784esac 9785 RANLIB=$ac_ct_RANLIB 9786 fi 9787else 9788 RANLIB="$ac_cv_prog_RANLIB" 9789fi 9790 9791test -z "$RANLIB" && RANLIB=: 9792 9793 9794 9795 9796 9797 9798# Determine commands to create old-style static archives. 9799old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9800old_postinstall_cmds='chmod 644 $oldlib' 9801old_postuninstall_cmds= 9802 9803if test -n "$RANLIB"; then 9804 case $host_os in 9805 bitrig* | openbsd*) 9806 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 9807 ;; 9808 *) 9809 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 9810 ;; 9811 esac 9812 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 9813fi 9814 9815case $host_os in 9816 darwin*) 9817 lock_old_archive_extraction=yes ;; 9818 *) 9819 lock_old_archive_extraction=no ;; 9820esac 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842for ac_prog in gawk mawk nawk awk 9843do 9844 # Extract the first word of "$ac_prog", so it can be a program name with args. 9845set dummy $ac_prog; ac_word=$2 9846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9847printf %s "checking for $ac_word... " >&6; } 9848if test ${ac_cv_prog_AWK+y} 9849then : 9850 printf %s "(cached) " >&6 9851else $as_nop 9852 if test -n "$AWK"; then 9853 ac_cv_prog_AWK="$AWK" # Let the user override the test. 9854else 9855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9856for as_dir in $PATH 9857do 9858 IFS=$as_save_IFS 9859 case $as_dir in #((( 9860 '') as_dir=./ ;; 9861 */) ;; 9862 *) as_dir=$as_dir/ ;; 9863 esac 9864 for ac_exec_ext in '' $ac_executable_extensions; do 9865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9866 ac_cv_prog_AWK="$ac_prog" 9867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9868 break 2 9869 fi 9870done 9871 done 9872IFS=$as_save_IFS 9873 9874fi 9875fi 9876AWK=$ac_cv_prog_AWK 9877if test -n "$AWK"; then 9878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 9879printf "%s\n" "$AWK" >&6; } 9880else 9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9882printf "%s\n" "no" >&6; } 9883fi 9884 9885 9886 test -n "$AWK" && break 9887done 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907# If no C compiler was specified, use CC. 9908LTCC=${LTCC-"$CC"} 9909 9910# If no C compiler flags were specified, use CFLAGS. 9911LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9912 9913# Allow CC to be a program name with arguments. 9914compiler=$CC 9915 9916 9917# Check for command to grab the raw symbol name followed by C symbol from nm. 9918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9919printf %s "checking command to parse $NM output from $compiler object... " >&6; } 9920if test ${lt_cv_sys_global_symbol_pipe+y} 9921then : 9922 printf %s "(cached) " >&6 9923else $as_nop 9924 9925# These are sane defaults that work on at least a few old systems. 9926# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9927 9928# Character class describing NM global symbol codes. 9929symcode='[BCDEGRST]' 9930 9931# Regexp to match symbols that can be accessed directly from C. 9932sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9933 9934# Define system-specific variables. 9935case $host_os in 9936aix*) 9937 symcode='[BCDT]' 9938 ;; 9939cygwin* | mingw* | pw32* | cegcc*) 9940 symcode='[ABCDGISTW]' 9941 ;; 9942hpux*) 9943 if test ia64 = "$host_cpu"; then 9944 symcode='[ABCDEGRST]' 9945 fi 9946 ;; 9947irix* | nonstopux*) 9948 symcode='[BCDEGRST]' 9949 ;; 9950osf*) 9951 symcode='[BCDEGQRST]' 9952 ;; 9953solaris*) 9954 symcode='[BDRT]' 9955 ;; 9956sco3.2v5*) 9957 symcode='[DT]' 9958 ;; 9959sysv4.2uw2*) 9960 symcode='[DT]' 9961 ;; 9962sysv5* | sco5v6* | unixware* | OpenUNIX*) 9963 symcode='[ABDT]' 9964 ;; 9965sysv4) 9966 symcode='[DFNSTU]' 9967 ;; 9968esac 9969 9970# If we're using GNU nm, then use its standard symbol codes. 9971case `$NM -V 2>&1` in 9972*GNU* | *'with BFD'*) 9973 symcode='[ABCDGIRSTW]' ;; 9974esac 9975 9976if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9977 # Gets list of data symbols to import. 9978 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 9979 # Adjust the below global symbol transforms to fixup imported variables. 9980 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 9981 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 9982 lt_c_name_lib_hook="\ 9983 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 9984 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 9985else 9986 # Disable hooks by default. 9987 lt_cv_sys_global_symbol_to_import= 9988 lt_cdecl_hook= 9989 lt_c_name_hook= 9990 lt_c_name_lib_hook= 9991fi 9992 9993# Transform an extracted symbol line into a proper C declaration. 9994# Some systems (esp. on ia64) link data and code symbols differently, 9995# so use this general approach. 9996lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 9997$lt_cdecl_hook\ 9998" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 9999" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 10000 10001# Transform an extracted symbol line into symbol name and symbol address 10002lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 10003$lt_c_name_hook\ 10004" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10005" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 10006 10007# Transform an extracted symbol line into symbol name with lib prefix and 10008# symbol address. 10009lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 10010$lt_c_name_lib_hook\ 10011" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10012" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 10013" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 10014 10015# Handle CRLF in mingw tool chain 10016opt_cr= 10017case $build_os in 10018mingw*) 10019 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10020 ;; 10021esac 10022 10023# Try without a prefix underscore, then with it. 10024for ac_symprfx in "" "_"; do 10025 10026 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10027 symxfrm="\\1 $ac_symprfx\\2 \\2" 10028 10029 # Write the raw and C identifiers. 10030 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10031 # Fake it for dumpbin and say T for any non-static function, 10032 # D for any global variable and I for any imported variable. 10033 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 10034 # which start with @ or ?. 10035 lt_cv_sys_global_symbol_pipe="$AWK '"\ 10036" {last_section=section; section=\$ 3};"\ 10037" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 10038" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 10039" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 10040" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 10041" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 10042" \$ 0!~/External *\|/{next};"\ 10043" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 10044" {if(hide[section]) next};"\ 10045" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 10046" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 10047" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 10048" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 10049" ' prfx=^$ac_symprfx" 10050 else 10051 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10052 fi 10053 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 10054 10055 # Check to see that the pipe works correctly. 10056 pipe_works=no 10057 10058 rm -f conftest* 10059 cat > conftest.$ac_ext <<_LT_EOF 10060#ifdef __cplusplus 10061extern "C" { 10062#endif 10063char nm_test_var; 10064void nm_test_func(void); 10065void nm_test_func(void){} 10066#ifdef __cplusplus 10067} 10068#endif 10069int main(){nm_test_var='a';nm_test_func();return(0);} 10070_LT_EOF 10071 10072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10073 (eval $ac_compile) 2>&5 10074 ac_status=$? 10075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10076 test $ac_status = 0; }; then 10077 # Now try to grab the symbols. 10078 nlist=conftest.nm 10079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 10080 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 10081 ac_status=$? 10082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10083 test $ac_status = 0; } && test -s "$nlist"; then 10084 # Try sorting and uniquifying the output. 10085 if sort "$nlist" | uniq > "$nlist"T; then 10086 mv -f "$nlist"T "$nlist" 10087 else 10088 rm -f "$nlist"T 10089 fi 10090 10091 # Make sure that we snagged all the symbols we need. 10092 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 10093 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 10094 cat <<_LT_EOF > conftest.$ac_ext 10095/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 10096#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 10097/* DATA imports from DLLs on WIN32 can't be const, because runtime 10098 relocations are performed -- see ld's documentation on pseudo-relocs. */ 10099# define LT_DLSYM_CONST 10100#elif defined __osf__ 10101/* This system does not cope well with relocations in const data. */ 10102# define LT_DLSYM_CONST 10103#else 10104# define LT_DLSYM_CONST const 10105#endif 10106 10107#ifdef __cplusplus 10108extern "C" { 10109#endif 10110 10111_LT_EOF 10112 # Now generate the symbol file. 10113 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 10114 10115 cat <<_LT_EOF >> conftest.$ac_ext 10116 10117/* The mapping between symbol names and symbols. */ 10118LT_DLSYM_CONST struct { 10119 const char *name; 10120 void *address; 10121} 10122lt__PROGRAM__LTX_preloaded_symbols[] = 10123{ 10124 { "@PROGRAM@", (void *) 0 }, 10125_LT_EOF 10126 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 10127 cat <<\_LT_EOF >> conftest.$ac_ext 10128 {0, (void *) 0} 10129}; 10130 10131/* This works around a problem in FreeBSD linker */ 10132#ifdef FREEBSD_WORKAROUND 10133static const void *lt_preloaded_setup() { 10134 return lt__PROGRAM__LTX_preloaded_symbols; 10135} 10136#endif 10137 10138#ifdef __cplusplus 10139} 10140#endif 10141_LT_EOF 10142 # Now try linking the two files. 10143 mv conftest.$ac_objext conftstm.$ac_objext 10144 lt_globsym_save_LIBS=$LIBS 10145 lt_globsym_save_CFLAGS=$CFLAGS 10146 LIBS=conftstm.$ac_objext 10147 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10149 (eval $ac_link) 2>&5 10150 ac_status=$? 10151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10152 test $ac_status = 0; } && test -s conftest$ac_exeext; then 10153 pipe_works=yes 10154 fi 10155 LIBS=$lt_globsym_save_LIBS 10156 CFLAGS=$lt_globsym_save_CFLAGS 10157 else 10158 echo "cannot find nm_test_func in $nlist" >&5 10159 fi 10160 else 10161 echo "cannot find nm_test_var in $nlist" >&5 10162 fi 10163 else 10164 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10165 fi 10166 else 10167 echo "$progname: failed program was:" >&5 10168 cat conftest.$ac_ext >&5 10169 fi 10170 rm -rf conftest* conftst* 10171 10172 # Do not use the global_symbol_pipe unless it works. 10173 if test yes = "$pipe_works"; then 10174 break 10175 else 10176 lt_cv_sys_global_symbol_pipe= 10177 fi 10178done 10179 10180fi 10181 10182if test -z "$lt_cv_sys_global_symbol_pipe"; then 10183 lt_cv_sys_global_symbol_to_cdecl= 10184fi 10185if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 10187printf "%s\n" "failed" >&6; } 10188else 10189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 10190printf "%s\n" "ok" >&6; } 10191fi 10192 10193# Response file support. 10194if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10195 nm_file_list_spec='@' 10196elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 10197 nm_file_list_spec='@' 10198fi 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 10237printf %s "checking for sysroot... " >&6; } 10238 10239# Check whether --with-sysroot was given. 10240if test ${with_sysroot+y} 10241then : 10242 withval=$with_sysroot; 10243else $as_nop 10244 with_sysroot=no 10245fi 10246 10247 10248lt_sysroot= 10249case $with_sysroot in #( 10250 yes) 10251 if test yes = "$GCC"; then 10252 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 10253 fi 10254 ;; #( 10255 /*) 10256 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 10257 ;; #( 10258 no|'') 10259 ;; #( 10260 *) 10261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 10262printf "%s\n" "$with_sysroot" >&6; } 10263 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 10264 ;; 10265esac 10266 10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 10268printf "%s\n" "${lt_sysroot:-no}" >&6; } 10269 10270 10271 10272 10273 10274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 10275printf %s "checking for a working dd... " >&6; } 10276if test ${ac_cv_path_lt_DD+y} 10277then : 10278 printf %s "(cached) " >&6 10279else $as_nop 10280 printf 0123456789abcdef0123456789abcdef >conftest.i 10281cat conftest.i conftest.i >conftest2.i 10282: ${lt_DD:=$DD} 10283if test -z "$lt_DD"; then 10284 ac_path_lt_DD_found=false 10285 # Loop through the user's path and test for each of PROGNAME-LIST 10286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10287for as_dir in $PATH 10288do 10289 IFS=$as_save_IFS 10290 case $as_dir in #((( 10291 '') as_dir=./ ;; 10292 */) ;; 10293 *) as_dir=$as_dir/ ;; 10294 esac 10295 for ac_prog in dd 10296 do 10297 for ac_exec_ext in '' $ac_executable_extensions; do 10298 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 10299 as_fn_executable_p "$ac_path_lt_DD" || continue 10300if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10301 cmp -s conftest.i conftest.out \ 10302 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 10303fi 10304 $ac_path_lt_DD_found && break 3 10305 done 10306 done 10307 done 10308IFS=$as_save_IFS 10309 if test -z "$ac_cv_path_lt_DD"; then 10310 : 10311 fi 10312else 10313 ac_cv_path_lt_DD=$lt_DD 10314fi 10315 10316rm -f conftest.i conftest2.i conftest.out 10317fi 10318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 10319printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 10320 10321 10322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 10323printf %s "checking how to truncate binary pipes... " >&6; } 10324if test ${lt_cv_truncate_bin+y} 10325then : 10326 printf %s "(cached) " >&6 10327else $as_nop 10328 printf 0123456789abcdef0123456789abcdef >conftest.i 10329cat conftest.i conftest.i >conftest2.i 10330lt_cv_truncate_bin= 10331if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10332 cmp -s conftest.i conftest.out \ 10333 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 10334fi 10335rm -f conftest.i conftest2.i conftest.out 10336test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 10337fi 10338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 10339printf "%s\n" "$lt_cv_truncate_bin" >&6; } 10340 10341 10342 10343 10344 10345 10346 10347# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 10348func_cc_basename () 10349{ 10350 for cc_temp in $*""; do 10351 case $cc_temp in 10352 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10353 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10354 \-*) ;; 10355 *) break;; 10356 esac 10357 done 10358 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10359} 10360 10361# Check whether --enable-libtool-lock was given. 10362if test ${enable_libtool_lock+y} 10363then : 10364 enableval=$enable_libtool_lock; 10365fi 10366 10367test no = "$enable_libtool_lock" || enable_libtool_lock=yes 10368 10369# Some flags need to be propagated to the compiler or linker for good 10370# libtool support. 10371case $host in 10372ia64-*-hpux*) 10373 # Find out what ABI is being produced by ac_compile, and set mode 10374 # options accordingly. 10375 echo 'int i;' > conftest.$ac_ext 10376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10377 (eval $ac_compile) 2>&5 10378 ac_status=$? 10379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10380 test $ac_status = 0; }; then 10381 case `$FILECMD conftest.$ac_objext` in 10382 *ELF-32*) 10383 HPUX_IA64_MODE=32 10384 ;; 10385 *ELF-64*) 10386 HPUX_IA64_MODE=64 10387 ;; 10388 esac 10389 fi 10390 rm -rf conftest* 10391 ;; 10392*-*-irix6*) 10393 # Find out what ABI is being produced by ac_compile, and set linker 10394 # options accordingly. 10395 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10397 (eval $ac_compile) 2>&5 10398 ac_status=$? 10399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10400 test $ac_status = 0; }; then 10401 if test yes = "$lt_cv_prog_gnu_ld"; then 10402 case `$FILECMD conftest.$ac_objext` in 10403 *32-bit*) 10404 LD="${LD-ld} -melf32bsmip" 10405 ;; 10406 *N32*) 10407 LD="${LD-ld} -melf32bmipn32" 10408 ;; 10409 *64-bit*) 10410 LD="${LD-ld} -melf64bmip" 10411 ;; 10412 esac 10413 else 10414 case `$FILECMD conftest.$ac_objext` in 10415 *32-bit*) 10416 LD="${LD-ld} -32" 10417 ;; 10418 *N32*) 10419 LD="${LD-ld} -n32" 10420 ;; 10421 *64-bit*) 10422 LD="${LD-ld} -64" 10423 ;; 10424 esac 10425 fi 10426 fi 10427 rm -rf conftest* 10428 ;; 10429 10430mips64*-*linux*) 10431 # Find out what ABI is being produced by ac_compile, and set linker 10432 # options accordingly. 10433 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10435 (eval $ac_compile) 2>&5 10436 ac_status=$? 10437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10438 test $ac_status = 0; }; then 10439 emul=elf 10440 case `$FILECMD conftest.$ac_objext` in 10441 *32-bit*) 10442 emul="${emul}32" 10443 ;; 10444 *64-bit*) 10445 emul="${emul}64" 10446 ;; 10447 esac 10448 case `$FILECMD conftest.$ac_objext` in 10449 *MSB*) 10450 emul="${emul}btsmip" 10451 ;; 10452 *LSB*) 10453 emul="${emul}ltsmip" 10454 ;; 10455 esac 10456 case `$FILECMD conftest.$ac_objext` in 10457 *N32*) 10458 emul="${emul}n32" 10459 ;; 10460 esac 10461 LD="${LD-ld} -m $emul" 10462 fi 10463 rm -rf conftest* 10464 ;; 10465 10466x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 10467s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 10468 # Find out what ABI is being produced by ac_compile, and set linker 10469 # options accordingly. Note that the listed cases only cover the 10470 # situations where additional linker options are needed (such as when 10471 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 10472 # vice versa); the common cases where no linker options are needed do 10473 # not appear in the list. 10474 echo 'int i;' > conftest.$ac_ext 10475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10476 (eval $ac_compile) 2>&5 10477 ac_status=$? 10478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10479 test $ac_status = 0; }; then 10480 case `$FILECMD conftest.o` in 10481 *32-bit*) 10482 case $host in 10483 x86_64-*kfreebsd*-gnu) 10484 LD="${LD-ld} -m elf_i386_fbsd" 10485 ;; 10486 x86_64-*linux*) 10487 case `$FILECMD conftest.o` in 10488 *x86-64*) 10489 LD="${LD-ld} -m elf32_x86_64" 10490 ;; 10491 *) 10492 LD="${LD-ld} -m elf_i386" 10493 ;; 10494 esac 10495 ;; 10496 powerpc64le-*linux*) 10497 LD="${LD-ld} -m elf32lppclinux" 10498 ;; 10499 powerpc64-*linux*) 10500 LD="${LD-ld} -m elf32ppclinux" 10501 ;; 10502 s390x-*linux*) 10503 LD="${LD-ld} -m elf_s390" 10504 ;; 10505 sparc64-*linux*) 10506 LD="${LD-ld} -m elf32_sparc" 10507 ;; 10508 esac 10509 ;; 10510 *64-bit*) 10511 case $host in 10512 x86_64-*kfreebsd*-gnu) 10513 LD="${LD-ld} -m elf_x86_64_fbsd" 10514 ;; 10515 x86_64-*linux*) 10516 LD="${LD-ld} -m elf_x86_64" 10517 ;; 10518 powerpcle-*linux*) 10519 LD="${LD-ld} -m elf64lppc" 10520 ;; 10521 powerpc-*linux*) 10522 LD="${LD-ld} -m elf64ppc" 10523 ;; 10524 s390*-*linux*|s390*-*tpf*) 10525 LD="${LD-ld} -m elf64_s390" 10526 ;; 10527 sparc*-*linux*) 10528 LD="${LD-ld} -m elf64_sparc" 10529 ;; 10530 esac 10531 ;; 10532 esac 10533 fi 10534 rm -rf conftest* 10535 ;; 10536 10537*-*-sco3.2v5*) 10538 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10539 SAVE_CFLAGS=$CFLAGS 10540 CFLAGS="$CFLAGS -belf" 10541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10542printf %s "checking whether the C compiler needs -belf... " >&6; } 10543if test ${lt_cv_cc_needs_belf+y} 10544then : 10545 printf %s "(cached) " >&6 10546else $as_nop 10547 ac_ext=c 10548ac_cpp='$CPP $CPPFLAGS' 10549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10551ac_compiler_gnu=$ac_cv_c_compiler_gnu 10552 10553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10554/* end confdefs.h. */ 10555 10556int 10557main (void) 10558{ 10559 10560 ; 10561 return 0; 10562} 10563_ACEOF 10564if ac_fn_c_try_link "$LINENO" 10565then : 10566 lt_cv_cc_needs_belf=yes 10567else $as_nop 10568 lt_cv_cc_needs_belf=no 10569fi 10570rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10571 conftest$ac_exeext conftest.$ac_ext 10572 ac_ext=c 10573ac_cpp='$CPP $CPPFLAGS' 10574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10576ac_compiler_gnu=$ac_cv_c_compiler_gnu 10577 10578fi 10579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10580printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 10581 if test yes != "$lt_cv_cc_needs_belf"; then 10582 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10583 CFLAGS=$SAVE_CFLAGS 10584 fi 10585 ;; 10586*-*solaris*) 10587 # Find out what ABI is being produced by ac_compile, and set linker 10588 # options accordingly. 10589 echo 'int i;' > conftest.$ac_ext 10590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10591 (eval $ac_compile) 2>&5 10592 ac_status=$? 10593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10594 test $ac_status = 0; }; then 10595 case `$FILECMD conftest.o` in 10596 *64-bit*) 10597 case $lt_cv_prog_gnu_ld in 10598 yes*) 10599 case $host in 10600 i?86-*-solaris*|x86_64-*-solaris*) 10601 LD="${LD-ld} -m elf_x86_64" 10602 ;; 10603 sparc*-*-solaris*) 10604 LD="${LD-ld} -m elf64_sparc" 10605 ;; 10606 esac 10607 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 10608 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 10609 LD=${LD-ld}_sol2 10610 fi 10611 ;; 10612 *) 10613 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10614 LD="${LD-ld} -64" 10615 fi 10616 ;; 10617 esac 10618 ;; 10619 esac 10620 fi 10621 rm -rf conftest* 10622 ;; 10623esac 10624 10625need_locks=$enable_libtool_lock 10626 10627if test -n "$ac_tool_prefix"; then 10628 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10629set dummy ${ac_tool_prefix}mt; ac_word=$2 10630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10631printf %s "checking for $ac_word... " >&6; } 10632if test ${ac_cv_prog_MANIFEST_TOOL+y} 10633then : 10634 printf %s "(cached) " >&6 10635else $as_nop 10636 if test -n "$MANIFEST_TOOL"; then 10637 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10638else 10639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10640for as_dir in $PATH 10641do 10642 IFS=$as_save_IFS 10643 case $as_dir in #((( 10644 '') as_dir=./ ;; 10645 */) ;; 10646 *) as_dir=$as_dir/ ;; 10647 esac 10648 for ac_exec_ext in '' $ac_executable_extensions; do 10649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10650 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10652 break 2 10653 fi 10654done 10655 done 10656IFS=$as_save_IFS 10657 10658fi 10659fi 10660MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10661if test -n "$MANIFEST_TOOL"; then 10662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10663printf "%s\n" "$MANIFEST_TOOL" >&6; } 10664else 10665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10666printf "%s\n" "no" >&6; } 10667fi 10668 10669 10670fi 10671if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10672 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10673 # Extract the first word of "mt", so it can be a program name with args. 10674set dummy mt; ac_word=$2 10675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10676printf %s "checking for $ac_word... " >&6; } 10677if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 10678then : 10679 printf %s "(cached) " >&6 10680else $as_nop 10681 if test -n "$ac_ct_MANIFEST_TOOL"; then 10682 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10683else 10684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10685for as_dir in $PATH 10686do 10687 IFS=$as_save_IFS 10688 case $as_dir in #((( 10689 '') as_dir=./ ;; 10690 */) ;; 10691 *) as_dir=$as_dir/ ;; 10692 esac 10693 for ac_exec_ext in '' $ac_executable_extensions; do 10694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10695 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10697 break 2 10698 fi 10699done 10700 done 10701IFS=$as_save_IFS 10702 10703fi 10704fi 10705ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10706if test -n "$ac_ct_MANIFEST_TOOL"; then 10707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10708printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 10709else 10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10711printf "%s\n" "no" >&6; } 10712fi 10713 10714 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10715 MANIFEST_TOOL=":" 10716 else 10717 case $cross_compiling:$ac_tool_warned in 10718yes:) 10719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10720printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10721ac_tool_warned=yes ;; 10722esac 10723 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10724 fi 10725else 10726 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10727fi 10728 10729test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10731printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10732if test ${lt_cv_path_mainfest_tool+y} 10733then : 10734 printf %s "(cached) " >&6 10735else $as_nop 10736 lt_cv_path_mainfest_tool=no 10737 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10738 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10739 cat conftest.err >&5 10740 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10741 lt_cv_path_mainfest_tool=yes 10742 fi 10743 rm -f conftest* 10744fi 10745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10746printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 10747if test yes != "$lt_cv_path_mainfest_tool"; then 10748 MANIFEST_TOOL=: 10749fi 10750 10751 10752 10753 10754 10755 10756 case $host_os in 10757 rhapsody* | darwin*) 10758 if test -n "$ac_tool_prefix"; then 10759 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10760set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10762printf %s "checking for $ac_word... " >&6; } 10763if test ${ac_cv_prog_DSYMUTIL+y} 10764then : 10765 printf %s "(cached) " >&6 10766else $as_nop 10767 if test -n "$DSYMUTIL"; then 10768 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10769else 10770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10771for as_dir in $PATH 10772do 10773 IFS=$as_save_IFS 10774 case $as_dir in #((( 10775 '') as_dir=./ ;; 10776 */) ;; 10777 *) as_dir=$as_dir/ ;; 10778 esac 10779 for ac_exec_ext in '' $ac_executable_extensions; do 10780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10781 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10783 break 2 10784 fi 10785done 10786 done 10787IFS=$as_save_IFS 10788 10789fi 10790fi 10791DSYMUTIL=$ac_cv_prog_DSYMUTIL 10792if test -n "$DSYMUTIL"; then 10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10794printf "%s\n" "$DSYMUTIL" >&6; } 10795else 10796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10797printf "%s\n" "no" >&6; } 10798fi 10799 10800 10801fi 10802if test -z "$ac_cv_prog_DSYMUTIL"; then 10803 ac_ct_DSYMUTIL=$DSYMUTIL 10804 # Extract the first word of "dsymutil", so it can be a program name with args. 10805set dummy dsymutil; ac_word=$2 10806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10807printf %s "checking for $ac_word... " >&6; } 10808if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 10809then : 10810 printf %s "(cached) " >&6 10811else $as_nop 10812 if test -n "$ac_ct_DSYMUTIL"; then 10813 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10814else 10815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10816for as_dir in $PATH 10817do 10818 IFS=$as_save_IFS 10819 case $as_dir in #((( 10820 '') as_dir=./ ;; 10821 */) ;; 10822 *) as_dir=$as_dir/ ;; 10823 esac 10824 for ac_exec_ext in '' $ac_executable_extensions; do 10825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10826 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10828 break 2 10829 fi 10830done 10831 done 10832IFS=$as_save_IFS 10833 10834fi 10835fi 10836ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10837if test -n "$ac_ct_DSYMUTIL"; then 10838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10839printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 10840else 10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10842printf "%s\n" "no" >&6; } 10843fi 10844 10845 if test "x$ac_ct_DSYMUTIL" = x; then 10846 DSYMUTIL=":" 10847 else 10848 case $cross_compiling:$ac_tool_warned in 10849yes:) 10850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10851printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10852ac_tool_warned=yes ;; 10853esac 10854 DSYMUTIL=$ac_ct_DSYMUTIL 10855 fi 10856else 10857 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10858fi 10859 10860 if test -n "$ac_tool_prefix"; then 10861 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10862set dummy ${ac_tool_prefix}nmedit; ac_word=$2 10863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10864printf %s "checking for $ac_word... " >&6; } 10865if test ${ac_cv_prog_NMEDIT+y} 10866then : 10867 printf %s "(cached) " >&6 10868else $as_nop 10869 if test -n "$NMEDIT"; then 10870 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 10871else 10872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10873for as_dir in $PATH 10874do 10875 IFS=$as_save_IFS 10876 case $as_dir in #((( 10877 '') as_dir=./ ;; 10878 */) ;; 10879 *) as_dir=$as_dir/ ;; 10880 esac 10881 for ac_exec_ext in '' $ac_executable_extensions; do 10882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10883 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 10884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10885 break 2 10886 fi 10887done 10888 done 10889IFS=$as_save_IFS 10890 10891fi 10892fi 10893NMEDIT=$ac_cv_prog_NMEDIT 10894if test -n "$NMEDIT"; then 10895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10896printf "%s\n" "$NMEDIT" >&6; } 10897else 10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10899printf "%s\n" "no" >&6; } 10900fi 10901 10902 10903fi 10904if test -z "$ac_cv_prog_NMEDIT"; then 10905 ac_ct_NMEDIT=$NMEDIT 10906 # Extract the first word of "nmedit", so it can be a program name with args. 10907set dummy nmedit; ac_word=$2 10908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10909printf %s "checking for $ac_word... " >&6; } 10910if test ${ac_cv_prog_ac_ct_NMEDIT+y} 10911then : 10912 printf %s "(cached) " >&6 10913else $as_nop 10914 if test -n "$ac_ct_NMEDIT"; then 10915 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10916else 10917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10918for as_dir in $PATH 10919do 10920 IFS=$as_save_IFS 10921 case $as_dir in #((( 10922 '') as_dir=./ ;; 10923 */) ;; 10924 *) as_dir=$as_dir/ ;; 10925 esac 10926 for ac_exec_ext in '' $ac_executable_extensions; do 10927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10928 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10930 break 2 10931 fi 10932done 10933 done 10934IFS=$as_save_IFS 10935 10936fi 10937fi 10938ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10939if test -n "$ac_ct_NMEDIT"; then 10940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10941printf "%s\n" "$ac_ct_NMEDIT" >&6; } 10942else 10943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10944printf "%s\n" "no" >&6; } 10945fi 10946 10947 if test "x$ac_ct_NMEDIT" = x; then 10948 NMEDIT=":" 10949 else 10950 case $cross_compiling:$ac_tool_warned in 10951yes:) 10952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10953printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10954ac_tool_warned=yes ;; 10955esac 10956 NMEDIT=$ac_ct_NMEDIT 10957 fi 10958else 10959 NMEDIT="$ac_cv_prog_NMEDIT" 10960fi 10961 10962 if test -n "$ac_tool_prefix"; then 10963 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10964set dummy ${ac_tool_prefix}lipo; ac_word=$2 10965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10966printf %s "checking for $ac_word... " >&6; } 10967if test ${ac_cv_prog_LIPO+y} 10968then : 10969 printf %s "(cached) " >&6 10970else $as_nop 10971 if test -n "$LIPO"; then 10972 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10973else 10974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10975for as_dir in $PATH 10976do 10977 IFS=$as_save_IFS 10978 case $as_dir in #((( 10979 '') as_dir=./ ;; 10980 */) ;; 10981 *) as_dir=$as_dir/ ;; 10982 esac 10983 for ac_exec_ext in '' $ac_executable_extensions; do 10984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10985 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10987 break 2 10988 fi 10989done 10990 done 10991IFS=$as_save_IFS 10992 10993fi 10994fi 10995LIPO=$ac_cv_prog_LIPO 10996if test -n "$LIPO"; then 10997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10998printf "%s\n" "$LIPO" >&6; } 10999else 11000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11001printf "%s\n" "no" >&6; } 11002fi 11003 11004 11005fi 11006if test -z "$ac_cv_prog_LIPO"; then 11007 ac_ct_LIPO=$LIPO 11008 # Extract the first word of "lipo", so it can be a program name with args. 11009set dummy lipo; ac_word=$2 11010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11011printf %s "checking for $ac_word... " >&6; } 11012if test ${ac_cv_prog_ac_ct_LIPO+y} 11013then : 11014 printf %s "(cached) " >&6 11015else $as_nop 11016 if test -n "$ac_ct_LIPO"; then 11017 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 11018else 11019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11020for as_dir in $PATH 11021do 11022 IFS=$as_save_IFS 11023 case $as_dir in #((( 11024 '') as_dir=./ ;; 11025 */) ;; 11026 *) as_dir=$as_dir/ ;; 11027 esac 11028 for ac_exec_ext in '' $ac_executable_extensions; do 11029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11030 ac_cv_prog_ac_ct_LIPO="lipo" 11031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11032 break 2 11033 fi 11034done 11035 done 11036IFS=$as_save_IFS 11037 11038fi 11039fi 11040ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 11041if test -n "$ac_ct_LIPO"; then 11042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 11043printf "%s\n" "$ac_ct_LIPO" >&6; } 11044else 11045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11046printf "%s\n" "no" >&6; } 11047fi 11048 11049 if test "x$ac_ct_LIPO" = x; then 11050 LIPO=":" 11051 else 11052 case $cross_compiling:$ac_tool_warned in 11053yes:) 11054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11055printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11056ac_tool_warned=yes ;; 11057esac 11058 LIPO=$ac_ct_LIPO 11059 fi 11060else 11061 LIPO="$ac_cv_prog_LIPO" 11062fi 11063 11064 if test -n "$ac_tool_prefix"; then 11065 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 11066set dummy ${ac_tool_prefix}otool; ac_word=$2 11067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11068printf %s "checking for $ac_word... " >&6; } 11069if test ${ac_cv_prog_OTOOL+y} 11070then : 11071 printf %s "(cached) " >&6 11072else $as_nop 11073 if test -n "$OTOOL"; then 11074 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 11075else 11076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11077for as_dir in $PATH 11078do 11079 IFS=$as_save_IFS 11080 case $as_dir in #((( 11081 '') as_dir=./ ;; 11082 */) ;; 11083 *) as_dir=$as_dir/ ;; 11084 esac 11085 for ac_exec_ext in '' $ac_executable_extensions; do 11086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11087 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 11088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11089 break 2 11090 fi 11091done 11092 done 11093IFS=$as_save_IFS 11094 11095fi 11096fi 11097OTOOL=$ac_cv_prog_OTOOL 11098if test -n "$OTOOL"; then 11099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 11100printf "%s\n" "$OTOOL" >&6; } 11101else 11102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11103printf "%s\n" "no" >&6; } 11104fi 11105 11106 11107fi 11108if test -z "$ac_cv_prog_OTOOL"; then 11109 ac_ct_OTOOL=$OTOOL 11110 # Extract the first word of "otool", so it can be a program name with args. 11111set dummy otool; ac_word=$2 11112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11113printf %s "checking for $ac_word... " >&6; } 11114if test ${ac_cv_prog_ac_ct_OTOOL+y} 11115then : 11116 printf %s "(cached) " >&6 11117else $as_nop 11118 if test -n "$ac_ct_OTOOL"; then 11119 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 11120else 11121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11122for as_dir in $PATH 11123do 11124 IFS=$as_save_IFS 11125 case $as_dir in #((( 11126 '') as_dir=./ ;; 11127 */) ;; 11128 *) as_dir=$as_dir/ ;; 11129 esac 11130 for ac_exec_ext in '' $ac_executable_extensions; do 11131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11132 ac_cv_prog_ac_ct_OTOOL="otool" 11133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11134 break 2 11135 fi 11136done 11137 done 11138IFS=$as_save_IFS 11139 11140fi 11141fi 11142ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 11143if test -n "$ac_ct_OTOOL"; then 11144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 11145printf "%s\n" "$ac_ct_OTOOL" >&6; } 11146else 11147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11148printf "%s\n" "no" >&6; } 11149fi 11150 11151 if test "x$ac_ct_OTOOL" = x; then 11152 OTOOL=":" 11153 else 11154 case $cross_compiling:$ac_tool_warned in 11155yes:) 11156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11157printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11158ac_tool_warned=yes ;; 11159esac 11160 OTOOL=$ac_ct_OTOOL 11161 fi 11162else 11163 OTOOL="$ac_cv_prog_OTOOL" 11164fi 11165 11166 if test -n "$ac_tool_prefix"; then 11167 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 11168set dummy ${ac_tool_prefix}otool64; ac_word=$2 11169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11170printf %s "checking for $ac_word... " >&6; } 11171if test ${ac_cv_prog_OTOOL64+y} 11172then : 11173 printf %s "(cached) " >&6 11174else $as_nop 11175 if test -n "$OTOOL64"; then 11176 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 11177else 11178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11179for as_dir in $PATH 11180do 11181 IFS=$as_save_IFS 11182 case $as_dir in #((( 11183 '') as_dir=./ ;; 11184 */) ;; 11185 *) as_dir=$as_dir/ ;; 11186 esac 11187 for ac_exec_ext in '' $ac_executable_extensions; do 11188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11189 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 11190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11191 break 2 11192 fi 11193done 11194 done 11195IFS=$as_save_IFS 11196 11197fi 11198fi 11199OTOOL64=$ac_cv_prog_OTOOL64 11200if test -n "$OTOOL64"; then 11201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 11202printf "%s\n" "$OTOOL64" >&6; } 11203else 11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11205printf "%s\n" "no" >&6; } 11206fi 11207 11208 11209fi 11210if test -z "$ac_cv_prog_OTOOL64"; then 11211 ac_ct_OTOOL64=$OTOOL64 11212 # Extract the first word of "otool64", so it can be a program name with args. 11213set dummy otool64; ac_word=$2 11214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11215printf %s "checking for $ac_word... " >&6; } 11216if test ${ac_cv_prog_ac_ct_OTOOL64+y} 11217then : 11218 printf %s "(cached) " >&6 11219else $as_nop 11220 if test -n "$ac_ct_OTOOL64"; then 11221 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 11222else 11223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11224for as_dir in $PATH 11225do 11226 IFS=$as_save_IFS 11227 case $as_dir in #((( 11228 '') as_dir=./ ;; 11229 */) ;; 11230 *) as_dir=$as_dir/ ;; 11231 esac 11232 for ac_exec_ext in '' $ac_executable_extensions; do 11233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11234 ac_cv_prog_ac_ct_OTOOL64="otool64" 11235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11236 break 2 11237 fi 11238done 11239 done 11240IFS=$as_save_IFS 11241 11242fi 11243fi 11244ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 11245if test -n "$ac_ct_OTOOL64"; then 11246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 11247printf "%s\n" "$ac_ct_OTOOL64" >&6; } 11248else 11249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11250printf "%s\n" "no" >&6; } 11251fi 11252 11253 if test "x$ac_ct_OTOOL64" = x; then 11254 OTOOL64=":" 11255 else 11256 case $cross_compiling:$ac_tool_warned in 11257yes:) 11258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11259printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11260ac_tool_warned=yes ;; 11261esac 11262 OTOOL64=$ac_ct_OTOOL64 11263 fi 11264else 11265 OTOOL64="$ac_cv_prog_OTOOL64" 11266fi 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 11295printf %s "checking for -single_module linker flag... " >&6; } 11296if test ${lt_cv_apple_cc_single_mod+y} 11297then : 11298 printf %s "(cached) " >&6 11299else $as_nop 11300 lt_cv_apple_cc_single_mod=no 11301 if test -z "$LT_MULTI_MODULE"; then 11302 # By default we will add the -single_module flag. You can override 11303 # by either setting the environment variable LT_MULTI_MODULE 11304 # non-empty at configure time, or by adding -multi_module to the 11305 # link flags. 11306 rm -rf libconftest.dylib* 11307 echo "int foo(void){return 1;}" > conftest.c 11308 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11309-dynamiclib -Wl,-single_module conftest.c" >&5 11310 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11311 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 11312 _lt_result=$? 11313 # If there is a non-empty error log, and "single_module" 11314 # appears in it, assume the flag caused a linker warning 11315 if test -s conftest.err && $GREP single_module conftest.err; then 11316 cat conftest.err >&5 11317 # Otherwise, if the output was created with a 0 exit code from 11318 # the compiler, it worked. 11319 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 11320 lt_cv_apple_cc_single_mod=yes 11321 else 11322 cat conftest.err >&5 11323 fi 11324 rm -rf libconftest.dylib* 11325 rm -f conftest.* 11326 fi 11327fi 11328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11329printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 11330 11331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11332printf %s "checking for -exported_symbols_list linker flag... " >&6; } 11333if test ${lt_cv_ld_exported_symbols_list+y} 11334then : 11335 printf %s "(cached) " >&6 11336else $as_nop 11337 lt_cv_ld_exported_symbols_list=no 11338 save_LDFLAGS=$LDFLAGS 11339 echo "_main" > conftest.sym 11340 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11342/* end confdefs.h. */ 11343 11344int 11345main (void) 11346{ 11347 11348 ; 11349 return 0; 11350} 11351_ACEOF 11352if ac_fn_c_try_link "$LINENO" 11353then : 11354 lt_cv_ld_exported_symbols_list=yes 11355else $as_nop 11356 lt_cv_ld_exported_symbols_list=no 11357fi 11358rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11359 conftest$ac_exeext conftest.$ac_ext 11360 LDFLAGS=$save_LDFLAGS 11361 11362fi 11363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11364printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 11365 11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 11367printf %s "checking for -force_load linker flag... " >&6; } 11368if test ${lt_cv_ld_force_load+y} 11369then : 11370 printf %s "(cached) " >&6 11371else $as_nop 11372 lt_cv_ld_force_load=no 11373 cat > conftest.c << _LT_EOF 11374int forced_loaded() { return 2;} 11375_LT_EOF 11376 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 11377 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 11378 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 11379 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 11380 echo "$RANLIB libconftest.a" >&5 11381 $RANLIB libconftest.a 2>&5 11382 cat > conftest.c << _LT_EOF 11383int main() { return 0;} 11384_LT_EOF 11385 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 11386 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 11387 _lt_result=$? 11388 if test -s conftest.err && $GREP force_load conftest.err; then 11389 cat conftest.err >&5 11390 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 11391 lt_cv_ld_force_load=yes 11392 else 11393 cat conftest.err >&5 11394 fi 11395 rm -f conftest.err libconftest.a conftest conftest.c 11396 rm -rf conftest.dSYM 11397 11398fi 11399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 11400printf "%s\n" "$lt_cv_ld_force_load" >&6; } 11401 case $host_os in 11402 rhapsody* | darwin1.[012]) 11403 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 11404 darwin1.*) 11405 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11406 darwin*) 11407 case $MACOSX_DEPLOYMENT_TARGET,$host in 11408 10.[012],*|,*powerpc*-darwin[5-8]*) 11409 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11410 *) 11411 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 11412 esac 11413 ;; 11414 esac 11415 if test yes = "$lt_cv_apple_cc_single_mod"; then 11416 _lt_dar_single_mod='$single_module' 11417 fi 11418 if test yes = "$lt_cv_ld_exported_symbols_list"; then 11419 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 11420 else 11421 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 11422 fi 11423 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 11424 _lt_dsymutil='~$DSYMUTIL $lib || :' 11425 else 11426 _lt_dsymutil= 11427 fi 11428 ;; 11429 esac 11430 11431# func_munge_path_list VARIABLE PATH 11432# ----------------------------------- 11433# VARIABLE is name of variable containing _space_ separated list of 11434# directories to be munged by the contents of PATH, which is string 11435# having a format: 11436# "DIR[:DIR]:" 11437# string "DIR[ DIR]" will be prepended to VARIABLE 11438# ":DIR[:DIR]" 11439# string "DIR[ DIR]" will be appended to VARIABLE 11440# "DIRP[:DIRP]::[DIRA:]DIRA" 11441# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 11442# "DIRA[ DIRA]" will be appended to VARIABLE 11443# "DIR[:DIR]" 11444# VARIABLE will be replaced by "DIR[ DIR]" 11445func_munge_path_list () 11446{ 11447 case x$2 in 11448 x) 11449 ;; 11450 *:) 11451 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 11452 ;; 11453 x:*) 11454 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 11455 ;; 11456 *::*) 11457 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 11458 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 11459 ;; 11460 *) 11461 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 11462 ;; 11463 esac 11464} 11465 11466ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11467" 11468if test "x$ac_cv_header_dlfcn_h" = xyes 11469then : 11470 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 11471 11472fi 11473 11474 11475 11476 11477 11478 11479 11480# Set options 11481 11482 11483 11484 enable_dlopen=no 11485 11486 11487 enable_win32_dll=no 11488 11489 11490 # Check whether --enable-shared was given. 11491if test ${enable_shared+y} 11492then : 11493 enableval=$enable_shared; p=${PACKAGE-default} 11494 case $enableval in 11495 yes) enable_shared=yes ;; 11496 no) enable_shared=no ;; 11497 *) 11498 enable_shared=no 11499 # Look at the argument we got. We use all the common list separators. 11500 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11501 for pkg in $enableval; do 11502 IFS=$lt_save_ifs 11503 if test "X$pkg" = "X$p"; then 11504 enable_shared=yes 11505 fi 11506 done 11507 IFS=$lt_save_ifs 11508 ;; 11509 esac 11510else $as_nop 11511 enable_shared=yes 11512fi 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 # Check whether --enable-static was given. 11523if test ${enable_static+y} 11524then : 11525 enableval=$enable_static; p=${PACKAGE-default} 11526 case $enableval in 11527 yes) enable_static=yes ;; 11528 no) enable_static=no ;; 11529 *) 11530 enable_static=no 11531 # Look at the argument we got. We use all the common list separators. 11532 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11533 for pkg in $enableval; do 11534 IFS=$lt_save_ifs 11535 if test "X$pkg" = "X$p"; then 11536 enable_static=yes 11537 fi 11538 done 11539 IFS=$lt_save_ifs 11540 ;; 11541 esac 11542else $as_nop 11543 enable_static=yes 11544fi 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555# Check whether --with-pic was given. 11556if test ${with_pic+y} 11557then : 11558 withval=$with_pic; lt_p=${PACKAGE-default} 11559 case $withval in 11560 yes|no) pic_mode=$withval ;; 11561 *) 11562 pic_mode=default 11563 # Look at the argument we got. We use all the common list separators. 11564 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11565 for lt_pkg in $withval; do 11566 IFS=$lt_save_ifs 11567 if test "X$lt_pkg" = "X$lt_p"; then 11568 pic_mode=yes 11569 fi 11570 done 11571 IFS=$lt_save_ifs 11572 ;; 11573 esac 11574else $as_nop 11575 pic_mode=default 11576fi 11577 11578 11579 11580 11581 11582 11583 11584 11585 # Check whether --enable-fast-install was given. 11586if test ${enable_fast_install+y} 11587then : 11588 enableval=$enable_fast_install; p=${PACKAGE-default} 11589 case $enableval in 11590 yes) enable_fast_install=yes ;; 11591 no) enable_fast_install=no ;; 11592 *) 11593 enable_fast_install=no 11594 # Look at the argument we got. We use all the common list separators. 11595 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11596 for pkg in $enableval; do 11597 IFS=$lt_save_ifs 11598 if test "X$pkg" = "X$p"; then 11599 enable_fast_install=yes 11600 fi 11601 done 11602 IFS=$lt_save_ifs 11603 ;; 11604 esac 11605else $as_nop 11606 enable_fast_install=yes 11607fi 11608 11609 11610 11611 11612 11613 11614 11615 11616 shared_archive_member_spec= 11617case $host,$enable_shared in 11618power*-*-aix[5-9]*,yes) 11619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 11620printf %s "checking which variant of shared library versioning to provide... " >&6; } 11621 11622# Check whether --with-aix-soname was given. 11623if test ${with_aix_soname+y} 11624then : 11625 withval=$with_aix_soname; case $withval in 11626 aix|svr4|both) 11627 ;; 11628 *) 11629 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 11630 ;; 11631 esac 11632 lt_cv_with_aix_soname=$with_aix_soname 11633else $as_nop 11634 if test ${lt_cv_with_aix_soname+y} 11635then : 11636 printf %s "(cached) " >&6 11637else $as_nop 11638 lt_cv_with_aix_soname=aix 11639fi 11640 11641 with_aix_soname=$lt_cv_with_aix_soname 11642fi 11643 11644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 11645printf "%s\n" "$with_aix_soname" >&6; } 11646 if test aix != "$with_aix_soname"; then 11647 # For the AIX way of multilib, we name the shared archive member 11648 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 11649 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 11650 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 11651 # the AIX toolchain works better with OBJECT_MODE set (default 32). 11652 if test 64 = "${OBJECT_MODE-32}"; then 11653 shared_archive_member_spec=shr_64 11654 else 11655 shared_archive_member_spec=shr 11656 fi 11657 fi 11658 ;; 11659*) 11660 with_aix_soname=aix 11661 ;; 11662esac 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673# This can be used to rebuild libtool when needed 11674LIBTOOL_DEPS=$ltmain 11675 11676# Always use our own libtool. 11677LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708test -z "$LN_S" && LN_S="ln -s" 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723if test -n "${ZSH_VERSION+set}"; then 11724 setopt NO_GLOB_SUBST 11725fi 11726 11727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11728printf %s "checking for objdir... " >&6; } 11729if test ${lt_cv_objdir+y} 11730then : 11731 printf %s "(cached) " >&6 11732else $as_nop 11733 rm -f .libs 2>/dev/null 11734mkdir .libs 2>/dev/null 11735if test -d .libs; then 11736 lt_cv_objdir=.libs 11737else 11738 # MS-DOS does not allow filenames that begin with a dot. 11739 lt_cv_objdir=_libs 11740fi 11741rmdir .libs 2>/dev/null 11742fi 11743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11744printf "%s\n" "$lt_cv_objdir" >&6; } 11745objdir=$lt_cv_objdir 11746 11747 11748 11749 11750 11751printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 11752 11753 11754 11755 11756case $host_os in 11757aix3*) 11758 # AIX sometimes has problems with the GCC collect2 program. For some 11759 # reason, if we set the COLLECT_NAMES environment variable, the problems 11760 # vanish in a puff of smoke. 11761 if test set != "${COLLECT_NAMES+set}"; then 11762 COLLECT_NAMES= 11763 export COLLECT_NAMES 11764 fi 11765 ;; 11766esac 11767 11768# Global variables: 11769ofile=libtool 11770can_build_shared=yes 11771 11772# All known linkers require a '.a' archive for static linking (except MSVC and 11773# ICC, which need '.lib'). 11774libext=a 11775 11776with_gnu_ld=$lt_cv_prog_gnu_ld 11777 11778old_CC=$CC 11779old_CFLAGS=$CFLAGS 11780 11781# Set sane defaults for various variables 11782test -z "$CC" && CC=cc 11783test -z "$LTCC" && LTCC=$CC 11784test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11785test -z "$LD" && LD=ld 11786test -z "$ac_objext" && ac_objext=o 11787 11788func_cc_basename $compiler 11789cc_basename=$func_cc_basename_result 11790 11791 11792# Only perform the check for file, if the check method requires it 11793test -z "$MAGIC_CMD" && MAGIC_CMD=file 11794case $deplibs_check_method in 11795file_magic*) 11796 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11798printf %s "checking for ${ac_tool_prefix}file... " >&6; } 11799if test ${lt_cv_path_MAGIC_CMD+y} 11800then : 11801 printf %s "(cached) " >&6 11802else $as_nop 11803 case $MAGIC_CMD in 11804[\\/*] | ?:[\\/]*) 11805 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11806 ;; 11807*) 11808 lt_save_MAGIC_CMD=$MAGIC_CMD 11809 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11810 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11811 for ac_dir in $ac_dummy; do 11812 IFS=$lt_save_ifs 11813 test -z "$ac_dir" && ac_dir=. 11814 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11815 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11816 if test -n "$file_magic_test_file"; then 11817 case $deplibs_check_method in 11818 "file_magic "*) 11819 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11820 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11821 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11822 $EGREP "$file_magic_regex" > /dev/null; then 11823 : 11824 else 11825 cat <<_LT_EOF 1>&2 11826 11827*** Warning: the command libtool uses to detect shared libraries, 11828*** $file_magic_cmd, produces output that libtool cannot recognize. 11829*** The result is that libtool may fail to recognize shared libraries 11830*** as such. This will affect the creation of libtool libraries that 11831*** depend on shared libraries, but programs linked with such libtool 11832*** libraries will work regardless of this problem. Nevertheless, you 11833*** may want to report the problem to your system manager and/or to 11834*** bug-libtool@gnu.org 11835 11836_LT_EOF 11837 fi ;; 11838 esac 11839 fi 11840 break 11841 fi 11842 done 11843 IFS=$lt_save_ifs 11844 MAGIC_CMD=$lt_save_MAGIC_CMD 11845 ;; 11846esac 11847fi 11848 11849MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11850if test -n "$MAGIC_CMD"; then 11851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11852printf "%s\n" "$MAGIC_CMD" >&6; } 11853else 11854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11855printf "%s\n" "no" >&6; } 11856fi 11857 11858 11859 11860 11861 11862if test -z "$lt_cv_path_MAGIC_CMD"; then 11863 if test -n "$ac_tool_prefix"; then 11864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11865printf %s "checking for file... " >&6; } 11866if test ${lt_cv_path_MAGIC_CMD+y} 11867then : 11868 printf %s "(cached) " >&6 11869else $as_nop 11870 case $MAGIC_CMD in 11871[\\/*] | ?:[\\/]*) 11872 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11873 ;; 11874*) 11875 lt_save_MAGIC_CMD=$MAGIC_CMD 11876 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11877 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11878 for ac_dir in $ac_dummy; do 11879 IFS=$lt_save_ifs 11880 test -z "$ac_dir" && ac_dir=. 11881 if test -f "$ac_dir/file"; then 11882 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11883 if test -n "$file_magic_test_file"; then 11884 case $deplibs_check_method in 11885 "file_magic "*) 11886 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11887 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11888 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11889 $EGREP "$file_magic_regex" > /dev/null; then 11890 : 11891 else 11892 cat <<_LT_EOF 1>&2 11893 11894*** Warning: the command libtool uses to detect shared libraries, 11895*** $file_magic_cmd, produces output that libtool cannot recognize. 11896*** The result is that libtool may fail to recognize shared libraries 11897*** as such. This will affect the creation of libtool libraries that 11898*** depend on shared libraries, but programs linked with such libtool 11899*** libraries will work regardless of this problem. Nevertheless, you 11900*** may want to report the problem to your system manager and/or to 11901*** bug-libtool@gnu.org 11902 11903_LT_EOF 11904 fi ;; 11905 esac 11906 fi 11907 break 11908 fi 11909 done 11910 IFS=$lt_save_ifs 11911 MAGIC_CMD=$lt_save_MAGIC_CMD 11912 ;; 11913esac 11914fi 11915 11916MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11917if test -n "$MAGIC_CMD"; then 11918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11919printf "%s\n" "$MAGIC_CMD" >&6; } 11920else 11921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11922printf "%s\n" "no" >&6; } 11923fi 11924 11925 11926 else 11927 MAGIC_CMD=: 11928 fi 11929fi 11930 11931 fi 11932 ;; 11933esac 11934 11935# Use C for the default configuration in the libtool script 11936 11937lt_save_CC=$CC 11938ac_ext=c 11939ac_cpp='$CPP $CPPFLAGS' 11940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11942ac_compiler_gnu=$ac_cv_c_compiler_gnu 11943 11944 11945# Source file extension for C test sources. 11946ac_ext=c 11947 11948# Object file extension for compiled C test sources. 11949objext=o 11950objext=$objext 11951 11952# Code to be used in simple compile tests 11953lt_simple_compile_test_code="int some_variable = 0;" 11954 11955# Code to be used in simple link tests 11956lt_simple_link_test_code='int main(){return(0);}' 11957 11958 11959 11960 11961 11962 11963 11964# If no C compiler was specified, use CC. 11965LTCC=${LTCC-"$CC"} 11966 11967# If no C compiler flags were specified, use CFLAGS. 11968LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11969 11970# Allow CC to be a program name with arguments. 11971compiler=$CC 11972 11973# Save the default compiler, since it gets overwritten when the other 11974# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11975compiler_DEFAULT=$CC 11976 11977# save warnings/boilerplate of simple test code 11978ac_outfile=conftest.$ac_objext 11979echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11980eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11981_lt_compiler_boilerplate=`cat conftest.err` 11982$RM conftest* 11983 11984ac_outfile=conftest.$ac_objext 11985echo "$lt_simple_link_test_code" >conftest.$ac_ext 11986eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11987_lt_linker_boilerplate=`cat conftest.err` 11988$RM -r conftest* 11989 11990 11991if test -n "$compiler"; then 11992 11993lt_prog_compiler_no_builtin_flag= 11994 11995if test yes = "$GCC"; then 11996 case $cc_basename in 11997 nvcc*) 11998 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11999 *) 12000 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 12001 esac 12002 12003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 12004printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 12005if test ${lt_cv_prog_compiler_rtti_exceptions+y} 12006then : 12007 printf %s "(cached) " >&6 12008else $as_nop 12009 lt_cv_prog_compiler_rtti_exceptions=no 12010 ac_outfile=conftest.$ac_objext 12011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12012 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 12013 # Insert the option either (1) after the last *FLAGS variable, or 12014 # (2) before a word containing "conftest.", or (3) at the end. 12015 # Note that $ac_compile itself does not contain backslashes and begins 12016 # with a dollar sign (not a hyphen), so the echo should work correctly. 12017 # The option is referenced via a variable to avoid confusing sed. 12018 lt_compile=`echo "$ac_compile" | $SED \ 12019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12021 -e 's:$: $lt_compiler_flag:'` 12022 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12023 (eval "$lt_compile" 2>conftest.err) 12024 ac_status=$? 12025 cat conftest.err >&5 12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12027 if (exit $ac_status) && test -s "$ac_outfile"; then 12028 # The compiler can only warn and ignore the option if not recognized 12029 # So say no if there are warnings other than the usual output. 12030 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12033 lt_cv_prog_compiler_rtti_exceptions=yes 12034 fi 12035 fi 12036 $RM conftest* 12037 12038fi 12039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 12040printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 12041 12042if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 12043 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 12044else 12045 : 12046fi 12047 12048fi 12049 12050 12051 12052 12053 12054 12055 lt_prog_compiler_wl= 12056lt_prog_compiler_pic= 12057lt_prog_compiler_static= 12058 12059 12060 if test yes = "$GCC"; then 12061 lt_prog_compiler_wl='-Wl,' 12062 lt_prog_compiler_static='-static' 12063 12064 case $host_os in 12065 aix*) 12066 # All AIX code is PIC. 12067 if test ia64 = "$host_cpu"; then 12068 # AIX 5 now supports IA64 processor 12069 lt_prog_compiler_static='-Bstatic' 12070 fi 12071 lt_prog_compiler_pic='-fPIC' 12072 ;; 12073 12074 amigaos*) 12075 case $host_cpu in 12076 powerpc) 12077 # see comment about AmigaOS4 .so support 12078 lt_prog_compiler_pic='-fPIC' 12079 ;; 12080 m68k) 12081 # FIXME: we need at least 68020 code to build shared libraries, but 12082 # adding the '-m68020' flag to GCC prevents building anything better, 12083 # like '-m68040'. 12084 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12085 ;; 12086 esac 12087 ;; 12088 12089 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12090 # PIC is the default for these OSes. 12091 ;; 12092 12093 mingw* | cygwin* | pw32* | os2* | cegcc*) 12094 # This hack is so that the source file can tell whether it is being 12095 # built for inclusion in a dll (and should export symbols for example). 12096 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12097 # (--disable-auto-import) libraries 12098 lt_prog_compiler_pic='-DDLL_EXPORT' 12099 case $host_os in 12100 os2*) 12101 lt_prog_compiler_static='$wl-static' 12102 ;; 12103 esac 12104 ;; 12105 12106 darwin* | rhapsody*) 12107 # PIC is the default on this platform 12108 # Common symbols not allowed in MH_DYLIB files 12109 lt_prog_compiler_pic='-fno-common' 12110 ;; 12111 12112 haiku*) 12113 # PIC is the default for Haiku. 12114 # The "-static" flag exists, but is broken. 12115 lt_prog_compiler_static= 12116 ;; 12117 12118 hpux*) 12119 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12120 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12121 # sets the default TLS model and affects inlining. 12122 case $host_cpu in 12123 hppa*64*) 12124 # +Z the default 12125 ;; 12126 *) 12127 lt_prog_compiler_pic='-fPIC' 12128 ;; 12129 esac 12130 ;; 12131 12132 interix[3-9]*) 12133 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12134 # Instead, we relocate shared libraries at runtime. 12135 ;; 12136 12137 msdosdjgpp*) 12138 # Just because we use GCC doesn't mean we suddenly get shared libraries 12139 # on systems that don't support them. 12140 lt_prog_compiler_can_build_shared=no 12141 enable_shared=no 12142 ;; 12143 12144 *nto* | *qnx*) 12145 # QNX uses GNU C++, but need to define -shared option too, otherwise 12146 # it will coredump. 12147 lt_prog_compiler_pic='-fPIC -shared' 12148 ;; 12149 12150 sysv4*MP*) 12151 if test -d /usr/nec; then 12152 lt_prog_compiler_pic=-Kconform_pic 12153 fi 12154 ;; 12155 12156 *) 12157 lt_prog_compiler_pic='-fPIC' 12158 ;; 12159 esac 12160 12161 case $cc_basename in 12162 nvcc*) # Cuda Compiler Driver 2.2 12163 lt_prog_compiler_wl='-Xlinker ' 12164 if test -n "$lt_prog_compiler_pic"; then 12165 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12166 fi 12167 ;; 12168 esac 12169 else 12170 # PORTME Check for flag to pass linker flags through the system compiler. 12171 case $host_os in 12172 aix*) 12173 lt_prog_compiler_wl='-Wl,' 12174 if test ia64 = "$host_cpu"; then 12175 # AIX 5 now supports IA64 processor 12176 lt_prog_compiler_static='-Bstatic' 12177 else 12178 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12179 fi 12180 ;; 12181 12182 darwin* | rhapsody*) 12183 # PIC is the default on this platform 12184 # Common symbols not allowed in MH_DYLIB files 12185 lt_prog_compiler_pic='-fno-common' 12186 case $cc_basename in 12187 nagfor*) 12188 # NAG Fortran compiler 12189 lt_prog_compiler_wl='-Wl,-Wl,,' 12190 lt_prog_compiler_pic='-PIC' 12191 lt_prog_compiler_static='-Bstatic' 12192 ;; 12193 esac 12194 ;; 12195 12196 mingw* | cygwin* | pw32* | os2* | cegcc*) 12197 # This hack is so that the source file can tell whether it is being 12198 # built for inclusion in a dll (and should export symbols for example). 12199 lt_prog_compiler_pic='-DDLL_EXPORT' 12200 case $host_os in 12201 os2*) 12202 lt_prog_compiler_static='$wl-static' 12203 ;; 12204 esac 12205 ;; 12206 12207 hpux9* | hpux10* | hpux11*) 12208 lt_prog_compiler_wl='-Wl,' 12209 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12210 # not for PA HP-UX. 12211 case $host_cpu in 12212 hppa*64*|ia64*) 12213 # +Z the default 12214 ;; 12215 *) 12216 lt_prog_compiler_pic='+Z' 12217 ;; 12218 esac 12219 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12220 lt_prog_compiler_static='$wl-a ${wl}archive' 12221 ;; 12222 12223 irix5* | irix6* | nonstopux*) 12224 lt_prog_compiler_wl='-Wl,' 12225 # PIC (with -KPIC) is the default. 12226 lt_prog_compiler_static='-non_shared' 12227 ;; 12228 12229 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12230 case $cc_basename in 12231 # old Intel for x86_64, which still supported -KPIC. 12232 ecc*) 12233 lt_prog_compiler_wl='-Wl,' 12234 lt_prog_compiler_pic='-KPIC' 12235 lt_prog_compiler_static='-static' 12236 ;; 12237 # icc used to be incompatible with GCC. 12238 # ICC 10 doesn't accept -KPIC any more. 12239 icc* | ifort*) 12240 lt_prog_compiler_wl='-Wl,' 12241 lt_prog_compiler_pic='-fPIC' 12242 lt_prog_compiler_static='-static' 12243 ;; 12244 # Lahey Fortran 8.1. 12245 lf95*) 12246 lt_prog_compiler_wl='-Wl,' 12247 lt_prog_compiler_pic='--shared' 12248 lt_prog_compiler_static='--static' 12249 ;; 12250 nagfor*) 12251 # NAG Fortran compiler 12252 lt_prog_compiler_wl='-Wl,-Wl,,' 12253 lt_prog_compiler_pic='-PIC' 12254 lt_prog_compiler_static='-Bstatic' 12255 ;; 12256 tcc*) 12257 # Fabrice Bellard et al's Tiny C Compiler 12258 lt_prog_compiler_wl='-Wl,' 12259 lt_prog_compiler_pic='-fPIC' 12260 lt_prog_compiler_static='-static' 12261 ;; 12262 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12263 # Portland Group compilers (*not* the Pentium gcc compiler, 12264 # which looks to be a dead project) 12265 lt_prog_compiler_wl='-Wl,' 12266 lt_prog_compiler_pic='-fpic' 12267 lt_prog_compiler_static='-Bstatic' 12268 ;; 12269 ccc*) 12270 lt_prog_compiler_wl='-Wl,' 12271 # All Alpha code is PIC. 12272 lt_prog_compiler_static='-non_shared' 12273 ;; 12274 xl* | bgxl* | bgf* | mpixl*) 12275 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12276 lt_prog_compiler_wl='-Wl,' 12277 lt_prog_compiler_pic='-qpic' 12278 lt_prog_compiler_static='-qstaticlink' 12279 ;; 12280 *) 12281 case `$CC -V 2>&1 | $SED 5q` in 12282 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12283 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12284 lt_prog_compiler_pic='-KPIC' 12285 lt_prog_compiler_static='-Bstatic' 12286 lt_prog_compiler_wl='' 12287 ;; 12288 *Sun\ F* | *Sun*Fortran*) 12289 lt_prog_compiler_pic='-KPIC' 12290 lt_prog_compiler_static='-Bstatic' 12291 lt_prog_compiler_wl='-Qoption ld ' 12292 ;; 12293 *Sun\ C*) 12294 # Sun C 5.9 12295 lt_prog_compiler_pic='-KPIC' 12296 lt_prog_compiler_static='-Bstatic' 12297 lt_prog_compiler_wl='-Wl,' 12298 ;; 12299 *Intel*\ [CF]*Compiler*) 12300 lt_prog_compiler_wl='-Wl,' 12301 lt_prog_compiler_pic='-fPIC' 12302 lt_prog_compiler_static='-static' 12303 ;; 12304 *Portland\ Group*) 12305 lt_prog_compiler_wl='-Wl,' 12306 lt_prog_compiler_pic='-fpic' 12307 lt_prog_compiler_static='-Bstatic' 12308 ;; 12309 esac 12310 ;; 12311 esac 12312 ;; 12313 12314 newsos6) 12315 lt_prog_compiler_pic='-KPIC' 12316 lt_prog_compiler_static='-Bstatic' 12317 ;; 12318 12319 *nto* | *qnx*) 12320 # QNX uses GNU C++, but need to define -shared option too, otherwise 12321 # it will coredump. 12322 lt_prog_compiler_pic='-fPIC -shared' 12323 ;; 12324 12325 osf3* | osf4* | osf5*) 12326 lt_prog_compiler_wl='-Wl,' 12327 # All OSF/1 code is PIC. 12328 lt_prog_compiler_static='-non_shared' 12329 ;; 12330 12331 rdos*) 12332 lt_prog_compiler_static='-non_shared' 12333 ;; 12334 12335 solaris*) 12336 lt_prog_compiler_pic='-KPIC' 12337 lt_prog_compiler_static='-Bstatic' 12338 case $cc_basename in 12339 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12340 lt_prog_compiler_wl='-Qoption ld ';; 12341 *) 12342 lt_prog_compiler_wl='-Wl,';; 12343 esac 12344 ;; 12345 12346 sunos4*) 12347 lt_prog_compiler_wl='-Qoption ld ' 12348 lt_prog_compiler_pic='-PIC' 12349 lt_prog_compiler_static='-Bstatic' 12350 ;; 12351 12352 sysv4 | sysv4.2uw2* | sysv4.3*) 12353 lt_prog_compiler_wl='-Wl,' 12354 lt_prog_compiler_pic='-KPIC' 12355 lt_prog_compiler_static='-Bstatic' 12356 ;; 12357 12358 sysv4*MP*) 12359 if test -d /usr/nec; then 12360 lt_prog_compiler_pic='-Kconform_pic' 12361 lt_prog_compiler_static='-Bstatic' 12362 fi 12363 ;; 12364 12365 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12366 lt_prog_compiler_wl='-Wl,' 12367 lt_prog_compiler_pic='-KPIC' 12368 lt_prog_compiler_static='-Bstatic' 12369 ;; 12370 12371 unicos*) 12372 lt_prog_compiler_wl='-Wl,' 12373 lt_prog_compiler_can_build_shared=no 12374 ;; 12375 12376 uts4*) 12377 lt_prog_compiler_pic='-pic' 12378 lt_prog_compiler_static='-Bstatic' 12379 ;; 12380 12381 *) 12382 lt_prog_compiler_can_build_shared=no 12383 ;; 12384 esac 12385 fi 12386 12387case $host_os in 12388 # For platforms that do not support PIC, -DPIC is meaningless: 12389 *djgpp*) 12390 lt_prog_compiler_pic= 12391 ;; 12392 *) 12393 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12394 ;; 12395esac 12396 12397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12398printf %s "checking for $compiler option to produce PIC... " >&6; } 12399if test ${lt_cv_prog_compiler_pic+y} 12400then : 12401 printf %s "(cached) " >&6 12402else $as_nop 12403 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 12404fi 12405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12406printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 12407lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12408 12409# 12410# Check to make sure the PIC flag actually works. 12411# 12412if test -n "$lt_prog_compiler_pic"; then 12413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12414printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12415if test ${lt_cv_prog_compiler_pic_works+y} 12416then : 12417 printf %s "(cached) " >&6 12418else $as_nop 12419 lt_cv_prog_compiler_pic_works=no 12420 ac_outfile=conftest.$ac_objext 12421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12422 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12423 # Insert the option either (1) after the last *FLAGS variable, or 12424 # (2) before a word containing "conftest.", or (3) at the end. 12425 # Note that $ac_compile itself does not contain backslashes and begins 12426 # with a dollar sign (not a hyphen), so the echo should work correctly. 12427 # The option is referenced via a variable to avoid confusing sed. 12428 lt_compile=`echo "$ac_compile" | $SED \ 12429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12431 -e 's:$: $lt_compiler_flag:'` 12432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12433 (eval "$lt_compile" 2>conftest.err) 12434 ac_status=$? 12435 cat conftest.err >&5 12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12437 if (exit $ac_status) && test -s "$ac_outfile"; then 12438 # The compiler can only warn and ignore the option if not recognized 12439 # So say no if there are warnings other than the usual output. 12440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12443 lt_cv_prog_compiler_pic_works=yes 12444 fi 12445 fi 12446 $RM conftest* 12447 12448fi 12449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12450printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 12451 12452if test yes = "$lt_cv_prog_compiler_pic_works"; then 12453 case $lt_prog_compiler_pic in 12454 "" | " "*) ;; 12455 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12456 esac 12457else 12458 lt_prog_compiler_pic= 12459 lt_prog_compiler_can_build_shared=no 12460fi 12461 12462fi 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474# 12475# Check to make sure the static flag actually works. 12476# 12477wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12479printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12480if test ${lt_cv_prog_compiler_static_works+y} 12481then : 12482 printf %s "(cached) " >&6 12483else $as_nop 12484 lt_cv_prog_compiler_static_works=no 12485 save_LDFLAGS=$LDFLAGS 12486 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12487 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12488 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12489 # The linker can only warn and ignore the option if not recognized 12490 # So say no if there are warnings 12491 if test -s conftest.err; then 12492 # Append any errors to the config.log. 12493 cat conftest.err 1>&5 12494 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12496 if diff conftest.exp conftest.er2 >/dev/null; then 12497 lt_cv_prog_compiler_static_works=yes 12498 fi 12499 else 12500 lt_cv_prog_compiler_static_works=yes 12501 fi 12502 fi 12503 $RM -r conftest* 12504 LDFLAGS=$save_LDFLAGS 12505 12506fi 12507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12508printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 12509 12510if test yes = "$lt_cv_prog_compiler_static_works"; then 12511 : 12512else 12513 lt_prog_compiler_static= 12514fi 12515 12516 12517 12518 12519 12520 12521 12522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12523printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12524if test ${lt_cv_prog_compiler_c_o+y} 12525then : 12526 printf %s "(cached) " >&6 12527else $as_nop 12528 lt_cv_prog_compiler_c_o=no 12529 $RM -r conftest 2>/dev/null 12530 mkdir conftest 12531 cd conftest 12532 mkdir out 12533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12534 12535 lt_compiler_flag="-o out/conftest2.$ac_objext" 12536 # Insert the option either (1) after the last *FLAGS variable, or 12537 # (2) before a word containing "conftest.", or (3) at the end. 12538 # Note that $ac_compile itself does not contain backslashes and begins 12539 # with a dollar sign (not a hyphen), so the echo should work correctly. 12540 lt_compile=`echo "$ac_compile" | $SED \ 12541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12543 -e 's:$: $lt_compiler_flag:'` 12544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12545 (eval "$lt_compile" 2>out/conftest.err) 12546 ac_status=$? 12547 cat out/conftest.err >&5 12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12549 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12550 then 12551 # The compiler can only warn and ignore the option if not recognized 12552 # So say no if there are warnings 12553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12556 lt_cv_prog_compiler_c_o=yes 12557 fi 12558 fi 12559 chmod u+w . 2>&5 12560 $RM conftest* 12561 # SGI C++ compiler will create directory out/ii_files/ for 12562 # template instantiation 12563 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12564 $RM out/* && rmdir out 12565 cd .. 12566 $RM -r conftest 12567 $RM conftest* 12568 12569fi 12570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12571printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 12572 12573 12574 12575 12576 12577 12578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12579printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12580if test ${lt_cv_prog_compiler_c_o+y} 12581then : 12582 printf %s "(cached) " >&6 12583else $as_nop 12584 lt_cv_prog_compiler_c_o=no 12585 $RM -r conftest 2>/dev/null 12586 mkdir conftest 12587 cd conftest 12588 mkdir out 12589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12590 12591 lt_compiler_flag="-o out/conftest2.$ac_objext" 12592 # Insert the option either (1) after the last *FLAGS variable, or 12593 # (2) before a word containing "conftest.", or (3) at the end. 12594 # Note that $ac_compile itself does not contain backslashes and begins 12595 # with a dollar sign (not a hyphen), so the echo should work correctly. 12596 lt_compile=`echo "$ac_compile" | $SED \ 12597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12599 -e 's:$: $lt_compiler_flag:'` 12600 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12601 (eval "$lt_compile" 2>out/conftest.err) 12602 ac_status=$? 12603 cat out/conftest.err >&5 12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12605 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12606 then 12607 # The compiler can only warn and ignore the option if not recognized 12608 # So say no if there are warnings 12609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12610 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12611 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12612 lt_cv_prog_compiler_c_o=yes 12613 fi 12614 fi 12615 chmod u+w . 2>&5 12616 $RM conftest* 12617 # SGI C++ compiler will create directory out/ii_files/ for 12618 # template instantiation 12619 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12620 $RM out/* && rmdir out 12621 cd .. 12622 $RM -r conftest 12623 $RM conftest* 12624 12625fi 12626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12627printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 12628 12629 12630 12631 12632hard_links=nottested 12633if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 12634 # do not overwrite the value of need_locks provided by the user 12635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12636printf %s "checking if we can lock with hard links... " >&6; } 12637 hard_links=yes 12638 $RM conftest* 12639 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12640 touch conftest.a 12641 ln conftest.a conftest.b 2>&5 || hard_links=no 12642 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12644printf "%s\n" "$hard_links" >&6; } 12645 if test no = "$hard_links"; then 12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 12647printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 12648 need_locks=warn 12649 fi 12650else 12651 need_locks=no 12652fi 12653 12654 12655 12656 12657 12658 12659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12660printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12661 12662 runpath_var= 12663 allow_undefined_flag= 12664 always_export_symbols=no 12665 archive_cmds= 12666 archive_expsym_cmds= 12667 compiler_needs_object=no 12668 enable_shared_with_static_runtimes=no 12669 export_dynamic_flag_spec= 12670 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12671 hardcode_automatic=no 12672 hardcode_direct=no 12673 hardcode_direct_absolute=no 12674 hardcode_libdir_flag_spec= 12675 hardcode_libdir_separator= 12676 hardcode_minus_L=no 12677 hardcode_shlibpath_var=unsupported 12678 inherit_rpath=no 12679 link_all_deplibs=unknown 12680 module_cmds= 12681 module_expsym_cmds= 12682 old_archive_from_new_cmds= 12683 old_archive_from_expsyms_cmds= 12684 thread_safe_flag_spec= 12685 whole_archive_flag_spec= 12686 # include_expsyms should be a list of space-separated symbols to be *always* 12687 # included in the symbol list 12688 include_expsyms= 12689 # exclude_expsyms can be an extended regexp of symbols to exclude 12690 # it will be wrapped by ' (' and ')$', so one must not match beginning or 12691 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 12692 # as well as any symbol that contains 'd'. 12693 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12694 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12695 # platforms (ab)use it in PIC code, but their linkers get confused if 12696 # the symbol is explicitly referenced. Since portable code cannot 12697 # rely on this symbol name, it's probably fine to never include it in 12698 # preloaded symbol tables. 12699 # Exclude shared library initialization/finalization symbols. 12700 extract_expsyms_cmds= 12701 12702 case $host_os in 12703 cygwin* | mingw* | pw32* | cegcc*) 12704 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 12705 # When not using gcc, we currently assume that we are using 12706 # Microsoft Visual C++ or Intel C++ Compiler. 12707 if test yes != "$GCC"; then 12708 with_gnu_ld=no 12709 fi 12710 ;; 12711 interix*) 12712 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 12713 with_gnu_ld=yes 12714 ;; 12715 openbsd* | bitrig*) 12716 with_gnu_ld=no 12717 ;; 12718 esac 12719 12720 ld_shlibs=yes 12721 12722 # On some targets, GNU ld is compatible enough with the native linker 12723 # that we're better off using the native interface for both. 12724 lt_use_gnu_ld_interface=no 12725 if test yes = "$with_gnu_ld"; then 12726 case $host_os in 12727 aix*) 12728 # The AIX port of GNU ld has always aspired to compatibility 12729 # with the native linker. However, as the warning in the GNU ld 12730 # block says, versions before 2.19.5* couldn't really create working 12731 # shared libraries, regardless of the interface used. 12732 case `$LD -v 2>&1` in 12733 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12734 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12735 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12736 *) 12737 lt_use_gnu_ld_interface=yes 12738 ;; 12739 esac 12740 ;; 12741 *) 12742 lt_use_gnu_ld_interface=yes 12743 ;; 12744 esac 12745 fi 12746 12747 if test yes = "$lt_use_gnu_ld_interface"; then 12748 # If archive_cmds runs LD, not CC, wlarc should be empty 12749 wlarc='$wl' 12750 12751 # Set some defaults for GNU ld with shared library support. These 12752 # are reset later if shared libraries are not supported. Putting them 12753 # here allows them to be overridden if necessary. 12754 runpath_var=LD_RUN_PATH 12755 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12756 export_dynamic_flag_spec='$wl--export-dynamic' 12757 # ancient GNU ld didn't support --whole-archive et. al. 12758 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12759 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12760 else 12761 whole_archive_flag_spec= 12762 fi 12763 supports_anon_versioning=no 12764 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 12765 *GNU\ gold*) supports_anon_versioning=yes ;; 12766 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12767 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12768 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12769 *\ 2.11.*) ;; # other 2.11 versions 12770 *) supports_anon_versioning=yes ;; 12771 esac 12772 12773 # See if GNU ld supports shared libraries. 12774 case $host_os in 12775 aix[3-9]*) 12776 # On AIX/PPC, the GNU linker is very broken 12777 if test ia64 != "$host_cpu"; then 12778 ld_shlibs=no 12779 cat <<_LT_EOF 1>&2 12780 12781*** Warning: the GNU linker, at least up to release 2.19, is reported 12782*** to be unable to reliably create shared libraries on AIX. 12783*** Therefore, libtool is disabling shared libraries support. If you 12784*** really care for shared libraries, you may want to install binutils 12785*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12786*** You will then need to restart the configuration process. 12787 12788_LT_EOF 12789 fi 12790 ;; 12791 12792 amigaos*) 12793 case $host_cpu in 12794 powerpc) 12795 # see comment about AmigaOS4 .so support 12796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12797 archive_expsym_cmds='' 12798 ;; 12799 m68k) 12800 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)' 12801 hardcode_libdir_flag_spec='-L$libdir' 12802 hardcode_minus_L=yes 12803 ;; 12804 esac 12805 ;; 12806 12807 beos*) 12808 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12809 allow_undefined_flag=unsupported 12810 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12811 # support --undefined. This deserves some investigation. FIXME 12812 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12813 else 12814 ld_shlibs=no 12815 fi 12816 ;; 12817 12818 cygwin* | mingw* | pw32* | cegcc*) 12819 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12820 # as there is no search path for DLLs. 12821 hardcode_libdir_flag_spec='-L$libdir' 12822 export_dynamic_flag_spec='$wl--export-all-symbols' 12823 allow_undefined_flag=unsupported 12824 always_export_symbols=no 12825 enable_shared_with_static_runtimes=yes 12826 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' 12827 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12828 12829 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12831 # If the export-symbols file already is a .def file, use it as 12832 # is; otherwise, prepend EXPORTS... 12833 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12834 cp $export_symbols $output_objdir/$soname.def; 12835 else 12836 echo EXPORTS > $output_objdir/$soname.def; 12837 cat $export_symbols >> $output_objdir/$soname.def; 12838 fi~ 12839 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12840 else 12841 ld_shlibs=no 12842 fi 12843 ;; 12844 12845 haiku*) 12846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12847 link_all_deplibs=yes 12848 ;; 12849 12850 os2*) 12851 hardcode_libdir_flag_spec='-L$libdir' 12852 hardcode_minus_L=yes 12853 allow_undefined_flag=unsupported 12854 shrext_cmds=.dll 12855 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12856 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12857 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12858 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12859 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12860 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12861 emximp -o $lib $output_objdir/$libname.def' 12862 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12863 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12864 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12865 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12866 prefix_cmds="$SED"~ 12867 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12868 prefix_cmds="$prefix_cmds -e 1d"; 12869 fi~ 12870 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12871 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12872 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12873 emximp -o $lib $output_objdir/$libname.def' 12874 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12875 enable_shared_with_static_runtimes=yes 12876 file_list_spec='@' 12877 ;; 12878 12879 interix[3-9]*) 12880 hardcode_direct=no 12881 hardcode_shlibpath_var=no 12882 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12883 export_dynamic_flag_spec='$wl-E' 12884 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12885 # Instead, shared libraries are loaded at an image base (0x10000000 by 12886 # default) and relocated if they conflict, which is a slow very memory 12887 # consuming and fragmenting process. To avoid this, we pick a random, 12888 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12889 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12890 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12891 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' 12892 ;; 12893 12894 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12895 tmp_diet=no 12896 if test linux-dietlibc = "$host_os"; then 12897 case $cc_basename in 12898 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12899 esac 12900 fi 12901 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12902 && test no = "$tmp_diet" 12903 then 12904 tmp_addflag=' $pic_flag' 12905 tmp_sharedflag='-shared' 12906 case $cc_basename,$host_cpu in 12907 pgcc*) # Portland Group C compiler 12908 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' 12909 tmp_addflag=' $pic_flag' 12910 ;; 12911 pgf77* | pgf90* | pgf95* | pgfortran*) 12912 # Portland Group f77 and f90 compilers 12913 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' 12914 tmp_addflag=' $pic_flag -Mnomain' ;; 12915 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12916 tmp_addflag=' -i_dynamic' ;; 12917 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12918 tmp_addflag=' -i_dynamic -nofor_main' ;; 12919 ifc* | ifort*) # Intel Fortran compiler 12920 tmp_addflag=' -nofor_main' ;; 12921 lf95*) # Lahey Fortran 8.1 12922 whole_archive_flag_spec= 12923 tmp_sharedflag='--shared' ;; 12924 nagfor*) # NAGFOR 5.3 12925 tmp_sharedflag='-Wl,-shared' ;; 12926 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12927 tmp_sharedflag='-qmkshrobj' 12928 tmp_addflag= ;; 12929 nvcc*) # Cuda Compiler Driver 2.2 12930 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' 12931 compiler_needs_object=yes 12932 ;; 12933 esac 12934 case `$CC -V 2>&1 | $SED 5q` in 12935 *Sun\ C*) # Sun C 5.9 12936 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' 12937 compiler_needs_object=yes 12938 tmp_sharedflag='-G' ;; 12939 *Sun\ F*) # Sun Fortran 8.3 12940 tmp_sharedflag='-G' ;; 12941 esac 12942 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12943 12944 if test yes = "$supports_anon_versioning"; then 12945 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12946 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12947 echo "local: *; };" >> $output_objdir/$libname.ver~ 12948 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 12949 fi 12950 12951 case $cc_basename in 12952 tcc*) 12953 export_dynamic_flag_spec='-rdynamic' 12954 ;; 12955 xlf* | bgf* | bgxlf* | mpixlf*) 12956 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12957 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12958 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12959 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12960 if test yes = "$supports_anon_versioning"; then 12961 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12962 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12963 echo "local: *; };" >> $output_objdir/$libname.ver~ 12964 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12965 fi 12966 ;; 12967 esac 12968 else 12969 ld_shlibs=no 12970 fi 12971 ;; 12972 12973 netbsd*) 12974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12975 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12976 wlarc= 12977 else 12978 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12979 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12980 fi 12981 ;; 12982 12983 solaris*) 12984 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12985 ld_shlibs=no 12986 cat <<_LT_EOF 1>&2 12987 12988*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12989*** create shared libraries on Solaris systems. Therefore, libtool 12990*** is disabling shared libraries support. We urge you to upgrade GNU 12991*** binutils to release 2.9.1 or newer. Another option is to modify 12992*** your PATH or compiler configuration so that the native linker is 12993*** used, and then restart. 12994 12995_LT_EOF 12996 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12997 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12998 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12999 else 13000 ld_shlibs=no 13001 fi 13002 ;; 13003 13004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13005 case `$LD -v 2>&1` in 13006 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13007 ld_shlibs=no 13008 cat <<_LT_EOF 1>&2 13009 13010*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 13011*** reliably create shared libraries on SCO systems. Therefore, libtool 13012*** is disabling shared libraries support. We urge you to upgrade GNU 13013*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13014*** your PATH or compiler configuration so that the native linker is 13015*** used, and then restart. 13016 13017_LT_EOF 13018 ;; 13019 *) 13020 # For security reasons, it is highly recommended that you always 13021 # use absolute paths for naming shared libraries, and exclude the 13022 # DT_RUNPATH tag from executables and libraries. But doing so 13023 # requires that you compile everything twice, which is a pain. 13024 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13025 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13027 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13028 else 13029 ld_shlibs=no 13030 fi 13031 ;; 13032 esac 13033 ;; 13034 13035 sunos4*) 13036 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13037 wlarc= 13038 hardcode_direct=yes 13039 hardcode_shlibpath_var=no 13040 ;; 13041 13042 *) 13043 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13044 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13045 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13046 else 13047 ld_shlibs=no 13048 fi 13049 ;; 13050 esac 13051 13052 if test no = "$ld_shlibs"; then 13053 runpath_var= 13054 hardcode_libdir_flag_spec= 13055 export_dynamic_flag_spec= 13056 whole_archive_flag_spec= 13057 fi 13058 else 13059 # PORTME fill in a description of your system's linker (not GNU ld) 13060 case $host_os in 13061 aix3*) 13062 allow_undefined_flag=unsupported 13063 always_export_symbols=yes 13064 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' 13065 # Note: this linker hardcodes the directories in LIBPATH if there 13066 # are no directories specified by -L. 13067 hardcode_minus_L=yes 13068 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 13069 # Neither direct hardcoding nor static linking is supported with a 13070 # broken collect2. 13071 hardcode_direct=unsupported 13072 fi 13073 ;; 13074 13075 aix[4-9]*) 13076 if test ia64 = "$host_cpu"; then 13077 # On IA64, the linker does run time linking by default, so we don't 13078 # have to do anything special. 13079 aix_use_runtimelinking=no 13080 exp_sym_flag='-Bexport' 13081 no_entry_flag= 13082 else 13083 # If we're using GNU nm, then we don't want the "-C" option. 13084 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 13085 # Without the "-l" option, or with the "-B" option, AIX nm treats 13086 # weak defined symbols like other global defined symbols, whereas 13087 # GNU nm marks them as "W". 13088 # While the 'weak' keyword is ignored in the Export File, we need 13089 # it in the Import File for the 'aix-soname' feature, so we have 13090 # to replace the "-B" option with "-P" for AIX nm. 13091 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13092 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 13093 else 13094 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 13095 fi 13096 aix_use_runtimelinking=no 13097 13098 # Test if we are trying to use run time linking or normal 13099 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13100 # have runtime linking enabled, and use it for executables. 13101 # For shared libraries, we enable/disable runtime linking 13102 # depending on the kind of the shared library created - 13103 # when "with_aix_soname,aix_use_runtimelinking" is: 13104 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13105 # "aix,yes" lib.so shared, rtl:yes, for executables 13106 # lib.a static archive 13107 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13108 # lib.a(lib.so.V) shared, rtl:no, for executables 13109 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13110 # lib.a(lib.so.V) shared, rtl:no 13111 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13112 # lib.a static archive 13113 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13114 for ld_flag in $LDFLAGS; do 13115 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 13116 aix_use_runtimelinking=yes 13117 break 13118 fi 13119 done 13120 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13121 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13122 # so we don't have lib.a shared libs to link our executables. 13123 # We have to force runtime linking in this case. 13124 aix_use_runtimelinking=yes 13125 LDFLAGS="$LDFLAGS -Wl,-brtl" 13126 fi 13127 ;; 13128 esac 13129 13130 exp_sym_flag='-bexport' 13131 no_entry_flag='-bnoentry' 13132 fi 13133 13134 # When large executables or shared objects are built, AIX ld can 13135 # have problems creating the table of contents. If linking a library 13136 # or program results in "error TOC overflow" add -mminimal-toc to 13137 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13138 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13139 13140 archive_cmds='' 13141 hardcode_direct=yes 13142 hardcode_direct_absolute=yes 13143 hardcode_libdir_separator=':' 13144 link_all_deplibs=yes 13145 file_list_spec='$wl-f,' 13146 case $with_aix_soname,$aix_use_runtimelinking in 13147 aix,*) ;; # traditional, no import file 13148 svr4,* | *,yes) # use import file 13149 # The Import File defines what to hardcode. 13150 hardcode_direct=no 13151 hardcode_direct_absolute=no 13152 ;; 13153 esac 13154 13155 if test yes = "$GCC"; then 13156 case $host_os in aix4.[012]|aix4.[012].*) 13157 # We only want to do this on AIX 4.2 and lower, the check 13158 # below for broken collect2 doesn't work under 4.3+ 13159 collect2name=`$CC -print-prog-name=collect2` 13160 if test -f "$collect2name" && 13161 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13162 then 13163 # We have reworked collect2 13164 : 13165 else 13166 # We have old collect2 13167 hardcode_direct=unsupported 13168 # It fails to find uninstalled libraries when the uninstalled 13169 # path is not listed in the libpath. Setting hardcode_minus_L 13170 # to unsupported forces relinking 13171 hardcode_minus_L=yes 13172 hardcode_libdir_flag_spec='-L$libdir' 13173 hardcode_libdir_separator= 13174 fi 13175 ;; 13176 esac 13177 shared_flag='-shared' 13178 if test yes = "$aix_use_runtimelinking"; then 13179 shared_flag="$shared_flag "'$wl-G' 13180 fi 13181 # Need to ensure runtime linking is disabled for the traditional 13182 # shared library, or the linker may eventually find shared libraries 13183 # /with/ Import File - we do not want to mix them. 13184 shared_flag_aix='-shared' 13185 shared_flag_svr4='-shared $wl-G' 13186 else 13187 # not using gcc 13188 if test ia64 = "$host_cpu"; then 13189 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13190 # chokes on -Wl,-G. The following line is correct: 13191 shared_flag='-G' 13192 else 13193 if test yes = "$aix_use_runtimelinking"; then 13194 shared_flag='$wl-G' 13195 else 13196 shared_flag='$wl-bM:SRE' 13197 fi 13198 shared_flag_aix='$wl-bM:SRE' 13199 shared_flag_svr4='$wl-G' 13200 fi 13201 fi 13202 13203 export_dynamic_flag_spec='$wl-bexpall' 13204 # It seems that -bexpall does not export symbols beginning with 13205 # underscore (_), so it is better to generate a list of symbols to export. 13206 always_export_symbols=yes 13207 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13208 # Warning - without using the other runtime loading flags (-brtl), 13209 # -berok will link without error, but may produce a broken library. 13210 allow_undefined_flag='-berok' 13211 # Determine the default libpath from the value encoded in an 13212 # empty executable. 13213 if test set = "${lt_cv_aix_libpath+set}"; then 13214 aix_libpath=$lt_cv_aix_libpath 13215else 13216 if test ${lt_cv_aix_libpath_+y} 13217then : 13218 printf %s "(cached) " >&6 13219else $as_nop 13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13221/* end confdefs.h. */ 13222 13223int 13224main (void) 13225{ 13226 13227 ; 13228 return 0; 13229} 13230_ACEOF 13231if ac_fn_c_try_link "$LINENO" 13232then : 13233 13234 lt_aix_libpath_sed=' 13235 /Import File Strings/,/^$/ { 13236 /^0/ { 13237 s/^0 *\([^ ]*\) *$/\1/ 13238 p 13239 } 13240 }' 13241 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13242 # Check for a 64-bit object if we didn't find anything. 13243 if test -z "$lt_cv_aix_libpath_"; then 13244 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13245 fi 13246fi 13247rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13248 conftest$ac_exeext conftest.$ac_ext 13249 if test -z "$lt_cv_aix_libpath_"; then 13250 lt_cv_aix_libpath_=/usr/lib:/lib 13251 fi 13252 13253fi 13254 13255 aix_libpath=$lt_cv_aix_libpath_ 13256fi 13257 13258 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13259 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 13260 else 13261 if test ia64 = "$host_cpu"; then 13262 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 13263 allow_undefined_flag="-z nodefs" 13264 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" 13265 else 13266 # Determine the default libpath from the value encoded in an 13267 # empty executable. 13268 if test set = "${lt_cv_aix_libpath+set}"; then 13269 aix_libpath=$lt_cv_aix_libpath 13270else 13271 if test ${lt_cv_aix_libpath_+y} 13272then : 13273 printf %s "(cached) " >&6 13274else $as_nop 13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13276/* end confdefs.h. */ 13277 13278int 13279main (void) 13280{ 13281 13282 ; 13283 return 0; 13284} 13285_ACEOF 13286if ac_fn_c_try_link "$LINENO" 13287then : 13288 13289 lt_aix_libpath_sed=' 13290 /Import File Strings/,/^$/ { 13291 /^0/ { 13292 s/^0 *\([^ ]*\) *$/\1/ 13293 p 13294 } 13295 }' 13296 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13297 # Check for a 64-bit object if we didn't find anything. 13298 if test -z "$lt_cv_aix_libpath_"; then 13299 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13300 fi 13301fi 13302rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13303 conftest$ac_exeext conftest.$ac_ext 13304 if test -z "$lt_cv_aix_libpath_"; then 13305 lt_cv_aix_libpath_=/usr/lib:/lib 13306 fi 13307 13308fi 13309 13310 aix_libpath=$lt_cv_aix_libpath_ 13311fi 13312 13313 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13314 # Warning - without using the other run time loading flags, 13315 # -berok will link without error, but may produce a broken library. 13316 no_undefined_flag=' $wl-bernotok' 13317 allow_undefined_flag=' $wl-berok' 13318 if test yes = "$with_gnu_ld"; then 13319 # We only use this code for GNU lds that support --whole-archive. 13320 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 13321 else 13322 # Exported symbols can be pulled into shared objects from archives 13323 whole_archive_flag_spec='$convenience' 13324 fi 13325 archive_cmds_need_lc=yes 13326 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13327 # -brtl affects multiple linker settings, -berok does not and is overridden later 13328 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13329 if test svr4 != "$with_aix_soname"; then 13330 # This is similar to how AIX traditionally builds its shared libraries. 13331 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 13332 fi 13333 if test aix != "$with_aix_soname"; then 13334 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 13335 else 13336 # used by -dlpreopen to get the symbols 13337 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13338 fi 13339 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 13340 fi 13341 fi 13342 ;; 13343 13344 amigaos*) 13345 case $host_cpu in 13346 powerpc) 13347 # see comment about AmigaOS4 .so support 13348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13349 archive_expsym_cmds='' 13350 ;; 13351 m68k) 13352 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)' 13353 hardcode_libdir_flag_spec='-L$libdir' 13354 hardcode_minus_L=yes 13355 ;; 13356 esac 13357 ;; 13358 13359 bsdi[45]*) 13360 export_dynamic_flag_spec=-rdynamic 13361 ;; 13362 13363 cygwin* | mingw* | pw32* | cegcc*) 13364 # When not using gcc, we currently assume that we are using 13365 # Microsoft Visual C++ or Intel C++ Compiler. 13366 # hardcode_libdir_flag_spec is actually meaningless, as there is 13367 # no search path for DLLs. 13368 case $cc_basename in 13369 cl* | icl*) 13370 # Native MSVC or ICC 13371 hardcode_libdir_flag_spec=' ' 13372 allow_undefined_flag=unsupported 13373 always_export_symbols=yes 13374 file_list_spec='@' 13375 # Tell ltmain to make .lib files, not .a files. 13376 libext=lib 13377 # Tell ltmain to make .dll files, not .so files. 13378 shrext_cmds=.dll 13379 # FIXME: Setting linknames here is a bad hack. 13380 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13381 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13382 cp "$export_symbols" "$output_objdir/$soname.def"; 13383 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13384 else 13385 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13386 fi~ 13387 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13388 linknames=' 13389 # The linker will not automatically build a static lib if we build a DLL. 13390 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 13391 enable_shared_with_static_runtimes=yes 13392 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 13393 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13394 # Don't use ranlib 13395 old_postinstall_cmds='chmod 644 $oldlib' 13396 postlink_cmds='lt_outputfile="@OUTPUT@"~ 13397 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13398 case $lt_outputfile in 13399 *.exe|*.EXE) ;; 13400 *) 13401 lt_outputfile=$lt_outputfile.exe 13402 lt_tool_outputfile=$lt_tool_outputfile.exe 13403 ;; 13404 esac~ 13405 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13406 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13407 $RM "$lt_outputfile.manifest"; 13408 fi' 13409 ;; 13410 *) 13411 # Assume MSVC and ICC wrapper 13412 hardcode_libdir_flag_spec=' ' 13413 allow_undefined_flag=unsupported 13414 # Tell ltmain to make .lib files, not .a files. 13415 libext=lib 13416 # Tell ltmain to make .dll files, not .so files. 13417 shrext_cmds=.dll 13418 # FIXME: Setting linknames here is a bad hack. 13419 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13420 # The linker will automatically build a .lib file if we build a DLL. 13421 old_archive_from_new_cmds='true' 13422 # FIXME: Should let the user specify the lib program. 13423 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 13424 enable_shared_with_static_runtimes=yes 13425 ;; 13426 esac 13427 ;; 13428 13429 darwin* | rhapsody*) 13430 13431 13432 archive_cmds_need_lc=no 13433 hardcode_direct=no 13434 hardcode_automatic=yes 13435 hardcode_shlibpath_var=unsupported 13436 if test yes = "$lt_cv_ld_force_load"; then 13437 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\"`' 13438 13439 else 13440 whole_archive_flag_spec='' 13441 fi 13442 link_all_deplibs=yes 13443 allow_undefined_flag=$_lt_dar_allow_undefined 13444 case $cc_basename in 13445 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13446 *) _lt_dar_can_shared=$GCC ;; 13447 esac 13448 if test yes = "$_lt_dar_can_shared"; then 13449 output_verbose_link_cmd=func_echo_all 13450 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13451 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13452 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" 13453 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" 13454 13455 else 13456 ld_shlibs=no 13457 fi 13458 13459 ;; 13460 13461 dgux*) 13462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13463 hardcode_libdir_flag_spec='-L$libdir' 13464 hardcode_shlibpath_var=no 13465 ;; 13466 13467 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13468 # support. Future versions do this automatically, but an explicit c++rt0.o 13469 # does not break anything, and helps significantly (at the cost of a little 13470 # extra space). 13471 freebsd2.2*) 13472 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13473 hardcode_libdir_flag_spec='-R$libdir' 13474 hardcode_direct=yes 13475 hardcode_shlibpath_var=no 13476 ;; 13477 13478 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13479 freebsd2.*) 13480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13481 hardcode_direct=yes 13482 hardcode_minus_L=yes 13483 hardcode_shlibpath_var=no 13484 ;; 13485 13486 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13487 freebsd* | dragonfly* | midnightbsd*) 13488 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13489 hardcode_libdir_flag_spec='-R$libdir' 13490 hardcode_direct=yes 13491 hardcode_shlibpath_var=no 13492 ;; 13493 13494 hpux9*) 13495 if test yes = "$GCC"; then 13496 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13497 else 13498 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13499 fi 13500 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13501 hardcode_libdir_separator=: 13502 hardcode_direct=yes 13503 13504 # hardcode_minus_L: Not really in the search PATH, 13505 # but as the default location of the library. 13506 hardcode_minus_L=yes 13507 export_dynamic_flag_spec='$wl-E' 13508 ;; 13509 13510 hpux10*) 13511 if test yes,no = "$GCC,$with_gnu_ld"; then 13512 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13513 else 13514 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13515 fi 13516 if test no = "$with_gnu_ld"; then 13517 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13518 hardcode_libdir_separator=: 13519 hardcode_direct=yes 13520 hardcode_direct_absolute=yes 13521 export_dynamic_flag_spec='$wl-E' 13522 # hardcode_minus_L: Not really in the search PATH, 13523 # but as the default location of the library. 13524 hardcode_minus_L=yes 13525 fi 13526 ;; 13527 13528 hpux11*) 13529 if test yes,no = "$GCC,$with_gnu_ld"; then 13530 case $host_cpu in 13531 hppa*64*) 13532 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13533 ;; 13534 ia64*) 13535 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13536 ;; 13537 *) 13538 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13539 ;; 13540 esac 13541 else 13542 case $host_cpu in 13543 hppa*64*) 13544 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13545 ;; 13546 ia64*) 13547 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13548 ;; 13549 *) 13550 13551 # Older versions of the 11.00 compiler do not understand -b yet 13552 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 13553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 13554printf %s "checking if $CC understands -b... " >&6; } 13555if test ${lt_cv_prog_compiler__b+y} 13556then : 13557 printf %s "(cached) " >&6 13558else $as_nop 13559 lt_cv_prog_compiler__b=no 13560 save_LDFLAGS=$LDFLAGS 13561 LDFLAGS="$LDFLAGS -b" 13562 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13563 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13564 # The linker can only warn and ignore the option if not recognized 13565 # So say no if there are warnings 13566 if test -s conftest.err; then 13567 # Append any errors to the config.log. 13568 cat conftest.err 1>&5 13569 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13571 if diff conftest.exp conftest.er2 >/dev/null; then 13572 lt_cv_prog_compiler__b=yes 13573 fi 13574 else 13575 lt_cv_prog_compiler__b=yes 13576 fi 13577 fi 13578 $RM -r conftest* 13579 LDFLAGS=$save_LDFLAGS 13580 13581fi 13582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 13583printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 13584 13585if test yes = "$lt_cv_prog_compiler__b"; then 13586 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13587else 13588 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13589fi 13590 13591 ;; 13592 esac 13593 fi 13594 if test no = "$with_gnu_ld"; then 13595 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13596 hardcode_libdir_separator=: 13597 13598 case $host_cpu in 13599 hppa*64*|ia64*) 13600 hardcode_direct=no 13601 hardcode_shlibpath_var=no 13602 ;; 13603 *) 13604 hardcode_direct=yes 13605 hardcode_direct_absolute=yes 13606 export_dynamic_flag_spec='$wl-E' 13607 13608 # hardcode_minus_L: Not really in the search PATH, 13609 # but as the default location of the library. 13610 hardcode_minus_L=yes 13611 ;; 13612 esac 13613 fi 13614 ;; 13615 13616 irix5* | irix6* | nonstopux*) 13617 if test yes = "$GCC"; then 13618 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' 13619 # Try to use the -exported_symbol ld option, if it does not 13620 # work, assume that -exports_file does not work either and 13621 # implicitly export all symbols. 13622 # This should be the same for all languages, so no per-tag cache variable. 13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13624printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13625if test ${lt_cv_irix_exported_symbol+y} 13626then : 13627 printf %s "(cached) " >&6 13628else $as_nop 13629 save_LDFLAGS=$LDFLAGS 13630 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13632/* end confdefs.h. */ 13633int foo (void) { return 0; } 13634_ACEOF 13635if ac_fn_c_try_link "$LINENO" 13636then : 13637 lt_cv_irix_exported_symbol=yes 13638else $as_nop 13639 lt_cv_irix_exported_symbol=no 13640fi 13641rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13642 conftest$ac_exeext conftest.$ac_ext 13643 LDFLAGS=$save_LDFLAGS 13644fi 13645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13646printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 13647 if test yes = "$lt_cv_irix_exported_symbol"; then 13648 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' 13649 fi 13650 else 13651 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' 13652 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' 13653 fi 13654 archive_cmds_need_lc='no' 13655 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13656 hardcode_libdir_separator=: 13657 inherit_rpath=yes 13658 link_all_deplibs=yes 13659 ;; 13660 13661 linux*) 13662 case $cc_basename in 13663 tcc*) 13664 # Fabrice Bellard et al's Tiny C Compiler 13665 ld_shlibs=yes 13666 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13667 ;; 13668 esac 13669 ;; 13670 13671 netbsd*) 13672 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13674 else 13675 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13676 fi 13677 hardcode_libdir_flag_spec='-R$libdir' 13678 hardcode_direct=yes 13679 hardcode_shlibpath_var=no 13680 ;; 13681 13682 newsos6) 13683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13684 hardcode_direct=yes 13685 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13686 hardcode_libdir_separator=: 13687 hardcode_shlibpath_var=no 13688 ;; 13689 13690 *nto* | *qnx*) 13691 ;; 13692 13693 openbsd* | bitrig*) 13694 if test -f /usr/libexec/ld.so; then 13695 hardcode_direct=yes 13696 hardcode_shlibpath_var=no 13697 hardcode_direct_absolute=yes 13698 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13700 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 13701 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13702 export_dynamic_flag_spec='$wl-E' 13703 else 13704 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13705 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13706 fi 13707 else 13708 ld_shlibs=no 13709 fi 13710 ;; 13711 13712 os2*) 13713 hardcode_libdir_flag_spec='-L$libdir' 13714 hardcode_minus_L=yes 13715 allow_undefined_flag=unsupported 13716 shrext_cmds=.dll 13717 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13718 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13719 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13720 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13721 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13722 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13723 emximp -o $lib $output_objdir/$libname.def' 13724 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13725 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13726 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13727 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13728 prefix_cmds="$SED"~ 13729 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13730 prefix_cmds="$prefix_cmds -e 1d"; 13731 fi~ 13732 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13733 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13734 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13735 emximp -o $lib $output_objdir/$libname.def' 13736 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13737 enable_shared_with_static_runtimes=yes 13738 file_list_spec='@' 13739 ;; 13740 13741 osf3*) 13742 if test yes = "$GCC"; then 13743 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13744 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' 13745 else 13746 allow_undefined_flag=' -expect_unresolved \*' 13747 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' 13748 fi 13749 archive_cmds_need_lc='no' 13750 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13751 hardcode_libdir_separator=: 13752 ;; 13753 13754 osf4* | osf5*) # as osf3* with the addition of -msym flag 13755 if test yes = "$GCC"; then 13756 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13757 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' 13758 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13759 else 13760 allow_undefined_flag=' -expect_unresolved \*' 13761 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' 13762 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~ 13763 $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' 13764 13765 # Both c and cxx compiler support -rpath directly 13766 hardcode_libdir_flag_spec='-rpath $libdir' 13767 fi 13768 archive_cmds_need_lc='no' 13769 hardcode_libdir_separator=: 13770 ;; 13771 13772 solaris*) 13773 no_undefined_flag=' -z defs' 13774 if test yes = "$GCC"; then 13775 wlarc='$wl' 13776 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13777 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13778 $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' 13779 else 13780 case `$CC -V 2>&1` in 13781 *"Compilers 5.0"*) 13782 wlarc='' 13783 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 13784 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13785 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13786 ;; 13787 *) 13788 wlarc='$wl' 13789 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13790 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13791 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13792 ;; 13793 esac 13794 fi 13795 hardcode_libdir_flag_spec='-R$libdir' 13796 hardcode_shlibpath_var=no 13797 case $host_os in 13798 solaris2.[0-5] | solaris2.[0-5].*) ;; 13799 *) 13800 # The compiler driver will combine and reorder linker options, 13801 # but understands '-z linker_flag'. GCC discards it without '$wl', 13802 # but is careful enough not to reorder. 13803 # Supported since Solaris 2.6 (maybe 2.5.1?) 13804 if test yes = "$GCC"; then 13805 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13806 else 13807 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13808 fi 13809 ;; 13810 esac 13811 link_all_deplibs=yes 13812 ;; 13813 13814 sunos4*) 13815 if test sequent = "$host_vendor"; then 13816 # Use $CC to link under sequent, because it throws in some extra .o 13817 # files that make .init and .fini sections work. 13818 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13819 else 13820 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13821 fi 13822 hardcode_libdir_flag_spec='-L$libdir' 13823 hardcode_direct=yes 13824 hardcode_minus_L=yes 13825 hardcode_shlibpath_var=no 13826 ;; 13827 13828 sysv4) 13829 case $host_vendor in 13830 sni) 13831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13832 hardcode_direct=yes # is this really true??? 13833 ;; 13834 siemens) 13835 ## LD is ld it makes a PLAMLIB 13836 ## CC just makes a GrossModule. 13837 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13838 reload_cmds='$CC -r -o $output$reload_objs' 13839 hardcode_direct=no 13840 ;; 13841 motorola) 13842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13843 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13844 ;; 13845 esac 13846 runpath_var='LD_RUN_PATH' 13847 hardcode_shlibpath_var=no 13848 ;; 13849 13850 sysv4.3*) 13851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13852 hardcode_shlibpath_var=no 13853 export_dynamic_flag_spec='-Bexport' 13854 ;; 13855 13856 sysv4*MP*) 13857 if test -d /usr/nec; then 13858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13859 hardcode_shlibpath_var=no 13860 runpath_var=LD_RUN_PATH 13861 hardcode_runpath_var=yes 13862 ld_shlibs=yes 13863 fi 13864 ;; 13865 13866 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13867 no_undefined_flag='$wl-z,text' 13868 archive_cmds_need_lc=no 13869 hardcode_shlibpath_var=no 13870 runpath_var='LD_RUN_PATH' 13871 13872 if test yes = "$GCC"; then 13873 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13874 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13875 else 13876 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13877 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13878 fi 13879 ;; 13880 13881 sysv5* | sco3.2v5* | sco5v6*) 13882 # Note: We CANNOT use -z defs as we might desire, because we do not 13883 # link with -lc, and that would cause any symbols used from libc to 13884 # always be unresolved, which means just about no library would 13885 # ever link correctly. If we're not using GNU ld we use -z text 13886 # though, which does catch some bad symbols but isn't as heavy-handed 13887 # as -z defs. 13888 no_undefined_flag='$wl-z,text' 13889 allow_undefined_flag='$wl-z,nodefs' 13890 archive_cmds_need_lc=no 13891 hardcode_shlibpath_var=no 13892 hardcode_libdir_flag_spec='$wl-R,$libdir' 13893 hardcode_libdir_separator=':' 13894 link_all_deplibs=yes 13895 export_dynamic_flag_spec='$wl-Bexport' 13896 runpath_var='LD_RUN_PATH' 13897 13898 if test yes = "$GCC"; then 13899 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13900 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13901 else 13902 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13903 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13904 fi 13905 ;; 13906 13907 uts4*) 13908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13909 hardcode_libdir_flag_spec='-L$libdir' 13910 hardcode_shlibpath_var=no 13911 ;; 13912 13913 *) 13914 ld_shlibs=no 13915 ;; 13916 esac 13917 13918 if test sni = "$host_vendor"; then 13919 case $host in 13920 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13921 export_dynamic_flag_spec='$wl-Blargedynsym' 13922 ;; 13923 esac 13924 fi 13925 fi 13926 13927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13928printf "%s\n" "$ld_shlibs" >&6; } 13929test no = "$ld_shlibs" && can_build_shared=no 13930 13931with_gnu_ld=$with_gnu_ld 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947# 13948# Do we need to explicitly link libc? 13949# 13950case "x$archive_cmds_need_lc" in 13951x|xyes) 13952 # Assume -lc should be added 13953 archive_cmds_need_lc=yes 13954 13955 if test yes,yes = "$GCC,$enable_shared"; then 13956 case $archive_cmds in 13957 *'~'*) 13958 # FIXME: we may have to deal with multi-command sequences. 13959 ;; 13960 '$CC '*) 13961 # Test whether the compiler implicitly links with -lc since on some 13962 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13963 # to ld, don't add -lc before -lgcc. 13964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13965printf %s "checking whether -lc should be explicitly linked in... " >&6; } 13966if test ${lt_cv_archive_cmds_need_lc+y} 13967then : 13968 printf %s "(cached) " >&6 13969else $as_nop 13970 $RM conftest* 13971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13972 13973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13974 (eval $ac_compile) 2>&5 13975 ac_status=$? 13976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13977 test $ac_status = 0; } 2>conftest.err; then 13978 soname=conftest 13979 lib=conftest 13980 libobjs=conftest.$ac_objext 13981 deplibs= 13982 wl=$lt_prog_compiler_wl 13983 pic_flag=$lt_prog_compiler_pic 13984 compiler_flags=-v 13985 linker_flags=-v 13986 verstring= 13987 output_objdir=. 13988 libname=conftest 13989 lt_save_allow_undefined_flag=$allow_undefined_flag 13990 allow_undefined_flag= 13991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13992 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13993 ac_status=$? 13994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13995 test $ac_status = 0; } 13996 then 13997 lt_cv_archive_cmds_need_lc=no 13998 else 13999 lt_cv_archive_cmds_need_lc=yes 14000 fi 14001 allow_undefined_flag=$lt_save_allow_undefined_flag 14002 else 14003 cat conftest.err 1>&5 14004 fi 14005 $RM conftest* 14006 14007fi 14008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 14009printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 14010 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 14011 ;; 14012 esac 14013 fi 14014 ;; 14015esac 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14169printf %s "checking dynamic linker characteristics... " >&6; } 14170 14171if test yes = "$GCC"; then 14172 case $host_os in 14173 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 14174 *) lt_awk_arg='/^libraries:/' ;; 14175 esac 14176 case $host_os in 14177 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 14178 *) lt_sed_strip_eq='s|=/|/|g' ;; 14179 esac 14180 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 14181 case $lt_search_path_spec in 14182 *\;*) 14183 # if the path contains ";" then we assume it to be the separator 14184 # otherwise default to the standard path separator (i.e. ":") - it is 14185 # assumed that no part of a normal pathname contains ";" but that should 14186 # okay in the real world where ";" in dirpaths is itself problematic. 14187 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 14188 ;; 14189 *) 14190 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 14191 ;; 14192 esac 14193 # Ok, now we have the path, separated by spaces, we can step through it 14194 # and add multilib dir if necessary... 14195 lt_tmp_lt_search_path_spec= 14196 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 14197 # ...but if some path component already ends with the multilib dir we assume 14198 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 14199 case "$lt_multi_os_dir; $lt_search_path_spec " in 14200 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 14201 lt_multi_os_dir= 14202 ;; 14203 esac 14204 for lt_sys_path in $lt_search_path_spec; do 14205 if test -d "$lt_sys_path$lt_multi_os_dir"; then 14206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 14207 elif test -n "$lt_multi_os_dir"; then 14208 test -d "$lt_sys_path" && \ 14209 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 14210 fi 14211 done 14212 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 14213BEGIN {RS = " "; FS = "/|\n";} { 14214 lt_foo = ""; 14215 lt_count = 0; 14216 for (lt_i = NF; lt_i > 0; lt_i--) { 14217 if ($lt_i != "" && $lt_i != ".") { 14218 if ($lt_i == "..") { 14219 lt_count++; 14220 } else { 14221 if (lt_count == 0) { 14222 lt_foo = "/" $lt_i lt_foo; 14223 } else { 14224 lt_count--; 14225 } 14226 } 14227 } 14228 } 14229 if (lt_foo != "") { lt_freq[lt_foo]++; } 14230 if (lt_freq[lt_foo] == 1) { print lt_foo; } 14231}'` 14232 # AWK program above erroneously prepends '/' to C:/dos/paths 14233 # for these hosts. 14234 case $host_os in 14235 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 14236 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 14237 esac 14238 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 14239else 14240 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14241fi 14242library_names_spec= 14243libname_spec='lib$name' 14244soname_spec= 14245shrext_cmds=.so 14246postinstall_cmds= 14247postuninstall_cmds= 14248finish_cmds= 14249finish_eval= 14250shlibpath_var= 14251shlibpath_overrides_runpath=unknown 14252version_type=none 14253dynamic_linker="$host_os ld.so" 14254sys_lib_dlsearch_path_spec="/lib /usr/lib" 14255need_lib_prefix=unknown 14256hardcode_into_libs=no 14257 14258# when you set need_version to no, make sure it does not cause -set_version 14259# flags to be left without arguments 14260need_version=unknown 14261 14262 14263 14264case $host_os in 14265aix3*) 14266 version_type=linux # correct to gnu/linux during the next big refactor 14267 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14268 shlibpath_var=LIBPATH 14269 14270 # AIX 3 has no versioning support, so we append a major version to the name. 14271 soname_spec='$libname$release$shared_ext$major' 14272 ;; 14273 14274aix[4-9]*) 14275 version_type=linux # correct to gnu/linux during the next big refactor 14276 need_lib_prefix=no 14277 need_version=no 14278 hardcode_into_libs=yes 14279 if test ia64 = "$host_cpu"; then 14280 # AIX 5 supports IA64 14281 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14282 shlibpath_var=LD_LIBRARY_PATH 14283 else 14284 # With GCC up to 2.95.x, collect2 would create an import file 14285 # for dependence libraries. The import file would start with 14286 # the line '#! .'. This would cause the generated library to 14287 # depend on '.', always an invalid library. This was fixed in 14288 # development snapshots of GCC prior to 3.0. 14289 case $host_os in 14290 aix4 | aix4.[01] | aix4.[01].*) 14291 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14292 echo ' yes ' 14293 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14294 : 14295 else 14296 can_build_shared=no 14297 fi 14298 ;; 14299 esac 14300 # Using Import Files as archive members, it is possible to support 14301 # filename-based versioning of shared library archives on AIX. While 14302 # this would work for both with and without runtime linking, it will 14303 # prevent static linking of such archives. So we do filename-based 14304 # shared library versioning with .so extension only, which is used 14305 # when both runtime linking and shared linking is enabled. 14306 # Unfortunately, runtime linking may impact performance, so we do 14307 # not want this to be the default eventually. Also, we use the 14308 # versioned .so libs for executables only if there is the -brtl 14309 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 14310 # To allow for filename-based versioning support, we need to create 14311 # libNAME.so.V as an archive file, containing: 14312 # *) an Import File, referring to the versioned filename of the 14313 # archive as well as the shared archive member, telling the 14314 # bitwidth (32 or 64) of that shared object, and providing the 14315 # list of exported symbols of that shared object, eventually 14316 # decorated with the 'weak' keyword 14317 # *) the shared object with the F_LOADONLY flag set, to really avoid 14318 # it being seen by the linker. 14319 # At run time we better use the real file rather than another symlink, 14320 # but for link time we create the symlink libNAME.so -> libNAME.so.V 14321 14322 case $with_aix_soname,$aix_use_runtimelinking in 14323 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 14324 # soname into executable. Probably we can add versioning support to 14325 # collect2, so additional links can be useful in future. 14326 aix,yes) # traditional libtool 14327 dynamic_linker='AIX unversionable lib.so' 14328 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14329 # instead of lib<name>.a to let people know that these are not 14330 # typical AIX shared libraries. 14331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14332 ;; 14333 aix,no) # traditional AIX only 14334 dynamic_linker='AIX lib.a(lib.so.V)' 14335 # We preserve .a as extension for shared libraries through AIX4.2 14336 # and later when we are not doing run time linking. 14337 library_names_spec='$libname$release.a $libname.a' 14338 soname_spec='$libname$release$shared_ext$major' 14339 ;; 14340 svr4,*) # full svr4 only 14341 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 14342 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14343 # We do not specify a path in Import Files, so LIBPATH fires. 14344 shlibpath_overrides_runpath=yes 14345 ;; 14346 *,yes) # both, prefer svr4 14347 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 14348 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14349 # unpreferred sharedlib libNAME.a needs extra handling 14350 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 14351 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 14352 # We do not specify a path in Import Files, so LIBPATH fires. 14353 shlibpath_overrides_runpath=yes 14354 ;; 14355 *,no) # both, prefer aix 14356 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 14357 library_names_spec='$libname$release.a $libname.a' 14358 soname_spec='$libname$release$shared_ext$major' 14359 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 14360 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 14361 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 14362 ;; 14363 esac 14364 shlibpath_var=LIBPATH 14365 fi 14366 ;; 14367 14368amigaos*) 14369 case $host_cpu in 14370 powerpc) 14371 # Since July 2007 AmigaOS4 officially supports .so libraries. 14372 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14374 ;; 14375 m68k) 14376 library_names_spec='$libname.ixlibrary $libname.a' 14377 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14378 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14379 ;; 14380 esac 14381 ;; 14382 14383beos*) 14384 library_names_spec='$libname$shared_ext' 14385 dynamic_linker="$host_os ld.so" 14386 shlibpath_var=LIBRARY_PATH 14387 ;; 14388 14389bsdi[45]*) 14390 version_type=linux # correct to gnu/linux during the next big refactor 14391 need_version=no 14392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14393 soname_spec='$libname$release$shared_ext$major' 14394 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14395 shlibpath_var=LD_LIBRARY_PATH 14396 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14397 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14398 # the default ld.so.conf also contains /usr/contrib/lib and 14399 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14400 # libtool to hard-code these into programs 14401 ;; 14402 14403cygwin* | mingw* | pw32* | cegcc*) 14404 version_type=windows 14405 shrext_cmds=.dll 14406 need_version=no 14407 need_lib_prefix=no 14408 14409 case $GCC,$cc_basename in 14410 yes,*) 14411 # gcc 14412 library_names_spec='$libname.dll.a' 14413 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14414 postinstall_cmds='base_file=`basename \$file`~ 14415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14416 dldir=$destdir/`dirname \$dlpath`~ 14417 test -d \$dldir || mkdir -p \$dldir~ 14418 $install_prog $dir/$dlname \$dldir/$dlname~ 14419 chmod a+x \$dldir/$dlname~ 14420 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14421 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14422 fi' 14423 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14424 dlpath=$dir/\$dldll~ 14425 $RM \$dlpath' 14426 shlibpath_overrides_runpath=yes 14427 14428 case $host_os in 14429 cygwin*) 14430 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14431 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14432 14433 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 14434 ;; 14435 mingw* | cegcc*) 14436 # MinGW DLLs use traditional 'lib' prefix 14437 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14438 ;; 14439 pw32*) 14440 # pw32 DLLs use 'pw' prefix rather than 'lib' 14441 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14442 ;; 14443 esac 14444 dynamic_linker='Win32 ld.exe' 14445 ;; 14446 14447 *,cl* | *,icl*) 14448 # Native MSVC or ICC 14449 libname_spec='$name' 14450 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14451 library_names_spec='$libname.dll.lib' 14452 14453 case $build_os in 14454 mingw*) 14455 sys_lib_search_path_spec= 14456 lt_save_ifs=$IFS 14457 IFS=';' 14458 for lt_path in $LIB 14459 do 14460 IFS=$lt_save_ifs 14461 # Let DOS variable expansion print the short 8.3 style file name. 14462 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14463 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14464 done 14465 IFS=$lt_save_ifs 14466 # Convert to MSYS style. 14467 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14468 ;; 14469 cygwin*) 14470 # Convert to unix form, then to dos form, then back to unix form 14471 # but this time dos style (no spaces!) so that the unix form looks 14472 # like /cygdrive/c/PROGRA~1:/cygdr... 14473 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14474 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14475 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14476 ;; 14477 *) 14478 sys_lib_search_path_spec=$LIB 14479 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14480 # It is most probably a Windows format PATH. 14481 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14482 else 14483 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14484 fi 14485 # FIXME: find the short name or the path components, as spaces are 14486 # common. (e.g. "Program Files" -> "PROGRA~1") 14487 ;; 14488 esac 14489 14490 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14491 postinstall_cmds='base_file=`basename \$file`~ 14492 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14493 dldir=$destdir/`dirname \$dlpath`~ 14494 test -d \$dldir || mkdir -p \$dldir~ 14495 $install_prog $dir/$dlname \$dldir/$dlname' 14496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14497 dlpath=$dir/\$dldll~ 14498 $RM \$dlpath' 14499 shlibpath_overrides_runpath=yes 14500 dynamic_linker='Win32 link.exe' 14501 ;; 14502 14503 *) 14504 # Assume MSVC and ICC wrapper 14505 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 14506 dynamic_linker='Win32 ld.exe' 14507 ;; 14508 esac 14509 # FIXME: first we should search . and the directory the executable is in 14510 shlibpath_var=PATH 14511 ;; 14512 14513darwin* | rhapsody*) 14514 dynamic_linker="$host_os dyld" 14515 version_type=darwin 14516 need_lib_prefix=no 14517 need_version=no 14518 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 14519 soname_spec='$libname$release$major$shared_ext' 14520 shlibpath_overrides_runpath=yes 14521 shlibpath_var=DYLD_LIBRARY_PATH 14522 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14523 14524 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14525 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14526 ;; 14527 14528dgux*) 14529 version_type=linux # correct to gnu/linux during the next big refactor 14530 need_lib_prefix=no 14531 need_version=no 14532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14533 soname_spec='$libname$release$shared_ext$major' 14534 shlibpath_var=LD_LIBRARY_PATH 14535 ;; 14536 14537freebsd* | dragonfly* | midnightbsd*) 14538 # DragonFly does not have aout. When/if they implement a new 14539 # versioning mechanism, adjust this. 14540 if test -x /usr/bin/objformat; then 14541 objformat=`/usr/bin/objformat` 14542 else 14543 case $host_os in 14544 freebsd[23].*) objformat=aout ;; 14545 *) objformat=elf ;; 14546 esac 14547 fi 14548 version_type=freebsd-$objformat 14549 case $version_type in 14550 freebsd-elf*) 14551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14552 soname_spec='$libname$release$shared_ext$major' 14553 need_version=no 14554 need_lib_prefix=no 14555 ;; 14556 freebsd-*) 14557 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14558 need_version=yes 14559 ;; 14560 esac 14561 shlibpath_var=LD_LIBRARY_PATH 14562 case $host_os in 14563 freebsd2.*) 14564 shlibpath_overrides_runpath=yes 14565 ;; 14566 freebsd3.[01]* | freebsdelf3.[01]*) 14567 shlibpath_overrides_runpath=yes 14568 hardcode_into_libs=yes 14569 ;; 14570 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14571 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14572 shlibpath_overrides_runpath=no 14573 hardcode_into_libs=yes 14574 ;; 14575 *) # from 4.6 on, and DragonFly 14576 shlibpath_overrides_runpath=yes 14577 hardcode_into_libs=yes 14578 ;; 14579 esac 14580 ;; 14581 14582haiku*) 14583 version_type=linux # correct to gnu/linux during the next big refactor 14584 need_lib_prefix=no 14585 need_version=no 14586 dynamic_linker="$host_os runtime_loader" 14587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14588 soname_spec='$libname$release$shared_ext$major' 14589 shlibpath_var=LIBRARY_PATH 14590 shlibpath_overrides_runpath=no 14591 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14592 hardcode_into_libs=yes 14593 ;; 14594 14595hpux9* | hpux10* | hpux11*) 14596 # Give a soname corresponding to the major version so that dld.sl refuses to 14597 # link against other versions. 14598 version_type=sunos 14599 need_lib_prefix=no 14600 need_version=no 14601 case $host_cpu in 14602 ia64*) 14603 shrext_cmds='.so' 14604 hardcode_into_libs=yes 14605 dynamic_linker="$host_os dld.so" 14606 shlibpath_var=LD_LIBRARY_PATH 14607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14609 soname_spec='$libname$release$shared_ext$major' 14610 if test 32 = "$HPUX_IA64_MODE"; then 14611 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14612 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 14613 else 14614 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14615 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 14616 fi 14617 ;; 14618 hppa*64*) 14619 shrext_cmds='.sl' 14620 hardcode_into_libs=yes 14621 dynamic_linker="$host_os dld.sl" 14622 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14625 soname_spec='$libname$release$shared_ext$major' 14626 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14628 ;; 14629 *) 14630 shrext_cmds='.sl' 14631 dynamic_linker="$host_os dld.sl" 14632 shlibpath_var=SHLIB_PATH 14633 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14635 soname_spec='$libname$release$shared_ext$major' 14636 ;; 14637 esac 14638 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14639 postinstall_cmds='chmod 555 $lib' 14640 # or fails outright, so override atomically: 14641 install_override_mode=555 14642 ;; 14643 14644interix[3-9]*) 14645 version_type=linux # correct to gnu/linux during the next big refactor 14646 need_lib_prefix=no 14647 need_version=no 14648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14649 soname_spec='$libname$release$shared_ext$major' 14650 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14651 shlibpath_var=LD_LIBRARY_PATH 14652 shlibpath_overrides_runpath=no 14653 hardcode_into_libs=yes 14654 ;; 14655 14656irix5* | irix6* | nonstopux*) 14657 case $host_os in 14658 nonstopux*) version_type=nonstopux ;; 14659 *) 14660 if test yes = "$lt_cv_prog_gnu_ld"; then 14661 version_type=linux # correct to gnu/linux during the next big refactor 14662 else 14663 version_type=irix 14664 fi ;; 14665 esac 14666 need_lib_prefix=no 14667 need_version=no 14668 soname_spec='$libname$release$shared_ext$major' 14669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 14670 case $host_os in 14671 irix5* | nonstopux*) 14672 libsuff= shlibsuff= 14673 ;; 14674 *) 14675 case $LD in # libtool.m4 will add one of these switches to LD 14676 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14677 libsuff= shlibsuff= libmagic=32-bit;; 14678 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14679 libsuff=32 shlibsuff=N32 libmagic=N32;; 14680 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14681 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14682 *) libsuff= shlibsuff= libmagic=never-match;; 14683 esac 14684 ;; 14685 esac 14686 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14687 shlibpath_overrides_runpath=no 14688 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 14689 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14690 hardcode_into_libs=yes 14691 ;; 14692 14693# No shared lib support for Linux oldld, aout, or coff. 14694linux*oldld* | linux*aout* | linux*coff*) 14695 dynamic_linker=no 14696 ;; 14697 14698linux*android*) 14699 version_type=none # Android doesn't support versioned libraries. 14700 need_lib_prefix=no 14701 need_version=no 14702 library_names_spec='$libname$release$shared_ext' 14703 soname_spec='$libname$release$shared_ext' 14704 finish_cmds= 14705 shlibpath_var=LD_LIBRARY_PATH 14706 shlibpath_overrides_runpath=yes 14707 14708 # This implies no fast_install, which is unacceptable. 14709 # Some rework will be needed to allow for fast_install 14710 # before this can be enabled. 14711 hardcode_into_libs=yes 14712 14713 dynamic_linker='Android linker' 14714 # Don't embed -rpath directories since the linker doesn't support them. 14715 hardcode_libdir_flag_spec='-L$libdir' 14716 ;; 14717 14718# This must be glibc/ELF. 14719linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14720 version_type=linux # correct to gnu/linux during the next big refactor 14721 need_lib_prefix=no 14722 need_version=no 14723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14724 soname_spec='$libname$release$shared_ext$major' 14725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14726 shlibpath_var=LD_LIBRARY_PATH 14727 shlibpath_overrides_runpath=no 14728 14729 # Some binutils ld are patched to set DT_RUNPATH 14730 if test ${lt_cv_shlibpath_overrides_runpath+y} 14731then : 14732 printf %s "(cached) " >&6 14733else $as_nop 14734 lt_cv_shlibpath_overrides_runpath=no 14735 save_LDFLAGS=$LDFLAGS 14736 save_libdir=$libdir 14737 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14738 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14740/* end confdefs.h. */ 14741 14742int 14743main (void) 14744{ 14745 14746 ; 14747 return 0; 14748} 14749_ACEOF 14750if ac_fn_c_try_link "$LINENO" 14751then : 14752 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 14753then : 14754 lt_cv_shlibpath_overrides_runpath=yes 14755fi 14756fi 14757rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14758 conftest$ac_exeext conftest.$ac_ext 14759 LDFLAGS=$save_LDFLAGS 14760 libdir=$save_libdir 14761 14762fi 14763 14764 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14765 14766 # This implies no fast_install, which is unacceptable. 14767 # Some rework will be needed to allow for fast_install 14768 # before this can be enabled. 14769 hardcode_into_libs=yes 14770 14771 # Add ABI-specific directories to the system library path. 14772 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 14773 14774 # Ideally, we could use ldconfig to report *all* directores which are 14775 # searched for libraries, however this is still not possible. Aside from not 14776 # being certain /sbin/ldconfig is available, command 14777 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14778 # even though it is searched at run-time. Try to do the best guess by 14779 # appending ld.so.conf contents (and includes) to the search path. 14780 if test -f /etc/ld.so.conf; then 14781 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' ' '` 14782 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 14783 fi 14784 14785 # We used to test for /lib/ld.so.1 and disable shared libraries on 14786 # powerpc, because MkLinux only supported shared libraries with the 14787 # GNU dynamic linker. Since this was broken with cross compilers, 14788 # most powerpc-linux boxes support dynamic linking these days and 14789 # people can always --disable-shared, the test was removed, and we 14790 # assume the GNU/Linux dynamic linker is in use. 14791 dynamic_linker='GNU/Linux ld.so' 14792 ;; 14793 14794netbsd*) 14795 version_type=sunos 14796 need_lib_prefix=no 14797 need_version=no 14798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14799 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14801 dynamic_linker='NetBSD (a.out) ld.so' 14802 else 14803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14804 soname_spec='$libname$release$shared_ext$major' 14805 dynamic_linker='NetBSD ld.elf_so' 14806 fi 14807 shlibpath_var=LD_LIBRARY_PATH 14808 shlibpath_overrides_runpath=yes 14809 hardcode_into_libs=yes 14810 ;; 14811 14812newsos6) 14813 version_type=linux # correct to gnu/linux during the next big refactor 14814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14815 shlibpath_var=LD_LIBRARY_PATH 14816 shlibpath_overrides_runpath=yes 14817 ;; 14818 14819*nto* | *qnx*) 14820 version_type=qnx 14821 need_lib_prefix=no 14822 need_version=no 14823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14824 soname_spec='$libname$release$shared_ext$major' 14825 shlibpath_var=LD_LIBRARY_PATH 14826 shlibpath_overrides_runpath=no 14827 hardcode_into_libs=yes 14828 dynamic_linker='ldqnx.so' 14829 ;; 14830 14831openbsd* | bitrig*) 14832 version_type=sunos 14833 sys_lib_dlsearch_path_spec=/usr/lib 14834 need_lib_prefix=no 14835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14836 need_version=no 14837 else 14838 need_version=yes 14839 fi 14840 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14842 shlibpath_var=LD_LIBRARY_PATH 14843 shlibpath_overrides_runpath=yes 14844 ;; 14845 14846os2*) 14847 libname_spec='$name' 14848 version_type=windows 14849 shrext_cmds=.dll 14850 need_version=no 14851 need_lib_prefix=no 14852 # OS/2 can only load a DLL with a base name of 8 characters or less. 14853 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 14854 v=$($ECHO $release$versuffix | tr -d .-); 14855 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 14856 $ECHO $n$v`$shared_ext' 14857 library_names_spec='${libname}_dll.$libext' 14858 dynamic_linker='OS/2 ld.exe' 14859 shlibpath_var=BEGINLIBPATH 14860 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14862 postinstall_cmds='base_file=`basename \$file`~ 14863 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 14864 dldir=$destdir/`dirname \$dlpath`~ 14865 test -d \$dldir || mkdir -p \$dldir~ 14866 $install_prog $dir/$dlname \$dldir/$dlname~ 14867 chmod a+x \$dldir/$dlname~ 14868 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14869 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14870 fi' 14871 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 14872 dlpath=$dir/\$dldll~ 14873 $RM \$dlpath' 14874 ;; 14875 14876osf3* | osf4* | osf5*) 14877 version_type=osf 14878 need_lib_prefix=no 14879 need_version=no 14880 soname_spec='$libname$release$shared_ext$major' 14881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14882 shlibpath_var=LD_LIBRARY_PATH 14883 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14885 ;; 14886 14887rdos*) 14888 dynamic_linker=no 14889 ;; 14890 14891solaris*) 14892 version_type=linux # correct to gnu/linux during the next big refactor 14893 need_lib_prefix=no 14894 need_version=no 14895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14896 soname_spec='$libname$release$shared_ext$major' 14897 shlibpath_var=LD_LIBRARY_PATH 14898 shlibpath_overrides_runpath=yes 14899 hardcode_into_libs=yes 14900 # ldd complains unless libraries are executable 14901 postinstall_cmds='chmod +x $lib' 14902 ;; 14903 14904sunos4*) 14905 version_type=sunos 14906 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14907 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14908 shlibpath_var=LD_LIBRARY_PATH 14909 shlibpath_overrides_runpath=yes 14910 if test yes = "$with_gnu_ld"; then 14911 need_lib_prefix=no 14912 fi 14913 need_version=yes 14914 ;; 14915 14916sysv4 | sysv4.3*) 14917 version_type=linux # correct to gnu/linux during the next big refactor 14918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14919 soname_spec='$libname$release$shared_ext$major' 14920 shlibpath_var=LD_LIBRARY_PATH 14921 case $host_vendor in 14922 sni) 14923 shlibpath_overrides_runpath=no 14924 need_lib_prefix=no 14925 runpath_var=LD_RUN_PATH 14926 ;; 14927 siemens) 14928 need_lib_prefix=no 14929 ;; 14930 motorola) 14931 need_lib_prefix=no 14932 need_version=no 14933 shlibpath_overrides_runpath=no 14934 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14935 ;; 14936 esac 14937 ;; 14938 14939sysv4*MP*) 14940 if test -d /usr/nec; then 14941 version_type=linux # correct to gnu/linux during the next big refactor 14942 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 14943 soname_spec='$libname$shared_ext.$major' 14944 shlibpath_var=LD_LIBRARY_PATH 14945 fi 14946 ;; 14947 14948sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14949 version_type=sco 14950 need_lib_prefix=no 14951 need_version=no 14952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 14953 soname_spec='$libname$release$shared_ext$major' 14954 shlibpath_var=LD_LIBRARY_PATH 14955 shlibpath_overrides_runpath=yes 14956 hardcode_into_libs=yes 14957 if test yes = "$with_gnu_ld"; then 14958 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14959 else 14960 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14961 case $host_os in 14962 sco3.2v5*) 14963 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14964 ;; 14965 esac 14966 fi 14967 sys_lib_dlsearch_path_spec='/usr/lib' 14968 ;; 14969 14970tpf*) 14971 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14972 version_type=linux # correct to gnu/linux during the next big refactor 14973 need_lib_prefix=no 14974 need_version=no 14975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14976 shlibpath_var=LD_LIBRARY_PATH 14977 shlibpath_overrides_runpath=no 14978 hardcode_into_libs=yes 14979 ;; 14980 14981uts4*) 14982 version_type=linux # correct to gnu/linux during the next big refactor 14983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14984 soname_spec='$libname$release$shared_ext$major' 14985 shlibpath_var=LD_LIBRARY_PATH 14986 ;; 14987 14988*) 14989 dynamic_linker=no 14990 ;; 14991esac 14992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14993printf "%s\n" "$dynamic_linker" >&6; } 14994test no = "$dynamic_linker" && can_build_shared=no 14995 14996variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14997if test yes = "$GCC"; then 14998 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14999fi 15000 15001if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15002 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15003fi 15004 15005if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15006 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15007fi 15008 15009# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15010configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15011 15012# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15013func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15014 15015# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15016configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15115printf %s "checking how to hardcode library paths into programs... " >&6; } 15116hardcode_action= 15117if test -n "$hardcode_libdir_flag_spec" || 15118 test -n "$runpath_var" || 15119 test yes = "$hardcode_automatic"; then 15120 15121 # We can hardcode non-existent directories. 15122 if test no != "$hardcode_direct" && 15123 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15124 # have to relink, otherwise we might link with an installed library 15125 # when we should be linking with a yet-to-be-installed one 15126 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 15127 test no != "$hardcode_minus_L"; then 15128 # Linking always hardcodes the temporary library directory. 15129 hardcode_action=relink 15130 else 15131 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15132 hardcode_action=immediate 15133 fi 15134else 15135 # We cannot hardcode anything, or else we can only hardcode existing 15136 # directories. 15137 hardcode_action=unsupported 15138fi 15139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 15140printf "%s\n" "$hardcode_action" >&6; } 15141 15142if test relink = "$hardcode_action" || 15143 test yes = "$inherit_rpath"; then 15144 # Fast installation is not supported 15145 enable_fast_install=no 15146elif test yes = "$shlibpath_overrides_runpath" || 15147 test no = "$enable_shared"; then 15148 # Fast installation is not necessary 15149 enable_fast_install=needless 15150fi 15151 15152 15153 15154 15155 15156 15157 if test yes != "$enable_dlopen"; then 15158 enable_dlopen=unknown 15159 enable_dlopen_self=unknown 15160 enable_dlopen_self_static=unknown 15161else 15162 lt_cv_dlopen=no 15163 lt_cv_dlopen_libs= 15164 15165 case $host_os in 15166 beos*) 15167 lt_cv_dlopen=load_add_on 15168 lt_cv_dlopen_libs= 15169 lt_cv_dlopen_self=yes 15170 ;; 15171 15172 mingw* | pw32* | cegcc*) 15173 lt_cv_dlopen=LoadLibrary 15174 lt_cv_dlopen_libs= 15175 ;; 15176 15177 cygwin*) 15178 lt_cv_dlopen=dlopen 15179 lt_cv_dlopen_libs= 15180 ;; 15181 15182 darwin*) 15183 # if libdl is installed we need to link against it 15184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15185printf %s "checking for dlopen in -ldl... " >&6; } 15186if test ${ac_cv_lib_dl_dlopen+y} 15187then : 15188 printf %s "(cached) " >&6 15189else $as_nop 15190 ac_check_lib_save_LIBS=$LIBS 15191LIBS="-ldl $LIBS" 15192cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15193/* end confdefs.h. */ 15194 15195/* Override any GCC internal prototype to avoid an error. 15196 Use char because int might match the return type of a GCC 15197 builtin and then its argument prototype would still apply. */ 15198char dlopen (); 15199int 15200main (void) 15201{ 15202return dlopen (); 15203 ; 15204 return 0; 15205} 15206_ACEOF 15207if ac_fn_c_try_link "$LINENO" 15208then : 15209 ac_cv_lib_dl_dlopen=yes 15210else $as_nop 15211 ac_cv_lib_dl_dlopen=no 15212fi 15213rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15214 conftest$ac_exeext conftest.$ac_ext 15215LIBS=$ac_check_lib_save_LIBS 15216fi 15217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15218printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 15219if test "x$ac_cv_lib_dl_dlopen" = xyes 15220then : 15221 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15222else $as_nop 15223 15224 lt_cv_dlopen=dyld 15225 lt_cv_dlopen_libs= 15226 lt_cv_dlopen_self=yes 15227 15228fi 15229 15230 ;; 15231 15232 tpf*) 15233 # Don't try to run any link tests for TPF. We know it's impossible 15234 # because TPF is a cross-compiler, and we know how we open DSOs. 15235 lt_cv_dlopen=dlopen 15236 lt_cv_dlopen_libs= 15237 lt_cv_dlopen_self=no 15238 ;; 15239 15240 *) 15241 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 15242if test "x$ac_cv_func_shl_load" = xyes 15243then : 15244 lt_cv_dlopen=shl_load 15245else $as_nop 15246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 15247printf %s "checking for shl_load in -ldld... " >&6; } 15248if test ${ac_cv_lib_dld_shl_load+y} 15249then : 15250 printf %s "(cached) " >&6 15251else $as_nop 15252 ac_check_lib_save_LIBS=$LIBS 15253LIBS="-ldld $LIBS" 15254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15255/* end confdefs.h. */ 15256 15257/* Override any GCC internal prototype to avoid an error. 15258 Use char because int might match the return type of a GCC 15259 builtin and then its argument prototype would still apply. */ 15260char shl_load (); 15261int 15262main (void) 15263{ 15264return shl_load (); 15265 ; 15266 return 0; 15267} 15268_ACEOF 15269if ac_fn_c_try_link "$LINENO" 15270then : 15271 ac_cv_lib_dld_shl_load=yes 15272else $as_nop 15273 ac_cv_lib_dld_shl_load=no 15274fi 15275rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15276 conftest$ac_exeext conftest.$ac_ext 15277LIBS=$ac_check_lib_save_LIBS 15278fi 15279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 15280printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 15281if test "x$ac_cv_lib_dld_shl_load" = xyes 15282then : 15283 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 15284else $as_nop 15285 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15286if test "x$ac_cv_func_dlopen" = xyes 15287then : 15288 lt_cv_dlopen=dlopen 15289else $as_nop 15290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15291printf %s "checking for dlopen in -ldl... " >&6; } 15292if test ${ac_cv_lib_dl_dlopen+y} 15293then : 15294 printf %s "(cached) " >&6 15295else $as_nop 15296 ac_check_lib_save_LIBS=$LIBS 15297LIBS="-ldl $LIBS" 15298cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15299/* end confdefs.h. */ 15300 15301/* Override any GCC internal prototype to avoid an error. 15302 Use char because int might match the return type of a GCC 15303 builtin and then its argument prototype would still apply. */ 15304char dlopen (); 15305int 15306main (void) 15307{ 15308return dlopen (); 15309 ; 15310 return 0; 15311} 15312_ACEOF 15313if ac_fn_c_try_link "$LINENO" 15314then : 15315 ac_cv_lib_dl_dlopen=yes 15316else $as_nop 15317 ac_cv_lib_dl_dlopen=no 15318fi 15319rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15320 conftest$ac_exeext conftest.$ac_ext 15321LIBS=$ac_check_lib_save_LIBS 15322fi 15323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15324printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 15325if test "x$ac_cv_lib_dl_dlopen" = xyes 15326then : 15327 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15328else $as_nop 15329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 15330printf %s "checking for dlopen in -lsvld... " >&6; } 15331if test ${ac_cv_lib_svld_dlopen+y} 15332then : 15333 printf %s "(cached) " >&6 15334else $as_nop 15335 ac_check_lib_save_LIBS=$LIBS 15336LIBS="-lsvld $LIBS" 15337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15338/* end confdefs.h. */ 15339 15340/* Override any GCC internal prototype to avoid an error. 15341 Use char because int might match the return type of a GCC 15342 builtin and then its argument prototype would still apply. */ 15343char dlopen (); 15344int 15345main (void) 15346{ 15347return dlopen (); 15348 ; 15349 return 0; 15350} 15351_ACEOF 15352if ac_fn_c_try_link "$LINENO" 15353then : 15354 ac_cv_lib_svld_dlopen=yes 15355else $as_nop 15356 ac_cv_lib_svld_dlopen=no 15357fi 15358rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15359 conftest$ac_exeext conftest.$ac_ext 15360LIBS=$ac_check_lib_save_LIBS 15361fi 15362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 15363printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 15364if test "x$ac_cv_lib_svld_dlopen" = xyes 15365then : 15366 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 15367else $as_nop 15368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 15369printf %s "checking for dld_link in -ldld... " >&6; } 15370if test ${ac_cv_lib_dld_dld_link+y} 15371then : 15372 printf %s "(cached) " >&6 15373else $as_nop 15374 ac_check_lib_save_LIBS=$LIBS 15375LIBS="-ldld $LIBS" 15376cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15377/* end confdefs.h. */ 15378 15379/* Override any GCC internal prototype to avoid an error. 15380 Use char because int might match the return type of a GCC 15381 builtin and then its argument prototype would still apply. */ 15382char dld_link (); 15383int 15384main (void) 15385{ 15386return dld_link (); 15387 ; 15388 return 0; 15389} 15390_ACEOF 15391if ac_fn_c_try_link "$LINENO" 15392then : 15393 ac_cv_lib_dld_dld_link=yes 15394else $as_nop 15395 ac_cv_lib_dld_dld_link=no 15396fi 15397rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15398 conftest$ac_exeext conftest.$ac_ext 15399LIBS=$ac_check_lib_save_LIBS 15400fi 15401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 15402printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 15403if test "x$ac_cv_lib_dld_dld_link" = xyes 15404then : 15405 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 15406fi 15407 15408 15409fi 15410 15411 15412fi 15413 15414 15415fi 15416 15417 15418fi 15419 15420 15421fi 15422 15423 ;; 15424 esac 15425 15426 if test no = "$lt_cv_dlopen"; then 15427 enable_dlopen=no 15428 else 15429 enable_dlopen=yes 15430 fi 15431 15432 case $lt_cv_dlopen in 15433 dlopen) 15434 save_CPPFLAGS=$CPPFLAGS 15435 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15436 15437 save_LDFLAGS=$LDFLAGS 15438 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15439 15440 save_LIBS=$LIBS 15441 LIBS="$lt_cv_dlopen_libs $LIBS" 15442 15443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15444printf %s "checking whether a program can dlopen itself... " >&6; } 15445if test ${lt_cv_dlopen_self+y} 15446then : 15447 printf %s "(cached) " >&6 15448else $as_nop 15449 if test yes = "$cross_compiling"; then : 15450 lt_cv_dlopen_self=cross 15451else 15452 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15453 lt_status=$lt_dlunknown 15454 cat > conftest.$ac_ext <<_LT_EOF 15455#line $LINENO "configure" 15456#include "confdefs.h" 15457 15458#if HAVE_DLFCN_H 15459#include <dlfcn.h> 15460#endif 15461 15462#include <stdio.h> 15463 15464#ifdef RTLD_GLOBAL 15465# define LT_DLGLOBAL RTLD_GLOBAL 15466#else 15467# ifdef DL_GLOBAL 15468# define LT_DLGLOBAL DL_GLOBAL 15469# else 15470# define LT_DLGLOBAL 0 15471# endif 15472#endif 15473 15474/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15475 find out it does not work in some platform. */ 15476#ifndef LT_DLLAZY_OR_NOW 15477# ifdef RTLD_LAZY 15478# define LT_DLLAZY_OR_NOW RTLD_LAZY 15479# else 15480# ifdef DL_LAZY 15481# define LT_DLLAZY_OR_NOW DL_LAZY 15482# else 15483# ifdef RTLD_NOW 15484# define LT_DLLAZY_OR_NOW RTLD_NOW 15485# else 15486# ifdef DL_NOW 15487# define LT_DLLAZY_OR_NOW DL_NOW 15488# else 15489# define LT_DLLAZY_OR_NOW 0 15490# endif 15491# endif 15492# endif 15493# endif 15494#endif 15495 15496/* When -fvisibility=hidden is used, assume the code has been annotated 15497 correspondingly for the symbols needed. */ 15498#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15499int fnord () __attribute__((visibility("default"))); 15500#endif 15501 15502int fnord () { return 42; } 15503int main () 15504{ 15505 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15506 int status = $lt_dlunknown; 15507 15508 if (self) 15509 { 15510 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15511 else 15512 { 15513 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15514 else puts (dlerror ()); 15515 } 15516 /* dlclose (self); */ 15517 } 15518 else 15519 puts (dlerror ()); 15520 15521 return status; 15522} 15523_LT_EOF 15524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15525 (eval $ac_link) 2>&5 15526 ac_status=$? 15527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15528 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15529 (./conftest; exit; ) >&5 2>/dev/null 15530 lt_status=$? 15531 case x$lt_status in 15532 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15533 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15534 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 15535 esac 15536 else : 15537 # compilation failed 15538 lt_cv_dlopen_self=no 15539 fi 15540fi 15541rm -fr conftest* 15542 15543 15544fi 15545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15546printf "%s\n" "$lt_cv_dlopen_self" >&6; } 15547 15548 if test yes = "$lt_cv_dlopen_self"; then 15549 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 15550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15551printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 15552if test ${lt_cv_dlopen_self_static+y} 15553then : 15554 printf %s "(cached) " >&6 15555else $as_nop 15556 if test yes = "$cross_compiling"; then : 15557 lt_cv_dlopen_self_static=cross 15558else 15559 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15560 lt_status=$lt_dlunknown 15561 cat > conftest.$ac_ext <<_LT_EOF 15562#line $LINENO "configure" 15563#include "confdefs.h" 15564 15565#if HAVE_DLFCN_H 15566#include <dlfcn.h> 15567#endif 15568 15569#include <stdio.h> 15570 15571#ifdef RTLD_GLOBAL 15572# define LT_DLGLOBAL RTLD_GLOBAL 15573#else 15574# ifdef DL_GLOBAL 15575# define LT_DLGLOBAL DL_GLOBAL 15576# else 15577# define LT_DLGLOBAL 0 15578# endif 15579#endif 15580 15581/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15582 find out it does not work in some platform. */ 15583#ifndef LT_DLLAZY_OR_NOW 15584# ifdef RTLD_LAZY 15585# define LT_DLLAZY_OR_NOW RTLD_LAZY 15586# else 15587# ifdef DL_LAZY 15588# define LT_DLLAZY_OR_NOW DL_LAZY 15589# else 15590# ifdef RTLD_NOW 15591# define LT_DLLAZY_OR_NOW RTLD_NOW 15592# else 15593# ifdef DL_NOW 15594# define LT_DLLAZY_OR_NOW DL_NOW 15595# else 15596# define LT_DLLAZY_OR_NOW 0 15597# endif 15598# endif 15599# endif 15600# endif 15601#endif 15602 15603/* When -fvisibility=hidden is used, assume the code has been annotated 15604 correspondingly for the symbols needed. */ 15605#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15606int fnord () __attribute__((visibility("default"))); 15607#endif 15608 15609int fnord () { return 42; } 15610int main () 15611{ 15612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15613 int status = $lt_dlunknown; 15614 15615 if (self) 15616 { 15617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15618 else 15619 { 15620 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15621 else puts (dlerror ()); 15622 } 15623 /* dlclose (self); */ 15624 } 15625 else 15626 puts (dlerror ()); 15627 15628 return status; 15629} 15630_LT_EOF 15631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15632 (eval $ac_link) 2>&5 15633 ac_status=$? 15634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15635 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15636 (./conftest; exit; ) >&5 2>/dev/null 15637 lt_status=$? 15638 case x$lt_status in 15639 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15640 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15641 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15642 esac 15643 else : 15644 # compilation failed 15645 lt_cv_dlopen_self_static=no 15646 fi 15647fi 15648rm -fr conftest* 15649 15650 15651fi 15652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15653printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 15654 fi 15655 15656 CPPFLAGS=$save_CPPFLAGS 15657 LDFLAGS=$save_LDFLAGS 15658 LIBS=$save_LIBS 15659 ;; 15660 esac 15661 15662 case $lt_cv_dlopen_self in 15663 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15664 *) enable_dlopen_self=unknown ;; 15665 esac 15666 15667 case $lt_cv_dlopen_self_static in 15668 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15669 *) enable_dlopen_self_static=unknown ;; 15670 esac 15671fi 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689striplib= 15690old_striplib= 15691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15692printf %s "checking whether stripping libraries is possible... " >&6; } 15693if test -z "$STRIP"; then 15694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15695printf "%s\n" "no" >&6; } 15696else 15697 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15698 old_striplib="$STRIP --strip-debug" 15699 striplib="$STRIP --strip-unneeded" 15700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15701printf "%s\n" "yes" >&6; } 15702 else 15703 case $host_os in 15704 darwin*) 15705 # FIXME - insert some real tests, host_os isn't really good enough 15706 striplib="$STRIP -x" 15707 old_striplib="$STRIP -S" 15708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15709printf "%s\n" "yes" >&6; } 15710 ;; 15711 freebsd*) 15712 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 15713 old_striplib="$STRIP --strip-debug" 15714 striplib="$STRIP --strip-unneeded" 15715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15716printf "%s\n" "yes" >&6; } 15717 else 15718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15719printf "%s\n" "no" >&6; } 15720 fi 15721 ;; 15722 *) 15723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15724printf "%s\n" "no" >&6; } 15725 ;; 15726 esac 15727 fi 15728fi 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 # Report what library types will actually be built 15742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15743printf %s "checking if libtool supports shared libraries... " >&6; } 15744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15745printf "%s\n" "$can_build_shared" >&6; } 15746 15747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15748printf %s "checking whether to build shared libraries... " >&6; } 15749 test no = "$can_build_shared" && enable_shared=no 15750 15751 # On AIX, shared libraries and static libraries use the same namespace, and 15752 # are all built from PIC. 15753 case $host_os in 15754 aix3*) 15755 test yes = "$enable_shared" && enable_static=no 15756 if test -n "$RANLIB"; then 15757 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15758 postinstall_cmds='$RANLIB $lib' 15759 fi 15760 ;; 15761 15762 aix[4-9]*) 15763 if test ia64 != "$host_cpu"; then 15764 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15765 yes,aix,yes) ;; # shared object as lib.so file only 15766 yes,svr4,*) ;; # shared object as lib.so archive member only 15767 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15768 esac 15769 fi 15770 ;; 15771 esac 15772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15773printf "%s\n" "$enable_shared" >&6; } 15774 15775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15776printf %s "checking whether to build static libraries... " >&6; } 15777 # Make sure either enable_shared or enable_static is yes. 15778 test yes = "$enable_shared" || enable_static=yes 15779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15780printf "%s\n" "$enable_static" >&6; } 15781 15782 15783 15784 15785fi 15786ac_ext=c 15787ac_cpp='$CPP $CPPFLAGS' 15788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15790ac_compiler_gnu=$ac_cv_c_compiler_gnu 15791 15792CC=$lt_save_CC 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 ac_config_commands="$ac_config_commands libtool" 15809 15810 15811 15812 15813# Only expand once: 15814 15815 15816 15817 15818# pkg-config is only needed for these options, do not require it otherwise 15819if test "$enable_systemd" = "yes" -o "$enable_dnstap" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then 15820 15821 15822 15823 15824 15825 15826 15827if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15828 if test -n "$ac_tool_prefix"; then 15829 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15830set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15832printf %s "checking for $ac_word... " >&6; } 15833if test ${ac_cv_path_PKG_CONFIG+y} 15834then : 15835 printf %s "(cached) " >&6 15836else $as_nop 15837 case $PKG_CONFIG in 15838 [\\/]* | ?:[\\/]*) 15839 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15840 ;; 15841 *) 15842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15843for as_dir in $PATH 15844do 15845 IFS=$as_save_IFS 15846 case $as_dir in #((( 15847 '') as_dir=./ ;; 15848 */) ;; 15849 *) as_dir=$as_dir/ ;; 15850 esac 15851 for ac_exec_ext in '' $ac_executable_extensions; do 15852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15853 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 15854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15855 break 2 15856 fi 15857done 15858 done 15859IFS=$as_save_IFS 15860 15861 ;; 15862esac 15863fi 15864PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15865if test -n "$PKG_CONFIG"; then 15866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15867printf "%s\n" "$PKG_CONFIG" >&6; } 15868else 15869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15870printf "%s\n" "no" >&6; } 15871fi 15872 15873 15874fi 15875if test -z "$ac_cv_path_PKG_CONFIG"; then 15876 ac_pt_PKG_CONFIG=$PKG_CONFIG 15877 # Extract the first word of "pkg-config", so it can be a program name with args. 15878set dummy pkg-config; ac_word=$2 15879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15880printf %s "checking for $ac_word... " >&6; } 15881if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 15882then : 15883 printf %s "(cached) " >&6 15884else $as_nop 15885 case $ac_pt_PKG_CONFIG in 15886 [\\/]* | ?:[\\/]*) 15887 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15888 ;; 15889 *) 15890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15891for as_dir in $PATH 15892do 15893 IFS=$as_save_IFS 15894 case $as_dir in #((( 15895 '') as_dir=./ ;; 15896 */) ;; 15897 *) as_dir=$as_dir/ ;; 15898 esac 15899 for ac_exec_ext in '' $ac_executable_extensions; do 15900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15901 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 15902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15903 break 2 15904 fi 15905done 15906 done 15907IFS=$as_save_IFS 15908 15909 ;; 15910esac 15911fi 15912ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15913if test -n "$ac_pt_PKG_CONFIG"; then 15914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15915printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 15916else 15917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15918printf "%s\n" "no" >&6; } 15919fi 15920 15921 if test "x$ac_pt_PKG_CONFIG" = x; then 15922 PKG_CONFIG="" 15923 else 15924 case $cross_compiling:$ac_tool_warned in 15925yes:) 15926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15927printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15928ac_tool_warned=yes ;; 15929esac 15930 PKG_CONFIG=$ac_pt_PKG_CONFIG 15931 fi 15932else 15933 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15934fi 15935 15936fi 15937if test -n "$PKG_CONFIG"; then 15938 _pkg_min_version=0.9.0 15939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15940printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15941 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15943printf "%s\n" "yes" >&6; } 15944 else 15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15946printf "%s\n" "no" >&6; } 15947 PKG_CONFIG="" 15948 fi 15949fi 15950fi 15951 15952# Checks for header files. 15953ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default 15954" 15955if test "x$ac_cv_header_stdarg_h" = xyes 15956then : 15957 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h 15958 15959fi 15960ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default 15961" 15962if test "x$ac_cv_header_stdbool_h" = xyes 15963then : 15964 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h 15965 15966fi 15967ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default 15968" 15969if test "x$ac_cv_header_netinet_in_h" = xyes 15970then : 15971 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 15972 15973fi 15974ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default 15975" 15976if test "x$ac_cv_header_netinet_tcp_h" = xyes 15977then : 15978 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 15979 15980fi 15981ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default 15982" 15983if test "x$ac_cv_header_sys_param_h" = xyes 15984then : 15985 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 15986 15987fi 15988ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default 15989" 15990if test "x$ac_cv_header_sys_select_h" = xyes 15991then : 15992 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 15993 15994fi 15995ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default 15996" 15997if test "x$ac_cv_header_sys_socket_h" = xyes 15998then : 15999 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 16000 16001fi 16002ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default 16003" 16004if test "x$ac_cv_header_sys_un_h" = xyes 16005then : 16006 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h 16007 16008fi 16009ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default 16010" 16011if test "x$ac_cv_header_sys_uio_h" = xyes 16012then : 16013 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h 16014 16015fi 16016ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default 16017" 16018if test "x$ac_cv_header_sys_resource_h" = xyes 16019then : 16020 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h 16021 16022fi 16023ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default 16024" 16025if test "x$ac_cv_header_arpa_inet_h" = xyes 16026then : 16027 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 16028 16029fi 16030ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default 16031" 16032if test "x$ac_cv_header_syslog_h" = xyes 16033then : 16034 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h 16035 16036fi 16037ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default 16038" 16039if test "x$ac_cv_header_netdb_h" = xyes 16040then : 16041 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 16042 16043fi 16044ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default 16045" 16046if test "x$ac_cv_header_sys_wait_h" = xyes 16047then : 16048 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 16049 16050fi 16051ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default 16052" 16053if test "x$ac_cv_header_pwd_h" = xyes 16054then : 16055 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h 16056 16057fi 16058ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default 16059" 16060if test "x$ac_cv_header_glob_h" = xyes 16061then : 16062 printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h 16063 16064fi 16065ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default 16066" 16067if test "x$ac_cv_header_grp_h" = xyes 16068then : 16069 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h 16070 16071fi 16072ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default 16073" 16074if test "x$ac_cv_header_login_cap_h" = xyes 16075then : 16076 printf "%s\n" "#define HAVE_LOGIN_CAP_H 1" >>confdefs.h 16077 16078fi 16079ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default 16080" 16081if test "x$ac_cv_header_winsock2_h" = xyes 16082then : 16083 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 16084 16085fi 16086ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default 16087" 16088if test "x$ac_cv_header_ws2tcpip_h" = xyes 16089then : 16090 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h 16091 16092fi 16093ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default 16094" 16095if test "x$ac_cv_header_endian_h" = xyes 16096then : 16097 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h 16098 16099fi 16100ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default 16101" 16102if test "x$ac_cv_header_sys_endian_h" = xyes 16103then : 16104 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h 16105 16106fi 16107ac_fn_c_check_header_compile "$LINENO" "libkern/OSByteOrder.h" "ac_cv_header_libkern_OSByteOrder_h" "$ac_includes_default 16108" 16109if test "x$ac_cv_header_libkern_OSByteOrder_h" = xyes 16110then : 16111 printf "%s\n" "#define HAVE_LIBKERN_OSBYTEORDER_H 1" >>confdefs.h 16112 16113fi 16114ac_fn_c_check_header_compile "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default 16115" 16116if test "x$ac_cv_header_sys_ipc_h" = xyes 16117then : 16118 printf "%s\n" "#define HAVE_SYS_IPC_H 1" >>confdefs.h 16119 16120fi 16121ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default 16122" 16123if test "x$ac_cv_header_sys_shm_h" = xyes 16124then : 16125 printf "%s\n" "#define HAVE_SYS_SHM_H 1" >>confdefs.h 16126 16127fi 16128ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default 16129" 16130if test "x$ac_cv_header_ifaddrs_h" = xyes 16131then : 16132 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h 16133 16134fi 16135ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default 16136" 16137if test "x$ac_cv_header_poll_h" = xyes 16138then : 16139 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h 16140 16141fi 16142 16143# net/if.h portability for Darwin see: 16144# https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html 16145ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 16146#include <stdio.h> 16147#ifdef STDC_HEADERS 16148# include <stdlib.h> 16149# include <stddef.h> 16150#else 16151# ifdef HAVE_STDLIB_H 16152# include <stdlib.h> 16153# endif 16154#endif 16155#ifdef HAVE_SYS_SOCKET_H 16156# include <sys/socket.h> 16157#endif 16158 16159" 16160if test "x$ac_cv_header_net_if_h" = xyes 16161then : 16162 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 16163 16164fi 16165 16166 16167# Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH 16168ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default 16169" 16170if test "x$ac_cv_header_TargetConditionals_h" = xyes 16171then : 16172 printf "%s\n" "#define HAVE_TARGETCONDITIONALS_H 1" >>confdefs.h 16173 16174fi 16175 16176ac_fn_c_check_header_compile "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h" "$ac_includes_default 16177#if HAVE_SYS_PARAM_H 16178#include <sys/param.h> 16179#endif 16180 16181#ifdef HAVE_SYS_SOCKET_H 16182#include <sys/socket.h> 16183#endif 16184 16185#ifdef HAVE_SYS_UIO_H 16186#include <sys/uio.h> 16187#endif 16188 16189#ifdef HAVE_NETINET_IN_H 16190#include <netinet/in.h> 16191#endif 16192 16193#ifdef HAVE_NETINET_TCP_H 16194#include <netinet/tcp.h> 16195#endif 16196 16197#ifdef HAVE_ARPA_INET_H 16198#include <arpa/inet.h> 16199#endif 16200 16201#ifdef HAVE_WINSOCK2_H 16202#include <winsock2.h> 16203#endif 16204 16205#ifdef HAVE_WS2TCPIP_H 16206#include <ws2tcpip.h> 16207#endif 16208 16209" 16210if test "x$ac_cv_header_netioapi_h" = xyes 16211then : 16212 printf "%s\n" "#define HAVE_NETIOAPI_H 1" >>confdefs.h 16213 16214fi 16215 16216 16217# Check for Linux timestamping headers 16218ac_fn_c_check_header_compile "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default 16219" 16220if test "x$ac_cv_header_linux_net_tstamp_h" = xyes 16221then : 16222 printf "%s\n" "#define HAVE_LINUX_NET_TSTAMP_H 1" >>confdefs.h 16223 16224fi 16225 16226 16227# check for types. 16228# Using own tests for int64* because autoconf builtin only give 32bit. 16229ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 16230if test "x$ac_cv_type_int8_t" = xyes 16231then : 16232 16233else $as_nop 16234 16235printf "%s\n" "#define int8_t signed char" >>confdefs.h 16236 16237fi 16238 16239ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 16240if test "x$ac_cv_type_int16_t" = xyes 16241then : 16242 16243else $as_nop 16244 16245printf "%s\n" "#define int16_t short" >>confdefs.h 16246 16247fi 16248 16249ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 16250if test "x$ac_cv_type_int32_t" = xyes 16251then : 16252 16253else $as_nop 16254 16255printf "%s\n" "#define int32_t int" >>confdefs.h 16256 16257fi 16258 16259ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 16260if test "x$ac_cv_type_int64_t" = xyes 16261then : 16262 16263else $as_nop 16264 16265printf "%s\n" "#define int64_t long long" >>confdefs.h 16266 16267fi 16268 16269ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 16270if test "x$ac_cv_type_uint8_t" = xyes 16271then : 16272 16273else $as_nop 16274 16275printf "%s\n" "#define uint8_t unsigned char" >>confdefs.h 16276 16277fi 16278 16279ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 16280if test "x$ac_cv_type_uint16_t" = xyes 16281then : 16282 16283else $as_nop 16284 16285printf "%s\n" "#define uint16_t unsigned short" >>confdefs.h 16286 16287fi 16288 16289ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 16290if test "x$ac_cv_type_uint32_t" = xyes 16291then : 16292 16293else $as_nop 16294 16295printf "%s\n" "#define uint32_t unsigned int" >>confdefs.h 16296 16297fi 16298 16299ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 16300if test "x$ac_cv_type_uint64_t" = xyes 16301then : 16302 16303else $as_nop 16304 16305printf "%s\n" "#define uint64_t unsigned long long" >>confdefs.h 16306 16307fi 16308 16309ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16310if test "x$ac_cv_type_size_t" = xyes 16311then : 16312 16313else $as_nop 16314 16315printf "%s\n" "#define size_t unsigned int" >>confdefs.h 16316 16317fi 16318 16319ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 16320if test "x$ac_cv_type_ssize_t" = xyes 16321then : 16322 16323else $as_nop 16324 16325printf "%s\n" "#define ssize_t int" >>confdefs.h 16326 16327fi 16328 16329ac_ext=c 16330ac_cpp='$CPP $CPPFLAGS' 16331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16333ac_compiler_gnu=$ac_cv_c_compiler_gnu 16334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 16335printf %s "checking how to run the C preprocessor... " >&6; } 16336# On Suns, sometimes $CPP names a directory. 16337if test -n "$CPP" && test -d "$CPP"; then 16338 CPP= 16339fi 16340if test -z "$CPP"; then 16341 if test ${ac_cv_prog_CPP+y} 16342then : 16343 printf %s "(cached) " >&6 16344else $as_nop 16345 # Double quotes because $CC needs to be expanded 16346 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 16347 do 16348 ac_preproc_ok=false 16349for ac_c_preproc_warn_flag in '' yes 16350do 16351 # Use a header file that comes with gcc, so configuring glibc 16352 # with a fresh cross-compiler works. 16353 # On the NeXT, cc -E runs the code through the compiler's parser, 16354 # not just through cpp. "Syntax error" is here to catch this case. 16355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16356/* end confdefs.h. */ 16357#include <limits.h> 16358 Syntax error 16359_ACEOF 16360if ac_fn_c_try_cpp "$LINENO" 16361then : 16362 16363else $as_nop 16364 # Broken: fails on valid input. 16365continue 16366fi 16367rm -f conftest.err conftest.i conftest.$ac_ext 16368 16369 # OK, works on sane cases. Now check whether nonexistent headers 16370 # can be detected and how. 16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16372/* end confdefs.h. */ 16373#include <ac_nonexistent.h> 16374_ACEOF 16375if ac_fn_c_try_cpp "$LINENO" 16376then : 16377 # Broken: success on invalid input. 16378continue 16379else $as_nop 16380 # Passes both tests. 16381ac_preproc_ok=: 16382break 16383fi 16384rm -f conftest.err conftest.i conftest.$ac_ext 16385 16386done 16387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 16388rm -f conftest.i conftest.err conftest.$ac_ext 16389if $ac_preproc_ok 16390then : 16391 break 16392fi 16393 16394 done 16395 ac_cv_prog_CPP=$CPP 16396 16397fi 16398 CPP=$ac_cv_prog_CPP 16399else 16400 ac_cv_prog_CPP=$CPP 16401fi 16402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 16403printf "%s\n" "$CPP" >&6; } 16404ac_preproc_ok=false 16405for ac_c_preproc_warn_flag in '' yes 16406do 16407 # Use a header file that comes with gcc, so configuring glibc 16408 # with a fresh cross-compiler works. 16409 # On the NeXT, cc -E runs the code through the compiler's parser, 16410 # not just through cpp. "Syntax error" is here to catch this case. 16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16412/* end confdefs.h. */ 16413#include <limits.h> 16414 Syntax error 16415_ACEOF 16416if ac_fn_c_try_cpp "$LINENO" 16417then : 16418 16419else $as_nop 16420 # Broken: fails on valid input. 16421continue 16422fi 16423rm -f conftest.err conftest.i conftest.$ac_ext 16424 16425 # OK, works on sane cases. Now check whether nonexistent headers 16426 # can be detected and how. 16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16428/* end confdefs.h. */ 16429#include <ac_nonexistent.h> 16430_ACEOF 16431if ac_fn_c_try_cpp "$LINENO" 16432then : 16433 # Broken: success on invalid input. 16434continue 16435else $as_nop 16436 # Passes both tests. 16437ac_preproc_ok=: 16438break 16439fi 16440rm -f conftest.err conftest.i conftest.$ac_ext 16441 16442done 16443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 16444rm -f conftest.i conftest.err conftest.$ac_ext 16445if $ac_preproc_ok 16446then : 16447 16448else $as_nop 16449 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16450printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16451as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 16452See \`config.log' for more details" "$LINENO" 5; } 16453fi 16454 16455ac_ext=c 16456ac_cpp='$CPP $CPPFLAGS' 16457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16459ac_compiler_gnu=$ac_cv_c_compiler_gnu 16460 16461 16462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 16463printf %s "checking for uid_t in sys/types.h... " >&6; } 16464if test ${ac_cv_type_uid_t+y} 16465then : 16466 printf %s "(cached) " >&6 16467else $as_nop 16468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16469/* end confdefs.h. */ 16470#include <sys/types.h> 16471 16472_ACEOF 16473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16474 $EGREP "uid_t" >/dev/null 2>&1 16475then : 16476 ac_cv_type_uid_t=yes 16477else $as_nop 16478 ac_cv_type_uid_t=no 16479fi 16480rm -rf conftest* 16481 16482fi 16483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 16484printf "%s\n" "$ac_cv_type_uid_t" >&6; } 16485if test $ac_cv_type_uid_t = no; then 16486 16487printf "%s\n" "#define uid_t int" >>confdefs.h 16488 16489 16490printf "%s\n" "#define gid_t int" >>confdefs.h 16491 16492fi 16493 16494 16495 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 16496" 16497if test "x$ac_cv_type_pid_t" = xyes 16498then : 16499 16500else $as_nop 16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16502/* end confdefs.h. */ 16503 16504 #if defined _WIN64 && !defined __CYGWIN__ 16505 LLP64 16506 #endif 16507 16508int 16509main (void) 16510{ 16511 16512 ; 16513 return 0; 16514} 16515 16516_ACEOF 16517if ac_fn_c_try_compile "$LINENO" 16518then : 16519 ac_pid_type='int' 16520else $as_nop 16521 ac_pid_type='__int64' 16522fi 16523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16524 16525printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 16526 16527 16528fi 16529 16530 16531ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 16532if test "x$ac_cv_type_off_t" = xyes 16533then : 16534 16535else $as_nop 16536 16537printf "%s\n" "#define off_t long int" >>confdefs.h 16538 16539fi 16540 16541ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" " 16542$ac_includes_default 16543#ifdef HAVE_WINSOCK2_H 16544# include <winsock2.h> 16545#endif 16546 16547" 16548if test "x$ac_cv_type_u_char" = xyes 16549then : 16550 16551else $as_nop 16552 16553printf "%s\n" "#define u_char unsigned char" >>confdefs.h 16554 16555fi 16556 16557ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " 16558$ac_includes_default 16559#ifdef HAVE_SYS_RESOURCE_H 16560# include <sys/resource.h> 16561#endif 16562 16563" 16564if test "x$ac_cv_type_rlim_t" = xyes 16565then : 16566 16567else $as_nop 16568 16569printf "%s\n" "#define rlim_t unsigned long" >>confdefs.h 16570 16571fi 16572 16573 16574ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 16575$ac_includes_default 16576#ifdef HAVE_SYS_SOCKET_H 16577# include <sys/socket.h> 16578#endif 16579#ifdef HAVE_WS2TCPIP_H 16580# include <ws2tcpip.h> 16581#endif 16582 16583" 16584if test "x$ac_cv_type_socklen_t" = xyes 16585then : 16586 16587else $as_nop 16588 16589printf "%s\n" "#define socklen_t int" >>confdefs.h 16590 16591fi 16592 16593 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 16594$ac_includes_default 16595#ifdef HAVE_SYS_TYPES_H 16596# include <sys/types.h> 16597#endif 16598#ifdef HAVE_NETINET_IN_H 16599# include <netinet/in.h> 16600#endif 16601 16602" 16603if test "x$ac_cv_type_in_addr_t" = xyes 16604then : 16605 16606else $as_nop 16607 16608printf "%s\n" "#define in_addr_t uint32_t" >>confdefs.h 16609 16610fi 16611 16612 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" " 16613$ac_includes_default 16614#ifdef HAVE_SYS_TYPES_H 16615# include <sys/types.h> 16616#endif 16617#ifdef HAVE_NETINET_IN_H 16618# include <netinet/in.h> 16619#endif 16620 16621" 16622if test "x$ac_cv_type_in_port_t" = xyes 16623then : 16624 16625else $as_nop 16626 16627printf "%s\n" "#define in_port_t uint16_t" >>confdefs.h 16628 16629fi 16630 16631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5 16632printf %s "checking if memcmp compares unsigned... " >&6; } 16633if test "$cross_compiling" = yes 16634then : 16635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5 16636printf "%s\n" "cross-compile no" >&6; } 16637 16638printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 16639 16640 case " $LIBOBJS " in 16641 *" memcmp.$ac_objext "* ) ;; 16642 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 16643 ;; 16644esac 16645 16646 16647else $as_nop 16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16649/* end confdefs.h. */ 16650 16651#include <stdio.h> 16652#include <stdlib.h> 16653#include <string.h> 16654int main(void) 16655{ 16656 char a = 255, b = 0; 16657 if(memcmp(&a, &b, 1) < 0) 16658 return 1; 16659 return 0; 16660} 16661 16662_ACEOF 16663if ac_fn_c_try_run "$LINENO" 16664then : 16665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16666printf "%s\n" "yes" >&6; } 16667else $as_nop 16668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16669printf "%s\n" "no" >&6; } 16670 16671printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h 16672 16673 case " $LIBOBJS " in 16674 *" memcmp.$ac_objext "* ) ;; 16675 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 16676 ;; 16677esac 16678 16679 16680fi 16681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16682 conftest.$ac_objext conftest.beam conftest.$ac_ext 16683fi 16684 16685 16686# The cast to long int works around a bug in the HP C Compiler 16687# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16688# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16689# This bug is HP SR number 8606223364. 16690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 16691printf %s "checking size of time_t... " >&6; } 16692if test ${ac_cv_sizeof_time_t+y} 16693then : 16694 printf %s "(cached) " >&6 16695else $as_nop 16696 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 16697$ac_includes_default 16698#ifdef TIME_WITH_SYS_TIME 16699# include <sys/time.h> 16700# include <time.h> 16701#else 16702# ifdef HAVE_SYS_TIME_H 16703# include <sys/time.h> 16704# else 16705# include <time.h> 16706# endif 16707#endif 16708 16709" 16710then : 16711 16712else $as_nop 16713 if test "$ac_cv_type_time_t" = yes; then 16714 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16715printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16716as_fn_error 77 "cannot compute sizeof (time_t) 16717See \`config.log' for more details" "$LINENO" 5; } 16718 else 16719 ac_cv_sizeof_time_t=0 16720 fi 16721fi 16722 16723fi 16724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 16725printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } 16726 16727 16728 16729printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h 16730 16731 16732# The cast to long int works around a bug in the HP C Compiler 16733# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16734# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16735# This bug is HP SR number 8606223364. 16736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 16737printf %s "checking size of size_t... " >&6; } 16738if test ${ac_cv_sizeof_size_t+y} 16739then : 16740 printf %s "(cached) " >&6 16741else $as_nop 16742 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" 16743then : 16744 16745else $as_nop 16746 if test "$ac_cv_type_size_t" = yes; then 16747 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16748printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16749as_fn_error 77 "cannot compute sizeof (size_t) 16750See \`config.log' for more details" "$LINENO" 5; } 16751 else 16752 ac_cv_sizeof_size_t=0 16753 fi 16754fi 16755 16756fi 16757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 16758printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } 16759 16760 16761 16762printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h 16763 16764 16765 16766# add option to disable the evil rpath 16767 16768# Check whether --enable-rpath was given. 16769if test ${enable_rpath+y} 16770then : 16771 enableval=$enable_rpath; enable_rpath=$enableval 16772else $as_nop 16773 enable_rpath=yes 16774fi 16775 16776if test "x$enable_rpath" = xno; then 16777 ac_config_commands="$ac_config_commands disable-rpath" 16778 16779fi 16780 16781 16782 16783# check to see if libraries are needed for these functions. 16784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 16785printf %s "checking for library containing inet_pton... " >&6; } 16786if test ${ac_cv_search_inet_pton+y} 16787then : 16788 printf %s "(cached) " >&6 16789else $as_nop 16790 ac_func_search_save_LIBS=$LIBS 16791cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16792/* end confdefs.h. */ 16793 16794/* Override any GCC internal prototype to avoid an error. 16795 Use char because int might match the return type of a GCC 16796 builtin and then its argument prototype would still apply. */ 16797char inet_pton (); 16798int 16799main (void) 16800{ 16801return inet_pton (); 16802 ; 16803 return 0; 16804} 16805_ACEOF 16806for ac_lib in '' nsl 16807do 16808 if test -z "$ac_lib"; then 16809 ac_res="none required" 16810 else 16811 ac_res=-l$ac_lib 16812 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16813 fi 16814 if ac_fn_c_try_link "$LINENO" 16815then : 16816 ac_cv_search_inet_pton=$ac_res 16817fi 16818rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16819 conftest$ac_exeext 16820 if test ${ac_cv_search_inet_pton+y} 16821then : 16822 break 16823fi 16824done 16825if test ${ac_cv_search_inet_pton+y} 16826then : 16827 16828else $as_nop 16829 ac_cv_search_inet_pton=no 16830fi 16831rm conftest.$ac_ext 16832LIBS=$ac_func_search_save_LIBS 16833fi 16834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 16835printf "%s\n" "$ac_cv_search_inet_pton" >&6; } 16836ac_res=$ac_cv_search_inet_pton 16837if test "$ac_res" != no 16838then : 16839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16840 16841fi 16842 16843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 16844printf %s "checking for library containing socket... " >&6; } 16845if test ${ac_cv_search_socket+y} 16846then : 16847 printf %s "(cached) " >&6 16848else $as_nop 16849 ac_func_search_save_LIBS=$LIBS 16850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16851/* end confdefs.h. */ 16852 16853/* Override any GCC internal prototype to avoid an error. 16854 Use char because int might match the return type of a GCC 16855 builtin and then its argument prototype would still apply. */ 16856char socket (); 16857int 16858main (void) 16859{ 16860return socket (); 16861 ; 16862 return 0; 16863} 16864_ACEOF 16865for ac_lib in '' socket 16866do 16867 if test -z "$ac_lib"; then 16868 ac_res="none required" 16869 else 16870 ac_res=-l$ac_lib 16871 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16872 fi 16873 if ac_fn_c_try_link "$LINENO" 16874then : 16875 ac_cv_search_socket=$ac_res 16876fi 16877rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16878 conftest$ac_exeext 16879 if test ${ac_cv_search_socket+y} 16880then : 16881 break 16882fi 16883done 16884if test ${ac_cv_search_socket+y} 16885then : 16886 16887else $as_nop 16888 ac_cv_search_socket=no 16889fi 16890rm conftest.$ac_ext 16891LIBS=$ac_func_search_save_LIBS 16892fi 16893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 16894printf "%s\n" "$ac_cv_search_socket" >&6; } 16895ac_res=$ac_cv_search_socket 16896if test "$ac_res" != no 16897then : 16898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16899 16900fi 16901 16902 16903# check whether strptime also works 16904 16905# check some functions of the OS before linking libs (while still runnable). 16906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 16907printf %s "checking for working chown... " >&6; } 16908if test ${ac_cv_func_chown_works+y} 16909then : 16910 printf %s "(cached) " >&6 16911else $as_nop 16912 if test "$cross_compiling" = yes 16913then : 16914 case "$host_os" in # (( 16915 # Guess yes on glibc systems. 16916 *-gnu*) ac_cv_func_chown_works=yes ;; 16917 # If we don't know, assume the worst. 16918 *) ac_cv_func_chown_works=no ;; 16919 esac 16920else $as_nop 16921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16922/* end confdefs.h. */ 16923$ac_includes_default 16924#include <fcntl.h> 16925 16926int 16927main (void) 16928{ 16929 char *f = "conftest.chown"; 16930 struct stat before, after; 16931 16932 if (creat (f, 0600) < 0) 16933 return 1; 16934 if (stat (f, &before) < 0) 16935 return 1; 16936 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 16937 return 1; 16938 if (stat (f, &after) < 0) 16939 return 1; 16940 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 16941 16942 ; 16943 return 0; 16944} 16945_ACEOF 16946if ac_fn_c_try_run "$LINENO" 16947then : 16948 ac_cv_func_chown_works=yes 16949else $as_nop 16950 ac_cv_func_chown_works=no 16951fi 16952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16953 conftest.$ac_objext conftest.beam conftest.$ac_ext 16954fi 16955 16956rm -f conftest.chown 16957 16958fi 16959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 16960printf "%s\n" "$ac_cv_func_chown_works" >&6; } 16961if test $ac_cv_func_chown_works = yes; then 16962 16963printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h 16964 16965fi 16966 16967 16968ac_func= 16969for ac_item in $ac_func_c_list 16970do 16971 if test $ac_func; then 16972 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 16973 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 16974 echo "#define $ac_item 1" >> confdefs.h 16975 fi 16976 ac_func= 16977 else 16978 ac_func=$ac_item 16979 fi 16980done 16981 16982 16983 16984if test "x$ac_cv_func_fork" = xyes; then 16985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 16986printf %s "checking for working fork... " >&6; } 16987if test ${ac_cv_func_fork_works+y} 16988then : 16989 printf %s "(cached) " >&6 16990else $as_nop 16991 if test "$cross_compiling" = yes 16992then : 16993 ac_cv_func_fork_works=cross 16994else $as_nop 16995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16996/* end confdefs.h. */ 16997$ac_includes_default 16998int 16999main (void) 17000{ 17001 17002 /* By Ruediger Kuhlmann. */ 17003 return fork () < 0; 17004 17005 ; 17006 return 0; 17007} 17008_ACEOF 17009if ac_fn_c_try_run "$LINENO" 17010then : 17011 ac_cv_func_fork_works=yes 17012else $as_nop 17013 ac_cv_func_fork_works=no 17014fi 17015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17016 conftest.$ac_objext conftest.beam conftest.$ac_ext 17017fi 17018 17019fi 17020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 17021printf "%s\n" "$ac_cv_func_fork_works" >&6; } 17022 17023else 17024 ac_cv_func_fork_works=$ac_cv_func_fork 17025fi 17026if test "x$ac_cv_func_fork_works" = xcross; then 17027 case $host in 17028 *-*-amigaos* | *-*-msdosdjgpp*) 17029 # Override, as these systems have only a dummy fork() stub 17030 ac_cv_func_fork_works=no 17031 ;; 17032 *) 17033 ac_cv_func_fork_works=yes 17034 ;; 17035 esac 17036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 17037printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 17038fi 17039ac_cv_func_vfork_works=$ac_cv_func_vfork 17040if test "x$ac_cv_func_vfork" = xyes; then 17041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 17042printf %s "checking for working vfork... " >&6; } 17043if test ${ac_cv_func_vfork_works+y} 17044then : 17045 printf %s "(cached) " >&6 17046else $as_nop 17047 if test "$cross_compiling" = yes 17048then : 17049 ac_cv_func_vfork_works=cross 17050else $as_nop 17051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17052/* end confdefs.h. */ 17053/* Thanks to Paul Eggert for this test. */ 17054$ac_includes_default 17055#include <signal.h> 17056#include <sys/wait.h> 17057#ifdef HAVE_VFORK_H 17058# include <vfork.h> 17059#endif 17060 17061static void 17062do_nothing (int sig) 17063{ 17064 (void) sig; 17065} 17066 17067/* On some sparc systems, changes by the child to local and incoming 17068 argument registers are propagated back to the parent. The compiler 17069 is told about this with #include <vfork.h>, but some compilers 17070 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 17071 static variable whose address is put into a register that is 17072 clobbered by the vfork. */ 17073static void 17074sparc_address_test (int arg) 17075{ 17076 static pid_t child; 17077 if (!child) { 17078 child = vfork (); 17079 if (child < 0) { 17080 perror ("vfork"); 17081 _exit(2); 17082 } 17083 if (!child) { 17084 arg = getpid(); 17085 write(-1, "", 0); 17086 _exit (arg); 17087 } 17088 } 17089} 17090 17091int 17092main (void) 17093{ 17094 pid_t parent = getpid (); 17095 pid_t child; 17096 17097 sparc_address_test (0); 17098 17099 /* On Solaris 2.4, changes by the child to the signal handler 17100 also munge signal handlers in the parent. To detect this, 17101 start by putting the parent's handler in a known state. */ 17102 signal (SIGTERM, SIG_DFL); 17103 17104 child = vfork (); 17105 17106 if (child == 0) { 17107 /* Here is another test for sparc vfork register problems. This 17108 test uses lots of local variables, at least as many local 17109 variables as main has allocated so far including compiler 17110 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 17111 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 17112 reuse the register of parent for one of the local variables, 17113 since it will think that parent can't possibly be used any more 17114 in this routine. Assigning to the local variable will thus 17115 munge parent in the parent process. */ 17116 pid_t 17117 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 17118 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 17119 /* Convince the compiler that p..p7 are live; otherwise, it might 17120 use the same hardware register for all 8 local variables. */ 17121 if (p != p1 || p != p2 || p != p3 || p != p4 17122 || p != p5 || p != p6 || p != p7) 17123 _exit(1); 17124 17125 /* Alter the child's signal handler. */ 17126 if (signal (SIGTERM, do_nothing) != SIG_DFL) 17127 _exit(1); 17128 17129 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 17130 from child file descriptors. If the child closes a descriptor 17131 before it execs or exits, this munges the parent's descriptor 17132 as well. Test for this by closing stdout in the child. */ 17133 _exit(close(fileno(stdout)) != 0); 17134 } else { 17135 int status; 17136 struct stat st; 17137 17138 while (wait(&status) != child) 17139 ; 17140 return ( 17141 /* Was there some problem with vforking? */ 17142 child < 0 17143 17144 /* Did the child munge the parent's signal handler? */ 17145 || signal (SIGTERM, SIG_DFL) != SIG_DFL 17146 17147 /* Did the child fail? (This shouldn't happen.) */ 17148 || status 17149 17150 /* Did the vfork/compiler bug occur? */ 17151 || parent != getpid() 17152 17153 /* Did the file descriptor bug occur? */ 17154 || fstat(fileno(stdout), &st) != 0 17155 ); 17156 } 17157} 17158_ACEOF 17159if ac_fn_c_try_run "$LINENO" 17160then : 17161 ac_cv_func_vfork_works=yes 17162else $as_nop 17163 ac_cv_func_vfork_works=no 17164fi 17165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17166 conftest.$ac_objext conftest.beam conftest.$ac_ext 17167fi 17168 17169fi 17170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 17171printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 17172 17173fi; 17174if test "x$ac_cv_func_fork_works" = xcross; then 17175 ac_cv_func_vfork_works=$ac_cv_func_vfork 17176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 17177printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 17178fi 17179 17180if test "x$ac_cv_func_vfork_works" = xyes; then 17181 17182printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 17183 17184else 17185 17186printf "%s\n" "#define vfork fork" >>confdefs.h 17187 17188fi 17189if test "x$ac_cv_func_fork_works" = xyes; then 17190 17191printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 17192 17193fi 17194 17195 17196printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h 17197 17198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 17199printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 17200if test ${ac_cv_sys_largefile_source+y} 17201then : 17202 printf %s "(cached) " >&6 17203else $as_nop 17204 while :; do 17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17206/* end confdefs.h. */ 17207#include <sys/types.h> /* for off_t */ 17208 #include <stdio.h> 17209int 17210main (void) 17211{ 17212int (*fp) (FILE *, off_t, int) = fseeko; 17213 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 17214 ; 17215 return 0; 17216} 17217_ACEOF 17218if ac_fn_c_try_link "$LINENO" 17219then : 17220 ac_cv_sys_largefile_source=no; break 17221fi 17222rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17223 conftest$ac_exeext conftest.$ac_ext 17224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17225/* end confdefs.h. */ 17226#define _LARGEFILE_SOURCE 1 17227#include <sys/types.h> /* for off_t */ 17228 #include <stdio.h> 17229int 17230main (void) 17231{ 17232int (*fp) (FILE *, off_t, int) = fseeko; 17233 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 17234 ; 17235 return 0; 17236} 17237_ACEOF 17238if ac_fn_c_try_link "$LINENO" 17239then : 17240 ac_cv_sys_largefile_source=1; break 17241fi 17242rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17243 conftest$ac_exeext conftest.$ac_ext 17244 ac_cv_sys_largefile_source=unknown 17245 break 17246done 17247fi 17248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 17249printf "%s\n" "$ac_cv_sys_largefile_source" >&6; } 17250case $ac_cv_sys_largefile_source in #( 17251 no | unknown) ;; 17252 *) 17253printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h 17254;; 17255esac 17256rm -rf conftest* 17257 17258# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 17259# in glibc 2.1.3, but that breaks too many other things. 17260# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 17261if test $ac_cv_sys_largefile_source != unknown; then 17262 17263printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 17264 17265fi 17266 17267 17268# Check whether --enable-largefile was given. 17269if test ${enable_largefile+y} 17270then : 17271 enableval=$enable_largefile; 17272fi 17273 17274if test "$enable_largefile" != no; then 17275 17276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 17277printf %s "checking for special C compiler options needed for large files... " >&6; } 17278if test ${ac_cv_sys_largefile_CC+y} 17279then : 17280 printf %s "(cached) " >&6 17281else $as_nop 17282 ac_cv_sys_largefile_CC=no 17283 if test "$GCC" != yes; then 17284 ac_save_CC=$CC 17285 while :; do 17286 # IRIX 6.2 and later do not support large files by default, 17287 # so use the C compiler's -n32 option if that helps. 17288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17289/* end confdefs.h. */ 17290#include <sys/types.h> 17291 /* Check that off_t can represent 2**63 - 1 correctly. 17292 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17293 since some C++ compilers masquerading as C compilers 17294 incorrectly reject 9223372036854775807. */ 17295#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 17296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17297 && LARGE_OFF_T % 2147483647 == 1) 17298 ? 1 : -1]; 17299int 17300main (void) 17301{ 17302 17303 ; 17304 return 0; 17305} 17306_ACEOF 17307 if ac_fn_c_try_compile "$LINENO" 17308then : 17309 break 17310fi 17311rm -f core conftest.err conftest.$ac_objext conftest.beam 17312 CC="$CC -n32" 17313 if ac_fn_c_try_compile "$LINENO" 17314then : 17315 ac_cv_sys_largefile_CC=' -n32'; break 17316fi 17317rm -f core conftest.err conftest.$ac_objext conftest.beam 17318 break 17319 done 17320 CC=$ac_save_CC 17321 rm -f conftest.$ac_ext 17322 fi 17323fi 17324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 17325printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 17326 if test "$ac_cv_sys_largefile_CC" != no; then 17327 CC=$CC$ac_cv_sys_largefile_CC 17328 fi 17329 17330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 17331printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 17332if test ${ac_cv_sys_file_offset_bits+y} 17333then : 17334 printf %s "(cached) " >&6 17335else $as_nop 17336 while :; do 17337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17338/* end confdefs.h. */ 17339#include <sys/types.h> 17340 /* Check that off_t can represent 2**63 - 1 correctly. 17341 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17342 since some C++ compilers masquerading as C compilers 17343 incorrectly reject 9223372036854775807. */ 17344#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 17345 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17346 && LARGE_OFF_T % 2147483647 == 1) 17347 ? 1 : -1]; 17348int 17349main (void) 17350{ 17351 17352 ; 17353 return 0; 17354} 17355_ACEOF 17356if ac_fn_c_try_compile "$LINENO" 17357then : 17358 ac_cv_sys_file_offset_bits=no; break 17359fi 17360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17362/* end confdefs.h. */ 17363#define _FILE_OFFSET_BITS 64 17364#include <sys/types.h> 17365 /* Check that off_t can represent 2**63 - 1 correctly. 17366 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17367 since some C++ compilers masquerading as C compilers 17368 incorrectly reject 9223372036854775807. */ 17369#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 17370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17371 && LARGE_OFF_T % 2147483647 == 1) 17372 ? 1 : -1]; 17373int 17374main (void) 17375{ 17376 17377 ; 17378 return 0; 17379} 17380_ACEOF 17381if ac_fn_c_try_compile "$LINENO" 17382then : 17383 ac_cv_sys_file_offset_bits=64; break 17384fi 17385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17386 ac_cv_sys_file_offset_bits=unknown 17387 break 17388done 17389fi 17390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 17391printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 17392case $ac_cv_sys_file_offset_bits in #( 17393 no | unknown) ;; 17394 *) 17395printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 17396;; 17397esac 17398rm -rf conftest* 17399 if test $ac_cv_sys_file_offset_bits = unknown; then 17400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 17401printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 17402if test ${ac_cv_sys_large_files+y} 17403then : 17404 printf %s "(cached) " >&6 17405else $as_nop 17406 while :; do 17407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17408/* end confdefs.h. */ 17409#include <sys/types.h> 17410 /* Check that off_t can represent 2**63 - 1 correctly. 17411 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17412 since some C++ compilers masquerading as C compilers 17413 incorrectly reject 9223372036854775807. */ 17414#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 17415 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17416 && LARGE_OFF_T % 2147483647 == 1) 17417 ? 1 : -1]; 17418int 17419main (void) 17420{ 17421 17422 ; 17423 return 0; 17424} 17425_ACEOF 17426if ac_fn_c_try_compile "$LINENO" 17427then : 17428 ac_cv_sys_large_files=no; break 17429fi 17430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17432/* end confdefs.h. */ 17433#define _LARGE_FILES 1 17434#include <sys/types.h> 17435 /* Check that off_t can represent 2**63 - 1 correctly. 17436 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17437 since some C++ compilers masquerading as C compilers 17438 incorrectly reject 9223372036854775807. */ 17439#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 17440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17441 && LARGE_OFF_T % 2147483647 == 1) 17442 ? 1 : -1]; 17443int 17444main (void) 17445{ 17446 17447 ; 17448 return 0; 17449} 17450_ACEOF 17451if ac_fn_c_try_compile "$LINENO" 17452then : 17453 ac_cv_sys_large_files=1; break 17454fi 17455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17456 ac_cv_sys_large_files=unknown 17457 break 17458done 17459fi 17460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 17461printf "%s\n" "$ac_cv_sys_large_files" >&6; } 17462case $ac_cv_sys_large_files in #( 17463 no | unknown) ;; 17464 *) 17465printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 17466;; 17467esac 17468rm -rf conftest* 17469 fi 17470fi 17471 17472 17473 17474 17475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5 17476printf %s "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; } 17477cache=_D_LARGEFILE_SOURCE_1 17478if eval test \${cv_prog_cc_flag_needed_$cache+y} 17479then : 17480 printf %s "(cached) " >&6 17481else $as_nop 17482 17483echo ' 17484#include <stdio.h> 17485int test(void) { 17486 int a = fseeko(stdin, 0, 0); 17487 return a; 17488} 17489' > conftest.c 17490echo 'void f(void){}' >>conftest.c 17491if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then 17492eval "cv_prog_cc_flag_needed_$cache=no" 17493else 17494 17495if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then 17496eval "cv_prog_cc_flag_needed_$cache=yes" 17497else 17498eval "cv_prog_cc_flag_needed_$cache=fail" 17499#echo 'Test with flag fails too!' 17500#cat conftest.c 17501#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 17502#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 17503#exit 1 17504fi 17505 17506fi 17507rm -f conftest conftest.c conftest.o 17508 17509fi 17510 17511if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then 17512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17513printf "%s\n" "yes" >&6; } 17514: 17515CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1" 17516else 17517if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then 17518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17519printf "%s\n" "no" >&6; } 17520#echo 'Test with flag is no!' 17521#cat conftest.c 17522#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1" 17523#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1` 17524#exit 1 17525: 17526 17527else 17528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 17529printf "%s\n" "failed" >&6; } 17530: 17531 17532fi 17533fi 17534 17535 17536 17537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5 17538printf %s "checking if nonblocking sockets work... " >&6; } 17539if echo $host | grep mingw >/dev/null; then 17540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5 17541printf "%s\n" "no (windows)" >&6; } 17542 17543printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 17544 17545else 17546if test "$cross_compiling" = yes 17547then : 17548 17549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5 17550printf "%s\n" "crosscompile(yes)" >&6; } 17551 17552else $as_nop 17553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17554/* end confdefs.h. */ 17555 17556 17557#include <stdio.h> 17558#include <string.h> 17559#include <stdlib.h> 17560#include <fcntl.h> 17561#include <errno.h> 17562#ifdef HAVE_SYS_TYPES_H 17563#include <sys/types.h> 17564#endif 17565#ifdef HAVE_SYS_SELECT_H 17566#include <sys/select.h> 17567#endif 17568#ifdef HAVE_SYS_SOCKET_H 17569#include <sys/socket.h> 17570#endif 17571#ifdef HAVE_NETINET_IN_H 17572#include <netinet/in.h> 17573#endif 17574#ifdef HAVE_ARPA_INET_H 17575#include <arpa/inet.h> 17576#endif 17577#ifdef HAVE_UNISTD_H 17578#include <unistd.h> 17579#endif 17580#ifdef HAVE_TIME_H 17581#include <time.h> 17582#endif 17583 17584int main(void) 17585{ 17586 int port; 17587 int sfd, cfd; 17588 int num = 10; 17589 int i, p; 17590 struct sockaddr_in a; 17591 /* test if select and nonblocking reads work well together */ 17592 /* open port. 17593 fork child to send 10 messages. 17594 select to read. 17595 then try to nonblocking read the 10 messages 17596 then, nonblocking read must give EAGAIN 17597 */ 17598 17599 port = 12345 + (time(0)%32); 17600 sfd = socket(PF_INET, SOCK_DGRAM, 0); 17601 if(sfd == -1) { 17602 perror("socket"); 17603 return 1; 17604 } 17605 memset(&a, 0, sizeof(a)); 17606 a.sin_family = AF_INET; 17607 a.sin_port = htons(port); 17608 a.sin_addr.s_addr = inet_addr("127.0.0.1"); 17609 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 17610 perror("bind"); 17611 return 1; 17612 } 17613 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 17614 perror("fcntl"); 17615 return 1; 17616 } 17617 17618 cfd = socket(PF_INET, SOCK_DGRAM, 0); 17619 if(cfd == -1) { 17620 perror("client socket"); 17621 return 1; 17622 } 17623 a.sin_port = 0; 17624 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 17625 perror("client bind"); 17626 return 1; 17627 } 17628 a.sin_port = htons(port); 17629 17630 /* no handler, causes exit in 10 seconds */ 17631 alarm(10); 17632 17633 /* send and receive on the socket */ 17634 if((p=fork()) == 0) { 17635 for(i=0; i<num; i++) { 17636 if(sendto(cfd, &i, sizeof(i), 0, 17637 (struct sockaddr*)&a, sizeof(a)) < 0) { 17638 perror("sendto"); 17639 return 1; 17640 } 17641 } 17642 } else { 17643 /* parent */ 17644 fd_set rset; 17645 int x; 17646 if(p == -1) { 17647 perror("fork"); 17648 return 1; 17649 } 17650 FD_ZERO(&rset); 17651 FD_SET(sfd, &rset); 17652 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 17653 perror("select"); 17654 return 1; 17655 } 17656 i = 0; 17657 while(i < num) { 17658 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 17659 if(errno == EAGAIN) 17660 continue; 17661 perror("recv"); 17662 return 1; 17663 } 17664 i++; 17665 } 17666 /* now we want to get EAGAIN: nonblocking goodness */ 17667 errno = 0; 17668 recv(sfd, &x, sizeof(x), 0); 17669 if(errno != EAGAIN) { 17670 perror("trying to recv again"); 17671 return 1; 17672 } 17673 /* EAGAIN encountered */ 17674 } 17675 17676 close(sfd); 17677 close(cfd); 17678 return 0; 17679} 17680 17681_ACEOF 17682if ac_fn_c_try_run "$LINENO" 17683then : 17684 17685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17686printf "%s\n" "yes" >&6; } 17687 17688else $as_nop 17689 17690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17691printf "%s\n" "no" >&6; } 17692 17693printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h 17694 17695 17696fi 17697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17698 conftest.$ac_objext conftest.beam conftest.$ac_ext 17699fi 17700 17701fi 17702 17703 17704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5 17705printf %s "checking whether mkdir has one arg... " >&6; } 17706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17707/* end confdefs.h. */ 17708 17709#include <stdio.h> 17710#include <unistd.h> 17711#ifdef HAVE_WINSOCK2_H 17712#include <winsock2.h> 17713#endif 17714#ifdef HAVE_SYS_STAT_H 17715#include <sys/stat.h> 17716#endif 17717 17718int 17719main (void) 17720{ 17721 17722 (void)mkdir("directory"); 17723 17724 ; 17725 return 0; 17726} 17727_ACEOF 17728if ac_fn_c_try_compile "$LINENO" 17729then : 17730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17731printf "%s\n" "yes" >&6; } 17732 17733printf "%s\n" "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h 17734 17735 17736else $as_nop 17737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17738printf "%s\n" "no" >&6; } 17739 17740fi 17741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17742 17743 17744 for ac_func in strptime 17745do : 17746 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 17747if test "x$ac_cv_func_strptime" = xyes 17748then : 17749 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h 17750 17751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5 17752printf %s "checking whether strptime works... " >&6; } 17753if test c${cross_compiling} = cno; then 17754if test "$cross_compiling" = yes 17755then : 17756 eval "ac_cv_c_strptime_works=maybe" 17757else $as_nop 17758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17759/* end confdefs.h. */ 17760 17761#define _XOPEN_SOURCE 600 17762#include <time.h> 17763int main(void) { struct tm tm; char *res; 17764res = 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); 17765if (!res) return 2; 17766res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm); 17767if (!res) return 1; return 0; } 17768 17769_ACEOF 17770if ac_fn_c_try_run "$LINENO" 17771then : 17772 eval "ac_cv_c_strptime_works=yes" 17773else $as_nop 17774 eval "ac_cv_c_strptime_works=no" 17775fi 17776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17777 conftest.$ac_objext conftest.beam conftest.$ac_ext 17778fi 17779 17780else 17781eval "ac_cv_c_strptime_works=maybe" 17782fi 17783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5 17784printf "%s\n" "$ac_cv_c_strptime_works" >&6; } 17785if test $ac_cv_c_strptime_works = no; then 17786case " $LIBOBJS " in 17787 *" strptime.$ac_objext "* ) ;; 17788 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 17789 ;; 17790esac 17791 17792else 17793 17794printf "%s\n" "#define STRPTIME_WORKS 1" >>confdefs.h 17795 17796fi 17797 17798else $as_nop 17799 case " $LIBOBJS " in 17800 *" strptime.$ac_objext "* ) ;; 17801 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 17802 ;; 17803esac 17804 17805fi 17806 17807done 17808 17809# check if we can use SO_REUSEPORT 17810reuseport_default=0 17811if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi 17812if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi 17813if test "$reuseport_default" = 1; then 17814 17815printf "%s\n" "#define REUSEPORT_DEFAULT 1" >>confdefs.h 17816 17817else 17818 17819printf "%s\n" "#define REUSEPORT_DEFAULT 0" >>confdefs.h 17820 17821fi 17822 17823# Include systemd.m4 - begin 17824# macros for configuring systemd 17825# Copyright 2015, Sami Kerola, CloudFlare. 17826# BSD licensed. 17827# Check whether --enable-systemd was given. 17828if test ${enable_systemd+y} 17829then : 17830 enableval=$enable_systemd; 17831else $as_nop 17832 enable_systemd=no 17833fi 17834 17835have_systemd=no 17836if test "x$enable_systemd" != xno 17837then : 17838 17839 if test -n "$PKG_CONFIG"; then 17840 have_systemd=no 17841 17842pkg_failed=no 17843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 17844printf %s "checking for libsystemd... " >&6; } 17845 17846if test -n "$SYSTEMD_CFLAGS"; then 17847 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" 17848 elif test -n "$PKG_CONFIG"; then 17849 if test -n "$PKG_CONFIG" && \ 17850 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 17851 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 17852 ac_status=$? 17853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17854 test $ac_status = 0; }; then 17855 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 17856 test "x$?" != "x0" && pkg_failed=yes 17857else 17858 pkg_failed=yes 17859fi 17860 else 17861 pkg_failed=untried 17862fi 17863if test -n "$SYSTEMD_LIBS"; then 17864 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" 17865 elif test -n "$PKG_CONFIG"; then 17866 if test -n "$PKG_CONFIG" && \ 17867 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 17868 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 17869 ac_status=$? 17870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17871 test $ac_status = 0; }; then 17872 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 17873 test "x$?" != "x0" && pkg_failed=yes 17874else 17875 pkg_failed=yes 17876fi 17877 else 17878 pkg_failed=untried 17879fi 17880 17881 17882 17883if test $pkg_failed = yes; then 17884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17885printf "%s\n" "no" >&6; } 17886 17887if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17888 _pkg_short_errors_supported=yes 17889else 17890 _pkg_short_errors_supported=no 17891fi 17892 if test $_pkg_short_errors_supported = yes; then 17893 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 17894 else 17895 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 17896 fi 17897 # Put the nasty error message in config.log where it belongs 17898 echo "$SYSTEMD_PKG_ERRORS" >&5 17899 17900 as_fn_error $? "Package requirements (libsystemd) were not met: 17901 17902$SYSTEMD_PKG_ERRORS 17903 17904Consider adjusting the PKG_CONFIG_PATH environment variable if you 17905installed software in a non-standard prefix. 17906 17907Alternatively, you may set the environment variables SYSTEMD_CFLAGS 17908and SYSTEMD_LIBS to avoid the need to call pkg-config. 17909See the pkg-config man page for more details." "$LINENO" 5 17910elif test $pkg_failed = untried; then 17911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17912printf "%s\n" "no" >&6; } 17913 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17914printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17915as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17916is in your PATH or set the PKG_CONFIG environment variable to the full 17917path to pkg-config. 17918 17919Alternatively, you may set the environment variables SYSTEMD_CFLAGS 17920and SYSTEMD_LIBS to avoid the need to call pkg-config. 17921See the pkg-config man page for more details. 17922 17923To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17924See \`config.log' for more details" "$LINENO" 5; } 17925else 17926 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS 17927 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS 17928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17929printf "%s\n" "yes" >&6; } 17930 have_systemd=yes 17931fi 17932 if test "x$have_systemd" != "xyes" 17933then : 17934 17935 have_systemd_daemon=no 17936 17937pkg_failed=no 17938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5 17939printf %s "checking for libsystemd-daemon... " >&6; } 17940 17941if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 17942 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 17943 elif test -n "$PKG_CONFIG"; then 17944 if test -n "$PKG_CONFIG" && \ 17945 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 17946 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 17947 ac_status=$? 17948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17949 test $ac_status = 0; }; then 17950 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 17951 test "x$?" != "x0" && pkg_failed=yes 17952else 17953 pkg_failed=yes 17954fi 17955 else 17956 pkg_failed=untried 17957fi 17958if test -n "$SYSTEMD_DAEMON_LIBS"; then 17959 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 17960 elif test -n "$PKG_CONFIG"; then 17961 if test -n "$PKG_CONFIG" && \ 17962 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 17963 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 17964 ac_status=$? 17965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17966 test $ac_status = 0; }; then 17967 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 17968 test "x$?" != "x0" && pkg_failed=yes 17969else 17970 pkg_failed=yes 17971fi 17972 else 17973 pkg_failed=untried 17974fi 17975 17976 17977 17978if test $pkg_failed = yes; then 17979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17980printf "%s\n" "no" >&6; } 17981 17982if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17983 _pkg_short_errors_supported=yes 17984else 17985 _pkg_short_errors_supported=no 17986fi 17987 if test $_pkg_short_errors_supported = yes; then 17988 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 17989 else 17990 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 17991 fi 17992 # Put the nasty error message in config.log where it belongs 17993 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 17994 17995 as_fn_error $? "Package requirements (libsystemd-daemon) were not met: 17996 17997$SYSTEMD_DAEMON_PKG_ERRORS 17998 17999Consider adjusting the PKG_CONFIG_PATH environment variable if you 18000installed software in a non-standard prefix. 18001 18002Alternatively, you may set the environment variables SYSTEMD_DAEMON_CFLAGS 18003and SYSTEMD_DAEMON_LIBS to avoid the need to call pkg-config. 18004See the pkg-config man page for more details." "$LINENO" 5 18005elif test $pkg_failed = untried; then 18006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18007printf "%s\n" "no" >&6; } 18008 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18009printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18010as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18011is in your PATH or set the PKG_CONFIG environment variable to the full 18012path to pkg-config. 18013 18014Alternatively, you may set the environment variables SYSTEMD_DAEMON_CFLAGS 18015and SYSTEMD_DAEMON_LIBS to avoid the need to call pkg-config. 18016See the pkg-config man page for more details. 18017 18018To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18019See \`config.log' for more details" "$LINENO" 5; } 18020else 18021 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 18022 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 18023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18024printf "%s\n" "yes" >&6; } 18025 have_systemd_daemon=yes 18026fi 18027 if test "x$have_systemd_daemon" = "xyes" 18028then : 18029 have_systemd=yes 18030fi 18031 18032fi 18033 case $enable_systemd:$have_systemd in #( 18034 yes:no) : 18035 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #( 18036 *:yes) : 18037 18038printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h 18039 18040 LIBS="$LIBS $SYSTEMD_LIBS" 18041 18042 ;; #( 18043 *) : 18044 ;; 18045esac 18046 else 18047 as_fn_error $? "systemd enabled but need pkg-config to configure for it" "$LINENO" 5 18048 fi 18049 18050fi 18051 if test "x$have_systemd" = xyes; then 18052 USE_SYSTEMD_TRUE= 18053 USE_SYSTEMD_FALSE='#' 18054else 18055 USE_SYSTEMD_TRUE='#' 18056 USE_SYSTEMD_FALSE= 18057fi 18058 18059 18060# Include systemd.m4 - end 18061 18062# set memory allocation checking if requested 18063# Check whether --enable-alloc-checks was given. 18064if test ${enable_alloc_checks+y} 18065then : 18066 enableval=$enable_alloc_checks; 18067fi 18068 18069# Check whether --enable-alloc-lite was given. 18070if test ${enable_alloc_lite+y} 18071then : 18072 enableval=$enable_alloc_lite; 18073fi 18074 18075# Check whether --enable-alloc-nonregional was given. 18076if test ${enable_alloc_nonregional+y} 18077then : 18078 enableval=$enable_alloc_nonregional; 18079fi 18080 18081if test x_$enable_alloc_nonregional = x_yes; then 18082 18083printf "%s\n" "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h 18084 18085fi 18086if test x_$enable_alloc_checks = x_yes; then 18087 18088printf "%s\n" "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h 18089 18090 SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo" 18091 18092 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo" 18093 18094else 18095 if test x_$enable_alloc_lite = x_yes; then 18096 18097printf "%s\n" "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h 18098 18099 else 18100 18101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 18102printf %s "checking for GNU libc compatible malloc... " >&6; } 18103 if test "$cross_compiling" = yes 18104then : 18105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5 18106printf "%s\n" "no (crosscompile)" >&6; } 18107 case " $LIBOBJS " in 18108 *" malloc.$ac_objext "* ) ;; 18109 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 18110 ;; 18111esac 18112 18113 18114printf "%s\n" "#define malloc rpl_malloc_unbound" >>confdefs.h 18115 18116else $as_nop 18117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18118/* end confdefs.h. */ 18119#if defined STDC_HEADERS || defined HAVE_STDLIB_H 18120#include <stdlib.h> 18121#else 18122char *malloc (); 18123#endif 18124 18125int 18126main (void) 18127{ 18128 if(malloc(0) != 0) return 1; 18129 ; 18130 return 0; 18131} 18132 18133_ACEOF 18134if ac_fn_c_try_run "$LINENO" 18135then : 18136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18137printf "%s\n" "no" >&6; } 18138 case " $LIBOBJS " in 18139 *" malloc.$ac_objext "* ) ;; 18140 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 18141 ;; 18142esac 18143 18144 18145printf "%s\n" "#define malloc rpl_malloc_unbound" >>confdefs.h 18146 18147else $as_nop 18148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18149printf "%s\n" "yes" >&6; } 18150 18151printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h 18152 18153fi 18154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18155 conftest.$ac_objext conftest.beam conftest.$ac_ext 18156fi 18157 18158 18159 fi 18160fi 18161 18162# check windows threads (we use them, not pthreads, on windows). 18163if test "$on_mingw" = "yes"; then 18164# check windows threads 18165 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 18166" 18167if test "x$ac_cv_header_windows_h" = xyes 18168then : 18169 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h 18170 18171fi 18172 18173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5 18174printf %s "checking for CreateThread... " >&6; } 18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18176/* end confdefs.h. */ 18177 18178#ifdef HAVE_WINDOWS_H 18179#include <windows.h> 18180#endif 18181 18182int 18183main (void) 18184{ 18185 18186 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 18187 18188 ; 18189 return 0; 18190} 18191_ACEOF 18192if ac_fn_c_try_compile "$LINENO" 18193then : 18194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18195printf "%s\n" "yes" >&6; } 18196 18197printf "%s\n" "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h 18198 18199 18200else $as_nop 18201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18202printf "%s\n" "no" >&6; } 18203 18204fi 18205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18206 18207else 18208# not on mingw, check thread libraries. 18209 18210# check for thread library. 18211# check this first, so that the pthread lib does not get linked in via 18212# libssl or libpython, and thus distorts the tests, and we end up using 18213# the non-threadsafe C libraries. 18214 18215# Check whether --with-pthreads was given. 18216if test ${with_pthreads+y} 18217then : 18218 withval=$with_pthreads; 18219else $as_nop 18220 withval="yes" 18221fi 18222 18223ub_have_pthreads=no 18224if test x_$withval != x_no; then 18225 18226 18227 18228 18229ac_ext=c 18230ac_cpp='$CPP $CPPFLAGS' 18231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18233ac_compiler_gnu=$ac_cv_c_compiler_gnu 18234 18235ax_pthread_ok=no 18236 18237# We used to check for pthread.h first, but this fails if pthread.h 18238# requires special compiler flags (e.g. on Tru64 or Sequent). 18239# It gets checked for in the link test anyway. 18240 18241# First of all, check if the user has set any of the PTHREAD_LIBS, 18242# etcetera environment variables, and if threads linking works using 18243# them: 18244if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 18245 ax_pthread_save_CC="$CC" 18246 ax_pthread_save_CFLAGS="$CFLAGS" 18247 ax_pthread_save_LIBS="$LIBS" 18248 if test "x$PTHREAD_CC" != "x" 18249then : 18250 CC="$PTHREAD_CC" 18251fi 18252 if test "x$PTHREAD_CXX" != "x" 18253then : 18254 CXX="$PTHREAD_CXX" 18255fi 18256 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18257 LIBS="$PTHREAD_LIBS $LIBS" 18258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 18259printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 18260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18261/* end confdefs.h. */ 18262 18263/* Override any GCC internal prototype to avoid an error. 18264 Use char because int might match the return type of a GCC 18265 builtin and then its argument prototype would still apply. */ 18266char pthread_join (); 18267int 18268main (void) 18269{ 18270return pthread_join (); 18271 ; 18272 return 0; 18273} 18274_ACEOF 18275if ac_fn_c_try_link "$LINENO" 18276then : 18277 ax_pthread_ok=yes 18278fi 18279rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18280 conftest$ac_exeext conftest.$ac_ext 18281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 18282printf "%s\n" "$ax_pthread_ok" >&6; } 18283 if test "x$ax_pthread_ok" = "xno"; then 18284 PTHREAD_LIBS="" 18285 PTHREAD_CFLAGS="" 18286 fi 18287 CC="$ax_pthread_save_CC" 18288 CFLAGS="$ax_pthread_save_CFLAGS" 18289 LIBS="$ax_pthread_save_LIBS" 18290fi 18291 18292# We must check for the threads library under a number of different 18293# names; the ordering is very important because some systems 18294# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 18295# libraries is broken (non-POSIX). 18296 18297# Create a list of thread flags to try. Items with a "," contain both 18298# C compiler flags (before ",") and linker flags (after ","). Other items 18299# starting with a "-" are C compiler flags, and remaining items are 18300# library names, except for "none" which indicates that we try without 18301# any flags at all, and "pthread-config" which is a program returning 18302# the flags for the Pth emulation library. 18303 18304ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 18305 18306# The ordering *is* (sometimes) important. Some notes on the 18307# individual items follow: 18308 18309# pthreads: AIX (must check this before -lpthread) 18310# none: in case threads are in libc; should be tried before -Kthread and 18311# other compiler flags to prevent continual compiler warnings 18312# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 18313# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 18314# (Note: HP C rejects this with "bad form for `-t' option") 18315# -pthreads: Solaris/gcc (Note: HP C also rejects) 18316# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 18317# doesn't hurt to check since this sometimes defines pthreads and 18318# -D_REENTRANT too), HP C (must be checked before -lpthread, which 18319# is present but should not be used directly; and before -mthreads, 18320# because the compiler interprets this as "-mt" + "-hreads") 18321# -mthreads: Mingw32/gcc, Lynx/gcc 18322# pthread: Linux, etcetera 18323# --thread-safe: KAI C++ 18324# pthread-config: use pthread-config program (for GNU Pth library) 18325 18326case $host_os in 18327 18328 freebsd*) 18329 18330 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 18331 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 18332 18333 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 18334 ;; 18335 18336 hpux*) 18337 18338 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 18339 # multi-threading and also sets -lpthread." 18340 18341 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 18342 ;; 18343 18344 openedition*) 18345 18346 # IBM z/OS requires a feature-test macro to be defined in order to 18347 # enable POSIX threads at all, so give the user a hint if this is 18348 # not set. (We don't define these ourselves, as they can affect 18349 # other portions of the system API in unpredictable ways.) 18350 18351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18352/* end confdefs.h. */ 18353 18354# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 18355 AX_PTHREAD_ZOS_MISSING 18356# endif 18357 18358_ACEOF 18359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18360 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 18361then : 18362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 18363printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 18364fi 18365rm -rf conftest* 18366 18367 ;; 18368 18369 solaris*) 18370 18371 # On Solaris (at least, for some versions), libc contains stubbed 18372 # (non-functional) versions of the pthreads routines, so link-based 18373 # tests will erroneously succeed. (N.B.: The stubs are missing 18374 # pthread_cleanup_push, or rather a function called by this macro, 18375 # so we could check for that, but who knows whether they'll stub 18376 # that too in a future libc.) So we'll check first for the 18377 # standard Solaris way of linking pthreads (-mt -lpthread). 18378 18379 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" 18380 ;; 18381esac 18382 18383# Are we compiling with Clang? 18384 18385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 18386printf %s "checking whether $CC is Clang... " >&6; } 18387if test ${ax_cv_PTHREAD_CLANG+y} 18388then : 18389 printf %s "(cached) " >&6 18390else $as_nop 18391 ax_cv_PTHREAD_CLANG=no 18392 # Note that Autoconf sets GCC=yes for Clang as well as GCC 18393 if test "x$GCC" = "xyes"; then 18394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18395/* end confdefs.h. */ 18396/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 18397# if defined(__clang__) && defined(__llvm__) 18398 AX_PTHREAD_CC_IS_CLANG 18399# endif 18400 18401_ACEOF 18402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18403 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 18404then : 18405 ax_cv_PTHREAD_CLANG=yes 18406fi 18407rm -rf conftest* 18408 18409 fi 18410 18411fi 18412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 18413printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } 18414ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 18415 18416 18417# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 18418 18419# Note that for GCC and Clang -pthread generally implies -lpthread, 18420# except when -nostdlib is passed. 18421# This is problematic using libtool to build C++ shared libraries with pthread: 18422# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 18423# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 18424# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 18425# To solve this, first try -pthread together with -lpthread for GCC 18426 18427if test "x$GCC" = "xyes" 18428then : 18429 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" 18430fi 18431 18432# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first 18433 18434if test "x$ax_pthread_clang" = "xyes" 18435then : 18436 ax_pthread_flags="-pthread,-lpthread -pthread" 18437fi 18438 18439 18440# The presence of a feature test macro requesting re-entrant function 18441# definitions is, on some systems, a strong hint that pthreads support is 18442# correctly enabled 18443 18444case $host_os in 18445 darwin* | hpux* | linux* | osf* | solaris*) 18446 ax_pthread_check_macro="_REENTRANT" 18447 ;; 18448 18449 aix*) 18450 ax_pthread_check_macro="_THREAD_SAFE" 18451 ;; 18452 18453 *) 18454 ax_pthread_check_macro="--" 18455 ;; 18456esac 18457if test "x$ax_pthread_check_macro" = "x--" 18458then : 18459 ax_pthread_check_cond=0 18460else $as_nop 18461 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 18462fi 18463 18464 18465if test "x$ax_pthread_ok" = "xno"; then 18466for ax_pthread_try_flag in $ax_pthread_flags; do 18467 18468 case $ax_pthread_try_flag in 18469 none) 18470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 18471printf %s "checking whether pthreads work without any flags... " >&6; } 18472 ;; 18473 18474 *,*) 18475 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` 18476 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` 18477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 18478printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } 18479 ;; 18480 18481 -*) 18482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 18483printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 18484 PTHREAD_CFLAGS="$ax_pthread_try_flag" 18485 ;; 18486 18487 pthread-config) 18488 # Extract the first word of "pthread-config", so it can be a program name with args. 18489set dummy pthread-config; ac_word=$2 18490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18491printf %s "checking for $ac_word... " >&6; } 18492if test ${ac_cv_prog_ax_pthread_config+y} 18493then : 18494 printf %s "(cached) " >&6 18495else $as_nop 18496 if test -n "$ax_pthread_config"; then 18497 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 18498else 18499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18500for as_dir in $PATH 18501do 18502 IFS=$as_save_IFS 18503 case $as_dir in #((( 18504 '') as_dir=./ ;; 18505 */) ;; 18506 *) as_dir=$as_dir/ ;; 18507 esac 18508 for ac_exec_ext in '' $ac_executable_extensions; do 18509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18510 ac_cv_prog_ax_pthread_config="yes" 18511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18512 break 2 18513 fi 18514done 18515 done 18516IFS=$as_save_IFS 18517 18518 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 18519fi 18520fi 18521ax_pthread_config=$ac_cv_prog_ax_pthread_config 18522if test -n "$ax_pthread_config"; then 18523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 18524printf "%s\n" "$ax_pthread_config" >&6; } 18525else 18526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18527printf "%s\n" "no" >&6; } 18528fi 18529 18530 18531 if test "x$ax_pthread_config" = "xno" 18532then : 18533 continue 18534fi 18535 PTHREAD_CFLAGS="`pthread-config --cflags`" 18536 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 18537 ;; 18538 18539 *) 18540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 18541printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 18542 PTHREAD_LIBS="-l$ax_pthread_try_flag" 18543 ;; 18544 esac 18545 18546 ax_pthread_save_CFLAGS="$CFLAGS" 18547 ax_pthread_save_LIBS="$LIBS" 18548 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18549 LIBS="$PTHREAD_LIBS $LIBS" 18550 18551 # Check for various functions. We must include pthread.h, 18552 # since some functions may be macros. (On the Sequent, we 18553 # need a special flag -Kthread to make this header compile.) 18554 # We check for pthread_join because it is in -lpthread on IRIX 18555 # while pthread_create is in libc. We check for pthread_attr_init 18556 # due to DEC craziness with -lpthreads. We check for 18557 # pthread_cleanup_push because it is one of the few pthread 18558 # functions on Solaris that doesn't have a non-functional libc stub. 18559 # We try pthread_create on general principles. 18560 18561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18562/* end confdefs.h. */ 18563#include <pthread.h> 18564# if $ax_pthread_check_cond 18565# error "$ax_pthread_check_macro must be defined" 18566# endif 18567 static void *some_global = NULL; 18568 static void routine(void *a) 18569 { 18570 /* To avoid any unused-parameter or 18571 unused-but-set-parameter warning. */ 18572 some_global = a; 18573 } 18574 static void *start_routine(void *a) { return a; } 18575int 18576main (void) 18577{ 18578pthread_t th; pthread_attr_t attr; 18579 pthread_create(&th, 0, start_routine, 0); 18580 pthread_join(th, 0); 18581 pthread_attr_init(&attr); 18582 pthread_cleanup_push(routine, 0); 18583 pthread_cleanup_pop(0) /* ; */ 18584 ; 18585 return 0; 18586} 18587_ACEOF 18588if ac_fn_c_try_link "$LINENO" 18589then : 18590 ax_pthread_ok=yes 18591fi 18592rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18593 conftest$ac_exeext conftest.$ac_ext 18594 18595 CFLAGS="$ax_pthread_save_CFLAGS" 18596 LIBS="$ax_pthread_save_LIBS" 18597 18598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 18599printf "%s\n" "$ax_pthread_ok" >&6; } 18600 if test "x$ax_pthread_ok" = "xyes" 18601then : 18602 break 18603fi 18604 18605 PTHREAD_LIBS="" 18606 PTHREAD_CFLAGS="" 18607done 18608fi 18609 18610 18611# Clang needs special handling, because older versions handle the -pthread 18612# option in a rather... idiosyncratic way 18613 18614if test "x$ax_pthread_clang" = "xyes"; then 18615 18616 # Clang takes -pthread; it has never supported any other flag 18617 18618 # (Note 1: This will need to be revisited if a system that Clang 18619 # supports has POSIX threads in a separate library. This tends not 18620 # to be the way of modern systems, but it's conceivable.) 18621 18622 # (Note 2: On some systems, notably Darwin, -pthread is not needed 18623 # to get POSIX threads support; the API is always present and 18624 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 18625 # -pthread does define _REENTRANT, and while the Darwin headers 18626 # ignore this macro, third-party headers might not.) 18627 18628 # However, older versions of Clang make a point of warning the user 18629 # that, in an invocation where only linking and no compilation is 18630 # taking place, the -pthread option has no effect ("argument unused 18631 # during compilation"). They expect -pthread to be passed in only 18632 # when source code is being compiled. 18633 # 18634 # Problem is, this is at odds with the way Automake and most other 18635 # C build frameworks function, which is that the same flags used in 18636 # compilation (CFLAGS) are also used in linking. Many systems 18637 # supported by AX_PTHREAD require exactly this for POSIX threads 18638 # support, and in fact it is often not straightforward to specify a 18639 # flag that is used only in the compilation phase and not in 18640 # linking. Such a scenario is extremely rare in practice. 18641 # 18642 # Even though use of the -pthread flag in linking would only print 18643 # a warning, this can be a nuisance for well-run software projects 18644 # that build with -Werror. So if the active version of Clang has 18645 # this misfeature, we search for an option to squash it. 18646 18647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 18648printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 18649if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} 18650then : 18651 printf %s "(cached) " >&6 18652else $as_nop 18653 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 18654 # Create an alternate version of $ac_link that compiles and 18655 # links in two steps (.c -> .o, .o -> exe) instead of one 18656 # (.c -> exe), because the warning occurs only in the second 18657 # step 18658 ax_pthread_save_ac_link="$ac_link" 18659 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 18660 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"` 18661 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 18662 ax_pthread_save_CFLAGS="$CFLAGS" 18663 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 18664 if test "x$ax_pthread_try" = "xunknown" 18665then : 18666 break 18667fi 18668 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 18669 ac_link="$ax_pthread_save_ac_link" 18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18671/* end confdefs.h. */ 18672int main(void){return 0;} 18673_ACEOF 18674if ac_fn_c_try_link "$LINENO" 18675then : 18676 ac_link="$ax_pthread_2step_ac_link" 18677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18678/* end confdefs.h. */ 18679int main(void){return 0;} 18680_ACEOF 18681if ac_fn_c_try_link "$LINENO" 18682then : 18683 break 18684fi 18685rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18686 conftest$ac_exeext conftest.$ac_ext 18687 18688fi 18689rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18690 conftest$ac_exeext conftest.$ac_ext 18691 done 18692 ac_link="$ax_pthread_save_ac_link" 18693 CFLAGS="$ax_pthread_save_CFLAGS" 18694 if test "x$ax_pthread_try" = "x" 18695then : 18696 ax_pthread_try=no 18697fi 18698 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 18699 18700fi 18701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 18702printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 18703 18704 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 18705 no | unknown) ;; 18706 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 18707 esac 18708 18709fi # $ax_pthread_clang = yes 18710 18711 18712 18713# Various other checks: 18714if test "x$ax_pthread_ok" = "xyes"; then 18715 ax_pthread_save_CFLAGS="$CFLAGS" 18716 ax_pthread_save_LIBS="$LIBS" 18717 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18718 LIBS="$PTHREAD_LIBS $LIBS" 18719 18720 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 18721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 18722printf %s "checking for joinable pthread attribute... " >&6; } 18723if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} 18724then : 18725 printf %s "(cached) " >&6 18726else $as_nop 18727 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 18728 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 18729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18730/* end confdefs.h. */ 18731#include <pthread.h> 18732int 18733main (void) 18734{ 18735int attr = $ax_pthread_attr; return attr /* ; */ 18736 ; 18737 return 0; 18738} 18739_ACEOF 18740if ac_fn_c_try_link "$LINENO" 18741then : 18742 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 18743fi 18744rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18745 conftest$ac_exeext conftest.$ac_ext 18746 done 18747 18748fi 18749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 18750printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 18751 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 18752 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 18753 test "x$ax_pthread_joinable_attr_defined" != "xyes" 18754then : 18755 18756printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h 18757 18758 ax_pthread_joinable_attr_defined=yes 18759 18760fi 18761 18762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 18763printf %s "checking whether more special flags are required for pthreads... " >&6; } 18764if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} 18765then : 18766 printf %s "(cached) " >&6 18767else $as_nop 18768 ax_cv_PTHREAD_SPECIAL_FLAGS=no 18769 case $host_os in 18770 solaris*) 18771 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 18772 ;; 18773 esac 18774 18775fi 18776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 18777printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 18778 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 18779 test "x$ax_pthread_special_flags_added" != "xyes" 18780then : 18781 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 18782 ax_pthread_special_flags_added=yes 18783fi 18784 18785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 18786printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 18787if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 18788then : 18789 printf %s "(cached) " >&6 18790else $as_nop 18791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18792/* end confdefs.h. */ 18793#include <pthread.h> 18794int 18795main (void) 18796{ 18797int i = PTHREAD_PRIO_INHERIT; 18798 return i; 18799 ; 18800 return 0; 18801} 18802_ACEOF 18803if ac_fn_c_try_link "$LINENO" 18804then : 18805 ax_cv_PTHREAD_PRIO_INHERIT=yes 18806else $as_nop 18807 ax_cv_PTHREAD_PRIO_INHERIT=no 18808fi 18809rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18810 conftest$ac_exeext conftest.$ac_ext 18811 18812fi 18813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 18814printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 18815 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 18816 test "x$ax_pthread_prio_inherit_defined" != "xyes" 18817then : 18818 18819printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 18820 18821 ax_pthread_prio_inherit_defined=yes 18822 18823fi 18824 18825 CFLAGS="$ax_pthread_save_CFLAGS" 18826 LIBS="$ax_pthread_save_LIBS" 18827 18828 # More AIX lossage: compile with *_r variant 18829 if test "x$GCC" != "xyes"; then 18830 case $host_os in 18831 aix*) 18832 case "x/$CC" in #( 18833 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 18834 #handle absolute path differently from PATH based program lookup 18835 case "x$CC" in #( 18836 x/*) : 18837 18838 if as_fn_executable_p ${CC}_r 18839then : 18840 PTHREAD_CC="${CC}_r" 18841fi 18842 if test "x${CXX}" != "x" 18843then : 18844 if as_fn_executable_p ${CXX}_r 18845then : 18846 PTHREAD_CXX="${CXX}_r" 18847fi 18848fi 18849 ;; #( 18850 *) : 18851 18852 for ac_prog in ${CC}_r 18853do 18854 # Extract the first word of "$ac_prog", so it can be a program name with args. 18855set dummy $ac_prog; ac_word=$2 18856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18857printf %s "checking for $ac_word... " >&6; } 18858if test ${ac_cv_prog_PTHREAD_CC+y} 18859then : 18860 printf %s "(cached) " >&6 18861else $as_nop 18862 if test -n "$PTHREAD_CC"; then 18863 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 18864else 18865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18866for as_dir in $PATH 18867do 18868 IFS=$as_save_IFS 18869 case $as_dir in #((( 18870 '') as_dir=./ ;; 18871 */) ;; 18872 *) as_dir=$as_dir/ ;; 18873 esac 18874 for ac_exec_ext in '' $ac_executable_extensions; do 18875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18876 ac_cv_prog_PTHREAD_CC="$ac_prog" 18877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18878 break 2 18879 fi 18880done 18881 done 18882IFS=$as_save_IFS 18883 18884fi 18885fi 18886PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 18887if test -n "$PTHREAD_CC"; then 18888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 18889printf "%s\n" "$PTHREAD_CC" >&6; } 18890else 18891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18892printf "%s\n" "no" >&6; } 18893fi 18894 18895 18896 test -n "$PTHREAD_CC" && break 18897done 18898test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 18899 18900 if test "x${CXX}" != "x" 18901then : 18902 for ac_prog in ${CXX}_r 18903do 18904 # Extract the first word of "$ac_prog", so it can be a program name with args. 18905set dummy $ac_prog; ac_word=$2 18906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18907printf %s "checking for $ac_word... " >&6; } 18908if test ${ac_cv_prog_PTHREAD_CXX+y} 18909then : 18910 printf %s "(cached) " >&6 18911else $as_nop 18912 if test -n "$PTHREAD_CXX"; then 18913 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. 18914else 18915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18916for as_dir in $PATH 18917do 18918 IFS=$as_save_IFS 18919 case $as_dir in #((( 18920 '') as_dir=./ ;; 18921 */) ;; 18922 *) as_dir=$as_dir/ ;; 18923 esac 18924 for ac_exec_ext in '' $ac_executable_extensions; do 18925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18926 ac_cv_prog_PTHREAD_CXX="$ac_prog" 18927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18928 break 2 18929 fi 18930done 18931 done 18932IFS=$as_save_IFS 18933 18934fi 18935fi 18936PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX 18937if test -n "$PTHREAD_CXX"; then 18938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 18939printf "%s\n" "$PTHREAD_CXX" >&6; } 18940else 18941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18942printf "%s\n" "no" >&6; } 18943fi 18944 18945 18946 test -n "$PTHREAD_CXX" && break 18947done 18948test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 18949 18950fi 18951 18952 ;; 18953esac 18954 ;; #( 18955 *) : 18956 ;; 18957esac 18958 ;; 18959 esac 18960 fi 18961fi 18962 18963test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 18964test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 18965 18966 18967 18968 18969 18970 18971# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 18972if test "x$ax_pthread_ok" = "xyes"; then 18973 18974 18975printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 18976 18977 if test -n "$PTHREAD_LIBS"; then 18978 LIBS="$PTHREAD_LIBS $LIBS" 18979 fi 18980 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18981 CC="$PTHREAD_CC" 18982 ub_have_pthreads=yes 18983 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h> 18984" 18985if test "x$ac_cv_type_pthread_spinlock_t" = xyes 18986then : 18987 18988printf "%s\n" "#define HAVE_PTHREAD_SPINLOCK_T 1" >>confdefs.h 18989 18990 18991fi 18992ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 18993" 18994if test "x$ac_cv_type_pthread_rwlock_t" = xyes 18995then : 18996 18997printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_T 1" >>confdefs.h 18998 18999 19000fi 19001 19002 # The cast to long int works around a bug in the HP C Compiler 19003# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19004# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19005# This bug is HP SR number 8606223364. 19006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 19007printf %s "checking size of unsigned long... " >&6; } 19008if test ${ac_cv_sizeof_unsigned_long+y} 19009then : 19010 printf %s "(cached) " >&6 19011else $as_nop 19012 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default" 19013then : 19014 19015else $as_nop 19016 if test "$ac_cv_type_unsigned_long" = yes; then 19017 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19018printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19019as_fn_error 77 "cannot compute sizeof (unsigned long) 19020See \`config.log' for more details" "$LINENO" 5; } 19021 else 19022 ac_cv_sizeof_unsigned_long=0 19023 fi 19024fi 19025 19026fi 19027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 19028printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; } 19029 19030 19031 19032printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h 19033 19034 19035 # The cast to long int works around a bug in the HP C Compiler 19036# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19037# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19038# This bug is HP SR number 8606223364. 19039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 19040printf %s "checking size of pthread_t... " >&6; } 19041if test ${ac_cv_sizeof_pthread_t+y} 19042then : 19043 printf %s "(cached) " >&6 19044else $as_nop 19045 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default" 19046then : 19047 19048else $as_nop 19049 if test "$ac_cv_type_pthread_t" = yes; then 19050 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19051printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19052as_fn_error 77 "cannot compute sizeof (pthread_t) 19053See \`config.log' for more details" "$LINENO" 5; } 19054 else 19055 ac_cv_sizeof_pthread_t=0 19056 fi 19057fi 19058 19059fi 19060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 19061printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; } 19062 19063 19064 19065printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h 19066 19067 19068 19069 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then 19070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5 19071printf %s "checking if -pthread unused during linking... " >&6; } 19072 # catch clang warning 'argument unused during compilation' 19073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19074/* end confdefs.h. */ 19075$ac_includes_default 19076 19077int main(void) {return 0;} 19078 19079_ACEOF 19080 pthread_unused="yes" 19081 # first compile 19082 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5 19083 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5 19084 if test $? = 0; then 19085 # then link 19086 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5 19087 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5 19088 if test $? -ne 0; then 19089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19090printf "%s\n" "yes" >&6; } 19091 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'` 19092 PTHREAD_CFLAGS_ONLY="-pthread" 19093 19094 else 19095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19096printf "%s\n" "no" >&6; } 19097 fi 19098 else 19099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19100printf "%s\n" "no" >&6; } 19101 fi # endif cc successful 19102 rm -f conftest conftest.c conftest.o 19103 fi # endif -pthread in CFLAGS 19104 19105 19106 : 19107else 19108 ax_pthread_ok=no 19109 19110fi 19111ac_ext=c 19112ac_cpp='$CPP $CPPFLAGS' 19113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19115ac_compiler_gnu=$ac_cv_c_compiler_gnu 19116 19117 19118fi 19119 19120# check solaris thread library 19121 19122# Check whether --with-solaris-threads was given. 19123if test ${with_solaris_threads+y} 19124then : 19125 withval=$with_solaris_threads; 19126else $as_nop 19127 withval="no" 19128fi 19129 19130ub_have_sol_threads=no 19131if test x_$withval != x_no; then 19132 if test x_$ub_have_pthreads != x_no; then 19133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5 19134printf "%s\n" "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;} 19135 else 19136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5 19137printf %s "checking for library containing thr_create... " >&6; } 19138if test ${ac_cv_search_thr_create+y} 19139then : 19140 printf %s "(cached) " >&6 19141else $as_nop 19142 ac_func_search_save_LIBS=$LIBS 19143cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19144/* end confdefs.h. */ 19145 19146/* Override any GCC internal prototype to avoid an error. 19147 Use char because int might match the return type of a GCC 19148 builtin and then its argument prototype would still apply. */ 19149char thr_create (); 19150int 19151main (void) 19152{ 19153return thr_create (); 19154 ; 19155 return 0; 19156} 19157_ACEOF 19158for ac_lib in '' thread 19159do 19160 if test -z "$ac_lib"; then 19161 ac_res="none required" 19162 else 19163 ac_res=-l$ac_lib 19164 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19165 fi 19166 if ac_fn_c_try_link "$LINENO" 19167then : 19168 ac_cv_search_thr_create=$ac_res 19169fi 19170rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19171 conftest$ac_exeext 19172 if test ${ac_cv_search_thr_create+y} 19173then : 19174 break 19175fi 19176done 19177if test ${ac_cv_search_thr_create+y} 19178then : 19179 19180else $as_nop 19181 ac_cv_search_thr_create=no 19182fi 19183rm conftest.$ac_ext 19184LIBS=$ac_func_search_save_LIBS 19185fi 19186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5 19187printf "%s\n" "$ac_cv_search_thr_create" >&6; } 19188ac_res=$ac_cv_search_thr_create 19189if test "$ac_res" != no 19190then : 19191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19192 19193 19194printf "%s\n" "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h 19195 19196 19197 19198 19199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5 19200printf %s "checking whether $CC supports -mt... " >&6; } 19201cache=`echo mt | sed 'y%.=/+-%___p_%'` 19202if eval test \${cv_prog_cc_flag_$cache+y} 19203then : 19204 printf %s "(cached) " >&6 19205else $as_nop 19206 19207echo 'void f(void){}' >conftest.c 19208if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then 19209eval "cv_prog_cc_flag_$cache=yes" 19210else 19211eval "cv_prog_cc_flag_$cache=no" 19212fi 19213rm -f conftest conftest.o conftest.c 19214 19215fi 19216 19217if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then 19218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19219printf "%s\n" "yes" >&6; } 19220: 19221CFLAGS="$CFLAGS -mt" 19222else 19223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19224printf "%s\n" "no" >&6; } 19225: 19226CFLAGS="$CFLAGS -D_REENTRANT" 19227fi 19228 19229 ub_have_sol_threads=yes 19230 19231else $as_nop 19232 19233 as_fn_error $? "no solaris threads found." "$LINENO" 5 19234 19235fi 19236 19237 fi 19238fi 19239 19240fi # end of non-mingw check of thread libraries 19241 19242# Check for SYSLOG_FACILITY 19243 19244# Check whether --with-syslog-facility was given. 19245if test ${with_syslog_facility+y} 19246then : 19247 withval=$with_syslog_facility; UNBOUND_SYSLOG_FACILITY="$withval" 19248fi 19249 19250case "${UNBOUND_SYSLOG_FACILITY}" in 19251 19252 LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;; 19253 19254 *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;; 19255 19256esac 19257 19258printf "%s\n" "#define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}" >>confdefs.h 19259 19260 19261# Check for dynamic library module 19262 19263# Check whether --with-dynlibmodule was given. 19264if test ${with_dynlibmodule+y} 19265then : 19266 withval=$with_dynlibmodule; 19267else $as_nop 19268 withval="no" 19269fi 19270 19271 19272if test x_$withval != x_no; then 19273 19274printf "%s\n" "#define WITH_DYNLIBMODULE 1" >>confdefs.h 19275 19276 WITH_DYNLIBMODULE=yes 19277 19278 DYNLIBMOD_OBJ="dynlibmod.lo" 19279 19280 DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h' 19281 19282 if test $on_mingw = "no"; then 19283 # link with -ldl if not already there, for all executables because 19284 # dlopen call is in the dynlib module. For unbound executable, also 19285 # export symbols. 19286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 19287printf %s "checking for library containing dlopen... " >&6; } 19288if test ${ac_cv_search_dlopen+y} 19289then : 19290 printf %s "(cached) " >&6 19291else $as_nop 19292 ac_func_search_save_LIBS=$LIBS 19293cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19294/* end confdefs.h. */ 19295 19296/* Override any GCC internal prototype to avoid an error. 19297 Use char because int might match the return type of a GCC 19298 builtin and then its argument prototype would still apply. */ 19299char dlopen (); 19300int 19301main (void) 19302{ 19303return dlopen (); 19304 ; 19305 return 0; 19306} 19307_ACEOF 19308for ac_lib in '' dl 19309do 19310 if test -z "$ac_lib"; then 19311 ac_res="none required" 19312 else 19313 ac_res=-l$ac_lib 19314 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19315 fi 19316 if ac_fn_c_try_link "$LINENO" 19317then : 19318 ac_cv_search_dlopen=$ac_res 19319fi 19320rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19321 conftest$ac_exeext 19322 if test ${ac_cv_search_dlopen+y} 19323then : 19324 break 19325fi 19326done 19327if test ${ac_cv_search_dlopen+y} 19328then : 19329 19330else $as_nop 19331 ac_cv_search_dlopen=no 19332fi 19333rm conftest.$ac_ext 19334LIBS=$ac_func_search_save_LIBS 19335fi 19336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 19337printf "%s\n" "$ac_cv_search_dlopen" >&6; } 19338ac_res=$ac_cv_search_dlopen 19339if test "$ac_res" != no 19340then : 19341 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19342 19343fi 19344 19345 DYNLIBMOD_EXTRALIBS="-export-dynamic" 19346 else 19347 DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a" 19348 fi 19349 19350fi 19351 19352# Check for PyUnbound 19353 19354# Check whether --with-pyunbound was given. 19355if test ${with_pyunbound+y} 19356then : 19357 withval=$with_pyunbound; 19358else $as_nop 19359 withval="no" 19360fi 19361 19362 19363ub_test_python=no 19364ub_with_pyunbound=no 19365if test x_$withval != x_no; then 19366 ub_with_pyunbound=yes 19367 ub_test_python=yes 19368fi 19369 19370# Check for Python module 19371 19372# Check whether --with-pythonmodule was given. 19373if test ${with_pythonmodule+y} 19374then : 19375 withval=$with_pythonmodule; 19376else $as_nop 19377 withval="no" 19378fi 19379 19380 19381ub_with_pythonmod=no 19382if test x_$withval != x_no; then 19383 ub_with_pythonmod=yes 19384 ub_test_python=yes 19385fi 19386 19387# Check for Python & SWIG only on PyUnbound or PyModule 19388if test x_$ub_test_python != x_no; then 19389 19390 # Check for Python 19391 ub_have_python=no 19392 ac_save_LIBS="$LIBS" 19393 # 19394 # Allow the use of a (user set) custom python version 19395 # 19396 19397 19398 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 19399set dummy python$PYTHON_VERSION; ac_word=$2 19400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19401printf %s "checking for $ac_word... " >&6; } 19402if test ${ac_cv_path_PYTHON+y} 19403then : 19404 printf %s "(cached) " >&6 19405else $as_nop 19406 case $PYTHON in 19407 [\\/]* | ?:[\\/]*) 19408 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 19409 ;; 19410 *) 19411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19412for as_dir in $PATH 19413do 19414 IFS=$as_save_IFS 19415 case $as_dir in #((( 19416 '') as_dir=./ ;; 19417 */) ;; 19418 *) as_dir=$as_dir/ ;; 19419 esac 19420 for ac_exec_ext in '' $ac_executable_extensions; do 19421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19422 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 19423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19424 break 2 19425 fi 19426done 19427 done 19428IFS=$as_save_IFS 19429 19430 ;; 19431esac 19432fi 19433PYTHON=$ac_cv_path_PYTHON 19434if test -n "$PYTHON"; then 19435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 19436printf "%s\n" "$PYTHON" >&6; } 19437else 19438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19439printf "%s\n" "no" >&6; } 19440fi 19441 19442 19443 if test -z "$PYTHON"; then 19444 as_fn_error $? "Cannot find 'python$PYTHON_VERSION' in your system path. You can use the environment variable 'PYTHON_VERSION=version_number' for an explicit version." "$LINENO" 5 19445 PYTHON_VERSION="" 19446 fi 19447 19448 if test -z "$PYTHON_VERSION"; then 19449 PYTHON_VERSION=`$PYTHON -c "import sys; \ 19450 print(sys.version.split()[0])"` 19451 fi 19452 # calculate the version number components. 19453 19454 v="$PYTHON_VERSION" 19455 PYTHON_VERSION_MAJOR=`echo $v | sed 's/[^0-9].*//'` 19456 if test -z "$PYTHON_VERSION_MAJOR"; then PYTHON_VERSION_MAJOR="0"; fi 19457 v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'` 19458 PYTHON_VERSION_MINOR=`echo $v | sed 's/[^0-9].*//'` 19459 if test -z "$PYTHON_VERSION_MINOR"; then PYTHON_VERSION_MINOR="0"; fi 19460 v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'` 19461 PYTHON_VERSION_PATCH=`echo $v | sed 's/[^0-9].*//'` 19462 if test -z "$PYTHON_VERSION_PATCH"; then PYTHON_VERSION_PATCH="0"; fi 19463 19464 19465 # For some systems, sysconfig exists, but has the wrong paths, 19466 # on Debian 10, for python 2.7 and 3.7. So, we check the version, 19467 # and for older versions try distutils.sysconfig first. For newer 19468 # versions>=3.10, where distutils.sysconfig is deprecated, use 19469 # sysconfig first and then attempt the other one. 19470 py_distutils_first="no" 19471 if test $PYTHON_VERSION_MAJOR -lt 3; then 19472 py_distutils_first="yes" 19473 fi 19474 if test $PYTHON_VERSION_MAJOR -eq 3 -a $PYTHON_VERSION_MINOR -lt 10; then 19475 py_distutils_first="yes" 19476 fi 19477 19478 # Check if you have the first module 19479 if test "$py_distutils_first" = "yes"; then m="distutils"; else m="sysconfig"; fi 19480 sysconfig_module="" 19481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the $m Python module" >&5 19482printf %s "checking for the $m Python module... " >&6; } 19483 if ac_modulecheck_result1=`$PYTHON -c "import $m" 2>&1`; then 19484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19485printf "%s\n" "yes" >&6; } 19486 sysconfig_module="$m" 19487 else 19488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19489printf "%s\n" "no" >&6; } 19490 fi 19491 19492 # if not found, try the other one. 19493 if test -z "$sysconfig_module"; then 19494 if test "$py_distutils_first" = "yes"; then m2="sysconfig"; else m2="distutils"; fi 19495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the $m2 Python module" >&5 19496printf %s "checking for the $m2 Python module... " >&6; } 19497 if ac_modulecheck_result2=`$PYTHON -c "import $m2" 2>&1`; then 19498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19499printf "%s\n" "yes" >&6; } 19500 sysconfig_module="$m2" 19501 else 19502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19503printf "%s\n" "no" >&6; } 19504 as_fn_error $? "cannot import Python module \"$m\", or \"$m2\". 19505 Please check your Python installation. The errors are: 19506 $m 19507 $ac_modulecheck_result1 19508 $m2 19509 $ac_modulecheck_result2" "$LINENO" 5 19510 PYTHON_VERSION="" 19511 fi 19512 fi 19513 if test "$sysconfig_module" = "distutils"; then sysconfig_module="distutils.sysconfig"; fi 19514 19515 # 19516 # Check for Python include path 19517 # 19518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 19519printf %s "checking for Python include path... " >&6; } 19520 if test -z "$PYTHON_CPPFLAGS"; then 19521 if test "$sysconfig_module" = "sysconfig"; then 19522 python_path=`$PYTHON -c 'import sysconfig; \ 19523 print(sysconfig.get_path("include"));'` 19524 else 19525 python_path=`$PYTHON -c "import distutils.sysconfig; \ 19526 print(distutils.sysconfig.get_python_inc());"` 19527 fi 19528 if test -n "${python_path}"; then 19529 python_path="-I$python_path" 19530 fi 19531 PYTHON_CPPFLAGS=$python_path 19532 fi 19533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 19534printf "%s\n" "$PYTHON_CPPFLAGS" >&6; } 19535 19536 19537 # 19538 # Check for Python library path 19539 # 19540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 19541printf %s "checking for Python library path... " >&6; } 19542 if test -z "$PYTHON_LDFLAGS"; then 19543 PYTHON_LDFLAGS=`$PYTHON -c "from $sysconfig_module import *; \ 19544 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"` 19545 fi 19546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 19547printf "%s\n" "$PYTHON_LDFLAGS" >&6; } 19548 19549 19550 if test -z "$PYTHON_LIBDIR"; then 19551 PYTHON_LIBDIR=`$PYTHON -c "from $sysconfig_module import *; \ 19552 print(get_config_var('LIBDIR'));"` 19553 fi 19554 19555 # 19556 # Check for site packages 19557 # 19558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 19559printf %s "checking for Python site-packages path... " >&6; } 19560 if test -z "$PYTHON_SITE_PKG"; then 19561 if test "$sysconfig_module" = "sysconfig"; then 19562 PYTHON_SITE_PKG=`$PYTHON -c 'import sysconfig; \ 19563 print(sysconfig.get_path("platlib"));'` 19564 else 19565 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 19566 print(distutils.sysconfig.get_python_lib(1,0));"` 19567 fi 19568 fi 19569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 19570printf "%s\n" "$PYTHON_SITE_PKG" >&6; } 19571 19572 19573 # 19574 # final check to see if everything compiles alright 19575 # 19576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 19577printf %s "checking consistency of all components of python development environment... " >&6; } 19578 ac_ext=c 19579ac_cpp='$CPP $CPPFLAGS' 19580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19582ac_compiler_gnu=$ac_cv_c_compiler_gnu 19583 19584 # save current global flags 19585 ac_save_LIBS="$LIBS" 19586 ac_save_CPPFLAGS="$CPPFLAGS" 19587 19588 LIBS="$LIBS $PYTHON_LDFLAGS" 19589 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 19590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19591/* end confdefs.h. */ 19592 19593 #include <Python.h> 19594 19595int 19596main (void) 19597{ 19598 19599 Py_Initialize(); 19600 19601 ; 19602 return 0; 19603} 19604_ACEOF 19605if ac_fn_c_try_link "$LINENO" 19606then : 19607 pythonexists=yes 19608else $as_nop 19609 pythonexists=no 19610fi 19611rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19612 conftest$ac_exeext conftest.$ac_ext 19613 19614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 19615printf "%s\n" "$pythonexists" >&6; } 19616 19617 if test ! "$pythonexists" = "yes"; then 19618 as_fn_error $? " 19619 Could not link test program to Python. Maybe the main Python library has been 19620 installed in some non-standard library path. If so, pass it to configure, 19621 via the LDFLAGS environment variable. 19622 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 19623 ============================================================================ 19624 ERROR! 19625 You probably have to install the development version of the Python package 19626 for your distribution. The exact name of this package varies among them. 19627 ============================================================================ 19628 " "$LINENO" 5 19629 PYTHON_VERSION="" 19630 fi 19631 ac_ext=c 19632ac_cpp='$CPP $CPPFLAGS' 19633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19635ac_compiler_gnu=$ac_cv_c_compiler_gnu 19636 19637 # turn back to default flags 19638 CPPFLAGS="$ac_save_CPPFLAGS" 19639 LIBS="$ac_save_LIBS" 19640 19641 # 19642 # all done! 19643 # 19644 19645 if test ! -z "$PYTHON_VERSION"; then 19646 badversion="no" 19647 if test "$PYTHON_VERSION_MAJOR" -lt 2; then 19648 badversion="yes" 19649 fi 19650 if test "$PYTHON_VERSION_MAJOR" -eq 2 -a "$PYTHON_VERSION_MINOR" -lt 4; then 19651 badversion="yes" 19652 fi 19653 if test "$badversion" = "yes"; then 19654 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5 19655 fi 19656 19657 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`" 19658 19659 # Have Python 19660 19661printf "%s\n" "#define HAVE_PYTHON 1" >>confdefs.h 19662 19663 if test x_$ub_with_pythonmod != x_no; then 19664 if test -n "$LIBS"; then 19665 LIBS="$PYTHON_LDFLAGS $LIBS" 19666 else 19667 LIBS="$PYTHON_LDFLAGS" 19668 fi 19669 fi 19670 PYTHON_LIBS="$PYTHON_LDFLAGS" 19671 19672 if test -n "$CPPFLAGS"; then 19673 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 19674 else 19675 CPPFLAGS="$PYTHON_CPPFLAGS" 19676 fi 19677 if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then 19678 19679 if test "x$enable_rpath" = xyes; then 19680 if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then 19681 RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR" 19682 fi 19683 fi 19684 19685 fi 19686 ub_have_python=yes 19687 if test -n "$PKG_CONFIG" && \ 19688 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5 19689 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5 19690 ac_status=$? 19691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19692 test $ac_status = 0; }; then 19693 PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}" 19694else 19695 PC_PY_DEPENDENCY="python" 19696fi 19697 19698 19699 # Check for SWIG 19700 ub_have_swig=no 19701 # Check whether --enable-swig-version-check was given. 19702if test ${enable_swig_version_check+y} 19703then : 19704 enableval=$enable_swig_version_check; 19705fi 19706 19707 if test "$enable_swig_version_check" = "yes"; then 19708 19709 # Find path to the "swig" executable. 19710 for ac_prog in swig swig3.0 swig2.0 19711do 19712 # Extract the first word of "$ac_prog", so it can be a program name with args. 19713set dummy $ac_prog; ac_word=$2 19714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19715printf %s "checking for $ac_word... " >&6; } 19716if test ${ac_cv_path_SWIG+y} 19717then : 19718 printf %s "(cached) " >&6 19719else $as_nop 19720 case $SWIG in 19721 [\\/]* | ?:[\\/]*) 19722 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 19723 ;; 19724 *) 19725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19726for as_dir in $PATH 19727do 19728 IFS=$as_save_IFS 19729 case $as_dir in #((( 19730 '') as_dir=./ ;; 19731 */) ;; 19732 *) as_dir=$as_dir/ ;; 19733 esac 19734 for ac_exec_ext in '' $ac_executable_extensions; do 19735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19736 ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext" 19737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19738 break 2 19739 fi 19740done 19741 done 19742IFS=$as_save_IFS 19743 19744 ;; 19745esac 19746fi 19747SWIG=$ac_cv_path_SWIG 19748if test -n "$SWIG"; then 19749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 19750printf "%s\n" "$SWIG" >&6; } 19751else 19752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19753printf "%s\n" "no" >&6; } 19754fi 19755 19756 19757 test -n "$SWIG" && break 19758done 19759 19760 if test -z "$SWIG" ; then 19761 : 19762 elif test -z "2.0.1" ; then 19763 : 19764 else 19765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 19766printf %s "checking SWIG version... " >&6; } 19767 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'` 19768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 19769printf "%s\n" "$swig_version" >&6; } 19770 if test -n "$swig_version" ; then 19771 # Calculate the required version number components 19772 required=2.0.1 19773 required_major=`echo $required | sed 's/[^0-9].*//'` 19774 if test -z "$required_major" ; then 19775 required_major=0 19776 fi 19777 required=`echo $required. | sed 's/[0-9]*[^0-9]//'` 19778 required_minor=`echo $required | sed 's/[^0-9].*//'` 19779 if test -z "$required_minor" ; then 19780 required_minor=0 19781 fi 19782 required=`echo $required. | sed 's/[0-9]*[^0-9]//'` 19783 required_patch=`echo $required | sed 's/[^0-9].*//'` 19784 if test -z "$required_patch" ; then 19785 required_patch=0 19786 fi 19787 # Calculate the available version number components 19788 available=$swig_version 19789 available_major=`echo $available | sed 's/[^0-9].*//'` 19790 if test -z "$available_major" ; then 19791 available_major=0 19792 fi 19793 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 19794 available_minor=`echo $available | sed 's/[^0-9].*//'` 19795 if test -z "$available_minor" ; then 19796 available_minor=0 19797 fi 19798 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 19799 available_patch=`echo $available | sed 's/[^0-9].*//'` 19800 if test -z "$available_patch" ; then 19801 available_patch=0 19802 fi 19803 # Convert the version tuple into a single number for easier comparison. 19804 # Using base 100 should be safe since SWIG internally uses BCD values 19805 # to encode its version number. 19806 required_swig_vernum=`expr $required_major \* 10000 \ 19807 \+ $required_minor \* 100 \+ $required_patch` 19808 available_swig_vernum=`expr $available_major \* 10000 \ 19809 \+ $available_minor \* 100 \+ $available_patch` 19810 19811 if test $available_swig_vernum -lt $required_swig_vernum; then 19812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version." >&5 19813printf "%s\n" "$as_me: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version." >&2;} 19814 SWIG='' 19815 19816 else 19817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 19818printf %s "checking for SWIG library... " >&6; } 19819 SWIG_LIB=`$SWIG -swiglib | tr '\r\n' ' '` 19820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 19821printf "%s\n" "$SWIG_LIB" >&6; } 19822 19823 fi 19824 else 19825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 19826printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;} 19827 SWIG='' 19828 19829 fi 19830 fi 19831 19832 19833 else 19834 19835 # Find path to the "swig" executable. 19836 for ac_prog in swig swig3.0 swig2.0 19837do 19838 # Extract the first word of "$ac_prog", so it can be a program name with args. 19839set dummy $ac_prog; ac_word=$2 19840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19841printf %s "checking for $ac_word... " >&6; } 19842if test ${ac_cv_path_SWIG+y} 19843then : 19844 printf %s "(cached) " >&6 19845else $as_nop 19846 case $SWIG in 19847 [\\/]* | ?:[\\/]*) 19848 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 19849 ;; 19850 *) 19851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19852for as_dir in $PATH 19853do 19854 IFS=$as_save_IFS 19855 case $as_dir in #((( 19856 '') as_dir=./ ;; 19857 */) ;; 19858 *) as_dir=$as_dir/ ;; 19859 esac 19860 for ac_exec_ext in '' $ac_executable_extensions; do 19861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19862 ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext" 19863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19864 break 2 19865 fi 19866done 19867 done 19868IFS=$as_save_IFS 19869 19870 ;; 19871esac 19872fi 19873SWIG=$ac_cv_path_SWIG 19874if test -n "$SWIG"; then 19875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 19876printf "%s\n" "$SWIG" >&6; } 19877else 19878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19879printf "%s\n" "no" >&6; } 19880fi 19881 19882 19883 test -n "$SWIG" && break 19884done 19885 19886 if test -z "$SWIG" ; then 19887 : 19888 elif test -z "" ; then 19889 : 19890 else 19891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 19892printf %s "checking SWIG version... " >&6; } 19893 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'` 19894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 19895printf "%s\n" "$swig_version" >&6; } 19896 if test -n "$swig_version" ; then 19897 # Calculate the required version number components 19898 required= 19899 required_major=`echo $required | sed 's/[^0-9].*//'` 19900 if test -z "$required_major" ; then 19901 required_major=0 19902 fi 19903 required=`echo $required. | sed 's/[0-9]*[^0-9]//'` 19904 required_minor=`echo $required | sed 's/[^0-9].*//'` 19905 if test -z "$required_minor" ; then 19906 required_minor=0 19907 fi 19908 required=`echo $required. | sed 's/[0-9]*[^0-9]//'` 19909 required_patch=`echo $required | sed 's/[^0-9].*//'` 19910 if test -z "$required_patch" ; then 19911 required_patch=0 19912 fi 19913 # Calculate the available version number components 19914 available=$swig_version 19915 available_major=`echo $available | sed 's/[^0-9].*//'` 19916 if test -z "$available_major" ; then 19917 available_major=0 19918 fi 19919 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 19920 available_minor=`echo $available | sed 's/[^0-9].*//'` 19921 if test -z "$available_minor" ; then 19922 available_minor=0 19923 fi 19924 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 19925 available_patch=`echo $available | sed 's/[^0-9].*//'` 19926 if test -z "$available_patch" ; then 19927 available_patch=0 19928 fi 19929 # Convert the version tuple into a single number for easier comparison. 19930 # Using base 100 should be safe since SWIG internally uses BCD values 19931 # to encode its version number. 19932 required_swig_vernum=`expr $required_major \* 10000 \ 19933 \+ $required_minor \* 100 \+ $required_patch` 19934 available_swig_vernum=`expr $available_major \* 10000 \ 19935 \+ $available_minor \* 100 \+ $available_patch` 19936 19937 if test $available_swig_vernum -lt $required_swig_vernum; then 19938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5 19939printf "%s\n" "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;} 19940 SWIG='' 19941 19942 else 19943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 19944printf %s "checking for SWIG library... " >&6; } 19945 SWIG_LIB=`$SWIG -swiglib | tr '\r\n' ' '` 19946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 19947printf "%s\n" "$SWIG_LIB" >&6; } 19948 19949 fi 19950 else 19951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 19952printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;} 19953 SWIG='' 19954 19955 fi 19956 fi 19957 19958 19959 fi 19960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5 19961printf %s "checking SWIG... " >&6; } 19962 if test ! -x "$SWIG"; then 19963 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5 19964 else 19965 19966printf "%s\n" "#define HAVE_SWIG 1" >>confdefs.h 19967 19968 swig="$SWIG" 19969 19970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: present" >&5 19971printf "%s\n" "present" >&6; } 19972 19973 # If have Python & SWIG 19974 # Declare PythonMod 19975 if test x_$ub_with_pythonmod != x_no; then 19976 19977printf "%s\n" "#define WITH_PYTHONMODULE 1" >>confdefs.h 19978 19979 WITH_PYTHONMODULE=yes 19980 19981 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo" 19982 19983 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h' 19984 19985 PYTHONMOD_INSTALL=pythonmod-install 19986 19987 PYTHONMOD_UNINSTALL=pythonmod-uninstall 19988 19989 fi 19990 19991 # Declare PyUnbound 19992 if test x_$ub_with_pyunbound != x_no; then 19993 19994printf "%s\n" "#define WITH_PYUNBOUND 1" >>confdefs.h 19995 19996 WITH_PYUNBOUND=yes 19997 19998 PYUNBOUND_OBJ="libunbound_wrap.lo" 19999 20000 PYUNBOUND_TARGET="_unbound.la" 20001 20002 PYUNBOUND_INSTALL=pyunbound-install 20003 20004 PYUNBOUND_UNINSTALL=pyunbound-uninstall 20005 20006 fi 20007 fi 20008 else 20009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5 20010printf "%s\n" "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; } 20011 ub_with_pyunbound=no 20012 ub_with_pythonmod=no 20013 fi 20014fi 20015 20016if test "`uname`" = "NetBSD"; then 20017 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_' 20018 20019fi 20020 20021if test "`uname`" = "Linux"; then 20022 # splint cannot parse modern c99 header files 20023 GCC_DOCKER_LINTFLAGS='-syntax' 20024 20025fi 20026CONFIG_DATE=`date +%Y%m%d` 20027 20028 20029# Checks for libraries. 20030 20031# libnss 20032USE_NSS="no" 20033 20034# Check whether --with-nss was given. 20035if test ${with_nss+y} 20036then : 20037 withval=$with_nss; 20038 USE_NSS="yes" 20039 20040printf "%s\n" "#define HAVE_NSS 1" >>confdefs.h 20041 20042 if test "$withval" != "" -a "$withval" != "yes"; then 20043 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3" 20044 LDFLAGS="$LDFLAGS -L$withval/lib" 20045 20046 if test "x$enable_rpath" = xyes; then 20047 if echo "$withval/lib" | grep "^/" >/dev/null; then 20048 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 20049 fi 20050 fi 20051 20052 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" 20053 else 20054 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" 20055 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" 20056 fi 20057 LIBS="$LIBS -lnss3 -lnspr4" 20058 SSLLIB="" 20059 PC_CRYPTO_DEPENDENCY="nss nspr" 20060 20061 20062 20063fi 20064 20065 20066# libnettle 20067USE_NETTLE="no" 20068 20069# Check whether --with-nettle was given. 20070if test ${with_nettle+y} 20071then : 20072 withval=$with_nettle; 20073 USE_NETTLE="yes" 20074 20075printf "%s\n" "#define HAVE_NETTLE 1" >>confdefs.h 20076 20077 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default 20078" 20079if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes 20080then : 20081 printf "%s\n" "#define HAVE_NETTLE_DSA_COMPAT_H 1" >>confdefs.h 20082 20083fi 20084 20085 if test "$withval" != "" -a "$withval" != "yes"; then 20086 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle" 20087 LDFLAGS="$LDFLAGS -L$withval/lib" 20088 20089 if test "x$enable_rpath" = xyes; then 20090 if echo "$withval/lib" | grep "^/" >/dev/null; then 20091 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib" 20092 fi 20093 fi 20094 20095 else 20096 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle" 20097 fi 20098 LIBS="$LIBS -lhogweed -lnettle -lgmp" 20099 SSLLIB="" 20100 PC_CRYPTO_DEPENDENCY="hogweed nettle" 20101 20102 20103 20104fi 20105 20106 20107# openssl 20108if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 20109 20110 20111# Check whether --with-ssl was given. 20112if test ${with_ssl+y} 20113then : 20114 withval=$with_ssl; 20115 20116else $as_nop 20117 20118 withval="yes" 20119 20120fi 20121 20122 if test x_$withval = x_no; then 20123 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5 20124 fi 20125 20126 withval=$withval 20127 if test x_$withval != x_no; then 20128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 20129printf %s "checking for SSL... " >&6; } 20130 if test -n "$withval"; then 20131 if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then 20132 ssldir="$withval" 20133 found_ssl="yes" 20134 withval="" 20135 ssldir_include="$ssldir" 20136 ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'` 20137 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 20138 : # found here 20139 else 20140 ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'` 20141 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then 20142 : # found here 20143 else 20144 as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5 20145 fi 20146 fi 20147 fi 20148 fi 20149 if test x_$withval = x_ -o x_$withval = x_yes; then 20150 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr" 20151 fi 20152 for dir in $withval; do 20153 ssldir="$dir" 20154 if test -f "$dir/include/openssl/ssl.h"; then 20155 found_ssl="yes" 20156 ssldir_include="$ssldir/include" 20157 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then 20158 ssldir_lib="$ssldir/lib64" 20159 else 20160 ssldir_lib="$ssldir/lib" 20161 fi 20162 break; 20163 fi 20164 done 20165 if test x_$found_ssl != x_yes; then 20166 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5 20167 else 20168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5 20169printf "%s\n" "found in $ssldir" >&6; } 20170 20171printf "%s\n" "#define HAVE_SSL /**/" >>confdefs.h 20172 20173 HAVE_SSL=yes 20174 if test "$ssldir" != "/usr"; then 20175 CPPFLAGS="$CPPFLAGS -I$ssldir_include" 20176 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir_include" 20177 LDFLAGS="$LDFLAGS -L$ssldir_lib" 20178 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir_lib" 20179 20180 if test "x$enable_rpath" = xyes; then 20181 if echo "$ssldir_lib" | grep "^/" >/dev/null; then 20182 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir_lib" 20183 fi 20184 fi 20185 20186 fi 20187 20188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5 20189printf %s "checking for EVP_sha256 in -lcrypto... " >&6; } 20190 LIBS="$LIBS -lcrypto" 20191 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto" 20192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20193/* end confdefs.h. */ 20194 20195int 20196main (void) 20197{ 20198 20199 int EVP_sha256(void); 20200 (void)EVP_sha256(); 20201 20202 ; 20203 return 0; 20204} 20205_ACEOF 20206if ac_fn_c_try_link "$LINENO" 20207then : 20208 20209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20210printf "%s\n" "yes" >&6; } 20211 20212printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 20213 20214 20215else $as_nop 20216 20217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20218printf "%s\n" "no" >&6; } 20219 # check if -lwsock32 or -lgdi32 are needed. 20220 BAKLIBS="$LIBS" 20221 BAKSSLLIBS="$LIBSSL_LIBS" 20222 LIBS="$LIBS -lgdi32 -lws2_32" 20223 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32" 20224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5 20225printf %s "checking if -lcrypto needs -lgdi32... " >&6; } 20226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20227/* end confdefs.h. */ 20228 20229int 20230main (void) 20231{ 20232 20233 int EVP_sha256(void); 20234 (void)EVP_sha256(); 20235 20236 ; 20237 return 0; 20238} 20239_ACEOF 20240if ac_fn_c_try_link "$LINENO" 20241then : 20242 20243 20244printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 20245 20246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20247printf "%s\n" "yes" >&6; } 20248 20249else $as_nop 20250 20251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20252printf "%s\n" "no" >&6; } 20253 LIBS="$BAKLIBS" 20254 LIBSSL_LIBS="$BAKSSLLIBS" 20255 20256 LIBS="$LIBS -lgdi32 -lws2_32 -lcrypt32" 20257 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32 -lcrypt32" 20258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32" >&5 20259printf %s "checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32... " >&6; } 20260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20261/* end confdefs.h. */ 20262 20263int 20264main (void) 20265{ 20266 20267 int EVP_sha256(void); 20268 (void)EVP_sha256(); 20269 20270 ; 20271 return 0; 20272} 20273_ACEOF 20274if ac_fn_c_try_link "$LINENO" 20275then : 20276 20277 20278printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 20279 20280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20281printf "%s\n" "yes" >&6; } 20282 20283else $as_nop 20284 20285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20286printf "%s\n" "no" >&6; } 20287 LIBS="$BAKLIBS" 20288 LIBSSL_LIBS="$BAKSSLLIBS" 20289 20290 LIBS="$LIBS -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a" 20291 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a" 20292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a" >&5 20293printf %s "checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a... " >&6; } 20294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20295/* end confdefs.h. */ 20296 20297int 20298main (void) 20299{ 20300 20301 int EVP_sha256(void); 20302 (void)EVP_sha256(); 20303 20304 ; 20305 return 0; 20306} 20307_ACEOF 20308if ac_fn_c_try_link "$LINENO" 20309then : 20310 20311 20312printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 20313 20314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20315printf "%s\n" "yes" >&6; } 20316 20317else $as_nop 20318 20319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20320printf "%s\n" "no" >&6; } 20321 LIBS="$BAKLIBS" 20322 LIBSSL_LIBS="$BAKSSLLIBS" 20323 20324 LIBS="$LIBS -ldl" 20325 LIBSSL_LIBS="$LIBSSL_LIBS -ldl" 20326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5 20327printf %s "checking if -lcrypto needs -ldl... " >&6; } 20328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20329/* end confdefs.h. */ 20330 20331int 20332main (void) 20333{ 20334 20335 int EVP_sha256(void); 20336 (void)EVP_sha256(); 20337 20338 ; 20339 return 0; 20340} 20341_ACEOF 20342if ac_fn_c_try_link "$LINENO" 20343then : 20344 20345 20346printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 20347 20348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20349printf "%s\n" "yes" >&6; } 20350 20351else $as_nop 20352 20353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20354printf "%s\n" "no" >&6; } 20355 LIBS="$BAKLIBS" 20356 LIBSSL_LIBS="$BAKSSLLIBS" 20357 LIBS="$LIBS -ldl -pthread" 20358 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread" 20359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5 20360printf %s "checking if -lcrypto needs -ldl -pthread... " >&6; } 20361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20362/* end confdefs.h. */ 20363 20364int 20365main (void) 20366{ 20367 20368 int EVP_sha256(void); 20369 (void)EVP_sha256(); 20370 20371 ; 20372 return 0; 20373} 20374_ACEOF 20375if ac_fn_c_try_link "$LINENO" 20376then : 20377 20378 20379printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 20380 20381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20382printf "%s\n" "yes" >&6; } 20383 20384else $as_nop 20385 20386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20387printf "%s\n" "no" >&6; } 20388 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5 20389 20390fi 20391rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20392 conftest$ac_exeext conftest.$ac_ext 20393 20394fi 20395rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20396 conftest$ac_exeext conftest.$ac_ext 20397 20398fi 20399rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20400 conftest$ac_exeext conftest.$ac_ext 20401 20402fi 20403rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20404 conftest$ac_exeext conftest.$ac_ext 20405 20406fi 20407rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20408 conftest$ac_exeext conftest.$ac_ext 20409 20410fi 20411rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20412 conftest$ac_exeext conftest.$ac_ext 20413 fi 20414 20415 20416 fi 20417ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 20418" 20419if test "x$ac_cv_header_openssl_ssl_h" = xyes 20420then : 20421 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 20422 20423fi 20424 20425ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default 20426" 20427if test "x$ac_cv_header_openssl_err_h" = xyes 20428then : 20429 printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h 20430 20431fi 20432 20433ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default 20434" 20435if test "x$ac_cv_header_openssl_rand_h" = xyes 20436then : 20437 printf "%s\n" "#define HAVE_OPENSSL_RAND_H 1" >>confdefs.h 20438 20439fi 20440 20441 20442 20443 20444# check if libssl needs libdl 20445BAKLIBS="$LIBS" 20446LIBS="-lssl $LIBS" 20447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5 20448printf %s "checking if libssl needs libdl... " >&6; } 20449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20450/* end confdefs.h. */ 20451 20452/* Override any GCC internal prototype to avoid an error. 20453 Use char because int might match the return type of a GCC 20454 builtin and then its argument prototype would still apply. */ 20455char SSL_CTX_new (); 20456int 20457main (void) 20458{ 20459return SSL_CTX_new (); 20460 ; 20461 return 0; 20462} 20463_ACEOF 20464if ac_fn_c_try_link "$LINENO" 20465then : 20466 20467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20468printf "%s\n" "no" >&6; } 20469 LIBS="$BAKLIBS" 20470 20471else $as_nop 20472 20473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20474printf "%s\n" "yes" >&6; } 20475 LIBS="$BAKLIBS" 20476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 20477printf %s "checking for library containing dlopen... " >&6; } 20478if test ${ac_cv_search_dlopen+y} 20479then : 20480 printf %s "(cached) " >&6 20481else $as_nop 20482 ac_func_search_save_LIBS=$LIBS 20483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20484/* end confdefs.h. */ 20485 20486/* Override any GCC internal prototype to avoid an error. 20487 Use char because int might match the return type of a GCC 20488 builtin and then its argument prototype would still apply. */ 20489char dlopen (); 20490int 20491main (void) 20492{ 20493return dlopen (); 20494 ; 20495 return 0; 20496} 20497_ACEOF 20498for ac_lib in '' dl 20499do 20500 if test -z "$ac_lib"; then 20501 ac_res="none required" 20502 else 20503 ac_res=-l$ac_lib 20504 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20505 fi 20506 if ac_fn_c_try_link "$LINENO" 20507then : 20508 ac_cv_search_dlopen=$ac_res 20509fi 20510rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20511 conftest$ac_exeext 20512 if test ${ac_cv_search_dlopen+y} 20513then : 20514 break 20515fi 20516done 20517if test ${ac_cv_search_dlopen+y} 20518then : 20519 20520else $as_nop 20521 ac_cv_search_dlopen=no 20522fi 20523rm conftest.$ac_ext 20524LIBS=$ac_func_search_save_LIBS 20525fi 20526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 20527printf "%s\n" "$ac_cv_search_dlopen" >&6; } 20528ac_res=$ac_cv_search_dlopen 20529if test "$ac_res" != no 20530then : 20531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20532 20533fi 20534 20535 20536fi 20537rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20538 conftest$ac_exeext conftest.$ac_ext 20539SSLLIB="-lssl" 20540 20541PC_CRYPTO_DEPENDENCY="" 20542 20543 20544# check if -lcrypt32 is needed because CAPIENG needs that. (on windows) 20545BAKLIBS="$LIBS" 20546LIBS="-lssl $LIBS" 20547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5 20548printf %s "checking if libssl needs -lcrypt32... " >&6; } 20549cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20550/* end confdefs.h. */ 20551 20552int 20553main (void) 20554{ 20555 20556 int EVP_sha256(void); 20557 (void)EVP_sha256(); 20558 20559 ; 20560 return 0; 20561} 20562_ACEOF 20563if ac_fn_c_try_link "$LINENO" 20564then : 20565 20566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20567printf "%s\n" "no" >&6; } 20568 LIBS="$BAKLIBS" 20569 20570else $as_nop 20571 20572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20573printf "%s\n" "yes" >&6; } 20574 LIBS="$BAKLIBS" 20575 LIBS="$LIBS -lcrypt32" 20576 20577fi 20578rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20579 conftest$ac_exeext conftest.$ac_ext 20580 20581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5 20582printf %s "checking for LibreSSL... " >&6; } 20583if grep VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then 20584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20585printf "%s\n" "yes" >&6; } 20586 20587printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h 20588 20589 # libressl provides these compat functions, but they may also be 20590 # declared by the OS in libc. See if they have been declared. 20591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 20592printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 20593if test ${ac_cv_c_undeclared_builtin_options+y} 20594then : 20595 printf %s "(cached) " >&6 20596else $as_nop 20597 ac_save_CFLAGS=$CFLAGS 20598 ac_cv_c_undeclared_builtin_options='cannot detect' 20599 for ac_arg in '' -fno-builtin; do 20600 CFLAGS="$ac_save_CFLAGS $ac_arg" 20601 # This test program should *not* compile successfully. 20602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20603/* end confdefs.h. */ 20604 20605int 20606main (void) 20607{ 20608(void) strchr; 20609 ; 20610 return 0; 20611} 20612_ACEOF 20613if ac_fn_c_try_compile "$LINENO" 20614then : 20615 20616else $as_nop 20617 # This test program should compile successfully. 20618 # No library function is consistently available on 20619 # freestanding implementations, so test against a dummy 20620 # declaration. Include always-available headers on the 20621 # off chance that they somehow elicit warnings. 20622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20623/* end confdefs.h. */ 20624#include <float.h> 20625#include <limits.h> 20626#include <stdarg.h> 20627#include <stddef.h> 20628extern void ac_decl (int, char *); 20629 20630int 20631main (void) 20632{ 20633(void) ac_decl (0, (char *) 0); 20634 (void) ac_decl; 20635 20636 ; 20637 return 0; 20638} 20639_ACEOF 20640if ac_fn_c_try_compile "$LINENO" 20641then : 20642 if test x"$ac_arg" = x 20643then : 20644 ac_cv_c_undeclared_builtin_options='none needed' 20645else $as_nop 20646 ac_cv_c_undeclared_builtin_options=$ac_arg 20647fi 20648 break 20649fi 20650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20651fi 20652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20653 done 20654 CFLAGS=$ac_save_CFLAGS 20655 20656fi 20657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 20658printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 20659 case $ac_cv_c_undeclared_builtin_options in #( 20660 'cannot detect') : 20661 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20662printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20663as_fn_error $? "cannot make $CC report undeclared builtins 20664See \`config.log' for more details" "$LINENO" 5; } ;; #( 20665 'none needed') : 20666 ac_c_undeclared_builtin_options='' ;; #( 20667 *) : 20668 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 20669esac 20670 20671ac_fn_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 20672if test "x$ac_cv_have_decl_strlcpy" = xyes 20673then : 20674 ac_have_decl=1 20675else $as_nop 20676 ac_have_decl=0 20677fi 20678printf "%s\n" "#define HAVE_DECL_STRLCPY $ac_have_decl" >>confdefs.h 20679ac_fn_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 20680if test "x$ac_cv_have_decl_strlcat" = xyes 20681then : 20682 ac_have_decl=1 20683else $as_nop 20684 ac_have_decl=0 20685fi 20686printf "%s\n" "#define HAVE_DECL_STRLCAT $ac_have_decl" >>confdefs.h 20687ac_fn_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 20688if test "x$ac_cv_have_decl_arc4random" = xyes 20689then : 20690 ac_have_decl=1 20691else $as_nop 20692 ac_have_decl=0 20693fi 20694printf "%s\n" "#define HAVE_DECL_ARC4RANDOM $ac_have_decl" >>confdefs.h 20695ac_fn_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 20696if test "x$ac_cv_have_decl_arc4random_uniform" = xyes 20697then : 20698 ac_have_decl=1 20699else $as_nop 20700 ac_have_decl=0 20701fi 20702printf "%s\n" "#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl" >>confdefs.h 20703 20704else 20705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20706printf "%s\n" "no" >&6; } 20707fi 20708ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default 20709" 20710if test "x$ac_cv_header_openssl_conf_h" = xyes 20711then : 20712 printf "%s\n" "#define HAVE_OPENSSL_CONF_H 1" >>confdefs.h 20713 20714fi 20715ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default 20716" 20717if test "x$ac_cv_header_openssl_engine_h" = xyes 20718then : 20719 printf "%s\n" "#define HAVE_OPENSSL_ENGINE_H 1" >>confdefs.h 20720 20721fi 20722ac_fn_c_check_header_compile "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default 20723" 20724if test "x$ac_cv_header_openssl_bn_h" = xyes 20725then : 20726 printf "%s\n" "#define HAVE_OPENSSL_BN_H 1" >>confdefs.h 20727 20728fi 20729ac_fn_c_check_header_compile "$LINENO" "openssl/dh.h" "ac_cv_header_openssl_dh_h" "$ac_includes_default 20730" 20731if test "x$ac_cv_header_openssl_dh_h" = xyes 20732then : 20733 printf "%s\n" "#define HAVE_OPENSSL_DH_H 1" >>confdefs.h 20734 20735fi 20736ac_fn_c_check_header_compile "$LINENO" "openssl/dsa.h" "ac_cv_header_openssl_dsa_h" "$ac_includes_default 20737" 20738if test "x$ac_cv_header_openssl_dsa_h" = xyes 20739then : 20740 printf "%s\n" "#define HAVE_OPENSSL_DSA_H 1" >>confdefs.h 20741 20742fi 20743ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default 20744" 20745if test "x$ac_cv_header_openssl_rsa_h" = xyes 20746then : 20747 printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h 20748 20749fi 20750ac_fn_c_check_header_compile "$LINENO" "openssl/core_names.h" "ac_cv_header_openssl_core_names_h" "$ac_includes_default 20751" 20752if test "x$ac_cv_header_openssl_core_names_h" = xyes 20753then : 20754 printf "%s\n" "#define HAVE_OPENSSL_CORE_NAMES_H 1" >>confdefs.h 20755 20756fi 20757ac_fn_c_check_header_compile "$LINENO" "openssl/param_build.h" "ac_cv_header_openssl_param_build_h" "$ac_includes_default 20758" 20759if test "x$ac_cv_header_openssl_param_build_h" = xyes 20760then : 20761 printf "%s\n" "#define HAVE_OPENSSL_PARAM_BUILD_H 1" >>confdefs.h 20762 20763fi 20764 20765ac_fn_c_check_func "$LINENO" "OPENSSL_config" "ac_cv_func_OPENSSL_config" 20766if test "x$ac_cv_func_OPENSSL_config" = xyes 20767then : 20768 printf "%s\n" "#define HAVE_OPENSSL_CONFIG 1" >>confdefs.h 20769 20770fi 20771ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1" 20772if test "x$ac_cv_func_EVP_sha1" = xyes 20773then : 20774 printf "%s\n" "#define HAVE_EVP_SHA1 1" >>confdefs.h 20775 20776fi 20777ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256" 20778if test "x$ac_cv_func_EVP_sha256" = xyes 20779then : 20780 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h 20781 20782fi 20783ac_fn_c_check_func "$LINENO" "EVP_sha512" "ac_cv_func_EVP_sha512" 20784if test "x$ac_cv_func_EVP_sha512" = xyes 20785then : 20786 printf "%s\n" "#define HAVE_EVP_SHA512 1" >>confdefs.h 20787 20788fi 20789ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode" 20790if test "x$ac_cv_func_FIPS_mode" = xyes 20791then : 20792 printf "%s\n" "#define HAVE_FIPS_MODE 1" >>confdefs.h 20793 20794fi 20795ac_fn_c_check_func "$LINENO" "EVP_default_properties_is_fips_enabled" "ac_cv_func_EVP_default_properties_is_fips_enabled" 20796if test "x$ac_cv_func_EVP_default_properties_is_fips_enabled" = xyes 20797then : 20798 printf "%s\n" "#define HAVE_EVP_DEFAULT_PROPERTIES_IS_FIPS_ENABLED 1" >>confdefs.h 20799 20800fi 20801ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_new" "ac_cv_func_EVP_MD_CTX_new" 20802if test "x$ac_cv_func_EVP_MD_CTX_new" = xyes 20803then : 20804 printf "%s\n" "#define HAVE_EVP_MD_CTX_NEW 1" >>confdefs.h 20805 20806fi 20807ac_fn_c_check_func "$LINENO" "OpenSSL_add_all_digests" "ac_cv_func_OpenSSL_add_all_digests" 20808if test "x$ac_cv_func_OpenSSL_add_all_digests" = xyes 20809then : 20810 printf "%s\n" "#define HAVE_OPENSSL_ADD_ALL_DIGESTS 1" >>confdefs.h 20811 20812fi 20813ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto" 20814if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes 20815then : 20816 printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h 20817 20818fi 20819ac_fn_c_check_func "$LINENO" "EVP_cleanup" "ac_cv_func_EVP_cleanup" 20820if test "x$ac_cv_func_EVP_cleanup" = xyes 20821then : 20822 printf "%s\n" "#define HAVE_EVP_CLEANUP 1" >>confdefs.h 20823 20824fi 20825ac_fn_c_check_func "$LINENO" "ENGINE_cleanup" "ac_cv_func_ENGINE_cleanup" 20826if test "x$ac_cv_func_ENGINE_cleanup" = xyes 20827then : 20828 printf "%s\n" "#define HAVE_ENGINE_CLEANUP 1" >>confdefs.h 20829 20830fi 20831ac_fn_c_check_func "$LINENO" "ERR_load_crypto_strings" "ac_cv_func_ERR_load_crypto_strings" 20832if test "x$ac_cv_func_ERR_load_crypto_strings" = xyes 20833then : 20834 printf "%s\n" "#define HAVE_ERR_LOAD_CRYPTO_STRINGS 1" >>confdefs.h 20835 20836fi 20837ac_fn_c_check_func "$LINENO" "CRYPTO_cleanup_all_ex_data" "ac_cv_func_CRYPTO_cleanup_all_ex_data" 20838if test "x$ac_cv_func_CRYPTO_cleanup_all_ex_data" = xyes 20839then : 20840 printf "%s\n" "#define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1" >>confdefs.h 20841 20842fi 20843ac_fn_c_check_func "$LINENO" "ERR_free_strings" "ac_cv_func_ERR_free_strings" 20844if test "x$ac_cv_func_ERR_free_strings" = xyes 20845then : 20846 printf "%s\n" "#define HAVE_ERR_FREE_STRINGS 1" >>confdefs.h 20847 20848fi 20849ac_fn_c_check_func "$LINENO" "RAND_cleanup" "ac_cv_func_RAND_cleanup" 20850if test "x$ac_cv_func_RAND_cleanup" = xyes 20851then : 20852 printf "%s\n" "#define HAVE_RAND_CLEANUP 1" >>confdefs.h 20853 20854fi 20855ac_fn_c_check_func "$LINENO" "DSA_SIG_set0" "ac_cv_func_DSA_SIG_set0" 20856if test "x$ac_cv_func_DSA_SIG_set0" = xyes 20857then : 20858 printf "%s\n" "#define HAVE_DSA_SIG_SET0 1" >>confdefs.h 20859 20860fi 20861ac_fn_c_check_func "$LINENO" "EVP_dss1" "ac_cv_func_EVP_dss1" 20862if test "x$ac_cv_func_EVP_dss1" = xyes 20863then : 20864 printf "%s\n" "#define HAVE_EVP_DSS1 1" >>confdefs.h 20865 20866fi 20867ac_fn_c_check_func "$LINENO" "EVP_DigestVerify" "ac_cv_func_EVP_DigestVerify" 20868if test "x$ac_cv_func_EVP_DigestVerify" = xyes 20869then : 20870 printf "%s\n" "#define HAVE_EVP_DIGESTVERIFY 1" >>confdefs.h 20871 20872fi 20873ac_fn_c_check_func "$LINENO" "EVP_aes_256_cbc" "ac_cv_func_EVP_aes_256_cbc" 20874if test "x$ac_cv_func_EVP_aes_256_cbc" = xyes 20875then : 20876 printf "%s\n" "#define HAVE_EVP_AES_256_CBC 1" >>confdefs.h 20877 20878fi 20879ac_fn_c_check_func "$LINENO" "EVP_EncryptInit_ex" "ac_cv_func_EVP_EncryptInit_ex" 20880if test "x$ac_cv_func_EVP_EncryptInit_ex" = xyes 20881then : 20882 printf "%s\n" "#define HAVE_EVP_ENCRYPTINIT_EX 1" >>confdefs.h 20883 20884fi 20885ac_fn_c_check_func "$LINENO" "HMAC_Init_ex" "ac_cv_func_HMAC_Init_ex" 20886if test "x$ac_cv_func_HMAC_Init_ex" = xyes 20887then : 20888 printf "%s\n" "#define HAVE_HMAC_INIT_EX 1" >>confdefs.h 20889 20890fi 20891ac_fn_c_check_func "$LINENO" "CRYPTO_THREADID_set_callback" "ac_cv_func_CRYPTO_THREADID_set_callback" 20892if test "x$ac_cv_func_CRYPTO_THREADID_set_callback" = xyes 20893then : 20894 printf "%s\n" "#define HAVE_CRYPTO_THREADID_SET_CALLBACK 1" >>confdefs.h 20895 20896fi 20897ac_fn_c_check_func "$LINENO" "EVP_MAC_CTX_set_params" "ac_cv_func_EVP_MAC_CTX_set_params" 20898if test "x$ac_cv_func_EVP_MAC_CTX_set_params" = xyes 20899then : 20900 printf "%s\n" "#define HAVE_EVP_MAC_CTX_SET_PARAMS 1" >>confdefs.h 20901 20902fi 20903ac_fn_c_check_func "$LINENO" "OSSL_PARAM_BLD_new" "ac_cv_func_OSSL_PARAM_BLD_new" 20904if test "x$ac_cv_func_OSSL_PARAM_BLD_new" = xyes 20905then : 20906 printf "%s\n" "#define HAVE_OSSL_PARAM_BLD_NEW 1" >>confdefs.h 20907 20908fi 20909ac_fn_c_check_func "$LINENO" "BIO_set_callback_ex" "ac_cv_func_BIO_set_callback_ex" 20910if test "x$ac_cv_func_BIO_set_callback_ex" = xyes 20911then : 20912 printf "%s\n" "#define HAVE_BIO_SET_CALLBACK_EX 1" >>confdefs.h 20913 20914fi 20915ac_fn_c_check_func "$LINENO" "SSL_CTX_set_tmp_ecdh" "ac_cv_func_SSL_CTX_set_tmp_ecdh" 20916if test "x$ac_cv_func_SSL_CTX_set_tmp_ecdh" = xyes 20917then : 20918 printf "%s\n" "#define HAVE_SSL_CTX_SET_TMP_ECDH 1" >>confdefs.h 20919 20920fi 20921 20922 20923# these check_funcs need -lssl 20924BAKLIBS="$LIBS" 20925LIBS="-lssl $LIBS" 20926ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl" 20927if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes 20928then : 20929 printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h 20930 20931fi 20932ac_fn_c_check_func "$LINENO" "SSL_CTX_set_security_level" "ac_cv_func_SSL_CTX_set_security_level" 20933if test "x$ac_cv_func_SSL_CTX_set_security_level" = xyes 20934then : 20935 printf "%s\n" "#define HAVE_SSL_CTX_SET_SECURITY_LEVEL 1" >>confdefs.h 20936 20937fi 20938ac_fn_c_check_func "$LINENO" "SSL_set1_host" "ac_cv_func_SSL_set1_host" 20939if test "x$ac_cv_func_SSL_set1_host" = xyes 20940then : 20941 printf "%s\n" "#define HAVE_SSL_SET1_HOST 1" >>confdefs.h 20942 20943fi 20944ac_fn_c_check_func "$LINENO" "SSL_get0_peername" "ac_cv_func_SSL_get0_peername" 20945if test "x$ac_cv_func_SSL_get0_peername" = xyes 20946then : 20947 printf "%s\n" "#define HAVE_SSL_GET0_PEERNAME 1" >>confdefs.h 20948 20949fi 20950ac_fn_c_check_func "$LINENO" "X509_VERIFY_PARAM_set1_host" "ac_cv_func_X509_VERIFY_PARAM_set1_host" 20951if test "x$ac_cv_func_X509_VERIFY_PARAM_set1_host" = xyes 20952then : 20953 printf "%s\n" "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h 20954 20955fi 20956ac_fn_c_check_func "$LINENO" "SSL_CTX_set_ciphersuites" "ac_cv_func_SSL_CTX_set_ciphersuites" 20957if test "x$ac_cv_func_SSL_CTX_set_ciphersuites" = xyes 20958then : 20959 printf "%s\n" "#define HAVE_SSL_CTX_SET_CIPHERSUITES 1" >>confdefs.h 20960 20961fi 20962ac_fn_c_check_func "$LINENO" "SSL_CTX_set_tlsext_ticket_key_evp_cb" "ac_cv_func_SSL_CTX_set_tlsext_ticket_key_evp_cb" 20963if test "x$ac_cv_func_SSL_CTX_set_tlsext_ticket_key_evp_cb" = xyes 20964then : 20965 printf "%s\n" "#define HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB 1" >>confdefs.h 20966 20967fi 20968ac_fn_c_check_func "$LINENO" "SSL_CTX_set_alpn_select_cb" "ac_cv_func_SSL_CTX_set_alpn_select_cb" 20969if test "x$ac_cv_func_SSL_CTX_set_alpn_select_cb" = xyes 20970then : 20971 printf "%s\n" "#define HAVE_SSL_CTX_SET_ALPN_SELECT_CB 1" >>confdefs.h 20972 20973fi 20974ac_fn_c_check_func "$LINENO" "SSL_get0_alpn_selected" "ac_cv_func_SSL_get0_alpn_selected" 20975if test "x$ac_cv_func_SSL_get0_alpn_selected" = xyes 20976then : 20977 printf "%s\n" "#define HAVE_SSL_GET0_ALPN_SELECTED 1" >>confdefs.h 20978 20979fi 20980ac_fn_c_check_func "$LINENO" "SSL_CTX_set_alpn_protos" "ac_cv_func_SSL_CTX_set_alpn_protos" 20981if test "x$ac_cv_func_SSL_CTX_set_alpn_protos" = xyes 20982then : 20983 printf "%s\n" "#define HAVE_SSL_CTX_SET_ALPN_PROTOS 1" >>confdefs.h 20984 20985fi 20986ac_fn_c_check_func "$LINENO" "SSL_get1_peer_certificate" "ac_cv_func_SSL_get1_peer_certificate" 20987if test "x$ac_cv_func_SSL_get1_peer_certificate" = xyes 20988then : 20989 printf "%s\n" "#define HAVE_SSL_GET1_PEER_CERTIFICATE 1" >>confdefs.h 20990 20991fi 20992 20993LIBS="$BAKLIBS" 20994 20995ac_fn_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" " 20996$ac_includes_default 20997#ifdef HAVE_OPENSSL_ERR_H 20998#include <openssl/err.h> 20999#endif 21000 21001#ifdef HAVE_OPENSSL_RAND_H 21002#include <openssl/rand.h> 21003#endif 21004 21005#ifdef HAVE_OPENSSL_CONF_H 21006#include <openssl/conf.h> 21007#endif 21008 21009#ifdef HAVE_OPENSSL_ENGINE_H 21010#include <openssl/engine.h> 21011#endif 21012#include <openssl/ssl.h> 21013#include <openssl/evp.h> 21014 21015" "$ac_c_undeclared_builtin_options" "CFLAGS" 21016if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes 21017then : 21018 ac_have_decl=1 21019else $as_nop 21020 ac_have_decl=0 21021fi 21022printf "%s\n" "#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl" >>confdefs.h 21023ac_fn_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" " 21024$ac_includes_default 21025#ifdef HAVE_OPENSSL_ERR_H 21026#include <openssl/err.h> 21027#endif 21028 21029#ifdef HAVE_OPENSSL_RAND_H 21030#include <openssl/rand.h> 21031#endif 21032 21033#ifdef HAVE_OPENSSL_CONF_H 21034#include <openssl/conf.h> 21035#endif 21036 21037#ifdef HAVE_OPENSSL_ENGINE_H 21038#include <openssl/engine.h> 21039#endif 21040#include <openssl/ssl.h> 21041#include <openssl/evp.h> 21042 21043" "$ac_c_undeclared_builtin_options" "CFLAGS" 21044if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes 21045then : 21046 ac_have_decl=1 21047else $as_nop 21048 ac_have_decl=0 21049fi 21050printf "%s\n" "#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl" >>confdefs.h 21051ac_fn_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" " 21052$ac_includes_default 21053#ifdef HAVE_OPENSSL_ERR_H 21054#include <openssl/err.h> 21055#endif 21056 21057#ifdef HAVE_OPENSSL_RAND_H 21058#include <openssl/rand.h> 21059#endif 21060 21061#ifdef HAVE_OPENSSL_CONF_H 21062#include <openssl/conf.h> 21063#endif 21064 21065#ifdef HAVE_OPENSSL_ENGINE_H 21066#include <openssl/engine.h> 21067#endif 21068#include <openssl/ssl.h> 21069#include <openssl/evp.h> 21070 21071" "$ac_c_undeclared_builtin_options" "CFLAGS" 21072if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes 21073then : 21074 ac_have_decl=1 21075else $as_nop 21076 ac_have_decl=0 21077fi 21078printf "%s\n" "#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl" >>confdefs.h 21079 21080 21081if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then 21082# check function return type. 21083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5 21084printf %s "checking the return type of HMAC_Init_ex... " >&6; } 21085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21086/* end confdefs.h. */ 21087 21088#ifdef HAVE_OPENSSL_ERR_H 21089#include <openssl/err.h> 21090#endif 21091 21092#ifdef HAVE_OPENSSL_RAND_H 21093#include <openssl/rand.h> 21094#endif 21095 21096#ifdef HAVE_OPENSSL_CONF_H 21097#include <openssl/conf.h> 21098#endif 21099 21100#ifdef HAVE_OPENSSL_ENGINE_H 21101#include <openssl/engine.h> 21102#endif 21103#include <openssl/ssl.h> 21104#include <openssl/evp.h> 21105 21106int 21107main (void) 21108{ 21109 21110 HMAC_CTX* hmac_ctx = NULL; 21111 void* hmac_key = NULL; 21112 const EVP_MD* digest = NULL; 21113 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL); 21114 (void)x; 21115 21116 ; 21117 return 0; 21118} 21119_ACEOF 21120if ac_fn_c_try_compile "$LINENO" 21121then : 21122 21123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int" >&5 21124printf "%s\n" "int" >&6; } 21125 21126else $as_nop 21127 21128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: void" >&5 21129printf "%s\n" "void" >&6; } 21130 21131printf "%s\n" "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h 21132 21133 21134fi 21135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21136fi 21137 21138fi 21139 21140 21141# libbsd 21142 21143# Check whether --with-libbsd was given. 21144if test ${with_libbsd+y} 21145then : 21146 withval=$with_libbsd; 21147 ac_fn_c_check_header_compile "$LINENO" "bsd/string.h" "ac_cv_header_bsd_string_h" "$ac_includes_default 21148" 21149if test "x$ac_cv_header_bsd_string_h" = xyes 21150then : 21151 printf "%s\n" "#define HAVE_BSD_STRING_H 1" >>confdefs.h 21152 21153fi 21154ac_fn_c_check_header_compile "$LINENO" "bsd/stdlib.h" "ac_cv_header_bsd_stdlib_h" "$ac_includes_default 21155" 21156if test "x$ac_cv_header_bsd_stdlib_h" = xyes 21157then : 21158 printf "%s\n" "#define HAVE_BSD_STDLIB_H 1" >>confdefs.h 21159 21160fi 21161 21162 if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then 21163 for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do 21164 as_ac_Search=`printf "%s\n" "ac_cv_search_$func" | $as_tr_sh` 21165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5 21166printf %s "checking for library containing $func... " >&6; } 21167if eval test \${$as_ac_Search+y} 21168then : 21169 printf %s "(cached) " >&6 21170else $as_nop 21171 ac_func_search_save_LIBS=$LIBS 21172cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21173/* end confdefs.h. */ 21174 21175/* Override any GCC internal prototype to avoid an error. 21176 Use char because int might match the return type of a GCC 21177 builtin and then its argument prototype would still apply. */ 21178char $func (); 21179int 21180main (void) 21181{ 21182return $func (); 21183 ; 21184 return 0; 21185} 21186_ACEOF 21187for ac_lib in '' bsd 21188do 21189 if test -z "$ac_lib"; then 21190 ac_res="none required" 21191 else 21192 ac_res=-l$ac_lib 21193 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21194 fi 21195 if ac_fn_c_try_link "$LINENO" 21196then : 21197 eval "$as_ac_Search=\$ac_res" 21198fi 21199rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21200 conftest$ac_exeext 21201 if eval test \${$as_ac_Search+y} 21202then : 21203 break 21204fi 21205done 21206if eval test \${$as_ac_Search+y} 21207then : 21208 21209else $as_nop 21210 eval "$as_ac_Search=no" 21211fi 21212rm conftest.$ac_ext 21213LIBS=$ac_func_search_save_LIBS 21214fi 21215eval ac_res=\$$as_ac_Search 21216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21217printf "%s\n" "$ac_res" >&6; } 21218eval ac_res=\$$as_ac_Search 21219if test "$ac_res" != no 21220then : 21221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21222 21223 21224printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h 21225 21226 PC_LIBBSD_DEPENDENCY=libbsd 21227 21228 21229fi 21230 21231 done 21232 fi 21233 21234fi 21235 21236 21237# Check whether --enable-sha1 was given. 21238if test ${enable_sha1+y} 21239then : 21240 enableval=$enable_sha1; 21241fi 21242 21243case "$enable_sha1" in 21244 no) 21245 ;; 21246 yes|*) 21247 21248printf "%s\n" "#define USE_SHA1 1" >>confdefs.h 21249 21250 ;; 21251esac 21252 21253 21254# Check whether --enable-sha2 was given. 21255if test ${enable_sha2+y} 21256then : 21257 enableval=$enable_sha2; 21258fi 21259 21260case "$enable_sha2" in 21261 no) 21262 ;; 21263 yes|*) 21264 21265printf "%s\n" "#define USE_SHA2 1" >>confdefs.h 21266 21267 ;; 21268esac 21269 21270# Check whether --enable-subnet was given. 21271if test ${enable_subnet+y} 21272then : 21273 enableval=$enable_subnet; 21274fi 21275 21276case "$enable_subnet" in 21277 yes) 21278 21279printf "%s\n" "#define CLIENT_SUBNET 1" >>confdefs.h 21280 21281 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo" 21282 21283 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h' 21284 21285 ;; 21286 no|*) 21287 ;; 21288esac 21289 21290# check whether gost also works 21291 21292# Check whether --enable-gost was given. 21293if test ${enable_gost+y} 21294then : 21295 enableval=$enable_gost; 21296fi 21297 21298use_gost="no" 21299if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 21300case "$enable_gost" in 21301 no) 21302 ;; 21303 *) 21304 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str" 21305if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes 21306then : 21307 : 21308else $as_nop 21309 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5 21310fi 21311 21312 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new" 21313if test "x$ac_cv_func_EC_KEY_new" = xyes 21314then : 21315 21316else $as_nop 21317 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5 21318fi 21319 21320 21321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5 21322printf %s "checking if GOST works... " >&6; } 21323if test c${cross_compiling} = cno; then 21324BAKCFLAGS="$CFLAGS" 21325if test -n "$ssldir"; then 21326 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir_lib" 21327fi 21328if test "$cross_compiling" = yes 21329then : 21330 eval "ac_cv_c_gost_works=maybe" 21331else $as_nop 21332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21333/* end confdefs.h. */ 21334 21335#include <string.h> 21336#include <openssl/ssl.h> 21337#include <openssl/evp.h> 21338#include <openssl/engine.h> 21339#include <openssl/conf.h> 21340/* routine to load gost (from sldns) */ 21341int load_gost_id(void) 21342{ 21343 static int gost_id = 0; 21344 const EVP_PKEY_ASN1_METHOD* meth; 21345 ENGINE* e; 21346 21347 if(gost_id) return gost_id; 21348 21349 /* see if configuration loaded gost implementation from other engine*/ 21350 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1); 21351 if(meth) { 21352 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 21353 return gost_id; 21354 } 21355 21356 /* see if engine can be loaded already */ 21357 e = ENGINE_by_id("gost"); 21358 if(!e) { 21359 /* load it ourself, in case statically linked */ 21360 ENGINE_load_builtin_engines(); 21361 ENGINE_load_dynamic(); 21362 e = ENGINE_by_id("gost"); 21363 } 21364 if(!e) { 21365 /* no gost engine in openssl */ 21366 return 0; 21367 } 21368 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) { 21369 ENGINE_finish(e); 21370 ENGINE_free(e); 21371 return 0; 21372 } 21373 21374 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1); 21375 if(!meth) { 21376 /* algo not found */ 21377 ENGINE_finish(e); 21378 ENGINE_free(e); 21379 return 0; 21380 } 21381 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); 21382 return gost_id; 21383} 21384int main(void) { 21385 EVP_MD_CTX* ctx; 21386 const EVP_MD* md; 21387 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ 21388 const char* str = "Hello world"; 21389 const unsigned char check[] = { 21390 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 , 21391 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 , 21392 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d , 21393 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d 21394 }; 21395 OPENSSL_config(NULL); 21396 (void)load_gost_id(); 21397 md = EVP_get_digestbyname("md_gost94"); 21398 if(!md) return 1; 21399 memset(digest, 0, sizeof(digest)); 21400 ctx = EVP_MD_CTX_create(); 21401 if(!ctx) return 2; 21402 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3; 21403 if(!EVP_DigestUpdate(ctx, str, 10)) return 4; 21404 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5; 21405 /* uncomment to see the hash calculated. 21406 {int i; 21407 for(i=0; i<32; i++) 21408 printf(" %2.2x", (int)digest[i]); 21409 printf("\n");} 21410 */ 21411 if(memcmp(digest, check, sizeof(check)) != 0) 21412 return 6; 21413 return 0; 21414} 21415 21416_ACEOF 21417if ac_fn_c_try_run "$LINENO" 21418then : 21419 eval "ac_cv_c_gost_works=yes" 21420else $as_nop 21421 eval "ac_cv_c_gost_works=no" 21422fi 21423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21424 conftest.$ac_objext conftest.beam conftest.$ac_ext 21425fi 21426 21427CFLAGS="$BAKCFLAGS" 21428else 21429eval "ac_cv_c_gost_works=maybe" 21430fi 21431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5 21432printf "%s\n" "$ac_cv_c_gost_works" >&6; } 21433 21434 if test "$ac_cv_c_gost_works" != no; then 21435 use_gost="yes" 21436 21437printf "%s\n" "#define USE_GOST 1" >>confdefs.h 21438 21439 fi 21440 ;; 21441esac 21442fi 21443# Check whether --enable-ecdsa was given. 21444if test ${enable_ecdsa+y} 21445then : 21446 enableval=$enable_ecdsa; 21447fi 21448 21449use_ecdsa="no" 21450case "$enable_ecdsa" in 21451 no) 21452 ;; 21453 *) 21454 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 21455 ac_fn_c_check_func "$LINENO" "EVP_PKEY_fromdata" "ac_cv_func_EVP_PKEY_fromdata" 21456if test "x$ac_cv_func_EVP_PKEY_fromdata" = xyes 21457then : 21458 21459 # with EVP_PKEY_fromdata, check if EC is not disabled 21460 ac_fn_check_decl "$LINENO" "OPENSSL_NO_EC" "ac_cv_have_decl_OPENSSL_NO_EC" "$ac_includes_default 21461#include <openssl/evp.h> 21462 21463" "$ac_c_undeclared_builtin_options" "CFLAGS" 21464if test "x$ac_cv_have_decl_OPENSSL_NO_EC" = xyes 21465then : 21466 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 21467 21468fi 21469 21470else $as_nop 21471 21472 # without EVP_PKEY_fromdata, older openssl, check for support 21473 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign" 21474if test "x$ac_cv_func_ECDSA_sign" = xyes 21475then : 21476 21477else $as_nop 21478 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 21479fi 21480 21481 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init" 21482if test "x$ac_cv_func_SHA384_Init" = xyes 21483then : 21484 21485else $as_nop 21486 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 21487fi 21488 21489 21490fi 21491 21492 ac_fn_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default 21493#include <openssl/evp.h> 21494 21495" "$ac_c_undeclared_builtin_options" "CFLAGS" 21496if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes 21497then : 21498 ac_have_decl=1 21499else $as_nop 21500 ac_have_decl=0 21501fi 21502printf "%s\n" "#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl" >>confdefs.h 21503if test $ac_have_decl = 1 21504then : 21505 21506else $as_nop 21507 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 21508fi 21509ac_fn_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default 21510#include <openssl/evp.h> 21511 21512" "$ac_c_undeclared_builtin_options" "CFLAGS" 21513if test "x$ac_cv_have_decl_NID_secp384r1" = xyes 21514then : 21515 ac_have_decl=1 21516else $as_nop 21517 ac_have_decl=0 21518fi 21519printf "%s\n" "#define HAVE_DECL_NID_SECP384R1 $ac_have_decl" >>confdefs.h 21520if test $ac_have_decl = 1 21521then : 21522 21523else $as_nop 21524 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5 21525fi 21526 21527 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency) 21528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5 21529printf %s "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; } 21530 if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then 21531 if grep OPENSSL_VERSION_NUMBER $ssldir_include/openssl/opensslv.h | grep 0x0 >/dev/null; then 21532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21533printf "%s\n" "no" >&6; } 21534 21535printf "%s\n" "#define USE_ECDSA_EVP_WORKAROUND 1" >>confdefs.h 21536 21537 else 21538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21539printf "%s\n" "yes" >&6; } 21540 fi 21541 else 21542 # not OpenSSL, thus likely LibreSSL, which supports it 21543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21544printf "%s\n" "yes" >&6; } 21545 fi 21546 fi 21547 # we now know we have ECDSA and the required curves. 21548 21549printf "%s\n" "#define USE_ECDSA 1" >>confdefs.h 21550 21551 use_ecdsa="yes" 21552 ;; 21553esac 21554 21555# Check whether --enable-dsa was given. 21556if test ${enable_dsa+y} 21557then : 21558 enableval=$enable_dsa; 21559fi 21560 21561use_dsa="no" 21562case "$enable_dsa" in 21563 yes) 21564 # detect if DSA is supported, and turn it off if not. 21565 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 21566 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new" 21567if test "x$ac_cv_func_DSA_SIG_new" = xyes 21568then : 21569 21570 as_ac_Type=`printf "%s\n" "ac_cv_type_DSA_SIG*" | $as_tr_sh` 21571ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" " 21572$ac_includes_default 21573#ifdef HAVE_OPENSSL_ERR_H 21574#include <openssl/err.h> 21575#endif 21576 21577#ifdef HAVE_OPENSSL_RAND_H 21578#include <openssl/rand.h> 21579#endif 21580 21581#ifdef HAVE_OPENSSL_CONF_H 21582#include <openssl/conf.h> 21583#endif 21584 21585#ifdef HAVE_OPENSSL_ENGINE_H 21586#include <openssl/engine.h> 21587#endif 21588 21589" 21590if eval test \"x\$"$as_ac_Type"\" = x"yes" 21591then : 21592 21593 21594printf "%s\n" "#define USE_DSA 1" >>confdefs.h 21595 21596 21597else $as_nop 21598 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 21599 fi 21600fi 21601 21602 21603else $as_nop 21604 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5 21605 fi 21606fi 21607 21608 else 21609 21610printf "%s\n" "#define USE_DSA 1" >>confdefs.h 21611 21612 fi 21613 ;; 21614 *) 21615 # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT 21616 # support DSA for DNSSEC Validation. 21617 ;; 21618esac 21619 21620 21621# Check whether --with-deprecate-rsa-1024 was given. 21622if test ${with_deprecate_rsa_1024+y} 21623then : 21624 withval=$with_deprecate_rsa_1024; 21625fi 21626 21627if test "$with_deprecate_rsa_1024" = "yes"; then 21628 21629printf "%s\n" "#define DEPRECATE_RSA_1024 1" >>confdefs.h 21630 21631fi 21632 21633# Check whether --enable-ed25519 was given. 21634if test ${enable_ed25519+y} 21635then : 21636 enableval=$enable_ed25519; 21637fi 21638 21639use_ed25519="no" 21640case "$enable_ed25519" in 21641 no) 21642 ;; 21643 *) 21644 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 21645 ac_fn_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default 21646#include <openssl/evp.h> 21647 21648" "$ac_c_undeclared_builtin_options" "CFLAGS" 21649if test "x$ac_cv_have_decl_NID_ED25519" = xyes 21650then : 21651 ac_have_decl=1 21652else $as_nop 21653 ac_have_decl=0 21654fi 21655printf "%s\n" "#define HAVE_DECL_NID_ED25519 $ac_have_decl" >>confdefs.h 21656if test $ac_have_decl = 1 21657then : 21658 21659 use_ed25519="yes" 21660 21661else $as_nop 21662 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5 21663 fi 21664fi 21665 21666 fi 21667 if test $USE_NETTLE = "yes"; then 21668 for ac_header in nettle/eddsa.h 21669do : 21670 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default 21671" 21672if test "x$ac_cv_header_nettle_eddsa_h" = xyes 21673then : 21674 printf "%s\n" "#define HAVE_NETTLE_EDDSA_H 1" >>confdefs.h 21675 use_ed25519="yes" 21676fi 21677 21678done 21679 fi 21680 if test $use_ed25519 = "yes"; then 21681 21682printf "%s\n" "#define USE_ED25519 1" >>confdefs.h 21683 21684 fi 21685 ;; 21686esac 21687 21688# Check whether --enable-ed448 was given. 21689if test ${enable_ed448+y} 21690then : 21691 enableval=$enable_ed448; 21692fi 21693 21694use_ed448="no" 21695case "$enable_ed448" in 21696 no) 21697 ;; 21698 *) 21699 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then 21700 ac_fn_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default 21701#include <openssl/evp.h> 21702 21703" "$ac_c_undeclared_builtin_options" "CFLAGS" 21704if test "x$ac_cv_have_decl_NID_ED448" = xyes 21705then : 21706 ac_have_decl=1 21707else $as_nop 21708 ac_have_decl=0 21709fi 21710printf "%s\n" "#define HAVE_DECL_NID_ED448 $ac_have_decl" >>confdefs.h 21711if test $ac_have_decl = 1 21712then : 21713 21714 use_ed448="yes" 21715 21716else $as_nop 21717 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5 21718 fi 21719fi 21720 21721 fi 21722 if test $use_ed448 = "yes"; then 21723 21724printf "%s\n" "#define USE_ED448 1" >>confdefs.h 21725 21726 fi 21727 ;; 21728esac 21729 21730# Check whether --enable-event-api was given. 21731if test ${enable_event_api+y} 21732then : 21733 enableval=$enable_event_api; 21734fi 21735 21736case "$enable_event_api" in 21737 yes) 21738 UNBOUND_EVENT_INSTALL=unbound-event-install 21739 21740 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall 21741 21742 ;; 21743 *) 21744 ;; 21745esac 21746 21747# Check whether --enable-tfo-client was given. 21748if test ${enable_tfo_client+y} 21749then : 21750 enableval=$enable_tfo_client; 21751fi 21752 21753case "$enable_tfo_client" in 21754 yes) 21755 case "$host_os" in 21756 linux*) ac_fn_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default 21757#include <netinet/tcp.h> 21758 21759" "$ac_c_undeclared_builtin_options" "CFLAGS" 21760if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes 21761then : 21762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 21763printf "%s\n" "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 21764else $as_nop 21765 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 21766fi 21767 21768printf "%s\n" "#define USE_MSG_FASTOPEN 1" >>confdefs.h 21769 21770 ;; 21771 darwin*) ac_fn_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default 21772#include <sys/socket.h> 21773 21774" "$ac_c_undeclared_builtin_options" "CFLAGS" 21775if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes 21776then : 21777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5 21778printf "%s\n" "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;} 21779else $as_nop 21780 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5 21781fi 21782 21783printf "%s\n" "#define USE_OSX_MSG_FASTOPEN 1" >>confdefs.h 21784 21785 ;; 21786 esac 21787 ;; 21788 no|*) 21789 ;; 21790esac 21791 21792# Check whether --enable-tfo-server was given. 21793if test ${enable_tfo_server+y} 21794then : 21795 enableval=$enable_tfo_server; 21796fi 21797 21798case "$enable_tfo_server" in 21799 yes) 21800 ac_fn_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default 21801#include <netinet/tcp.h> 21802 21803" "$ac_c_undeclared_builtin_options" "CFLAGS" 21804if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes 21805then : 21806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5 21807printf "%s\n" "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;} 21808else $as_nop 21809 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5 21810fi 21811 21812printf "%s\n" "#define USE_TCP_FASTOPEN 1" >>confdefs.h 21813 21814 ;; 21815 no|*) 21816 ;; 21817esac 21818 21819# check for libevent 21820 21821# Check whether --with-libevent was given. 21822if test ${with_libevent+y} 21823then : 21824 withval=$with_libevent; 21825else $as_nop 21826 with_libevent="no" 21827fi 21828 21829if test "x_$with_libevent" != x_no; then 21830 21831printf "%s\n" "#define USE_LIBEVENT 1" >>confdefs.h 21832 21833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5 21834printf %s "checking for libevent... " >&6; } 21835 if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then 21836 with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 21837 fi 21838 for dir in $with_libevent; do 21839 thedir="$dir" 21840 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then 21841 found_libevent="yes" 21842 if test "$thedir" != "/usr"; then 21843 CPPFLAGS="$CPPFLAGS -I$thedir/include" 21844 fi 21845 break; 21846 fi 21847 done 21848 if test x_$found_libevent != x_yes; then 21849 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then 21850 # libevent source directory 21851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 21852printf "%s\n" "found in $thedir" >&6; } 21853 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include" 21854 BAK_LDFLAGS_SET="1" 21855 BAK_LDFLAGS="$LDFLAGS" 21856 # remove evdns from linking 21857 mkdir build >/dev/null 2>&1 21858 mkdir build/libevent >/dev/null 2>&1 21859 mkdir build/libevent/.libs >/dev/null 2>&1 21860 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 21861 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo` 21862 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o` 21863 cp $ev_files_o build/libevent 21864 cp $ev_files_lo build/libevent 21865 cp $ev_files_libso build/libevent/.libs 21866 LATE_LDFLAGS="build/libevent/*.lo -lm" 21867 LDFLAGS="build/libevent/*.o $LDFLAGS -lm" 21868 else 21869 as_fn_error $? "Cannot find the libevent library in $with_libevent 21870You can restart ./configure --with-libevent=no to use a builtin alternative. 21871Please note that this alternative is not as capable as libevent when using 21872large outgoing port ranges. " "$LINENO" 5 21873 fi 21874 else 21875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5 21876printf "%s\n" "found in $thedir" >&6; } 21877 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then 21878 LDFLAGS="$LDFLAGS -L$thedir/lib/event2" 21879 21880 if test "x$enable_rpath" = xyes; then 21881 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then 21882 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2" 21883 fi 21884 fi 21885 21886 else 21887 if test "$thedir" != "/usr" -a "$thedir" != ""; then 21888 LDFLAGS="$LDFLAGS -L$thedir/lib" 21889 21890 if test "x$enable_rpath" = xyes; then 21891 if echo "$thedir/lib" | grep "^/" >/dev/null; then 21892 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib" 21893 fi 21894 fi 21895 21896 fi 21897 fi 21898 fi 21899 # check for library used by libevent after 1.3c 21900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 21901printf %s "checking for library containing clock_gettime... " >&6; } 21902if test ${ac_cv_search_clock_gettime+y} 21903then : 21904 printf %s "(cached) " >&6 21905else $as_nop 21906 ac_func_search_save_LIBS=$LIBS 21907cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21908/* end confdefs.h. */ 21909 21910/* Override any GCC internal prototype to avoid an error. 21911 Use char because int might match the return type of a GCC 21912 builtin and then its argument prototype would still apply. */ 21913char clock_gettime (); 21914int 21915main (void) 21916{ 21917return clock_gettime (); 21918 ; 21919 return 0; 21920} 21921_ACEOF 21922for ac_lib in '' rt 21923do 21924 if test -z "$ac_lib"; then 21925 ac_res="none required" 21926 else 21927 ac_res=-l$ac_lib 21928 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21929 fi 21930 if ac_fn_c_try_link "$LINENO" 21931then : 21932 ac_cv_search_clock_gettime=$ac_res 21933fi 21934rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21935 conftest$ac_exeext 21936 if test ${ac_cv_search_clock_gettime+y} 21937then : 21938 break 21939fi 21940done 21941if test ${ac_cv_search_clock_gettime+y} 21942then : 21943 21944else $as_nop 21945 ac_cv_search_clock_gettime=no 21946fi 21947rm conftest.$ac_ext 21948LIBS=$ac_func_search_save_LIBS 21949fi 21950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 21951printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 21952ac_res=$ac_cv_search_clock_gettime 21953if test "$ac_res" != no 21954then : 21955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21956 21957fi 21958 21959 21960 # is the event.h header libev or libevent? 21961 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default 21962" 21963if test "x$ac_cv_header_event_h" = xyes 21964then : 21965 printf "%s\n" "#define HAVE_EVENT_H 1" >>confdefs.h 21966 21967fi 21968 21969 ac_fn_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default 21970#include <event.h> 21971 21972" "$ac_c_undeclared_builtin_options" "CFLAGS" 21973if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes 21974then : 21975 21976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 21977printf %s "checking for library containing event_set... " >&6; } 21978if test ${ac_cv_search_event_set+y} 21979then : 21980 printf %s "(cached) " >&6 21981else $as_nop 21982 ac_func_search_save_LIBS=$LIBS 21983cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21984/* end confdefs.h. */ 21985 21986/* Override any GCC internal prototype to avoid an error. 21987 Use char because int might match the return type of a GCC 21988 builtin and then its argument prototype would still apply. */ 21989char event_set (); 21990int 21991main (void) 21992{ 21993return event_set (); 21994 ; 21995 return 0; 21996} 21997_ACEOF 21998for ac_lib in '' ev 21999do 22000 if test -z "$ac_lib"; then 22001 ac_res="none required" 22002 else 22003 ac_res=-l$ac_lib 22004 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22005 fi 22006 if ac_fn_c_try_link "$LINENO" 22007then : 22008 ac_cv_search_event_set=$ac_res 22009fi 22010rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22011 conftest$ac_exeext 22012 if test ${ac_cv_search_event_set+y} 22013then : 22014 break 22015fi 22016done 22017if test ${ac_cv_search_event_set+y} 22018then : 22019 22020else $as_nop 22021 ac_cv_search_event_set=no 22022fi 22023rm conftest.$ac_ext 22024LIBS=$ac_func_search_save_LIBS 22025fi 22026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 22027printf "%s\n" "$ac_cv_search_event_set" >&6; } 22028ac_res=$ac_cv_search_event_set 22029if test "$ac_res" != no 22030then : 22031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22032 22033fi 22034 22035 22036else $as_nop 22037 22038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5 22039printf %s "checking for library containing event_set... " >&6; } 22040if test ${ac_cv_search_event_set+y} 22041then : 22042 printf %s "(cached) " >&6 22043else $as_nop 22044 ac_func_search_save_LIBS=$LIBS 22045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22046/* end confdefs.h. */ 22047 22048/* Override any GCC internal prototype to avoid an error. 22049 Use char because int might match the return type of a GCC 22050 builtin and then its argument prototype would still apply. */ 22051char event_set (); 22052int 22053main (void) 22054{ 22055return event_set (); 22056 ; 22057 return 0; 22058} 22059_ACEOF 22060for ac_lib in '' event 22061do 22062 if test -z "$ac_lib"; then 22063 ac_res="none required" 22064 else 22065 ac_res=-l$ac_lib 22066 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22067 fi 22068 if ac_fn_c_try_link "$LINENO" 22069then : 22070 ac_cv_search_event_set=$ac_res 22071fi 22072rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22073 conftest$ac_exeext 22074 if test ${ac_cv_search_event_set+y} 22075then : 22076 break 22077fi 22078done 22079if test ${ac_cv_search_event_set+y} 22080then : 22081 22082else $as_nop 22083 ac_cv_search_event_set=no 22084fi 22085rm conftest.$ac_ext 22086LIBS=$ac_func_search_save_LIBS 22087fi 22088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5 22089printf "%s\n" "$ac_cv_search_event_set" >&6; } 22090ac_res=$ac_cv_search_event_set 22091if test "$ac_res" != no 22092then : 22093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22094 22095fi 22096 22097 22098fi 22099 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free" 22100if test "x$ac_cv_func_event_base_free" = xyes 22101then : 22102 printf "%s\n" "#define HAVE_EVENT_BASE_FREE 1" >>confdefs.h 22103 22104fi 22105 # only in libevent 1.2 and later 22106 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once" 22107if test "x$ac_cv_func_event_base_once" = xyes 22108then : 22109 printf "%s\n" "#define HAVE_EVENT_BASE_ONCE 1" >>confdefs.h 22110 22111fi 22112 # only in libevent 1.4.1 and later 22113 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new" 22114if test "x$ac_cv_func_event_base_new" = xyes 22115then : 22116 printf "%s\n" "#define HAVE_EVENT_BASE_NEW 1" >>confdefs.h 22117 22118fi 22119 # only in libevent 1.4.1 and later 22120 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method" 22121if test "x$ac_cv_func_event_base_get_method" = xyes 22122then : 22123 printf "%s\n" "#define HAVE_EVENT_BASE_GET_METHOD 1" >>confdefs.h 22124 22125fi 22126 # only in libevent 1.4.3 and later 22127 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop" 22128if test "x$ac_cv_func_ev_loop" = xyes 22129then : 22130 printf "%s\n" "#define HAVE_EV_LOOP 1" >>confdefs.h 22131 22132fi 22133 # only in libev. (tested on 3.51) 22134 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop" 22135if test "x$ac_cv_func_ev_default_loop" = xyes 22136then : 22137 printf "%s\n" "#define HAVE_EV_DEFAULT_LOOP 1" >>confdefs.h 22138 22139fi 22140 # only in libev. (tested on 4.00) 22141 ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign" 22142if test "x$ac_cv_func_event_assign" = xyes 22143then : 22144 printf "%s\n" "#define HAVE_EVENT_ASSIGN 1" >>confdefs.h 22145 22146fi 22147 # in libevent, for thread-safety 22148 ac_fn_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default 22149#ifdef HAVE_EVENT_H 22150# include <event.h> 22151#else 22152# include \"event2/event.h\" 22153#endif 22154 22155" "$ac_c_undeclared_builtin_options" "CFLAGS" 22156if test "x$ac_cv_have_decl_evsignal_assign" = xyes 22157then : 22158 ac_have_decl=1 22159else $as_nop 22160 ac_have_decl=0 22161fi 22162printf "%s\n" "#define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl" >>confdefs.h 22163 22164 PC_LIBEVENT_DEPENDENCY="libevent" 22165 22166 if test -n "$BAK_LDFLAGS_SET"; then 22167 LDFLAGS="$BAK_LDFLAGS" 22168 fi 22169else 22170 22171printf "%s\n" "#define USE_MINI_EVENT 1" >>confdefs.h 22172 22173fi 22174 22175# check for libexpat 22176 22177# Check whether --with-libexpat was given. 22178if test ${with_libexpat+y} 22179then : 22180 withval=$with_libexpat; 22181else $as_nop 22182 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 22183fi 22184 22185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 22186printf %s "checking for libexpat... " >&6; } 22187found_libexpat="no" 22188for dir in $withval ; do 22189 if test -f "$dir/include/expat.h"; then 22190 found_libexpat="yes" 22191 if test "$dir" != "/usr"; then 22192 CPPFLAGS="$CPPFLAGS -I$dir/include" 22193 LDFLAGS="$LDFLAGS -L$dir/lib" 22194 fi 22195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 22196printf "%s\n" "found in $dir" >&6; } 22197 break; 22198 fi 22199done 22200if test x_$found_libexpat != x_yes; then 22201 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5 22202fi 22203ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default 22204" 22205if test "x$ac_cv_header_expat_h" = xyes 22206then : 22207 printf "%s\n" "#define HAVE_EXPAT_H 1" >>confdefs.h 22208 22209fi 22210 22211ac_fn_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default 22212#include <expat.h> 22213 22214" "$ac_c_undeclared_builtin_options" "CFLAGS" 22215if test "x$ac_cv_have_decl_XML_StopParser" = xyes 22216then : 22217 ac_have_decl=1 22218else $as_nop 22219 ac_have_decl=0 22220fi 22221printf "%s\n" "#define HAVE_DECL_XML_STOPPARSER $ac_have_decl" >>confdefs.h 22222 22223 22224# hiredis (redis C client for cachedb) 22225 22226# Check whether --with-libhiredis was given. 22227if test ${with_libhiredis+y} 22228then : 22229 withval=$with_libhiredis; 22230else $as_nop 22231 withval="no" 22232fi 22233 22234found_libhiredis="no" 22235if test x_$withval = x_yes -o x_$withval != x_no; then 22236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5 22237printf %s "checking for libhiredis... " >&6; } 22238 if test x_$withval = x_ -o x_$withval = x_yes; then 22239 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 22240 fi 22241 for dir in $withval ; do 22242 if test -f "$dir/include/hiredis/hiredis.h"; then 22243 found_libhiredis="yes" 22244 if test "$dir" != "/usr"; then 22245 CPPFLAGS="$CPPFLAGS -I$dir/include" 22246 LDFLAGS="$LDFLAGS -L$dir/lib" 22247 fi 22248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 22249printf "%s\n" "found in $dir" >&6; } 22250 22251printf "%s\n" "#define USE_REDIS 1" >>confdefs.h 22252 22253 LIBS="$LIBS -lhiredis" 22254 break; 22255 fi 22256 done 22257 if test x_$found_libhiredis != x_yes; then 22258 as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5 22259 fi 22260 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default 22261" 22262if test "x$ac_cv_header_hiredis_hiredis_h" = xyes 22263then : 22264 printf "%s\n" "#define HAVE_HIREDIS_HIREDIS_H 1" >>confdefs.h 22265 22266fi 22267 22268 ac_fn_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default 22269 #include <hiredis/hiredis.h> 22270 22271" "$ac_c_undeclared_builtin_options" "CFLAGS" 22272if test "x$ac_cv_have_decl_redisConnect" = xyes 22273then : 22274 ac_have_decl=1 22275else $as_nop 22276 ac_have_decl=0 22277fi 22278printf "%s\n" "#define HAVE_DECL_REDISCONNECT $ac_have_decl" >>confdefs.h 22279 22280fi 22281 22282# nghttp2 22283 22284# Check whether --with-libnghttp2 was given. 22285if test ${with_libnghttp2+y} 22286then : 22287 withval=$with_libnghttp2; 22288else $as_nop 22289 withval="no" 22290fi 22291 22292found_libnghttp2="no" 22293if test x_$withval = x_yes -o x_$withval != x_no; then 22294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5 22295printf %s "checking for libnghttp2... " >&6; } 22296 if test x_$withval = x_ -o x_$withval = x_yes; then 22297 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 22298 fi 22299 for dir in $withval ; do 22300 if test -f "$dir/include/nghttp2/nghttp2.h"; then 22301 found_libnghttp2="yes" 22302 if test "$dir" != "/usr"; then 22303 CPPFLAGS="$CPPFLAGS -I$dir/include" 22304 LDFLAGS="$LDFLAGS -L$dir/lib" 22305 fi 22306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 22307printf "%s\n" "found in $dir" >&6; } 22308 22309printf "%s\n" "#define HAVE_NGHTTP2 1" >>confdefs.h 22310 22311 LIBS="$LIBS -lnghttp2" 22312 break; 22313 fi 22314 done 22315 if test x_$found_libnghttp2 != x_yes; then 22316 as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5 22317 fi 22318 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default 22319" 22320if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes 22321then : 22322 printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h 22323 22324fi 22325 22326 ac_fn_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default 22327 #include <nghttp2/nghttp2.h> 22328 22329" "$ac_c_undeclared_builtin_options" "CFLAGS" 22330if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes 22331then : 22332 ac_have_decl=1 22333else $as_nop 22334 ac_have_decl=0 22335fi 22336printf "%s\n" "#define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl" >>confdefs.h 22337 22338fi 22339 22340# set static linking for uninstalled libraries if requested 22341 22342staticexe="" 22343# Check whether --enable-static-exe was given. 22344if test ${enable_static_exe+y} 22345then : 22346 enableval=$enable_static_exe; 22347fi 22348 22349if test x_$enable_static_exe = x_yes; then 22350 staticexe="-static" 22351 if test "$on_mingw" = yes; then 22352 staticexe="-all-static" 22353 # for static compile, include gdi32 and zlib here. 22354 if echo "$LIBS" | grep 'lgdi32' >/dev/null; then 22355 : 22356 else 22357 LIBS="$LIBS -lgdi32" 22358 fi 22359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 22360printf %s "checking for compress in -lz... " >&6; } 22361if test ${ac_cv_lib_z_compress+y} 22362then : 22363 printf %s "(cached) " >&6 22364else $as_nop 22365 ac_check_lib_save_LIBS=$LIBS 22366LIBS="-lz $LIBS" 22367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22368/* end confdefs.h. */ 22369 22370/* Override any GCC internal prototype to avoid an error. 22371 Use char because int might match the return type of a GCC 22372 builtin and then its argument prototype would still apply. */ 22373char compress (); 22374int 22375main (void) 22376{ 22377return compress (); 22378 ; 22379 return 0; 22380} 22381_ACEOF 22382if ac_fn_c_try_link "$LINENO" 22383then : 22384 ac_cv_lib_z_compress=yes 22385else $as_nop 22386 ac_cv_lib_z_compress=no 22387fi 22388rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22389 conftest$ac_exeext conftest.$ac_ext 22390LIBS=$ac_check_lib_save_LIBS 22391fi 22392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 22393printf "%s\n" "$ac_cv_lib_z_compress" >&6; } 22394if test "x$ac_cv_lib_z_compress" = xyes 22395then : 22396 LIBS="$LIBS -lz" 22397fi 22398 22399 if echo "$LIBS" | grep -e "libssp.a" -e "lssp" >/dev/null; then 22400 : 22401 else 22402 LIBS="$LIBS -l:libssp.a" 22403 fi 22404 fi 22405fi 22406 22407# set full static linking if requested 22408# Check whether --enable-fully-static was given. 22409if test ${enable_fully_static+y} 22410then : 22411 enableval=$enable_fully_static; 22412fi 22413 22414if test x_$enable_fully_static = x_yes; then 22415 staticexe="-all-static" 22416 if test "$on_mingw" = yes; then 22417 # for static compile, include gdi32 and zlib here. 22418 if echo $LIBS | grep 'lgdi32' >/dev/null; then 22419 : 22420 else 22421 LIBS="$LIBS -lgdi32" 22422 fi 22423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 22424printf %s "checking for compress in -lz... " >&6; } 22425if test ${ac_cv_lib_z_compress+y} 22426then : 22427 printf %s "(cached) " >&6 22428else $as_nop 22429 ac_check_lib_save_LIBS=$LIBS 22430LIBS="-lz $LIBS" 22431cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22432/* end confdefs.h. */ 22433 22434/* Override any GCC internal prototype to avoid an error. 22435 Use char because int might match the return type of a GCC 22436 builtin and then its argument prototype would still apply. */ 22437char compress (); 22438int 22439main (void) 22440{ 22441return compress (); 22442 ; 22443 return 0; 22444} 22445_ACEOF 22446if ac_fn_c_try_link "$LINENO" 22447then : 22448 ac_cv_lib_z_compress=yes 22449else $as_nop 22450 ac_cv_lib_z_compress=no 22451fi 22452rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22453 conftest$ac_exeext conftest.$ac_ext 22454LIBS=$ac_check_lib_save_LIBS 22455fi 22456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 22457printf "%s\n" "$ac_cv_lib_z_compress" >&6; } 22458if test "x$ac_cv_lib_z_compress" = xyes 22459then : 22460 LIBS="$LIBS -lz" 22461fi 22462 22463 if echo "$LIBS" | grep -e "libssp.a" -e "lssp" >/dev/null; then 22464 : 22465 else 22466 LIBS="$LIBS -l:libssp.a" 22467 fi 22468 fi 22469fi 22470 22471# set lock checking if requested 22472# Check whether --enable-lock_checks was given. 22473if test ${enable_lock_checks+y} 22474then : 22475 enableval=$enable_lock_checks; 22476fi 22477 22478if test x_$enable_lock_checks = x_yes; then 22479 22480printf "%s\n" "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h 22481 22482 CHECKLOCK_OBJ="checklocks.lo" 22483 22484fi 22485 22486 22487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 22488printf %s "checking for getaddrinfo... " >&6; } 22489ac_cv_func_getaddrinfo=no 22490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22491/* end confdefs.h. */ 22492 22493#ifdef __cplusplus 22494extern "C" 22495{ 22496#endif 22497char* getaddrinfo(); 22498char* (*f) () = getaddrinfo; 22499#ifdef __cplusplus 22500} 22501#endif 22502int main(void) { 22503 ; 22504 return 0; 22505} 22506 22507_ACEOF 22508if ac_fn_c_try_link "$LINENO" 22509then : 22510 ac_cv_func_getaddrinfo="yes" 22511if test "$ac_cv_header_windows_h" = "yes"; then 22512 22513printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h 22514 22515 USE_WINSOCK="1" 22516 if echo "$LIBS" | grep 'lws2_32' >/dev/null; then 22517 : 22518 else 22519 LIBS="$LIBS -lws2_32" 22520 fi 22521fi 22522 22523else $as_nop 22524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22525/* end confdefs.h. */ 22526 22527#ifdef HAVE_WS2TCPIP_H 22528#include <ws2tcpip.h> 22529#endif 22530 22531int 22532main (void) 22533{ 22534 22535 (void)getaddrinfo(NULL, NULL, NULL, NULL); 22536 22537 22538 ; 22539 return 0; 22540} 22541_ACEOF 22542if ac_fn_c_try_link "$LINENO" 22543then : 22544 22545ac_cv_func_getaddrinfo="yes" 22546 22547printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h 22548 22549USE_WINSOCK="1" 22550 22551else $as_nop 22552 ORIGLIBS="$LIBS" 22553LIBS="$LIBS -lws2_32" 22554cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22555/* end confdefs.h. */ 22556 22557#ifdef HAVE_WS2TCPIP_H 22558#include <ws2tcpip.h> 22559#endif 22560 22561int 22562main (void) 22563{ 22564 22565 (void)getaddrinfo(NULL, NULL, NULL, NULL); 22566 22567 22568 ; 22569 return 0; 22570} 22571_ACEOF 22572if ac_fn_c_try_link "$LINENO" 22573then : 22574 22575ac_cv_func_getaddrinfo="yes" 22576 22577printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h 22578 22579USE_WINSOCK="1" 22580 22581else $as_nop 22582 22583ac_cv_func_getaddrinfo="no" 22584LIBS="$ORIGLIBS" 22585 22586fi 22587rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22588 conftest$ac_exeext conftest.$ac_ext 22589 22590fi 22591rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22592 conftest$ac_exeext conftest.$ac_ext 22593 22594fi 22595rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22596 conftest$ac_exeext conftest.$ac_ext 22597 22598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 22599printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; } 22600if test $ac_cv_func_getaddrinfo = yes; then 22601 22602printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 22603 22604fi 22605 22606if test "$USE_WINSOCK" = 1; then 22607 22608printf "%s\n" "#define UB_ON_WINDOWS 1" >>confdefs.h 22609 22610 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default 22611#include <windows.h> 22612 22613" 22614if test "x$ac_cv_header_iphlpapi_h" = xyes 22615then : 22616 printf "%s\n" "#define HAVE_IPHLPAPI_H 1" >>confdefs.h 22617 22618fi 22619 22620 if test -n "$ac_tool_prefix"; then 22621 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 22622set dummy ${ac_tool_prefix}windres; ac_word=$2 22623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22624printf %s "checking for $ac_word... " >&6; } 22625if test ${ac_cv_prog_WINDRES+y} 22626then : 22627 printf %s "(cached) " >&6 22628else $as_nop 22629 if test -n "$WINDRES"; then 22630 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 22631else 22632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22633for as_dir in $PATH 22634do 22635 IFS=$as_save_IFS 22636 case $as_dir in #((( 22637 '') as_dir=./ ;; 22638 */) ;; 22639 *) as_dir=$as_dir/ ;; 22640 esac 22641 for ac_exec_ext in '' $ac_executable_extensions; do 22642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22643 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 22644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22645 break 2 22646 fi 22647done 22648 done 22649IFS=$as_save_IFS 22650 22651fi 22652fi 22653WINDRES=$ac_cv_prog_WINDRES 22654if test -n "$WINDRES"; then 22655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 22656printf "%s\n" "$WINDRES" >&6; } 22657else 22658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22659printf "%s\n" "no" >&6; } 22660fi 22661 22662 22663fi 22664if test -z "$ac_cv_prog_WINDRES"; then 22665 ac_ct_WINDRES=$WINDRES 22666 # Extract the first word of "windres", so it can be a program name with args. 22667set dummy windres; ac_word=$2 22668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22669printf %s "checking for $ac_word... " >&6; } 22670if test ${ac_cv_prog_ac_ct_WINDRES+y} 22671then : 22672 printf %s "(cached) " >&6 22673else $as_nop 22674 if test -n "$ac_ct_WINDRES"; then 22675 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 22676else 22677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22678for as_dir in $PATH 22679do 22680 IFS=$as_save_IFS 22681 case $as_dir in #((( 22682 '') as_dir=./ ;; 22683 */) ;; 22684 *) as_dir=$as_dir/ ;; 22685 esac 22686 for ac_exec_ext in '' $ac_executable_extensions; do 22687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22688 ac_cv_prog_ac_ct_WINDRES="windres" 22689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22690 break 2 22691 fi 22692done 22693 done 22694IFS=$as_save_IFS 22695 22696fi 22697fi 22698ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 22699if test -n "$ac_ct_WINDRES"; then 22700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 22701printf "%s\n" "$ac_ct_WINDRES" >&6; } 22702else 22703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22704printf "%s\n" "no" >&6; } 22705fi 22706 22707 if test "x$ac_ct_WINDRES" = x; then 22708 WINDRES="" 22709 else 22710 case $cross_compiling:$ac_tool_warned in 22711yes:) 22712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 22713printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 22714ac_tool_warned=yes ;; 22715esac 22716 WINDRES=$ac_ct_WINDRES 22717 fi 22718else 22719 WINDRES="$ac_cv_prog_WINDRES" 22720fi 22721 22722 if echo "$LIBS" | grep crypt32 >/dev/null; then 22723 LIBS="$LIBS -liphlpapi" 22724 else 22725 LIBS="$LIBS -liphlpapi -lcrypt32" 22726 fi 22727 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe" 22728 22729 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c" 22730 22731 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo" 22732 22733 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o" 22734 22735 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o" 22736 22737 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo" 22738 22739 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o" 22740 22741 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o" 22742 22743 22744printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h 22745 22746fi 22747if test $ac_cv_func_getaddrinfo = no; then 22748 case " $LIBOBJS " in 22749 *" fake-rfc2553.$ac_objext "* ) ;; 22750 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" 22751 ;; 22752esac 22753 22754fi 22755# check after getaddrinfo for its libraries 22756 22757# check ioctlsocket 22758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5 22759printf %s "checking for ioctlsocket... " >&6; } 22760cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22761/* end confdefs.h. */ 22762 22763#ifdef HAVE_WINSOCK2_H 22764#include <winsock2.h> 22765#endif 22766 22767int 22768main (void) 22769{ 22770 22771 (void)ioctlsocket(0, 0, NULL); 22772 22773 ; 22774 return 0; 22775} 22776_ACEOF 22777if ac_fn_c_try_link "$LINENO" 22778then : 22779 22780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22781printf "%s\n" "yes" >&6; } 22782 22783printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 22784 22785 22786else $as_nop 22787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22788printf "%s\n" "no" >&6; } 22789fi 22790rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22791 conftest$ac_exeext conftest.$ac_ext 22792 22793 22794# see if daemon(3) exists, and if it is deprecated. 22795ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 22796if test "x$ac_cv_func_daemon" = xyes 22797then : 22798 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h 22799 22800fi 22801 22802if test $ac_cv_func_daemon = yes; then 22803 22804 22805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5 22806printf %s "checking if daemon is deprecated... " >&6; } 22807cache=`echo daemon | sed 'y%.=/+-%___p_%'` 22808if eval test \${cv_cc_deprecated_$cache+y} 22809then : 22810 printf %s "(cached) " >&6 22811else $as_nop 22812 22813echo ' 22814#include <stdlib.h> 22815#include <unistd.h> 22816' >conftest.c 22817echo 'void f(void){ (void)daemon(0, 0); }' >>conftest.c 22818if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then 22819eval "cv_cc_deprecated_$cache=no" 22820else 22821eval "cv_cc_deprecated_$cache=yes" 22822fi 22823rm -f conftest conftest.o conftest.c 22824 22825fi 22826 22827if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then 22828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22829printf "%s\n" "yes" >&6; } 22830 22831printf "%s\n" "#define DEPRECATED_DAEMON 1" >>confdefs.h 22832 22833: 22834 22835else 22836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22837printf "%s\n" "no" >&6; } 22838: 22839 22840fi 22841 22842fi 22843 22844ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " 22845$ac_includes_default 22846#ifdef HAVE_SYS_UN_H 22847#include <sys/un.h> 22848#endif 22849 22850" 22851if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes 22852then : 22853 22854printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h 22855 22856 22857fi 22858 22859ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" " 22860$ac_includes_default 22861#if HAVE_SYS_PARAM_H 22862#include <sys/param.h> 22863#endif 22864 22865#ifdef HAVE_SYS_SOCKET_H 22866#include <sys/socket.h> 22867#endif 22868 22869#ifdef HAVE_SYS_UIO_H 22870#include <sys/uio.h> 22871#endif 22872 22873#ifdef HAVE_NETINET_IN_H 22874#include <netinet/in.h> 22875#endif 22876 22877#ifdef HAVE_NETINET_TCP_H 22878#include <netinet/tcp.h> 22879#endif 22880 22881#ifdef HAVE_ARPA_INET_H 22882#include <arpa/inet.h> 22883#endif 22884 22885#ifdef HAVE_WINSOCK2_H 22886#include <winsock2.h> 22887#endif 22888 22889#ifdef HAVE_WS2TCPIP_H 22890#include <ws2tcpip.h> 22891#endif 22892 22893" 22894if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes 22895then : 22896 22897printf "%s\n" "#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1" >>confdefs.h 22898 22899 22900fi 22901 22902 22903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5 22904printf %s "checking for htobe64... " >&6; } 22905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22906/* end confdefs.h. */ 22907 22908#include <stdio.h> 22909#ifdef HAVE_ENDIAN_H 22910# include <endian.h> 22911#endif 22912#ifdef HAVE_SYS_ENDIAN_H 22913# include <sys/endian.h> 22914#endif 22915 22916int 22917main (void) 22918{ 22919unsigned long long x = htobe64(0); printf("%u", (unsigned)x); 22920 ; 22921 return 0; 22922} 22923_ACEOF 22924if ac_fn_c_try_link "$LINENO" 22925then : 22926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22927printf "%s\n" "yes" >&6; } 22928 22929printf "%s\n" "#define HAVE_HTOBE64 1" >>confdefs.h 22930 22931else $as_nop 22932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22933printf "%s\n" "no" >&6; } 22934fi 22935rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22936 conftest$ac_exeext conftest.$ac_ext 22937 22938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5 22939printf %s "checking for be64toh... " >&6; } 22940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22941/* end confdefs.h. */ 22942 22943#include <stdio.h> 22944#ifdef HAVE_ENDIAN_H 22945# include <endian.h> 22946#endif 22947#ifdef HAVE_SYS_ENDIAN_H 22948# include <sys/endian.h> 22949#endif 22950 22951int 22952main (void) 22953{ 22954unsigned long long x = be64toh(0); printf("%u", (unsigned)x); 22955 ; 22956 return 0; 22957} 22958_ACEOF 22959if ac_fn_c_try_link "$LINENO" 22960then : 22961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22962printf "%s\n" "yes" >&6; } 22963 22964printf "%s\n" "#define HAVE_BE64TOH 1" >>confdefs.h 22965 22966else $as_nop 22967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22968printf "%s\n" "no" >&6; } 22969fi 22970rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22971 conftest$ac_exeext conftest.$ac_ext 22972 22973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 22974printf %s "checking for library containing setusercontext... " >&6; } 22975if test ${ac_cv_search_setusercontext+y} 22976then : 22977 printf %s "(cached) " >&6 22978else $as_nop 22979 ac_func_search_save_LIBS=$LIBS 22980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22981/* end confdefs.h. */ 22982 22983/* Override any GCC internal prototype to avoid an error. 22984 Use char because int might match the return type of a GCC 22985 builtin and then its argument prototype would still apply. */ 22986char setusercontext (); 22987int 22988main (void) 22989{ 22990return setusercontext (); 22991 ; 22992 return 0; 22993} 22994_ACEOF 22995for ac_lib in '' util 22996do 22997 if test -z "$ac_lib"; then 22998 ac_res="none required" 22999 else 23000 ac_res=-l$ac_lib 23001 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23002 fi 23003 if ac_fn_c_try_link "$LINENO" 23004then : 23005 ac_cv_search_setusercontext=$ac_res 23006fi 23007rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23008 conftest$ac_exeext 23009 if test ${ac_cv_search_setusercontext+y} 23010then : 23011 break 23012fi 23013done 23014if test ${ac_cv_search_setusercontext+y} 23015then : 23016 23017else $as_nop 23018 ac_cv_search_setusercontext=no 23019fi 23020rm conftest.$ac_ext 23021LIBS=$ac_func_search_save_LIBS 23022fi 23023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 23024printf "%s\n" "$ac_cv_search_setusercontext" >&6; } 23025ac_res=$ac_cv_search_setusercontext 23026if test "$ac_res" != no 23027then : 23028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23029 23030fi 23031 23032ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" 23033if test "x$ac_cv_func_tzset" = xyes 23034then : 23035 printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h 23036 23037fi 23038ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 23039if test "x$ac_cv_func_sigprocmask" = xyes 23040then : 23041 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h 23042 23043fi 23044ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" 23045if test "x$ac_cv_func_fcntl" = xyes 23046then : 23047 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h 23048 23049fi 23050ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam" 23051if test "x$ac_cv_func_getpwnam" = xyes 23052then : 23053 printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h 23054 23055fi 23056ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent" 23057if test "x$ac_cv_func_endpwent" = xyes 23058then : 23059 printf "%s\n" "#define HAVE_ENDPWENT 1" >>confdefs.h 23060 23061fi 23062ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" 23063if test "x$ac_cv_func_getrlimit" = xyes 23064then : 23065 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h 23066 23067fi 23068ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit" 23069if test "x$ac_cv_func_setrlimit" = xyes 23070then : 23071 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h 23072 23073fi 23074ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid" 23075if test "x$ac_cv_func_setsid" = xyes 23076then : 23077 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h 23078 23079fi 23080ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot" 23081if test "x$ac_cv_func_chroot" = xyes 23082then : 23083 printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h 23084 23085fi 23086ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill" 23087if test "x$ac_cv_func_kill" = xyes 23088then : 23089 printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h 23090 23091fi 23092ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown" 23093if test "x$ac_cv_func_chown" = xyes 23094then : 23095 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h 23096 23097fi 23098ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep" 23099if test "x$ac_cv_func_sleep" = xyes 23100then : 23101 printf "%s\n" "#define HAVE_SLEEP 1" >>confdefs.h 23102 23103fi 23104ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" 23105if test "x$ac_cv_func_usleep" = xyes 23106then : 23107 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h 23108 23109fi 23110ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random" 23111if test "x$ac_cv_func_random" = xyes 23112then : 23113 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h 23114 23115fi 23116ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom" 23117if test "x$ac_cv_func_srandom" = xyes 23118then : 23119 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h 23120 23121fi 23122ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 23123if test "x$ac_cv_func_recvmsg" = xyes 23124then : 23125 printf "%s\n" "#define HAVE_RECVMSG 1" >>confdefs.h 23126 23127fi 23128ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg" 23129if test "x$ac_cv_func_sendmsg" = xyes 23130then : 23131 printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h 23132 23133fi 23134ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev" 23135if test "x$ac_cv_func_writev" = xyes 23136then : 23137 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h 23138 23139fi 23140ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" 23141if test "x$ac_cv_func_socketpair" = xyes 23142then : 23143 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h 23144 23145fi 23146ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob" 23147if test "x$ac_cv_func_glob" = xyes 23148then : 23149 printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h 23150 23151fi 23152ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" 23153if test "x$ac_cv_func_initgroups" = xyes 23154then : 23155 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h 23156 23157fi 23158ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 23159if test "x$ac_cv_func_strftime" = xyes 23160then : 23161 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h 23162 23163fi 23164ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 23165if test "x$ac_cv_func_localtime_r" = xyes 23166then : 23167 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 23168 23169fi 23170ac_fn_c_check_func "$LINENO" "setusercontext" "ac_cv_func_setusercontext" 23171if test "x$ac_cv_func_setusercontext" = xyes 23172then : 23173 printf "%s\n" "#define HAVE_SETUSERCONTEXT 1" >>confdefs.h 23174 23175fi 23176ac_fn_c_check_func "$LINENO" "_beginthreadex" "ac_cv_func__beginthreadex" 23177if test "x$ac_cv_func__beginthreadex" = xyes 23178then : 23179 printf "%s\n" "#define HAVE__BEGINTHREADEX 1" >>confdefs.h 23180 23181fi 23182ac_fn_c_check_func "$LINENO" "endservent" "ac_cv_func_endservent" 23183if test "x$ac_cv_func_endservent" = xyes 23184then : 23185 printf "%s\n" "#define HAVE_ENDSERVENT 1" >>confdefs.h 23186 23187fi 23188ac_fn_c_check_func "$LINENO" "endprotoent" "ac_cv_func_endprotoent" 23189if test "x$ac_cv_func_endprotoent" = xyes 23190then : 23191 printf "%s\n" "#define HAVE_ENDPROTOENT 1" >>confdefs.h 23192 23193fi 23194ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync" 23195if test "x$ac_cv_func_fsync" = xyes 23196then : 23197 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h 23198 23199fi 23200ac_fn_c_check_func "$LINENO" "shmget" "ac_cv_func_shmget" 23201if test "x$ac_cv_func_shmget" = xyes 23202then : 23203 printf "%s\n" "#define HAVE_SHMGET 1" >>confdefs.h 23204 23205fi 23206ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" 23207if test "x$ac_cv_func_accept4" = xyes 23208then : 23209 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h 23210 23211fi 23212ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 23213if test "x$ac_cv_func_getifaddrs" = xyes 23214then : 23215 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 23216 23217fi 23218ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 23219if test "x$ac_cv_func_if_nametoindex" = xyes 23220then : 23221 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h 23222 23223fi 23224ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 23225if test "x$ac_cv_func_poll" = xyes 23226then : 23227 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 23228 23229fi 23230ac_fn_c_check_func "$LINENO" "gettid" "ac_cv_func_gettid" 23231if test "x$ac_cv_func_gettid" = xyes 23232then : 23233 printf "%s\n" "#define HAVE_GETTID 1" >>confdefs.h 23234 23235fi 23236 23237 23238 for ac_func in setresuid 23239do : 23240 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 23241if test "x$ac_cv_func_setresuid" = xyes 23242then : 23243 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h 23244 23245else $as_nop 23246 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 23247if test "x$ac_cv_func_setreuid" = xyes 23248then : 23249 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h 23250 23251fi 23252 23253fi 23254 23255done 23256 23257 for ac_func in setresgid 23258do : 23259 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 23260if test "x$ac_cv_func_setresgid" = xyes 23261then : 23262 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h 23263 23264else $as_nop 23265 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 23266if test "x$ac_cv_func_setregid" = xyes 23267then : 23268 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h 23269 23270fi 23271 23272fi 23273 23274done 23275 23276# check if setreuid en setregid fail, on MacOSX10.4(darwin8). 23277if echo $host_os | grep darwin8 > /dev/null; then 23278 23279printf "%s\n" "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h 23280 23281fi 23282ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" " 23283$ac_includes_default 23284#ifdef HAVE_NETINET_IN_H 23285#include <netinet/in.h> 23286#endif 23287 23288#ifdef HAVE_NETINET_TCP_H 23289#include <netinet/tcp.h> 23290#endif 23291 23292#ifdef HAVE_ARPA_INET_H 23293#include <arpa/inet.h> 23294#endif 23295 23296#ifdef HAVE_WINSOCK2_H 23297#include <winsock2.h> 23298#endif 23299 23300#ifdef HAVE_WS2TCPIP_H 23301#include <ws2tcpip.h> 23302#endif 23303 23304" "$ac_c_undeclared_builtin_options" "CFLAGS" 23305if test "x$ac_cv_have_decl_inet_pton" = xyes 23306then : 23307 ac_have_decl=1 23308else $as_nop 23309 ac_have_decl=0 23310fi 23311printf "%s\n" "#define HAVE_DECL_INET_PTON $ac_have_decl" >>confdefs.h 23312ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" " 23313$ac_includes_default 23314#ifdef HAVE_NETINET_IN_H 23315#include <netinet/in.h> 23316#endif 23317 23318#ifdef HAVE_NETINET_TCP_H 23319#include <netinet/tcp.h> 23320#endif 23321 23322#ifdef HAVE_ARPA_INET_H 23323#include <arpa/inet.h> 23324#endif 23325 23326#ifdef HAVE_WINSOCK2_H 23327#include <winsock2.h> 23328#endif 23329 23330#ifdef HAVE_WS2TCPIP_H 23331#include <ws2tcpip.h> 23332#endif 23333 23334" "$ac_c_undeclared_builtin_options" "CFLAGS" 23335if test "x$ac_cv_have_decl_inet_ntop" = xyes 23336then : 23337 ac_have_decl=1 23338else $as_nop 23339 ac_have_decl=0 23340fi 23341printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h 23342 23343ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 23344if test "x$ac_cv_func_inet_aton" = xyes 23345then : 23346 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h 23347 23348else $as_nop 23349 case " $LIBOBJS " in 23350 *" inet_aton.$ac_objext "* ) ;; 23351 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 23352 ;; 23353esac 23354 23355fi 23356 23357ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 23358if test "x$ac_cv_func_inet_pton" = xyes 23359then : 23360 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 23361 23362else $as_nop 23363 case " $LIBOBJS " in 23364 *" inet_pton.$ac_objext "* ) ;; 23365 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 23366 ;; 23367esac 23368 23369fi 23370 23371ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 23372if test "x$ac_cv_func_inet_ntop" = xyes 23373then : 23374 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 23375 23376else $as_nop 23377 case " $LIBOBJS " in 23378 *" inet_ntop.$ac_objext "* ) ;; 23379 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 23380 ;; 23381esac 23382 23383fi 23384 23385ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 23386if test "x$ac_cv_func_snprintf" = xyes 23387then : 23388 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 23389 23390else $as_nop 23391 case " $LIBOBJS " in 23392 *" snprintf.$ac_objext "* ) ;; 23393 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 23394 ;; 23395esac 23396 23397fi 23398 23399# test if snprintf return the proper length 23400if test "x$ac_cv_func_snprintf" = xyes; then 23401 if test c${cross_compiling} = cno; then 23402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5 23403printf %s "checking for correct snprintf return value... " >&6; } 23404 if test "$cross_compiling" = yes 23405then : 23406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: maybe" >&5 23407printf "%s\n" "maybe" >&6; } 23408else $as_nop 23409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23410/* end confdefs.h. */ 23411$ac_includes_default 23412 23413int main(void) { return !(snprintf(NULL, 0, "test") == 4); } 23414 23415_ACEOF 23416if ac_fn_c_try_run "$LINENO" 23417then : 23418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23419printf "%s\n" "yes" >&6; } 23420else $as_nop 23421 23422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23423printf "%s\n" "no" >&6; } 23424 23425printf "%s\n" "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h 23426 23427 case " $LIBOBJS " in 23428 *" snprintf.$ac_objext "* ) ;; 23429 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 23430 ;; 23431esac 23432 23433 23434fi 23435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23436 conftest.$ac_objext conftest.beam conftest.$ac_ext 23437fi 23438 23439 fi 23440fi 23441ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 23442if test "x$ac_cv_func_strlcat" = xyes 23443then : 23444 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 23445 23446else $as_nop 23447 case " $LIBOBJS " in 23448 *" strlcat.$ac_objext "* ) ;; 23449 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 23450 ;; 23451esac 23452 23453fi 23454 23455ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 23456if test "x$ac_cv_func_strlcpy" = xyes 23457then : 23458 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 23459 23460else $as_nop 23461 case " $LIBOBJS " in 23462 *" strlcpy.$ac_objext "* ) ;; 23463 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 23464 ;; 23465esac 23466 23467fi 23468 23469ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 23470if test "x$ac_cv_func_memmove" = xyes 23471then : 23472 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h 23473 23474else $as_nop 23475 case " $LIBOBJS " in 23476 *" memmove.$ac_objext "* ) ;; 23477 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 23478 ;; 23479esac 23480 23481fi 23482 23483ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 23484if test "x$ac_cv_func_gmtime_r" = xyes 23485then : 23486 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 23487 23488else $as_nop 23489 case " $LIBOBJS " in 23490 *" gmtime_r.$ac_objext "* ) ;; 23491 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 23492 ;; 23493esac 23494 23495fi 23496 23497ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" 23498if test "x$ac_cv_func_isblank" = xyes 23499then : 23500 printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h 23501 23502else $as_nop 23503 case " $LIBOBJS " in 23504 *" isblank.$ac_objext "* ) ;; 23505 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 23506 ;; 23507esac 23508 23509fi 23510 23511ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 23512if test "x$ac_cv_func_explicit_bzero" = xyes 23513then : 23514 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 23515 23516else $as_nop 23517 case " $LIBOBJS " in 23518 *" explicit_bzero.$ac_objext "* ) ;; 23519 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" 23520 ;; 23521esac 23522 23523fi 23524 23525LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS" 23526 23527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5 23528printf %s "checking for reallocarray... " >&6; } 23529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23530/* end confdefs.h. */ 23531$ac_includes_default 23532 23533#ifndef _OPENBSD_SOURCE 23534#define _OPENBSD_SOURCE 1 23535#endif 23536#include <stdlib.h> 23537int main(void) { 23538 void* p = reallocarray(NULL, 10, 100); 23539 free(p); 23540 return 0; 23541} 23542 23543_ACEOF 23544if ac_fn_c_try_link "$LINENO" 23545then : 23546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23547printf "%s\n" "yes" >&6; } 23548 23549printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 23550 23551 23552else $as_nop 23553 23554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23555printf "%s\n" "no" >&6; } 23556 case " $LIBOBJS " in 23557 *" reallocarray.$ac_objext "* ) ;; 23558 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 23559 ;; 23560esac 23561 23562 23563fi 23564rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23565 conftest$ac_exeext conftest.$ac_ext 23566ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 23567if test "x$ac_cv_have_decl_reallocarray" = xyes 23568then : 23569 ac_have_decl=1 23570else $as_nop 23571 ac_have_decl=0 23572fi 23573printf "%s\n" "#define HAVE_DECL_REALLOCARRAY $ac_have_decl" >>confdefs.h 23574 23575if test "$USE_NSS" = "no"; then 23576 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 23577if test "x$ac_cv_func_arc4random" = xyes 23578then : 23579 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h 23580 23581else $as_nop 23582 case " $LIBOBJS " in 23583 *" arc4random.$ac_objext "* ) ;; 23584 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext" 23585 ;; 23586esac 23587 23588fi 23589 23590 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform" 23591if test "x$ac_cv_func_arc4random_uniform" = xyes 23592then : 23593 printf "%s\n" "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h 23594 23595else $as_nop 23596 case " $LIBOBJS " in 23597 *" arc4random_uniform.$ac_objext "* ) ;; 23598 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext" 23599 ;; 23600esac 23601 23602fi 23603 23604 if test "$ac_cv_func_arc4random" = "no"; then 23605 case " $LIBOBJS " in 23606 *" arc4_lock.$ac_objext "* ) ;; 23607 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext" 23608 ;; 23609esac 23610 23611 23612 for ac_func in getentropy 23613do : 23614 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 23615if test "x$ac_cv_func_getentropy" = xyes 23616then : 23617 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h 23618 23619else $as_nop 23620 23621 if test "$USE_WINSOCK" = 1; then 23622 case " $LIBOBJS " in 23623 *" getentropy_win.$ac_objext "* ) ;; 23624 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext" 23625 ;; 23626esac 23627 23628 else 23629 case "$host" in 23630 Darwin|*darwin*) 23631 case " $LIBOBJS " in 23632 *" getentropy_osx.$ac_objext "* ) ;; 23633 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext" 23634 ;; 23635esac 23636 23637 ;; 23638 *solaris*|*sunos*|SunOS) 23639 case " $LIBOBJS " in 23640 *" getentropy_solaris.$ac_objext "* ) ;; 23641 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext" 23642 ;; 23643esac 23644 23645 for ac_header in sys/sha2.h 23646do : 23647 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default 23648" 23649if test "x$ac_cv_header_sys_sha2_h" = xyes 23650then : 23651 printf "%s\n" "#define HAVE_SYS_SHA2_H 1" >>confdefs.h 23652 23653else $as_nop 23654 23655 23656 for ac_func in SHA512_Update 23657do : 23658 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 23659if test "x$ac_cv_func_SHA512_Update" = xyes 23660then : 23661 printf "%s\n" "#define HAVE_SHA512_UPDATE 1" >>confdefs.h 23662 23663else $as_nop 23664 23665 case " $LIBOBJS " in 23666 *" sha512.$ac_objext "* ) ;; 23667 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 23668 ;; 23669esac 23670 23671 23672fi 23673 23674done 23675 23676fi 23677 23678done 23679 if test "$ac_cv_header_sys_sha2_h" = "yes"; then 23680 # this lib needed for sha2 on solaris 23681 LIBS="$LIBS -lmd" 23682 fi 23683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 23684printf %s "checking for library containing clock_gettime... " >&6; } 23685if test ${ac_cv_search_clock_gettime+y} 23686then : 23687 printf %s "(cached) " >&6 23688else $as_nop 23689 ac_func_search_save_LIBS=$LIBS 23690cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23691/* end confdefs.h. */ 23692 23693/* Override any GCC internal prototype to avoid an error. 23694 Use char because int might match the return type of a GCC 23695 builtin and then its argument prototype would still apply. */ 23696char clock_gettime (); 23697int 23698main (void) 23699{ 23700return clock_gettime (); 23701 ; 23702 return 0; 23703} 23704_ACEOF 23705for ac_lib in '' rt 23706do 23707 if test -z "$ac_lib"; then 23708 ac_res="none required" 23709 else 23710 ac_res=-l$ac_lib 23711 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23712 fi 23713 if ac_fn_c_try_link "$LINENO" 23714then : 23715 ac_cv_search_clock_gettime=$ac_res 23716fi 23717rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23718 conftest$ac_exeext 23719 if test ${ac_cv_search_clock_gettime+y} 23720then : 23721 break 23722fi 23723done 23724if test ${ac_cv_search_clock_gettime+y} 23725then : 23726 23727else $as_nop 23728 ac_cv_search_clock_gettime=no 23729fi 23730rm conftest.$ac_ext 23731LIBS=$ac_func_search_save_LIBS 23732fi 23733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 23734printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 23735ac_res=$ac_cv_search_clock_gettime 23736if test "$ac_res" != no 23737then : 23738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23739 23740fi 23741 23742 ;; 23743 *freebsd*|*FreeBSD) 23744 case " $LIBOBJS " in 23745 *" getentropy_freebsd.$ac_objext "* ) ;; 23746 *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext" 23747 ;; 23748esac 23749 23750 ;; 23751 *linux*|Linux|*) 23752 case " $LIBOBJS " in 23753 *" getentropy_linux.$ac_objext "* ) ;; 23754 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext" 23755 ;; 23756esac 23757 23758 23759 for ac_func in SHA512_Update 23760do : 23761 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update" 23762if test "x$ac_cv_func_SHA512_Update" = xyes 23763then : 23764 printf "%s\n" "#define HAVE_SHA512_UPDATE 1" >>confdefs.h 23765 23766else $as_nop 23767 23768 23769printf "%s\n" "#define COMPAT_SHA512 1" >>confdefs.h 23770 23771 case " $LIBOBJS " in 23772 *" sha512.$ac_objext "* ) ;; 23773 *) LIBOBJS="$LIBOBJS sha512.$ac_objext" 23774 ;; 23775esac 23776 23777 23778fi 23779 23780done 23781 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 23782" 23783if test "x$ac_cv_header_sys_sysctl_h" = xyes 23784then : 23785 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h 23786 23787fi 23788 23789 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval" 23790if test "x$ac_cv_func_getauxval" = xyes 23791then : 23792 printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h 23793 23794fi 23795 23796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 23797printf %s "checking for library containing clock_gettime... " >&6; } 23798if test ${ac_cv_search_clock_gettime+y} 23799then : 23800 printf %s "(cached) " >&6 23801else $as_nop 23802 ac_func_search_save_LIBS=$LIBS 23803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23804/* end confdefs.h. */ 23805 23806/* Override any GCC internal prototype to avoid an error. 23807 Use char because int might match the return type of a GCC 23808 builtin and then its argument prototype would still apply. */ 23809char clock_gettime (); 23810int 23811main (void) 23812{ 23813return clock_gettime (); 23814 ; 23815 return 0; 23816} 23817_ACEOF 23818for ac_lib in '' rt 23819do 23820 if test -z "$ac_lib"; then 23821 ac_res="none required" 23822 else 23823 ac_res=-l$ac_lib 23824 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23825 fi 23826 if ac_fn_c_try_link "$LINENO" 23827then : 23828 ac_cv_search_clock_gettime=$ac_res 23829fi 23830rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23831 conftest$ac_exeext 23832 if test ${ac_cv_search_clock_gettime+y} 23833then : 23834 break 23835fi 23836done 23837if test ${ac_cv_search_clock_gettime+y} 23838then : 23839 23840else $as_nop 23841 ac_cv_search_clock_gettime=no 23842fi 23843rm conftest.$ac_ext 23844LIBS=$ac_func_search_save_LIBS 23845fi 23846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 23847printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 23848ac_res=$ac_cv_search_clock_gettime 23849if test "$ac_res" != no 23850then : 23851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23852 23853fi 23854 23855 ;; 23856 esac 23857 fi 23858 23859fi 23860 23861done 23862 fi 23863fi 23864LIBOBJ_WITHOUT_CTIME="$LIBOBJS" 23865 23866ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 23867if test "x$ac_cv_func_ctime_r" = xyes 23868then : 23869 printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h 23870 23871else $as_nop 23872 case " $LIBOBJS " in 23873 *" ctime_r.$ac_objext "* ) ;; 23874 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 23875 ;; 23876esac 23877 23878fi 23879 23880ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 23881if test "x$ac_cv_func_strsep" = xyes 23882then : 23883 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h 23884 23885else $as_nop 23886 case " $LIBOBJS " in 23887 *" strsep.$ac_objext "* ) ;; 23888 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 23889 ;; 23890esac 23891 23892fi 23893 23894 23895# Check whether --enable-allsymbols was given. 23896if test ${enable_allsymbols+y} 23897then : 23898 enableval=$enable_allsymbols; 23899fi 23900 23901case "$enable_allsymbols" in 23902 yes) 23903 COMMON_OBJ_ALL_SYMBOLS="" 23904 UBSYMS="" 23905 EXTRALINK="libunbound.la" 23906 23907printf "%s\n" "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h 23908 23909 ;; 23910 no|*) 23911 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)' 23912 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def' 23913 EXTRALINK="" 23914 ;; 23915esac 23916 23917 23918 23919if test x_$enable_lock_checks = x_yes; then 23920 UBSYMS="-export-symbols clubsyms.def" 23921 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def 23922 echo lock_protect >> clubsyms.def 23923 echo lock_unprotect >> clubsyms.def 23924 echo lock_get_mem >> clubsyms.def 23925 echo checklock_start >> clubsyms.def 23926 echo checklock_stop >> clubsyms.def 23927 echo checklock_lock >> clubsyms.def 23928 echo checklock_unlock >> clubsyms.def 23929 echo checklock_init >> clubsyms.def 23930 echo checklock_thrcreate >> clubsyms.def 23931 echo checklock_thrjoin >> clubsyms.def 23932fi 23933 23934# check for dnstap if requested 23935 23936 # Check whether --enable-dnstap was given. 23937if test ${enable_dnstap+y} 23938then : 23939 enableval=$enable_dnstap; opt_dnstap=$enableval 23940else $as_nop 23941 opt_dnstap=no 23942fi 23943 23944 23945 23946# Check whether --with-dnstap-socket-path was given. 23947if test ${with_dnstap_socket_path+y} 23948then : 23949 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval 23950else $as_nop 23951 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock" 23952fi 23953 23954 23955 if test "x$opt_dnstap" != "xno"; then 23956 # Extract the first word of "protoc-c", so it can be a program name with args. 23957set dummy protoc-c; ac_word=$2 23958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23959printf %s "checking for $ac_word... " >&6; } 23960if test ${ac_cv_path_PROTOC_C+y} 23961then : 23962 printf %s "(cached) " >&6 23963else $as_nop 23964 case $PROTOC_C in 23965 [\\/]* | ?:[\\/]*) 23966 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 23967 ;; 23968 *) 23969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23970for as_dir in $PATH 23971do 23972 IFS=$as_save_IFS 23973 case $as_dir in #((( 23974 '') as_dir=./ ;; 23975 */) ;; 23976 *) as_dir=$as_dir/ ;; 23977 esac 23978 for ac_exec_ext in '' $ac_executable_extensions; do 23979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23980 ac_cv_path_PROTOC_C="$as_dir$ac_word$ac_exec_ext" 23981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23982 break 2 23983 fi 23984done 23985 done 23986IFS=$as_save_IFS 23987 23988 ;; 23989esac 23990fi 23991PROTOC_C=$ac_cv_path_PROTOC_C 23992if test -n "$PROTOC_C"; then 23993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 23994printf "%s\n" "$PROTOC_C" >&6; } 23995else 23996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23997printf "%s\n" "no" >&6; } 23998fi 23999 24000 24001 if test -z "$PROTOC_C"; then 24002 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5 24003 fi 24004 24005# Check whether --with-protobuf-c was given. 24006if test ${with_protobuf_c+y} 24007then : 24008 withval=$with_protobuf_c; 24009 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 24010 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then 24011 CFLAGS="$CFLAGS -I$withval/include/google" 24012 else 24013 CFLAGS="$CFLAGS -I$withval/include" 24014 fi 24015 LDFLAGS="$LDFLAGS -L$withval/lib" 24016 24017else $as_nop 24018 24019 if test -n "$PKG_CONFIG"; then 24020 24021pkg_failed=no 24022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libprotobuf-c" >&5 24023printf %s "checking for libprotobuf-c... " >&6; } 24024 24025if test -n "$PROTOBUFC_CFLAGS"; then 24026 pkg_cv_PROTOBUFC_CFLAGS="$PROTOBUFC_CFLAGS" 24027 elif test -n "$PKG_CONFIG"; then 24028 if test -n "$PKG_CONFIG" && \ 24029 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c\""; } >&5 24030 ($PKG_CONFIG --exists --print-errors "libprotobuf-c") 2>&5 24031 ac_status=$? 24032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24033 test $ac_status = 0; }; then 24034 pkg_cv_PROTOBUFC_CFLAGS=`$PKG_CONFIG --cflags "libprotobuf-c" 2>/dev/null` 24035 test "x$?" != "x0" && pkg_failed=yes 24036else 24037 pkg_failed=yes 24038fi 24039 else 24040 pkg_failed=untried 24041fi 24042if test -n "$PROTOBUFC_LIBS"; then 24043 pkg_cv_PROTOBUFC_LIBS="$PROTOBUFC_LIBS" 24044 elif test -n "$PKG_CONFIG"; then 24045 if test -n "$PKG_CONFIG" && \ 24046 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c\""; } >&5 24047 ($PKG_CONFIG --exists --print-errors "libprotobuf-c") 2>&5 24048 ac_status=$? 24049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24050 test $ac_status = 0; }; then 24051 pkg_cv_PROTOBUFC_LIBS=`$PKG_CONFIG --libs "libprotobuf-c" 2>/dev/null` 24052 test "x$?" != "x0" && pkg_failed=yes 24053else 24054 pkg_failed=yes 24055fi 24056 else 24057 pkg_failed=untried 24058fi 24059 24060 24061 24062if test $pkg_failed = yes; then 24063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24064printf "%s\n" "no" >&6; } 24065 24066if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24067 _pkg_short_errors_supported=yes 24068else 24069 _pkg_short_errors_supported=no 24070fi 24071 if test $_pkg_short_errors_supported = yes; then 24072 PROTOBUFC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libprotobuf-c" 2>&1` 24073 else 24074 PROTOBUFC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libprotobuf-c" 2>&1` 24075 fi 24076 # Put the nasty error message in config.log where it belongs 24077 echo "$PROTOBUFC_PKG_ERRORS" >&5 24078 24079 24080 # pkg-config failed; try falling back to known values 24081 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 24082 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 24083 CFLAGS="$CFLAGS -I/usr/include/google" 24084 else 24085 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 24086 CFLAGS="$CFLAGS -I/usr/local/include/google" 24087 LDFLAGS="$LDFLAGS -L/usr/local/lib" 24088 else 24089 as_fn_error $? "The protobuf-c package was not found with pkg-config. Please install protobuf-c!" "$LINENO" 5 24090 fi 24091 fi 24092 24093 24094elif test $pkg_failed = untried; then 24095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24096printf "%s\n" "no" >&6; } 24097 24098 # pkg-config failed; try falling back to known values 24099 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 24100 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 24101 CFLAGS="$CFLAGS -I/usr/include/google" 24102 else 24103 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 24104 CFLAGS="$CFLAGS -I/usr/local/include/google" 24105 LDFLAGS="$LDFLAGS -L/usr/local/lib" 24106 else 24107 as_fn_error $? "The protobuf-c package was not found with pkg-config. Please install protobuf-c!" "$LINENO" 5 24108 fi 24109 fi 24110 24111 24112else 24113 PROTOBUFC_CFLAGS=$pkg_cv_PROTOBUFC_CFLAGS 24114 PROTOBUFC_LIBS=$pkg_cv_PROTOBUFC_LIBS 24115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24116printf "%s\n" "yes" >&6; } 24117 24118 CFLAGS="$CFLAGS $PROTOBUFC_CFLAGS" 24119 LIBS="$LIBS $PROTOBUFC_LIBS" 24120 24121fi 24122 else 24123 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0 24124 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then 24125 CFLAGS="$CFLAGS -I/usr/include/google" 24126 else 24127 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then 24128 CFLAGS="$CFLAGS -I/usr/local/include/google" 24129 LDFLAGS="$LDFLAGS -L/usr/local/lib" 24130 fi 24131 fi 24132 fi 24133 24134 24135fi 24136 24137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5 24138printf %s "checking for library containing protobuf_c_message_pack... " >&6; } 24139if test ${ac_cv_search_protobuf_c_message_pack+y} 24140then : 24141 printf %s "(cached) " >&6 24142else $as_nop 24143 ac_func_search_save_LIBS=$LIBS 24144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24145/* end confdefs.h. */ 24146 24147/* Override any GCC internal prototype to avoid an error. 24148 Use char because int might match the return type of a GCC 24149 builtin and then its argument prototype would still apply. */ 24150char protobuf_c_message_pack (); 24151int 24152main (void) 24153{ 24154return protobuf_c_message_pack (); 24155 ; 24156 return 0; 24157} 24158_ACEOF 24159for ac_lib in '' protobuf-c 24160do 24161 if test -z "$ac_lib"; then 24162 ac_res="none required" 24163 else 24164 ac_res=-l$ac_lib 24165 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24166 fi 24167 if ac_fn_c_try_link "$LINENO" 24168then : 24169 ac_cv_search_protobuf_c_message_pack=$ac_res 24170fi 24171rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24172 conftest$ac_exeext 24173 if test ${ac_cv_search_protobuf_c_message_pack+y} 24174then : 24175 break 24176fi 24177done 24178if test ${ac_cv_search_protobuf_c_message_pack+y} 24179then : 24180 24181else $as_nop 24182 ac_cv_search_protobuf_c_message_pack=no 24183fi 24184rm conftest.$ac_ext 24185LIBS=$ac_func_search_save_LIBS 24186fi 24187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5 24188printf "%s\n" "$ac_cv_search_protobuf_c_message_pack" >&6; } 24189ac_res=$ac_cv_search_protobuf_c_message_pack 24190if test "$ac_res" != no 24191then : 24192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24193 24194else $as_nop 24195 as_fn_error $? "The protobuf-c library was not found. Please install the development libraries for protobuf-c!" "$LINENO" 5 24196fi 24197 24198 24199 24200printf "%s\n" "#define USE_DNSTAP 1" >>confdefs.h 24201 24202 ENABLE_DNSTAP=1 24203 24204 24205 24206 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`" 24207 24208 24209printf "%s\n" "#define DNSTAP_SOCKET_PATH \"$hdr_dnstap_socket_path\"" >>confdefs.h 24210 24211 DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path" 24212 24213 DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)' 24214 24215 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c" 24216 24217 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo" 24218 24219 24220 else 24221 24222 ENABLE_DNSTAP=0 24223 24224 24225 24226 fi 24227 24228 24229# check for dnscrypt if requested 24230 24231 # Check whether --enable-dnscrypt was given. 24232if test ${enable_dnscrypt+y} 24233then : 24234 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval 24235else $as_nop 24236 opt_dnscrypt=no 24237fi 24238 24239 24240 if test "x$opt_dnscrypt" != "xno"; then 24241 24242# Check whether --with-libsodium was given. 24243if test ${with_libsodium+y} 24244then : 24245 withval=$with_libsodium; 24246 CFLAGS="$CFLAGS -I$withval/include" 24247 LDFLAGS="$LDFLAGS -L$withval/lib" 24248 24249fi 24250 24251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5 24252printf %s "checking for library containing sodium_init... " >&6; } 24253if test ${ac_cv_search_sodium_init+y} 24254then : 24255 printf %s "(cached) " >&6 24256else $as_nop 24257 ac_func_search_save_LIBS=$LIBS 24258cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24259/* end confdefs.h. */ 24260 24261/* Override any GCC internal prototype to avoid an error. 24262 Use char because int might match the return type of a GCC 24263 builtin and then its argument prototype would still apply. */ 24264char sodium_init (); 24265int 24266main (void) 24267{ 24268return sodium_init (); 24269 ; 24270 return 0; 24271} 24272_ACEOF 24273for ac_lib in '' sodium 24274do 24275 if test -z "$ac_lib"; then 24276 ac_res="none required" 24277 else 24278 ac_res=-l$ac_lib 24279 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24280 fi 24281 if ac_fn_c_try_link "$LINENO" 24282then : 24283 ac_cv_search_sodium_init=$ac_res 24284fi 24285rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24286 conftest$ac_exeext 24287 if test ${ac_cv_search_sodium_init+y} 24288then : 24289 break 24290fi 24291done 24292if test ${ac_cv_search_sodium_init+y} 24293then : 24294 24295else $as_nop 24296 ac_cv_search_sodium_init=no 24297fi 24298rm conftest.$ac_ext 24299LIBS=$ac_func_search_save_LIBS 24300fi 24301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5 24302printf "%s\n" "$ac_cv_search_sodium_init" >&6; } 24303ac_res=$ac_cv_search_sodium_init 24304if test "$ac_res" != no 24305then : 24306 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24307 24308else $as_nop 24309 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5 24310fi 24311 24312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5 24313printf %s "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; } 24314if test ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+y} 24315then : 24316 printf %s "(cached) " >&6 24317else $as_nop 24318 ac_func_search_save_LIBS=$LIBS 24319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24320/* end confdefs.h. */ 24321 24322/* Override any GCC internal prototype to avoid an error. 24323 Use char because int might match the return type of a GCC 24324 builtin and then its argument prototype would still apply. */ 24325char crypto_box_curve25519xchacha20poly1305_beforenm (); 24326int 24327main (void) 24328{ 24329return crypto_box_curve25519xchacha20poly1305_beforenm (); 24330 ; 24331 return 0; 24332} 24333_ACEOF 24334for ac_lib in '' sodium 24335do 24336 if test -z "$ac_lib"; then 24337 ac_res="none required" 24338 else 24339 ac_res=-l$ac_lib 24340 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24341 fi 24342 if ac_fn_c_try_link "$LINENO" 24343then : 24344 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res 24345fi 24346rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24347 conftest$ac_exeext 24348 if test ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+y} 24349then : 24350 break 24351fi 24352done 24353if test ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+y} 24354then : 24355 24356else $as_nop 24357 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no 24358fi 24359rm conftest.$ac_ext 24360LIBS=$ac_func_search_save_LIBS 24361fi 24362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5 24363printf "%s\n" "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; } 24364ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm 24365if test "$ac_res" != no 24366then : 24367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24368 24369 ENABLE_DNSCRYPT_XCHACHA20=1 24370 24371 24372printf "%s\n" "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h 24373 24374 24375else $as_nop 24376 24377 ENABLE_DNSCRYPT_XCHACHA20=0 24378 24379 24380fi 24381 24382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5 24383printf %s "checking for library containing sodium_set_misuse_handler... " >&6; } 24384if test ${ac_cv_search_sodium_set_misuse_handler+y} 24385then : 24386 printf %s "(cached) " >&6 24387else $as_nop 24388 ac_func_search_save_LIBS=$LIBS 24389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24390/* end confdefs.h. */ 24391 24392/* Override any GCC internal prototype to avoid an error. 24393 Use char because int might match the return type of a GCC 24394 builtin and then its argument prototype would still apply. */ 24395char sodium_set_misuse_handler (); 24396int 24397main (void) 24398{ 24399return sodium_set_misuse_handler (); 24400 ; 24401 return 0; 24402} 24403_ACEOF 24404for ac_lib in '' sodium 24405do 24406 if test -z "$ac_lib"; then 24407 ac_res="none required" 24408 else 24409 ac_res=-l$ac_lib 24410 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24411 fi 24412 if ac_fn_c_try_link "$LINENO" 24413then : 24414 ac_cv_search_sodium_set_misuse_handler=$ac_res 24415fi 24416rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24417 conftest$ac_exeext 24418 if test ${ac_cv_search_sodium_set_misuse_handler+y} 24419then : 24420 break 24421fi 24422done 24423if test ${ac_cv_search_sodium_set_misuse_handler+y} 24424then : 24425 24426else $as_nop 24427 ac_cv_search_sodium_set_misuse_handler=no 24428fi 24429rm conftest.$ac_ext 24430LIBS=$ac_func_search_save_LIBS 24431fi 24432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5 24433printf "%s\n" "$ac_cv_search_sodium_set_misuse_handler" >&6; } 24434ac_res=$ac_cv_search_sodium_set_misuse_handler 24435if test "$ac_res" != no 24436then : 24437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24438 24439 24440printf "%s\n" "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h 24441 24442 24443fi 24444 24445 24446 24447printf "%s\n" "#define USE_DNSCRYPT 1" >>confdefs.h 24448 24449 ENABLE_DNSCRYPT=1 24450 24451 24452 DNSCRYPT_SRC="dnscrypt/dnscrypt.c" 24453 24454 DNSCRYPT_OBJ="dnscrypt.lo" 24455 24456 24457 else 24458 ENABLE_DNSCRYPT_XCHACHA20=0 24459 24460 24461 ENABLE_DNSCRYPT=0 24462 24463 24464 24465 fi 24466 24467 24468# check for cachedb if requested 24469# Check whether --enable-cachedb was given. 24470if test ${enable_cachedb+y} 24471then : 24472 enableval=$enable_cachedb; 24473fi 24474 24475# turn on cachedb when hiredis support is enabled. 24476if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi 24477case "$enable_cachedb" in 24478 yes) 24479 24480printf "%s\n" "#define USE_CACHEDB 1" >>confdefs.h 24481 24482 CACHEDB_SRC="cachedb/cachedb.c cachedb/redis.c" 24483 24484 CACHEDB_OBJ="cachedb.lo redis.lo" 24485 24486 ;; 24487 no|*) 24488 # nothing 24489 ;; 24490esac 24491 24492# check for ipsecmod if requested 24493# Check whether --enable-ipsecmod was given. 24494if test ${enable_ipsecmod+y} 24495then : 24496 enableval=$enable_ipsecmod; 24497fi 24498 24499case "$enable_ipsecmod" in 24500 yes) 24501 24502printf "%s\n" "#define USE_IPSECMOD 1" >>confdefs.h 24503 24504 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo" 24505 24506 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h' 24507 24508 ;; 24509 no|*) 24510 # nothing 24511 ;; 24512esac 24513 24514# check for ipset if requested 24515# Check whether --enable-ipset was given. 24516if test ${enable_ipset+y} 24517then : 24518 enableval=$enable_ipset; 24519fi 24520 24521case "$enable_ipset" in 24522 yes) 24523 24524printf "%s\n" "#define USE_IPSET 1" >>confdefs.h 24525 24526 IPSET_SRC="ipset/ipset.c" 24527 24528 IPSET_OBJ="ipset.lo" 24529 24530 24531 # BSD's pf 24532 for ac_header in net/pfvar.h 24533do : 24534 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" " 24535 #include <netinet/in.h> 24536 #include <net/if.h> 24537 24538" 24539if test "x$ac_cv_header_net_pfvar_h" = xyes 24540then : 24541 printf "%s\n" "#define HAVE_NET_PFVAR_H 1" >>confdefs.h 24542 24543else $as_nop 24544 24545 # mnl 24546 24547# Check whether --with-libmnl was given. 24548if test ${with_libmnl+y} 24549then : 24550 withval=$with_libmnl; 24551else $as_nop 24552 withval="yes" 24553fi 24554 24555 found_libmnl="no" 24556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5 24557printf %s "checking for libmnl... " >&6; } 24558 if test x_$withval = x_ -o x_$withval = x_yes; then 24559 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" 24560 fi 24561 for dir in $withval ; do 24562 if test -f "$dir/include/libmnl/libmnl.h" -o -f "$dir/include/libmnl/libmnl/libmnl.h"; then 24563 found_libmnl="yes" 24564 extralibmnl="" 24565 if test -f "$dir/include/libmnl/libmnl/libmnl.h"; then 24566 extralibmnl="/libmnl" 24567 fi 24568 if test "$dir" != "/usr" -o -n "$extralibmnl"; then 24569 CPPFLAGS="$CPPFLAGS -I$dir/include$extralibmnl" 24570 fi 24571 if test "$dir" != "/usr"; then 24572 LDFLAGS="$LDFLAGS -L$dir/lib" 24573 fi 24574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5 24575printf "%s\n" "found in $dir" >&6; } 24576 LIBS="$LIBS -lmnl" 24577 break; 24578 fi 24579 done 24580 if test x_$found_libmnl != x_yes; then 24581 as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5 24582 fi 24583 24584fi 24585 24586done 24587 ;; 24588 no|*) 24589 # nothing 24590 ;; 24591esac 24592# Check whether --enable-explicit-port-randomisation was given. 24593if test ${enable_explicit_port_randomisation+y} 24594then : 24595 enableval=$enable_explicit_port_randomisation; 24596fi 24597 24598case "$enable_explicit_port_randomisation" in 24599 no) 24600 24601printf "%s\n" "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h 24602 24603 ;; 24604 yes|*) 24605 ;; 24606esac 24607 24608if echo "$host" | $GREP -i -e linux >/dev/null; then 24609 # Check whether --enable-linux-ip-local-port-range was given. 24610if test ${enable_linux_ip_local_port_range+y} 24611then : 24612 enableval=$enable_linux_ip_local_port_range; 24613fi 24614 24615 case "$enable_linux_ip_local_port_range" in 24616 yes) 24617 24618printf "%s\n" "#define USE_LINUX_IP_LOCAL_PORT_RANGE 1" >>confdefs.h 24619 24620 ;; 24621 no|*) 24622 ;; 24623 esac 24624fi 24625 24626 24627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5 24628printf %s "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; } 24629# on openBSD, the implicit rule make $< work. 24630# on Solaris, it does not work ($? is changed sources, $^ lists dependencies). 24631# gmake works. 24632cat >conftest.make <<EOF 24633all: conftest.lo 24634 24635conftest.lo foo.lo bla.lo: 24636 if test -f "\$<"; then touch \$@; fi 24637 24638.SUFFIXES: .lo 24639.c.lo: 24640 if test -f "\$<"; then touch \$@; fi 24641 24642conftest.lo: conftest.dir/conftest.c 24643EOF 24644mkdir conftest.dir 24645touch conftest.dir/conftest.c 24646rm -f conftest.lo conftest.c 24647${MAKE:-make} -f conftest.make >/dev/null 24648rm -f conftest.make conftest.c conftest.dir/conftest.c 24649rm -rf conftest.dir 24650if test ! -f conftest.lo; then 24651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24652printf "%s\n" "no" >&6; } 24653 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source' 24654 SOURCEFILE='`cat .source`' 24655else 24656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24657printf "%s\n" "yes" >&6; } 24658 SOURCEDETERMINE=':' 24659 SOURCEFILE='$<' 24660fi 24661rm -f conftest.lo 24662 24663 24664 24665# see if we want to build the library or everything 24666ALLTARGET="alltargets" 24667INSTALLTARGET="install-all" 24668 24669# Check whether --with-libunbound-only was given. 24670if test ${with_libunbound_only+y} 24671then : 24672 withval=$with_libunbound_only; 24673 if test "$withval" = "yes"; then 24674 ALLTARGET="lib" 24675 INSTALLTARGET="install-lib" 24676 fi 24677 24678fi 24679 24680if test $ALLTARGET = "alltargets"; then 24681 if test $USE_NSS = "yes"; then 24682 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5 24683 fi 24684 if test $USE_NETTLE = "yes"; then 24685 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5 24686 fi 24687fi 24688 24689 24690 24691 24692 24693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5 24694printf "%s\n" "$as_me: Stripping extension flags..." >&6;} 24695 24696 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then 24697 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`" 24698 24699printf "%s\n" "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h 24700 24701 fi 24702 24703 24704 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then 24705 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`" 24706 24707printf "%s\n" "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h 24708 24709 fi 24710 24711 24712 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then 24713 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`" 24714 24715printf "%s\n" "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h 24716 24717 fi 24718 24719 24720 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then 24721 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`" 24722 24723printf "%s\n" "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h 24724 24725 fi 24726 24727 24728 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then 24729 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`" 24730 24731printf "%s\n" "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h 24732 24733 fi 24734 24735 24736 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then 24737 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`" 24738 24739printf "%s\n" "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h 24740 24741 fi 24742 24743 24744 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then 24745 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`" 24746 24747printf "%s\n" "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h 24748 24749 fi 24750 24751 24752 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then 24753 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`" 24754 24755printf "%s\n" "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h 24756 24757 fi 24758 24759 24760 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then 24761 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`" 24762 24763printf "%s\n" "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h 24764 24765 fi 24766 24767 24768if test -n "$LATE_LDFLAGS"; then 24769 LDFLAGS="$LATE_LDFLAGS $LDFLAGS" 24770fi 24771# remove start spaces 24772LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'` 24773LIBS=`echo "$LIBS"|sed -e 's/^ *//'` 24774 24775 24776printf "%s\n" "#define MAXSYSLOGMSGLEN 10240" >>confdefs.h 24777 24778 24779 24780 24781version=1.21.1 24782 24783date=`date +'%b %e, %Y'` 24784 24785 24786ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h contrib/libunbound.pc contrib/unbound.socket contrib/unbound.service contrib/unbound_portable.service" 24787 24788ac_config_headers="$ac_config_headers config.h" 24789 24790cat >confcache <<\_ACEOF 24791# This file is a shell script that caches the results of configure 24792# tests run on this system so they can be shared between configure 24793# scripts and configure runs, see configure's option --config-cache. 24794# It is not useful on other systems. If it contains results you don't 24795# want to keep, you may remove or edit it. 24796# 24797# config.status only pays attention to the cache file if you give it 24798# the --recheck option to rerun configure. 24799# 24800# `ac_cv_env_foo' variables (set or unset) will be overridden when 24801# loading this file, other *unset* `ac_cv_foo' will be assigned the 24802# following values. 24803 24804_ACEOF 24805 24806# The following way of writing the cache mishandles newlines in values, 24807# but we know of no workaround that is simple, portable, and efficient. 24808# So, we kill variables containing newlines. 24809# Ultrix sh set writes to stderr and can't be redirected directly, 24810# and sets the high bit in the cache file unless we assign to the vars. 24811( 24812 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 24813 eval ac_val=\$$ac_var 24814 case $ac_val in #( 24815 *${as_nl}*) 24816 case $ac_var in #( 24817 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 24818printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 24819 esac 24820 case $ac_var in #( 24821 _ | IFS | as_nl) ;; #( 24822 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 24823 *) { eval $ac_var=; unset $ac_var;} ;; 24824 esac ;; 24825 esac 24826 done 24827 24828 (set) 2>&1 | 24829 case $as_nl`(ac_space=' '; set) 2>&1` in #( 24830 *${as_nl}ac_space=\ *) 24831 # `set' does not quote correctly, so add quotes: double-quote 24832 # substitution turns \\\\ into \\, and sed turns \\ into \. 24833 sed -n \ 24834 "s/'/'\\\\''/g; 24835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24836 ;; #( 24837 *) 24838 # `set' quotes correctly as required by POSIX, so do not add quotes. 24839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 24840 ;; 24841 esac | 24842 sort 24843) | 24844 sed ' 24845 /^ac_cv_env_/b end 24846 t clear 24847 :clear 24848 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 24849 t end 24850 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24851 :end' >>confcache 24852if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 24853 if test -w "$cache_file"; then 24854 if test "x$cache_file" != "x/dev/null"; then 24855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 24856printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 24857 if test ! -f "$cache_file" || test -h "$cache_file"; then 24858 cat confcache >"$cache_file" 24859 else 24860 case $cache_file in #( 24861 */* | ?:*) 24862 mv -f confcache "$cache_file"$$ && 24863 mv -f "$cache_file"$$ "$cache_file" ;; #( 24864 *) 24865 mv -f confcache "$cache_file" ;; 24866 esac 24867 fi 24868 fi 24869 else 24870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 24871printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 24872 fi 24873fi 24874rm -f confcache 24875 24876test "x$prefix" = xNONE && prefix=$ac_default_prefix 24877# Let make expand exec_prefix. 24878test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24879 24880DEFS=-DHAVE_CONFIG_H 24881 24882ac_libobjs= 24883ac_ltlibobjs= 24884U= 24885for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 24886 # 1. Remove the extension, and $U if already installed. 24887 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 24888 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 24889 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 24890 # will be set to the directory where LIBOBJS objects are built. 24891 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 24892 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 24893done 24894LIBOBJS=$ac_libobjs 24895 24896LTLIBOBJS=$ac_ltlibobjs 24897 24898 24899if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then 24900 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined. 24901Usually this means the macro was only invoked conditionally." "$LINENO" 5 24902fi 24903 24904: "${CONFIG_STATUS=./config.status}" 24905ac_write_fail=0 24906ac_clean_files_save=$ac_clean_files 24907ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 24909printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 24910as_write_fail=0 24911cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 24912#! $SHELL 24913# Generated by $as_me. 24914# Run this file to recreate the current configuration. 24915# Compiler output produced by configure, useful for debugging 24916# configure, is in config.log if it exists. 24917 24918debug=false 24919ac_cs_recheck=false 24920ac_cs_silent=false 24921 24922SHELL=\${CONFIG_SHELL-$SHELL} 24923export SHELL 24924_ASEOF 24925cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 24926## -------------------- ## 24927## M4sh Initialization. ## 24928## -------------------- ## 24929 24930# Be more Bourne compatible 24931DUALCASE=1; export DUALCASE # for MKS sh 24932as_nop=: 24933if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 24934then : 24935 emulate sh 24936 NULLCMD=: 24937 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24938 # is contrary to our usage. Disable this feature. 24939 alias -g '${1+"$@"}'='"$@"' 24940 setopt NO_GLOB_SUBST 24941else $as_nop 24942 case `(set -o) 2>/dev/null` in #( 24943 *posix*) : 24944 set -o posix ;; #( 24945 *) : 24946 ;; 24947esac 24948fi 24949 24950 24951 24952# Reset variables that may have inherited troublesome values from 24953# the environment. 24954 24955# IFS needs to be set, to space, tab, and newline, in precisely that order. 24956# (If _AS_PATH_WALK were called with IFS unset, it would have the 24957# side effect of setting IFS to empty, thus disabling word splitting.) 24958# Quoting is to prevent editors from complaining about space-tab. 24959as_nl=' 24960' 24961export as_nl 24962IFS=" "" $as_nl" 24963 24964PS1='$ ' 24965PS2='> ' 24966PS4='+ ' 24967 24968# Ensure predictable behavior from utilities with locale-dependent output. 24969LC_ALL=C 24970export LC_ALL 24971LANGUAGE=C 24972export LANGUAGE 24973 24974# We cannot yet rely on "unset" to work, but we need these variables 24975# to be unset--not just set to an empty or harmless value--now, to 24976# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 24977# also avoids known problems related to "unset" and subshell syntax 24978# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 24979for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 24980do eval test \${$as_var+y} \ 24981 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 24982done 24983 24984# Ensure that fds 0, 1, and 2 are open. 24985if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 24986if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 24987if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 24988 24989# The user is always right. 24990if ${PATH_SEPARATOR+false} :; then 24991 PATH_SEPARATOR=: 24992 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 24993 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 24994 PATH_SEPARATOR=';' 24995 } 24996fi 24997 24998 24999# Find who we are. Look in the path if we contain no directory separator. 25000as_myself= 25001case $0 in #(( 25002 *[\\/]* ) as_myself=$0 ;; 25003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25004for as_dir in $PATH 25005do 25006 IFS=$as_save_IFS 25007 case $as_dir in #((( 25008 '') as_dir=./ ;; 25009 */) ;; 25010 *) as_dir=$as_dir/ ;; 25011 esac 25012 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 25013 done 25014IFS=$as_save_IFS 25015 25016 ;; 25017esac 25018# We did not find ourselves, most probably we were run as `sh COMMAND' 25019# in which case we are not to be found in the path. 25020if test "x$as_myself" = x; then 25021 as_myself=$0 25022fi 25023if test ! -f "$as_myself"; then 25024 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 25025 exit 1 25026fi 25027 25028 25029 25030# as_fn_error STATUS ERROR [LINENO LOG_FD] 25031# ---------------------------------------- 25032# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 25033# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 25034# script with STATUS, using 1 if that was 0. 25035as_fn_error () 25036{ 25037 as_status=$1; test $as_status -eq 0 && as_status=1 25038 if test "$4"; then 25039 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 25040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 25041 fi 25042 printf "%s\n" "$as_me: error: $2" >&2 25043 as_fn_exit $as_status 25044} # as_fn_error 25045 25046 25047 25048# as_fn_set_status STATUS 25049# ----------------------- 25050# Set $? to STATUS, without forking. 25051as_fn_set_status () 25052{ 25053 return $1 25054} # as_fn_set_status 25055 25056# as_fn_exit STATUS 25057# ----------------- 25058# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 25059as_fn_exit () 25060{ 25061 set +e 25062 as_fn_set_status $1 25063 exit $1 25064} # as_fn_exit 25065 25066# as_fn_unset VAR 25067# --------------- 25068# Portably unset VAR. 25069as_fn_unset () 25070{ 25071 { eval $1=; unset $1;} 25072} 25073as_unset=as_fn_unset 25074 25075# as_fn_append VAR VALUE 25076# ---------------------- 25077# Append the text in VALUE to the end of the definition contained in VAR. Take 25078# advantage of any shell optimizations that allow amortized linear growth over 25079# repeated appends, instead of the typical quadratic growth present in naive 25080# implementations. 25081if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 25082then : 25083 eval 'as_fn_append () 25084 { 25085 eval $1+=\$2 25086 }' 25087else $as_nop 25088 as_fn_append () 25089 { 25090 eval $1=\$$1\$2 25091 } 25092fi # as_fn_append 25093 25094# as_fn_arith ARG... 25095# ------------------ 25096# Perform arithmetic evaluation on the ARGs, and store the result in the 25097# global $as_val. Take advantage of shells that can avoid forks. The arguments 25098# must be portable across $(()) and expr. 25099if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 25100then : 25101 eval 'as_fn_arith () 25102 { 25103 as_val=$(( $* )) 25104 }' 25105else $as_nop 25106 as_fn_arith () 25107 { 25108 as_val=`expr "$@" || test $? -eq 1` 25109 } 25110fi # as_fn_arith 25111 25112 25113if expr a : '\(a\)' >/dev/null 2>&1 && 25114 test "X`expr 00001 : '.*\(...\)'`" = X001; then 25115 as_expr=expr 25116else 25117 as_expr=false 25118fi 25119 25120if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 25121 as_basename=basename 25122else 25123 as_basename=false 25124fi 25125 25126if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 25127 as_dirname=dirname 25128else 25129 as_dirname=false 25130fi 25131 25132as_me=`$as_basename -- "$0" || 25133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 25134 X"$0" : 'X\(//\)$' \| \ 25135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 25136printf "%s\n" X/"$0" | 25137 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25138 s//\1/ 25139 q 25140 } 25141 /^X\/\(\/\/\)$/{ 25142 s//\1/ 25143 q 25144 } 25145 /^X\/\(\/\).*/{ 25146 s//\1/ 25147 q 25148 } 25149 s/.*/./; q'` 25150 25151# Avoid depending upon Character Ranges. 25152as_cr_letters='abcdefghijklmnopqrstuvwxyz' 25153as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 25154as_cr_Letters=$as_cr_letters$as_cr_LETTERS 25155as_cr_digits='0123456789' 25156as_cr_alnum=$as_cr_Letters$as_cr_digits 25157 25158 25159# Determine whether it's possible to make 'echo' print without a newline. 25160# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 25161# for compatibility with existing Makefiles. 25162ECHO_C= ECHO_N= ECHO_T= 25163case `echo -n x` in #((((( 25164-n*) 25165 case `echo 'xy\c'` in 25166 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 25167 xy) ECHO_C='\c';; 25168 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 25169 ECHO_T=' ';; 25170 esac;; 25171*) 25172 ECHO_N='-n';; 25173esac 25174 25175# For backward compatibility with old third-party macros, we provide 25176# the shell variables $as_echo and $as_echo_n. New code should use 25177# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 25178as_echo='printf %s\n' 25179as_echo_n='printf %s' 25180 25181rm -f conf$$ conf$$.exe conf$$.file 25182if test -d conf$$.dir; then 25183 rm -f conf$$.dir/conf$$.file 25184else 25185 rm -f conf$$.dir 25186 mkdir conf$$.dir 2>/dev/null 25187fi 25188if (echo >conf$$.file) 2>/dev/null; then 25189 if ln -s conf$$.file conf$$ 2>/dev/null; then 25190 as_ln_s='ln -s' 25191 # ... but there are two gotchas: 25192 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 25193 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 25194 # In both cases, we have to default to `cp -pR'. 25195 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 25196 as_ln_s='cp -pR' 25197 elif ln conf$$.file conf$$ 2>/dev/null; then 25198 as_ln_s=ln 25199 else 25200 as_ln_s='cp -pR' 25201 fi 25202else 25203 as_ln_s='cp -pR' 25204fi 25205rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 25206rmdir conf$$.dir 2>/dev/null 25207 25208 25209# as_fn_mkdir_p 25210# ------------- 25211# Create "$as_dir" as a directory, including parents if necessary. 25212as_fn_mkdir_p () 25213{ 25214 25215 case $as_dir in #( 25216 -*) as_dir=./$as_dir;; 25217 esac 25218 test -d "$as_dir" || eval $as_mkdir_p || { 25219 as_dirs= 25220 while :; do 25221 case $as_dir in #( 25222 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25223 *) as_qdir=$as_dir;; 25224 esac 25225 as_dirs="'$as_qdir' $as_dirs" 25226 as_dir=`$as_dirname -- "$as_dir" || 25227$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25228 X"$as_dir" : 'X\(//\)[^/]' \| \ 25229 X"$as_dir" : 'X\(//\)$' \| \ 25230 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25231printf "%s\n" X"$as_dir" | 25232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25233 s//\1/ 25234 q 25235 } 25236 /^X\(\/\/\)[^/].*/{ 25237 s//\1/ 25238 q 25239 } 25240 /^X\(\/\/\)$/{ 25241 s//\1/ 25242 q 25243 } 25244 /^X\(\/\).*/{ 25245 s//\1/ 25246 q 25247 } 25248 s/.*/./; q'` 25249 test -d "$as_dir" && break 25250 done 25251 test -z "$as_dirs" || eval "mkdir $as_dirs" 25252 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 25253 25254 25255} # as_fn_mkdir_p 25256if mkdir -p . 2>/dev/null; then 25257 as_mkdir_p='mkdir -p "$as_dir"' 25258else 25259 test -d ./-p && rmdir ./-p 25260 as_mkdir_p=false 25261fi 25262 25263 25264# as_fn_executable_p FILE 25265# ----------------------- 25266# Test if FILE is an executable regular file. 25267as_fn_executable_p () 25268{ 25269 test -f "$1" && test -x "$1" 25270} # as_fn_executable_p 25271as_test_x='test -x' 25272as_executable_p=as_fn_executable_p 25273 25274# Sed expression to map a string onto a valid CPP name. 25275as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 25276 25277# Sed expression to map a string onto a valid variable name. 25278as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 25279 25280 25281exec 6>&1 25282## ----------------------------------- ## 25283## Main body of $CONFIG_STATUS script. ## 25284## ----------------------------------- ## 25285_ASEOF 25286test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 25287 25288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25289# Save the log message, to keep $0 and so on meaningful, and to 25290# report actual input values of CONFIG_FILES etc. instead of their 25291# values after options handling. 25292ac_log=" 25293This file was extended by unbound $as_me 1.21.1, which was 25294generated by GNU Autoconf 2.71. Invocation command line was 25295 25296 CONFIG_FILES = $CONFIG_FILES 25297 CONFIG_HEADERS = $CONFIG_HEADERS 25298 CONFIG_LINKS = $CONFIG_LINKS 25299 CONFIG_COMMANDS = $CONFIG_COMMANDS 25300 $ $0 $@ 25301 25302on `(hostname || uname -n) 2>/dev/null | sed 1q` 25303" 25304 25305_ACEOF 25306 25307case $ac_config_files in *" 25308"*) set x $ac_config_files; shift; ac_config_files=$*;; 25309esac 25310 25311case $ac_config_headers in *" 25312"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 25313esac 25314 25315 25316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25317# Files that config.status was made for. 25318config_files="$ac_config_files" 25319config_headers="$ac_config_headers" 25320config_commands="$ac_config_commands" 25321 25322_ACEOF 25323 25324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25325ac_cs_usage="\ 25326\`$as_me' instantiates files and other configuration actions 25327from templates according to the current configuration. Unless the files 25328and actions are specified as TAGs, all are instantiated by default. 25329 25330Usage: $0 [OPTION]... [TAG]... 25331 25332 -h, --help print this help, then exit 25333 -V, --version print version number and configuration settings, then exit 25334 --config print configuration, then exit 25335 -q, --quiet, --silent 25336 do not print progress messages 25337 -d, --debug don't remove temporary files 25338 --recheck update $as_me by reconfiguring in the same conditions 25339 --file=FILE[:TEMPLATE] 25340 instantiate the configuration file FILE 25341 --header=FILE[:TEMPLATE] 25342 instantiate the configuration header FILE 25343 25344Configuration files: 25345$config_files 25346 25347Configuration headers: 25348$config_headers 25349 25350Configuration commands: 25351$config_commands 25352 25353Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>." 25354 25355_ACEOF 25356ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 25357ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 25358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25359ac_cs_config='$ac_cs_config_escaped' 25360ac_cs_version="\\ 25361unbound config.status 1.21.1 25362configured by $0, generated by GNU Autoconf 2.71, 25363 with options \\"\$ac_cs_config\\" 25364 25365Copyright (C) 2021 Free Software Foundation, Inc. 25366This config.status script is free software; the Free Software Foundation 25367gives unlimited permission to copy, distribute and modify it." 25368 25369ac_pwd='$ac_pwd' 25370srcdir='$srcdir' 25371AWK='$AWK' 25372test -n "\$AWK" || AWK=awk 25373_ACEOF 25374 25375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25376# The default lists apply if the user does not specify any file. 25377ac_need_defaults=: 25378while test $# != 0 25379do 25380 case $1 in 25381 --*=?*) 25382 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25383 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 25384 ac_shift=: 25385 ;; 25386 --*=) 25387 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25388 ac_optarg= 25389 ac_shift=: 25390 ;; 25391 *) 25392 ac_option=$1 25393 ac_optarg=$2 25394 ac_shift=shift 25395 ;; 25396 esac 25397 25398 case $ac_option in 25399 # Handling of the options. 25400 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 25401 ac_cs_recheck=: ;; 25402 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 25403 printf "%s\n" "$ac_cs_version"; exit ;; 25404 --config | --confi | --conf | --con | --co | --c ) 25405 printf "%s\n" "$ac_cs_config"; exit ;; 25406 --debug | --debu | --deb | --de | --d | -d ) 25407 debug=: ;; 25408 --file | --fil | --fi | --f ) 25409 $ac_shift 25410 case $ac_optarg in 25411 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25412 '') as_fn_error $? "missing file argument" ;; 25413 esac 25414 as_fn_append CONFIG_FILES " '$ac_optarg'" 25415 ac_need_defaults=false;; 25416 --header | --heade | --head | --hea ) 25417 $ac_shift 25418 case $ac_optarg in 25419 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25420 esac 25421 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 25422 ac_need_defaults=false;; 25423 --he | --h) 25424 # Conflict between --help and --header 25425 as_fn_error $? "ambiguous option: \`$1' 25426Try \`$0 --help' for more information.";; 25427 --help | --hel | -h ) 25428 printf "%s\n" "$ac_cs_usage"; exit ;; 25429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 25430 | -silent | --silent | --silen | --sile | --sil | --si | --s) 25431 ac_cs_silent=: ;; 25432 25433 # This is an error. 25434 -*) as_fn_error $? "unrecognized option: \`$1' 25435Try \`$0 --help' for more information." ;; 25436 25437 *) as_fn_append ac_config_targets " $1" 25438 ac_need_defaults=false ;; 25439 25440 esac 25441 shift 25442done 25443 25444ac_configure_extra_args= 25445 25446if $ac_cs_silent; then 25447 exec 6>/dev/null 25448 ac_configure_extra_args="$ac_configure_extra_args --silent" 25449fi 25450 25451_ACEOF 25452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25453if \$ac_cs_recheck; then 25454 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 25455 shift 25456 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 25457 CONFIG_SHELL='$SHELL' 25458 export CONFIG_SHELL 25459 exec "\$@" 25460fi 25461 25462_ACEOF 25463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25464exec 5>>config.log 25465{ 25466 echo 25467 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25468## Running $as_me. ## 25469_ASBOX 25470 printf "%s\n" "$ac_log" 25471} >&5 25472 25473_ACEOF 25474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25475# 25476# INIT-COMMANDS 25477# 25478 25479 25480# The HP-UX ksh and POSIX shell print the target directory to stdout 25481# if CDPATH is set. 25482(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25483 25484sed_quote_subst='$sed_quote_subst' 25485double_quote_subst='$double_quote_subst' 25486delay_variable_subst='$delay_variable_subst' 25487macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 25488macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 25489enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 25490enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 25491pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 25492enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 25493shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 25494SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 25495ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 25496PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 25497host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 25498host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 25499host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 25500build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 25501build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 25502build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 25503SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 25504Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 25505GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 25506EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 25507FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 25508LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 25509NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 25510LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 25511max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 25512ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 25513exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 25514lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 25515lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 25516lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 25517lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 25518lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 25519reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 25520reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 25521FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 25522OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 25523deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 25524file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 25525file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 25526want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 25527DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 25528sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 25529AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 25530lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 25531AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 25532archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 25533STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 25534RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 25535old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25536old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25537old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 25538lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 25539CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 25540CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 25541compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 25542GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 25543lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 25544lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 25545lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 25546lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 25547lt_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"`' 25548lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 25549nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 25550lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 25551lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 25552objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 25553MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 25554lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 25555lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 25556lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 25557lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 25558lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 25559need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 25560MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 25561DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 25562NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 25563LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 25564OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 25565OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 25566libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 25567shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 25568extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25569archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 25570enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 25571export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 25572whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 25573compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 25574old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 25575old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25576archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 25577archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25578module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 25579module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25580with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 25581allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 25582no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 25583hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 25584hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 25585hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 25586hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 25587hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 25588hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 25589hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 25590inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 25591link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 25592always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 25593export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 25594exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 25595include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 25596prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 25597postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 25598file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 25599variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 25600need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 25601need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 25602version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 25603runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 25604shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 25605shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 25606libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 25607library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 25608soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 25609install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 25610postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25611postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25612finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 25613finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 25614hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 25615sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 25616configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 25617configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 25618hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 25619enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 25620enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 25621enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 25622old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 25623striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 25624 25625LTCC='$LTCC' 25626LTCFLAGS='$LTCFLAGS' 25627compiler='$compiler_DEFAULT' 25628 25629# A function that is used when there is no print builtin or printf. 25630func_fallback_echo () 25631{ 25632 eval 'cat <<_LTECHO_EOF 25633\$1 25634_LTECHO_EOF' 25635} 25636 25637# Quote evaled strings. 25638for var in SHELL \ 25639ECHO \ 25640PATH_SEPARATOR \ 25641SED \ 25642GREP \ 25643EGREP \ 25644FGREP \ 25645LD \ 25646NM \ 25647LN_S \ 25648lt_SP2NL \ 25649lt_NL2SP \ 25650reload_flag \ 25651FILECMD \ 25652OBJDUMP \ 25653deplibs_check_method \ 25654file_magic_cmd \ 25655file_magic_glob \ 25656want_nocaseglob \ 25657DLLTOOL \ 25658sharedlib_from_linklib_cmd \ 25659AR \ 25660archiver_list_spec \ 25661STRIP \ 25662RANLIB \ 25663CC \ 25664CFLAGS \ 25665compiler \ 25666lt_cv_sys_global_symbol_pipe \ 25667lt_cv_sys_global_symbol_to_cdecl \ 25668lt_cv_sys_global_symbol_to_import \ 25669lt_cv_sys_global_symbol_to_c_name_address \ 25670lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 25671lt_cv_nm_interface \ 25672nm_file_list_spec \ 25673lt_cv_truncate_bin \ 25674lt_prog_compiler_no_builtin_flag \ 25675lt_prog_compiler_pic \ 25676lt_prog_compiler_wl \ 25677lt_prog_compiler_static \ 25678lt_cv_prog_compiler_c_o \ 25679need_locks \ 25680MANIFEST_TOOL \ 25681DSYMUTIL \ 25682NMEDIT \ 25683LIPO \ 25684OTOOL \ 25685OTOOL64 \ 25686shrext_cmds \ 25687export_dynamic_flag_spec \ 25688whole_archive_flag_spec \ 25689compiler_needs_object \ 25690with_gnu_ld \ 25691allow_undefined_flag \ 25692no_undefined_flag \ 25693hardcode_libdir_flag_spec \ 25694hardcode_libdir_separator \ 25695exclude_expsyms \ 25696include_expsyms \ 25697file_list_spec \ 25698variables_saved_for_relink \ 25699libname_spec \ 25700library_names_spec \ 25701soname_spec \ 25702install_override_mode \ 25703finish_eval \ 25704old_striplib \ 25705striplib; do 25706 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25707 *[\\\\\\\`\\"\\\$]*) 25708 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 25709 ;; 25710 *) 25711 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25712 ;; 25713 esac 25714done 25715 25716# Double-quote double-evaled strings. 25717for var in reload_cmds \ 25718old_postinstall_cmds \ 25719old_postuninstall_cmds \ 25720old_archive_cmds \ 25721extract_expsyms_cmds \ 25722old_archive_from_new_cmds \ 25723old_archive_from_expsyms_cmds \ 25724archive_cmds \ 25725archive_expsym_cmds \ 25726module_cmds \ 25727module_expsym_cmds \ 25728export_symbols_cmds \ 25729prelink_cmds \ 25730postlink_cmds \ 25731postinstall_cmds \ 25732postuninstall_cmds \ 25733finish_cmds \ 25734sys_lib_search_path_spec \ 25735configure_time_dlsearch_path \ 25736configure_time_lt_sys_library_path; do 25737 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25738 *[\\\\\\\`\\"\\\$]*) 25739 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 25740 ;; 25741 *) 25742 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25743 ;; 25744 esac 25745done 25746 25747ac_aux_dir='$ac_aux_dir' 25748 25749# See if we are running on zsh, and set the options that allow our 25750# commands through without removal of \ escapes INIT. 25751if test -n "\${ZSH_VERSION+set}"; then 25752 setopt NO_GLOB_SUBST 25753fi 25754 25755 25756 PACKAGE='$PACKAGE' 25757 VERSION='$VERSION' 25758 RM='$RM' 25759 ofile='$ofile' 25760 25761 25762 25763 25764_ACEOF 25765 25766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25767 25768# Handling of arguments. 25769for ac_config_target in $ac_config_targets 25770do 25771 case $ac_config_target in 25772 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 25773 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;; 25774 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 25775 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; 25776 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;; 25777 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;; 25778 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;; 25779 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;; 25780 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;; 25781 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;; 25782 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;; 25783 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;; 25784 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;; 25785 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;; 25786 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;; 25787 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;; 25788 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;; 25789 "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;; 25790 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 25791 25792 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 25793 esac 25794done 25795 25796 25797# If the user did not use the arguments to specify the items to instantiate, 25798# then the envvar interface is used. Set only those that are not. 25799# We use the long form for the default assignment because of an extremely 25800# bizarre bug on SunOS 4.1.3. 25801if $ac_need_defaults; then 25802 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 25803 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 25804 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 25805fi 25806 25807# Have a temporary directory for convenience. Make it in the build tree 25808# simply because there is no reason against having it here, and in addition, 25809# creating and moving files from /tmp can sometimes cause problems. 25810# Hook for its removal unless debugging. 25811# Note that there is a small window in which the directory will not be cleaned: 25812# after its creation but before its name has been assigned to `$tmp'. 25813$debug || 25814{ 25815 tmp= ac_tmp= 25816 trap 'exit_status=$? 25817 : "${ac_tmp:=$tmp}" 25818 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 25819' 0 25820 trap 'as_fn_exit 1' 1 2 13 15 25821} 25822# Create a (secure) tmp directory for tmp files. 25823 25824{ 25825 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 25826 test -d "$tmp" 25827} || 25828{ 25829 tmp=./conf$$-$RANDOM 25830 (umask 077 && mkdir "$tmp") 25831} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 25832ac_tmp=$tmp 25833 25834# Set up the scripts for CONFIG_FILES section. 25835# No need to generate them if there are no CONFIG_FILES. 25836# This happens for instance with `./config.status config.h'. 25837if test -n "$CONFIG_FILES"; then 25838 25839 25840ac_cr=`echo X | tr X '\015'` 25841# On cygwin, bash can eat \r inside `` if the user requested igncr. 25842# But we know of no other shell where ac_cr would be empty at this 25843# point, so we can use a bashism as a fallback. 25844if test "x$ac_cr" = x; then 25845 eval ac_cr=\$\'\\r\' 25846fi 25847ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 25848if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 25849 ac_cs_awk_cr='\\r' 25850else 25851 ac_cs_awk_cr=$ac_cr 25852fi 25853 25854echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 25855_ACEOF 25856 25857 25858{ 25859 echo "cat >conf$$subs.awk <<_ACEOF" && 25860 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 25861 echo "_ACEOF" 25862} >conf$$subs.sh || 25863 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25864ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 25865ac_delim='%!_!# ' 25866for ac_last_try in false false false false false :; do 25867 . ./conf$$subs.sh || 25868 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25869 25870 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 25871 if test $ac_delim_n = $ac_delim_num; then 25872 break 25873 elif $ac_last_try; then 25874 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25875 else 25876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25877 fi 25878done 25879rm -f conf$$subs.sh 25880 25881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25882cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 25883_ACEOF 25884sed -n ' 25885h 25886s/^/S["/; s/!.*/"]=/ 25887p 25888g 25889s/^[^!]*!// 25890:repl 25891t repl 25892s/'"$ac_delim"'$// 25893t delim 25894:nl 25895h 25896s/\(.\{148\}\)..*/\1/ 25897t more1 25898s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 25899p 25900n 25901b repl 25902:more1 25903s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25904p 25905g 25906s/.\{148\}// 25907t nl 25908:delim 25909h 25910s/\(.\{148\}\)..*/\1/ 25911t more2 25912s/["\\]/\\&/g; s/^/"/; s/$/"/ 25913p 25914b 25915:more2 25916s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25917p 25918g 25919s/.\{148\}// 25920t delim 25921' <conf$$subs.awk | sed ' 25922/^[^""]/{ 25923 N 25924 s/\n// 25925} 25926' >>$CONFIG_STATUS || ac_write_fail=1 25927rm -f conf$$subs.awk 25928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25929_ACAWK 25930cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 25931 for (key in S) S_is_set[key] = 1 25932 FS = "" 25933 25934} 25935{ 25936 line = $ 0 25937 nfields = split(line, field, "@") 25938 substed = 0 25939 len = length(field[1]) 25940 for (i = 2; i < nfields; i++) { 25941 key = field[i] 25942 keylen = length(key) 25943 if (S_is_set[key]) { 25944 value = S[key] 25945 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 25946 len += length(value) + length(field[++i]) 25947 substed = 1 25948 } else 25949 len += 1 + keylen 25950 } 25951 25952 print line 25953} 25954 25955_ACAWK 25956_ACEOF 25957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25958if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 25959 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 25960else 25961 cat 25962fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 25963 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 25964_ACEOF 25965 25966# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 25967# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 25968# trailing colons and then remove the whole line if VPATH becomes empty 25969# (actually we leave an empty line to preserve line numbers). 25970if test "x$srcdir" = x.; then 25971 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 25972h 25973s/// 25974s/^/:/ 25975s/[ ]*$/:/ 25976s/:\$(srcdir):/:/g 25977s/:\${srcdir}:/:/g 25978s/:@srcdir@:/:/g 25979s/^:*// 25980s/:*$// 25981x 25982s/\(=[ ]*\).*/\1/ 25983G 25984s/\n// 25985s/^[^=]*=[ ]*$// 25986}' 25987fi 25988 25989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25990fi # test -n "$CONFIG_FILES" 25991 25992# Set up the scripts for CONFIG_HEADERS section. 25993# No need to generate them if there are no CONFIG_HEADERS. 25994# This happens for instance with `./config.status Makefile'. 25995if test -n "$CONFIG_HEADERS"; then 25996cat >"$ac_tmp/defines.awk" <<\_ACAWK || 25997BEGIN { 25998_ACEOF 25999 26000# Transform confdefs.h into an awk script `defines.awk', embedded as 26001# here-document in config.status, that substitutes the proper values into 26002# config.h.in to produce config.h. 26003 26004# Create a delimiter string that does not exist in confdefs.h, to ease 26005# handling of long lines. 26006ac_delim='%!_!# ' 26007for ac_last_try in false false :; do 26008 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 26009 if test -z "$ac_tt"; then 26010 break 26011 elif $ac_last_try; then 26012 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 26013 else 26014 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26015 fi 26016done 26017 26018# For the awk script, D is an array of macro values keyed by name, 26019# likewise P contains macro parameters if any. Preserve backslash 26020# newline sequences. 26021 26022ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 26023sed -n ' 26024s/.\{148\}/&'"$ac_delim"'/g 26025t rset 26026:rset 26027s/^[ ]*#[ ]*define[ ][ ]*/ / 26028t def 26029d 26030:def 26031s/\\$// 26032t bsnl 26033s/["\\]/\\&/g 26034s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26035D["\1"]=" \3"/p 26036s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 26037d 26038:bsnl 26039s/["\\]/\\&/g 26040s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26041D["\1"]=" \3\\\\\\n"\\/p 26042t cont 26043s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 26044t cont 26045d 26046:cont 26047n 26048s/.\{148\}/&'"$ac_delim"'/g 26049t clear 26050:clear 26051s/\\$// 26052t bsnlc 26053s/["\\]/\\&/g; s/^/"/; s/$/"/p 26054d 26055:bsnlc 26056s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 26057b cont 26058' <confdefs.h | sed ' 26059s/'"$ac_delim"'/"\\\ 26060"/g' >>$CONFIG_STATUS || ac_write_fail=1 26061 26062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26063 for (key in D) D_is_set[key] = 1 26064 FS = "" 26065} 26066/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 26067 line = \$ 0 26068 split(line, arg, " ") 26069 if (arg[1] == "#") { 26070 defundef = arg[2] 26071 mac1 = arg[3] 26072 } else { 26073 defundef = substr(arg[1], 2) 26074 mac1 = arg[2] 26075 } 26076 split(mac1, mac2, "(") #) 26077 macro = mac2[1] 26078 prefix = substr(line, 1, index(line, defundef) - 1) 26079 if (D_is_set[macro]) { 26080 # Preserve the white space surrounding the "#". 26081 print prefix "define", macro P[macro] D[macro] 26082 next 26083 } else { 26084 # Replace #undef with comments. This is necessary, for example, 26085 # in the case of _POSIX_SOURCE, which is predefined and required 26086 # on some systems where configure will not decide to define it. 26087 if (defundef == "undef") { 26088 print "/*", prefix defundef, macro, "*/" 26089 next 26090 } 26091 } 26092} 26093{ print } 26094_ACAWK 26095_ACEOF 26096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26097 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 26098fi # test -n "$CONFIG_HEADERS" 26099 26100 26101eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 26102shift 26103for ac_tag 26104do 26105 case $ac_tag in 26106 :[FHLC]) ac_mode=$ac_tag; continue;; 26107 esac 26108 case $ac_mode$ac_tag in 26109 :[FHL]*:*);; 26110 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 26111 :[FH]-) ac_tag=-:-;; 26112 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 26113 esac 26114 ac_save_IFS=$IFS 26115 IFS=: 26116 set x $ac_tag 26117 IFS=$ac_save_IFS 26118 shift 26119 ac_file=$1 26120 shift 26121 26122 case $ac_mode in 26123 :L) ac_source=$1;; 26124 :[FH]) 26125 ac_file_inputs= 26126 for ac_f 26127 do 26128 case $ac_f in 26129 -) ac_f="$ac_tmp/stdin";; 26130 *) # Look for the file first in the build tree, then in the source tree 26131 # (if the path is not absolute). The absolute path cannot be DOS-style, 26132 # because $ac_f cannot contain `:'. 26133 test -f "$ac_f" || 26134 case $ac_f in 26135 [\\/$]*) false;; 26136 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 26137 esac || 26138 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 26139 esac 26140 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 26141 as_fn_append ac_file_inputs " '$ac_f'" 26142 done 26143 26144 # Let's still pretend it is `configure' which instantiates (i.e., don't 26145 # use $as_me), people would be surprised to read: 26146 # /* config.h. Generated by config.status. */ 26147 configure_input='Generated from '` 26148 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 26149 `' by configure.' 26150 if test x"$ac_file" != x-; then 26151 configure_input="$ac_file. $configure_input" 26152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 26153printf "%s\n" "$as_me: creating $ac_file" >&6;} 26154 fi 26155 # Neutralize special characters interpreted by sed in replacement strings. 26156 case $configure_input in #( 26157 *\&* | *\|* | *\\* ) 26158 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 26159 sed 's/[\\\\&|]/\\\\&/g'`;; #( 26160 *) ac_sed_conf_input=$configure_input;; 26161 esac 26162 26163 case $ac_tag in 26164 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 26165 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 26166 esac 26167 ;; 26168 esac 26169 26170 ac_dir=`$as_dirname -- "$ac_file" || 26171$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26172 X"$ac_file" : 'X\(//\)[^/]' \| \ 26173 X"$ac_file" : 'X\(//\)$' \| \ 26174 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 26175printf "%s\n" X"$ac_file" | 26176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26177 s//\1/ 26178 q 26179 } 26180 /^X\(\/\/\)[^/].*/{ 26181 s//\1/ 26182 q 26183 } 26184 /^X\(\/\/\)$/{ 26185 s//\1/ 26186 q 26187 } 26188 /^X\(\/\).*/{ 26189 s//\1/ 26190 q 26191 } 26192 s/.*/./; q'` 26193 as_dir="$ac_dir"; as_fn_mkdir_p 26194 ac_builddir=. 26195 26196case "$ac_dir" in 26197.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 26198*) 26199 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 26200 # A ".." for each directory in $ac_dir_suffix. 26201 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 26202 case $ac_top_builddir_sub in 26203 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 26204 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 26205 esac ;; 26206esac 26207ac_abs_top_builddir=$ac_pwd 26208ac_abs_builddir=$ac_pwd$ac_dir_suffix 26209# for backward compatibility: 26210ac_top_builddir=$ac_top_build_prefix 26211 26212case $srcdir in 26213 .) # We are building in place. 26214 ac_srcdir=. 26215 ac_top_srcdir=$ac_top_builddir_sub 26216 ac_abs_top_srcdir=$ac_pwd ;; 26217 [\\/]* | ?:[\\/]* ) # Absolute name. 26218 ac_srcdir=$srcdir$ac_dir_suffix; 26219 ac_top_srcdir=$srcdir 26220 ac_abs_top_srcdir=$srcdir ;; 26221 *) # Relative name. 26222 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 26223 ac_top_srcdir=$ac_top_build_prefix$srcdir 26224 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 26225esac 26226ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 26227 26228 26229 case $ac_mode in 26230 :F) 26231 # 26232 # CONFIG_FILE 26233 # 26234 26235_ACEOF 26236 26237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26238# If the template does not know about datarootdir, expand it. 26239# FIXME: This hack should be removed a few years after 2.60. 26240ac_datarootdir_hack=; ac_datarootdir_seen= 26241ac_sed_dataroot=' 26242/datarootdir/ { 26243 p 26244 q 26245} 26246/@datadir@/p 26247/@docdir@/p 26248/@infodir@/p 26249/@localedir@/p 26250/@mandir@/p' 26251case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 26252*datarootdir*) ac_datarootdir_seen=yes;; 26253*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 26254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 26255printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 26256_ACEOF 26257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26258 ac_datarootdir_hack=' 26259 s&@datadir@&$datadir&g 26260 s&@docdir@&$docdir&g 26261 s&@infodir@&$infodir&g 26262 s&@localedir@&$localedir&g 26263 s&@mandir@&$mandir&g 26264 s&\\\${datarootdir}&$datarootdir&g' ;; 26265esac 26266_ACEOF 26267 26268# Neutralize VPATH when `$srcdir' = `.'. 26269# Shell code in configure.ac might set extrasub. 26270# FIXME: do we really want to maintain this feature? 26271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26272ac_sed_extra="$ac_vpsub 26273$extrasub 26274_ACEOF 26275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26276:t 26277/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26278s|@configure_input@|$ac_sed_conf_input|;t t 26279s&@top_builddir@&$ac_top_builddir_sub&;t t 26280s&@top_build_prefix@&$ac_top_build_prefix&;t t 26281s&@srcdir@&$ac_srcdir&;t t 26282s&@abs_srcdir@&$ac_abs_srcdir&;t t 26283s&@top_srcdir@&$ac_top_srcdir&;t t 26284s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 26285s&@builddir@&$ac_builddir&;t t 26286s&@abs_builddir@&$ac_abs_builddir&;t t 26287s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 26288$ac_datarootdir_hack 26289" 26290eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 26291 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26292 26293test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 26294 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 26295 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 26296 "$ac_tmp/out"`; test -z "$ac_out"; } && 26297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26298which seems to be undefined. Please make sure it is defined" >&5 26299printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26300which seems to be undefined. Please make sure it is defined" >&2;} 26301 26302 rm -f "$ac_tmp/stdin" 26303 case $ac_file in 26304 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 26305 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 26306 esac \ 26307 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26308 ;; 26309 :H) 26310 # 26311 # CONFIG_HEADER 26312 # 26313 if test x"$ac_file" != x-; then 26314 { 26315 printf "%s\n" "/* $configure_input */" >&1 \ 26316 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 26317 } >"$ac_tmp/config.h" \ 26318 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26319 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 26320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 26321printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 26322 else 26323 rm -f "$ac_file" 26324 mv "$ac_tmp/config.h" "$ac_file" \ 26325 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26326 fi 26327 else 26328 printf "%s\n" "/* $configure_input */" >&1 \ 26329 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 26330 || as_fn_error $? "could not create -" "$LINENO" 5 26331 fi 26332 ;; 26333 26334 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 26335printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 26336 ;; 26337 esac 26338 26339 26340 case $ac_file$ac_mode in 26341 "libtool":C) 26342 26343 # See if we are running on zsh, and set the options that allow our 26344 # commands through without removal of \ escapes. 26345 if test -n "${ZSH_VERSION+set}"; then 26346 setopt NO_GLOB_SUBST 26347 fi 26348 26349 cfgfile=${ofile}T 26350 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 26351 $RM "$cfgfile" 26352 26353 cat <<_LT_EOF >> "$cfgfile" 26354#! $SHELL 26355# Generated automatically by $as_me ($PACKAGE) $VERSION 26356# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 26357# NOTE: Changes made to this file will be lost: look at ltmain.sh. 26358 26359# Provide generalized library-building support services. 26360# Written by Gordon Matzigkeit, 1996 26361 26362# Copyright (C) 2014 Free Software Foundation, Inc. 26363# This is free software; see the source for copying conditions. There is NO 26364# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 26365 26366# GNU Libtool is free software; you can redistribute it and/or modify 26367# it under the terms of the GNU General Public License as published by 26368# the Free Software Foundation; either version 2 of of the License, or 26369# (at your option) any later version. 26370# 26371# As a special exception to the GNU General Public License, if you 26372# distribute this file as part of a program or library that is built 26373# using GNU Libtool, you may include this file under the same 26374# distribution terms that you use for the rest of that program. 26375# 26376# GNU Libtool is distributed in the hope that it will be useful, but 26377# WITHOUT ANY WARRANTY; without even the implied warranty of 26378# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26379# GNU General Public License for more details. 26380# 26381# You should have received a copy of the GNU General Public License 26382# along with this program. If not, see <http://www.gnu.org/licenses/>. 26383 26384 26385# The names of the tagged configurations supported by this script. 26386available_tags='' 26387 26388# Configured defaults for sys_lib_dlsearch_path munging. 26389: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 26390 26391# ### BEGIN LIBTOOL CONFIG 26392 26393# Which release of libtool.m4 was used? 26394macro_version=$macro_version 26395macro_revision=$macro_revision 26396 26397# Whether or not to build shared libraries. 26398build_libtool_libs=$enable_shared 26399 26400# Whether or not to build static libraries. 26401build_old_libs=$enable_static 26402 26403# What type of objects to build. 26404pic_mode=$pic_mode 26405 26406# Whether or not to optimize for fast installation. 26407fast_install=$enable_fast_install 26408 26409# Shared archive member basename,for filename based shared library versioning on AIX. 26410shared_archive_member_spec=$shared_archive_member_spec 26411 26412# Shell to use when invoking shell scripts. 26413SHELL=$lt_SHELL 26414 26415# An echo program that protects backslashes. 26416ECHO=$lt_ECHO 26417 26418# The PATH separator for the build system. 26419PATH_SEPARATOR=$lt_PATH_SEPARATOR 26420 26421# The host system. 26422host_alias=$host_alias 26423host=$host 26424host_os=$host_os 26425 26426# The build system. 26427build_alias=$build_alias 26428build=$build 26429build_os=$build_os 26430 26431# A sed program that does not truncate output. 26432SED=$lt_SED 26433 26434# Sed that helps us avoid accidentally triggering echo(1) options like -n. 26435Xsed="\$SED -e 1s/^X//" 26436 26437# A grep program that handles long lines. 26438GREP=$lt_GREP 26439 26440# An ERE matcher. 26441EGREP=$lt_EGREP 26442 26443# A literal string matcher. 26444FGREP=$lt_FGREP 26445 26446# A BSD- or MS-compatible name lister. 26447NM=$lt_NM 26448 26449# Whether we need soft or hard links. 26450LN_S=$lt_LN_S 26451 26452# What is the maximum length of a command? 26453max_cmd_len=$max_cmd_len 26454 26455# Object file suffix (normally "o"). 26456objext=$ac_objext 26457 26458# Executable file suffix (normally ""). 26459exeext=$exeext 26460 26461# whether the shell understands "unset". 26462lt_unset=$lt_unset 26463 26464# turn spaces into newlines. 26465SP2NL=$lt_lt_SP2NL 26466 26467# turn newlines into spaces. 26468NL2SP=$lt_lt_NL2SP 26469 26470# convert \$build file names to \$host format. 26471to_host_file_cmd=$lt_cv_to_host_file_cmd 26472 26473# convert \$build files to toolchain format. 26474to_tool_file_cmd=$lt_cv_to_tool_file_cmd 26475 26476# A file(cmd) program that detects file types. 26477FILECMD=$lt_FILECMD 26478 26479# An object symbol dumper. 26480OBJDUMP=$lt_OBJDUMP 26481 26482# Method to check whether dependent libraries are shared objects. 26483deplibs_check_method=$lt_deplibs_check_method 26484 26485# Command to use when deplibs_check_method = "file_magic". 26486file_magic_cmd=$lt_file_magic_cmd 26487 26488# How to find potential files when deplibs_check_method = "file_magic". 26489file_magic_glob=$lt_file_magic_glob 26490 26491# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 26492want_nocaseglob=$lt_want_nocaseglob 26493 26494# DLL creation program. 26495DLLTOOL=$lt_DLLTOOL 26496 26497# Command to associate shared and link libraries. 26498sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 26499 26500# The archiver. 26501AR=$lt_AR 26502 26503# Flags to create an archive (by configure). 26504lt_ar_flags=$lt_ar_flags 26505 26506# Flags to create an archive. 26507AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 26508 26509# How to feed a file listing to the archiver. 26510archiver_list_spec=$lt_archiver_list_spec 26511 26512# A symbol stripping program. 26513STRIP=$lt_STRIP 26514 26515# Commands used to install an old-style archive. 26516RANLIB=$lt_RANLIB 26517old_postinstall_cmds=$lt_old_postinstall_cmds 26518old_postuninstall_cmds=$lt_old_postuninstall_cmds 26519 26520# Whether to use a lock for old archive extraction. 26521lock_old_archive_extraction=$lock_old_archive_extraction 26522 26523# A C compiler. 26524LTCC=$lt_CC 26525 26526# LTCC compiler flags. 26527LTCFLAGS=$lt_CFLAGS 26528 26529# Take the output of nm and produce a listing of raw symbols and C names. 26530global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 26531 26532# Transform the output of nm in a proper C declaration. 26533global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 26534 26535# Transform the output of nm into a list of symbols to manually relocate. 26536global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 26537 26538# Transform the output of nm in a C name address pair. 26539global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 26540 26541# Transform the output of nm in a C name address pair when lib prefix is needed. 26542global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 26543 26544# The name lister interface. 26545nm_interface=$lt_lt_cv_nm_interface 26546 26547# Specify filename containing input files for \$NM. 26548nm_file_list_spec=$lt_nm_file_list_spec 26549 26550# The root where to search for dependent libraries,and where our libraries should be installed. 26551lt_sysroot=$lt_sysroot 26552 26553# Command to truncate a binary pipe. 26554lt_truncate_bin=$lt_lt_cv_truncate_bin 26555 26556# The name of the directory that contains temporary libtool files. 26557objdir=$objdir 26558 26559# Used to examine libraries when file_magic_cmd begins with "file". 26560MAGIC_CMD=$MAGIC_CMD 26561 26562# Must we lock files when doing compilation? 26563need_locks=$lt_need_locks 26564 26565# Manifest tool. 26566MANIFEST_TOOL=$lt_MANIFEST_TOOL 26567 26568# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 26569DSYMUTIL=$lt_DSYMUTIL 26570 26571# Tool to change global to local symbols on Mac OS X. 26572NMEDIT=$lt_NMEDIT 26573 26574# Tool to manipulate fat objects and archives on Mac OS X. 26575LIPO=$lt_LIPO 26576 26577# ldd/readelf like tool for Mach-O binaries on Mac OS X. 26578OTOOL=$lt_OTOOL 26579 26580# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 26581OTOOL64=$lt_OTOOL64 26582 26583# Old archive suffix (normally "a"). 26584libext=$libext 26585 26586# Shared library suffix (normally ".so"). 26587shrext_cmds=$lt_shrext_cmds 26588 26589# The commands to extract the exported symbol list from a shared archive. 26590extract_expsyms_cmds=$lt_extract_expsyms_cmds 26591 26592# Variables whose values should be saved in libtool wrapper scripts and 26593# restored at link time. 26594variables_saved_for_relink=$lt_variables_saved_for_relink 26595 26596# Do we need the "lib" prefix for modules? 26597need_lib_prefix=$need_lib_prefix 26598 26599# Do we need a version for libraries? 26600need_version=$need_version 26601 26602# Library versioning type. 26603version_type=$version_type 26604 26605# Shared library runtime path variable. 26606runpath_var=$runpath_var 26607 26608# Shared library path variable. 26609shlibpath_var=$shlibpath_var 26610 26611# Is shlibpath searched before the hard-coded library search path? 26612shlibpath_overrides_runpath=$shlibpath_overrides_runpath 26613 26614# Format of library name prefix. 26615libname_spec=$lt_libname_spec 26616 26617# List of archive names. First name is the real one, the rest are links. 26618# The last name is the one that the linker finds with -lNAME 26619library_names_spec=$lt_library_names_spec 26620 26621# The coded name of the library, if different from the real name. 26622soname_spec=$lt_soname_spec 26623 26624# Permission mode override for installation of shared libraries. 26625install_override_mode=$lt_install_override_mode 26626 26627# Command to use after installation of a shared archive. 26628postinstall_cmds=$lt_postinstall_cmds 26629 26630# Command to use after uninstallation of a shared archive. 26631postuninstall_cmds=$lt_postuninstall_cmds 26632 26633# Commands used to finish a libtool library installation in a directory. 26634finish_cmds=$lt_finish_cmds 26635 26636# As "finish_cmds", except a single script fragment to be evaled but 26637# not shown. 26638finish_eval=$lt_finish_eval 26639 26640# Whether we should hardcode library paths into libraries. 26641hardcode_into_libs=$hardcode_into_libs 26642 26643# Compile-time system search path for libraries. 26644sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 26645 26646# Detected run-time system search path for libraries. 26647sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 26648 26649# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 26650configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 26651 26652# Whether dlopen is supported. 26653dlopen_support=$enable_dlopen 26654 26655# Whether dlopen of programs is supported. 26656dlopen_self=$enable_dlopen_self 26657 26658# Whether dlopen of statically linked programs is supported. 26659dlopen_self_static=$enable_dlopen_self_static 26660 26661# Commands to strip libraries. 26662old_striplib=$lt_old_striplib 26663striplib=$lt_striplib 26664 26665 26666# The linker used to build libraries. 26667LD=$lt_LD 26668 26669# How to create reloadable object files. 26670reload_flag=$lt_reload_flag 26671reload_cmds=$lt_reload_cmds 26672 26673# Commands used to build an old-style archive. 26674old_archive_cmds=$lt_old_archive_cmds 26675 26676# A language specific compiler. 26677CC=$lt_compiler 26678 26679# Is the compiler the GNU compiler? 26680with_gcc=$GCC 26681 26682# Compiler flag to turn off builtin functions. 26683no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 26684 26685# Additional compiler flags for building library objects. 26686pic_flag=$lt_lt_prog_compiler_pic 26687 26688# How to pass a linker flag through the compiler. 26689wl=$lt_lt_prog_compiler_wl 26690 26691# Compiler flag to prevent dynamic linking. 26692link_static_flag=$lt_lt_prog_compiler_static 26693 26694# Does compiler simultaneously support -c and -o options? 26695compiler_c_o=$lt_lt_cv_prog_compiler_c_o 26696 26697# Whether or not to add -lc for building shared libraries. 26698build_libtool_need_lc=$archive_cmds_need_lc 26699 26700# Whether or not to disallow shared libs when runtime libs are static. 26701allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 26702 26703# Compiler flag to allow reflexive dlopens. 26704export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 26705 26706# Compiler flag to generate shared objects directly from archives. 26707whole_archive_flag_spec=$lt_whole_archive_flag_spec 26708 26709# Whether the compiler copes with passing no objects directly. 26710compiler_needs_object=$lt_compiler_needs_object 26711 26712# Create an old-style archive from a shared archive. 26713old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 26714 26715# Create a temporary old-style archive to link instead of a shared archive. 26716old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 26717 26718# Commands used to build a shared archive. 26719archive_cmds=$lt_archive_cmds 26720archive_expsym_cmds=$lt_archive_expsym_cmds 26721 26722# Commands used to build a loadable module if different from building 26723# a shared archive. 26724module_cmds=$lt_module_cmds 26725module_expsym_cmds=$lt_module_expsym_cmds 26726 26727# Whether we are building with GNU ld or not. 26728with_gnu_ld=$lt_with_gnu_ld 26729 26730# Flag that allows shared libraries with undefined symbols to be built. 26731allow_undefined_flag=$lt_allow_undefined_flag 26732 26733# Flag that enforces no undefined symbols. 26734no_undefined_flag=$lt_no_undefined_flag 26735 26736# Flag to hardcode \$libdir into a binary during linking. 26737# This must work even if \$libdir does not exist 26738hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 26739 26740# Whether we need a single "-rpath" flag with a separated argument. 26741hardcode_libdir_separator=$lt_hardcode_libdir_separator 26742 26743# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26744# DIR into the resulting binary. 26745hardcode_direct=$hardcode_direct 26746 26747# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26748# DIR into the resulting binary and the resulting library dependency is 26749# "absolute",i.e impossible to change by setting \$shlibpath_var if the 26750# library is relocated. 26751hardcode_direct_absolute=$hardcode_direct_absolute 26752 26753# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 26754# into the resulting binary. 26755hardcode_minus_L=$hardcode_minus_L 26756 26757# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 26758# into the resulting binary. 26759hardcode_shlibpath_var=$hardcode_shlibpath_var 26760 26761# Set to "yes" if building a shared library automatically hardcodes DIR 26762# into the library and all subsequent libraries and executables linked 26763# against it. 26764hardcode_automatic=$hardcode_automatic 26765 26766# Set to yes if linker adds runtime paths of dependent libraries 26767# to runtime path list. 26768inherit_rpath=$inherit_rpath 26769 26770# Whether libtool must link a program against all its dependency libraries. 26771link_all_deplibs=$link_all_deplibs 26772 26773# Set to "yes" if exported symbols are required. 26774always_export_symbols=$always_export_symbols 26775 26776# The commands to list exported symbols. 26777export_symbols_cmds=$lt_export_symbols_cmds 26778 26779# Symbols that should not be listed in the preloaded symbols. 26780exclude_expsyms=$lt_exclude_expsyms 26781 26782# Symbols that must always be exported. 26783include_expsyms=$lt_include_expsyms 26784 26785# Commands necessary for linking programs (against libraries) with templates. 26786prelink_cmds=$lt_prelink_cmds 26787 26788# Commands necessary for finishing linking programs. 26789postlink_cmds=$lt_postlink_cmds 26790 26791# Specify filename containing input files. 26792file_list_spec=$lt_file_list_spec 26793 26794# How to hardcode a shared library path into an executable. 26795hardcode_action=$hardcode_action 26796 26797# ### END LIBTOOL CONFIG 26798 26799_LT_EOF 26800 26801 cat <<'_LT_EOF' >> "$cfgfile" 26802 26803# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 26804 26805# func_munge_path_list VARIABLE PATH 26806# ----------------------------------- 26807# VARIABLE is name of variable containing _space_ separated list of 26808# directories to be munged by the contents of PATH, which is string 26809# having a format: 26810# "DIR[:DIR]:" 26811# string "DIR[ DIR]" will be prepended to VARIABLE 26812# ":DIR[:DIR]" 26813# string "DIR[ DIR]" will be appended to VARIABLE 26814# "DIRP[:DIRP]::[DIRA:]DIRA" 26815# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 26816# "DIRA[ DIRA]" will be appended to VARIABLE 26817# "DIR[:DIR]" 26818# VARIABLE will be replaced by "DIR[ DIR]" 26819func_munge_path_list () 26820{ 26821 case x$2 in 26822 x) 26823 ;; 26824 *:) 26825 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 26826 ;; 26827 x:*) 26828 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 26829 ;; 26830 *::*) 26831 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 26832 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 26833 ;; 26834 *) 26835 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 26836 ;; 26837 esac 26838} 26839 26840 26841# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 26842func_cc_basename () 26843{ 26844 for cc_temp in $*""; do 26845 case $cc_temp in 26846 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 26847 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 26848 \-*) ;; 26849 *) break;; 26850 esac 26851 done 26852 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 26853} 26854 26855 26856# ### END FUNCTIONS SHARED WITH CONFIGURE 26857 26858_LT_EOF 26859 26860 case $host_os in 26861 aix3*) 26862 cat <<\_LT_EOF >> "$cfgfile" 26863# AIX sometimes has problems with the GCC collect2 program. For some 26864# reason, if we set the COLLECT_NAMES environment variable, the problems 26865# vanish in a puff of smoke. 26866if test set != "${COLLECT_NAMES+set}"; then 26867 COLLECT_NAMES= 26868 export COLLECT_NAMES 26869fi 26870_LT_EOF 26871 ;; 26872 esac 26873 26874 26875 26876ltmain=$ac_aux_dir/ltmain.sh 26877 26878 26879 # We use sed instead of cat because bash on DJGPP gets confused if 26880 # if finds mixed CR/LF and LF-only lines. Since sed operates in 26881 # text mode, it properly converts lines to CR/LF. This bash problem 26882 # is reportedly fixed, but why not run on old versions too? 26883 $SED '$q' "$ltmain" >> "$cfgfile" \ 26884 || (rm -f "$cfgfile"; exit 1) 26885 26886 mv -f "$cfgfile" "$ofile" || 26887 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 26888 chmod +x "$ofile" 26889 26890 ;; 26891 "disable-rpath":C) 26892 sed < libtool > libtool-2 \ 26893 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/' 26894 mv libtool-2 libtool 26895 chmod 755 libtool 26896 libtool="./libtool" 26897 ;; 26898 26899 esac 26900done # for ac_tag 26901 26902 26903as_fn_exit 0 26904_ACEOF 26905ac_clean_files=$ac_clean_files_save 26906 26907test $ac_write_fail = 0 || 26908 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 26909 26910 26911# configure is writing to config.log, and then calls config.status. 26912# config.status does its own redirection, appending to config.log. 26913# Unfortunately, on DOS this fails, as config.log is still kept open 26914# by configure, so config.status won't be able to write to it; its 26915# output is simply discarded. So we exec the FD to /dev/null, 26916# effectively closing config.log, so it can be properly (re)opened and 26917# appended to by config.status. When coming back to configure, we 26918# need to make the FD available again. 26919if test "$no_create" != yes; then 26920 ac_cs_success=: 26921 ac_config_status_args= 26922 test "$silent" = yes && 26923 ac_config_status_args="$ac_config_status_args --quiet" 26924 exec 5>/dev/null 26925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 26926 exec 5>>config.log 26927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 26928 # would make configure fail if this is the last instruction. 26929 $ac_cs_success || as_fn_exit 1 26930fi 26931if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 26932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 26933printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 26934fi 26935 26936 26937