1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for BIND 9.20.4. 4# 5# Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>. 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 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || 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: https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: 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='BIND' 624PACKAGE_TARNAME='bind' 625PACKAGE_VERSION='9.20.4' 626PACKAGE_STRING='BIND 9.20.4' 627PACKAGE_BUGREPORT='https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug' 628PACKAGE_URL='https://www.isc.org/downloads/' 629 630ac_unique_file="bin/named/main.c" 631# Factoring default headers for most tests. 632ac_includes_default="\ 633#include <stddef.h> 634#ifdef HAVE_STDIO_H 635# include <stdio.h> 636#endif 637#ifdef HAVE_STDLIB_H 638# include <stdlib.h> 639#endif 640#ifdef HAVE_STRING_H 641# include <string.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_STRINGS_H 650# include <strings.h> 651#endif 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef HAVE_UNISTD_H 659# include <unistd.h> 660#endif" 661 662ac_header_c_list= 663ac_subst_vars='am__EXEEXT_FALSE 664am__EXEEXT_TRUE 665LTLIBOBJS 666LIBOBJS 667HAVE_DTRACE_FALSE 668HAVE_DTRACE_TRUE 669HAVE_SYSTEMTAP_FALSE 670HAVE_SYSTEMTAP_TRUE 671DTRACE 672DNSRPS_FALSE 673DNSRPS_TRUE 674HAVE_JEMALLOC_FALSE 675HAVE_JEMALLOC_TRUE 676JEMALLOC_VERSION 677JEMALLOC_LIBS 678JEMALLOC_CFLAGS 679HAVE_CMOCKA_FALSE 680HAVE_CMOCKA_TRUE 681CMOCKA_LIBS 682CMOCKA_CFLAGS 683LIBIDN2_LIBS 684LIBIDN2_CFLAGS 685NC 686CURL 687DOXYGEN 688RELEASE_DATE 689BUILD_MANPAGES_FALSE 690BUILD_MANPAGES_TRUE 691HAVE_SPHINX_BUILD_FALSE 692HAVE_SPHINX_BUILD_TRUE 693SPHINX_BUILD 694HAVE_DNSTAP_FALSE 695HAVE_DNSTAP_TRUE 696PROTOC_C 697FSTRM_CAPTURE 698DNSTAP_LIBS 699DNSTAP_CFLAGS 700LIBCAP_LIBS 701LIBCAP_CFLAGS 702HAVE_READLINE_FALSE 703HAVE_READLINE_TRUE 704READLINE_LIBS 705READLINE_CFLAGS 706LIBSYSTEMD_LIBS 707LIBSYSTEMD_CFLAGS 708ZLIB_LIBS 709ZLIB_CFLAGS 710HAVE_JSON_C_FALSE 711HAVE_JSON_C_TRUE 712JSON_C_LIBS 713JSON_C_CFLAGS 714HAVE_LIBXML2_FALSE 715HAVE_LIBXML2_TRUE 716LIBXML2_LIBS 717LIBXML2_CFLAGS 718HAVE_LMDB_FALSE 719HAVE_LMDB_TRUE 720LMDB_LIBS 721LMDB_CFLAGS 722KRB5_LIBS 723KRB5_CFLAGS 724GSSAPI_LIBS 725GSSAPI_CFLAGS 726HAVE_GSSAPI_FALSE 727HAVE_GSSAPI_TRUE 728KRB5_CONFIG 729OPENSSL_VERSION 730OPENSSL_LDFLAGS 731OPENSSL_LIBS 732OPENSSL_CFLAGS 733USE_ISC_RWLOCK_FALSE 734USE_ISC_RWLOCK_TRUE 735HAVE_LIBNGHTTP2_FALSE 736HAVE_LIBNGHTTP2_TRUE 737LIBNGHTTP2_LIBS 738LIBNGHTTP2_CFLAGS 739LIBUV_VERSION 740LIBUV_LIBS 741LIBUV_CFLAGS 742PTHREAD_CFLAGS 743PTHREAD_LIBS 744PTHREAD_CXX 745PTHREAD_CC 746ax_pthread_config 747HAVE_GEOIP2_FALSE 748HAVE_GEOIP2_TRUE 749MAXMINDDB_PREFIX 750MAXMINDDB_LIBS 751MAXMINDDB_CFLAGS 752XSLTPROC 753HAVE_PYTEST_FALSE 754HAVE_PYTEST_TRUE 755PYTEST 756HAVE_PYTHON_FALSE 757HAVE_PYTHON_TRUE 758pkgpyexecdir 759pyexecdir 760pkgpythondir 761pythondir 762PYTHON_EXEC_PREFIX 763PYTHON_PREFIX 764PYTHON_PLATFORM 765PYTHON_VERSION 766PYTHON 767HAVE_PERL_FALSE 768HAVE_PERL_TRUE 769PERL 770FUZZ_LDFLAGS 771FUZZ_LOG_COMPILER 772HAVE_FUZZ_LOG_COMPILER_FALSE 773HAVE_FUZZ_LOG_COMPILER_TRUE 774RCU_VERSION 775LIBURCU_LIBS 776LIBURCU_CFLAGS 777PKG_CONFIG_LIBDIR 778PKG_CONFIG_PATH 779PKG_CONFIG 780TEST_CFLAGS 781STD_LDFLAGS 782STD_CPPFLAGS 783STD_CFLAGS 784DEVELOPER_MODE 785HOST_MACOS_FALSE 786HOST_MACOS_TRUE 787DLOPEN_LIBS 788LT_SYS_LIBRARY_PATH 789OTOOL64 790OTOOL 791LIPO 792NMEDIT 793DSYMUTIL 794MANIFEST_TOOL 795RANLIB 796DLLTOOL 797OBJDUMP 798FILECMD 799NM 800ac_ct_DUMPBIN 801DUMPBIN 802LD 803FGREP 804EGREP 805GREP 806SED 807LIBTOOL 808LN_S 809ac_ct_AR 810AR 811LDFLAGS_FOR_BUILD 812CPPFLAGS_FOR_BUILD 813CFLAGS_FOR_BUILD 814BUILD_OBJEXT 815BUILD_EXEEXT 816CPP_FOR_BUILD 817ac_ct_CC_FOR_BUILD 818CC_FOR_BUILD 819CPP 820am__fastdepCC_FALSE 821am__fastdepCC_TRUE 822CCDEPMODE 823am__nodep 824AMDEPBACKSLASH 825AMDEP_FALSE 826AMDEP_TRUE 827am__include 828DEPDIR 829OBJEXT 830EXEEXT 831ac_ct_CC 832CPPFLAGS 833LDFLAGS 834CFLAGS 835CC 836MAINT 837MAINTAINER_MODE_FALSE 838MAINTAINER_MODE_TRUE 839AM_BACKSLASH 840AM_DEFAULT_VERBOSITY 841AM_DEFAULT_V 842AM_V 843CSCOPE 844ETAGS 845CTAGS 846am__untar 847am__tar 848AMTAR 849am__leading_dot 850SET_MAKE 851AWK 852mkdir_p 853MKDIR_P 854INSTALL_STRIP_PROGRAM 855STRIP 856install_sh 857MAKEINFO 858AUTOHEADER 859AUTOMAKE 860AUTOCONF 861ACLOCAL 862VERSION 863PACKAGE 864CYGPATH_W 865am__isrc 866INSTALL_DATA 867INSTALL_SCRIPT 868INSTALL_PROGRAM 869target_os 870target_vendor 871target_cpu 872target 873host_os 874host_vendor 875host_cpu 876host 877build_os 878build_vendor 879build_cpu 880build 881target_alias 882host_alias 883build_alias 884LIBS 885ECHO_T 886ECHO_N 887ECHO_C 888DEFS 889mandir 890localedir 891libdir 892psdir 893pdfdir 894dvidir 895htmldir 896infodir 897docdir 898oldincludedir 899includedir 900runstatedir 901localstatedir 902sharedstatedir 903sysconfdir 904datadir 905datarootdir 906libexecdir 907sbindir 908bindir 909program_transform_name 910prefix 911exec_prefix 912PACKAGE_URL 913PACKAGE_BUGREPORT 914PACKAGE_STRING 915PACKAGE_VERSION 916PACKAGE_TARNAME 917PACKAGE_NAME 918PATH_SEPARATOR 919SHELL 920am__quote' 921ac_subst_files='' 922ac_user_opts=' 923enable_option_checking 924enable_silent_rules 925enable_maintainer_mode 926enable_dependency_tracking 927enable_largefile 928enable_static 929with_pic 930enable_shared 931enable_fast_install 932with_aix_soname 933with_gnu_ld 934with_sysroot 935enable_libtool_lock 936enable_developer 937enable_warn_error 938with_liburcu 939enable_fuzzing 940with_python_sys_prefix 941with_python_prefix 942with_python_exec_prefix 943enable_geoip 944with_maxminddb 945enable_doh 946with_libnghttp2 947enable_pthread_rwlock 948with_openssl 949enable_fips_mode 950with_gssapi 951with_lmdb 952with_libxml2 953with_json_c 954with_zlib 955with_libsystemd 956enable_tcp_fastopen 957with_readline 958enable_chroot 959enable_fixed_rrset 960enable_dnstap 961with_libidn2 962with_cmocka 963with_jemalloc 964enable_leak_detection 965enable_singletrace 966enable_querytrace 967enable_auto_validation 968enable_dnsrps_dl 969with_dnsrps_libname 970with_dnsrps_dir 971enable_dnsrps 972enable_tracing 973with_zonedb 974with_cachedb 975enable_full_report 976' 977 ac_precious_vars='build_alias 978host_alias 979target_alias 980CC 981CFLAGS 982LDFLAGS 983LIBS 984CPPFLAGS 985CPP 986LT_SYS_LIBRARY_PATH 987PKG_CONFIG 988PKG_CONFIG_PATH 989PKG_CONFIG_LIBDIR 990LIBURCU_CFLAGS 991LIBURCU_LIBS 992RCU_VERSION 993PYTHON 994MAXMINDDB_CFLAGS 995MAXMINDDB_LIBS 996MAXMINDDB_PREFIX 997LIBUV_CFLAGS 998LIBUV_LIBS 999LIBUV_VERSION 1000LIBNGHTTP2_CFLAGS 1001LIBNGHTTP2_LIBS 1002OPENSSL_CFLAGS 1003OPENSSL_LIBS 1004OPENSSL_VERSION 1005LMDB_CFLAGS 1006LMDB_LIBS 1007LIBXML2_CFLAGS 1008LIBXML2_LIBS 1009JSON_C_CFLAGS 1010JSON_C_LIBS 1011ZLIB_CFLAGS 1012ZLIB_LIBS 1013LIBSYSTEMD_CFLAGS 1014LIBSYSTEMD_LIBS 1015READLINE_CFLAGS 1016READLINE_LIBS 1017LIBCAP_CFLAGS 1018LIBCAP_LIBS 1019DNSTAP_CFLAGS 1020DNSTAP_LIBS 1021SPHINX_BUILD 1022LIBIDN2_CFLAGS 1023LIBIDN2_LIBS 1024CMOCKA_CFLAGS 1025CMOCKA_LIBS 1026JEMALLOC_CFLAGS 1027JEMALLOC_LIBS 1028JEMALLOC_VERSION 1029DTRACE' 1030 1031 1032# Initialize some variables set by options. 1033ac_init_help= 1034ac_init_version=false 1035ac_unrecognized_opts= 1036ac_unrecognized_sep= 1037# The variables have the same names as the options, with 1038# dashes changed to underlines. 1039cache_file=/dev/null 1040exec_prefix=NONE 1041no_create= 1042no_recursion= 1043prefix=NONE 1044program_prefix=NONE 1045program_suffix=NONE 1046program_transform_name=s,x,x, 1047silent= 1048site= 1049srcdir= 1050verbose= 1051x_includes=NONE 1052x_libraries=NONE 1053 1054# Installation directory options. 1055# These are left unexpanded so users can "make install exec_prefix=/foo" 1056# and all the variables that are supposed to be based on exec_prefix 1057# by default will actually change. 1058# Use braces instead of parens because sh, perl, etc. also accept them. 1059# (The list follows the same order as the GNU Coding Standards.) 1060bindir='${exec_prefix}/bin' 1061sbindir='${exec_prefix}/sbin' 1062libexecdir='${exec_prefix}/libexec' 1063datarootdir='${prefix}/share' 1064datadir='${datarootdir}' 1065sysconfdir='${prefix}/etc' 1066sharedstatedir='${prefix}/com' 1067localstatedir='${prefix}/var' 1068runstatedir='${localstatedir}/run' 1069includedir='${prefix}/include' 1070oldincludedir='/usr/include' 1071docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1072infodir='${datarootdir}/info' 1073htmldir='${docdir}' 1074dvidir='${docdir}' 1075pdfdir='${docdir}' 1076psdir='${docdir}' 1077libdir='${exec_prefix}/lib' 1078localedir='${datarootdir}/locale' 1079mandir='${datarootdir}/man' 1080 1081ac_prev= 1082ac_dashdash= 1083for ac_option 1084do 1085 # If the previous option needs an argument, assign it. 1086 if test -n "$ac_prev"; then 1087 eval $ac_prev=\$ac_option 1088 ac_prev= 1089 continue 1090 fi 1091 1092 case $ac_option in 1093 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1094 *=) ac_optarg= ;; 1095 *) ac_optarg=yes ;; 1096 esac 1097 1098 case $ac_dashdash$ac_option in 1099 --) 1100 ac_dashdash=yes ;; 1101 1102 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1103 ac_prev=bindir ;; 1104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1105 bindir=$ac_optarg ;; 1106 1107 -build | --build | --buil | --bui | --bu) 1108 ac_prev=build_alias ;; 1109 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1110 build_alias=$ac_optarg ;; 1111 1112 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1114 ac_prev=cache_file ;; 1115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1117 cache_file=$ac_optarg ;; 1118 1119 --config-cache | -C) 1120 cache_file=config.cache ;; 1121 1122 -datadir | --datadir | --datadi | --datad) 1123 ac_prev=datadir ;; 1124 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1125 datadir=$ac_optarg ;; 1126 1127 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1128 | --dataroo | --dataro | --datar) 1129 ac_prev=datarootdir ;; 1130 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1131 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1132 datarootdir=$ac_optarg ;; 1133 1134 -disable-* | --disable-*) 1135 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1136 # Reject names that are not valid shell variable names. 1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1138 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1139 ac_useropt_orig=$ac_useropt 1140 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1141 case $ac_user_opts in 1142 *" 1143"enable_$ac_useropt" 1144"*) ;; 1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1146 ac_unrecognized_sep=', ';; 1147 esac 1148 eval enable_$ac_useropt=no ;; 1149 1150 -docdir | --docdir | --docdi | --doc | --do) 1151 ac_prev=docdir ;; 1152 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1153 docdir=$ac_optarg ;; 1154 1155 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1156 ac_prev=dvidir ;; 1157 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1158 dvidir=$ac_optarg ;; 1159 1160 -enable-* | --enable-*) 1161 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1162 # Reject names that are not valid shell variable names. 1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1164 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1165 ac_useropt_orig=$ac_useropt 1166 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1167 case $ac_user_opts in 1168 *" 1169"enable_$ac_useropt" 1170"*) ;; 1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1172 ac_unrecognized_sep=', ';; 1173 esac 1174 eval enable_$ac_useropt=\$ac_optarg ;; 1175 1176 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1177 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1178 | --exec | --exe | --ex) 1179 ac_prev=exec_prefix ;; 1180 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1181 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1182 | --exec=* | --exe=* | --ex=*) 1183 exec_prefix=$ac_optarg ;; 1184 1185 -gas | --gas | --ga | --g) 1186 # Obsolete; use --with-gas. 1187 with_gas=yes ;; 1188 1189 -help | --help | --hel | --he | -h) 1190 ac_init_help=long ;; 1191 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1192 ac_init_help=recursive ;; 1193 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1194 ac_init_help=short ;; 1195 1196 -host | --host | --hos | --ho) 1197 ac_prev=host_alias ;; 1198 -host=* | --host=* | --hos=* | --ho=*) 1199 host_alias=$ac_optarg ;; 1200 1201 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1202 ac_prev=htmldir ;; 1203 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1204 | --ht=*) 1205 htmldir=$ac_optarg ;; 1206 1207 -includedir | --includedir | --includedi | --included | --include \ 1208 | --includ | --inclu | --incl | --inc) 1209 ac_prev=includedir ;; 1210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1211 | --includ=* | --inclu=* | --incl=* | --inc=*) 1212 includedir=$ac_optarg ;; 1213 1214 -infodir | --infodir | --infodi | --infod | --info | --inf) 1215 ac_prev=infodir ;; 1216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1217 infodir=$ac_optarg ;; 1218 1219 -libdir | --libdir | --libdi | --libd) 1220 ac_prev=libdir ;; 1221 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1222 libdir=$ac_optarg ;; 1223 1224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1225 | --libexe | --libex | --libe) 1226 ac_prev=libexecdir ;; 1227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1228 | --libexe=* | --libex=* | --libe=*) 1229 libexecdir=$ac_optarg ;; 1230 1231 -localedir | --localedir | --localedi | --localed | --locale) 1232 ac_prev=localedir ;; 1233 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1234 localedir=$ac_optarg ;; 1235 1236 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1237 | --localstate | --localstat | --localsta | --localst | --locals) 1238 ac_prev=localstatedir ;; 1239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1240 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1241 localstatedir=$ac_optarg ;; 1242 1243 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1244 ac_prev=mandir ;; 1245 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1246 mandir=$ac_optarg ;; 1247 1248 -nfp | --nfp | --nf) 1249 # Obsolete; use --without-fp. 1250 with_fp=no ;; 1251 1252 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1253 | --no-cr | --no-c | -n) 1254 no_create=yes ;; 1255 1256 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1257 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1258 no_recursion=yes ;; 1259 1260 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1261 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1262 | --oldin | --oldi | --old | --ol | --o) 1263 ac_prev=oldincludedir ;; 1264 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1265 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1266 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1267 oldincludedir=$ac_optarg ;; 1268 1269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1270 ac_prev=prefix ;; 1271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1272 prefix=$ac_optarg ;; 1273 1274 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1275 | --program-pre | --program-pr | --program-p) 1276 ac_prev=program_prefix ;; 1277 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1278 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1279 program_prefix=$ac_optarg ;; 1280 1281 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1282 | --program-suf | --program-su | --program-s) 1283 ac_prev=program_suffix ;; 1284 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1285 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1286 program_suffix=$ac_optarg ;; 1287 1288 -program-transform-name | --program-transform-name \ 1289 | --program-transform-nam | --program-transform-na \ 1290 | --program-transform-n | --program-transform- \ 1291 | --program-transform | --program-transfor \ 1292 | --program-transfo | --program-transf \ 1293 | --program-trans | --program-tran \ 1294 | --progr-tra | --program-tr | --program-t) 1295 ac_prev=program_transform_name ;; 1296 -program-transform-name=* | --program-transform-name=* \ 1297 | --program-transform-nam=* | --program-transform-na=* \ 1298 | --program-transform-n=* | --program-transform-=* \ 1299 | --program-transform=* | --program-transfor=* \ 1300 | --program-transfo=* | --program-transf=* \ 1301 | --program-trans=* | --program-tran=* \ 1302 | --progr-tra=* | --program-tr=* | --program-t=*) 1303 program_transform_name=$ac_optarg ;; 1304 1305 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1306 ac_prev=pdfdir ;; 1307 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1308 pdfdir=$ac_optarg ;; 1309 1310 -psdir | --psdir | --psdi | --psd | --ps) 1311 ac_prev=psdir ;; 1312 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1313 psdir=$ac_optarg ;; 1314 1315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1316 | -silent | --silent | --silen | --sile | --sil) 1317 silent=yes ;; 1318 1319 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1320 | --runstate | --runstat | --runsta | --runst | --runs \ 1321 | --run | --ru | --r) 1322 ac_prev=runstatedir ;; 1323 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1324 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1325 | --run=* | --ru=* | --r=*) 1326 runstatedir=$ac_optarg ;; 1327 1328 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1329 ac_prev=sbindir ;; 1330 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1331 | --sbi=* | --sb=*) 1332 sbindir=$ac_optarg ;; 1333 1334 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1335 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1336 | --sharedst | --shareds | --shared | --share | --shar \ 1337 | --sha | --sh) 1338 ac_prev=sharedstatedir ;; 1339 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1340 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1341 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1342 | --sha=* | --sh=*) 1343 sharedstatedir=$ac_optarg ;; 1344 1345 -site | --site | --sit) 1346 ac_prev=site ;; 1347 -site=* | --site=* | --sit=*) 1348 site=$ac_optarg ;; 1349 1350 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1351 ac_prev=srcdir ;; 1352 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1353 srcdir=$ac_optarg ;; 1354 1355 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1356 | --syscon | --sysco | --sysc | --sys | --sy) 1357 ac_prev=sysconfdir ;; 1358 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1359 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1360 sysconfdir=$ac_optarg ;; 1361 1362 -target | --target | --targe | --targ | --tar | --ta | --t) 1363 ac_prev=target_alias ;; 1364 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1365 target_alias=$ac_optarg ;; 1366 1367 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1368 verbose=yes ;; 1369 1370 -version | --version | --versio | --versi | --vers | -V) 1371 ac_init_version=: ;; 1372 1373 -with-* | --with-*) 1374 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1375 # Reject names that are not valid shell variable names. 1376 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1377 as_fn_error $? "invalid package name: \`$ac_useropt'" 1378 ac_useropt_orig=$ac_useropt 1379 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1380 case $ac_user_opts in 1381 *" 1382"with_$ac_useropt" 1383"*) ;; 1384 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1385 ac_unrecognized_sep=', ';; 1386 esac 1387 eval with_$ac_useropt=\$ac_optarg ;; 1388 1389 -without-* | --without-*) 1390 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1391 # Reject names that are not valid shell variable names. 1392 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1393 as_fn_error $? "invalid package name: \`$ac_useropt'" 1394 ac_useropt_orig=$ac_useropt 1395 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1396 case $ac_user_opts in 1397 *" 1398"with_$ac_useropt" 1399"*) ;; 1400 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1401 ac_unrecognized_sep=', ';; 1402 esac 1403 eval with_$ac_useropt=no ;; 1404 1405 --x) 1406 # Obsolete; use --with-x. 1407 with_x=yes ;; 1408 1409 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1410 | --x-incl | --x-inc | --x-in | --x-i) 1411 ac_prev=x_includes ;; 1412 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1413 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1414 x_includes=$ac_optarg ;; 1415 1416 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1417 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1418 ac_prev=x_libraries ;; 1419 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1420 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1421 x_libraries=$ac_optarg ;; 1422 1423 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1424Try \`$0 --help' for more information" 1425 ;; 1426 1427 *=*) 1428 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1429 # Reject names that are not valid shell variable names. 1430 case $ac_envvar in #( 1431 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1432 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1433 esac 1434 eval $ac_envvar=\$ac_optarg 1435 export $ac_envvar ;; 1436 1437 *) 1438 # FIXME: should be removed in autoconf 3.0. 1439 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1440 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1441 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1442 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1443 ;; 1444 1445 esac 1446done 1447 1448if test -n "$ac_prev"; then 1449 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1450 as_fn_error $? "missing argument to $ac_option" 1451fi 1452 1453if test -n "$ac_unrecognized_opts"; then 1454 case $enable_option_checking in 1455 no) ;; 1456 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1457 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1458 esac 1459fi 1460 1461# Check all directory arguments for consistency. 1462for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1463 datadir sysconfdir sharedstatedir localstatedir includedir \ 1464 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1465 libdir localedir mandir runstatedir 1466do 1467 eval ac_val=\$$ac_var 1468 # Remove trailing slashes. 1469 case $ac_val in 1470 */ ) 1471 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1472 eval $ac_var=\$ac_val;; 1473 esac 1474 # Be sure to have absolute directory names. 1475 case $ac_val in 1476 [\\/$]* | ?:[\\/]* ) continue;; 1477 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1478 esac 1479 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1480done 1481 1482# There might be people who depend on the old broken behavior: `$host' 1483# used to hold the argument of --host etc. 1484# FIXME: To remove some day. 1485build=$build_alias 1486host=$host_alias 1487target=$target_alias 1488 1489# FIXME: To remove some day. 1490if test "x$host_alias" != x; then 1491 if test "x$build_alias" = x; then 1492 cross_compiling=maybe 1493 elif test "x$build_alias" != "x$host_alias"; then 1494 cross_compiling=yes 1495 fi 1496fi 1497 1498ac_tool_prefix= 1499test -n "$host_alias" && ac_tool_prefix=$host_alias- 1500 1501test "$silent" = yes && exec 6>/dev/null 1502 1503 1504ac_pwd=`pwd` && test -n "$ac_pwd" && 1505ac_ls_di=`ls -di .` && 1506ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1507 as_fn_error $? "working directory cannot be determined" 1508test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1509 as_fn_error $? "pwd does not report name of working directory" 1510 1511 1512# Find the source files, if location was not specified. 1513if test -z "$srcdir"; then 1514 ac_srcdir_defaulted=yes 1515 # Try the directory containing this script, then the parent directory. 1516 ac_confdir=`$as_dirname -- "$as_myself" || 1517$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1518 X"$as_myself" : 'X\(//\)[^/]' \| \ 1519 X"$as_myself" : 'X\(//\)$' \| \ 1520 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1521printf "%s\n" X"$as_myself" | 1522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1523 s//\1/ 1524 q 1525 } 1526 /^X\(\/\/\)[^/].*/{ 1527 s//\1/ 1528 q 1529 } 1530 /^X\(\/\/\)$/{ 1531 s//\1/ 1532 q 1533 } 1534 /^X\(\/\).*/{ 1535 s//\1/ 1536 q 1537 } 1538 s/.*/./; q'` 1539 srcdir=$ac_confdir 1540 if test ! -r "$srcdir/$ac_unique_file"; then 1541 srcdir=.. 1542 fi 1543else 1544 ac_srcdir_defaulted=no 1545fi 1546if test ! -r "$srcdir/$ac_unique_file"; then 1547 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1548 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1549fi 1550ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1551ac_abs_confdir=`( 1552 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1553 pwd)` 1554# When building in place, set srcdir=. 1555if test "$ac_abs_confdir" = "$ac_pwd"; then 1556 srcdir=. 1557fi 1558# Remove unnecessary trailing slashes from srcdir. 1559# Double slashes in file names in object file debugging info 1560# mess up M-x gdb in Emacs. 1561case $srcdir in 1562*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1563esac 1564for ac_var in $ac_precious_vars; do 1565 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1566 eval ac_env_${ac_var}_value=\$${ac_var} 1567 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1568 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1569done 1570 1571# 1572# Report the --help message. 1573# 1574if test "$ac_init_help" = "long"; then 1575 # Omit some internal or obsolete options to make the list less imposing. 1576 # This message is too long to be a string in the A/UX 3.1 sh. 1577 cat <<_ACEOF 1578\`configure' configures BIND 9.20.4 to adapt to many kinds of systems. 1579 1580Usage: $0 [OPTION]... [VAR=VALUE]... 1581 1582To assign environment variables (e.g., CC, CFLAGS...), specify them as 1583VAR=VALUE. See below for descriptions of some of the useful variables. 1584 1585Defaults for the options are specified in brackets. 1586 1587Configuration: 1588 -h, --help display this help and exit 1589 --help=short display options specific to this package 1590 --help=recursive display the short help of all the included packages 1591 -V, --version display version information and exit 1592 -q, --quiet, --silent do not print \`checking ...' messages 1593 --cache-file=FILE cache test results in FILE [disabled] 1594 -C, --config-cache alias for \`--cache-file=config.cache' 1595 -n, --no-create do not create output files 1596 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1597 1598Installation directories: 1599 --prefix=PREFIX install architecture-independent files in PREFIX 1600 [$ac_default_prefix] 1601 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1602 [PREFIX] 1603 1604By default, \`make install' will install all the files in 1605\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1606an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1607for instance \`--prefix=\$HOME'. 1608 1609For better control, use the options below. 1610 1611Fine tuning of the installation directories: 1612 --bindir=DIR user executables [EPREFIX/bin] 1613 --sbindir=DIR system admin executables [EPREFIX/sbin] 1614 --libexecdir=DIR program executables [EPREFIX/libexec] 1615 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1616 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1617 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1618 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1619 --libdir=DIR object code libraries [EPREFIX/lib] 1620 --includedir=DIR C header files [PREFIX/include] 1621 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1622 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1623 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1624 --infodir=DIR info documentation [DATAROOTDIR/info] 1625 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1626 --mandir=DIR man documentation [DATAROOTDIR/man] 1627 --docdir=DIR documentation root [DATAROOTDIR/doc/bind] 1628 --htmldir=DIR html documentation [DOCDIR] 1629 --dvidir=DIR dvi documentation [DOCDIR] 1630 --pdfdir=DIR pdf documentation [DOCDIR] 1631 --psdir=DIR ps documentation [DOCDIR] 1632_ACEOF 1633 1634 cat <<\_ACEOF 1635 1636Program names: 1637 --program-prefix=PREFIX prepend PREFIX to installed program names 1638 --program-suffix=SUFFIX append SUFFIX to installed program names 1639 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1640 1641System types: 1642 --build=BUILD configure for building on BUILD [guessed] 1643 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1644 --target=TARGET configure for building compilers for TARGET [HOST] 1645_ACEOF 1646fi 1647 1648if test -n "$ac_init_help"; then 1649 case $ac_init_help in 1650 short | recursive ) echo "Configuration of BIND 9.20.4:";; 1651 esac 1652 cat <<\_ACEOF 1653 1654Optional Features: 1655 --disable-option-checking ignore unrecognized --enable/--with options 1656 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1657 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1658 --enable-silent-rules less verbose build output (undo: "make V=1") 1659 --disable-silent-rules verbose build output (undo: "make V=0") 1660 --disable-maintainer-mode 1661 disable make rules and dependencies not useful (and 1662 sometimes confusing) to the casual installer 1663 --enable-dependency-tracking 1664 do not reject slow dependency extractors 1665 --disable-dependency-tracking 1666 speeds up one-time build 1667 --disable-largefile omit support for large files 1668 --enable-static[=PKGS] build static libraries [default=no] 1669 --enable-shared[=PKGS] build shared libraries [default=yes] 1670 --enable-fast-install[=PKGS] 1671 optimize for fast installation [default=yes] 1672 --disable-libtool-lock avoid locking (might break parallel builds) 1673 --enable-developer enable developer build settings 1674 --enable-warn-error turn on -Werror when compiling 1675 --enable-fuzzing=<afl|libfuzzer|ossfuzz> 1676 Enable fuzzing using American Fuzzy Lop or libFuzzer 1677 (default=no) 1678 --disable-geoip support GeoIP2 geolocation ACLs if available 1679 [default=yes] 1680 --disable-doh disable DNS over HTTPS, removes dependency on 1681 libnghttp2 (default is --enable-doh) 1682 --enable-pthread-rwlock use pthread rwlock instead of internal rwlock 1683 implementation 1684 --enable-fips-mode enable FIPS mode in OpenSSL library [default=no] 1685 --disable-tcp-fastopen disable TCP Fast Open support [default=yes] 1686 --disable-chroot disable chroot 1687 --enable-fixed-rrset enable fixed rrset ordering [default=no] 1688 --enable-dnstap enable dnstap support (requires fstrm, protobuf-c) 1689 --enable-leak-detection enable the memory leak detection in external 1690 libraries (libxml2, libuv, OpenSSL) (disabled by 1691 default) 1692 --enable-singletrace enable single-query trace logging [default=no] 1693 --enable-querytrace enable very verbose query trace logging [default=no] 1694 --enable-auto-validation 1695 turn on DNSSEC validation by default, using the IANA 1696 root key [default=yes] 1697 --enable-dnsrps-dl DNS Response Policy Service delayed link 1698 [default=yes] 1699 --enable-dnsrps enable DNS Response Policy Service API 1700 --enable-tracing enable User Statically Defined Tracing 1701 --enable-full-report report values of all configure options 1702 1703Optional Packages: 1704 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1705 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1706 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1707 both] 1708 --with-aix-soname=aix|svr4|both 1709 shared library versioning (aka "SONAME") variant to 1710 provide on AIX, [default=aix]. 1711 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1712 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1713 compiler's sysroot if not specified). 1714 --with-liburcu=FLAVOR Build with Userspace-RCU variant (developer-only 1715 option) (membarrier|qsbr|mb|bp) [default=membarrier]) 1716 --with-python-sys-prefix 1717 use Python's sys.prefix and sys.exec_prefix values 1718 --with-python_prefix override the default PYTHON_PREFIX 1719 --with-python_exec_prefix 1720 override the default PYTHON_EXEC_PREFIX 1721 --with-maxminddb=PATH Build with MaxMind GeoIP2 support (auto|yes|no|path) 1722 [default=auto] 1723 --with-libnghttp2 build with libnghttp2 library [yes|no|auto] (default 1724 is auto) 1725 --with-openssl=DIR root of the OpenSSL directory 1726 --with-gssapi=PATH|[/path/]krb5-config 1727 Specify path for system-supplied GSSAPI 1728 [default=auto] 1729 --with-lmdb=[PATH] use LMDB library [default=auto], optionally specify 1730 the prefix for lmdb library 1731 --with-libxml2 build with libxml2 library [yes|no|auto] (default is 1732 auto) 1733 --with-json-c build with json-c library [yes|no|detect] (default 1734 is detect) 1735 --with-zlib build with zlib for HTTP compression [default=yes] 1736 --with-libsystemd build with libsystemd integration [default=auto] 1737 --with-readline=yes|no|libedit|readline 1738 specify readline library [default auto] 1739 --with-libidn2=PATH enable IDN support using GNU libidn2 1740 [yes|no(default)|path] 1741 --with-cmocka=detect enable CMocka based tests (default is detect) 1742 --with-jemalloc=detect enable jemalloc memory allocator (default is detect) 1743 --with-dnsrps-libname DNSRPS provider library name (librpz.so) 1744 --with-dnsrps-dir path to DNSRPS provider library 1745 --with-zonedb=detect specify default zone database type (default is 1746 "qpzone") 1747 --with-cachedb=detect specify default cache database type (default is 1748 "qpcache") 1749 1750Some influential environment variables: 1751 CC C compiler command 1752 CFLAGS C compiler flags 1753 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1754 nonstandard directory <lib dir> 1755 LIBS libraries to pass to the linker, e.g. -l<library> 1756 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1757 you have headers in a nonstandard directory <include dir> 1758 CPP C preprocessor 1759 LT_SYS_LIBRARY_PATH 1760 User-defined run-time library search path. 1761 PKG_CONFIG path to pkg-config utility 1762 PKG_CONFIG_PATH 1763 directories to add to pkg-config's search path 1764 PKG_CONFIG_LIBDIR 1765 path overriding pkg-config's built-in search path 1766 LIBURCU_CFLAGS 1767 C compiler flags for LIBURCU, overriding pkg-config 1768 LIBURCU_LIBS 1769 linker flags for LIBURCU, overriding pkg-config 1770 RCU_VERSION version of $RCU_FLAVOR, overriding pkg-config 1771 PYTHON the Python interpreter 1772 MAXMINDDB_CFLAGS 1773 C compiler flags for MAXMINDDB, overriding pkg-config 1774 MAXMINDDB_LIBS 1775 linker flags for MAXMINDDB, overriding pkg-config 1776 MAXMINDDB_PREFIX 1777 value of prefix for libmaxminddb, overriding pkg-config 1778 LIBUV_CFLAGS 1779 C compiler flags for LIBUV, overriding pkg-config 1780 LIBUV_LIBS linker flags for LIBUV, overriding pkg-config 1781 LIBUV_VERSION 1782 version of libuv, overriding pkg-config 1783 LIBNGHTTP2_CFLAGS 1784 C compiler flags for LIBNGHTTP2, overriding pkg-config 1785 LIBNGHTTP2_LIBS 1786 linker flags for LIBNGHTTP2, overriding pkg-config 1787 OPENSSL_CFLAGS 1788 C compiler flags for OPENSSL, overriding pkg-config 1789 OPENSSL_LIBS 1790 linker flags for OPENSSL, overriding pkg-config 1791 OPENSSL_VERSION 1792 version of openssl, overriding pkg-config 1793 LMDB_CFLAGS C compiler flags for LMDB, overriding pkg-config 1794 LMDB_LIBS linker flags for LMDB, overriding pkg-config 1795 LIBXML2_CFLAGS 1796 C compiler flags for LIBXML2, overriding pkg-config 1797 LIBXML2_LIBS 1798 linker flags for LIBXML2, overriding pkg-config 1799 JSON_C_CFLAGS 1800 C compiler flags for JSON_C, overriding pkg-config 1801 JSON_C_LIBS linker flags for JSON_C, overriding pkg-config 1802 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config 1803 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config 1804 LIBSYSTEMD_CFLAGS 1805 C compiler flags for LIBSYSTEMD, overriding pkg-config 1806 LIBSYSTEMD_LIBS 1807 linker flags for LIBSYSTEMD, overriding pkg-config 1808 READLINE_CFLAGS 1809 C compiler flags for READLINE, overriding pkg-config 1810 READLINE_LIBS 1811 linker flags for READLINE, overriding pkg-config 1812 LIBCAP_CFLAGS 1813 C compiler flags for LIBCAP, overriding pkg-config 1814 LIBCAP_LIBS linker flags for LIBCAP, overriding pkg-config 1815 DNSTAP_CFLAGS 1816 C compiler flags for DNSTAP, overriding pkg-config 1817 DNSTAP_LIBS linker flags for DNSTAP, overriding pkg-config 1818 SPHINX_BUILD 1819 path to sphinx-build binary used to build the documentation 1820 LIBIDN2_CFLAGS 1821 C compiler flags for LIBIDN2, overriding pkg-config 1822 LIBIDN2_LIBS 1823 linker flags for LIBIDN2, overriding pkg-config 1824 CMOCKA_CFLAGS 1825 C compiler flags for CMOCKA, overriding pkg-config 1826 CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config 1827 JEMALLOC_CFLAGS 1828 C compiler flags for JEMALLOC, overriding pkg-config 1829 JEMALLOC_LIBS 1830 linker flags for JEMALLOC, overriding pkg-config 1831 JEMALLOC_VERSION 1832 version of jemalloc, overriding pkg-config 1833 DTRACE path to dtrace binary used to build User Statically Defined 1834 Tracing probes 1835 1836Use these variables to override the choices made by `configure' or to help 1837it to find libraries and programs with nonstandard names/locations. 1838 1839Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>. 1840BIND home page: <https://www.isc.org/downloads/>. 1841_ACEOF 1842ac_status=$? 1843fi 1844 1845if test "$ac_init_help" = "recursive"; then 1846 # If there are subdirs, report their specific --help. 1847 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1848 test -d "$ac_dir" || 1849 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1850 continue 1851 ac_builddir=. 1852 1853case "$ac_dir" in 1854.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1855*) 1856 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1857 # A ".." for each directory in $ac_dir_suffix. 1858 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1859 case $ac_top_builddir_sub in 1860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1862 esac ;; 1863esac 1864ac_abs_top_builddir=$ac_pwd 1865ac_abs_builddir=$ac_pwd$ac_dir_suffix 1866# for backward compatibility: 1867ac_top_builddir=$ac_top_build_prefix 1868 1869case $srcdir in 1870 .) # We are building in place. 1871 ac_srcdir=. 1872 ac_top_srcdir=$ac_top_builddir_sub 1873 ac_abs_top_srcdir=$ac_pwd ;; 1874 [\\/]* | ?:[\\/]* ) # Absolute name. 1875 ac_srcdir=$srcdir$ac_dir_suffix; 1876 ac_top_srcdir=$srcdir 1877 ac_abs_top_srcdir=$srcdir ;; 1878 *) # Relative name. 1879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1880 ac_top_srcdir=$ac_top_build_prefix$srcdir 1881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1882esac 1883ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1884 1885 cd "$ac_dir" || { ac_status=$?; continue; } 1886 # Check for configure.gnu first; this name is used for a wrapper for 1887 # Metaconfig's "Configure" on case-insensitive file systems. 1888 if test -f "$ac_srcdir/configure.gnu"; then 1889 echo && 1890 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1891 elif test -f "$ac_srcdir/configure"; then 1892 echo && 1893 $SHELL "$ac_srcdir/configure" --help=recursive 1894 else 1895 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1896 fi || ac_status=$? 1897 cd "$ac_pwd" || { ac_status=$?; break; } 1898 done 1899fi 1900 1901test -n "$ac_init_help" && exit $ac_status 1902if $ac_init_version; then 1903 cat <<\_ACEOF 1904BIND configure 9.20.4 1905generated by GNU Autoconf 2.71 1906 1907Copyright (C) 2021 Free Software Foundation, Inc. 1908This configure script is free software; the Free Software Foundation 1909gives unlimited permission to copy, distribute and modify it. 1910_ACEOF 1911 exit 1912fi 1913 1914## ------------------------ ## 1915## Autoconf initialization. ## 1916## ------------------------ ## 1917 1918# ac_fn_c_try_compile LINENO 1919# -------------------------- 1920# Try to compile conftest.$ac_ext, and return whether this succeeded. 1921ac_fn_c_try_compile () 1922{ 1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1924 rm -f conftest.$ac_objext conftest.beam 1925 if { { ac_try="$ac_compile" 1926case "(($ac_try" in 1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1928 *) ac_try_echo=$ac_try;; 1929esac 1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1931printf "%s\n" "$ac_try_echo"; } >&5 1932 (eval "$ac_compile") 2>conftest.err 1933 ac_status=$? 1934 if test -s conftest.err; then 1935 grep -v '^ *+' conftest.err >conftest.er1 1936 cat conftest.er1 >&5 1937 mv -f conftest.er1 conftest.err 1938 fi 1939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1940 test $ac_status = 0; } && { 1941 test -z "$ac_c_werror_flag" || 1942 test ! -s conftest.err 1943 } && test -s conftest.$ac_objext 1944then : 1945 ac_retval=0 1946else $as_nop 1947 printf "%s\n" "$as_me: failed program was:" >&5 1948sed 's/^/| /' conftest.$ac_ext >&5 1949 1950 ac_retval=1 1951fi 1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1953 as_fn_set_status $ac_retval 1954 1955} # ac_fn_c_try_compile 1956 1957# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1958# ------------------------------------------------------- 1959# Tests whether HEADER exists and can be compiled using the include files in 1960# INCLUDES, setting the cache variable VAR accordingly. 1961ac_fn_c_check_header_compile () 1962{ 1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1965printf %s "checking for $2... " >&6; } 1966if eval test \${$3+y} 1967then : 1968 printf %s "(cached) " >&6 1969else $as_nop 1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1971/* end confdefs.h. */ 1972$4 1973#include <$2> 1974_ACEOF 1975if ac_fn_c_try_compile "$LINENO" 1976then : 1977 eval "$3=yes" 1978else $as_nop 1979 eval "$3=no" 1980fi 1981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1982fi 1983eval ac_res=\$$3 1984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1985printf "%s\n" "$ac_res" >&6; } 1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1987 1988} # ac_fn_c_check_header_compile 1989 1990# ac_fn_c_try_cpp LINENO 1991# ---------------------- 1992# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1993ac_fn_c_try_cpp () 1994{ 1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1996 if { { ac_try="$ac_cpp conftest.$ac_ext" 1997case "(($ac_try" in 1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1999 *) ac_try_echo=$ac_try;; 2000esac 2001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2002printf "%s\n" "$ac_try_echo"; } >&5 2003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2004 ac_status=$? 2005 if test -s conftest.err; then 2006 grep -v '^ *+' conftest.err >conftest.er1 2007 cat conftest.er1 >&5 2008 mv -f conftest.er1 conftest.err 2009 fi 2010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2011 test $ac_status = 0; } > conftest.i && { 2012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2013 test ! -s conftest.err 2014 } 2015then : 2016 ac_retval=0 2017else $as_nop 2018 printf "%s\n" "$as_me: failed program was:" >&5 2019sed 's/^/| /' conftest.$ac_ext >&5 2020 2021 ac_retval=1 2022fi 2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2024 as_fn_set_status $ac_retval 2025 2026} # ac_fn_c_try_cpp 2027 2028# ac_fn_c_try_run LINENO 2029# ---------------------- 2030# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2031# executables *can* be run. 2032ac_fn_c_try_run () 2033{ 2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2035 if { { ac_try="$ac_link" 2036case "(($ac_try" in 2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2038 *) ac_try_echo=$ac_try;; 2039esac 2040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2041printf "%s\n" "$ac_try_echo"; } >&5 2042 (eval "$ac_link") 2>&5 2043 ac_status=$? 2044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2045 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2046 { { case "(($ac_try" in 2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2048 *) ac_try_echo=$ac_try;; 2049esac 2050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2051printf "%s\n" "$ac_try_echo"; } >&5 2052 (eval "$ac_try") 2>&5 2053 ac_status=$? 2054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2055 test $ac_status = 0; }; } 2056then : 2057 ac_retval=0 2058else $as_nop 2059 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2060 printf "%s\n" "$as_me: failed program was:" >&5 2061sed 's/^/| /' conftest.$ac_ext >&5 2062 2063 ac_retval=$ac_status 2064fi 2065 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2067 as_fn_set_status $ac_retval 2068 2069} # ac_fn_c_try_run 2070 2071# ac_fn_c_try_link LINENO 2072# ----------------------- 2073# Try to link conftest.$ac_ext, and return whether this succeeded. 2074ac_fn_c_try_link () 2075{ 2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2077 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2078 if { { ac_try="$ac_link" 2079case "(($ac_try" in 2080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2081 *) ac_try_echo=$ac_try;; 2082esac 2083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2084printf "%s\n" "$ac_try_echo"; } >&5 2085 (eval "$ac_link") 2>conftest.err 2086 ac_status=$? 2087 if test -s conftest.err; then 2088 grep -v '^ *+' conftest.err >conftest.er1 2089 cat conftest.er1 >&5 2090 mv -f conftest.er1 conftest.err 2091 fi 2092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2093 test $ac_status = 0; } && { 2094 test -z "$ac_c_werror_flag" || 2095 test ! -s conftest.err 2096 } && test -s conftest$ac_exeext && { 2097 test "$cross_compiling" = yes || 2098 test -x conftest$ac_exeext 2099 } 2100then : 2101 ac_retval=0 2102else $as_nop 2103 printf "%s\n" "$as_me: failed program was:" >&5 2104sed 's/^/| /' conftest.$ac_ext >&5 2105 2106 ac_retval=1 2107fi 2108 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2109 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2110 # interfere with the next link command; also delete a directory that is 2111 # left behind by Apple's compiler. We do this before executing the actions. 2112 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2114 as_fn_set_status $ac_retval 2115 2116} # ac_fn_c_try_link 2117 2118# ac_fn_c_check_func LINENO FUNC VAR 2119# ---------------------------------- 2120# Tests whether FUNC exists, setting the cache variable VAR accordingly 2121ac_fn_c_check_func () 2122{ 2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2125printf %s "checking for $2... " >&6; } 2126if eval test \${$3+y} 2127then : 2128 printf %s "(cached) " >&6 2129else $as_nop 2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2131/* end confdefs.h. */ 2132/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2133 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2134#define $2 innocuous_$2 2135 2136/* System header to define __stub macros and hopefully few prototypes, 2137 which can conflict with char $2 (); below. */ 2138 2139#include <limits.h> 2140#undef $2 2141 2142/* Override any GCC internal prototype to avoid an error. 2143 Use char because int might match the return type of a GCC 2144 builtin and then its argument prototype would still apply. */ 2145#ifdef __cplusplus 2146extern "C" 2147#endif 2148char $2 (); 2149/* The GNU C library defines this for functions which it implements 2150 to always fail with ENOSYS. Some functions are actually named 2151 something starting with __ and the normal name is an alias. */ 2152#if defined __stub_$2 || defined __stub___$2 2153choke me 2154#endif 2155 2156int 2157main (void) 2158{ 2159return $2 (); 2160 ; 2161 return 0; 2162} 2163_ACEOF 2164if ac_fn_c_try_link "$LINENO" 2165then : 2166 eval "$3=yes" 2167else $as_nop 2168 eval "$3=no" 2169fi 2170rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2171 conftest$ac_exeext conftest.$ac_ext 2172fi 2173eval ac_res=\$$3 2174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2175printf "%s\n" "$ac_res" >&6; } 2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2177 2178} # ac_fn_c_check_func 2179 2180# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2181# ------------------------------------------- 2182# Tests whether TYPE exists after having included INCLUDES, setting cache 2183# variable VAR accordingly. 2184ac_fn_c_check_type () 2185{ 2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2188printf %s "checking for $2... " >&6; } 2189if eval test \${$3+y} 2190then : 2191 printf %s "(cached) " >&6 2192else $as_nop 2193 eval "$3=no" 2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2195/* end confdefs.h. */ 2196$4 2197int 2198main (void) 2199{ 2200if (sizeof ($2)) 2201 return 0; 2202 ; 2203 return 0; 2204} 2205_ACEOF 2206if ac_fn_c_try_compile "$LINENO" 2207then : 2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2209/* end confdefs.h. */ 2210$4 2211int 2212main (void) 2213{ 2214if (sizeof (($2))) 2215 return 0; 2216 ; 2217 return 0; 2218} 2219_ACEOF 2220if ac_fn_c_try_compile "$LINENO" 2221then : 2222 2223else $as_nop 2224 eval "$3=yes" 2225fi 2226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2227fi 2228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2229fi 2230eval ac_res=\$$3 2231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2232printf "%s\n" "$ac_res" >&6; } 2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2234 2235} # ac_fn_c_check_type 2236 2237# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2238# ------------------------------------------------------------------ 2239# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2240# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2241ac_fn_check_decl () 2242{ 2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2244 as_decl_name=`echo $2|sed 's/ *(.*//'` 2245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2246printf %s "checking whether $as_decl_name is declared... " >&6; } 2247if eval test \${$3+y} 2248then : 2249 printf %s "(cached) " >&6 2250else $as_nop 2251 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2252 eval ac_save_FLAGS=\$$6 2253 as_fn_append $6 " $5" 2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2255/* end confdefs.h. */ 2256$4 2257int 2258main (void) 2259{ 2260#ifndef $as_decl_name 2261#ifdef __cplusplus 2262 (void) $as_decl_use; 2263#else 2264 (void) $as_decl_name; 2265#endif 2266#endif 2267 2268 ; 2269 return 0; 2270} 2271_ACEOF 2272if ac_fn_c_try_compile "$LINENO" 2273then : 2274 eval "$3=yes" 2275else $as_nop 2276 eval "$3=no" 2277fi 2278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2279 eval $6=\$ac_save_FLAGS 2280 2281fi 2282eval ac_res=\$$3 2283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2284printf "%s\n" "$ac_res" >&6; } 2285 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2286 2287} # ac_fn_check_decl 2288ac_configure_args_raw= 2289for ac_arg 2290do 2291 case $ac_arg in 2292 *\'*) 2293 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2294 esac 2295 as_fn_append ac_configure_args_raw " '$ac_arg'" 2296done 2297 2298case $ac_configure_args_raw in 2299 *$as_nl*) 2300 ac_safe_unquote= ;; 2301 *) 2302 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2303 ac_unsafe_a="$ac_unsafe_z#~" 2304 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2305 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2306esac 2307 2308cat >config.log <<_ACEOF 2309This file contains any messages produced by compilers while 2310running configure, to aid debugging if configure makes a mistake. 2311 2312It was created by BIND $as_me 9.20.4, which was 2313generated by GNU Autoconf 2.71. Invocation command line was 2314 2315 $ $0$ac_configure_args_raw 2316 2317_ACEOF 2318exec 5>>config.log 2319{ 2320cat <<_ASUNAME 2321## --------- ## 2322## Platform. ## 2323## --------- ## 2324 2325hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2326uname -m = `(uname -m) 2>/dev/null || echo unknown` 2327uname -r = `(uname -r) 2>/dev/null || echo unknown` 2328uname -s = `(uname -s) 2>/dev/null || echo unknown` 2329uname -v = `(uname -v) 2>/dev/null || echo unknown` 2330 2331/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2332/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2333 2334/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2335/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2336/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2337/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2338/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2339/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2340/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2341 2342_ASUNAME 2343 2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2345for as_dir in $PATH 2346do 2347 IFS=$as_save_IFS 2348 case $as_dir in #((( 2349 '') as_dir=./ ;; 2350 */) ;; 2351 *) as_dir=$as_dir/ ;; 2352 esac 2353 printf "%s\n" "PATH: $as_dir" 2354 done 2355IFS=$as_save_IFS 2356 2357} >&5 2358 2359cat >&5 <<_ACEOF 2360 2361 2362## ----------- ## 2363## Core tests. ## 2364## ----------- ## 2365 2366_ACEOF 2367 2368 2369# Keep a trace of the command line. 2370# Strip out --no-create and --no-recursion so they do not pile up. 2371# Strip out --silent because we don't want to record it for future runs. 2372# Also quote any args containing shell meta-characters. 2373# Make two passes to allow for proper duplicate-argument suppression. 2374ac_configure_args= 2375ac_configure_args0= 2376ac_configure_args1= 2377ac_must_keep_next=false 2378for ac_pass in 1 2 2379do 2380 for ac_arg 2381 do 2382 case $ac_arg in 2383 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2385 | -silent | --silent | --silen | --sile | --sil) 2386 continue ;; 2387 *\'*) 2388 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2389 esac 2390 case $ac_pass in 2391 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2392 2) 2393 as_fn_append ac_configure_args1 " '$ac_arg'" 2394 if test $ac_must_keep_next = true; then 2395 ac_must_keep_next=false # Got value, back to normal. 2396 else 2397 case $ac_arg in 2398 *=* | --config-cache | -C | -disable-* | --disable-* \ 2399 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2400 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2401 | -with-* | --with-* | -without-* | --without-* | --x) 2402 case "$ac_configure_args0 " in 2403 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2404 esac 2405 ;; 2406 -* ) ac_must_keep_next=true ;; 2407 esac 2408 fi 2409 as_fn_append ac_configure_args " '$ac_arg'" 2410 ;; 2411 esac 2412 done 2413done 2414{ ac_configure_args0=; unset ac_configure_args0;} 2415{ ac_configure_args1=; unset ac_configure_args1;} 2416 2417# When interrupted or exit'd, cleanup temporary files, and complete 2418# config.log. We remove comments because anyway the quotes in there 2419# would cause problems or look ugly. 2420# WARNING: Use '\'' to represent an apostrophe within the trap. 2421# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2422trap 'exit_status=$? 2423 # Sanitize IFS. 2424 IFS=" "" $as_nl" 2425 # Save into config.log some information that might help in debugging. 2426 { 2427 echo 2428 2429 printf "%s\n" "## ---------------- ## 2430## Cache variables. ## 2431## ---------------- ##" 2432 echo 2433 # The following way of writing the cache mishandles newlines in values, 2434( 2435 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2436 eval ac_val=\$$ac_var 2437 case $ac_val in #( 2438 *${as_nl}*) 2439 case $ac_var in #( 2440 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2441printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2442 esac 2443 case $ac_var in #( 2444 _ | IFS | as_nl) ;; #( 2445 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2446 *) { eval $ac_var=; unset $ac_var;} ;; 2447 esac ;; 2448 esac 2449 done 2450 (set) 2>&1 | 2451 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2452 *${as_nl}ac_space=\ *) 2453 sed -n \ 2454 "s/'\''/'\''\\\\'\'''\''/g; 2455 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2456 ;; #( 2457 *) 2458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2459 ;; 2460 esac | 2461 sort 2462) 2463 echo 2464 2465 printf "%s\n" "## ----------------- ## 2466## Output variables. ## 2467## ----------------- ##" 2468 echo 2469 for ac_var in $ac_subst_vars 2470 do 2471 eval ac_val=\$$ac_var 2472 case $ac_val in 2473 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2474 esac 2475 printf "%s\n" "$ac_var='\''$ac_val'\''" 2476 done | sort 2477 echo 2478 2479 if test -n "$ac_subst_files"; then 2480 printf "%s\n" "## ------------------- ## 2481## File substitutions. ## 2482## ------------------- ##" 2483 echo 2484 for ac_var in $ac_subst_files 2485 do 2486 eval ac_val=\$$ac_var 2487 case $ac_val in 2488 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2489 esac 2490 printf "%s\n" "$ac_var='\''$ac_val'\''" 2491 done | sort 2492 echo 2493 fi 2494 2495 if test -s confdefs.h; then 2496 printf "%s\n" "## ----------- ## 2497## confdefs.h. ## 2498## ----------- ##" 2499 echo 2500 cat confdefs.h 2501 echo 2502 fi 2503 test "$ac_signal" != 0 && 2504 printf "%s\n" "$as_me: caught signal $ac_signal" 2505 printf "%s\n" "$as_me: exit $exit_status" 2506 } >&5 2507 rm -f core *.core core.conftest.* && 2508 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2509 exit $exit_status 2510' 0 2511for ac_signal in 1 2 13 15; do 2512 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2513done 2514ac_signal=0 2515 2516# confdefs.h avoids OS command line length limits that DEFS can exceed. 2517rm -f -r conftest* confdefs.h 2518 2519printf "%s\n" "/* confdefs.h */" > confdefs.h 2520 2521# Predefined preprocessor variables. 2522 2523printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2524 2525printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2526 2527printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2528 2529printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2530 2531printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2532 2533printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2534 2535 2536# Let the site file select an alternate cache file if it wants to. 2537# Prefer an explicitly selected file to automatically selected ones. 2538if test -n "$CONFIG_SITE"; then 2539 ac_site_files="$CONFIG_SITE" 2540elif test "x$prefix" != xNONE; then 2541 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2542else 2543 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2544fi 2545 2546for ac_site_file in $ac_site_files 2547do 2548 case $ac_site_file in #( 2549 */*) : 2550 ;; #( 2551 *) : 2552 ac_site_file=./$ac_site_file ;; 2553esac 2554 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2556printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2557 sed 's/^/| /' "$ac_site_file" >&5 2558 . "$ac_site_file" \ 2559 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2560printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2561as_fn_error $? "failed to load site script $ac_site_file 2562See \`config.log' for more details" "$LINENO" 5; } 2563 fi 2564done 2565 2566if test -r "$cache_file"; then 2567 # Some versions of bash will fail to source /dev/null (special files 2568 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2569 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2571printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2572 case $cache_file in 2573 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2574 *) . "./$cache_file";; 2575 esac 2576 fi 2577else 2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2579printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2580 >$cache_file 2581fi 2582 2583as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2584# Test code for whether the C compiler supports C89 (global declarations) 2585ac_c_conftest_c89_globals=' 2586/* Does the compiler advertise C89 conformance? 2587 Do not test the value of __STDC__, because some compilers set it to 0 2588 while being otherwise adequately conformant. */ 2589#if !defined __STDC__ 2590# error "Compiler does not advertise C89 conformance" 2591#endif 2592 2593#include <stddef.h> 2594#include <stdarg.h> 2595struct stat; 2596/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2597struct buf { int x; }; 2598struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2599static char *e (p, i) 2600 char **p; 2601 int i; 2602{ 2603 return p[i]; 2604} 2605static char *f (char * (*g) (char **, int), char **p, ...) 2606{ 2607 char *s; 2608 va_list v; 2609 va_start (v,p); 2610 s = g (p, va_arg (v,int)); 2611 va_end (v); 2612 return s; 2613} 2614 2615/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2616 function prototypes and stuff, but not \xHH hex character constants. 2617 These do not provoke an error unfortunately, instead are silently treated 2618 as an "x". The following induces an error, until -std is added to get 2619 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2620 array size at least. It is necessary to write \x00 == 0 to get something 2621 that is true only with -std. */ 2622int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2623 2624/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2625 inside strings and character constants. */ 2626#define FOO(x) '\''x'\'' 2627int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2628 2629int test (int i, double x); 2630struct s1 {int (*f) (int a);}; 2631struct s2 {int (*f) (double a);}; 2632int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2633 int, int);' 2634 2635# Test code for whether the C compiler supports C89 (body of main). 2636ac_c_conftest_c89_main=' 2637ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2638' 2639 2640# Test code for whether the C compiler supports C99 (global declarations) 2641ac_c_conftest_c99_globals=' 2642// Does the compiler advertise C99 conformance? 2643#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2644# error "Compiler does not advertise C99 conformance" 2645#endif 2646 2647#include <stdbool.h> 2648extern int puts (const char *); 2649extern int printf (const char *, ...); 2650extern int dprintf (int, const char *, ...); 2651extern void *malloc (size_t); 2652 2653// Check varargs macros. These examples are taken from C99 6.10.3.5. 2654// dprintf is used instead of fprintf to avoid needing to declare 2655// FILE and stderr. 2656#define debug(...) dprintf (2, __VA_ARGS__) 2657#define showlist(...) puts (#__VA_ARGS__) 2658#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2659static void 2660test_varargs_macros (void) 2661{ 2662 int x = 1234; 2663 int y = 5678; 2664 debug ("Flag"); 2665 debug ("X = %d\n", x); 2666 showlist (The first, second, and third items.); 2667 report (x>y, "x is %d but y is %d", x, y); 2668} 2669 2670// Check long long types. 2671#define BIG64 18446744073709551615ull 2672#define BIG32 4294967295ul 2673#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2674#if !BIG_OK 2675 #error "your preprocessor is broken" 2676#endif 2677#if BIG_OK 2678#else 2679 #error "your preprocessor is broken" 2680#endif 2681static long long int bignum = -9223372036854775807LL; 2682static unsigned long long int ubignum = BIG64; 2683 2684struct incomplete_array 2685{ 2686 int datasize; 2687 double data[]; 2688}; 2689 2690struct named_init { 2691 int number; 2692 const wchar_t *name; 2693 double average; 2694}; 2695 2696typedef const char *ccp; 2697 2698static inline int 2699test_restrict (ccp restrict text) 2700{ 2701 // See if C++-style comments work. 2702 // Iterate through items via the restricted pointer. 2703 // Also check for declarations in for loops. 2704 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2705 continue; 2706 return 0; 2707} 2708 2709// Check varargs and va_copy. 2710static bool 2711test_varargs (const char *format, ...) 2712{ 2713 va_list args; 2714 va_start (args, format); 2715 va_list args_copy; 2716 va_copy (args_copy, args); 2717 2718 const char *str = ""; 2719 int number = 0; 2720 float fnumber = 0; 2721 2722 while (*format) 2723 { 2724 switch (*format++) 2725 { 2726 case '\''s'\'': // string 2727 str = va_arg (args_copy, const char *); 2728 break; 2729 case '\''d'\'': // int 2730 number = va_arg (args_copy, int); 2731 break; 2732 case '\''f'\'': // float 2733 fnumber = va_arg (args_copy, double); 2734 break; 2735 default: 2736 break; 2737 } 2738 } 2739 va_end (args_copy); 2740 va_end (args); 2741 2742 return *str && number && fnumber; 2743} 2744' 2745 2746# Test code for whether the C compiler supports C99 (body of main). 2747ac_c_conftest_c99_main=' 2748 // Check bool. 2749 _Bool success = false; 2750 success |= (argc != 0); 2751 2752 // Check restrict. 2753 if (test_restrict ("String literal") == 0) 2754 success = true; 2755 char *restrict newvar = "Another string"; 2756 2757 // Check varargs. 2758 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2759 test_varargs_macros (); 2760 2761 // Check flexible array members. 2762 struct incomplete_array *ia = 2763 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2764 ia->datasize = 10; 2765 for (int i = 0; i < ia->datasize; ++i) 2766 ia->data[i] = i * 1.234; 2767 2768 // Check named initializers. 2769 struct named_init ni = { 2770 .number = 34, 2771 .name = L"Test wide string", 2772 .average = 543.34343, 2773 }; 2774 2775 ni.number = 58; 2776 2777 int dynamic_array[ni.number]; 2778 dynamic_array[0] = argv[0][0]; 2779 dynamic_array[ni.number - 1] = 543; 2780 2781 // work around unused variable warnings 2782 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2783 || dynamic_array[ni.number - 1] != 543); 2784' 2785 2786# Test code for whether the C compiler supports C11 (global declarations) 2787ac_c_conftest_c11_globals=' 2788// Does the compiler advertise C11 conformance? 2789#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2790# error "Compiler does not advertise C11 conformance" 2791#endif 2792 2793// Check _Alignas. 2794char _Alignas (double) aligned_as_double; 2795char _Alignas (0) no_special_alignment; 2796extern char aligned_as_int; 2797char _Alignas (0) _Alignas (int) aligned_as_int; 2798 2799// Check _Alignof. 2800enum 2801{ 2802 int_alignment = _Alignof (int), 2803 int_array_alignment = _Alignof (int[100]), 2804 char_alignment = _Alignof (char) 2805}; 2806_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2807 2808// Check _Noreturn. 2809int _Noreturn does_not_return (void) { for (;;) continue; } 2810 2811// Check _Static_assert. 2812struct test_static_assert 2813{ 2814 int x; 2815 _Static_assert (sizeof (int) <= sizeof (long int), 2816 "_Static_assert does not work in struct"); 2817 long int y; 2818}; 2819 2820// Check UTF-8 literals. 2821#define u8 syntax error! 2822char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2823 2824// Check duplicate typedefs. 2825typedef long *long_ptr; 2826typedef long int *long_ptr; 2827typedef long_ptr long_ptr; 2828 2829// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2830struct anonymous 2831{ 2832 union { 2833 struct { int i; int j; }; 2834 struct { int k; long int l; } w; 2835 }; 2836 int m; 2837} v1; 2838' 2839 2840# Test code for whether the C compiler supports C11 (body of main). 2841ac_c_conftest_c11_main=' 2842 _Static_assert ((offsetof (struct anonymous, i) 2843 == offsetof (struct anonymous, w.k)), 2844 "Anonymous union alignment botch"); 2845 v1.i = 2; 2846 v1.w.k = 5; 2847 ok |= v1.i != 5; 2848' 2849 2850# Test code for whether the C compiler supports C11 (complete). 2851ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2852${ac_c_conftest_c99_globals} 2853${ac_c_conftest_c11_globals} 2854 2855int 2856main (int argc, char **argv) 2857{ 2858 int ok = 0; 2859 ${ac_c_conftest_c89_main} 2860 ${ac_c_conftest_c99_main} 2861 ${ac_c_conftest_c11_main} 2862 return ok; 2863} 2864" 2865 2866# Test code for whether the C compiler supports C99 (complete). 2867ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2868${ac_c_conftest_c99_globals} 2869 2870int 2871main (int argc, char **argv) 2872{ 2873 int ok = 0; 2874 ${ac_c_conftest_c89_main} 2875 ${ac_c_conftest_c99_main} 2876 return ok; 2877} 2878" 2879 2880# Test code for whether the C compiler supports C89 (complete). 2881ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2882 2883int 2884main (int argc, char **argv) 2885{ 2886 int ok = 0; 2887 ${ac_c_conftest_c89_main} 2888 return ok; 2889} 2890" 2891 2892as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2893as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2894as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2895as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2896as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2897as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2898as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2899as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2900as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2901as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2902 2903# Auxiliary files required by this configure script. 2904ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub" 2905 2906# Locations in which to look for auxiliary files. 2907ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2908 2909# Search for a directory containing all of the required auxiliary files, 2910# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2911# If we don't find one directory that contains all the files we need, 2912# we report the set of missing files from the *first* directory in 2913# $ac_aux_dir_candidates and give up. 2914ac_missing_aux_files="" 2915ac_first_candidate=: 2916printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2918as_found=false 2919for as_dir in $ac_aux_dir_candidates 2920do 2921 IFS=$as_save_IFS 2922 case $as_dir in #((( 2923 '') as_dir=./ ;; 2924 */) ;; 2925 *) as_dir=$as_dir/ ;; 2926 esac 2927 as_found=: 2928 2929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2930 ac_aux_dir_found=yes 2931 ac_install_sh= 2932 for ac_aux in $ac_aux_files 2933 do 2934 # As a special case, if "install-sh" is required, that requirement 2935 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2936 # and $ac_install_sh is set appropriately for whichever one is found. 2937 if test x"$ac_aux" = x"install-sh" 2938 then 2939 if test -f "${as_dir}install-sh"; then 2940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2941 ac_install_sh="${as_dir}install-sh -c" 2942 elif test -f "${as_dir}install.sh"; then 2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2944 ac_install_sh="${as_dir}install.sh -c" 2945 elif test -f "${as_dir}shtool"; then 2946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2947 ac_install_sh="${as_dir}shtool install -c" 2948 else 2949 ac_aux_dir_found=no 2950 if $ac_first_candidate; then 2951 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2952 else 2953 break 2954 fi 2955 fi 2956 else 2957 if test -f "${as_dir}${ac_aux}"; then 2958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2959 else 2960 ac_aux_dir_found=no 2961 if $ac_first_candidate; then 2962 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2963 else 2964 break 2965 fi 2966 fi 2967 fi 2968 done 2969 if test "$ac_aux_dir_found" = yes; then 2970 ac_aux_dir="$as_dir" 2971 break 2972 fi 2973 ac_first_candidate=false 2974 2975 as_found=false 2976done 2977IFS=$as_save_IFS 2978if $as_found 2979then : 2980 2981else $as_nop 2982 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2983fi 2984 2985 2986# These three variables are undocumented and unsupported, 2987# and are intended to be withdrawn in a future Autoconf release. 2988# They can cause serious problems if a builder's source tree is in a directory 2989# whose full name contains unusual characters. 2990if test -f "${ac_aux_dir}config.guess"; then 2991 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2992fi 2993if test -f "${ac_aux_dir}config.sub"; then 2994 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2995fi 2996if test -f "$ac_aux_dir/configure"; then 2997 ac_configure="$SHELL ${ac_aux_dir}configure" 2998fi 2999 3000# Check that the precious variables saved in the cache have kept the same 3001# value. 3002ac_cache_corrupted=false 3003for ac_var in $ac_precious_vars; do 3004 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3005 eval ac_new_set=\$ac_env_${ac_var}_set 3006 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3007 eval ac_new_val=\$ac_env_${ac_var}_value 3008 case $ac_old_set,$ac_new_set in 3009 set,) 3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3011printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3012 ac_cache_corrupted=: ;; 3013 ,set) 3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3015printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3016 ac_cache_corrupted=: ;; 3017 ,);; 3018 *) 3019 if test "x$ac_old_val" != "x$ac_new_val"; then 3020 # differences in whitespace do not lead to failure. 3021 ac_old_val_w=`echo x $ac_old_val` 3022 ac_new_val_w=`echo x $ac_new_val` 3023 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3025printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3026 ac_cache_corrupted=: 3027 else 3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3029printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3030 eval $ac_var=\$ac_old_val 3031 fi 3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3033printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3035printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3036 fi;; 3037 esac 3038 # Pass precious variables to config.status. 3039 if test "$ac_new_set" = set; then 3040 case $ac_new_val in 3041 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3042 *) ac_arg=$ac_var=$ac_new_val ;; 3043 esac 3044 case " $ac_configure_args " in 3045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3046 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3047 esac 3048 fi 3049done 3050if $ac_cache_corrupted; then 3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3052printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3054printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3055 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3056 and start over" "$LINENO" 5 3057fi 3058## -------------------- ## 3059## Main body of script. ## 3060## -------------------- ## 3061 3062ac_ext=c 3063ac_cpp='$CPP $CPPFLAGS' 3064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3066ac_compiler_gnu=$ac_cv_c_compiler_gnu 3067 3068 3069 3070 3071 3072printf "%s\n" "#define PACKAGE_VERSION_MAJOR \"9\"" >>confdefs.h 3073 3074 3075printf "%s\n" "#define PACKAGE_VERSION_MINOR \"20\"" >>confdefs.h 3076 3077 3078printf "%s\n" "#define PACKAGE_VERSION_PATCH \"4\"" >>confdefs.h 3079 3080 3081printf "%s\n" "#define PACKAGE_VERSION_EXTRA \"\"" >>confdefs.h 3082 3083 3084printf "%s\n" "#define PACKAGE_DESCRIPTION \" (Stable Release)\"" >>confdefs.h 3085 3086 3087printf "%s\n" "#define PACKAGE_SRCID \"283ac23\"" >>confdefs.h 3088 3089 3090bind_CONFIGARGS="${ac_configure_args:-default}" 3091 3092printf "%s\n" "#define PACKAGE_CONFIGARGS \"$bind_CONFIGARGS\"" >>confdefs.h 3093 3094 3095 3096printf "%s\n" "#define PACKAGE_BUILDER \"make\"" >>confdefs.h 3097 3098 3099# 3100# Get the Canonical System Type 3101# 3102 3103 3104 3105 # Make sure we can run config.sub. 3106$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3107 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3108 3109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3110printf %s "checking build system type... " >&6; } 3111if test ${ac_cv_build+y} 3112then : 3113 printf %s "(cached) " >&6 3114else $as_nop 3115 ac_build_alias=$build_alias 3116test "x$ac_build_alias" = x && 3117 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3118test "x$ac_build_alias" = x && 3119 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3120ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3121 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3122 3123fi 3124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3125printf "%s\n" "$ac_cv_build" >&6; } 3126case $ac_cv_build in 3127*-*-*) ;; 3128*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3129esac 3130build=$ac_cv_build 3131ac_save_IFS=$IFS; IFS='-' 3132set x $ac_cv_build 3133shift 3134build_cpu=$1 3135build_vendor=$2 3136shift; shift 3137# Remember, the first character of IFS is used to create $*, 3138# except with old shells: 3139build_os=$* 3140IFS=$ac_save_IFS 3141case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3142 3143 3144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3145printf %s "checking host system type... " >&6; } 3146if test ${ac_cv_host+y} 3147then : 3148 printf %s "(cached) " >&6 3149else $as_nop 3150 if test "x$host_alias" = x; then 3151 ac_cv_host=$ac_cv_build 3152else 3153 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3154 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3155fi 3156 3157fi 3158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3159printf "%s\n" "$ac_cv_host" >&6; } 3160case $ac_cv_host in 3161*-*-*) ;; 3162*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3163esac 3164host=$ac_cv_host 3165ac_save_IFS=$IFS; IFS='-' 3166set x $ac_cv_host 3167shift 3168host_cpu=$1 3169host_vendor=$2 3170shift; shift 3171# Remember, the first character of IFS is used to create $*, 3172# except with old shells: 3173host_os=$* 3174IFS=$ac_save_IFS 3175case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3176 3177 3178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3179printf %s "checking target system type... " >&6; } 3180if test ${ac_cv_target+y} 3181then : 3182 printf %s "(cached) " >&6 3183else $as_nop 3184 if test "x$target_alias" = x; then 3185 ac_cv_target=$ac_cv_host 3186else 3187 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || 3188 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 3189fi 3190 3191fi 3192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3193printf "%s\n" "$ac_cv_target" >&6; } 3194case $ac_cv_target in 3195*-*-*) ;; 3196*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3197esac 3198target=$ac_cv_target 3199ac_save_IFS=$IFS; IFS='-' 3200set x $ac_cv_target 3201shift 3202target_cpu=$1 3203target_vendor=$2 3204shift; shift 3205# Remember, the first character of IFS is used to create $*, 3206# except with old shells: 3207target_os=$* 3208IFS=$ac_save_IFS 3209case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3210 3211 3212# The aliases save the names the user supplied, while $host etc. 3213# will get canonicalized. 3214test -n "$target_alias" && 3215 test "$program_prefix$program_suffix$program_transform_name" = \ 3216 NONENONEs,x,x, && 3217 program_prefix=${target_alias}- 3218 3219 3220am__api_version='1.16' 3221 3222 3223 # Find a good install program. We prefer a C program (faster), 3224# so one script is as good as another. But avoid the broken or 3225# incompatible versions: 3226# SysV /etc/install, /usr/sbin/install 3227# SunOS /usr/etc/install 3228# IRIX /sbin/install 3229# AIX /bin/install 3230# AmigaOS /C/install, which installs bootblocks on floppy discs 3231# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3232# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3233# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3234# OS/2's system install, which has a completely different semantic 3235# ./install, which can be erroneously created by make from ./install.sh. 3236# Reject install programs that cannot install multiple files. 3237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3238printf %s "checking for a BSD-compatible install... " >&6; } 3239if test -z "$INSTALL"; then 3240if test ${ac_cv_path_install+y} 3241then : 3242 printf %s "(cached) " >&6 3243else $as_nop 3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3245for as_dir in $PATH 3246do 3247 IFS=$as_save_IFS 3248 case $as_dir in #((( 3249 '') as_dir=./ ;; 3250 */) ;; 3251 *) as_dir=$as_dir/ ;; 3252 esac 3253 # Account for fact that we put trailing slashes in our PATH walk. 3254case $as_dir in #(( 3255 ./ | /[cC]/* | \ 3256 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3257 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3258 /usr/ucb/* ) ;; 3259 *) 3260 # OSF1 and SCO ODT 3.0 have their own names for install. 3261 # Don't use installbsd from OSF since it installs stuff as root 3262 # by default. 3263 for ac_prog in ginstall scoinst install; do 3264 for ac_exec_ext in '' $ac_executable_extensions; do 3265 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3266 if test $ac_prog = install && 3267 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3268 # AIX install. It has an incompatible calling convention. 3269 : 3270 elif test $ac_prog = install && 3271 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3272 # program-specific install script used by HP pwplus--don't use. 3273 : 3274 else 3275 rm -rf conftest.one conftest.two conftest.dir 3276 echo one > conftest.one 3277 echo two > conftest.two 3278 mkdir conftest.dir 3279 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3280 test -s conftest.one && test -s conftest.two && 3281 test -s conftest.dir/conftest.one && 3282 test -s conftest.dir/conftest.two 3283 then 3284 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3285 break 3 3286 fi 3287 fi 3288 fi 3289 done 3290 done 3291 ;; 3292esac 3293 3294 done 3295IFS=$as_save_IFS 3296 3297rm -rf conftest.one conftest.two conftest.dir 3298 3299fi 3300 if test ${ac_cv_path_install+y}; then 3301 INSTALL=$ac_cv_path_install 3302 else 3303 # As a last resort, use the slow shell script. Don't cache a 3304 # value for INSTALL within a source directory, because that will 3305 # break other packages using the cache if that directory is 3306 # removed, or if the value is a relative name. 3307 INSTALL=$ac_install_sh 3308 fi 3309fi 3310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3311printf "%s\n" "$INSTALL" >&6; } 3312 3313# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3314# It thinks the first close brace ends the variable substitution. 3315test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3316 3317test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3318 3319test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3320 3321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3322printf %s "checking whether build environment is sane... " >&6; } 3323# Reject unsafe characters in $srcdir or the absolute working directory 3324# name. Accept space and tab only in the latter. 3325am_lf=' 3326' 3327case `pwd` in 3328 *[\\\"\#\$\&\'\`$am_lf]*) 3329 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3330esac 3331case $srcdir in 3332 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3333 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3334esac 3335 3336# Do 'set' in a subshell so we don't clobber the current shell's 3337# arguments. Must try -L first in case configure is actually a 3338# symlink; some systems play weird games with the mod time of symlinks 3339# (eg FreeBSD returns the mod time of the symlink's containing 3340# directory). 3341if ( 3342 am_has_slept=no 3343 for am_try in 1 2; do 3344 echo "timestamp, slept: $am_has_slept" > conftest.file 3345 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3346 if test "$*" = "X"; then 3347 # -L didn't work. 3348 set X `ls -t "$srcdir/configure" conftest.file` 3349 fi 3350 if test "$*" != "X $srcdir/configure conftest.file" \ 3351 && test "$*" != "X conftest.file $srcdir/configure"; then 3352 3353 # If neither matched, then we have a broken ls. This can happen 3354 # if, for instance, CONFIG_SHELL is bash and it inherits a 3355 # broken ls alias from the environment. This has actually 3356 # happened. Such a system could not be considered "sane". 3357 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3358 alias in your environment" "$LINENO" 5 3359 fi 3360 if test "$2" = conftest.file || test $am_try -eq 2; then 3361 break 3362 fi 3363 # Just in case. 3364 sleep 1 3365 am_has_slept=yes 3366 done 3367 test "$2" = conftest.file 3368 ) 3369then 3370 # Ok. 3371 : 3372else 3373 as_fn_error $? "newly created file is older than distributed files! 3374Check your system clock" "$LINENO" 5 3375fi 3376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3377printf "%s\n" "yes" >&6; } 3378# If we didn't sleep, we still need to ensure time stamps of config.status and 3379# generated files are strictly newer. 3380am_sleep_pid= 3381if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3382 ( sleep 1 ) & 3383 am_sleep_pid=$! 3384fi 3385 3386rm -f conftest.file 3387 3388test "$program_prefix" != NONE && 3389 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3390# Use a double $ so make ignores it. 3391test "$program_suffix" != NONE && 3392 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3393# Double any \ or $. 3394# By default was `s,x,x', remove it if useless. 3395ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3396program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3397 3398 3399# Expand $ac_aux_dir to an absolute path. 3400am_aux_dir=`cd "$ac_aux_dir" && pwd` 3401 3402 3403 if test x"${MISSING+set}" != xset; then 3404 MISSING="\${SHELL} '$am_aux_dir/missing'" 3405fi 3406# Use eval to expand $SHELL 3407if eval "$MISSING --is-lightweight"; then 3408 am_missing_run="$MISSING " 3409else 3410 am_missing_run= 3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3412printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3413fi 3414 3415if test x"${install_sh+set}" != xset; then 3416 case $am_aux_dir in 3417 *\ * | *\ *) 3418 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3419 *) 3420 install_sh="\${SHELL} $am_aux_dir/install-sh" 3421 esac 3422fi 3423 3424# Installed binaries are usually stripped using 'strip' when the user 3425# run "make install-strip". However 'strip' might not be the right 3426# tool to use in cross-compilation environments, therefore Automake 3427# will honor the 'STRIP' environment variable to overrule this program. 3428if test "$cross_compiling" != no; then 3429 if test -n "$ac_tool_prefix"; then 3430 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3431set dummy ${ac_tool_prefix}strip; ac_word=$2 3432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3433printf %s "checking for $ac_word... " >&6; } 3434if test ${ac_cv_prog_STRIP+y} 3435then : 3436 printf %s "(cached) " >&6 3437else $as_nop 3438 if test -n "$STRIP"; then 3439 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3440else 3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3442for as_dir in $PATH 3443do 3444 IFS=$as_save_IFS 3445 case $as_dir in #((( 3446 '') as_dir=./ ;; 3447 */) ;; 3448 *) as_dir=$as_dir/ ;; 3449 esac 3450 for ac_exec_ext in '' $ac_executable_extensions; do 3451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3452 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3454 break 2 3455 fi 3456done 3457 done 3458IFS=$as_save_IFS 3459 3460fi 3461fi 3462STRIP=$ac_cv_prog_STRIP 3463if test -n "$STRIP"; then 3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3465printf "%s\n" "$STRIP" >&6; } 3466else 3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3468printf "%s\n" "no" >&6; } 3469fi 3470 3471 3472fi 3473if test -z "$ac_cv_prog_STRIP"; then 3474 ac_ct_STRIP=$STRIP 3475 # Extract the first word of "strip", so it can be a program name with args. 3476set dummy strip; ac_word=$2 3477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3478printf %s "checking for $ac_word... " >&6; } 3479if test ${ac_cv_prog_ac_ct_STRIP+y} 3480then : 3481 printf %s "(cached) " >&6 3482else $as_nop 3483 if test -n "$ac_ct_STRIP"; then 3484 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3485else 3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3487for as_dir in $PATH 3488do 3489 IFS=$as_save_IFS 3490 case $as_dir in #((( 3491 '') as_dir=./ ;; 3492 */) ;; 3493 *) as_dir=$as_dir/ ;; 3494 esac 3495 for ac_exec_ext in '' $ac_executable_extensions; do 3496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3497 ac_cv_prog_ac_ct_STRIP="strip" 3498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3499 break 2 3500 fi 3501done 3502 done 3503IFS=$as_save_IFS 3504 3505fi 3506fi 3507ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3508if test -n "$ac_ct_STRIP"; then 3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3510printf "%s\n" "$ac_ct_STRIP" >&6; } 3511else 3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3513printf "%s\n" "no" >&6; } 3514fi 3515 3516 if test "x$ac_ct_STRIP" = x; then 3517 STRIP=":" 3518 else 3519 case $cross_compiling:$ac_tool_warned in 3520yes:) 3521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3522printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3523ac_tool_warned=yes ;; 3524esac 3525 STRIP=$ac_ct_STRIP 3526 fi 3527else 3528 STRIP="$ac_cv_prog_STRIP" 3529fi 3530 3531fi 3532INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3533 3534 3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3536printf %s "checking for a race-free mkdir -p... " >&6; } 3537if test -z "$MKDIR_P"; then 3538 if test ${ac_cv_path_mkdir+y} 3539then : 3540 printf %s "(cached) " >&6 3541else $as_nop 3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3543for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3544do 3545 IFS=$as_save_IFS 3546 case $as_dir in #((( 3547 '') as_dir=./ ;; 3548 */) ;; 3549 *) as_dir=$as_dir/ ;; 3550 esac 3551 for ac_prog in mkdir gmkdir; do 3552 for ac_exec_ext in '' $ac_executable_extensions; do 3553 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3554 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3555 'mkdir ('*'coreutils) '* | \ 3556 'BusyBox '* | \ 3557 'mkdir (fileutils) '4.1*) 3558 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3559 break 3;; 3560 esac 3561 done 3562 done 3563 done 3564IFS=$as_save_IFS 3565 3566fi 3567 3568 test -d ./--version && rmdir ./--version 3569 if test ${ac_cv_path_mkdir+y}; then 3570 MKDIR_P="$ac_cv_path_mkdir -p" 3571 else 3572 # As a last resort, use the slow shell script. Don't cache a 3573 # value for MKDIR_P within a source directory, because that will 3574 # break other packages using the cache if that directory is 3575 # removed, or if the value is a relative name. 3576 MKDIR_P="$ac_install_sh -d" 3577 fi 3578fi 3579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3580printf "%s\n" "$MKDIR_P" >&6; } 3581 3582for ac_prog in gawk mawk nawk awk 3583do 3584 # Extract the first word of "$ac_prog", so it can be a program name with args. 3585set dummy $ac_prog; ac_word=$2 3586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3587printf %s "checking for $ac_word... " >&6; } 3588if test ${ac_cv_prog_AWK+y} 3589then : 3590 printf %s "(cached) " >&6 3591else $as_nop 3592 if test -n "$AWK"; then 3593 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3594else 3595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3596for as_dir in $PATH 3597do 3598 IFS=$as_save_IFS 3599 case $as_dir in #((( 3600 '') as_dir=./ ;; 3601 */) ;; 3602 *) as_dir=$as_dir/ ;; 3603 esac 3604 for ac_exec_ext in '' $ac_executable_extensions; do 3605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3606 ac_cv_prog_AWK="$ac_prog" 3607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3608 break 2 3609 fi 3610done 3611 done 3612IFS=$as_save_IFS 3613 3614fi 3615fi 3616AWK=$ac_cv_prog_AWK 3617if test -n "$AWK"; then 3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3619printf "%s\n" "$AWK" >&6; } 3620else 3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3622printf "%s\n" "no" >&6; } 3623fi 3624 3625 3626 test -n "$AWK" && break 3627done 3628 3629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3630printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3631set x ${MAKE-make} 3632ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3633if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3634then : 3635 printf %s "(cached) " >&6 3636else $as_nop 3637 cat >conftest.make <<\_ACEOF 3638SHELL = /bin/sh 3639all: 3640 @echo '@@@%%%=$(MAKE)=@@@%%%' 3641_ACEOF 3642# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3643case `${MAKE-make} -f conftest.make 2>/dev/null` in 3644 *@@@%%%=?*=@@@%%%*) 3645 eval ac_cv_prog_make_${ac_make}_set=yes;; 3646 *) 3647 eval ac_cv_prog_make_${ac_make}_set=no;; 3648esac 3649rm -f conftest.make 3650fi 3651if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3653printf "%s\n" "yes" >&6; } 3654 SET_MAKE= 3655else 3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3657printf "%s\n" "no" >&6; } 3658 SET_MAKE="MAKE=${MAKE-make}" 3659fi 3660 3661rm -rf .tst 2>/dev/null 3662mkdir .tst 2>/dev/null 3663if test -d .tst; then 3664 am__leading_dot=. 3665else 3666 am__leading_dot=_ 3667fi 3668rmdir .tst 2>/dev/null 3669 3670# Check whether --enable-silent-rules was given. 3671if test ${enable_silent_rules+y} 3672then : 3673 enableval=$enable_silent_rules; 3674fi 3675 3676case $enable_silent_rules in # ((( 3677 yes) AM_DEFAULT_VERBOSITY=0;; 3678 no) AM_DEFAULT_VERBOSITY=1;; 3679 *) AM_DEFAULT_VERBOSITY=1;; 3680esac 3681am_make=${MAKE-make} 3682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3683printf %s "checking whether $am_make supports nested variables... " >&6; } 3684if test ${am_cv_make_support_nested_variables+y} 3685then : 3686 printf %s "(cached) " >&6 3687else $as_nop 3688 if printf "%s\n" 'TRUE=$(BAR$(V)) 3689BAR0=false 3690BAR1=true 3691V=1 3692am__doit: 3693 @$(TRUE) 3694.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3695 am_cv_make_support_nested_variables=yes 3696else 3697 am_cv_make_support_nested_variables=no 3698fi 3699fi 3700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3701printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3702if test $am_cv_make_support_nested_variables = yes; then 3703 AM_V='$(V)' 3704 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3705else 3706 AM_V=$AM_DEFAULT_VERBOSITY 3707 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3708fi 3709AM_BACKSLASH='\' 3710 3711if test "`cd $srcdir && pwd`" != "`pwd`"; then 3712 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3713 # is not polluted with repeated "-I." 3714 am__isrc=' -I$(srcdir)' 3715 # test to see if srcdir already configured 3716 if test -f $srcdir/config.status; then 3717 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3718 fi 3719fi 3720 3721# test whether we have cygpath 3722if test -z "$CYGPATH_W"; then 3723 if (cygpath --version) >/dev/null 2>/dev/null; then 3724 CYGPATH_W='cygpath -w' 3725 else 3726 CYGPATH_W=echo 3727 fi 3728fi 3729 3730 3731# Define the identity of the package. 3732 PACKAGE='bind' 3733 VERSION='9.20.4' 3734 3735 3736printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3737 3738 3739printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3740 3741# Some tools Automake needs. 3742 3743ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3744 3745 3746AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3747 3748 3749AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3750 3751 3752AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3753 3754 3755MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3756 3757# For better backward compatibility. To be removed once Automake 1.9.x 3758# dies out for good. For more background, see: 3759# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3760# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3761mkdir_p='$(MKDIR_P)' 3762 3763# We need awk for the "check" target (and possibly the TAP driver). The 3764# system "awk" is bad on some platforms. 3765# Always define AMTAR for backward compatibility. Yes, it's still used 3766# in the wild :-( We should find a proper way to deprecate it ... 3767AMTAR='$${TAR-tar}' 3768 3769 3770# We'll loop over all known methods to create a tar archive until one works. 3771_am_tools='gnutar pax cpio none' 3772 3773 3774 3775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 3776printf %s "checking how to create a pax tar archive... " >&6; } 3777 3778 # Go ahead even if we have the value already cached. We do so because we 3779 # need to set the values for the 'am__tar' and 'am__untar' variables. 3780 _am_tools=${am_cv_prog_tar_pax-$_am_tools} 3781 3782 for _am_tool in $_am_tools; do 3783 case $_am_tool in 3784 gnutar) 3785 for _am_tar in tar gnutar gtar; do 3786 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3787 ($_am_tar --version) >&5 2>&5 3788 ac_status=$? 3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3790 (exit $ac_status); } && break 3791 done 3792 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' 3793 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' 3794 am__untar="$_am_tar -xf -" 3795 ;; 3796 plaintar) 3797 # Must skip GNU tar: if it does not support --format= it doesn't create 3798 # ustar tarball either. 3799 (tar --version) >/dev/null 2>&1 && continue 3800 am__tar='tar chf - "$$tardir"' 3801 am__tar_='tar chf - "$tardir"' 3802 am__untar='tar xf -' 3803 ;; 3804 pax) 3805 am__tar='pax -L -x pax -w "$$tardir"' 3806 am__tar_='pax -L -x pax -w "$tardir"' 3807 am__untar='pax -r' 3808 ;; 3809 cpio) 3810 am__tar='find "$$tardir" -print | cpio -o -H pax -L' 3811 am__tar_='find "$tardir" -print | cpio -o -H pax -L' 3812 am__untar='cpio -i -H pax -d' 3813 ;; 3814 none) 3815 am__tar=false 3816 am__tar_=false 3817 am__untar=false 3818 ;; 3819 esac 3820 3821 # If the value was cached, stop now. We just wanted to have am__tar 3822 # and am__untar set. 3823 test -n "${am_cv_prog_tar_pax}" && break 3824 3825 # tar/untar a dummy directory, and stop if the command works. 3826 rm -rf conftest.dir 3827 mkdir conftest.dir 3828 echo GrepMe > conftest.dir/file 3829 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3830 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3831 ac_status=$? 3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3833 (exit $ac_status); } 3834 rm -rf conftest.dir 3835 if test -s conftest.tar; then 3836 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3837 ($am__untar <conftest.tar) >&5 2>&5 3838 ac_status=$? 3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3840 (exit $ac_status); } 3841 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3842 (cat conftest.dir/file) >&5 2>&5 3843 ac_status=$? 3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3845 (exit $ac_status); } 3846 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3847 fi 3848 done 3849 rm -rf conftest.dir 3850 3851 if test ${am_cv_prog_tar_pax+y} 3852then : 3853 printf %s "(cached) " >&6 3854else $as_nop 3855 am_cv_prog_tar_pax=$_am_tool 3856fi 3857 3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 3859printf "%s\n" "$am_cv_prog_tar_pax" >&6; } 3860 3861 3862 3863 3864 3865# Variables for tags utilities; see am/tags.am 3866if test -z "$CTAGS"; then 3867 CTAGS=ctags 3868fi 3869 3870if test -z "$ETAGS"; then 3871 ETAGS=etags 3872fi 3873 3874if test -z "$CSCOPE"; then 3875 CSCOPE=cscope 3876fi 3877 3878 3879 3880# POSIX will say in a future version that running "rm -f" with no argument 3881# is OK; and we want to be able to make that assumption in our Makefile 3882# recipes. So use an aggressive probe to check that the usage we want is 3883# actually supported "in the wild" to an acceptable degree. 3884# See automake bug#10828. 3885# To make any issue more visible, cause the running configure to be aborted 3886# by default if the 'rm' program in use doesn't match our expectations; the 3887# user can still override this though. 3888if rm -f && rm -fr && rm -rf; then : OK; else 3889 cat >&2 <<'END' 3890Oops! 3891 3892Your 'rm' program seems unable to run without file operands specified 3893on the command line, even when the '-f' option is present. This is contrary 3894to the behaviour of most rm programs out there, and not conforming with 3895the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3896 3897Please tell bug-automake@gnu.org about your system, including the value 3898of your $PATH and any error possibly output before this message. This 3899can help us improve future automake versions. 3900 3901END 3902 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3903 echo 'Configuration will proceed anyway, since you have set the' >&2 3904 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3905 echo >&2 3906 else 3907 cat >&2 <<'END' 3908Aborting the configuration process, to ensure you take notice of the issue. 3909 3910You can download and install GNU coreutils to get an 'rm' implementation 3911that behaves properly: <https://www.gnu.org/software/coreutils/>. 3912 3913If you want to complete the configuration process using your problematic 3914'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3915to "yes", and re-run configure. 3916 3917END 3918 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3919 fi 3920fi 3921 3922# Check whether --enable-silent-rules was given. 3923if test ${enable_silent_rules+y} 3924then : 3925 enableval=$enable_silent_rules; 3926fi 3927 3928case $enable_silent_rules in # ((( 3929 yes) AM_DEFAULT_VERBOSITY=0;; 3930 no) AM_DEFAULT_VERBOSITY=1;; 3931 *) AM_DEFAULT_VERBOSITY=0;; 3932esac 3933am_make=${MAKE-make} 3934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3935printf %s "checking whether $am_make supports nested variables... " >&6; } 3936if test ${am_cv_make_support_nested_variables+y} 3937then : 3938 printf %s "(cached) " >&6 3939else $as_nop 3940 if printf "%s\n" 'TRUE=$(BAR$(V)) 3941BAR0=false 3942BAR1=true 3943V=1 3944am__doit: 3945 @$(TRUE) 3946.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3947 am_cv_make_support_nested_variables=yes 3948else 3949 am_cv_make_support_nested_variables=no 3950fi 3951fi 3952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3953printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3954if test $am_cv_make_support_nested_variables = yes; then 3955 AM_V='$(V)' 3956 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3957else 3958 AM_V=$AM_DEFAULT_VERBOSITY 3959 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3960fi 3961AM_BACKSLASH='\' 3962 3963 3964 3965ac_config_headers="$ac_config_headers config.h" 3966 3967 3968 3969# 3970# Enable maintainer mode by default only when building from git repository 3971# and not cross compling 3972# 3973if test "$cross_compiling" = no 3974then : 3975 3976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3977printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3978 # Check whether --enable-maintainer-mode was given. 3979if test ${enable_maintainer_mode+y} 3980then : 3981 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3982else $as_nop 3983 USE_MAINTAINER_MODE=yes 3984fi 3985 3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3987printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3988 if test $USE_MAINTAINER_MODE = yes; then 3989 MAINTAINER_MODE_TRUE= 3990 MAINTAINER_MODE_FALSE='#' 3991else 3992 MAINTAINER_MODE_TRUE='#' 3993 MAINTAINER_MODE_FALSE= 3994fi 3995 3996 MAINT=$MAINTAINER_MODE_TRUE 3997 3998 3999else $as_nop 4000 4001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4002printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4003 # Check whether --enable-maintainer-mode was given. 4004if test ${enable_maintainer_mode+y} 4005then : 4006 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4007else $as_nop 4008 USE_MAINTAINER_MODE=no 4009fi 4010 4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4012printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 4013 if test $USE_MAINTAINER_MODE = yes; then 4014 MAINTAINER_MODE_TRUE= 4015 MAINTAINER_MODE_FALSE='#' 4016else 4017 MAINTAINER_MODE_TRUE='#' 4018 MAINTAINER_MODE_FALSE= 4019fi 4020 4021 MAINT=$MAINTAINER_MODE_TRUE 4022 4023 4024fi 4025 4026# 4027# Enable system extensions to C and POSIX 4028# 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038DEPDIR="${am__leading_dot}deps" 4039 4040ac_config_commands="$ac_config_commands depfiles" 4041 4042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4043printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4044cat > confinc.mk << 'END' 4045am__doit: 4046 @echo this is the am__doit target >confinc.out 4047.PHONY: am__doit 4048END 4049am__include="#" 4050am__quote= 4051# BSD make does it like this. 4052echo '.include "confinc.mk" # ignored' > confmf.BSD 4053# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4054echo 'include confinc.mk # ignored' > confmf.GNU 4055_am_result=no 4056for s in GNU BSD; do 4057 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4058 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4059 ac_status=$? 4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4061 (exit $ac_status); } 4062 case $?:`cat confinc.out 2>/dev/null` in #( 4063 '0:this is the am__doit target') : 4064 case $s in #( 4065 BSD) : 4066 am__include='.include' am__quote='"' ;; #( 4067 *) : 4068 am__include='include' am__quote='' ;; 4069esac ;; #( 4070 *) : 4071 ;; 4072esac 4073 if test "$am__include" != "#"; then 4074 _am_result="yes ($s style)" 4075 break 4076 fi 4077done 4078rm -f confinc.* confmf.* 4079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4080printf "%s\n" "${_am_result}" >&6; } 4081 4082# Check whether --enable-dependency-tracking was given. 4083if test ${enable_dependency_tracking+y} 4084then : 4085 enableval=$enable_dependency_tracking; 4086fi 4087 4088if test "x$enable_dependency_tracking" != xno; then 4089 am_depcomp="$ac_aux_dir/depcomp" 4090 AMDEPBACKSLASH='\' 4091 am__nodep='_no' 4092fi 4093 if test "x$enable_dependency_tracking" != xno; then 4094 AMDEP_TRUE= 4095 AMDEP_FALSE='#' 4096else 4097 AMDEP_TRUE='#' 4098 AMDEP_FALSE= 4099fi 4100 4101 4102ac_ext=c 4103ac_cpp='$CPP $CPPFLAGS' 4104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4106ac_compiler_gnu=$ac_cv_c_compiler_gnu 4107if test -n "$ac_tool_prefix"; then 4108 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4109set dummy ${ac_tool_prefix}gcc; ac_word=$2 4110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4111printf %s "checking for $ac_word... " >&6; } 4112if test ${ac_cv_prog_CC+y} 4113then : 4114 printf %s "(cached) " >&6 4115else $as_nop 4116 if test -n "$CC"; then 4117 ac_cv_prog_CC="$CC" # Let the user override the test. 4118else 4119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4120for as_dir in $PATH 4121do 4122 IFS=$as_save_IFS 4123 case $as_dir in #((( 4124 '') as_dir=./ ;; 4125 */) ;; 4126 *) as_dir=$as_dir/ ;; 4127 esac 4128 for ac_exec_ext in '' $ac_executable_extensions; do 4129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4130 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4132 break 2 4133 fi 4134done 4135 done 4136IFS=$as_save_IFS 4137 4138fi 4139fi 4140CC=$ac_cv_prog_CC 4141if test -n "$CC"; then 4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4143printf "%s\n" "$CC" >&6; } 4144else 4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4146printf "%s\n" "no" >&6; } 4147fi 4148 4149 4150fi 4151if test -z "$ac_cv_prog_CC"; then 4152 ac_ct_CC=$CC 4153 # Extract the first word of "gcc", so it can be a program name with args. 4154set dummy gcc; ac_word=$2 4155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4156printf %s "checking for $ac_word... " >&6; } 4157if test ${ac_cv_prog_ac_ct_CC+y} 4158then : 4159 printf %s "(cached) " >&6 4160else $as_nop 4161 if test -n "$ac_ct_CC"; then 4162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4163else 4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4165for as_dir in $PATH 4166do 4167 IFS=$as_save_IFS 4168 case $as_dir in #((( 4169 '') as_dir=./ ;; 4170 */) ;; 4171 *) as_dir=$as_dir/ ;; 4172 esac 4173 for ac_exec_ext in '' $ac_executable_extensions; do 4174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4175 ac_cv_prog_ac_ct_CC="gcc" 4176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4177 break 2 4178 fi 4179done 4180 done 4181IFS=$as_save_IFS 4182 4183fi 4184fi 4185ac_ct_CC=$ac_cv_prog_ac_ct_CC 4186if test -n "$ac_ct_CC"; then 4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4188printf "%s\n" "$ac_ct_CC" >&6; } 4189else 4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4191printf "%s\n" "no" >&6; } 4192fi 4193 4194 if test "x$ac_ct_CC" = x; then 4195 CC="" 4196 else 4197 case $cross_compiling:$ac_tool_warned in 4198yes:) 4199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4200printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4201ac_tool_warned=yes ;; 4202esac 4203 CC=$ac_ct_CC 4204 fi 4205else 4206 CC="$ac_cv_prog_CC" 4207fi 4208 4209if test -z "$CC"; then 4210 if test -n "$ac_tool_prefix"; then 4211 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4212set dummy ${ac_tool_prefix}cc; ac_word=$2 4213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4214printf %s "checking for $ac_word... " >&6; } 4215if test ${ac_cv_prog_CC+y} 4216then : 4217 printf %s "(cached) " >&6 4218else $as_nop 4219 if test -n "$CC"; then 4220 ac_cv_prog_CC="$CC" # Let the user override the test. 4221else 4222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4223for as_dir in $PATH 4224do 4225 IFS=$as_save_IFS 4226 case $as_dir in #((( 4227 '') as_dir=./ ;; 4228 */) ;; 4229 *) as_dir=$as_dir/ ;; 4230 esac 4231 for ac_exec_ext in '' $ac_executable_extensions; do 4232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4233 ac_cv_prog_CC="${ac_tool_prefix}cc" 4234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4235 break 2 4236 fi 4237done 4238 done 4239IFS=$as_save_IFS 4240 4241fi 4242fi 4243CC=$ac_cv_prog_CC 4244if test -n "$CC"; then 4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4246printf "%s\n" "$CC" >&6; } 4247else 4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4249printf "%s\n" "no" >&6; } 4250fi 4251 4252 4253 fi 4254fi 4255if test -z "$CC"; then 4256 # Extract the first word of "cc", so it can be a program name with args. 4257set dummy cc; ac_word=$2 4258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4259printf %s "checking for $ac_word... " >&6; } 4260if test ${ac_cv_prog_CC+y} 4261then : 4262 printf %s "(cached) " >&6 4263else $as_nop 4264 if test -n "$CC"; then 4265 ac_cv_prog_CC="$CC" # Let the user override the test. 4266else 4267 ac_prog_rejected=no 4268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4269for as_dir in $PATH 4270do 4271 IFS=$as_save_IFS 4272 case $as_dir in #((( 4273 '') as_dir=./ ;; 4274 */) ;; 4275 *) as_dir=$as_dir/ ;; 4276 esac 4277 for ac_exec_ext in '' $ac_executable_extensions; do 4278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4279 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4280 ac_prog_rejected=yes 4281 continue 4282 fi 4283 ac_cv_prog_CC="cc" 4284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4285 break 2 4286 fi 4287done 4288 done 4289IFS=$as_save_IFS 4290 4291if test $ac_prog_rejected = yes; then 4292 # We found a bogon in the path, so make sure we never use it. 4293 set dummy $ac_cv_prog_CC 4294 shift 4295 if test $# != 0; then 4296 # We chose a different compiler from the bogus one. 4297 # However, it has the same basename, so the bogon will be chosen 4298 # first if we set CC to just the basename; use the full file name. 4299 shift 4300 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4301 fi 4302fi 4303fi 4304fi 4305CC=$ac_cv_prog_CC 4306if test -n "$CC"; then 4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4308printf "%s\n" "$CC" >&6; } 4309else 4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4311printf "%s\n" "no" >&6; } 4312fi 4313 4314 4315fi 4316if test -z "$CC"; then 4317 if test -n "$ac_tool_prefix"; then 4318 for ac_prog in cl.exe 4319 do 4320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4321set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4323printf %s "checking for $ac_word... " >&6; } 4324if test ${ac_cv_prog_CC+y} 4325then : 4326 printf %s "(cached) " >&6 4327else $as_nop 4328 if test -n "$CC"; then 4329 ac_cv_prog_CC="$CC" # Let the user override the test. 4330else 4331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4332for as_dir in $PATH 4333do 4334 IFS=$as_save_IFS 4335 case $as_dir in #((( 4336 '') as_dir=./ ;; 4337 */) ;; 4338 *) as_dir=$as_dir/ ;; 4339 esac 4340 for ac_exec_ext in '' $ac_executable_extensions; do 4341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4342 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4344 break 2 4345 fi 4346done 4347 done 4348IFS=$as_save_IFS 4349 4350fi 4351fi 4352CC=$ac_cv_prog_CC 4353if test -n "$CC"; then 4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4355printf "%s\n" "$CC" >&6; } 4356else 4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4358printf "%s\n" "no" >&6; } 4359fi 4360 4361 4362 test -n "$CC" && break 4363 done 4364fi 4365if test -z "$CC"; then 4366 ac_ct_CC=$CC 4367 for ac_prog in cl.exe 4368do 4369 # Extract the first word of "$ac_prog", so it can be a program name with args. 4370set dummy $ac_prog; ac_word=$2 4371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4372printf %s "checking for $ac_word... " >&6; } 4373if test ${ac_cv_prog_ac_ct_CC+y} 4374then : 4375 printf %s "(cached) " >&6 4376else $as_nop 4377 if test -n "$ac_ct_CC"; then 4378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4379else 4380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4381for as_dir in $PATH 4382do 4383 IFS=$as_save_IFS 4384 case $as_dir in #((( 4385 '') as_dir=./ ;; 4386 */) ;; 4387 *) as_dir=$as_dir/ ;; 4388 esac 4389 for ac_exec_ext in '' $ac_executable_extensions; do 4390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4391 ac_cv_prog_ac_ct_CC="$ac_prog" 4392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4393 break 2 4394 fi 4395done 4396 done 4397IFS=$as_save_IFS 4398 4399fi 4400fi 4401ac_ct_CC=$ac_cv_prog_ac_ct_CC 4402if test -n "$ac_ct_CC"; then 4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4404printf "%s\n" "$ac_ct_CC" >&6; } 4405else 4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4407printf "%s\n" "no" >&6; } 4408fi 4409 4410 4411 test -n "$ac_ct_CC" && break 4412done 4413 4414 if test "x$ac_ct_CC" = x; then 4415 CC="" 4416 else 4417 case $cross_compiling:$ac_tool_warned in 4418yes:) 4419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4420printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4421ac_tool_warned=yes ;; 4422esac 4423 CC=$ac_ct_CC 4424 fi 4425fi 4426 4427fi 4428if test -z "$CC"; then 4429 if test -n "$ac_tool_prefix"; then 4430 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4431set dummy ${ac_tool_prefix}clang; ac_word=$2 4432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4433printf %s "checking for $ac_word... " >&6; } 4434if test ${ac_cv_prog_CC+y} 4435then : 4436 printf %s "(cached) " >&6 4437else $as_nop 4438 if test -n "$CC"; then 4439 ac_cv_prog_CC="$CC" # Let the user override the test. 4440else 4441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4442for as_dir in $PATH 4443do 4444 IFS=$as_save_IFS 4445 case $as_dir in #((( 4446 '') as_dir=./ ;; 4447 */) ;; 4448 *) as_dir=$as_dir/ ;; 4449 esac 4450 for ac_exec_ext in '' $ac_executable_extensions; do 4451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4452 ac_cv_prog_CC="${ac_tool_prefix}clang" 4453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4454 break 2 4455 fi 4456done 4457 done 4458IFS=$as_save_IFS 4459 4460fi 4461fi 4462CC=$ac_cv_prog_CC 4463if test -n "$CC"; then 4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4465printf "%s\n" "$CC" >&6; } 4466else 4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4468printf "%s\n" "no" >&6; } 4469fi 4470 4471 4472fi 4473if test -z "$ac_cv_prog_CC"; then 4474 ac_ct_CC=$CC 4475 # Extract the first word of "clang", so it can be a program name with args. 4476set dummy clang; ac_word=$2 4477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4478printf %s "checking for $ac_word... " >&6; } 4479if test ${ac_cv_prog_ac_ct_CC+y} 4480then : 4481 printf %s "(cached) " >&6 4482else $as_nop 4483 if test -n "$ac_ct_CC"; then 4484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4485else 4486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4487for as_dir in $PATH 4488do 4489 IFS=$as_save_IFS 4490 case $as_dir in #((( 4491 '') as_dir=./ ;; 4492 */) ;; 4493 *) as_dir=$as_dir/ ;; 4494 esac 4495 for ac_exec_ext in '' $ac_executable_extensions; do 4496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4497 ac_cv_prog_ac_ct_CC="clang" 4498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4499 break 2 4500 fi 4501done 4502 done 4503IFS=$as_save_IFS 4504 4505fi 4506fi 4507ac_ct_CC=$ac_cv_prog_ac_ct_CC 4508if test -n "$ac_ct_CC"; then 4509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4510printf "%s\n" "$ac_ct_CC" >&6; } 4511else 4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4513printf "%s\n" "no" >&6; } 4514fi 4515 4516 if test "x$ac_ct_CC" = x; then 4517 CC="" 4518 else 4519 case $cross_compiling:$ac_tool_warned in 4520yes:) 4521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4522printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4523ac_tool_warned=yes ;; 4524esac 4525 CC=$ac_ct_CC 4526 fi 4527else 4528 CC="$ac_cv_prog_CC" 4529fi 4530 4531fi 4532 4533 4534test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4535printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4536as_fn_error $? "no acceptable C compiler found in \$PATH 4537See \`config.log' for more details" "$LINENO" 5; } 4538 4539# Provide some information about the compiler. 4540printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4541set X $ac_compile 4542ac_compiler=$2 4543for ac_option in --version -v -V -qversion -version; do 4544 { { ac_try="$ac_compiler $ac_option >&5" 4545case "(($ac_try" in 4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4547 *) ac_try_echo=$ac_try;; 4548esac 4549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4550printf "%s\n" "$ac_try_echo"; } >&5 4551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4552 ac_status=$? 4553 if test -s conftest.err; then 4554 sed '10a\ 4555... rest of stderr output deleted ... 4556 10q' conftest.err >conftest.er1 4557 cat conftest.er1 >&5 4558 fi 4559 rm -f conftest.er1 conftest.err 4560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4561 test $ac_status = 0; } 4562done 4563 4564cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4565/* end confdefs.h. */ 4566 4567int 4568main (void) 4569{ 4570 4571 ; 4572 return 0; 4573} 4574_ACEOF 4575ac_clean_files_save=$ac_clean_files 4576ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4577# Try to create an executable without -o first, disregard a.out. 4578# It will help us diagnose broken compilers, and finding out an intuition 4579# of exeext. 4580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4581printf %s "checking whether the C compiler works... " >&6; } 4582ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4583 4584# The possible output files: 4585ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4586 4587ac_rmfiles= 4588for ac_file in $ac_files 4589do 4590 case $ac_file in 4591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4592 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4593 esac 4594done 4595rm -f $ac_rmfiles 4596 4597if { { ac_try="$ac_link_default" 4598case "(($ac_try" in 4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4600 *) ac_try_echo=$ac_try;; 4601esac 4602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4603printf "%s\n" "$ac_try_echo"; } >&5 4604 (eval "$ac_link_default") 2>&5 4605 ac_status=$? 4606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4607 test $ac_status = 0; } 4608then : 4609 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4610# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4611# in a Makefile. We should not override ac_cv_exeext if it was cached, 4612# so that the user can short-circuit this test for compilers unknown to 4613# Autoconf. 4614for ac_file in $ac_files '' 4615do 4616 test -f "$ac_file" || continue 4617 case $ac_file in 4618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4619 ;; 4620 [ab].out ) 4621 # We found the default executable, but exeext='' is most 4622 # certainly right. 4623 break;; 4624 *.* ) 4625 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4626 then :; else 4627 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4628 fi 4629 # We set ac_cv_exeext here because the later test for it is not 4630 # safe: cross compilers may not add the suffix if given an `-o' 4631 # argument, so we may need to know it at that point already. 4632 # Even if this section looks crufty: it has the advantage of 4633 # actually working. 4634 break;; 4635 * ) 4636 break;; 4637 esac 4638done 4639test "$ac_cv_exeext" = no && ac_cv_exeext= 4640 4641else $as_nop 4642 ac_file='' 4643fi 4644if test -z "$ac_file" 4645then : 4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4647printf "%s\n" "no" >&6; } 4648printf "%s\n" "$as_me: failed program was:" >&5 4649sed 's/^/| /' conftest.$ac_ext >&5 4650 4651{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4652printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4653as_fn_error 77 "C compiler cannot create executables 4654See \`config.log' for more details" "$LINENO" 5; } 4655else $as_nop 4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4657printf "%s\n" "yes" >&6; } 4658fi 4659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4660printf %s "checking for C compiler default output file name... " >&6; } 4661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4662printf "%s\n" "$ac_file" >&6; } 4663ac_exeext=$ac_cv_exeext 4664 4665rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4666ac_clean_files=$ac_clean_files_save 4667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4668printf %s "checking for suffix of executables... " >&6; } 4669if { { ac_try="$ac_link" 4670case "(($ac_try" in 4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4672 *) ac_try_echo=$ac_try;; 4673esac 4674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4675printf "%s\n" "$ac_try_echo"; } >&5 4676 (eval "$ac_link") 2>&5 4677 ac_status=$? 4678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4679 test $ac_status = 0; } 4680then : 4681 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4682# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4683# work properly (i.e., refer to `conftest.exe'), while it won't with 4684# `rm'. 4685for ac_file in conftest.exe conftest conftest.*; do 4686 test -f "$ac_file" || continue 4687 case $ac_file in 4688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4689 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4690 break;; 4691 * ) break;; 4692 esac 4693done 4694else $as_nop 4695 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4696printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4697as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4698See \`config.log' for more details" "$LINENO" 5; } 4699fi 4700rm -f conftest conftest$ac_cv_exeext 4701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4702printf "%s\n" "$ac_cv_exeext" >&6; } 4703 4704rm -f conftest.$ac_ext 4705EXEEXT=$ac_cv_exeext 4706ac_exeext=$EXEEXT 4707cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4708/* end confdefs.h. */ 4709#include <stdio.h> 4710int 4711main (void) 4712{ 4713FILE *f = fopen ("conftest.out", "w"); 4714 return ferror (f) || fclose (f) != 0; 4715 4716 ; 4717 return 0; 4718} 4719_ACEOF 4720ac_clean_files="$ac_clean_files conftest.out" 4721# Check that the compiler produces executables we can run. If not, either 4722# the compiler is broken, or we cross compile. 4723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4724printf %s "checking whether we are cross compiling... " >&6; } 4725if test "$cross_compiling" != yes; then 4726 { { ac_try="$ac_link" 4727case "(($ac_try" in 4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4729 *) ac_try_echo=$ac_try;; 4730esac 4731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4732printf "%s\n" "$ac_try_echo"; } >&5 4733 (eval "$ac_link") 2>&5 4734 ac_status=$? 4735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4736 test $ac_status = 0; } 4737 if { ac_try='./conftest$ac_cv_exeext' 4738 { { case "(($ac_try" in 4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4740 *) ac_try_echo=$ac_try;; 4741esac 4742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4743printf "%s\n" "$ac_try_echo"; } >&5 4744 (eval "$ac_try") 2>&5 4745 ac_status=$? 4746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4747 test $ac_status = 0; }; }; then 4748 cross_compiling=no 4749 else 4750 if test "$cross_compiling" = maybe; then 4751 cross_compiling=yes 4752 else 4753 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4754printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4755as_fn_error 77 "cannot run C compiled programs. 4756If you meant to cross compile, use \`--host'. 4757See \`config.log' for more details" "$LINENO" 5; } 4758 fi 4759 fi 4760fi 4761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4762printf "%s\n" "$cross_compiling" >&6; } 4763 4764rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4765ac_clean_files=$ac_clean_files_save 4766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4767printf %s "checking for suffix of object files... " >&6; } 4768if test ${ac_cv_objext+y} 4769then : 4770 printf %s "(cached) " >&6 4771else $as_nop 4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4773/* end confdefs.h. */ 4774 4775int 4776main (void) 4777{ 4778 4779 ; 4780 return 0; 4781} 4782_ACEOF 4783rm -f conftest.o conftest.obj 4784if { { ac_try="$ac_compile" 4785case "(($ac_try" in 4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4787 *) ac_try_echo=$ac_try;; 4788esac 4789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4790printf "%s\n" "$ac_try_echo"; } >&5 4791 (eval "$ac_compile") 2>&5 4792 ac_status=$? 4793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4794 test $ac_status = 0; } 4795then : 4796 for ac_file in conftest.o conftest.obj conftest.*; do 4797 test -f "$ac_file" || continue; 4798 case $ac_file in 4799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4800 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4801 break;; 4802 esac 4803done 4804else $as_nop 4805 printf "%s\n" "$as_me: failed program was:" >&5 4806sed 's/^/| /' conftest.$ac_ext >&5 4807 4808{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4809printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4810as_fn_error $? "cannot compute suffix of object files: cannot compile 4811See \`config.log' for more details" "$LINENO" 5; } 4812fi 4813rm -f conftest.$ac_cv_objext conftest.$ac_ext 4814fi 4815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4816printf "%s\n" "$ac_cv_objext" >&6; } 4817OBJEXT=$ac_cv_objext 4818ac_objext=$OBJEXT 4819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4820printf %s "checking whether the compiler supports GNU C... " >&6; } 4821if test ${ac_cv_c_compiler_gnu+y} 4822then : 4823 printf %s "(cached) " >&6 4824else $as_nop 4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4826/* end confdefs.h. */ 4827 4828int 4829main (void) 4830{ 4831#ifndef __GNUC__ 4832 choke me 4833#endif 4834 4835 ; 4836 return 0; 4837} 4838_ACEOF 4839if ac_fn_c_try_compile "$LINENO" 4840then : 4841 ac_compiler_gnu=yes 4842else $as_nop 4843 ac_compiler_gnu=no 4844fi 4845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4846ac_cv_c_compiler_gnu=$ac_compiler_gnu 4847 4848fi 4849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4850printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4851ac_compiler_gnu=$ac_cv_c_compiler_gnu 4852 4853if test $ac_compiler_gnu = yes; then 4854 GCC=yes 4855else 4856 GCC= 4857fi 4858ac_test_CFLAGS=${CFLAGS+y} 4859ac_save_CFLAGS=$CFLAGS 4860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4861printf %s "checking whether $CC accepts -g... " >&6; } 4862if test ${ac_cv_prog_cc_g+y} 4863then : 4864 printf %s "(cached) " >&6 4865else $as_nop 4866 ac_save_c_werror_flag=$ac_c_werror_flag 4867 ac_c_werror_flag=yes 4868 ac_cv_prog_cc_g=no 4869 CFLAGS="-g" 4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4871/* end confdefs.h. */ 4872 4873int 4874main (void) 4875{ 4876 4877 ; 4878 return 0; 4879} 4880_ACEOF 4881if ac_fn_c_try_compile "$LINENO" 4882then : 4883 ac_cv_prog_cc_g=yes 4884else $as_nop 4885 CFLAGS="" 4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4887/* end confdefs.h. */ 4888 4889int 4890main (void) 4891{ 4892 4893 ; 4894 return 0; 4895} 4896_ACEOF 4897if ac_fn_c_try_compile "$LINENO" 4898then : 4899 4900else $as_nop 4901 ac_c_werror_flag=$ac_save_c_werror_flag 4902 CFLAGS="-g" 4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4904/* end confdefs.h. */ 4905 4906int 4907main (void) 4908{ 4909 4910 ; 4911 return 0; 4912} 4913_ACEOF 4914if ac_fn_c_try_compile "$LINENO" 4915then : 4916 ac_cv_prog_cc_g=yes 4917fi 4918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4919fi 4920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4921fi 4922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4923 ac_c_werror_flag=$ac_save_c_werror_flag 4924fi 4925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4926printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4927if test $ac_test_CFLAGS; then 4928 CFLAGS=$ac_save_CFLAGS 4929elif test $ac_cv_prog_cc_g = yes; then 4930 if test "$GCC" = yes; then 4931 CFLAGS="-g -O2" 4932 else 4933 CFLAGS="-g" 4934 fi 4935else 4936 if test "$GCC" = yes; then 4937 CFLAGS="-O2" 4938 else 4939 CFLAGS= 4940 fi 4941fi 4942ac_prog_cc_stdc=no 4943if test x$ac_prog_cc_stdc = xno 4944then : 4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4946printf %s "checking for $CC option to enable C11 features... " >&6; } 4947if test ${ac_cv_prog_cc_c11+y} 4948then : 4949 printf %s "(cached) " >&6 4950else $as_nop 4951 ac_cv_prog_cc_c11=no 4952ac_save_CC=$CC 4953cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4954/* end confdefs.h. */ 4955$ac_c_conftest_c11_program 4956_ACEOF 4957for ac_arg in '' -std=gnu11 4958do 4959 CC="$ac_save_CC $ac_arg" 4960 if ac_fn_c_try_compile "$LINENO" 4961then : 4962 ac_cv_prog_cc_c11=$ac_arg 4963fi 4964rm -f core conftest.err conftest.$ac_objext conftest.beam 4965 test "x$ac_cv_prog_cc_c11" != "xno" && break 4966done 4967rm -f conftest.$ac_ext 4968CC=$ac_save_CC 4969fi 4970 4971if test "x$ac_cv_prog_cc_c11" = xno 4972then : 4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4974printf "%s\n" "unsupported" >&6; } 4975else $as_nop 4976 if test "x$ac_cv_prog_cc_c11" = x 4977then : 4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4979printf "%s\n" "none needed" >&6; } 4980else $as_nop 4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4982printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4983 CC="$CC $ac_cv_prog_cc_c11" 4984fi 4985 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4986 ac_prog_cc_stdc=c11 4987fi 4988fi 4989if test x$ac_prog_cc_stdc = xno 4990then : 4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4992printf %s "checking for $CC option to enable C99 features... " >&6; } 4993if test ${ac_cv_prog_cc_c99+y} 4994then : 4995 printf %s "(cached) " >&6 4996else $as_nop 4997 ac_cv_prog_cc_c99=no 4998ac_save_CC=$CC 4999cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5000/* end confdefs.h. */ 5001$ac_c_conftest_c99_program 5002_ACEOF 5003for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5004do 5005 CC="$ac_save_CC $ac_arg" 5006 if ac_fn_c_try_compile "$LINENO" 5007then : 5008 ac_cv_prog_cc_c99=$ac_arg 5009fi 5010rm -f core conftest.err conftest.$ac_objext conftest.beam 5011 test "x$ac_cv_prog_cc_c99" != "xno" && break 5012done 5013rm -f conftest.$ac_ext 5014CC=$ac_save_CC 5015fi 5016 5017if test "x$ac_cv_prog_cc_c99" = xno 5018then : 5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5020printf "%s\n" "unsupported" >&6; } 5021else $as_nop 5022 if test "x$ac_cv_prog_cc_c99" = x 5023then : 5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5025printf "%s\n" "none needed" >&6; } 5026else $as_nop 5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5028printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5029 CC="$CC $ac_cv_prog_cc_c99" 5030fi 5031 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5032 ac_prog_cc_stdc=c99 5033fi 5034fi 5035if test x$ac_prog_cc_stdc = xno 5036then : 5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5038printf %s "checking for $CC option to enable C89 features... " >&6; } 5039if test ${ac_cv_prog_cc_c89+y} 5040then : 5041 printf %s "(cached) " >&6 5042else $as_nop 5043 ac_cv_prog_cc_c89=no 5044ac_save_CC=$CC 5045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5046/* end confdefs.h. */ 5047$ac_c_conftest_c89_program 5048_ACEOF 5049for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5050do 5051 CC="$ac_save_CC $ac_arg" 5052 if ac_fn_c_try_compile "$LINENO" 5053then : 5054 ac_cv_prog_cc_c89=$ac_arg 5055fi 5056rm -f core conftest.err conftest.$ac_objext conftest.beam 5057 test "x$ac_cv_prog_cc_c89" != "xno" && break 5058done 5059rm -f conftest.$ac_ext 5060CC=$ac_save_CC 5061fi 5062 5063if test "x$ac_cv_prog_cc_c89" = xno 5064then : 5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5066printf "%s\n" "unsupported" >&6; } 5067else $as_nop 5068 if test "x$ac_cv_prog_cc_c89" = x 5069then : 5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5071printf "%s\n" "none needed" >&6; } 5072else $as_nop 5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5074printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5075 CC="$CC $ac_cv_prog_cc_c89" 5076fi 5077 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5078 ac_prog_cc_stdc=c89 5079fi 5080fi 5081 5082ac_ext=c 5083ac_cpp='$CPP $CPPFLAGS' 5084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5086ac_compiler_gnu=$ac_cv_c_compiler_gnu 5087 5088 5089 ac_ext=c 5090ac_cpp='$CPP $CPPFLAGS' 5091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5093ac_compiler_gnu=$ac_cv_c_compiler_gnu 5094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5095printf %s "checking whether $CC understands -c and -o together... " >&6; } 5096if test ${am_cv_prog_cc_c_o+y} 5097then : 5098 printf %s "(cached) " >&6 5099else $as_nop 5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101/* end confdefs.h. */ 5102 5103int 5104main (void) 5105{ 5106 5107 ; 5108 return 0; 5109} 5110_ACEOF 5111 # Make sure it works both with $CC and with simple cc. 5112 # Following AC_PROG_CC_C_O, we do the test twice because some 5113 # compilers refuse to overwrite an existing .o file with -o, 5114 # though they will create one. 5115 am_cv_prog_cc_c_o=yes 5116 for am_i in 1 2; do 5117 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5118 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5119 ac_status=$? 5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5121 (exit $ac_status); } \ 5122 && test -f conftest2.$ac_objext; then 5123 : OK 5124 else 5125 am_cv_prog_cc_c_o=no 5126 break 5127 fi 5128 done 5129 rm -f core conftest* 5130 unset am_i 5131fi 5132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5133printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5134if test "$am_cv_prog_cc_c_o" != yes; then 5135 # Losing compiler, so override with the script. 5136 # FIXME: It is wrong to rewrite CC. 5137 # But if we don't then we get into trouble of one sort or another. 5138 # A longer-term fix would be to have automake use am__CC in this case, 5139 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5140 CC="$am_aux_dir/compile $CC" 5141fi 5142ac_ext=c 5143ac_cpp='$CPP $CPPFLAGS' 5144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5146ac_compiler_gnu=$ac_cv_c_compiler_gnu 5147 5148 5149depcc="$CC" am_compiler_list= 5150 5151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5152printf %s "checking dependency style of $depcc... " >&6; } 5153if test ${am_cv_CC_dependencies_compiler_type+y} 5154then : 5155 printf %s "(cached) " >&6 5156else $as_nop 5157 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5158 # We make a subdir and do the tests there. Otherwise we can end up 5159 # making bogus files that we don't know about and never remove. For 5160 # instance it was reported that on HP-UX the gcc test will end up 5161 # making a dummy file named 'D' -- because '-MD' means "put the output 5162 # in D". 5163 rm -rf conftest.dir 5164 mkdir conftest.dir 5165 # Copy depcomp to subdir because otherwise we won't find it if we're 5166 # using a relative directory. 5167 cp "$am_depcomp" conftest.dir 5168 cd conftest.dir 5169 # We will build objects and dependencies in a subdirectory because 5170 # it helps to detect inapplicable dependency modes. For instance 5171 # both Tru64's cc and ICC support -MD to output dependencies as a 5172 # side effect of compilation, but ICC will put the dependencies in 5173 # the current directory while Tru64 will put them in the object 5174 # directory. 5175 mkdir sub 5176 5177 am_cv_CC_dependencies_compiler_type=none 5178 if test "$am_compiler_list" = ""; then 5179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5180 fi 5181 am__universal=false 5182 case " $depcc " in #( 5183 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5184 esac 5185 5186 for depmode in $am_compiler_list; do 5187 # Setup a source with many dependencies, because some compilers 5188 # like to wrap large dependency lists on column 80 (with \), and 5189 # we should not choose a depcomp mode which is confused by this. 5190 # 5191 # We need to recreate these files for each test, as the compiler may 5192 # overwrite some of them when testing with obscure command lines. 5193 # This happens at least with the AIX C compiler. 5194 : > sub/conftest.c 5195 for i in 1 2 3 4 5 6; do 5196 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5197 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5198 # Solaris 10 /bin/sh. 5199 echo '/* dummy */' > sub/conftst$i.h 5200 done 5201 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5202 5203 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5204 # mode. It turns out that the SunPro C++ compiler does not properly 5205 # handle '-M -o', and we need to detect this. Also, some Intel 5206 # versions had trouble with output in subdirs. 5207 am__obj=sub/conftest.${OBJEXT-o} 5208 am__minus_obj="-o $am__obj" 5209 case $depmode in 5210 gcc) 5211 # This depmode causes a compiler race in universal mode. 5212 test "$am__universal" = false || continue 5213 ;; 5214 nosideeffect) 5215 # After this tag, mechanisms are not by side-effect, so they'll 5216 # only be used when explicitly requested. 5217 if test "x$enable_dependency_tracking" = xyes; then 5218 continue 5219 else 5220 break 5221 fi 5222 ;; 5223 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5224 # This compiler won't grok '-c -o', but also, the minuso test has 5225 # not run yet. These depmodes are late enough in the game, and 5226 # so weak that their functioning should not be impacted. 5227 am__obj=conftest.${OBJEXT-o} 5228 am__minus_obj= 5229 ;; 5230 none) break ;; 5231 esac 5232 if depmode=$depmode \ 5233 source=sub/conftest.c object=$am__obj \ 5234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5235 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5236 >/dev/null 2>conftest.err && 5237 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5238 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5239 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5240 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5241 # icc doesn't choke on unknown options, it will just issue warnings 5242 # or remarks (even with -Werror). So we grep stderr for any message 5243 # that says an option was ignored or not supported. 5244 # When given -MP, icc 7.0 and 7.1 complain thusly: 5245 # icc: Command line warning: ignoring option '-M'; no argument required 5246 # The diagnosis changed in icc 8.0: 5247 # icc: Command line remark: option '-MP' not supported 5248 if (grep 'ignoring option' conftest.err || 5249 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5250 am_cv_CC_dependencies_compiler_type=$depmode 5251 break 5252 fi 5253 fi 5254 done 5255 5256 cd .. 5257 rm -rf conftest.dir 5258else 5259 am_cv_CC_dependencies_compiler_type=none 5260fi 5261 5262fi 5263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5264printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5265CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5266 5267 if 5268 test "x$enable_dependency_tracking" != xno \ 5269 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5270 am__fastdepCC_TRUE= 5271 am__fastdepCC_FALSE='#' 5272else 5273 am__fastdepCC_TRUE='#' 5274 am__fastdepCC_FALSE= 5275fi 5276 5277 5278 5279ac_header= ac_cache= 5280for ac_item in $ac_header_c_list 5281do 5282 if test $ac_cache; then 5283 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5284 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5285 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5286 fi 5287 ac_header= ac_cache= 5288 elif test $ac_header; then 5289 ac_cache=$ac_item 5290 else 5291 ac_header=$ac_item 5292 fi 5293done 5294 5295 5296 5297 5298 5299 5300 5301 5302if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5303then : 5304 5305printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5306 5307fi 5308 5309 5310 5311 5312 5313 5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5315printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5316if test ${ac_cv_safe_to_define___extensions__+y} 5317then : 5318 printf %s "(cached) " >&6 5319else $as_nop 5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5321/* end confdefs.h. */ 5322 5323# define __EXTENSIONS__ 1 5324 $ac_includes_default 5325int 5326main (void) 5327{ 5328 5329 ; 5330 return 0; 5331} 5332_ACEOF 5333if ac_fn_c_try_compile "$LINENO" 5334then : 5335 ac_cv_safe_to_define___extensions__=yes 5336else $as_nop 5337 ac_cv_safe_to_define___extensions__=no 5338fi 5339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5340fi 5341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5342printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5343 5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5345printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5346if test ${ac_cv_should_define__xopen_source+y} 5347then : 5348 printf %s "(cached) " >&6 5349else $as_nop 5350 ac_cv_should_define__xopen_source=no 5351 if test $ac_cv_header_wchar_h = yes 5352then : 5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5354/* end confdefs.h. */ 5355 5356 #include <wchar.h> 5357 mbstate_t x; 5358int 5359main (void) 5360{ 5361 5362 ; 5363 return 0; 5364} 5365_ACEOF 5366if ac_fn_c_try_compile "$LINENO" 5367then : 5368 5369else $as_nop 5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5371/* end confdefs.h. */ 5372 5373 #define _XOPEN_SOURCE 500 5374 #include <wchar.h> 5375 mbstate_t x; 5376int 5377main (void) 5378{ 5379 5380 ; 5381 return 0; 5382} 5383_ACEOF 5384if ac_fn_c_try_compile "$LINENO" 5385then : 5386 ac_cv_should_define__xopen_source=yes 5387fi 5388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5389fi 5390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5391fi 5392fi 5393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5394printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5395 5396 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5397 5398 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5399 5400 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5401 5402 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5403 5404 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5405 5406 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5407 5408 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5409 5410 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5411 5412 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5413 5414 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5415 5416 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5417 5418 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5419 5420 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5421 5422 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5423 5424 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5425 5426 if test $ac_cv_header_minix_config_h = yes 5427then : 5428 MINIX=yes 5429 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5430 5431 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5432 5433 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5434 5435else $as_nop 5436 MINIX= 5437fi 5438 if test $ac_cv_safe_to_define___extensions__ = yes 5439then : 5440 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5441 5442fi 5443 if test $ac_cv_should_define__xopen_source = yes 5444then : 5445 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5446 5447fi 5448 5449 5450# 5451# Compiler compatibility flags 5452# 5453ac_ext=c 5454ac_cpp='$CPP $CPPFLAGS' 5455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5457ac_compiler_gnu=$ac_cv_c_compiler_gnu 5458if test -n "$ac_tool_prefix"; then 5459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5460set dummy ${ac_tool_prefix}gcc; ac_word=$2 5461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5462printf %s "checking for $ac_word... " >&6; } 5463if test ${ac_cv_prog_CC+y} 5464then : 5465 printf %s "(cached) " >&6 5466else $as_nop 5467 if test -n "$CC"; then 5468 ac_cv_prog_CC="$CC" # Let the user override the test. 5469else 5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5471for as_dir in $PATH 5472do 5473 IFS=$as_save_IFS 5474 case $as_dir in #((( 5475 '') as_dir=./ ;; 5476 */) ;; 5477 *) as_dir=$as_dir/ ;; 5478 esac 5479 for ac_exec_ext in '' $ac_executable_extensions; do 5480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5481 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5483 break 2 5484 fi 5485done 5486 done 5487IFS=$as_save_IFS 5488 5489fi 5490fi 5491CC=$ac_cv_prog_CC 5492if test -n "$CC"; then 5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5494printf "%s\n" "$CC" >&6; } 5495else 5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5497printf "%s\n" "no" >&6; } 5498fi 5499 5500 5501fi 5502if test -z "$ac_cv_prog_CC"; then 5503 ac_ct_CC=$CC 5504 # Extract the first word of "gcc", so it can be a program name with args. 5505set dummy gcc; ac_word=$2 5506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5507printf %s "checking for $ac_word... " >&6; } 5508if test ${ac_cv_prog_ac_ct_CC+y} 5509then : 5510 printf %s "(cached) " >&6 5511else $as_nop 5512 if test -n "$ac_ct_CC"; then 5513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5514else 5515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5516for as_dir in $PATH 5517do 5518 IFS=$as_save_IFS 5519 case $as_dir in #((( 5520 '') as_dir=./ ;; 5521 */) ;; 5522 *) as_dir=$as_dir/ ;; 5523 esac 5524 for ac_exec_ext in '' $ac_executable_extensions; do 5525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5526 ac_cv_prog_ac_ct_CC="gcc" 5527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5528 break 2 5529 fi 5530done 5531 done 5532IFS=$as_save_IFS 5533 5534fi 5535fi 5536ac_ct_CC=$ac_cv_prog_ac_ct_CC 5537if test -n "$ac_ct_CC"; then 5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5539printf "%s\n" "$ac_ct_CC" >&6; } 5540else 5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5542printf "%s\n" "no" >&6; } 5543fi 5544 5545 if test "x$ac_ct_CC" = x; then 5546 CC="" 5547 else 5548 case $cross_compiling:$ac_tool_warned in 5549yes:) 5550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5551printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5552ac_tool_warned=yes ;; 5553esac 5554 CC=$ac_ct_CC 5555 fi 5556else 5557 CC="$ac_cv_prog_CC" 5558fi 5559 5560if test -z "$CC"; then 5561 if test -n "$ac_tool_prefix"; then 5562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5563set dummy ${ac_tool_prefix}cc; ac_word=$2 5564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5565printf %s "checking for $ac_word... " >&6; } 5566if test ${ac_cv_prog_CC+y} 5567then : 5568 printf %s "(cached) " >&6 5569else $as_nop 5570 if test -n "$CC"; then 5571 ac_cv_prog_CC="$CC" # Let the user override the test. 5572else 5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5574for as_dir in $PATH 5575do 5576 IFS=$as_save_IFS 5577 case $as_dir in #((( 5578 '') as_dir=./ ;; 5579 */) ;; 5580 *) as_dir=$as_dir/ ;; 5581 esac 5582 for ac_exec_ext in '' $ac_executable_extensions; do 5583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5584 ac_cv_prog_CC="${ac_tool_prefix}cc" 5585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5586 break 2 5587 fi 5588done 5589 done 5590IFS=$as_save_IFS 5591 5592fi 5593fi 5594CC=$ac_cv_prog_CC 5595if test -n "$CC"; then 5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5597printf "%s\n" "$CC" >&6; } 5598else 5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5600printf "%s\n" "no" >&6; } 5601fi 5602 5603 5604 fi 5605fi 5606if test -z "$CC"; then 5607 # Extract the first word of "cc", so it can be a program name with args. 5608set dummy cc; ac_word=$2 5609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5610printf %s "checking for $ac_word... " >&6; } 5611if test ${ac_cv_prog_CC+y} 5612then : 5613 printf %s "(cached) " >&6 5614else $as_nop 5615 if test -n "$CC"; then 5616 ac_cv_prog_CC="$CC" # Let the user override the test. 5617else 5618 ac_prog_rejected=no 5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5620for as_dir in $PATH 5621do 5622 IFS=$as_save_IFS 5623 case $as_dir in #((( 5624 '') as_dir=./ ;; 5625 */) ;; 5626 *) as_dir=$as_dir/ ;; 5627 esac 5628 for ac_exec_ext in '' $ac_executable_extensions; do 5629 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5630 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5631 ac_prog_rejected=yes 5632 continue 5633 fi 5634 ac_cv_prog_CC="cc" 5635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5636 break 2 5637 fi 5638done 5639 done 5640IFS=$as_save_IFS 5641 5642if test $ac_prog_rejected = yes; then 5643 # We found a bogon in the path, so make sure we never use it. 5644 set dummy $ac_cv_prog_CC 5645 shift 5646 if test $# != 0; then 5647 # We chose a different compiler from the bogus one. 5648 # However, it has the same basename, so the bogon will be chosen 5649 # first if we set CC to just the basename; use the full file name. 5650 shift 5651 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 5652 fi 5653fi 5654fi 5655fi 5656CC=$ac_cv_prog_CC 5657if test -n "$CC"; then 5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5659printf "%s\n" "$CC" >&6; } 5660else 5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5662printf "%s\n" "no" >&6; } 5663fi 5664 5665 5666fi 5667if test -z "$CC"; then 5668 if test -n "$ac_tool_prefix"; then 5669 for ac_prog in cl.exe 5670 do 5671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5672set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5674printf %s "checking for $ac_word... " >&6; } 5675if test ${ac_cv_prog_CC+y} 5676then : 5677 printf %s "(cached) " >&6 5678else $as_nop 5679 if test -n "$CC"; then 5680 ac_cv_prog_CC="$CC" # Let the user override the test. 5681else 5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5683for as_dir in $PATH 5684do 5685 IFS=$as_save_IFS 5686 case $as_dir in #((( 5687 '') as_dir=./ ;; 5688 */) ;; 5689 *) as_dir=$as_dir/ ;; 5690 esac 5691 for ac_exec_ext in '' $ac_executable_extensions; do 5692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5693 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5695 break 2 5696 fi 5697done 5698 done 5699IFS=$as_save_IFS 5700 5701fi 5702fi 5703CC=$ac_cv_prog_CC 5704if test -n "$CC"; then 5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5706printf "%s\n" "$CC" >&6; } 5707else 5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5709printf "%s\n" "no" >&6; } 5710fi 5711 5712 5713 test -n "$CC" && break 5714 done 5715fi 5716if test -z "$CC"; then 5717 ac_ct_CC=$CC 5718 for ac_prog in cl.exe 5719do 5720 # Extract the first word of "$ac_prog", so it can be a program name with args. 5721set dummy $ac_prog; ac_word=$2 5722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5723printf %s "checking for $ac_word... " >&6; } 5724if test ${ac_cv_prog_ac_ct_CC+y} 5725then : 5726 printf %s "(cached) " >&6 5727else $as_nop 5728 if test -n "$ac_ct_CC"; then 5729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5730else 5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5732for as_dir in $PATH 5733do 5734 IFS=$as_save_IFS 5735 case $as_dir in #((( 5736 '') as_dir=./ ;; 5737 */) ;; 5738 *) as_dir=$as_dir/ ;; 5739 esac 5740 for ac_exec_ext in '' $ac_executable_extensions; do 5741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5742 ac_cv_prog_ac_ct_CC="$ac_prog" 5743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5744 break 2 5745 fi 5746done 5747 done 5748IFS=$as_save_IFS 5749 5750fi 5751fi 5752ac_ct_CC=$ac_cv_prog_ac_ct_CC 5753if test -n "$ac_ct_CC"; then 5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5755printf "%s\n" "$ac_ct_CC" >&6; } 5756else 5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5758printf "%s\n" "no" >&6; } 5759fi 5760 5761 5762 test -n "$ac_ct_CC" && break 5763done 5764 5765 if test "x$ac_ct_CC" = x; then 5766 CC="" 5767 else 5768 case $cross_compiling:$ac_tool_warned in 5769yes:) 5770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5771printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5772ac_tool_warned=yes ;; 5773esac 5774 CC=$ac_ct_CC 5775 fi 5776fi 5777 5778fi 5779if test -z "$CC"; then 5780 if test -n "$ac_tool_prefix"; then 5781 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 5782set dummy ${ac_tool_prefix}clang; ac_word=$2 5783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5784printf %s "checking for $ac_word... " >&6; } 5785if test ${ac_cv_prog_CC+y} 5786then : 5787 printf %s "(cached) " >&6 5788else $as_nop 5789 if test -n "$CC"; then 5790 ac_cv_prog_CC="$CC" # Let the user override the test. 5791else 5792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5793for as_dir in $PATH 5794do 5795 IFS=$as_save_IFS 5796 case $as_dir in #((( 5797 '') as_dir=./ ;; 5798 */) ;; 5799 *) as_dir=$as_dir/ ;; 5800 esac 5801 for ac_exec_ext in '' $ac_executable_extensions; do 5802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5803 ac_cv_prog_CC="${ac_tool_prefix}clang" 5804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5805 break 2 5806 fi 5807done 5808 done 5809IFS=$as_save_IFS 5810 5811fi 5812fi 5813CC=$ac_cv_prog_CC 5814if test -n "$CC"; then 5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5816printf "%s\n" "$CC" >&6; } 5817else 5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5819printf "%s\n" "no" >&6; } 5820fi 5821 5822 5823fi 5824if test -z "$ac_cv_prog_CC"; then 5825 ac_ct_CC=$CC 5826 # Extract the first word of "clang", so it can be a program name with args. 5827set dummy clang; ac_word=$2 5828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5829printf %s "checking for $ac_word... " >&6; } 5830if test ${ac_cv_prog_ac_ct_CC+y} 5831then : 5832 printf %s "(cached) " >&6 5833else $as_nop 5834 if test -n "$ac_ct_CC"; then 5835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5836else 5837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5838for as_dir in $PATH 5839do 5840 IFS=$as_save_IFS 5841 case $as_dir in #((( 5842 '') as_dir=./ ;; 5843 */) ;; 5844 *) as_dir=$as_dir/ ;; 5845 esac 5846 for ac_exec_ext in '' $ac_executable_extensions; do 5847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5848 ac_cv_prog_ac_ct_CC="clang" 5849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5850 break 2 5851 fi 5852done 5853 done 5854IFS=$as_save_IFS 5855 5856fi 5857fi 5858ac_ct_CC=$ac_cv_prog_ac_ct_CC 5859if test -n "$ac_ct_CC"; then 5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5861printf "%s\n" "$ac_ct_CC" >&6; } 5862else 5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5864printf "%s\n" "no" >&6; } 5865fi 5866 5867 if test "x$ac_ct_CC" = x; then 5868 CC="" 5869 else 5870 case $cross_compiling:$ac_tool_warned in 5871yes:) 5872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5873printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5874ac_tool_warned=yes ;; 5875esac 5876 CC=$ac_ct_CC 5877 fi 5878else 5879 CC="$ac_cv_prog_CC" 5880fi 5881 5882fi 5883 5884 5885test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5886printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5887as_fn_error $? "no acceptable C compiler found in \$PATH 5888See \`config.log' for more details" "$LINENO" 5; } 5889 5890# Provide some information about the compiler. 5891printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5892set X $ac_compile 5893ac_compiler=$2 5894for ac_option in --version -v -V -qversion -version; do 5895 { { ac_try="$ac_compiler $ac_option >&5" 5896case "(($ac_try" in 5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5898 *) ac_try_echo=$ac_try;; 5899esac 5900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5901printf "%s\n" "$ac_try_echo"; } >&5 5902 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5903 ac_status=$? 5904 if test -s conftest.err; then 5905 sed '10a\ 5906... rest of stderr output deleted ... 5907 10q' conftest.err >conftest.er1 5908 cat conftest.er1 >&5 5909 fi 5910 rm -f conftest.er1 conftest.err 5911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5912 test $ac_status = 0; } 5913done 5914 5915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5916printf %s "checking whether the compiler supports GNU C... " >&6; } 5917if test ${ac_cv_c_compiler_gnu+y} 5918then : 5919 printf %s "(cached) " >&6 5920else $as_nop 5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5922/* end confdefs.h. */ 5923 5924int 5925main (void) 5926{ 5927#ifndef __GNUC__ 5928 choke me 5929#endif 5930 5931 ; 5932 return 0; 5933} 5934_ACEOF 5935if ac_fn_c_try_compile "$LINENO" 5936then : 5937 ac_compiler_gnu=yes 5938else $as_nop 5939 ac_compiler_gnu=no 5940fi 5941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5942ac_cv_c_compiler_gnu=$ac_compiler_gnu 5943 5944fi 5945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5946printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5947ac_compiler_gnu=$ac_cv_c_compiler_gnu 5948 5949if test $ac_compiler_gnu = yes; then 5950 GCC=yes 5951else 5952 GCC= 5953fi 5954ac_test_CFLAGS=${CFLAGS+y} 5955ac_save_CFLAGS=$CFLAGS 5956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5957printf %s "checking whether $CC accepts -g... " >&6; } 5958if test ${ac_cv_prog_cc_g+y} 5959then : 5960 printf %s "(cached) " >&6 5961else $as_nop 5962 ac_save_c_werror_flag=$ac_c_werror_flag 5963 ac_c_werror_flag=yes 5964 ac_cv_prog_cc_g=no 5965 CFLAGS="-g" 5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5967/* end confdefs.h. */ 5968 5969int 5970main (void) 5971{ 5972 5973 ; 5974 return 0; 5975} 5976_ACEOF 5977if ac_fn_c_try_compile "$LINENO" 5978then : 5979 ac_cv_prog_cc_g=yes 5980else $as_nop 5981 CFLAGS="" 5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5983/* end confdefs.h. */ 5984 5985int 5986main (void) 5987{ 5988 5989 ; 5990 return 0; 5991} 5992_ACEOF 5993if ac_fn_c_try_compile "$LINENO" 5994then : 5995 5996else $as_nop 5997 ac_c_werror_flag=$ac_save_c_werror_flag 5998 CFLAGS="-g" 5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6000/* end confdefs.h. */ 6001 6002int 6003main (void) 6004{ 6005 6006 ; 6007 return 0; 6008} 6009_ACEOF 6010if ac_fn_c_try_compile "$LINENO" 6011then : 6012 ac_cv_prog_cc_g=yes 6013fi 6014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6015fi 6016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6017fi 6018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6019 ac_c_werror_flag=$ac_save_c_werror_flag 6020fi 6021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6022printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 6023if test $ac_test_CFLAGS; then 6024 CFLAGS=$ac_save_CFLAGS 6025elif test $ac_cv_prog_cc_g = yes; then 6026 if test "$GCC" = yes; then 6027 CFLAGS="-g -O2" 6028 else 6029 CFLAGS="-g" 6030 fi 6031else 6032 if test "$GCC" = yes; then 6033 CFLAGS="-O2" 6034 else 6035 CFLAGS= 6036 fi 6037fi 6038ac_prog_cc_stdc=no 6039if test x$ac_prog_cc_stdc = xno 6040then : 6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 6042printf %s "checking for $CC option to enable C11 features... " >&6; } 6043if test ${ac_cv_prog_cc_c11+y} 6044then : 6045 printf %s "(cached) " >&6 6046else $as_nop 6047 ac_cv_prog_cc_c11=no 6048ac_save_CC=$CC 6049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6050/* end confdefs.h. */ 6051$ac_c_conftest_c11_program 6052_ACEOF 6053for ac_arg in '' -std=gnu11 6054do 6055 CC="$ac_save_CC $ac_arg" 6056 if ac_fn_c_try_compile "$LINENO" 6057then : 6058 ac_cv_prog_cc_c11=$ac_arg 6059fi 6060rm -f core conftest.err conftest.$ac_objext conftest.beam 6061 test "x$ac_cv_prog_cc_c11" != "xno" && break 6062done 6063rm -f conftest.$ac_ext 6064CC=$ac_save_CC 6065fi 6066 6067if test "x$ac_cv_prog_cc_c11" = xno 6068then : 6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6070printf "%s\n" "unsupported" >&6; } 6071else $as_nop 6072 if test "x$ac_cv_prog_cc_c11" = x 6073then : 6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6075printf "%s\n" "none needed" >&6; } 6076else $as_nop 6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 6078printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 6079 CC="$CC $ac_cv_prog_cc_c11" 6080fi 6081 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 6082 ac_prog_cc_stdc=c11 6083fi 6084fi 6085if test x$ac_prog_cc_stdc = xno 6086then : 6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 6088printf %s "checking for $CC option to enable C99 features... " >&6; } 6089if test ${ac_cv_prog_cc_c99+y} 6090then : 6091 printf %s "(cached) " >&6 6092else $as_nop 6093 ac_cv_prog_cc_c99=no 6094ac_save_CC=$CC 6095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6096/* end confdefs.h. */ 6097$ac_c_conftest_c99_program 6098_ACEOF 6099for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 6100do 6101 CC="$ac_save_CC $ac_arg" 6102 if ac_fn_c_try_compile "$LINENO" 6103then : 6104 ac_cv_prog_cc_c99=$ac_arg 6105fi 6106rm -f core conftest.err conftest.$ac_objext conftest.beam 6107 test "x$ac_cv_prog_cc_c99" != "xno" && break 6108done 6109rm -f conftest.$ac_ext 6110CC=$ac_save_CC 6111fi 6112 6113if test "x$ac_cv_prog_cc_c99" = xno 6114then : 6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6116printf "%s\n" "unsupported" >&6; } 6117else $as_nop 6118 if test "x$ac_cv_prog_cc_c99" = x 6119then : 6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6121printf "%s\n" "none needed" >&6; } 6122else $as_nop 6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 6124printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 6125 CC="$CC $ac_cv_prog_cc_c99" 6126fi 6127 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 6128 ac_prog_cc_stdc=c99 6129fi 6130fi 6131if test x$ac_prog_cc_stdc = xno 6132then : 6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 6134printf %s "checking for $CC option to enable C89 features... " >&6; } 6135if test ${ac_cv_prog_cc_c89+y} 6136then : 6137 printf %s "(cached) " >&6 6138else $as_nop 6139 ac_cv_prog_cc_c89=no 6140ac_save_CC=$CC 6141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6142/* end confdefs.h. */ 6143$ac_c_conftest_c89_program 6144_ACEOF 6145for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6146do 6147 CC="$ac_save_CC $ac_arg" 6148 if ac_fn_c_try_compile "$LINENO" 6149then : 6150 ac_cv_prog_cc_c89=$ac_arg 6151fi 6152rm -f core conftest.err conftest.$ac_objext conftest.beam 6153 test "x$ac_cv_prog_cc_c89" != "xno" && break 6154done 6155rm -f conftest.$ac_ext 6156CC=$ac_save_CC 6157fi 6158 6159if test "x$ac_cv_prog_cc_c89" = xno 6160then : 6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6162printf "%s\n" "unsupported" >&6; } 6163else $as_nop 6164 if test "x$ac_cv_prog_cc_c89" = x 6165then : 6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6167printf "%s\n" "none needed" >&6; } 6168else $as_nop 6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6170printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 6171 CC="$CC $ac_cv_prog_cc_c89" 6172fi 6173 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 6174 ac_prog_cc_stdc=c89 6175fi 6176fi 6177 6178ac_ext=c 6179ac_cpp='$CPP $CPPFLAGS' 6180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6182ac_compiler_gnu=$ac_cv_c_compiler_gnu 6183 6184 6185 ac_ext=c 6186ac_cpp='$CPP $CPPFLAGS' 6187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6189ac_compiler_gnu=$ac_cv_c_compiler_gnu 6190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6191printf %s "checking whether $CC understands -c and -o together... " >&6; } 6192if test ${am_cv_prog_cc_c_o+y} 6193then : 6194 printf %s "(cached) " >&6 6195else $as_nop 6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6197/* end confdefs.h. */ 6198 6199int 6200main (void) 6201{ 6202 6203 ; 6204 return 0; 6205} 6206_ACEOF 6207 # Make sure it works both with $CC and with simple cc. 6208 # Following AC_PROG_CC_C_O, we do the test twice because some 6209 # compilers refuse to overwrite an existing .o file with -o, 6210 # though they will create one. 6211 am_cv_prog_cc_c_o=yes 6212 for am_i in 1 2; do 6213 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6214 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6215 ac_status=$? 6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6217 (exit $ac_status); } \ 6218 && test -f conftest2.$ac_objext; then 6219 : OK 6220 else 6221 am_cv_prog_cc_c_o=no 6222 break 6223 fi 6224 done 6225 rm -f core conftest* 6226 unset am_i 6227fi 6228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6229printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 6230if test "$am_cv_prog_cc_c_o" != yes; then 6231 # Losing compiler, so override with the script. 6232 # FIXME: It is wrong to rewrite CC. 6233 # But if we don't then we get into trouble of one sort or another. 6234 # A longer-term fix would be to have automake use am__CC in this case, 6235 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6236 CC="$am_aux_dir/compile $CC" 6237fi 6238ac_ext=c 6239ac_cpp='$CPP $CPPFLAGS' 6240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6242ac_compiler_gnu=$ac_cv_c_compiler_gnu 6243 6244 6245depcc="$CC" am_compiler_list= 6246 6247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6248printf %s "checking dependency style of $depcc... " >&6; } 6249if test ${am_cv_CC_dependencies_compiler_type+y} 6250then : 6251 printf %s "(cached) " >&6 6252else $as_nop 6253 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6254 # We make a subdir and do the tests there. Otherwise we can end up 6255 # making bogus files that we don't know about and never remove. For 6256 # instance it was reported that on HP-UX the gcc test will end up 6257 # making a dummy file named 'D' -- because '-MD' means "put the output 6258 # in D". 6259 rm -rf conftest.dir 6260 mkdir conftest.dir 6261 # Copy depcomp to subdir because otherwise we won't find it if we're 6262 # using a relative directory. 6263 cp "$am_depcomp" conftest.dir 6264 cd conftest.dir 6265 # We will build objects and dependencies in a subdirectory because 6266 # it helps to detect inapplicable dependency modes. For instance 6267 # both Tru64's cc and ICC support -MD to output dependencies as a 6268 # side effect of compilation, but ICC will put the dependencies in 6269 # the current directory while Tru64 will put them in the object 6270 # directory. 6271 mkdir sub 6272 6273 am_cv_CC_dependencies_compiler_type=none 6274 if test "$am_compiler_list" = ""; then 6275 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6276 fi 6277 am__universal=false 6278 case " $depcc " in #( 6279 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6280 esac 6281 6282 for depmode in $am_compiler_list; do 6283 # Setup a source with many dependencies, because some compilers 6284 # like to wrap large dependency lists on column 80 (with \), and 6285 # we should not choose a depcomp mode which is confused by this. 6286 # 6287 # We need to recreate these files for each test, as the compiler may 6288 # overwrite some of them when testing with obscure command lines. 6289 # This happens at least with the AIX C compiler. 6290 : > sub/conftest.c 6291 for i in 1 2 3 4 5 6; do 6292 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6293 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6294 # Solaris 10 /bin/sh. 6295 echo '/* dummy */' > sub/conftst$i.h 6296 done 6297 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6298 6299 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6300 # mode. It turns out that the SunPro C++ compiler does not properly 6301 # handle '-M -o', and we need to detect this. Also, some Intel 6302 # versions had trouble with output in subdirs. 6303 am__obj=sub/conftest.${OBJEXT-o} 6304 am__minus_obj="-o $am__obj" 6305 case $depmode in 6306 gcc) 6307 # This depmode causes a compiler race in universal mode. 6308 test "$am__universal" = false || continue 6309 ;; 6310 nosideeffect) 6311 # After this tag, mechanisms are not by side-effect, so they'll 6312 # only be used when explicitly requested. 6313 if test "x$enable_dependency_tracking" = xyes; then 6314 continue 6315 else 6316 break 6317 fi 6318 ;; 6319 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6320 # This compiler won't grok '-c -o', but also, the minuso test has 6321 # not run yet. These depmodes are late enough in the game, and 6322 # so weak that their functioning should not be impacted. 6323 am__obj=conftest.${OBJEXT-o} 6324 am__minus_obj= 6325 ;; 6326 none) break ;; 6327 esac 6328 if depmode=$depmode \ 6329 source=sub/conftest.c object=$am__obj \ 6330 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6331 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6332 >/dev/null 2>conftest.err && 6333 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6334 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6335 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6336 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6337 # icc doesn't choke on unknown options, it will just issue warnings 6338 # or remarks (even with -Werror). So we grep stderr for any message 6339 # that says an option was ignored or not supported. 6340 # When given -MP, icc 7.0 and 7.1 complain thusly: 6341 # icc: Command line warning: ignoring option '-M'; no argument required 6342 # The diagnosis changed in icc 8.0: 6343 # icc: Command line remark: option '-MP' not supported 6344 if (grep 'ignoring option' conftest.err || 6345 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6346 am_cv_CC_dependencies_compiler_type=$depmode 6347 break 6348 fi 6349 fi 6350 done 6351 6352 cd .. 6353 rm -rf conftest.dir 6354else 6355 am_cv_CC_dependencies_compiler_type=none 6356fi 6357 6358fi 6359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6360printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 6361CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6362 6363 if 6364 test "x$enable_dependency_tracking" != xno \ 6365 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6366 am__fastdepCC_TRUE= 6367 am__fastdepCC_FALSE='#' 6368else 6369 am__fastdepCC_TRUE='#' 6370 am__fastdepCC_FALSE= 6371fi 6372 6373 6374ac_ext=c 6375ac_cpp='$CPP $CPPFLAGS' 6376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6378ac_compiler_gnu=$ac_cv_c_compiler_gnu 6379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6380printf %s "checking how to run the C preprocessor... " >&6; } 6381# On Suns, sometimes $CPP names a directory. 6382if test -n "$CPP" && test -d "$CPP"; then 6383 CPP= 6384fi 6385if test -z "$CPP"; then 6386 if test ${ac_cv_prog_CPP+y} 6387then : 6388 printf %s "(cached) " >&6 6389else $as_nop 6390 # Double quotes because $CC needs to be expanded 6391 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 6392 do 6393 ac_preproc_ok=false 6394for ac_c_preproc_warn_flag in '' yes 6395do 6396 # Use a header file that comes with gcc, so configuring glibc 6397 # with a fresh cross-compiler works. 6398 # On the NeXT, cc -E runs the code through the compiler's parser, 6399 # not just through cpp. "Syntax error" is here to catch this case. 6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6401/* end confdefs.h. */ 6402#include <limits.h> 6403 Syntax error 6404_ACEOF 6405if ac_fn_c_try_cpp "$LINENO" 6406then : 6407 6408else $as_nop 6409 # Broken: fails on valid input. 6410continue 6411fi 6412rm -f conftest.err conftest.i conftest.$ac_ext 6413 6414 # OK, works on sane cases. Now check whether nonexistent headers 6415 # can be detected and how. 6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6417/* end confdefs.h. */ 6418#include <ac_nonexistent.h> 6419_ACEOF 6420if ac_fn_c_try_cpp "$LINENO" 6421then : 6422 # Broken: success on invalid input. 6423continue 6424else $as_nop 6425 # Passes both tests. 6426ac_preproc_ok=: 6427break 6428fi 6429rm -f conftest.err conftest.i conftest.$ac_ext 6430 6431done 6432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6433rm -f conftest.i conftest.err conftest.$ac_ext 6434if $ac_preproc_ok 6435then : 6436 break 6437fi 6438 6439 done 6440 ac_cv_prog_CPP=$CPP 6441 6442fi 6443 CPP=$ac_cv_prog_CPP 6444else 6445 ac_cv_prog_CPP=$CPP 6446fi 6447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6448printf "%s\n" "$CPP" >&6; } 6449ac_preproc_ok=false 6450for ac_c_preproc_warn_flag in '' yes 6451do 6452 # Use a header file that comes with gcc, so configuring glibc 6453 # with a fresh cross-compiler works. 6454 # On the NeXT, cc -E runs the code through the compiler's parser, 6455 # not just through cpp. "Syntax error" is here to catch this case. 6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6457/* end confdefs.h. */ 6458#include <limits.h> 6459 Syntax error 6460_ACEOF 6461if ac_fn_c_try_cpp "$LINENO" 6462then : 6463 6464else $as_nop 6465 # Broken: fails on valid input. 6466continue 6467fi 6468rm -f conftest.err conftest.i conftest.$ac_ext 6469 6470 # OK, works on sane cases. Now check whether nonexistent headers 6471 # can be detected and how. 6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6473/* end confdefs.h. */ 6474#include <ac_nonexistent.h> 6475_ACEOF 6476if ac_fn_c_try_cpp "$LINENO" 6477then : 6478 # Broken: success on invalid input. 6479continue 6480else $as_nop 6481 # Passes both tests. 6482ac_preproc_ok=: 6483break 6484fi 6485rm -f conftest.err conftest.i conftest.$ac_ext 6486 6487done 6488# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6489rm -f conftest.i conftest.err conftest.$ac_ext 6490if $ac_preproc_ok 6491then : 6492 6493else $as_nop 6494 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6495printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6496as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6497See \`config.log' for more details" "$LINENO" 5; } 6498fi 6499 6500ac_ext=c 6501ac_cpp='$CPP $CPPFLAGS' 6502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6504ac_compiler_gnu=$ac_cv_c_compiler_gnu 6505 6506ac_c_preproc_warn_flag=yes 6507 6508# 6509# Find build compiler when cross compiling 6510# 6511 6512 6513cross_compiling_build=no 6514 6515ac_build_tool_prefix= 6516if test -n "$build" 6517then : 6518 ac_build_tool_prefix="$build-" 6519elif test -n "$build_alias" 6520then : 6521 ac_build_tool_prefix="$build_alias-" 6522fi 6523 6524ac_ext=c 6525ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 6526ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6527ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 6528ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 6529 6530 6531was_set_c_compiler_gnu=${ac_cv_c_compiler_gnu+y} 6532if test ${was_set_c_compiler_gnu} 6533then : 6534 saved_c_compiler_gnu=$ac_cv_c_compiler_gnu 6535 { ac_cv_c_compiler_gnu=; unset ac_cv_c_compiler_gnu;} 6536fi 6537 6538ac_ext=c 6539ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 6540ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6541ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 6542ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 6543if test -n "$ac_build_tool_prefix"; then 6544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 6545set dummy ${ac_build_tool_prefix}gcc; ac_word=$2 6546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6547printf %s "checking for $ac_word... " >&6; } 6548if test ${ac_cv_prog_CC_FOR_BUILD+y} 6549then : 6550 printf %s "(cached) " >&6 6551else $as_nop 6552 if test -n "$CC_FOR_BUILD"; then 6553 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6554else 6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6556for as_dir in $PATH 6557do 6558 IFS=$as_save_IFS 6559 case $as_dir in #((( 6560 '') as_dir=./ ;; 6561 */) ;; 6562 *) as_dir=$as_dir/ ;; 6563 esac 6564 for ac_exec_ext in '' $ac_executable_extensions; do 6565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6566 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc" 6567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6568 break 2 6569 fi 6570done 6571 done 6572IFS=$as_save_IFS 6573 6574fi 6575fi 6576CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6577if test -n "$CC_FOR_BUILD"; then 6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6579printf "%s\n" "$CC_FOR_BUILD" >&6; } 6580else 6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6582printf "%s\n" "no" >&6; } 6583fi 6584 6585 6586fi 6587if test -z "$ac_cv_prog_CC_FOR_BUILD"; then 6588 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 6589 # Extract the first word of "gcc", so it can be a program name with args. 6590set dummy gcc; ac_word=$2 6591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6592printf %s "checking for $ac_word... " >&6; } 6593if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y} 6594then : 6595 printf %s "(cached) " >&6 6596else $as_nop 6597 if test -n "$ac_ct_CC_FOR_BUILD"; then 6598 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 6599else 6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6601for as_dir in $PATH 6602do 6603 IFS=$as_save_IFS 6604 case $as_dir in #((( 6605 '') as_dir=./ ;; 6606 */) ;; 6607 *) as_dir=$as_dir/ ;; 6608 esac 6609 for ac_exec_ext in '' $ac_executable_extensions; do 6610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6611 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc" 6612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6613 break 2 6614 fi 6615done 6616 done 6617IFS=$as_save_IFS 6618 6619fi 6620fi 6621ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 6622if test -n "$ac_ct_CC_FOR_BUILD"; then 6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 6624printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; } 6625else 6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6627printf "%s\n" "no" >&6; } 6628fi 6629 6630 if test "x$ac_ct_CC_FOR_BUILD" = x; then 6631 CC_FOR_BUILD="" 6632 else 6633 case $cross_compiling_build:$ac_tool_warned in 6634yes:) 6635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 6636printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 6637ac_tool_warned=yes ;; 6638esac 6639 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 6640 fi 6641else 6642 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD" 6643fi 6644 6645if test -z "$CC_FOR_BUILD"; then 6646 if test -n "$ac_build_tool_prefix"; then 6647 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 6648set dummy ${ac_build_tool_prefix}cc; ac_word=$2 6649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6650printf %s "checking for $ac_word... " >&6; } 6651if test ${ac_cv_prog_CC_FOR_BUILD+y} 6652then : 6653 printf %s "(cached) " >&6 6654else $as_nop 6655 if test -n "$CC_FOR_BUILD"; then 6656 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6657else 6658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6659for as_dir in $PATH 6660do 6661 IFS=$as_save_IFS 6662 case $as_dir in #((( 6663 '') as_dir=./ ;; 6664 */) ;; 6665 *) as_dir=$as_dir/ ;; 6666 esac 6667 for ac_exec_ext in '' $ac_executable_extensions; do 6668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6669 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc" 6670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6671 break 2 6672 fi 6673done 6674 done 6675IFS=$as_save_IFS 6676 6677fi 6678fi 6679CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6680if test -n "$CC_FOR_BUILD"; then 6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6682printf "%s\n" "$CC_FOR_BUILD" >&6; } 6683else 6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6685printf "%s\n" "no" >&6; } 6686fi 6687 6688 6689 fi 6690fi 6691if test -z "$CC_FOR_BUILD"; then 6692 # Extract the first word of "cc", so it can be a program name with args. 6693set dummy cc; ac_word=$2 6694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6695printf %s "checking for $ac_word... " >&6; } 6696if test ${ac_cv_prog_CC_FOR_BUILD+y} 6697then : 6698 printf %s "(cached) " >&6 6699else $as_nop 6700 if test -n "$CC_FOR_BUILD"; then 6701 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6702else 6703 ac_prog_rejected=no 6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6705for as_dir in $PATH 6706do 6707 IFS=$as_save_IFS 6708 case $as_dir in #((( 6709 '') as_dir=./ ;; 6710 */) ;; 6711 *) as_dir=$as_dir/ ;; 6712 esac 6713 for ac_exec_ext in '' $ac_executable_extensions; do 6714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6715 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 6716 ac_prog_rejected=yes 6717 continue 6718 fi 6719 ac_cv_prog_CC_FOR_BUILD="cc" 6720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6721 break 2 6722 fi 6723done 6724 done 6725IFS=$as_save_IFS 6726 6727if test $ac_prog_rejected = yes; then 6728 # We found a bogon in the path, so make sure we never use it. 6729 set dummy $ac_cv_prog_CC_FOR_BUILD 6730 shift 6731 if test $# != 0; then 6732 # We chose a different compiler from the bogus one. 6733 # However, it has the same basename, so the bogon will be chosen 6734 # first if we set CC_FOR_BUILD to just the basename; use the full file name. 6735 shift 6736 ac_cv_prog_CC_FOR_BUILD="$as_dir$ac_word${1+' '}$@" 6737 fi 6738fi 6739fi 6740fi 6741CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6742if test -n "$CC_FOR_BUILD"; then 6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6744printf "%s\n" "$CC_FOR_BUILD" >&6; } 6745else 6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6747printf "%s\n" "no" >&6; } 6748fi 6749 6750 6751fi 6752if test -z "$CC_FOR_BUILD"; then 6753 if test -n "$ac_build_tool_prefix"; then 6754 for ac_prog in cl.exe 6755 do 6756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6757set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2 6758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6759printf %s "checking for $ac_word... " >&6; } 6760if test ${ac_cv_prog_CC_FOR_BUILD+y} 6761then : 6762 printf %s "(cached) " >&6 6763else $as_nop 6764 if test -n "$CC_FOR_BUILD"; then 6765 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6766else 6767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6768for as_dir in $PATH 6769do 6770 IFS=$as_save_IFS 6771 case $as_dir in #((( 6772 '') as_dir=./ ;; 6773 */) ;; 6774 *) as_dir=$as_dir/ ;; 6775 esac 6776 for ac_exec_ext in '' $ac_executable_extensions; do 6777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6778 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog" 6779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6780 break 2 6781 fi 6782done 6783 done 6784IFS=$as_save_IFS 6785 6786fi 6787fi 6788CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6789if test -n "$CC_FOR_BUILD"; then 6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6791printf "%s\n" "$CC_FOR_BUILD" >&6; } 6792else 6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6794printf "%s\n" "no" >&6; } 6795fi 6796 6797 6798 test -n "$CC_FOR_BUILD" && break 6799 done 6800fi 6801if test -z "$CC_FOR_BUILD"; then 6802 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 6803 for ac_prog in cl.exe 6804do 6805 # Extract the first word of "$ac_prog", so it can be a program name with args. 6806set dummy $ac_prog; ac_word=$2 6807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6808printf %s "checking for $ac_word... " >&6; } 6809if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y} 6810then : 6811 printf %s "(cached) " >&6 6812else $as_nop 6813 if test -n "$ac_ct_CC_FOR_BUILD"; then 6814 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 6815else 6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6817for as_dir in $PATH 6818do 6819 IFS=$as_save_IFS 6820 case $as_dir in #((( 6821 '') as_dir=./ ;; 6822 */) ;; 6823 *) as_dir=$as_dir/ ;; 6824 esac 6825 for ac_exec_ext in '' $ac_executable_extensions; do 6826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6827 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog" 6828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6829 break 2 6830 fi 6831done 6832 done 6833IFS=$as_save_IFS 6834 6835fi 6836fi 6837ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 6838if test -n "$ac_ct_CC_FOR_BUILD"; then 6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 6840printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; } 6841else 6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6843printf "%s\n" "no" >&6; } 6844fi 6845 6846 6847 test -n "$ac_ct_CC_FOR_BUILD" && break 6848done 6849 6850 if test "x$ac_ct_CC_FOR_BUILD" = x; then 6851 CC_FOR_BUILD="" 6852 else 6853 case $cross_compiling_build:$ac_tool_warned in 6854yes:) 6855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 6856printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 6857ac_tool_warned=yes ;; 6858esac 6859 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 6860 fi 6861fi 6862 6863fi 6864if test -z "$CC_FOR_BUILD"; then 6865 if test -n "$ac_build_tool_prefix"; then 6866 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 6867set dummy ${ac_build_tool_prefix}clang; ac_word=$2 6868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6869printf %s "checking for $ac_word... " >&6; } 6870if test ${ac_cv_prog_CC_FOR_BUILD+y} 6871then : 6872 printf %s "(cached) " >&6 6873else $as_nop 6874 if test -n "$CC_FOR_BUILD"; then 6875 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6876else 6877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6878for as_dir in $PATH 6879do 6880 IFS=$as_save_IFS 6881 case $as_dir in #((( 6882 '') as_dir=./ ;; 6883 */) ;; 6884 *) as_dir=$as_dir/ ;; 6885 esac 6886 for ac_exec_ext in '' $ac_executable_extensions; do 6887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6888 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}clang" 6889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6890 break 2 6891 fi 6892done 6893 done 6894IFS=$as_save_IFS 6895 6896fi 6897fi 6898CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6899if test -n "$CC_FOR_BUILD"; then 6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6901printf "%s\n" "$CC_FOR_BUILD" >&6; } 6902else 6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6904printf "%s\n" "no" >&6; } 6905fi 6906 6907 6908fi 6909if test -z "$ac_cv_prog_CC_FOR_BUILD"; then 6910 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 6911 # Extract the first word of "clang", so it can be a program name with args. 6912set dummy clang; ac_word=$2 6913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6914printf %s "checking for $ac_word... " >&6; } 6915if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y} 6916then : 6917 printf %s "(cached) " >&6 6918else $as_nop 6919 if test -n "$ac_ct_CC_FOR_BUILD"; then 6920 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 6921else 6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6923for as_dir in $PATH 6924do 6925 IFS=$as_save_IFS 6926 case $as_dir in #((( 6927 '') as_dir=./ ;; 6928 */) ;; 6929 *) as_dir=$as_dir/ ;; 6930 esac 6931 for ac_exec_ext in '' $ac_executable_extensions; do 6932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6933 ac_cv_prog_ac_ct_CC_FOR_BUILD="clang" 6934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6935 break 2 6936 fi 6937done 6938 done 6939IFS=$as_save_IFS 6940 6941fi 6942fi 6943ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 6944if test -n "$ac_ct_CC_FOR_BUILD"; then 6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 6946printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; } 6947else 6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6949printf "%s\n" "no" >&6; } 6950fi 6951 6952 if test "x$ac_ct_CC_FOR_BUILD" = x; then 6953 CC_FOR_BUILD="" 6954 else 6955 case $cross_compiling_build:$ac_tool_warned in 6956yes:) 6957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 6958printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 6959ac_tool_warned=yes ;; 6960esac 6961 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 6962 fi 6963else 6964 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD" 6965fi 6966 6967fi 6968 6969 6970test -z "$CC_FOR_BUILD" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6971printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6972as_fn_error $? "no acceptable C compiler found in \$PATH 6973See \`config.log' for more details" "$LINENO" 5; } 6974 6975# Provide some information about the compiler. 6976printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6977set X $ac_compile 6978ac_compiler=$2 6979for ac_option in --version -v -V -qversion -version; do 6980 { { ac_try="$ac_compiler $ac_option >&5" 6981case "(($ac_try" in 6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6983 *) ac_try_echo=$ac_try;; 6984esac 6985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6986printf "%s\n" "$ac_try_echo"; } >&5 6987 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6988 ac_status=$? 6989 if test -s conftest.err; then 6990 sed '10a\ 6991... rest of stderr output deleted ... 6992 10q' conftest.err >conftest.er1 6993 cat conftest.er1 >&5 6994 fi 6995 rm -f conftest.er1 conftest.err 6996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6997 test $ac_status = 0; } 6998done 6999 7000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 7001printf %s "checking whether the compiler supports GNU C... " >&6; } 7002if test ${ac_cv_c_compiler_gnu+y} 7003then : 7004 printf %s "(cached) " >&6 7005else $as_nop 7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7007/* end confdefs.h. */ 7008 7009int 7010main (void) 7011{ 7012#ifndef __GNUC__ 7013 choke me 7014#endif 7015 7016 ; 7017 return 0; 7018} 7019_ACEOF 7020if ac_fn_c_try_compile "$LINENO" 7021then : 7022 ac_compiler_gnu=yes 7023else $as_nop 7024 ac_compiler_gnu=no 7025fi 7026rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext 7027ac_cv_c_compiler_gnu=$ac_compiler_gnu 7028 7029fi 7030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 7031printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 7032ac_compiler_gnu=$ac_cv_c_compiler_gnu 7033 7034if test $ac_compiler_gnu = yes; then 7035 GCC_FOR_BUILD=yes 7036else 7037 GCC_FOR_BUILD= 7038fi 7039ac_test_CFLAGS=${CFLAGS_FOR_BUILD+y} 7040ac_save_CFLAGS=$CFLAGS_FOR_BUILD 7041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5 7042printf %s "checking whether $CC_FOR_BUILD accepts -g... " >&6; } 7043if test ${ac_cv_build_prog_cc_g+y} 7044then : 7045 printf %s "(cached) " >&6 7046else $as_nop 7047 ac_save_c_werror_flag=$ac_c_werror_flag 7048 ac_c_werror_flag=yes 7049 ac_cv_build_prog_cc_g=no 7050 CFLAGS_FOR_BUILD="-g" 7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7052/* end confdefs.h. */ 7053 7054int 7055main (void) 7056{ 7057 7058 ; 7059 return 0; 7060} 7061_ACEOF 7062if ac_fn_c_try_compile "$LINENO" 7063then : 7064 ac_cv_build_prog_cc_g=yes 7065else $as_nop 7066 CFLAGS_FOR_BUILD="" 7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7068/* end confdefs.h. */ 7069 7070int 7071main (void) 7072{ 7073 7074 ; 7075 return 0; 7076} 7077_ACEOF 7078if ac_fn_c_try_compile "$LINENO" 7079then : 7080 7081else $as_nop 7082 ac_c_werror_flag=$ac_save_c_werror_flag 7083 CFLAGS_FOR_BUILD="-g" 7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7085/* end confdefs.h. */ 7086 7087int 7088main (void) 7089{ 7090 7091 ; 7092 return 0; 7093} 7094_ACEOF 7095if ac_fn_c_try_compile "$LINENO" 7096then : 7097 ac_cv_build_prog_cc_g=yes 7098fi 7099rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext 7100fi 7101rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext 7102fi 7103rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext 7104 ac_c_werror_flag=$ac_save_c_werror_flag 7105fi 7106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5 7107printf "%s\n" "$ac_cv_build_prog_cc_g" >&6; } 7108if test $ac_test_CFLAGS; then 7109 CFLAGS_FOR_BUILD=$ac_save_CFLAGS 7110elif test $ac_cv_build_prog_cc_g = yes; then 7111 if test "$GCC_FOR_BUILD" = yes; then 7112 CFLAGS_FOR_BUILD="-g -O2" 7113 else 7114 CFLAGS_FOR_BUILD="-g" 7115 fi 7116else 7117 if test "$GCC_FOR_BUILD" = yes; then 7118 CFLAGS_FOR_BUILD="-O2" 7119 else 7120 CFLAGS_FOR_BUILD= 7121 fi 7122fi 7123ac_prog_cc_stdc=no 7124if test x$ac_prog_cc_stdc = xno 7125then : 7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C11 features" >&5 7127printf %s "checking for $CC_FOR_BUILD option to enable C11 features... " >&6; } 7128if test ${ac_cv_build_prog_cc_c11+y} 7129then : 7130 printf %s "(cached) " >&6 7131else $as_nop 7132 ac_cv_build_prog_cc_c11=no 7133ac_save_CC=$CC_FOR_BUILD 7134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7135/* end confdefs.h. */ 7136$ac_c_conftest_c11_program 7137_ACEOF 7138for ac_arg in '' -std=gnu11 7139do 7140 CC_FOR_BUILD="$ac_save_CC $ac_arg" 7141 if ac_fn_c_try_compile "$LINENO" 7142then : 7143 ac_cv_build_prog_cc_c11=$ac_arg 7144fi 7145rm -f core conftest.err conftest.$ac_build_objext conftest.beam 7146 test "x$ac_cv_build_prog_cc_c11" != "xno" && break 7147done 7148rm -f conftest.$ac_ext 7149CC_FOR_BUILD=$ac_save_CC 7150fi 7151 7152if test "x$ac_cv_build_prog_cc_c11" = xno 7153then : 7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7155printf "%s\n" "unsupported" >&6; } 7156else $as_nop 7157 if test "x$ac_cv_build_prog_cc_c11" = x 7158then : 7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7160printf "%s\n" "none needed" >&6; } 7161else $as_nop 7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c11" >&5 7163printf "%s\n" "$ac_cv_build_prog_cc_c11" >&6; } 7164 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c11" 7165fi 7166 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c11 7167 ac_prog_cc_stdc=c11 7168fi 7169fi 7170if test x$ac_prog_cc_stdc = xno 7171then : 7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C99 features" >&5 7173printf %s "checking for $CC_FOR_BUILD option to enable C99 features... " >&6; } 7174if test ${ac_cv_build_prog_cc_c99+y} 7175then : 7176 printf %s "(cached) " >&6 7177else $as_nop 7178 ac_cv_build_prog_cc_c99=no 7179ac_save_CC=$CC_FOR_BUILD 7180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7181/* end confdefs.h. */ 7182$ac_c_conftest_c99_program 7183_ACEOF 7184for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 7185do 7186 CC_FOR_BUILD="$ac_save_CC $ac_arg" 7187 if ac_fn_c_try_compile "$LINENO" 7188then : 7189 ac_cv_build_prog_cc_c99=$ac_arg 7190fi 7191rm -f core conftest.err conftest.$ac_build_objext conftest.beam 7192 test "x$ac_cv_build_prog_cc_c99" != "xno" && break 7193done 7194rm -f conftest.$ac_ext 7195CC_FOR_BUILD=$ac_save_CC 7196fi 7197 7198if test "x$ac_cv_build_prog_cc_c99" = xno 7199then : 7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7201printf "%s\n" "unsupported" >&6; } 7202else $as_nop 7203 if test "x$ac_cv_build_prog_cc_c99" = x 7204then : 7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7206printf "%s\n" "none needed" >&6; } 7207else $as_nop 7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c99" >&5 7209printf "%s\n" "$ac_cv_build_prog_cc_c99" >&6; } 7210 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c99" 7211fi 7212 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c99 7213 ac_prog_cc_stdc=c99 7214fi 7215fi 7216if test x$ac_prog_cc_stdc = xno 7217then : 7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C89 features" >&5 7219printf %s "checking for $CC_FOR_BUILD option to enable C89 features... " >&6; } 7220if test ${ac_cv_build_prog_cc_c89+y} 7221then : 7222 printf %s "(cached) " >&6 7223else $as_nop 7224 ac_cv_build_prog_cc_c89=no 7225ac_save_CC=$CC_FOR_BUILD 7226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7227/* end confdefs.h. */ 7228$ac_c_conftest_c89_program 7229_ACEOF 7230for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 7231do 7232 CC_FOR_BUILD="$ac_save_CC $ac_arg" 7233 if ac_fn_c_try_compile "$LINENO" 7234then : 7235 ac_cv_build_prog_cc_c89=$ac_arg 7236fi 7237rm -f core conftest.err conftest.$ac_build_objext conftest.beam 7238 test "x$ac_cv_build_prog_cc_c89" != "xno" && break 7239done 7240rm -f conftest.$ac_ext 7241CC_FOR_BUILD=$ac_save_CC 7242fi 7243 7244if test "x$ac_cv_build_prog_cc_c89" = xno 7245then : 7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7247printf "%s\n" "unsupported" >&6; } 7248else $as_nop 7249 if test "x$ac_cv_build_prog_cc_c89" = x 7250then : 7251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7252printf "%s\n" "none needed" >&6; } 7253else $as_nop 7254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5 7255printf "%s\n" "$ac_cv_build_prog_cc_c89" >&6; } 7256 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89" 7257fi 7258 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c89 7259 ac_prog_cc_stdc=c89 7260fi 7261fi 7262 7263ac_ext=c 7264ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 7265ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 7266ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 7267ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 7268 7269 7270 ac_ext=c 7271ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 7272ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 7273ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 7274ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 7275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5 7276printf %s "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; } 7277if test ${am_cv_build_prog_cc_c_o+y} 7278then : 7279 printf %s "(cached) " >&6 7280else $as_nop 7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7282/* end confdefs.h. */ 7283 7284int 7285main (void) 7286{ 7287 7288 ; 7289 return 0; 7290} 7291_ACEOF 7292 # Make sure it works both with $CC and with simple cc. 7293 # Following AC_PROG_CC_C_O, we do the test twice because some 7294 # compilers refuse to overwrite an existing .o file with -o, 7295 # though they will create one. 7296 am_cv_build_prog_cc_c_o=yes 7297 for am_i in 1 2; do 7298 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5 7299 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5 7300 ac_status=$? 7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7302 (exit $ac_status); } \ 7303 && test -f conftest2.$ac_build_objext; then 7304 : OK 7305 else 7306 am_cv_build_prog_cc_c_o=no 7307 break 7308 fi 7309 done 7310 rm -f core conftest* 7311 unset am_i 7312fi 7313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5 7314printf "%s\n" "$am_cv_build_prog_cc_c_o" >&6; } 7315if test "$am_cv_build_prog_cc_c_o" != yes; then 7316 # Losing compiler, so override with the script. 7317 # FIXME: It is wrong to rewrite CC. 7318 # But if we don't then we get into trouble of one sort or another. 7319 # A longer-term fix would be to have automake use am__CC in this case, 7320 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 7321 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD" 7322fi 7323ac_ext=c 7324ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 7325ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 7326ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 7327ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 7328 7329 7330depcc="$CC_FOR_BUILD" am_compiler_list= 7331 7332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7333printf %s "checking dependency style of $depcc... " >&6; } 7334if test ${am_cv_build_CC_dependencies_compiler_type+y} 7335then : 7336 printf %s "(cached) " >&6 7337else $as_nop 7338 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7339 # We make a subdir and do the tests there. Otherwise we can end up 7340 # making bogus files that we don't know about and never remove. For 7341 # instance it was reported that on HP-UX the gcc test will end up 7342 # making a dummy file named 'D' -- because '-MD' means "put the output 7343 # in D". 7344 rm -rf conftest.dir 7345 mkdir conftest.dir 7346 # Copy depcomp to subdir because otherwise we won't find it if we're 7347 # using a relative directory. 7348 cp "$am_depcomp" conftest.dir 7349 cd conftest.dir 7350 # We will build objects and dependencies in a subdirectory because 7351 # it helps to detect inapplicable dependency modes. For instance 7352 # both Tru64's cc and ICC support -MD to output dependencies as a 7353 # side effect of compilation, but ICC will put the dependencies in 7354 # the current directory while Tru64 will put them in the object 7355 # directory. 7356 mkdir sub 7357 7358 am_cv_build_CC_dependencies_compiler_type=none 7359 if test "$am_compiler_list" = ""; then 7360 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7361 fi 7362 am__universal=false 7363 case " $depcc " in #( 7364 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7365 esac 7366 7367 for depmode in $am_compiler_list; do 7368 # Setup a source with many dependencies, because some compilers 7369 # like to wrap large dependency lists on column 80 (with \), and 7370 # we should not choose a depcomp mode which is confused by this. 7371 # 7372 # We need to recreate these files for each test, as the compiler may 7373 # overwrite some of them when testing with obscure command lines. 7374 # This happens at least with the AIX C compiler. 7375 : > sub/conftest.c 7376 for i in 1 2 3 4 5 6; do 7377 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7378 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 7379 # Solaris 10 /bin/sh. 7380 echo '/* dummy */' > sub/conftst$i.h 7381 done 7382 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7383 7384 # We check with '-c' and '-o' for the sake of the "dashmstdout" 7385 # mode. It turns out that the SunPro C++ compiler does not properly 7386 # handle '-M -o', and we need to detect this. Also, some Intel 7387 # versions had trouble with output in subdirs. 7388 am__obj=sub/conftest.${BUILD_OBJEXT-o} 7389 am__minus_obj="-o $am__obj" 7390 case $depmode in 7391 gcc) 7392 # This depmode causes a compiler race in universal mode. 7393 test "$am__universal" = false || continue 7394 ;; 7395 nosideeffect) 7396 # After this tag, mechanisms are not by side-effect, so they'll 7397 # only be used when explicitly requested. 7398 if test "x$enable_dependency_tracking" = xyes; then 7399 continue 7400 else 7401 break 7402 fi 7403 ;; 7404 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7405 # This compiler won't grok '-c -o', but also, the minuso test has 7406 # not run yet. These depmodes are late enough in the game, and 7407 # so weak that their functioning should not be impacted. 7408 am__obj=conftest.${BUILD_OBJEXT-o} 7409 am__minus_obj= 7410 ;; 7411 none) break ;; 7412 esac 7413 if depmode=$depmode \ 7414 source=sub/conftest.c object=$am__obj \ 7415 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7416 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7417 >/dev/null 2>conftest.err && 7418 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7419 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7420 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7421 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7422 # icc doesn't choke on unknown options, it will just issue warnings 7423 # or remarks (even with -Werror). So we grep stderr for any message 7424 # that says an option was ignored or not supported. 7425 # When given -MP, icc 7.0 and 7.1 complain thusly: 7426 # icc: Command line warning: ignoring option '-M'; no argument required 7427 # The diagnosis changed in icc 8.0: 7428 # icc: Command line remark: option '-MP' not supported 7429 if (grep 'ignoring option' conftest.err || 7430 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7431 am_cv_build_CC_dependencies_compiler_type=$depmode 7432 break 7433 fi 7434 fi 7435 done 7436 7437 cd .. 7438 rm -rf conftest.dir 7439else 7440 am_cv_build_CC_dependencies_compiler_type=none 7441fi 7442 7443fi 7444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5 7445printf "%s\n" "$am_cv_build_CC_dependencies_compiler_type" >&6; } 7446CCDEPMODE=depmode=$am_cv_build_CC_dependencies_compiler_type 7447 7448 if 7449 test "x$enable_dependency_tracking" != xno \ 7450 && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then 7451 am__fastdepCC_TRUE= 7452 am__fastdepCC_FALSE='#' 7453else 7454 am__fastdepCC_TRUE='#' 7455 am__fastdepCC_FALSE= 7456fi 7457 7458 7459 7460if test ${was_set_c_compiler_gnu} 7461then : 7462 ac_cv_c_compiler_gnu=$saved_c_compiler_gnu 7463fi 7464 7465cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7466/* end confdefs.h. */ 7467 7468int 7469main (void) 7470{ 7471 7472 ; 7473 return 0; 7474} 7475_ACEOF 7476ac_clean_files_save=$ac_clean_files 7477ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 7478# Try to create an executable without -o first, disregard a.out. 7479# It will help us diagnose broken compilers, and finding out an intuition 7480# of exeext. 7481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 7482printf %s "checking whether the C compiler works... " >&6; } 7483ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 7484 7485# The possible output files: 7486ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 7487 7488ac_rmfiles= 7489for ac_file in $ac_files 7490do 7491 case $ac_file in 7492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 7493 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 7494 esac 7495done 7496rm -f $ac_rmfiles 7497 7498if { { ac_try="$ac_link_default" 7499case "(($ac_try" in 7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7501 *) ac_try_echo=$ac_try;; 7502esac 7503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7504printf "%s\n" "$ac_try_echo"; } >&5 7505 (eval "$ac_link_default") 2>&5 7506 ac_status=$? 7507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7508 test $ac_status = 0; } 7509then : 7510 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 7511# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 7512# in a Makefile. We should not override ac_cv_exeext if it was cached, 7513# so that the user can short-circuit this test for compilers unknown to 7514# Autoconf. 7515for ac_file in $ac_files '' 7516do 7517 test -f "$ac_file" || continue 7518 case $ac_file in 7519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 7520 ;; 7521 [ab].out ) 7522 # We found the default executable, but exeext='' is most 7523 # certainly right. 7524 break;; 7525 *.* ) 7526 if test ${ac_cv_build_exeext+y} && test "$ac_cv_build_exeext" != no; 7527 then :; else 7528 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 7529 fi 7530 # We set ac_cv_exeext here because the later test for it is not 7531 # safe: cross compilers may not add the suffix if given an `-o' 7532 # argument, so we may need to know it at that point already. 7533 # Even if this section looks crufty: it has the advantage of 7534 # actually working. 7535 break;; 7536 * ) 7537 break;; 7538 esac 7539done 7540test "$ac_cv_build_exeext" = no && ac_cv_build_exeext= 7541 7542else $as_nop 7543 ac_file='' 7544fi 7545if test -z "$ac_file" 7546then : 7547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7548printf "%s\n" "no" >&6; } 7549printf "%s\n" "$as_me: failed program was:" >&5 7550sed 's/^/| /' conftest.$ac_ext >&5 7551 7552{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7553printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 7554as_fn_error 77 "C compiler cannot create executables 7555See \`config.log' for more details" "$LINENO" 5; } 7556else $as_nop 7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7558printf "%s\n" "yes" >&6; } 7559fi 7560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 7561printf %s "checking for C compiler default output file name... " >&6; } 7562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 7563printf "%s\n" "$ac_file" >&6; } 7564ac_build_exeext=$ac_cv_build_exeext 7565 7566rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out 7567ac_clean_files=$ac_clean_files_save 7568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 7569printf %s "checking for suffix of executables... " >&6; } 7570if { { ac_try="$ac_link" 7571case "(($ac_try" in 7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7573 *) ac_try_echo=$ac_try;; 7574esac 7575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7576printf "%s\n" "$ac_try_echo"; } >&5 7577 (eval "$ac_link") 2>&5 7578 ac_status=$? 7579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7580 test $ac_status = 0; } 7581then : 7582 # If both `conftest.exe' and `conftest' are `present' (well, observable) 7583# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 7584# work properly (i.e., refer to `conftest.exe'), while it won't with 7585# `rm'. 7586for ac_file in conftest.exe conftest conftest.*; do 7587 test -f "$ac_file" || continue 7588 case $ac_file in 7589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 7590 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 7591 break;; 7592 * ) break;; 7593 esac 7594done 7595else $as_nop 7596 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7597printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 7598as_fn_error $? "cannot compute suffix of executables: cannot compile and link 7599See \`config.log' for more details" "$LINENO" 5; } 7600fi 7601rm -f conftest conftest$ac_cv_build_exeext 7602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5 7603printf "%s\n" "$ac_cv_build_exeext" >&6; } 7604 7605rm -f conftest.$ac_ext 7606EXEEXT=$ac_cv_build_exeext 7607ac_build_exeext=$BUILD_EXEEXT 7608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7609/* end confdefs.h. */ 7610#include <stdio.h> 7611int 7612main (void) 7613{ 7614FILE *f = fopen ("conftest.out", "w"); 7615 return ferror (f) || fclose (f) != 0; 7616 7617 ; 7618 return 0; 7619} 7620_ACEOF 7621ac_clean_files="$ac_clean_files conftest.out" 7622# Check that the compiler produces executables we can run. If not, either 7623# the compiler is broken, or we cross compile. 7624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 7625printf %s "checking whether we are cross compiling... " >&6; } 7626if test "$cross_compiling_build" != yes; then 7627 { { ac_try="$ac_link" 7628case "(($ac_try" in 7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7630 *) ac_try_echo=$ac_try;; 7631esac 7632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7633printf "%s\n" "$ac_try_echo"; } >&5 7634 (eval "$ac_link") 2>&5 7635 ac_status=$? 7636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7637 test $ac_status = 0; } 7638 if { ac_try='./conftest$ac_cv_build_exeext' 7639 { { case "(($ac_try" in 7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7641 *) ac_try_echo=$ac_try;; 7642esac 7643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7644printf "%s\n" "$ac_try_echo"; } >&5 7645 (eval "$ac_try") 2>&5 7646 ac_status=$? 7647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7648 test $ac_status = 0; }; }; then 7649 cross_compiling_build=no 7650 else 7651 if test "$cross_compiling_build" = maybe; then 7652 cross_compiling_build=yes 7653 else 7654 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7655printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 7656as_fn_error 77 "cannot run C compiled programs. 7657If you meant to cross compile, use \`--build'. 7658See \`config.log' for more details" "$LINENO" 5; } 7659 fi 7660 fi 7661fi 7662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5 7663printf "%s\n" "$cross_compiling_build" >&6; } 7664 7665rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out 7666ac_clean_files=$ac_clean_files_save 7667 7668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 7669printf %s "checking for suffix of object files... " >&6; } 7670if test ${ac_cv_build_objext+y} 7671then : 7672 printf %s "(cached) " >&6 7673else $as_nop 7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7675/* end confdefs.h. */ 7676 7677int 7678main (void) 7679{ 7680 7681 ; 7682 return 0; 7683} 7684_ACEOF 7685rm -f conftest.o conftest.obj 7686if { { ac_try="$ac_compile" 7687case "(($ac_try" in 7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7689 *) ac_try_echo=$ac_try;; 7690esac 7691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7692printf "%s\n" "$ac_try_echo"; } >&5 7693 (eval "$ac_compile") 2>&5 7694 ac_status=$? 7695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7696 test $ac_status = 0; } 7697then : 7698 for ac_file in conftest.o conftest.obj conftest.*; do 7699 test -f "$ac_file" || continue; 7700 case $ac_file in 7701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 7702 *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'` 7703 break;; 7704 esac 7705done 7706else $as_nop 7707 printf "%s\n" "$as_me: failed program was:" >&5 7708sed 's/^/| /' conftest.$ac_ext >&5 7709 7710{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7711printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 7712as_fn_error $? "cannot compute suffix of object files: cannot compile 7713See \`config.log' for more details" "$LINENO" 5; } 7714fi 7715rm -f conftest.$ac_cv_build_objext conftest.$ac_ext 7716fi 7717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5 7718printf "%s\n" "$ac_cv_build_objext" >&6; } 7719OBJEXT=$ac_cv_build_objext 7720ac_build_objext=$BUILD_OBJEXT 7721 7722ac_ext=c 7723ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 7724ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 7725ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 7726ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 7727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7728printf %s "checking how to run the C preprocessor... " >&6; } 7729# On Suns, sometimes $CPP names a directory. 7730if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then 7731 CPP_FOR_BUILD= 7732fi 7733if test -z "$CPP_FOR_BUILD"; then 7734 if test ${ac_cv_build_prog_CPP+y} 7735then : 7736 printf %s "(cached) " >&6 7737else $as_nop 7738 # Double quotes because $CC needs to be expanded 7739 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" cpp /lib/cpp 7740 do 7741 ac_preproc_ok=false 7742for ac_c_preproc_warn_flag in '' yes 7743do 7744 # Use a header file that comes with gcc, so configuring glibc 7745 # with a fresh cross-compiler works. 7746 # On the NeXT, cc -E runs the code through the compiler's parser, 7747 # not just through cpp. "Syntax error" is here to catch this case. 7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7749/* end confdefs.h. */ 7750#include <limits.h> 7751 Syntax error 7752_ACEOF 7753if ac_fn_c_try_cpp "$LINENO" 7754then : 7755 7756else $as_nop 7757 # Broken: fails on valid input. 7758continue 7759fi 7760rm -f conftest.err conftest.i conftest.$ac_ext 7761 7762 # OK, works on sane cases. Now check whether nonexistent headers 7763 # can be detected and how. 7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7765/* end confdefs.h. */ 7766#include <ac_nonexistent.h> 7767_ACEOF 7768if ac_fn_c_try_cpp "$LINENO" 7769then : 7770 # Broken: success on invalid input. 7771continue 7772else $as_nop 7773 # Passes both tests. 7774ac_preproc_ok=: 7775break 7776fi 7777rm -f conftest.err conftest.i conftest.$ac_ext 7778 7779done 7780# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7781rm -f conftest.i conftest.err conftest.$ac_ext 7782if $ac_preproc_ok 7783then : 7784 break 7785fi 7786 7787 done 7788 ac_cv_build_prog_CPP=$CPP_FOR_BUILD 7789 7790fi 7791 CPP_FOR_BUILD=$ac_cv_build_prog_CPP 7792else 7793 ac_cv_build_prog_CPP=$CPP_FOR_BUILD 7794fi 7795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5 7796printf "%s\n" "$CPP_FOR_BUILD" >&6; } 7797ac_preproc_ok=false 7798for ac_c_preproc_warn_flag in '' yes 7799do 7800 # Use a header file that comes with gcc, so configuring glibc 7801 # with a fresh cross-compiler works. 7802 # On the NeXT, cc -E runs the code through the compiler's parser, 7803 # not just through cpp. "Syntax error" is here to catch this case. 7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7805/* end confdefs.h. */ 7806#include <limits.h> 7807 Syntax error 7808_ACEOF 7809if ac_fn_c_try_cpp "$LINENO" 7810then : 7811 7812else $as_nop 7813 # Broken: fails on valid input. 7814continue 7815fi 7816rm -f conftest.err conftest.i conftest.$ac_ext 7817 7818 # OK, works on sane cases. Now check whether nonexistent headers 7819 # can be detected and how. 7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7821/* end confdefs.h. */ 7822#include <ac_nonexistent.h> 7823_ACEOF 7824if ac_fn_c_try_cpp "$LINENO" 7825then : 7826 # Broken: success on invalid input. 7827continue 7828else $as_nop 7829 # Passes both tests. 7830ac_preproc_ok=: 7831break 7832fi 7833rm -f conftest.err conftest.i conftest.$ac_ext 7834 7835done 7836# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7837rm -f conftest.i conftest.err conftest.$ac_ext 7838if $ac_preproc_ok 7839then : 7840 7841else $as_nop 7842 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7843printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 7844as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check 7845See \`config.log' for more details" "$LINENO" 5; } 7846fi 7847 7848ac_ext=c 7849ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 7850ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 7851ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 7852ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 7853 7854 7855 7856ac_ext=c 7857ac_cpp='$CPP $CPPFLAGS' 7858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7860ac_compiler_gnu=$ac_cv_c_compiler_gnu 7861 7862 7863 7864 7865# 7866# Find the machine's endian flavor. 7867# 7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 7869printf %s "checking whether byte ordering is bigendian... " >&6; } 7870if test ${ac_cv_c_bigendian+y} 7871then : 7872 printf %s "(cached) " >&6 7873else $as_nop 7874 ac_cv_c_bigendian=unknown 7875 # See if we're dealing with a universal compiler. 7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7877/* end confdefs.h. */ 7878#ifndef __APPLE_CC__ 7879 not a universal capable compiler 7880 #endif 7881 typedef int dummy; 7882 7883_ACEOF 7884if ac_fn_c_try_compile "$LINENO" 7885then : 7886 7887 # Check for potential -arch flags. It is not universal unless 7888 # there are at least two -arch flags with different values. 7889 ac_arch= 7890 ac_prev= 7891 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 7892 if test -n "$ac_prev"; then 7893 case $ac_word in 7894 i?86 | x86_64 | ppc | ppc64) 7895 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 7896 ac_arch=$ac_word 7897 else 7898 ac_cv_c_bigendian=universal 7899 break 7900 fi 7901 ;; 7902 esac 7903 ac_prev= 7904 elif test "x$ac_word" = "x-arch"; then 7905 ac_prev=arch 7906 fi 7907 done 7908fi 7909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7910 if test $ac_cv_c_bigendian = unknown; then 7911 # See if sys/param.h defines the BYTE_ORDER macro. 7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7913/* end confdefs.h. */ 7914#include <sys/types.h> 7915 #include <sys/param.h> 7916 7917int 7918main (void) 7919{ 7920#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 7921 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 7922 && LITTLE_ENDIAN) 7923 bogus endian macros 7924 #endif 7925 7926 ; 7927 return 0; 7928} 7929_ACEOF 7930if ac_fn_c_try_compile "$LINENO" 7931then : 7932 # It does; now see whether it defined to BIG_ENDIAN or not. 7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7934/* end confdefs.h. */ 7935#include <sys/types.h> 7936 #include <sys/param.h> 7937 7938int 7939main (void) 7940{ 7941#if BYTE_ORDER != BIG_ENDIAN 7942 not big endian 7943 #endif 7944 7945 ; 7946 return 0; 7947} 7948_ACEOF 7949if ac_fn_c_try_compile "$LINENO" 7950then : 7951 ac_cv_c_bigendian=yes 7952else $as_nop 7953 ac_cv_c_bigendian=no 7954fi 7955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7956fi 7957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7958 fi 7959 if test $ac_cv_c_bigendian = unknown; then 7960 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7962/* end confdefs.h. */ 7963#include <limits.h> 7964 7965int 7966main (void) 7967{ 7968#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 7969 bogus endian macros 7970 #endif 7971 7972 ; 7973 return 0; 7974} 7975_ACEOF 7976if ac_fn_c_try_compile "$LINENO" 7977then : 7978 # It does; now see whether it defined to _BIG_ENDIAN or not. 7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7980/* end confdefs.h. */ 7981#include <limits.h> 7982 7983int 7984main (void) 7985{ 7986#ifndef _BIG_ENDIAN 7987 not big endian 7988 #endif 7989 7990 ; 7991 return 0; 7992} 7993_ACEOF 7994if ac_fn_c_try_compile "$LINENO" 7995then : 7996 ac_cv_c_bigendian=yes 7997else $as_nop 7998 ac_cv_c_bigendian=no 7999fi 8000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8001fi 8002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8003 fi 8004 if test $ac_cv_c_bigendian = unknown; then 8005 # Compile a test program. 8006 if test "$cross_compiling" = yes 8007then : 8008 # Try to guess by grepping values from an object file. 8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8010/* end confdefs.h. */ 8011unsigned short int ascii_mm[] = 8012 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 8013 unsigned short int ascii_ii[] = 8014 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 8015 int use_ascii (int i) { 8016 return ascii_mm[i] + ascii_ii[i]; 8017 } 8018 unsigned short int ebcdic_ii[] = 8019 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 8020 unsigned short int ebcdic_mm[] = 8021 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 8022 int use_ebcdic (int i) { 8023 return ebcdic_mm[i] + ebcdic_ii[i]; 8024 } 8025 extern int foo; 8026 8027int 8028main (void) 8029{ 8030return use_ascii (foo) == use_ebcdic (foo); 8031 ; 8032 return 0; 8033} 8034_ACEOF 8035if ac_fn_c_try_compile "$LINENO" 8036then : 8037 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 8038 ac_cv_c_bigendian=yes 8039 fi 8040 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 8041 if test "$ac_cv_c_bigendian" = unknown; then 8042 ac_cv_c_bigendian=no 8043 else 8044 # finding both strings is unlikely to happen, but who knows? 8045 ac_cv_c_bigendian=unknown 8046 fi 8047 fi 8048fi 8049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8050else $as_nop 8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8052/* end confdefs.h. */ 8053$ac_includes_default 8054int 8055main (void) 8056{ 8057 8058 /* Are we little or big endian? From Harbison&Steele. */ 8059 union 8060 { 8061 long int l; 8062 char c[sizeof (long int)]; 8063 } u; 8064 u.l = 1; 8065 return u.c[sizeof (long int) - 1] == 1; 8066 8067 ; 8068 return 0; 8069} 8070_ACEOF 8071if ac_fn_c_try_run "$LINENO" 8072then : 8073 ac_cv_c_bigendian=no 8074else $as_nop 8075 ac_cv_c_bigendian=yes 8076fi 8077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8078 conftest.$ac_objext conftest.beam conftest.$ac_ext 8079fi 8080 8081 fi 8082fi 8083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 8084printf "%s\n" "$ac_cv_c_bigendian" >&6; } 8085 case $ac_cv_c_bigendian in #( 8086 yes) 8087 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 8088;; #( 8089 no) 8090 ;; #( 8091 universal) 8092 8093printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 8094 8095 ;; #( 8096 *) 8097 as_fn_error $? "unknown endianness 8098 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 8099 esac 8100 8101 8102# 8103# Enable large file support 8104# 8105# Check whether --enable-largefile was given. 8106if test ${enable_largefile+y} 8107then : 8108 enableval=$enable_largefile; 8109fi 8110 8111if test "$enable_largefile" != no; then 8112 8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 8114printf %s "checking for special C compiler options needed for large files... " >&6; } 8115if test ${ac_cv_sys_largefile_CC+y} 8116then : 8117 printf %s "(cached) " >&6 8118else $as_nop 8119 ac_cv_sys_largefile_CC=no 8120 if test "$GCC" != yes; then 8121 ac_save_CC=$CC 8122 while :; do 8123 # IRIX 6.2 and later do not support large files by default, 8124 # so use the C compiler's -n32 option if that helps. 8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8126/* end confdefs.h. */ 8127#include <sys/types.h> 8128 /* Check that off_t can represent 2**63 - 1 correctly. 8129 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8130 since some C++ compilers masquerading as C compilers 8131 incorrectly reject 9223372036854775807. */ 8132#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8134 && LARGE_OFF_T % 2147483647 == 1) 8135 ? 1 : -1]; 8136int 8137main (void) 8138{ 8139 8140 ; 8141 return 0; 8142} 8143_ACEOF 8144 if ac_fn_c_try_compile "$LINENO" 8145then : 8146 break 8147fi 8148rm -f core conftest.err conftest.$ac_objext conftest.beam 8149 CC="$CC -n32" 8150 if ac_fn_c_try_compile "$LINENO" 8151then : 8152 ac_cv_sys_largefile_CC=' -n32'; break 8153fi 8154rm -f core conftest.err conftest.$ac_objext conftest.beam 8155 break 8156 done 8157 CC=$ac_save_CC 8158 rm -f conftest.$ac_ext 8159 fi 8160fi 8161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 8162printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 8163 if test "$ac_cv_sys_largefile_CC" != no; then 8164 CC=$CC$ac_cv_sys_largefile_CC 8165 fi 8166 8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 8168printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 8169if test ${ac_cv_sys_file_offset_bits+y} 8170then : 8171 printf %s "(cached) " >&6 8172else $as_nop 8173 while :; do 8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8175/* end confdefs.h. */ 8176#include <sys/types.h> 8177 /* Check that off_t can represent 2**63 - 1 correctly. 8178 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8179 since some C++ compilers masquerading as C compilers 8180 incorrectly reject 9223372036854775807. */ 8181#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8183 && LARGE_OFF_T % 2147483647 == 1) 8184 ? 1 : -1]; 8185int 8186main (void) 8187{ 8188 8189 ; 8190 return 0; 8191} 8192_ACEOF 8193if ac_fn_c_try_compile "$LINENO" 8194then : 8195 ac_cv_sys_file_offset_bits=no; break 8196fi 8197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8199/* end confdefs.h. */ 8200#define _FILE_OFFSET_BITS 64 8201#include <sys/types.h> 8202 /* Check that off_t can represent 2**63 - 1 correctly. 8203 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8204 since some C++ compilers masquerading as C compilers 8205 incorrectly reject 9223372036854775807. */ 8206#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8207 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8208 && LARGE_OFF_T % 2147483647 == 1) 8209 ? 1 : -1]; 8210int 8211main (void) 8212{ 8213 8214 ; 8215 return 0; 8216} 8217_ACEOF 8218if ac_fn_c_try_compile "$LINENO" 8219then : 8220 ac_cv_sys_file_offset_bits=64; break 8221fi 8222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8223 ac_cv_sys_file_offset_bits=unknown 8224 break 8225done 8226fi 8227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 8228printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 8229case $ac_cv_sys_file_offset_bits in #( 8230 no | unknown) ;; 8231 *) 8232printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 8233;; 8234esac 8235rm -rf conftest* 8236 if test $ac_cv_sys_file_offset_bits = unknown; then 8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 8238printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 8239if test ${ac_cv_sys_large_files+y} 8240then : 8241 printf %s "(cached) " >&6 8242else $as_nop 8243 while :; do 8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245/* end confdefs.h. */ 8246#include <sys/types.h> 8247 /* Check that off_t can represent 2**63 - 1 correctly. 8248 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8249 since some C++ compilers masquerading as C compilers 8250 incorrectly reject 9223372036854775807. */ 8251#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8252 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8253 && LARGE_OFF_T % 2147483647 == 1) 8254 ? 1 : -1]; 8255int 8256main (void) 8257{ 8258 8259 ; 8260 return 0; 8261} 8262_ACEOF 8263if ac_fn_c_try_compile "$LINENO" 8264then : 8265 ac_cv_sys_large_files=no; break 8266fi 8267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8269/* end confdefs.h. */ 8270#define _LARGE_FILES 1 8271#include <sys/types.h> 8272 /* Check that off_t can represent 2**63 - 1 correctly. 8273 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8274 since some C++ compilers masquerading as C compilers 8275 incorrectly reject 9223372036854775807. */ 8276#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8277 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8278 && LARGE_OFF_T % 2147483647 == 1) 8279 ? 1 : -1]; 8280int 8281main (void) 8282{ 8283 8284 ; 8285 return 0; 8286} 8287_ACEOF 8288if ac_fn_c_try_compile "$LINENO" 8289then : 8290 ac_cv_sys_large_files=1; break 8291fi 8292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8293 ac_cv_sys_large_files=unknown 8294 break 8295done 8296fi 8297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 8298printf "%s\n" "$ac_cv_sys_large_files" >&6; } 8299case $ac_cv_sys_large_files in #( 8300 no | unknown) ;; 8301 *) 8302printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 8303;; 8304esac 8305rm -rf conftest* 8306 fi 8307fi 8308 8309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 8310printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 8311if test ${ac_cv_sys_largefile_source+y} 8312then : 8313 printf %s "(cached) " >&6 8314else $as_nop 8315 while :; do 8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8317/* end confdefs.h. */ 8318#include <sys/types.h> /* for off_t */ 8319 #include <stdio.h> 8320int 8321main (void) 8322{ 8323int (*fp) (FILE *, off_t, int) = fseeko; 8324 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 8325 ; 8326 return 0; 8327} 8328_ACEOF 8329if ac_fn_c_try_link "$LINENO" 8330then : 8331 ac_cv_sys_largefile_source=no; break 8332fi 8333rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8334 conftest$ac_exeext conftest.$ac_ext 8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8336/* end confdefs.h. */ 8337#define _LARGEFILE_SOURCE 1 8338#include <sys/types.h> /* for off_t */ 8339 #include <stdio.h> 8340int 8341main (void) 8342{ 8343int (*fp) (FILE *, off_t, int) = fseeko; 8344 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 8345 ; 8346 return 0; 8347} 8348_ACEOF 8349if ac_fn_c_try_link "$LINENO" 8350then : 8351 ac_cv_sys_largefile_source=1; break 8352fi 8353rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8354 conftest$ac_exeext conftest.$ac_ext 8355 ac_cv_sys_largefile_source=unknown 8356 break 8357done 8358fi 8359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 8360printf "%s\n" "$ac_cv_sys_largefile_source" >&6; } 8361case $ac_cv_sys_largefile_source in #( 8362 no | unknown) ;; 8363 *) 8364printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h 8365;; 8366esac 8367rm -rf conftest* 8368 8369# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 8370# in glibc 2.1.3, but that breaks too many other things. 8371# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 8372if test $ac_cv_sys_largefile_source != unknown; then 8373 8374printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 8375 8376fi 8377 8378 8379# Enable RFC 3542 APIs on macOS 8380 8381printf "%s\n" "#define __APPLE_USE_RFC_3542 1" >>confdefs.h 8382 8383 8384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 8385printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 8386set x ${MAKE-make} 8387ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 8388if eval test \${ac_cv_prog_make_${ac_make}_set+y} 8389then : 8390 printf %s "(cached) " >&6 8391else $as_nop 8392 cat >conftest.make <<\_ACEOF 8393SHELL = /bin/sh 8394all: 8395 @echo '@@@%%%=$(MAKE)=@@@%%%' 8396_ACEOF 8397# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8398case `${MAKE-make} -f conftest.make 2>/dev/null` in 8399 *@@@%%%=?*=@@@%%%*) 8400 eval ac_cv_prog_make_${ac_make}_set=yes;; 8401 *) 8402 eval ac_cv_prog_make_${ac_make}_set=no;; 8403esac 8404rm -f conftest.make 8405fi 8406if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8408printf "%s\n" "yes" >&6; } 8409 SET_MAKE= 8410else 8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8412printf "%s\n" "no" >&6; } 8413 SET_MAKE="MAKE=${MAKE-make}" 8414fi 8415 8416 8417# Checks for programs. 8418 8419 if test -n "$ac_tool_prefix"; then 8420 for ac_prog in ar lib "link -lib" 8421 do 8422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8423set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8425printf %s "checking for $ac_word... " >&6; } 8426if test ${ac_cv_prog_AR+y} 8427then : 8428 printf %s "(cached) " >&6 8429else $as_nop 8430 if test -n "$AR"; then 8431 ac_cv_prog_AR="$AR" # Let the user override the test. 8432else 8433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8434for as_dir in $PATH 8435do 8436 IFS=$as_save_IFS 8437 case $as_dir in #((( 8438 '') as_dir=./ ;; 8439 */) ;; 8440 *) as_dir=$as_dir/ ;; 8441 esac 8442 for ac_exec_ext in '' $ac_executable_extensions; do 8443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8444 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8446 break 2 8447 fi 8448done 8449 done 8450IFS=$as_save_IFS 8451 8452fi 8453fi 8454AR=$ac_cv_prog_AR 8455if test -n "$AR"; then 8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8457printf "%s\n" "$AR" >&6; } 8458else 8459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8460printf "%s\n" "no" >&6; } 8461fi 8462 8463 8464 test -n "$AR" && break 8465 done 8466fi 8467if test -z "$AR"; then 8468 ac_ct_AR=$AR 8469 for ac_prog in ar lib "link -lib" 8470do 8471 # Extract the first word of "$ac_prog", so it can be a program name with args. 8472set dummy $ac_prog; ac_word=$2 8473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8474printf %s "checking for $ac_word... " >&6; } 8475if test ${ac_cv_prog_ac_ct_AR+y} 8476then : 8477 printf %s "(cached) " >&6 8478else $as_nop 8479 if test -n "$ac_ct_AR"; then 8480 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8481else 8482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8483for as_dir in $PATH 8484do 8485 IFS=$as_save_IFS 8486 case $as_dir in #((( 8487 '') as_dir=./ ;; 8488 */) ;; 8489 *) as_dir=$as_dir/ ;; 8490 esac 8491 for ac_exec_ext in '' $ac_executable_extensions; do 8492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8493 ac_cv_prog_ac_ct_AR="$ac_prog" 8494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8495 break 2 8496 fi 8497done 8498 done 8499IFS=$as_save_IFS 8500 8501fi 8502fi 8503ac_ct_AR=$ac_cv_prog_ac_ct_AR 8504if test -n "$ac_ct_AR"; then 8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8506printf "%s\n" "$ac_ct_AR" >&6; } 8507else 8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8509printf "%s\n" "no" >&6; } 8510fi 8511 8512 8513 test -n "$ac_ct_AR" && break 8514done 8515 8516 if test "x$ac_ct_AR" = x; then 8517 AR="false" 8518 else 8519 case $cross_compiling:$ac_tool_warned in 8520yes:) 8521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8522printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8523ac_tool_warned=yes ;; 8524esac 8525 AR=$ac_ct_AR 8526 fi 8527fi 8528 8529: ${AR=ar} 8530 8531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 8532printf %s "checking the archiver ($AR) interface... " >&6; } 8533if test ${am_cv_ar_interface+y} 8534then : 8535 printf %s "(cached) " >&6 8536else $as_nop 8537 ac_ext=c 8538ac_cpp='$CPP $CPPFLAGS' 8539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8541ac_compiler_gnu=$ac_cv_c_compiler_gnu 8542 8543 am_cv_ar_interface=ar 8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8545/* end confdefs.h. */ 8546int some_variable = 0; 8547_ACEOF 8548if ac_fn_c_try_compile "$LINENO" 8549then : 8550 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 8551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 8552 (eval $am_ar_try) 2>&5 8553 ac_status=$? 8554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8555 test $ac_status = 0; } 8556 if test "$ac_status" -eq 0; then 8557 am_cv_ar_interface=ar 8558 else 8559 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 8560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 8561 (eval $am_ar_try) 2>&5 8562 ac_status=$? 8563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8564 test $ac_status = 0; } 8565 if test "$ac_status" -eq 0; then 8566 am_cv_ar_interface=lib 8567 else 8568 am_cv_ar_interface=unknown 8569 fi 8570 fi 8571 rm -f conftest.lib libconftest.a 8572 8573fi 8574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8575 ac_ext=c 8576ac_cpp='$CPP $CPPFLAGS' 8577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8579ac_compiler_gnu=$ac_cv_c_compiler_gnu 8580 8581fi 8582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 8583printf "%s\n" "$am_cv_ar_interface" >&6; } 8584 8585case $am_cv_ar_interface in 8586ar) 8587 ;; 8588lib) 8589 # Microsoft lib, so override with the ar-lib wrapper script. 8590 # FIXME: It is wrong to rewrite AR. 8591 # But if we don't then we get into trouble of one sort or another. 8592 # A longer-term fix would be to have automake use am__AR in this case, 8593 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 8594 # similar. 8595 AR="$am_aux_dir/ar-lib $AR" 8596 ;; 8597unknown) 8598 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 8599 ;; 8600esac 8601 # call AM_PROG_AR only if available 8602 8603 8604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8605printf %s "checking whether ln -s works... " >&6; } 8606LN_S=$as_ln_s 8607if test "$LN_S" = "ln -s"; then 8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8609printf "%s\n" "yes" >&6; } 8610else 8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8612printf "%s\n" "no, using $LN_S" >&6; } 8613fi 8614 8615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5 8616printf %s "checking for a POSIX-compatible shell... " >&6; } 8617if test ${ac_cv_prog_shell+y} 8618then : 8619 printf %s "(cached) " >&6 8620else $as_nop 8621 ac_test_shell_script=' 8622 test "$(expr 1 + 1)" = "2" && 8623 test "$(( 1 + 1 ))" = "2" 8624 ' 8625 8626 for ac_cv_prog_shell in \ 8627 "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do 8628 case $ac_cv_prog_shell in #( 8629 /*) : 8630 8631 if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null 8632then : 8633 break 8634fi 8635 ;; #( 8636 *) : 8637 ;; 8638esac 8639 done 8640 8641fi 8642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5 8643printf "%s\n" "$ac_cv_prog_shell" >&6; } 8644 if test "$ac_cv_prog_shell" = "no" 8645then : 8646 SHELL=/bin/sh 8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5 8648printf "%s\n" "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;} 8649 8650else $as_nop 8651 SHELL="$ac_cv_prog_shell" 8652 8653fi 8654 8655 8656 8657 8658# Initialize libtool 8659case `pwd` in 8660 *\ * | *\ *) 8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 8662printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 8663esac 8664 8665 8666 8667macro_version='2.4.7' 8668macro_revision='2.4.7' 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683ltmain=$ac_aux_dir/ltmain.sh 8684 8685# Backslashify metacharacters that are still active within 8686# double-quoted strings. 8687sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8688 8689# Same as above, but do not quote variable references. 8690double_quote_subst='s/\(["`\\]\)/\\\1/g' 8691 8692# Sed substitution to delay expansion of an escaped shell variable in a 8693# double_quote_subst'ed string. 8694delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8695 8696# Sed substitution to delay expansion of an escaped single quote. 8697delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8698 8699# Sed substitution to avoid accidental globbing in evaled expressions 8700no_glob_subst='s/\*/\\\*/g' 8701 8702ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8703ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8704ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8705 8706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8707printf %s "checking how to print strings... " >&6; } 8708# Test print first, because it will be a builtin if present. 8709if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8710 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8711 ECHO='print -r --' 8712elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8713 ECHO='printf %s\n' 8714else 8715 # Use this function as a fallback that always works. 8716 func_fallback_echo () 8717 { 8718 eval 'cat <<_LTECHO_EOF 8719$1 8720_LTECHO_EOF' 8721 } 8722 ECHO='func_fallback_echo' 8723fi 8724 8725# func_echo_all arg... 8726# Invoke $ECHO with all args, space-separated. 8727func_echo_all () 8728{ 8729 $ECHO "" 8730} 8731 8732case $ECHO in 8733 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8734printf "%s\n" "printf" >&6; } ;; 8735 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8736printf "%s\n" "print -r" >&6; } ;; 8737 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8738printf "%s\n" "cat" >&6; } ;; 8739esac 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8755printf %s "checking for a sed that does not truncate output... " >&6; } 8756if test ${ac_cv_path_SED+y} 8757then : 8758 printf %s "(cached) " >&6 8759else $as_nop 8760 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8761 for ac_i in 1 2 3 4 5 6 7; do 8762 ac_script="$ac_script$as_nl$ac_script" 8763 done 8764 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8765 { ac_script=; unset ac_script;} 8766 if test -z "$SED"; then 8767 ac_path_SED_found=false 8768 # Loop through the user's path and test for each of PROGNAME-LIST 8769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8770for as_dir in $PATH 8771do 8772 IFS=$as_save_IFS 8773 case $as_dir in #((( 8774 '') as_dir=./ ;; 8775 */) ;; 8776 *) as_dir=$as_dir/ ;; 8777 esac 8778 for ac_prog in sed gsed 8779 do 8780 for ac_exec_ext in '' $ac_executable_extensions; do 8781 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 8782 as_fn_executable_p "$ac_path_SED" || continue 8783# Check for GNU ac_path_SED and select it if it is found. 8784 # Check for GNU $ac_path_SED 8785case `"$ac_path_SED" --version 2>&1` in 8786*GNU*) 8787 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8788*) 8789 ac_count=0 8790 printf %s 0123456789 >"conftest.in" 8791 while : 8792 do 8793 cat "conftest.in" "conftest.in" >"conftest.tmp" 8794 mv "conftest.tmp" "conftest.in" 8795 cp "conftest.in" "conftest.nl" 8796 printf "%s\n" '' >> "conftest.nl" 8797 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8799 as_fn_arith $ac_count + 1 && ac_count=$as_val 8800 if test $ac_count -gt ${ac_path_SED_max-0}; then 8801 # Best one so far, save it but keep looking for a better one 8802 ac_cv_path_SED="$ac_path_SED" 8803 ac_path_SED_max=$ac_count 8804 fi 8805 # 10*(2^10) chars as input seems more than enough 8806 test $ac_count -gt 10 && break 8807 done 8808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8809esac 8810 8811 $ac_path_SED_found && break 3 8812 done 8813 done 8814 done 8815IFS=$as_save_IFS 8816 if test -z "$ac_cv_path_SED"; then 8817 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8818 fi 8819else 8820 ac_cv_path_SED=$SED 8821fi 8822 8823fi 8824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8825printf "%s\n" "$ac_cv_path_SED" >&6; } 8826 SED="$ac_cv_path_SED" 8827 rm -f conftest.sed 8828 8829test -z "$SED" && SED=sed 8830Xsed="$SED -e 1s/^X//" 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 8843printf %s "checking for grep that handles long lines and -e... " >&6; } 8844if test ${ac_cv_path_GREP+y} 8845then : 8846 printf %s "(cached) " >&6 8847else $as_nop 8848 if test -z "$GREP"; then 8849 ac_path_GREP_found=false 8850 # Loop through the user's path and test for each of PROGNAME-LIST 8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8852for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8853do 8854 IFS=$as_save_IFS 8855 case $as_dir in #((( 8856 '') as_dir=./ ;; 8857 */) ;; 8858 *) as_dir=$as_dir/ ;; 8859 esac 8860 for ac_prog in grep ggrep 8861 do 8862 for ac_exec_ext in '' $ac_executable_extensions; do 8863 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 8864 as_fn_executable_p "$ac_path_GREP" || continue 8865# Check for GNU ac_path_GREP and select it if it is found. 8866 # Check for GNU $ac_path_GREP 8867case `"$ac_path_GREP" --version 2>&1` in 8868*GNU*) 8869 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 8870*) 8871 ac_count=0 8872 printf %s 0123456789 >"conftest.in" 8873 while : 8874 do 8875 cat "conftest.in" "conftest.in" >"conftest.tmp" 8876 mv "conftest.tmp" "conftest.in" 8877 cp "conftest.in" "conftest.nl" 8878 printf "%s\n" 'GREP' >> "conftest.nl" 8879 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 8880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8881 as_fn_arith $ac_count + 1 && ac_count=$as_val 8882 if test $ac_count -gt ${ac_path_GREP_max-0}; then 8883 # Best one so far, save it but keep looking for a better one 8884 ac_cv_path_GREP="$ac_path_GREP" 8885 ac_path_GREP_max=$ac_count 8886 fi 8887 # 10*(2^10) chars as input seems more than enough 8888 test $ac_count -gt 10 && break 8889 done 8890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8891esac 8892 8893 $ac_path_GREP_found && break 3 8894 done 8895 done 8896 done 8897IFS=$as_save_IFS 8898 if test -z "$ac_cv_path_GREP"; then 8899 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8900 fi 8901else 8902 ac_cv_path_GREP=$GREP 8903fi 8904 8905fi 8906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 8907printf "%s\n" "$ac_cv_path_GREP" >&6; } 8908 GREP="$ac_cv_path_GREP" 8909 8910 8911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 8912printf %s "checking for egrep... " >&6; } 8913if test ${ac_cv_path_EGREP+y} 8914then : 8915 printf %s "(cached) " >&6 8916else $as_nop 8917 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 8918 then ac_cv_path_EGREP="$GREP -E" 8919 else 8920 if test -z "$EGREP"; then 8921 ac_path_EGREP_found=false 8922 # Loop through the user's path and test for each of PROGNAME-LIST 8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8925do 8926 IFS=$as_save_IFS 8927 case $as_dir in #((( 8928 '') as_dir=./ ;; 8929 */) ;; 8930 *) as_dir=$as_dir/ ;; 8931 esac 8932 for ac_prog in egrep 8933 do 8934 for ac_exec_ext in '' $ac_executable_extensions; do 8935 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 8936 as_fn_executable_p "$ac_path_EGREP" || continue 8937# Check for GNU ac_path_EGREP and select it if it is found. 8938 # Check for GNU $ac_path_EGREP 8939case `"$ac_path_EGREP" --version 2>&1` in 8940*GNU*) 8941 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 8942*) 8943 ac_count=0 8944 printf %s 0123456789 >"conftest.in" 8945 while : 8946 do 8947 cat "conftest.in" "conftest.in" >"conftest.tmp" 8948 mv "conftest.tmp" "conftest.in" 8949 cp "conftest.in" "conftest.nl" 8950 printf "%s\n" 'EGREP' >> "conftest.nl" 8951 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 8952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8953 as_fn_arith $ac_count + 1 && ac_count=$as_val 8954 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 8955 # Best one so far, save it but keep looking for a better one 8956 ac_cv_path_EGREP="$ac_path_EGREP" 8957 ac_path_EGREP_max=$ac_count 8958 fi 8959 # 10*(2^10) chars as input seems more than enough 8960 test $ac_count -gt 10 && break 8961 done 8962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8963esac 8964 8965 $ac_path_EGREP_found && break 3 8966 done 8967 done 8968 done 8969IFS=$as_save_IFS 8970 if test -z "$ac_cv_path_EGREP"; then 8971 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8972 fi 8973else 8974 ac_cv_path_EGREP=$EGREP 8975fi 8976 8977 fi 8978fi 8979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 8980printf "%s\n" "$ac_cv_path_EGREP" >&6; } 8981 EGREP="$ac_cv_path_EGREP" 8982 8983 8984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8985printf %s "checking for fgrep... " >&6; } 8986if test ${ac_cv_path_FGREP+y} 8987then : 8988 printf %s "(cached) " >&6 8989else $as_nop 8990 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8991 then ac_cv_path_FGREP="$GREP -F" 8992 else 8993 if test -z "$FGREP"; then 8994 ac_path_FGREP_found=false 8995 # Loop through the user's path and test for each of PROGNAME-LIST 8996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8997for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8998do 8999 IFS=$as_save_IFS 9000 case $as_dir in #((( 9001 '') as_dir=./ ;; 9002 */) ;; 9003 *) as_dir=$as_dir/ ;; 9004 esac 9005 for ac_prog in fgrep 9006 do 9007 for ac_exec_ext in '' $ac_executable_extensions; do 9008 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 9009 as_fn_executable_p "$ac_path_FGREP" || continue 9010# Check for GNU ac_path_FGREP and select it if it is found. 9011 # Check for GNU $ac_path_FGREP 9012case `"$ac_path_FGREP" --version 2>&1` in 9013*GNU*) 9014 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 9015*) 9016 ac_count=0 9017 printf %s 0123456789 >"conftest.in" 9018 while : 9019 do 9020 cat "conftest.in" "conftest.in" >"conftest.tmp" 9021 mv "conftest.tmp" "conftest.in" 9022 cp "conftest.in" "conftest.nl" 9023 printf "%s\n" 'FGREP' >> "conftest.nl" 9024 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 9025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9026 as_fn_arith $ac_count + 1 && ac_count=$as_val 9027 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 9028 # Best one so far, save it but keep looking for a better one 9029 ac_cv_path_FGREP="$ac_path_FGREP" 9030 ac_path_FGREP_max=$ac_count 9031 fi 9032 # 10*(2^10) chars as input seems more than enough 9033 test $ac_count -gt 10 && break 9034 done 9035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9036esac 9037 9038 $ac_path_FGREP_found && break 3 9039 done 9040 done 9041 done 9042IFS=$as_save_IFS 9043 if test -z "$ac_cv_path_FGREP"; then 9044 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9045 fi 9046else 9047 ac_cv_path_FGREP=$FGREP 9048fi 9049 9050 fi 9051fi 9052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 9053printf "%s\n" "$ac_cv_path_FGREP" >&6; } 9054 FGREP="$ac_cv_path_FGREP" 9055 9056 9057test -z "$GREP" && GREP=grep 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077# Check whether --with-gnu-ld was given. 9078if test ${with_gnu_ld+y} 9079then : 9080 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 9081else $as_nop 9082 with_gnu_ld=no 9083fi 9084 9085ac_prog=ld 9086if test yes = "$GCC"; then 9087 # Check if gcc -print-prog-name=ld gives a path. 9088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 9089printf %s "checking for ld used by $CC... " >&6; } 9090 case $host in 9091 *-*-mingw*) 9092 # gcc leaves a trailing carriage return, which upsets mingw 9093 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9094 *) 9095 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9096 esac 9097 case $ac_prog in 9098 # Accept absolute paths. 9099 [\\/]* | ?:[\\/]*) 9100 re_direlt='/[^/][^/]*/\.\./' 9101 # Canonicalize the pathname of ld 9102 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 9103 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 9104 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 9105 done 9106 test -z "$LD" && LD=$ac_prog 9107 ;; 9108 "") 9109 # If it fails, then pretend we aren't using GCC. 9110 ac_prog=ld 9111 ;; 9112 *) 9113 # If it is relative, then search for the first ld in PATH. 9114 with_gnu_ld=unknown 9115 ;; 9116 esac 9117elif test yes = "$with_gnu_ld"; then 9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 9119printf %s "checking for GNU ld... " >&6; } 9120else 9121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 9122printf %s "checking for non-GNU ld... " >&6; } 9123fi 9124if test ${lt_cv_path_LD+y} 9125then : 9126 printf %s "(cached) " >&6 9127else $as_nop 9128 if test -z "$LD"; then 9129 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9130 for ac_dir in $PATH; do 9131 IFS=$lt_save_ifs 9132 test -z "$ac_dir" && ac_dir=. 9133 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9134 lt_cv_path_LD=$ac_dir/$ac_prog 9135 # Check to see if the program is GNU ld. I'd rather use --version, 9136 # but apparently some variants of GNU ld only accept -v. 9137 # Break only if it was the GNU/non-GNU ld that we prefer. 9138 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9139 *GNU* | *'with BFD'*) 9140 test no != "$with_gnu_ld" && break 9141 ;; 9142 *) 9143 test yes != "$with_gnu_ld" && break 9144 ;; 9145 esac 9146 fi 9147 done 9148 IFS=$lt_save_ifs 9149else 9150 lt_cv_path_LD=$LD # Let the user override the test with a path. 9151fi 9152fi 9153 9154LD=$lt_cv_path_LD 9155if test -n "$LD"; then 9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 9157printf "%s\n" "$LD" >&6; } 9158else 9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9160printf "%s\n" "no" >&6; } 9161fi 9162test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 9163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 9164printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 9165if test ${lt_cv_prog_gnu_ld+y} 9166then : 9167 printf %s "(cached) " >&6 9168else $as_nop 9169 # I'd rather use --version here, but apparently some GNU lds only accept -v. 9170case `$LD -v 2>&1 </dev/null` in 9171*GNU* | *'with BFD'*) 9172 lt_cv_prog_gnu_ld=yes 9173 ;; 9174*) 9175 lt_cv_prog_gnu_ld=no 9176 ;; 9177esac 9178fi 9179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 9180printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 9181with_gnu_ld=$lt_cv_prog_gnu_ld 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 9192printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 9193if test ${lt_cv_path_NM+y} 9194then : 9195 printf %s "(cached) " >&6 9196else $as_nop 9197 if test -n "$NM"; then 9198 # Let the user override the test. 9199 lt_cv_path_NM=$NM 9200else 9201 lt_nm_to_check=${ac_tool_prefix}nm 9202 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 9203 lt_nm_to_check="$lt_nm_to_check nm" 9204 fi 9205 for lt_tmp_nm in $lt_nm_to_check; do 9206 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9207 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 9208 IFS=$lt_save_ifs 9209 test -z "$ac_dir" && ac_dir=. 9210 tmp_nm=$ac_dir/$lt_tmp_nm 9211 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 9212 # Check to see if the nm accepts a BSD-compat flag. 9213 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 9214 # nm: unknown option "B" ignored 9215 # Tru64's nm complains that /dev/null is an invalid object file 9216 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 9217 case $build_os in 9218 mingw*) lt_bad_file=conftest.nm/nofile ;; 9219 *) lt_bad_file=/dev/null ;; 9220 esac 9221 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 9222 *$lt_bad_file* | *'Invalid file or object type'*) 9223 lt_cv_path_NM="$tmp_nm -B" 9224 break 2 9225 ;; 9226 *) 9227 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 9228 */dev/null*) 9229 lt_cv_path_NM="$tmp_nm -p" 9230 break 2 9231 ;; 9232 *) 9233 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 9234 continue # so that we can try to find one that supports BSD flags 9235 ;; 9236 esac 9237 ;; 9238 esac 9239 fi 9240 done 9241 IFS=$lt_save_ifs 9242 done 9243 : ${lt_cv_path_NM=no} 9244fi 9245fi 9246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 9247printf "%s\n" "$lt_cv_path_NM" >&6; } 9248if test no != "$lt_cv_path_NM"; then 9249 NM=$lt_cv_path_NM 9250else 9251 # Didn't find any BSD compatible name lister, look for dumpbin. 9252 if test -n "$DUMPBIN"; then : 9253 # Let the user override the test. 9254 else 9255 if test -n "$ac_tool_prefix"; then 9256 for ac_prog in dumpbin "link -dump" 9257 do 9258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9259set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9261printf %s "checking for $ac_word... " >&6; } 9262if test ${ac_cv_prog_DUMPBIN+y} 9263then : 9264 printf %s "(cached) " >&6 9265else $as_nop 9266 if test -n "$DUMPBIN"; then 9267 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 9268else 9269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9270for as_dir in $PATH 9271do 9272 IFS=$as_save_IFS 9273 case $as_dir in #((( 9274 '') as_dir=./ ;; 9275 */) ;; 9276 *) as_dir=$as_dir/ ;; 9277 esac 9278 for ac_exec_ext in '' $ac_executable_extensions; do 9279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9280 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 9281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9282 break 2 9283 fi 9284done 9285 done 9286IFS=$as_save_IFS 9287 9288fi 9289fi 9290DUMPBIN=$ac_cv_prog_DUMPBIN 9291if test -n "$DUMPBIN"; then 9292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 9293printf "%s\n" "$DUMPBIN" >&6; } 9294else 9295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9296printf "%s\n" "no" >&6; } 9297fi 9298 9299 9300 test -n "$DUMPBIN" && break 9301 done 9302fi 9303if test -z "$DUMPBIN"; then 9304 ac_ct_DUMPBIN=$DUMPBIN 9305 for ac_prog in dumpbin "link -dump" 9306do 9307 # Extract the first word of "$ac_prog", so it can be a program name with args. 9308set dummy $ac_prog; ac_word=$2 9309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9310printf %s "checking for $ac_word... " >&6; } 9311if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 9312then : 9313 printf %s "(cached) " >&6 9314else $as_nop 9315 if test -n "$ac_ct_DUMPBIN"; then 9316 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 9317else 9318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9319for as_dir in $PATH 9320do 9321 IFS=$as_save_IFS 9322 case $as_dir in #((( 9323 '') as_dir=./ ;; 9324 */) ;; 9325 *) as_dir=$as_dir/ ;; 9326 esac 9327 for ac_exec_ext in '' $ac_executable_extensions; do 9328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9329 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 9330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9331 break 2 9332 fi 9333done 9334 done 9335IFS=$as_save_IFS 9336 9337fi 9338fi 9339ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 9340if test -n "$ac_ct_DUMPBIN"; then 9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 9342printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 9343else 9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9345printf "%s\n" "no" >&6; } 9346fi 9347 9348 9349 test -n "$ac_ct_DUMPBIN" && break 9350done 9351 9352 if test "x$ac_ct_DUMPBIN" = x; then 9353 DUMPBIN=":" 9354 else 9355 case $cross_compiling:$ac_tool_warned in 9356yes:) 9357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9358printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9359ac_tool_warned=yes ;; 9360esac 9361 DUMPBIN=$ac_ct_DUMPBIN 9362 fi 9363fi 9364 9365 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 9366 *COFF*) 9367 DUMPBIN="$DUMPBIN -symbols -headers" 9368 ;; 9369 *) 9370 DUMPBIN=: 9371 ;; 9372 esac 9373 fi 9374 9375 if test : != "$DUMPBIN"; then 9376 NM=$DUMPBIN 9377 fi 9378fi 9379test -z "$NM" && NM=nm 9380 9381 9382 9383 9384 9385 9386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 9387printf %s "checking the name lister ($NM) interface... " >&6; } 9388if test ${lt_cv_nm_interface+y} 9389then : 9390 printf %s "(cached) " >&6 9391else $as_nop 9392 lt_cv_nm_interface="BSD nm" 9393 echo "int some_variable = 0;" > conftest.$ac_ext 9394 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 9395 (eval "$ac_compile" 2>conftest.err) 9396 cat conftest.err >&5 9397 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 9398 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 9399 cat conftest.err >&5 9400 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 9401 cat conftest.out >&5 9402 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 9403 lt_cv_nm_interface="MS dumpbin" 9404 fi 9405 rm -f conftest* 9406fi 9407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 9408printf "%s\n" "$lt_cv_nm_interface" >&6; } 9409 9410# find the maximum length of command line arguments 9411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 9412printf %s "checking the maximum length of command line arguments... " >&6; } 9413if test ${lt_cv_sys_max_cmd_len+y} 9414then : 9415 printf %s "(cached) " >&6 9416else $as_nop 9417 i=0 9418 teststring=ABCD 9419 9420 case $build_os in 9421 msdosdjgpp*) 9422 # On DJGPP, this test can blow up pretty badly due to problems in libc 9423 # (any single argument exceeding 2000 bytes causes a buffer overrun 9424 # during glob expansion). Even if it were fixed, the result of this 9425 # check would be larger than it should be. 9426 lt_cv_sys_max_cmd_len=12288; # 12K is about right 9427 ;; 9428 9429 gnu*) 9430 # Under GNU Hurd, this test is not required because there is 9431 # no limit to the length of command line arguments. 9432 # Libtool will interpret -1 as no limit whatsoever 9433 lt_cv_sys_max_cmd_len=-1; 9434 ;; 9435 9436 cygwin* | mingw* | cegcc*) 9437 # On Win9x/ME, this test blows up -- it succeeds, but takes 9438 # about 5 minutes as the teststring grows exponentially. 9439 # Worse, since 9x/ME are not pre-emptively multitasking, 9440 # you end up with a "frozen" computer, even though with patience 9441 # the test eventually succeeds (with a max line length of 256k). 9442 # Instead, let's just punt: use the minimum linelength reported by 9443 # all of the supported platforms: 8192 (on NT/2K/XP). 9444 lt_cv_sys_max_cmd_len=8192; 9445 ;; 9446 9447 mint*) 9448 # On MiNT this can take a long time and run out of memory. 9449 lt_cv_sys_max_cmd_len=8192; 9450 ;; 9451 9452 amigaos*) 9453 # On AmigaOS with pdksh, this test takes hours, literally. 9454 # So we just punt and use a minimum line length of 8192. 9455 lt_cv_sys_max_cmd_len=8192; 9456 ;; 9457 9458 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 9459 # This has been around since 386BSD, at least. Likely further. 9460 if test -x /sbin/sysctl; then 9461 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 9462 elif test -x /usr/sbin/sysctl; then 9463 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 9464 else 9465 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 9466 fi 9467 # And add a safety zone 9468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9470 ;; 9471 9472 interix*) 9473 # We know the value 262144 and hardcode it with a safety zone (like BSD) 9474 lt_cv_sys_max_cmd_len=196608 9475 ;; 9476 9477 os2*) 9478 # The test takes a long time on OS/2. 9479 lt_cv_sys_max_cmd_len=8192 9480 ;; 9481 9482 osf*) 9483 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 9484 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 9485 # nice to cause kernel panics so lets avoid the loop below. 9486 # First set a reasonable default. 9487 lt_cv_sys_max_cmd_len=16384 9488 # 9489 if test -x /sbin/sysconfig; then 9490 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 9491 *1*) lt_cv_sys_max_cmd_len=-1 ;; 9492 esac 9493 fi 9494 ;; 9495 sco3.2v5*) 9496 lt_cv_sys_max_cmd_len=102400 9497 ;; 9498 sysv5* | sco5v6* | sysv4.2uw2*) 9499 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 9500 if test -n "$kargmax"; then 9501 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 9502 else 9503 lt_cv_sys_max_cmd_len=32768 9504 fi 9505 ;; 9506 *) 9507 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 9508 if test -n "$lt_cv_sys_max_cmd_len" && \ 9509 test undefined != "$lt_cv_sys_max_cmd_len"; then 9510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9512 else 9513 # Make teststring a little bigger before we do anything with it. 9514 # a 1K string should be a reasonable start. 9515 for i in 1 2 3 4 5 6 7 8; do 9516 teststring=$teststring$teststring 9517 done 9518 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 9519 # If test is not a shell built-in, we'll probably end up computing a 9520 # maximum length that is only half of the actual maximum length, but 9521 # we can't tell. 9522 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 9523 = "X$teststring$teststring"; } >/dev/null 2>&1 && 9524 test 17 != "$i" # 1/2 MB should be enough 9525 do 9526 i=`expr $i + 1` 9527 teststring=$teststring$teststring 9528 done 9529 # Only check the string length outside the loop. 9530 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 9531 teststring= 9532 # Add a significant safety factor because C++ compilers can tack on 9533 # massive amounts of additional arguments before passing them to the 9534 # linker. It appears as though 1/2 is a usable value. 9535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 9536 fi 9537 ;; 9538 esac 9539 9540fi 9541 9542if test -n "$lt_cv_sys_max_cmd_len"; then 9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 9544printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 9545else 9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 9547printf "%s\n" "none" >&6; } 9548fi 9549max_cmd_len=$lt_cv_sys_max_cmd_len 9550 9551 9552 9553 9554 9555 9556: ${CP="cp -f"} 9557: ${MV="mv -f"} 9558: ${RM="rm -f"} 9559 9560if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9561 lt_unset=unset 9562else 9563 lt_unset=false 9564fi 9565 9566 9567 9568 9569 9570# test EBCDIC or ASCII 9571case `echo X|tr X '\101'` in 9572 A) # ASCII based system 9573 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9574 lt_SP2NL='tr \040 \012' 9575 lt_NL2SP='tr \015\012 \040\040' 9576 ;; 9577 *) # EBCDIC based system 9578 lt_SP2NL='tr \100 \n' 9579 lt_NL2SP='tr \r\n \100\100' 9580 ;; 9581esac 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 9592printf %s "checking how to convert $build file names to $host format... " >&6; } 9593if test ${lt_cv_to_host_file_cmd+y} 9594then : 9595 printf %s "(cached) " >&6 9596else $as_nop 9597 case $host in 9598 *-*-mingw* ) 9599 case $build in 9600 *-*-mingw* ) # actually msys 9601 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 9602 ;; 9603 *-*-cygwin* ) 9604 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 9605 ;; 9606 * ) # otherwise, assume *nix 9607 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 9608 ;; 9609 esac 9610 ;; 9611 *-*-cygwin* ) 9612 case $build in 9613 *-*-mingw* ) # actually msys 9614 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 9615 ;; 9616 *-*-cygwin* ) 9617 lt_cv_to_host_file_cmd=func_convert_file_noop 9618 ;; 9619 * ) # otherwise, assume *nix 9620 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 9621 ;; 9622 esac 9623 ;; 9624 * ) # unhandled hosts (and "normal" native builds) 9625 lt_cv_to_host_file_cmd=func_convert_file_noop 9626 ;; 9627esac 9628 9629fi 9630 9631to_host_file_cmd=$lt_cv_to_host_file_cmd 9632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 9633printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 9634 9635 9636 9637 9638 9639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 9640printf %s "checking how to convert $build file names to toolchain format... " >&6; } 9641if test ${lt_cv_to_tool_file_cmd+y} 9642then : 9643 printf %s "(cached) " >&6 9644else $as_nop 9645 #assume ordinary cross tools, or native build. 9646lt_cv_to_tool_file_cmd=func_convert_file_noop 9647case $host in 9648 *-*-mingw* ) 9649 case $build in 9650 *-*-mingw* ) # actually msys 9651 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9652 ;; 9653 esac 9654 ;; 9655esac 9656 9657fi 9658 9659to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 9661printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 9662 9663 9664 9665 9666 9667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 9668printf %s "checking for $LD option to reload object files... " >&6; } 9669if test ${lt_cv_ld_reload_flag+y} 9670then : 9671 printf %s "(cached) " >&6 9672else $as_nop 9673 lt_cv_ld_reload_flag='-r' 9674fi 9675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 9676printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 9677reload_flag=$lt_cv_ld_reload_flag 9678case $reload_flag in 9679"" | " "*) ;; 9680*) reload_flag=" $reload_flag" ;; 9681esac 9682reload_cmds='$LD$reload_flag -o $output$reload_objs' 9683case $host_os in 9684 cygwin* | mingw* | pw32* | cegcc*) 9685 if test yes != "$GCC"; then 9686 reload_cmds=false 9687 fi 9688 ;; 9689 darwin*) 9690 if test yes = "$GCC"; then 9691 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 9692 else 9693 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9694 fi 9695 ;; 9696esac 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706if test -n "$ac_tool_prefix"; then 9707 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 9708set dummy ${ac_tool_prefix}file; ac_word=$2 9709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9710printf %s "checking for $ac_word... " >&6; } 9711if test ${ac_cv_prog_FILECMD+y} 9712then : 9713 printf %s "(cached) " >&6 9714else $as_nop 9715 if test -n "$FILECMD"; then 9716 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 9717else 9718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9719for as_dir in $PATH 9720do 9721 IFS=$as_save_IFS 9722 case $as_dir in #((( 9723 '') as_dir=./ ;; 9724 */) ;; 9725 *) as_dir=$as_dir/ ;; 9726 esac 9727 for ac_exec_ext in '' $ac_executable_extensions; do 9728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9729 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 9730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9731 break 2 9732 fi 9733done 9734 done 9735IFS=$as_save_IFS 9736 9737fi 9738fi 9739FILECMD=$ac_cv_prog_FILECMD 9740if test -n "$FILECMD"; then 9741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 9742printf "%s\n" "$FILECMD" >&6; } 9743else 9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9745printf "%s\n" "no" >&6; } 9746fi 9747 9748 9749fi 9750if test -z "$ac_cv_prog_FILECMD"; then 9751 ac_ct_FILECMD=$FILECMD 9752 # Extract the first word of "file", so it can be a program name with args. 9753set dummy file; ac_word=$2 9754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9755printf %s "checking for $ac_word... " >&6; } 9756if test ${ac_cv_prog_ac_ct_FILECMD+y} 9757then : 9758 printf %s "(cached) " >&6 9759else $as_nop 9760 if test -n "$ac_ct_FILECMD"; then 9761 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 9762else 9763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9764for as_dir in $PATH 9765do 9766 IFS=$as_save_IFS 9767 case $as_dir in #((( 9768 '') as_dir=./ ;; 9769 */) ;; 9770 *) as_dir=$as_dir/ ;; 9771 esac 9772 for ac_exec_ext in '' $ac_executable_extensions; do 9773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9774 ac_cv_prog_ac_ct_FILECMD="file" 9775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9776 break 2 9777 fi 9778done 9779 done 9780IFS=$as_save_IFS 9781 9782fi 9783fi 9784ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 9785if test -n "$ac_ct_FILECMD"; then 9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 9787printf "%s\n" "$ac_ct_FILECMD" >&6; } 9788else 9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9790printf "%s\n" "no" >&6; } 9791fi 9792 9793 if test "x$ac_ct_FILECMD" = x; then 9794 FILECMD=":" 9795 else 9796 case $cross_compiling:$ac_tool_warned in 9797yes:) 9798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9799printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9800ac_tool_warned=yes ;; 9801esac 9802 FILECMD=$ac_ct_FILECMD 9803 fi 9804else 9805 FILECMD="$ac_cv_prog_FILECMD" 9806fi 9807 9808 9809 9810 9811 9812 9813 9814if test -n "$ac_tool_prefix"; then 9815 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9816set dummy ${ac_tool_prefix}objdump; ac_word=$2 9817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9818printf %s "checking for $ac_word... " >&6; } 9819if test ${ac_cv_prog_OBJDUMP+y} 9820then : 9821 printf %s "(cached) " >&6 9822else $as_nop 9823 if test -n "$OBJDUMP"; then 9824 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9825else 9826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9827for as_dir in $PATH 9828do 9829 IFS=$as_save_IFS 9830 case $as_dir in #((( 9831 '') as_dir=./ ;; 9832 */) ;; 9833 *) as_dir=$as_dir/ ;; 9834 esac 9835 for ac_exec_ext in '' $ac_executable_extensions; do 9836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9837 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9839 break 2 9840 fi 9841done 9842 done 9843IFS=$as_save_IFS 9844 9845fi 9846fi 9847OBJDUMP=$ac_cv_prog_OBJDUMP 9848if test -n "$OBJDUMP"; then 9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9850printf "%s\n" "$OBJDUMP" >&6; } 9851else 9852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9853printf "%s\n" "no" >&6; } 9854fi 9855 9856 9857fi 9858if test -z "$ac_cv_prog_OBJDUMP"; then 9859 ac_ct_OBJDUMP=$OBJDUMP 9860 # Extract the first word of "objdump", so it can be a program name with args. 9861set dummy objdump; ac_word=$2 9862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9863printf %s "checking for $ac_word... " >&6; } 9864if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 9865then : 9866 printf %s "(cached) " >&6 9867else $as_nop 9868 if test -n "$ac_ct_OBJDUMP"; then 9869 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9870else 9871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9872for as_dir in $PATH 9873do 9874 IFS=$as_save_IFS 9875 case $as_dir in #((( 9876 '') as_dir=./ ;; 9877 */) ;; 9878 *) as_dir=$as_dir/ ;; 9879 esac 9880 for ac_exec_ext in '' $ac_executable_extensions; do 9881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9882 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9884 break 2 9885 fi 9886done 9887 done 9888IFS=$as_save_IFS 9889 9890fi 9891fi 9892ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9893if test -n "$ac_ct_OBJDUMP"; then 9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9895printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 9896else 9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9898printf "%s\n" "no" >&6; } 9899fi 9900 9901 if test "x$ac_ct_OBJDUMP" = x; then 9902 OBJDUMP="false" 9903 else 9904 case $cross_compiling:$ac_tool_warned in 9905yes:) 9906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9907printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9908ac_tool_warned=yes ;; 9909esac 9910 OBJDUMP=$ac_ct_OBJDUMP 9911 fi 9912else 9913 OBJDUMP="$ac_cv_prog_OBJDUMP" 9914fi 9915 9916test -z "$OBJDUMP" && OBJDUMP=objdump 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 9927printf %s "checking how to recognize dependent libraries... " >&6; } 9928if test ${lt_cv_deplibs_check_method+y} 9929then : 9930 printf %s "(cached) " >&6 9931else $as_nop 9932 lt_cv_file_magic_cmd='$MAGIC_CMD' 9933lt_cv_file_magic_test_file= 9934lt_cv_deplibs_check_method='unknown' 9935# Need to set the preceding variable on all platforms that support 9936# interlibrary dependencies. 9937# 'none' -- dependencies not supported. 9938# 'unknown' -- same as none, but documents that we really don't know. 9939# 'pass_all' -- all dependencies passed with no checks. 9940# 'test_compile' -- check by making test program. 9941# 'file_magic [[regex]]' -- check by looking for files in library path 9942# that responds to the $file_magic_cmd with a given extended regex. 9943# If you have 'file' or equivalent on your system and you're not sure 9944# whether 'pass_all' will *always* work, you probably want this one. 9945 9946case $host_os in 9947aix[4-9]*) 9948 lt_cv_deplibs_check_method=pass_all 9949 ;; 9950 9951beos*) 9952 lt_cv_deplibs_check_method=pass_all 9953 ;; 9954 9955bsdi[45]*) 9956 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 9957 lt_cv_file_magic_cmd='$FILECMD -L' 9958 lt_cv_file_magic_test_file=/shlib/libc.so 9959 ;; 9960 9961cygwin*) 9962 # func_win32_libid is a shell function defined in ltmain.sh 9963 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9964 lt_cv_file_magic_cmd='func_win32_libid' 9965 ;; 9966 9967mingw* | pw32*) 9968 # Base MSYS/MinGW do not provide the 'file' command needed by 9969 # func_win32_libid shell function, so use a weaker test based on 'objdump', 9970 # unless we find 'file', for example because we are cross-compiling. 9971 if ( file / ) >/dev/null 2>&1; then 9972 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9973 lt_cv_file_magic_cmd='func_win32_libid' 9974 else 9975 # Keep this pattern in sync with the one in func_win32_libid. 9976 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 9977 lt_cv_file_magic_cmd='$OBJDUMP -f' 9978 fi 9979 ;; 9980 9981cegcc*) 9982 # use the weaker test based on 'objdump'. See mingw*. 9983 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 9984 lt_cv_file_magic_cmd='$OBJDUMP -f' 9985 ;; 9986 9987darwin* | rhapsody*) 9988 lt_cv_deplibs_check_method=pass_all 9989 ;; 9990 9991freebsd* | dragonfly* | midnightbsd*) 9992 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9993 case $host_cpu in 9994 i*86 ) 9995 # Not sure whether the presence of OpenBSD here was a mistake. 9996 # Let's accept both of them until this is cleared up. 9997 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 9998 lt_cv_file_magic_cmd=$FILECMD 9999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 10000 ;; 10001 esac 10002 else 10003 lt_cv_deplibs_check_method=pass_all 10004 fi 10005 ;; 10006 10007haiku*) 10008 lt_cv_deplibs_check_method=pass_all 10009 ;; 10010 10011hpux10.20* | hpux11*) 10012 lt_cv_file_magic_cmd=$FILECMD 10013 case $host_cpu in 10014 ia64*) 10015 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 10016 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 10017 ;; 10018 hppa*64*) 10019 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]' 10020 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 10021 ;; 10022 *) 10023 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 10024 lt_cv_file_magic_test_file=/usr/lib/libc.sl 10025 ;; 10026 esac 10027 ;; 10028 10029interix[3-9]*) 10030 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 10031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 10032 ;; 10033 10034irix5* | irix6* | nonstopux*) 10035 case $LD in 10036 *-32|*"-32 ") libmagic=32-bit;; 10037 *-n32|*"-n32 ") libmagic=N32;; 10038 *-64|*"-64 ") libmagic=64-bit;; 10039 *) libmagic=never-match;; 10040 esac 10041 lt_cv_deplibs_check_method=pass_all 10042 ;; 10043 10044# This must be glibc/ELF. 10045linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10046 lt_cv_deplibs_check_method=pass_all 10047 ;; 10048 10049netbsd* | netbsdelf*-gnu) 10050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 10051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10052 else 10053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 10054 fi 10055 ;; 10056 10057newos6*) 10058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 10059 lt_cv_file_magic_cmd=$FILECMD 10060 lt_cv_file_magic_test_file=/usr/lib/libnls.so 10061 ;; 10062 10063*nto* | *qnx*) 10064 lt_cv_deplibs_check_method=pass_all 10065 ;; 10066 10067openbsd* | bitrig*) 10068 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 10070 else 10071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10072 fi 10073 ;; 10074 10075osf3* | osf4* | osf5*) 10076 lt_cv_deplibs_check_method=pass_all 10077 ;; 10078 10079rdos*) 10080 lt_cv_deplibs_check_method=pass_all 10081 ;; 10082 10083solaris*) 10084 lt_cv_deplibs_check_method=pass_all 10085 ;; 10086 10087sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10088 lt_cv_deplibs_check_method=pass_all 10089 ;; 10090 10091sysv4 | sysv4.3*) 10092 case $host_vendor in 10093 motorola) 10094 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]' 10095 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 10096 ;; 10097 ncr) 10098 lt_cv_deplibs_check_method=pass_all 10099 ;; 10100 sequent) 10101 lt_cv_file_magic_cmd='/bin/file' 10102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 10103 ;; 10104 sni) 10105 lt_cv_file_magic_cmd='/bin/file' 10106 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 10107 lt_cv_file_magic_test_file=/lib/libc.so 10108 ;; 10109 siemens) 10110 lt_cv_deplibs_check_method=pass_all 10111 ;; 10112 pc) 10113 lt_cv_deplibs_check_method=pass_all 10114 ;; 10115 esac 10116 ;; 10117 10118tpf*) 10119 lt_cv_deplibs_check_method=pass_all 10120 ;; 10121os2*) 10122 lt_cv_deplibs_check_method=pass_all 10123 ;; 10124esac 10125 10126fi 10127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 10128printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 10129 10130file_magic_glob= 10131want_nocaseglob=no 10132if test "$build" = "$host"; then 10133 case $host_os in 10134 mingw* | pw32*) 10135 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 10136 want_nocaseglob=yes 10137 else 10138 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 10139 fi 10140 ;; 10141 esac 10142fi 10143 10144file_magic_cmd=$lt_cv_file_magic_cmd 10145deplibs_check_method=$lt_cv_deplibs_check_method 10146test -z "$deplibs_check_method" && deplibs_check_method=unknown 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169if test -n "$ac_tool_prefix"; then 10170 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 10171set dummy ${ac_tool_prefix}dlltool; ac_word=$2 10172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10173printf %s "checking for $ac_word... " >&6; } 10174if test ${ac_cv_prog_DLLTOOL+y} 10175then : 10176 printf %s "(cached) " >&6 10177else $as_nop 10178 if test -n "$DLLTOOL"; then 10179 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 10180else 10181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10182for as_dir in $PATH 10183do 10184 IFS=$as_save_IFS 10185 case $as_dir in #((( 10186 '') as_dir=./ ;; 10187 */) ;; 10188 *) as_dir=$as_dir/ ;; 10189 esac 10190 for ac_exec_ext in '' $ac_executable_extensions; do 10191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10192 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 10193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10194 break 2 10195 fi 10196done 10197 done 10198IFS=$as_save_IFS 10199 10200fi 10201fi 10202DLLTOOL=$ac_cv_prog_DLLTOOL 10203if test -n "$DLLTOOL"; then 10204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 10205printf "%s\n" "$DLLTOOL" >&6; } 10206else 10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10208printf "%s\n" "no" >&6; } 10209fi 10210 10211 10212fi 10213if test -z "$ac_cv_prog_DLLTOOL"; then 10214 ac_ct_DLLTOOL=$DLLTOOL 10215 # Extract the first word of "dlltool", so it can be a program name with args. 10216set dummy dlltool; ac_word=$2 10217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10218printf %s "checking for $ac_word... " >&6; } 10219if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 10220then : 10221 printf %s "(cached) " >&6 10222else $as_nop 10223 if test -n "$ac_ct_DLLTOOL"; then 10224 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 10225else 10226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10227for as_dir in $PATH 10228do 10229 IFS=$as_save_IFS 10230 case $as_dir in #((( 10231 '') as_dir=./ ;; 10232 */) ;; 10233 *) as_dir=$as_dir/ ;; 10234 esac 10235 for ac_exec_ext in '' $ac_executable_extensions; do 10236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10237 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 10238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10239 break 2 10240 fi 10241done 10242 done 10243IFS=$as_save_IFS 10244 10245fi 10246fi 10247ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 10248if test -n "$ac_ct_DLLTOOL"; then 10249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 10250printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 10251else 10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10253printf "%s\n" "no" >&6; } 10254fi 10255 10256 if test "x$ac_ct_DLLTOOL" = x; then 10257 DLLTOOL="false" 10258 else 10259 case $cross_compiling:$ac_tool_warned in 10260yes:) 10261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10262printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10263ac_tool_warned=yes ;; 10264esac 10265 DLLTOOL=$ac_ct_DLLTOOL 10266 fi 10267else 10268 DLLTOOL="$ac_cv_prog_DLLTOOL" 10269fi 10270 10271test -z "$DLLTOOL" && DLLTOOL=dlltool 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 10283printf %s "checking how to associate runtime and link libraries... " >&6; } 10284if test ${lt_cv_sharedlib_from_linklib_cmd+y} 10285then : 10286 printf %s "(cached) " >&6 10287else $as_nop 10288 lt_cv_sharedlib_from_linklib_cmd='unknown' 10289 10290case $host_os in 10291cygwin* | mingw* | pw32* | cegcc*) 10292 # two different shell functions defined in ltmain.sh; 10293 # decide which one to use based on capabilities of $DLLTOOL 10294 case `$DLLTOOL --help 2>&1` in 10295 *--identify-strict*) 10296 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 10297 ;; 10298 *) 10299 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 10300 ;; 10301 esac 10302 ;; 10303*) 10304 # fallback: assume linklib IS sharedlib 10305 lt_cv_sharedlib_from_linklib_cmd=$ECHO 10306 ;; 10307esac 10308 10309fi 10310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 10311printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 10312sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 10313test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 10314 10315 10316 10317 10318 10319 10320 10321if test -n "$ac_tool_prefix"; then 10322 for ac_prog in ar 10323 do 10324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10325set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10327printf %s "checking for $ac_word... " >&6; } 10328if test ${ac_cv_prog_AR+y} 10329then : 10330 printf %s "(cached) " >&6 10331else $as_nop 10332 if test -n "$AR"; then 10333 ac_cv_prog_AR="$AR" # Let the user override the test. 10334else 10335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10336for as_dir in $PATH 10337do 10338 IFS=$as_save_IFS 10339 case $as_dir in #((( 10340 '') as_dir=./ ;; 10341 */) ;; 10342 *) as_dir=$as_dir/ ;; 10343 esac 10344 for ac_exec_ext in '' $ac_executable_extensions; do 10345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10346 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 10347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10348 break 2 10349 fi 10350done 10351 done 10352IFS=$as_save_IFS 10353 10354fi 10355fi 10356AR=$ac_cv_prog_AR 10357if test -n "$AR"; then 10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 10359printf "%s\n" "$AR" >&6; } 10360else 10361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10362printf "%s\n" "no" >&6; } 10363fi 10364 10365 10366 test -n "$AR" && break 10367 done 10368fi 10369if test -z "$AR"; then 10370 ac_ct_AR=$AR 10371 for ac_prog in ar 10372do 10373 # Extract the first word of "$ac_prog", so it can be a program name with args. 10374set dummy $ac_prog; ac_word=$2 10375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10376printf %s "checking for $ac_word... " >&6; } 10377if test ${ac_cv_prog_ac_ct_AR+y} 10378then : 10379 printf %s "(cached) " >&6 10380else $as_nop 10381 if test -n "$ac_ct_AR"; then 10382 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 10383else 10384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10385for as_dir in $PATH 10386do 10387 IFS=$as_save_IFS 10388 case $as_dir in #((( 10389 '') as_dir=./ ;; 10390 */) ;; 10391 *) as_dir=$as_dir/ ;; 10392 esac 10393 for ac_exec_ext in '' $ac_executable_extensions; do 10394 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10395 ac_cv_prog_ac_ct_AR="$ac_prog" 10396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10397 break 2 10398 fi 10399done 10400 done 10401IFS=$as_save_IFS 10402 10403fi 10404fi 10405ac_ct_AR=$ac_cv_prog_ac_ct_AR 10406if test -n "$ac_ct_AR"; then 10407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 10408printf "%s\n" "$ac_ct_AR" >&6; } 10409else 10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10411printf "%s\n" "no" >&6; } 10412fi 10413 10414 10415 test -n "$ac_ct_AR" && break 10416done 10417 10418 if test "x$ac_ct_AR" = x; then 10419 AR="false" 10420 else 10421 case $cross_compiling:$ac_tool_warned in 10422yes:) 10423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10424printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10425ac_tool_warned=yes ;; 10426esac 10427 AR=$ac_ct_AR 10428 fi 10429fi 10430 10431: ${AR=ar} 10432 10433 10434 10435 10436 10437 10438# Use ARFLAGS variable as AR's operation code to sync the variable naming with 10439# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 10440# higher priority because thats what people were doing historically (setting 10441# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 10442# variable obsoleted/removed. 10443 10444test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 10445lt_ar_flags=$AR_FLAGS 10446 10447 10448 10449 10450 10451 10452# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 10453# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 10454 10455 10456 10457 10458 10459 10460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 10461printf %s "checking for archiver @FILE support... " >&6; } 10462if test ${lt_cv_ar_at_file+y} 10463then : 10464 printf %s "(cached) " >&6 10465else $as_nop 10466 lt_cv_ar_at_file=no 10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10468/* end confdefs.h. */ 10469 10470int 10471main (void) 10472{ 10473 10474 ; 10475 return 0; 10476} 10477_ACEOF 10478if ac_fn_c_try_compile "$LINENO" 10479then : 10480 echo conftest.$ac_objext > conftest.lst 10481 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 10482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10483 (eval $lt_ar_try) 2>&5 10484 ac_status=$? 10485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10486 test $ac_status = 0; } 10487 if test 0 -eq "$ac_status"; then 10488 # Ensure the archiver fails upon bogus file names. 10489 rm -f conftest.$ac_objext libconftest.a 10490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10491 (eval $lt_ar_try) 2>&5 10492 ac_status=$? 10493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10494 test $ac_status = 0; } 10495 if test 0 -ne "$ac_status"; then 10496 lt_cv_ar_at_file=@ 10497 fi 10498 fi 10499 rm -f conftest.* libconftest.a 10500 10501fi 10502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10503 10504fi 10505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 10506printf "%s\n" "$lt_cv_ar_at_file" >&6; } 10507 10508if test no = "$lt_cv_ar_at_file"; then 10509 archiver_list_spec= 10510else 10511 archiver_list_spec=$lt_cv_ar_at_file 10512fi 10513 10514 10515 10516 10517 10518 10519 10520if test -n "$ac_tool_prefix"; then 10521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10522set dummy ${ac_tool_prefix}strip; ac_word=$2 10523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10524printf %s "checking for $ac_word... " >&6; } 10525if test ${ac_cv_prog_STRIP+y} 10526then : 10527 printf %s "(cached) " >&6 10528else $as_nop 10529 if test -n "$STRIP"; then 10530 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10531else 10532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10533for as_dir in $PATH 10534do 10535 IFS=$as_save_IFS 10536 case $as_dir in #((( 10537 '') as_dir=./ ;; 10538 */) ;; 10539 *) as_dir=$as_dir/ ;; 10540 esac 10541 for ac_exec_ext in '' $ac_executable_extensions; do 10542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10543 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10545 break 2 10546 fi 10547done 10548 done 10549IFS=$as_save_IFS 10550 10551fi 10552fi 10553STRIP=$ac_cv_prog_STRIP 10554if test -n "$STRIP"; then 10555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10556printf "%s\n" "$STRIP" >&6; } 10557else 10558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10559printf "%s\n" "no" >&6; } 10560fi 10561 10562 10563fi 10564if test -z "$ac_cv_prog_STRIP"; then 10565 ac_ct_STRIP=$STRIP 10566 # Extract the first word of "strip", so it can be a program name with args. 10567set dummy strip; ac_word=$2 10568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10569printf %s "checking for $ac_word... " >&6; } 10570if test ${ac_cv_prog_ac_ct_STRIP+y} 10571then : 10572 printf %s "(cached) " >&6 10573else $as_nop 10574 if test -n "$ac_ct_STRIP"; then 10575 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10576else 10577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10578for as_dir in $PATH 10579do 10580 IFS=$as_save_IFS 10581 case $as_dir in #((( 10582 '') as_dir=./ ;; 10583 */) ;; 10584 *) as_dir=$as_dir/ ;; 10585 esac 10586 for ac_exec_ext in '' $ac_executable_extensions; do 10587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10588 ac_cv_prog_ac_ct_STRIP="strip" 10589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10590 break 2 10591 fi 10592done 10593 done 10594IFS=$as_save_IFS 10595 10596fi 10597fi 10598ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10599if test -n "$ac_ct_STRIP"; then 10600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10601printf "%s\n" "$ac_ct_STRIP" >&6; } 10602else 10603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10604printf "%s\n" "no" >&6; } 10605fi 10606 10607 if test "x$ac_ct_STRIP" = x; then 10608 STRIP=":" 10609 else 10610 case $cross_compiling:$ac_tool_warned in 10611yes:) 10612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10613printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10614ac_tool_warned=yes ;; 10615esac 10616 STRIP=$ac_ct_STRIP 10617 fi 10618else 10619 STRIP="$ac_cv_prog_STRIP" 10620fi 10621 10622test -z "$STRIP" && STRIP=: 10623 10624 10625 10626 10627 10628 10629if test -n "$ac_tool_prefix"; then 10630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10631set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10633printf %s "checking for $ac_word... " >&6; } 10634if test ${ac_cv_prog_RANLIB+y} 10635then : 10636 printf %s "(cached) " >&6 10637else $as_nop 10638 if test -n "$RANLIB"; then 10639 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10640else 10641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10642for as_dir in $PATH 10643do 10644 IFS=$as_save_IFS 10645 case $as_dir in #((( 10646 '') as_dir=./ ;; 10647 */) ;; 10648 *) as_dir=$as_dir/ ;; 10649 esac 10650 for ac_exec_ext in '' $ac_executable_extensions; do 10651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10652 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10654 break 2 10655 fi 10656done 10657 done 10658IFS=$as_save_IFS 10659 10660fi 10661fi 10662RANLIB=$ac_cv_prog_RANLIB 10663if test -n "$RANLIB"; then 10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10665printf "%s\n" "$RANLIB" >&6; } 10666else 10667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10668printf "%s\n" "no" >&6; } 10669fi 10670 10671 10672fi 10673if test -z "$ac_cv_prog_RANLIB"; then 10674 ac_ct_RANLIB=$RANLIB 10675 # Extract the first word of "ranlib", so it can be a program name with args. 10676set dummy ranlib; ac_word=$2 10677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10678printf %s "checking for $ac_word... " >&6; } 10679if test ${ac_cv_prog_ac_ct_RANLIB+y} 10680then : 10681 printf %s "(cached) " >&6 10682else $as_nop 10683 if test -n "$ac_ct_RANLIB"; then 10684 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10685else 10686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10687for as_dir in $PATH 10688do 10689 IFS=$as_save_IFS 10690 case $as_dir in #((( 10691 '') as_dir=./ ;; 10692 */) ;; 10693 *) as_dir=$as_dir/ ;; 10694 esac 10695 for ac_exec_ext in '' $ac_executable_extensions; do 10696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10697 ac_cv_prog_ac_ct_RANLIB="ranlib" 10698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10699 break 2 10700 fi 10701done 10702 done 10703IFS=$as_save_IFS 10704 10705fi 10706fi 10707ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10708if test -n "$ac_ct_RANLIB"; then 10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10710printf "%s\n" "$ac_ct_RANLIB" >&6; } 10711else 10712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10713printf "%s\n" "no" >&6; } 10714fi 10715 10716 if test "x$ac_ct_RANLIB" = x; then 10717 RANLIB=":" 10718 else 10719 case $cross_compiling:$ac_tool_warned in 10720yes:) 10721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10722printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10723ac_tool_warned=yes ;; 10724esac 10725 RANLIB=$ac_ct_RANLIB 10726 fi 10727else 10728 RANLIB="$ac_cv_prog_RANLIB" 10729fi 10730 10731test -z "$RANLIB" && RANLIB=: 10732 10733 10734 10735 10736 10737 10738# Determine commands to create old-style static archives. 10739old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 10740old_postinstall_cmds='chmod 644 $oldlib' 10741old_postuninstall_cmds= 10742 10743if test -n "$RANLIB"; then 10744 case $host_os in 10745 bitrig* | openbsd*) 10746 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 10747 ;; 10748 *) 10749 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 10750 ;; 10751 esac 10752 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 10753fi 10754 10755case $host_os in 10756 darwin*) 10757 lock_old_archive_extraction=yes ;; 10758 *) 10759 lock_old_archive_extraction=no ;; 10760esac 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800# If no C compiler was specified, use CC. 10801LTCC=${LTCC-"$CC"} 10802 10803# If no C compiler flags were specified, use CFLAGS. 10804LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10805 10806# Allow CC to be a program name with arguments. 10807compiler=$CC 10808 10809 10810# Check for command to grab the raw symbol name followed by C symbol from nm. 10811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 10812printf %s "checking command to parse $NM output from $compiler object... " >&6; } 10813if test ${lt_cv_sys_global_symbol_pipe+y} 10814then : 10815 printf %s "(cached) " >&6 10816else $as_nop 10817 10818# These are sane defaults that work on at least a few old systems. 10819# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10820 10821# Character class describing NM global symbol codes. 10822symcode='[BCDEGRST]' 10823 10824# Regexp to match symbols that can be accessed directly from C. 10825sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10826 10827# Define system-specific variables. 10828case $host_os in 10829aix*) 10830 symcode='[BCDT]' 10831 ;; 10832cygwin* | mingw* | pw32* | cegcc*) 10833 symcode='[ABCDGISTW]' 10834 ;; 10835hpux*) 10836 if test ia64 = "$host_cpu"; then 10837 symcode='[ABCDEGRST]' 10838 fi 10839 ;; 10840irix* | nonstopux*) 10841 symcode='[BCDEGRST]' 10842 ;; 10843osf*) 10844 symcode='[BCDEGQRST]' 10845 ;; 10846solaris*) 10847 symcode='[BDRT]' 10848 ;; 10849sco3.2v5*) 10850 symcode='[DT]' 10851 ;; 10852sysv4.2uw2*) 10853 symcode='[DT]' 10854 ;; 10855sysv5* | sco5v6* | unixware* | OpenUNIX*) 10856 symcode='[ABDT]' 10857 ;; 10858sysv4) 10859 symcode='[DFNSTU]' 10860 ;; 10861esac 10862 10863# If we're using GNU nm, then use its standard symbol codes. 10864case `$NM -V 2>&1` in 10865*GNU* | *'with BFD'*) 10866 symcode='[ABCDGIRSTW]' ;; 10867esac 10868 10869if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10870 # Gets list of data symbols to import. 10871 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 10872 # Adjust the below global symbol transforms to fixup imported variables. 10873 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 10874 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 10875 lt_c_name_lib_hook="\ 10876 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 10877 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 10878else 10879 # Disable hooks by default. 10880 lt_cv_sys_global_symbol_to_import= 10881 lt_cdecl_hook= 10882 lt_c_name_hook= 10883 lt_c_name_lib_hook= 10884fi 10885 10886# Transform an extracted symbol line into a proper C declaration. 10887# Some systems (esp. on ia64) link data and code symbols differently, 10888# so use this general approach. 10889lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 10890$lt_cdecl_hook\ 10891" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 10892" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 10893 10894# Transform an extracted symbol line into symbol name and symbol address 10895lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 10896$lt_c_name_hook\ 10897" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10898" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 10899 10900# Transform an extracted symbol line into symbol name with lib prefix and 10901# symbol address. 10902lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 10903$lt_c_name_lib_hook\ 10904" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10905" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 10906" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 10907 10908# Handle CRLF in mingw tool chain 10909opt_cr= 10910case $build_os in 10911mingw*) 10912 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10913 ;; 10914esac 10915 10916# Try without a prefix underscore, then with it. 10917for ac_symprfx in "" "_"; do 10918 10919 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10920 symxfrm="\\1 $ac_symprfx\\2 \\2" 10921 10922 # Write the raw and C identifiers. 10923 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10924 # Fake it for dumpbin and say T for any non-static function, 10925 # D for any global variable and I for any imported variable. 10926 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 10927 # which start with @ or ?. 10928 lt_cv_sys_global_symbol_pipe="$AWK '"\ 10929" {last_section=section; section=\$ 3};"\ 10930" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 10931" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 10932" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 10933" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 10934" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 10935" \$ 0!~/External *\|/{next};"\ 10936" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 10937" {if(hide[section]) next};"\ 10938" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 10939" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 10940" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 10941" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 10942" ' prfx=^$ac_symprfx" 10943 else 10944 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10945 fi 10946 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 10947 10948 # Check to see that the pipe works correctly. 10949 pipe_works=no 10950 10951 rm -f conftest* 10952 cat > conftest.$ac_ext <<_LT_EOF 10953#ifdef __cplusplus 10954extern "C" { 10955#endif 10956char nm_test_var; 10957void nm_test_func(void); 10958void nm_test_func(void){} 10959#ifdef __cplusplus 10960} 10961#endif 10962int main(){nm_test_var='a';nm_test_func();return(0);} 10963_LT_EOF 10964 10965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10966 (eval $ac_compile) 2>&5 10967 ac_status=$? 10968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10969 test $ac_status = 0; }; then 10970 # Now try to grab the symbols. 10971 nlist=conftest.nm 10972 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 10973 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 10974 # Try sorting and uniquifying the output. 10975 if sort "$nlist" | uniq > "$nlist"T; then 10976 mv -f "$nlist"T "$nlist" 10977 else 10978 rm -f "$nlist"T 10979 fi 10980 10981 # Make sure that we snagged all the symbols we need. 10982 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 10983 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 10984 cat <<_LT_EOF > conftest.$ac_ext 10985/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 10986#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 10987/* DATA imports from DLLs on WIN32 can't be const, because runtime 10988 relocations are performed -- see ld's documentation on pseudo-relocs. */ 10989# define LT_DLSYM_CONST 10990#elif defined __osf__ 10991/* This system does not cope well with relocations in const data. */ 10992# define LT_DLSYM_CONST 10993#else 10994# define LT_DLSYM_CONST const 10995#endif 10996 10997#ifdef __cplusplus 10998extern "C" { 10999#endif 11000 11001_LT_EOF 11002 # Now generate the symbol file. 11003 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 11004 11005 cat <<_LT_EOF >> conftest.$ac_ext 11006 11007/* The mapping between symbol names and symbols. */ 11008LT_DLSYM_CONST struct { 11009 const char *name; 11010 void *address; 11011} 11012lt__PROGRAM__LTX_preloaded_symbols[] = 11013{ 11014 { "@PROGRAM@", (void *) 0 }, 11015_LT_EOF 11016 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 11017 cat <<\_LT_EOF >> conftest.$ac_ext 11018 {0, (void *) 0} 11019}; 11020 11021/* This works around a problem in FreeBSD linker */ 11022#ifdef FREEBSD_WORKAROUND 11023static const void *lt_preloaded_setup() { 11024 return lt__PROGRAM__LTX_preloaded_symbols; 11025} 11026#endif 11027 11028#ifdef __cplusplus 11029} 11030#endif 11031_LT_EOF 11032 # Now try linking the two files. 11033 mv conftest.$ac_objext conftstm.$ac_objext 11034 lt_globsym_save_LIBS=$LIBS 11035 lt_globsym_save_CFLAGS=$CFLAGS 11036 LIBS=conftstm.$ac_objext 11037 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 11038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11039 (eval $ac_link) 2>&5 11040 ac_status=$? 11041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11042 test $ac_status = 0; } && test -s conftest$ac_exeext; then 11043 pipe_works=yes 11044 fi 11045 LIBS=$lt_globsym_save_LIBS 11046 CFLAGS=$lt_globsym_save_CFLAGS 11047 else 11048 echo "cannot find nm_test_func in $nlist" >&5 11049 fi 11050 else 11051 echo "cannot find nm_test_var in $nlist" >&5 11052 fi 11053 else 11054 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 11055 fi 11056 else 11057 echo "$progname: failed program was:" >&5 11058 cat conftest.$ac_ext >&5 11059 fi 11060 rm -rf conftest* conftst* 11061 11062 # Do not use the global_symbol_pipe unless it works. 11063 if test yes = "$pipe_works"; then 11064 break 11065 else 11066 lt_cv_sys_global_symbol_pipe= 11067 fi 11068done 11069 11070fi 11071 11072if test -z "$lt_cv_sys_global_symbol_pipe"; then 11073 lt_cv_sys_global_symbol_to_cdecl= 11074fi 11075if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 11077printf "%s\n" "failed" >&6; } 11078else 11079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 11080printf "%s\n" "ok" >&6; } 11081fi 11082 11083# Response file support. 11084if test "$lt_cv_nm_interface" = "MS dumpbin"; then 11085 nm_file_list_spec='@' 11086elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 11087 nm_file_list_spec='@' 11088fi 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 11127printf %s "checking for sysroot... " >&6; } 11128 11129# Check whether --with-sysroot was given. 11130if test ${with_sysroot+y} 11131then : 11132 withval=$with_sysroot; 11133else $as_nop 11134 with_sysroot=no 11135fi 11136 11137 11138lt_sysroot= 11139case $with_sysroot in #( 11140 yes) 11141 if test yes = "$GCC"; then 11142 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 11143 fi 11144 ;; #( 11145 /*) 11146 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 11147 ;; #( 11148 no|'') 11149 ;; #( 11150 *) 11151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 11152printf "%s\n" "$with_sysroot" >&6; } 11153 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 11154 ;; 11155esac 11156 11157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 11158printf "%s\n" "${lt_sysroot:-no}" >&6; } 11159 11160 11161 11162 11163 11164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 11165printf %s "checking for a working dd... " >&6; } 11166if test ${ac_cv_path_lt_DD+y} 11167then : 11168 printf %s "(cached) " >&6 11169else $as_nop 11170 printf 0123456789abcdef0123456789abcdef >conftest.i 11171cat conftest.i conftest.i >conftest2.i 11172: ${lt_DD:=$DD} 11173if test -z "$lt_DD"; then 11174 ac_path_lt_DD_found=false 11175 # Loop through the user's path and test for each of PROGNAME-LIST 11176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11177for as_dir in $PATH 11178do 11179 IFS=$as_save_IFS 11180 case $as_dir in #((( 11181 '') as_dir=./ ;; 11182 */) ;; 11183 *) as_dir=$as_dir/ ;; 11184 esac 11185 for ac_prog in dd 11186 do 11187 for ac_exec_ext in '' $ac_executable_extensions; do 11188 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 11189 as_fn_executable_p "$ac_path_lt_DD" || continue 11190if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 11191 cmp -s conftest.i conftest.out \ 11192 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 11193fi 11194 $ac_path_lt_DD_found && break 3 11195 done 11196 done 11197 done 11198IFS=$as_save_IFS 11199 if test -z "$ac_cv_path_lt_DD"; then 11200 : 11201 fi 11202else 11203 ac_cv_path_lt_DD=$lt_DD 11204fi 11205 11206rm -f conftest.i conftest2.i conftest.out 11207fi 11208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 11209printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 11210 11211 11212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 11213printf %s "checking how to truncate binary pipes... " >&6; } 11214if test ${lt_cv_truncate_bin+y} 11215then : 11216 printf %s "(cached) " >&6 11217else $as_nop 11218 printf 0123456789abcdef0123456789abcdef >conftest.i 11219cat conftest.i conftest.i >conftest2.i 11220lt_cv_truncate_bin= 11221if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 11222 cmp -s conftest.i conftest.out \ 11223 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 11224fi 11225rm -f conftest.i conftest2.i conftest.out 11226test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 11227fi 11228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 11229printf "%s\n" "$lt_cv_truncate_bin" >&6; } 11230 11231 11232 11233 11234 11235 11236 11237# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 11238func_cc_basename () 11239{ 11240 for cc_temp in $*""; do 11241 case $cc_temp in 11242 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11243 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11244 \-*) ;; 11245 *) break;; 11246 esac 11247 done 11248 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11249} 11250 11251# Check whether --enable-libtool-lock was given. 11252if test ${enable_libtool_lock+y} 11253then : 11254 enableval=$enable_libtool_lock; 11255fi 11256 11257test no = "$enable_libtool_lock" || enable_libtool_lock=yes 11258 11259# Some flags need to be propagated to the compiler or linker for good 11260# libtool support. 11261case $host in 11262ia64-*-hpux*) 11263 # Find out what ABI is being produced by ac_compile, and set mode 11264 # options accordingly. 11265 echo 'int i;' > conftest.$ac_ext 11266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11267 (eval $ac_compile) 2>&5 11268 ac_status=$? 11269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11270 test $ac_status = 0; }; then 11271 case `$FILECMD conftest.$ac_objext` in 11272 *ELF-32*) 11273 HPUX_IA64_MODE=32 11274 ;; 11275 *ELF-64*) 11276 HPUX_IA64_MODE=64 11277 ;; 11278 esac 11279 fi 11280 rm -rf conftest* 11281 ;; 11282*-*-irix6*) 11283 # Find out what ABI is being produced by ac_compile, and set linker 11284 # options accordingly. 11285 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 11286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11287 (eval $ac_compile) 2>&5 11288 ac_status=$? 11289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11290 test $ac_status = 0; }; then 11291 if test yes = "$lt_cv_prog_gnu_ld"; then 11292 case `$FILECMD conftest.$ac_objext` in 11293 *32-bit*) 11294 LD="${LD-ld} -melf32bsmip" 11295 ;; 11296 *N32*) 11297 LD="${LD-ld} -melf32bmipn32" 11298 ;; 11299 *64-bit*) 11300 LD="${LD-ld} -melf64bmip" 11301 ;; 11302 esac 11303 else 11304 case `$FILECMD conftest.$ac_objext` in 11305 *32-bit*) 11306 LD="${LD-ld} -32" 11307 ;; 11308 *N32*) 11309 LD="${LD-ld} -n32" 11310 ;; 11311 *64-bit*) 11312 LD="${LD-ld} -64" 11313 ;; 11314 esac 11315 fi 11316 fi 11317 rm -rf conftest* 11318 ;; 11319 11320mips64*-*linux*) 11321 # Find out what ABI is being produced by ac_compile, and set linker 11322 # options accordingly. 11323 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 11324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11325 (eval $ac_compile) 2>&5 11326 ac_status=$? 11327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11328 test $ac_status = 0; }; then 11329 emul=elf 11330 case `$FILECMD conftest.$ac_objext` in 11331 *32-bit*) 11332 emul="${emul}32" 11333 ;; 11334 *64-bit*) 11335 emul="${emul}64" 11336 ;; 11337 esac 11338 case `$FILECMD conftest.$ac_objext` in 11339 *MSB*) 11340 emul="${emul}btsmip" 11341 ;; 11342 *LSB*) 11343 emul="${emul}ltsmip" 11344 ;; 11345 esac 11346 case `$FILECMD conftest.$ac_objext` in 11347 *N32*) 11348 emul="${emul}n32" 11349 ;; 11350 esac 11351 LD="${LD-ld} -m $emul" 11352 fi 11353 rm -rf conftest* 11354 ;; 11355 11356x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 11357s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 11358 # Find out what ABI is being produced by ac_compile, and set linker 11359 # options accordingly. Note that the listed cases only cover the 11360 # situations where additional linker options are needed (such as when 11361 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 11362 # vice versa); the common cases where no linker options are needed do 11363 # not appear in the list. 11364 echo 'int i;' > conftest.$ac_ext 11365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11366 (eval $ac_compile) 2>&5 11367 ac_status=$? 11368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11369 test $ac_status = 0; }; then 11370 case `$FILECMD conftest.o` in 11371 *32-bit*) 11372 case $host in 11373 x86_64-*kfreebsd*-gnu) 11374 LD="${LD-ld} -m elf_i386_fbsd" 11375 ;; 11376 x86_64-*linux*) 11377 case `$FILECMD conftest.o` in 11378 *x86-64*) 11379 LD="${LD-ld} -m elf32_x86_64" 11380 ;; 11381 *) 11382 LD="${LD-ld} -m elf_i386" 11383 ;; 11384 esac 11385 ;; 11386 powerpc64le-*linux*) 11387 LD="${LD-ld} -m elf32lppclinux" 11388 ;; 11389 powerpc64-*linux*) 11390 LD="${LD-ld} -m elf32ppclinux" 11391 ;; 11392 s390x-*linux*) 11393 LD="${LD-ld} -m elf_s390" 11394 ;; 11395 sparc64-*linux*) 11396 LD="${LD-ld} -m elf32_sparc" 11397 ;; 11398 esac 11399 ;; 11400 *64-bit*) 11401 case $host in 11402 x86_64-*kfreebsd*-gnu) 11403 LD="${LD-ld} -m elf_x86_64_fbsd" 11404 ;; 11405 x86_64-*linux*) 11406 LD="${LD-ld} -m elf_x86_64" 11407 ;; 11408 powerpcle-*linux*) 11409 LD="${LD-ld} -m elf64lppc" 11410 ;; 11411 powerpc-*linux*) 11412 LD="${LD-ld} -m elf64ppc" 11413 ;; 11414 s390*-*linux*|s390*-*tpf*) 11415 LD="${LD-ld} -m elf64_s390" 11416 ;; 11417 sparc*-*linux*) 11418 LD="${LD-ld} -m elf64_sparc" 11419 ;; 11420 esac 11421 ;; 11422 esac 11423 fi 11424 rm -rf conftest* 11425 ;; 11426 11427*-*-sco3.2v5*) 11428 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 11429 SAVE_CFLAGS=$CFLAGS 11430 CFLAGS="$CFLAGS -belf" 11431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 11432printf %s "checking whether the C compiler needs -belf... " >&6; } 11433if test ${lt_cv_cc_needs_belf+y} 11434then : 11435 printf %s "(cached) " >&6 11436else $as_nop 11437 ac_ext=c 11438ac_cpp='$CPP $CPPFLAGS' 11439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11441ac_compiler_gnu=$ac_cv_c_compiler_gnu 11442 11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11444/* end confdefs.h. */ 11445 11446int 11447main (void) 11448{ 11449 11450 ; 11451 return 0; 11452} 11453_ACEOF 11454if ac_fn_c_try_link "$LINENO" 11455then : 11456 lt_cv_cc_needs_belf=yes 11457else $as_nop 11458 lt_cv_cc_needs_belf=no 11459fi 11460rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11461 conftest$ac_exeext conftest.$ac_ext 11462 ac_ext=c 11463ac_cpp='$CPP $CPPFLAGS' 11464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11466ac_compiler_gnu=$ac_cv_c_compiler_gnu 11467 11468fi 11469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 11470printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 11471 if test yes != "$lt_cv_cc_needs_belf"; then 11472 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 11473 CFLAGS=$SAVE_CFLAGS 11474 fi 11475 ;; 11476*-*solaris*) 11477 # Find out what ABI is being produced by ac_compile, and set linker 11478 # options accordingly. 11479 echo 'int i;' > conftest.$ac_ext 11480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11481 (eval $ac_compile) 2>&5 11482 ac_status=$? 11483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11484 test $ac_status = 0; }; then 11485 case `$FILECMD conftest.o` in 11486 *64-bit*) 11487 case $lt_cv_prog_gnu_ld in 11488 yes*) 11489 case $host in 11490 i?86-*-solaris*|x86_64-*-solaris*) 11491 LD="${LD-ld} -m elf_x86_64" 11492 ;; 11493 sparc*-*-solaris*) 11494 LD="${LD-ld} -m elf64_sparc" 11495 ;; 11496 esac 11497 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 11498 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 11499 LD=${LD-ld}_sol2 11500 fi 11501 ;; 11502 *) 11503 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 11504 LD="${LD-ld} -64" 11505 fi 11506 ;; 11507 esac 11508 ;; 11509 esac 11510 fi 11511 rm -rf conftest* 11512 ;; 11513esac 11514 11515need_locks=$enable_libtool_lock 11516 11517if test -n "$ac_tool_prefix"; then 11518 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 11519set dummy ${ac_tool_prefix}mt; ac_word=$2 11520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11521printf %s "checking for $ac_word... " >&6; } 11522if test ${ac_cv_prog_MANIFEST_TOOL+y} 11523then : 11524 printf %s "(cached) " >&6 11525else $as_nop 11526 if test -n "$MANIFEST_TOOL"; then 11527 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 11528else 11529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11530for as_dir in $PATH 11531do 11532 IFS=$as_save_IFS 11533 case $as_dir in #((( 11534 '') as_dir=./ ;; 11535 */) ;; 11536 *) as_dir=$as_dir/ ;; 11537 esac 11538 for ac_exec_ext in '' $ac_executable_extensions; do 11539 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11540 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 11541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11542 break 2 11543 fi 11544done 11545 done 11546IFS=$as_save_IFS 11547 11548fi 11549fi 11550MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 11551if test -n "$MANIFEST_TOOL"; then 11552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 11553printf "%s\n" "$MANIFEST_TOOL" >&6; } 11554else 11555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11556printf "%s\n" "no" >&6; } 11557fi 11558 11559 11560fi 11561if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 11562 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 11563 # Extract the first word of "mt", so it can be a program name with args. 11564set dummy mt; ac_word=$2 11565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11566printf %s "checking for $ac_word... " >&6; } 11567if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 11568then : 11569 printf %s "(cached) " >&6 11570else $as_nop 11571 if test -n "$ac_ct_MANIFEST_TOOL"; then 11572 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 11573else 11574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11575for as_dir in $PATH 11576do 11577 IFS=$as_save_IFS 11578 case $as_dir in #((( 11579 '') as_dir=./ ;; 11580 */) ;; 11581 *) as_dir=$as_dir/ ;; 11582 esac 11583 for ac_exec_ext in '' $ac_executable_extensions; do 11584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11585 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 11586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11587 break 2 11588 fi 11589done 11590 done 11591IFS=$as_save_IFS 11592 11593fi 11594fi 11595ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 11596if test -n "$ac_ct_MANIFEST_TOOL"; then 11597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 11598printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 11599else 11600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11601printf "%s\n" "no" >&6; } 11602fi 11603 11604 if test "x$ac_ct_MANIFEST_TOOL" = x; then 11605 MANIFEST_TOOL=":" 11606 else 11607 case $cross_compiling:$ac_tool_warned in 11608yes:) 11609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11610printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11611ac_tool_warned=yes ;; 11612esac 11613 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 11614 fi 11615else 11616 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 11617fi 11618 11619test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 11620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 11621printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 11622if test ${lt_cv_path_mainfest_tool+y} 11623then : 11624 printf %s "(cached) " >&6 11625else $as_nop 11626 lt_cv_path_mainfest_tool=no 11627 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 11628 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 11629 cat conftest.err >&5 11630 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 11631 lt_cv_path_mainfest_tool=yes 11632 fi 11633 rm -f conftest* 11634fi 11635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 11636printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 11637if test yes != "$lt_cv_path_mainfest_tool"; then 11638 MANIFEST_TOOL=: 11639fi 11640 11641 11642 11643 11644 11645 11646 case $host_os in 11647 rhapsody* | darwin*) 11648 if test -n "$ac_tool_prefix"; then 11649 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 11650set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 11651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11652printf %s "checking for $ac_word... " >&6; } 11653if test ${ac_cv_prog_DSYMUTIL+y} 11654then : 11655 printf %s "(cached) " >&6 11656else $as_nop 11657 if test -n "$DSYMUTIL"; then 11658 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 11659else 11660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11661for as_dir in $PATH 11662do 11663 IFS=$as_save_IFS 11664 case $as_dir in #((( 11665 '') as_dir=./ ;; 11666 */) ;; 11667 *) as_dir=$as_dir/ ;; 11668 esac 11669 for ac_exec_ext in '' $ac_executable_extensions; do 11670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11671 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 11672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11673 break 2 11674 fi 11675done 11676 done 11677IFS=$as_save_IFS 11678 11679fi 11680fi 11681DSYMUTIL=$ac_cv_prog_DSYMUTIL 11682if test -n "$DSYMUTIL"; then 11683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 11684printf "%s\n" "$DSYMUTIL" >&6; } 11685else 11686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11687printf "%s\n" "no" >&6; } 11688fi 11689 11690 11691fi 11692if test -z "$ac_cv_prog_DSYMUTIL"; then 11693 ac_ct_DSYMUTIL=$DSYMUTIL 11694 # Extract the first word of "dsymutil", so it can be a program name with args. 11695set dummy dsymutil; ac_word=$2 11696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11697printf %s "checking for $ac_word... " >&6; } 11698if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 11699then : 11700 printf %s "(cached) " >&6 11701else $as_nop 11702 if test -n "$ac_ct_DSYMUTIL"; then 11703 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 11704else 11705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11706for as_dir in $PATH 11707do 11708 IFS=$as_save_IFS 11709 case $as_dir in #((( 11710 '') as_dir=./ ;; 11711 */) ;; 11712 *) as_dir=$as_dir/ ;; 11713 esac 11714 for ac_exec_ext in '' $ac_executable_extensions; do 11715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11716 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 11717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11718 break 2 11719 fi 11720done 11721 done 11722IFS=$as_save_IFS 11723 11724fi 11725fi 11726ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 11727if test -n "$ac_ct_DSYMUTIL"; then 11728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 11729printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 11730else 11731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11732printf "%s\n" "no" >&6; } 11733fi 11734 11735 if test "x$ac_ct_DSYMUTIL" = x; then 11736 DSYMUTIL=":" 11737 else 11738 case $cross_compiling:$ac_tool_warned in 11739yes:) 11740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11741printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11742ac_tool_warned=yes ;; 11743esac 11744 DSYMUTIL=$ac_ct_DSYMUTIL 11745 fi 11746else 11747 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 11748fi 11749 11750 if test -n "$ac_tool_prefix"; then 11751 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 11752set dummy ${ac_tool_prefix}nmedit; ac_word=$2 11753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11754printf %s "checking for $ac_word... " >&6; } 11755if test ${ac_cv_prog_NMEDIT+y} 11756then : 11757 printf %s "(cached) " >&6 11758else $as_nop 11759 if test -n "$NMEDIT"; then 11760 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 11761else 11762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11763for as_dir in $PATH 11764do 11765 IFS=$as_save_IFS 11766 case $as_dir in #((( 11767 '') as_dir=./ ;; 11768 */) ;; 11769 *) as_dir=$as_dir/ ;; 11770 esac 11771 for ac_exec_ext in '' $ac_executable_extensions; do 11772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11773 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 11774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11775 break 2 11776 fi 11777done 11778 done 11779IFS=$as_save_IFS 11780 11781fi 11782fi 11783NMEDIT=$ac_cv_prog_NMEDIT 11784if test -n "$NMEDIT"; then 11785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 11786printf "%s\n" "$NMEDIT" >&6; } 11787else 11788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11789printf "%s\n" "no" >&6; } 11790fi 11791 11792 11793fi 11794if test -z "$ac_cv_prog_NMEDIT"; then 11795 ac_ct_NMEDIT=$NMEDIT 11796 # Extract the first word of "nmedit", so it can be a program name with args. 11797set dummy nmedit; ac_word=$2 11798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11799printf %s "checking for $ac_word... " >&6; } 11800if test ${ac_cv_prog_ac_ct_NMEDIT+y} 11801then : 11802 printf %s "(cached) " >&6 11803else $as_nop 11804 if test -n "$ac_ct_NMEDIT"; then 11805 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 11806else 11807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11808for as_dir in $PATH 11809do 11810 IFS=$as_save_IFS 11811 case $as_dir in #((( 11812 '') as_dir=./ ;; 11813 */) ;; 11814 *) as_dir=$as_dir/ ;; 11815 esac 11816 for ac_exec_ext in '' $ac_executable_extensions; do 11817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11818 ac_cv_prog_ac_ct_NMEDIT="nmedit" 11819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11820 break 2 11821 fi 11822done 11823 done 11824IFS=$as_save_IFS 11825 11826fi 11827fi 11828ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 11829if test -n "$ac_ct_NMEDIT"; then 11830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 11831printf "%s\n" "$ac_ct_NMEDIT" >&6; } 11832else 11833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11834printf "%s\n" "no" >&6; } 11835fi 11836 11837 if test "x$ac_ct_NMEDIT" = x; then 11838 NMEDIT=":" 11839 else 11840 case $cross_compiling:$ac_tool_warned in 11841yes:) 11842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11843printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11844ac_tool_warned=yes ;; 11845esac 11846 NMEDIT=$ac_ct_NMEDIT 11847 fi 11848else 11849 NMEDIT="$ac_cv_prog_NMEDIT" 11850fi 11851 11852 if test -n "$ac_tool_prefix"; then 11853 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 11854set dummy ${ac_tool_prefix}lipo; ac_word=$2 11855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11856printf %s "checking for $ac_word... " >&6; } 11857if test ${ac_cv_prog_LIPO+y} 11858then : 11859 printf %s "(cached) " >&6 11860else $as_nop 11861 if test -n "$LIPO"; then 11862 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 11863else 11864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11865for as_dir in $PATH 11866do 11867 IFS=$as_save_IFS 11868 case $as_dir in #((( 11869 '') as_dir=./ ;; 11870 */) ;; 11871 *) as_dir=$as_dir/ ;; 11872 esac 11873 for ac_exec_ext in '' $ac_executable_extensions; do 11874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11875 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 11876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11877 break 2 11878 fi 11879done 11880 done 11881IFS=$as_save_IFS 11882 11883fi 11884fi 11885LIPO=$ac_cv_prog_LIPO 11886if test -n "$LIPO"; then 11887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 11888printf "%s\n" "$LIPO" >&6; } 11889else 11890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11891printf "%s\n" "no" >&6; } 11892fi 11893 11894 11895fi 11896if test -z "$ac_cv_prog_LIPO"; then 11897 ac_ct_LIPO=$LIPO 11898 # Extract the first word of "lipo", so it can be a program name with args. 11899set dummy lipo; ac_word=$2 11900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11901printf %s "checking for $ac_word... " >&6; } 11902if test ${ac_cv_prog_ac_ct_LIPO+y} 11903then : 11904 printf %s "(cached) " >&6 11905else $as_nop 11906 if test -n "$ac_ct_LIPO"; then 11907 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 11908else 11909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11910for as_dir in $PATH 11911do 11912 IFS=$as_save_IFS 11913 case $as_dir in #((( 11914 '') as_dir=./ ;; 11915 */) ;; 11916 *) as_dir=$as_dir/ ;; 11917 esac 11918 for ac_exec_ext in '' $ac_executable_extensions; do 11919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11920 ac_cv_prog_ac_ct_LIPO="lipo" 11921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11922 break 2 11923 fi 11924done 11925 done 11926IFS=$as_save_IFS 11927 11928fi 11929fi 11930ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 11931if test -n "$ac_ct_LIPO"; then 11932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 11933printf "%s\n" "$ac_ct_LIPO" >&6; } 11934else 11935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11936printf "%s\n" "no" >&6; } 11937fi 11938 11939 if test "x$ac_ct_LIPO" = x; then 11940 LIPO=":" 11941 else 11942 case $cross_compiling:$ac_tool_warned in 11943yes:) 11944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11945printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11946ac_tool_warned=yes ;; 11947esac 11948 LIPO=$ac_ct_LIPO 11949 fi 11950else 11951 LIPO="$ac_cv_prog_LIPO" 11952fi 11953 11954 if test -n "$ac_tool_prefix"; then 11955 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 11956set dummy ${ac_tool_prefix}otool; ac_word=$2 11957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11958printf %s "checking for $ac_word... " >&6; } 11959if test ${ac_cv_prog_OTOOL+y} 11960then : 11961 printf %s "(cached) " >&6 11962else $as_nop 11963 if test -n "$OTOOL"; then 11964 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 11965else 11966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11967for as_dir in $PATH 11968do 11969 IFS=$as_save_IFS 11970 case $as_dir in #((( 11971 '') as_dir=./ ;; 11972 */) ;; 11973 *) as_dir=$as_dir/ ;; 11974 esac 11975 for ac_exec_ext in '' $ac_executable_extensions; do 11976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11977 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 11978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11979 break 2 11980 fi 11981done 11982 done 11983IFS=$as_save_IFS 11984 11985fi 11986fi 11987OTOOL=$ac_cv_prog_OTOOL 11988if test -n "$OTOOL"; then 11989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 11990printf "%s\n" "$OTOOL" >&6; } 11991else 11992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11993printf "%s\n" "no" >&6; } 11994fi 11995 11996 11997fi 11998if test -z "$ac_cv_prog_OTOOL"; then 11999 ac_ct_OTOOL=$OTOOL 12000 # Extract the first word of "otool", so it can be a program name with args. 12001set dummy otool; ac_word=$2 12002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12003printf %s "checking for $ac_word... " >&6; } 12004if test ${ac_cv_prog_ac_ct_OTOOL+y} 12005then : 12006 printf %s "(cached) " >&6 12007else $as_nop 12008 if test -n "$ac_ct_OTOOL"; then 12009 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 12010else 12011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12012for as_dir in $PATH 12013do 12014 IFS=$as_save_IFS 12015 case $as_dir in #((( 12016 '') as_dir=./ ;; 12017 */) ;; 12018 *) as_dir=$as_dir/ ;; 12019 esac 12020 for ac_exec_ext in '' $ac_executable_extensions; do 12021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12022 ac_cv_prog_ac_ct_OTOOL="otool" 12023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12024 break 2 12025 fi 12026done 12027 done 12028IFS=$as_save_IFS 12029 12030fi 12031fi 12032ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 12033if test -n "$ac_ct_OTOOL"; then 12034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 12035printf "%s\n" "$ac_ct_OTOOL" >&6; } 12036else 12037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12038printf "%s\n" "no" >&6; } 12039fi 12040 12041 if test "x$ac_ct_OTOOL" = x; then 12042 OTOOL=":" 12043 else 12044 case $cross_compiling:$ac_tool_warned in 12045yes:) 12046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12047printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12048ac_tool_warned=yes ;; 12049esac 12050 OTOOL=$ac_ct_OTOOL 12051 fi 12052else 12053 OTOOL="$ac_cv_prog_OTOOL" 12054fi 12055 12056 if test -n "$ac_tool_prefix"; then 12057 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 12058set dummy ${ac_tool_prefix}otool64; ac_word=$2 12059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12060printf %s "checking for $ac_word... " >&6; } 12061if test ${ac_cv_prog_OTOOL64+y} 12062then : 12063 printf %s "(cached) " >&6 12064else $as_nop 12065 if test -n "$OTOOL64"; then 12066 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 12067else 12068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12069for as_dir in $PATH 12070do 12071 IFS=$as_save_IFS 12072 case $as_dir in #((( 12073 '') as_dir=./ ;; 12074 */) ;; 12075 *) as_dir=$as_dir/ ;; 12076 esac 12077 for ac_exec_ext in '' $ac_executable_extensions; do 12078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12079 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 12080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12081 break 2 12082 fi 12083done 12084 done 12085IFS=$as_save_IFS 12086 12087fi 12088fi 12089OTOOL64=$ac_cv_prog_OTOOL64 12090if test -n "$OTOOL64"; then 12091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 12092printf "%s\n" "$OTOOL64" >&6; } 12093else 12094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12095printf "%s\n" "no" >&6; } 12096fi 12097 12098 12099fi 12100if test -z "$ac_cv_prog_OTOOL64"; then 12101 ac_ct_OTOOL64=$OTOOL64 12102 # Extract the first word of "otool64", so it can be a program name with args. 12103set dummy otool64; ac_word=$2 12104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12105printf %s "checking for $ac_word... " >&6; } 12106if test ${ac_cv_prog_ac_ct_OTOOL64+y} 12107then : 12108 printf %s "(cached) " >&6 12109else $as_nop 12110 if test -n "$ac_ct_OTOOL64"; then 12111 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 12112else 12113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12114for as_dir in $PATH 12115do 12116 IFS=$as_save_IFS 12117 case $as_dir in #((( 12118 '') as_dir=./ ;; 12119 */) ;; 12120 *) as_dir=$as_dir/ ;; 12121 esac 12122 for ac_exec_ext in '' $ac_executable_extensions; do 12123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12124 ac_cv_prog_ac_ct_OTOOL64="otool64" 12125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12126 break 2 12127 fi 12128done 12129 done 12130IFS=$as_save_IFS 12131 12132fi 12133fi 12134ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 12135if test -n "$ac_ct_OTOOL64"; then 12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 12137printf "%s\n" "$ac_ct_OTOOL64" >&6; } 12138else 12139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12140printf "%s\n" "no" >&6; } 12141fi 12142 12143 if test "x$ac_ct_OTOOL64" = x; then 12144 OTOOL64=":" 12145 else 12146 case $cross_compiling:$ac_tool_warned in 12147yes:) 12148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12149printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12150ac_tool_warned=yes ;; 12151esac 12152 OTOOL64=$ac_ct_OTOOL64 12153 fi 12154else 12155 OTOOL64="$ac_cv_prog_OTOOL64" 12156fi 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 12185printf %s "checking for -single_module linker flag... " >&6; } 12186if test ${lt_cv_apple_cc_single_mod+y} 12187then : 12188 printf %s "(cached) " >&6 12189else $as_nop 12190 lt_cv_apple_cc_single_mod=no 12191 if test -z "$LT_MULTI_MODULE"; then 12192 # By default we will add the -single_module flag. You can override 12193 # by either setting the environment variable LT_MULTI_MODULE 12194 # non-empty at configure time, or by adding -multi_module to the 12195 # link flags. 12196 rm -rf libconftest.dylib* 12197 echo "int foo(void){return 1;}" > conftest.c 12198 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12199-dynamiclib -Wl,-single_module conftest.c" >&5 12200 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12201 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 12202 _lt_result=$? 12203 # If there is a non-empty error log, and "single_module" 12204 # appears in it, assume the flag caused a linker warning 12205 if test -s conftest.err && $GREP single_module conftest.err; then 12206 cat conftest.err >&5 12207 # Otherwise, if the output was created with a 0 exit code from 12208 # the compiler, it worked. 12209 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 12210 lt_cv_apple_cc_single_mod=yes 12211 else 12212 cat conftest.err >&5 12213 fi 12214 rm -rf libconftest.dylib* 12215 rm -f conftest.* 12216 fi 12217fi 12218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 12219printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 12220 12221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 12222printf %s "checking for -exported_symbols_list linker flag... " >&6; } 12223if test ${lt_cv_ld_exported_symbols_list+y} 12224then : 12225 printf %s "(cached) " >&6 12226else $as_nop 12227 lt_cv_ld_exported_symbols_list=no 12228 save_LDFLAGS=$LDFLAGS 12229 echo "_main" > conftest.sym 12230 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12232/* end confdefs.h. */ 12233 12234int 12235main (void) 12236{ 12237 12238 ; 12239 return 0; 12240} 12241_ACEOF 12242if ac_fn_c_try_link "$LINENO" 12243then : 12244 lt_cv_ld_exported_symbols_list=yes 12245else $as_nop 12246 lt_cv_ld_exported_symbols_list=no 12247fi 12248rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12249 conftest$ac_exeext conftest.$ac_ext 12250 LDFLAGS=$save_LDFLAGS 12251 12252fi 12253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 12254printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 12255 12256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 12257printf %s "checking for -force_load linker flag... " >&6; } 12258if test ${lt_cv_ld_force_load+y} 12259then : 12260 printf %s "(cached) " >&6 12261else $as_nop 12262 lt_cv_ld_force_load=no 12263 cat > conftest.c << _LT_EOF 12264int forced_loaded() { return 2;} 12265_LT_EOF 12266 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 12267 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 12268 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 12269 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 12270 echo "$RANLIB libconftest.a" >&5 12271 $RANLIB libconftest.a 2>&5 12272 cat > conftest.c << _LT_EOF 12273int main() { return 0;} 12274_LT_EOF 12275 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 12276 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 12277 _lt_result=$? 12278 if test -s conftest.err && $GREP force_load conftest.err; then 12279 cat conftest.err >&5 12280 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 12281 lt_cv_ld_force_load=yes 12282 else 12283 cat conftest.err >&5 12284 fi 12285 rm -f conftest.err libconftest.a conftest conftest.c 12286 rm -rf conftest.dSYM 12287 12288fi 12289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 12290printf "%s\n" "$lt_cv_ld_force_load" >&6; } 12291 case $host_os in 12292 rhapsody* | darwin1.[012]) 12293 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 12294 darwin1.*) 12295 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 12296 darwin*) 12297 case $MACOSX_DEPLOYMENT_TARGET,$host in 12298 10.[012],*|,*powerpc*-darwin[5-8]*) 12299 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 12300 *) 12301 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 12302 esac 12303 ;; 12304 esac 12305 if test yes = "$lt_cv_apple_cc_single_mod"; then 12306 _lt_dar_single_mod='$single_module' 12307 fi 12308 if test yes = "$lt_cv_ld_exported_symbols_list"; then 12309 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 12310 else 12311 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 12312 fi 12313 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 12314 _lt_dsymutil='~$DSYMUTIL $lib || :' 12315 else 12316 _lt_dsymutil= 12317 fi 12318 ;; 12319 esac 12320 12321# func_munge_path_list VARIABLE PATH 12322# ----------------------------------- 12323# VARIABLE is name of variable containing _space_ separated list of 12324# directories to be munged by the contents of PATH, which is string 12325# having a format: 12326# "DIR[:DIR]:" 12327# string "DIR[ DIR]" will be prepended to VARIABLE 12328# ":DIR[:DIR]" 12329# string "DIR[ DIR]" will be appended to VARIABLE 12330# "DIRP[:DIRP]::[DIRA:]DIRA" 12331# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 12332# "DIRA[ DIRA]" will be appended to VARIABLE 12333# "DIR[:DIR]" 12334# VARIABLE will be replaced by "DIR[ DIR]" 12335func_munge_path_list () 12336{ 12337 case x$2 in 12338 x) 12339 ;; 12340 *:) 12341 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 12342 ;; 12343 x:*) 12344 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 12345 ;; 12346 *::*) 12347 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 12348 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 12349 ;; 12350 *) 12351 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 12352 ;; 12353 esac 12354} 12355 12356ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 12357" 12358if test "x$ac_cv_header_dlfcn_h" = xyes 12359then : 12360 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 12361 12362fi 12363 12364 12365 12366 12367 12368# Set options 12369# Check whether --enable-static was given. 12370if test ${enable_static+y} 12371then : 12372 enableval=$enable_static; p=${PACKAGE-default} 12373 case $enableval in 12374 yes) enable_static=yes ;; 12375 no) enable_static=no ;; 12376 *) 12377 enable_static=no 12378 # Look at the argument we got. We use all the common list separators. 12379 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12380 for pkg in $enableval; do 12381 IFS=$lt_save_ifs 12382 if test "X$pkg" = "X$p"; then 12383 enable_static=yes 12384 fi 12385 done 12386 IFS=$lt_save_ifs 12387 ;; 12388 esac 12389else $as_nop 12390 enable_static=no 12391fi 12392 12393 12394 12395 12396 12397 12398 12399enable_dlopen=yes 12400 12401# Check whether --with-pic was given. 12402if test ${with_pic+y} 12403then : 12404 withval=$with_pic; lt_p=${PACKAGE-default} 12405 case $withval in 12406 yes|no) pic_mode=$withval ;; 12407 *) 12408 pic_mode=default 12409 # Look at the argument we got. We use all the common list separators. 12410 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12411 for lt_pkg in $withval; do 12412 IFS=$lt_save_ifs 12413 if test "X$lt_pkg" = "X$lt_p"; then 12414 pic_mode=yes 12415 fi 12416 done 12417 IFS=$lt_save_ifs 12418 ;; 12419 esac 12420else $as_nop 12421 pic_mode=yes 12422fi 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 enable_win32_dll=no 12434 12435 12436 # Check whether --enable-shared was given. 12437if test ${enable_shared+y} 12438then : 12439 enableval=$enable_shared; p=${PACKAGE-default} 12440 case $enableval in 12441 yes) enable_shared=yes ;; 12442 no) enable_shared=no ;; 12443 *) 12444 enable_shared=no 12445 # Look at the argument we got. We use all the common list separators. 12446 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12447 for pkg in $enableval; do 12448 IFS=$lt_save_ifs 12449 if test "X$pkg" = "X$p"; then 12450 enable_shared=yes 12451 fi 12452 done 12453 IFS=$lt_save_ifs 12454 ;; 12455 esac 12456else $as_nop 12457 enable_shared=yes 12458fi 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 # Check whether --enable-fast-install was given. 12471if test ${enable_fast_install+y} 12472then : 12473 enableval=$enable_fast_install; p=${PACKAGE-default} 12474 case $enableval in 12475 yes) enable_fast_install=yes ;; 12476 no) enable_fast_install=no ;; 12477 *) 12478 enable_fast_install=no 12479 # Look at the argument we got. We use all the common list separators. 12480 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12481 for pkg in $enableval; do 12482 IFS=$lt_save_ifs 12483 if test "X$pkg" = "X$p"; then 12484 enable_fast_install=yes 12485 fi 12486 done 12487 IFS=$lt_save_ifs 12488 ;; 12489 esac 12490else $as_nop 12491 enable_fast_install=yes 12492fi 12493 12494 12495 12496 12497 12498 12499 12500 12501 shared_archive_member_spec= 12502case $host,$enable_shared in 12503power*-*-aix[5-9]*,yes) 12504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 12505printf %s "checking which variant of shared library versioning to provide... " >&6; } 12506 12507# Check whether --with-aix-soname was given. 12508if test ${with_aix_soname+y} 12509then : 12510 withval=$with_aix_soname; case $withval in 12511 aix|svr4|both) 12512 ;; 12513 *) 12514 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 12515 ;; 12516 esac 12517 lt_cv_with_aix_soname=$with_aix_soname 12518else $as_nop 12519 if test ${lt_cv_with_aix_soname+y} 12520then : 12521 printf %s "(cached) " >&6 12522else $as_nop 12523 lt_cv_with_aix_soname=aix 12524fi 12525 12526 with_aix_soname=$lt_cv_with_aix_soname 12527fi 12528 12529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 12530printf "%s\n" "$with_aix_soname" >&6; } 12531 if test aix != "$with_aix_soname"; then 12532 # For the AIX way of multilib, we name the shared archive member 12533 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 12534 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 12535 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 12536 # the AIX toolchain works better with OBJECT_MODE set (default 32). 12537 if test 64 = "${OBJECT_MODE-32}"; then 12538 shared_archive_member_spec=shr_64 12539 else 12540 shared_archive_member_spec=shr 12541 fi 12542 fi 12543 ;; 12544*) 12545 with_aix_soname=aix 12546 ;; 12547esac 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558# This can be used to rebuild libtool when needed 12559LIBTOOL_DEPS=$ltmain 12560 12561# Always use our own libtool. 12562LIBTOOL='$(SHELL) $(top_builddir)/libtool' 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593test -z "$LN_S" && LN_S="ln -s" 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608if test -n "${ZSH_VERSION+set}"; then 12609 setopt NO_GLOB_SUBST 12610fi 12611 12612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 12613printf %s "checking for objdir... " >&6; } 12614if test ${lt_cv_objdir+y} 12615then : 12616 printf %s "(cached) " >&6 12617else $as_nop 12618 rm -f .libs 2>/dev/null 12619mkdir .libs 2>/dev/null 12620if test -d .libs; then 12621 lt_cv_objdir=.libs 12622else 12623 # MS-DOS does not allow filenames that begin with a dot. 12624 lt_cv_objdir=_libs 12625fi 12626rmdir .libs 2>/dev/null 12627fi 12628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 12629printf "%s\n" "$lt_cv_objdir" >&6; } 12630objdir=$lt_cv_objdir 12631 12632 12633 12634 12635 12636printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 12637 12638 12639 12640 12641case $host_os in 12642aix3*) 12643 # AIX sometimes has problems with the GCC collect2 program. For some 12644 # reason, if we set the COLLECT_NAMES environment variable, the problems 12645 # vanish in a puff of smoke. 12646 if test set != "${COLLECT_NAMES+set}"; then 12647 COLLECT_NAMES= 12648 export COLLECT_NAMES 12649 fi 12650 ;; 12651esac 12652 12653# Global variables: 12654ofile=libtool 12655can_build_shared=yes 12656 12657# All known linkers require a '.a' archive for static linking (except MSVC and 12658# ICC, which need '.lib'). 12659libext=a 12660 12661with_gnu_ld=$lt_cv_prog_gnu_ld 12662 12663old_CC=$CC 12664old_CFLAGS=$CFLAGS 12665 12666# Set sane defaults for various variables 12667test -z "$CC" && CC=cc 12668test -z "$LTCC" && LTCC=$CC 12669test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 12670test -z "$LD" && LD=ld 12671test -z "$ac_objext" && ac_objext=o 12672 12673func_cc_basename $compiler 12674cc_basename=$func_cc_basename_result 12675 12676 12677# Only perform the check for file, if the check method requires it 12678test -z "$MAGIC_CMD" && MAGIC_CMD=file 12679case $deplibs_check_method in 12680file_magic*) 12681 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 12683printf %s "checking for ${ac_tool_prefix}file... " >&6; } 12684if test ${lt_cv_path_MAGIC_CMD+y} 12685then : 12686 printf %s "(cached) " >&6 12687else $as_nop 12688 case $MAGIC_CMD in 12689[\\/*] | ?:[\\/]*) 12690 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 12691 ;; 12692*) 12693 lt_save_MAGIC_CMD=$MAGIC_CMD 12694 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12695 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12696 for ac_dir in $ac_dummy; do 12697 IFS=$lt_save_ifs 12698 test -z "$ac_dir" && ac_dir=. 12699 if test -f "$ac_dir/${ac_tool_prefix}file"; then 12700 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 12701 if test -n "$file_magic_test_file"; then 12702 case $deplibs_check_method in 12703 "file_magic "*) 12704 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12705 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12706 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12707 $EGREP "$file_magic_regex" > /dev/null; then 12708 : 12709 else 12710 cat <<_LT_EOF 1>&2 12711 12712*** Warning: the command libtool uses to detect shared libraries, 12713*** $file_magic_cmd, produces output that libtool cannot recognize. 12714*** The result is that libtool may fail to recognize shared libraries 12715*** as such. This will affect the creation of libtool libraries that 12716*** depend on shared libraries, but programs linked with such libtool 12717*** libraries will work regardless of this problem. Nevertheless, you 12718*** may want to report the problem to your system manager and/or to 12719*** bug-libtool@gnu.org 12720 12721_LT_EOF 12722 fi ;; 12723 esac 12724 fi 12725 break 12726 fi 12727 done 12728 IFS=$lt_save_ifs 12729 MAGIC_CMD=$lt_save_MAGIC_CMD 12730 ;; 12731esac 12732fi 12733 12734MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12735if test -n "$MAGIC_CMD"; then 12736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12737printf "%s\n" "$MAGIC_CMD" >&6; } 12738else 12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12740printf "%s\n" "no" >&6; } 12741fi 12742 12743 12744 12745 12746 12747if test -z "$lt_cv_path_MAGIC_CMD"; then 12748 if test -n "$ac_tool_prefix"; then 12749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 12750printf %s "checking for file... " >&6; } 12751if test ${lt_cv_path_MAGIC_CMD+y} 12752then : 12753 printf %s "(cached) " >&6 12754else $as_nop 12755 case $MAGIC_CMD in 12756[\\/*] | ?:[\\/]*) 12757 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 12758 ;; 12759*) 12760 lt_save_MAGIC_CMD=$MAGIC_CMD 12761 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12762 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12763 for ac_dir in $ac_dummy; do 12764 IFS=$lt_save_ifs 12765 test -z "$ac_dir" && ac_dir=. 12766 if test -f "$ac_dir/file"; then 12767 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 12768 if test -n "$file_magic_test_file"; then 12769 case $deplibs_check_method in 12770 "file_magic "*) 12771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12772 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12774 $EGREP "$file_magic_regex" > /dev/null; then 12775 : 12776 else 12777 cat <<_LT_EOF 1>&2 12778 12779*** Warning: the command libtool uses to detect shared libraries, 12780*** $file_magic_cmd, produces output that libtool cannot recognize. 12781*** The result is that libtool may fail to recognize shared libraries 12782*** as such. This will affect the creation of libtool libraries that 12783*** depend on shared libraries, but programs linked with such libtool 12784*** libraries will work regardless of this problem. Nevertheless, you 12785*** may want to report the problem to your system manager and/or to 12786*** bug-libtool@gnu.org 12787 12788_LT_EOF 12789 fi ;; 12790 esac 12791 fi 12792 break 12793 fi 12794 done 12795 IFS=$lt_save_ifs 12796 MAGIC_CMD=$lt_save_MAGIC_CMD 12797 ;; 12798esac 12799fi 12800 12801MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12802if test -n "$MAGIC_CMD"; then 12803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12804printf "%s\n" "$MAGIC_CMD" >&6; } 12805else 12806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12807printf "%s\n" "no" >&6; } 12808fi 12809 12810 12811 else 12812 MAGIC_CMD=: 12813 fi 12814fi 12815 12816 fi 12817 ;; 12818esac 12819 12820# Use C for the default configuration in the libtool script 12821 12822lt_save_CC=$CC 12823ac_ext=c 12824ac_cpp='$CPP $CPPFLAGS' 12825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12827ac_compiler_gnu=$ac_cv_c_compiler_gnu 12828 12829 12830# Source file extension for C test sources. 12831ac_ext=c 12832 12833# Object file extension for compiled C test sources. 12834objext=o 12835objext=$objext 12836 12837# Code to be used in simple compile tests 12838lt_simple_compile_test_code="int some_variable = 0;" 12839 12840# Code to be used in simple link tests 12841lt_simple_link_test_code='int main(){return(0);}' 12842 12843 12844 12845 12846 12847 12848 12849# If no C compiler was specified, use CC. 12850LTCC=${LTCC-"$CC"} 12851 12852# If no C compiler flags were specified, use CFLAGS. 12853LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12854 12855# Allow CC to be a program name with arguments. 12856compiler=$CC 12857 12858# Save the default compiler, since it gets overwritten when the other 12859# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 12860compiler_DEFAULT=$CC 12861 12862# save warnings/boilerplate of simple test code 12863ac_outfile=conftest.$ac_objext 12864echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12865eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12866_lt_compiler_boilerplate=`cat conftest.err` 12867$RM conftest* 12868 12869ac_outfile=conftest.$ac_objext 12870echo "$lt_simple_link_test_code" >conftest.$ac_ext 12871eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12872_lt_linker_boilerplate=`cat conftest.err` 12873$RM -r conftest* 12874 12875 12876## CAVEAT EMPTOR: 12877## There is no encapsulation within the following macros, do not change 12878## the running order or otherwise move them around unless you know exactly 12879## what you are doing... 12880if test -n "$compiler"; then 12881 12882lt_prog_compiler_no_builtin_flag= 12883 12884if test yes = "$GCC"; then 12885 case $cc_basename in 12886 nvcc*) 12887 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 12888 *) 12889 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 12890 esac 12891 12892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 12893printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 12894if test ${lt_cv_prog_compiler_rtti_exceptions+y} 12895then : 12896 printf %s "(cached) " >&6 12897else $as_nop 12898 lt_cv_prog_compiler_rtti_exceptions=no 12899 ac_outfile=conftest.$ac_objext 12900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12901 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 12902 # Insert the option either (1) after the last *FLAGS variable, or 12903 # (2) before a word containing "conftest.", or (3) at the end. 12904 # Note that $ac_compile itself does not contain backslashes and begins 12905 # with a dollar sign (not a hyphen), so the echo should work correctly. 12906 # The option is referenced via a variable to avoid confusing sed. 12907 lt_compile=`echo "$ac_compile" | $SED \ 12908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12910 -e 's:$: $lt_compiler_flag:'` 12911 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12912 (eval "$lt_compile" 2>conftest.err) 12913 ac_status=$? 12914 cat conftest.err >&5 12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12916 if (exit $ac_status) && test -s "$ac_outfile"; then 12917 # The compiler can only warn and ignore the option if not recognized 12918 # So say no if there are warnings other than the usual output. 12919 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12921 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12922 lt_cv_prog_compiler_rtti_exceptions=yes 12923 fi 12924 fi 12925 $RM conftest* 12926 12927fi 12928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 12929printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 12930 12931if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 12932 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 12933else 12934 : 12935fi 12936 12937fi 12938 12939 12940 12941 12942 12943 12944 lt_prog_compiler_wl= 12945lt_prog_compiler_pic= 12946lt_prog_compiler_static= 12947 12948 12949 if test yes = "$GCC"; then 12950 lt_prog_compiler_wl='-Wl,' 12951 lt_prog_compiler_static='-static' 12952 12953 case $host_os in 12954 aix*) 12955 # All AIX code is PIC. 12956 if test ia64 = "$host_cpu"; then 12957 # AIX 5 now supports IA64 processor 12958 lt_prog_compiler_static='-Bstatic' 12959 fi 12960 lt_prog_compiler_pic='-fPIC' 12961 ;; 12962 12963 amigaos*) 12964 case $host_cpu in 12965 powerpc) 12966 # see comment about AmigaOS4 .so support 12967 lt_prog_compiler_pic='-fPIC' 12968 ;; 12969 m68k) 12970 # FIXME: we need at least 68020 code to build shared libraries, but 12971 # adding the '-m68020' flag to GCC prevents building anything better, 12972 # like '-m68040'. 12973 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12974 ;; 12975 esac 12976 ;; 12977 12978 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12979 # PIC is the default for these OSes. 12980 ;; 12981 12982 mingw* | cygwin* | pw32* | os2* | cegcc*) 12983 # This hack is so that the source file can tell whether it is being 12984 # built for inclusion in a dll (and should export symbols for example). 12985 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12986 # (--disable-auto-import) libraries 12987 lt_prog_compiler_pic='-DDLL_EXPORT' 12988 case $host_os in 12989 os2*) 12990 lt_prog_compiler_static='$wl-static' 12991 ;; 12992 esac 12993 ;; 12994 12995 darwin* | rhapsody*) 12996 # PIC is the default on this platform 12997 # Common symbols not allowed in MH_DYLIB files 12998 lt_prog_compiler_pic='-fno-common' 12999 ;; 13000 13001 haiku*) 13002 # PIC is the default for Haiku. 13003 # The "-static" flag exists, but is broken. 13004 lt_prog_compiler_static= 13005 ;; 13006 13007 hpux*) 13008 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13009 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13010 # sets the default TLS model and affects inlining. 13011 case $host_cpu in 13012 hppa*64*) 13013 # +Z the default 13014 ;; 13015 *) 13016 lt_prog_compiler_pic='-fPIC' 13017 ;; 13018 esac 13019 ;; 13020 13021 interix[3-9]*) 13022 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13023 # Instead, we relocate shared libraries at runtime. 13024 ;; 13025 13026 msdosdjgpp*) 13027 # Just because we use GCC doesn't mean we suddenly get shared libraries 13028 # on systems that don't support them. 13029 lt_prog_compiler_can_build_shared=no 13030 enable_shared=no 13031 ;; 13032 13033 *nto* | *qnx*) 13034 # QNX uses GNU C++, but need to define -shared option too, otherwise 13035 # it will coredump. 13036 lt_prog_compiler_pic='-fPIC -shared' 13037 ;; 13038 13039 sysv4*MP*) 13040 if test -d /usr/nec; then 13041 lt_prog_compiler_pic=-Kconform_pic 13042 fi 13043 ;; 13044 13045 *) 13046 lt_prog_compiler_pic='-fPIC' 13047 ;; 13048 esac 13049 13050 case $cc_basename in 13051 nvcc*) # Cuda Compiler Driver 2.2 13052 lt_prog_compiler_wl='-Xlinker ' 13053 if test -n "$lt_prog_compiler_pic"; then 13054 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 13055 fi 13056 ;; 13057 esac 13058 else 13059 # PORTME Check for flag to pass linker flags through the system compiler. 13060 case $host_os in 13061 aix*) 13062 lt_prog_compiler_wl='-Wl,' 13063 if test ia64 = "$host_cpu"; then 13064 # AIX 5 now supports IA64 processor 13065 lt_prog_compiler_static='-Bstatic' 13066 else 13067 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 13068 fi 13069 ;; 13070 13071 darwin* | rhapsody*) 13072 # PIC is the default on this platform 13073 # Common symbols not allowed in MH_DYLIB files 13074 lt_prog_compiler_pic='-fno-common' 13075 case $cc_basename in 13076 nagfor*) 13077 # NAG Fortran compiler 13078 lt_prog_compiler_wl='-Wl,-Wl,,' 13079 lt_prog_compiler_pic='-PIC' 13080 lt_prog_compiler_static='-Bstatic' 13081 ;; 13082 esac 13083 ;; 13084 13085 mingw* | cygwin* | pw32* | os2* | cegcc*) 13086 # This hack is so that the source file can tell whether it is being 13087 # built for inclusion in a dll (and should export symbols for example). 13088 lt_prog_compiler_pic='-DDLL_EXPORT' 13089 case $host_os in 13090 os2*) 13091 lt_prog_compiler_static='$wl-static' 13092 ;; 13093 esac 13094 ;; 13095 13096 hpux9* | hpux10* | hpux11*) 13097 lt_prog_compiler_wl='-Wl,' 13098 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13099 # not for PA HP-UX. 13100 case $host_cpu in 13101 hppa*64*|ia64*) 13102 # +Z the default 13103 ;; 13104 *) 13105 lt_prog_compiler_pic='+Z' 13106 ;; 13107 esac 13108 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13109 lt_prog_compiler_static='$wl-a ${wl}archive' 13110 ;; 13111 13112 irix5* | irix6* | nonstopux*) 13113 lt_prog_compiler_wl='-Wl,' 13114 # PIC (with -KPIC) is the default. 13115 lt_prog_compiler_static='-non_shared' 13116 ;; 13117 13118 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13119 case $cc_basename in 13120 # old Intel for x86_64, which still supported -KPIC. 13121 ecc*) 13122 lt_prog_compiler_wl='-Wl,' 13123 lt_prog_compiler_pic='-KPIC' 13124 lt_prog_compiler_static='-static' 13125 ;; 13126 # flang / f18. f95 an alias for gfortran or flang on Debian 13127 flang* | f18* | f95*) 13128 lt_prog_compiler_wl='-Wl,' 13129 lt_prog_compiler_pic='-fPIC' 13130 lt_prog_compiler_static='-static' 13131 ;; 13132 # icc used to be incompatible with GCC. 13133 # ICC 10 doesn't accept -KPIC any more. 13134 icc* | ifort*) 13135 lt_prog_compiler_wl='-Wl,' 13136 lt_prog_compiler_pic='-fPIC' 13137 lt_prog_compiler_static='-static' 13138 ;; 13139 # Lahey Fortran 8.1. 13140 lf95*) 13141 lt_prog_compiler_wl='-Wl,' 13142 lt_prog_compiler_pic='--shared' 13143 lt_prog_compiler_static='--static' 13144 ;; 13145 nagfor*) 13146 # NAG Fortran compiler 13147 lt_prog_compiler_wl='-Wl,-Wl,,' 13148 lt_prog_compiler_pic='-PIC' 13149 lt_prog_compiler_static='-Bstatic' 13150 ;; 13151 tcc*) 13152 # Fabrice Bellard et al's Tiny C Compiler 13153 lt_prog_compiler_wl='-Wl,' 13154 lt_prog_compiler_pic='-fPIC' 13155 lt_prog_compiler_static='-static' 13156 ;; 13157 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13158 # Portland Group compilers (*not* the Pentium gcc compiler, 13159 # which looks to be a dead project) 13160 lt_prog_compiler_wl='-Wl,' 13161 lt_prog_compiler_pic='-fpic' 13162 lt_prog_compiler_static='-Bstatic' 13163 ;; 13164 ccc*) 13165 lt_prog_compiler_wl='-Wl,' 13166 # All Alpha code is PIC. 13167 lt_prog_compiler_static='-non_shared' 13168 ;; 13169 xl* | bgxl* | bgf* | mpixl*) 13170 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13171 lt_prog_compiler_wl='-Wl,' 13172 lt_prog_compiler_pic='-qpic' 13173 lt_prog_compiler_static='-qstaticlink' 13174 ;; 13175 *) 13176 case `$CC -V 2>&1 | $SED 5q` in 13177 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 13178 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13179 lt_prog_compiler_pic='-KPIC' 13180 lt_prog_compiler_static='-Bstatic' 13181 lt_prog_compiler_wl='' 13182 ;; 13183 *Sun\ F* | *Sun*Fortran*) 13184 lt_prog_compiler_pic='-KPIC' 13185 lt_prog_compiler_static='-Bstatic' 13186 lt_prog_compiler_wl='-Qoption ld ' 13187 ;; 13188 *Sun\ C*) 13189 # Sun C 5.9 13190 lt_prog_compiler_pic='-KPIC' 13191 lt_prog_compiler_static='-Bstatic' 13192 lt_prog_compiler_wl='-Wl,' 13193 ;; 13194 *Intel*\ [CF]*Compiler*) 13195 lt_prog_compiler_wl='-Wl,' 13196 lt_prog_compiler_pic='-fPIC' 13197 lt_prog_compiler_static='-static' 13198 ;; 13199 *Portland\ Group*) 13200 lt_prog_compiler_wl='-Wl,' 13201 lt_prog_compiler_pic='-fpic' 13202 lt_prog_compiler_static='-Bstatic' 13203 ;; 13204 esac 13205 ;; 13206 esac 13207 ;; 13208 13209 newsos6) 13210 lt_prog_compiler_pic='-KPIC' 13211 lt_prog_compiler_static='-Bstatic' 13212 ;; 13213 13214 *nto* | *qnx*) 13215 # QNX uses GNU C++, but need to define -shared option too, otherwise 13216 # it will coredump. 13217 lt_prog_compiler_pic='-fPIC -shared' 13218 ;; 13219 13220 osf3* | osf4* | osf5*) 13221 lt_prog_compiler_wl='-Wl,' 13222 # All OSF/1 code is PIC. 13223 lt_prog_compiler_static='-non_shared' 13224 ;; 13225 13226 rdos*) 13227 lt_prog_compiler_static='-non_shared' 13228 ;; 13229 13230 solaris*) 13231 lt_prog_compiler_pic='-KPIC' 13232 lt_prog_compiler_static='-Bstatic' 13233 case $cc_basename in 13234 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 13235 lt_prog_compiler_wl='-Qoption ld ';; 13236 *) 13237 lt_prog_compiler_wl='-Wl,';; 13238 esac 13239 ;; 13240 13241 sunos4*) 13242 lt_prog_compiler_wl='-Qoption ld ' 13243 lt_prog_compiler_pic='-PIC' 13244 lt_prog_compiler_static='-Bstatic' 13245 ;; 13246 13247 sysv4 | sysv4.2uw2* | sysv4.3*) 13248 lt_prog_compiler_wl='-Wl,' 13249 lt_prog_compiler_pic='-KPIC' 13250 lt_prog_compiler_static='-Bstatic' 13251 ;; 13252 13253 sysv4*MP*) 13254 if test -d /usr/nec; then 13255 lt_prog_compiler_pic='-Kconform_pic' 13256 lt_prog_compiler_static='-Bstatic' 13257 fi 13258 ;; 13259 13260 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13261 lt_prog_compiler_wl='-Wl,' 13262 lt_prog_compiler_pic='-KPIC' 13263 lt_prog_compiler_static='-Bstatic' 13264 ;; 13265 13266 unicos*) 13267 lt_prog_compiler_wl='-Wl,' 13268 lt_prog_compiler_can_build_shared=no 13269 ;; 13270 13271 uts4*) 13272 lt_prog_compiler_pic='-pic' 13273 lt_prog_compiler_static='-Bstatic' 13274 ;; 13275 13276 *) 13277 lt_prog_compiler_can_build_shared=no 13278 ;; 13279 esac 13280 fi 13281 13282case $host_os in 13283 # For platforms that do not support PIC, -DPIC is meaningless: 13284 *djgpp*) 13285 lt_prog_compiler_pic= 13286 ;; 13287 *) 13288 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13289 ;; 13290esac 13291 13292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13293printf %s "checking for $compiler option to produce PIC... " >&6; } 13294if test ${lt_cv_prog_compiler_pic+y} 13295then : 13296 printf %s "(cached) " >&6 13297else $as_nop 13298 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 13299fi 13300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13301printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 13302lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13303 13304# 13305# Check to make sure the PIC flag actually works. 13306# 13307if test -n "$lt_prog_compiler_pic"; then 13308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13309printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13310if test ${lt_cv_prog_compiler_pic_works+y} 13311then : 13312 printf %s "(cached) " >&6 13313else $as_nop 13314 lt_cv_prog_compiler_pic_works=no 13315 ac_outfile=conftest.$ac_objext 13316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 13318 # Insert the option either (1) after the last *FLAGS variable, or 13319 # (2) before a word containing "conftest.", or (3) at the end. 13320 # Note that $ac_compile itself does not contain backslashes and begins 13321 # with a dollar sign (not a hyphen), so the echo should work correctly. 13322 # The option is referenced via a variable to avoid confusing sed. 13323 lt_compile=`echo "$ac_compile" | $SED \ 13324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13326 -e 's:$: $lt_compiler_flag:'` 13327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13328 (eval "$lt_compile" 2>conftest.err) 13329 ac_status=$? 13330 cat conftest.err >&5 13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13332 if (exit $ac_status) && test -s "$ac_outfile"; then 13333 # The compiler can only warn and ignore the option if not recognized 13334 # So say no if there are warnings other than the usual output. 13335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13338 lt_cv_prog_compiler_pic_works=yes 13339 fi 13340 fi 13341 $RM conftest* 13342 13343fi 13344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13345printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 13346 13347if test yes = "$lt_cv_prog_compiler_pic_works"; then 13348 case $lt_prog_compiler_pic in 13349 "" | " "*) ;; 13350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13351 esac 13352else 13353 lt_prog_compiler_pic= 13354 lt_prog_compiler_can_build_shared=no 13355fi 13356 13357fi 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369# 13370# Check to make sure the static flag actually works. 13371# 13372wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13374printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13375if test ${lt_cv_prog_compiler_static_works+y} 13376then : 13377 printf %s "(cached) " >&6 13378else $as_nop 13379 lt_cv_prog_compiler_static_works=no 13380 save_LDFLAGS=$LDFLAGS 13381 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13382 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13383 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13384 # The linker can only warn and ignore the option if not recognized 13385 # So say no if there are warnings 13386 if test -s conftest.err; then 13387 # Append any errors to the config.log. 13388 cat conftest.err 1>&5 13389 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13391 if diff conftest.exp conftest.er2 >/dev/null; then 13392 lt_cv_prog_compiler_static_works=yes 13393 fi 13394 else 13395 lt_cv_prog_compiler_static_works=yes 13396 fi 13397 fi 13398 $RM -r conftest* 13399 LDFLAGS=$save_LDFLAGS 13400 13401fi 13402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13403printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 13404 13405if test yes = "$lt_cv_prog_compiler_static_works"; then 13406 : 13407else 13408 lt_prog_compiler_static= 13409fi 13410 13411 13412 13413 13414 13415 13416 13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13418printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13419if test ${lt_cv_prog_compiler_c_o+y} 13420then : 13421 printf %s "(cached) " >&6 13422else $as_nop 13423 lt_cv_prog_compiler_c_o=no 13424 $RM -r conftest 2>/dev/null 13425 mkdir conftest 13426 cd conftest 13427 mkdir out 13428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13429 13430 lt_compiler_flag="-o out/conftest2.$ac_objext" 13431 # Insert the option either (1) after the last *FLAGS variable, or 13432 # (2) before a word containing "conftest.", or (3) at the end. 13433 # Note that $ac_compile itself does not contain backslashes and begins 13434 # with a dollar sign (not a hyphen), so the echo should work correctly. 13435 lt_compile=`echo "$ac_compile" | $SED \ 13436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13438 -e 's:$: $lt_compiler_flag:'` 13439 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13440 (eval "$lt_compile" 2>out/conftest.err) 13441 ac_status=$? 13442 cat out/conftest.err >&5 13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13444 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13445 then 13446 # The compiler can only warn and ignore the option if not recognized 13447 # So say no if there are warnings 13448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13449 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13450 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13451 lt_cv_prog_compiler_c_o=yes 13452 fi 13453 fi 13454 chmod u+w . 2>&5 13455 $RM conftest* 13456 # SGI C++ compiler will create directory out/ii_files/ for 13457 # template instantiation 13458 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13459 $RM out/* && rmdir out 13460 cd .. 13461 $RM -r conftest 13462 $RM conftest* 13463 13464fi 13465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13466printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 13467 13468 13469 13470 13471 13472 13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13474printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13475if test ${lt_cv_prog_compiler_c_o+y} 13476then : 13477 printf %s "(cached) " >&6 13478else $as_nop 13479 lt_cv_prog_compiler_c_o=no 13480 $RM -r conftest 2>/dev/null 13481 mkdir conftest 13482 cd conftest 13483 mkdir out 13484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13485 13486 lt_compiler_flag="-o out/conftest2.$ac_objext" 13487 # Insert the option either (1) after the last *FLAGS variable, or 13488 # (2) before a word containing "conftest.", or (3) at the end. 13489 # Note that $ac_compile itself does not contain backslashes and begins 13490 # with a dollar sign (not a hyphen), so the echo should work correctly. 13491 lt_compile=`echo "$ac_compile" | $SED \ 13492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13494 -e 's:$: $lt_compiler_flag:'` 13495 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13496 (eval "$lt_compile" 2>out/conftest.err) 13497 ac_status=$? 13498 cat out/conftest.err >&5 13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13500 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13501 then 13502 # The compiler can only warn and ignore the option if not recognized 13503 # So say no if there are warnings 13504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13507 lt_cv_prog_compiler_c_o=yes 13508 fi 13509 fi 13510 chmod u+w . 2>&5 13511 $RM conftest* 13512 # SGI C++ compiler will create directory out/ii_files/ for 13513 # template instantiation 13514 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13515 $RM out/* && rmdir out 13516 cd .. 13517 $RM -r conftest 13518 $RM conftest* 13519 13520fi 13521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13522printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 13523 13524 13525 13526 13527hard_links=nottested 13528if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 13529 # do not overwrite the value of need_locks provided by the user 13530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13531printf %s "checking if we can lock with hard links... " >&6; } 13532 hard_links=yes 13533 $RM conftest* 13534 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13535 touch conftest.a 13536 ln conftest.a conftest.b 2>&5 || hard_links=no 13537 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13539printf "%s\n" "$hard_links" >&6; } 13540 if test no = "$hard_links"; then 13541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 13542printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 13543 need_locks=warn 13544 fi 13545else 13546 need_locks=no 13547fi 13548 13549 13550 13551 13552 13553 13554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13555printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13556 13557 runpath_var= 13558 allow_undefined_flag= 13559 always_export_symbols=no 13560 archive_cmds= 13561 archive_expsym_cmds= 13562 compiler_needs_object=no 13563 enable_shared_with_static_runtimes=no 13564 export_dynamic_flag_spec= 13565 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13566 hardcode_automatic=no 13567 hardcode_direct=no 13568 hardcode_direct_absolute=no 13569 hardcode_libdir_flag_spec= 13570 hardcode_libdir_separator= 13571 hardcode_minus_L=no 13572 hardcode_shlibpath_var=unsupported 13573 inherit_rpath=no 13574 link_all_deplibs=unknown 13575 module_cmds= 13576 module_expsym_cmds= 13577 old_archive_from_new_cmds= 13578 old_archive_from_expsyms_cmds= 13579 thread_safe_flag_spec= 13580 whole_archive_flag_spec= 13581 # include_expsyms should be a list of space-separated symbols to be *always* 13582 # included in the symbol list 13583 include_expsyms= 13584 # exclude_expsyms can be an extended regexp of symbols to exclude 13585 # it will be wrapped by ' (' and ')$', so one must not match beginning or 13586 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 13587 # as well as any symbol that contains 'd'. 13588 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13589 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13590 # platforms (ab)use it in PIC code, but their linkers get confused if 13591 # the symbol is explicitly referenced. Since portable code cannot 13592 # rely on this symbol name, it's probably fine to never include it in 13593 # preloaded symbol tables. 13594 # Exclude shared library initialization/finalization symbols. 13595 extract_expsyms_cmds= 13596 13597 case $host_os in 13598 cygwin* | mingw* | pw32* | cegcc*) 13599 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 13600 # When not using gcc, we currently assume that we are using 13601 # Microsoft Visual C++ or Intel C++ Compiler. 13602 if test yes != "$GCC"; then 13603 with_gnu_ld=no 13604 fi 13605 ;; 13606 interix*) 13607 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 13608 with_gnu_ld=yes 13609 ;; 13610 openbsd* | bitrig*) 13611 with_gnu_ld=no 13612 ;; 13613 linux* | k*bsd*-gnu | gnu*) 13614 link_all_deplibs=no 13615 ;; 13616 esac 13617 13618 ld_shlibs=yes 13619 13620 # On some targets, GNU ld is compatible enough with the native linker 13621 # that we're better off using the native interface for both. 13622 lt_use_gnu_ld_interface=no 13623 if test yes = "$with_gnu_ld"; then 13624 case $host_os in 13625 aix*) 13626 # The AIX port of GNU ld has always aspired to compatibility 13627 # with the native linker. However, as the warning in the GNU ld 13628 # block says, versions before 2.19.5* couldn't really create working 13629 # shared libraries, regardless of the interface used. 13630 case `$LD -v 2>&1` in 13631 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 13632 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 13633 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 13634 *) 13635 lt_use_gnu_ld_interface=yes 13636 ;; 13637 esac 13638 ;; 13639 *) 13640 lt_use_gnu_ld_interface=yes 13641 ;; 13642 esac 13643 fi 13644 13645 if test yes = "$lt_use_gnu_ld_interface"; then 13646 # If archive_cmds runs LD, not CC, wlarc should be empty 13647 wlarc='$wl' 13648 13649 # Set some defaults for GNU ld with shared library support. These 13650 # are reset later if shared libraries are not supported. Putting them 13651 # here allows them to be overridden if necessary. 13652 runpath_var=LD_RUN_PATH 13653 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13654 export_dynamic_flag_spec='$wl--export-dynamic' 13655 # ancient GNU ld didn't support --whole-archive et. al. 13656 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 13657 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13658 else 13659 whole_archive_flag_spec= 13660 fi 13661 supports_anon_versioning=no 13662 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 13663 *GNU\ gold*) supports_anon_versioning=yes ;; 13664 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13665 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13666 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13667 *\ 2.11.*) ;; # other 2.11 versions 13668 *) supports_anon_versioning=yes ;; 13669 esac 13670 13671 # See if GNU ld supports shared libraries. 13672 case $host_os in 13673 aix[3-9]*) 13674 # On AIX/PPC, the GNU linker is very broken 13675 if test ia64 != "$host_cpu"; then 13676 ld_shlibs=no 13677 cat <<_LT_EOF 1>&2 13678 13679*** Warning: the GNU linker, at least up to release 2.19, is reported 13680*** to be unable to reliably create shared libraries on AIX. 13681*** Therefore, libtool is disabling shared libraries support. If you 13682*** really care for shared libraries, you may want to install binutils 13683*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 13684*** You will then need to restart the configuration process. 13685 13686_LT_EOF 13687 fi 13688 ;; 13689 13690 amigaos*) 13691 case $host_cpu in 13692 powerpc) 13693 # see comment about AmigaOS4 .so support 13694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13695 archive_expsym_cmds='' 13696 ;; 13697 m68k) 13698 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)' 13699 hardcode_libdir_flag_spec='-L$libdir' 13700 hardcode_minus_L=yes 13701 ;; 13702 esac 13703 ;; 13704 13705 beos*) 13706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13707 allow_undefined_flag=unsupported 13708 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13709 # support --undefined. This deserves some investigation. FIXME 13710 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13711 else 13712 ld_shlibs=no 13713 fi 13714 ;; 13715 13716 cygwin* | mingw* | pw32* | cegcc*) 13717 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 13718 # as there is no search path for DLLs. 13719 hardcode_libdir_flag_spec='-L$libdir' 13720 export_dynamic_flag_spec='$wl--export-all-symbols' 13721 allow_undefined_flag=unsupported 13722 always_export_symbols=no 13723 enable_shared_with_static_runtimes=yes 13724 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' 13725 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 13726 13727 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13729 # If the export-symbols file already is a .def file, use it as 13730 # is; otherwise, prepend EXPORTS... 13731 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13732 cp $export_symbols $output_objdir/$soname.def; 13733 else 13734 echo EXPORTS > $output_objdir/$soname.def; 13735 cat $export_symbols >> $output_objdir/$soname.def; 13736 fi~ 13737 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13738 else 13739 ld_shlibs=no 13740 fi 13741 ;; 13742 13743 haiku*) 13744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13745 link_all_deplibs=yes 13746 ;; 13747 13748 os2*) 13749 hardcode_libdir_flag_spec='-L$libdir' 13750 hardcode_minus_L=yes 13751 allow_undefined_flag=unsupported 13752 shrext_cmds=.dll 13753 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13754 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13755 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13756 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13757 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13758 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13759 emximp -o $lib $output_objdir/$libname.def' 13760 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13761 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13762 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13763 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13764 prefix_cmds="$SED"~ 13765 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13766 prefix_cmds="$prefix_cmds -e 1d"; 13767 fi~ 13768 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13769 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13770 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13771 emximp -o $lib $output_objdir/$libname.def' 13772 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13773 enable_shared_with_static_runtimes=yes 13774 file_list_spec='@' 13775 ;; 13776 13777 interix[3-9]*) 13778 hardcode_direct=no 13779 hardcode_shlibpath_var=no 13780 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13781 export_dynamic_flag_spec='$wl-E' 13782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13783 # Instead, shared libraries are loaded at an image base (0x10000000 by 13784 # default) and relocated if they conflict, which is a slow very memory 13785 # consuming and fragmenting process. To avoid this, we pick a random, 13786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13787 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13789 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' 13790 ;; 13791 13792 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 13793 tmp_diet=no 13794 if test linux-dietlibc = "$host_os"; then 13795 case $cc_basename in 13796 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 13797 esac 13798 fi 13799 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 13800 && test no = "$tmp_diet" 13801 then 13802 tmp_addflag=' $pic_flag' 13803 tmp_sharedflag='-shared' 13804 case $cc_basename,$host_cpu in 13805 pgcc*) # Portland Group C compiler 13806 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' 13807 tmp_addflag=' $pic_flag' 13808 ;; 13809 pgf77* | pgf90* | pgf95* | pgfortran*) 13810 # Portland Group f77 and f90 compilers 13811 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' 13812 tmp_addflag=' $pic_flag -Mnomain' ;; 13813 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13814 tmp_addflag=' -i_dynamic' ;; 13815 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13816 tmp_addflag=' -i_dynamic -nofor_main' ;; 13817 ifc* | ifort*) # Intel Fortran compiler 13818 tmp_addflag=' -nofor_main' ;; 13819 lf95*) # Lahey Fortran 8.1 13820 whole_archive_flag_spec= 13821 tmp_sharedflag='--shared' ;; 13822 nagfor*) # NAGFOR 5.3 13823 tmp_sharedflag='-Wl,-shared' ;; 13824 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 13825 tmp_sharedflag='-qmkshrobj' 13826 tmp_addflag= ;; 13827 nvcc*) # Cuda Compiler Driver 2.2 13828 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' 13829 compiler_needs_object=yes 13830 ;; 13831 esac 13832 case `$CC -V 2>&1 | $SED 5q` in 13833 *Sun\ C*) # Sun C 5.9 13834 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' 13835 compiler_needs_object=yes 13836 tmp_sharedflag='-G' ;; 13837 *Sun\ F*) # Sun Fortran 8.3 13838 tmp_sharedflag='-G' ;; 13839 esac 13840 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13841 13842 if test yes = "$supports_anon_versioning"; then 13843 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13844 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13845 echo "local: *; };" >> $output_objdir/$libname.ver~ 13846 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13847 fi 13848 13849 case $cc_basename in 13850 tcc*) 13851 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13852 export_dynamic_flag_spec='-rdynamic' 13853 ;; 13854 xlf* | bgf* | bgxlf* | mpixlf*) 13855 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 13856 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 13857 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13858 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 13859 if test yes = "$supports_anon_versioning"; then 13860 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13861 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13862 echo "local: *; };" >> $output_objdir/$libname.ver~ 13863 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 13864 fi 13865 ;; 13866 esac 13867 else 13868 ld_shlibs=no 13869 fi 13870 ;; 13871 13872 netbsd* | netbsdelf*-gnu) 13873 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13874 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13875 wlarc= 13876 else 13877 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13878 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13879 fi 13880 ;; 13881 13882 solaris*) 13883 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 13884 ld_shlibs=no 13885 cat <<_LT_EOF 1>&2 13886 13887*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13888*** create shared libraries on Solaris systems. Therefore, libtool 13889*** is disabling shared libraries support. We urge you to upgrade GNU 13890*** binutils to release 2.9.1 or newer. Another option is to modify 13891*** your PATH or compiler configuration so that the native linker is 13892*** used, and then restart. 13893 13894_LT_EOF 13895 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13896 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13897 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13898 else 13899 ld_shlibs=no 13900 fi 13901 ;; 13902 13903 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13904 case `$LD -v 2>&1` in 13905 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13906 ld_shlibs=no 13907 cat <<_LT_EOF 1>&2 13908 13909*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 13910*** reliably create shared libraries on SCO systems. Therefore, libtool 13911*** is disabling shared libraries support. We urge you to upgrade GNU 13912*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13913*** your PATH or compiler configuration so that the native linker is 13914*** used, and then restart. 13915 13916_LT_EOF 13917 ;; 13918 *) 13919 # For security reasons, it is highly recommended that you always 13920 # use absolute paths for naming shared libraries, and exclude the 13921 # DT_RUNPATH tag from executables and libraries. But doing so 13922 # requires that you compile everything twice, which is a pain. 13923 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13924 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13925 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13926 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13927 else 13928 ld_shlibs=no 13929 fi 13930 ;; 13931 esac 13932 ;; 13933 13934 sunos4*) 13935 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13936 wlarc= 13937 hardcode_direct=yes 13938 hardcode_shlibpath_var=no 13939 ;; 13940 13941 *) 13942 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13943 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13944 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13945 else 13946 ld_shlibs=no 13947 fi 13948 ;; 13949 esac 13950 13951 if test no = "$ld_shlibs"; then 13952 runpath_var= 13953 hardcode_libdir_flag_spec= 13954 export_dynamic_flag_spec= 13955 whole_archive_flag_spec= 13956 fi 13957 else 13958 # PORTME fill in a description of your system's linker (not GNU ld) 13959 case $host_os in 13960 aix3*) 13961 allow_undefined_flag=unsupported 13962 always_export_symbols=yes 13963 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' 13964 # Note: this linker hardcodes the directories in LIBPATH if there 13965 # are no directories specified by -L. 13966 hardcode_minus_L=yes 13967 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 13968 # Neither direct hardcoding nor static linking is supported with a 13969 # broken collect2. 13970 hardcode_direct=unsupported 13971 fi 13972 ;; 13973 13974 aix[4-9]*) 13975 if test ia64 = "$host_cpu"; then 13976 # On IA64, the linker does run time linking by default, so we don't 13977 # have to do anything special. 13978 aix_use_runtimelinking=no 13979 exp_sym_flag='-Bexport' 13980 no_entry_flag= 13981 else 13982 # If we're using GNU nm, then we don't want the "-C" option. 13983 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 13984 # Without the "-l" option, or with the "-B" option, AIX nm treats 13985 # weak defined symbols like other global defined symbols, whereas 13986 # GNU nm marks them as "W". 13987 # While the 'weak' keyword is ignored in the Export File, we need 13988 # it in the Import File for the 'aix-soname' feature, so we have 13989 # to replace the "-B" option with "-P" for AIX nm. 13990 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13991 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' 13992 else 13993 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' 13994 fi 13995 aix_use_runtimelinking=no 13996 13997 # Test if we are trying to use run time linking or normal 13998 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13999 # have runtime linking enabled, and use it for executables. 14000 # For shared libraries, we enable/disable runtime linking 14001 # depending on the kind of the shared library created - 14002 # when "with_aix_soname,aix_use_runtimelinking" is: 14003 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14004 # "aix,yes" lib.so shared, rtl:yes, for executables 14005 # lib.a static archive 14006 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14007 # lib.a(lib.so.V) shared, rtl:no, for executables 14008 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14009 # lib.a(lib.so.V) shared, rtl:no 14010 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14011 # lib.a static archive 14012 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14013 for ld_flag in $LDFLAGS; do 14014 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 14015 aix_use_runtimelinking=yes 14016 break 14017 fi 14018 done 14019 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14020 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14021 # so we don't have lib.a shared libs to link our executables. 14022 # We have to force runtime linking in this case. 14023 aix_use_runtimelinking=yes 14024 LDFLAGS="$LDFLAGS -Wl,-brtl" 14025 fi 14026 ;; 14027 esac 14028 14029 exp_sym_flag='-bexport' 14030 no_entry_flag='-bnoentry' 14031 fi 14032 14033 # When large executables or shared objects are built, AIX ld can 14034 # have problems creating the table of contents. If linking a library 14035 # or program results in "error TOC overflow" add -mminimal-toc to 14036 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14037 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14038 14039 archive_cmds='' 14040 hardcode_direct=yes 14041 hardcode_direct_absolute=yes 14042 hardcode_libdir_separator=':' 14043 link_all_deplibs=yes 14044 file_list_spec='$wl-f,' 14045 case $with_aix_soname,$aix_use_runtimelinking in 14046 aix,*) ;; # traditional, no import file 14047 svr4,* | *,yes) # use import file 14048 # The Import File defines what to hardcode. 14049 hardcode_direct=no 14050 hardcode_direct_absolute=no 14051 ;; 14052 esac 14053 14054 if test yes = "$GCC"; then 14055 case $host_os in aix4.[012]|aix4.[012].*) 14056 # We only want to do this on AIX 4.2 and lower, the check 14057 # below for broken collect2 doesn't work under 4.3+ 14058 collect2name=`$CC -print-prog-name=collect2` 14059 if test -f "$collect2name" && 14060 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14061 then 14062 # We have reworked collect2 14063 : 14064 else 14065 # We have old collect2 14066 hardcode_direct=unsupported 14067 # It fails to find uninstalled libraries when the uninstalled 14068 # path is not listed in the libpath. Setting hardcode_minus_L 14069 # to unsupported forces relinking 14070 hardcode_minus_L=yes 14071 hardcode_libdir_flag_spec='-L$libdir' 14072 hardcode_libdir_separator= 14073 fi 14074 ;; 14075 esac 14076 shared_flag='-shared' 14077 if test yes = "$aix_use_runtimelinking"; then 14078 shared_flag="$shared_flag "'$wl-G' 14079 fi 14080 # Need to ensure runtime linking is disabled for the traditional 14081 # shared library, or the linker may eventually find shared libraries 14082 # /with/ Import File - we do not want to mix them. 14083 shared_flag_aix='-shared' 14084 shared_flag_svr4='-shared $wl-G' 14085 else 14086 # not using gcc 14087 if test ia64 = "$host_cpu"; then 14088 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14089 # chokes on -Wl,-G. The following line is correct: 14090 shared_flag='-G' 14091 else 14092 if test yes = "$aix_use_runtimelinking"; then 14093 shared_flag='$wl-G' 14094 else 14095 shared_flag='$wl-bM:SRE' 14096 fi 14097 shared_flag_aix='$wl-bM:SRE' 14098 shared_flag_svr4='$wl-G' 14099 fi 14100 fi 14101 14102 export_dynamic_flag_spec='$wl-bexpall' 14103 # It seems that -bexpall does not export symbols beginning with 14104 # underscore (_), so it is better to generate a list of symbols to export. 14105 always_export_symbols=yes 14106 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14107 # Warning - without using the other runtime loading flags (-brtl), 14108 # -berok will link without error, but may produce a broken library. 14109 allow_undefined_flag='-berok' 14110 # Determine the default libpath from the value encoded in an 14111 # empty executable. 14112 if test set = "${lt_cv_aix_libpath+set}"; then 14113 aix_libpath=$lt_cv_aix_libpath 14114else 14115 if test ${lt_cv_aix_libpath_+y} 14116then : 14117 printf %s "(cached) " >&6 14118else $as_nop 14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14120/* end confdefs.h. */ 14121 14122int 14123main (void) 14124{ 14125 14126 ; 14127 return 0; 14128} 14129_ACEOF 14130if ac_fn_c_try_link "$LINENO" 14131then : 14132 14133 lt_aix_libpath_sed=' 14134 /Import File Strings/,/^$/ { 14135 /^0/ { 14136 s/^0 *\([^ ]*\) *$/\1/ 14137 p 14138 } 14139 }' 14140 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14141 # Check for a 64-bit object if we didn't find anything. 14142 if test -z "$lt_cv_aix_libpath_"; then 14143 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14144 fi 14145fi 14146rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14147 conftest$ac_exeext conftest.$ac_ext 14148 if test -z "$lt_cv_aix_libpath_"; then 14149 lt_cv_aix_libpath_=/usr/lib:/lib 14150 fi 14151 14152fi 14153 14154 aix_libpath=$lt_cv_aix_libpath_ 14155fi 14156 14157 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 14158 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 14159 else 14160 if test ia64 = "$host_cpu"; then 14161 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 14162 allow_undefined_flag="-z nodefs" 14163 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" 14164 else 14165 # Determine the default libpath from the value encoded in an 14166 # empty executable. 14167 if test set = "${lt_cv_aix_libpath+set}"; then 14168 aix_libpath=$lt_cv_aix_libpath 14169else 14170 if test ${lt_cv_aix_libpath_+y} 14171then : 14172 printf %s "(cached) " >&6 14173else $as_nop 14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14175/* end confdefs.h. */ 14176 14177int 14178main (void) 14179{ 14180 14181 ; 14182 return 0; 14183} 14184_ACEOF 14185if ac_fn_c_try_link "$LINENO" 14186then : 14187 14188 lt_aix_libpath_sed=' 14189 /Import File Strings/,/^$/ { 14190 /^0/ { 14191 s/^0 *\([^ ]*\) *$/\1/ 14192 p 14193 } 14194 }' 14195 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14196 # Check for a 64-bit object if we didn't find anything. 14197 if test -z "$lt_cv_aix_libpath_"; then 14198 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14199 fi 14200fi 14201rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14202 conftest$ac_exeext conftest.$ac_ext 14203 if test -z "$lt_cv_aix_libpath_"; then 14204 lt_cv_aix_libpath_=/usr/lib:/lib 14205 fi 14206 14207fi 14208 14209 aix_libpath=$lt_cv_aix_libpath_ 14210fi 14211 14212 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 14213 # Warning - without using the other run time loading flags, 14214 # -berok will link without error, but may produce a broken library. 14215 no_undefined_flag=' $wl-bernotok' 14216 allow_undefined_flag=' $wl-berok' 14217 if test yes = "$with_gnu_ld"; then 14218 # We only use this code for GNU lds that support --whole-archive. 14219 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 14220 else 14221 # Exported symbols can be pulled into shared objects from archives 14222 whole_archive_flag_spec='$convenience' 14223 fi 14224 archive_cmds_need_lc=yes 14225 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14226 # -brtl affects multiple linker settings, -berok does not and is overridden later 14227 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14228 if test svr4 != "$with_aix_soname"; then 14229 # This is similar to how AIX traditionally builds its shared libraries. 14230 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' 14231 fi 14232 if test aix != "$with_aix_soname"; then 14233 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' 14234 else 14235 # used by -dlpreopen to get the symbols 14236 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14237 fi 14238 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 14239 fi 14240 fi 14241 ;; 14242 14243 amigaos*) 14244 case $host_cpu in 14245 powerpc) 14246 # see comment about AmigaOS4 .so support 14247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14248 archive_expsym_cmds='' 14249 ;; 14250 m68k) 14251 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)' 14252 hardcode_libdir_flag_spec='-L$libdir' 14253 hardcode_minus_L=yes 14254 ;; 14255 esac 14256 ;; 14257 14258 bsdi[45]*) 14259 export_dynamic_flag_spec=-rdynamic 14260 ;; 14261 14262 cygwin* | mingw* | pw32* | cegcc*) 14263 # When not using gcc, we currently assume that we are using 14264 # Microsoft Visual C++ or Intel C++ Compiler. 14265 # hardcode_libdir_flag_spec is actually meaningless, as there is 14266 # no search path for DLLs. 14267 case $cc_basename in 14268 cl* | icl*) 14269 # Native MSVC or ICC 14270 hardcode_libdir_flag_spec=' ' 14271 allow_undefined_flag=unsupported 14272 always_export_symbols=yes 14273 file_list_spec='@' 14274 # Tell ltmain to make .lib files, not .a files. 14275 libext=lib 14276 # Tell ltmain to make .dll files, not .so files. 14277 shrext_cmds=.dll 14278 # FIXME: Setting linknames here is a bad hack. 14279 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14280 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14281 cp "$export_symbols" "$output_objdir/$soname.def"; 14282 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14283 else 14284 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14285 fi~ 14286 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14287 linknames=' 14288 # The linker will not automatically build a static lib if we build a DLL. 14289 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 14290 enable_shared_with_static_runtimes=yes 14291 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14292 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14293 # Don't use ranlib 14294 old_postinstall_cmds='chmod 644 $oldlib' 14295 postlink_cmds='lt_outputfile="@OUTPUT@"~ 14296 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14297 case $lt_outputfile in 14298 *.exe|*.EXE) ;; 14299 *) 14300 lt_outputfile=$lt_outputfile.exe 14301 lt_tool_outputfile=$lt_tool_outputfile.exe 14302 ;; 14303 esac~ 14304 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14305 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14306 $RM "$lt_outputfile.manifest"; 14307 fi' 14308 ;; 14309 *) 14310 # Assume MSVC and ICC wrapper 14311 hardcode_libdir_flag_spec=' ' 14312 allow_undefined_flag=unsupported 14313 # Tell ltmain to make .lib files, not .a files. 14314 libext=lib 14315 # Tell ltmain to make .dll files, not .so files. 14316 shrext_cmds=.dll 14317 # FIXME: Setting linknames here is a bad hack. 14318 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 14319 # The linker will automatically build a .lib file if we build a DLL. 14320 old_archive_from_new_cmds='true' 14321 # FIXME: Should let the user specify the lib program. 14322 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 14323 enable_shared_with_static_runtimes=yes 14324 ;; 14325 esac 14326 ;; 14327 14328 darwin* | rhapsody*) 14329 14330 14331 archive_cmds_need_lc=no 14332 hardcode_direct=no 14333 hardcode_automatic=yes 14334 hardcode_shlibpath_var=unsupported 14335 if test yes = "$lt_cv_ld_force_load"; then 14336 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\"`' 14337 14338 else 14339 whole_archive_flag_spec='' 14340 fi 14341 link_all_deplibs=yes 14342 allow_undefined_flag=$_lt_dar_allow_undefined 14343 case $cc_basename in 14344 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14345 *) _lt_dar_can_shared=$GCC ;; 14346 esac 14347 if test yes = "$_lt_dar_can_shared"; then 14348 output_verbose_link_cmd=func_echo_all 14349 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 14350 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14351 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" 14352 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" 14353 14354 else 14355 ld_shlibs=no 14356 fi 14357 14358 ;; 14359 14360 dgux*) 14361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14362 hardcode_libdir_flag_spec='-L$libdir' 14363 hardcode_shlibpath_var=no 14364 ;; 14365 14366 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14367 # support. Future versions do this automatically, but an explicit c++rt0.o 14368 # does not break anything, and helps significantly (at the cost of a little 14369 # extra space). 14370 freebsd2.2*) 14371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14372 hardcode_libdir_flag_spec='-R$libdir' 14373 hardcode_direct=yes 14374 hardcode_shlibpath_var=no 14375 ;; 14376 14377 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14378 freebsd2.*) 14379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14380 hardcode_direct=yes 14381 hardcode_minus_L=yes 14382 hardcode_shlibpath_var=no 14383 ;; 14384 14385 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14386 freebsd* | dragonfly* | midnightbsd*) 14387 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14388 hardcode_libdir_flag_spec='-R$libdir' 14389 hardcode_direct=yes 14390 hardcode_shlibpath_var=no 14391 ;; 14392 14393 hpux9*) 14394 if test yes = "$GCC"; then 14395 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' 14396 else 14397 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' 14398 fi 14399 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14400 hardcode_libdir_separator=: 14401 hardcode_direct=yes 14402 14403 # hardcode_minus_L: Not really in the search PATH, 14404 # but as the default location of the library. 14405 hardcode_minus_L=yes 14406 export_dynamic_flag_spec='$wl-E' 14407 ;; 14408 14409 hpux10*) 14410 if test yes,no = "$GCC,$with_gnu_ld"; then 14411 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14412 else 14413 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14414 fi 14415 if test no = "$with_gnu_ld"; then 14416 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14417 hardcode_libdir_separator=: 14418 hardcode_direct=yes 14419 hardcode_direct_absolute=yes 14420 export_dynamic_flag_spec='$wl-E' 14421 # hardcode_minus_L: Not really in the search PATH, 14422 # but as the default location of the library. 14423 hardcode_minus_L=yes 14424 fi 14425 ;; 14426 14427 hpux11*) 14428 if test yes,no = "$GCC,$with_gnu_ld"; then 14429 case $host_cpu in 14430 hppa*64*) 14431 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14432 ;; 14433 ia64*) 14434 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14435 ;; 14436 *) 14437 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14438 ;; 14439 esac 14440 else 14441 case $host_cpu in 14442 hppa*64*) 14443 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14444 ;; 14445 ia64*) 14446 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14447 ;; 14448 *) 14449 14450 # Older versions of the 11.00 compiler do not understand -b yet 14451 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 14453printf %s "checking if $CC understands -b... " >&6; } 14454if test ${lt_cv_prog_compiler__b+y} 14455then : 14456 printf %s "(cached) " >&6 14457else $as_nop 14458 lt_cv_prog_compiler__b=no 14459 save_LDFLAGS=$LDFLAGS 14460 LDFLAGS="$LDFLAGS -b" 14461 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14462 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14463 # The linker can only warn and ignore the option if not recognized 14464 # So say no if there are warnings 14465 if test -s conftest.err; then 14466 # Append any errors to the config.log. 14467 cat conftest.err 1>&5 14468 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14470 if diff conftest.exp conftest.er2 >/dev/null; then 14471 lt_cv_prog_compiler__b=yes 14472 fi 14473 else 14474 lt_cv_prog_compiler__b=yes 14475 fi 14476 fi 14477 $RM -r conftest* 14478 LDFLAGS=$save_LDFLAGS 14479 14480fi 14481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 14482printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 14483 14484if test yes = "$lt_cv_prog_compiler__b"; then 14485 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14486else 14487 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14488fi 14489 14490 ;; 14491 esac 14492 fi 14493 if test no = "$with_gnu_ld"; then 14494 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14495 hardcode_libdir_separator=: 14496 14497 case $host_cpu in 14498 hppa*64*|ia64*) 14499 hardcode_direct=no 14500 hardcode_shlibpath_var=no 14501 ;; 14502 *) 14503 hardcode_direct=yes 14504 hardcode_direct_absolute=yes 14505 export_dynamic_flag_spec='$wl-E' 14506 14507 # hardcode_minus_L: Not really in the search PATH, 14508 # but as the default location of the library. 14509 hardcode_minus_L=yes 14510 ;; 14511 esac 14512 fi 14513 ;; 14514 14515 irix5* | irix6* | nonstopux*) 14516 if test yes = "$GCC"; then 14517 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' 14518 # Try to use the -exported_symbol ld option, if it does not 14519 # work, assume that -exports_file does not work either and 14520 # implicitly export all symbols. 14521 # This should be the same for all languages, so no per-tag cache variable. 14522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 14523printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 14524if test ${lt_cv_irix_exported_symbol+y} 14525then : 14526 printf %s "(cached) " >&6 14527else $as_nop 14528 save_LDFLAGS=$LDFLAGS 14529 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14531/* end confdefs.h. */ 14532int foo (void) { return 0; } 14533_ACEOF 14534if ac_fn_c_try_link "$LINENO" 14535then : 14536 lt_cv_irix_exported_symbol=yes 14537else $as_nop 14538 lt_cv_irix_exported_symbol=no 14539fi 14540rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14541 conftest$ac_exeext conftest.$ac_ext 14542 LDFLAGS=$save_LDFLAGS 14543fi 14544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 14545printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 14546 if test yes = "$lt_cv_irix_exported_symbol"; then 14547 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' 14548 fi 14549 link_all_deplibs=no 14550 else 14551 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' 14552 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' 14553 fi 14554 archive_cmds_need_lc='no' 14555 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14556 hardcode_libdir_separator=: 14557 inherit_rpath=yes 14558 link_all_deplibs=yes 14559 ;; 14560 14561 linux*) 14562 case $cc_basename in 14563 tcc*) 14564 # Fabrice Bellard et al's Tiny C Compiler 14565 ld_shlibs=yes 14566 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14567 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14568 ;; 14569 esac 14570 ;; 14571 14572 netbsd* | netbsdelf*-gnu) 14573 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14574 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14575 else 14576 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14577 fi 14578 hardcode_libdir_flag_spec='-R$libdir' 14579 hardcode_direct=yes 14580 hardcode_shlibpath_var=no 14581 ;; 14582 14583 newsos6) 14584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14585 hardcode_direct=yes 14586 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14587 hardcode_libdir_separator=: 14588 hardcode_shlibpath_var=no 14589 ;; 14590 14591 *nto* | *qnx*) 14592 ;; 14593 14594 openbsd* | bitrig*) 14595 if test -f /usr/libexec/ld.so; then 14596 hardcode_direct=yes 14597 hardcode_shlibpath_var=no 14598 hardcode_direct_absolute=yes 14599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14601 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 14602 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14603 export_dynamic_flag_spec='$wl-E' 14604 else 14605 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14606 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14607 fi 14608 else 14609 ld_shlibs=no 14610 fi 14611 ;; 14612 14613 os2*) 14614 hardcode_libdir_flag_spec='-L$libdir' 14615 hardcode_minus_L=yes 14616 allow_undefined_flag=unsupported 14617 shrext_cmds=.dll 14618 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14619 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14620 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14621 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14622 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14623 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14624 emximp -o $lib $output_objdir/$libname.def' 14625 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14626 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14627 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14628 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14629 prefix_cmds="$SED"~ 14630 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14631 prefix_cmds="$prefix_cmds -e 1d"; 14632 fi~ 14633 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14634 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14635 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14636 emximp -o $lib $output_objdir/$libname.def' 14637 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14638 enable_shared_with_static_runtimes=yes 14639 file_list_spec='@' 14640 ;; 14641 14642 osf3*) 14643 if test yes = "$GCC"; then 14644 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 14645 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' 14646 else 14647 allow_undefined_flag=' -expect_unresolved \*' 14648 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' 14649 fi 14650 archive_cmds_need_lc='no' 14651 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14652 hardcode_libdir_separator=: 14653 ;; 14654 14655 osf4* | osf5*) # as osf3* with the addition of -msym flag 14656 if test yes = "$GCC"; then 14657 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 14658 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' 14659 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14660 else 14661 allow_undefined_flag=' -expect_unresolved \*' 14662 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' 14663 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~ 14664 $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' 14665 14666 # Both c and cxx compiler support -rpath directly 14667 hardcode_libdir_flag_spec='-rpath $libdir' 14668 fi 14669 archive_cmds_need_lc='no' 14670 hardcode_libdir_separator=: 14671 ;; 14672 14673 solaris*) 14674 no_undefined_flag=' -z defs' 14675 if test yes = "$GCC"; then 14676 wlarc='$wl' 14677 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14678 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14679 $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' 14680 else 14681 case `$CC -V 2>&1` in 14682 *"Compilers 5.0"*) 14683 wlarc='' 14684 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 14685 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14686 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 14687 ;; 14688 *) 14689 wlarc='$wl' 14690 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 14691 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14692 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 14693 ;; 14694 esac 14695 fi 14696 hardcode_libdir_flag_spec='-R$libdir' 14697 hardcode_shlibpath_var=no 14698 case $host_os in 14699 solaris2.[0-5] | solaris2.[0-5].*) ;; 14700 *) 14701 # The compiler driver will combine and reorder linker options, 14702 # but understands '-z linker_flag'. GCC discards it without '$wl', 14703 # but is careful enough not to reorder. 14704 # Supported since Solaris 2.6 (maybe 2.5.1?) 14705 if test yes = "$GCC"; then 14706 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14707 else 14708 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 14709 fi 14710 ;; 14711 esac 14712 link_all_deplibs=yes 14713 ;; 14714 14715 sunos4*) 14716 if test sequent = "$host_vendor"; then 14717 # Use $CC to link under sequent, because it throws in some extra .o 14718 # files that make .init and .fini sections work. 14719 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14720 else 14721 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14722 fi 14723 hardcode_libdir_flag_spec='-L$libdir' 14724 hardcode_direct=yes 14725 hardcode_minus_L=yes 14726 hardcode_shlibpath_var=no 14727 ;; 14728 14729 sysv4) 14730 case $host_vendor in 14731 sni) 14732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14733 hardcode_direct=yes # is this really true??? 14734 ;; 14735 siemens) 14736 ## LD is ld it makes a PLAMLIB 14737 ## CC just makes a GrossModule. 14738 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14739 reload_cmds='$CC -r -o $output$reload_objs' 14740 hardcode_direct=no 14741 ;; 14742 motorola) 14743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14744 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 14745 ;; 14746 esac 14747 runpath_var='LD_RUN_PATH' 14748 hardcode_shlibpath_var=no 14749 ;; 14750 14751 sysv4.3*) 14752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14753 hardcode_shlibpath_var=no 14754 export_dynamic_flag_spec='-Bexport' 14755 ;; 14756 14757 sysv4*MP*) 14758 if test -d /usr/nec; then 14759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14760 hardcode_shlibpath_var=no 14761 runpath_var=LD_RUN_PATH 14762 hardcode_runpath_var=yes 14763 ld_shlibs=yes 14764 fi 14765 ;; 14766 14767 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14768 no_undefined_flag='$wl-z,text' 14769 archive_cmds_need_lc=no 14770 hardcode_shlibpath_var=no 14771 runpath_var='LD_RUN_PATH' 14772 14773 if test yes = "$GCC"; then 14774 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14775 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14776 else 14777 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14778 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14779 fi 14780 ;; 14781 14782 sysv5* | sco3.2v5* | sco5v6*) 14783 # Note: We CANNOT use -z defs as we might desire, because we do not 14784 # link with -lc, and that would cause any symbols used from libc to 14785 # always be unresolved, which means just about no library would 14786 # ever link correctly. If we're not using GNU ld we use -z text 14787 # though, which does catch some bad symbols but isn't as heavy-handed 14788 # as -z defs. 14789 no_undefined_flag='$wl-z,text' 14790 allow_undefined_flag='$wl-z,nodefs' 14791 archive_cmds_need_lc=no 14792 hardcode_shlibpath_var=no 14793 hardcode_libdir_flag_spec='$wl-R,$libdir' 14794 hardcode_libdir_separator=':' 14795 link_all_deplibs=yes 14796 export_dynamic_flag_spec='$wl-Bexport' 14797 runpath_var='LD_RUN_PATH' 14798 14799 if test yes = "$GCC"; then 14800 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14801 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14802 else 14803 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14804 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14805 fi 14806 ;; 14807 14808 uts4*) 14809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14810 hardcode_libdir_flag_spec='-L$libdir' 14811 hardcode_shlibpath_var=no 14812 ;; 14813 14814 *) 14815 ld_shlibs=no 14816 ;; 14817 esac 14818 14819 if test sni = "$host_vendor"; then 14820 case $host in 14821 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14822 export_dynamic_flag_spec='$wl-Blargedynsym' 14823 ;; 14824 esac 14825 fi 14826 fi 14827 14828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 14829printf "%s\n" "$ld_shlibs" >&6; } 14830test no = "$ld_shlibs" && can_build_shared=no 14831 14832with_gnu_ld=$with_gnu_ld 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848# 14849# Do we need to explicitly link libc? 14850# 14851case "x$archive_cmds_need_lc" in 14852x|xyes) 14853 # Assume -lc should be added 14854 archive_cmds_need_lc=yes 14855 14856 if test yes,yes = "$GCC,$enable_shared"; then 14857 case $archive_cmds in 14858 *'~'*) 14859 # FIXME: we may have to deal with multi-command sequences. 14860 ;; 14861 '$CC '*) 14862 # Test whether the compiler implicitly links with -lc since on some 14863 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14864 # to ld, don't add -lc before -lgcc. 14865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14866printf %s "checking whether -lc should be explicitly linked in... " >&6; } 14867if test ${lt_cv_archive_cmds_need_lc+y} 14868then : 14869 printf %s "(cached) " >&6 14870else $as_nop 14871 $RM conftest* 14872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14873 14874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14875 (eval $ac_compile) 2>&5 14876 ac_status=$? 14877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14878 test $ac_status = 0; } 2>conftest.err; then 14879 soname=conftest 14880 lib=conftest 14881 libobjs=conftest.$ac_objext 14882 deplibs= 14883 wl=$lt_prog_compiler_wl 14884 pic_flag=$lt_prog_compiler_pic 14885 compiler_flags=-v 14886 linker_flags=-v 14887 verstring= 14888 output_objdir=. 14889 libname=conftest 14890 lt_save_allow_undefined_flag=$allow_undefined_flag 14891 allow_undefined_flag= 14892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14893 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14894 ac_status=$? 14895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14896 test $ac_status = 0; } 14897 then 14898 lt_cv_archive_cmds_need_lc=no 14899 else 14900 lt_cv_archive_cmds_need_lc=yes 14901 fi 14902 allow_undefined_flag=$lt_save_allow_undefined_flag 14903 else 14904 cat conftest.err 1>&5 14905 fi 14906 $RM conftest* 14907 14908fi 14909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 14910printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 14911 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 14912 ;; 14913 esac 14914 fi 14915 ;; 14916esac 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15070printf %s "checking dynamic linker characteristics... " >&6; } 15071 15072if test yes = "$GCC"; then 15073 case $host_os in 15074 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 15075 *) lt_awk_arg='/^libraries:/' ;; 15076 esac 15077 case $host_os in 15078 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 15079 *) lt_sed_strip_eq='s|=/|/|g' ;; 15080 esac 15081 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 15082 case $lt_search_path_spec in 15083 *\;*) 15084 # if the path contains ";" then we assume it to be the separator 15085 # otherwise default to the standard path separator (i.e. ":") - it is 15086 # assumed that no part of a normal pathname contains ";" but that should 15087 # okay in the real world where ";" in dirpaths is itself problematic. 15088 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 15089 ;; 15090 *) 15091 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 15092 ;; 15093 esac 15094 # Ok, now we have the path, separated by spaces, we can step through it 15095 # and add multilib dir if necessary... 15096 lt_tmp_lt_search_path_spec= 15097 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 15098 # ...but if some path component already ends with the multilib dir we assume 15099 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 15100 case "$lt_multi_os_dir; $lt_search_path_spec " in 15101 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 15102 lt_multi_os_dir= 15103 ;; 15104 esac 15105 for lt_sys_path in $lt_search_path_spec; do 15106 if test -d "$lt_sys_path$lt_multi_os_dir"; then 15107 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 15108 elif test -n "$lt_multi_os_dir"; then 15109 test -d "$lt_sys_path" && \ 15110 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 15111 fi 15112 done 15113 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 15114BEGIN {RS = " "; FS = "/|\n";} { 15115 lt_foo = ""; 15116 lt_count = 0; 15117 for (lt_i = NF; lt_i > 0; lt_i--) { 15118 if ($lt_i != "" && $lt_i != ".") { 15119 if ($lt_i == "..") { 15120 lt_count++; 15121 } else { 15122 if (lt_count == 0) { 15123 lt_foo = "/" $lt_i lt_foo; 15124 } else { 15125 lt_count--; 15126 } 15127 } 15128 } 15129 } 15130 if (lt_foo != "") { lt_freq[lt_foo]++; } 15131 if (lt_freq[lt_foo] == 1) { print lt_foo; } 15132}'` 15133 # AWK program above erroneously prepends '/' to C:/dos/paths 15134 # for these hosts. 15135 case $host_os in 15136 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 15137 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 15138 esac 15139 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 15140else 15141 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15142fi 15143library_names_spec= 15144libname_spec='lib$name' 15145soname_spec= 15146shrext_cmds=.so 15147postinstall_cmds= 15148postuninstall_cmds= 15149finish_cmds= 15150finish_eval= 15151shlibpath_var= 15152shlibpath_overrides_runpath=unknown 15153version_type=none 15154dynamic_linker="$host_os ld.so" 15155sys_lib_dlsearch_path_spec="/lib /usr/lib" 15156need_lib_prefix=unknown 15157hardcode_into_libs=no 15158 15159# when you set need_version to no, make sure it does not cause -set_version 15160# flags to be left without arguments 15161need_version=unknown 15162 15163 15164 15165case $host_os in 15166aix3*) 15167 version_type=linux # correct to gnu/linux during the next big refactor 15168 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15169 shlibpath_var=LIBPATH 15170 15171 # AIX 3 has no versioning support, so we append a major version to the name. 15172 soname_spec='$libname$release$shared_ext$major' 15173 ;; 15174 15175aix[4-9]*) 15176 version_type=linux # correct to gnu/linux during the next big refactor 15177 need_lib_prefix=no 15178 need_version=no 15179 hardcode_into_libs=yes 15180 if test ia64 = "$host_cpu"; then 15181 # AIX 5 supports IA64 15182 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15183 shlibpath_var=LD_LIBRARY_PATH 15184 else 15185 # With GCC up to 2.95.x, collect2 would create an import file 15186 # for dependence libraries. The import file would start with 15187 # the line '#! .'. This would cause the generated library to 15188 # depend on '.', always an invalid library. This was fixed in 15189 # development snapshots of GCC prior to 3.0. 15190 case $host_os in 15191 aix4 | aix4.[01] | aix4.[01].*) 15192 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15193 echo ' yes ' 15194 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15195 : 15196 else 15197 can_build_shared=no 15198 fi 15199 ;; 15200 esac 15201 # Using Import Files as archive members, it is possible to support 15202 # filename-based versioning of shared library archives on AIX. While 15203 # this would work for both with and without runtime linking, it will 15204 # prevent static linking of such archives. So we do filename-based 15205 # shared library versioning with .so extension only, which is used 15206 # when both runtime linking and shared linking is enabled. 15207 # Unfortunately, runtime linking may impact performance, so we do 15208 # not want this to be the default eventually. Also, we use the 15209 # versioned .so libs for executables only if there is the -brtl 15210 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15211 # To allow for filename-based versioning support, we need to create 15212 # libNAME.so.V as an archive file, containing: 15213 # *) an Import File, referring to the versioned filename of the 15214 # archive as well as the shared archive member, telling the 15215 # bitwidth (32 or 64) of that shared object, and providing the 15216 # list of exported symbols of that shared object, eventually 15217 # decorated with the 'weak' keyword 15218 # *) the shared object with the F_LOADONLY flag set, to really avoid 15219 # it being seen by the linker. 15220 # At run time we better use the real file rather than another symlink, 15221 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15222 15223 case $with_aix_soname,$aix_use_runtimelinking in 15224 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15225 # soname into executable. Probably we can add versioning support to 15226 # collect2, so additional links can be useful in future. 15227 aix,yes) # traditional libtool 15228 dynamic_linker='AIX unversionable lib.so' 15229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15230 # instead of lib<name>.a to let people know that these are not 15231 # typical AIX shared libraries. 15232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15233 ;; 15234 aix,no) # traditional AIX only 15235 dynamic_linker='AIX lib.a(lib.so.V)' 15236 # We preserve .a as extension for shared libraries through AIX4.2 15237 # and later when we are not doing run time linking. 15238 library_names_spec='$libname$release.a $libname.a' 15239 soname_spec='$libname$release$shared_ext$major' 15240 ;; 15241 svr4,*) # full svr4 only 15242 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15243 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15244 # We do not specify a path in Import Files, so LIBPATH fires. 15245 shlibpath_overrides_runpath=yes 15246 ;; 15247 *,yes) # both, prefer svr4 15248 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15249 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15250 # unpreferred sharedlib libNAME.a needs extra handling 15251 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"' 15252 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"' 15253 # We do not specify a path in Import Files, so LIBPATH fires. 15254 shlibpath_overrides_runpath=yes 15255 ;; 15256 *,no) # both, prefer aix 15257 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15258 library_names_spec='$libname$release.a $libname.a' 15259 soname_spec='$libname$release$shared_ext$major' 15260 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15261 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)' 15262 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"' 15263 ;; 15264 esac 15265 shlibpath_var=LIBPATH 15266 fi 15267 ;; 15268 15269amigaos*) 15270 case $host_cpu in 15271 powerpc) 15272 # Since July 2007 AmigaOS4 officially supports .so libraries. 15273 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15275 ;; 15276 m68k) 15277 library_names_spec='$libname.ixlibrary $libname.a' 15278 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15279 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' 15280 ;; 15281 esac 15282 ;; 15283 15284beos*) 15285 library_names_spec='$libname$shared_ext' 15286 dynamic_linker="$host_os ld.so" 15287 shlibpath_var=LIBRARY_PATH 15288 ;; 15289 15290bsdi[45]*) 15291 version_type=linux # correct to gnu/linux during the next big refactor 15292 need_version=no 15293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15294 soname_spec='$libname$release$shared_ext$major' 15295 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15296 shlibpath_var=LD_LIBRARY_PATH 15297 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15298 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15299 # the default ld.so.conf also contains /usr/contrib/lib and 15300 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15301 # libtool to hard-code these into programs 15302 ;; 15303 15304cygwin* | mingw* | pw32* | cegcc*) 15305 version_type=windows 15306 shrext_cmds=.dll 15307 need_version=no 15308 need_lib_prefix=no 15309 15310 case $GCC,$cc_basename in 15311 yes,*) 15312 # gcc 15313 library_names_spec='$libname.dll.a' 15314 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15315 postinstall_cmds='base_file=`basename \$file`~ 15316 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15317 dldir=$destdir/`dirname \$dlpath`~ 15318 test -d \$dldir || mkdir -p \$dldir~ 15319 $install_prog $dir/$dlname \$dldir/$dlname~ 15320 chmod a+x \$dldir/$dlname~ 15321 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15322 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15323 fi' 15324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15325 dlpath=$dir/\$dldll~ 15326 $RM \$dlpath' 15327 shlibpath_overrides_runpath=yes 15328 15329 case $host_os in 15330 cygwin*) 15331 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15332 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15333 15334 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 15335 ;; 15336 mingw* | cegcc*) 15337 # MinGW DLLs use traditional 'lib' prefix 15338 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15339 ;; 15340 pw32*) 15341 # pw32 DLLs use 'pw' prefix rather than 'lib' 15342 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15343 ;; 15344 esac 15345 dynamic_linker='Win32 ld.exe' 15346 ;; 15347 15348 *,cl* | *,icl*) 15349 # Native MSVC or ICC 15350 libname_spec='$name' 15351 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15352 library_names_spec='$libname.dll.lib' 15353 15354 case $build_os in 15355 mingw*) 15356 sys_lib_search_path_spec= 15357 lt_save_ifs=$IFS 15358 IFS=';' 15359 for lt_path in $LIB 15360 do 15361 IFS=$lt_save_ifs 15362 # Let DOS variable expansion print the short 8.3 style file name. 15363 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15364 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15365 done 15366 IFS=$lt_save_ifs 15367 # Convert to MSYS style. 15368 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15369 ;; 15370 cygwin*) 15371 # Convert to unix form, then to dos form, then back to unix form 15372 # but this time dos style (no spaces!) so that the unix form looks 15373 # like /cygdrive/c/PROGRA~1:/cygdr... 15374 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15375 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15376 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15377 ;; 15378 *) 15379 sys_lib_search_path_spec=$LIB 15380 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15381 # It is most probably a Windows format PATH. 15382 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15383 else 15384 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15385 fi 15386 # FIXME: find the short name or the path components, as spaces are 15387 # common. (e.g. "Program Files" -> "PROGRA~1") 15388 ;; 15389 esac 15390 15391 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15392 postinstall_cmds='base_file=`basename \$file`~ 15393 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15394 dldir=$destdir/`dirname \$dlpath`~ 15395 test -d \$dldir || mkdir -p \$dldir~ 15396 $install_prog $dir/$dlname \$dldir/$dlname' 15397 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15398 dlpath=$dir/\$dldll~ 15399 $RM \$dlpath' 15400 shlibpath_overrides_runpath=yes 15401 dynamic_linker='Win32 link.exe' 15402 ;; 15403 15404 *) 15405 # Assume MSVC and ICC wrapper 15406 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15407 dynamic_linker='Win32 ld.exe' 15408 ;; 15409 esac 15410 # FIXME: first we should search . and the directory the executable is in 15411 shlibpath_var=PATH 15412 ;; 15413 15414darwin* | rhapsody*) 15415 dynamic_linker="$host_os dyld" 15416 version_type=darwin 15417 need_lib_prefix=no 15418 need_version=no 15419 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15420 soname_spec='$libname$release$major$shared_ext' 15421 shlibpath_overrides_runpath=yes 15422 shlibpath_var=DYLD_LIBRARY_PATH 15423 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15424 15425 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 15426 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15427 ;; 15428 15429dgux*) 15430 version_type=linux # correct to gnu/linux during the next big refactor 15431 need_lib_prefix=no 15432 need_version=no 15433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15434 soname_spec='$libname$release$shared_ext$major' 15435 shlibpath_var=LD_LIBRARY_PATH 15436 ;; 15437 15438freebsd* | dragonfly* | midnightbsd*) 15439 # DragonFly does not have aout. When/if they implement a new 15440 # versioning mechanism, adjust this. 15441 if test -x /usr/bin/objformat; then 15442 objformat=`/usr/bin/objformat` 15443 else 15444 case $host_os in 15445 freebsd[23].*) objformat=aout ;; 15446 *) objformat=elf ;; 15447 esac 15448 fi 15449 version_type=freebsd-$objformat 15450 case $version_type in 15451 freebsd-elf*) 15452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15453 soname_spec='$libname$release$shared_ext$major' 15454 need_version=no 15455 need_lib_prefix=no 15456 ;; 15457 freebsd-*) 15458 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15459 need_version=yes 15460 ;; 15461 esac 15462 shlibpath_var=LD_LIBRARY_PATH 15463 case $host_os in 15464 freebsd2.*) 15465 shlibpath_overrides_runpath=yes 15466 ;; 15467 freebsd3.[01]* | freebsdelf3.[01]*) 15468 shlibpath_overrides_runpath=yes 15469 hardcode_into_libs=yes 15470 ;; 15471 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15472 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15473 shlibpath_overrides_runpath=no 15474 hardcode_into_libs=yes 15475 ;; 15476 *) # from 4.6 on, and DragonFly 15477 shlibpath_overrides_runpath=yes 15478 hardcode_into_libs=yes 15479 ;; 15480 esac 15481 ;; 15482 15483haiku*) 15484 version_type=linux # correct to gnu/linux during the next big refactor 15485 need_lib_prefix=no 15486 need_version=no 15487 dynamic_linker="$host_os runtime_loader" 15488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15489 soname_spec='$libname$release$shared_ext$major' 15490 shlibpath_var=LIBRARY_PATH 15491 shlibpath_overrides_runpath=no 15492 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15493 hardcode_into_libs=yes 15494 ;; 15495 15496hpux9* | hpux10* | hpux11*) 15497 # Give a soname corresponding to the major version so that dld.sl refuses to 15498 # link against other versions. 15499 version_type=sunos 15500 need_lib_prefix=no 15501 need_version=no 15502 case $host_cpu in 15503 ia64*) 15504 shrext_cmds='.so' 15505 hardcode_into_libs=yes 15506 dynamic_linker="$host_os dld.so" 15507 shlibpath_var=LD_LIBRARY_PATH 15508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15510 soname_spec='$libname$release$shared_ext$major' 15511 if test 32 = "$HPUX_IA64_MODE"; then 15512 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15513 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15514 else 15515 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15516 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15517 fi 15518 ;; 15519 hppa*64*) 15520 shrext_cmds='.sl' 15521 hardcode_into_libs=yes 15522 dynamic_linker="$host_os dld.sl" 15523 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15526 soname_spec='$libname$release$shared_ext$major' 15527 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15529 ;; 15530 *) 15531 shrext_cmds='.sl' 15532 dynamic_linker="$host_os dld.sl" 15533 shlibpath_var=SHLIB_PATH 15534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15536 soname_spec='$libname$release$shared_ext$major' 15537 ;; 15538 esac 15539 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15540 postinstall_cmds='chmod 555 $lib' 15541 # or fails outright, so override atomically: 15542 install_override_mode=555 15543 ;; 15544 15545interix[3-9]*) 15546 version_type=linux # correct to gnu/linux during the next big refactor 15547 need_lib_prefix=no 15548 need_version=no 15549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15550 soname_spec='$libname$release$shared_ext$major' 15551 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15552 shlibpath_var=LD_LIBRARY_PATH 15553 shlibpath_overrides_runpath=no 15554 hardcode_into_libs=yes 15555 ;; 15556 15557irix5* | irix6* | nonstopux*) 15558 case $host_os in 15559 nonstopux*) version_type=nonstopux ;; 15560 *) 15561 if test yes = "$lt_cv_prog_gnu_ld"; then 15562 version_type=linux # correct to gnu/linux during the next big refactor 15563 else 15564 version_type=irix 15565 fi ;; 15566 esac 15567 need_lib_prefix=no 15568 need_version=no 15569 soname_spec='$libname$release$shared_ext$major' 15570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15571 case $host_os in 15572 irix5* | nonstopux*) 15573 libsuff= shlibsuff= 15574 ;; 15575 *) 15576 case $LD in # libtool.m4 will add one of these switches to LD 15577 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15578 libsuff= shlibsuff= libmagic=32-bit;; 15579 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15580 libsuff=32 shlibsuff=N32 libmagic=N32;; 15581 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15582 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15583 *) libsuff= shlibsuff= libmagic=never-match;; 15584 esac 15585 ;; 15586 esac 15587 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15588 shlibpath_overrides_runpath=no 15589 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15590 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15591 hardcode_into_libs=yes 15592 ;; 15593 15594# No shared lib support for Linux oldld, aout, or coff. 15595linux*oldld* | linux*aout* | linux*coff*) 15596 dynamic_linker=no 15597 ;; 15598 15599linux*android*) 15600 version_type=none # Android doesn't support versioned libraries. 15601 need_lib_prefix=no 15602 need_version=no 15603 library_names_spec='$libname$release$shared_ext' 15604 soname_spec='$libname$release$shared_ext' 15605 finish_cmds= 15606 shlibpath_var=LD_LIBRARY_PATH 15607 shlibpath_overrides_runpath=yes 15608 15609 # This implies no fast_install, which is unacceptable. 15610 # Some rework will be needed to allow for fast_install 15611 # before this can be enabled. 15612 hardcode_into_libs=yes 15613 15614 dynamic_linker='Android linker' 15615 # Don't embed -rpath directories since the linker doesn't support them. 15616 hardcode_libdir_flag_spec='-L$libdir' 15617 ;; 15618 15619# This must be glibc/ELF. 15620linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15621 version_type=linux # correct to gnu/linux during the next big refactor 15622 need_lib_prefix=no 15623 need_version=no 15624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15625 soname_spec='$libname$release$shared_ext$major' 15626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15627 shlibpath_var=LD_LIBRARY_PATH 15628 shlibpath_overrides_runpath=no 15629 15630 # Some binutils ld are patched to set DT_RUNPATH 15631 if test ${lt_cv_shlibpath_overrides_runpath+y} 15632then : 15633 printf %s "(cached) " >&6 15634else $as_nop 15635 lt_cv_shlibpath_overrides_runpath=no 15636 save_LDFLAGS=$LDFLAGS 15637 save_libdir=$libdir 15638 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 15639 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 15640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15641/* end confdefs.h. */ 15642 15643int 15644main (void) 15645{ 15646 15647 ; 15648 return 0; 15649} 15650_ACEOF 15651if ac_fn_c_try_link "$LINENO" 15652then : 15653 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 15654then : 15655 lt_cv_shlibpath_overrides_runpath=yes 15656fi 15657fi 15658rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15659 conftest$ac_exeext conftest.$ac_ext 15660 LDFLAGS=$save_LDFLAGS 15661 libdir=$save_libdir 15662 15663fi 15664 15665 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15666 15667 # This implies no fast_install, which is unacceptable. 15668 # Some rework will be needed to allow for fast_install 15669 # before this can be enabled. 15670 hardcode_into_libs=yes 15671 15672 # Ideally, we could use ldconfig to report *all* directores which are 15673 # searched for libraries, however this is still not possible. Aside from not 15674 # being certain /sbin/ldconfig is available, command 15675 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15676 # even though it is searched at run-time. Try to do the best guess by 15677 # appending ld.so.conf contents (and includes) to the search path. 15678 if test -f /etc/ld.so.conf; then 15679 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' ' '` 15680 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15681 fi 15682 15683 # We used to test for /lib/ld.so.1 and disable shared libraries on 15684 # powerpc, because MkLinux only supported shared libraries with the 15685 # GNU dynamic linker. Since this was broken with cross compilers, 15686 # most powerpc-linux boxes support dynamic linking these days and 15687 # people can always --disable-shared, the test was removed, and we 15688 # assume the GNU/Linux dynamic linker is in use. 15689 dynamic_linker='GNU/Linux ld.so' 15690 ;; 15691 15692netbsdelf*-gnu) 15693 version_type=linux 15694 need_lib_prefix=no 15695 need_version=no 15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15697 soname_spec='${libname}${release}${shared_ext}$major' 15698 shlibpath_var=LD_LIBRARY_PATH 15699 shlibpath_overrides_runpath=no 15700 hardcode_into_libs=yes 15701 dynamic_linker='NetBSD ld.elf_so' 15702 ;; 15703 15704netbsd*) 15705 version_type=sunos 15706 need_lib_prefix=no 15707 need_version=no 15708 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15709 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15711 dynamic_linker='NetBSD (a.out) ld.so' 15712 else 15713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15714 soname_spec='$libname$release$shared_ext$major' 15715 dynamic_linker='NetBSD ld.elf_so' 15716 fi 15717 shlibpath_var=LD_LIBRARY_PATH 15718 shlibpath_overrides_runpath=yes 15719 hardcode_into_libs=yes 15720 ;; 15721 15722newsos6) 15723 version_type=linux # correct to gnu/linux during the next big refactor 15724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15725 shlibpath_var=LD_LIBRARY_PATH 15726 shlibpath_overrides_runpath=yes 15727 ;; 15728 15729*nto* | *qnx*) 15730 version_type=qnx 15731 need_lib_prefix=no 15732 need_version=no 15733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15734 soname_spec='$libname$release$shared_ext$major' 15735 shlibpath_var=LD_LIBRARY_PATH 15736 shlibpath_overrides_runpath=no 15737 hardcode_into_libs=yes 15738 dynamic_linker='ldqnx.so' 15739 ;; 15740 15741openbsd* | bitrig*) 15742 version_type=sunos 15743 sys_lib_dlsearch_path_spec=/usr/lib 15744 need_lib_prefix=no 15745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15746 need_version=no 15747 else 15748 need_version=yes 15749 fi 15750 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15752 shlibpath_var=LD_LIBRARY_PATH 15753 shlibpath_overrides_runpath=yes 15754 ;; 15755 15756os2*) 15757 libname_spec='$name' 15758 version_type=windows 15759 shrext_cmds=.dll 15760 need_version=no 15761 need_lib_prefix=no 15762 # OS/2 can only load a DLL with a base name of 8 characters or less. 15763 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15764 v=$($ECHO $release$versuffix | tr -d .-); 15765 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15766 $ECHO $n$v`$shared_ext' 15767 library_names_spec='${libname}_dll.$libext' 15768 dynamic_linker='OS/2 ld.exe' 15769 shlibpath_var=BEGINLIBPATH 15770 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15772 postinstall_cmds='base_file=`basename \$file`~ 15773 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15774 dldir=$destdir/`dirname \$dlpath`~ 15775 test -d \$dldir || mkdir -p \$dldir~ 15776 $install_prog $dir/$dlname \$dldir/$dlname~ 15777 chmod a+x \$dldir/$dlname~ 15778 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15779 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15780 fi' 15781 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15782 dlpath=$dir/\$dldll~ 15783 $RM \$dlpath' 15784 ;; 15785 15786osf3* | osf4* | osf5*) 15787 version_type=osf 15788 need_lib_prefix=no 15789 need_version=no 15790 soname_spec='$libname$release$shared_ext$major' 15791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15792 shlibpath_var=LD_LIBRARY_PATH 15793 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15795 ;; 15796 15797rdos*) 15798 dynamic_linker=no 15799 ;; 15800 15801solaris*) 15802 version_type=linux # correct to gnu/linux during the next big refactor 15803 need_lib_prefix=no 15804 need_version=no 15805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15806 soname_spec='$libname$release$shared_ext$major' 15807 shlibpath_var=LD_LIBRARY_PATH 15808 shlibpath_overrides_runpath=yes 15809 hardcode_into_libs=yes 15810 # ldd complains unless libraries are executable 15811 postinstall_cmds='chmod +x $lib' 15812 ;; 15813 15814sunos4*) 15815 version_type=sunos 15816 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15817 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15818 shlibpath_var=LD_LIBRARY_PATH 15819 shlibpath_overrides_runpath=yes 15820 if test yes = "$with_gnu_ld"; then 15821 need_lib_prefix=no 15822 fi 15823 need_version=yes 15824 ;; 15825 15826sysv4 | sysv4.3*) 15827 version_type=linux # correct to gnu/linux during the next big refactor 15828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15829 soname_spec='$libname$release$shared_ext$major' 15830 shlibpath_var=LD_LIBRARY_PATH 15831 case $host_vendor in 15832 sni) 15833 shlibpath_overrides_runpath=no 15834 need_lib_prefix=no 15835 runpath_var=LD_RUN_PATH 15836 ;; 15837 siemens) 15838 need_lib_prefix=no 15839 ;; 15840 motorola) 15841 need_lib_prefix=no 15842 need_version=no 15843 shlibpath_overrides_runpath=no 15844 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15845 ;; 15846 esac 15847 ;; 15848 15849sysv4*MP*) 15850 if test -d /usr/nec; then 15851 version_type=linux # correct to gnu/linux during the next big refactor 15852 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15853 soname_spec='$libname$shared_ext.$major' 15854 shlibpath_var=LD_LIBRARY_PATH 15855 fi 15856 ;; 15857 15858sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15859 version_type=sco 15860 need_lib_prefix=no 15861 need_version=no 15862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15863 soname_spec='$libname$release$shared_ext$major' 15864 shlibpath_var=LD_LIBRARY_PATH 15865 shlibpath_overrides_runpath=yes 15866 hardcode_into_libs=yes 15867 if test yes = "$with_gnu_ld"; then 15868 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15869 else 15870 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15871 case $host_os in 15872 sco3.2v5*) 15873 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15874 ;; 15875 esac 15876 fi 15877 sys_lib_dlsearch_path_spec='/usr/lib' 15878 ;; 15879 15880tpf*) 15881 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15882 version_type=linux # correct to gnu/linux during the next big refactor 15883 need_lib_prefix=no 15884 need_version=no 15885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15886 shlibpath_var=LD_LIBRARY_PATH 15887 shlibpath_overrides_runpath=no 15888 hardcode_into_libs=yes 15889 ;; 15890 15891uts4*) 15892 version_type=linux # correct to gnu/linux during the next big refactor 15893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15894 soname_spec='$libname$release$shared_ext$major' 15895 shlibpath_var=LD_LIBRARY_PATH 15896 ;; 15897 15898*) 15899 dynamic_linker=no 15900 ;; 15901esac 15902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15903printf "%s\n" "$dynamic_linker" >&6; } 15904test no = "$dynamic_linker" && can_build_shared=no 15905 15906variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15907if test yes = "$GCC"; then 15908 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15909fi 15910 15911if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15912 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15913fi 15914 15915if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15916 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15917fi 15918 15919# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15920configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15921 15922# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15923func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15924 15925# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15926configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16025printf %s "checking how to hardcode library paths into programs... " >&6; } 16026hardcode_action= 16027if test -n "$hardcode_libdir_flag_spec" || 16028 test -n "$runpath_var" || 16029 test yes = "$hardcode_automatic"; then 16030 16031 # We can hardcode non-existent directories. 16032 if test no != "$hardcode_direct" && 16033 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16034 # have to relink, otherwise we might link with an installed library 16035 # when we should be linking with a yet-to-be-installed one 16036 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 16037 test no != "$hardcode_minus_L"; then 16038 # Linking always hardcodes the temporary library directory. 16039 hardcode_action=relink 16040 else 16041 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16042 hardcode_action=immediate 16043 fi 16044else 16045 # We cannot hardcode anything, or else we can only hardcode existing 16046 # directories. 16047 hardcode_action=unsupported 16048fi 16049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 16050printf "%s\n" "$hardcode_action" >&6; } 16051 16052if test relink = "$hardcode_action" || 16053 test yes = "$inherit_rpath"; then 16054 # Fast installation is not supported 16055 enable_fast_install=no 16056elif test yes = "$shlibpath_overrides_runpath" || 16057 test no = "$enable_shared"; then 16058 # Fast installation is not necessary 16059 enable_fast_install=needless 16060fi 16061 16062 16063 16064 16065 16066 16067 if test yes != "$enable_dlopen"; then 16068 enable_dlopen=unknown 16069 enable_dlopen_self=unknown 16070 enable_dlopen_self_static=unknown 16071else 16072 lt_cv_dlopen=no 16073 lt_cv_dlopen_libs= 16074 16075 case $host_os in 16076 beos*) 16077 lt_cv_dlopen=load_add_on 16078 lt_cv_dlopen_libs= 16079 lt_cv_dlopen_self=yes 16080 ;; 16081 16082 mingw* | pw32* | cegcc*) 16083 lt_cv_dlopen=LoadLibrary 16084 lt_cv_dlopen_libs= 16085 ;; 16086 16087 cygwin*) 16088 lt_cv_dlopen=dlopen 16089 lt_cv_dlopen_libs= 16090 ;; 16091 16092 darwin*) 16093 # if libdl is installed we need to link against it 16094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16095printf %s "checking for dlopen in -ldl... " >&6; } 16096if test ${ac_cv_lib_dl_dlopen+y} 16097then : 16098 printf %s "(cached) " >&6 16099else $as_nop 16100 ac_check_lib_save_LIBS=$LIBS 16101LIBS="-ldl $LIBS" 16102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16103/* end confdefs.h. */ 16104 16105/* Override any GCC internal prototype to avoid an error. 16106 Use char because int might match the return type of a GCC 16107 builtin and then its argument prototype would still apply. */ 16108char dlopen (); 16109int 16110main (void) 16111{ 16112return dlopen (); 16113 ; 16114 return 0; 16115} 16116_ACEOF 16117if ac_fn_c_try_link "$LINENO" 16118then : 16119 ac_cv_lib_dl_dlopen=yes 16120else $as_nop 16121 ac_cv_lib_dl_dlopen=no 16122fi 16123rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16124 conftest$ac_exeext conftest.$ac_ext 16125LIBS=$ac_check_lib_save_LIBS 16126fi 16127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16128printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 16129if test "x$ac_cv_lib_dl_dlopen" = xyes 16130then : 16131 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 16132else $as_nop 16133 16134 lt_cv_dlopen=dyld 16135 lt_cv_dlopen_libs= 16136 lt_cv_dlopen_self=yes 16137 16138fi 16139 16140 ;; 16141 16142 tpf*) 16143 # Don't try to run any link tests for TPF. We know it's impossible 16144 # because TPF is a cross-compiler, and we know how we open DSOs. 16145 lt_cv_dlopen=dlopen 16146 lt_cv_dlopen_libs= 16147 lt_cv_dlopen_self=no 16148 ;; 16149 16150 *) 16151 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 16152if test "x$ac_cv_func_shl_load" = xyes 16153then : 16154 lt_cv_dlopen=shl_load 16155else $as_nop 16156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 16157printf %s "checking for shl_load in -ldld... " >&6; } 16158if test ${ac_cv_lib_dld_shl_load+y} 16159then : 16160 printf %s "(cached) " >&6 16161else $as_nop 16162 ac_check_lib_save_LIBS=$LIBS 16163LIBS="-ldld $LIBS" 16164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16165/* end confdefs.h. */ 16166 16167/* Override any GCC internal prototype to avoid an error. 16168 Use char because int might match the return type of a GCC 16169 builtin and then its argument prototype would still apply. */ 16170char shl_load (); 16171int 16172main (void) 16173{ 16174return shl_load (); 16175 ; 16176 return 0; 16177} 16178_ACEOF 16179if ac_fn_c_try_link "$LINENO" 16180then : 16181 ac_cv_lib_dld_shl_load=yes 16182else $as_nop 16183 ac_cv_lib_dld_shl_load=no 16184fi 16185rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16186 conftest$ac_exeext conftest.$ac_ext 16187LIBS=$ac_check_lib_save_LIBS 16188fi 16189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 16190printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 16191if test "x$ac_cv_lib_dld_shl_load" = xyes 16192then : 16193 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 16194else $as_nop 16195 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 16196if test "x$ac_cv_func_dlopen" = xyes 16197then : 16198 lt_cv_dlopen=dlopen 16199else $as_nop 16200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16201printf %s "checking for dlopen in -ldl... " >&6; } 16202if test ${ac_cv_lib_dl_dlopen+y} 16203then : 16204 printf %s "(cached) " >&6 16205else $as_nop 16206 ac_check_lib_save_LIBS=$LIBS 16207LIBS="-ldl $LIBS" 16208cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16209/* end confdefs.h. */ 16210 16211/* Override any GCC internal prototype to avoid an error. 16212 Use char because int might match the return type of a GCC 16213 builtin and then its argument prototype would still apply. */ 16214char dlopen (); 16215int 16216main (void) 16217{ 16218return dlopen (); 16219 ; 16220 return 0; 16221} 16222_ACEOF 16223if ac_fn_c_try_link "$LINENO" 16224then : 16225 ac_cv_lib_dl_dlopen=yes 16226else $as_nop 16227 ac_cv_lib_dl_dlopen=no 16228fi 16229rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16230 conftest$ac_exeext conftest.$ac_ext 16231LIBS=$ac_check_lib_save_LIBS 16232fi 16233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16234printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 16235if test "x$ac_cv_lib_dl_dlopen" = xyes 16236then : 16237 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 16238else $as_nop 16239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 16240printf %s "checking for dlopen in -lsvld... " >&6; } 16241if test ${ac_cv_lib_svld_dlopen+y} 16242then : 16243 printf %s "(cached) " >&6 16244else $as_nop 16245 ac_check_lib_save_LIBS=$LIBS 16246LIBS="-lsvld $LIBS" 16247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16248/* end confdefs.h. */ 16249 16250/* Override any GCC internal prototype to avoid an error. 16251 Use char because int might match the return type of a GCC 16252 builtin and then its argument prototype would still apply. */ 16253char dlopen (); 16254int 16255main (void) 16256{ 16257return dlopen (); 16258 ; 16259 return 0; 16260} 16261_ACEOF 16262if ac_fn_c_try_link "$LINENO" 16263then : 16264 ac_cv_lib_svld_dlopen=yes 16265else $as_nop 16266 ac_cv_lib_svld_dlopen=no 16267fi 16268rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16269 conftest$ac_exeext conftest.$ac_ext 16270LIBS=$ac_check_lib_save_LIBS 16271fi 16272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 16273printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 16274if test "x$ac_cv_lib_svld_dlopen" = xyes 16275then : 16276 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 16277else $as_nop 16278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 16279printf %s "checking for dld_link in -ldld... " >&6; } 16280if test ${ac_cv_lib_dld_dld_link+y} 16281then : 16282 printf %s "(cached) " >&6 16283else $as_nop 16284 ac_check_lib_save_LIBS=$LIBS 16285LIBS="-ldld $LIBS" 16286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16287/* end confdefs.h. */ 16288 16289/* Override any GCC internal prototype to avoid an error. 16290 Use char because int might match the return type of a GCC 16291 builtin and then its argument prototype would still apply. */ 16292char dld_link (); 16293int 16294main (void) 16295{ 16296return dld_link (); 16297 ; 16298 return 0; 16299} 16300_ACEOF 16301if ac_fn_c_try_link "$LINENO" 16302then : 16303 ac_cv_lib_dld_dld_link=yes 16304else $as_nop 16305 ac_cv_lib_dld_dld_link=no 16306fi 16307rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16308 conftest$ac_exeext conftest.$ac_ext 16309LIBS=$ac_check_lib_save_LIBS 16310fi 16311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 16312printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 16313if test "x$ac_cv_lib_dld_dld_link" = xyes 16314then : 16315 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 16316fi 16317 16318 16319fi 16320 16321 16322fi 16323 16324 16325fi 16326 16327 16328fi 16329 16330 16331fi 16332 16333 ;; 16334 esac 16335 16336 if test no = "$lt_cv_dlopen"; then 16337 enable_dlopen=no 16338 else 16339 enable_dlopen=yes 16340 fi 16341 16342 case $lt_cv_dlopen in 16343 dlopen) 16344 save_CPPFLAGS=$CPPFLAGS 16345 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 16346 16347 save_LDFLAGS=$LDFLAGS 16348 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 16349 16350 save_LIBS=$LIBS 16351 LIBS="$lt_cv_dlopen_libs $LIBS" 16352 16353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 16354printf %s "checking whether a program can dlopen itself... " >&6; } 16355if test ${lt_cv_dlopen_self+y} 16356then : 16357 printf %s "(cached) " >&6 16358else $as_nop 16359 if test yes = "$cross_compiling"; then : 16360 lt_cv_dlopen_self=cross 16361else 16362 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16363 lt_status=$lt_dlunknown 16364 cat > conftest.$ac_ext <<_LT_EOF 16365#line $LINENO "configure" 16366#include "confdefs.h" 16367 16368#if HAVE_DLFCN_H 16369#include <dlfcn.h> 16370#endif 16371 16372#include <stdio.h> 16373 16374#ifdef RTLD_GLOBAL 16375# define LT_DLGLOBAL RTLD_GLOBAL 16376#else 16377# ifdef DL_GLOBAL 16378# define LT_DLGLOBAL DL_GLOBAL 16379# else 16380# define LT_DLGLOBAL 0 16381# endif 16382#endif 16383 16384/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16385 find out it does not work in some platform. */ 16386#ifndef LT_DLLAZY_OR_NOW 16387# ifdef RTLD_LAZY 16388# define LT_DLLAZY_OR_NOW RTLD_LAZY 16389# else 16390# ifdef DL_LAZY 16391# define LT_DLLAZY_OR_NOW DL_LAZY 16392# else 16393# ifdef RTLD_NOW 16394# define LT_DLLAZY_OR_NOW RTLD_NOW 16395# else 16396# ifdef DL_NOW 16397# define LT_DLLAZY_OR_NOW DL_NOW 16398# else 16399# define LT_DLLAZY_OR_NOW 0 16400# endif 16401# endif 16402# endif 16403# endif 16404#endif 16405 16406/* When -fvisibility=hidden is used, assume the code has been annotated 16407 correspondingly for the symbols needed. */ 16408#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16409int fnord () __attribute__((visibility("default"))); 16410#endif 16411 16412int fnord () { return 42; } 16413int main () 16414{ 16415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16416 int status = $lt_dlunknown; 16417 16418 if (self) 16419 { 16420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16421 else 16422 { 16423 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16424 else puts (dlerror ()); 16425 } 16426 /* dlclose (self); */ 16427 } 16428 else 16429 puts (dlerror ()); 16430 16431 return status; 16432} 16433_LT_EOF 16434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16435 (eval $ac_link) 2>&5 16436 ac_status=$? 16437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16438 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 16439 (./conftest; exit; ) >&5 2>/dev/null 16440 lt_status=$? 16441 case x$lt_status in 16442 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 16443 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 16444 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 16445 esac 16446 else : 16447 # compilation failed 16448 lt_cv_dlopen_self=no 16449 fi 16450fi 16451rm -fr conftest* 16452 16453 16454fi 16455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 16456printf "%s\n" "$lt_cv_dlopen_self" >&6; } 16457 16458 if test yes = "$lt_cv_dlopen_self"; then 16459 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 16460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 16461printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 16462if test ${lt_cv_dlopen_self_static+y} 16463then : 16464 printf %s "(cached) " >&6 16465else $as_nop 16466 if test yes = "$cross_compiling"; then : 16467 lt_cv_dlopen_self_static=cross 16468else 16469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16470 lt_status=$lt_dlunknown 16471 cat > conftest.$ac_ext <<_LT_EOF 16472#line $LINENO "configure" 16473#include "confdefs.h" 16474 16475#if HAVE_DLFCN_H 16476#include <dlfcn.h> 16477#endif 16478 16479#include <stdio.h> 16480 16481#ifdef RTLD_GLOBAL 16482# define LT_DLGLOBAL RTLD_GLOBAL 16483#else 16484# ifdef DL_GLOBAL 16485# define LT_DLGLOBAL DL_GLOBAL 16486# else 16487# define LT_DLGLOBAL 0 16488# endif 16489#endif 16490 16491/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16492 find out it does not work in some platform. */ 16493#ifndef LT_DLLAZY_OR_NOW 16494# ifdef RTLD_LAZY 16495# define LT_DLLAZY_OR_NOW RTLD_LAZY 16496# else 16497# ifdef DL_LAZY 16498# define LT_DLLAZY_OR_NOW DL_LAZY 16499# else 16500# ifdef RTLD_NOW 16501# define LT_DLLAZY_OR_NOW RTLD_NOW 16502# else 16503# ifdef DL_NOW 16504# define LT_DLLAZY_OR_NOW DL_NOW 16505# else 16506# define LT_DLLAZY_OR_NOW 0 16507# endif 16508# endif 16509# endif 16510# endif 16511#endif 16512 16513/* When -fvisibility=hidden is used, assume the code has been annotated 16514 correspondingly for the symbols needed. */ 16515#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16516int fnord () __attribute__((visibility("default"))); 16517#endif 16518 16519int fnord () { return 42; } 16520int main () 16521{ 16522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16523 int status = $lt_dlunknown; 16524 16525 if (self) 16526 { 16527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16528 else 16529 { 16530 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16531 else puts (dlerror ()); 16532 } 16533 /* dlclose (self); */ 16534 } 16535 else 16536 puts (dlerror ()); 16537 16538 return status; 16539} 16540_LT_EOF 16541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16542 (eval $ac_link) 2>&5 16543 ac_status=$? 16544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16545 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 16546 (./conftest; exit; ) >&5 2>/dev/null 16547 lt_status=$? 16548 case x$lt_status in 16549 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 16550 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 16551 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 16552 esac 16553 else : 16554 # compilation failed 16555 lt_cv_dlopen_self_static=no 16556 fi 16557fi 16558rm -fr conftest* 16559 16560 16561fi 16562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 16563printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 16564 fi 16565 16566 CPPFLAGS=$save_CPPFLAGS 16567 LDFLAGS=$save_LDFLAGS 16568 LIBS=$save_LIBS 16569 ;; 16570 esac 16571 16572 case $lt_cv_dlopen_self in 16573 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 16574 *) enable_dlopen_self=unknown ;; 16575 esac 16576 16577 case $lt_cv_dlopen_self_static in 16578 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 16579 *) enable_dlopen_self_static=unknown ;; 16580 esac 16581fi 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599striplib= 16600old_striplib= 16601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 16602printf %s "checking whether stripping libraries is possible... " >&6; } 16603if test -z "$STRIP"; then 16604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16605printf "%s\n" "no" >&6; } 16606else 16607 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 16608 old_striplib="$STRIP --strip-debug" 16609 striplib="$STRIP --strip-unneeded" 16610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16611printf "%s\n" "yes" >&6; } 16612 else 16613 case $host_os in 16614 darwin*) 16615 # FIXME - insert some real tests, host_os isn't really good enough 16616 striplib="$STRIP -x" 16617 old_striplib="$STRIP -S" 16618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16619printf "%s\n" "yes" >&6; } 16620 ;; 16621 freebsd*) 16622 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 16623 old_striplib="$STRIP --strip-debug" 16624 striplib="$STRIP --strip-unneeded" 16625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16626printf "%s\n" "yes" >&6; } 16627 else 16628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16629printf "%s\n" "no" >&6; } 16630 fi 16631 ;; 16632 *) 16633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16634printf "%s\n" "no" >&6; } 16635 ;; 16636 esac 16637 fi 16638fi 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 # Report what library types will actually be built 16652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 16653printf %s "checking if libtool supports shared libraries... " >&6; } 16654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 16655printf "%s\n" "$can_build_shared" >&6; } 16656 16657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 16658printf %s "checking whether to build shared libraries... " >&6; } 16659 test no = "$can_build_shared" && enable_shared=no 16660 16661 # On AIX, shared libraries and static libraries use the same namespace, and 16662 # are all built from PIC. 16663 case $host_os in 16664 aix3*) 16665 test yes = "$enable_shared" && enable_static=no 16666 if test -n "$RANLIB"; then 16667 archive_cmds="$archive_cmds~\$RANLIB \$lib" 16668 postinstall_cmds='$RANLIB $lib' 16669 fi 16670 ;; 16671 16672 aix[4-9]*) 16673 if test ia64 != "$host_cpu"; then 16674 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 16675 yes,aix,yes) ;; # shared object as lib.so file only 16676 yes,svr4,*) ;; # shared object as lib.so archive member only 16677 yes,*) enable_static=no ;; # shared object in lib.a archive as well 16678 esac 16679 fi 16680 ;; 16681 esac 16682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 16683printf "%s\n" "$enable_shared" >&6; } 16684 16685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 16686printf %s "checking whether to build static libraries... " >&6; } 16687 # Make sure either enable_shared or enable_static is yes. 16688 test yes = "$enable_shared" || enable_static=yes 16689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 16690printf "%s\n" "$enable_static" >&6; } 16691 16692 16693 16694 16695fi 16696ac_ext=c 16697ac_cpp='$CPP $CPPFLAGS' 16698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16700ac_compiler_gnu=$ac_cv_c_compiler_gnu 16701 16702CC=$lt_save_CC 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 ac_config_commands="$ac_config_commands libtool" 16719 16720 16721 16722 16723# Only expand once: 16724 16725 16726 16727DLOPEN_LIBS="$lt_cv_dlopen_libs" 16728 16729 16730if test "$enable_static" != "no" && test "$enable_developer" != "yes" 16731then : 16732 as_fn_error $? "Static linking is not supported as it disables dlopen() and certain security features (e.g. RELRO, ASLR)" "$LINENO" 5 16733fi 16734 16735 16736# 16737# Set the default CFLAGS, CPPFLAGS, and LDFLAGS 16738# 16739STD_CFLAGS="-Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow" 16740 16741# These should be always errors 16742STD_CFLAGS="$STD_CFLAGS -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -Werror=vla" 16743 16744# Disable false positives generated by GCC 11+ and ASAN 16745cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16746/* end confdefs.h. */ 16747 16748int 16749main (void) 16750{ 16751#if __GNUC__ >= 11 && defined(__SANITIZE_ADDRESS__) 16752 #error Address Sanitizer enabled 16753 #endif 16754 16755 ; 16756 return 0; 16757} 16758_ACEOF 16759if ac_fn_c_try_compile "$LINENO" 16760then : 16761 16762else $as_nop 16763 STD_CFLAGS="$STD_CFLAGS -Wno-stringop-overread" 16764fi 16765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16766 16767# Silence GCC 11.1+ note about the changed alignment, see GL #4841 16768case $target_cpu in #( 16769 i?86) : 16770 STD_CFLAGS="$STD_CFLAGS -Wno-psabi" ;; #( 16771 *) : 16772 ;; 16773esac 16774 16775STD_LDFLAGS="" 16776 16777# ... except in test code 16778TEST_CFLAGS="-Wno-vla" 16779 16780# Fortify the sources by default (we undefine the macro first in case 16781# the compiler has a different built-in setting) 16782STD_CPPFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" 16783 16784# 16785# Additional compiler settings. 16786# 16787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5 16788printf %s "checking whether C compiler accepts -fno-strict-aliasing... " >&6; } 16789if test ${ax_cv_check_cflags___fno_strict_aliasing+y} 16790then : 16791 printf %s "(cached) " >&6 16792else $as_nop 16793 16794 ax_check_save_flags=$CFLAGS 16795 CFLAGS="$CFLAGS -fno-strict-aliasing" 16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16797/* end confdefs.h. */ 16798 16799int 16800main (void) 16801{ 16802 16803 ; 16804 return 0; 16805} 16806_ACEOF 16807if ac_fn_c_try_compile "$LINENO" 16808then : 16809 ax_cv_check_cflags___fno_strict_aliasing=yes 16810else $as_nop 16811 ax_cv_check_cflags___fno_strict_aliasing=no 16812fi 16813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16814 CFLAGS=$ax_check_save_flags 16815fi 16816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5 16817printf "%s\n" "$ax_cv_check_cflags___fno_strict_aliasing" >&6; } 16818if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes 16819then : 16820 STD_CFLAGS="$STD_CFLAGS -fno-strict-aliasing" 16821else $as_nop 16822 : 16823fi 16824 16825# Clang only issues a warning so use -Werror to force a error. 16826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks" >&5 16827printf %s "checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks... " >&6; } 16828if test ${ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks+y} 16829then : 16830 printf %s "(cached) " >&6 16831else $as_nop 16832 16833 ax_check_save_flags=$CFLAGS 16834 CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks" 16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16836/* end confdefs.h. */ 16837 16838int 16839main (void) 16840{ 16841 16842 ; 16843 return 0; 16844} 16845_ACEOF 16846if ac_fn_c_try_compile "$LINENO" 16847then : 16848 ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=yes 16849else $as_nop 16850 ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=no 16851fi 16852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16853 CFLAGS=$ax_check_save_flags 16854fi 16855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&5 16856printf "%s\n" "$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&6; } 16857if test "x$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" = xyes 16858then : 16859 STD_CFLAGS="$STD_CFLAGS -fno-delete-null-pointer-checks" 16860else $as_nop 16861 : 16862fi 16863 16864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fdiagnostics-show-option" >&5 16865printf %s "checking whether C compiler accepts -fdiagnostics-show-option... " >&6; } 16866if test ${ax_cv_check_cflags___fdiagnostics_show_option+y} 16867then : 16868 printf %s "(cached) " >&6 16869else $as_nop 16870 16871 ax_check_save_flags=$CFLAGS 16872 CFLAGS="$CFLAGS -fdiagnostics-show-option" 16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16874/* end confdefs.h. */ 16875 16876int 16877main (void) 16878{ 16879 16880 ; 16881 return 0; 16882} 16883_ACEOF 16884if ac_fn_c_try_compile "$LINENO" 16885then : 16886 ax_cv_check_cflags___fdiagnostics_show_option=yes 16887else $as_nop 16888 ax_cv_check_cflags___fdiagnostics_show_option=no 16889fi 16890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16891 CFLAGS=$ax_check_save_flags 16892fi 16893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fdiagnostics_show_option" >&5 16894printf "%s\n" "$ax_cv_check_cflags___fdiagnostics_show_option" >&6; } 16895if test "x$ax_cv_check_cflags___fdiagnostics_show_option" = xyes 16896then : 16897 STD_CFLAGS="$STD_CFLAGS -fdiagnostics-show-option" 16898else $as_nop 16899 : 16900fi 16901 16902 16903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--export-dynamic" >&5 16904printf %s "checking whether the linker accepts -Wl,--export-dynamic... " >&6; } 16905if test ${ax_cv_check_ldflags___Wl___export_dynamic+y} 16906then : 16907 printf %s "(cached) " >&6 16908else $as_nop 16909 16910 ax_check_save_flags=$LDFLAGS 16911 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 16912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16913/* end confdefs.h. */ 16914 16915int 16916main (void) 16917{ 16918 16919 ; 16920 return 0; 16921} 16922_ACEOF 16923if ac_fn_c_try_link "$LINENO" 16924then : 16925 ax_cv_check_ldflags___Wl___export_dynamic=yes 16926else $as_nop 16927 ax_cv_check_ldflags___Wl___export_dynamic=no 16928fi 16929rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16930 conftest$ac_exeext conftest.$ac_ext 16931 LDFLAGS=$ax_check_save_flags 16932fi 16933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___export_dynamic" >&5 16934printf "%s\n" "$ax_cv_check_ldflags___Wl___export_dynamic" >&6; } 16935if test "x$ax_cv_check_ldflags___Wl___export_dynamic" = xyes 16936then : 16937 STD_LDFLAGS="$STD_LDFLAGS -Wl,--export-dynamic" 16938else $as_nop 16939 : 16940fi 16941 16942 16943host_macos=no 16944case $host in #( 16945 *-darwin*) : 16946 host_macos=yes ;; #( 16947 *) : 16948 ;; 16949esac 16950 if test "$host_macos" = "yes"; then 16951 HOST_MACOS_TRUE= 16952 HOST_MACOS_FALSE='#' 16953else 16954 HOST_MACOS_TRUE='#' 16955 HOST_MACOS_FALSE= 16956fi 16957 16958 16959# 16960# Change defaults for developers if not explicity set. 16961# Needs to be before the option is tested. 16962# 16963# [pairwise: --enable-developer, --disable-developer] 16964# Check whether --enable-developer was given. 16965if test ${enable_developer+y} 16966then : 16967 enableval=$enable_developer; 16968fi 16969 16970 16971if test "$enable_developer" = "yes" 16972then : 16973 DEVELOPER_MODE=yes 16974 STD_CPPFLAGS="$STD_CPPFLAGS -DISC_MEM_DEFAULTFILL=1 -DISC_MEM_TRACKLINES=1 -DISC_LIST_CHECKINIT=1 -DISC_STATS_CHECKUNDERFLOW=1 -DDNS_RBTDB_STRONG_RWLOCK_CHECK=1 -DISC_MUTEX_ERROR_CHECK=1" 16975 test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes 16976 test "${enable_querytrace+set}" = set || enable_querytrace=yes 16977 test "${with_cmocka+set}" = set || with_cmocka=yes 16978 test "${with_zlib+set}" = set || with_zlib=yes 16979 test "${enable_warn_error+set}" = set || enable_warn_error=yes 16980 16981fi 16982 16983 16984 16985 16986 16987 16988 16989# [pairwise: --enable-warn-error, --disable-warn-error] 16990# Check whether --enable-warn_error was given. 16991if test ${enable_warn_error+y} 16992then : 16993 enableval=$enable_warn_error; 16994else $as_nop 16995 enable_warn_error=no 16996fi 16997 16998if test "$enable_warn_error" = "yes" 16999then : 17000 STD_CFLAGS="$STD_CFLAGS -Werror" 17001fi 17002 17003# 17004# Use pkg-config 17005# 17006 17007 17008 17009 17010 17011 17012 17013 17014if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 17015 if test -n "$ac_tool_prefix"; then 17016 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 17017set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 17018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17019printf %s "checking for $ac_word... " >&6; } 17020if test ${ac_cv_path_PKG_CONFIG+y} 17021then : 17022 printf %s "(cached) " >&6 17023else $as_nop 17024 case $PKG_CONFIG in 17025 [\\/]* | ?:[\\/]*) 17026 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17027 ;; 17028 *) 17029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17030for as_dir in $PATH 17031do 17032 IFS=$as_save_IFS 17033 case $as_dir in #((( 17034 '') as_dir=./ ;; 17035 */) ;; 17036 *) as_dir=$as_dir/ ;; 17037 esac 17038 for ac_exec_ext in '' $ac_executable_extensions; do 17039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17040 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 17041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17042 break 2 17043 fi 17044done 17045 done 17046IFS=$as_save_IFS 17047 17048 ;; 17049esac 17050fi 17051PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17052if test -n "$PKG_CONFIG"; then 17053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17054printf "%s\n" "$PKG_CONFIG" >&6; } 17055else 17056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17057printf "%s\n" "no" >&6; } 17058fi 17059 17060 17061fi 17062if test -z "$ac_cv_path_PKG_CONFIG"; then 17063 ac_pt_PKG_CONFIG=$PKG_CONFIG 17064 # Extract the first word of "pkg-config", so it can be a program name with args. 17065set dummy pkg-config; ac_word=$2 17066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17067printf %s "checking for $ac_word... " >&6; } 17068if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 17069then : 17070 printf %s "(cached) " >&6 17071else $as_nop 17072 case $ac_pt_PKG_CONFIG in 17073 [\\/]* | ?:[\\/]*) 17074 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 17075 ;; 17076 *) 17077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17078for as_dir in $PATH 17079do 17080 IFS=$as_save_IFS 17081 case $as_dir in #((( 17082 '') as_dir=./ ;; 17083 */) ;; 17084 *) as_dir=$as_dir/ ;; 17085 esac 17086 for ac_exec_ext in '' $ac_executable_extensions; do 17087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17088 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 17089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17090 break 2 17091 fi 17092done 17093 done 17094IFS=$as_save_IFS 17095 17096 ;; 17097esac 17098fi 17099ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 17100if test -n "$ac_pt_PKG_CONFIG"; then 17101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 17102printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 17103else 17104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17105printf "%s\n" "no" >&6; } 17106fi 17107 17108 if test "x$ac_pt_PKG_CONFIG" = x; then 17109 PKG_CONFIG="" 17110 else 17111 case $cross_compiling:$ac_tool_warned in 17112yes:) 17113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17114printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17115ac_tool_warned=yes ;; 17116esac 17117 PKG_CONFIG=$ac_pt_PKG_CONFIG 17118 fi 17119else 17120 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 17121fi 17122 17123fi 17124if test -n "$PKG_CONFIG"; then 17125 _pkg_min_version=0.9.0 17126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 17127printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 17128 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 17129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17130printf "%s\n" "yes" >&6; } 17131 else 17132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17133printf "%s\n" "no" >&6; } 17134 PKG_CONFIG="" 17135 fi 17136fi 17137if test -z "$PKG_CONFIG" 17138then : 17139 as_fn_error $? "The pkg-config script could not be found or is too old." "$LINENO" 5 17140fi 17141 17142# 17143# Pick Userspace-RCU flavor (developer only option) 17144# 17145# [pairwise: skip] 17146 17147# Check whether --with-liburcu was given. 17148if test ${with_liburcu+y} 17149then : 17150 withval=$with_liburcu; 17151else $as_nop 17152 with_liburcu=membarrier 17153fi 17154 17155 17156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking liburcu flavor" >&5 17157printf %s "checking liburcu flavor... " >&6; } 17158case $with_liburcu in #( 17159 membarrier) : 17160 RCU_FLAVOR="liburcu" 17161 17162printf "%s\n" "#define RCU_MEMBARRIER 1" >>confdefs.h 17163 ;; #( 17164 qsbr) : 17165 RCU_FLAVOR="liburcu-qsbr" 17166 17167printf "%s\n" "#define RCU_QSBR 1" >>confdefs.h 17168 ;; #( 17169 mb) : 17170 RCU_FLAVOR="liburcu-mb" 17171 17172printf "%s\n" "#define RCU_MB 1" >>confdefs.h 17173 ;; #( 17174 bp) : 17175 RCU_FLAVOR="liburcu-bp" 17176 17177printf "%s\n" "#define RCU_BP 1" >>confdefs.h 17178 ;; #( 17179 *) : 17180 as_fn_error $? "Invalid Userspace-RCU flavor picked" "$LINENO" 5 ;; 17181esac 17182 17183if test "$with_liburcu" != "membarrier" && test "$enable_developer" != "yes" 17184then : 17185 as_fn_error $? "Changing Userspace-RCU variant is allowed only in developer mode" "$LINENO" 5 17186fi 17187 17188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RCU_FLAVOR" >&5 17189printf "%s\n" "$RCU_FLAVOR" >&6; } 17190 17191# 17192# liburcu << v0.13.0 didn't add -lurcu-common and some toolchains would 17193# not add it automatically - we need to add it explicitly in such case. 17194# 17195 17196pkg_failed=no 17197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0" >&5 17198printf %s "checking for $RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0... " >&6; } 17199 17200if test -n "$LIBURCU_CFLAGS"; then 17201 pkg_cv_LIBURCU_CFLAGS="$LIBURCU_CFLAGS" 17202 elif test -n "$PKG_CONFIG"; then 17203 if test -n "$PKG_CONFIG" && \ 17204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0\""; } >&5 17205 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0") 2>&5 17206 ac_status=$? 17207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17208 test $ac_status = 0; }; then 17209 pkg_cv_LIBURCU_CFLAGS=`$PKG_CONFIG --cflags "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0" 2>/dev/null` 17210 test "x$?" != "x0" && pkg_failed=yes 17211else 17212 pkg_failed=yes 17213fi 17214 else 17215 pkg_failed=untried 17216fi 17217if test -n "$LIBURCU_LIBS"; then 17218 pkg_cv_LIBURCU_LIBS="$LIBURCU_LIBS" 17219 elif test -n "$PKG_CONFIG"; then 17220 if test -n "$PKG_CONFIG" && \ 17221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0\""; } >&5 17222 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0") 2>&5 17223 ac_status=$? 17224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17225 test $ac_status = 0; }; then 17226 pkg_cv_LIBURCU_LIBS=`$PKG_CONFIG --libs "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0" 2>/dev/null` 17227 test "x$?" != "x0" && pkg_failed=yes 17228else 17229 pkg_failed=yes 17230fi 17231 else 17232 pkg_failed=untried 17233fi 17234 17235 17236 17237if test $pkg_failed = yes; then 17238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17239printf "%s\n" "no" >&6; } 17240 17241if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17242 _pkg_short_errors_supported=yes 17243else 17244 _pkg_short_errors_supported=no 17245fi 17246 if test $_pkg_short_errors_supported = yes; then 17247 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0" 2>&1` 17248 else 17249 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0" 2>&1` 17250 fi 17251 # Put the nasty error message in config.log where it belongs 17252 echo "$LIBURCU_PKG_ERRORS" >&5 17253 17254 17255pkg_failed=no 17256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" >&5 17257printf %s "checking for $RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0... " >&6; } 17258 17259if test -n "$LIBURCU_CFLAGS"; then 17260 pkg_cv_LIBURCU_CFLAGS="$LIBURCU_CFLAGS" 17261 elif test -n "$PKG_CONFIG"; then 17262 if test -n "$PKG_CONFIG" && \ 17263 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0\""; } >&5 17264 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0") 2>&5 17265 ac_status=$? 17266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17267 test $ac_status = 0; }; then 17268 pkg_cv_LIBURCU_CFLAGS=`$PKG_CONFIG --cflags "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>/dev/null` 17269 test "x$?" != "x0" && pkg_failed=yes 17270else 17271 pkg_failed=yes 17272fi 17273 else 17274 pkg_failed=untried 17275fi 17276if test -n "$LIBURCU_LIBS"; then 17277 pkg_cv_LIBURCU_LIBS="$LIBURCU_LIBS" 17278 elif test -n "$PKG_CONFIG"; then 17279 if test -n "$PKG_CONFIG" && \ 17280 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0\""; } >&5 17281 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0") 2>&5 17282 ac_status=$? 17283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17284 test $ac_status = 0; }; then 17285 pkg_cv_LIBURCU_LIBS=`$PKG_CONFIG --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>/dev/null` 17286 test "x$?" != "x0" && pkg_failed=yes 17287else 17288 pkg_failed=yes 17289fi 17290 else 17291 pkg_failed=untried 17292fi 17293 17294 17295 17296if test $pkg_failed = yes; then 17297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17298printf "%s\n" "no" >&6; } 17299 17300if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17301 _pkg_short_errors_supported=yes 17302else 17303 _pkg_short_errors_supported=no 17304fi 17305 if test $_pkg_short_errors_supported = yes; then 17306 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>&1` 17307 else 17308 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>&1` 17309 fi 17310 # Put the nasty error message in config.log where it belongs 17311 echo "$LIBURCU_PKG_ERRORS" >&5 17312 17313 as_fn_error $? "Package requirements ($RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0) were not met: 17314 17315$LIBURCU_PKG_ERRORS 17316 17317Consider adjusting the PKG_CONFIG_PATH environment variable if you 17318installed software in a non-standard prefix. 17319 17320Alternatively, you may set the environment variables LIBURCU_CFLAGS 17321and LIBURCU_LIBS to avoid the need to call pkg-config. 17322See the pkg-config man page for more details." "$LINENO" 5 17323elif test $pkg_failed = untried; then 17324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17325printf "%s\n" "no" >&6; } 17326 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17327printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17328as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17329is in your PATH or set the PKG_CONFIG environment variable to the full 17330path to pkg-config. 17331 17332Alternatively, you may set the environment variables LIBURCU_CFLAGS 17333and LIBURCU_LIBS to avoid the need to call pkg-config. 17334See the pkg-config man page for more details. 17335 17336To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17337See \`config.log' for more details" "$LINENO" 5; } 17338else 17339 LIBURCU_CFLAGS=$pkg_cv_LIBURCU_CFLAGS 17340 LIBURCU_LIBS=$pkg_cv_LIBURCU_LIBS 17341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17342printf "%s\n" "yes" >&6; } 17343 LIBURCU_LIBS="$LIBURCU_LIBS -lurcu-common" 17344fi 17345elif test $pkg_failed = untried; then 17346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17347printf "%s\n" "no" >&6; } 17348 17349pkg_failed=no 17350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" >&5 17351printf %s "checking for $RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0... " >&6; } 17352 17353if test -n "$LIBURCU_CFLAGS"; then 17354 pkg_cv_LIBURCU_CFLAGS="$LIBURCU_CFLAGS" 17355 elif test -n "$PKG_CONFIG"; then 17356 if test -n "$PKG_CONFIG" && \ 17357 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0\""; } >&5 17358 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0") 2>&5 17359 ac_status=$? 17360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17361 test $ac_status = 0; }; then 17362 pkg_cv_LIBURCU_CFLAGS=`$PKG_CONFIG --cflags "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>/dev/null` 17363 test "x$?" != "x0" && pkg_failed=yes 17364else 17365 pkg_failed=yes 17366fi 17367 else 17368 pkg_failed=untried 17369fi 17370if test -n "$LIBURCU_LIBS"; then 17371 pkg_cv_LIBURCU_LIBS="$LIBURCU_LIBS" 17372 elif test -n "$PKG_CONFIG"; then 17373 if test -n "$PKG_CONFIG" && \ 17374 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0\""; } >&5 17375 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0") 2>&5 17376 ac_status=$? 17377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17378 test $ac_status = 0; }; then 17379 pkg_cv_LIBURCU_LIBS=`$PKG_CONFIG --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>/dev/null` 17380 test "x$?" != "x0" && pkg_failed=yes 17381else 17382 pkg_failed=yes 17383fi 17384 else 17385 pkg_failed=untried 17386fi 17387 17388 17389 17390if test $pkg_failed = yes; then 17391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17392printf "%s\n" "no" >&6; } 17393 17394if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17395 _pkg_short_errors_supported=yes 17396else 17397 _pkg_short_errors_supported=no 17398fi 17399 if test $_pkg_short_errors_supported = yes; then 17400 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>&1` 17401 else 17402 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>&1` 17403 fi 17404 # Put the nasty error message in config.log where it belongs 17405 echo "$LIBURCU_PKG_ERRORS" >&5 17406 17407 as_fn_error $? "Package requirements ($RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0) were not met: 17408 17409$LIBURCU_PKG_ERRORS 17410 17411Consider adjusting the PKG_CONFIG_PATH environment variable if you 17412installed software in a non-standard prefix. 17413 17414Alternatively, you may set the environment variables LIBURCU_CFLAGS 17415and LIBURCU_LIBS to avoid the need to call pkg-config. 17416See the pkg-config man page for more details." "$LINENO" 5 17417elif test $pkg_failed = untried; then 17418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17419printf "%s\n" "no" >&6; } 17420 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17421printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17422as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17423is in your PATH or set the PKG_CONFIG environment variable to the full 17424path to pkg-config. 17425 17426Alternatively, you may set the environment variables LIBURCU_CFLAGS 17427and LIBURCU_LIBS to avoid the need to call pkg-config. 17428See the pkg-config man page for more details. 17429 17430To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17431See \`config.log' for more details" "$LINENO" 5; } 17432else 17433 LIBURCU_CFLAGS=$pkg_cv_LIBURCU_CFLAGS 17434 LIBURCU_LIBS=$pkg_cv_LIBURCU_LIBS 17435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17436printf "%s\n" "yes" >&6; } 17437 LIBURCU_LIBS="$LIBURCU_LIBS -lurcu-common" 17438fi 17439else 17440 LIBURCU_CFLAGS=$pkg_cv_LIBURCU_CFLAGS 17441 LIBURCU_LIBS=$pkg_cv_LIBURCU_LIBS 17442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17443printf "%s\n" "yes" >&6; } 17444 17445fi 17446 17447 17448printf "%s\n" "#define RCU_FLAVOR \"$RCU_FLAVOR\"" >>confdefs.h 17449 17450 17451 17452if test -n "$RCU_VERSION"; then 17453 pkg_cv_RCU_VERSION="$RCU_VERSION" 17454 elif test -n "$PKG_CONFIG"; then 17455 if test -n "$PKG_CONFIG" && \ 17456 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR\""; } >&5 17457 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR") 2>&5 17458 ac_status=$? 17459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17460 test $ac_status = 0; }; then 17461 pkg_cv_RCU_VERSION=`$PKG_CONFIG --modversion "$RCU_FLAVOR" 2>/dev/null` 17462 test "x$?" != "x0" && pkg_failed=yes 17463else 17464 pkg_failed=yes 17465fi 17466 else 17467 pkg_failed=untried 17468fi 17469RCU_VERSION=$pkg_cv_RCU_VERSION 17470 17471if test "x$RCU_VERSION" = x"" 17472then : 17473 17474fi 17475 17476printf "%s\n" "#define RCU_VERSION \"$RCU_VERSION\"" >>confdefs.h 17477 17478 17479CFLAGS="$CFLAGS $LIBURCU_CFLAGS" 17480LIBS="$LIBS $LIBURCU_LIBS" 17481 17482# 17483# Userspace-RCU inlining doesn't work for rcu_deference() with some combination 17484# of C compiler and library version. 17485# 17486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can inline small liburcu functions" >&5 17487printf %s "checking whether we can inline small liburcu functions... " >&6; } 17488cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17489/* end confdefs.h. */ 17490#define URCU_INLINE_SMALL_FUNCTIONS 1 17491 #include <urcu.h> 17492int 17493main (void) 17494{ 17495struct opaque *a; struct opaque *b = rcu_dereference(a); 17496 ; 17497 return 0; 17498} 17499_ACEOF 17500if ac_fn_c_try_compile "$LINENO" 17501then : 17502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17503printf "%s\n" "yes" >&6; } 17504 17505printf "%s\n" "#define URCU_INLINE_SMALL_FUNCTIONS 1" >>confdefs.h 17506 17507else $as_nop 17508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17509printf "%s\n" "no" >&6; } 17510fi 17511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17512 17513# Fuzzing is not included in pairwise testing as fuzzing tools are 17514# not present in the relevant Docker image. 17515# 17516# [pairwise: skip] 17517# Check whether --enable-fuzzing was given. 17518if test ${enable_fuzzing+y} 17519then : 17520 enableval=$enable_fuzzing; 17521else $as_nop 17522 enable_fuzzing=no 17523fi 17524 17525 17526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5 17527printf %s "checking whether to enable fuzzing mode... " >&6; } 17528case $enable_fuzzing in #( 17529 no) : 17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17531printf "%s\n" "no" >&6; } ;; #( 17532 afl) : 17533 17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5 17535printf "%s\n" "using AFL" >&6; } 17536 17537printf "%s\n" "#define ENABLE_AFL 1" >>confdefs.h 17538 17539 STD_CFLAGS="$STD_CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1" 17540 FUZZ_LOG_COMPILER="afl.sh" ;; #( 17541 libfuzzer) : 17542 17543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5 17544printf "%s\n" "using libFuzzer" >&6; } 17545 STD_CFLAGS="$STD_CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer-no-link,address,undefined" 17546 LDFLAGS="$LDFLAGS -fsanitize=address,undefined" 17547 FUZZ_LDFLAGS="-fsanitize=fuzzer,address,undefined" 17548 FUZZ_LOG_COMPILER="libfuzzer.sh" ;; #( 17549 ossfuzz) : 17550 17551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using OSS-Fuzz" >&5 17552printf "%s\n" "using OSS-Fuzz" >&6; } 17553 FUZZ_LDFLAGS="$LIB_FUZZING_ENGINE" ;; #( 17554 *) : 17555 as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #( 17556 *) : 17557 ;; 17558esac 17559 if test -n "$FUZZ_LOG_COMPILER"; then 17560 HAVE_FUZZ_LOG_COMPILER_TRUE= 17561 HAVE_FUZZ_LOG_COMPILER_FALSE='#' 17562else 17563 HAVE_FUZZ_LOG_COMPILER_TRUE='#' 17564 HAVE_FUZZ_LOG_COMPILER_FALSE= 17565fi 17566 17567 17568 17569 17570if test "$enable_fuzzing" = "afl" 17571then : 17572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5 17573printf %s "checking \"for AFL enabled compiler\"... " >&6; } 17574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17575/* end confdefs.h. */ 17576 17577int 17578main (void) 17579{ 17580#ifndef __AFL_COMPILER 17581 #error AFL compiler required 17582 #endif 17583 17584 ; 17585 return 0; 17586} 17587_ACEOF 17588if ac_fn_c_try_compile "$LINENO" 17589then : 17590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17591printf "%s\n" "yes" >&6; } 17592else $as_nop 17593 as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5 17594fi 17595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17596 17597fi 17598 17599# 17600# Perl is optional; it is used only by some of the system test scripts. 17601# 17602for ac_prog in perl5 perl 17603do 17604 # Extract the first word of "$ac_prog", so it can be a program name with args. 17605set dummy $ac_prog; ac_word=$2 17606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17607printf %s "checking for $ac_word... " >&6; } 17608if test ${ac_cv_path_PERL+y} 17609then : 17610 printf %s "(cached) " >&6 17611else $as_nop 17612 case $PERL in 17613 [\\/]* | ?:[\\/]*) 17614 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 17615 ;; 17616 *) 17617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17618for as_dir in $PATH 17619do 17620 IFS=$as_save_IFS 17621 case $as_dir in #((( 17622 '') as_dir=./ ;; 17623 */) ;; 17624 *) as_dir=$as_dir/ ;; 17625 esac 17626 for ac_exec_ext in '' $ac_executable_extensions; do 17627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17628 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 17629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17630 break 2 17631 fi 17632done 17633 done 17634IFS=$as_save_IFS 17635 17636 ;; 17637esac 17638fi 17639PERL=$ac_cv_path_PERL 17640if test -n "$PERL"; then 17641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 17642printf "%s\n" "$PERL" >&6; } 17643else 17644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17645printf "%s\n" "no" >&6; } 17646fi 17647 17648 17649 test -n "$PERL" && break 17650done 17651 17652 17653 if test -n "$PERL"; then 17654 HAVE_PERL_TRUE= 17655 HAVE_PERL_FALSE='#' 17656else 17657 HAVE_PERL_TRUE='#' 17658 HAVE_PERL_FALSE= 17659fi 17660 17661 17662# 17663# Python is optional, it is used only by some of the system test scripts. 17664# 17665 17666 17667 17668 17669 17670 17671 if test -n "$PYTHON"; then 17672 # If the user set $PYTHON, use it and don't search something else. 17673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5 17674printf %s "checking whether $PYTHON version is >= 3.6... " >&6; } 17675 prog="import sys 17676# split strings by '.' and convert to numeric. Append some zeros 17677# because we need at least 4 digits for the hex conversion. 17678# map returns an iterator in Python 3.0 and a list in 2.x 17679minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0] 17680minverhex = 0 17681# xrange is not present in Python 3.0 and range returns an iterator 17682for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 17683sys.exit(sys.hexversion < minverhex)" 17684 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 17685 ($PYTHON -c "$prog") >&5 2>&5 17686 ac_status=$? 17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17688 (exit $ac_status); } 17689then : 17690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17691printf "%s\n" "yes" >&6; } 17692else $as_nop 17693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17694printf "%s\n" "no" >&6; } 17695 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 17696fi 17697 am_display_PYTHON=$PYTHON 17698 else 17699 # Otherwise, try each interpreter until we find one that satisfies 17700 # VERSION. 17701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5 17702printf %s "checking for a Python interpreter with version >= 3.6... " >&6; } 17703if test ${am_cv_pathless_PYTHON+y} 17704then : 17705 printf %s "(cached) " >&6 17706else $as_nop 17707 17708 for am_cv_pathless_PYTHON in python python2 python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 17709 test "$am_cv_pathless_PYTHON" = none && break 17710 prog="import sys 17711# split strings by '.' and convert to numeric. Append some zeros 17712# because we need at least 4 digits for the hex conversion. 17713# map returns an iterator in Python 3.0 and a list in 2.x 17714minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0] 17715minverhex = 0 17716# xrange is not present in Python 3.0 and range returns an iterator 17717for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 17718sys.exit(sys.hexversion < minverhex)" 17719 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 17720 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 17721 ac_status=$? 17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17723 (exit $ac_status); } 17724then : 17725 break 17726fi 17727 done 17728fi 17729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 17730printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } 17731 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 17732 if test "$am_cv_pathless_PYTHON" = none; then 17733 PYTHON=: 17734 else 17735 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 17736set dummy $am_cv_pathless_PYTHON; ac_word=$2 17737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17738printf %s "checking for $ac_word... " >&6; } 17739if test ${ac_cv_path_PYTHON+y} 17740then : 17741 printf %s "(cached) " >&6 17742else $as_nop 17743 case $PYTHON in 17744 [\\/]* | ?:[\\/]*) 17745 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 17746 ;; 17747 *) 17748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17749for as_dir in $PATH 17750do 17751 IFS=$as_save_IFS 17752 case $as_dir in #((( 17753 '') as_dir=./ ;; 17754 */) ;; 17755 *) as_dir=$as_dir/ ;; 17756 esac 17757 for ac_exec_ext in '' $ac_executable_extensions; do 17758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17759 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 17760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17761 break 2 17762 fi 17763done 17764 done 17765IFS=$as_save_IFS 17766 17767 ;; 17768esac 17769fi 17770PYTHON=$ac_cv_path_PYTHON 17771if test -n "$PYTHON"; then 17772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 17773printf "%s\n" "$PYTHON" >&6; } 17774else 17775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17776printf "%s\n" "no" >&6; } 17777fi 17778 17779 17780 fi 17781 am_display_PYTHON=$am_cv_pathless_PYTHON 17782 fi 17783 17784 17785 if test "$PYTHON" = :; then 17786 : 17787 else 17788 17789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 17790printf %s "checking for $am_display_PYTHON version... " >&6; } 17791if test ${am_cv_python_version+y} 17792then : 17793 printf %s "(cached) " >&6 17794else $as_nop 17795 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` 17796fi 17797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 17798printf "%s\n" "$am_cv_python_version" >&6; } 17799 PYTHON_VERSION=$am_cv_python_version 17800 17801 17802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 17803printf %s "checking for $am_display_PYTHON platform... " >&6; } 17804if test ${am_cv_python_platform+y} 17805then : 17806 printf %s "(cached) " >&6 17807else $as_nop 17808 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 17809fi 17810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 17811printf "%s\n" "$am_cv_python_platform" >&6; } 17812 PYTHON_PLATFORM=$am_cv_python_platform 17813 17814 17815 if test "x$prefix" = xNONE; then 17816 am__usable_prefix=$ac_default_prefix 17817 else 17818 am__usable_prefix=$prefix 17819 fi 17820 17821 # Allow user to request using sys.* values from Python, 17822 # instead of the GNU $prefix values. 17823 17824# Check whether --with-python-sys-prefix was given. 17825if test ${with_python_sys_prefix+y} 17826then : 17827 withval=$with_python_sys_prefix; am_use_python_sys=: 17828else $as_nop 17829 am_use_python_sys=false 17830fi 17831 17832 17833 # Allow user to override whatever the default Python prefix is. 17834 17835# Check whether --with-python_prefix was given. 17836if test ${with_python_prefix+y} 17837then : 17838 withval=$with_python_prefix; am_python_prefix_subst=$withval 17839 am_cv_python_prefix=$withval 17840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 17841printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } 17842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 17843printf "%s\n" "$am_cv_python_prefix" >&6; } 17844else $as_nop 17845 17846 if $am_use_python_sys; then 17847 # using python sys.prefix value, not GNU 17848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 17849printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } 17850if test ${am_cv_python_prefix+y} 17851then : 17852 printf %s "(cached) " >&6 17853else $as_nop 17854 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` 17855fi 17856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 17857printf "%s\n" "$am_cv_python_prefix" >&6; } 17858 17859 case $am_cv_python_prefix in 17860 $am__usable_prefix*) 17861 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` 17862 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` 17863 ;; 17864 *) 17865 am_python_prefix_subst=$am_cv_python_prefix 17866 ;; 17867 esac 17868 else # using GNU prefix value, not python sys.prefix 17869 am_python_prefix_subst='${prefix}' 17870 am_python_prefix=$am_python_prefix_subst 17871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 17872printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } 17873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 17874printf "%s\n" "$am_python_prefix" >&6; } 17875 fi 17876fi 17877 17878 # Substituting python_prefix_subst value. 17879 PYTHON_PREFIX=$am_python_prefix_subst 17880 17881 17882 # emacs-page Now do it all over again for Python exec_prefix, but with yet 17883 # another conditional: fall back to regular prefix if that was specified. 17884 17885# Check whether --with-python_exec_prefix was given. 17886if test ${with_python_exec_prefix+y} 17887then : 17888 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval 17889 am_cv_python_exec_prefix=$withval 17890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 17891printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } 17892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 17893printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 17894else $as_nop 17895 17896 # no explicit --with-python_exec_prefix, but if 17897 # --with-python_prefix was given, use its value for python_exec_prefix too. 17898 if test -n "$with_python_prefix" 17899then : 17900 am_python_exec_prefix_subst=$with_python_prefix 17901 am_cv_python_exec_prefix=$with_python_prefix 17902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 17903printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } 17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 17905printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 17906else $as_nop 17907 17908 # Set am__usable_exec_prefix whether using GNU or Python values, 17909 # since we use that variable for pyexecdir. 17910 if test "x$exec_prefix" = xNONE; then 17911 am__usable_exec_prefix=$am__usable_prefix 17912 else 17913 am__usable_exec_prefix=$exec_prefix 17914 fi 17915 # 17916 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU 17917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 17918printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } 17919if test ${am_cv_python_exec_prefix+y} 17920then : 17921 printf %s "(cached) " >&6 17922else $as_nop 17923 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` 17924fi 17925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 17926printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 17927 case $am_cv_python_exec_prefix in 17928 $am__usable_exec_prefix*) 17929 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` 17930 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` 17931 ;; 17932 *) 17933 am_python_exec_prefix_subst=$am_cv_python_exec_prefix 17934 ;; 17935 esac 17936 else # using GNU $exec_prefix, not python sys.exec_prefix 17937 am_python_exec_prefix_subst='${exec_prefix}' 17938 am_python_exec_prefix=$am_python_exec_prefix_subst 17939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 17940printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } 17941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 17942printf "%s\n" "$am_python_exec_prefix" >&6; } 17943 fi 17944fi 17945fi 17946 17947 # Substituting python_exec_prefix_subst. 17948 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst 17949 17950 17951 # Factor out some code duplication into this shell variable. 17952 am_python_setup_sysconfig="\ 17953import sys 17954# Prefer sysconfig over distutils.sysconfig, for better compatibility 17955# with python 3.x. See automake bug#10227. 17956try: 17957 import sysconfig 17958except ImportError: 17959 can_use_sysconfig = 0 17960else: 17961 can_use_sysconfig = 1 17962# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 17963# <https://github.com/pypa/virtualenv/issues/118> 17964try: 17965 from platform import python_implementation 17966 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 17967 can_use_sysconfig = 0 17968except ImportError: 17969 pass" 17970 17971 17972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 17973printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } 17974if test ${am_cv_python_pythondir+y} 17975then : 17976 printf %s "(cached) " >&6 17977else $as_nop 17978 if test "x$am_cv_python_prefix" = x; then 17979 am_py_prefix=$am__usable_prefix 17980 else 17981 am_py_prefix=$am_cv_python_prefix 17982 fi 17983 am_cv_python_pythondir=`$PYTHON -c " 17984$am_python_setup_sysconfig 17985if can_use_sysconfig: 17986 if hasattr(sysconfig, 'get_default_scheme'): 17987 scheme = sysconfig.get_default_scheme() 17988 else: 17989 scheme = sysconfig._get_default_scheme() 17990 if scheme == 'posix_local': 17991 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/ 17992 scheme = 'posix_prefix' 17993 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'}) 17994else: 17995 from distutils import sysconfig 17996 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 17997sys.stdout.write(sitedir)"` 17998 # 17999 case $am_cv_python_pythondir in 18000 $am_py_prefix*) 18001 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 18002 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` 18003 ;; 18004 *) 18005 case $am_py_prefix in 18006 /usr|/System*) ;; 18007 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 18008 ;; 18009 esac 18010 ;; 18011 esac 18012 18013fi 18014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 18015printf "%s\n" "$am_cv_python_pythondir" >&6; } 18016 pythondir=$am_cv_python_pythondir 18017 18018 18019 pkgpythondir=\${pythondir}/$PACKAGE 18020 18021 18022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 18023printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } 18024if test ${am_cv_python_pyexecdir+y} 18025then : 18026 printf %s "(cached) " >&6 18027else $as_nop 18028 if test "x$am_cv_python_exec_prefix" = x; then 18029 am_py_exec_prefix=$am__usable_exec_prefix 18030 else 18031 am_py_exec_prefix=$am_cv_python_exec_prefix 18032 fi 18033 am_cv_python_pyexecdir=`$PYTHON -c " 18034$am_python_setup_sysconfig 18035if can_use_sysconfig: 18036 if hasattr(sysconfig, 'get_default_scheme'): 18037 scheme = sysconfig.get_default_scheme() 18038 else: 18039 scheme = sysconfig._get_default_scheme() 18040 if scheme == 'posix_local': 18041 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/ 18042 scheme = 'posix_prefix' 18043 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'}) 18044else: 18045 from distutils import sysconfig 18046 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') 18047sys.stdout.write(sitedir)"` 18048 # 18049 case $am_cv_python_pyexecdir in 18050 $am_py_exec_prefix*) 18051 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 18052 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` 18053 ;; 18054 *) 18055 case $am_py_exec_prefix in 18056 /usr|/System*) ;; 18057 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 18058 ;; 18059 esac 18060 ;; 18061 esac 18062 18063fi 18064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 18065printf "%s\n" "$am_cv_python_pyexecdir" >&6; } 18066 pyexecdir=$am_cv_python_pyexecdir 18067 18068 18069 pkgpyexecdir=\${pyexecdir}/$PACKAGE 18070 18071 18072 18073 fi 18074 18075 if test "$PYTHON" != ":"; then 18076 HAVE_PYTHON_TRUE= 18077 HAVE_PYTHON_FALSE='#' 18078else 18079 HAVE_PYTHON_TRUE='#' 18080 HAVE_PYTHON_FALSE= 18081fi 18082 18083 18084for ac_prog in pytest-3 py.test-3 pytest py.test pytest-pypy 18085do 18086 # Extract the first word of "$ac_prog", so it can be a program name with args. 18087set dummy $ac_prog; ac_word=$2 18088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18089printf %s "checking for $ac_word... " >&6; } 18090if test ${ac_cv_path_PYTEST+y} 18091then : 18092 printf %s "(cached) " >&6 18093else $as_nop 18094 case $PYTEST in 18095 [\\/]* | ?:[\\/]*) 18096 ac_cv_path_PYTEST="$PYTEST" # Let the user override the test with a path. 18097 ;; 18098 *) 18099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18100for as_dir in $PATH 18101do 18102 IFS=$as_save_IFS 18103 case $as_dir in #((( 18104 '') as_dir=./ ;; 18105 */) ;; 18106 *) as_dir=$as_dir/ ;; 18107 esac 18108 for ac_exec_ext in '' $ac_executable_extensions; do 18109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18110 ac_cv_path_PYTEST="$as_dir$ac_word$ac_exec_ext" 18111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18112 break 2 18113 fi 18114done 18115 done 18116IFS=$as_save_IFS 18117 18118 ;; 18119esac 18120fi 18121PYTEST=$ac_cv_path_PYTEST 18122if test -n "$PYTEST"; then 18123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTEST" >&5 18124printf "%s\n" "$PYTEST" >&6; } 18125else 18126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18127printf "%s\n" "no" >&6; } 18128fi 18129 18130 18131 test -n "$PYTEST" && break 18132done 18133 18134if test -z "$PYTEST" 18135then : 18136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pytest not found, some system tests will be skipped" >&5 18137printf "%s\n" "$as_me: WARNING: pytest not found, some system tests will be skipped" >&2;} 18138fi 18139 18140 if test -n "$PYTEST"; then 18141 HAVE_PYTEST_TRUE= 18142 HAVE_PYTEST_FALSE='#' 18143else 18144 HAVE_PYTEST_TRUE='#' 18145 HAVE_PYTEST_FALSE= 18146fi 18147 18148 18149# 18150# xsltproc is optional, it is used only by system test scripts. 18151# 18152# Extract the first word of "xsltproc", so it can be a program name with args. 18153set dummy xsltproc; ac_word=$2 18154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18155printf %s "checking for $ac_word... " >&6; } 18156if test ${ac_cv_path_XSLTPROC+y} 18157then : 18158 printf %s "(cached) " >&6 18159else $as_nop 18160 case $XSLTPROC in 18161 [\\/]* | ?:[\\/]*) 18162 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18163 ;; 18164 *) 18165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18166for as_dir in $PATH 18167do 18168 IFS=$as_save_IFS 18169 case $as_dir in #((( 18170 '') as_dir=./ ;; 18171 */) ;; 18172 *) as_dir=$as_dir/ ;; 18173 esac 18174 for ac_exec_ext in '' $ac_executable_extensions; do 18175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18176 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 18177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18178 break 2 18179 fi 18180done 18181 done 18182IFS=$as_save_IFS 18183 18184 ;; 18185esac 18186fi 18187XSLTPROC=$ac_cv_path_XSLTPROC 18188if test -n "$XSLTPROC"; then 18189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18190printf "%s\n" "$XSLTPROC" >&6; } 18191else 18192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18193printf "%s\n" "no" >&6; } 18194fi 18195 18196 18197 18198# 18199# Using Solaris linker with gcc on Solaris breaks Thread Local Storage 18200# 18201case $host in #( 18202 *-solaris*) : 18203 18204 if test "$GCC" = "yes" 18205then : 18206 LDFLAGS="$LDFLAGS -zrelax=transtls" 18207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&5 18208printf "%s\n" "$as_me: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&2;} 18209 18210fi 18211 ;; #( 18212 *) : 18213 ;; 18214esac 18215 18216ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 18217if test "x$ac_cv_header_sys_param_h" = xyes 18218then : 18219 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 18220 18221fi 18222ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 18223if test "x$ac_cv_header_sys_socket_h" = xyes 18224then : 18225 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 18226 18227fi 18228 18229ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default 18230 #ifdef HAVE_SYS_PARAM_H 18231 # include <sys/param.h> 18232 #endif 18233 #ifdef HAVE_SYS_SOCKET_H 18234 # include <sys/socket.h> 18235 #endif 18236 18237" 18238if test "x$ac_cv_header_fcntl_h" = xyes 18239then : 18240 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 18241 18242fi 18243ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default 18244 #ifdef HAVE_SYS_PARAM_H 18245 # include <sys/param.h> 18246 #endif 18247 #ifdef HAVE_SYS_SOCKET_H 18248 # include <sys/socket.h> 18249 #endif 18250 18251" 18252if test "x$ac_cv_header_regex_h" = xyes 18253then : 18254 printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h 18255 18256fi 18257ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default 18258 #ifdef HAVE_SYS_PARAM_H 18259 # include <sys/param.h> 18260 #endif 18261 #ifdef HAVE_SYS_SOCKET_H 18262 # include <sys/socket.h> 18263 #endif 18264 18265" 18266if test "x$ac_cv_header_sys_time_h" = xyes 18267then : 18268 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 18269 18270fi 18271ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default 18272 #ifdef HAVE_SYS_PARAM_H 18273 # include <sys/param.h> 18274 #endif 18275 #ifdef HAVE_SYS_SOCKET_H 18276 # include <sys/socket.h> 18277 #endif 18278 18279" 18280if test "x$ac_cv_header_unistd_h" = xyes 18281then : 18282 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 18283 18284fi 18285ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default 18286 #ifdef HAVE_SYS_PARAM_H 18287 # include <sys/param.h> 18288 #endif 18289 #ifdef HAVE_SYS_SOCKET_H 18290 # include <sys/socket.h> 18291 #endif 18292 18293" 18294if test "x$ac_cv_header_sys_mman_h" = xyes 18295then : 18296 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 18297 18298fi 18299ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default 18300 #ifdef HAVE_SYS_PARAM_H 18301 # include <sys/param.h> 18302 #endif 18303 #ifdef HAVE_SYS_SOCKET_H 18304 # include <sys/socket.h> 18305 #endif 18306 18307" 18308if test "x$ac_cv_header_sys_sockio_h" = xyes 18309then : 18310 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h 18311 18312fi 18313ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default 18314 #ifdef HAVE_SYS_PARAM_H 18315 # include <sys/param.h> 18316 #endif 18317 #ifdef HAVE_SYS_SOCKET_H 18318 # include <sys/socket.h> 18319 #endif 18320 18321" 18322if test "x$ac_cv_header_sys_select_h" = xyes 18323then : 18324 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 18325 18326fi 18327ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 18328 #ifdef HAVE_SYS_PARAM_H 18329 # include <sys/param.h> 18330 #endif 18331 #ifdef HAVE_SYS_SOCKET_H 18332 # include <sys/socket.h> 18333 #endif 18334 18335" 18336if test "x$ac_cv_header_sys_sysctl_h" = xyes 18337then : 18338 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h 18339 18340fi 18341ac_fn_c_check_header_compile "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default 18342 #ifdef HAVE_SYS_PARAM_H 18343 # include <sys/param.h> 18344 #endif 18345 #ifdef HAVE_SYS_SOCKET_H 18346 # include <sys/socket.h> 18347 #endif 18348 18349" 18350if test "x$ac_cv_header_net_if6_h" = xyes 18351then : 18352 printf "%s\n" "#define HAVE_NET_IF6_H 1" >>confdefs.h 18353 18354fi 18355ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "$ac_includes_default 18356 #ifdef HAVE_SYS_PARAM_H 18357 # include <sys/param.h> 18358 #endif 18359 #ifdef HAVE_SYS_SOCKET_H 18360 # include <sys/socket.h> 18361 #endif 18362 18363" 18364if test "x$ac_cv_header_net_route_h" = xyes 18365then : 18366 printf "%s\n" "#define HAVE_NET_ROUTE_H 1" >>confdefs.h 18367 18368fi 18369ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "$ac_includes_default 18370 #ifdef HAVE_SYS_PARAM_H 18371 # include <sys/param.h> 18372 #endif 18373 #ifdef HAVE_SYS_SOCKET_H 18374 # include <sys/socket.h> 18375 #endif 18376 18377" 18378if test "x$ac_cv_header_linux_netlink_h" = xyes 18379then : 18380 printf "%s\n" "#define HAVE_LINUX_NETLINK_H 1" >>confdefs.h 18381 18382fi 18383ac_fn_c_check_header_compile "$LINENO" "linux/rtnetlink.h" "ac_cv_header_linux_rtnetlink_h" "$ac_includes_default 18384 #ifdef HAVE_SYS_PARAM_H 18385 # include <sys/param.h> 18386 #endif 18387 #ifdef HAVE_SYS_SOCKET_H 18388 # include <sys/socket.h> 18389 #endif 18390 18391" 18392if test "x$ac_cv_header_linux_rtnetlink_h" = xyes 18393then : 18394 printf "%s\n" "#define HAVE_LINUX_RTNETLINK_H 1" >>confdefs.h 18395 18396fi 18397 18398 18399# 18400# Check for C11 thread local storage 18401# 18402# NOTE: OpenBSD doesn't ship <threads.h>, so we can't require it (yet). 18403# 18404ac_fn_c_check_header_compile "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default" 18405if test "x$ac_cv_header_threads_h" = xyes 18406then : 18407 printf "%s\n" "#define HAVE_THREADS_H 1" >>confdefs.h 18408 18409fi 18410 18411 18412# 18413# C11 Atomic Operations 18414# 18415 18416 for ac_header in stdatomic.h 18417do : 18418 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default" 18419if test "x$ac_cv_header_stdatomic_h" = xyes 18420then : 18421 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h 18422 18423else $as_nop 18424 as_fn_error $? "C11 Atomic Operations required, update your toolchain to build BIND 9" "$LINENO" 5 18425fi 18426 18427done 18428 18429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18430/* end confdefs.h. */ 18431#include <stdatomic.h> 18432int 18433main (void) 18434{ 18435atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed); 18436 18437 ; 18438 return 0; 18439} 18440_ACEOF 18441if ac_fn_c_try_compile "$LINENO" 18442then : 18443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5 18444printf %s "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; } 18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18446/* end confdefs.h. */ 18447#include <stdatomic.h> 18448int 18449main (void) 18450{ 18451atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed); 18452 18453 ; 18454 return 0; 18455} 18456_ACEOF 18457if ac_fn_c_try_link "$LINENO" 18458then : 18459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18460printf "%s\n" "no" >&6; } 18461else $as_nop 18462 LIBS="$LIBS -latomic" 18463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18464/* end confdefs.h. */ 18465#include <stdatomic.h> 18466int 18467main (void) 18468{ 18469atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed); 18470 18471 ; 18472 return 0; 18473} 18474_ACEOF 18475if ac_fn_c_try_link "$LINENO" 18476then : 18477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18478printf "%s\n" "yes" >&6; } 18479else $as_nop 18480 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18481printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18482as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain. 18483See \`config.log' for more details" "$LINENO" 5; } 18484fi 18485rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18486 conftest$ac_exeext conftest.$ac_ext 18487 18488fi 18489rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18490 conftest$ac_exeext conftest.$ac_ext 18491 18492else $as_nop 18493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18494printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18495as_fn_error $? "stdatomic.h header found, but compilation failed, please fix your toolchain. 18496See \`config.log' for more details" "$LINENO" 5; } 18497fi 18498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18499 18500 for ac_header in stdnoreturn.h 18501do : 18502 ac_fn_c_check_header_compile "$LINENO" "stdnoreturn.h" "ac_cv_header_stdnoreturn_h" "$ac_includes_default" 18503if test "x$ac_cv_header_stdnoreturn_h" = xyes 18504then : 18505 printf "%s\n" "#define HAVE_STDNORETURN_H 1" >>confdefs.h 18506 18507else $as_nop 18508 as_fn_error $? "C11 standard headers not found, update your toolchain." "$LINENO" 5 18509fi 18510 18511done 18512 18513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 18514printf %s "checking for an ANSI C-conforming const... " >&6; } 18515if test ${ac_cv_c_const+y} 18516then : 18517 printf %s "(cached) " >&6 18518else $as_nop 18519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18520/* end confdefs.h. */ 18521 18522int 18523main (void) 18524{ 18525 18526#ifndef __cplusplus 18527 /* Ultrix mips cc rejects this sort of thing. */ 18528 typedef int charset[2]; 18529 const charset cs = { 0, 0 }; 18530 /* SunOS 4.1.1 cc rejects this. */ 18531 char const *const *pcpcc; 18532 char **ppc; 18533 /* NEC SVR4.0.2 mips cc rejects this. */ 18534 struct point {int x, y;}; 18535 static struct point const zero = {0,0}; 18536 /* IBM XL C 1.02.0.0 rejects this. 18537 It does not let you subtract one const X* pointer from another in 18538 an arm of an if-expression whose if-part is not a constant 18539 expression */ 18540 const char *g = "string"; 18541 pcpcc = &g + (g ? g-g : 0); 18542 /* HPUX 7.0 cc rejects these. */ 18543 ++pcpcc; 18544 ppc = (char**) pcpcc; 18545 pcpcc = (char const *const *) ppc; 18546 { /* SCO 3.2v4 cc rejects this sort of thing. */ 18547 char tx; 18548 char *t = &tx; 18549 char const *s = 0 ? (char *) 0 : (char const *) 0; 18550 18551 *t++ = 0; 18552 if (s) return 0; 18553 } 18554 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 18555 int x[] = {25, 17}; 18556 const int *foo = &x[0]; 18557 ++foo; 18558 } 18559 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 18560 typedef const int *iptr; 18561 iptr p = 0; 18562 ++p; 18563 } 18564 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 18565 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 18566 struct s { int j; const int *ap[3]; } bx; 18567 struct s *b = &bx; b->j = 5; 18568 } 18569 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 18570 const int foo = 10; 18571 if (!foo) return 0; 18572 } 18573 return !cs[0] && !zero.x; 18574#endif 18575 18576 ; 18577 return 0; 18578} 18579_ACEOF 18580if ac_fn_c_try_compile "$LINENO" 18581then : 18582 ac_cv_c_const=yes 18583else $as_nop 18584 ac_cv_c_const=no 18585fi 18586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18587fi 18588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 18589printf "%s\n" "$ac_cv_c_const" >&6; } 18590if test $ac_cv_c_const = no; then 18591 18592printf "%s\n" "#define const /**/" >>confdefs.h 18593 18594fi 18595 18596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 18597printf %s "checking for inline... " >&6; } 18598if test ${ac_cv_c_inline+y} 18599then : 18600 printf %s "(cached) " >&6 18601else $as_nop 18602 ac_cv_c_inline=no 18603for ac_kw in inline __inline__ __inline; do 18604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18605/* end confdefs.h. */ 18606#ifndef __cplusplus 18607typedef int foo_t; 18608static $ac_kw foo_t static_foo (void) {return 0; } 18609$ac_kw foo_t foo (void) {return 0; } 18610#endif 18611 18612_ACEOF 18613if ac_fn_c_try_compile "$LINENO" 18614then : 18615 ac_cv_c_inline=$ac_kw 18616fi 18617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18618 test "$ac_cv_c_inline" != no && break 18619done 18620 18621fi 18622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 18623printf "%s\n" "$ac_cv_c_inline" >&6; } 18624 18625case $ac_cv_c_inline in 18626 inline | yes) ;; 18627 *) 18628 case $ac_cv_c_inline in 18629 no) ac_val=;; 18630 *) ac_val=$ac_cv_c_inline;; 18631 esac 18632 cat >>confdefs.h <<_ACEOF 18633#ifndef __cplusplus 18634#define inline $ac_val 18635#endif 18636_ACEOF 18637 ;; 18638esac 18639 18640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 18641printf %s "checking for working volatile... " >&6; } 18642if test ${ac_cv_c_volatile+y} 18643then : 18644 printf %s "(cached) " >&6 18645else $as_nop 18646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18647/* end confdefs.h. */ 18648 18649int 18650main (void) 18651{ 18652 18653volatile int x; 18654int * volatile y = (int *) 0; 18655return !x && !y; 18656 ; 18657 return 0; 18658} 18659_ACEOF 18660if ac_fn_c_try_compile "$LINENO" 18661then : 18662 ac_cv_c_volatile=yes 18663else $as_nop 18664 ac_cv_c_volatile=no 18665fi 18666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18667fi 18668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 18669printf "%s\n" "$ac_cv_c_volatile" >&6; } 18670if test $ac_cv_c_volatile = no; then 18671 18672printf "%s\n" "#define volatile /**/" >>confdefs.h 18673 18674fi 18675 18676 18677# 18678# Check for yield support on ARM processors 18679# 18680case $host in #( 18681 arm*|aarch64*) : 18682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM yield instruction support" >&5 18683printf %s "checking for ARM yield instruction support... " >&6; } 18684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18685/* end confdefs.h. */ 18686 18687int 18688main (void) 18689{ 18690__asm__ __volatile__ ("yield") 18691 ; 18692 return 0; 18693} 18694_ACEOF 18695if ac_fn_c_try_compile "$LINENO" 18696then : 18697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18698printf "%s\n" "yes" >&6; } 18699 18700printf "%s\n" "#define HAVE_ARM_YIELD 1" >>confdefs.h 18701 18702else $as_nop 18703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18704printf "%s\n" "no" >&6; } 18705fi 18706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #( 18707 *) : 18708 ;; 18709esac 18710 18711# 18712# Check for pause support on SPARC processors 18713# 18714case $host in #( 18715 sparc*) : 18716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pause instruction support" >&5 18717printf %s "checking for pause instruction support... " >&6; } 18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18719/* end confdefs.h. */ 18720 18721int 18722main (void) 18723{ 18724__asm__ __volatile__ ("pause") 18725 ; 18726 return 0; 18727} 18728_ACEOF 18729if ac_fn_c_try_compile "$LINENO" 18730then : 18731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18732printf "%s\n" "yes" >&6; } 18733 18734printf "%s\n" "#define HAVE_SPARC_PAUSE 1" >>confdefs.h 18735 18736else $as_nop 18737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18738printf "%s\n" "no" >&6; } 18739fi 18740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #( 18741 *) : 18742 ;; 18743esac 18744 18745ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname" 18746if test "x$ac_cv_func_sysctlbyname" = xyes 18747then : 18748 printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h 18749 18750fi 18751 18752 18753ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 18754if test "x$ac_cv_type_size_t" = xyes 18755then : 18756 18757else $as_nop 18758 18759printf "%s\n" "#define size_t unsigned int" >>confdefs.h 18760 18761fi 18762 18763ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 18764if test "x$ac_cv_type_ssize_t" = xyes 18765then : 18766 18767else $as_nop 18768 18769printf "%s\n" "#define ssize_t int" >>confdefs.h 18770 18771fi 18772 18773 18774 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 18775if test "x$ac_cv_type_uintptr_t" = xyes 18776then : 18777 18778printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h 18779 18780else $as_nop 18781 for ac_type in 'unsigned int' 'unsigned long int' \ 18782 'unsigned long long int'; do 18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18784/* end confdefs.h. */ 18785$ac_includes_default 18786int 18787main (void) 18788{ 18789static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 18790test_array [0] = 0; 18791return test_array [0]; 18792 18793 ; 18794 return 0; 18795} 18796_ACEOF 18797if ac_fn_c_try_compile "$LINENO" 18798then : 18799 18800printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h 18801 18802 ac_type= 18803fi 18804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18805 test -z "$ac_type" && break 18806 done 18807fi 18808 18809 18810 18811# 18812# check for uname library routine 18813# 18814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uname" >&5 18815printf %s "checking for uname... " >&6; } 18816cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18817/* end confdefs.h. */ 18818#include <sys/utsname.h> 18819 #include <stdio.h> 18820 18821int 18822main (void) 18823{ 18824 18825 struct utsname uts; 18826 uname(&uts); 18827 printf("running on %s %s %s for %s\n", 18828 uts.sysname, uts.release, uts.version, uts.machine); 18829 18830 ; 18831 return 0; 18832} 18833_ACEOF 18834if ac_fn_c_try_compile "$LINENO" 18835then : 18836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18837printf "%s\n" "yes" >&6; } 18838 18839printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h 18840 18841 18842else $as_nop 18843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18844printf "%s\n" "no" >&6; } 18845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5 18846printf "%s\n" "$as_me: WARNING: uname is not correctly supported" >&2;} 18847 18848fi 18849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18850 18851# 18852# check for GCC noreturn attribute 18853# 18854 18855 18856 18857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((noreturn))" >&5 18858printf %s "checking for __attribute__((noreturn))... " >&6; } 18859if test ${ax_cv_have_func_attribute_noreturn+y} 18860then : 18861 printf %s "(cached) " >&6 18862else $as_nop 18863 18864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18865/* end confdefs.h. */ 18866 18867 18868 void foo( void ) __attribute__((noreturn)); 18869 18870int 18871main (void) 18872{ 18873 18874 ; 18875 return 0; 18876} 18877 18878_ACEOF 18879if ac_fn_c_try_link "$LINENO" 18880then : 18881 if grep -- -Wattributes conftest.err 18882then : 18883 ax_cv_have_func_attribute_noreturn=no 18884else $as_nop 18885 ax_cv_have_func_attribute_noreturn=yes 18886fi 18887else $as_nop 18888 ax_cv_have_func_attribute_noreturn=no 18889fi 18890rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18891 conftest$ac_exeext conftest.$ac_ext 18892 18893fi 18894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_noreturn" >&5 18895printf "%s\n" "$ax_cv_have_func_attribute_noreturn" >&6; } 18896 18897 if test yes = $ax_cv_have_func_attribute_noreturn 18898then : 18899 18900printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_NORETURN 1" >>confdefs.h 18901 18902fi 18903 18904 18905 18906 18907# 18908# check for GCC malloc attribute 18909# 18910 18911 18912 18913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((malloc))" >&5 18914printf %s "checking for __attribute__((malloc))... " >&6; } 18915if test ${ax_cv_have_func_attribute_malloc+y} 18916then : 18917 printf %s "(cached) " >&6 18918else $as_nop 18919 18920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18921/* end confdefs.h. */ 18922 18923 18924 void *foo( void ) __attribute__((malloc)); 18925 18926int 18927main (void) 18928{ 18929 18930 ; 18931 return 0; 18932} 18933 18934_ACEOF 18935if ac_fn_c_try_link "$LINENO" 18936then : 18937 if grep -- -Wattributes conftest.err 18938then : 18939 ax_cv_have_func_attribute_malloc=no 18940else $as_nop 18941 ax_cv_have_func_attribute_malloc=yes 18942fi 18943else $as_nop 18944 ax_cv_have_func_attribute_malloc=no 18945fi 18946rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18947 conftest$ac_exeext conftest.$ac_ext 18948 18949fi 18950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_malloc" >&5 18951printf "%s\n" "$ax_cv_have_func_attribute_malloc" >&6; } 18952 18953 if test yes = $ax_cv_have_func_attribute_malloc 18954then : 18955 18956printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_MALLOC 1" >>confdefs.h 18957 18958fi 18959 18960 18961 18962 18963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extended malloc attributes" >&5 18964printf %s "checking for extended malloc attributes... " >&6; } 18965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18966/* end confdefs.h. */ 18967 18968 #include <stddef.h> 18969 #include <stdlib.h> 18970 __attribute__ ((malloc, malloc (free, 1)) 18971 void * xmalloc(size_t sz) { return malloc(sz); } 18972 18973int 18974main (void) 18975{ 18976 18977 void *p = xmalloc(8); 18978 free(p); 18979 18980 ; 18981 return 0; 18982} 18983_ACEOF 18984if ac_fn_c_try_compile "$LINENO" 18985then : 18986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18987printf "%s\n" "yes" >&6; } 18988 18989printf "%s\n" "#define HAVE_MALLOC_EXT_ATTR 1" >>confdefs.h 18990 18991 18992else $as_nop 18993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18994printf "%s\n" "no" >&6; } 18995fi 18996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18997 18998# 18999# check for GCC returns_nonnull attribute 19000# 19001 19002 19003 19004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((returns_nonnull))" >&5 19005printf %s "checking for __attribute__((returns_nonnull))... " >&6; } 19006if test ${ax_cv_have_func_attribute_returns_nonnull+y} 19007then : 19008 printf %s "(cached) " >&6 19009else $as_nop 19010 19011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19012/* end confdefs.h. */ 19013 19014 19015 void *foo( void ) __attribute__((returns_nonnull)); 19016 19017int 19018main (void) 19019{ 19020 19021 ; 19022 return 0; 19023} 19024 19025_ACEOF 19026if ac_fn_c_try_link "$LINENO" 19027then : 19028 if grep -- -Wattributes conftest.err 19029then : 19030 ax_cv_have_func_attribute_returns_nonnull=no 19031else $as_nop 19032 ax_cv_have_func_attribute_returns_nonnull=yes 19033fi 19034else $as_nop 19035 ax_cv_have_func_attribute_returns_nonnull=no 19036fi 19037rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19038 conftest$ac_exeext conftest.$ac_ext 19039 19040fi 19041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_returns_nonnull" >&5 19042printf "%s\n" "$ax_cv_have_func_attribute_returns_nonnull" >&6; } 19043 19044 if test yes = $ax_cv_have_func_attribute_returns_nonnull 19045then : 19046 19047printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL 1" >>confdefs.h 19048 19049fi 19050 19051 19052 19053 19054# 19055# how to link math functions? 19056# 19057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5 19058printf %s "checking for library containing sqrt... " >&6; } 19059if test ${ac_cv_search_sqrt+y} 19060then : 19061 printf %s "(cached) " >&6 19062else $as_nop 19063 ac_func_search_save_LIBS=$LIBS 19064cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19065/* end confdefs.h. */ 19066 19067/* Override any GCC internal prototype to avoid an error. 19068 Use char because int might match the return type of a GCC 19069 builtin and then its argument prototype would still apply. */ 19070char sqrt (); 19071int 19072main (void) 19073{ 19074return sqrt (); 19075 ; 19076 return 0; 19077} 19078_ACEOF 19079for ac_lib in '' m 19080do 19081 if test -z "$ac_lib"; then 19082 ac_res="none required" 19083 else 19084 ac_res=-l$ac_lib 19085 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19086 fi 19087 if ac_fn_c_try_link "$LINENO" 19088then : 19089 ac_cv_search_sqrt=$ac_res 19090fi 19091rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19092 conftest$ac_exeext 19093 if test ${ac_cv_search_sqrt+y} 19094then : 19095 break 19096fi 19097done 19098if test ${ac_cv_search_sqrt+y} 19099then : 19100 19101else $as_nop 19102 ac_cv_search_sqrt=no 19103fi 19104rm conftest.$ac_ext 19105LIBS=$ac_func_search_save_LIBS 19106fi 19107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5 19108printf "%s\n" "$ac_cv_search_sqrt" >&6; } 19109ac_res=$ac_cv_search_sqrt 19110if test "$ac_res" != no 19111then : 19112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19113 19114fi 19115 19116 19117# 19118# GeoIP support? 19119# 19120# Should be on by default if libmaxminddb exists. 19121# 19122# [pairwise: --enable-geoip --with-maxminddb=auto, --enable-geoip --with-maxminddb=yes, --disable-geoip] 19123# Check whether --enable-geoip was given. 19124if test ${enable_geoip+y} 19125then : 19126 enableval=$enable_geoip; 19127else $as_nop 19128 enable_geoip="yes" 19129fi 19130 19131 19132# [pairwise: skip] 19133 19134# Check whether --with-maxminddb was given. 19135if test ${with_maxminddb+y} 19136then : 19137 withval=$with_maxminddb; 19138else $as_nop 19139 with_maxminddb="auto" 19140fi 19141 19142 19143if test "$enable_geoip" = "yes" 19144then : 19145 case $with_maxminddb in #( 19146 no) : 19147 as_fn_error $? "Use '--disable-geoip' to disable the GeoIP" "$LINENO" 5 ;; #( 19148 auto) : 19149 19150pkg_failed=no 19151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5 19152printf %s "checking for libmaxminddb... " >&6; } 19153 19154if test -n "$MAXMINDDB_CFLAGS"; then 19155 pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS" 19156 elif test -n "$PKG_CONFIG"; then 19157 if test -n "$PKG_CONFIG" && \ 19158 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 19159 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 19160 ac_status=$? 19161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19162 test $ac_status = 0; }; then 19163 pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null` 19164 test "x$?" != "x0" && pkg_failed=yes 19165else 19166 pkg_failed=yes 19167fi 19168 else 19169 pkg_failed=untried 19170fi 19171if test -n "$MAXMINDDB_LIBS"; then 19172 pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS" 19173 elif test -n "$PKG_CONFIG"; then 19174 if test -n "$PKG_CONFIG" && \ 19175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 19176 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 19177 ac_status=$? 19178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19179 test $ac_status = 0; }; then 19180 pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null` 19181 test "x$?" != "x0" && pkg_failed=yes 19182else 19183 pkg_failed=yes 19184fi 19185 else 19186 pkg_failed=untried 19187fi 19188 19189 19190 19191if test $pkg_failed = yes; then 19192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19193printf "%s\n" "no" >&6; } 19194 19195if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19196 _pkg_short_errors_supported=yes 19197else 19198 _pkg_short_errors_supported=no 19199fi 19200 if test $_pkg_short_errors_supported = yes; then 19201 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1` 19202 else 19203 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1` 19204 fi 19205 # Put the nasty error message in config.log where it belongs 19206 echo "$MAXMINDDB_PKG_ERRORS" >&5 19207 19208 : 19209elif test $pkg_failed = untried; then 19210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19211printf "%s\n" "no" >&6; } 19212 : 19213else 19214 MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS 19215 MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS 19216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19217printf "%s\n" "yes" >&6; } 19218 19219printf "%s\n" "#define HAVE_GEOIP2 1" >>confdefs.h 19220 19221 19222if test -n "$MAXMINDDB_PREFIX"; then 19223 pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX" 19224 elif test -n "$PKG_CONFIG"; then 19225 if test -n "$PKG_CONFIG" && \ 19226 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 19227 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 19228 ac_status=$? 19229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19230 test $ac_status = 0; }; then 19231 pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null` 19232 test "x$?" != "x0" && pkg_failed=yes 19233else 19234 pkg_failed=yes 19235fi 19236 else 19237 pkg_failed=untried 19238fi 19239MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX 19240 19241if test "x$MAXMINDDB_PREFIX" = x"" 19242then : 19243 as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5 19244fi 19245 19246fi ;; #( 19247 yes) : 19248 19249pkg_failed=no 19250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5 19251printf %s "checking for libmaxminddb... " >&6; } 19252 19253if test -n "$MAXMINDDB_CFLAGS"; then 19254 pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS" 19255 elif test -n "$PKG_CONFIG"; then 19256 if test -n "$PKG_CONFIG" && \ 19257 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 19258 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 19259 ac_status=$? 19260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19261 test $ac_status = 0; }; then 19262 pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null` 19263 test "x$?" != "x0" && pkg_failed=yes 19264else 19265 pkg_failed=yes 19266fi 19267 else 19268 pkg_failed=untried 19269fi 19270if test -n "$MAXMINDDB_LIBS"; then 19271 pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS" 19272 elif test -n "$PKG_CONFIG"; then 19273 if test -n "$PKG_CONFIG" && \ 19274 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 19275 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 19276 ac_status=$? 19277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19278 test $ac_status = 0; }; then 19279 pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null` 19280 test "x$?" != "x0" && pkg_failed=yes 19281else 19282 pkg_failed=yes 19283fi 19284 else 19285 pkg_failed=untried 19286fi 19287 19288 19289 19290if test $pkg_failed = yes; then 19291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19292printf "%s\n" "no" >&6; } 19293 19294if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19295 _pkg_short_errors_supported=yes 19296else 19297 _pkg_short_errors_supported=no 19298fi 19299 if test $_pkg_short_errors_supported = yes; then 19300 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1` 19301 else 19302 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1` 19303 fi 19304 # Put the nasty error message in config.log where it belongs 19305 echo "$MAXMINDDB_PKG_ERRORS" >&5 19306 19307 as_fn_error $? "Package requirements (libmaxminddb) were not met: 19308 19309$MAXMINDDB_PKG_ERRORS 19310 19311Consider adjusting the PKG_CONFIG_PATH environment variable if you 19312installed software in a non-standard prefix. 19313 19314Alternatively, you may set the environment variables MAXMINDDB_CFLAGS 19315and MAXMINDDB_LIBS to avoid the need to call pkg-config. 19316See the pkg-config man page for more details." "$LINENO" 5 19317elif test $pkg_failed = untried; then 19318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19319printf "%s\n" "no" >&6; } 19320 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19321printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19322as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19323is in your PATH or set the PKG_CONFIG environment variable to the full 19324path to pkg-config. 19325 19326Alternatively, you may set the environment variables MAXMINDDB_CFLAGS 19327and MAXMINDDB_LIBS to avoid the need to call pkg-config. 19328See the pkg-config man page for more details. 19329 19330To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19331See \`config.log' for more details" "$LINENO" 5; } 19332else 19333 MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS 19334 MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS 19335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19336printf "%s\n" "yes" >&6; } 19337 19338printf "%s\n" "#define HAVE_GEOIP2 1" >>confdefs.h 19339 19340 19341if test -n "$MAXMINDDB_PREFIX"; then 19342 pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX" 19343 elif test -n "$PKG_CONFIG"; then 19344 if test -n "$PKG_CONFIG" && \ 19345 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 19346 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 19347 ac_status=$? 19348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19349 test $ac_status = 0; }; then 19350 pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null` 19351 test "x$?" != "x0" && pkg_failed=yes 19352else 19353 pkg_failed=yes 19354fi 19355 else 19356 pkg_failed=untried 19357fi 19358MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX 19359 19360if test "x$MAXMINDDB_PREFIX" = x"" 19361then : 19362 as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5 19363fi 19364 19365fi ;; #( 19366 *) : 19367 # default 19368 19369 19370 CCASFLAGS_maxminddb_ax_save_flags=$CCASFLAGS 19371 19372 19373 19374 CFLAGS_maxminddb_ax_save_flags=$CFLAGS 19375 19376 19377 19378 CPPFLAGS_maxminddb_ax_save_flags=$CPPFLAGS 19379 19380 19381 19382 CXXFLAGS_maxminddb_ax_save_flags=$CXXFLAGS 19383 19384 19385 19386 ERLCFLAGS_maxminddb_ax_save_flags=$ERLCFLAGS 19387 19388 19389 19390 FCFLAGS_maxminddb_ax_save_flags=$FCFLAGS 19391 19392 19393 19394 FCLIBS_maxminddb_ax_save_flags=$FCLIBS 19395 19396 19397 19398 FFLAGS_maxminddb_ax_save_flags=$FFLAGS 19399 19400 19401 19402 FLIBS_maxminddb_ax_save_flags=$FLIBS 19403 19404 19405 19406 GCJFLAGS_maxminddb_ax_save_flags=$GCJFLAGS 19407 19408 19409 19410 JAVACFLAGS_maxminddb_ax_save_flags=$JAVACFLAGS 19411 19412 19413 19414 LDFLAGS_maxminddb_ax_save_flags=$LDFLAGS 19415 19416 19417 19418 LIBS_maxminddb_ax_save_flags=$LIBS 19419 19420 19421 19422 OBJCFLAGS_maxminddb_ax_save_flags=$OBJCFLAGS 19423 19424 19425 19426 OBJCXXFLAGS_maxminddb_ax_save_flags=$OBJCXXFLAGS 19427 19428 19429 19430 UPCFLAGS_maxminddb_ax_save_flags=$UPCFLAGS 19431 19432 19433 19434 VALAFLAGS_maxminddb_ax_save_flags=$VALAFLAGS 19435 19436 19437 19438 MAXMINDDB_CFLAGS="-I$with_maxminddb/include" 19439 MAXMINDDB_LIBS="-L$with_maxminddb/lib" 19440 CFLAGS="$CFLAGS $MAXMINDDB_CFLAGS" 19441 LIBS="$LIBS $MAXMINDDB_LIBS" 19442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MMDB_open" >&5 19443printf %s "checking for library containing MMDB_open... " >&6; } 19444if test ${ac_cv_search_MMDB_open+y} 19445then : 19446 printf %s "(cached) " >&6 19447else $as_nop 19448 ac_func_search_save_LIBS=$LIBS 19449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19450/* end confdefs.h. */ 19451 19452/* Override any GCC internal prototype to avoid an error. 19453 Use char because int might match the return type of a GCC 19454 builtin and then its argument prototype would still apply. */ 19455char MMDB_open (); 19456int 19457main (void) 19458{ 19459return MMDB_open (); 19460 ; 19461 return 0; 19462} 19463_ACEOF 19464for ac_lib in '' maxminddb 19465do 19466 if test -z "$ac_lib"; then 19467 ac_res="none required" 19468 else 19469 ac_res=-l$ac_lib 19470 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19471 fi 19472 if ac_fn_c_try_link "$LINENO" 19473then : 19474 ac_cv_search_MMDB_open=$ac_res 19475fi 19476rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19477 conftest$ac_exeext 19478 if test ${ac_cv_search_MMDB_open+y} 19479then : 19480 break 19481fi 19482done 19483if test ${ac_cv_search_MMDB_open+y} 19484then : 19485 19486else $as_nop 19487 ac_cv_search_MMDB_open=no 19488fi 19489rm conftest.$ac_ext 19490LIBS=$ac_func_search_save_LIBS 19491fi 19492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MMDB_open" >&5 19493printf "%s\n" "$ac_cv_search_MMDB_open" >&6; } 19494ac_res=$ac_cv_search_MMDB_open 19495if test "$ac_res" != no 19496then : 19497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19498 19499printf "%s\n" "#define HAVE_GEOIP2 1" >>confdefs.h 19500 19501 MAXMINDDB_LIBS="$MAXMINDDB_LIBS $ac_cv_search_MMDB_open" 19502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&5 19503printf "%s\n" "$as_me: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&6;} 19504 MAXMINDDB_PREFIX=$with_maxminddb 19505 19506else $as_nop 19507 as_fn_error $? "GeoIP2 requested, but libmaxminddb not found" "$LINENO" 5 19508fi 19509 19510 19511 CCASFLAGS=$CCASFLAGS_maxminddb_ax_save_flags 19512 19513 19514 CFLAGS=$CFLAGS_maxminddb_ax_save_flags 19515 19516 19517 CPPFLAGS=$CPPFLAGS_maxminddb_ax_save_flags 19518 19519 19520 CXXFLAGS=$CXXFLAGS_maxminddb_ax_save_flags 19521 19522 19523 ERLCFLAGS=$ERLCFLAGS_maxminddb_ax_save_flags 19524 19525 19526 FCFLAGS=$FCFLAGS_maxminddb_ax_save_flags 19527 19528 19529 FCLIBS=$FCLIBS_maxminddb_ax_save_flags 19530 19531 19532 FFLAGS=$FFLAGS_maxminddb_ax_save_flags 19533 19534 19535 FLIBS=$FLIBS_maxminddb_ax_save_flags 19536 19537 19538 GCJFLAGS=$GCJFLAGS_maxminddb_ax_save_flags 19539 19540 19541 JAVACFLAGS=$JAVACFLAGS_maxminddb_ax_save_flags 19542 19543 19544 LDFLAGS=$LDFLAGS_maxminddb_ax_save_flags 19545 19546 19547 LIBS=$LIBS_maxminddb_ax_save_flags 19548 19549 19550 OBJCFLAGS=$OBJCFLAGS_maxminddb_ax_save_flags 19551 19552 19553 OBJCXXFLAGS=$OBJCXXFLAGS_maxminddb_ax_save_flags 19554 19555 19556 UPCFLAGS=$UPCFLAGS_maxminddb_ax_save_flags 19557 19558 19559 VALAFLAGS=$VALAFLAGS_maxminddb_ax_save_flags 19560 19561 19562 19563 ;; 19564esac 19565 19566 19567fi 19568 19569 if test -n "$MAXMINDDB_LIBS"; then 19570 HAVE_GEOIP2_TRUE= 19571 HAVE_GEOIP2_FALSE='#' 19572else 19573 HAVE_GEOIP2_TRUE='#' 19574 HAVE_GEOIP2_FALSE= 19575fi 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586ac_ext=c 19587ac_cpp='$CPP $CPPFLAGS' 19588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19590ac_compiler_gnu=$ac_cv_c_compiler_gnu 19591 19592ax_pthread_ok=no 19593 19594# We used to check for pthread.h first, but this fails if pthread.h 19595# requires special compiler flags (e.g. on Tru64 or Sequent). 19596# It gets checked for in the link test anyway. 19597 19598# First of all, check if the user has set any of the PTHREAD_LIBS, 19599# etcetera environment variables, and if threads linking works using 19600# them: 19601if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 19602 ax_pthread_save_CC="$CC" 19603 ax_pthread_save_CFLAGS="$CFLAGS" 19604 ax_pthread_save_LIBS="$LIBS" 19605 if test "x$PTHREAD_CC" != "x" 19606then : 19607 CC="$PTHREAD_CC" 19608fi 19609 if test "x$PTHREAD_CXX" != "x" 19610then : 19611 CXX="$PTHREAD_CXX" 19612fi 19613 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19614 LIBS="$PTHREAD_LIBS $LIBS" 19615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 19616printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 19617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19618/* end confdefs.h. */ 19619 19620/* Override any GCC internal prototype to avoid an error. 19621 Use char because int might match the return type of a GCC 19622 builtin and then its argument prototype would still apply. */ 19623char pthread_join (); 19624int 19625main (void) 19626{ 19627return pthread_join (); 19628 ; 19629 return 0; 19630} 19631_ACEOF 19632if ac_fn_c_try_link "$LINENO" 19633then : 19634 ax_pthread_ok=yes 19635fi 19636rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19637 conftest$ac_exeext conftest.$ac_ext 19638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 19639printf "%s\n" "$ax_pthread_ok" >&6; } 19640 if test "x$ax_pthread_ok" = "xno"; then 19641 PTHREAD_LIBS="" 19642 PTHREAD_CFLAGS="" 19643 fi 19644 CC="$ax_pthread_save_CC" 19645 CFLAGS="$ax_pthread_save_CFLAGS" 19646 LIBS="$ax_pthread_save_LIBS" 19647fi 19648 19649# We must check for the threads library under a number of different 19650# names; the ordering is very important because some systems 19651# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 19652# libraries is broken (non-POSIX). 19653 19654# Create a list of thread flags to try. Items with a "," contain both 19655# C compiler flags (before ",") and linker flags (after ","). Other items 19656# starting with a "-" are C compiler flags, and remaining items are 19657# library names, except for "none" which indicates that we try without 19658# any flags at all, and "pthread-config" which is a program returning 19659# the flags for the Pth emulation library. 19660 19661ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 19662 19663# The ordering *is* (sometimes) important. Some notes on the 19664# individual items follow: 19665 19666# pthreads: AIX (must check this before -lpthread) 19667# none: in case threads are in libc; should be tried before -Kthread and 19668# other compiler flags to prevent continual compiler warnings 19669# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 19670# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 19671# (Note: HP C rejects this with "bad form for `-t' option") 19672# -pthreads: Solaris/gcc (Note: HP C also rejects) 19673# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 19674# doesn't hurt to check since this sometimes defines pthreads and 19675# -D_REENTRANT too), HP C (must be checked before -lpthread, which 19676# is present but should not be used directly; and before -mthreads, 19677# because the compiler interprets this as "-mt" + "-hreads") 19678# -mthreads: Mingw32/gcc, Lynx/gcc 19679# pthread: Linux, etcetera 19680# --thread-safe: KAI C++ 19681# pthread-config: use pthread-config program (for GNU Pth library) 19682 19683case $target_os in 19684 19685 freebsd*) 19686 19687 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 19688 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 19689 19690 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 19691 ;; 19692 19693 hpux*) 19694 19695 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 19696 # multi-threading and also sets -lpthread." 19697 19698 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 19699 ;; 19700 19701 openedition*) 19702 19703 # IBM z/OS requires a feature-test macro to be defined in order to 19704 # enable POSIX threads at all, so give the user a hint if this is 19705 # not set. (We don't define these ourselves, as they can affect 19706 # other portions of the system API in unpredictable ways.) 19707 19708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19709/* end confdefs.h. */ 19710 19711# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 19712 AX_PTHREAD_ZOS_MISSING 19713# endif 19714 19715_ACEOF 19716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19717 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 19718then : 19719 { 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 19720printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 19721fi 19722rm -rf conftest* 19723 19724 ;; 19725 19726 solaris*) 19727 19728 # On Solaris (at least, for some versions), libc contains stubbed 19729 # (non-functional) versions of the pthreads routines, so link-based 19730 # tests will erroneously succeed. (N.B.: The stubs are missing 19731 # pthread_cleanup_push, or rather a function called by this macro, 19732 # so we could check for that, but who knows whether they'll stub 19733 # that too in a future libc.) So we'll check first for the 19734 # standard Solaris way of linking pthreads (-mt -lpthread). 19735 19736 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" 19737 ;; 19738esac 19739 19740# Are we compiling with Clang? 19741 19742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 19743printf %s "checking whether $CC is Clang... " >&6; } 19744if test ${ax_cv_PTHREAD_CLANG+y} 19745then : 19746 printf %s "(cached) " >&6 19747else $as_nop 19748 ax_cv_PTHREAD_CLANG=no 19749 # Note that Autoconf sets GCC=yes for Clang as well as GCC 19750 if test "x$GCC" = "xyes"; then 19751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19752/* end confdefs.h. */ 19753/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 19754# if defined(__clang__) && defined(__llvm__) 19755 AX_PTHREAD_CC_IS_CLANG 19756# endif 19757 19758_ACEOF 19759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19760 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 19761then : 19762 ax_cv_PTHREAD_CLANG=yes 19763fi 19764rm -rf conftest* 19765 19766 fi 19767 19768fi 19769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 19770printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } 19771ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 19772 19773 19774# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 19775 19776# Note that for GCC and Clang -pthread generally implies -lpthread, 19777# except when -nostdlib is passed. 19778# This is problematic using libtool to build C++ shared libraries with pthread: 19779# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 19780# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 19781# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 19782# To solve this, first try -pthread together with -lpthread for GCC 19783 19784if test "x$GCC" = "xyes" 19785then : 19786 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" 19787fi 19788 19789# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first 19790 19791if test "x$ax_pthread_clang" = "xyes" 19792then : 19793 ax_pthread_flags="-pthread,-lpthread -pthread" 19794fi 19795 19796 19797# The presence of a feature test macro requesting re-entrant function 19798# definitions is, on some systems, a strong hint that pthreads support is 19799# correctly enabled 19800 19801case $target_os in 19802 darwin* | hpux* | linux* | osf* | solaris*) 19803 ax_pthread_check_macro="_REENTRANT" 19804 ;; 19805 19806 aix*) 19807 ax_pthread_check_macro="_THREAD_SAFE" 19808 ;; 19809 19810 *) 19811 ax_pthread_check_macro="--" 19812 ;; 19813esac 19814if test "x$ax_pthread_check_macro" = "x--" 19815then : 19816 ax_pthread_check_cond=0 19817else $as_nop 19818 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 19819fi 19820 19821 19822if test "x$ax_pthread_ok" = "xno"; then 19823for ax_pthread_try_flag in $ax_pthread_flags; do 19824 19825 case $ax_pthread_try_flag in 19826 none) 19827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 19828printf %s "checking whether pthreads work without any flags... " >&6; } 19829 ;; 19830 19831 *,*) 19832 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` 19833 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` 19834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 19835printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } 19836 ;; 19837 19838 -*) 19839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 19840printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 19841 PTHREAD_CFLAGS="$ax_pthread_try_flag" 19842 ;; 19843 19844 pthread-config) 19845 # Extract the first word of "pthread-config", so it can be a program name with args. 19846set dummy pthread-config; ac_word=$2 19847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19848printf %s "checking for $ac_word... " >&6; } 19849if test ${ac_cv_prog_ax_pthread_config+y} 19850then : 19851 printf %s "(cached) " >&6 19852else $as_nop 19853 if test -n "$ax_pthread_config"; then 19854 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 19855else 19856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19857for as_dir in $PATH 19858do 19859 IFS=$as_save_IFS 19860 case $as_dir in #((( 19861 '') as_dir=./ ;; 19862 */) ;; 19863 *) as_dir=$as_dir/ ;; 19864 esac 19865 for ac_exec_ext in '' $ac_executable_extensions; do 19866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19867 ac_cv_prog_ax_pthread_config="yes" 19868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19869 break 2 19870 fi 19871done 19872 done 19873IFS=$as_save_IFS 19874 19875 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 19876fi 19877fi 19878ax_pthread_config=$ac_cv_prog_ax_pthread_config 19879if test -n "$ax_pthread_config"; then 19880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 19881printf "%s\n" "$ax_pthread_config" >&6; } 19882else 19883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19884printf "%s\n" "no" >&6; } 19885fi 19886 19887 19888 if test "x$ax_pthread_config" = "xno" 19889then : 19890 continue 19891fi 19892 PTHREAD_CFLAGS="`pthread-config --cflags`" 19893 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 19894 ;; 19895 19896 *) 19897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 19898printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 19899 PTHREAD_LIBS="-l$ax_pthread_try_flag" 19900 ;; 19901 esac 19902 19903 ax_pthread_save_CFLAGS="$CFLAGS" 19904 ax_pthread_save_LIBS="$LIBS" 19905 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19906 LIBS="$PTHREAD_LIBS $LIBS" 19907 19908 # Check for various functions. We must include pthread.h, 19909 # since some functions may be macros. (On the Sequent, we 19910 # need a special flag -Kthread to make this header compile.) 19911 # We check for pthread_join because it is in -lpthread on IRIX 19912 # while pthread_create is in libc. We check for pthread_attr_init 19913 # due to DEC craziness with -lpthreads. We check for 19914 # pthread_cleanup_push because it is one of the few pthread 19915 # functions on Solaris that doesn't have a non-functional libc stub. 19916 # We try pthread_create on general principles. 19917 19918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19919/* end confdefs.h. */ 19920#include <pthread.h> 19921# if $ax_pthread_check_cond 19922# error "$ax_pthread_check_macro must be defined" 19923# endif 19924 static void *some_global = NULL; 19925 static void routine(void *a) 19926 { 19927 /* To avoid any unused-parameter or 19928 unused-but-set-parameter warning. */ 19929 some_global = a; 19930 } 19931 static void *start_routine(void *a) { return a; } 19932int 19933main (void) 19934{ 19935pthread_t th; pthread_attr_t attr; 19936 pthread_create(&th, 0, start_routine, 0); 19937 pthread_join(th, 0); 19938 pthread_attr_init(&attr); 19939 pthread_cleanup_push(routine, 0); 19940 pthread_cleanup_pop(0) /* ; */ 19941 ; 19942 return 0; 19943} 19944_ACEOF 19945if ac_fn_c_try_link "$LINENO" 19946then : 19947 ax_pthread_ok=yes 19948fi 19949rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19950 conftest$ac_exeext conftest.$ac_ext 19951 19952 CFLAGS="$ax_pthread_save_CFLAGS" 19953 LIBS="$ax_pthread_save_LIBS" 19954 19955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 19956printf "%s\n" "$ax_pthread_ok" >&6; } 19957 if test "x$ax_pthread_ok" = "xyes" 19958then : 19959 break 19960fi 19961 19962 PTHREAD_LIBS="" 19963 PTHREAD_CFLAGS="" 19964done 19965fi 19966 19967 19968# Clang needs special handling, because older versions handle the -pthread 19969# option in a rather... idiosyncratic way 19970 19971if test "x$ax_pthread_clang" = "xyes"; then 19972 19973 # Clang takes -pthread; it has never supported any other flag 19974 19975 # (Note 1: This will need to be revisited if a system that Clang 19976 # supports has POSIX threads in a separate library. This tends not 19977 # to be the way of modern systems, but it's conceivable.) 19978 19979 # (Note 2: On some systems, notably Darwin, -pthread is not needed 19980 # to get POSIX threads support; the API is always present and 19981 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 19982 # -pthread does define _REENTRANT, and while the Darwin headers 19983 # ignore this macro, third-party headers might not.) 19984 19985 # However, older versions of Clang make a point of warning the user 19986 # that, in an invocation where only linking and no compilation is 19987 # taking place, the -pthread option has no effect ("argument unused 19988 # during compilation"). They expect -pthread to be passed in only 19989 # when source code is being compiled. 19990 # 19991 # Problem is, this is at odds with the way Automake and most other 19992 # C build frameworks function, which is that the same flags used in 19993 # compilation (CFLAGS) are also used in linking. Many systems 19994 # supported by AX_PTHREAD require exactly this for POSIX threads 19995 # support, and in fact it is often not straightforward to specify a 19996 # flag that is used only in the compilation phase and not in 19997 # linking. Such a scenario is extremely rare in practice. 19998 # 19999 # Even though use of the -pthread flag in linking would only print 20000 # a warning, this can be a nuisance for well-run software projects 20001 # that build with -Werror. So if the active version of Clang has 20002 # this misfeature, we search for an option to squash it. 20003 20004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 20005printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 20006if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} 20007then : 20008 printf %s "(cached) " >&6 20009else $as_nop 20010 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 20011 # Create an alternate version of $ac_link that compiles and 20012 # links in two steps (.c -> .o, .o -> exe) instead of one 20013 # (.c -> exe), because the warning occurs only in the second 20014 # step 20015 ax_pthread_save_ac_link="$ac_link" 20016 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 20017 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"` 20018 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 20019 ax_pthread_save_CFLAGS="$CFLAGS" 20020 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 20021 if test "x$ax_pthread_try" = "xunknown" 20022then : 20023 break 20024fi 20025 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 20026 ac_link="$ax_pthread_save_ac_link" 20027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20028/* end confdefs.h. */ 20029int main(void){return 0;} 20030_ACEOF 20031if ac_fn_c_try_link "$LINENO" 20032then : 20033 ac_link="$ax_pthread_2step_ac_link" 20034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20035/* end confdefs.h. */ 20036int main(void){return 0;} 20037_ACEOF 20038if ac_fn_c_try_link "$LINENO" 20039then : 20040 break 20041fi 20042rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20043 conftest$ac_exeext conftest.$ac_ext 20044 20045fi 20046rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20047 conftest$ac_exeext conftest.$ac_ext 20048 done 20049 ac_link="$ax_pthread_save_ac_link" 20050 CFLAGS="$ax_pthread_save_CFLAGS" 20051 if test "x$ax_pthread_try" = "x" 20052then : 20053 ax_pthread_try=no 20054fi 20055 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 20056 20057fi 20058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 20059printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 20060 20061 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 20062 no | unknown) ;; 20063 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 20064 esac 20065 20066fi # $ax_pthread_clang = yes 20067 20068 20069 20070# Various other checks: 20071if test "x$ax_pthread_ok" = "xyes"; then 20072 ax_pthread_save_CFLAGS="$CFLAGS" 20073 ax_pthread_save_LIBS="$LIBS" 20074 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 20075 LIBS="$PTHREAD_LIBS $LIBS" 20076 20077 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 20078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 20079printf %s "checking for joinable pthread attribute... " >&6; } 20080if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} 20081then : 20082 printf %s "(cached) " >&6 20083else $as_nop 20084 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 20085 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 20086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20087/* end confdefs.h. */ 20088#include <pthread.h> 20089int 20090main (void) 20091{ 20092int attr = $ax_pthread_attr; return attr /* ; */ 20093 ; 20094 return 0; 20095} 20096_ACEOF 20097if ac_fn_c_try_link "$LINENO" 20098then : 20099 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 20100fi 20101rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20102 conftest$ac_exeext conftest.$ac_ext 20103 done 20104 20105fi 20106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 20107printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 20108 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 20109 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 20110 test "x$ax_pthread_joinable_attr_defined" != "xyes" 20111then : 20112 20113printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h 20114 20115 ax_pthread_joinable_attr_defined=yes 20116 20117fi 20118 20119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 20120printf %s "checking whether more special flags are required for pthreads... " >&6; } 20121if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} 20122then : 20123 printf %s "(cached) " >&6 20124else $as_nop 20125 ax_cv_PTHREAD_SPECIAL_FLAGS=no 20126 case $target_os in 20127 solaris*) 20128 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 20129 ;; 20130 esac 20131 20132fi 20133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 20134printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 20135 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 20136 test "x$ax_pthread_special_flags_added" != "xyes" 20137then : 20138 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 20139 ax_pthread_special_flags_added=yes 20140fi 20141 20142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 20143printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 20144if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 20145then : 20146 printf %s "(cached) " >&6 20147else $as_nop 20148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20149/* end confdefs.h. */ 20150#include <pthread.h> 20151int 20152main (void) 20153{ 20154int i = PTHREAD_PRIO_INHERIT; 20155 return i; 20156 ; 20157 return 0; 20158} 20159_ACEOF 20160if ac_fn_c_try_link "$LINENO" 20161then : 20162 ax_cv_PTHREAD_PRIO_INHERIT=yes 20163else $as_nop 20164 ax_cv_PTHREAD_PRIO_INHERIT=no 20165fi 20166rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20167 conftest$ac_exeext conftest.$ac_ext 20168 20169fi 20170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 20171printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 20172 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 20173 test "x$ax_pthread_prio_inherit_defined" != "xyes" 20174then : 20175 20176printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 20177 20178 ax_pthread_prio_inherit_defined=yes 20179 20180fi 20181 20182 CFLAGS="$ax_pthread_save_CFLAGS" 20183 LIBS="$ax_pthread_save_LIBS" 20184 20185 # More AIX lossage: compile with *_r variant 20186 if test "x$GCC" != "xyes"; then 20187 case $target_os in 20188 aix*) 20189 case "x/$CC" in #( 20190 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 20191 #handle absolute path differently from PATH based program lookup 20192 case "x$CC" in #( 20193 x/*) : 20194 20195 if as_fn_executable_p ${CC}_r 20196then : 20197 PTHREAD_CC="${CC}_r" 20198fi 20199 if test "x${CXX}" != "x" 20200then : 20201 if as_fn_executable_p ${CXX}_r 20202then : 20203 PTHREAD_CXX="${CXX}_r" 20204fi 20205fi 20206 ;; #( 20207 *) : 20208 20209 for ac_prog in ${CC}_r 20210do 20211 # Extract the first word of "$ac_prog", so it can be a program name with args. 20212set dummy $ac_prog; ac_word=$2 20213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20214printf %s "checking for $ac_word... " >&6; } 20215if test ${ac_cv_prog_PTHREAD_CC+y} 20216then : 20217 printf %s "(cached) " >&6 20218else $as_nop 20219 if test -n "$PTHREAD_CC"; then 20220 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 20221else 20222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20223for as_dir in $PATH 20224do 20225 IFS=$as_save_IFS 20226 case $as_dir in #((( 20227 '') as_dir=./ ;; 20228 */) ;; 20229 *) as_dir=$as_dir/ ;; 20230 esac 20231 for ac_exec_ext in '' $ac_executable_extensions; do 20232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20233 ac_cv_prog_PTHREAD_CC="$ac_prog" 20234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20235 break 2 20236 fi 20237done 20238 done 20239IFS=$as_save_IFS 20240 20241fi 20242fi 20243PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 20244if test -n "$PTHREAD_CC"; then 20245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 20246printf "%s\n" "$PTHREAD_CC" >&6; } 20247else 20248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20249printf "%s\n" "no" >&6; } 20250fi 20251 20252 20253 test -n "$PTHREAD_CC" && break 20254done 20255test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 20256 20257 if test "x${CXX}" != "x" 20258then : 20259 for ac_prog in ${CXX}_r 20260do 20261 # Extract the first word of "$ac_prog", so it can be a program name with args. 20262set dummy $ac_prog; ac_word=$2 20263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20264printf %s "checking for $ac_word... " >&6; } 20265if test ${ac_cv_prog_PTHREAD_CXX+y} 20266then : 20267 printf %s "(cached) " >&6 20268else $as_nop 20269 if test -n "$PTHREAD_CXX"; then 20270 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. 20271else 20272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20273for as_dir in $PATH 20274do 20275 IFS=$as_save_IFS 20276 case $as_dir in #((( 20277 '') as_dir=./ ;; 20278 */) ;; 20279 *) as_dir=$as_dir/ ;; 20280 esac 20281 for ac_exec_ext in '' $ac_executable_extensions; do 20282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20283 ac_cv_prog_PTHREAD_CXX="$ac_prog" 20284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20285 break 2 20286 fi 20287done 20288 done 20289IFS=$as_save_IFS 20290 20291fi 20292fi 20293PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX 20294if test -n "$PTHREAD_CXX"; then 20295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 20296printf "%s\n" "$PTHREAD_CXX" >&6; } 20297else 20298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20299printf "%s\n" "no" >&6; } 20300fi 20301 20302 20303 test -n "$PTHREAD_CXX" && break 20304done 20305test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 20306 20307fi 20308 20309 ;; 20310esac 20311 ;; #( 20312 *) : 20313 ;; 20314esac 20315 ;; 20316 esac 20317 fi 20318fi 20319 20320test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 20321test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 20322 20323 20324 20325 20326 20327 20328# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 20329if test "x$ax_pthread_ok" = "xyes"; then 20330 20331printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 20332 20333 : 20334else 20335 ax_pthread_ok=no 20336 20337fi 20338ac_ext=c 20339ac_cpp='$CPP $CPPFLAGS' 20340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20342ac_compiler_gnu=$ac_cv_c_compiler_gnu 20343 20344 20345 20346LIBS="$PTHREAD_LIBS $LIBS" 20347CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 20348CC="$PTHREAD_CC" 20349 20350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5 20351printf %s "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; } 20352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20353/* end confdefs.h. */ 20354#include <pthread.h> 20355int 20356main (void) 20357{ 20358(void)pthread_mutexattr_settype(&(pthread_mutexattr_t){ NULL }, PTHREAD_MUTEX_ADAPTIVE_NP); 20359 ; 20360 return 0; 20361} 20362_ACEOF 20363if ac_fn_c_try_compile "$LINENO" 20364then : 20365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20366printf "%s\n" "yes" >&6; } 20367 20368printf "%s\n" "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h 20369 20370else $as_nop 20371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20372printf "%s\n" "no" >&6; } 20373fi 20374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20375 20376ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize" 20377if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes 20378then : 20379 printf "%s\n" "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h 20380 20381fi 20382ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize" 20383if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes 20384then : 20385 printf "%s\n" "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h 20386 20387fi 20388ac_fn_c_check_func "$LINENO" "pthread_barrier_init" "ac_cv_func_pthread_barrier_init" 20389if test "x$ac_cv_func_pthread_barrier_init" = xyes 20390then : 20391 printf "%s\n" "#define HAVE_PTHREAD_BARRIER_INIT 1" >>confdefs.h 20392 20393fi 20394ac_fn_c_check_func "$LINENO" "pthread_spin_init" "ac_cv_func_pthread_spin_init" 20395if test "x$ac_cv_func_pthread_spin_init" = xyes 20396then : 20397 printf "%s\n" "#define HAVE_PTHREAD_SPIN_INIT 1" >>confdefs.h 20398 20399fi 20400 20401 20402ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 20403if test "x$ac_cv_header_sched_h" = xyes 20404then : 20405 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h 20406 20407fi 20408 20409 20410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5 20411printf %s "checking for library containing sched_yield... " >&6; } 20412if test ${ac_cv_search_sched_yield+y} 20413then : 20414 printf %s "(cached) " >&6 20415else $as_nop 20416 ac_func_search_save_LIBS=$LIBS 20417cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20418/* end confdefs.h. */ 20419 20420/* Override any GCC internal prototype to avoid an error. 20421 Use char because int might match the return type of a GCC 20422 builtin and then its argument prototype would still apply. */ 20423char sched_yield (); 20424int 20425main (void) 20426{ 20427return sched_yield (); 20428 ; 20429 return 0; 20430} 20431_ACEOF 20432for ac_lib in '' rt 20433do 20434 if test -z "$ac_lib"; then 20435 ac_res="none required" 20436 else 20437 ac_res=-l$ac_lib 20438 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20439 fi 20440 if ac_fn_c_try_link "$LINENO" 20441then : 20442 ac_cv_search_sched_yield=$ac_res 20443fi 20444rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20445 conftest$ac_exeext 20446 if test ${ac_cv_search_sched_yield+y} 20447then : 20448 break 20449fi 20450done 20451if test ${ac_cv_search_sched_yield+y} 20452then : 20453 20454else $as_nop 20455 ac_cv_search_sched_yield=no 20456fi 20457rm conftest.$ac_ext 20458LIBS=$ac_func_search_save_LIBS 20459fi 20460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5 20461printf "%s\n" "$ac_cv_search_sched_yield" >&6; } 20462ac_res=$ac_cv_search_sched_yield 20463if test "$ac_res" != no 20464then : 20465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20466 20467fi 20468 20469ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield" 20470if test "x$ac_cv_func_sched_yield" = xyes 20471then : 20472 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h 20473 20474fi 20475ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield" 20476if test "x$ac_cv_func_pthread_yield" = xyes 20477then : 20478 printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h 20479 20480fi 20481ac_fn_c_check_func "$LINENO" "pthread_yield_np" "ac_cv_func_pthread_yield_np" 20482if test "x$ac_cv_func_pthread_yield_np" = xyes 20483then : 20484 printf "%s\n" "#define HAVE_PTHREAD_YIELD_NP 1" >>confdefs.h 20485 20486fi 20487 20488 20489# Look for functions relating to thread naming 20490ac_fn_c_check_func "$LINENO" "pthread_setname_np" "ac_cv_func_pthread_setname_np" 20491if test "x$ac_cv_func_pthread_setname_np" = xyes 20492then : 20493 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h 20494 20495fi 20496ac_fn_c_check_func "$LINENO" "pthread_set_name_np" "ac_cv_func_pthread_set_name_np" 20497if test "x$ac_cv_func_pthread_set_name_np" = xyes 20498then : 20499 printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h 20500 20501fi 20502 20503ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h> 20504" 20505if test "x$ac_cv_header_pthread_np_h" = xyes 20506then : 20507 printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 20508 20509fi 20510 20511 20512# libuv 20513 20514pkg_failed=no 20515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.37.0" >&5 20516printf %s "checking for libuv >= 1.37.0... " >&6; } 20517 20518if test -n "$LIBUV_CFLAGS"; then 20519 pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS" 20520 elif test -n "$PKG_CONFIG"; then 20521 if test -n "$PKG_CONFIG" && \ 20522 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.37.0\""; } >&5 20523 ($PKG_CONFIG --exists --print-errors "libuv >= 1.37.0") 2>&5 20524 ac_status=$? 20525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20526 test $ac_status = 0; }; then 20527 pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.37.0" 2>/dev/null` 20528 test "x$?" != "x0" && pkg_failed=yes 20529else 20530 pkg_failed=yes 20531fi 20532 else 20533 pkg_failed=untried 20534fi 20535if test -n "$LIBUV_LIBS"; then 20536 pkg_cv_LIBUV_LIBS="$LIBUV_LIBS" 20537 elif test -n "$PKG_CONFIG"; then 20538 if test -n "$PKG_CONFIG" && \ 20539 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.37.0\""; } >&5 20540 ($PKG_CONFIG --exists --print-errors "libuv >= 1.37.0") 2>&5 20541 ac_status=$? 20542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20543 test $ac_status = 0; }; then 20544 pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.37.0" 2>/dev/null` 20545 test "x$?" != "x0" && pkg_failed=yes 20546else 20547 pkg_failed=yes 20548fi 20549 else 20550 pkg_failed=untried 20551fi 20552 20553 20554 20555if test $pkg_failed = yes; then 20556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20557printf "%s\n" "no" >&6; } 20558 20559if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20560 _pkg_short_errors_supported=yes 20561else 20562 _pkg_short_errors_supported=no 20563fi 20564 if test $_pkg_short_errors_supported = yes; then 20565 LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.37.0" 2>&1` 20566 else 20567 LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.37.0" 2>&1` 20568 fi 20569 # Put the nasty error message in config.log where it belongs 20570 echo "$LIBUV_PKG_ERRORS" >&5 20571 20572 20573pkg_failed=no 20574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.34.0 libuv < 1.35.0" >&5 20575printf %s "checking for libuv >= 1.34.0 libuv < 1.35.0... " >&6; } 20576 20577if test -n "$LIBUV_CFLAGS"; then 20578 pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS" 20579 elif test -n "$PKG_CONFIG"; then 20580 if test -n "$PKG_CONFIG" && \ 20581 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.34.0 libuv < 1.35.0\""; } >&5 20582 ($PKG_CONFIG --exists --print-errors "libuv >= 1.34.0 libuv < 1.35.0") 2>&5 20583 ac_status=$? 20584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20585 test $ac_status = 0; }; then 20586 pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.34.0 libuv < 1.35.0" 2>/dev/null` 20587 test "x$?" != "x0" && pkg_failed=yes 20588else 20589 pkg_failed=yes 20590fi 20591 else 20592 pkg_failed=untried 20593fi 20594if test -n "$LIBUV_LIBS"; then 20595 pkg_cv_LIBUV_LIBS="$LIBUV_LIBS" 20596 elif test -n "$PKG_CONFIG"; then 20597 if test -n "$PKG_CONFIG" && \ 20598 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.34.0 libuv < 1.35.0\""; } >&5 20599 ($PKG_CONFIG --exists --print-errors "libuv >= 1.34.0 libuv < 1.35.0") 2>&5 20600 ac_status=$? 20601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20602 test $ac_status = 0; }; then 20603 pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>/dev/null` 20604 test "x$?" != "x0" && pkg_failed=yes 20605else 20606 pkg_failed=yes 20607fi 20608 else 20609 pkg_failed=untried 20610fi 20611 20612 20613 20614if test $pkg_failed = yes; then 20615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20616printf "%s\n" "no" >&6; } 20617 20618if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20619 _pkg_short_errors_supported=yes 20620else 20621 _pkg_short_errors_supported=no 20622fi 20623 if test $_pkg_short_errors_supported = yes; then 20624 LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>&1` 20625 else 20626 LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>&1` 20627 fi 20628 # Put the nasty error message in config.log where it belongs 20629 echo "$LIBUV_PKG_ERRORS" >&5 20630 20631 as_fn_error $? "libuv >= 1.34.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5 20632elif test $pkg_failed = untried; then 20633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20634printf "%s\n" "no" >&6; } 20635 as_fn_error $? "libuv >= 1.34.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5 20636else 20637 LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS 20638 LIBUV_LIBS=$pkg_cv_LIBUV_LIBS 20639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20640printf "%s\n" "yes" >&6; } 20641 20642fi 20643elif test $pkg_failed = untried; then 20644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20645printf "%s\n" "no" >&6; } 20646 20647pkg_failed=no 20648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.34.0 libuv < 1.35.0" >&5 20649printf %s "checking for libuv >= 1.34.0 libuv < 1.35.0... " >&6; } 20650 20651if test -n "$LIBUV_CFLAGS"; then 20652 pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS" 20653 elif test -n "$PKG_CONFIG"; then 20654 if test -n "$PKG_CONFIG" && \ 20655 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.34.0 libuv < 1.35.0\""; } >&5 20656 ($PKG_CONFIG --exists --print-errors "libuv >= 1.34.0 libuv < 1.35.0") 2>&5 20657 ac_status=$? 20658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20659 test $ac_status = 0; }; then 20660 pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.34.0 libuv < 1.35.0" 2>/dev/null` 20661 test "x$?" != "x0" && pkg_failed=yes 20662else 20663 pkg_failed=yes 20664fi 20665 else 20666 pkg_failed=untried 20667fi 20668if test -n "$LIBUV_LIBS"; then 20669 pkg_cv_LIBUV_LIBS="$LIBUV_LIBS" 20670 elif test -n "$PKG_CONFIG"; then 20671 if test -n "$PKG_CONFIG" && \ 20672 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.34.0 libuv < 1.35.0\""; } >&5 20673 ($PKG_CONFIG --exists --print-errors "libuv >= 1.34.0 libuv < 1.35.0") 2>&5 20674 ac_status=$? 20675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20676 test $ac_status = 0; }; then 20677 pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>/dev/null` 20678 test "x$?" != "x0" && pkg_failed=yes 20679else 20680 pkg_failed=yes 20681fi 20682 else 20683 pkg_failed=untried 20684fi 20685 20686 20687 20688if test $pkg_failed = yes; then 20689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20690printf "%s\n" "no" >&6; } 20691 20692if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20693 _pkg_short_errors_supported=yes 20694else 20695 _pkg_short_errors_supported=no 20696fi 20697 if test $_pkg_short_errors_supported = yes; then 20698 LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>&1` 20699 else 20700 LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>&1` 20701 fi 20702 # Put the nasty error message in config.log where it belongs 20703 echo "$LIBUV_PKG_ERRORS" >&5 20704 20705 as_fn_error $? "libuv >= 1.34.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5 20706elif test $pkg_failed = untried; then 20707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20708printf "%s\n" "no" >&6; } 20709 as_fn_error $? "libuv >= 1.34.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5 20710else 20711 LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS 20712 LIBUV_LIBS=$pkg_cv_LIBUV_LIBS 20713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20714printf "%s\n" "yes" >&6; } 20715 20716fi 20717else 20718 LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS 20719 LIBUV_LIBS=$pkg_cv_LIBUV_LIBS 20720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20721printf "%s\n" "yes" >&6; } 20722 20723fi 20724 20725 20726if test -n "$LIBUV_VERSION"; then 20727 pkg_cv_LIBUV_VERSION="$LIBUV_VERSION" 20728 elif test -n "$PKG_CONFIG"; then 20729 if test -n "$PKG_CONFIG" && \ 20730 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv\""; } >&5 20731 ($PKG_CONFIG --exists --print-errors "libuv") 2>&5 20732 ac_status=$? 20733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20734 test $ac_status = 0; }; then 20735 pkg_cv_LIBUV_VERSION=`$PKG_CONFIG --modversion "libuv" 2>/dev/null` 20736 test "x$?" != "x0" && pkg_failed=yes 20737else 20738 pkg_failed=yes 20739fi 20740 else 20741 pkg_failed=untried 20742fi 20743LIBUV_VERSION=$pkg_cv_LIBUV_VERSION 20744 20745if test "x$LIBUV_VERSION" = x"" 20746then : 20747 20748fi 20749 20750 20751 20752 CCASFLAGS_libuv_ax_save_flags=$CCASFLAGS 20753 20754 20755 20756 CFLAGS_libuv_ax_save_flags=$CFLAGS 20757 20758 20759 20760 CPPFLAGS_libuv_ax_save_flags=$CPPFLAGS 20761 20762 20763 20764 CXXFLAGS_libuv_ax_save_flags=$CXXFLAGS 20765 20766 20767 20768 ERLCFLAGS_libuv_ax_save_flags=$ERLCFLAGS 20769 20770 20771 20772 FCFLAGS_libuv_ax_save_flags=$FCFLAGS 20773 20774 20775 20776 FCLIBS_libuv_ax_save_flags=$FCLIBS 20777 20778 20779 20780 FFLAGS_libuv_ax_save_flags=$FFLAGS 20781 20782 20783 20784 FLIBS_libuv_ax_save_flags=$FLIBS 20785 20786 20787 20788 GCJFLAGS_libuv_ax_save_flags=$GCJFLAGS 20789 20790 20791 20792 JAVACFLAGS_libuv_ax_save_flags=$JAVACFLAGS 20793 20794 20795 20796 LDFLAGS_libuv_ax_save_flags=$LDFLAGS 20797 20798 20799 20800 LIBS_libuv_ax_save_flags=$LIBS 20801 20802 20803 20804 OBJCFLAGS_libuv_ax_save_flags=$OBJCFLAGS 20805 20806 20807 20808 OBJCXXFLAGS_libuv_ax_save_flags=$OBJCXXFLAGS 20809 20810 20811 20812 UPCFLAGS_libuv_ax_save_flags=$UPCFLAGS 20813 20814 20815 20816 VALAFLAGS_libuv_ax_save_flags=$VALAFLAGS 20817 20818 20819 20820CFLAGS="$CFLAGS $LIBUV_CFLAGS" 20821LIBS="$LIBS $LIBUV_LIBS" 20822 20823# libuv recvmmsg support 20824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 20825printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 20826if test ${ac_cv_c_undeclared_builtin_options+y} 20827then : 20828 printf %s "(cached) " >&6 20829else $as_nop 20830 ac_save_CFLAGS=$CFLAGS 20831 ac_cv_c_undeclared_builtin_options='cannot detect' 20832 for ac_arg in '' -fno-builtin; do 20833 CFLAGS="$ac_save_CFLAGS $ac_arg" 20834 # This test program should *not* compile successfully. 20835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20836/* end confdefs.h. */ 20837 20838int 20839main (void) 20840{ 20841(void) strchr; 20842 ; 20843 return 0; 20844} 20845_ACEOF 20846if ac_fn_c_try_compile "$LINENO" 20847then : 20848 20849else $as_nop 20850 # This test program should compile successfully. 20851 # No library function is consistently available on 20852 # freestanding implementations, so test against a dummy 20853 # declaration. Include always-available headers on the 20854 # off chance that they somehow elicit warnings. 20855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20856/* end confdefs.h. */ 20857#include <float.h> 20858#include <limits.h> 20859#include <stdarg.h> 20860#include <stddef.h> 20861extern void ac_decl (int, char *); 20862 20863int 20864main (void) 20865{ 20866(void) ac_decl (0, (char *) 0); 20867 (void) ac_decl; 20868 20869 ; 20870 return 0; 20871} 20872_ACEOF 20873if ac_fn_c_try_compile "$LINENO" 20874then : 20875 if test x"$ac_arg" = x 20876then : 20877 ac_cv_c_undeclared_builtin_options='none needed' 20878else $as_nop 20879 ac_cv_c_undeclared_builtin_options=$ac_arg 20880fi 20881 break 20882fi 20883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20884fi 20885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20886 done 20887 CFLAGS=$ac_save_CFLAGS 20888 20889fi 20890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 20891printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 20892 case $ac_cv_c_undeclared_builtin_options in #( 20893 'cannot detect') : 20894 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20895printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20896as_fn_error $? "cannot make $CC report undeclared builtins 20897See \`config.log' for more details" "$LINENO" 5; } ;; #( 20898 'none needed') : 20899 ac_c_undeclared_builtin_options='' ;; #( 20900 *) : 20901 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 20902esac 20903 20904ac_fn_check_decl "$LINENO" "UV_UDP_MMSG_FREE" "ac_cv_have_decl_UV_UDP_MMSG_FREE" "#include <uv.h> 20905" "$ac_c_undeclared_builtin_options" "CFLAGS" 20906if test "x$ac_cv_have_decl_UV_UDP_MMSG_FREE" = xyes 20907then : 20908 ac_have_decl=1 20909else $as_nop 20910 ac_have_decl=0 20911fi 20912printf "%s\n" "#define HAVE_DECL_UV_UDP_MMSG_FREE $ac_have_decl" >>confdefs.h 20913ac_fn_check_decl "$LINENO" "UV_UDP_MMSG_CHUNK" "ac_cv_have_decl_UV_UDP_MMSG_CHUNK" "#include <uv.h> 20914" "$ac_c_undeclared_builtin_options" "CFLAGS" 20915if test "x$ac_cv_have_decl_UV_UDP_MMSG_CHUNK" = xyes 20916then : 20917 ac_have_decl=1 20918else $as_nop 20919 ac_have_decl=0 20920fi 20921printf "%s\n" "#define HAVE_DECL_UV_UDP_MMSG_CHUNK $ac_have_decl" >>confdefs.h 20922 20923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct msghdr uses padding for alignment" >&5 20924printf %s "checking whether struct msghdr uses padding for alignment... " >&6; } 20925cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20926/* end confdefs.h. */ 20927#include <sys/socket.h> 20928int 20929main (void) 20930{ 20931const struct msghdr h = { .__pad1 = 0, .__pad2 = 0 }; 20932 ; 20933 return 0; 20934} 20935_ACEOF 20936if ac_fn_c_try_compile "$LINENO" 20937then : 20938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20939printf "%s\n" "yes" >&6; } 20940 20941printf "%s\n" "#define HAVE_DECL_UV_UDP_RECVMMSG 0" >>confdefs.h 20942 20943else $as_nop 20944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20945printf "%s\n" "no" >&6; } 20946 ac_fn_check_decl "$LINENO" "UV_UDP_RECVMMSG" "ac_cv_have_decl_UV_UDP_RECVMMSG" "#include <uv.h> 20947" "$ac_c_undeclared_builtin_options" "CFLAGS" 20948if test "x$ac_cv_have_decl_UV_UDP_RECVMMSG" = xyes 20949then : 20950 ac_have_decl=1 20951else $as_nop 20952 ac_have_decl=0 20953fi 20954printf "%s\n" "#define HAVE_DECL_UV_UDP_RECVMMSG $ac_have_decl" >>confdefs.h 20955 20956fi 20957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20958 20959# libuv recverr support 20960ac_fn_check_decl "$LINENO" "UV_UDP_LINUX_RECVERR" "ac_cv_have_decl_UV_UDP_LINUX_RECVERR" "#include <uv.h> 20961" "$ac_c_undeclared_builtin_options" "CFLAGS" 20962if test "x$ac_cv_have_decl_UV_UDP_LINUX_RECVERR" = xyes 20963then : 20964 ac_have_decl=1 20965else $as_nop 20966 ac_have_decl=0 20967fi 20968printf "%s\n" "#define HAVE_DECL_UV_UDP_LINUX_RECVERR $ac_have_decl" >>confdefs.h 20969 20970 20971 20972 CCASFLAGS=$CCASFLAGS_libuv_ax_save_flags 20973 20974 20975 CFLAGS=$CFLAGS_libuv_ax_save_flags 20976 20977 20978 CPPFLAGS=$CPPFLAGS_libuv_ax_save_flags 20979 20980 20981 CXXFLAGS=$CXXFLAGS_libuv_ax_save_flags 20982 20983 20984 ERLCFLAGS=$ERLCFLAGS_libuv_ax_save_flags 20985 20986 20987 FCFLAGS=$FCFLAGS_libuv_ax_save_flags 20988 20989 20990 FCLIBS=$FCLIBS_libuv_ax_save_flags 20991 20992 20993 FFLAGS=$FFLAGS_libuv_ax_save_flags 20994 20995 20996 FLIBS=$FLIBS_libuv_ax_save_flags 20997 20998 20999 GCJFLAGS=$GCJFLAGS_libuv_ax_save_flags 21000 21001 21002 JAVACFLAGS=$JAVACFLAGS_libuv_ax_save_flags 21003 21004 21005 LDFLAGS=$LDFLAGS_libuv_ax_save_flags 21006 21007 21008 LIBS=$LIBS_libuv_ax_save_flags 21009 21010 21011 OBJCFLAGS=$OBJCFLAGS_libuv_ax_save_flags 21012 21013 21014 OBJCXXFLAGS=$OBJCXXFLAGS_libuv_ax_save_flags 21015 21016 21017 UPCFLAGS=$UPCFLAGS_libuv_ax_save_flags 21018 21019 21020 VALAFLAGS=$VALAFLAGS_libuv_ax_save_flags 21021 21022 21023 21024 21025# [pairwise: --enable-doh --with-libnghttp2=auto, --enable-doh --with-libnghttp2=yes, --disable-doh] 21026# Check whether --enable-doh was given. 21027if test ${enable_doh+y} 21028then : 21029 enableval=$enable_doh; 21030else $as_nop 21031 enable_doh=yes 21032fi 21033 21034 21035# [pairwise: skip] 21036 21037# Check whether --with-libnghttp2 was given. 21038if test ${with_libnghttp2+y} 21039then : 21040 withval=$with_libnghttp2; 21041else $as_nop 21042 with_libnghttp2="auto" 21043fi 21044 21045 21046if test "$enable_doh" = "yes" 21047then : 21048 case $with_libnghttp2 in #( 21049 no) : 21050 as_fn_error $? "Use '--disable-doh' to disable DNS-over-HTTPS support" "$LINENO" 5 ;; #( 21051 auto|yes) : 21052 21053pkg_failed=no 21054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 >= 1.6.0" >&5 21055printf %s "checking for libnghttp2 >= 1.6.0... " >&6; } 21056 21057if test -n "$LIBNGHTTP2_CFLAGS"; then 21058 pkg_cv_LIBNGHTTP2_CFLAGS="$LIBNGHTTP2_CFLAGS" 21059 elif test -n "$PKG_CONFIG"; then 21060 if test -n "$PKG_CONFIG" && \ 21061 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2 >= 1.6.0\""; } >&5 21062 ($PKG_CONFIG --exists --print-errors "libnghttp2 >= 1.6.0") 2>&5 21063 ac_status=$? 21064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21065 test $ac_status = 0; }; then 21066 pkg_cv_LIBNGHTTP2_CFLAGS=`$PKG_CONFIG --cflags "libnghttp2 >= 1.6.0" 2>/dev/null` 21067 test "x$?" != "x0" && pkg_failed=yes 21068else 21069 pkg_failed=yes 21070fi 21071 else 21072 pkg_failed=untried 21073fi 21074if test -n "$LIBNGHTTP2_LIBS"; then 21075 pkg_cv_LIBNGHTTP2_LIBS="$LIBNGHTTP2_LIBS" 21076 elif test -n "$PKG_CONFIG"; then 21077 if test -n "$PKG_CONFIG" && \ 21078 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2 >= 1.6.0\""; } >&5 21079 ($PKG_CONFIG --exists --print-errors "libnghttp2 >= 1.6.0") 2>&5 21080 ac_status=$? 21081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21082 test $ac_status = 0; }; then 21083 pkg_cv_LIBNGHTTP2_LIBS=`$PKG_CONFIG --libs "libnghttp2 >= 1.6.0" 2>/dev/null` 21084 test "x$?" != "x0" && pkg_failed=yes 21085else 21086 pkg_failed=yes 21087fi 21088 else 21089 pkg_failed=untried 21090fi 21091 21092 21093 21094if test $pkg_failed = yes; then 21095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21096printf "%s\n" "no" >&6; } 21097 21098if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21099 _pkg_short_errors_supported=yes 21100else 21101 _pkg_short_errors_supported=no 21102fi 21103 if test $_pkg_short_errors_supported = yes; then 21104 LIBNGHTTP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnghttp2 >= 1.6.0" 2>&1` 21105 else 21106 LIBNGHTTP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnghttp2 >= 1.6.0" 2>&1` 21107 fi 21108 # Put the nasty error message in config.log where it belongs 21109 echo "$LIBNGHTTP2_PKG_ERRORS" >&5 21110 21111 as_fn_error $? "DNS-over-HTTPS support requested, but libnghttp2 not found. Either install libnghttp2 or use --disable-doh." "$LINENO" 5 21112elif test $pkg_failed = untried; then 21113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21114printf "%s\n" "no" >&6; } 21115 as_fn_error $? "DNS-over-HTTPS support requested, but libnghttp2 not found. Either install libnghttp2 or use --disable-doh." "$LINENO" 5 21116else 21117 LIBNGHTTP2_CFLAGS=$pkg_cv_LIBNGHTTP2_CFLAGS 21118 LIBNGHTTP2_LIBS=$pkg_cv_LIBNGHTTP2_LIBS 21119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21120printf "%s\n" "yes" >&6; } 21121 21122printf "%s\n" "#define HAVE_LIBNGHTTP2 1" >>confdefs.h 21123 21124fi ;; #( 21125 *) : 21126 as_fn_error $? "Specifying libnghttp2 installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;; 21127esac 21128fi 21129 21130 if test -n "$LIBNGHTTP2_LIBS"; then 21131 HAVE_LIBNGHTTP2_TRUE= 21132 HAVE_LIBNGHTTP2_FALSE='#' 21133else 21134 HAVE_LIBNGHTTP2_TRUE='#' 21135 HAVE_LIBNGHTTP2_FALSE= 21136fi 21137 21138 21139 21140# 21141# flockfile is usually provided by pthreads 21142# 21143ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile" 21144if test "x$ac_cv_func_flockfile" = xyes 21145then : 21146 printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h 21147 21148fi 21149ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked" 21150if test "x$ac_cv_func_getc_unlocked" = xyes 21151then : 21152 printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h 21153 21154fi 21155 21156 21157# 21158# Look for sysconf or other ways to allow detection of the number of processors. 21159# 21160ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 21161if test "x$ac_cv_func_sysconf" = xyes 21162then : 21163 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h 21164 21165fi 21166 21167ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 21168if test "x$ac_cv_func_sysconf" = xyes 21169then : 21170 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h 21171 21172fi 21173ac_fn_c_check_func "$LINENO" "sched_getaffinity" "ac_cv_func_sched_getaffinity" 21174if test "x$ac_cv_func_sched_getaffinity" = xyes 21175then : 21176 printf "%s\n" "#define HAVE_SCHED_GETAFFINITY 1" >>confdefs.h 21177 21178fi 21179ac_fn_c_check_func "$LINENO" "cpuset_getaffinity" "ac_cv_func_cpuset_getaffinity" 21180if test "x$ac_cv_func_cpuset_getaffinity" = xyes 21181then : 21182 printf "%s\n" "#define HAVE_CPUSET_GETAFFINITY 1" >>confdefs.h 21183 21184fi 21185 21186ac_fn_c_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default 21187 #ifdef HAVE_SYS_PARAM_H 21188 # include <sys/param.h> 21189 #endif 21190 21191" 21192if test "x$ac_cv_header_sys_cpuset_h" = xyes 21193then : 21194 printf "%s\n" "#define HAVE_SYS_CPUSET_H 1" >>confdefs.h 21195 21196fi 21197 21198 21199# 21200# Do we want to use pthread rwlock? 21201# 21202# [pairwise: --enable-pthread-rwlock, --disable-pthread-rwlock] 21203# Check whether --enable-pthread_rwlock was given. 21204if test ${enable_pthread_rwlock+y} 21205then : 21206 enableval=$enable_pthread_rwlock; 21207else $as_nop 21208 enable_pthread_rwlock=no 21209fi 21210 21211 21212if test "$enable_pthread_rwlock" = "yes" 21213then : 21214 21215 for ac_func in pthread_rwlock_rdlock 21216do : 21217 ac_fn_c_check_func "$LINENO" "pthread_rwlock_rdlock" "ac_cv_func_pthread_rwlock_rdlock" 21218if test "x$ac_cv_func_pthread_rwlock_rdlock" = xyes 21219then : 21220 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK 1" >>confdefs.h 21221 21222else $as_nop 21223 as_fn_error $? "pthread_rwlock_rdlock requested but not found" "$LINENO" 5 21224fi 21225 21226done 21227 21228printf "%s\n" "#define USE_PTHREAD_RWLOCK 1" >>confdefs.h 21229 21230 21231fi 21232 if test "$enable_pthread_rwlock" != "yes"; then 21233 USE_ISC_RWLOCK_TRUE= 21234 USE_ISC_RWLOCK_FALSE='#' 21235else 21236 USE_ISC_RWLOCK_TRUE='#' 21237 USE_ISC_RWLOCK_FALSE= 21238fi 21239 21240 21241CRYPTO=OpenSSL 21242 21243# 21244# OpenSSL/LibreSSL is mandatory 21245# 21246 21247pkg_failed=no 21248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssl libcrypto" >&5 21249printf %s "checking for libssl libcrypto... " >&6; } 21250 21251if test -n "$OPENSSL_CFLAGS"; then 21252 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 21253 elif test -n "$PKG_CONFIG"; then 21254 if test -n "$PKG_CONFIG" && \ 21255 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5 21256 ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5 21257 ac_status=$? 21258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21259 test $ac_status = 0; }; then 21260 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libssl libcrypto" 2>/dev/null` 21261 test "x$?" != "x0" && pkg_failed=yes 21262else 21263 pkg_failed=yes 21264fi 21265 else 21266 pkg_failed=untried 21267fi 21268if test -n "$OPENSSL_LIBS"; then 21269 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 21270 elif test -n "$PKG_CONFIG"; then 21271 if test -n "$PKG_CONFIG" && \ 21272 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5 21273 ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5 21274 ac_status=$? 21275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21276 test $ac_status = 0; }; then 21277 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libssl libcrypto" 2>/dev/null` 21278 test "x$?" != "x0" && pkg_failed=yes 21279else 21280 pkg_failed=yes 21281fi 21282 else 21283 pkg_failed=untried 21284fi 21285 21286 21287 21288if test $pkg_failed = yes; then 21289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21290printf "%s\n" "no" >&6; } 21291 21292if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21293 _pkg_short_errors_supported=yes 21294else 21295 _pkg_short_errors_supported=no 21296fi 21297 if test $_pkg_short_errors_supported = yes; then 21298 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl libcrypto" 2>&1` 21299 else 21300 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl libcrypto" 2>&1` 21301 fi 21302 # Put the nasty error message in config.log where it belongs 21303 echo "$OPENSSL_PKG_ERRORS" >&5 21304 21305 21306 found=false 21307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 21308printf %s "checking for a sed that does not truncate output... " >&6; } 21309if test ${ac_cv_path_SED+y} 21310then : 21311 printf %s "(cached) " >&6 21312else $as_nop 21313 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 21314 for ac_i in 1 2 3 4 5 6 7; do 21315 ac_script="$ac_script$as_nl$ac_script" 21316 done 21317 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 21318 { ac_script=; unset ac_script;} 21319 if test -z "$SED"; then 21320 ac_path_SED_found=false 21321 # Loop through the user's path and test for each of PROGNAME-LIST 21322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21323for as_dir in $PATH 21324do 21325 IFS=$as_save_IFS 21326 case $as_dir in #((( 21327 '') as_dir=./ ;; 21328 */) ;; 21329 *) as_dir=$as_dir/ ;; 21330 esac 21331 for ac_prog in sed gsed 21332 do 21333 for ac_exec_ext in '' $ac_executable_extensions; do 21334 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 21335 as_fn_executable_p "$ac_path_SED" || continue 21336# Check for GNU ac_path_SED and select it if it is found. 21337 # Check for GNU $ac_path_SED 21338case `"$ac_path_SED" --version 2>&1` in 21339*GNU*) 21340 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 21341*) 21342 ac_count=0 21343 printf %s 0123456789 >"conftest.in" 21344 while : 21345 do 21346 cat "conftest.in" "conftest.in" >"conftest.tmp" 21347 mv "conftest.tmp" "conftest.in" 21348 cp "conftest.in" "conftest.nl" 21349 printf "%s\n" '' >> "conftest.nl" 21350 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 21351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 21352 as_fn_arith $ac_count + 1 && ac_count=$as_val 21353 if test $ac_count -gt ${ac_path_SED_max-0}; then 21354 # Best one so far, save it but keep looking for a better one 21355 ac_cv_path_SED="$ac_path_SED" 21356 ac_path_SED_max=$ac_count 21357 fi 21358 # 10*(2^10) chars as input seems more than enough 21359 test $ac_count -gt 10 && break 21360 done 21361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 21362esac 21363 21364 $ac_path_SED_found && break 3 21365 done 21366 done 21367 done 21368IFS=$as_save_IFS 21369 if test -z "$ac_cv_path_SED"; then 21370 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 21371 fi 21372else 21373 ac_cv_path_SED=$SED 21374fi 21375 21376fi 21377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 21378printf "%s\n" "$ac_cv_path_SED" >&6; } 21379 SED="$ac_cv_path_SED" 21380 rm -f conftest.sed 21381 21382 21383# Check whether --with-openssl was given. 21384if test ${with_openssl+y} 21385then : 21386 withval=$with_openssl; 21387 case "$withval" in 21388 "" | y | ye | yes | n | no) 21389 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 21390 ;; 21391 *) ssldirs="$withval" 21392 ;; 21393 esac 21394 21395else $as_nop 21396 21397 # if pkg-config is installed and openssl has installed a .pc file, 21398 # then use that information and don't search ssldirs 21399 if test -n "$ac_tool_prefix"; then 21400 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21401set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21403printf %s "checking for $ac_word... " >&6; } 21404if test ${ac_cv_prog_PKG_CONFIG+y} 21405then : 21406 printf %s "(cached) " >&6 21407else $as_nop 21408 if test -n "$PKG_CONFIG"; then 21409 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 21410else 21411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21412for as_dir in $PATH 21413do 21414 IFS=$as_save_IFS 21415 case $as_dir in #((( 21416 '') as_dir=./ ;; 21417 */) ;; 21418 *) as_dir=$as_dir/ ;; 21419 esac 21420 for ac_exec_ext in '' $ac_executable_extensions; do 21421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21422 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 21423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21424 break 2 21425 fi 21426done 21427 done 21428IFS=$as_save_IFS 21429 21430fi 21431fi 21432PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 21433if test -n "$PKG_CONFIG"; then 21434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21435printf "%s\n" "$PKG_CONFIG" >&6; } 21436else 21437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21438printf "%s\n" "no" >&6; } 21439fi 21440 21441 21442fi 21443if test -z "$ac_cv_prog_PKG_CONFIG"; then 21444 ac_ct_PKG_CONFIG=$PKG_CONFIG 21445 # Extract the first word of "pkg-config", so it can be a program name with args. 21446set dummy pkg-config; ac_word=$2 21447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21448printf %s "checking for $ac_word... " >&6; } 21449if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} 21450then : 21451 printf %s "(cached) " >&6 21452else $as_nop 21453 if test -n "$ac_ct_PKG_CONFIG"; then 21454 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 21455else 21456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21457for as_dir in $PATH 21458do 21459 IFS=$as_save_IFS 21460 case $as_dir in #((( 21461 '') as_dir=./ ;; 21462 */) ;; 21463 *) as_dir=$as_dir/ ;; 21464 esac 21465 for ac_exec_ext in '' $ac_executable_extensions; do 21466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21467 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 21468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21469 break 2 21470 fi 21471done 21472 done 21473IFS=$as_save_IFS 21474 21475fi 21476fi 21477ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 21478if test -n "$ac_ct_PKG_CONFIG"; then 21479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 21480printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; } 21481else 21482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21483printf "%s\n" "no" >&6; } 21484fi 21485 21486 if test "x$ac_ct_PKG_CONFIG" = x; then 21487 PKG_CONFIG="" 21488 else 21489 case $cross_compiling:$ac_tool_warned in 21490yes:) 21491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21492printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21493ac_tool_warned=yes ;; 21494esac 21495 PKG_CONFIG=$ac_ct_PKG_CONFIG 21496 fi 21497else 21498 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 21499fi 21500 21501 if test x"$PKG_CONFIG" != x""; then 21502 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 21503 if test $? = 0; then 21504 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 21505 OPENSSL_CFLAGS=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 21506 OPENSSL_VERSION=`$PKG_CONFIG openssl --modversion 2>/dev/null` 21507 found=true 21508 fi 21509 fi 21510 21511 # no such luck; use some default ssldirs 21512 if ! $found; then 21513 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 21514 fi 21515 21516 21517fi 21518 21519 21520 21521 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 21522 # an 'openssl' subdirectory 21523 21524 if ! $found; then 21525 OPENSSL_CFLAGS= 21526 for ssldir in $ssldirs; do 21527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5 21528printf %s "checking for include/openssl/ssl.h in $ssldir... " >&6; } 21529 if test -f "$ssldir/include/openssl/ssl.h"; then 21530 OPENSSL_CFLAGS="-I$ssldir/include" 21531 OPENSSL_LDFLAGS="-L$ssldir/lib" 21532 OPENSSL_LIBS="-lssl -lcrypto" 21533 OPENSSL_VERSION=`$SED -ne 's/.*OPENSSL_VERSION_STR^"*"\(^"*\)".*/\1/p;' $ssldir/include/openssl/opensslv.h` 21534 if test -z "$OPENSSL_VERSION"; then 21535 OPENSSL_VERSION=`$SED -ne 's/.*OPENSSL_VERSION_TEXT^"*"\(^"*\)".*/\1/p;' $ssldir/include/openssl/opensslv.h` 21536 fi 21537 found=true 21538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21539printf "%s\n" "yes" >&6; } 21540 break 21541 else 21542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21543printf "%s\n" "no" >&6; } 21544 fi 21545 done 21546 21547 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 21548 # it will just work! 21549 fi 21550 21551 # try the preprocessor and linker with our new flags, 21552 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 21553 21554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 21555printf %s "checking whether compiling and linking against OpenSSL works... " >&6; } 21556 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 21557 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS" >&5 21558 21559 save_LIBS="$LIBS" 21560 save_LDFLAGS="$LDFLAGS" 21561 save_CPPFLAGS="$CPPFLAGS" 21562 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 21563 LIBS="$OPENSSL_LIBS $LIBS" 21564 CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS" 21565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21566/* end confdefs.h. */ 21567#include <openssl/ssl.h> 21568int 21569main (void) 21570{ 21571SSL_new(NULL) 21572 ; 21573 return 0; 21574} 21575_ACEOF 21576if ac_fn_c_try_link "$LINENO" 21577then : 21578 21579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21580printf "%s\n" "yes" >&6; } 21581 : 21582 21583else $as_nop 21584 21585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21586printf "%s\n" "no" >&6; } 21587 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21588printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21589as_fn_error $? "OpenSSL/LibreSSL not found 21590See \`config.log' for more details" "$LINENO" 5; } 21591 21592fi 21593rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21594 conftest$ac_exeext conftest.$ac_ext 21595 CPPFLAGS="$save_CPPFLAGS" 21596 LDFLAGS="$save_LDFLAGS" 21597 LIBS="$save_LIBS" 21598 21599 21600 21601 21602 21603 21604elif test $pkg_failed = untried; then 21605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21606printf "%s\n" "no" >&6; } 21607 21608 found=false 21609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 21610printf %s "checking for a sed that does not truncate output... " >&6; } 21611if test ${ac_cv_path_SED+y} 21612then : 21613 printf %s "(cached) " >&6 21614else $as_nop 21615 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 21616 for ac_i in 1 2 3 4 5 6 7; do 21617 ac_script="$ac_script$as_nl$ac_script" 21618 done 21619 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 21620 { ac_script=; unset ac_script;} 21621 if test -z "$SED"; then 21622 ac_path_SED_found=false 21623 # Loop through the user's path and test for each of PROGNAME-LIST 21624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21625for as_dir in $PATH 21626do 21627 IFS=$as_save_IFS 21628 case $as_dir in #((( 21629 '') as_dir=./ ;; 21630 */) ;; 21631 *) as_dir=$as_dir/ ;; 21632 esac 21633 for ac_prog in sed gsed 21634 do 21635 for ac_exec_ext in '' $ac_executable_extensions; do 21636 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 21637 as_fn_executable_p "$ac_path_SED" || continue 21638# Check for GNU ac_path_SED and select it if it is found. 21639 # Check for GNU $ac_path_SED 21640case `"$ac_path_SED" --version 2>&1` in 21641*GNU*) 21642 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 21643*) 21644 ac_count=0 21645 printf %s 0123456789 >"conftest.in" 21646 while : 21647 do 21648 cat "conftest.in" "conftest.in" >"conftest.tmp" 21649 mv "conftest.tmp" "conftest.in" 21650 cp "conftest.in" "conftest.nl" 21651 printf "%s\n" '' >> "conftest.nl" 21652 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 21653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 21654 as_fn_arith $ac_count + 1 && ac_count=$as_val 21655 if test $ac_count -gt ${ac_path_SED_max-0}; then 21656 # Best one so far, save it but keep looking for a better one 21657 ac_cv_path_SED="$ac_path_SED" 21658 ac_path_SED_max=$ac_count 21659 fi 21660 # 10*(2^10) chars as input seems more than enough 21661 test $ac_count -gt 10 && break 21662 done 21663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 21664esac 21665 21666 $ac_path_SED_found && break 3 21667 done 21668 done 21669 done 21670IFS=$as_save_IFS 21671 if test -z "$ac_cv_path_SED"; then 21672 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 21673 fi 21674else 21675 ac_cv_path_SED=$SED 21676fi 21677 21678fi 21679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 21680printf "%s\n" "$ac_cv_path_SED" >&6; } 21681 SED="$ac_cv_path_SED" 21682 rm -f conftest.sed 21683 21684 21685# Check whether --with-openssl was given. 21686if test ${with_openssl+y} 21687then : 21688 withval=$with_openssl; 21689 case "$withval" in 21690 "" | y | ye | yes | n | no) 21691 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 21692 ;; 21693 *) ssldirs="$withval" 21694 ;; 21695 esac 21696 21697else $as_nop 21698 21699 # if pkg-config is installed and openssl has installed a .pc file, 21700 # then use that information and don't search ssldirs 21701 if test -n "$ac_tool_prefix"; then 21702 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21703set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21705printf %s "checking for $ac_word... " >&6; } 21706if test ${ac_cv_prog_PKG_CONFIG+y} 21707then : 21708 printf %s "(cached) " >&6 21709else $as_nop 21710 if test -n "$PKG_CONFIG"; then 21711 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 21712else 21713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21714for as_dir in $PATH 21715do 21716 IFS=$as_save_IFS 21717 case $as_dir in #((( 21718 '') as_dir=./ ;; 21719 */) ;; 21720 *) as_dir=$as_dir/ ;; 21721 esac 21722 for ac_exec_ext in '' $ac_executable_extensions; do 21723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21724 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 21725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21726 break 2 21727 fi 21728done 21729 done 21730IFS=$as_save_IFS 21731 21732fi 21733fi 21734PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 21735if test -n "$PKG_CONFIG"; then 21736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21737printf "%s\n" "$PKG_CONFIG" >&6; } 21738else 21739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21740printf "%s\n" "no" >&6; } 21741fi 21742 21743 21744fi 21745if test -z "$ac_cv_prog_PKG_CONFIG"; then 21746 ac_ct_PKG_CONFIG=$PKG_CONFIG 21747 # Extract the first word of "pkg-config", so it can be a program name with args. 21748set dummy pkg-config; ac_word=$2 21749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21750printf %s "checking for $ac_word... " >&6; } 21751if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} 21752then : 21753 printf %s "(cached) " >&6 21754else $as_nop 21755 if test -n "$ac_ct_PKG_CONFIG"; then 21756 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 21757else 21758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21759for as_dir in $PATH 21760do 21761 IFS=$as_save_IFS 21762 case $as_dir in #((( 21763 '') as_dir=./ ;; 21764 */) ;; 21765 *) as_dir=$as_dir/ ;; 21766 esac 21767 for ac_exec_ext in '' $ac_executable_extensions; do 21768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21769 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 21770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21771 break 2 21772 fi 21773done 21774 done 21775IFS=$as_save_IFS 21776 21777fi 21778fi 21779ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 21780if test -n "$ac_ct_PKG_CONFIG"; then 21781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 21782printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; } 21783else 21784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21785printf "%s\n" "no" >&6; } 21786fi 21787 21788 if test "x$ac_ct_PKG_CONFIG" = x; then 21789 PKG_CONFIG="" 21790 else 21791 case $cross_compiling:$ac_tool_warned in 21792yes:) 21793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21794printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21795ac_tool_warned=yes ;; 21796esac 21797 PKG_CONFIG=$ac_ct_PKG_CONFIG 21798 fi 21799else 21800 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 21801fi 21802 21803 if test x"$PKG_CONFIG" != x""; then 21804 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 21805 if test $? = 0; then 21806 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 21807 OPENSSL_CFLAGS=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 21808 OPENSSL_VERSION=`$PKG_CONFIG openssl --modversion 2>/dev/null` 21809 found=true 21810 fi 21811 fi 21812 21813 # no such luck; use some default ssldirs 21814 if ! $found; then 21815 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 21816 fi 21817 21818 21819fi 21820 21821 21822 21823 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 21824 # an 'openssl' subdirectory 21825 21826 if ! $found; then 21827 OPENSSL_CFLAGS= 21828 for ssldir in $ssldirs; do 21829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5 21830printf %s "checking for include/openssl/ssl.h in $ssldir... " >&6; } 21831 if test -f "$ssldir/include/openssl/ssl.h"; then 21832 OPENSSL_CFLAGS="-I$ssldir/include" 21833 OPENSSL_LDFLAGS="-L$ssldir/lib" 21834 OPENSSL_LIBS="-lssl -lcrypto" 21835 OPENSSL_VERSION=`$SED -ne 's/.*OPENSSL_VERSION_STR^"*"\(^"*\)".*/\1/p;' $ssldir/include/openssl/opensslv.h` 21836 if test -z "$OPENSSL_VERSION"; then 21837 OPENSSL_VERSION=`$SED -ne 's/.*OPENSSL_VERSION_TEXT^"*"\(^"*\)".*/\1/p;' $ssldir/include/openssl/opensslv.h` 21838 fi 21839 found=true 21840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21841printf "%s\n" "yes" >&6; } 21842 break 21843 else 21844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21845printf "%s\n" "no" >&6; } 21846 fi 21847 done 21848 21849 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 21850 # it will just work! 21851 fi 21852 21853 # try the preprocessor and linker with our new flags, 21854 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 21855 21856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 21857printf %s "checking whether compiling and linking against OpenSSL works... " >&6; } 21858 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 21859 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS" >&5 21860 21861 save_LIBS="$LIBS" 21862 save_LDFLAGS="$LDFLAGS" 21863 save_CPPFLAGS="$CPPFLAGS" 21864 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 21865 LIBS="$OPENSSL_LIBS $LIBS" 21866 CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS" 21867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21868/* end confdefs.h. */ 21869#include <openssl/ssl.h> 21870int 21871main (void) 21872{ 21873SSL_new(NULL) 21874 ; 21875 return 0; 21876} 21877_ACEOF 21878if ac_fn_c_try_link "$LINENO" 21879then : 21880 21881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21882printf "%s\n" "yes" >&6; } 21883 : 21884 21885else $as_nop 21886 21887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21888printf "%s\n" "no" >&6; } 21889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21890printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21891as_fn_error $? "OpenSSL/LibreSSL not found 21892See \`config.log' for more details" "$LINENO" 5; } 21893 21894fi 21895rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21896 conftest$ac_exeext conftest.$ac_ext 21897 CPPFLAGS="$save_CPPFLAGS" 21898 LDFLAGS="$save_LDFLAGS" 21899 LIBS="$save_LIBS" 21900 21901 21902 21903 21904 21905 21906else 21907 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 21908 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 21909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21910printf "%s\n" "yes" >&6; } 21911 21912if test -n "$OPENSSL_VERSION"; then 21913 pkg_cv_OPENSSL_VERSION="$OPENSSL_VERSION" 21914 elif test -n "$PKG_CONFIG"; then 21915 if test -n "$PKG_CONFIG" && \ 21916 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 21917 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 21918 ac_status=$? 21919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21920 test $ac_status = 0; }; then 21921 pkg_cv_OPENSSL_VERSION=`$PKG_CONFIG --modversion "openssl" 2>/dev/null` 21922 test "x$?" != "x0" && pkg_failed=yes 21923else 21924 pkg_failed=yes 21925fi 21926 else 21927 pkg_failed=untried 21928fi 21929OPENSSL_VERSION=$pkg_cv_OPENSSL_VERSION 21930 21931if test "x$OPENSSL_VERSION" = x"" 21932then : 21933 21934fi 21935fi 21936 21937 21938 21939 CCASFLAGS_openssl_ax_save_flags=$CCASFLAGS 21940 21941 21942 21943 CFLAGS_openssl_ax_save_flags=$CFLAGS 21944 21945 21946 21947 CPPFLAGS_openssl_ax_save_flags=$CPPFLAGS 21948 21949 21950 21951 CXXFLAGS_openssl_ax_save_flags=$CXXFLAGS 21952 21953 21954 21955 ERLCFLAGS_openssl_ax_save_flags=$ERLCFLAGS 21956 21957 21958 21959 FCFLAGS_openssl_ax_save_flags=$FCFLAGS 21960 21961 21962 21963 FCLIBS_openssl_ax_save_flags=$FCLIBS 21964 21965 21966 21967 FFLAGS_openssl_ax_save_flags=$FFLAGS 21968 21969 21970 21971 FLIBS_openssl_ax_save_flags=$FLIBS 21972 21973 21974 21975 GCJFLAGS_openssl_ax_save_flags=$GCJFLAGS 21976 21977 21978 21979 JAVACFLAGS_openssl_ax_save_flags=$JAVACFLAGS 21980 21981 21982 21983 LDFLAGS_openssl_ax_save_flags=$LDFLAGS 21984 21985 21986 21987 LIBS_openssl_ax_save_flags=$LIBS 21988 21989 21990 21991 OBJCFLAGS_openssl_ax_save_flags=$OBJCFLAGS 21992 21993 21994 21995 OBJCXXFLAGS_openssl_ax_save_flags=$OBJCXXFLAGS 21996 21997 21998 21999 UPCFLAGS_openssl_ax_save_flags=$UPCFLAGS 22000 22001 22002 22003 VALAFLAGS_openssl_ax_save_flags=$VALAFLAGS 22004 22005 22006 22007 22008CFLAGS="$OPENSSL_CFLAGS $CFLAGS" 22009LIBS="$OPENSSL_LIBS $LIBS" 22010 22011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0" >&5 22012printf %s "checking for OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0... " >&6; } 22013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22014/* end confdefs.h. */ 22015#include <openssl/opensslv.h> 22016int 22017main (void) 22018{ 22019#if (!defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)) || \\ 22020 (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x02070000fL)) 22021 #error OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0 required 22022 #endif 22023 22024 ; 22025 return 0; 22026} 22027_ACEOF 22028if ac_fn_c_try_compile "$LINENO" 22029then : 22030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22031printf "%s\n" "yes" >&6; } 22032else $as_nop 22033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22034printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22035as_fn_error $? "not found 22036See \`config.log' for more details" "$LINENO" 5; } 22037fi 22038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22039 22040# 22041# Check for functions added in OpenSSL or LibreSSL 22042# 22043 22044ac_fn_c_check_func "$LINENO" "BIO_read_ex" "ac_cv_func_BIO_read_ex" 22045if test "x$ac_cv_func_BIO_read_ex" = xyes 22046then : 22047 printf "%s\n" "#define HAVE_BIO_READ_EX 1" >>confdefs.h 22048 22049fi 22050ac_fn_c_check_func "$LINENO" "BIO_write_ex" "ac_cv_func_BIO_write_ex" 22051if test "x$ac_cv_func_BIO_write_ex" = xyes 22052then : 22053 printf "%s\n" "#define HAVE_BIO_WRITE_EX 1" >>confdefs.h 22054 22055fi 22056 22057ac_fn_c_check_func "$LINENO" "BN_GENCB_new" "ac_cv_func_BN_GENCB_new" 22058if test "x$ac_cv_func_BN_GENCB_new" = xyes 22059then : 22060 printf "%s\n" "#define HAVE_BN_GENCB_NEW 1" >>confdefs.h 22061 22062fi 22063 22064ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc" 22065if test "x$ac_cv_func_CRYPTO_zalloc" = xyes 22066then : 22067 printf "%s\n" "#define HAVE_CRYPTO_ZALLOC 1" >>confdefs.h 22068 22069fi 22070 22071ac_fn_c_check_func "$LINENO" "ERR_get_error_all" "ac_cv_func_ERR_get_error_all" 22072if test "x$ac_cv_func_ERR_get_error_all" = xyes 22073then : 22074 printf "%s\n" "#define HAVE_ERR_GET_ERROR_ALL 1" >>confdefs.h 22075 22076fi 22077 22078ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_new" "ac_cv_func_EVP_CIPHER_CTX_new" 22079if test "x$ac_cv_func_EVP_CIPHER_CTX_new" = xyes 22080then : 22081 printf "%s\n" "#define HAVE_EVP_CIPHER_CTX_NEW 1" >>confdefs.h 22082 22083fi 22084ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_free" "ac_cv_func_EVP_CIPHER_CTX_free" 22085if test "x$ac_cv_func_EVP_CIPHER_CTX_free" = xyes 22086then : 22087 printf "%s\n" "#define HAVE_EVP_CIPHER_CTX_FREE 1" >>confdefs.h 22088 22089fi 22090 22091ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_new" "ac_cv_func_EVP_MD_CTX_new" 22092if test "x$ac_cv_func_EVP_MD_CTX_new" = xyes 22093then : 22094 printf "%s\n" "#define HAVE_EVP_MD_CTX_NEW 1" >>confdefs.h 22095 22096fi 22097ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_free" "ac_cv_func_EVP_MD_CTX_free" 22098if test "x$ac_cv_func_EVP_MD_CTX_free" = xyes 22099then : 22100 printf "%s\n" "#define HAVE_EVP_MD_CTX_FREE 1" >>confdefs.h 22101 22102fi 22103ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_reset" "ac_cv_func_EVP_MD_CTX_reset" 22104if test "x$ac_cv_func_EVP_MD_CTX_reset" = xyes 22105then : 22106 printf "%s\n" "#define HAVE_EVP_MD_CTX_RESET 1" >>confdefs.h 22107 22108fi 22109ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_get0_md" "ac_cv_func_EVP_MD_CTX_get0_md" 22110if test "x$ac_cv_func_EVP_MD_CTX_get0_md" = xyes 22111then : 22112 printf "%s\n" "#define HAVE_EVP_MD_CTX_GET0_MD 1" >>confdefs.h 22113 22114fi 22115 22116ac_fn_c_check_func "$LINENO" "EVP_PKEY_new_raw_private_key" "ac_cv_func_EVP_PKEY_new_raw_private_key" 22117if test "x$ac_cv_func_EVP_PKEY_new_raw_private_key" = xyes 22118then : 22119 printf "%s\n" "#define HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY 1" >>confdefs.h 22120 22121fi 22122ac_fn_c_check_func "$LINENO" "EVP_PKEY_eq" "ac_cv_func_EVP_PKEY_eq" 22123if test "x$ac_cv_func_EVP_PKEY_eq" = xyes 22124then : 22125 printf "%s\n" "#define HAVE_EVP_PKEY_EQ 1" >>confdefs.h 22126 22127fi 22128 22129ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl" 22130if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes 22131then : 22132 printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h 22133 22134fi 22135ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto" 22136if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes 22137then : 22138 printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h 22139 22140fi 22141ac_fn_c_check_func "$LINENO" "OPENSSL_cleanup" "ac_cv_func_OPENSSL_cleanup" 22142if test "x$ac_cv_func_OPENSSL_cleanup" = xyes 22143then : 22144 printf "%s\n" "#define HAVE_OPENSSL_CLEANUP 1" >>confdefs.h 22145 22146fi 22147 22148ac_fn_c_check_func "$LINENO" "SSL_CTX_set_keylog_callback" "ac_cv_func_SSL_CTX_set_keylog_callback" 22149if test "x$ac_cv_func_SSL_CTX_set_keylog_callback" = xyes 22150then : 22151 printf "%s\n" "#define HAVE_SSL_CTX_SET_KEYLOG_CALLBACK 1" >>confdefs.h 22152 22153fi 22154 22155ac_fn_c_check_func "$LINENO" "SSL_CTX_set_min_proto_version" "ac_cv_func_SSL_CTX_set_min_proto_version" 22156if test "x$ac_cv_func_SSL_CTX_set_min_proto_version" = xyes 22157then : 22158 printf "%s\n" "#define HAVE_SSL_CTX_SET_MIN_PROTO_VERSION 1" >>confdefs.h 22159 22160fi 22161 22162ac_fn_c_check_func "$LINENO" "SSL_CTX_up_ref" "ac_cv_func_SSL_CTX_up_ref" 22163if test "x$ac_cv_func_SSL_CTX_up_ref" = xyes 22164then : 22165 printf "%s\n" "#define HAVE_SSL_CTX_UP_REF 1" >>confdefs.h 22166 22167fi 22168 22169ac_fn_c_check_func "$LINENO" "SSL_read_ex" "ac_cv_func_SSL_read_ex" 22170if test "x$ac_cv_func_SSL_read_ex" = xyes 22171then : 22172 printf "%s\n" "#define HAVE_SSL_READ_EX 1" >>confdefs.h 22173 22174fi 22175ac_fn_c_check_func "$LINENO" "SSL_peek_ex" "ac_cv_func_SSL_peek_ex" 22176if test "x$ac_cv_func_SSL_peek_ex" = xyes 22177then : 22178 printf "%s\n" "#define HAVE_SSL_PEEK_EX 1" >>confdefs.h 22179 22180fi 22181ac_fn_c_check_func "$LINENO" "SSL_write_ex" "ac_cv_func_SSL_write_ex" 22182if test "x$ac_cv_func_SSL_write_ex" = xyes 22183then : 22184 printf "%s\n" "#define HAVE_SSL_WRITE_EX 1" >>confdefs.h 22185 22186fi 22187 22188ac_fn_c_check_func "$LINENO" "SSL_CTX_set1_cert_store" "ac_cv_func_SSL_CTX_set1_cert_store" 22189if test "x$ac_cv_func_SSL_CTX_set1_cert_store" = xyes 22190then : 22191 printf "%s\n" "#define HAVE_SSL_CTX_SET1_CERT_STORE 1" >>confdefs.h 22192 22193fi 22194ac_fn_c_check_func "$LINENO" "X509_STORE_up_ref" "ac_cv_func_X509_STORE_up_ref" 22195if test "x$ac_cv_func_X509_STORE_up_ref" = xyes 22196then : 22197 printf "%s\n" "#define HAVE_X509_STORE_UP_REF 1" >>confdefs.h 22198 22199fi 22200 22201ac_fn_c_check_func "$LINENO" "SSL_CTX_up_ref" "ac_cv_func_SSL_CTX_up_ref" 22202if test "x$ac_cv_func_SSL_CTX_up_ref" = xyes 22203then : 22204 printf "%s\n" "#define HAVE_SSL_CTX_UP_REF 1" >>confdefs.h 22205 22206fi 22207 22208ac_fn_c_check_func "$LINENO" "SSL_SESSION_is_resumable" "ac_cv_func_SSL_SESSION_is_resumable" 22209if test "x$ac_cv_func_SSL_SESSION_is_resumable" = xyes 22210then : 22211 printf "%s\n" "#define HAVE_SSL_SESSION_IS_RESUMABLE 1" >>confdefs.h 22212 22213fi 22214 22215ac_fn_c_check_func "$LINENO" "SSL_CTX_set_ciphersuites" "ac_cv_func_SSL_CTX_set_ciphersuites" 22216if test "x$ac_cv_func_SSL_CTX_set_ciphersuites" = xyes 22217then : 22218 printf "%s\n" "#define HAVE_SSL_CTX_SET_CIPHERSUITES 1" >>confdefs.h 22219 22220fi 22221 22222 22223# 22224# Check for algorithm support in OpenSSL 22225# 22226 22227 22228 for ac_func in EVP_DigestSignInit EVP_DigestVerifyInit 22229do : 22230 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` 22231ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22232if eval test \"x\$"$as_ac_var"\" = x"yes" 22233then : 22234 cat >>confdefs.h <<_ACEOF 22235#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 22236_ACEOF 22237 : 22238else $as_nop 22239 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22240printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22241as_fn_error $? "EVP_DigestSignInit/EVP_DigestVerifyInit support in OpenSSL is mandatory. 22242See \`config.log' for more details" "$LINENO" 5; } 22243fi 22244 22245done 22246 22247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5 22248printf %s "checking for ECDSA P-256 support... " >&6; } 22249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22250/* end confdefs.h. */ 22251#include <openssl/evp.h> 22252int 22253main (void) 22254{ 22255EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_X9_62_prime256v1, NULL); 22256 ; 22257 return 0; 22258} 22259_ACEOF 22260if ac_fn_c_try_compile "$LINENO" 22261then : 22262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22263printf "%s\n" "yes" >&6; } 22264else $as_nop 22265 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22266printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22267as_fn_error $? "not found. ECDSA P-256 support in OpenSSL is mandatory. 22268See \`config.log' for more details" "$LINENO" 5; } 22269fi 22270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22271 22272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5 22273printf %s "checking for ECDSA P-384 support... " >&6; } 22274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22275/* end confdefs.h. */ 22276#include <openssl/evp.h> 22277int 22278main (void) 22279{ 22280EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_secp384r1, NULL); 22281 ; 22282 return 0; 22283} 22284_ACEOF 22285if ac_fn_c_try_compile "$LINENO" 22286then : 22287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22288printf "%s\n" "yes" >&6; } 22289else $as_nop 22290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22291printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22292as_fn_error $? "not found. ECDSA P-384 support in OpenSSL is mandatory. 22293See \`config.log' for more details" "$LINENO" 5; } 22294fi 22295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22296 22297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5 22298printf %s "checking for Ed25519 support... " >&6; } 22299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22300/* end confdefs.h. */ 22301#include <openssl/evp.h> 22302int 22303main (void) 22304{ 22305EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_ED25519, NULL); 22306 ; 22307 return 0; 22308} 22309_ACEOF 22310if ac_fn_c_try_compile "$LINENO" 22311then : 22312 22313printf "%s\n" "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h 22314 22315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22316printf "%s\n" "yes" >&6; } 22317else $as_nop 22318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22319printf "%s\n" "no" >&6; } 22320fi 22321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22322 22323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5 22324printf %s "checking for Ed448 support... " >&6; } 22325cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22326/* end confdefs.h. */ 22327#include <openssl/evp.h> 22328int 22329main (void) 22330{ 22331EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_ED448, NULL); 22332 ; 22333 return 0; 22334} 22335_ACEOF 22336if ac_fn_c_try_compile "$LINENO" 22337then : 22338 22339printf "%s\n" "#define HAVE_OPENSSL_ED448 1" >>confdefs.h 22340 22341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22342printf "%s\n" "yes" >&6; } 22343else $as_nop 22344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22345printf "%s\n" "no" >&6; } 22346fi 22347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22348 22349# 22350# Check for OpenSSL SHA-1 support 22351# 22352 22353 for ac_func in EVP_sha1 22354do : 22355 ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1" 22356if test "x$ac_cv_func_EVP_sha1" = xyes 22357then : 22358 printf "%s\n" "#define HAVE_EVP_SHA1 1" >>confdefs.h 22359 : 22360else $as_nop 22361 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22362printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22363as_fn_error $? "SHA-1 support in OpenSSL is mandatory. 22364See \`config.log' for more details" "$LINENO" 5; } 22365fi 22366 22367done 22368 22369# 22370# Check for OpenSSL SHA-2 support 22371# 22372 22373 for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512 22374do : 22375 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` 22376ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22377if eval test \"x\$"$as_ac_var"\" = x"yes" 22378then : 22379 cat >>confdefs.h <<_ACEOF 22380#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 22381_ACEOF 22382 : 22383else $as_nop 22384 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22385printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22386as_fn_error $? "SHA-2 support in OpenSSL is mandatory. 22387See \`config.log' for more details" "$LINENO" 5; } 22388fi 22389 22390done 22391 22392# 22393# Check for OpenSSL 1.1.x/LibreSSL functions 22394# 22395ac_fn_c_check_func "$LINENO" "ECDSA_SIG_get0" "ac_cv_func_ECDSA_SIG_get0" 22396if test "x$ac_cv_func_ECDSA_SIG_get0" = xyes 22397then : 22398 printf "%s\n" "#define HAVE_ECDSA_SIG_GET0 1" >>confdefs.h 22399 22400fi 22401ac_fn_c_check_func "$LINENO" "EVP_PKEY_get0_EC_KEY" "ac_cv_func_EVP_PKEY_get0_EC_KEY" 22402if test "x$ac_cv_func_EVP_PKEY_get0_EC_KEY" = xyes 22403then : 22404 printf "%s\n" "#define HAVE_EVP_PKEY_GET0_EC_KEY 1" >>confdefs.h 22405 22406fi 22407 22408ac_fn_c_check_func "$LINENO" "RSA_set0_key" "ac_cv_func_RSA_set0_key" 22409if test "x$ac_cv_func_RSA_set0_key" = xyes 22410then : 22411 printf "%s\n" "#define HAVE_RSA_SET0_KEY 1" >>confdefs.h 22412 22413fi 22414ac_fn_c_check_func "$LINENO" "EVP_PKEY_get0_RSA" "ac_cv_func_EVP_PKEY_get0_RSA" 22415if test "x$ac_cv_func_EVP_PKEY_get0_RSA" = xyes 22416then : 22417 printf "%s\n" "#define HAVE_EVP_PKEY_GET0_RSA 1" >>confdefs.h 22418 22419fi 22420 22421 22422ac_fn_c_check_func "$LINENO" "TLS_server_method" "ac_cv_func_TLS_server_method" 22423if test "x$ac_cv_func_TLS_server_method" = xyes 22424then : 22425 printf "%s\n" "#define HAVE_TLS_SERVER_METHOD 1" >>confdefs.h 22426 22427fi 22428ac_fn_c_check_func "$LINENO" "TLS_client_method" "ac_cv_func_TLS_client_method" 22429if test "x$ac_cv_func_TLS_client_method" = xyes 22430then : 22431 printf "%s\n" "#define HAVE_TLS_CLIENT_METHOD 1" >>confdefs.h 22432 22433fi 22434 22435 22436# 22437# Check whether FIPS mode is available and whether we should enable it 22438# 22439# FIPS is not included in pairwise testing as the relevant Docker image 22440# does not support FIPS mode. 22441# 22442ac_fn_c_check_func "$LINENO" "EVP_default_properties_enable_fips" "ac_cv_func_EVP_default_properties_enable_fips" 22443if test "x$ac_cv_func_EVP_default_properties_enable_fips" = xyes 22444then : 22445 printf "%s\n" "#define HAVE_EVP_DEFAULT_PROPERTIES_ENABLE_FIPS 1" >>confdefs.h 22446 22447fi 22448ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode" 22449if test "x$ac_cv_func_FIPS_mode" = xyes 22450then : 22451 printf "%s\n" "#define HAVE_FIPS_MODE 1" >>confdefs.h 22452 22453fi 22454 22455 22456# [pairwise: skip] 22457# Check whether --enable-fips-mode was given. 22458if test ${enable_fips_mode+y} 22459then : 22460 enableval=$enable_fips_mode; 22461else $as_nop 22462 enable_fips_mode="no" 22463fi 22464 22465 22466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5 22467printf %s "checking whether to enable FIPS mode in OpenSSL library... " >&6; } 22468case $enable_fips_mode in #( 22469 yes) : 22470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22471printf "%s\n" "yes" >&6; } 22472 22473printf "%s\n" "#define ENABLE_FIPS_MODE 1" >>confdefs.h 22474 22475 if test "x$ac_cv_func_FIPS_mode" != xyes -a "x$ac_cv_func_EVP_default_properties_enable_fips" != xyes 22476then : 22477 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22478printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22479as_fn_error $? "OpenSSL FIPS mode requested but not available. 22480See \`config.log' for more details" "$LINENO" 5; } 22481fi ;; #( 22482 no) : 22483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22484printf "%s\n" "no" >&6; } ;; #( 22485 *) : 22486 ;; 22487esac 22488 22489 22490 CCASFLAGS=$CCASFLAGS_openssl_ax_save_flags 22491 22492 22493 CFLAGS=$CFLAGS_openssl_ax_save_flags 22494 22495 22496 CPPFLAGS=$CPPFLAGS_openssl_ax_save_flags 22497 22498 22499 CXXFLAGS=$CXXFLAGS_openssl_ax_save_flags 22500 22501 22502 ERLCFLAGS=$ERLCFLAGS_openssl_ax_save_flags 22503 22504 22505 FCFLAGS=$FCFLAGS_openssl_ax_save_flags 22506 22507 22508 FCLIBS=$FCLIBS_openssl_ax_save_flags 22509 22510 22511 FFLAGS=$FFLAGS_openssl_ax_save_flags 22512 22513 22514 FLIBS=$FLIBS_openssl_ax_save_flags 22515 22516 22517 GCJFLAGS=$GCJFLAGS_openssl_ax_save_flags 22518 22519 22520 JAVACFLAGS=$JAVACFLAGS_openssl_ax_save_flags 22521 22522 22523 LDFLAGS=$LDFLAGS_openssl_ax_save_flags 22524 22525 22526 LIBS=$LIBS_openssl_ax_save_flags 22527 22528 22529 OBJCFLAGS=$OBJCFLAGS_openssl_ax_save_flags 22530 22531 22532 OBJCXXFLAGS=$OBJCXXFLAGS_openssl_ax_save_flags 22533 22534 22535 UPCFLAGS=$UPCFLAGS_openssl_ax_save_flags 22536 22537 22538 VALAFLAGS=$VALAFLAGS_openssl_ax_save_flags 22539 22540 22541 22542 22543 22544 22545 22546ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 22547if test "x$ac_cv_func_clock_gettime" = xyes 22548then : 22549 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 22550 22551fi 22552 22553 22554# [pairwise: --with-gssapi=yes, --with-gssapi=auto, --without-gssapi] 22555 22556# Check whether --with-gssapi was given. 22557if test ${with_gssapi+y} 22558then : 22559 withval=$with_gssapi; 22560else $as_nop 22561 with_gssapi="auto" 22562fi 22563 22564 22565KRB5_CONFIG= 22566case $with_gssapi in #( 22567 no) : 22568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GSSAPI support" >&5 22569printf %s "checking for GSSAPI support... " >&6; } 22570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22571printf "%s\n" "no" >&6; } ;; #( 22572 yes) : 22573 # Extract the first word of "krb5-config", so it can be a program name with args. 22574set dummy krb5-config; ac_word=$2 22575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22576printf %s "checking for $ac_word... " >&6; } 22577if test ${ac_cv_path_KRB5_CONFIG+y} 22578then : 22579 printf %s "(cached) " >&6 22580else $as_nop 22581 case $KRB5_CONFIG in 22582 [\\/]* | ?:[\\/]*) 22583 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path. 22584 ;; 22585 *) 22586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22587for as_dir in $PATH 22588do 22589 IFS=$as_save_IFS 22590 case $as_dir in #((( 22591 '') as_dir=./ ;; 22592 */) ;; 22593 *) as_dir=$as_dir/ ;; 22594 esac 22595 for ac_exec_ext in '' $ac_executable_extensions; do 22596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22597 ac_cv_path_KRB5_CONFIG="$as_dir$ac_word$ac_exec_ext" 22598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22599 break 2 22600 fi 22601done 22602 done 22603IFS=$as_save_IFS 22604 22605 ;; 22606esac 22607fi 22608KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG 22609if test -n "$KRB5_CONFIG"; then 22610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5 22611printf "%s\n" "$KRB5_CONFIG" >&6; } 22612else 22613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22614printf "%s\n" "no" >&6; } 22615fi 22616 22617 22618 if test -z "$KRB5_CONFIG" 22619then : 22620 as_fn_error $? "krb5-config required but not found" "$LINENO" 5 22621fi ;; #( 22622 auto) : 22623 # Extract the first word of "krb5-config", so it can be a program name with args. 22624set dummy krb5-config; ac_word=$2 22625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22626printf %s "checking for $ac_word... " >&6; } 22627if test ${ac_cv_path_KRB5_CONFIG+y} 22628then : 22629 printf %s "(cached) " >&6 22630else $as_nop 22631 case $KRB5_CONFIG in 22632 [\\/]* | ?:[\\/]*) 22633 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path. 22634 ;; 22635 *) 22636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22637for as_dir in $PATH 22638do 22639 IFS=$as_save_IFS 22640 case $as_dir in #((( 22641 '') as_dir=./ ;; 22642 */) ;; 22643 *) as_dir=$as_dir/ ;; 22644 esac 22645 for ac_exec_ext in '' $ac_executable_extensions; do 22646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22647 ac_cv_path_KRB5_CONFIG="$as_dir$ac_word$ac_exec_ext" 22648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22649 break 2 22650 fi 22651done 22652 done 22653IFS=$as_save_IFS 22654 22655 ;; 22656esac 22657fi 22658KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG 22659if test -n "$KRB5_CONFIG"; then 22660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5 22661printf "%s\n" "$KRB5_CONFIG" >&6; } 22662else 22663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22664printf "%s\n" "no" >&6; } 22665fi 22666 22667 ;; #( 22668 *krb5-config*) : 22669 KRB5_CONFIG="$with_gssapi" ;; #( 22670 *) : 22671 as_fn_error $? "--with-gssapi requires yes|no|auto|/path/to/krb5-config" "$LINENO" 5 ;; 22672esac 22673 22674GSSAPI_CFLAGS= 22675GSSAPI_LIBS= 22676KRB5_CFLAGS= 22677KRB5_LIBS= 22678if test -n "$KRB5_CONFIG" 22679then : 22680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gssapi libraries" >&5 22681printf %s "checking for gssapi libraries... " >&6; } 22682 22683 22684 CCASFLAGS_gssapi_ax_save_flags=$CCASFLAGS 22685 22686 22687 22688 CFLAGS_gssapi_ax_save_flags=$CFLAGS 22689 22690 22691 22692 CPPFLAGS_gssapi_ax_save_flags=$CPPFLAGS 22693 22694 22695 22696 CXXFLAGS_gssapi_ax_save_flags=$CXXFLAGS 22697 22698 22699 22700 ERLCFLAGS_gssapi_ax_save_flags=$ERLCFLAGS 22701 22702 22703 22704 FCFLAGS_gssapi_ax_save_flags=$FCFLAGS 22705 22706 22707 22708 FCLIBS_gssapi_ax_save_flags=$FCLIBS 22709 22710 22711 22712 FFLAGS_gssapi_ax_save_flags=$FFLAGS 22713 22714 22715 22716 FLIBS_gssapi_ax_save_flags=$FLIBS 22717 22718 22719 22720 GCJFLAGS_gssapi_ax_save_flags=$GCJFLAGS 22721 22722 22723 22724 JAVACFLAGS_gssapi_ax_save_flags=$JAVACFLAGS 22725 22726 22727 22728 LDFLAGS_gssapi_ax_save_flags=$LDFLAGS 22729 22730 22731 22732 LIBS_gssapi_ax_save_flags=$LIBS 22733 22734 22735 22736 OBJCFLAGS_gssapi_ax_save_flags=$OBJCFLAGS 22737 22738 22739 22740 OBJCXXFLAGS_gssapi_ax_save_flags=$OBJCXXFLAGS 22741 22742 22743 22744 UPCFLAGS_gssapi_ax_save_flags=$UPCFLAGS 22745 22746 22747 22748 VALAFLAGS_gssapi_ax_save_flags=$VALAFLAGS 22749 22750 22751 22752 GSSAPI_CFLAGS=`"$KRB5_CONFIG" --cflags gssapi` 22753 GSSAPI_LIBS=`"$KRB5_CONFIG" --libs gssapi` 22754 CFLAGS="$CFLAGS $GSSAPI_CFLAGS" 22755 LIBS="$LIBS $GSSAPI_LIBS" 22756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSSAPI_CFLAGS $GSSAPI_LIBS" >&5 22757printf "%s\n" "$GSSAPI_CFLAGS $GSSAPI_LIBS" >&6; } 22758 for ac_header in gssapi/gssapi.h 22759do : 22760 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" 22761if test "x$ac_cv_header_gssapi_gssapi_h" = xyes 22762then : 22763 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h 22764 22765else $as_nop 22766 for ac_header in gssapi.h 22767do : 22768 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 22769if test "x$ac_cv_header_gssapi_h" = xyes 22770then : 22771 printf "%s\n" "#define HAVE_GSSAPI_H 1" >>confdefs.h 22772 22773else $as_nop 22774 as_fn_error $? "neither gssapi/gssapi.h nor gssapi.h found" "$LINENO" 5 22775fi 22776 22777done 22778fi 22779 22780done 22781 for ac_header in gssapi/gssapi_krb5.h 22782do : 22783 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default" 22784if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes 22785then : 22786 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_KRB5_H 1" >>confdefs.h 22787 for ac_header in gssapi_krb5.h 22788do : 22789 ac_fn_c_check_header_compile "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default" 22790if test "x$ac_cv_header_gssapi_krb5_h" = xyes 22791then : 22792 printf "%s\n" "#define HAVE_GSSAPI_KRB5_H 1" >>confdefs.h 22793 22794 as_fn_error $? "neither gssapi/gssapi_krb5.h nor gssapi_krb5.h found" "$LINENO" 5 22795fi 22796 22797done 22798fi 22799 22800done 22801 22802 for ac_func in gss_acquire_cred 22803do : 22804 ac_fn_c_check_func "$LINENO" "gss_acquire_cred" "ac_cv_func_gss_acquire_cred" 22805if test "x$ac_cv_func_gss_acquire_cred" = xyes 22806then : 22807 printf "%s\n" "#define HAVE_GSS_ACQUIRE_CRED 1" >>confdefs.h 22808 22809else $as_nop 22810 as_fn_error $? "linking with $GSSAPI_LIBS does not work" "$LINENO" 5 22811fi 22812 22813done 22814 22815 CCASFLAGS=$CCASFLAGS_gssapi_ax_save_flags 22816 22817 22818 CFLAGS=$CFLAGS_gssapi_ax_save_flags 22819 22820 22821 CPPFLAGS=$CPPFLAGS_gssapi_ax_save_flags 22822 22823 22824 CXXFLAGS=$CXXFLAGS_gssapi_ax_save_flags 22825 22826 22827 ERLCFLAGS=$ERLCFLAGS_gssapi_ax_save_flags 22828 22829 22830 FCFLAGS=$FCFLAGS_gssapi_ax_save_flags 22831 22832 22833 FCLIBS=$FCLIBS_gssapi_ax_save_flags 22834 22835 22836 FFLAGS=$FFLAGS_gssapi_ax_save_flags 22837 22838 22839 FLIBS=$FLIBS_gssapi_ax_save_flags 22840 22841 22842 GCJFLAGS=$GCJFLAGS_gssapi_ax_save_flags 22843 22844 22845 JAVACFLAGS=$JAVACFLAGS_gssapi_ax_save_flags 22846 22847 22848 LDFLAGS=$LDFLAGS_gssapi_ax_save_flags 22849 22850 22851 LIBS=$LIBS_gssapi_ax_save_flags 22852 22853 22854 OBJCFLAGS=$OBJCFLAGS_gssapi_ax_save_flags 22855 22856 22857 OBJCXXFLAGS=$OBJCXXFLAGS_gssapi_ax_save_flags 22858 22859 22860 UPCFLAGS=$UPCFLAGS_gssapi_ax_save_flags 22861 22862 22863 VALAFLAGS=$VALAFLAGS_gssapi_ax_save_flags 22864 22865 22866 22867 22868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5 libraries" >&5 22869printf %s "checking for krb5 libraries... " >&6; } 22870 22871 22872 CCASFLAGS_krb5_ax_save_flags=$CCASFLAGS 22873 22874 22875 22876 CFLAGS_krb5_ax_save_flags=$CFLAGS 22877 22878 22879 22880 CPPFLAGS_krb5_ax_save_flags=$CPPFLAGS 22881 22882 22883 22884 CXXFLAGS_krb5_ax_save_flags=$CXXFLAGS 22885 22886 22887 22888 ERLCFLAGS_krb5_ax_save_flags=$ERLCFLAGS 22889 22890 22891 22892 FCFLAGS_krb5_ax_save_flags=$FCFLAGS 22893 22894 22895 22896 FCLIBS_krb5_ax_save_flags=$FCLIBS 22897 22898 22899 22900 FFLAGS_krb5_ax_save_flags=$FFLAGS 22901 22902 22903 22904 FLIBS_krb5_ax_save_flags=$FLIBS 22905 22906 22907 22908 GCJFLAGS_krb5_ax_save_flags=$GCJFLAGS 22909 22910 22911 22912 JAVACFLAGS_krb5_ax_save_flags=$JAVACFLAGS 22913 22914 22915 22916 LDFLAGS_krb5_ax_save_flags=$LDFLAGS 22917 22918 22919 22920 LIBS_krb5_ax_save_flags=$LIBS 22921 22922 22923 22924 OBJCFLAGS_krb5_ax_save_flags=$OBJCFLAGS 22925 22926 22927 22928 OBJCXXFLAGS_krb5_ax_save_flags=$OBJCXXFLAGS 22929 22930 22931 22932 UPCFLAGS_krb5_ax_save_flags=$UPCFLAGS 22933 22934 22935 22936 VALAFLAGS_krb5_ax_save_flags=$VALAFLAGS 22937 22938 22939 22940 KRB5_CFLAGS=`"$KRB5_CONFIG" --cflags krb5` 22941 KRB5_LIBS=`$KRB5_CONFIG --libs krb5` 22942 CFLAGS="$CFLAGS $KRB5_CFLAGS" 22943 LIBS="$CFLAGS $KRB5_LIBS" 22944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CFLAGS $KRB5_LIBS" >&5 22945printf "%s\n" "$KRB5_CFLAGS $KRB5_LIBS" >&6; } 22946 for ac_header in krb5/krb5.h 22947do : 22948 ac_fn_c_check_header_compile "$LINENO" "krb5/krb5.h" "ac_cv_header_krb5_krb5_h" "$ac_includes_default" 22949if test "x$ac_cv_header_krb5_krb5_h" = xyes 22950then : 22951 printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h 22952 22953else $as_nop 22954 for ac_header in krb5.h 22955do : 22956 ac_fn_c_check_header_compile "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" 22957if test "x$ac_cv_header_krb5_h" = xyes 22958then : 22959 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h 22960 22961else $as_nop 22962 as_fn_error $? "neither krb5/krb5.h nor krb5 found" "$LINENO" 5 22963fi 22964 22965done 22966fi 22967 22968done 22969 22970 for ac_func in krb5_init_context 22971do : 22972 ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context" 22973if test "x$ac_cv_func_krb5_init_context" = xyes 22974then : 22975 printf "%s\n" "#define HAVE_KRB5_INIT_CONTEXT 1" >>confdefs.h 22976 22977else $as_nop 22978 as_fn_error $? "linking with $KRB5_LIBS failed" "$LINENO" 5 22979fi 22980 22981done 22982 22983 CCASFLAGS=$CCASFLAGS_krb5_ax_save_flags 22984 22985 22986 CFLAGS=$CFLAGS_krb5_ax_save_flags 22987 22988 22989 CPPFLAGS=$CPPFLAGS_krb5_ax_save_flags 22990 22991 22992 CXXFLAGS=$CXXFLAGS_krb5_ax_save_flags 22993 22994 22995 ERLCFLAGS=$ERLCFLAGS_krb5_ax_save_flags 22996 22997 22998 FCFLAGS=$FCFLAGS_krb5_ax_save_flags 22999 23000 23001 FCLIBS=$FCLIBS_krb5_ax_save_flags 23002 23003 23004 FFLAGS=$FFLAGS_krb5_ax_save_flags 23005 23006 23007 FLIBS=$FLIBS_krb5_ax_save_flags 23008 23009 23010 GCJFLAGS=$GCJFLAGS_krb5_ax_save_flags 23011 23012 23013 JAVACFLAGS=$JAVACFLAGS_krb5_ax_save_flags 23014 23015 23016 LDFLAGS=$LDFLAGS_krb5_ax_save_flags 23017 23018 23019 LIBS=$LIBS_krb5_ax_save_flags 23020 23021 23022 OBJCFLAGS=$OBJCFLAGS_krb5_ax_save_flags 23023 23024 23025 OBJCXXFLAGS=$OBJCXXFLAGS_krb5_ax_save_flags 23026 23027 23028 UPCFLAGS=$UPCFLAGS_krb5_ax_save_flags 23029 23030 23031 VALAFLAGS=$VALAFLAGS_krb5_ax_save_flags 23032 23033 23034 23035 23036 23037printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h 23038 23039 # kludge to silence compiler warnings which recommend use of GSS.framework on macOS 23040 case $host in #( 23041 *-darwin*) : 23042 CFLAGS="$CFLAGS -Wno-deprecated-declarations" ;; #( 23043 *) : 23044 ;; 23045esac 23046fi 23047 if test -n "$GSSAPI_LIBS"; then 23048 HAVE_GSSAPI_TRUE= 23049 HAVE_GSSAPI_FALSE='#' 23050else 23051 HAVE_GSSAPI_TRUE='#' 23052 HAVE_GSSAPI_FALSE= 23053fi 23054 23055 23056 23057 23058 23059 23060# 23061# was --with-lmdb specified? 23062# 23063 23064# [pairwise: --with-lmdb=auto, --with-lmdb=yes, --without-lmdb] 23065 23066# Check whether --with-lmdb was given. 23067if test ${with_lmdb+y} 23068then : 23069 withval=$with_lmdb; : 23070else $as_nop 23071 with_lmdb="auto" 23072fi 23073 23074 23075ac_lib_lmdb_found=no 23076case $with_lmdb in #( 23077 no) : 23078 ;; #( 23079 auto|yes) : 23080 23081pkg_failed=no 23082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb" >&5 23083printf %s "checking for lmdb... " >&6; } 23084 23085if test -n "$LMDB_CFLAGS"; then 23086 pkg_cv_LMDB_CFLAGS="$LMDB_CFLAGS" 23087 elif test -n "$PKG_CONFIG"; then 23088 if test -n "$PKG_CONFIG" && \ 23089 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lmdb\""; } >&5 23090 ($PKG_CONFIG --exists --print-errors "lmdb") 2>&5 23091 ac_status=$? 23092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23093 test $ac_status = 0; }; then 23094 pkg_cv_LMDB_CFLAGS=`$PKG_CONFIG --cflags "lmdb" 2>/dev/null` 23095 test "x$?" != "x0" && pkg_failed=yes 23096else 23097 pkg_failed=yes 23098fi 23099 else 23100 pkg_failed=untried 23101fi 23102if test -n "$LMDB_LIBS"; then 23103 pkg_cv_LMDB_LIBS="$LMDB_LIBS" 23104 elif test -n "$PKG_CONFIG"; then 23105 if test -n "$PKG_CONFIG" && \ 23106 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lmdb\""; } >&5 23107 ($PKG_CONFIG --exists --print-errors "lmdb") 2>&5 23108 ac_status=$? 23109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23110 test $ac_status = 0; }; then 23111 pkg_cv_LMDB_LIBS=`$PKG_CONFIG --libs "lmdb" 2>/dev/null` 23112 test "x$?" != "x0" && pkg_failed=yes 23113else 23114 pkg_failed=yes 23115fi 23116 else 23117 pkg_failed=untried 23118fi 23119 23120 23121 23122if test $pkg_failed = yes; then 23123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23124printf "%s\n" "no" >&6; } 23125 23126if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23127 _pkg_short_errors_supported=yes 23128else 23129 _pkg_short_errors_supported=no 23130fi 23131 if test $_pkg_short_errors_supported = yes; then 23132 LMDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lmdb" 2>&1` 23133 else 23134 LMDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lmdb" 2>&1` 23135 fi 23136 # Put the nasty error message in config.log where it belongs 23137 echo "$LMDB_PKG_ERRORS" >&5 23138 23139 for ac_lib_lmdb_path in /usr /usr/local /opt /opt/local; do 23140 if test -z "$ac_lib_lmdb_path" 23141then : 23142 as_fn_error $? "Path cannot be empty" "$LINENO" 5 23143fi 23144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb header in $ac_lib_lmdb_path" >&5 23145printf %s "checking for lmdb header in $ac_lib_lmdb_path... " >&6; } 23146 if test -r "$ac_lib_lmdb_path/include/lmdb.h" 23147then : 23148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23149printf "%s\n" "yes" >&6; } 23150 LMDB_CFLAGS="-I$ac_lib_lmdb_path/include" 23151 LMDB_LIBS="-L$ac_lib_lmdb_path/lib" 23152 23153 23154 CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS 23155 23156 23157 23158 CFLAGS_lmdb_ax_save_flags=$CFLAGS 23159 23160 23161 23162 CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS 23163 23164 23165 23166 CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS 23167 23168 23169 23170 ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS 23171 23172 23173 23174 FCFLAGS_lmdb_ax_save_flags=$FCFLAGS 23175 23176 23177 23178 FCLIBS_lmdb_ax_save_flags=$FCLIBS 23179 23180 23181 23182 FFLAGS_lmdb_ax_save_flags=$FFLAGS 23183 23184 23185 23186 FLIBS_lmdb_ax_save_flags=$FLIBS 23187 23188 23189 23190 GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS 23191 23192 23193 23194 JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS 23195 23196 23197 23198 LDFLAGS_lmdb_ax_save_flags=$LDFLAGS 23199 23200 23201 23202 LIBS_lmdb_ax_save_flags=$LIBS 23203 23204 23205 23206 OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS 23207 23208 23209 23210 OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS 23211 23212 23213 23214 UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS 23215 23216 23217 23218 VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS 23219 23220 23221 23222 CFLAGS="$CFLAGS $LMDB_CFLAGS" 23223 LIBS="$LIBS $LMDB_LIBS" 23224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5 23225printf %s "checking for library containing mdb_env_create... " >&6; } 23226if test ${ac_cv_search_mdb_env_create+y} 23227then : 23228 printf %s "(cached) " >&6 23229else $as_nop 23230 ac_func_search_save_LIBS=$LIBS 23231cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23232/* end confdefs.h. */ 23233 23234/* Override any GCC internal prototype to avoid an error. 23235 Use char because int might match the return type of a GCC 23236 builtin and then its argument prototype would still apply. */ 23237char mdb_env_create (); 23238int 23239main (void) 23240{ 23241return mdb_env_create (); 23242 ; 23243 return 0; 23244} 23245_ACEOF 23246for ac_lib in '' lmdb 23247do 23248 if test -z "$ac_lib"; then 23249 ac_res="none required" 23250 else 23251 ac_res=-l$ac_lib 23252 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23253 fi 23254 if ac_fn_c_try_link "$LINENO" 23255then : 23256 ac_cv_search_mdb_env_create=$ac_res 23257fi 23258rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23259 conftest$ac_exeext 23260 if test ${ac_cv_search_mdb_env_create+y} 23261then : 23262 break 23263fi 23264done 23265if test ${ac_cv_search_mdb_env_create+y} 23266then : 23267 23268else $as_nop 23269 ac_cv_search_mdb_env_create=no 23270fi 23271rm conftest.$ac_ext 23272LIBS=$ac_func_search_save_LIBS 23273fi 23274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5 23275printf "%s\n" "$ac_cv_search_mdb_env_create" >&6; } 23276ac_res=$ac_cv_search_mdb_env_create 23277if test "$ac_res" != no 23278then : 23279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23280 LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create" 23281 23282 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags 23283 23284 23285 CFLAGS=$CFLAGS_lmdb_ax_save_flags 23286 23287 23288 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags 23289 23290 23291 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags 23292 23293 23294 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags 23295 23296 23297 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags 23298 23299 23300 FCLIBS=$FCLIBS_lmdb_ax_save_flags 23301 23302 23303 FFLAGS=$FFLAGS_lmdb_ax_save_flags 23304 23305 23306 FLIBS=$FLIBS_lmdb_ax_save_flags 23307 23308 23309 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags 23310 23311 23312 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags 23313 23314 23315 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags 23316 23317 23318 LIBS=$LIBS_lmdb_ax_save_flags 23319 23320 23321 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags 23322 23323 23324 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags 23325 23326 23327 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags 23328 23329 23330 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags 23331 23332 23333 23334 ac_lib_lmdb_found=yes 23335 break 23336 23337else $as_nop 23338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23339printf "%s\n" "no" >&6; } 23340 LMDB_CFLAGS="" 23341 LMDB_LIBS="" 23342 23343 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags 23344 23345 23346 CFLAGS=$CFLAGS_lmdb_ax_save_flags 23347 23348 23349 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags 23350 23351 23352 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags 23353 23354 23355 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags 23356 23357 23358 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags 23359 23360 23361 FCLIBS=$FCLIBS_lmdb_ax_save_flags 23362 23363 23364 FFLAGS=$FFLAGS_lmdb_ax_save_flags 23365 23366 23367 FLIBS=$FLIBS_lmdb_ax_save_flags 23368 23369 23370 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags 23371 23372 23373 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags 23374 23375 23376 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags 23377 23378 23379 LIBS=$LIBS_lmdb_ax_save_flags 23380 23381 23382 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags 23383 23384 23385 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags 23386 23387 23388 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags 23389 23390 23391 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags 23392 23393 23394 23395 23396 23397fi 23398 23399 23400else $as_nop 23401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23402printf "%s\n" "no" >&6; } 23403fi 23404 done 23405 23406elif test $pkg_failed = untried; then 23407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23408printf "%s\n" "no" >&6; } 23409 for ac_lib_lmdb_path in /usr /usr/local /opt /opt/local; do 23410 if test -z "$ac_lib_lmdb_path" 23411then : 23412 as_fn_error $? "Path cannot be empty" "$LINENO" 5 23413fi 23414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb header in $ac_lib_lmdb_path" >&5 23415printf %s "checking for lmdb header in $ac_lib_lmdb_path... " >&6; } 23416 if test -r "$ac_lib_lmdb_path/include/lmdb.h" 23417then : 23418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23419printf "%s\n" "yes" >&6; } 23420 LMDB_CFLAGS="-I$ac_lib_lmdb_path/include" 23421 LMDB_LIBS="-L$ac_lib_lmdb_path/lib" 23422 23423 23424 CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS 23425 23426 23427 23428 CFLAGS_lmdb_ax_save_flags=$CFLAGS 23429 23430 23431 23432 CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS 23433 23434 23435 23436 CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS 23437 23438 23439 23440 ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS 23441 23442 23443 23444 FCFLAGS_lmdb_ax_save_flags=$FCFLAGS 23445 23446 23447 23448 FCLIBS_lmdb_ax_save_flags=$FCLIBS 23449 23450 23451 23452 FFLAGS_lmdb_ax_save_flags=$FFLAGS 23453 23454 23455 23456 FLIBS_lmdb_ax_save_flags=$FLIBS 23457 23458 23459 23460 GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS 23461 23462 23463 23464 JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS 23465 23466 23467 23468 LDFLAGS_lmdb_ax_save_flags=$LDFLAGS 23469 23470 23471 23472 LIBS_lmdb_ax_save_flags=$LIBS 23473 23474 23475 23476 OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS 23477 23478 23479 23480 OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS 23481 23482 23483 23484 UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS 23485 23486 23487 23488 VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS 23489 23490 23491 23492 CFLAGS="$CFLAGS $LMDB_CFLAGS" 23493 LIBS="$LIBS $LMDB_LIBS" 23494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5 23495printf %s "checking for library containing mdb_env_create... " >&6; } 23496if test ${ac_cv_search_mdb_env_create+y} 23497then : 23498 printf %s "(cached) " >&6 23499else $as_nop 23500 ac_func_search_save_LIBS=$LIBS 23501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23502/* end confdefs.h. */ 23503 23504/* Override any GCC internal prototype to avoid an error. 23505 Use char because int might match the return type of a GCC 23506 builtin and then its argument prototype would still apply. */ 23507char mdb_env_create (); 23508int 23509main (void) 23510{ 23511return mdb_env_create (); 23512 ; 23513 return 0; 23514} 23515_ACEOF 23516for ac_lib in '' lmdb 23517do 23518 if test -z "$ac_lib"; then 23519 ac_res="none required" 23520 else 23521 ac_res=-l$ac_lib 23522 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23523 fi 23524 if ac_fn_c_try_link "$LINENO" 23525then : 23526 ac_cv_search_mdb_env_create=$ac_res 23527fi 23528rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23529 conftest$ac_exeext 23530 if test ${ac_cv_search_mdb_env_create+y} 23531then : 23532 break 23533fi 23534done 23535if test ${ac_cv_search_mdb_env_create+y} 23536then : 23537 23538else $as_nop 23539 ac_cv_search_mdb_env_create=no 23540fi 23541rm conftest.$ac_ext 23542LIBS=$ac_func_search_save_LIBS 23543fi 23544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5 23545printf "%s\n" "$ac_cv_search_mdb_env_create" >&6; } 23546ac_res=$ac_cv_search_mdb_env_create 23547if test "$ac_res" != no 23548then : 23549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23550 LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create" 23551 23552 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags 23553 23554 23555 CFLAGS=$CFLAGS_lmdb_ax_save_flags 23556 23557 23558 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags 23559 23560 23561 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags 23562 23563 23564 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags 23565 23566 23567 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags 23568 23569 23570 FCLIBS=$FCLIBS_lmdb_ax_save_flags 23571 23572 23573 FFLAGS=$FFLAGS_lmdb_ax_save_flags 23574 23575 23576 FLIBS=$FLIBS_lmdb_ax_save_flags 23577 23578 23579 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags 23580 23581 23582 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags 23583 23584 23585 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags 23586 23587 23588 LIBS=$LIBS_lmdb_ax_save_flags 23589 23590 23591 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags 23592 23593 23594 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags 23595 23596 23597 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags 23598 23599 23600 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags 23601 23602 23603 23604 ac_lib_lmdb_found=yes 23605 break 23606 23607else $as_nop 23608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23609printf "%s\n" "no" >&6; } 23610 LMDB_CFLAGS="" 23611 LMDB_LIBS="" 23612 23613 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags 23614 23615 23616 CFLAGS=$CFLAGS_lmdb_ax_save_flags 23617 23618 23619 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags 23620 23621 23622 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags 23623 23624 23625 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags 23626 23627 23628 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags 23629 23630 23631 FCLIBS=$FCLIBS_lmdb_ax_save_flags 23632 23633 23634 FFLAGS=$FFLAGS_lmdb_ax_save_flags 23635 23636 23637 FLIBS=$FLIBS_lmdb_ax_save_flags 23638 23639 23640 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags 23641 23642 23643 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags 23644 23645 23646 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags 23647 23648 23649 LIBS=$LIBS_lmdb_ax_save_flags 23650 23651 23652 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags 23653 23654 23655 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags 23656 23657 23658 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags 23659 23660 23661 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags 23662 23663 23664 23665 23666 23667fi 23668 23669 23670else $as_nop 23671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23672printf "%s\n" "no" >&6; } 23673fi 23674 done 23675 23676else 23677 LMDB_CFLAGS=$pkg_cv_LMDB_CFLAGS 23678 LMDB_LIBS=$pkg_cv_LMDB_LIBS 23679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23680printf "%s\n" "yes" >&6; } 23681 ac_lib_lmdb_found=yes 23682fi ;; #( 23683 *) : 23684 if test -z "$with_lmdb" 23685then : 23686 as_fn_error $? "Path cannot be empty" "$LINENO" 5 23687fi 23688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb header in $with_lmdb" >&5 23689printf %s "checking for lmdb header in $with_lmdb... " >&6; } 23690 if test -r "$with_lmdb/include/lmdb.h" 23691then : 23692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23693printf "%s\n" "yes" >&6; } 23694 LMDB_CFLAGS="-I$with_lmdb/include" 23695 LMDB_LIBS="-L$with_lmdb/lib" 23696 23697 23698 CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS 23699 23700 23701 23702 CFLAGS_lmdb_ax_save_flags=$CFLAGS 23703 23704 23705 23706 CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS 23707 23708 23709 23710 CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS 23711 23712 23713 23714 ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS 23715 23716 23717 23718 FCFLAGS_lmdb_ax_save_flags=$FCFLAGS 23719 23720 23721 23722 FCLIBS_lmdb_ax_save_flags=$FCLIBS 23723 23724 23725 23726 FFLAGS_lmdb_ax_save_flags=$FFLAGS 23727 23728 23729 23730 FLIBS_lmdb_ax_save_flags=$FLIBS 23731 23732 23733 23734 GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS 23735 23736 23737 23738 JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS 23739 23740 23741 23742 LDFLAGS_lmdb_ax_save_flags=$LDFLAGS 23743 23744 23745 23746 LIBS_lmdb_ax_save_flags=$LIBS 23747 23748 23749 23750 OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS 23751 23752 23753 23754 OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS 23755 23756 23757 23758 UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS 23759 23760 23761 23762 VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS 23763 23764 23765 23766 CFLAGS="$CFLAGS $LMDB_CFLAGS" 23767 LIBS="$LIBS $LMDB_LIBS" 23768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5 23769printf %s "checking for library containing mdb_env_create... " >&6; } 23770if test ${ac_cv_search_mdb_env_create+y} 23771then : 23772 printf %s "(cached) " >&6 23773else $as_nop 23774 ac_func_search_save_LIBS=$LIBS 23775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23776/* end confdefs.h. */ 23777 23778/* Override any GCC internal prototype to avoid an error. 23779 Use char because int might match the return type of a GCC 23780 builtin and then its argument prototype would still apply. */ 23781char mdb_env_create (); 23782int 23783main (void) 23784{ 23785return mdb_env_create (); 23786 ; 23787 return 0; 23788} 23789_ACEOF 23790for ac_lib in '' lmdb 23791do 23792 if test -z "$ac_lib"; then 23793 ac_res="none required" 23794 else 23795 ac_res=-l$ac_lib 23796 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23797 fi 23798 if ac_fn_c_try_link "$LINENO" 23799then : 23800 ac_cv_search_mdb_env_create=$ac_res 23801fi 23802rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23803 conftest$ac_exeext 23804 if test ${ac_cv_search_mdb_env_create+y} 23805then : 23806 break 23807fi 23808done 23809if test ${ac_cv_search_mdb_env_create+y} 23810then : 23811 23812else $as_nop 23813 ac_cv_search_mdb_env_create=no 23814fi 23815rm conftest.$ac_ext 23816LIBS=$ac_func_search_save_LIBS 23817fi 23818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5 23819printf "%s\n" "$ac_cv_search_mdb_env_create" >&6; } 23820ac_res=$ac_cv_search_mdb_env_create 23821if test "$ac_res" != no 23822then : 23823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23824 LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create" 23825 23826 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags 23827 23828 23829 CFLAGS=$CFLAGS_lmdb_ax_save_flags 23830 23831 23832 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags 23833 23834 23835 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags 23836 23837 23838 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags 23839 23840 23841 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags 23842 23843 23844 FCLIBS=$FCLIBS_lmdb_ax_save_flags 23845 23846 23847 FFLAGS=$FFLAGS_lmdb_ax_save_flags 23848 23849 23850 FLIBS=$FLIBS_lmdb_ax_save_flags 23851 23852 23853 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags 23854 23855 23856 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags 23857 23858 23859 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags 23860 23861 23862 LIBS=$LIBS_lmdb_ax_save_flags 23863 23864 23865 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags 23866 23867 23868 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags 23869 23870 23871 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags 23872 23873 23874 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags 23875 23876 23877 23878 ac_lib_lmdb_found=yes 23879 23880else $as_nop 23881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23882printf "%s\n" "no" >&6; } 23883 LMDB_CFLAGS="" 23884 LMDB_LIBS="" 23885 23886 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags 23887 23888 23889 CFLAGS=$CFLAGS_lmdb_ax_save_flags 23890 23891 23892 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags 23893 23894 23895 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags 23896 23897 23898 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags 23899 23900 23901 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags 23902 23903 23904 FCLIBS=$FCLIBS_lmdb_ax_save_flags 23905 23906 23907 FFLAGS=$FFLAGS_lmdb_ax_save_flags 23908 23909 23910 FLIBS=$FLIBS_lmdb_ax_save_flags 23911 23912 23913 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags 23914 23915 23916 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags 23917 23918 23919 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags 23920 23921 23922 LIBS=$LIBS_lmdb_ax_save_flags 23923 23924 23925 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags 23926 23927 23928 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags 23929 23930 23931 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags 23932 23933 23934 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags 23935 23936 23937 23938 23939 23940fi 23941 23942 23943else $as_nop 23944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23945printf "%s\n" "no" >&6; } 23946fi ;; 23947esac 23948 23949# don't fail when in automatic mode 23950if test "$with_lmdb" = "auto" && test "$ac_lib_lmdb_found" = "no" 23951then : 23952 with_lmdb=no 23953fi 23954 23955# hard fail when LMDB requested, but not found 23956if test "$with_lmdb" != "no" && test "$ac_lib_lmdb_found" != "yes" 23957then : 23958 as_fn_error $? "LMDB requested, but not found" "$LINENO" 5 23959fi 23960 23961if test "$ac_lib_lmdb_found" = "yes" 23962then : 23963 23964printf "%s\n" "#define HAVE_LMDB 1" >>confdefs.h 23965 23966fi 23967 23968 23969 23970 if test -n "$LMDB_LIBS"; then 23971 HAVE_LMDB_TRUE= 23972 HAVE_LMDB_FALSE='#' 23973else 23974 HAVE_LMDB_TRUE='#' 23975 HAVE_LMDB_FALSE= 23976fi 23977 23978 23979# 23980# was --with-libxml2 specified? 23981# 23982# [pairwise: --with-libxml2=auto, --with-libxml2=yes, --without-libxml2] 23983 23984# Check whether --with-libxml2 was given. 23985if test ${with_libxml2+y} 23986then : 23987 withval=$with_libxml2; 23988else $as_nop 23989 with_libxml2="auto" 23990fi 23991 23992 23993case $with_libxml2 in #( 23994 no) : 23995 ;; #( 23996 auto) : 23997 23998pkg_failed=no 23999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5 24000printf %s "checking for libxml-2.0 >= 2.6.0... " >&6; } 24001 24002if test -n "$LIBXML2_CFLAGS"; then 24003 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS" 24004 elif test -n "$PKG_CONFIG"; then 24005 if test -n "$PKG_CONFIG" && \ 24006 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5 24007 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5 24008 ac_status=$? 24009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24010 test $ac_status = 0; }; then 24011 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null` 24012 test "x$?" != "x0" && pkg_failed=yes 24013else 24014 pkg_failed=yes 24015fi 24016 else 24017 pkg_failed=untried 24018fi 24019if test -n "$LIBXML2_LIBS"; then 24020 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS" 24021 elif test -n "$PKG_CONFIG"; then 24022 if test -n "$PKG_CONFIG" && \ 24023 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5 24024 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5 24025 ac_status=$? 24026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24027 test $ac_status = 0; }; then 24028 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null` 24029 test "x$?" != "x0" && pkg_failed=yes 24030else 24031 pkg_failed=yes 24032fi 24033 else 24034 pkg_failed=untried 24035fi 24036 24037 24038 24039if test $pkg_failed = yes; then 24040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24041printf "%s\n" "no" >&6; } 24042 24043if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24044 _pkg_short_errors_supported=yes 24045else 24046 _pkg_short_errors_supported=no 24047fi 24048 if test $_pkg_short_errors_supported = yes; then 24049 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1` 24050 else 24051 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1` 24052 fi 24053 # Put the nasty error message in config.log where it belongs 24054 echo "$LIBXML2_PKG_ERRORS" >&5 24055 24056 : 24057elif test $pkg_failed = untried; then 24058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24059printf "%s\n" "no" >&6; } 24060 : 24061else 24062 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS 24063 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS 24064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24065printf "%s\n" "yes" >&6; } 24066 24067printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h 24068 24069fi ;; #( 24070 yes) : 24071 24072pkg_failed=no 24073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5 24074printf %s "checking for libxml-2.0 >= 2.6.0... " >&6; } 24075 24076if test -n "$LIBXML2_CFLAGS"; then 24077 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS" 24078 elif test -n "$PKG_CONFIG"; then 24079 if test -n "$PKG_CONFIG" && \ 24080 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5 24081 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5 24082 ac_status=$? 24083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24084 test $ac_status = 0; }; then 24085 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null` 24086 test "x$?" != "x0" && pkg_failed=yes 24087else 24088 pkg_failed=yes 24089fi 24090 else 24091 pkg_failed=untried 24092fi 24093if test -n "$LIBXML2_LIBS"; then 24094 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS" 24095 elif test -n "$PKG_CONFIG"; then 24096 if test -n "$PKG_CONFIG" && \ 24097 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5 24098 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5 24099 ac_status=$? 24100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24101 test $ac_status = 0; }; then 24102 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null` 24103 test "x$?" != "x0" && pkg_failed=yes 24104else 24105 pkg_failed=yes 24106fi 24107 else 24108 pkg_failed=untried 24109fi 24110 24111 24112 24113if test $pkg_failed = yes; then 24114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24115printf "%s\n" "no" >&6; } 24116 24117if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24118 _pkg_short_errors_supported=yes 24119else 24120 _pkg_short_errors_supported=no 24121fi 24122 if test $_pkg_short_errors_supported = yes; then 24123 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1` 24124 else 24125 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1` 24126 fi 24127 # Put the nasty error message in config.log where it belongs 24128 echo "$LIBXML2_PKG_ERRORS" >&5 24129 24130 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6.0) were not met: 24131 24132$LIBXML2_PKG_ERRORS 24133 24134Consider adjusting the PKG_CONFIG_PATH environment variable if you 24135installed software in a non-standard prefix. 24136 24137Alternatively, you may set the environment variables LIBXML2_CFLAGS 24138and LIBXML2_LIBS to avoid the need to call pkg-config. 24139See the pkg-config man page for more details." "$LINENO" 5 24140elif test $pkg_failed = untried; then 24141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24142printf "%s\n" "no" >&6; } 24143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24144printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 24145as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24146is in your PATH or set the PKG_CONFIG environment variable to the full 24147path to pkg-config. 24148 24149Alternatively, you may set the environment variables LIBXML2_CFLAGS 24150and LIBXML2_LIBS to avoid the need to call pkg-config. 24151See the pkg-config man page for more details. 24152 24153To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24154See \`config.log' for more details" "$LINENO" 5; } 24155else 24156 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS 24157 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS 24158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24159printf "%s\n" "yes" >&6; } 24160 24161printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h 24162 24163fi ;; #( 24164 *) : 24165 as_fn_error $? "Specifying libxml2 installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;; 24166esac 24167 24168 if test -n "$LIBXML2_LIBS"; then 24169 HAVE_LIBXML2_TRUE= 24170 HAVE_LIBXML2_FALSE='#' 24171else 24172 HAVE_LIBXML2_TRUE='#' 24173 HAVE_LIBXML2_FALSE= 24174fi 24175 24176 24177# 24178# was --with-json-c specified? 24179# 24180# [pairwise: --with-json-c=detect, --with-json-c=yes, --without-json-c] 24181 24182# Check whether --with-json-c was given. 24183if test ${with_json_c+y} 24184then : 24185 withval=$with_json_c; 24186else $as_nop 24187 with_json_c="detect" 24188fi 24189 24190 24191case $with_json_c in #( 24192 no) : 24193 ;; #( 24194 detect) : 24195 24196pkg_failed=no 24197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5 24198printf %s "checking for json-c >= 0.11... " >&6; } 24199 24200if test -n "$JSON_C_CFLAGS"; then 24201 pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS" 24202 elif test -n "$PKG_CONFIG"; then 24203 if test -n "$PKG_CONFIG" && \ 24204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5 24205 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5 24206 ac_status=$? 24207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24208 test $ac_status = 0; }; then 24209 pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null` 24210 test "x$?" != "x0" && pkg_failed=yes 24211else 24212 pkg_failed=yes 24213fi 24214 else 24215 pkg_failed=untried 24216fi 24217if test -n "$JSON_C_LIBS"; then 24218 pkg_cv_JSON_C_LIBS="$JSON_C_LIBS" 24219 elif test -n "$PKG_CONFIG"; then 24220 if test -n "$PKG_CONFIG" && \ 24221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5 24222 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5 24223 ac_status=$? 24224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24225 test $ac_status = 0; }; then 24226 pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null` 24227 test "x$?" != "x0" && pkg_failed=yes 24228else 24229 pkg_failed=yes 24230fi 24231 else 24232 pkg_failed=untried 24233fi 24234 24235 24236 24237if test $pkg_failed = yes; then 24238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24239printf "%s\n" "no" >&6; } 24240 24241if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24242 _pkg_short_errors_supported=yes 24243else 24244 _pkg_short_errors_supported=no 24245fi 24246 if test $_pkg_short_errors_supported = yes; then 24247 JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1` 24248 else 24249 JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1` 24250 fi 24251 # Put the nasty error message in config.log where it belongs 24252 echo "$JSON_C_PKG_ERRORS" >&5 24253 24254 : 24255elif test $pkg_failed = untried; then 24256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24257printf "%s\n" "no" >&6; } 24258 : 24259else 24260 JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS 24261 JSON_C_LIBS=$pkg_cv_JSON_C_LIBS 24262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24263printf "%s\n" "yes" >&6; } 24264 24265printf "%s\n" "#define HAVE_JSON_C 1" >>confdefs.h 24266 24267fi ;; #( 24268 yes) : 24269 24270pkg_failed=no 24271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5 24272printf %s "checking for json-c >= 0.11... " >&6; } 24273 24274if test -n "$JSON_C_CFLAGS"; then 24275 pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS" 24276 elif test -n "$PKG_CONFIG"; then 24277 if test -n "$PKG_CONFIG" && \ 24278 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5 24279 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5 24280 ac_status=$? 24281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24282 test $ac_status = 0; }; then 24283 pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null` 24284 test "x$?" != "x0" && pkg_failed=yes 24285else 24286 pkg_failed=yes 24287fi 24288 else 24289 pkg_failed=untried 24290fi 24291if test -n "$JSON_C_LIBS"; then 24292 pkg_cv_JSON_C_LIBS="$JSON_C_LIBS" 24293 elif test -n "$PKG_CONFIG"; then 24294 if test -n "$PKG_CONFIG" && \ 24295 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5 24296 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5 24297 ac_status=$? 24298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24299 test $ac_status = 0; }; then 24300 pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null` 24301 test "x$?" != "x0" && pkg_failed=yes 24302else 24303 pkg_failed=yes 24304fi 24305 else 24306 pkg_failed=untried 24307fi 24308 24309 24310 24311if test $pkg_failed = yes; then 24312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24313printf "%s\n" "no" >&6; } 24314 24315if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24316 _pkg_short_errors_supported=yes 24317else 24318 _pkg_short_errors_supported=no 24319fi 24320 if test $_pkg_short_errors_supported = yes; then 24321 JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1` 24322 else 24323 JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1` 24324 fi 24325 # Put the nasty error message in config.log where it belongs 24326 echo "$JSON_C_PKG_ERRORS" >&5 24327 24328 as_fn_error $? "Package requirements (json-c >= 0.11) were not met: 24329 24330$JSON_C_PKG_ERRORS 24331 24332Consider adjusting the PKG_CONFIG_PATH environment variable if you 24333installed software in a non-standard prefix. 24334 24335Alternatively, you may set the environment variables JSON_C_CFLAGS 24336and JSON_C_LIBS to avoid the need to call pkg-config. 24337See the pkg-config man page for more details." "$LINENO" 5 24338elif test $pkg_failed = untried; then 24339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24340printf "%s\n" "no" >&6; } 24341 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24342printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 24343as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24344is in your PATH or set the PKG_CONFIG environment variable to the full 24345path to pkg-config. 24346 24347Alternatively, you may set the environment variables JSON_C_CFLAGS 24348and JSON_C_LIBS to avoid the need to call pkg-config. 24349See the pkg-config man page for more details. 24350 24351To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24352See \`config.log' for more details" "$LINENO" 5; } 24353else 24354 JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS 24355 JSON_C_LIBS=$pkg_cv_JSON_C_LIBS 24356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24357printf "%s\n" "yes" >&6; } 24358 24359printf "%s\n" "#define HAVE_JSON_C 1" >>confdefs.h 24360 24361fi ;; #( 24362 *) : 24363 as_fn_error $? "Specifying json-c installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 24364 ;; 24365esac 24366 24367 if test -n "$JSON_C_LIBS"; then 24368 HAVE_JSON_C_TRUE= 24369 HAVE_JSON_C_FALSE='#' 24370else 24371 HAVE_JSON_C_TRUE='#' 24372 HAVE_JSON_C_FALSE= 24373fi 24374 24375 24376 24377 24378 24379# 24380# was --with-zlib specified? 24381# 24382# [pairwise: --with-zlib=auto, --with-zlib=yes, --without-zlib] 24383 24384# Check whether --with-zlib was given. 24385if test ${with_zlib+y} 24386then : 24387 withval=$with_zlib; 24388else $as_nop 24389 with_zlib="auto" 24390fi 24391 24392 24393case $with_zlib in #( 24394 no) : 24395 ;; #( 24396 auto) : 24397 24398pkg_failed=no 24399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5 24400printf %s "checking for zlib... " >&6; } 24401 24402if test -n "$ZLIB_CFLAGS"; then 24403 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 24404 elif test -n "$PKG_CONFIG"; then 24405 if test -n "$PKG_CONFIG" && \ 24406 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 24407 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 24408 ac_status=$? 24409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24410 test $ac_status = 0; }; then 24411 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` 24412 test "x$?" != "x0" && pkg_failed=yes 24413else 24414 pkg_failed=yes 24415fi 24416 else 24417 pkg_failed=untried 24418fi 24419if test -n "$ZLIB_LIBS"; then 24420 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 24421 elif test -n "$PKG_CONFIG"; then 24422 if test -n "$PKG_CONFIG" && \ 24423 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 24424 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 24425 ac_status=$? 24426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24427 test $ac_status = 0; }; then 24428 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` 24429 test "x$?" != "x0" && pkg_failed=yes 24430else 24431 pkg_failed=yes 24432fi 24433 else 24434 pkg_failed=untried 24435fi 24436 24437 24438 24439if test $pkg_failed = yes; then 24440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24441printf "%s\n" "no" >&6; } 24442 24443if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24444 _pkg_short_errors_supported=yes 24445else 24446 _pkg_short_errors_supported=no 24447fi 24448 if test $_pkg_short_errors_supported = yes; then 24449 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` 24450 else 24451 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` 24452 fi 24453 # Put the nasty error message in config.log where it belongs 24454 echo "$ZLIB_PKG_ERRORS" >&5 24455 24456 : 24457elif test $pkg_failed = untried; then 24458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24459printf "%s\n" "no" >&6; } 24460 : 24461else 24462 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 24463 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 24464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24465printf "%s\n" "yes" >&6; } 24466 24467printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h 24468 24469fi ;; #( 24470 yes) : 24471 24472pkg_failed=no 24473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5 24474printf %s "checking for zlib... " >&6; } 24475 24476if test -n "$ZLIB_CFLAGS"; then 24477 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 24478 elif test -n "$PKG_CONFIG"; then 24479 if test -n "$PKG_CONFIG" && \ 24480 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 24481 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 24482 ac_status=$? 24483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24484 test $ac_status = 0; }; then 24485 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` 24486 test "x$?" != "x0" && pkg_failed=yes 24487else 24488 pkg_failed=yes 24489fi 24490 else 24491 pkg_failed=untried 24492fi 24493if test -n "$ZLIB_LIBS"; then 24494 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 24495 elif test -n "$PKG_CONFIG"; then 24496 if test -n "$PKG_CONFIG" && \ 24497 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 24498 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 24499 ac_status=$? 24500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24501 test $ac_status = 0; }; then 24502 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` 24503 test "x$?" != "x0" && pkg_failed=yes 24504else 24505 pkg_failed=yes 24506fi 24507 else 24508 pkg_failed=untried 24509fi 24510 24511 24512 24513if test $pkg_failed = yes; then 24514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24515printf "%s\n" "no" >&6; } 24516 24517if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24518 _pkg_short_errors_supported=yes 24519else 24520 _pkg_short_errors_supported=no 24521fi 24522 if test $_pkg_short_errors_supported = yes; then 24523 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` 24524 else 24525 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` 24526 fi 24527 # Put the nasty error message in config.log where it belongs 24528 echo "$ZLIB_PKG_ERRORS" >&5 24529 24530 as_fn_error $? "Package requirements (zlib) were not met: 24531 24532$ZLIB_PKG_ERRORS 24533 24534Consider adjusting the PKG_CONFIG_PATH environment variable if you 24535installed software in a non-standard prefix. 24536 24537Alternatively, you may set the environment variables ZLIB_CFLAGS 24538and ZLIB_LIBS to avoid the need to call pkg-config. 24539See the pkg-config man page for more details." "$LINENO" 5 24540elif test $pkg_failed = untried; then 24541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24542printf "%s\n" "no" >&6; } 24543 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24544printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 24545as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24546is in your PATH or set the PKG_CONFIG environment variable to the full 24547path to pkg-config. 24548 24549Alternatively, you may set the environment variables ZLIB_CFLAGS 24550and ZLIB_LIBS to avoid the need to call pkg-config. 24551See the pkg-config man page for more details. 24552 24553To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24554See \`config.log' for more details" "$LINENO" 5; } 24555else 24556 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 24557 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 24558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24559printf "%s\n" "yes" >&6; } 24560 24561printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h 24562 24563fi ;; #( 24564 *) : 24565 as_fn_error $? "Specifying zlib installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;; 24566esac 24567 24568 24569 24570# 24571# was --with-libsystemd specified? 24572# 24573# [pairwise: --with-libsystemd=auto, --with-libsystemd=yes, --without-libsystemd] 24574 24575# Check whether --with-libsystemd was given. 24576if test ${with_libsystemd+y} 24577then : 24578 withval=$with_libsystemd; 24579else $as_nop 24580 with_libsystemd=auto 24581fi 24582 24583 24584case $with_libsystemd in #( 24585 no) : 24586 ;; #( 24587 auto) : 24588 24589pkg_failed=no 24590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 24591printf %s "checking for libsystemd... " >&6; } 24592 24593if test -n "$LIBSYSTEMD_CFLAGS"; then 24594 pkg_cv_LIBSYSTEMD_CFLAGS="$LIBSYSTEMD_CFLAGS" 24595 elif test -n "$PKG_CONFIG"; then 24596 if test -n "$PKG_CONFIG" && \ 24597 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 24598 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 24599 ac_status=$? 24600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24601 test $ac_status = 0; }; then 24602 pkg_cv_LIBSYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 24603 test "x$?" != "x0" && pkg_failed=yes 24604else 24605 pkg_failed=yes 24606fi 24607 else 24608 pkg_failed=untried 24609fi 24610if test -n "$LIBSYSTEMD_LIBS"; then 24611 pkg_cv_LIBSYSTEMD_LIBS="$LIBSYSTEMD_LIBS" 24612 elif test -n "$PKG_CONFIG"; then 24613 if test -n "$PKG_CONFIG" && \ 24614 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 24615 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 24616 ac_status=$? 24617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24618 test $ac_status = 0; }; then 24619 pkg_cv_LIBSYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 24620 test "x$?" != "x0" && pkg_failed=yes 24621else 24622 pkg_failed=yes 24623fi 24624 else 24625 pkg_failed=untried 24626fi 24627 24628 24629 24630if test $pkg_failed = yes; then 24631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24632printf "%s\n" "no" >&6; } 24633 24634if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24635 _pkg_short_errors_supported=yes 24636else 24637 _pkg_short_errors_supported=no 24638fi 24639 if test $_pkg_short_errors_supported = yes; then 24640 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 24641 else 24642 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 24643 fi 24644 # Put the nasty error message in config.log where it belongs 24645 echo "$LIBSYSTEMD_PKG_ERRORS" >&5 24646 24647 : 24648elif test $pkg_failed = untried; then 24649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24650printf "%s\n" "no" >&6; } 24651 : 24652else 24653 LIBSYSTEMD_CFLAGS=$pkg_cv_LIBSYSTEMD_CFLAGS 24654 LIBSYSTEMD_LIBS=$pkg_cv_LIBSYSTEMD_LIBS 24655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24656printf "%s\n" "yes" >&6; } 24657 24658printf "%s\n" "#define HAVE_LIBSYSTEMD 1" >>confdefs.h 24659 24660fi ;; #( 24661 yes) : 24662 24663pkg_failed=no 24664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 24665printf %s "checking for libsystemd... " >&6; } 24666 24667if test -n "$LIBSYSTEMD_CFLAGS"; then 24668 pkg_cv_LIBSYSTEMD_CFLAGS="$LIBSYSTEMD_CFLAGS" 24669 elif test -n "$PKG_CONFIG"; then 24670 if test -n "$PKG_CONFIG" && \ 24671 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 24672 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 24673 ac_status=$? 24674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24675 test $ac_status = 0; }; then 24676 pkg_cv_LIBSYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 24677 test "x$?" != "x0" && pkg_failed=yes 24678else 24679 pkg_failed=yes 24680fi 24681 else 24682 pkg_failed=untried 24683fi 24684if test -n "$LIBSYSTEMD_LIBS"; then 24685 pkg_cv_LIBSYSTEMD_LIBS="$LIBSYSTEMD_LIBS" 24686 elif test -n "$PKG_CONFIG"; then 24687 if test -n "$PKG_CONFIG" && \ 24688 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 24689 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 24690 ac_status=$? 24691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24692 test $ac_status = 0; }; then 24693 pkg_cv_LIBSYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 24694 test "x$?" != "x0" && pkg_failed=yes 24695else 24696 pkg_failed=yes 24697fi 24698 else 24699 pkg_failed=untried 24700fi 24701 24702 24703 24704if test $pkg_failed = yes; then 24705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24706printf "%s\n" "no" >&6; } 24707 24708if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24709 _pkg_short_errors_supported=yes 24710else 24711 _pkg_short_errors_supported=no 24712fi 24713 if test $_pkg_short_errors_supported = yes; then 24714 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 24715 else 24716 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 24717 fi 24718 # Put the nasty error message in config.log where it belongs 24719 echo "$LIBSYSTEMD_PKG_ERRORS" >&5 24720 24721 as_fn_error $? "Package requirements (libsystemd) were not met: 24722 24723$LIBSYSTEMD_PKG_ERRORS 24724 24725Consider adjusting the PKG_CONFIG_PATH environment variable if you 24726installed software in a non-standard prefix. 24727 24728Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS 24729and LIBSYSTEMD_LIBS to avoid the need to call pkg-config. 24730See the pkg-config man page for more details." "$LINENO" 5 24731elif test $pkg_failed = untried; then 24732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24733printf "%s\n" "no" >&6; } 24734 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24735printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 24736as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24737is in your PATH or set the PKG_CONFIG environment variable to the full 24738path to pkg-config. 24739 24740Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS 24741and LIBSYSTEMD_LIBS to avoid the need to call pkg-config. 24742See the pkg-config man page for more details. 24743 24744To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24745See \`config.log' for more details" "$LINENO" 5; } 24746else 24747 LIBSYSTEMD_CFLAGS=$pkg_cv_LIBSYSTEMD_CFLAGS 24748 LIBSYSTEMD_LIBS=$pkg_cv_LIBSYSTEMD_LIBS 24749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24750printf "%s\n" "yes" >&6; } 24751 24752printf "%s\n" "#define HAVE_LIBSYSTEMD 1" >>confdefs.h 24753 24754fi ;; #( 24755 *) : 24756 as_fn_error $? "Specifying libsystemd installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;; 24757esac 24758 24759 24760 24761# 24762# Check if the system supports glibc-compatible backtrace() function. 24763# 24764 for ac_header in execinfo.h 24765do : 24766 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 24767if test "x$ac_cv_header_execinfo_h" = xyes 24768then : 24769 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h 24770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5 24771printf %s "checking for library containing backtrace_symbols... " >&6; } 24772if test ${ac_cv_search_backtrace_symbols+y} 24773then : 24774 printf %s "(cached) " >&6 24775else $as_nop 24776 ac_func_search_save_LIBS=$LIBS 24777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24778/* end confdefs.h. */ 24779 24780/* Override any GCC internal prototype to avoid an error. 24781 Use char because int might match the return type of a GCC 24782 builtin and then its argument prototype would still apply. */ 24783char backtrace_symbols (); 24784int 24785main (void) 24786{ 24787return backtrace_symbols (); 24788 ; 24789 return 0; 24790} 24791_ACEOF 24792for ac_lib in '' execinfo 24793do 24794 if test -z "$ac_lib"; then 24795 ac_res="none required" 24796 else 24797 ac_res=-l$ac_lib 24798 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24799 fi 24800 if ac_fn_c_try_link "$LINENO" 24801then : 24802 ac_cv_search_backtrace_symbols=$ac_res 24803fi 24804rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24805 conftest$ac_exeext 24806 if test ${ac_cv_search_backtrace_symbols+y} 24807then : 24808 break 24809fi 24810done 24811if test ${ac_cv_search_backtrace_symbols+y} 24812then : 24813 24814else $as_nop 24815 ac_cv_search_backtrace_symbols=no 24816fi 24817rm conftest.$ac_ext 24818LIBS=$ac_func_search_save_LIBS 24819fi 24820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5 24821printf "%s\n" "$ac_cv_search_backtrace_symbols" >&6; } 24822ac_res=$ac_cv_search_backtrace_symbols 24823if test "$ac_res" != no 24824then : 24825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24826 ac_fn_c_check_func "$LINENO" "backtrace_symbols" "ac_cv_func_backtrace_symbols" 24827if test "x$ac_cv_func_backtrace_symbols" = xyes 24828then : 24829 printf "%s\n" "#define HAVE_BACKTRACE_SYMBOLS 1" >>confdefs.h 24830 24831fi 24832 24833fi 24834 24835fi 24836 24837done 24838 24839# 24840# We do the IPv6 compilation checking after libtool so that we can put 24841# the right suffix on the files. 24842# 24843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 24844printf %s "checking for IPv6 structures... " >&6; } 24845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24846/* end confdefs.h. */ 24847 24848 #include <sys/types.h> 24849 #include <sys/socket.h> 24850 #include <netinet/in.h> 24851 24852int 24853main (void) 24854{ 24855 24856 struct sockaddr_in6 sin6; 24857 struct in6_addr in6; 24858 struct in6_pktinfo in6_pi; 24859 struct sockaddr_storage storage; 24860 in6 = in6addr_any; 24861 in6 = in6addr_loopback; 24862 sin6.sin6_scope_id = 0; 24863 return (0); 24864 24865 ; 24866 return 0; 24867} 24868_ACEOF 24869if ac_fn_c_try_compile "$LINENO" 24870then : 24871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24872printf "%s\n" "yes" >&6; } 24873else $as_nop 24874 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24875printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 24876as_fn_error $? "IPv6 support is mandatory 24877See \`config.log' for more details" "$LINENO" 5; } 24878fi 24879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24880 24881# 24882# Allow forcibly disabling TCP Fast Open support as autodetection might yield 24883# confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen() 24884# comment in lib/isc/socket.c). 24885# 24886# [pairwise: --enable-tcp-fastopen, --disable-tcp-fastopen] 24887# Check whether --enable-tcp_fastopen was given. 24888if test ${enable_tcp_fastopen+y} 24889then : 24890 enableval=$enable_tcp_fastopen; 24891else $as_nop 24892 enable_tcp_fastopen="yes" 24893fi 24894 24895 24896if test "$enable_tcp_fastopen" = "yes" 24897then : 24898 24899printf "%s\n" "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h 24900 24901fi 24902 24903# 24904# Check for some other useful functions that are not ever-present. 24905# 24906ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 24907if test "x$ac_cv_func_strlcpy" = xyes 24908then : 24909 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 24910 24911fi 24912ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 24913if test "x$ac_cv_func_strlcat" = xyes 24914then : 24915 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 24916 24917fi 24918ac_fn_c_check_func "$LINENO" "strnstr" "ac_cv_func_strnstr" 24919if test "x$ac_cv_func_strnstr" = xyes 24920then : 24921 printf "%s\n" "#define HAVE_STRNSTR 1" >>confdefs.h 24922 24923fi 24924 24925 24926# 24927# Check for readline support 24928# 24929 24930# editline is not included in pairwise testing as the library 24931# is not present in the relevant Docker image. 24932# 24933# GNU Readline is not included in pairwise testing as the library 24934# in the relevant Docker image does not support pkg-config. 24935# 24936# [pairwise: --with-readline=auto, --with-readline=yes, --with-readline=libedit, --without-readline] 24937 24938# Check whether --with-readline was given. 24939if test ${with_readline+y} 24940then : 24941 withval=$with_readline; 24942else $as_nop 24943 with_readline="auto" 24944fi 24945 24946 24947case $with_readline in #( 24948 no) : 24949 ;; #( 24950 auto|yes) : 24951 24952pkg_failed=no 24953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 24954printf %s "checking for libedit... " >&6; } 24955 24956if test -n "$READLINE_CFLAGS"; then 24957 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 24958 elif test -n "$PKG_CONFIG"; then 24959 if test -n "$PKG_CONFIG" && \ 24960 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 24961 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 24962 ac_status=$? 24963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24964 test $ac_status = 0; }; then 24965 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null` 24966 test "x$?" != "x0" && pkg_failed=yes 24967else 24968 pkg_failed=yes 24969fi 24970 else 24971 pkg_failed=untried 24972fi 24973if test -n "$READLINE_LIBS"; then 24974 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 24975 elif test -n "$PKG_CONFIG"; then 24976 if test -n "$PKG_CONFIG" && \ 24977 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 24978 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 24979 ac_status=$? 24980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24981 test $ac_status = 0; }; then 24982 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null` 24983 test "x$?" != "x0" && pkg_failed=yes 24984else 24985 pkg_failed=yes 24986fi 24987 else 24988 pkg_failed=untried 24989fi 24990 24991 24992 24993if test $pkg_failed = yes; then 24994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24995printf "%s\n" "no" >&6; } 24996 24997if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24998 _pkg_short_errors_supported=yes 24999else 25000 _pkg_short_errors_supported=no 25001fi 25002 if test $_pkg_short_errors_supported = yes; then 25003 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1` 25004 else 25005 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1` 25006 fi 25007 # Put the nasty error message in config.log where it belongs 25008 echo "$READLINE_PKG_ERRORS" >&5 25009 25010 25011pkg_failed=no 25012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libeditline" >&5 25013printf %s "checking for libeditline... " >&6; } 25014 25015if test -n "$READLINE_CFLAGS"; then 25016 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 25017 elif test -n "$PKG_CONFIG"; then 25018 if test -n "$PKG_CONFIG" && \ 25019 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5 25020 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5 25021 ac_status=$? 25022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25023 test $ac_status = 0; }; then 25024 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libeditline" 2>/dev/null` 25025 test "x$?" != "x0" && pkg_failed=yes 25026else 25027 pkg_failed=yes 25028fi 25029 else 25030 pkg_failed=untried 25031fi 25032if test -n "$READLINE_LIBS"; then 25033 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 25034 elif test -n "$PKG_CONFIG"; then 25035 if test -n "$PKG_CONFIG" && \ 25036 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5 25037 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5 25038 ac_status=$? 25039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25040 test $ac_status = 0; }; then 25041 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libeditline" 2>/dev/null` 25042 test "x$?" != "x0" && pkg_failed=yes 25043else 25044 pkg_failed=yes 25045fi 25046 else 25047 pkg_failed=untried 25048fi 25049 25050 25051 25052if test $pkg_failed = yes; then 25053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25054printf "%s\n" "no" >&6; } 25055 25056if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25057 _pkg_short_errors_supported=yes 25058else 25059 _pkg_short_errors_supported=no 25060fi 25061 if test $_pkg_short_errors_supported = yes; then 25062 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeditline" 2>&1` 25063 else 25064 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeditline" 2>&1` 25065 fi 25066 # Put the nasty error message in config.log where it belongs 25067 echo "$READLINE_PKG_ERRORS" >&5 25068 25069 25070pkg_failed=no 25071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 25072printf %s "checking for readline... " >&6; } 25073 25074if test -n "$READLINE_CFLAGS"; then 25075 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 25076 elif test -n "$PKG_CONFIG"; then 25077 if test -n "$PKG_CONFIG" && \ 25078 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 25079 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 25080 ac_status=$? 25081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25082 test $ac_status = 0; }; then 25083 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null` 25084 test "x$?" != "x0" && pkg_failed=yes 25085else 25086 pkg_failed=yes 25087fi 25088 else 25089 pkg_failed=untried 25090fi 25091if test -n "$READLINE_LIBS"; then 25092 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 25093 elif test -n "$PKG_CONFIG"; then 25094 if test -n "$PKG_CONFIG" && \ 25095 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 25096 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 25097 ac_status=$? 25098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25099 test $ac_status = 0; }; then 25100 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null` 25101 test "x$?" != "x0" && pkg_failed=yes 25102else 25103 pkg_failed=yes 25104fi 25105 else 25106 pkg_failed=untried 25107fi 25108 25109 25110 25111if test $pkg_failed = yes; then 25112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25113printf "%s\n" "no" >&6; } 25114 25115if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25116 _pkg_short_errors_supported=yes 25117else 25118 _pkg_short_errors_supported=no 25119fi 25120 if test $_pkg_short_errors_supported = yes; then 25121 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1` 25122 else 25123 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1` 25124 fi 25125 # Put the nasty error message in config.log where it belongs 25126 echo "$READLINE_PKG_ERRORS" >&5 25127 25128 if test "$with_readline" = "yes" 25129then : 25130 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 25131fi 25132elif test $pkg_failed = untried; then 25133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25134printf "%s\n" "no" >&6; } 25135 if test "$with_readline" = "yes" 25136then : 25137 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 25138fi 25139else 25140 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 25141 READLINE_LIBS=$pkg_cv_READLINE_LIBS 25142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25143printf "%s\n" "yes" >&6; } 25144 25145printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h 25146 25147fi 25148elif test $pkg_failed = untried; then 25149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25150printf "%s\n" "no" >&6; } 25151 25152pkg_failed=no 25153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 25154printf %s "checking for readline... " >&6; } 25155 25156if test -n "$READLINE_CFLAGS"; then 25157 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 25158 elif test -n "$PKG_CONFIG"; then 25159 if test -n "$PKG_CONFIG" && \ 25160 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 25161 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 25162 ac_status=$? 25163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25164 test $ac_status = 0; }; then 25165 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null` 25166 test "x$?" != "x0" && pkg_failed=yes 25167else 25168 pkg_failed=yes 25169fi 25170 else 25171 pkg_failed=untried 25172fi 25173if test -n "$READLINE_LIBS"; then 25174 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 25175 elif test -n "$PKG_CONFIG"; then 25176 if test -n "$PKG_CONFIG" && \ 25177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 25178 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 25179 ac_status=$? 25180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25181 test $ac_status = 0; }; then 25182 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null` 25183 test "x$?" != "x0" && pkg_failed=yes 25184else 25185 pkg_failed=yes 25186fi 25187 else 25188 pkg_failed=untried 25189fi 25190 25191 25192 25193if test $pkg_failed = yes; then 25194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25195printf "%s\n" "no" >&6; } 25196 25197if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25198 _pkg_short_errors_supported=yes 25199else 25200 _pkg_short_errors_supported=no 25201fi 25202 if test $_pkg_short_errors_supported = yes; then 25203 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1` 25204 else 25205 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1` 25206 fi 25207 # Put the nasty error message in config.log where it belongs 25208 echo "$READLINE_PKG_ERRORS" >&5 25209 25210 if test "$with_readline" = "yes" 25211then : 25212 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 25213fi 25214elif test $pkg_failed = untried; then 25215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25216printf "%s\n" "no" >&6; } 25217 if test "$with_readline" = "yes" 25218then : 25219 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 25220fi 25221else 25222 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 25223 READLINE_LIBS=$pkg_cv_READLINE_LIBS 25224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25225printf "%s\n" "yes" >&6; } 25226 25227printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h 25228 25229fi 25230else 25231 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 25232 READLINE_LIBS=$pkg_cv_READLINE_LIBS 25233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25234printf "%s\n" "yes" >&6; } 25235 25236printf "%s\n" "#define HAVE_READLINE_EDITLINE 1" >>confdefs.h 25237 25238fi 25239elif test $pkg_failed = untried; then 25240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25241printf "%s\n" "no" >&6; } 25242 25243pkg_failed=no 25244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libeditline" >&5 25245printf %s "checking for libeditline... " >&6; } 25246 25247if test -n "$READLINE_CFLAGS"; then 25248 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 25249 elif test -n "$PKG_CONFIG"; then 25250 if test -n "$PKG_CONFIG" && \ 25251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5 25252 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5 25253 ac_status=$? 25254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25255 test $ac_status = 0; }; then 25256 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libeditline" 2>/dev/null` 25257 test "x$?" != "x0" && pkg_failed=yes 25258else 25259 pkg_failed=yes 25260fi 25261 else 25262 pkg_failed=untried 25263fi 25264if test -n "$READLINE_LIBS"; then 25265 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 25266 elif test -n "$PKG_CONFIG"; then 25267 if test -n "$PKG_CONFIG" && \ 25268 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5 25269 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5 25270 ac_status=$? 25271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25272 test $ac_status = 0; }; then 25273 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libeditline" 2>/dev/null` 25274 test "x$?" != "x0" && pkg_failed=yes 25275else 25276 pkg_failed=yes 25277fi 25278 else 25279 pkg_failed=untried 25280fi 25281 25282 25283 25284if test $pkg_failed = yes; then 25285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25286printf "%s\n" "no" >&6; } 25287 25288if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25289 _pkg_short_errors_supported=yes 25290else 25291 _pkg_short_errors_supported=no 25292fi 25293 if test $_pkg_short_errors_supported = yes; then 25294 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeditline" 2>&1` 25295 else 25296 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeditline" 2>&1` 25297 fi 25298 # Put the nasty error message in config.log where it belongs 25299 echo "$READLINE_PKG_ERRORS" >&5 25300 25301 25302pkg_failed=no 25303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 25304printf %s "checking for readline... " >&6; } 25305 25306if test -n "$READLINE_CFLAGS"; then 25307 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 25308 elif test -n "$PKG_CONFIG"; then 25309 if test -n "$PKG_CONFIG" && \ 25310 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 25311 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 25312 ac_status=$? 25313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25314 test $ac_status = 0; }; then 25315 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null` 25316 test "x$?" != "x0" && pkg_failed=yes 25317else 25318 pkg_failed=yes 25319fi 25320 else 25321 pkg_failed=untried 25322fi 25323if test -n "$READLINE_LIBS"; then 25324 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 25325 elif test -n "$PKG_CONFIG"; then 25326 if test -n "$PKG_CONFIG" && \ 25327 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 25328 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 25329 ac_status=$? 25330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25331 test $ac_status = 0; }; then 25332 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null` 25333 test "x$?" != "x0" && pkg_failed=yes 25334else 25335 pkg_failed=yes 25336fi 25337 else 25338 pkg_failed=untried 25339fi 25340 25341 25342 25343if test $pkg_failed = yes; then 25344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25345printf "%s\n" "no" >&6; } 25346 25347if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25348 _pkg_short_errors_supported=yes 25349else 25350 _pkg_short_errors_supported=no 25351fi 25352 if test $_pkg_short_errors_supported = yes; then 25353 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1` 25354 else 25355 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1` 25356 fi 25357 # Put the nasty error message in config.log where it belongs 25358 echo "$READLINE_PKG_ERRORS" >&5 25359 25360 if test "$with_readline" = "yes" 25361then : 25362 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 25363fi 25364elif test $pkg_failed = untried; then 25365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25366printf "%s\n" "no" >&6; } 25367 if test "$with_readline" = "yes" 25368then : 25369 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 25370fi 25371else 25372 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 25373 READLINE_LIBS=$pkg_cv_READLINE_LIBS 25374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25375printf "%s\n" "yes" >&6; } 25376 25377printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h 25378 25379fi 25380elif test $pkg_failed = untried; then 25381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25382printf "%s\n" "no" >&6; } 25383 25384pkg_failed=no 25385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 25386printf %s "checking for readline... " >&6; } 25387 25388if test -n "$READLINE_CFLAGS"; then 25389 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 25390 elif test -n "$PKG_CONFIG"; then 25391 if test -n "$PKG_CONFIG" && \ 25392 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 25393 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 25394 ac_status=$? 25395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25396 test $ac_status = 0; }; then 25397 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null` 25398 test "x$?" != "x0" && pkg_failed=yes 25399else 25400 pkg_failed=yes 25401fi 25402 else 25403 pkg_failed=untried 25404fi 25405if test -n "$READLINE_LIBS"; then 25406 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 25407 elif test -n "$PKG_CONFIG"; then 25408 if test -n "$PKG_CONFIG" && \ 25409 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 25410 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 25411 ac_status=$? 25412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25413 test $ac_status = 0; }; then 25414 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null` 25415 test "x$?" != "x0" && pkg_failed=yes 25416else 25417 pkg_failed=yes 25418fi 25419 else 25420 pkg_failed=untried 25421fi 25422 25423 25424 25425if test $pkg_failed = yes; then 25426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25427printf "%s\n" "no" >&6; } 25428 25429if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25430 _pkg_short_errors_supported=yes 25431else 25432 _pkg_short_errors_supported=no 25433fi 25434 if test $_pkg_short_errors_supported = yes; then 25435 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1` 25436 else 25437 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1` 25438 fi 25439 # Put the nasty error message in config.log where it belongs 25440 echo "$READLINE_PKG_ERRORS" >&5 25441 25442 if test "$with_readline" = "yes" 25443then : 25444 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 25445fi 25446elif test $pkg_failed = untried; then 25447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25448printf "%s\n" "no" >&6; } 25449 if test "$with_readline" = "yes" 25450then : 25451 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 25452fi 25453else 25454 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 25455 READLINE_LIBS=$pkg_cv_READLINE_LIBS 25456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25457printf "%s\n" "yes" >&6; } 25458 25459printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h 25460 25461fi 25462else 25463 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 25464 READLINE_LIBS=$pkg_cv_READLINE_LIBS 25465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25466printf "%s\n" "yes" >&6; } 25467 25468printf "%s\n" "#define HAVE_READLINE_EDITLINE 1" >>confdefs.h 25469 25470fi 25471else 25472 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 25473 READLINE_LIBS=$pkg_cv_READLINE_LIBS 25474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25475printf "%s\n" "yes" >&6; } 25476 25477printf "%s\n" "#define HAVE_READLINE_LIBEDIT 1" >>confdefs.h 25478 25479fi ;; #( 25480 libedit) : 25481 25482pkg_failed=no 25483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 25484printf %s "checking for libedit... " >&6; } 25485 25486if test -n "$READLINE_CFLAGS"; then 25487 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 25488 elif test -n "$PKG_CONFIG"; then 25489 if test -n "$PKG_CONFIG" && \ 25490 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 25491 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 25492 ac_status=$? 25493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25494 test $ac_status = 0; }; then 25495 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null` 25496 test "x$?" != "x0" && pkg_failed=yes 25497else 25498 pkg_failed=yes 25499fi 25500 else 25501 pkg_failed=untried 25502fi 25503if test -n "$READLINE_LIBS"; then 25504 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 25505 elif test -n "$PKG_CONFIG"; then 25506 if test -n "$PKG_CONFIG" && \ 25507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 25508 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 25509 ac_status=$? 25510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25511 test $ac_status = 0; }; then 25512 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null` 25513 test "x$?" != "x0" && pkg_failed=yes 25514else 25515 pkg_failed=yes 25516fi 25517 else 25518 pkg_failed=untried 25519fi 25520 25521 25522 25523if test $pkg_failed = yes; then 25524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25525printf "%s\n" "no" >&6; } 25526 25527if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25528 _pkg_short_errors_supported=yes 25529else 25530 _pkg_short_errors_supported=no 25531fi 25532 if test $_pkg_short_errors_supported = yes; then 25533 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1` 25534 else 25535 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1` 25536 fi 25537 # Put the nasty error message in config.log where it belongs 25538 echo "$READLINE_PKG_ERRORS" >&5 25539 25540 as_fn_error $? "Package requirements (libedit) were not met: 25541 25542$READLINE_PKG_ERRORS 25543 25544Consider adjusting the PKG_CONFIG_PATH environment variable if you 25545installed software in a non-standard prefix. 25546 25547Alternatively, you may set the environment variables READLINE_CFLAGS 25548and READLINE_LIBS to avoid the need to call pkg-config. 25549See the pkg-config man page for more details." "$LINENO" 5 25550elif test $pkg_failed = untried; then 25551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25552printf "%s\n" "no" >&6; } 25553 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25554printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 25555as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 25556is in your PATH or set the PKG_CONFIG environment variable to the full 25557path to pkg-config. 25558 25559Alternatively, you may set the environment variables READLINE_CFLAGS 25560and READLINE_LIBS to avoid the need to call pkg-config. 25561See the pkg-config man page for more details. 25562 25563To get pkg-config, see <http://pkg-config.freedesktop.org/>. 25564See \`config.log' for more details" "$LINENO" 5; } 25565else 25566 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 25567 READLINE_LIBS=$pkg_cv_READLINE_LIBS 25568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25569printf "%s\n" "yes" >&6; } 25570 25571printf "%s\n" "#define HAVE_READLINE_LIBEDIT 1" >>confdefs.h 25572 25573fi ;; #( 25574 editline) : 25575 25576pkg_failed=no 25577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libeditline" >&5 25578printf %s "checking for libeditline... " >&6; } 25579 25580if test -n "$READLINE_CFLAGS"; then 25581 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 25582 elif test -n "$PKG_CONFIG"; then 25583 if test -n "$PKG_CONFIG" && \ 25584 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5 25585 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5 25586 ac_status=$? 25587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25588 test $ac_status = 0; }; then 25589 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libeditline" 2>/dev/null` 25590 test "x$?" != "x0" && pkg_failed=yes 25591else 25592 pkg_failed=yes 25593fi 25594 else 25595 pkg_failed=untried 25596fi 25597if test -n "$READLINE_LIBS"; then 25598 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 25599 elif test -n "$PKG_CONFIG"; then 25600 if test -n "$PKG_CONFIG" && \ 25601 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5 25602 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5 25603 ac_status=$? 25604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25605 test $ac_status = 0; }; then 25606 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libeditline" 2>/dev/null` 25607 test "x$?" != "x0" && pkg_failed=yes 25608else 25609 pkg_failed=yes 25610fi 25611 else 25612 pkg_failed=untried 25613fi 25614 25615 25616 25617if test $pkg_failed = yes; then 25618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25619printf "%s\n" "no" >&6; } 25620 25621if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25622 _pkg_short_errors_supported=yes 25623else 25624 _pkg_short_errors_supported=no 25625fi 25626 if test $_pkg_short_errors_supported = yes; then 25627 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeditline" 2>&1` 25628 else 25629 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeditline" 2>&1` 25630 fi 25631 # Put the nasty error message in config.log where it belongs 25632 echo "$READLINE_PKG_ERRORS" >&5 25633 25634 as_fn_error $? "Package requirements (libeditline) were not met: 25635 25636$READLINE_PKG_ERRORS 25637 25638Consider adjusting the PKG_CONFIG_PATH environment variable if you 25639installed software in a non-standard prefix. 25640 25641Alternatively, you may set the environment variables READLINE_CFLAGS 25642and READLINE_LIBS to avoid the need to call pkg-config. 25643See the pkg-config man page for more details." "$LINENO" 5 25644elif test $pkg_failed = untried; then 25645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25646printf "%s\n" "no" >&6; } 25647 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25648printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 25649as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 25650is in your PATH or set the PKG_CONFIG environment variable to the full 25651path to pkg-config. 25652 25653Alternatively, you may set the environment variables READLINE_CFLAGS 25654and READLINE_LIBS to avoid the need to call pkg-config. 25655See the pkg-config man page for more details. 25656 25657To get pkg-config, see <http://pkg-config.freedesktop.org/>. 25658See \`config.log' for more details" "$LINENO" 5; } 25659else 25660 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 25661 READLINE_LIBS=$pkg_cv_READLINE_LIBS 25662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25663printf "%s\n" "yes" >&6; } 25664 25665printf "%s\n" "#define HAVE_READLINE_EDITLINE 1" >>confdefs.h 25666 25667fi ;; #( 25668 readline) : 25669 25670pkg_failed=no 25671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 25672printf %s "checking for readline... " >&6; } 25673 25674if test -n "$READLINE_CFLAGS"; then 25675 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 25676 elif test -n "$PKG_CONFIG"; then 25677 if test -n "$PKG_CONFIG" && \ 25678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 25679 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 25680 ac_status=$? 25681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25682 test $ac_status = 0; }; then 25683 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null` 25684 test "x$?" != "x0" && pkg_failed=yes 25685else 25686 pkg_failed=yes 25687fi 25688 else 25689 pkg_failed=untried 25690fi 25691if test -n "$READLINE_LIBS"; then 25692 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 25693 elif test -n "$PKG_CONFIG"; then 25694 if test -n "$PKG_CONFIG" && \ 25695 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 25696 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 25697 ac_status=$? 25698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25699 test $ac_status = 0; }; then 25700 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null` 25701 test "x$?" != "x0" && pkg_failed=yes 25702else 25703 pkg_failed=yes 25704fi 25705 else 25706 pkg_failed=untried 25707fi 25708 25709 25710 25711if test $pkg_failed = yes; then 25712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25713printf "%s\n" "no" >&6; } 25714 25715if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25716 _pkg_short_errors_supported=yes 25717else 25718 _pkg_short_errors_supported=no 25719fi 25720 if test $_pkg_short_errors_supported = yes; then 25721 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1` 25722 else 25723 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1` 25724 fi 25725 # Put the nasty error message in config.log where it belongs 25726 echo "$READLINE_PKG_ERRORS" >&5 25727 25728 as_fn_error $? "Package requirements (readline) were not met: 25729 25730$READLINE_PKG_ERRORS 25731 25732Consider adjusting the PKG_CONFIG_PATH environment variable if you 25733installed software in a non-standard prefix. 25734 25735Alternatively, you may set the environment variables READLINE_CFLAGS 25736and READLINE_LIBS to avoid the need to call pkg-config. 25737See the pkg-config man page for more details." "$LINENO" 5 25738elif test $pkg_failed = untried; then 25739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25740printf "%s\n" "no" >&6; } 25741 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25742printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 25743as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 25744is in your PATH or set the PKG_CONFIG environment variable to the full 25745path to pkg-config. 25746 25747Alternatively, you may set the environment variables READLINE_CFLAGS 25748and READLINE_LIBS to avoid the need to call pkg-config. 25749See the pkg-config man page for more details. 25750 25751To get pkg-config, see <http://pkg-config.freedesktop.org/>. 25752See \`config.log' for more details" "$LINENO" 5; } 25753else 25754 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 25755 READLINE_LIBS=$pkg_cv_READLINE_LIBS 25756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25757printf "%s\n" "yes" >&6; } 25758 25759printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h 25760 25761fi ;; #( 25762 *) : 25763 as_fn_error $? "Unknown readline '$with_readline' library requested." "$LINENO" 5 ;; 25764esac 25765 if test -n "$READLINE_LIBS"; then 25766 HAVE_READLINE_TRUE= 25767 HAVE_READLINE_FALSE='#' 25768else 25769 HAVE_READLINE_TRUE='#' 25770 HAVE_READLINE_FALSE= 25771fi 25772 25773 25774 25775 25776# 25777# Security Stuff 25778# 25779# Note it is very recommended to *not* disable chroot(), 25780# this is only because chroot() was made obsolete by Posix. 25781# 25782# [pairwise: --enable-chroot, --disable-chroot] 25783# Check whether --enable-chroot was given. 25784if test ${enable_chroot+y} 25785then : 25786 enableval=$enable_chroot; 25787fi 25788 25789case "$enable_chroot" in 25790 yes|'') 25791 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot" 25792if test "x$ac_cv_func_chroot" = xyes 25793then : 25794 printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h 25795 25796fi 25797 25798 ;; 25799 no) 25800 ;; 25801esac 25802 25803case $host in #( 25804 *-linux*) : 25805 25806pkg_failed=no 25807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcap" >&5 25808printf %s "checking for libcap... " >&6; } 25809 25810if test -n "$LIBCAP_CFLAGS"; then 25811 pkg_cv_LIBCAP_CFLAGS="$LIBCAP_CFLAGS" 25812 elif test -n "$PKG_CONFIG"; then 25813 if test -n "$PKG_CONFIG" && \ 25814 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap\""; } >&5 25815 ($PKG_CONFIG --exists --print-errors "libcap") 2>&5 25816 ac_status=$? 25817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25818 test $ac_status = 0; }; then 25819 pkg_cv_LIBCAP_CFLAGS=`$PKG_CONFIG --cflags "libcap" 2>/dev/null` 25820 test "x$?" != "x0" && pkg_failed=yes 25821else 25822 pkg_failed=yes 25823fi 25824 else 25825 pkg_failed=untried 25826fi 25827if test -n "$LIBCAP_LIBS"; then 25828 pkg_cv_LIBCAP_LIBS="$LIBCAP_LIBS" 25829 elif test -n "$PKG_CONFIG"; then 25830 if test -n "$PKG_CONFIG" && \ 25831 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap\""; } >&5 25832 ($PKG_CONFIG --exists --print-errors "libcap") 2>&5 25833 ac_status=$? 25834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25835 test $ac_status = 0; }; then 25836 pkg_cv_LIBCAP_LIBS=`$PKG_CONFIG --libs "libcap" 2>/dev/null` 25837 test "x$?" != "x0" && pkg_failed=yes 25838else 25839 pkg_failed=yes 25840fi 25841 else 25842 pkg_failed=untried 25843fi 25844 25845 25846 25847if test $pkg_failed = yes; then 25848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25849printf "%s\n" "no" >&6; } 25850 25851if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25852 _pkg_short_errors_supported=yes 25853else 25854 _pkg_short_errors_supported=no 25855fi 25856 if test $_pkg_short_errors_supported = yes; then 25857 LIBCAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcap" 2>&1` 25858 else 25859 LIBCAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcap" 2>&1` 25860 fi 25861 # Put the nasty error message in config.log where it belongs 25862 echo "$LIBCAP_PKG_ERRORS" >&5 25863 25864 as_fn_error $? "Package requirements (libcap) were not met: 25865 25866$LIBCAP_PKG_ERRORS 25867 25868Consider adjusting the PKG_CONFIG_PATH environment variable if you 25869installed software in a non-standard prefix. 25870 25871Alternatively, you may set the environment variables LIBCAP_CFLAGS 25872and LIBCAP_LIBS to avoid the need to call pkg-config. 25873See the pkg-config man page for more details." "$LINENO" 5 25874elif test $pkg_failed = untried; then 25875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25876printf "%s\n" "no" >&6; } 25877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25878printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 25879as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 25880is in your PATH or set the PKG_CONFIG environment variable to the full 25881path to pkg-config. 25882 25883Alternatively, you may set the environment variables LIBCAP_CFLAGS 25884and LIBCAP_LIBS to avoid the need to call pkg-config. 25885See the pkg-config man page for more details. 25886 25887To get pkg-config, see <http://pkg-config.freedesktop.org/>. 25888See \`config.log' for more details" "$LINENO" 5; } 25889else 25890 LIBCAP_CFLAGS=$pkg_cv_LIBCAP_CFLAGS 25891 LIBCAP_LIBS=$pkg_cv_LIBCAP_LIBS 25892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25893printf "%s\n" "yes" >&6; } 25894 25895printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h 25896 25897fi ;; #( 25898 *) : 25899 ;; 25900esac 25901 25902case "$host" in 25903*-solaris*) 25904 25905printf "%s\n" "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h 25906 25907 ;; 25908esac 25909 25910# 25911# Time Zone Stuff 25912# 25913ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" 25914if test "x$ac_cv_func_tzset" = xyes 25915then : 25916 printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h 25917 25918fi 25919 25920 25921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5 25922printf %s "checking for optarg declaration... " >&6; } 25923cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25924/* end confdefs.h. */ 25925#include <unistd.h> 25926int 25927main (void) 25928{ 25929optarg = 0; 25930 25931 ; 25932 return 0; 25933} 25934_ACEOF 25935if ac_fn_c_try_compile "$LINENO" 25936then : 25937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25938printf "%s\n" "yes" >&6; } 25939else $as_nop 25940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25941printf "%s\n" "no" >&6; } 25942 GEN_NEED_OPTARG="-DNEED_OPTARG=1" 25943 25944printf "%s\n" "#define NEED_OPTARG 1" >>confdefs.h 25945 25946 25947fi 25948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25949 25950# 25951# Check for nanoseconds in file stats 25952# 25953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5 25954printf %s "checking for st_mtim.tv_nsec... " >&6; } 25955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25956/* end confdefs.h. */ 25957#include <sys/stat.h> 25958int 25959main (void) 25960{ 25961struct stat s; 25962 return(s.st_mtim.tv_nsec); 25963 25964 ; 25965 return 0; 25966} 25967_ACEOF 25968if ac_fn_c_try_compile "$LINENO" 25969then : 25970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25971printf "%s\n" "yes" >&6; } 25972 25973printf "%s\n" "#define HAVE_STAT_NSEC 1" >>confdefs.h 25974 25975else $as_nop 25976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25977printf "%s\n" "no" >&6; } 25978fi 25979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25980 25981# 25982# Check for if_nametoindex() for IPv6 scoped addresses support 25983# 25984ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 25985if test "x$ac_cv_func_if_nametoindex" = xyes 25986then : 25987 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h 25988 25989fi 25990 25991 25992ac_fn_c_check_header_compile "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default" 25993if test "x$ac_cv_header_uchar_h" = xyes 25994then : 25995 printf "%s\n" "#define HAVE_UCHAR_H 1" >>confdefs.h 25996 25997fi 25998 25999 26000# 26001# Check for __builtin_unreachable 26002# 26003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5 26004printf %s "checking compiler support for __builtin_unreachable()... " >&6; } 26005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26006/* end confdefs.h. */ 26007 26008int 26009main (void) 26010{ 26011__builtin_unreachable(); 26012 26013 ; 26014 return 0; 26015} 26016_ACEOF 26017if ac_fn_c_try_link "$LINENO" 26018then : 26019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26020printf "%s\n" "yes" >&6; } 26021 26022printf "%s\n" "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h 26023 26024 26025else $as_nop 26026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26027printf "%s\n" "no" >&6; } 26028 26029fi 26030rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26031 conftest$ac_exeext conftest.$ac_ext 26032 26033# 26034# Check for __builtin_clz 26035# 26036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5 26037printf %s "checking compiler support for __builtin_clz... " >&6; } 26038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26039/* end confdefs.h. */ 26040 26041int 26042main (void) 26043{ 26044return (__builtin_clz(0xff) == 24 ? 1 : 0); 26045 26046 ; 26047 return 0; 26048} 26049_ACEOF 26050if ac_fn_c_try_link "$LINENO" 26051then : 26052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26053printf "%s\n" "yes" >&6; } 26054 26055printf "%s\n" "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h 26056 26057 26058else $as_nop 26059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26060printf "%s\n" "no" >&6; } 26061 26062fi 26063rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26064 conftest$ac_exeext conftest.$ac_ext 26065 26066# 26067# Check for __builtin_*_overflow 26068# 26069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_add_overflow()" >&5 26070printf %s "checking compiler support for __builtin_add_overflow()... " >&6; } 26071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26072/* end confdefs.h. */ 26073#include <limits.h> 26074int 26075main (void) 26076{ 26077return (__builtin_add_overflow((unsigned int)UINT_MAX, (unsigned int)UINT_MAX, &(unsigned int){ 0 })); 26078 26079 ; 26080 return 0; 26081} 26082_ACEOF 26083if ac_fn_c_try_link "$LINENO" 26084then : 26085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26086printf "%s\n" "yes" >&6; } 26087 26088printf "%s\n" "#define HAVE_BUILTIN_ADD_OVERFLOW 1" >>confdefs.h 26089 26090 26091else $as_nop 26092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26093printf "%s\n" "no" >&6; } 26094 26095fi 26096rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26097 conftest$ac_exeext conftest.$ac_ext 26098 26099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_sub_overflow()" >&5 26100printf %s "checking compiler support for __builtin_sub_overflow()... " >&6; } 26101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26102/* end confdefs.h. */ 26103#include <limits.h> 26104int 26105main (void) 26106{ 26107return (__builtin_sub_overflow((unsigned int)0, (unsigned int)UINT_MAX, &(unsigned int){ 0 })); 26108 26109 ; 26110 return 0; 26111} 26112_ACEOF 26113if ac_fn_c_try_link "$LINENO" 26114then : 26115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26116printf "%s\n" "yes" >&6; } 26117 26118printf "%s\n" "#define HAVE_BUILTIN_SUB_OVERFLOW 1" >>confdefs.h 26119 26120 26121else $as_nop 26122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26123printf "%s\n" "no" >&6; } 26124 26125fi 26126rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26127 conftest$ac_exeext conftest.$ac_ext 26128 26129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_mul_overflow()" >&5 26130printf %s "checking compiler support for __builtin_mul_overflow()... " >&6; } 26131cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26132/* end confdefs.h. */ 26133#include <limits.h> 26134 #include <stdint.h> 26135 26136int 26137main (void) 26138{ 26139return (__builtin_mul_overflow(UINT64_MAX, UINT64_MAX, &(uint64_t){ 0 })); 26140 26141 ; 26142 return 0; 26143} 26144_ACEOF 26145if ac_fn_c_try_link "$LINENO" 26146then : 26147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26148printf "%s\n" "yes" >&6; } 26149 26150printf "%s\n" "#define HAVE_BUILTIN_MUL_OVERFLOW 1" >>confdefs.h 26151 26152 26153else $as_nop 26154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26155printf "%s\n" "no" >&6; } 26156 26157fi 26158rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26159 conftest$ac_exeext conftest.$ac_ext 26160 26161# 26162# Activate "rrset-order fixed" or not? 26163# 26164# [pairwise: --enable-fixed-rrset, --disable-fixed-rrset] 26165# Check whether --enable-fixed-rrset was given. 26166if test ${enable_fixed_rrset+y} 26167then : 26168 enableval=$enable_fixed_rrset; 26169else $as_nop 26170 enable_fixed_rrset="no" 26171fi 26172 26173if test "$enable_fixed_rrset" = "yes" 26174then : 26175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fixed rrset ordering is deprecated and will be removed in the future release" >&5 26176printf "%s\n" "$as_me: WARNING: fixed rrset ordering is deprecated and will be removed in the future release" >&2;} 26177 26178printf "%s\n" "#define DNS_RDATASET_FIXED 1" >>confdefs.h 26179 26180fi 26181 26182# 26183# Activate dnstap? 26184# 26185# [pairwise: --enable-dnstap, --disable-dnstap] 26186# Check whether --enable-dnstap was given. 26187if test ${enable_dnstap+y} 26188then : 26189 enableval=$enable_dnstap; 26190else $as_nop 26191 enable_dnstap=no 26192fi 26193 26194 26195if test "$enable_dnstap" != "no" 26196then : 26197 26198pkg_failed=no 26199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfstrm libprotobuf-c" >&5 26200printf %s "checking for libfstrm libprotobuf-c... " >&6; } 26201 26202if test -n "$DNSTAP_CFLAGS"; then 26203 pkg_cv_DNSTAP_CFLAGS="$DNSTAP_CFLAGS" 26204 elif test -n "$PKG_CONFIG"; then 26205 if test -n "$PKG_CONFIG" && \ 26206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfstrm libprotobuf-c\""; } >&5 26207 ($PKG_CONFIG --exists --print-errors "libfstrm libprotobuf-c") 2>&5 26208 ac_status=$? 26209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26210 test $ac_status = 0; }; then 26211 pkg_cv_DNSTAP_CFLAGS=`$PKG_CONFIG --cflags "libfstrm libprotobuf-c" 2>/dev/null` 26212 test "x$?" != "x0" && pkg_failed=yes 26213else 26214 pkg_failed=yes 26215fi 26216 else 26217 pkg_failed=untried 26218fi 26219if test -n "$DNSTAP_LIBS"; then 26220 pkg_cv_DNSTAP_LIBS="$DNSTAP_LIBS" 26221 elif test -n "$PKG_CONFIG"; then 26222 if test -n "$PKG_CONFIG" && \ 26223 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfstrm libprotobuf-c\""; } >&5 26224 ($PKG_CONFIG --exists --print-errors "libfstrm libprotobuf-c") 2>&5 26225 ac_status=$? 26226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26227 test $ac_status = 0; }; then 26228 pkg_cv_DNSTAP_LIBS=`$PKG_CONFIG --libs "libfstrm libprotobuf-c" 2>/dev/null` 26229 test "x$?" != "x0" && pkg_failed=yes 26230else 26231 pkg_failed=yes 26232fi 26233 else 26234 pkg_failed=untried 26235fi 26236 26237 26238 26239if test $pkg_failed = yes; then 26240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26241printf "%s\n" "no" >&6; } 26242 26243if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26244 _pkg_short_errors_supported=yes 26245else 26246 _pkg_short_errors_supported=no 26247fi 26248 if test $_pkg_short_errors_supported = yes; then 26249 DNSTAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfstrm libprotobuf-c" 2>&1` 26250 else 26251 DNSTAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfstrm libprotobuf-c" 2>&1` 26252 fi 26253 # Put the nasty error message in config.log where it belongs 26254 echo "$DNSTAP_PKG_ERRORS" >&5 26255 26256 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26257printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 26258as_fn_error $? "Required libraries (fstrm, protobuf-c) were not found, please install them. 26259See \`config.log' for more details" "$LINENO" 5; } 26260elif test $pkg_failed = untried; then 26261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26262printf "%s\n" "no" >&6; } 26263 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26264printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 26265as_fn_error $? "Required libraries (fstrm, protobuf-c) were not found, please install them. 26266See \`config.log' for more details" "$LINENO" 5; } 26267else 26268 DNSTAP_CFLAGS=$pkg_cv_DNSTAP_CFLAGS 26269 DNSTAP_LIBS=$pkg_cv_DNSTAP_LIBS 26270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26271printf "%s\n" "yes" >&6; } 26272 26273fi 26274 # Extract the first word of "fstrm_capture", so it can be a program name with args. 26275set dummy fstrm_capture; ac_word=$2 26276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26277printf %s "checking for $ac_word... " >&6; } 26278if test ${ac_cv_path_FSTRM_CAPTURE+y} 26279then : 26280 printf %s "(cached) " >&6 26281else $as_nop 26282 case $FSTRM_CAPTURE in 26283 [\\/]* | ?:[\\/]*) 26284 ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path. 26285 ;; 26286 *) 26287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26288for as_dir in $PATH 26289do 26290 IFS=$as_save_IFS 26291 case $as_dir in #((( 26292 '') as_dir=./ ;; 26293 */) ;; 26294 *) as_dir=$as_dir/ ;; 26295 esac 26296 for ac_exec_ext in '' $ac_executable_extensions; do 26297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26298 ac_cv_path_FSTRM_CAPTURE="$as_dir$ac_word$ac_exec_ext" 26299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26300 break 2 26301 fi 26302done 26303 done 26304IFS=$as_save_IFS 26305 26306 ;; 26307esac 26308fi 26309FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE 26310if test -n "$FSTRM_CAPTURE"; then 26311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5 26312printf "%s\n" "$FSTRM_CAPTURE" >&6; } 26313else 26314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26315printf "%s\n" "no" >&6; } 26316fi 26317 26318 26319 # Extract the first word of "protoc-c", so it can be a program name with args. 26320set dummy protoc-c; ac_word=$2 26321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26322printf %s "checking for $ac_word... " >&6; } 26323if test ${ac_cv_path_PROTOC_C+y} 26324then : 26325 printf %s "(cached) " >&6 26326else $as_nop 26327 case $PROTOC_C in 26328 [\\/]* | ?:[\\/]*) 26329 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 26330 ;; 26331 *) 26332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26333for as_dir in $PATH 26334do 26335 IFS=$as_save_IFS 26336 case $as_dir in #((( 26337 '') as_dir=./ ;; 26338 */) ;; 26339 *) as_dir=$as_dir/ ;; 26340 esac 26341 for ac_exec_ext in '' $ac_executable_extensions; do 26342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26343 ac_cv_path_PROTOC_C="$as_dir$ac_word$ac_exec_ext" 26344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26345 break 2 26346 fi 26347done 26348 done 26349IFS=$as_save_IFS 26350 26351 ;; 26352esac 26353fi 26354PROTOC_C=$ac_cv_path_PROTOC_C 26355if test -n "$PROTOC_C"; then 26356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 26357printf "%s\n" "$PROTOC_C" >&6; } 26358else 26359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26360printf "%s\n" "no" >&6; } 26361fi 26362 26363 26364 if test -z "$PROTOC_C" 26365then : 26366 as_fn_error $? "protoc-c compiler not found" "$LINENO" 5 26367fi 26368 26369printf "%s\n" "#define HAVE_DNSTAP 1" >>confdefs.h 26370 26371 26372fi 26373 26374 26375 26376 if test "$enable_dnstap" != "no"; then 26377 HAVE_DNSTAP_TRUE= 26378 HAVE_DNSTAP_FALSE='#' 26379else 26380 HAVE_DNSTAP_TRUE='#' 26381 HAVE_DNSTAP_FALSE= 26382fi 26383 26384# 26385# The following sections deal with tools used for formatting 26386# the documentation. They are all optional, unless you are 26387# a developer editing the documentation source. 26388# 26389 26390# 26391# Look for sphinx-build 26392# 26393 26394# Extract the first word of "sphinx-build", so it can be a program name with args. 26395set dummy sphinx-build; ac_word=$2 26396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26397printf %s "checking for $ac_word... " >&6; } 26398if test ${ac_cv_path_SPHINX_BUILD+y} 26399then : 26400 printf %s "(cached) " >&6 26401else $as_nop 26402 case $SPHINX_BUILD in 26403 [\\/]* | ?:[\\/]*) 26404 ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path. 26405 ;; 26406 *) 26407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26408for as_dir in $PATH 26409do 26410 IFS=$as_save_IFS 26411 case $as_dir in #((( 26412 '') as_dir=./ ;; 26413 */) ;; 26414 *) as_dir=$as_dir/ ;; 26415 esac 26416 for ac_exec_ext in '' $ac_executable_extensions; do 26417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26418 ac_cv_path_SPHINX_BUILD="$as_dir$ac_word$ac_exec_ext" 26419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26420 break 2 26421 fi 26422done 26423 done 26424IFS=$as_save_IFS 26425 26426 ;; 26427esac 26428fi 26429SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD 26430if test -n "$SPHINX_BUILD"; then 26431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5 26432printf "%s\n" "$SPHINX_BUILD" >&6; } 26433else 26434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26435printf "%s\n" "no" >&6; } 26436fi 26437 26438 26439 if test -n "$SPHINX_BUILD"; then 26440 HAVE_SPHINX_BUILD_TRUE= 26441 HAVE_SPHINX_BUILD_FALSE='#' 26442else 26443 HAVE_SPHINX_BUILD_TRUE='#' 26444 HAVE_SPHINX_BUILD_FALSE= 26445fi 26446 26447 26448# 26449# Build the man pages only if we have prebuilt manpages or we can build them from RST sources 26450# 26451 if test -e doc/man/named.conf.5in || test -n "$SPHINX_BUILD"; then 26452 BUILD_MANPAGES_TRUE= 26453 BUILD_MANPAGES_FALSE='#' 26454else 26455 BUILD_MANPAGES_TRUE='#' 26456 BUILD_MANPAGES_FALSE= 26457fi 26458 26459 26460# 26461# Pull release date from changelog.rst file last modification date 26462# for reproducible builds 26463# 26464release_date=`date -u -r doc/arm/changelog.rst +%Y-%m-%d` 26465RELEASE_DATE=$release_date 26466 26467 26468# 26469# Look for Doxygen 26470# 26471for ac_prog in doxygen 26472do 26473 # Extract the first word of "$ac_prog", so it can be a program name with args. 26474set dummy $ac_prog; ac_word=$2 26475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26476printf %s "checking for $ac_word... " >&6; } 26477if test ${ac_cv_path_DOXYGEN+y} 26478then : 26479 printf %s "(cached) " >&6 26480else $as_nop 26481 case $DOXYGEN in 26482 [\\/]* | ?:[\\/]*) 26483 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 26484 ;; 26485 *) 26486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26487for as_dir in $PATH 26488do 26489 IFS=$as_save_IFS 26490 case $as_dir in #((( 26491 '') as_dir=./ ;; 26492 */) ;; 26493 *) as_dir=$as_dir/ ;; 26494 esac 26495 for ac_exec_ext in '' $ac_executable_extensions; do 26496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26497 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 26498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26499 break 2 26500 fi 26501done 26502 done 26503IFS=$as_save_IFS 26504 26505 ;; 26506esac 26507fi 26508DOXYGEN=$ac_cv_path_DOXYGEN 26509if test -n "$DOXYGEN"; then 26510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 26511printf "%s\n" "$DOXYGEN" >&6; } 26512else 26513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26514printf "%s\n" "no" >&6; } 26515fi 26516 26517 26518 test -n "$DOXYGEN" && break 26519done 26520 26521 26522ac_config_files="$ac_config_files doc/doxygen/doxygen-input-filter" 26523 26524 26525# 26526# Look for curl 26527# 26528 26529# Extract the first word of "curl", so it can be a program name with args. 26530set dummy curl; ac_word=$2 26531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26532printf %s "checking for $ac_word... " >&6; } 26533if test ${ac_cv_path_CURL+y} 26534then : 26535 printf %s "(cached) " >&6 26536else $as_nop 26537 case $CURL in 26538 [\\/]* | ?:[\\/]*) 26539 ac_cv_path_CURL="$CURL" # Let the user override the test with a path. 26540 ;; 26541 *) 26542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26543for as_dir in $PATH 26544do 26545 IFS=$as_save_IFS 26546 case $as_dir in #((( 26547 '') as_dir=./ ;; 26548 */) ;; 26549 *) as_dir=$as_dir/ ;; 26550 esac 26551 for ac_exec_ext in '' $ac_executable_extensions; do 26552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26553 ac_cv_path_CURL="$as_dir$ac_word$ac_exec_ext" 26554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26555 break 2 26556 fi 26557done 26558 done 26559IFS=$as_save_IFS 26560 26561 test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl" 26562 ;; 26563esac 26564fi 26565CURL=$ac_cv_path_CURL 26566if test -n "$CURL"; then 26567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5 26568printf "%s\n" "$CURL" >&6; } 26569else 26570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26571printf "%s\n" "no" >&6; } 26572fi 26573 26574 26575 26576 26577# 26578# Look for nc 26579# 26580 26581for ac_prog in nc 26582do 26583 # Extract the first word of "$ac_prog", so it can be a program name with args. 26584set dummy $ac_prog; ac_word=$2 26585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26586printf %s "checking for $ac_word... " >&6; } 26587if test ${ac_cv_path_NC+y} 26588then : 26589 printf %s "(cached) " >&6 26590else $as_nop 26591 case $NC in 26592 [\\/]* | ?:[\\/]*) 26593 ac_cv_path_NC="$NC" # Let the user override the test with a path. 26594 ;; 26595 *) 26596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26597for as_dir in $PATH 26598do 26599 IFS=$as_save_IFS 26600 case $as_dir in #((( 26601 '') as_dir=./ ;; 26602 */) ;; 26603 *) as_dir=$as_dir/ ;; 26604 esac 26605 for ac_exec_ext in '' $ac_executable_extensions; do 26606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26607 ac_cv_path_NC="$as_dir$ac_word$ac_exec_ext" 26608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26609 break 2 26610 fi 26611done 26612 done 26613IFS=$as_save_IFS 26614 26615 ;; 26616esac 26617fi 26618NC=$ac_cv_path_NC 26619if test -n "$NC"; then 26620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NC" >&5 26621printf "%s\n" "$NC" >&6; } 26622else 26623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26624printf "%s\n" "no" >&6; } 26625fi 26626 26627 26628 test -n "$NC" && break 26629done 26630test -n "$NC" || NC="nc" 26631 26632 26633 26634# 26635# IDN support using libidn2 26636# 26637 26638LIBIDN2_CFLAGS= 26639LIBIDN2_LIBS= 26640 26641# [pairwise: --with-libidn2=yes, --without-libidn2] 26642 26643# Check whether --with-libidn2 was given. 26644if test ${with_libidn2+y} 26645then : 26646 withval=$with_libidn2; with_libidn2="$withval" 26647else $as_nop 26648 with_libidn2="no" 26649fi 26650 26651case $with_libidn2 in #( 26652 yes) : 26653 26654pkg_failed=no 26655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5 26656printf %s "checking for libidn2... " >&6; } 26657 26658if test -n "$LIBIDN2_CFLAGS"; then 26659 pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS" 26660 elif test -n "$PKG_CONFIG"; then 26661 if test -n "$PKG_CONFIG" && \ 26662 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5 26663 ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5 26664 ac_status=$? 26665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26666 test $ac_status = 0; }; then 26667 pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null` 26668 test "x$?" != "x0" && pkg_failed=yes 26669else 26670 pkg_failed=yes 26671fi 26672 else 26673 pkg_failed=untried 26674fi 26675if test -n "$LIBIDN2_LIBS"; then 26676 pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS" 26677 elif test -n "$PKG_CONFIG"; then 26678 if test -n "$PKG_CONFIG" && \ 26679 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5 26680 ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5 26681 ac_status=$? 26682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26683 test $ac_status = 0; }; then 26684 pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null` 26685 test "x$?" != "x0" && pkg_failed=yes 26686else 26687 pkg_failed=yes 26688fi 26689 else 26690 pkg_failed=untried 26691fi 26692 26693 26694 26695if test $pkg_failed = yes; then 26696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26697printf "%s\n" "no" >&6; } 26698 26699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26700 _pkg_short_errors_supported=yes 26701else 26702 _pkg_short_errors_supported=no 26703fi 26704 if test $_pkg_short_errors_supported = yes; then 26705 LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1` 26706 else 26707 LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1` 26708 fi 26709 # Put the nasty error message in config.log where it belongs 26710 echo "$LIBIDN2_PKG_ERRORS" >&5 26711 26712 as_fn_error $? "Package requirements (libidn2) were not met: 26713 26714$LIBIDN2_PKG_ERRORS 26715 26716Consider adjusting the PKG_CONFIG_PATH environment variable if you 26717installed software in a non-standard prefix. 26718 26719Alternatively, you may set the environment variables LIBIDN2_CFLAGS 26720and LIBIDN2_LIBS to avoid the need to call pkg-config. 26721See the pkg-config man page for more details." "$LINENO" 5 26722elif test $pkg_failed = untried; then 26723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26724printf "%s\n" "no" >&6; } 26725 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26726printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 26727as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 26728is in your PATH or set the PKG_CONFIG environment variable to the full 26729path to pkg-config. 26730 26731Alternatively, you may set the environment variables LIBIDN2_CFLAGS 26732and LIBIDN2_LIBS to avoid the need to call pkg-config. 26733See the pkg-config man page for more details. 26734 26735To get pkg-config, see <http://pkg-config.freedesktop.org/>. 26736See \`config.log' for more details" "$LINENO" 5; } 26737else 26738 LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS 26739 LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS 26740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26741printf "%s\n" "yes" >&6; } 26742 26743printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h 26744 26745fi ;; #( 26746 no) : 26747 ;; #( 26748 *) : 26749 26750 26751 CCASFLAGS_libidn2_ax_save_flags=$CCASFLAGS 26752 26753 26754 26755 CFLAGS_libidn2_ax_save_flags=$CFLAGS 26756 26757 26758 26759 CPPFLAGS_libidn2_ax_save_flags=$CPPFLAGS 26760 26761 26762 26763 CXXFLAGS_libidn2_ax_save_flags=$CXXFLAGS 26764 26765 26766 26767 ERLCFLAGS_libidn2_ax_save_flags=$ERLCFLAGS 26768 26769 26770 26771 FCFLAGS_libidn2_ax_save_flags=$FCFLAGS 26772 26773 26774 26775 FCLIBS_libidn2_ax_save_flags=$FCLIBS 26776 26777 26778 26779 FFLAGS_libidn2_ax_save_flags=$FFLAGS 26780 26781 26782 26783 FLIBS_libidn2_ax_save_flags=$FLIBS 26784 26785 26786 26787 GCJFLAGS_libidn2_ax_save_flags=$GCJFLAGS 26788 26789 26790 26791 JAVACFLAGS_libidn2_ax_save_flags=$JAVACFLAGS 26792 26793 26794 26795 LDFLAGS_libidn2_ax_save_flags=$LDFLAGS 26796 26797 26798 26799 LIBS_libidn2_ax_save_flags=$LIBS 26800 26801 26802 26803 OBJCFLAGS_libidn2_ax_save_flags=$OBJCFLAGS 26804 26805 26806 26807 OBJCXXFLAGS_libidn2_ax_save_flags=$OBJCXXFLAGS 26808 26809 26810 26811 UPCFLAGS_libidn2_ax_save_flags=$UPCFLAGS 26812 26813 26814 26815 VALAFLAGS_libidn2_ax_save_flags=$VALAFLAGS 26816 26817 26818 26819 LIBIDN2_CFLAGS="-I$with_libidn2/include" 26820 LIBIDN2_LIBS="-L$with_libidn2/lib" 26821 CFLAGS="$CFLAGS $LIBIDN2_CFLAGS" 26822 LIBS="$LIBS $LIBIDN2_LIBS" 26823 for ac_header in idn2.h 26824do : 26825 ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default" 26826if test "x$ac_cv_header_idn2_h" = xyes 26827then : 26828 printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h 26829 26830else $as_nop 26831 as_fn_error $? "idn2.h not found" "$LINENO" 5 26832fi 26833 26834done 26835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5 26836printf %s "checking for library containing idn2_to_ascii_lz... " >&6; } 26837if test ${ac_cv_search_idn2_to_ascii_lz+y} 26838then : 26839 printf %s "(cached) " >&6 26840else $as_nop 26841 ac_func_search_save_LIBS=$LIBS 26842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26843/* end confdefs.h. */ 26844 26845/* Override any GCC internal prototype to avoid an error. 26846 Use char because int might match the return type of a GCC 26847 builtin and then its argument prototype would still apply. */ 26848char idn2_to_ascii_lz (); 26849int 26850main (void) 26851{ 26852return idn2_to_ascii_lz (); 26853 ; 26854 return 0; 26855} 26856_ACEOF 26857for ac_lib in '' idn2 26858do 26859 if test -z "$ac_lib"; then 26860 ac_res="none required" 26861 else 26862 ac_res=-l$ac_lib 26863 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26864 fi 26865 if ac_fn_c_try_link "$LINENO" 26866then : 26867 ac_cv_search_idn2_to_ascii_lz=$ac_res 26868fi 26869rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26870 conftest$ac_exeext 26871 if test ${ac_cv_search_idn2_to_ascii_lz+y} 26872then : 26873 break 26874fi 26875done 26876if test ${ac_cv_search_idn2_to_ascii_lz+y} 26877then : 26878 26879else $as_nop 26880 ac_cv_search_idn2_to_ascii_lz=no 26881fi 26882rm conftest.$ac_ext 26883LIBS=$ac_func_search_save_LIBS 26884fi 26885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5 26886printf "%s\n" "$ac_cv_search_idn2_to_ascii_lz" >&6; } 26887ac_res=$ac_cv_search_idn2_to_ascii_lz 26888if test "$ac_res" != no 26889then : 26890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26891 LIBIDN2_LIBS="$LIBIDN2_LIBS $ac_cv_search_idn2_to_ascii_lz" 26892 26893printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h 26894 26895else $as_nop 26896 as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5 26897fi 26898 26899 26900 CCASFLAGS=$CCASFLAGS_libidn2_ax_save_flags 26901 26902 26903 CFLAGS=$CFLAGS_libidn2_ax_save_flags 26904 26905 26906 CPPFLAGS=$CPPFLAGS_libidn2_ax_save_flags 26907 26908 26909 CXXFLAGS=$CXXFLAGS_libidn2_ax_save_flags 26910 26911 26912 ERLCFLAGS=$ERLCFLAGS_libidn2_ax_save_flags 26913 26914 26915 FCFLAGS=$FCFLAGS_libidn2_ax_save_flags 26916 26917 26918 FCLIBS=$FCLIBS_libidn2_ax_save_flags 26919 26920 26921 FFLAGS=$FFLAGS_libidn2_ax_save_flags 26922 26923 26924 FLIBS=$FLIBS_libidn2_ax_save_flags 26925 26926 26927 GCJFLAGS=$GCJFLAGS_libidn2_ax_save_flags 26928 26929 26930 JAVACFLAGS=$JAVACFLAGS_libidn2_ax_save_flags 26931 26932 26933 LDFLAGS=$LDFLAGS_libidn2_ax_save_flags 26934 26935 26936 LIBS=$LIBS_libidn2_ax_save_flags 26937 26938 26939 OBJCFLAGS=$OBJCFLAGS_libidn2_ax_save_flags 26940 26941 26942 OBJCXXFLAGS=$OBJCXXFLAGS_libidn2_ax_save_flags 26943 26944 26945 UPCFLAGS=$UPCFLAGS_libidn2_ax_save_flags 26946 26947 26948 VALAFLAGS=$VALAFLAGS_libidn2_ax_save_flags 26949 26950 26951 ;; #( 26952 *) : 26953 ;; 26954esac 26955 26956 26957 26958# 26959# Check whether to build with cmocka unit testing framework 26960# 26961# [pairwise: --with-cmocka=detect, --with-cmocka=yes, --without-cmocka] 26962 26963# Check whether --with-cmocka was given. 26964if test ${with_cmocka+y} 26965then : 26966 withval=$with_cmocka; 26967else $as_nop 26968 with_cmocka=detect 26969fi 26970 26971 26972case $with_cmocka in #( 26973 no) : 26974 ;; #( 26975 detect) : 26976 26977pkg_failed=no 26978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.1.3" >&5 26979printf %s "checking for cmocka >= 1.1.3... " >&6; } 26980 26981if test -n "$CMOCKA_CFLAGS"; then 26982 pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS" 26983 elif test -n "$PKG_CONFIG"; then 26984 if test -n "$PKG_CONFIG" && \ 26985 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5 26986 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5 26987 ac_status=$? 26988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26989 test $ac_status = 0; }; then 26990 pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.1.3" 2>/dev/null` 26991 test "x$?" != "x0" && pkg_failed=yes 26992else 26993 pkg_failed=yes 26994fi 26995 else 26996 pkg_failed=untried 26997fi 26998if test -n "$CMOCKA_LIBS"; then 26999 pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS" 27000 elif test -n "$PKG_CONFIG"; then 27001 if test -n "$PKG_CONFIG" && \ 27002 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5 27003 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5 27004 ac_status=$? 27005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27006 test $ac_status = 0; }; then 27007 pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.1.3" 2>/dev/null` 27008 test "x$?" != "x0" && pkg_failed=yes 27009else 27010 pkg_failed=yes 27011fi 27012 else 27013 pkg_failed=untried 27014fi 27015 27016 27017 27018if test $pkg_failed = yes; then 27019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27020printf "%s\n" "no" >&6; } 27021 27022if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27023 _pkg_short_errors_supported=yes 27024else 27025 _pkg_short_errors_supported=no 27026fi 27027 if test $_pkg_short_errors_supported = yes; then 27028 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1` 27029 else 27030 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1` 27031 fi 27032 # Put the nasty error message in config.log where it belongs 27033 echo "$CMOCKA_PKG_ERRORS" >&5 27034 27035 with_cmocka=no 27036elif test $pkg_failed = untried; then 27037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27038printf "%s\n" "no" >&6; } 27039 with_cmocka=no 27040else 27041 CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS 27042 CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS 27043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27044printf "%s\n" "yes" >&6; } 27045 27046printf "%s\n" "#define HAVE_CMOCKA 1" >>confdefs.h 27047 27048 with_cmocka=yes 27049fi ;; #( 27050 yes) : 27051 27052pkg_failed=no 27053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.1.3" >&5 27054printf %s "checking for cmocka >= 1.1.3... " >&6; } 27055 27056if test -n "$CMOCKA_CFLAGS"; then 27057 pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS" 27058 elif test -n "$PKG_CONFIG"; then 27059 if test -n "$PKG_CONFIG" && \ 27060 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5 27061 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5 27062 ac_status=$? 27063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27064 test $ac_status = 0; }; then 27065 pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.1.3" 2>/dev/null` 27066 test "x$?" != "x0" && pkg_failed=yes 27067else 27068 pkg_failed=yes 27069fi 27070 else 27071 pkg_failed=untried 27072fi 27073if test -n "$CMOCKA_LIBS"; then 27074 pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS" 27075 elif test -n "$PKG_CONFIG"; then 27076 if test -n "$PKG_CONFIG" && \ 27077 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5 27078 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5 27079 ac_status=$? 27080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27081 test $ac_status = 0; }; then 27082 pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.1.3" 2>/dev/null` 27083 test "x$?" != "x0" && pkg_failed=yes 27084else 27085 pkg_failed=yes 27086fi 27087 else 27088 pkg_failed=untried 27089fi 27090 27091 27092 27093if test $pkg_failed = yes; then 27094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27095printf "%s\n" "no" >&6; } 27096 27097if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27098 _pkg_short_errors_supported=yes 27099else 27100 _pkg_short_errors_supported=no 27101fi 27102 if test $_pkg_short_errors_supported = yes; then 27103 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1` 27104 else 27105 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1` 27106 fi 27107 # Put the nasty error message in config.log where it belongs 27108 echo "$CMOCKA_PKG_ERRORS" >&5 27109 27110 as_fn_error $? "Package requirements (cmocka >= 1.1.3) were not met: 27111 27112$CMOCKA_PKG_ERRORS 27113 27114Consider adjusting the PKG_CONFIG_PATH environment variable if you 27115installed software in a non-standard prefix. 27116 27117Alternatively, you may set the environment variables CMOCKA_CFLAGS 27118and CMOCKA_LIBS to avoid the need to call pkg-config. 27119See the pkg-config man page for more details." "$LINENO" 5 27120elif test $pkg_failed = untried; then 27121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27122printf "%s\n" "no" >&6; } 27123 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27124printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 27125as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 27126is in your PATH or set the PKG_CONFIG environment variable to the full 27127path to pkg-config. 27128 27129Alternatively, you may set the environment variables CMOCKA_CFLAGS 27130and CMOCKA_LIBS to avoid the need to call pkg-config. 27131See the pkg-config man page for more details. 27132 27133To get pkg-config, see <http://pkg-config.freedesktop.org/>. 27134See \`config.log' for more details" "$LINENO" 5; } 27135else 27136 CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS 27137 CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS 27138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27139printf "%s\n" "yes" >&6; } 27140 27141printf "%s\n" "#define HAVE_CMOCKA 1" >>confdefs.h 27142 27143fi ;; #( 27144 *) : 27145 as_fn_error $? "Use PKG_CONFIG_PATH to specify path to CMocka library" "$LINENO" 5 27146 ;; 27147esac 27148 27149 27150 27151 if test "$with_cmocka" = "yes"; then 27152 HAVE_CMOCKA_TRUE= 27153 HAVE_CMOCKA_FALSE='#' 27154else 27155 HAVE_CMOCKA_TRUE='#' 27156 HAVE_CMOCKA_FALSE= 27157fi 27158 27159 27160# 27161# Compile with jemalloc (either provided as package or wired in the system on FreeBSD) 27162# 27163# [pairwise: --with-jemalloc=detect, --with-jemalloc=yes, --without-jemalloc] 27164 27165# Check whether --with-jemalloc was given. 27166if test ${with_jemalloc+y} 27167then : 27168 withval=$with_jemalloc; 27169else $as_nop 27170 with_jemalloc=detect 27171fi 27172 27173 27174case $with_jemalloc in #( 27175 no) : 27176 ;; #( 27177 yes) : 27178 27179 found=false 27180 27181pkg_failed=no 27182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jemalloc" >&5 27183printf %s "checking for jemalloc... " >&6; } 27184 27185if test -n "$JEMALLOC_CFLAGS"; then 27186 pkg_cv_JEMALLOC_CFLAGS="$JEMALLOC_CFLAGS" 27187 elif test -n "$PKG_CONFIG"; then 27188 if test -n "$PKG_CONFIG" && \ 27189 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5 27190 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5 27191 ac_status=$? 27192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27193 test $ac_status = 0; }; then 27194 pkg_cv_JEMALLOC_CFLAGS=`$PKG_CONFIG --cflags "jemalloc" 2>/dev/null` 27195 test "x$?" != "x0" && pkg_failed=yes 27196else 27197 pkg_failed=yes 27198fi 27199 else 27200 pkg_failed=untried 27201fi 27202if test -n "$JEMALLOC_LIBS"; then 27203 pkg_cv_JEMALLOC_LIBS="$JEMALLOC_LIBS" 27204 elif test -n "$PKG_CONFIG"; then 27205 if test -n "$PKG_CONFIG" && \ 27206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5 27207 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5 27208 ac_status=$? 27209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27210 test $ac_status = 0; }; then 27211 pkg_cv_JEMALLOC_LIBS=`$PKG_CONFIG --libs "jemalloc" 2>/dev/null` 27212 test "x$?" != "x0" && pkg_failed=yes 27213else 27214 pkg_failed=yes 27215fi 27216 else 27217 pkg_failed=untried 27218fi 27219 27220 27221 27222if test $pkg_failed = yes; then 27223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27224printf "%s\n" "no" >&6; } 27225 27226if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27227 _pkg_short_errors_supported=yes 27228else 27229 _pkg_short_errors_supported=no 27230fi 27231 if test $_pkg_short_errors_supported = yes; then 27232 JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jemalloc" 2>&1` 27233 else 27234 JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jemalloc" 2>&1` 27235 fi 27236 # Put the nasty error message in config.log where it belongs 27237 echo "$JEMALLOC_PKG_ERRORS" >&5 27238 27239 27240 for ac_header in malloc_np.h jemalloc/jemalloc.h 27241do : 27242 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 27243ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27244if eval test \"x\$"$as_ac_Header"\" = x"yes" 27245then : 27246 cat >>confdefs.h <<_ACEOF 27247#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 27248_ACEOF 27249 27250 save_LIBS="$LIBS" 27251 save_LDFLAGS="$LDFLAGS" 27252 save_CPPFLAGS="$CPPFLAGS" 27253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sdallocx" >&5 27254printf %s "checking for library containing sdallocx... " >&6; } 27255if test ${ac_cv_search_sdallocx+y} 27256then : 27257 printf %s "(cached) " >&6 27258else $as_nop 27259 ac_func_search_save_LIBS=$LIBS 27260cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27261/* end confdefs.h. */ 27262 27263/* Override any GCC internal prototype to avoid an error. 27264 Use char because int might match the return type of a GCC 27265 builtin and then its argument prototype would still apply. */ 27266char sdallocx (); 27267int 27268main (void) 27269{ 27270return sdallocx (); 27271 ; 27272 return 0; 27273} 27274_ACEOF 27275for ac_lib in '' jemalloc 27276do 27277 if test -z "$ac_lib"; then 27278 ac_res="none required" 27279 else 27280 ac_res=-l$ac_lib 27281 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27282 fi 27283 if ac_fn_c_try_link "$LINENO" 27284then : 27285 ac_cv_search_sdallocx=$ac_res 27286fi 27287rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27288 conftest$ac_exeext 27289 if test ${ac_cv_search_sdallocx+y} 27290then : 27291 break 27292fi 27293done 27294if test ${ac_cv_search_sdallocx+y} 27295then : 27296 27297else $as_nop 27298 ac_cv_search_sdallocx=no 27299fi 27300rm conftest.$ac_ext 27301LIBS=$ac_func_search_save_LIBS 27302fi 27303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sdallocx" >&5 27304printf "%s\n" "$ac_cv_search_sdallocx" >&6; } 27305ac_res=$ac_cv_search_sdallocx 27306if test "$ac_res" != no 27307then : 27308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27309 27310 found=true 27311 JEMALLOC_VERSION=system 27312 if test "$ac_cv_search_mallocx" != "none required" 27313then : 27314 JEMALLOC_LIBS="$ac_cv_search_mallocx" 27315fi 27316 27317fi 27318 27319 CPPFLAGS="$save_CPPFLAGS" 27320 LDFLAGS="$save_LDFLAGS" 27321 LIBS="$save_LIBS" 27322 27323fi 27324 27325done 27326 27327elif test $pkg_failed = untried; then 27328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27329printf "%s\n" "no" >&6; } 27330 27331 for ac_header in malloc_np.h jemalloc/jemalloc.h 27332do : 27333 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 27334ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27335if eval test \"x\$"$as_ac_Header"\" = x"yes" 27336then : 27337 cat >>confdefs.h <<_ACEOF 27338#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 27339_ACEOF 27340 27341 save_LIBS="$LIBS" 27342 save_LDFLAGS="$LDFLAGS" 27343 save_CPPFLAGS="$CPPFLAGS" 27344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sdallocx" >&5 27345printf %s "checking for library containing sdallocx... " >&6; } 27346if test ${ac_cv_search_sdallocx+y} 27347then : 27348 printf %s "(cached) " >&6 27349else $as_nop 27350 ac_func_search_save_LIBS=$LIBS 27351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27352/* end confdefs.h. */ 27353 27354/* Override any GCC internal prototype to avoid an error. 27355 Use char because int might match the return type of a GCC 27356 builtin and then its argument prototype would still apply. */ 27357char sdallocx (); 27358int 27359main (void) 27360{ 27361return sdallocx (); 27362 ; 27363 return 0; 27364} 27365_ACEOF 27366for ac_lib in '' jemalloc 27367do 27368 if test -z "$ac_lib"; then 27369 ac_res="none required" 27370 else 27371 ac_res=-l$ac_lib 27372 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27373 fi 27374 if ac_fn_c_try_link "$LINENO" 27375then : 27376 ac_cv_search_sdallocx=$ac_res 27377fi 27378rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27379 conftest$ac_exeext 27380 if test ${ac_cv_search_sdallocx+y} 27381then : 27382 break 27383fi 27384done 27385if test ${ac_cv_search_sdallocx+y} 27386then : 27387 27388else $as_nop 27389 ac_cv_search_sdallocx=no 27390fi 27391rm conftest.$ac_ext 27392LIBS=$ac_func_search_save_LIBS 27393fi 27394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sdallocx" >&5 27395printf "%s\n" "$ac_cv_search_sdallocx" >&6; } 27396ac_res=$ac_cv_search_sdallocx 27397if test "$ac_res" != no 27398then : 27399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27400 27401 found=true 27402 JEMALLOC_VERSION=system 27403 if test "$ac_cv_search_mallocx" != "none required" 27404then : 27405 JEMALLOC_LIBS="$ac_cv_search_mallocx" 27406fi 27407 27408fi 27409 27410 CPPFLAGS="$save_CPPFLAGS" 27411 LDFLAGS="$save_LDFLAGS" 27412 LIBS="$save_LIBS" 27413 27414fi 27415 27416done 27417 27418else 27419 JEMALLOC_CFLAGS=$pkg_cv_JEMALLOC_CFLAGS 27420 JEMALLOC_LIBS=$pkg_cv_JEMALLOC_LIBS 27421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27422printf "%s\n" "yes" >&6; } 27423 27424 27425if test -n "$JEMALLOC_VERSION"; then 27426 pkg_cv_JEMALLOC_VERSION="$JEMALLOC_VERSION" 27427 elif test -n "$PKG_CONFIG"; then 27428 if test -n "$PKG_CONFIG" && \ 27429 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5 27430 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5 27431 ac_status=$? 27432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27433 test $ac_status = 0; }; then 27434 pkg_cv_JEMALLOC_VERSION=`$PKG_CONFIG --modversion "jemalloc" 2>/dev/null` 27435 test "x$?" != "x0" && pkg_failed=yes 27436else 27437 pkg_failed=yes 27438fi 27439 else 27440 pkg_failed=untried 27441fi 27442JEMALLOC_VERSION=$pkg_cv_JEMALLOC_VERSION 27443 27444if test "x$JEMALLOC_VERSION" = x"" 27445then : 27446 27447fi 27448 found=true 27449 27450fi 27451 27452 if $found 27453then : 27454 27455printf "%s\n" "#define HAVE_JEMALLOC 1" >>confdefs.h 27456 27457else $as_nop 27458 as_fn_error $? "jemalloc not found" "$LINENO" 5 27459fi 27460 27461 27462 27463 ;; #( 27464 *) : 27465 27466 found=false 27467 27468pkg_failed=no 27469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jemalloc" >&5 27470printf %s "checking for jemalloc... " >&6; } 27471 27472if test -n "$JEMALLOC_CFLAGS"; then 27473 pkg_cv_JEMALLOC_CFLAGS="$JEMALLOC_CFLAGS" 27474 elif test -n "$PKG_CONFIG"; then 27475 if test -n "$PKG_CONFIG" && \ 27476 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5 27477 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5 27478 ac_status=$? 27479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27480 test $ac_status = 0; }; then 27481 pkg_cv_JEMALLOC_CFLAGS=`$PKG_CONFIG --cflags "jemalloc" 2>/dev/null` 27482 test "x$?" != "x0" && pkg_failed=yes 27483else 27484 pkg_failed=yes 27485fi 27486 else 27487 pkg_failed=untried 27488fi 27489if test -n "$JEMALLOC_LIBS"; then 27490 pkg_cv_JEMALLOC_LIBS="$JEMALLOC_LIBS" 27491 elif test -n "$PKG_CONFIG"; then 27492 if test -n "$PKG_CONFIG" && \ 27493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5 27494 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5 27495 ac_status=$? 27496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27497 test $ac_status = 0; }; then 27498 pkg_cv_JEMALLOC_LIBS=`$PKG_CONFIG --libs "jemalloc" 2>/dev/null` 27499 test "x$?" != "x0" && pkg_failed=yes 27500else 27501 pkg_failed=yes 27502fi 27503 else 27504 pkg_failed=untried 27505fi 27506 27507 27508 27509if test $pkg_failed = yes; then 27510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27511printf "%s\n" "no" >&6; } 27512 27513if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27514 _pkg_short_errors_supported=yes 27515else 27516 _pkg_short_errors_supported=no 27517fi 27518 if test $_pkg_short_errors_supported = yes; then 27519 JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jemalloc" 2>&1` 27520 else 27521 JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jemalloc" 2>&1` 27522 fi 27523 # Put the nasty error message in config.log where it belongs 27524 echo "$JEMALLOC_PKG_ERRORS" >&5 27525 27526 27527 for ac_header in malloc_np.h jemalloc/jemalloc.h 27528do : 27529 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 27530ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27531if eval test \"x\$"$as_ac_Header"\" = x"yes" 27532then : 27533 cat >>confdefs.h <<_ACEOF 27534#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 27535_ACEOF 27536 27537 save_LIBS="$LIBS" 27538 save_LDFLAGS="$LDFLAGS" 27539 save_CPPFLAGS="$CPPFLAGS" 27540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sdallocx" >&5 27541printf %s "checking for library containing sdallocx... " >&6; } 27542if test ${ac_cv_search_sdallocx+y} 27543then : 27544 printf %s "(cached) " >&6 27545else $as_nop 27546 ac_func_search_save_LIBS=$LIBS 27547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27548/* end confdefs.h. */ 27549 27550/* Override any GCC internal prototype to avoid an error. 27551 Use char because int might match the return type of a GCC 27552 builtin and then its argument prototype would still apply. */ 27553char sdallocx (); 27554int 27555main (void) 27556{ 27557return sdallocx (); 27558 ; 27559 return 0; 27560} 27561_ACEOF 27562for ac_lib in '' jemalloc 27563do 27564 if test -z "$ac_lib"; then 27565 ac_res="none required" 27566 else 27567 ac_res=-l$ac_lib 27568 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27569 fi 27570 if ac_fn_c_try_link "$LINENO" 27571then : 27572 ac_cv_search_sdallocx=$ac_res 27573fi 27574rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27575 conftest$ac_exeext 27576 if test ${ac_cv_search_sdallocx+y} 27577then : 27578 break 27579fi 27580done 27581if test ${ac_cv_search_sdallocx+y} 27582then : 27583 27584else $as_nop 27585 ac_cv_search_sdallocx=no 27586fi 27587rm conftest.$ac_ext 27588LIBS=$ac_func_search_save_LIBS 27589fi 27590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sdallocx" >&5 27591printf "%s\n" "$ac_cv_search_sdallocx" >&6; } 27592ac_res=$ac_cv_search_sdallocx 27593if test "$ac_res" != no 27594then : 27595 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27596 27597 found=true 27598 JEMALLOC_VERSION=system 27599 if test "$ac_cv_search_mallocx" != "none required" 27600then : 27601 JEMALLOC_LIBS="$ac_cv_search_mallocx" 27602fi 27603 27604fi 27605 27606 CPPFLAGS="$save_CPPFLAGS" 27607 LDFLAGS="$save_LDFLAGS" 27608 LIBS="$save_LIBS" 27609 27610fi 27611 27612done 27613 27614elif test $pkg_failed = untried; then 27615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27616printf "%s\n" "no" >&6; } 27617 27618 for ac_header in malloc_np.h jemalloc/jemalloc.h 27619do : 27620 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 27621ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27622if eval test \"x\$"$as_ac_Header"\" = x"yes" 27623then : 27624 cat >>confdefs.h <<_ACEOF 27625#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 27626_ACEOF 27627 27628 save_LIBS="$LIBS" 27629 save_LDFLAGS="$LDFLAGS" 27630 save_CPPFLAGS="$CPPFLAGS" 27631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sdallocx" >&5 27632printf %s "checking for library containing sdallocx... " >&6; } 27633if test ${ac_cv_search_sdallocx+y} 27634then : 27635 printf %s "(cached) " >&6 27636else $as_nop 27637 ac_func_search_save_LIBS=$LIBS 27638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27639/* end confdefs.h. */ 27640 27641/* Override any GCC internal prototype to avoid an error. 27642 Use char because int might match the return type of a GCC 27643 builtin and then its argument prototype would still apply. */ 27644char sdallocx (); 27645int 27646main (void) 27647{ 27648return sdallocx (); 27649 ; 27650 return 0; 27651} 27652_ACEOF 27653for ac_lib in '' jemalloc 27654do 27655 if test -z "$ac_lib"; then 27656 ac_res="none required" 27657 else 27658 ac_res=-l$ac_lib 27659 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27660 fi 27661 if ac_fn_c_try_link "$LINENO" 27662then : 27663 ac_cv_search_sdallocx=$ac_res 27664fi 27665rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27666 conftest$ac_exeext 27667 if test ${ac_cv_search_sdallocx+y} 27668then : 27669 break 27670fi 27671done 27672if test ${ac_cv_search_sdallocx+y} 27673then : 27674 27675else $as_nop 27676 ac_cv_search_sdallocx=no 27677fi 27678rm conftest.$ac_ext 27679LIBS=$ac_func_search_save_LIBS 27680fi 27681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sdallocx" >&5 27682printf "%s\n" "$ac_cv_search_sdallocx" >&6; } 27683ac_res=$ac_cv_search_sdallocx 27684if test "$ac_res" != no 27685then : 27686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27687 27688 found=true 27689 JEMALLOC_VERSION=system 27690 if test "$ac_cv_search_mallocx" != "none required" 27691then : 27692 JEMALLOC_LIBS="$ac_cv_search_mallocx" 27693fi 27694 27695fi 27696 27697 CPPFLAGS="$save_CPPFLAGS" 27698 LDFLAGS="$save_LDFLAGS" 27699 LIBS="$save_LIBS" 27700 27701fi 27702 27703done 27704 27705else 27706 JEMALLOC_CFLAGS=$pkg_cv_JEMALLOC_CFLAGS 27707 JEMALLOC_LIBS=$pkg_cv_JEMALLOC_LIBS 27708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27709printf "%s\n" "yes" >&6; } 27710 27711 27712if test -n "$JEMALLOC_VERSION"; then 27713 pkg_cv_JEMALLOC_VERSION="$JEMALLOC_VERSION" 27714 elif test -n "$PKG_CONFIG"; then 27715 if test -n "$PKG_CONFIG" && \ 27716 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5 27717 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5 27718 ac_status=$? 27719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27720 test $ac_status = 0; }; then 27721 pkg_cv_JEMALLOC_VERSION=`$PKG_CONFIG --modversion "jemalloc" 2>/dev/null` 27722 test "x$?" != "x0" && pkg_failed=yes 27723else 27724 pkg_failed=yes 27725fi 27726 else 27727 pkg_failed=untried 27728fi 27729JEMALLOC_VERSION=$pkg_cv_JEMALLOC_VERSION 27730 27731if test "x$JEMALLOC_VERSION" = x"" 27732then : 27733 27734fi 27735 found=true 27736 27737fi 27738 27739 if $found 27740then : 27741 27742printf "%s\n" "#define HAVE_JEMALLOC 1" >>confdefs.h 27743 27744 with_jemalloc=yes 27745else $as_nop 27746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: jemalloc not found; performance will be reduced" >&5 27747printf "%s\n" "$as_me: WARNING: jemalloc not found; performance will be reduced" >&2;} 27748 with_jemalloc=no 27749fi 27750 27751 27752 27753 ;; 27754esac 27755 27756if test "$with_jemalloc" = "no" 27757then : 27758 case $host in #( 27759 *-freebsd*) : 27760 as_fn_error $? "You cannot compile without jemalloc; jemalloc is the system allocator on FreeBSD" "$LINENO" 5 ;; #( 27761 *) : 27762 ;; 27763esac 27764fi 27765 27766 if test "$with_jemalloc" = "yes"; then 27767 HAVE_JEMALLOC_TRUE= 27768 HAVE_JEMALLOC_FALSE='#' 27769else 27770 HAVE_JEMALLOC_TRUE='#' 27771 HAVE_JEMALLOC_FALSE= 27772fi 27773 27774 27775# 27776# Check memory leaks in external libraries 27777# 27778# [pairwise: --enable-leak-detection, --disable-leak-detection] 27779# Check whether --enable-leak-detection was given. 27780if test ${enable_leak_detection+y} 27781then : 27782 enableval=$enable_leak_detection; 27783else $as_nop 27784 enable_leak_detection=no 27785fi 27786 27787case $enable_leak_detection in #( 27788 yes) : 27789 27790printf "%s\n" "#define ENABLE_LEAK_DETECTION 1" >>confdefs.h 27791 ;; #( 27792 *) : 27793 ;; 27794esac 27795 27796# 27797# was --enable-querytrace or --enable-singletrace specified? 27798# 27799# [pairwise: --enable-singletrace --enable-querytrace, --disable-singletrace --enable-querytrace, --disable-singletrace --disable-querytrace] 27800# Check whether --enable-singletrace was given. 27801if test ${enable_singletrace+y} 27802then : 27803 enableval=$enable_singletrace; enable_singletrace="$enableval" 27804else $as_nop 27805 enable_singletrace="no" 27806fi 27807 27808 27809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable single-query trace logging" >&5 27810printf %s "checking whether to enable single-query trace logging... " >&6; } 27811case "$enable_singletrace" in 27812yes) 27813 enable_querytrace=yes 27814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27815printf "%s\n" "yes" >&6; } 27816 27817printf "%s\n" "#define WANT_SINGLETRACE 1" >>confdefs.h 27818 27819 ;; 27820no) 27821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27822printf "%s\n" "no" >&6; } 27823 ;; 27824*) 27825 as_fn_error $? "\"--enable-singletrace requires yes or no\"" "$LINENO" 5 27826 ;; 27827esac 27828 27829# [pairwise: skip] 27830# Check whether --enable-querytrace was given. 27831if test ${enable_querytrace+y} 27832then : 27833 enableval=$enable_querytrace; enable_querytrace="$enableval" 27834else $as_nop 27835 enable_querytrace="$enable_singletrace" 27836fi 27837 27838 27839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5 27840printf %s "checking whether to enable query trace logging... " >&6; } 27841case "$enable_querytrace" in 27842yes) 27843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27844printf "%s\n" "yes" >&6; } 27845 27846printf "%s\n" "#define WANT_QUERYTRACE 1" >>confdefs.h 27847 27848 ;; 27849no) 27850 if test "$enable_singletrace" = "yes" 27851then : 27852 as_fn_error $? "--enable-singletrace requires --enable-querytrace" "$LINENO" 5 27853fi 27854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27855printf "%s\n" "no" >&6; } 27856 ;; 27857*) 27858 as_fn_error $? "\"--enable-querytrace requires yes or no (not $enable_querytrace)\"" "$LINENO" 5 27859 ;; 27860esac 27861 27862# 27863# Was --disable-auto-validation specified? 27864# 27865 27866validation_default=auto 27867 27868# [pairwise: --enable-auto-validation, --disable-auto-validation] 27869# Check whether --enable-auto-validation was given. 27870if test ${enable_auto_validation+y} 27871then : 27872 enableval=$enable_auto_validation; : 27873else $as_nop 27874 enable_auto_validation=yes 27875fi 27876 27877if test "$enable_auto_validation" = "no" 27878then : 27879 validation_default=yes 27880fi 27881 27882printf "%s\n" "#define VALIDATION_DEFAULT \"$validation_default\"" >>confdefs.h 27883 27884 27885# 27886# 27887# Response policy rewriting using DNS Response Policy Service (DNSRPS) 27888# interface. 27889# 27890# DNSRPS can be compiled into BIND everywhere with a reasonably 27891# modern C compiler. It is enabled on systems with dlopen() and librpz.so. 27892# 27893dnsrps_avail=yes 27894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5 27895printf %s "checking for librpz __attribute__s... " >&6; } 27896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27897/* end confdefs.h. */ 27898 27899int 27900main (void) 27901{ 27902 27903 extern void f(char *p __attribute__((unused)), ...) 27904 __attribute__((format(printf,1,2))) __attribute__((__noreturn__)); 27905 27906 ; 27907 return 0; 27908} 27909_ACEOF 27910if ac_fn_c_try_compile "$LINENO" 27911then : 27912 27913 librpz_have_attr=yes 27914 27915printf "%s\n" "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h 27916 27917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27918printf "%s\n" "yes" >&6; } 27919 27920else $as_nop 27921 27922 librpz_have_attr=no 27923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27924printf "%s\n" "no" >&6; } 27925 27926fi 27927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27928 27929# [pairwise: --enable-dnsrps --enable-dnsrps-dl, --disable-dnsrps] 27930# Check whether --enable-dnsrps-dl was given. 27931if test ${enable_dnsrps_dl+y} 27932then : 27933 enableval=$enable_dnsrps_dl; enable_dnsrps_dl="$enableval" 27934else $as_nop 27935 enable_dnsrps_dl="yes" 27936fi 27937 27938 27939if test "$enable_dnsrps_dl" = "yes" -a "$with_dlopen" = "no" 27940then : 27941 as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5 27942fi 27943 27944# [pairwise: skip] 27945 27946# Check whether --with-dnsrps-libname was given. 27947if test ${with_dnsrps_libname+y} 27948then : 27949 withval=$with_dnsrps_libname; librpz_name="$withval" 27950else $as_nop 27951 librpz_name="librpz.so" 27952fi 27953 27954 27955# [pairwise: skip] 27956 27957# Check whether --with-dnsrps-dir was given. 27958if test ${with_dnsrps_dir+y} 27959then : 27960 withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name" 27961else $as_nop 27962 librpz_path="$librpz_name" 27963fi 27964 27965 27966printf "%s\n" "#define DNSRPS_LIBRPZ_PATH \"$librpz_path\"" >>confdefs.h 27967 27968if test "$enable_dnsrps_dl" = "yes" 27969then : 27970 27971 dnsrps_lib_open=2 27972 27973else $as_nop 27974 27975 dnsrps_lib_open=1 27976 # Add librpz.so to linked libraries if we are not using dlopen() 27977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5 27978printf %s "checking for library containing librpz_client_create... " >&6; } 27979if test ${ac_cv_search_librpz_client_create+y} 27980then : 27981 printf %s "(cached) " >&6 27982else $as_nop 27983 ac_func_search_save_LIBS=$LIBS 27984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27985/* end confdefs.h. */ 27986 27987/* Override any GCC internal prototype to avoid an error. 27988 Use char because int might match the return type of a GCC 27989 builtin and then its argument prototype would still apply. */ 27990char librpz_client_create (); 27991int 27992main (void) 27993{ 27994return librpz_client_create (); 27995 ; 27996 return 0; 27997} 27998_ACEOF 27999for ac_lib in '' rpz 28000do 28001 if test -z "$ac_lib"; then 28002 ac_res="none required" 28003 else 28004 ac_res=-l$ac_lib 28005 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28006 fi 28007 if ac_fn_c_try_link "$LINENO" 28008then : 28009 ac_cv_search_librpz_client_create=$ac_res 28010fi 28011rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28012 conftest$ac_exeext 28013 if test ${ac_cv_search_librpz_client_create+y} 28014then : 28015 break 28016fi 28017done 28018if test ${ac_cv_search_librpz_client_create+y} 28019then : 28020 28021else $as_nop 28022 ac_cv_search_librpz_client_create=no 28023fi 28024rm conftest.$ac_ext 28025LIBS=$ac_func_search_save_LIBS 28026fi 28027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5 28028printf "%s\n" "$ac_cv_search_librpz_client_create" >&6; } 28029ac_res=$ac_cv_search_librpz_client_create 28030if test "$ac_res" != no 28031then : 28032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28033 28034else $as_nop 28035 dnsrps_lib_open=0 28036 dnsrps_avail=no 28037fi 28038 28039 28040fi 28041 28042printf "%s\n" "#define DNSRPS_LIB_OPEN $dnsrps_lib_open" >>confdefs.h 28043 28044 28045# [pairwise: skip] 28046# Check whether --enable-dnsrps was given. 28047if test ${enable_dnsrps+y} 28048then : 28049 enableval=$enable_dnsrps; enable_dnsrps=$enableval 28050else $as_nop 28051 enable_dnsrps=no 28052fi 28053 28054 28055if test "$enable_dnsrps" != "no" 28056then : 28057 28058 if test "$dnsrps_lib_open" = "0" 28059then : 28060 as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5 28061fi 28062 28063printf "%s\n" "#define USE_DNSRPS 1" >>confdefs.h 28064 28065 28066fi 28067 28068 if test "$enable_dnsrps" != "no"; then 28069 DNSRPS_TRUE= 28070 DNSRPS_FALSE='#' 28071else 28072 DNSRPS_TRUE='#' 28073 DNSRPS_FALSE= 28074fi 28075 28076 28077ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default" 28078if test "x$ac_cv_header_glob_h" = xyes 28079then : 28080 printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h 28081 28082fi 28083 28084 28085# 28086# Support for constructor and destructor attributes 28087# 28088 28089 28090 28091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((constructor))" >&5 28092printf %s "checking for __attribute__((constructor))... " >&6; } 28093if test ${ax_cv_have_func_attribute_constructor+y} 28094then : 28095 printf %s "(cached) " >&6 28096else $as_nop 28097 28098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28099/* end confdefs.h. */ 28100 28101 28102 int foo( void ) __attribute__((constructor)); 28103 28104int 28105main (void) 28106{ 28107 28108 ; 28109 return 0; 28110} 28111 28112_ACEOF 28113if ac_fn_c_try_link "$LINENO" 28114then : 28115 if grep -- -Wattributes conftest.err 28116then : 28117 ax_cv_have_func_attribute_constructor=no 28118else $as_nop 28119 ax_cv_have_func_attribute_constructor=yes 28120fi 28121else $as_nop 28122 ax_cv_have_func_attribute_constructor=no 28123fi 28124rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28125 conftest$ac_exeext conftest.$ac_ext 28126 28127fi 28128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_constructor" >&5 28129printf "%s\n" "$ax_cv_have_func_attribute_constructor" >&6; } 28130 28131 if test yes = $ax_cv_have_func_attribute_constructor 28132then : 28133 28134printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR 1" >>confdefs.h 28135 28136fi 28137 28138 28139 28140 28141 28142 28143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((destructor))" >&5 28144printf %s "checking for __attribute__((destructor))... " >&6; } 28145if test ${ax_cv_have_func_attribute_destructor+y} 28146then : 28147 printf %s "(cached) " >&6 28148else $as_nop 28149 28150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28151/* end confdefs.h. */ 28152 28153 28154 int foo( void ) __attribute__((destructor)); 28155 28156int 28157main (void) 28158{ 28159 28160 ; 28161 return 0; 28162} 28163 28164_ACEOF 28165if ac_fn_c_try_link "$LINENO" 28166then : 28167 if grep -- -Wattributes conftest.err 28168then : 28169 ax_cv_have_func_attribute_destructor=no 28170else $as_nop 28171 ax_cv_have_func_attribute_destructor=yes 28172fi 28173else $as_nop 28174 ax_cv_have_func_attribute_destructor=no 28175fi 28176rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28177 conftest$ac_exeext conftest.$ac_ext 28178 28179fi 28180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_destructor" >&5 28181printf "%s\n" "$ax_cv_have_func_attribute_destructor" >&6; } 28182 28183 if test yes = $ax_cv_have_func_attribute_destructor 28184then : 28185 28186printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_DESTRUCTOR 1" >>confdefs.h 28187 28188fi 28189 28190 28191 28192 28193# 28194# Check whether to enable User Statically Defined Tracing. 28195# 28196# This is supported only on Linux now and requires SystemTap libraries. 28197# 28198# [pairwise: --enable-tracing=auto, --enable-tracing=yes, --disable-tracing] 28199# Check whether --enable-tracing was given. 28200if test ${enable_tracing+y} 28201then : 28202 enableval=$enable_tracing; 28203else $as_nop 28204 enable_tracing=auto 28205fi 28206 28207 28208 28209for ac_prog in dtrace 28210do 28211 # Extract the first word of "$ac_prog", so it can be a program name with args. 28212set dummy $ac_prog; ac_word=$2 28213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28214printf %s "checking for $ac_word... " >&6; } 28215if test ${ac_cv_path_DTRACE+y} 28216then : 28217 printf %s "(cached) " >&6 28218else $as_nop 28219 case $DTRACE in 28220 [\\/]* | ?:[\\/]*) 28221 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 28222 ;; 28223 *) 28224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28225for as_dir in $PATH 28226do 28227 IFS=$as_save_IFS 28228 case $as_dir in #((( 28229 '') as_dir=./ ;; 28230 */) ;; 28231 *) as_dir=$as_dir/ ;; 28232 esac 28233 for ac_exec_ext in '' $ac_executable_extensions; do 28234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28235 ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext" 28236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28237 break 2 28238 fi 28239done 28240 done 28241IFS=$as_save_IFS 28242 28243 ;; 28244esac 28245fi 28246DTRACE=$ac_cv_path_DTRACE 28247if test -n "$DTRACE"; then 28248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 28249printf "%s\n" "$DTRACE" >&6; } 28250else 28251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28252printf "%s\n" "no" >&6; } 28253fi 28254 28255 28256 test -n "$DTRACE" && break 28257done 28258 28259ac_fn_c_check_header_compile "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 28260if test "x$ac_cv_header_sys_sdt_h" = xyes 28261then : 28262 printf "%s\n" "#define HAVE_SYS_SDT_H 1" >>confdefs.h 28263 28264fi 28265 28266 28267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable User Statically Defined Tracing support (default is auto)" >&5 28268printf %s "checking whether to enable User Statically Defined Tracing support (default is auto)... " >&6; } 28269case $enable_tracing in #( 28270 auto) : 28271 enable_tracing=yes 28272 if test "$ac_cv_header_sys_sdt_h" != "yes" 28273then : 28274 enable_tracing=no 28275fi 28276 if test -z "$DTRACE" 28277then : 28278 enable_tracing=no 28279fi 28280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28281/* end confdefs.h. */ 28282 28283int 28284main (void) 28285{ 28286#if !defined(__has_feature) 28287 #define __has_feature(x) 0 28288 #endif /* if !defined(__has_feature) */ 28289 #if __has_feature(address_sanitizer) 28290 #define __SANITIZE_ADDRESS__ 1 28291 #endif /* if __has_feature(address_sanitizer) */ 28292 #if defined(__SANITIZE_ADDRESS__) 28293 #error Address Sanitizer enabled 28294 #endif 28295 28296 ; 28297 return 0; 28298} 28299_ACEOF 28300if ac_fn_c_try_compile "$LINENO" 28301then : 28302 28303else $as_nop 28304 enable_tracing=no 28305 28306fi 28307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #( 28308 *) : 28309 ;; 28310esac 28311case $enable_tracing in #( 28312 yes) : 28313 if test "$ac_cv_header_sys_sdt_h" != "yes" 28314then : 28315 as_fn_error $? "sys/sdt.h header not found" "$LINENO" 5 28316fi 28317 if test -z "$DTRACE" 28318then : 28319 as_fn_error $? "The dtrace command not found" "$LINENO" 5 28320fi 28321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28322printf "%s\n" "yes" >&6; } ;; #( 28323 *) : 28324 DTRACE="" 28325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28326printf "%s\n" "no" >&6; } ;; 28327esac 28328 28329case $host in #( 28330 *-linux*) : 28331 have_systemtap=true ;; #( 28332 *) : 28333 ;; 28334esac 28335 28336 if test -n "$have_systemtap"; then 28337 HAVE_SYSTEMTAP_TRUE= 28338 HAVE_SYSTEMTAP_FALSE='#' 28339else 28340 HAVE_SYSTEMTAP_TRUE='#' 28341 HAVE_SYSTEMTAP_FALSE= 28342fi 28343 28344 if test -n "$DTRACE"; then 28345 HAVE_DTRACE_TRUE= 28346 HAVE_DTRACE_FALSE='#' 28347else 28348 HAVE_DTRACE_TRUE='#' 28349 HAVE_DTRACE_FALSE= 28350fi 28351 28352 28353# Use shim script if dtrace is not available 28354if test -z "$DTRACE" 28355then : 28356 DTRACE='$(top_srcdir)/util/dtrace.sh' 28357fi 28358 28359 28360 28361# 28362# Which should be the default zone database, RBTDB or QPZONE? 28363# [pairwise: --with-zonedb=qp, --with-zonedb=rbt] 28364# 28365 28366# Check whether --with-zonedb was given. 28367if test ${with_zonedb+y} 28368then : 28369 withval=$with_zonedb; 28370else $as_nop 28371 with_zonedb=qp 28372fi 28373 28374zonedb="qpzone" 28375case $with_zonedb in #( 28376 RBT*|rbt*) : 28377 zonedb="rbt" ;; #( 28378 QP|qp) : 28379 ;; #( 28380 *) : 28381 as_fn_error $? "Unknown zone database type" "$LINENO" 5 28382 ;; 28383esac 28384 28385printf "%s\n" "#define ZONEDB_DEFAULT \"$zonedb\"" >>confdefs.h 28386 28387 28388# 28389# Which should be the default zone database, RBTDB or QPCACHE? 28390# [pairwise: --with-cachedb=qp, --with-cachedb=rbt] 28391# 28392 28393# Check whether --with-cachedb was given. 28394if test ${with_cachedb+y} 28395then : 28396 withval=$with_cachedb; 28397else $as_nop 28398 with_cachedb=qp 28399fi 28400 28401cachedb="qpcache" 28402case $with_cachedb in #( 28403 RBT*|rbt*) : 28404 cachedb="rbt" ;; #( 28405 QP*|qp*) : 28406 ;; #( 28407 *) : 28408 as_fn_error $? "Unknown cache database type" "$LINENO" 5 28409 ;; 28410esac 28411 28412printf "%s\n" "#define CACHEDB_DEFAULT \"$cachedb\"" >>confdefs.h 28413 28414 28415# 28416# Files to configure. These are listed here because we used to 28417# specify them as arguments to AC_OUTPUT. 28418# 28419 28420# Top 28421 28422ac_config_files="$ac_config_files Makefile" 28423 28424 28425# Binaries 28426 28427ac_config_files="$ac_config_files bin/Makefile bin/named/Makefile bin/rndc/Makefile bin/dig/Makefile bin/delv/Makefile bin/dnssec/Makefile bin/tools/Makefile bin/nsupdate/Makefile bin/check/Makefile bin/confgen/Makefile bin/plugins/Makefile" 28428 28429 28430# Libraries 28431 28432ac_config_files="$ac_config_files lib/Makefile lib/isc/Makefile lib/dns/Makefile lib/ns/Makefile lib/isccfg/Makefile lib/isccc/Makefile" 28433 28434 28435# Documentation 28436 28437ac_config_files="$ac_config_files doc/Makefile doc/arm/Makefile doc/man/Makefile doc/misc/Makefile" 28438 28439 28440# Unit tests and benchmarks 28441 28442ac_config_files="$ac_config_files tests/Makefile tests/bench/Makefile tests/isc/Makefile tests/dns/Makefile tests/ns/Makefile tests/irs/Makefile tests/isccfg/Makefile tests/libtest/Makefile" 28443 28444 28445ac_config_files="$ac_config_files tests/unit-test-driver.sh" 28446 28447 28448# System Tests 28449 28450ac_config_files="$ac_config_files bin/tests/Makefile bin/tests/system/Makefile bin/tests/system/isctest/vars/.ac_vars/TOP_BUILDDIR bin/tests/system/isctest/vars/.ac_vars/TOP_SRCDIR bin/tests/system/isctest/vars/.ac_vars/FSTRM_CAPTURE bin/tests/system/isctest/vars/.ac_vars/SHELL bin/tests/system/isctest/vars/.ac_vars/PYTHON bin/tests/system/isctest/vars/.ac_vars/PERL bin/tests/system/isctest/vars/.ac_vars/CURL bin/tests/system/isctest/vars/.ac_vars/NC bin/tests/system/isctest/vars/.ac_vars/XSLTPROC bin/tests/system/isctest/vars/.ac_vars/PYTEST bin/tests/system/dyndb/driver/Makefile bin/tests/system/dlzexternal/driver/Makefile bin/tests/system/hooks/driver/Makefile bin/tests/system/rpz/testlib/Makefile" 28451 28452 28453ac_config_files="$ac_config_files bin/tests/system/ifconfig.sh" 28454 28455ac_config_files="$ac_config_files bin/tests/system/start.sh" 28456 28457ac_config_files="$ac_config_files bin/tests/system/stop.sh" 28458 28459 28460# Fuzz Tests 28461 28462ac_config_files="$ac_config_files fuzz/Makefile" 28463 28464 28465# Misc 28466 28467ac_config_files="$ac_config_files util/check-make-install" 28468 28469 28470# 28471# Do it 28472# 28473 28474cat >confcache <<\_ACEOF 28475# This file is a shell script that caches the results of configure 28476# tests run on this system so they can be shared between configure 28477# scripts and configure runs, see configure's option --config-cache. 28478# It is not useful on other systems. If it contains results you don't 28479# want to keep, you may remove or edit it. 28480# 28481# config.status only pays attention to the cache file if you give it 28482# the --recheck option to rerun configure. 28483# 28484# `ac_cv_env_foo' variables (set or unset) will be overridden when 28485# loading this file, other *unset* `ac_cv_foo' will be assigned the 28486# following values. 28487 28488_ACEOF 28489 28490# The following way of writing the cache mishandles newlines in values, 28491# but we know of no workaround that is simple, portable, and efficient. 28492# So, we kill variables containing newlines. 28493# Ultrix sh set writes to stderr and can't be redirected directly, 28494# and sets the high bit in the cache file unless we assign to the vars. 28495( 28496 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 28497 eval ac_val=\$$ac_var 28498 case $ac_val in #( 28499 *${as_nl}*) 28500 case $ac_var in #( 28501 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 28502printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 28503 esac 28504 case $ac_var in #( 28505 _ | IFS | as_nl) ;; #( 28506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 28507 *) { eval $ac_var=; unset $ac_var;} ;; 28508 esac ;; 28509 esac 28510 done 28511 28512 (set) 2>&1 | 28513 case $as_nl`(ac_space=' '; set) 2>&1` in #( 28514 *${as_nl}ac_space=\ *) 28515 # `set' does not quote correctly, so add quotes: double-quote 28516 # substitution turns \\\\ into \\, and sed turns \\ into \. 28517 sed -n \ 28518 "s/'/'\\\\''/g; 28519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 28520 ;; #( 28521 *) 28522 # `set' quotes correctly as required by POSIX, so do not add quotes. 28523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 28524 ;; 28525 esac | 28526 sort 28527) | 28528 sed ' 28529 /^ac_cv_env_/b end 28530 t clear 28531 :clear 28532 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 28533 t end 28534 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 28535 :end' >>confcache 28536if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 28537 if test -w "$cache_file"; then 28538 if test "x$cache_file" != "x/dev/null"; then 28539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 28540printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 28541 if test ! -f "$cache_file" || test -h "$cache_file"; then 28542 cat confcache >"$cache_file" 28543 else 28544 case $cache_file in #( 28545 */* | ?:*) 28546 mv -f confcache "$cache_file"$$ && 28547 mv -f "$cache_file"$$ "$cache_file" ;; #( 28548 *) 28549 mv -f confcache "$cache_file" ;; 28550 esac 28551 fi 28552 fi 28553 else 28554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 28555printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 28556 fi 28557fi 28558rm -f confcache 28559 28560test "x$prefix" = xNONE && prefix=$ac_default_prefix 28561# Let make expand exec_prefix. 28562test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 28563 28564DEFS=-DHAVE_CONFIG_H 28565 28566ac_libobjs= 28567ac_ltlibobjs= 28568U= 28569for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 28570 # 1. Remove the extension, and $U if already installed. 28571 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 28572 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 28573 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 28574 # will be set to the directory where LIBOBJS objects are built. 28575 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 28576 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 28577done 28578LIBOBJS=$ac_libobjs 28579 28580LTLIBOBJS=$ac_ltlibobjs 28581 28582 28583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 28584printf %s "checking that generated files are newer than configure... " >&6; } 28585 if test -n "$am_sleep_pid"; then 28586 # Hide warnings about reused PIDs. 28587 wait $am_sleep_pid 2>/dev/null 28588 fi 28589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 28590printf "%s\n" "done" >&6; } 28591 if test -n "$EXEEXT"; then 28592 am__EXEEXT_TRUE= 28593 am__EXEEXT_FALSE='#' 28594else 28595 am__EXEEXT_TRUE='#' 28596 am__EXEEXT_FALSE= 28597fi 28598 28599if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 28600 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 28601Usually this means the macro was only invoked conditionally." "$LINENO" 5 28602fi 28603if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 28604 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 28605Usually this means the macro was only invoked conditionally." "$LINENO" 5 28606fi 28607if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 28608 as_fn_error $? "conditional \"AMDEP\" was never defined. 28609Usually this means the macro was only invoked conditionally." "$LINENO" 5 28610fi 28611if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 28612 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 28613Usually this means the macro was only invoked conditionally." "$LINENO" 5 28614fi 28615if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 28616 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 28617Usually this means the macro was only invoked conditionally." "$LINENO" 5 28618fi 28619if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 28620 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 28621Usually this means the macro was only invoked conditionally." "$LINENO" 5 28622fi 28623 28624if test -z "${HOST_MACOS_TRUE}" && test -z "${HOST_MACOS_FALSE}"; then 28625 as_fn_error $? "conditional \"HOST_MACOS\" was never defined. 28626Usually this means the macro was only invoked conditionally." "$LINENO" 5 28627fi 28628if test -z "${HAVE_FUZZ_LOG_COMPILER_TRUE}" && test -z "${HAVE_FUZZ_LOG_COMPILER_FALSE}"; then 28629 as_fn_error $? "conditional \"HAVE_FUZZ_LOG_COMPILER\" was never defined. 28630Usually this means the macro was only invoked conditionally." "$LINENO" 5 28631fi 28632if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 28633 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 28634Usually this means the macro was only invoked conditionally." "$LINENO" 5 28635fi 28636if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then 28637 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. 28638Usually this means the macro was only invoked conditionally." "$LINENO" 5 28639fi 28640if test -z "${HAVE_PYTEST_TRUE}" && test -z "${HAVE_PYTEST_FALSE}"; then 28641 as_fn_error $? "conditional \"HAVE_PYTEST\" was never defined. 28642Usually this means the macro was only invoked conditionally." "$LINENO" 5 28643fi 28644if test -z "${HAVE_GEOIP2_TRUE}" && test -z "${HAVE_GEOIP2_FALSE}"; then 28645 as_fn_error $? "conditional \"HAVE_GEOIP2\" was never defined. 28646Usually this means the macro was only invoked conditionally." "$LINENO" 5 28647fi 28648if test -z "${HAVE_LIBNGHTTP2_TRUE}" && test -z "${HAVE_LIBNGHTTP2_FALSE}"; then 28649 as_fn_error $? "conditional \"HAVE_LIBNGHTTP2\" was never defined. 28650Usually this means the macro was only invoked conditionally." "$LINENO" 5 28651fi 28652if test -z "${USE_ISC_RWLOCK_TRUE}" && test -z "${USE_ISC_RWLOCK_FALSE}"; then 28653 as_fn_error $? "conditional \"USE_ISC_RWLOCK\" was never defined. 28654Usually this means the macro was only invoked conditionally." "$LINENO" 5 28655fi 28656if test -z "${HAVE_GSSAPI_TRUE}" && test -z "${HAVE_GSSAPI_FALSE}"; then 28657 as_fn_error $? "conditional \"HAVE_GSSAPI\" was never defined. 28658Usually this means the macro was only invoked conditionally." "$LINENO" 5 28659fi 28660if test -z "${HAVE_LMDB_TRUE}" && test -z "${HAVE_LMDB_FALSE}"; then 28661 as_fn_error $? "conditional \"HAVE_LMDB\" was never defined. 28662Usually this means the macro was only invoked conditionally." "$LINENO" 5 28663fi 28664if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then 28665 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined. 28666Usually this means the macro was only invoked conditionally." "$LINENO" 5 28667fi 28668if test -z "${HAVE_JSON_C_TRUE}" && test -z "${HAVE_JSON_C_FALSE}"; then 28669 as_fn_error $? "conditional \"HAVE_JSON_C\" was never defined. 28670Usually this means the macro was only invoked conditionally." "$LINENO" 5 28671fi 28672if test -z "${HAVE_READLINE_TRUE}" && test -z "${HAVE_READLINE_FALSE}"; then 28673 as_fn_error $? "conditional \"HAVE_READLINE\" was never defined. 28674Usually this means the macro was only invoked conditionally." "$LINENO" 5 28675fi 28676if test -z "${HAVE_DNSTAP_TRUE}" && test -z "${HAVE_DNSTAP_FALSE}"; then 28677 as_fn_error $? "conditional \"HAVE_DNSTAP\" was never defined. 28678Usually this means the macro was only invoked conditionally." "$LINENO" 5 28679fi 28680if test -z "${HAVE_SPHINX_BUILD_TRUE}" && test -z "${HAVE_SPHINX_BUILD_FALSE}"; then 28681 as_fn_error $? "conditional \"HAVE_SPHINX_BUILD\" was never defined. 28682Usually this means the macro was only invoked conditionally." "$LINENO" 5 28683fi 28684if test -z "${BUILD_MANPAGES_TRUE}" && test -z "${BUILD_MANPAGES_FALSE}"; then 28685 as_fn_error $? "conditional \"BUILD_MANPAGES\" was never defined. 28686Usually this means the macro was only invoked conditionally." "$LINENO" 5 28687fi 28688if test -z "${HAVE_CMOCKA_TRUE}" && test -z "${HAVE_CMOCKA_FALSE}"; then 28689 as_fn_error $? "conditional \"HAVE_CMOCKA\" was never defined. 28690Usually this means the macro was only invoked conditionally." "$LINENO" 5 28691fi 28692if test -z "${HAVE_JEMALLOC_TRUE}" && test -z "${HAVE_JEMALLOC_FALSE}"; then 28693 as_fn_error $? "conditional \"HAVE_JEMALLOC\" was never defined. 28694Usually this means the macro was only invoked conditionally." "$LINENO" 5 28695fi 28696if test -z "${DNSRPS_TRUE}" && test -z "${DNSRPS_FALSE}"; then 28697 as_fn_error $? "conditional \"DNSRPS\" was never defined. 28698Usually this means the macro was only invoked conditionally." "$LINENO" 5 28699fi 28700if test -z "${HAVE_SYSTEMTAP_TRUE}" && test -z "${HAVE_SYSTEMTAP_FALSE}"; then 28701 as_fn_error $? "conditional \"HAVE_SYSTEMTAP\" was never defined. 28702Usually this means the macro was only invoked conditionally." "$LINENO" 5 28703fi 28704if test -z "${HAVE_DTRACE_TRUE}" && test -z "${HAVE_DTRACE_FALSE}"; then 28705 as_fn_error $? "conditional \"HAVE_DTRACE\" was never defined. 28706Usually this means the macro was only invoked conditionally." "$LINENO" 5 28707fi 28708 28709: "${CONFIG_STATUS=./config.status}" 28710ac_write_fail=0 28711ac_clean_files_save=$ac_clean_files 28712ac_clean_files="$ac_clean_files $CONFIG_STATUS" 28713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 28714printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 28715as_write_fail=0 28716cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 28717#! $SHELL 28718# Generated by $as_me. 28719# Run this file to recreate the current configuration. 28720# Compiler output produced by configure, useful for debugging 28721# configure, is in config.log if it exists. 28722 28723debug=false 28724ac_cs_recheck=false 28725ac_cs_silent=false 28726 28727SHELL=\${CONFIG_SHELL-$SHELL} 28728export SHELL 28729_ASEOF 28730cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 28731## -------------------- ## 28732## M4sh Initialization. ## 28733## -------------------- ## 28734 28735# Be more Bourne compatible 28736DUALCASE=1; export DUALCASE # for MKS sh 28737as_nop=: 28738if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 28739then : 28740 emulate sh 28741 NULLCMD=: 28742 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 28743 # is contrary to our usage. Disable this feature. 28744 alias -g '${1+"$@"}'='"$@"' 28745 setopt NO_GLOB_SUBST 28746else $as_nop 28747 case `(set -o) 2>/dev/null` in #( 28748 *posix*) : 28749 set -o posix ;; #( 28750 *) : 28751 ;; 28752esac 28753fi 28754 28755 28756 28757# Reset variables that may have inherited troublesome values from 28758# the environment. 28759 28760# IFS needs to be set, to space, tab, and newline, in precisely that order. 28761# (If _AS_PATH_WALK were called with IFS unset, it would have the 28762# side effect of setting IFS to empty, thus disabling word splitting.) 28763# Quoting is to prevent editors from complaining about space-tab. 28764as_nl=' 28765' 28766export as_nl 28767IFS=" "" $as_nl" 28768 28769PS1='$ ' 28770PS2='> ' 28771PS4='+ ' 28772 28773# Ensure predictable behavior from utilities with locale-dependent output. 28774LC_ALL=C 28775export LC_ALL 28776LANGUAGE=C 28777export LANGUAGE 28778 28779# We cannot yet rely on "unset" to work, but we need these variables 28780# to be unset--not just set to an empty or harmless value--now, to 28781# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 28782# also avoids known problems related to "unset" and subshell syntax 28783# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 28784for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 28785do eval test \${$as_var+y} \ 28786 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 28787done 28788 28789# Ensure that fds 0, 1, and 2 are open. 28790if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 28791if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 28792if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 28793 28794# The user is always right. 28795if ${PATH_SEPARATOR+false} :; then 28796 PATH_SEPARATOR=: 28797 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 28798 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 28799 PATH_SEPARATOR=';' 28800 } 28801fi 28802 28803 28804# Find who we are. Look in the path if we contain no directory separator. 28805as_myself= 28806case $0 in #(( 28807 *[\\/]* ) as_myself=$0 ;; 28808 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28809for as_dir in $PATH 28810do 28811 IFS=$as_save_IFS 28812 case $as_dir in #((( 28813 '') as_dir=./ ;; 28814 */) ;; 28815 *) as_dir=$as_dir/ ;; 28816 esac 28817 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 28818 done 28819IFS=$as_save_IFS 28820 28821 ;; 28822esac 28823# We did not find ourselves, most probably we were run as `sh COMMAND' 28824# in which case we are not to be found in the path. 28825if test "x$as_myself" = x; then 28826 as_myself=$0 28827fi 28828if test ! -f "$as_myself"; then 28829 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 28830 exit 1 28831fi 28832 28833 28834 28835# as_fn_error STATUS ERROR [LINENO LOG_FD] 28836# ---------------------------------------- 28837# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 28838# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 28839# script with STATUS, using 1 if that was 0. 28840as_fn_error () 28841{ 28842 as_status=$1; test $as_status -eq 0 && as_status=1 28843 if test "$4"; then 28844 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 28845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 28846 fi 28847 printf "%s\n" "$as_me: error: $2" >&2 28848 as_fn_exit $as_status 28849} # as_fn_error 28850 28851 28852 28853# as_fn_set_status STATUS 28854# ----------------------- 28855# Set $? to STATUS, without forking. 28856as_fn_set_status () 28857{ 28858 return $1 28859} # as_fn_set_status 28860 28861# as_fn_exit STATUS 28862# ----------------- 28863# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 28864as_fn_exit () 28865{ 28866 set +e 28867 as_fn_set_status $1 28868 exit $1 28869} # as_fn_exit 28870 28871# as_fn_unset VAR 28872# --------------- 28873# Portably unset VAR. 28874as_fn_unset () 28875{ 28876 { eval $1=; unset $1;} 28877} 28878as_unset=as_fn_unset 28879 28880# as_fn_append VAR VALUE 28881# ---------------------- 28882# Append the text in VALUE to the end of the definition contained in VAR. Take 28883# advantage of any shell optimizations that allow amortized linear growth over 28884# repeated appends, instead of the typical quadratic growth present in naive 28885# implementations. 28886if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 28887then : 28888 eval 'as_fn_append () 28889 { 28890 eval $1+=\$2 28891 }' 28892else $as_nop 28893 as_fn_append () 28894 { 28895 eval $1=\$$1\$2 28896 } 28897fi # as_fn_append 28898 28899# as_fn_arith ARG... 28900# ------------------ 28901# Perform arithmetic evaluation on the ARGs, and store the result in the 28902# global $as_val. Take advantage of shells that can avoid forks. The arguments 28903# must be portable across $(()) and expr. 28904if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 28905then : 28906 eval 'as_fn_arith () 28907 { 28908 as_val=$(( $* )) 28909 }' 28910else $as_nop 28911 as_fn_arith () 28912 { 28913 as_val=`expr "$@" || test $? -eq 1` 28914 } 28915fi # as_fn_arith 28916 28917 28918if expr a : '\(a\)' >/dev/null 2>&1 && 28919 test "X`expr 00001 : '.*\(...\)'`" = X001; then 28920 as_expr=expr 28921else 28922 as_expr=false 28923fi 28924 28925if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 28926 as_basename=basename 28927else 28928 as_basename=false 28929fi 28930 28931if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 28932 as_dirname=dirname 28933else 28934 as_dirname=false 28935fi 28936 28937as_me=`$as_basename -- "$0" || 28938$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 28939 X"$0" : 'X\(//\)$' \| \ 28940 X"$0" : 'X\(/\)' \| . 2>/dev/null || 28941printf "%s\n" X/"$0" | 28942 sed '/^.*\/\([^/][^/]*\)\/*$/{ 28943 s//\1/ 28944 q 28945 } 28946 /^X\/\(\/\/\)$/{ 28947 s//\1/ 28948 q 28949 } 28950 /^X\/\(\/\).*/{ 28951 s//\1/ 28952 q 28953 } 28954 s/.*/./; q'` 28955 28956# Avoid depending upon Character Ranges. 28957as_cr_letters='abcdefghijklmnopqrstuvwxyz' 28958as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 28959as_cr_Letters=$as_cr_letters$as_cr_LETTERS 28960as_cr_digits='0123456789' 28961as_cr_alnum=$as_cr_Letters$as_cr_digits 28962 28963 28964# Determine whether it's possible to make 'echo' print without a newline. 28965# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 28966# for compatibility with existing Makefiles. 28967ECHO_C= ECHO_N= ECHO_T= 28968case `echo -n x` in #((((( 28969-n*) 28970 case `echo 'xy\c'` in 28971 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 28972 xy) ECHO_C='\c';; 28973 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 28974 ECHO_T=' ';; 28975 esac;; 28976*) 28977 ECHO_N='-n';; 28978esac 28979 28980# For backward compatibility with old third-party macros, we provide 28981# the shell variables $as_echo and $as_echo_n. New code should use 28982# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 28983as_echo='printf %s\n' 28984as_echo_n='printf %s' 28985 28986rm -f conf$$ conf$$.exe conf$$.file 28987if test -d conf$$.dir; then 28988 rm -f conf$$.dir/conf$$.file 28989else 28990 rm -f conf$$.dir 28991 mkdir conf$$.dir 2>/dev/null 28992fi 28993if (echo >conf$$.file) 2>/dev/null; then 28994 if ln -s conf$$.file conf$$ 2>/dev/null; then 28995 as_ln_s='ln -s' 28996 # ... but there are two gotchas: 28997 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 28998 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 28999 # In both cases, we have to default to `cp -pR'. 29000 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 29001 as_ln_s='cp -pR' 29002 elif ln conf$$.file conf$$ 2>/dev/null; then 29003 as_ln_s=ln 29004 else 29005 as_ln_s='cp -pR' 29006 fi 29007else 29008 as_ln_s='cp -pR' 29009fi 29010rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 29011rmdir conf$$.dir 2>/dev/null 29012 29013 29014# as_fn_mkdir_p 29015# ------------- 29016# Create "$as_dir" as a directory, including parents if necessary. 29017as_fn_mkdir_p () 29018{ 29019 29020 case $as_dir in #( 29021 -*) as_dir=./$as_dir;; 29022 esac 29023 test -d "$as_dir" || eval $as_mkdir_p || { 29024 as_dirs= 29025 while :; do 29026 case $as_dir in #( 29027 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 29028 *) as_qdir=$as_dir;; 29029 esac 29030 as_dirs="'$as_qdir' $as_dirs" 29031 as_dir=`$as_dirname -- "$as_dir" || 29032$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29033 X"$as_dir" : 'X\(//\)[^/]' \| \ 29034 X"$as_dir" : 'X\(//\)$' \| \ 29035 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 29036printf "%s\n" X"$as_dir" | 29037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29038 s//\1/ 29039 q 29040 } 29041 /^X\(\/\/\)[^/].*/{ 29042 s//\1/ 29043 q 29044 } 29045 /^X\(\/\/\)$/{ 29046 s//\1/ 29047 q 29048 } 29049 /^X\(\/\).*/{ 29050 s//\1/ 29051 q 29052 } 29053 s/.*/./; q'` 29054 test -d "$as_dir" && break 29055 done 29056 test -z "$as_dirs" || eval "mkdir $as_dirs" 29057 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 29058 29059 29060} # as_fn_mkdir_p 29061if mkdir -p . 2>/dev/null; then 29062 as_mkdir_p='mkdir -p "$as_dir"' 29063else 29064 test -d ./-p && rmdir ./-p 29065 as_mkdir_p=false 29066fi 29067 29068 29069# as_fn_executable_p FILE 29070# ----------------------- 29071# Test if FILE is an executable regular file. 29072as_fn_executable_p () 29073{ 29074 test -f "$1" && test -x "$1" 29075} # as_fn_executable_p 29076as_test_x='test -x' 29077as_executable_p=as_fn_executable_p 29078 29079# Sed expression to map a string onto a valid CPP name. 29080as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 29081 29082# Sed expression to map a string onto a valid variable name. 29083as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 29084 29085 29086exec 6>&1 29087## ----------------------------------- ## 29088## Main body of $CONFIG_STATUS script. ## 29089## ----------------------------------- ## 29090_ASEOF 29091test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 29092 29093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29094# Save the log message, to keep $0 and so on meaningful, and to 29095# report actual input values of CONFIG_FILES etc. instead of their 29096# values after options handling. 29097ac_log=" 29098This file was extended by BIND $as_me 9.20.4, which was 29099generated by GNU Autoconf 2.71. Invocation command line was 29100 29101 CONFIG_FILES = $CONFIG_FILES 29102 CONFIG_HEADERS = $CONFIG_HEADERS 29103 CONFIG_LINKS = $CONFIG_LINKS 29104 CONFIG_COMMANDS = $CONFIG_COMMANDS 29105 $ $0 $@ 29106 29107on `(hostname || uname -n) 2>/dev/null | sed 1q` 29108" 29109 29110_ACEOF 29111 29112case $ac_config_files in *" 29113"*) set x $ac_config_files; shift; ac_config_files=$*;; 29114esac 29115 29116case $ac_config_headers in *" 29117"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 29118esac 29119 29120 29121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29122# Files that config.status was made for. 29123config_files="$ac_config_files" 29124config_headers="$ac_config_headers" 29125config_commands="$ac_config_commands" 29126 29127_ACEOF 29128 29129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29130ac_cs_usage="\ 29131\`$as_me' instantiates files and other configuration actions 29132from templates according to the current configuration. Unless the files 29133and actions are specified as TAGs, all are instantiated by default. 29134 29135Usage: $0 [OPTION]... [TAG]... 29136 29137 -h, --help print this help, then exit 29138 -V, --version print version number and configuration settings, then exit 29139 --config print configuration, then exit 29140 -q, --quiet, --silent 29141 do not print progress messages 29142 -d, --debug don't remove temporary files 29143 --recheck update $as_me by reconfiguring in the same conditions 29144 --file=FILE[:TEMPLATE] 29145 instantiate the configuration file FILE 29146 --header=FILE[:TEMPLATE] 29147 instantiate the configuration header FILE 29148 29149Configuration files: 29150$config_files 29151 29152Configuration headers: 29153$config_headers 29154 29155Configuration commands: 29156$config_commands 29157 29158Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>. 29159BIND home page: <https://www.isc.org/downloads/>." 29160 29161_ACEOF 29162ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 29163ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 29164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29165ac_cs_config='$ac_cs_config_escaped' 29166ac_cs_version="\\ 29167BIND config.status 9.20.4 29168configured by $0, generated by GNU Autoconf 2.71, 29169 with options \\"\$ac_cs_config\\" 29170 29171Copyright (C) 2021 Free Software Foundation, Inc. 29172This config.status script is free software; the Free Software Foundation 29173gives unlimited permission to copy, distribute and modify it." 29174 29175ac_pwd='$ac_pwd' 29176srcdir='$srcdir' 29177INSTALL='$INSTALL' 29178MKDIR_P='$MKDIR_P' 29179AWK='$AWK' 29180test -n "\$AWK" || AWK=awk 29181_ACEOF 29182 29183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29184# The default lists apply if the user does not specify any file. 29185ac_need_defaults=: 29186while test $# != 0 29187do 29188 case $1 in 29189 --*=?*) 29190 ac_option=`expr "X$1" : 'X\([^=]*\)='` 29191 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 29192 ac_shift=: 29193 ;; 29194 --*=) 29195 ac_option=`expr "X$1" : 'X\([^=]*\)='` 29196 ac_optarg= 29197 ac_shift=: 29198 ;; 29199 *) 29200 ac_option=$1 29201 ac_optarg=$2 29202 ac_shift=shift 29203 ;; 29204 esac 29205 29206 case $ac_option in 29207 # Handling of the options. 29208 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 29209 ac_cs_recheck=: ;; 29210 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 29211 printf "%s\n" "$ac_cs_version"; exit ;; 29212 --config | --confi | --conf | --con | --co | --c ) 29213 printf "%s\n" "$ac_cs_config"; exit ;; 29214 --debug | --debu | --deb | --de | --d | -d ) 29215 debug=: ;; 29216 --file | --fil | --fi | --f ) 29217 $ac_shift 29218 case $ac_optarg in 29219 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 29220 '') as_fn_error $? "missing file argument" ;; 29221 esac 29222 as_fn_append CONFIG_FILES " '$ac_optarg'" 29223 ac_need_defaults=false;; 29224 --header | --heade | --head | --hea ) 29225 $ac_shift 29226 case $ac_optarg in 29227 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 29228 esac 29229 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 29230 ac_need_defaults=false;; 29231 --he | --h) 29232 # Conflict between --help and --header 29233 as_fn_error $? "ambiguous option: \`$1' 29234Try \`$0 --help' for more information.";; 29235 --help | --hel | -h ) 29236 printf "%s\n" "$ac_cs_usage"; exit ;; 29237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 29238 | -silent | --silent | --silen | --sile | --sil | --si | --s) 29239 ac_cs_silent=: ;; 29240 29241 # This is an error. 29242 -*) as_fn_error $? "unrecognized option: \`$1' 29243Try \`$0 --help' for more information." ;; 29244 29245 *) as_fn_append ac_config_targets " $1" 29246 ac_need_defaults=false ;; 29247 29248 esac 29249 shift 29250done 29251 29252ac_configure_extra_args= 29253 29254if $ac_cs_silent; then 29255 exec 6>/dev/null 29256 ac_configure_extra_args="$ac_configure_extra_args --silent" 29257fi 29258 29259_ACEOF 29260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29261if \$ac_cs_recheck; then 29262 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 29263 shift 29264 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 29265 CONFIG_SHELL='$SHELL' 29266 export CONFIG_SHELL 29267 exec "\$@" 29268fi 29269 29270_ACEOF 29271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29272exec 5>>config.log 29273{ 29274 echo 29275 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 29276## Running $as_me. ## 29277_ASBOX 29278 printf "%s\n" "$ac_log" 29279} >&5 29280 29281_ACEOF 29282cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29283# 29284# INIT-COMMANDS 29285# 29286AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 29287 29288 29289# The HP-UX ksh and POSIX shell print the target directory to stdout 29290# if CDPATH is set. 29291(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 29292 29293sed_quote_subst='$sed_quote_subst' 29294double_quote_subst='$double_quote_subst' 29295delay_variable_subst='$delay_variable_subst' 29296macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 29297macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 29298enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 29299pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 29300enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 29301enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 29302shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 29303SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 29304ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 29305PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 29306host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 29307host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 29308host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 29309build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 29310build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 29311build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 29312SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 29313Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 29314GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 29315EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 29316FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 29317LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 29318NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 29319LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 29320max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 29321ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 29322exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 29323lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 29324lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 29325lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 29326lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 29327lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 29328reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 29329reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 29330FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 29331OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 29332deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 29333file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 29334file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 29335want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 29336DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 29337sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 29338AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 29339lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 29340AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 29341archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 29342STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 29343RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 29344old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 29345old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 29346old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 29347lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 29348CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 29349CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 29350compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 29351GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 29352lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 29353lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 29354lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 29355lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 29356lt_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"`' 29357lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 29358nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 29359lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 29360lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 29361objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 29362MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 29363lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 29364lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 29365lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 29366lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 29367lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 29368need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 29369MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 29370DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 29371NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 29372LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 29373OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 29374OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 29375libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 29376shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 29377extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 29378archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 29379enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 29380export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 29381whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 29382compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 29383old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 29384old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 29385archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 29386archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 29387module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 29388module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 29389with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 29390allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 29391no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 29392hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 29393hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 29394hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 29395hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 29396hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 29397hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 29398hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 29399inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 29400link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 29401always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 29402export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 29403exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 29404include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 29405prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 29406postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 29407file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 29408variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 29409need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 29410need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 29411version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 29412runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 29413shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 29414shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 29415libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 29416library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 29417soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 29418install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 29419postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 29420postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 29421finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 29422finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 29423hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 29424sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 29425configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 29426configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 29427hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 29428enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 29429enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 29430enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 29431old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 29432striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 29433 29434LTCC='$LTCC' 29435LTCFLAGS='$LTCFLAGS' 29436compiler='$compiler_DEFAULT' 29437 29438# A function that is used when there is no print builtin or printf. 29439func_fallback_echo () 29440{ 29441 eval 'cat <<_LTECHO_EOF 29442\$1 29443_LTECHO_EOF' 29444} 29445 29446# Quote evaled strings. 29447for var in SHELL \ 29448ECHO \ 29449PATH_SEPARATOR \ 29450SED \ 29451GREP \ 29452EGREP \ 29453FGREP \ 29454LD \ 29455NM \ 29456LN_S \ 29457lt_SP2NL \ 29458lt_NL2SP \ 29459reload_flag \ 29460FILECMD \ 29461OBJDUMP \ 29462deplibs_check_method \ 29463file_magic_cmd \ 29464file_magic_glob \ 29465want_nocaseglob \ 29466DLLTOOL \ 29467sharedlib_from_linklib_cmd \ 29468AR \ 29469archiver_list_spec \ 29470STRIP \ 29471RANLIB \ 29472CC \ 29473CFLAGS \ 29474compiler \ 29475lt_cv_sys_global_symbol_pipe \ 29476lt_cv_sys_global_symbol_to_cdecl \ 29477lt_cv_sys_global_symbol_to_import \ 29478lt_cv_sys_global_symbol_to_c_name_address \ 29479lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 29480lt_cv_nm_interface \ 29481nm_file_list_spec \ 29482lt_cv_truncate_bin \ 29483lt_prog_compiler_no_builtin_flag \ 29484lt_prog_compiler_pic \ 29485lt_prog_compiler_wl \ 29486lt_prog_compiler_static \ 29487lt_cv_prog_compiler_c_o \ 29488need_locks \ 29489MANIFEST_TOOL \ 29490DSYMUTIL \ 29491NMEDIT \ 29492LIPO \ 29493OTOOL \ 29494OTOOL64 \ 29495shrext_cmds \ 29496export_dynamic_flag_spec \ 29497whole_archive_flag_spec \ 29498compiler_needs_object \ 29499with_gnu_ld \ 29500allow_undefined_flag \ 29501no_undefined_flag \ 29502hardcode_libdir_flag_spec \ 29503hardcode_libdir_separator \ 29504exclude_expsyms \ 29505include_expsyms \ 29506file_list_spec \ 29507variables_saved_for_relink \ 29508libname_spec \ 29509library_names_spec \ 29510soname_spec \ 29511install_override_mode \ 29512finish_eval \ 29513old_striplib \ 29514striplib; do 29515 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 29516 *[\\\\\\\`\\"\\\$]*) 29517 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 29518 ;; 29519 *) 29520 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 29521 ;; 29522 esac 29523done 29524 29525# Double-quote double-evaled strings. 29526for var in reload_cmds \ 29527old_postinstall_cmds \ 29528old_postuninstall_cmds \ 29529old_archive_cmds \ 29530extract_expsyms_cmds \ 29531old_archive_from_new_cmds \ 29532old_archive_from_expsyms_cmds \ 29533archive_cmds \ 29534archive_expsym_cmds \ 29535module_cmds \ 29536module_expsym_cmds \ 29537export_symbols_cmds \ 29538prelink_cmds \ 29539postlink_cmds \ 29540postinstall_cmds \ 29541postuninstall_cmds \ 29542finish_cmds \ 29543sys_lib_search_path_spec \ 29544configure_time_dlsearch_path \ 29545configure_time_lt_sys_library_path; do 29546 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 29547 *[\\\\\\\`\\"\\\$]*) 29548 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 29549 ;; 29550 *) 29551 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 29552 ;; 29553 esac 29554done 29555 29556ac_aux_dir='$ac_aux_dir' 29557 29558# See if we are running on zsh, and set the options that allow our 29559# commands through without removal of \ escapes INIT. 29560if test -n "\${ZSH_VERSION+set}"; then 29561 setopt NO_GLOB_SUBST 29562fi 29563 29564 29565 PACKAGE='$PACKAGE' 29566 VERSION='$VERSION' 29567 RM='$RM' 29568 ofile='$ofile' 29569 29570 29571 29572 29573_ACEOF 29574 29575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29576 29577# Handling of arguments. 29578for ac_config_target in $ac_config_targets 29579do 29580 case $ac_config_target in 29581 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 29582 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 29583 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 29584 "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;; 29585 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 29586 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; 29587 "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;; 29588 "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;; 29589 "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;; 29590 "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;; 29591 "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;; 29592 "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;; 29593 "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;; 29594 "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;; 29595 "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;; 29596 "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;; 29597 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 29598 "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;; 29599 "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;; 29600 "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;; 29601 "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;; 29602 "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;; 29603 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 29604 "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;; 29605 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; 29606 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;; 29607 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 29608 "tests/bench/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bench/Makefile" ;; 29609 "tests/isc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/isc/Makefile" ;; 29610 "tests/dns/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dns/Makefile" ;; 29611 "tests/ns/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ns/Makefile" ;; 29612 "tests/irs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/irs/Makefile" ;; 29613 "tests/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/isccfg/Makefile" ;; 29614 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;; 29615 "tests/unit-test-driver.sh") CONFIG_FILES="$CONFIG_FILES tests/unit-test-driver.sh" ;; 29616 "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;; 29617 "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;; 29618 "bin/tests/system/isctest/vars/.ac_vars/TOP_BUILDDIR") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/TOP_BUILDDIR" ;; 29619 "bin/tests/system/isctest/vars/.ac_vars/TOP_SRCDIR") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/TOP_SRCDIR" ;; 29620 "bin/tests/system/isctest/vars/.ac_vars/FSTRM_CAPTURE") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/FSTRM_CAPTURE" ;; 29621 "bin/tests/system/isctest/vars/.ac_vars/SHELL") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/SHELL" ;; 29622 "bin/tests/system/isctest/vars/.ac_vars/PYTHON") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/PYTHON" ;; 29623 "bin/tests/system/isctest/vars/.ac_vars/PERL") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/PERL" ;; 29624 "bin/tests/system/isctest/vars/.ac_vars/CURL") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/CURL" ;; 29625 "bin/tests/system/isctest/vars/.ac_vars/NC") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/NC" ;; 29626 "bin/tests/system/isctest/vars/.ac_vars/XSLTPROC") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/XSLTPROC" ;; 29627 "bin/tests/system/isctest/vars/.ac_vars/PYTEST") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/PYTEST" ;; 29628 "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;; 29629 "bin/tests/system/dlzexternal/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/driver/Makefile" ;; 29630 "bin/tests/system/hooks/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/hooks/driver/Makefile" ;; 29631 "bin/tests/system/rpz/testlib/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/testlib/Makefile" ;; 29632 "bin/tests/system/ifconfig.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/ifconfig.sh" ;; 29633 "bin/tests/system/start.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/start.sh" ;; 29634 "bin/tests/system/stop.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/stop.sh" ;; 29635 "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;; 29636 "util/check-make-install") CONFIG_FILES="$CONFIG_FILES util/check-make-install" ;; 29637 29638 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 29639 esac 29640done 29641 29642 29643# If the user did not use the arguments to specify the items to instantiate, 29644# then the envvar interface is used. Set only those that are not. 29645# We use the long form for the default assignment because of an extremely 29646# bizarre bug on SunOS 4.1.3. 29647if $ac_need_defaults; then 29648 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 29649 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 29650 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 29651fi 29652 29653# Have a temporary directory for convenience. Make it in the build tree 29654# simply because there is no reason against having it here, and in addition, 29655# creating and moving files from /tmp can sometimes cause problems. 29656# Hook for its removal unless debugging. 29657# Note that there is a small window in which the directory will not be cleaned: 29658# after its creation but before its name has been assigned to `$tmp'. 29659$debug || 29660{ 29661 tmp= ac_tmp= 29662 trap 'exit_status=$? 29663 : "${ac_tmp:=$tmp}" 29664 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 29665' 0 29666 trap 'as_fn_exit 1' 1 2 13 15 29667} 29668# Create a (secure) tmp directory for tmp files. 29669 29670{ 29671 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 29672 test -d "$tmp" 29673} || 29674{ 29675 tmp=./conf$$-$RANDOM 29676 (umask 077 && mkdir "$tmp") 29677} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 29678ac_tmp=$tmp 29679 29680# Set up the scripts for CONFIG_FILES section. 29681# No need to generate them if there are no CONFIG_FILES. 29682# This happens for instance with `./config.status config.h'. 29683if test -n "$CONFIG_FILES"; then 29684 29685 29686ac_cr=`echo X | tr X '\015'` 29687# On cygwin, bash can eat \r inside `` if the user requested igncr. 29688# But we know of no other shell where ac_cr would be empty at this 29689# point, so we can use a bashism as a fallback. 29690if test "x$ac_cr" = x; then 29691 eval ac_cr=\$\'\\r\' 29692fi 29693ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 29694if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 29695 ac_cs_awk_cr='\\r' 29696else 29697 ac_cs_awk_cr=$ac_cr 29698fi 29699 29700echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 29701_ACEOF 29702 29703 29704{ 29705 echo "cat >conf$$subs.awk <<_ACEOF" && 29706 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 29707 echo "_ACEOF" 29708} >conf$$subs.sh || 29709 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 29710ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 29711ac_delim='%!_!# ' 29712for ac_last_try in false false false false false :; do 29713 . ./conf$$subs.sh || 29714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 29715 29716 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 29717 if test $ac_delim_n = $ac_delim_num; then 29718 break 29719 elif $ac_last_try; then 29720 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 29721 else 29722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 29723 fi 29724done 29725rm -f conf$$subs.sh 29726 29727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29728cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 29729_ACEOF 29730sed -n ' 29731h 29732s/^/S["/; s/!.*/"]=/ 29733p 29734g 29735s/^[^!]*!// 29736:repl 29737t repl 29738s/'"$ac_delim"'$// 29739t delim 29740:nl 29741h 29742s/\(.\{148\}\)..*/\1/ 29743t more1 29744s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 29745p 29746n 29747b repl 29748:more1 29749s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 29750p 29751g 29752s/.\{148\}// 29753t nl 29754:delim 29755h 29756s/\(.\{148\}\)..*/\1/ 29757t more2 29758s/["\\]/\\&/g; s/^/"/; s/$/"/ 29759p 29760b 29761:more2 29762s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 29763p 29764g 29765s/.\{148\}// 29766t delim 29767' <conf$$subs.awk | sed ' 29768/^[^""]/{ 29769 N 29770 s/\n// 29771} 29772' >>$CONFIG_STATUS || ac_write_fail=1 29773rm -f conf$$subs.awk 29774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29775_ACAWK 29776cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 29777 for (key in S) S_is_set[key] = 1 29778 FS = "" 29779 29780} 29781{ 29782 line = $ 0 29783 nfields = split(line, field, "@") 29784 substed = 0 29785 len = length(field[1]) 29786 for (i = 2; i < nfields; i++) { 29787 key = field[i] 29788 keylen = length(key) 29789 if (S_is_set[key]) { 29790 value = S[key] 29791 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 29792 len += length(value) + length(field[++i]) 29793 substed = 1 29794 } else 29795 len += 1 + keylen 29796 } 29797 29798 print line 29799} 29800 29801_ACAWK 29802_ACEOF 29803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29804if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 29805 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 29806else 29807 cat 29808fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 29809 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 29810_ACEOF 29811 29812# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 29813# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 29814# trailing colons and then remove the whole line if VPATH becomes empty 29815# (actually we leave an empty line to preserve line numbers). 29816if test "x$srcdir" = x.; then 29817 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 29818h 29819s/// 29820s/^/:/ 29821s/[ ]*$/:/ 29822s/:\$(srcdir):/:/g 29823s/:\${srcdir}:/:/g 29824s/:@srcdir@:/:/g 29825s/^:*// 29826s/:*$// 29827x 29828s/\(=[ ]*\).*/\1/ 29829G 29830s/\n// 29831s/^[^=]*=[ ]*$// 29832}' 29833fi 29834 29835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29836fi # test -n "$CONFIG_FILES" 29837 29838# Set up the scripts for CONFIG_HEADERS section. 29839# No need to generate them if there are no CONFIG_HEADERS. 29840# This happens for instance with `./config.status Makefile'. 29841if test -n "$CONFIG_HEADERS"; then 29842cat >"$ac_tmp/defines.awk" <<\_ACAWK || 29843BEGIN { 29844_ACEOF 29845 29846# Transform confdefs.h into an awk script `defines.awk', embedded as 29847# here-document in config.status, that substitutes the proper values into 29848# config.h.in to produce config.h. 29849 29850# Create a delimiter string that does not exist in confdefs.h, to ease 29851# handling of long lines. 29852ac_delim='%!_!# ' 29853for ac_last_try in false false :; do 29854 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 29855 if test -z "$ac_tt"; then 29856 break 29857 elif $ac_last_try; then 29858 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 29859 else 29860 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 29861 fi 29862done 29863 29864# For the awk script, D is an array of macro values keyed by name, 29865# likewise P contains macro parameters if any. Preserve backslash 29866# newline sequences. 29867 29868ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 29869sed -n ' 29870s/.\{148\}/&'"$ac_delim"'/g 29871t rset 29872:rset 29873s/^[ ]*#[ ]*define[ ][ ]*/ / 29874t def 29875d 29876:def 29877s/\\$// 29878t bsnl 29879s/["\\]/\\&/g 29880s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 29881D["\1"]=" \3"/p 29882s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 29883d 29884:bsnl 29885s/["\\]/\\&/g 29886s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 29887D["\1"]=" \3\\\\\\n"\\/p 29888t cont 29889s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 29890t cont 29891d 29892:cont 29893n 29894s/.\{148\}/&'"$ac_delim"'/g 29895t clear 29896:clear 29897s/\\$// 29898t bsnlc 29899s/["\\]/\\&/g; s/^/"/; s/$/"/p 29900d 29901:bsnlc 29902s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 29903b cont 29904' <confdefs.h | sed ' 29905s/'"$ac_delim"'/"\\\ 29906"/g' >>$CONFIG_STATUS || ac_write_fail=1 29907 29908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29909 for (key in D) D_is_set[key] = 1 29910 FS = "" 29911} 29912/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 29913 line = \$ 0 29914 split(line, arg, " ") 29915 if (arg[1] == "#") { 29916 defundef = arg[2] 29917 mac1 = arg[3] 29918 } else { 29919 defundef = substr(arg[1], 2) 29920 mac1 = arg[2] 29921 } 29922 split(mac1, mac2, "(") #) 29923 macro = mac2[1] 29924 prefix = substr(line, 1, index(line, defundef) - 1) 29925 if (D_is_set[macro]) { 29926 # Preserve the white space surrounding the "#". 29927 print prefix "define", macro P[macro] D[macro] 29928 next 29929 } else { 29930 # Replace #undef with comments. This is necessary, for example, 29931 # in the case of _POSIX_SOURCE, which is predefined and required 29932 # on some systems where configure will not decide to define it. 29933 if (defundef == "undef") { 29934 print "/*", prefix defundef, macro, "*/" 29935 next 29936 } 29937 } 29938} 29939{ print } 29940_ACAWK 29941_ACEOF 29942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29943 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 29944fi # test -n "$CONFIG_HEADERS" 29945 29946 29947eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 29948shift 29949for ac_tag 29950do 29951 case $ac_tag in 29952 :[FHLC]) ac_mode=$ac_tag; continue;; 29953 esac 29954 case $ac_mode$ac_tag in 29955 :[FHL]*:*);; 29956 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 29957 :[FH]-) ac_tag=-:-;; 29958 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 29959 esac 29960 ac_save_IFS=$IFS 29961 IFS=: 29962 set x $ac_tag 29963 IFS=$ac_save_IFS 29964 shift 29965 ac_file=$1 29966 shift 29967 29968 case $ac_mode in 29969 :L) ac_source=$1;; 29970 :[FH]) 29971 ac_file_inputs= 29972 for ac_f 29973 do 29974 case $ac_f in 29975 -) ac_f="$ac_tmp/stdin";; 29976 *) # Look for the file first in the build tree, then in the source tree 29977 # (if the path is not absolute). The absolute path cannot be DOS-style, 29978 # because $ac_f cannot contain `:'. 29979 test -f "$ac_f" || 29980 case $ac_f in 29981 [\\/$]*) false;; 29982 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 29983 esac || 29984 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 29985 esac 29986 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 29987 as_fn_append ac_file_inputs " '$ac_f'" 29988 done 29989 29990 # Let's still pretend it is `configure' which instantiates (i.e., don't 29991 # use $as_me), people would be surprised to read: 29992 # /* config.h. Generated by config.status. */ 29993 configure_input='Generated from '` 29994 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 29995 `' by configure.' 29996 if test x"$ac_file" != x-; then 29997 configure_input="$ac_file. $configure_input" 29998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 29999printf "%s\n" "$as_me: creating $ac_file" >&6;} 30000 fi 30001 # Neutralize special characters interpreted by sed in replacement strings. 30002 case $configure_input in #( 30003 *\&* | *\|* | *\\* ) 30004 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 30005 sed 's/[\\\\&|]/\\\\&/g'`;; #( 30006 *) ac_sed_conf_input=$configure_input;; 30007 esac 30008 30009 case $ac_tag in 30010 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 30011 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 30012 esac 30013 ;; 30014 esac 30015 30016 ac_dir=`$as_dirname -- "$ac_file" || 30017$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30018 X"$ac_file" : 'X\(//\)[^/]' \| \ 30019 X"$ac_file" : 'X\(//\)$' \| \ 30020 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 30021printf "%s\n" X"$ac_file" | 30022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30023 s//\1/ 30024 q 30025 } 30026 /^X\(\/\/\)[^/].*/{ 30027 s//\1/ 30028 q 30029 } 30030 /^X\(\/\/\)$/{ 30031 s//\1/ 30032 q 30033 } 30034 /^X\(\/\).*/{ 30035 s//\1/ 30036 q 30037 } 30038 s/.*/./; q'` 30039 as_dir="$ac_dir"; as_fn_mkdir_p 30040 ac_builddir=. 30041 30042case "$ac_dir" in 30043.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 30044*) 30045 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 30046 # A ".." for each directory in $ac_dir_suffix. 30047 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 30048 case $ac_top_builddir_sub in 30049 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 30050 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 30051 esac ;; 30052esac 30053ac_abs_top_builddir=$ac_pwd 30054ac_abs_builddir=$ac_pwd$ac_dir_suffix 30055# for backward compatibility: 30056ac_top_builddir=$ac_top_build_prefix 30057 30058case $srcdir in 30059 .) # We are building in place. 30060 ac_srcdir=. 30061 ac_top_srcdir=$ac_top_builddir_sub 30062 ac_abs_top_srcdir=$ac_pwd ;; 30063 [\\/]* | ?:[\\/]* ) # Absolute name. 30064 ac_srcdir=$srcdir$ac_dir_suffix; 30065 ac_top_srcdir=$srcdir 30066 ac_abs_top_srcdir=$srcdir ;; 30067 *) # Relative name. 30068 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 30069 ac_top_srcdir=$ac_top_build_prefix$srcdir 30070 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 30071esac 30072ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 30073 30074 30075 case $ac_mode in 30076 :F) 30077 # 30078 # CONFIG_FILE 30079 # 30080 30081 case $INSTALL in 30082 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 30083 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 30084 esac 30085 ac_MKDIR_P=$MKDIR_P 30086 case $MKDIR_P in 30087 [\\/$]* | ?:[\\/]* ) ;; 30088 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 30089 esac 30090_ACEOF 30091 30092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30093# If the template does not know about datarootdir, expand it. 30094# FIXME: This hack should be removed a few years after 2.60. 30095ac_datarootdir_hack=; ac_datarootdir_seen= 30096ac_sed_dataroot=' 30097/datarootdir/ { 30098 p 30099 q 30100} 30101/@datadir@/p 30102/@docdir@/p 30103/@infodir@/p 30104/@localedir@/p 30105/@mandir@/p' 30106case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 30107*datarootdir*) ac_datarootdir_seen=yes;; 30108*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 30109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 30110printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 30111_ACEOF 30112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30113 ac_datarootdir_hack=' 30114 s&@datadir@&$datadir&g 30115 s&@docdir@&$docdir&g 30116 s&@infodir@&$infodir&g 30117 s&@localedir@&$localedir&g 30118 s&@mandir@&$mandir&g 30119 s&\\\${datarootdir}&$datarootdir&g' ;; 30120esac 30121_ACEOF 30122 30123# Neutralize VPATH when `$srcdir' = `.'. 30124# Shell code in configure.ac might set extrasub. 30125# FIXME: do we really want to maintain this feature? 30126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30127ac_sed_extra="$ac_vpsub 30128$extrasub 30129_ACEOF 30130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30131:t 30132/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 30133s|@configure_input@|$ac_sed_conf_input|;t t 30134s&@top_builddir@&$ac_top_builddir_sub&;t t 30135s&@top_build_prefix@&$ac_top_build_prefix&;t t 30136s&@srcdir@&$ac_srcdir&;t t 30137s&@abs_srcdir@&$ac_abs_srcdir&;t t 30138s&@top_srcdir@&$ac_top_srcdir&;t t 30139s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 30140s&@builddir@&$ac_builddir&;t t 30141s&@abs_builddir@&$ac_abs_builddir&;t t 30142s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 30143s&@INSTALL@&$ac_INSTALL&;t t 30144s&@MKDIR_P@&$ac_MKDIR_P&;t t 30145$ac_datarootdir_hack 30146" 30147eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 30148 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30149 30150test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 30151 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 30152 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 30153 "$ac_tmp/out"`; test -z "$ac_out"; } && 30154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30155which seems to be undefined. Please make sure it is defined" >&5 30156printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30157which seems to be undefined. Please make sure it is defined" >&2;} 30158 30159 rm -f "$ac_tmp/stdin" 30160 case $ac_file in 30161 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 30162 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 30163 esac \ 30164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30165 ;; 30166 :H) 30167 # 30168 # CONFIG_HEADER 30169 # 30170 if test x"$ac_file" != x-; then 30171 { 30172 printf "%s\n" "/* $configure_input */" >&1 \ 30173 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 30174 } >"$ac_tmp/config.h" \ 30175 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30176 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 30177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 30178printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 30179 else 30180 rm -f "$ac_file" 30181 mv "$ac_tmp/config.h" "$ac_file" \ 30182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30183 fi 30184 else 30185 printf "%s\n" "/* $configure_input */" >&1 \ 30186 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 30187 || as_fn_error $? "could not create -" "$LINENO" 5 30188 fi 30189# Compute "$ac_file"'s index in $config_headers. 30190_am_arg="$ac_file" 30191_am_stamp_count=1 30192for _am_header in $config_headers :; do 30193 case $_am_header in 30194 $_am_arg | $_am_arg:* ) 30195 break ;; 30196 * ) 30197 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 30198 esac 30199done 30200echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 30201$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30202 X"$_am_arg" : 'X\(//\)[^/]' \| \ 30203 X"$_am_arg" : 'X\(//\)$' \| \ 30204 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 30205printf "%s\n" X"$_am_arg" | 30206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30207 s//\1/ 30208 q 30209 } 30210 /^X\(\/\/\)[^/].*/{ 30211 s//\1/ 30212 q 30213 } 30214 /^X\(\/\/\)$/{ 30215 s//\1/ 30216 q 30217 } 30218 /^X\(\/\).*/{ 30219 s//\1/ 30220 q 30221 } 30222 s/.*/./; q'`/stamp-h$_am_stamp_count 30223 ;; 30224 30225 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 30226printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 30227 ;; 30228 esac 30229 30230 30231 case $ac_file$ac_mode in 30232 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 30233 # Older Autoconf quotes --file arguments for eval, but not when files 30234 # are listed without --file. Let's play safe and only enable the eval 30235 # if we detect the quoting. 30236 # TODO: see whether this extra hack can be removed once we start 30237 # requiring Autoconf 2.70 or later. 30238 case $CONFIG_FILES in #( 30239 *\'*) : 30240 eval set x "$CONFIG_FILES" ;; #( 30241 *) : 30242 set x $CONFIG_FILES ;; #( 30243 *) : 30244 ;; 30245esac 30246 shift 30247 # Used to flag and report bootstrapping failures. 30248 am_rc=0 30249 for am_mf 30250 do 30251 # Strip MF so we end up with the name of the file. 30252 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 30253 # Check whether this is an Automake generated Makefile which includes 30254 # dependency-tracking related rules and includes. 30255 # Grep'ing the whole file directly is not great: AIX grep has a line 30256 # limit of 2048, but all sed's we know have understand at least 4000. 30257 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 30258 || continue 30259 am_dirpart=`$as_dirname -- "$am_mf" || 30260$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30261 X"$am_mf" : 'X\(//\)[^/]' \| \ 30262 X"$am_mf" : 'X\(//\)$' \| \ 30263 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 30264printf "%s\n" X"$am_mf" | 30265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30266 s//\1/ 30267 q 30268 } 30269 /^X\(\/\/\)[^/].*/{ 30270 s//\1/ 30271 q 30272 } 30273 /^X\(\/\/\)$/{ 30274 s//\1/ 30275 q 30276 } 30277 /^X\(\/\).*/{ 30278 s//\1/ 30279 q 30280 } 30281 s/.*/./; q'` 30282 am_filepart=`$as_basename -- "$am_mf" || 30283$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 30284 X"$am_mf" : 'X\(//\)$' \| \ 30285 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 30286printf "%s\n" X/"$am_mf" | 30287 sed '/^.*\/\([^/][^/]*\)\/*$/{ 30288 s//\1/ 30289 q 30290 } 30291 /^X\/\(\/\/\)$/{ 30292 s//\1/ 30293 q 30294 } 30295 /^X\/\(\/\).*/{ 30296 s//\1/ 30297 q 30298 } 30299 s/.*/./; q'` 30300 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 30301 && sed -e '/# am--include-marker/d' "$am_filepart" \ 30302 | $MAKE -f - am--depfiles" >&5 30303 (cd "$am_dirpart" \ 30304 && sed -e '/# am--include-marker/d' "$am_filepart" \ 30305 | $MAKE -f - am--depfiles) >&5 2>&5 30306 ac_status=$? 30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30308 (exit $ac_status); } || am_rc=$? 30309 done 30310 if test $am_rc -ne 0; then 30311 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30312printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 30313as_fn_error $? "Something went wrong bootstrapping makefile fragments 30314 for automatic dependency tracking. If GNU make was not used, consider 30315 re-running the configure script with MAKE=\"gmake\" (or whatever is 30316 necessary). You can also try re-running configure with the 30317 '--disable-dependency-tracking' option to at least be able to build 30318 the package (albeit without support for automatic dependency tracking). 30319See \`config.log' for more details" "$LINENO" 5; } 30320 fi 30321 { am_dirpart=; unset am_dirpart;} 30322 { am_filepart=; unset am_filepart;} 30323 { am_mf=; unset am_mf;} 30324 { am_rc=; unset am_rc;} 30325 rm -f conftest-deps.mk 30326} 30327 ;; 30328 "libtool":C) 30329 30330 # See if we are running on zsh, and set the options that allow our 30331 # commands through without removal of \ escapes. 30332 if test -n "${ZSH_VERSION+set}"; then 30333 setopt NO_GLOB_SUBST 30334 fi 30335 30336 cfgfile=${ofile}T 30337 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 30338 $RM "$cfgfile" 30339 30340 cat <<_LT_EOF >> "$cfgfile" 30341#! $SHELL 30342# Generated automatically by $as_me ($PACKAGE) $VERSION 30343# NOTE: Changes made to this file will be lost: look at ltmain.sh. 30344 30345# Provide generalized library-building support services. 30346# Written by Gordon Matzigkeit, 1996 30347 30348# Copyright (C) 2014 Free Software Foundation, Inc. 30349# This is free software; see the source for copying conditions. There is NO 30350# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30351 30352# GNU Libtool is free software; you can redistribute it and/or modify 30353# it under the terms of the GNU General Public License as published by 30354# the Free Software Foundation; either version 2 of of the License, or 30355# (at your option) any later version. 30356# 30357# As a special exception to the GNU General Public License, if you 30358# distribute this file as part of a program or library that is built 30359# using GNU Libtool, you may include this file under the same 30360# distribution terms that you use for the rest of that program. 30361# 30362# GNU Libtool is distributed in the hope that it will be useful, but 30363# WITHOUT ANY WARRANTY; without even the implied warranty of 30364# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 30365# GNU General Public License for more details. 30366# 30367# You should have received a copy of the GNU General Public License 30368# along with this program. If not, see <http://www.gnu.org/licenses/>. 30369 30370 30371# The names of the tagged configurations supported by this script. 30372available_tags='' 30373 30374# Configured defaults for sys_lib_dlsearch_path munging. 30375: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 30376 30377# ### BEGIN LIBTOOL CONFIG 30378 30379# Which release of libtool.m4 was used? 30380macro_version=$macro_version 30381macro_revision=$macro_revision 30382 30383# Whether or not to build static libraries. 30384build_old_libs=$enable_static 30385 30386# What type of objects to build. 30387pic_mode=$pic_mode 30388 30389# Whether or not to build shared libraries. 30390build_libtool_libs=$enable_shared 30391 30392# Whether or not to optimize for fast installation. 30393fast_install=$enable_fast_install 30394 30395# Shared archive member basename,for filename based shared library versioning on AIX. 30396shared_archive_member_spec=$shared_archive_member_spec 30397 30398# Shell to use when invoking shell scripts. 30399SHELL=$lt_SHELL 30400 30401# An echo program that protects backslashes. 30402ECHO=$lt_ECHO 30403 30404# The PATH separator for the build system. 30405PATH_SEPARATOR=$lt_PATH_SEPARATOR 30406 30407# The host system. 30408host_alias=$host_alias 30409host=$host 30410host_os=$host_os 30411 30412# The build system. 30413build_alias=$build_alias 30414build=$build 30415build_os=$build_os 30416 30417# A sed program that does not truncate output. 30418SED=$lt_SED 30419 30420# Sed that helps us avoid accidentally triggering echo(1) options like -n. 30421Xsed="\$SED -e 1s/^X//" 30422 30423# A grep program that handles long lines. 30424GREP=$lt_GREP 30425 30426# An ERE matcher. 30427EGREP=$lt_EGREP 30428 30429# A literal string matcher. 30430FGREP=$lt_FGREP 30431 30432# A BSD- or MS-compatible name lister. 30433NM=$lt_NM 30434 30435# Whether we need soft or hard links. 30436LN_S=$lt_LN_S 30437 30438# What is the maximum length of a command? 30439max_cmd_len=$max_cmd_len 30440 30441# Object file suffix (normally "o"). 30442objext=$ac_objext 30443 30444# Executable file suffix (normally ""). 30445exeext=$exeext 30446 30447# whether the shell understands "unset". 30448lt_unset=$lt_unset 30449 30450# turn spaces into newlines. 30451SP2NL=$lt_lt_SP2NL 30452 30453# turn newlines into spaces. 30454NL2SP=$lt_lt_NL2SP 30455 30456# convert \$build file names to \$host format. 30457to_host_file_cmd=$lt_cv_to_host_file_cmd 30458 30459# convert \$build files to toolchain format. 30460to_tool_file_cmd=$lt_cv_to_tool_file_cmd 30461 30462# A file(cmd) program that detects file types. 30463FILECMD=$lt_FILECMD 30464 30465# An object symbol dumper. 30466OBJDUMP=$lt_OBJDUMP 30467 30468# Method to check whether dependent libraries are shared objects. 30469deplibs_check_method=$lt_deplibs_check_method 30470 30471# Command to use when deplibs_check_method = "file_magic". 30472file_magic_cmd=$lt_file_magic_cmd 30473 30474# How to find potential files when deplibs_check_method = "file_magic". 30475file_magic_glob=$lt_file_magic_glob 30476 30477# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 30478want_nocaseglob=$lt_want_nocaseglob 30479 30480# DLL creation program. 30481DLLTOOL=$lt_DLLTOOL 30482 30483# Command to associate shared and link libraries. 30484sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 30485 30486# The archiver. 30487AR=$lt_AR 30488 30489# Flags to create an archive (by configure). 30490lt_ar_flags=$lt_ar_flags 30491 30492# Flags to create an archive. 30493AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 30494 30495# How to feed a file listing to the archiver. 30496archiver_list_spec=$lt_archiver_list_spec 30497 30498# A symbol stripping program. 30499STRIP=$lt_STRIP 30500 30501# Commands used to install an old-style archive. 30502RANLIB=$lt_RANLIB 30503old_postinstall_cmds=$lt_old_postinstall_cmds 30504old_postuninstall_cmds=$lt_old_postuninstall_cmds 30505 30506# Whether to use a lock for old archive extraction. 30507lock_old_archive_extraction=$lock_old_archive_extraction 30508 30509# A C compiler. 30510LTCC=$lt_CC 30511 30512# LTCC compiler flags. 30513LTCFLAGS=$lt_CFLAGS 30514 30515# Take the output of nm and produce a listing of raw symbols and C names. 30516global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 30517 30518# Transform the output of nm in a proper C declaration. 30519global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 30520 30521# Transform the output of nm into a list of symbols to manually relocate. 30522global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 30523 30524# Transform the output of nm in a C name address pair. 30525global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 30526 30527# Transform the output of nm in a C name address pair when lib prefix is needed. 30528global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 30529 30530# The name lister interface. 30531nm_interface=$lt_lt_cv_nm_interface 30532 30533# Specify filename containing input files for \$NM. 30534nm_file_list_spec=$lt_nm_file_list_spec 30535 30536# The root where to search for dependent libraries,and where our libraries should be installed. 30537lt_sysroot=$lt_sysroot 30538 30539# Command to truncate a binary pipe. 30540lt_truncate_bin=$lt_lt_cv_truncate_bin 30541 30542# The name of the directory that contains temporary libtool files. 30543objdir=$objdir 30544 30545# Used to examine libraries when file_magic_cmd begins with "file". 30546MAGIC_CMD=$MAGIC_CMD 30547 30548# Must we lock files when doing compilation? 30549need_locks=$lt_need_locks 30550 30551# Manifest tool. 30552MANIFEST_TOOL=$lt_MANIFEST_TOOL 30553 30554# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 30555DSYMUTIL=$lt_DSYMUTIL 30556 30557# Tool to change global to local symbols on Mac OS X. 30558NMEDIT=$lt_NMEDIT 30559 30560# Tool to manipulate fat objects and archives on Mac OS X. 30561LIPO=$lt_LIPO 30562 30563# ldd/readelf like tool for Mach-O binaries on Mac OS X. 30564OTOOL=$lt_OTOOL 30565 30566# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 30567OTOOL64=$lt_OTOOL64 30568 30569# Old archive suffix (normally "a"). 30570libext=$libext 30571 30572# Shared library suffix (normally ".so"). 30573shrext_cmds=$lt_shrext_cmds 30574 30575# The commands to extract the exported symbol list from a shared archive. 30576extract_expsyms_cmds=$lt_extract_expsyms_cmds 30577 30578# Variables whose values should be saved in libtool wrapper scripts and 30579# restored at link time. 30580variables_saved_for_relink=$lt_variables_saved_for_relink 30581 30582# Do we need the "lib" prefix for modules? 30583need_lib_prefix=$need_lib_prefix 30584 30585# Do we need a version for libraries? 30586need_version=$need_version 30587 30588# Library versioning type. 30589version_type=$version_type 30590 30591# Shared library runtime path variable. 30592runpath_var=$runpath_var 30593 30594# Shared library path variable. 30595shlibpath_var=$shlibpath_var 30596 30597# Is shlibpath searched before the hard-coded library search path? 30598shlibpath_overrides_runpath=$shlibpath_overrides_runpath 30599 30600# Format of library name prefix. 30601libname_spec=$lt_libname_spec 30602 30603# List of archive names. First name is the real one, the rest are links. 30604# The last name is the one that the linker finds with -lNAME 30605library_names_spec=$lt_library_names_spec 30606 30607# The coded name of the library, if different from the real name. 30608soname_spec=$lt_soname_spec 30609 30610# Permission mode override for installation of shared libraries. 30611install_override_mode=$lt_install_override_mode 30612 30613# Command to use after installation of a shared archive. 30614postinstall_cmds=$lt_postinstall_cmds 30615 30616# Command to use after uninstallation of a shared archive. 30617postuninstall_cmds=$lt_postuninstall_cmds 30618 30619# Commands used to finish a libtool library installation in a directory. 30620finish_cmds=$lt_finish_cmds 30621 30622# As "finish_cmds", except a single script fragment to be evaled but 30623# not shown. 30624finish_eval=$lt_finish_eval 30625 30626# Whether we should hardcode library paths into libraries. 30627hardcode_into_libs=$hardcode_into_libs 30628 30629# Compile-time system search path for libraries. 30630sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 30631 30632# Detected run-time system search path for libraries. 30633sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 30634 30635# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 30636configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 30637 30638# Whether dlopen is supported. 30639dlopen_support=$enable_dlopen 30640 30641# Whether dlopen of programs is supported. 30642dlopen_self=$enable_dlopen_self 30643 30644# Whether dlopen of statically linked programs is supported. 30645dlopen_self_static=$enable_dlopen_self_static 30646 30647# Commands to strip libraries. 30648old_striplib=$lt_old_striplib 30649striplib=$lt_striplib 30650 30651 30652# The linker used to build libraries. 30653LD=$lt_LD 30654 30655# How to create reloadable object files. 30656reload_flag=$lt_reload_flag 30657reload_cmds=$lt_reload_cmds 30658 30659# Commands used to build an old-style archive. 30660old_archive_cmds=$lt_old_archive_cmds 30661 30662# A language specific compiler. 30663CC=$lt_compiler 30664 30665# Is the compiler the GNU compiler? 30666with_gcc=$GCC 30667 30668# Compiler flag to turn off builtin functions. 30669no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 30670 30671# Additional compiler flags for building library objects. 30672pic_flag=$lt_lt_prog_compiler_pic 30673 30674# How to pass a linker flag through the compiler. 30675wl=$lt_lt_prog_compiler_wl 30676 30677# Compiler flag to prevent dynamic linking. 30678link_static_flag=$lt_lt_prog_compiler_static 30679 30680# Does compiler simultaneously support -c and -o options? 30681compiler_c_o=$lt_lt_cv_prog_compiler_c_o 30682 30683# Whether or not to add -lc for building shared libraries. 30684build_libtool_need_lc=$archive_cmds_need_lc 30685 30686# Whether or not to disallow shared libs when runtime libs are static. 30687allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 30688 30689# Compiler flag to allow reflexive dlopens. 30690export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 30691 30692# Compiler flag to generate shared objects directly from archives. 30693whole_archive_flag_spec=$lt_whole_archive_flag_spec 30694 30695# Whether the compiler copes with passing no objects directly. 30696compiler_needs_object=$lt_compiler_needs_object 30697 30698# Create an old-style archive from a shared archive. 30699old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 30700 30701# Create a temporary old-style archive to link instead of a shared archive. 30702old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 30703 30704# Commands used to build a shared archive. 30705archive_cmds=$lt_archive_cmds 30706archive_expsym_cmds=$lt_archive_expsym_cmds 30707 30708# Commands used to build a loadable module if different from building 30709# a shared archive. 30710module_cmds=$lt_module_cmds 30711module_expsym_cmds=$lt_module_expsym_cmds 30712 30713# Whether we are building with GNU ld or not. 30714with_gnu_ld=$lt_with_gnu_ld 30715 30716# Flag that allows shared libraries with undefined symbols to be built. 30717allow_undefined_flag=$lt_allow_undefined_flag 30718 30719# Flag that enforces no undefined symbols. 30720no_undefined_flag=$lt_no_undefined_flag 30721 30722# Flag to hardcode \$libdir into a binary during linking. 30723# This must work even if \$libdir does not exist 30724hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 30725 30726# Whether we need a single "-rpath" flag with a separated argument. 30727hardcode_libdir_separator=$lt_hardcode_libdir_separator 30728 30729# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 30730# DIR into the resulting binary. 30731hardcode_direct=$hardcode_direct 30732 30733# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 30734# DIR into the resulting binary and the resulting library dependency is 30735# "absolute",i.e impossible to change by setting \$shlibpath_var if the 30736# library is relocated. 30737hardcode_direct_absolute=$hardcode_direct_absolute 30738 30739# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 30740# into the resulting binary. 30741hardcode_minus_L=$hardcode_minus_L 30742 30743# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 30744# into the resulting binary. 30745hardcode_shlibpath_var=$hardcode_shlibpath_var 30746 30747# Set to "yes" if building a shared library automatically hardcodes DIR 30748# into the library and all subsequent libraries and executables linked 30749# against it. 30750hardcode_automatic=$hardcode_automatic 30751 30752# Set to yes if linker adds runtime paths of dependent libraries 30753# to runtime path list. 30754inherit_rpath=$inherit_rpath 30755 30756# Whether libtool must link a program against all its dependency libraries. 30757link_all_deplibs=$link_all_deplibs 30758 30759# Set to "yes" if exported symbols are required. 30760always_export_symbols=$always_export_symbols 30761 30762# The commands to list exported symbols. 30763export_symbols_cmds=$lt_export_symbols_cmds 30764 30765# Symbols that should not be listed in the preloaded symbols. 30766exclude_expsyms=$lt_exclude_expsyms 30767 30768# Symbols that must always be exported. 30769include_expsyms=$lt_include_expsyms 30770 30771# Commands necessary for linking programs (against libraries) with templates. 30772prelink_cmds=$lt_prelink_cmds 30773 30774# Commands necessary for finishing linking programs. 30775postlink_cmds=$lt_postlink_cmds 30776 30777# Specify filename containing input files. 30778file_list_spec=$lt_file_list_spec 30779 30780# How to hardcode a shared library path into an executable. 30781hardcode_action=$hardcode_action 30782 30783# ### END LIBTOOL CONFIG 30784 30785_LT_EOF 30786 30787 cat <<'_LT_EOF' >> "$cfgfile" 30788 30789# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 30790 30791# func_munge_path_list VARIABLE PATH 30792# ----------------------------------- 30793# VARIABLE is name of variable containing _space_ separated list of 30794# directories to be munged by the contents of PATH, which is string 30795# having a format: 30796# "DIR[:DIR]:" 30797# string "DIR[ DIR]" will be prepended to VARIABLE 30798# ":DIR[:DIR]" 30799# string "DIR[ DIR]" will be appended to VARIABLE 30800# "DIRP[:DIRP]::[DIRA:]DIRA" 30801# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 30802# "DIRA[ DIRA]" will be appended to VARIABLE 30803# "DIR[:DIR]" 30804# VARIABLE will be replaced by "DIR[ DIR]" 30805func_munge_path_list () 30806{ 30807 case x$2 in 30808 x) 30809 ;; 30810 *:) 30811 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 30812 ;; 30813 x:*) 30814 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 30815 ;; 30816 *::*) 30817 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 30818 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 30819 ;; 30820 *) 30821 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 30822 ;; 30823 esac 30824} 30825 30826 30827# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 30828func_cc_basename () 30829{ 30830 for cc_temp in $*""; do 30831 case $cc_temp in 30832 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 30833 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 30834 \-*) ;; 30835 *) break;; 30836 esac 30837 done 30838 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 30839} 30840 30841 30842# ### END FUNCTIONS SHARED WITH CONFIGURE 30843 30844_LT_EOF 30845 30846 case $host_os in 30847 aix3*) 30848 cat <<\_LT_EOF >> "$cfgfile" 30849# AIX sometimes has problems with the GCC collect2 program. For some 30850# reason, if we set the COLLECT_NAMES environment variable, the problems 30851# vanish in a puff of smoke. 30852if test set != "${COLLECT_NAMES+set}"; then 30853 COLLECT_NAMES= 30854 export COLLECT_NAMES 30855fi 30856_LT_EOF 30857 ;; 30858 esac 30859 30860 30861 30862ltmain=$ac_aux_dir/ltmain.sh 30863 30864 30865 # We use sed instead of cat because bash on DJGPP gets confused if 30866 # if finds mixed CR/LF and LF-only lines. Since sed operates in 30867 # text mode, it properly converts lines to CR/LF. This bash problem 30868 # is reportedly fixed, but why not run on old versions too? 30869 $SED '$q' "$ltmain" >> "$cfgfile" \ 30870 || (rm -f "$cfgfile"; exit 1) 30871 30872 mv -f "$cfgfile" "$ofile" || 30873 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 30874 chmod +x "$ofile" 30875 30876 ;; 30877 "doc/doxygen/doxygen-input-filter":F) chmod +x doc/doxygen/doxygen-input-filter ;; 30878 "tests/unit-test-driver.sh":F) chmod +x tests/unit-test-driver.sh ;; 30879 "bin/tests/system/ifconfig.sh":F) chmod +x bin/tests/system/ifconfig.sh ;; 30880 "bin/tests/system/start.sh":F) chmod +x bin/tests/system/start.sh ;; 30881 "bin/tests/system/stop.sh":F) chmod +x bin/tests/system/stop.sh ;; 30882 30883 esac 30884done # for ac_tag 30885 30886 30887as_fn_exit 0 30888_ACEOF 30889ac_clean_files=$ac_clean_files_save 30890 30891test $ac_write_fail = 0 || 30892 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 30893 30894 30895# configure is writing to config.log, and then calls config.status. 30896# config.status does its own redirection, appending to config.log. 30897# Unfortunately, on DOS this fails, as config.log is still kept open 30898# by configure, so config.status won't be able to write to it; its 30899# output is simply discarded. So we exec the FD to /dev/null, 30900# effectively closing config.log, so it can be properly (re)opened and 30901# appended to by config.status. When coming back to configure, we 30902# need to make the FD available again. 30903if test "$no_create" != yes; then 30904 ac_cs_success=: 30905 ac_config_status_args= 30906 test "$silent" = yes && 30907 ac_config_status_args="$ac_config_status_args --quiet" 30908 exec 5>/dev/null 30909 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 30910 exec 5>>config.log 30911 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 30912 # would make configure fail if this is the last instruction. 30913 $ac_cs_success || as_fn_exit 1 30914fi 30915if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 30916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 30917printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 30918fi 30919 30920 30921# [pairwise: --enable-full-report, --disable-full-report] 30922# Check whether --enable-full-report was given. 30923if test ${enable_full_report+y} 30924then : 30925 enableval=$enable_full_report; 30926fi 30927 30928 30929report() { 30930 echo "===============================================================================" 30931 echo "Configuration summary:" 30932 echo "-------------------------------------------------------------------------------" 30933 echo "Optional features enabled:" 30934 if test "yes" = "$with_jemalloc"; then 30935 echo " Memory allocator: jemalloc" 30936 fi 30937 if test "yes" = "$enable_full_report" -o "rbt" = "$zonedb"; then 30938 echo " Default zone database type: $zonedb" 30939 fi 30940 if test "yes" = "$enable_full_report" -o "rbt" = "$zonedb"; then 30941 echo " Default cache database type: $cachedb" 30942 fi 30943 test "no" = "$enable_dnstap" || \ 30944 echo " Allow 'dnstap' packet logging (--enable-dnstap)" 30945 test -z "$MAXMINDDB_LIBS" || echo " GeoIP2 access control (--enable-geoip)" 30946 test -z "$GSSAPI_LIBS" || echo " GSS-API (--with-gssapi)" 30947 30948 # these lines are only printed if run with --enable-full-report 30949 if test "yes" = "$enable_full_report"; then 30950 test -z "$LIBXML2_LIBS" || echo " XML statistics (--with-libxml2)" 30951 test -z "$JSON_C_LIBS" || echo " JSON statistics (--with-json-c): $JSON_C_CFLAGS $JSON_C_LIBS" 30952 test -z "$ZLIB_LIBS" || echo " HTTP zlib compression (--with-zlib)" 30953 test -z "$LMDB_LIBS" || echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)" 30954 test -z "$LIBIDN2_LIBS" || echo " IDN support (--with-libidn2)" 30955 fi 30956 30957 test "yes" = "$enable_dnsrps" && \ 30958 echo " DNS Response Policy Service interface (--enable-dnsrps)" 30959 test "yes" = "$enable_fixed_rrset" && \ 30960 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)" 30961 test "yes" = "$enable_fips_mode" && \ 30962 echo " FIPS mode in OpenSSL (--enable-fips-mode)" 30963 30964 test "yes" = "$enable_querytrace" && \ 30965 echo " Very verbose query trace logging (--enable-querytrace)" 30966 test "yes" = "$enable_singletrace" && \ 30967 echo " Single-query trace logging (--enable-singletrace)" 30968 test -z "$HAVE_CMOCKA" || echo " CMocka Unit Testing Framework (--with-cmocka)" 30969 30970 test "auto" = "$validation_default" && echo " DNSSEC validation active by default (--enable-auto-validation)" 30971 30972 echo "-------------------------------------------------------------------------------" 30973 echo " Library versions:" 30974 echo " OpenSSL: $OPENSSL_VERSION" 30975 echo " libuv: $LIBUV_VERSION" 30976 echo " Userspace-RCU: $RCU_VERSION" 30977 if test "no" != "$with_jemalloc"; then 30978 echo " jemalloc: $JEMALLOC_VERSION" 30979 fi 30980 echo "-------------------------------------------------------------------------------" 30981 30982 echo "Features disabled or unavailable on this platform:" 30983 if test "no" = "$with_jemalloc"; then 30984 echo " Memory allocator: system" 30985 echo 30986 echo " +------------------------------------------+" 30987 echo " | ==== WARNING ==== |" 30988 echo " | |" 30989 echo " | This is NOT a recommended configuration. |" 30990 echo " | Using the system memory allocator causes |" 30991 echo " | reduced performance and increased memory |" 30992 echo " | fragmentation. Installing the jemalloc |" 30993 echo " | memory allocator (version >= 4.0.0) is |" 30994 echo " | strongly recommended. |" 30995 echo " +------------------------------------------+" 30996 echo 30997 fi 30998 30999 test "no" = "$enable_dnstap" && \ 31000 echo " Allow 'dnstap' packet logging (--enable-dnstap)" 31001 test -z "$MAXMINDDB_LIBS" && echo " GeoIP2 access control (--enable-geoip)" 31002 test -z "$GSSAPI_LIBS" && echo " GSS-API (--with-gssapi)" 31003 31004 test "no" = "$enable_dnsrps" && \ 31005 echo " DNS Response Policy Service interface (--enable-dnsrps)" 31006 31007 test "yes" = "$enable_fixed_rrset" || \ 31008 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)" 31009 31010 test "yes" = "$validation_default" && echo " DNSSEC validation requires configuration (--enable-auto-validation)" 31011 31012 test "yes" = "$enable_fips_mode" || \ 31013 echo " FIPS mode in OpenSSL (--enable-fips-mode)" 31014 31015 test "yes" = "$enable_querytrace" || \ 31016 echo " Very verbose query trace logging (--enable-querytrace)" 31017 test "yes" = "$enable_singletrace" || \ 31018 echo " Single-query trace logging (--enable-singletrace)" 31019 31020 test "no" = "$with_cmocka" && echo " CMocka Unit Testing Framework (--with-cmocka)" 31021 31022 test -z "$LIBXML2_LIBS" && echo " XML statistics (--with-libxml2)" 31023 test -z "$JSON_C_LIBS" && echo " JSON statistics (--with-json-c)" 31024 test -z "$ZLIB_LIBS" && echo " HTTP zlib compression (--with-zlib)" 31025 test -z "$LMDB_LIBS" && echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)" 31026 test -z "$LIBIDN2_LIBS" && echo " IDN support (--with-libidn2)" 31027 31028 echo "-------------------------------------------------------------------------------" 31029 echo "Configured paths:" 31030 echo " prefix: $prefix" 31031 echo " sysconfdir: $sysconfdir" 31032 echo " localstatedir: $localstatedir" 31033 echo "-------------------------------------------------------------------------------" 31034 echo "Compiler: $CC" 31035 if test "$GCC" = "yes" 31036then : 31037 $CC --version 2>&1 | sed 's/^/ /' 31038else $as_nop 31039 case $host in #( 31040 *-solaris*) : 31041 $CC -V 2>&1 | sed 's/^/ /' ;; #( 31042 *) : 31043 $CC --version 2>&1 | sed 's/^/ /' ;; 31044esac 31045fi 31046 echo "CFLAGS: $STD_CFLAGS $CFLAGS" 31047 echo "CPPFLAGS: $STD_CPPFLAGS $CPPFLAGS" 31048 echo "LDFLAGS: $LDFLAGS" 31049 31050 if test "X$ac_unrecognized_opts" != "X"; then 31051 echo "-------------------------------------------------------------------------------" 31052 echo "Unrecognized options:" 31053 echo " $ac_unrecognized_opts" 31054 fi 31055 31056 if test "yes" != "$enable_full_report"; then 31057 echo "-------------------------------------------------------------------------------" 31058 echo "For more detail, use --enable-full-report." 31059 fi 31060 echo "===============================================================================" 31061} 31062 31063if test "yes" != "$silent"; then 31064 report 31065fi 31066 31067# Tell Emacs to edit this file in shell mode. 31068# Local Variables: 31069# mode: sh 31070# End: 31071 31072