1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for BIND 9.20.24. 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-2023 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 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 35 esac 36 fi 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. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export 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). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${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 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 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 102 IFS=$as_save_IFS 103 104 ;; 105 esac 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. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if 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 114 fi 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. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $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'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151 else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157 esac ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177 esac 178 fi 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 182 test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195 test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197 then : 198 as_have_required=yes 199 else case e in #( 200 e) as_have_required=no ;; 201 esac 202 fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204 then : 205 206 else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208 as_found=false 209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210 do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225 then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228 then : 229 break 2 230 fi 231 fi 232 done;; 233 esac 234 as_found=false 235 done 236 IFS=$as_save_IFS 237 if $as_found 238 then : 239 240 else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243 then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245 fi ;; 246 esac 247 fi 248 249 250 if test "x$CONFIG_SHELL" != x 251 then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254 # neutralization value for shells without unset; and this also 255 # works around shells that cannot unset nonexistent variables. 256 # Preserve -v and -x to the replacement shell. 257 BASH_ENV=/dev/null 258 ENV=/dev/null 259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260 case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265 esac 266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267 # Admittedly, this is quite paranoid, since all the known shells bail 268 # out after a failed 'exec'. 269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270 exit 255 271 fi 272 273 if test x$as_have_required = xno 274 then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 282 $0: https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug 283 $0: about your system, including any error possibly output 284 $0: before this message. Then install a modern shell, or 285 $0: manually run the script under such a shell if you do 286 $0: have one." 287 fi 288 exit 1 289 fi ;; 290 esac 291 fi 292 fi 293 SHELL=${CONFIG_SHELL-/bin/sh} 294 export SHELL 295 # Unset more variables known to interfere with behavior of common tools. 296 CLICOLOR_FORCE= GREP_OPTIONS= 297 unset CLICOLOR_FORCE GREP_OPTIONS 298 299 ## --------------------- ## 300 ## M4sh Shell Functions. ## 301 ## --------------------- ## 302 # as_fn_unset VAR 303 # --------------- 304 # Portably unset VAR. 305 as_fn_unset () 306 { 307 { eval $1=; unset $1;} 308 } 309 as_unset=as_fn_unset 310 311 312 # as_fn_set_status STATUS 313 # ----------------------- 314 # Set $? to STATUS, without forking. 315 as_fn_set_status () 316 { 317 return $1 318 } # as_fn_set_status 319 320 # as_fn_exit STATUS 321 # ----------------- 322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323 as_fn_exit () 324 { 325 set +e 326 as_fn_set_status $1 327 exit $1 328 } # as_fn_exit 329 330 # as_fn_mkdir_p 331 # ------------- 332 # Create "$as_dir" as a directory, including parents if necessary. 333 as_fn_mkdir_p () 334 { 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352 printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376 } # as_fn_mkdir_p 377 378 # as_fn_executable_p FILE 379 # ----------------------- 380 # Test if FILE is an executable regular file. 381 as_fn_executable_p () 382 { 383 test -f "$1" && test -x "$1" 384 } # as_fn_executable_p 385 # as_fn_append VAR VALUE 386 # ---------------------- 387 # Append the text in VALUE to the end of the definition contained in VAR. Take 388 # advantage of any shell optimizations that allow amortized linear growth over 389 # repeated appends, instead of the typical quadratic growth present in naive 390 # implementations. 391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392 then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397 else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402 esac 403 fi # as_fn_append 404 405 # as_fn_arith ARG... 406 # ------------------ 407 # Perform arithmetic evaluation on the ARGs, and store the result in the 408 # global $as_val. Take advantage of shells that can avoid forks. The arguments 409 # must be portable across $(()) and expr. 410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411 then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416 else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421 esac 422 fi # as_fn_arith 423 424 425 # as_fn_error STATUS ERROR [LINENO LOG_FD] 426 # ---------------------------------------- 427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429 # script with STATUS, using 1 if that was 0. 430 as_fn_error () 431 { 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439 } # as_fn_error 440 441 if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444 else 445 as_expr=false 446 fi 447 448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450 else 451 as_basename=false 452 fi 453 454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456 else 457 as_dirname=false 458 fi 459 460 as_me=`$as_basename -- "$0" || 461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464 printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479 # Avoid depending upon Character Ranges. 480 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483 as_cr_digits='0123456789' 484 as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 t clear 498 :clear 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522 } 523 524 525 # Determine whether it's possible to make 'echo' print without a newline. 526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527 # for compatibility with existing Makefiles. 528 ECHO_C= ECHO_N= ECHO_T= 529 case `echo -n x` in #((((( 530 -n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537 *) 538 ECHO_N='-n';; 539 esac 540 541 # For backward compatibility with old third-party macros, we provide 542 # the shell variables $as_echo and $as_echo_n. New code should use 543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544 as_echo='printf %s\n' 545 as_echo_n='printf %s' 546 547 rm -f conf$$ conf$$.exe conf$$.file 548 if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550 else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553 fi 554 if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 560 # In both cases, we have to default to 'cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568 else 569 as_ln_s='cp -pR' 570 fi 571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572 rmdir conf$$.dir 2>/dev/null 573 574 if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576 else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579 fi 580 581 as_test_x='test -x' 582 as_executable_p=as_fn_executable_p 583 584 # Sed expression to map a string onto a valid CPP name. 585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588 # Sed expression to map a string onto a valid variable name. 589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592 SHELL=${CONFIG_SHELL-/bin/sh} 593 594 595 test -n "$DJDIR" || exec 7<&0 </dev/null 596 exec 6>&1 597 598 # Name of the host. 599 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 600 # so uname gets run too. 601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 602 603 # 604 # Initializations. 605 # 606 ac_default_prefix=/usr/local 607 ac_clean_files= 608 ac_config_libobj_dir=. 609 LIBOBJS= 610 cross_compiling=no 611 subdirs= 612 MFLAGS= 613 MAKEFLAGS= 614 615 # Identity of this package. 616 PACKAGE_NAME='BIND' 617 PACKAGE_TARNAME='bind' 618 PACKAGE_VERSION='9.20.24' 619 PACKAGE_STRING='BIND 9.20.24' 620 PACKAGE_BUGREPORT='https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug' 621 PACKAGE_URL='https://www.isc.org/downloads/' 622 623 ac_unique_file="bin/named/main.c" 624 # Factoring default headers for most tests. 625 ac_includes_default="\ 626 #include <stddef.h> 627 #ifdef HAVE_STDIO_H 628 # include <stdio.h> 629 #endif 630 #ifdef HAVE_STDLIB_H 631 # include <stdlib.h> 632 #endif 633 #ifdef HAVE_STRING_H 634 # include <string.h> 635 #endif 636 #ifdef HAVE_INTTYPES_H 637 # include <inttypes.h> 638 #endif 639 #ifdef HAVE_STDINT_H 640 # include <stdint.h> 641 #endif 642 #ifdef HAVE_STRINGS_H 643 # include <strings.h> 644 #endif 645 #ifdef HAVE_SYS_TYPES_H 646 # include <sys/types.h> 647 #endif 648 #ifdef HAVE_SYS_STAT_H 649 # include <sys/stat.h> 650 #endif 651 #ifdef HAVE_UNISTD_H 652 # include <unistd.h> 653 #endif" 654 655 ac_header_c_list= 656 enable_year2038=no 657 ac_subst_vars='am__EXEEXT_FALSE 658 am__EXEEXT_TRUE 659 LTLIBOBJS 660 LIBOBJS 661 HAVE_DTRACE_FALSE 662 HAVE_DTRACE_TRUE 663 HAVE_SYSTEMTAP_FALSE 664 HAVE_SYSTEMTAP_TRUE 665 DTRACE 666 DNSRPS_FALSE 667 DNSRPS_TRUE 668 HAVE_JEMALLOC_FALSE 669 HAVE_JEMALLOC_TRUE 670 JEMALLOC_VERSION 671 JEMALLOC_LIBS 672 JEMALLOC_CFLAGS 673 HAVE_CMOCKA_FALSE 674 HAVE_CMOCKA_TRUE 675 CMOCKA_LIBS 676 CMOCKA_CFLAGS 677 LIBIDN2_LIBS 678 LIBIDN2_CFLAGS 679 NC 680 CURL 681 DOXYGEN 682 RELEASE_DATE 683 BUILD_MANPAGES_FALSE 684 BUILD_MANPAGES_TRUE 685 HAVE_SPHINX_BUILD_FALSE 686 HAVE_SPHINX_BUILD_TRUE 687 SPHINX_BUILD 688 HAVE_DNSTAP_FALSE 689 HAVE_DNSTAP_TRUE 690 PROTOC_C 691 FSTRM_CAPTURE 692 DNSTAP_LIBS 693 DNSTAP_CFLAGS 694 LIBCAP_LIBS 695 LIBCAP_CFLAGS 696 HAVE_READLINE_FALSE 697 HAVE_READLINE_TRUE 698 READLINE_LIBS 699 READLINE_CFLAGS 700 ZLIB_LIBS 701 ZLIB_CFLAGS 702 HAVE_JSON_C_FALSE 703 HAVE_JSON_C_TRUE 704 JSON_C_LIBS 705 JSON_C_CFLAGS 706 HAVE_LIBXML2_FALSE 707 HAVE_LIBXML2_TRUE 708 LIBXML2_LIBS 709 LIBXML2_CFLAGS 710 HAVE_LMDB_FALSE 711 HAVE_LMDB_TRUE 712 LMDB_LIBS 713 LMDB_CFLAGS 714 KRB5_LIBS 715 KRB5_CFLAGS 716 GSSAPI_LIBS 717 GSSAPI_CFLAGS 718 HAVE_GSSAPI_FALSE 719 HAVE_GSSAPI_TRUE 720 KRB5_CONFIG 721 OPENSSL_VERSION 722 OPENSSL_LDFLAGS 723 OPENSSL_LIBS 724 OPENSSL_CFLAGS 725 USE_ISC_RWLOCK_FALSE 726 USE_ISC_RWLOCK_TRUE 727 HAVE_LIBNGHTTP2_FALSE 728 HAVE_LIBNGHTTP2_TRUE 729 LIBNGHTTP2_LIBS 730 LIBNGHTTP2_CFLAGS 731 LIBUV_VERSION 732 LIBUV_LIBS 733 LIBUV_CFLAGS 734 PTHREAD_CFLAGS 735 PTHREAD_LIBS 736 PTHREAD_CXX 737 PTHREAD_CC 738 ax_pthread_config 739 HAVE_GEOIP2_FALSE 740 HAVE_GEOIP2_TRUE 741 MAXMINDDB_PREFIX 742 MAXMINDDB_LIBS 743 MAXMINDDB_CFLAGS 744 XSLTPROC 745 XMLLINT 746 JQ 747 HAVE_PYTEST_FALSE 748 HAVE_PYTEST_TRUE 749 PYTEST 750 HAVE_PYTHON_FALSE 751 HAVE_PYTHON_TRUE 752 pkgpyexecdir 753 pyexecdir 754 pkgpythondir 755 pythondir 756 PYTHON_EXEC_PREFIX 757 PYTHON_PREFIX 758 PYTHON_PLATFORM 759 PYTHON_VERSION 760 PYTHON 761 HAVE_PERL_FALSE 762 HAVE_PERL_TRUE 763 PERL 764 FUZZ_LDFLAGS 765 FUZZ_LOG_COMPILER 766 HAVE_FUZZ_LOG_COMPILER_FALSE 767 HAVE_FUZZ_LOG_COMPILER_TRUE 768 RCU_VERSION 769 LIBURCU_LIBS 770 LIBURCU_CFLAGS 771 PKG_CONFIG_LIBDIR 772 PKG_CONFIG_PATH 773 PKG_CONFIG 774 TEST_CFLAGS 775 STD_LDFLAGS 776 STD_CPPFLAGS 777 STD_CFLAGS 778 DEVELOPER_MODE 779 HOST_MACOS_FALSE 780 HOST_MACOS_TRUE 781 DLOPEN_LIBS 782 LT_SYS_LIBRARY_PATH 783 OTOOL64 784 OTOOL 785 LIPO 786 NMEDIT 787 DSYMUTIL 788 MANIFEST_TOOL 789 RANLIB 790 DLLTOOL 791 OBJDUMP 792 FILECMD 793 NM 794 ac_ct_DUMPBIN 795 DUMPBIN 796 LD 797 FGREP 798 EGREP 799 GREP 800 SED 801 LIBTOOL 802 LN_S 803 ac_ct_AR 804 AR 805 LDFLAGS_FOR_BUILD 806 CPPFLAGS_FOR_BUILD 807 CFLAGS_FOR_BUILD 808 BUILD_OBJEXT 809 BUILD_EXEEXT 810 CPP_FOR_BUILD 811 ac_ct_CC_FOR_BUILD 812 CC_FOR_BUILD 813 CPP 814 am__fastdepCC_FALSE 815 am__fastdepCC_TRUE 816 CCDEPMODE 817 am__nodep 818 AMDEPBACKSLASH 819 AMDEP_FALSE 820 AMDEP_TRUE 821 am__include 822 DEPDIR 823 OBJEXT 824 EXEEXT 825 ac_ct_CC 826 CPPFLAGS 827 LDFLAGS 828 CFLAGS 829 CC 830 MAINT 831 MAINTAINER_MODE_FALSE 832 MAINTAINER_MODE_TRUE 833 am__xargs_n 834 am__rm_f_notfound 835 AM_BACKSLASH 836 AM_DEFAULT_VERBOSITY 837 AM_DEFAULT_V 838 AM_V 839 CSCOPE 840 ETAGS 841 CTAGS 842 am__untar 843 am__tar 844 AMTAR 845 am__leading_dot 846 SET_MAKE 847 AWK 848 mkdir_p 849 MKDIR_P 850 INSTALL_STRIP_PROGRAM 851 STRIP 852 install_sh 853 MAKEINFO 854 AUTOHEADER 855 AUTOMAKE 856 AUTOCONF 857 ACLOCAL 858 VERSION 859 PACKAGE 860 CYGPATH_W 861 am__isrc 862 INSTALL_DATA 863 INSTALL_SCRIPT 864 INSTALL_PROGRAM 865 target_os 866 target_vendor 867 target_cpu 868 target 869 host_os 870 host_vendor 871 host_cpu 872 host 873 build_os 874 build_vendor 875 build_cpu 876 build 877 target_alias 878 host_alias 879 build_alias 880 LIBS 881 ECHO_T 882 ECHO_N 883 ECHO_C 884 DEFS 885 mandir 886 localedir 887 libdir 888 psdir 889 pdfdir 890 dvidir 891 htmldir 892 infodir 893 docdir 894 oldincludedir 895 includedir 896 runstatedir 897 localstatedir 898 sharedstatedir 899 sysconfdir 900 datadir 901 datarootdir 902 libexecdir 903 sbindir 904 bindir 905 program_transform_name 906 prefix 907 exec_prefix 908 PACKAGE_URL 909 PACKAGE_BUGREPORT 910 PACKAGE_STRING 911 PACKAGE_VERSION 912 PACKAGE_TARNAME 913 PACKAGE_NAME 914 PATH_SEPARATOR 915 SHELL 916 am__quote' 917 ac_subst_files='' 918 ac_user_opts=' 919 enable_option_checking 920 enable_silent_rules 921 enable_maintainer_mode 922 enable_dependency_tracking 923 enable_largefile 924 enable_static 925 enable_pic 926 with_pic 927 enable_shared 928 enable_fast_install 929 enable_aix_soname 930 with_aix_soname 931 with_gnu_ld 932 with_sysroot 933 enable_libtool_lock 934 enable_developer 935 enable_warn_error 936 with_liburcu 937 enable_fuzzing 938 with_python_sys_prefix 939 with_python_prefix 940 with_python_exec_prefix 941 enable_geoip 942 with_maxminddb 943 enable_doh 944 with_libnghttp2 945 enable_pthread_rwlock 946 with_openssl 947 enable_fips_mode 948 with_gssapi 949 with_lmdb 950 with_libxml2 951 with_json_c 952 with_zlib 953 enable_tcp_fastopen 954 with_readline 955 enable_chroot 956 enable_fixed_rrset 957 enable_dnstap 958 with_libidn2 959 with_cmocka 960 with_jemalloc 961 enable_leak_detection 962 enable_singletrace 963 enable_querytrace 964 enable_auto_validation 965 enable_dnsrps_dl 966 with_dnsrps_libname 967 with_dnsrps_dir 968 enable_dnsrps 969 enable_tracing 970 with_zonedb 971 with_cachedb 972 enable_year2038 973 enable_full_report 974 ' 975 ac_precious_vars='build_alias 976 host_alias 977 target_alias 978 CC 979 CFLAGS 980 LDFLAGS 981 LIBS 982 CPPFLAGS 983 CPP 984 LT_SYS_LIBRARY_PATH 985 PKG_CONFIG 986 PKG_CONFIG_PATH 987 PKG_CONFIG_LIBDIR 988 LIBURCU_CFLAGS 989 LIBURCU_LIBS 990 RCU_VERSION 991 PYTHON 992 MAXMINDDB_CFLAGS 993 MAXMINDDB_LIBS 994 MAXMINDDB_PREFIX 995 LIBUV_CFLAGS 996 LIBUV_LIBS 997 LIBUV_VERSION 998 LIBNGHTTP2_CFLAGS 999 LIBNGHTTP2_LIBS 1000 OPENSSL_CFLAGS 1001 OPENSSL_LIBS 1002 OPENSSL_VERSION 1003 LMDB_CFLAGS 1004 LMDB_LIBS 1005 LIBXML2_CFLAGS 1006 LIBXML2_LIBS 1007 JSON_C_CFLAGS 1008 JSON_C_LIBS 1009 ZLIB_CFLAGS 1010 ZLIB_LIBS 1011 READLINE_CFLAGS 1012 READLINE_LIBS 1013 LIBCAP_CFLAGS 1014 LIBCAP_LIBS 1015 DNSTAP_CFLAGS 1016 DNSTAP_LIBS 1017 SPHINX_BUILD 1018 LIBIDN2_CFLAGS 1019 LIBIDN2_LIBS 1020 CMOCKA_CFLAGS 1021 CMOCKA_LIBS 1022 JEMALLOC_CFLAGS 1023 JEMALLOC_LIBS 1024 JEMALLOC_VERSION 1025 DTRACE' 1026 1027 1028 # Initialize some variables set by options. 1029 ac_init_help= 1030 ac_init_version=false 1031 ac_unrecognized_opts= 1032 ac_unrecognized_sep= 1033 # The variables have the same names as the options, with 1034 # dashes changed to underlines. 1035 cache_file=/dev/null 1036 exec_prefix=NONE 1037 no_create= 1038 no_recursion= 1039 prefix=NONE 1040 program_prefix=NONE 1041 program_suffix=NONE 1042 program_transform_name=s,x,x, 1043 silent= 1044 site= 1045 srcdir= 1046 verbose= 1047 x_includes=NONE 1048 x_libraries=NONE 1049 1050 # Installation directory options. 1051 # These are left unexpanded so users can "make install exec_prefix=/foo" 1052 # and all the variables that are supposed to be based on exec_prefix 1053 # by default will actually change. 1054 # Use braces instead of parens because sh, perl, etc. also accept them. 1055 # (The list follows the same order as the GNU Coding Standards.) 1056 bindir='${exec_prefix}/bin' 1057 sbindir='${exec_prefix}/sbin' 1058 libexecdir='${exec_prefix}/libexec' 1059 datarootdir='${prefix}/share' 1060 datadir='${datarootdir}' 1061 sysconfdir='${prefix}/etc' 1062 sharedstatedir='${prefix}/com' 1063 localstatedir='${prefix}/var' 1064 runstatedir='${localstatedir}/run' 1065 includedir='${prefix}/include' 1066 oldincludedir='/usr/include' 1067 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1068 infodir='${datarootdir}/info' 1069 htmldir='${docdir}' 1070 dvidir='${docdir}' 1071 pdfdir='${docdir}' 1072 psdir='${docdir}' 1073 libdir='${exec_prefix}/lib' 1074 localedir='${datarootdir}/locale' 1075 mandir='${datarootdir}/man' 1076 1077 ac_prev= 1078 ac_dashdash= 1079 for ac_option 1080 do 1081 # If the previous option needs an argument, assign it. 1082 if test -n "$ac_prev"; then 1083 eval $ac_prev=\$ac_option 1084 ac_prev= 1085 continue 1086 fi 1087 1088 case $ac_option in 1089 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1090 *=) ac_optarg= ;; 1091 *) ac_optarg=yes ;; 1092 esac 1093 1094 case $ac_dashdash$ac_option in 1095 --) 1096 ac_dashdash=yes ;; 1097 1098 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1099 ac_prev=bindir ;; 1100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1101 bindir=$ac_optarg ;; 1102 1103 -build | --build | --buil | --bui | --bu) 1104 ac_prev=build_alias ;; 1105 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1106 build_alias=$ac_optarg ;; 1107 1108 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1110 ac_prev=cache_file ;; 1111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1113 cache_file=$ac_optarg ;; 1114 1115 --config-cache | -C) 1116 cache_file=config.cache ;; 1117 1118 -datadir | --datadir | --datadi | --datad) 1119 ac_prev=datadir ;; 1120 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1121 datadir=$ac_optarg ;; 1122 1123 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1124 | --dataroo | --dataro | --datar) 1125 ac_prev=datarootdir ;; 1126 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1127 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1128 datarootdir=$ac_optarg ;; 1129 1130 -disable-* | --disable-*) 1131 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1132 # Reject names that are not valid shell variable names. 1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1134 as_fn_error $? "invalid feature name: '$ac_useropt'" 1135 ac_useropt_orig=$ac_useropt 1136 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1137 case $ac_user_opts in 1138 *" 1139 "enable_$ac_useropt" 1140 "*) ;; 1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1142 ac_unrecognized_sep=', ';; 1143 esac 1144 eval enable_$ac_useropt=no ;; 1145 1146 -docdir | --docdir | --docdi | --doc | --do) 1147 ac_prev=docdir ;; 1148 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1149 docdir=$ac_optarg ;; 1150 1151 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1152 ac_prev=dvidir ;; 1153 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1154 dvidir=$ac_optarg ;; 1155 1156 -enable-* | --enable-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid feature name: '$ac_useropt'" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165 "enable_$ac_useropt" 1166 "*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval enable_$ac_useropt=\$ac_optarg ;; 1171 1172 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1173 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1174 | --exec | --exe | --ex) 1175 ac_prev=exec_prefix ;; 1176 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1177 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1178 | --exec=* | --exe=* | --ex=*) 1179 exec_prefix=$ac_optarg ;; 1180 1181 -gas | --gas | --ga | --g) 1182 # Obsolete; use --with-gas. 1183 with_gas=yes ;; 1184 1185 -help | --help | --hel | --he | -h) 1186 ac_init_help=long ;; 1187 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1188 ac_init_help=recursive ;; 1189 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1190 ac_init_help=short ;; 1191 1192 -host | --host | --hos | --ho) 1193 ac_prev=host_alias ;; 1194 -host=* | --host=* | --hos=* | --ho=*) 1195 host_alias=$ac_optarg ;; 1196 1197 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1198 ac_prev=htmldir ;; 1199 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1200 | --ht=*) 1201 htmldir=$ac_optarg ;; 1202 1203 -includedir | --includedir | --includedi | --included | --include \ 1204 | --includ | --inclu | --incl | --inc) 1205 ac_prev=includedir ;; 1206 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1207 | --includ=* | --inclu=* | --incl=* | --inc=*) 1208 includedir=$ac_optarg ;; 1209 1210 -infodir | --infodir | --infodi | --infod | --info | --inf) 1211 ac_prev=infodir ;; 1212 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1213 infodir=$ac_optarg ;; 1214 1215 -libdir | --libdir | --libdi | --libd) 1216 ac_prev=libdir ;; 1217 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1218 libdir=$ac_optarg ;; 1219 1220 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1221 | --libexe | --libex | --libe) 1222 ac_prev=libexecdir ;; 1223 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1224 | --libexe=* | --libex=* | --libe=*) 1225 libexecdir=$ac_optarg ;; 1226 1227 -localedir | --localedir | --localedi | --localed | --locale) 1228 ac_prev=localedir ;; 1229 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1230 localedir=$ac_optarg ;; 1231 1232 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1233 | --localstate | --localstat | --localsta | --localst | --locals) 1234 ac_prev=localstatedir ;; 1235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1236 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1237 localstatedir=$ac_optarg ;; 1238 1239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1240 ac_prev=mandir ;; 1241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1242 mandir=$ac_optarg ;; 1243 1244 -nfp | --nfp | --nf) 1245 # Obsolete; use --without-fp. 1246 with_fp=no ;; 1247 1248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1249 | --no-cr | --no-c | -n) 1250 no_create=yes ;; 1251 1252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1254 no_recursion=yes ;; 1255 1256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1258 | --oldin | --oldi | --old | --ol | --o) 1259 ac_prev=oldincludedir ;; 1260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1263 oldincludedir=$ac_optarg ;; 1264 1265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1266 ac_prev=prefix ;; 1267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1268 prefix=$ac_optarg ;; 1269 1270 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1271 | --program-pre | --program-pr | --program-p) 1272 ac_prev=program_prefix ;; 1273 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1275 program_prefix=$ac_optarg ;; 1276 1277 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1278 | --program-suf | --program-su | --program-s) 1279 ac_prev=program_suffix ;; 1280 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1282 program_suffix=$ac_optarg ;; 1283 1284 -program-transform-name | --program-transform-name \ 1285 | --program-transform-nam | --program-transform-na \ 1286 | --program-transform-n | --program-transform- \ 1287 | --program-transform | --program-transfor \ 1288 | --program-transfo | --program-transf \ 1289 | --program-trans | --program-tran \ 1290 | --progr-tra | --program-tr | --program-t) 1291 ac_prev=program_transform_name ;; 1292 -program-transform-name=* | --program-transform-name=* \ 1293 | --program-transform-nam=* | --program-transform-na=* \ 1294 | --program-transform-n=* | --program-transform-=* \ 1295 | --program-transform=* | --program-transfor=* \ 1296 | --program-transfo=* | --program-transf=* \ 1297 | --program-trans=* | --program-tran=* \ 1298 | --progr-tra=* | --program-tr=* | --program-t=*) 1299 program_transform_name=$ac_optarg ;; 1300 1301 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1302 ac_prev=pdfdir ;; 1303 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1304 pdfdir=$ac_optarg ;; 1305 1306 -psdir | --psdir | --psdi | --psd | --ps) 1307 ac_prev=psdir ;; 1308 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1309 psdir=$ac_optarg ;; 1310 1311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1312 | -silent | --silent | --silen | --sile | --sil) 1313 silent=yes ;; 1314 1315 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1316 | --runstate | --runstat | --runsta | --runst | --runs \ 1317 | --run | --ru | --r) 1318 ac_prev=runstatedir ;; 1319 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1320 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1321 | --run=* | --ru=* | --r=*) 1322 runstatedir=$ac_optarg ;; 1323 1324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1325 ac_prev=sbindir ;; 1326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1327 | --sbi=* | --sb=*) 1328 sbindir=$ac_optarg ;; 1329 1330 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1332 | --sharedst | --shareds | --shared | --share | --shar \ 1333 | --sha | --sh) 1334 ac_prev=sharedstatedir ;; 1335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1338 | --sha=* | --sh=*) 1339 sharedstatedir=$ac_optarg ;; 1340 1341 -site | --site | --sit) 1342 ac_prev=site ;; 1343 -site=* | --site=* | --sit=*) 1344 site=$ac_optarg ;; 1345 1346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1347 ac_prev=srcdir ;; 1348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1349 srcdir=$ac_optarg ;; 1350 1351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1352 | --syscon | --sysco | --sysc | --sys | --sy) 1353 ac_prev=sysconfdir ;; 1354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1356 sysconfdir=$ac_optarg ;; 1357 1358 -target | --target | --targe | --targ | --tar | --ta | --t) 1359 ac_prev=target_alias ;; 1360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1361 target_alias=$ac_optarg ;; 1362 1363 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1364 verbose=yes ;; 1365 1366 -version | --version | --versio | --versi | --vers | -V) 1367 ac_init_version=: ;; 1368 1369 -with-* | --with-*) 1370 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1371 # Reject names that are not valid shell variable names. 1372 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1373 as_fn_error $? "invalid package name: '$ac_useropt'" 1374 ac_useropt_orig=$ac_useropt 1375 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1376 case $ac_user_opts in 1377 *" 1378 "with_$ac_useropt" 1379 "*) ;; 1380 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1381 ac_unrecognized_sep=', ';; 1382 esac 1383 eval with_$ac_useropt=\$ac_optarg ;; 1384 1385 -without-* | --without-*) 1386 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1387 # Reject names that are not valid shell variable names. 1388 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1389 as_fn_error $? "invalid package name: '$ac_useropt'" 1390 ac_useropt_orig=$ac_useropt 1391 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1392 case $ac_user_opts in 1393 *" 1394 "with_$ac_useropt" 1395 "*) ;; 1396 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1397 ac_unrecognized_sep=', ';; 1398 esac 1399 eval with_$ac_useropt=no ;; 1400 1401 --x) 1402 # Obsolete; use --with-x. 1403 with_x=yes ;; 1404 1405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1406 | --x-incl | --x-inc | --x-in | --x-i) 1407 ac_prev=x_includes ;; 1408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1410 x_includes=$ac_optarg ;; 1411 1412 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1414 ac_prev=x_libraries ;; 1415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1417 x_libraries=$ac_optarg ;; 1418 1419 -*) as_fn_error $? "unrecognized option: '$ac_option' 1420 Try '$0 --help' for more information" 1421 ;; 1422 1423 *=*) 1424 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1425 # Reject names that are not valid shell variable names. 1426 case $ac_envvar in #( 1427 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1428 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1429 esac 1430 eval $ac_envvar=\$ac_optarg 1431 export $ac_envvar ;; 1432 1433 *) 1434 # FIXME: should be removed in autoconf 3.0. 1435 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1436 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1437 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1438 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1439 ;; 1440 1441 esac 1442 done 1443 1444 if test -n "$ac_prev"; then 1445 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1446 as_fn_error $? "missing argument to $ac_option" 1447 fi 1448 1449 if test -n "$ac_unrecognized_opts"; then 1450 case $enable_option_checking in 1451 no) ;; 1452 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1453 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1454 esac 1455 fi 1456 1457 # Check all directory arguments for consistency. 1458 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1459 datadir sysconfdir sharedstatedir localstatedir includedir \ 1460 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1461 libdir localedir mandir runstatedir 1462 do 1463 eval ac_val=\$$ac_var 1464 # Remove trailing slashes. 1465 case $ac_val in 1466 */ ) 1467 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1468 eval $ac_var=\$ac_val;; 1469 esac 1470 # Be sure to have absolute directory names. 1471 case $ac_val in 1472 [\\/$]* | ?:[\\/]* ) continue;; 1473 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1474 esac 1475 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1476 done 1477 1478 # There might be people who depend on the old broken behavior: '$host' 1479 # used to hold the argument of --host etc. 1480 # FIXME: To remove some day. 1481 build=$build_alias 1482 host=$host_alias 1483 target=$target_alias 1484 1485 # FIXME: To remove some day. 1486 if test "x$host_alias" != x; then 1487 if test "x$build_alias" = x; then 1488 cross_compiling=maybe 1489 elif test "x$build_alias" != "x$host_alias"; then 1490 cross_compiling=yes 1491 fi 1492 fi 1493 1494 ac_tool_prefix= 1495 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1496 1497 test "$silent" = yes && exec 6>/dev/null 1498 1499 1500 ac_pwd=`pwd` && test -n "$ac_pwd" && 1501 ac_ls_di=`ls -di .` && 1502 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1503 as_fn_error $? "working directory cannot be determined" 1504 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1505 as_fn_error $? "pwd does not report name of working directory" 1506 1507 1508 # Find the source files, if location was not specified. 1509 if test -z "$srcdir"; then 1510 ac_srcdir_defaulted=yes 1511 # Try the directory containing this script, then the parent directory. 1512 ac_confdir=`$as_dirname -- "$as_myself" || 1513 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1514 X"$as_myself" : 'X\(//\)[^/]' \| \ 1515 X"$as_myself" : 'X\(//\)$' \| \ 1516 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1517 printf "%s\n" X"$as_myself" | 1518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1519 s//\1/ 1520 q 1521 } 1522 /^X\(\/\/\)[^/].*/{ 1523 s//\1/ 1524 q 1525 } 1526 /^X\(\/\/\)$/{ 1527 s//\1/ 1528 q 1529 } 1530 /^X\(\/\).*/{ 1531 s//\1/ 1532 q 1533 } 1534 s/.*/./; q'` 1535 srcdir=$ac_confdir 1536 if test ! -r "$srcdir/$ac_unique_file"; then 1537 srcdir=.. 1538 fi 1539 else 1540 ac_srcdir_defaulted=no 1541 fi 1542 if test ! -r "$srcdir/$ac_unique_file"; then 1543 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1544 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1545 fi 1546 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1547 ac_abs_confdir=`( 1548 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1549 pwd)` 1550 # When building in place, set srcdir=. 1551 if test "$ac_abs_confdir" = "$ac_pwd"; then 1552 srcdir=. 1553 fi 1554 # Remove unnecessary trailing slashes from srcdir. 1555 # Double slashes in file names in object file debugging info 1556 # mess up M-x gdb in Emacs. 1557 case $srcdir in 1558 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1559 esac 1560 for ac_var in $ac_precious_vars; do 1561 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1562 eval ac_env_${ac_var}_value=\$${ac_var} 1563 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1564 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1565 done 1566 1567 # 1568 # Report the --help message. 1569 # 1570 if test "$ac_init_help" = "long"; then 1571 # Omit some internal or obsolete options to make the list less imposing. 1572 # This message is too long to be a string in the A/UX 3.1 sh. 1573 cat <<_ACEOF 1574 'configure' configures BIND 9.20.24 to adapt to many kinds of systems. 1575 1576 Usage: $0 [OPTION]... [VAR=VALUE]... 1577 1578 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1579 VAR=VALUE. See below for descriptions of some of the useful variables. 1580 1581 Defaults for the options are specified in brackets. 1582 1583 Configuration: 1584 -h, --help display this help and exit 1585 --help=short display options specific to this package 1586 --help=recursive display the short help of all the included packages 1587 -V, --version display version information and exit 1588 -q, --quiet, --silent do not print 'checking ...' messages 1589 --cache-file=FILE cache test results in FILE [disabled] 1590 -C, --config-cache alias for '--cache-file=config.cache' 1591 -n, --no-create do not create output files 1592 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1593 1594 Installation directories: 1595 --prefix=PREFIX install architecture-independent files in PREFIX 1596 [$ac_default_prefix] 1597 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1598 [PREFIX] 1599 1600 By default, 'make install' will install all the files in 1601 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1602 an installation prefix other than '$ac_default_prefix' using '--prefix', 1603 for instance '--prefix=\$HOME'. 1604 1605 For better control, use the options below. 1606 1607 Fine tuning of the installation directories: 1608 --bindir=DIR user executables [EPREFIX/bin] 1609 --sbindir=DIR system admin executables [EPREFIX/sbin] 1610 --libexecdir=DIR program executables [EPREFIX/libexec] 1611 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1612 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1613 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1614 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1615 --libdir=DIR object code libraries [EPREFIX/lib] 1616 --includedir=DIR C header files [PREFIX/include] 1617 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1618 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1619 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1620 --infodir=DIR info documentation [DATAROOTDIR/info] 1621 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1622 --mandir=DIR man documentation [DATAROOTDIR/man] 1623 --docdir=DIR documentation root [DATAROOTDIR/doc/bind] 1624 --htmldir=DIR html documentation [DOCDIR] 1625 --dvidir=DIR dvi documentation [DOCDIR] 1626 --pdfdir=DIR pdf documentation [DOCDIR] 1627 --psdir=DIR ps documentation [DOCDIR] 1628 _ACEOF 1629 1630 cat <<\_ACEOF 1631 1632 Program names: 1633 --program-prefix=PREFIX prepend PREFIX to installed program names 1634 --program-suffix=SUFFIX append SUFFIX to installed program names 1635 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1636 1637 System types: 1638 --build=BUILD configure for building on BUILD [guessed] 1639 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1640 --target=TARGET configure for building compilers for TARGET [HOST] 1641 _ACEOF 1642 fi 1643 1644 if test -n "$ac_init_help"; then 1645 case $ac_init_help in 1646 short | recursive ) echo "Configuration of BIND 9.20.24:";; 1647 esac 1648 cat <<\_ACEOF 1649 1650 Optional Features: 1651 --disable-option-checking ignore unrecognized --enable/--with options 1652 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1653 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1654 --enable-silent-rules less verbose build output (undo: "make V=1") 1655 --disable-silent-rules verbose build output (undo: "make V=0") 1656 --disable-maintainer-mode 1657 disable make rules and dependencies not useful (and 1658 sometimes confusing) to the casual installer 1659 --enable-dependency-tracking 1660 do not reject slow dependency extractors 1661 --disable-dependency-tracking 1662 speeds up one-time build 1663 --disable-largefile omit support for large files 1664 --enable-static[=PKGS] build static libraries [default=no] 1665 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1666 both] 1667 --enable-shared[=PKGS] build shared libraries [default=yes] 1668 --enable-fast-install[=PKGS] 1669 optimize for fast installation [default=yes] 1670 --enable-aix-soname=aix|svr4|both 1671 shared library versioning (aka "SONAME") variant to 1672 provide on AIX, [default=aix]. 1673 --disable-libtool-lock avoid locking (might break parallel builds) 1674 --enable-developer enable developer build settings 1675 --enable-warn-error turn on -Werror when compiling 1676 --enable-fuzzing=<afl|libfuzzer|ossfuzz> 1677 Enable fuzzing using American Fuzzy Lop or libFuzzer 1678 (default=no) 1679 --disable-geoip support GeoIP2 geolocation ACLs if available 1680 [default=yes] 1681 --disable-doh disable DNS over HTTPS, removes dependency on 1682 libnghttp2 (default is --enable-doh) 1683 --enable-pthread-rwlock use pthread rwlock instead of internal rwlock 1684 implementation 1685 --enable-fips-mode enable FIPS mode in OpenSSL library [default=no] 1686 --disable-tcp-fastopen disable TCP Fast Open support [default=yes] 1687 --disable-chroot disable chroot 1688 --enable-fixed-rrset enable fixed rrset ordering [default=no] 1689 --enable-dnstap enable dnstap support (requires fstrm, protobuf-c) 1690 --enable-leak-detection enable the memory leak detection in external 1691 libraries (libxml2, libuv, OpenSSL) (disabled by 1692 default) 1693 --enable-singletrace enable single-query trace logging [default=no] 1694 --enable-querytrace enable very verbose query trace logging [default=no] 1695 --enable-auto-validation 1696 turn on DNSSEC validation by default, using the IANA 1697 root key [default=yes] 1698 --enable-dnsrps-dl DNS Response Policy Service delayed link 1699 [default=yes] 1700 --enable-dnsrps enable DNS Response Policy Service API 1701 --enable-tracing enable User Statically Defined Tracing 1702 --enable-year2038 support timestamps after 2038 1703 --enable-full-report report values of all configure options 1704 1705 Optional Packages: 1706 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1707 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1708 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1709 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1710 compiler's sysroot if not specified). 1711 --with-liburcu=FLAVOR Build with Userspace-RCU variant (developer-only 1712 option) (membarrier|qsbr|mb|bp) [default=membarrier]) 1713 --with-python-sys-prefix 1714 use Python's sys.prefix and sys.exec_prefix values 1715 --with-python_prefix override the default PYTHON_PREFIX 1716 --with-python_exec_prefix 1717 override the default PYTHON_EXEC_PREFIX 1718 --with-maxminddb=PATH Build with MaxMind GeoIP2 support (auto|yes|no|path) 1719 [default=auto] 1720 --with-libnghttp2 build with libnghttp2 library [yes|no|auto] (default 1721 is auto) 1722 --with-openssl=DIR root of the OpenSSL directory 1723 --with-gssapi=PATH|[/path/]krb5-config 1724 Specify path for system-supplied GSSAPI 1725 [default=auto] 1726 --with-lmdb=[PATH] use LMDB library [default=auto], optionally specify 1727 the prefix for lmdb library 1728 --with-libxml2 build with libxml2 library [yes|no|auto] (default is 1729 auto) 1730 --with-json-c build with json-c library [yes|no|detect] (default 1731 is detect) 1732 --with-zlib build with zlib for HTTP compression [default=yes] 1733 --with-readline=yes|no|libedit|readline 1734 specify readline library [default auto] 1735 --with-libidn2=PATH enable IDN support using GNU libidn2 1736 [yes|no(default)|path] 1737 --with-cmocka=detect enable CMocka based tests (default is detect) 1738 --with-jemalloc=detect enable jemalloc memory allocator (default is detect) 1739 --with-dnsrps-libname DNSRPS provider library name (librpz.so) 1740 --with-dnsrps-dir path to DNSRPS provider library 1741 --with-zonedb=detect specify default zone database type (default is 1742 "qpzone") 1743 --with-cachedb=detect specify default cache database type (default is 1744 "qpcache") 1745 1746 Some influential environment variables: 1747 CC C compiler command 1748 CFLAGS C compiler flags 1749 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1750 nonstandard directory <lib dir> 1751 LIBS libraries to pass to the linker, e.g. -l<library> 1752 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1753 you have headers in a nonstandard directory <include dir> 1754 CPP C preprocessor 1755 LT_SYS_LIBRARY_PATH 1756 User-defined run-time library search path. 1757 PKG_CONFIG path to pkg-config utility 1758 PKG_CONFIG_PATH 1759 directories to add to pkg-config's search path 1760 PKG_CONFIG_LIBDIR 1761 path overriding pkg-config's built-in search path 1762 LIBURCU_CFLAGS 1763 C compiler flags for LIBURCU, overriding pkg-config 1764 LIBURCU_LIBS 1765 linker flags for LIBURCU, overriding pkg-config 1766 RCU_VERSION version of $RCU_FLAVOR, overriding pkg-config 1767 PYTHON the Python interpreter 1768 MAXMINDDB_CFLAGS 1769 C compiler flags for MAXMINDDB, overriding pkg-config 1770 MAXMINDDB_LIBS 1771 linker flags for MAXMINDDB, overriding pkg-config 1772 MAXMINDDB_PREFIX 1773 value of prefix for libmaxminddb, overriding pkg-config 1774 LIBUV_CFLAGS 1775 C compiler flags for LIBUV, overriding pkg-config 1776 LIBUV_LIBS linker flags for LIBUV, overriding pkg-config 1777 LIBUV_VERSION 1778 version of libuv, overriding pkg-config 1779 LIBNGHTTP2_CFLAGS 1780 C compiler flags for LIBNGHTTP2, overriding pkg-config 1781 LIBNGHTTP2_LIBS 1782 linker flags for LIBNGHTTP2, overriding pkg-config 1783 OPENSSL_CFLAGS 1784 C compiler flags for OPENSSL, overriding pkg-config 1785 OPENSSL_LIBS 1786 linker flags for OPENSSL, overriding pkg-config 1787 OPENSSL_VERSION 1788 version of openssl, overriding pkg-config 1789 LMDB_CFLAGS C compiler flags for LMDB, overriding pkg-config 1790 LMDB_LIBS linker flags for LMDB, overriding pkg-config 1791 LIBXML2_CFLAGS 1792 C compiler flags for LIBXML2, overriding pkg-config 1793 LIBXML2_LIBS 1794 linker flags for LIBXML2, overriding pkg-config 1795 JSON_C_CFLAGS 1796 C compiler flags for JSON_C, overriding pkg-config 1797 JSON_C_LIBS linker flags for JSON_C, overriding pkg-config 1798 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config 1799 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config 1800 READLINE_CFLAGS 1801 C compiler flags for READLINE, overriding pkg-config 1802 READLINE_LIBS 1803 linker flags for READLINE, overriding pkg-config 1804 LIBCAP_CFLAGS 1805 C compiler flags for LIBCAP, overriding pkg-config 1806 LIBCAP_LIBS linker flags for LIBCAP, overriding pkg-config 1807 DNSTAP_CFLAGS 1808 C compiler flags for DNSTAP, overriding pkg-config 1809 DNSTAP_LIBS linker flags for DNSTAP, overriding pkg-config 1810 SPHINX_BUILD 1811 path to sphinx-build binary used to build the documentation 1812 LIBIDN2_CFLAGS 1813 C compiler flags for LIBIDN2, overriding pkg-config 1814 LIBIDN2_LIBS 1815 linker flags for LIBIDN2, overriding pkg-config 1816 CMOCKA_CFLAGS 1817 C compiler flags for CMOCKA, overriding pkg-config 1818 CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config 1819 JEMALLOC_CFLAGS 1820 C compiler flags for JEMALLOC, overriding pkg-config 1821 JEMALLOC_LIBS 1822 linker flags for JEMALLOC, overriding pkg-config 1823 JEMALLOC_VERSION 1824 version of jemalloc, overriding pkg-config 1825 DTRACE path to dtrace binary used to build User Statically Defined 1826 Tracing probes 1827 1828 Use these variables to override the choices made by 'configure' or to help 1829 it to find libraries and programs with nonstandard names/locations. 1830 1831 Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>. 1832 BIND home page: <https://www.isc.org/downloads/>. 1833 _ACEOF 1834 ac_status=$? 1835 fi 1836 1837 if test "$ac_init_help" = "recursive"; then 1838 # If there are subdirs, report their specific --help. 1839 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1840 test -d "$ac_dir" || 1841 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1842 continue 1843 ac_builddir=. 1844 1845 case "$ac_dir" in 1846 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1847 *) 1848 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1849 # A ".." for each directory in $ac_dir_suffix. 1850 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1851 case $ac_top_builddir_sub in 1852 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1853 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1854 esac ;; 1855 esac 1856 ac_abs_top_builddir=$ac_pwd 1857 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1858 # for backward compatibility: 1859 ac_top_builddir=$ac_top_build_prefix 1860 1861 case $srcdir in 1862 .) # We are building in place. 1863 ac_srcdir=. 1864 ac_top_srcdir=$ac_top_builddir_sub 1865 ac_abs_top_srcdir=$ac_pwd ;; 1866 [\\/]* | ?:[\\/]* ) # Absolute name. 1867 ac_srcdir=$srcdir$ac_dir_suffix; 1868 ac_top_srcdir=$srcdir 1869 ac_abs_top_srcdir=$srcdir ;; 1870 *) # Relative name. 1871 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1872 ac_top_srcdir=$ac_top_build_prefix$srcdir 1873 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1874 esac 1875 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1876 1877 cd "$ac_dir" || { ac_status=$?; continue; } 1878 # Check for configure.gnu first; this name is used for a wrapper for 1879 # Metaconfig's "Configure" on case-insensitive file systems. 1880 if test -f "$ac_srcdir/configure.gnu"; then 1881 echo && 1882 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1883 elif test -f "$ac_srcdir/configure"; then 1884 echo && 1885 $SHELL "$ac_srcdir/configure" --help=recursive 1886 else 1887 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1888 fi || ac_status=$? 1889 cd "$ac_pwd" || { ac_status=$?; break; } 1890 done 1891 fi 1892 1893 test -n "$ac_init_help" && exit $ac_status 1894 if $ac_init_version; then 1895 cat <<\_ACEOF 1896 BIND configure 9.20.24 1897 generated by GNU Autoconf 2.72 1898 1899 Copyright (C) 2023 Free Software Foundation, Inc. 1900 This configure script is free software; the Free Software Foundation 1901 gives unlimited permission to copy, distribute and modify it. 1902 _ACEOF 1903 exit 1904 fi 1905 1906 ## ------------------------ ## 1907 ## Autoconf initialization. ## 1908 ## ------------------------ ## 1909 1910 # ac_fn_c_try_compile LINENO 1911 # -------------------------- 1912 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1913 ac_fn_c_try_compile () 1914 { 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1916 rm -f conftest.$ac_objext conftest.beam 1917 if { { ac_try="$ac_compile" 1918 case "(($ac_try" in 1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1920 *) ac_try_echo=$ac_try;; 1921 esac 1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1923 printf "%s\n" "$ac_try_echo"; } >&5 1924 (eval "$ac_compile") 2>conftest.err 1925 ac_status=$? 1926 if test -s conftest.err; then 1927 grep -v '^ *+' conftest.err >conftest.er1 1928 cat conftest.er1 >&5 1929 mv -f conftest.er1 conftest.err 1930 fi 1931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1932 test $ac_status = 0; } && { 1933 test -z "$ac_c_werror_flag" || 1934 test ! -s conftest.err 1935 } && test -s conftest.$ac_objext 1936 then : 1937 ac_retval=0 1938 else case e in #( 1939 e) printf "%s\n" "$as_me: failed program was:" >&5 1940 sed 's/^/| /' conftest.$ac_ext >&5 1941 1942 ac_retval=1 ;; 1943 esac 1944 fi 1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1946 as_fn_set_status $ac_retval 1947 1948 } # ac_fn_c_try_compile 1949 1950 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1951 # ------------------------------------------------------- 1952 # Tests whether HEADER exists and can be compiled using the include files in 1953 # INCLUDES, setting the cache variable VAR accordingly. 1954 ac_fn_c_check_header_compile () 1955 { 1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1958 printf %s "checking for $2... " >&6; } 1959 if eval test \${$3+y} 1960 then : 1961 printf %s "(cached) " >&6 1962 else case e in #( 1963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1964 /* end confdefs.h. */ 1965 $4 1966 #include <$2> 1967 _ACEOF 1968 if ac_fn_c_try_compile "$LINENO" 1969 then : 1970 eval "$3=yes" 1971 else case e in #( 1972 e) eval "$3=no" ;; 1973 esac 1974 fi 1975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1976 esac 1977 fi 1978 eval ac_res=\$$3 1979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1980 printf "%s\n" "$ac_res" >&6; } 1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1982 1983 } # ac_fn_c_check_header_compile 1984 1985 # ac_fn_c_try_cpp LINENO 1986 # ---------------------- 1987 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1988 ac_fn_c_try_cpp () 1989 { 1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1991 if { { ac_try="$ac_cpp conftest.$ac_ext" 1992 case "(($ac_try" in 1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1994 *) ac_try_echo=$ac_try;; 1995 esac 1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1997 printf "%s\n" "$ac_try_echo"; } >&5 1998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1999 ac_status=$? 2000 if test -s conftest.err; then 2001 grep -v '^ *+' conftest.err >conftest.er1 2002 cat conftest.er1 >&5 2003 mv -f conftest.er1 conftest.err 2004 fi 2005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2006 test $ac_status = 0; } > conftest.i && { 2007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2008 test ! -s conftest.err 2009 } 2010 then : 2011 ac_retval=0 2012 else case e in #( 2013 e) printf "%s\n" "$as_me: failed program was:" >&5 2014 sed 's/^/| /' conftest.$ac_ext >&5 2015 2016 ac_retval=1 ;; 2017 esac 2018 fi 2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2020 as_fn_set_status $ac_retval 2021 2022 } # ac_fn_c_try_cpp 2023 2024 # ac_fn_c_try_link LINENO 2025 # ----------------------- 2026 # Try to link conftest.$ac_ext, and return whether this succeeded. 2027 ac_fn_c_try_link () 2028 { 2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2030 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2031 if { { ac_try="$ac_link" 2032 case "(($ac_try" in 2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2034 *) ac_try_echo=$ac_try;; 2035 esac 2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2037 printf "%s\n" "$ac_try_echo"; } >&5 2038 (eval "$ac_link") 2>conftest.err 2039 ac_status=$? 2040 if test -s conftest.err; then 2041 grep -v '^ *+' conftest.err >conftest.er1 2042 cat conftest.er1 >&5 2043 mv -f conftest.er1 conftest.err 2044 fi 2045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2046 test $ac_status = 0; } && { 2047 test -z "$ac_c_werror_flag" || 2048 test ! -s conftest.err 2049 } && test -s conftest$ac_exeext && { 2050 test "$cross_compiling" = yes || 2051 test -x conftest$ac_exeext 2052 } 2053 then : 2054 ac_retval=0 2055 else case e in #( 2056 e) printf "%s\n" "$as_me: failed program was:" >&5 2057 sed 's/^/| /' conftest.$ac_ext >&5 2058 2059 ac_retval=1 ;; 2060 esac 2061 fi 2062 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2063 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2064 # interfere with the next link command; also delete a directory that is 2065 # left behind by Apple's compiler. We do this before executing the actions. 2066 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2068 as_fn_set_status $ac_retval 2069 2070 } # ac_fn_c_try_link 2071 2072 # ac_fn_c_try_run LINENO 2073 # ---------------------- 2074 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2075 # executables *can* be run. 2076 ac_fn_c_try_run () 2077 { 2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2079 if { { ac_try="$ac_link" 2080 case "(($ac_try" in 2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2082 *) ac_try_echo=$ac_try;; 2083 esac 2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2085 printf "%s\n" "$ac_try_echo"; } >&5 2086 (eval "$ac_link") 2>&5 2087 ac_status=$? 2088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2089 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2090 { { case "(($ac_try" in 2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2092 *) ac_try_echo=$ac_try;; 2093 esac 2094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2095 printf "%s\n" "$ac_try_echo"; } >&5 2096 (eval "$ac_try") 2>&5 2097 ac_status=$? 2098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2099 test $ac_status = 0; }; } 2100 then : 2101 ac_retval=0 2102 else case e in #( 2103 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2104 printf "%s\n" "$as_me: failed program was:" >&5 2105 sed 's/^/| /' conftest.$ac_ext >&5 2106 2107 ac_retval=$ac_status ;; 2108 esac 2109 fi 2110 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2112 as_fn_set_status $ac_retval 2113 2114 } # ac_fn_c_try_run 2115 2116 # ac_fn_c_check_func LINENO FUNC VAR 2117 # ---------------------------------- 2118 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2119 ac_fn_c_check_func () 2120 { 2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2123 printf %s "checking for $2... " >&6; } 2124 if eval test \${$3+y} 2125 then : 2126 printf %s "(cached) " >&6 2127 else case e in #( 2128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2129 /* end confdefs.h. */ 2130 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2131 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2132 #define $2 innocuous_$2 2133 2134 /* System header to define __stub macros and hopefully few prototypes, 2135 which can conflict with char $2 (void); below. */ 2136 2137 #include <limits.h> 2138 #undef $2 2139 2140 /* Override any GCC internal prototype to avoid an error. 2141 Use char because int might match the return type of a GCC 2142 builtin and then its argument prototype would still apply. */ 2143 #ifdef __cplusplus 2144 extern "C" 2145 #endif 2146 char $2 (void); 2147 /* The GNU C library defines this for functions which it implements 2148 to always fail with ENOSYS. Some functions are actually named 2149 something starting with __ and the normal name is an alias. */ 2150 #if defined __stub_$2 || defined __stub___$2 2151 choke me 2152 #endif 2153 2154 int 2155 main (void) 2156 { 2157 return $2 (); 2158 ; 2159 return 0; 2160 } 2161 _ACEOF 2162 if ac_fn_c_try_link "$LINENO" 2163 then : 2164 eval "$3=yes" 2165 else case e in #( 2166 e) eval "$3=no" ;; 2167 esac 2168 fi 2169 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2170 conftest$ac_exeext conftest.$ac_ext ;; 2171 esac 2172 fi 2173 eval ac_res=\$$3 2174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2175 printf "%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. 2184 ac_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 2188 printf %s "checking for $2... " >&6; } 2189 if eval test \${$3+y} 2190 then : 2191 printf %s "(cached) " >&6 2192 else case e in #( 2193 e) eval "$3=no" 2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2195 /* end confdefs.h. */ 2196 $4 2197 int 2198 main (void) 2199 { 2200 if (sizeof ($2)) 2201 return 0; 2202 ; 2203 return 0; 2204 } 2205 _ACEOF 2206 if ac_fn_c_try_compile "$LINENO" 2207 then : 2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2209 /* end confdefs.h. */ 2210 $4 2211 int 2212 main (void) 2213 { 2214 if (sizeof (($2))) 2215 return 0; 2216 ; 2217 return 0; 2218 } 2219 _ACEOF 2220 if ac_fn_c_try_compile "$LINENO" 2221 then : 2222 2223 else case e in #( 2224 e) eval "$3=yes" ;; 2225 esac 2226 fi 2227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2228 fi 2229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2230 esac 2231 fi 2232 eval ac_res=\$$3 2233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2234 printf "%s\n" "$ac_res" >&6; } 2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2236 2237 } # ac_fn_c_check_type 2238 2239 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2240 # ------------------------------------------------------------------ 2241 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2242 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2243 ac_fn_check_decl () 2244 { 2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2246 as_decl_name=`echo $2|sed 's/ *(.*//'` 2247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2248 printf %s "checking whether $as_decl_name is declared... " >&6; } 2249 if eval test \${$3+y} 2250 then : 2251 printf %s "(cached) " >&6 2252 else case e in #( 2253 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2254 eval ac_save_FLAGS=\$$6 2255 as_fn_append $6 " $5" 2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2257 /* end confdefs.h. */ 2258 $4 2259 int 2260 main (void) 2261 { 2262 #ifndef $as_decl_name 2263 #ifdef __cplusplus 2264 (void) $as_decl_use; 2265 #else 2266 (void) $as_decl_name; 2267 #endif 2268 #endif 2269 2270 ; 2271 return 0; 2272 } 2273 _ACEOF 2274 if ac_fn_c_try_compile "$LINENO" 2275 then : 2276 eval "$3=yes" 2277 else case e in #( 2278 e) eval "$3=no" ;; 2279 esac 2280 fi 2281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2282 eval $6=\$ac_save_FLAGS 2283 ;; 2284 esac 2285 fi 2286 eval ac_res=\$$3 2287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2288 printf "%s\n" "$ac_res" >&6; } 2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2290 2291 } # ac_fn_check_decl 2292 ac_configure_args_raw= 2293 for ac_arg 2294 do 2295 case $ac_arg in 2296 *\'*) 2297 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2298 esac 2299 as_fn_append ac_configure_args_raw " '$ac_arg'" 2300 done 2301 2302 case $ac_configure_args_raw in 2303 *$as_nl*) 2304 ac_safe_unquote= ;; 2305 *) 2306 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2307 ac_unsafe_a="$ac_unsafe_z#~" 2308 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2309 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2310 esac 2311 2312 cat >config.log <<_ACEOF 2313 This file contains any messages produced by compilers while 2314 running configure, to aid debugging if configure makes a mistake. 2315 2316 It was created by BIND $as_me 9.20.24, which was 2317 generated by GNU Autoconf 2.72. Invocation command line was 2318 2319 $ $0$ac_configure_args_raw 2320 2321 _ACEOF 2322 exec 5>>config.log 2323 { 2324 cat <<_ASUNAME 2325 ## --------- ## 2326 ## Platform. ## 2327 ## --------- ## 2328 2329 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2330 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2331 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2332 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2333 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2334 2335 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2336 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2337 2338 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2339 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2340 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2341 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2342 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2343 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2344 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2345 2346 _ASUNAME 2347 2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2349 for as_dir in $PATH 2350 do 2351 IFS=$as_save_IFS 2352 case $as_dir in #((( 2353 '') as_dir=./ ;; 2354 */) ;; 2355 *) as_dir=$as_dir/ ;; 2356 esac 2357 printf "%s\n" "PATH: $as_dir" 2358 done 2359 IFS=$as_save_IFS 2360 2361 } >&5 2362 2363 cat >&5 <<_ACEOF 2364 2365 2366 ## ----------- ## 2367 ## Core tests. ## 2368 ## ----------- ## 2369 2370 _ACEOF 2371 2372 2373 # Keep a trace of the command line. 2374 # Strip out --no-create and --no-recursion so they do not pile up. 2375 # Strip out --silent because we don't want to record it for future runs. 2376 # Also quote any args containing shell meta-characters. 2377 # Make two passes to allow for proper duplicate-argument suppression. 2378 ac_configure_args= 2379 ac_configure_args0= 2380 ac_configure_args1= 2381 ac_must_keep_next=false 2382 for ac_pass in 1 2 2383 do 2384 for ac_arg 2385 do 2386 case $ac_arg in 2387 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2389 | -silent | --silent | --silen | --sile | --sil) 2390 continue ;; 2391 *\'*) 2392 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2393 esac 2394 case $ac_pass in 2395 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2396 2) 2397 as_fn_append ac_configure_args1 " '$ac_arg'" 2398 if test $ac_must_keep_next = true; then 2399 ac_must_keep_next=false # Got value, back to normal. 2400 else 2401 case $ac_arg in 2402 *=* | --config-cache | -C | -disable-* | --disable-* \ 2403 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2404 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2405 | -with-* | --with-* | -without-* | --without-* | --x) 2406 case "$ac_configure_args0 " in 2407 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2408 esac 2409 ;; 2410 -* ) ac_must_keep_next=true ;; 2411 esac 2412 fi 2413 as_fn_append ac_configure_args " '$ac_arg'" 2414 ;; 2415 esac 2416 done 2417 done 2418 { ac_configure_args0=; unset ac_configure_args0;} 2419 { ac_configure_args1=; unset ac_configure_args1;} 2420 2421 # When interrupted or exit'd, cleanup temporary files, and complete 2422 # config.log. We remove comments because anyway the quotes in there 2423 # would cause problems or look ugly. 2424 # WARNING: Use '\'' to represent an apostrophe within the trap. 2425 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2426 trap 'exit_status=$? 2427 # Sanitize IFS. 2428 IFS=" "" $as_nl" 2429 # Save into config.log some information that might help in debugging. 2430 { 2431 echo 2432 2433 printf "%s\n" "## ---------------- ## 2434 ## Cache variables. ## 2435 ## ---------------- ##" 2436 echo 2437 # The following way of writing the cache mishandles newlines in values, 2438 ( 2439 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2440 eval ac_val=\$$ac_var 2441 case $ac_val in #( 2442 *${as_nl}*) 2443 case $ac_var in #( 2444 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2445 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2446 esac 2447 case $ac_var in #( 2448 _ | IFS | as_nl) ;; #( 2449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2450 *) { eval $ac_var=; unset $ac_var;} ;; 2451 esac ;; 2452 esac 2453 done 2454 (set) 2>&1 | 2455 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2456 *${as_nl}ac_space=\ *) 2457 sed -n \ 2458 "s/'\''/'\''\\\\'\'''\''/g; 2459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2460 ;; #( 2461 *) 2462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2463 ;; 2464 esac | 2465 sort 2466 ) 2467 echo 2468 2469 printf "%s\n" "## ----------------- ## 2470 ## Output variables. ## 2471 ## ----------------- ##" 2472 echo 2473 for ac_var in $ac_subst_vars 2474 do 2475 eval ac_val=\$$ac_var 2476 case $ac_val in 2477 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2478 esac 2479 printf "%s\n" "$ac_var='\''$ac_val'\''" 2480 done | sort 2481 echo 2482 2483 if test -n "$ac_subst_files"; then 2484 printf "%s\n" "## ------------------- ## 2485 ## File substitutions. ## 2486 ## ------------------- ##" 2487 echo 2488 for ac_var in $ac_subst_files 2489 do 2490 eval ac_val=\$$ac_var 2491 case $ac_val in 2492 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2493 esac 2494 printf "%s\n" "$ac_var='\''$ac_val'\''" 2495 done | sort 2496 echo 2497 fi 2498 2499 if test -s confdefs.h; then 2500 printf "%s\n" "## ----------- ## 2501 ## confdefs.h. ## 2502 ## ----------- ##" 2503 echo 2504 cat confdefs.h 2505 echo 2506 fi 2507 test "$ac_signal" != 0 && 2508 printf "%s\n" "$as_me: caught signal $ac_signal" 2509 printf "%s\n" "$as_me: exit $exit_status" 2510 } >&5 2511 rm -f core *.core core.conftest.* && 2512 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2513 exit $exit_status 2514 ' 0 2515 for ac_signal in 1 2 13 15; do 2516 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2517 done 2518 ac_signal=0 2519 2520 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2521 rm -f -r conftest* confdefs.h 2522 2523 printf "%s\n" "/* confdefs.h */" > confdefs.h 2524 2525 # Predefined preprocessor variables. 2526 2527 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2528 2529 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2530 2531 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2532 2533 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2534 2535 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2536 2537 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2538 2539 2540 # Let the site file select an alternate cache file if it wants to. 2541 # Prefer an explicitly selected file to automatically selected ones. 2542 if test -n "$CONFIG_SITE"; then 2543 ac_site_files="$CONFIG_SITE" 2544 elif test "x$prefix" != xNONE; then 2545 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2546 else 2547 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2548 fi 2549 2550 for ac_site_file in $ac_site_files 2551 do 2552 case $ac_site_file in #( 2553 */*) : 2554 ;; #( 2555 *) : 2556 ac_site_file=./$ac_site_file ;; 2557 esac 2558 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2560 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2561 sed 's/^/| /' "$ac_site_file" >&5 2562 . "$ac_site_file" \ 2563 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2564 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2565 as_fn_error $? "failed to load site script $ac_site_file 2566 See 'config.log' for more details" "$LINENO" 5; } 2567 fi 2568 done 2569 2570 if test -r "$cache_file"; then 2571 # Some versions of bash will fail to source /dev/null (special files 2572 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2573 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2575 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2576 case $cache_file in 2577 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2578 *) . "./$cache_file";; 2579 esac 2580 fi 2581 else 2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2583 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2584 >$cache_file 2585 fi 2586 2587 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2588 # Test code for whether the C compiler supports C89 (global declarations) 2589 ac_c_conftest_c89_globals=' 2590 /* Does the compiler advertise C89 conformance? 2591 Do not test the value of __STDC__, because some compilers set it to 0 2592 while being otherwise adequately conformant. */ 2593 #if !defined __STDC__ 2594 # error "Compiler does not advertise C89 conformance" 2595 #endif 2596 2597 #include <stddef.h> 2598 #include <stdarg.h> 2599 struct stat; 2600 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2601 struct buf { int x; }; 2602 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2603 static char *e (char **p, int i) 2604 { 2605 return p[i]; 2606 } 2607 static char *f (char * (*g) (char **, int), char **p, ...) 2608 { 2609 char *s; 2610 va_list v; 2611 va_start (v,p); 2612 s = g (p, va_arg (v,int)); 2613 va_end (v); 2614 return s; 2615 } 2616 2617 /* C89 style stringification. */ 2618 #define noexpand_stringify(a) #a 2619 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2620 2621 /* C89 style token pasting. Exercises some of the corner cases that 2622 e.g. old MSVC gets wrong, but not very hard. */ 2623 #define noexpand_concat(a,b) a##b 2624 #define expand_concat(a,b) noexpand_concat(a,b) 2625 extern int vA; 2626 extern int vbee; 2627 #define aye A 2628 #define bee B 2629 int *pvA = &expand_concat(v,aye); 2630 int *pvbee = &noexpand_concat(v,bee); 2631 2632 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2633 function prototypes and stuff, but not \xHH hex character constants. 2634 These do not provoke an error unfortunately, instead are silently treated 2635 as an "x". The following induces an error, until -std is added to get 2636 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2637 array size at least. It is necessary to write \x00 == 0 to get something 2638 that is true only with -std. */ 2639 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2640 2641 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2642 inside strings and character constants. */ 2643 #define FOO(x) '\''x'\'' 2644 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2645 2646 int test (int i, double x); 2647 struct s1 {int (*f) (int a);}; 2648 struct s2 {int (*f) (double a);}; 2649 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2650 int, int);' 2651 2652 # Test code for whether the C compiler supports C89 (body of main). 2653 ac_c_conftest_c89_main=' 2654 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2655 ' 2656 2657 # Test code for whether the C compiler supports C99 (global declarations) 2658 ac_c_conftest_c99_globals=' 2659 /* Does the compiler advertise C99 conformance? */ 2660 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2661 # error "Compiler does not advertise C99 conformance" 2662 #endif 2663 2664 // See if C++-style comments work. 2665 2666 #include <stdbool.h> 2667 extern int puts (const char *); 2668 extern int printf (const char *, ...); 2669 extern int dprintf (int, const char *, ...); 2670 extern void *malloc (size_t); 2671 extern void free (void *); 2672 2673 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2674 // dprintf is used instead of fprintf to avoid needing to declare 2675 // FILE and stderr. 2676 #define debug(...) dprintf (2, __VA_ARGS__) 2677 #define showlist(...) puts (#__VA_ARGS__) 2678 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2679 static void 2680 test_varargs_macros (void) 2681 { 2682 int x = 1234; 2683 int y = 5678; 2684 debug ("Flag"); 2685 debug ("X = %d\n", x); 2686 showlist (The first, second, and third items.); 2687 report (x>y, "x is %d but y is %d", x, y); 2688 } 2689 2690 // Check long long types. 2691 #define BIG64 18446744073709551615ull 2692 #define BIG32 4294967295ul 2693 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2694 #if !BIG_OK 2695 #error "your preprocessor is broken" 2696 #endif 2697 #if BIG_OK 2698 #else 2699 #error "your preprocessor is broken" 2700 #endif 2701 static long long int bignum = -9223372036854775807LL; 2702 static unsigned long long int ubignum = BIG64; 2703 2704 struct incomplete_array 2705 { 2706 int datasize; 2707 double data[]; 2708 }; 2709 2710 struct named_init { 2711 int number; 2712 const wchar_t *name; 2713 double average; 2714 }; 2715 2716 typedef const char *ccp; 2717 2718 static inline int 2719 test_restrict (ccp restrict text) 2720 { 2721 // Iterate through items via the restricted pointer. 2722 // Also check for declarations in for loops. 2723 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2724 continue; 2725 return 0; 2726 } 2727 2728 // Check varargs and va_copy. 2729 static bool 2730 test_varargs (const char *format, ...) 2731 { 2732 va_list args; 2733 va_start (args, format); 2734 va_list args_copy; 2735 va_copy (args_copy, args); 2736 2737 const char *str = ""; 2738 int number = 0; 2739 float fnumber = 0; 2740 2741 while (*format) 2742 { 2743 switch (*format++) 2744 { 2745 case '\''s'\'': // string 2746 str = va_arg (args_copy, const char *); 2747 break; 2748 case '\''d'\'': // int 2749 number = va_arg (args_copy, int); 2750 break; 2751 case '\''f'\'': // float 2752 fnumber = va_arg (args_copy, double); 2753 break; 2754 default: 2755 break; 2756 } 2757 } 2758 va_end (args_copy); 2759 va_end (args); 2760 2761 return *str && number && fnumber; 2762 } 2763 ' 2764 2765 # Test code for whether the C compiler supports C99 (body of main). 2766 ac_c_conftest_c99_main=' 2767 // Check bool. 2768 _Bool success = false; 2769 success |= (argc != 0); 2770 2771 // Check restrict. 2772 if (test_restrict ("String literal") == 0) 2773 success = true; 2774 char *restrict newvar = "Another string"; 2775 2776 // Check varargs. 2777 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2778 test_varargs_macros (); 2779 2780 // Check flexible array members. 2781 struct incomplete_array *ia = 2782 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2783 ia->datasize = 10; 2784 for (int i = 0; i < ia->datasize; ++i) 2785 ia->data[i] = i * 1.234; 2786 // Work around memory leak warnings. 2787 free (ia); 2788 2789 // Check named initializers. 2790 struct named_init ni = { 2791 .number = 34, 2792 .name = L"Test wide string", 2793 .average = 543.34343, 2794 }; 2795 2796 ni.number = 58; 2797 2798 int dynamic_array[ni.number]; 2799 dynamic_array[0] = argv[0][0]; 2800 dynamic_array[ni.number - 1] = 543; 2801 2802 // work around unused variable warnings 2803 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2804 || dynamic_array[ni.number - 1] != 543); 2805 ' 2806 2807 # Test code for whether the C compiler supports C11 (global declarations) 2808 ac_c_conftest_c11_globals=' 2809 /* Does the compiler advertise C11 conformance? */ 2810 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2811 # error "Compiler does not advertise C11 conformance" 2812 #endif 2813 2814 // Check _Alignas. 2815 char _Alignas (double) aligned_as_double; 2816 char _Alignas (0) no_special_alignment; 2817 extern char aligned_as_int; 2818 char _Alignas (0) _Alignas (int) aligned_as_int; 2819 2820 // Check _Alignof. 2821 enum 2822 { 2823 int_alignment = _Alignof (int), 2824 int_array_alignment = _Alignof (int[100]), 2825 char_alignment = _Alignof (char) 2826 }; 2827 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2828 2829 // Check _Noreturn. 2830 int _Noreturn does_not_return (void) { for (;;) continue; } 2831 2832 // Check _Static_assert. 2833 struct test_static_assert 2834 { 2835 int x; 2836 _Static_assert (sizeof (int) <= sizeof (long int), 2837 "_Static_assert does not work in struct"); 2838 long int y; 2839 }; 2840 2841 // Check UTF-8 literals. 2842 #define u8 syntax error! 2843 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2844 2845 // Check duplicate typedefs. 2846 typedef long *long_ptr; 2847 typedef long int *long_ptr; 2848 typedef long_ptr long_ptr; 2849 2850 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2851 struct anonymous 2852 { 2853 union { 2854 struct { int i; int j; }; 2855 struct { int k; long int l; } w; 2856 }; 2857 int m; 2858 } v1; 2859 ' 2860 2861 # Test code for whether the C compiler supports C11 (body of main). 2862 ac_c_conftest_c11_main=' 2863 _Static_assert ((offsetof (struct anonymous, i) 2864 == offsetof (struct anonymous, w.k)), 2865 "Anonymous union alignment botch"); 2866 v1.i = 2; 2867 v1.w.k = 5; 2868 ok |= v1.i != 5; 2869 ' 2870 2871 # Test code for whether the C compiler supports C11 (complete). 2872 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2873 ${ac_c_conftest_c99_globals} 2874 ${ac_c_conftest_c11_globals} 2875 2876 int 2877 main (int argc, char **argv) 2878 { 2879 int ok = 0; 2880 ${ac_c_conftest_c89_main} 2881 ${ac_c_conftest_c99_main} 2882 ${ac_c_conftest_c11_main} 2883 return ok; 2884 } 2885 " 2886 2887 # Test code for whether the C compiler supports C99 (complete). 2888 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2889 ${ac_c_conftest_c99_globals} 2890 2891 int 2892 main (int argc, char **argv) 2893 { 2894 int ok = 0; 2895 ${ac_c_conftest_c89_main} 2896 ${ac_c_conftest_c99_main} 2897 return ok; 2898 } 2899 " 2900 2901 # Test code for whether the C compiler supports C89 (complete). 2902 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2903 2904 int 2905 main (int argc, char **argv) 2906 { 2907 int ok = 0; 2908 ${ac_c_conftest_c89_main} 2909 return ok; 2910 } 2911 " 2912 2913 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2914 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2915 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2916 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2917 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2918 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2919 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2920 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2921 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2922 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2923 2924 # Auxiliary files required by this configure script. 2925 ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub" 2926 2927 # Locations in which to look for auxiliary files. 2928 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2929 2930 # Search for a directory containing all of the required auxiliary files, 2931 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2932 # If we don't find one directory that contains all the files we need, 2933 # we report the set of missing files from the *first* directory in 2934 # $ac_aux_dir_candidates and give up. 2935 ac_missing_aux_files="" 2936 ac_first_candidate=: 2937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939 as_found=false 2940 for as_dir in $ac_aux_dir_candidates 2941 do 2942 IFS=$as_save_IFS 2943 case $as_dir in #((( 2944 '') as_dir=./ ;; 2945 */) ;; 2946 *) as_dir=$as_dir/ ;; 2947 esac 2948 as_found=: 2949 2950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2951 ac_aux_dir_found=yes 2952 ac_install_sh= 2953 for ac_aux in $ac_aux_files 2954 do 2955 # As a special case, if "install-sh" is required, that requirement 2956 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2957 # and $ac_install_sh is set appropriately for whichever one is found. 2958 if test x"$ac_aux" = x"install-sh" 2959 then 2960 if test -f "${as_dir}install-sh"; then 2961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2962 ac_install_sh="${as_dir}install-sh -c" 2963 elif test -f "${as_dir}install.sh"; then 2964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2965 ac_install_sh="${as_dir}install.sh -c" 2966 elif test -f "${as_dir}shtool"; then 2967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2968 ac_install_sh="${as_dir}shtool install -c" 2969 else 2970 ac_aux_dir_found=no 2971 if $ac_first_candidate; then 2972 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2973 else 2974 break 2975 fi 2976 fi 2977 else 2978 if test -f "${as_dir}${ac_aux}"; then 2979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2980 else 2981 ac_aux_dir_found=no 2982 if $ac_first_candidate; then 2983 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2984 else 2985 break 2986 fi 2987 fi 2988 fi 2989 done 2990 if test "$ac_aux_dir_found" = yes; then 2991 ac_aux_dir="$as_dir" 2992 break 2993 fi 2994 ac_first_candidate=false 2995 2996 as_found=false 2997 done 2998 IFS=$as_save_IFS 2999 if $as_found 3000 then : 3001 3002 else case e in #( 3003 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 3004 esac 3005 fi 3006 3007 3008 # These three variables are undocumented and unsupported, 3009 # and are intended to be withdrawn in a future Autoconf release. 3010 # They can cause serious problems if a builder's source tree is in a directory 3011 # whose full name contains unusual characters. 3012 if test -f "${ac_aux_dir}config.guess"; then 3013 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3014 fi 3015 if test -f "${ac_aux_dir}config.sub"; then 3016 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3017 fi 3018 if test -f "$ac_aux_dir/configure"; then 3019 ac_configure="$SHELL ${ac_aux_dir}configure" 3020 fi 3021 3022 # Check that the precious variables saved in the cache have kept the same 3023 # value. 3024 ac_cache_corrupted=false 3025 for ac_var in $ac_precious_vars; do 3026 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3027 eval ac_new_set=\$ac_env_${ac_var}_set 3028 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3029 eval ac_new_val=\$ac_env_${ac_var}_value 3030 case $ac_old_set,$ac_new_set in 3031 set,) 3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 3033 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 3034 ac_cache_corrupted=: ;; 3035 ,set) 3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 3037 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 3038 ac_cache_corrupted=: ;; 3039 ,);; 3040 *) 3041 if test "x$ac_old_val" != "x$ac_new_val"; then 3042 # differences in whitespace do not lead to failure. 3043 ac_old_val_w=`echo x $ac_old_val` 3044 ac_new_val_w=`echo x $ac_new_val` 3045 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 3047 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 3048 ac_cache_corrupted=: 3049 else 3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 3051 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 3052 eval $ac_var=\$ac_old_val 3053 fi 3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 3055 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 3057 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 3058 fi;; 3059 esac 3060 # Pass precious variables to config.status. 3061 if test "$ac_new_set" = set; then 3062 case $ac_new_val in 3063 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3064 *) ac_arg=$ac_var=$ac_new_val ;; 3065 esac 3066 case " $ac_configure_args " in 3067 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3068 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3069 esac 3070 fi 3071 done 3072 if $ac_cache_corrupted; then 3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3074 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3076 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3077 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 3078 and start over" "$LINENO" 5 3079 fi 3080 ## -------------------- ## 3081 ## Main body of script. ## 3082 ## -------------------- ## 3083 3084 ac_ext=c 3085 ac_cpp='$CPP $CPPFLAGS' 3086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3088 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3089 3090 3091 3092 3093 3094 printf "%s\n" "#define PACKAGE_VERSION_MAJOR \"9\"" >>confdefs.h 3095 3096 3097 printf "%s\n" "#define PACKAGE_VERSION_MINOR \"20\"" >>confdefs.h 3098 3099 3100 printf "%s\n" "#define PACKAGE_VERSION_PATCH \"24\"" >>confdefs.h 3101 3102 3103 printf "%s\n" "#define PACKAGE_VERSION_EXTRA \"\"" >>confdefs.h 3104 3105 3106 printf "%s\n" "#define PACKAGE_DESCRIPTION \" (Stable Release)\"" >>confdefs.h 3107 3108 3109 printf "%s\n" "#define PACKAGE_SRCID \"e5d43f1\"" >>confdefs.h 3110 3111 3112 bind_CONFIGARGS="${ac_configure_args:-default}" 3113 3114 printf "%s\n" "#define PACKAGE_CONFIGARGS \"$bind_CONFIGARGS\"" >>confdefs.h 3115 3116 3117 3118 printf "%s\n" "#define PACKAGE_BUILDER \"make\"" >>confdefs.h 3119 3120 3121 # 3122 # Get the Canonical System Type 3123 # 3124 3125 3126 3127 # Make sure we can run config.sub. 3128 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3129 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3130 3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3132 printf %s "checking build system type... " >&6; } 3133 if test ${ac_cv_build+y} 3134 then : 3135 printf %s "(cached) " >&6 3136 else case e in #( 3137 e) ac_build_alias=$build_alias 3138 test "x$ac_build_alias" = x && 3139 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3140 test "x$ac_build_alias" = x && 3141 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3142 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3143 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3144 ;; 3145 esac 3146 fi 3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3148 printf "%s\n" "$ac_cv_build" >&6; } 3149 case $ac_cv_build in 3150 *-*-*) ;; 3151 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3152 esac 3153 build=$ac_cv_build 3154 ac_save_IFS=$IFS; IFS='-' 3155 set x $ac_cv_build 3156 shift 3157 build_cpu=$1 3158 build_vendor=$2 3159 shift; shift 3160 # Remember, the first character of IFS is used to create $*, 3161 # except with old shells: 3162 build_os=$* 3163 IFS=$ac_save_IFS 3164 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3165 3166 3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3168 printf %s "checking host system type... " >&6; } 3169 if test ${ac_cv_host+y} 3170 then : 3171 printf %s "(cached) " >&6 3172 else case e in #( 3173 e) if test "x$host_alias" = x; then 3174 ac_cv_host=$ac_cv_build 3175 else 3176 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3177 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3178 fi 3179 ;; 3180 esac 3181 fi 3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3183 printf "%s\n" "$ac_cv_host" >&6; } 3184 case $ac_cv_host in 3185 *-*-*) ;; 3186 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3187 esac 3188 host=$ac_cv_host 3189 ac_save_IFS=$IFS; IFS='-' 3190 set x $ac_cv_host 3191 shift 3192 host_cpu=$1 3193 host_vendor=$2 3194 shift; shift 3195 # Remember, the first character of IFS is used to create $*, 3196 # except with old shells: 3197 host_os=$* 3198 IFS=$ac_save_IFS 3199 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3200 3201 3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3203 printf %s "checking target system type... " >&6; } 3204 if test ${ac_cv_target+y} 3205 then : 3206 printf %s "(cached) " >&6 3207 else case e in #( 3208 e) if test "x$target_alias" = x; then 3209 ac_cv_target=$ac_cv_host 3210 else 3211 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || 3212 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 3213 fi 3214 ;; 3215 esac 3216 fi 3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3218 printf "%s\n" "$ac_cv_target" >&6; } 3219 case $ac_cv_target in 3220 *-*-*) ;; 3221 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3222 esac 3223 target=$ac_cv_target 3224 ac_save_IFS=$IFS; IFS='-' 3225 set x $ac_cv_target 3226 shift 3227 target_cpu=$1 3228 target_vendor=$2 3229 shift; shift 3230 # Remember, the first character of IFS is used to create $*, 3231 # except with old shells: 3232 target_os=$* 3233 IFS=$ac_save_IFS 3234 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3235 3236 3237 # The aliases save the names the user supplied, while $host etc. 3238 # will get canonicalized. 3239 test -n "$target_alias" && 3240 test "$program_prefix$program_suffix$program_transform_name" = \ 3241 NONENONEs,x,x, && 3242 program_prefix=${target_alias}- 3243 3244 3245 am__api_version='1.17' 3246 3247 3248 # Find a good install program. We prefer a C program (faster), 3249 # so one script is as good as another. But avoid the broken or 3250 # incompatible versions: 3251 # SysV /etc/install, /usr/sbin/install 3252 # SunOS /usr/etc/install 3253 # IRIX /sbin/install 3254 # AIX /bin/install 3255 # AmigaOS /C/install, which installs bootblocks on floppy discs 3256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3259 # OS/2's system install, which has a completely different semantic 3260 # ./install, which can be erroneously created by make from ./install.sh. 3261 # Reject install programs that cannot install multiple files. 3262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3263 printf %s "checking for a BSD-compatible install... " >&6; } 3264 if test -z "$INSTALL"; then 3265 if test ${ac_cv_path_install+y} 3266 then : 3267 printf %s "(cached) " >&6 3268 else case e in #( 3269 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3270 for as_dir in $PATH 3271 do 3272 IFS=$as_save_IFS 3273 case $as_dir in #((( 3274 '') as_dir=./ ;; 3275 */) ;; 3276 *) as_dir=$as_dir/ ;; 3277 esac 3278 # Account for fact that we put trailing slashes in our PATH walk. 3279 case $as_dir in #(( 3280 ./ | /[cC]/* | \ 3281 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3282 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3283 /usr/ucb/* ) ;; 3284 *) 3285 # OSF1 and SCO ODT 3.0 have their own names for install. 3286 # Don't use installbsd from OSF since it installs stuff as root 3287 # by default. 3288 for ac_prog in ginstall scoinst install; do 3289 for ac_exec_ext in '' $ac_executable_extensions; do 3290 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3291 if test $ac_prog = install && 3292 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3293 # AIX install. It has an incompatible calling convention. 3294 : 3295 elif test $ac_prog = install && 3296 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3297 # program-specific install script used by HP pwplus--don't use. 3298 : 3299 else 3300 rm -rf conftest.one conftest.two conftest.dir 3301 echo one > conftest.one 3302 echo two > conftest.two 3303 mkdir conftest.dir 3304 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3305 test -s conftest.one && test -s conftest.two && 3306 test -s conftest.dir/conftest.one && 3307 test -s conftest.dir/conftest.two 3308 then 3309 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3310 break 3 3311 fi 3312 fi 3313 fi 3314 done 3315 done 3316 ;; 3317 esac 3318 3319 done 3320 IFS=$as_save_IFS 3321 3322 rm -rf conftest.one conftest.two conftest.dir 3323 ;; 3324 esac 3325 fi 3326 if test ${ac_cv_path_install+y}; then 3327 INSTALL=$ac_cv_path_install 3328 else 3329 # As a last resort, use the slow shell script. Don't cache a 3330 # value for INSTALL within a source directory, because that will 3331 # break other packages using the cache if that directory is 3332 # removed, or if the value is a relative name. 3333 INSTALL=$ac_install_sh 3334 fi 3335 fi 3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3337 printf "%s\n" "$INSTALL" >&6; } 3338 3339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3340 # It thinks the first close brace ends the variable substitution. 3341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3342 3343 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3344 3345 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3346 3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 3348 printf %s "checking whether sleep supports fractional seconds... " >&6; } 3349 if test ${am_cv_sleep_fractional_seconds+y} 3350 then : 3351 printf %s "(cached) " >&6 3352 else case e in #( 3353 e) if sleep 0.001 2>/dev/null 3354 then : 3355 am_cv_sleep_fractional_seconds=yes 3356 else case e in #( 3357 e) am_cv_sleep_fractional_seconds=no ;; 3358 esac 3359 fi 3360 ;; 3361 esac 3362 fi 3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 3364 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 3365 3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 3367 printf %s "checking filesystem timestamp resolution... " >&6; } 3368 if test ${am_cv_filesystem_timestamp_resolution+y} 3369 then : 3370 printf %s "(cached) " >&6 3371 else case e in #( 3372 e) # Default to the worst case. 3373 am_cv_filesystem_timestamp_resolution=2 3374 3375 # Only try to go finer than 1 sec if sleep can do it. 3376 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 3377 # - 1 sec is not much of a win compared to 2 sec, and 3378 # - it takes 2 seconds to perform the test whether 1 sec works. 3379 # 3380 # Instead, just use the default 2s on platforms that have 1s resolution, 3381 # accept the extra 1s delay when using $sleep in the Automake tests, in 3382 # exchange for not incurring the 2s delay for running the test for all 3383 # packages. 3384 # 3385 am_try_resolutions= 3386 if test "$am_cv_sleep_fractional_seconds" = yes; then 3387 # Even a millisecond often causes a bunch of false positives, 3388 # so just try a hundredth of a second. The time saved between .001 and 3389 # .01 is not terribly consequential. 3390 am_try_resolutions="0.01 0.1 $am_try_resolutions" 3391 fi 3392 3393 # In order to catch current-generation FAT out, we must *modify* files 3394 # that already exist; the *creation* timestamp is finer. Use names 3395 # that make ls -t sort them differently when they have equal 3396 # timestamps than when they have distinct timestamps, keeping 3397 # in mind that ls -t prints the *newest* file first. 3398 rm -f conftest.ts? 3399 : > conftest.ts1 3400 : > conftest.ts2 3401 : > conftest.ts3 3402 3403 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 3404 # clobber the current shell's arguments. (Outer-level square brackets 3405 # are removed by m4; they're present so that m4 does not expand 3406 # <dollar><star>; be careful, easy to get confused.) 3407 if ( 3408 set X `ls -t conftest.ts[12]` && 3409 { 3410 test "$*" != "X conftest.ts1 conftest.ts2" || 3411 test "$*" != "X conftest.ts2 conftest.ts1"; 3412 } 3413 ); then :; else 3414 # If neither matched, then we have a broken ls. This can happen 3415 # if, for instance, CONFIG_SHELL is bash and it inherits a 3416 # broken ls alias from the environment. This has actually 3417 # happened. Such a system could not be considered "sane". 3418 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 3419 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3420 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3421 as_fn_error $? "ls -t produces unexpected output. 3422 Make sure there is not a broken ls alias in your environment. 3423 See 'config.log' for more details" "$LINENO" 5; } 3424 fi 3425 3426 for am_try_res in $am_try_resolutions; do 3427 # Any one fine-grained sleep might happen to cross the boundary 3428 # between two values of a coarser actual resolution, but if we do 3429 # two fine-grained sleeps in a row, at least one of them will fall 3430 # entirely within a coarse interval. 3431 echo alpha > conftest.ts1 3432 sleep $am_try_res 3433 echo beta > conftest.ts2 3434 sleep $am_try_res 3435 echo gamma > conftest.ts3 3436 3437 # We assume that 'ls -t' will make use of high-resolution 3438 # timestamps if the operating system supports them at all. 3439 if (set X `ls -t conftest.ts?` && 3440 test "$2" = conftest.ts3 && 3441 test "$3" = conftest.ts2 && 3442 test "$4" = conftest.ts1); then 3443 # 3444 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 3445 # because we don't need to test make. 3446 make_ok=true 3447 if test $am_try_res != 1; then 3448 # But if we've succeeded so far with a subsecond resolution, we 3449 # have one more thing to check: make. It can happen that 3450 # everything else supports the subsecond mtimes, but make doesn't; 3451 # notably on macOS, which ships make 3.81 from 2006 (the last one 3452 # released under GPLv2). https://bugs.gnu.org/68808 3453 # 3454 # We test $MAKE if it is defined in the environment, else "make". 3455 # It might get overridden later, but our hope is that in practice 3456 # it does not matter: it is the system "make" which is (by far) 3457 # the most likely to be broken, whereas if the user overrides it, 3458 # probably they did so with a better, or at least not worse, make. 3459 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 3460 # 3461 # Create a Makefile (real tab character here): 3462 rm -f conftest.mk 3463 echo 'conftest.ts1: conftest.ts2' >conftest.mk 3464 echo ' touch conftest.ts2' >>conftest.mk 3465 # 3466 # Now, running 3467 # touch conftest.ts1; touch conftest.ts2; make 3468 # should touch ts1 because ts2 is newer. This could happen by luck, 3469 # but most often, it will fail if make's support is insufficient. So 3470 # test for several consecutive successes. 3471 # 3472 # (We reuse conftest.ts[12] because we still want to modify existing 3473 # files, not create new ones, per above.) 3474 n=0 3475 make=${MAKE-make} 3476 until test $n -eq 3; do 3477 echo one > conftest.ts1 3478 sleep $am_try_res 3479 echo two > conftest.ts2 # ts2 should now be newer than ts1 3480 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 3481 make_ok=false 3482 break # out of $n loop 3483 fi 3484 n=`expr $n + 1` 3485 done 3486 fi 3487 # 3488 if $make_ok; then 3489 # Everything we know to check worked out, so call this resolution good. 3490 am_cv_filesystem_timestamp_resolution=$am_try_res 3491 break # out of $am_try_res loop 3492 fi 3493 # Otherwise, we'll go on to check the next resolution. 3494 fi 3495 done 3496 rm -f conftest.ts? 3497 # (end _am_filesystem_timestamp_resolution) 3498 ;; 3499 esac 3500 fi 3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 3502 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 3503 3504 # This check should not be cached, as it may vary across builds of 3505 # different projects. 3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3507 printf %s "checking whether build environment is sane... " >&6; } 3508 # Reject unsafe characters in $srcdir or the absolute working directory 3509 # name. Accept space and tab only in the latter. 3510 am_lf=' 3511 ' 3512 case `pwd` in 3513 *[\\\"\#\$\&\'\`$am_lf]*) 3514 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3515 esac 3516 case $srcdir in 3517 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3518 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3519 esac 3520 3521 # Do 'set' in a subshell so we don't clobber the current shell's 3522 # arguments. Must try -L first in case configure is actually a 3523 # symlink; some systems play weird games with the mod time of symlinks 3524 # (eg FreeBSD returns the mod time of the symlink's containing 3525 # directory). 3526 am_build_env_is_sane=no 3527 am_has_slept=no 3528 rm -f conftest.file 3529 for am_try in 1 2; do 3530 echo "timestamp, slept: $am_has_slept" > conftest.file 3531 if ( 3532 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3533 if test "$*" = "X"; then 3534 # -L didn't work. 3535 set X `ls -t "$srcdir/configure" conftest.file` 3536 fi 3537 test "$2" = conftest.file 3538 ); then 3539 am_build_env_is_sane=yes 3540 break 3541 fi 3542 # Just in case. 3543 sleep "$am_cv_filesystem_timestamp_resolution" 3544 am_has_slept=yes 3545 done 3546 3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 3548 printf "%s\n" "$am_build_env_is_sane" >&6; } 3549 if test "$am_build_env_is_sane" = no; then 3550 as_fn_error $? "newly created file is older than distributed files! 3551 Check your system clock" "$LINENO" 5 3552 fi 3553 3554 # If we didn't sleep, we still need to ensure time stamps of config.status and 3555 # generated files are strictly newer. 3556 am_sleep_pid= 3557 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 3558 then : 3559 3560 else case e in #( 3561 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 3562 am_sleep_pid=$! 3563 ;; 3564 esac 3565 fi 3566 3567 rm -f conftest.file 3568 3569 test "$program_prefix" != NONE && 3570 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3571 # Use a double $ so make ignores it. 3572 test "$program_suffix" != NONE && 3573 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3574 # Double any \ or $. 3575 # By default was 's,x,x', remove it if useless. 3576 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3577 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3578 3579 3580 # Expand $ac_aux_dir to an absolute path. 3581 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3582 3583 3584 if test x"${MISSING+set}" != xset; then 3585 MISSING="\${SHELL} '$am_aux_dir/missing'" 3586 fi 3587 # Use eval to expand $SHELL 3588 if eval "$MISSING --is-lightweight"; then 3589 am_missing_run="$MISSING " 3590 else 3591 am_missing_run= 3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3593 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3594 fi 3595 3596 if test x"${install_sh+set}" != xset; then 3597 case $am_aux_dir in 3598 *\ * | *\ *) 3599 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3600 *) 3601 install_sh="\${SHELL} $am_aux_dir/install-sh" 3602 esac 3603 fi 3604 3605 # Installed binaries are usually stripped using 'strip' when the user 3606 # run "make install-strip". However 'strip' might not be the right 3607 # tool to use in cross-compilation environments, therefore Automake 3608 # will honor the 'STRIP' environment variable to overrule this program. 3609 if test "$cross_compiling" != no; then 3610 if test -n "$ac_tool_prefix"; then 3611 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3612 set dummy ${ac_tool_prefix}strip; ac_word=$2 3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3614 printf %s "checking for $ac_word... " >&6; } 3615 if test ${ac_cv_prog_STRIP+y} 3616 then : 3617 printf %s "(cached) " >&6 3618 else case e in #( 3619 e) if test -n "$STRIP"; then 3620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3621 else 3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3623 for as_dir in $PATH 3624 do 3625 IFS=$as_save_IFS 3626 case $as_dir in #((( 3627 '') as_dir=./ ;; 3628 */) ;; 3629 *) as_dir=$as_dir/ ;; 3630 esac 3631 for ac_exec_ext in '' $ac_executable_extensions; do 3632 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3633 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3635 break 2 3636 fi 3637 done 3638 done 3639 IFS=$as_save_IFS 3640 3641 fi ;; 3642 esac 3643 fi 3644 STRIP=$ac_cv_prog_STRIP 3645 if test -n "$STRIP"; then 3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3647 printf "%s\n" "$STRIP" >&6; } 3648 else 3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3650 printf "%s\n" "no" >&6; } 3651 fi 3652 3653 3654 fi 3655 if test -z "$ac_cv_prog_STRIP"; then 3656 ac_ct_STRIP=$STRIP 3657 # Extract the first word of "strip", so it can be a program name with args. 3658 set dummy strip; ac_word=$2 3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3660 printf %s "checking for $ac_word... " >&6; } 3661 if test ${ac_cv_prog_ac_ct_STRIP+y} 3662 then : 3663 printf %s "(cached) " >&6 3664 else case e in #( 3665 e) if test -n "$ac_ct_STRIP"; then 3666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3667 else 3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3669 for as_dir in $PATH 3670 do 3671 IFS=$as_save_IFS 3672 case $as_dir in #((( 3673 '') as_dir=./ ;; 3674 */) ;; 3675 *) as_dir=$as_dir/ ;; 3676 esac 3677 for ac_exec_ext in '' $ac_executable_extensions; do 3678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3679 ac_cv_prog_ac_ct_STRIP="strip" 3680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3681 break 2 3682 fi 3683 done 3684 done 3685 IFS=$as_save_IFS 3686 3687 fi ;; 3688 esac 3689 fi 3690 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3691 if test -n "$ac_ct_STRIP"; then 3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3693 printf "%s\n" "$ac_ct_STRIP" >&6; } 3694 else 3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3696 printf "%s\n" "no" >&6; } 3697 fi 3698 3699 if test "x$ac_ct_STRIP" = x; then 3700 STRIP=":" 3701 else 3702 case $cross_compiling:$ac_tool_warned in 3703 yes:) 3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3705 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3706 ac_tool_warned=yes ;; 3707 esac 3708 STRIP=$ac_ct_STRIP 3709 fi 3710 else 3711 STRIP="$ac_cv_prog_STRIP" 3712 fi 3713 3714 fi 3715 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3716 3717 3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3719 printf %s "checking for a race-free mkdir -p... " >&6; } 3720 if test -z "$MKDIR_P"; then 3721 if test ${ac_cv_path_mkdir+y} 3722 then : 3723 printf %s "(cached) " >&6 3724 else case e in #( 3725 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3726 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3727 do 3728 IFS=$as_save_IFS 3729 case $as_dir in #((( 3730 '') as_dir=./ ;; 3731 */) ;; 3732 *) as_dir=$as_dir/ ;; 3733 esac 3734 for ac_prog in mkdir gmkdir; do 3735 for ac_exec_ext in '' $ac_executable_extensions; do 3736 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3737 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3738 'mkdir ('*'coreutils) '* | \ 3739 *'BusyBox '* | \ 3740 'mkdir (fileutils) '4.1*) 3741 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3742 break 3;; 3743 esac 3744 done 3745 done 3746 done 3747 IFS=$as_save_IFS 3748 ;; 3749 esac 3750 fi 3751 3752 test -d ./--version && rmdir ./--version 3753 if test ${ac_cv_path_mkdir+y}; then 3754 MKDIR_P="$ac_cv_path_mkdir -p" 3755 else 3756 # As a last resort, use plain mkdir -p, 3757 # in the hope it doesn't have the bugs of ancient mkdir. 3758 MKDIR_P='mkdir -p' 3759 fi 3760 fi 3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3762 printf "%s\n" "$MKDIR_P" >&6; } 3763 3764 for ac_prog in gawk mawk nawk awk 3765 do 3766 # Extract the first word of "$ac_prog", so it can be a program name with args. 3767 set dummy $ac_prog; ac_word=$2 3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3769 printf %s "checking for $ac_word... " >&6; } 3770 if test ${ac_cv_prog_AWK+y} 3771 then : 3772 printf %s "(cached) " >&6 3773 else case e in #( 3774 e) if test -n "$AWK"; then 3775 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3776 else 3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3778 for as_dir in $PATH 3779 do 3780 IFS=$as_save_IFS 3781 case $as_dir in #((( 3782 '') as_dir=./ ;; 3783 */) ;; 3784 *) as_dir=$as_dir/ ;; 3785 esac 3786 for ac_exec_ext in '' $ac_executable_extensions; do 3787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3788 ac_cv_prog_AWK="$ac_prog" 3789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3790 break 2 3791 fi 3792 done 3793 done 3794 IFS=$as_save_IFS 3795 3796 fi ;; 3797 esac 3798 fi 3799 AWK=$ac_cv_prog_AWK 3800 if test -n "$AWK"; then 3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3802 printf "%s\n" "$AWK" >&6; } 3803 else 3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3805 printf "%s\n" "no" >&6; } 3806 fi 3807 3808 3809 test -n "$AWK" && break 3810 done 3811 3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3813 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3814 set x ${MAKE-make} 3815 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3816 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3817 then : 3818 printf %s "(cached) " >&6 3819 else case e in #( 3820 e) cat >conftest.make <<\_ACEOF 3821 SHELL = /bin/sh 3822 all: 3823 @echo '@@@%%%=$(MAKE)=@@@%%%' 3824 _ACEOF 3825 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3826 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3827 *@@@%%%=?*=@@@%%%*) 3828 eval ac_cv_prog_make_${ac_make}_set=yes;; 3829 *) 3830 eval ac_cv_prog_make_${ac_make}_set=no;; 3831 esac 3832 rm -f conftest.make ;; 3833 esac 3834 fi 3835 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3837 printf "%s\n" "yes" >&6; } 3838 SET_MAKE= 3839 else 3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3841 printf "%s\n" "no" >&6; } 3842 SET_MAKE="MAKE=${MAKE-make}" 3843 fi 3844 3845 rm -rf .tst 2>/dev/null 3846 mkdir .tst 2>/dev/null 3847 if test -d .tst; then 3848 am__leading_dot=. 3849 else 3850 am__leading_dot=_ 3851 fi 3852 rmdir .tst 2>/dev/null 3853 3854 AM_DEFAULT_VERBOSITY=1 3855 # Check whether --enable-silent-rules was given. 3856 if test ${enable_silent_rules+y} 3857 then : 3858 enableval=$enable_silent_rules; 3859 fi 3860 3861 am_make=${MAKE-make} 3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3863 printf %s "checking whether $am_make supports nested variables... " >&6; } 3864 if test ${am_cv_make_support_nested_variables+y} 3865 then : 3866 printf %s "(cached) " >&6 3867 else case e in #( 3868 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3869 BAR0=false 3870 BAR1=true 3871 V=1 3872 am__doit: 3873 @$(TRUE) 3874 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3875 am_cv_make_support_nested_variables=yes 3876 else 3877 am_cv_make_support_nested_variables=no 3878 fi ;; 3879 esac 3880 fi 3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3882 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3883 AM_BACKSLASH='\' 3884 3885 am__rm_f_notfound= 3886 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3887 then : 3888 3889 else case e in #( 3890 e) am__rm_f_notfound='""' ;; 3891 esac 3892 fi 3893 3894 3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3896 printf %s "checking xargs -n works... " >&6; } 3897 if test ${am_cv_xargs_n_works+y} 3898 then : 3899 printf %s "(cached) " >&6 3900 else case e in #( 3901 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3902 3" 3903 then : 3904 am_cv_xargs_n_works=yes 3905 else case e in #( 3906 e) am_cv_xargs_n_works=no ;; 3907 esac 3908 fi ;; 3909 esac 3910 fi 3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3912 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3913 if test "$am_cv_xargs_n_works" = yes 3914 then : 3915 am__xargs_n='xargs -n' 3916 else case e in #( 3917 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3918 ;; 3919 esac 3920 fi 3921 3922 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3923 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3924 # is not polluted with repeated "-I." 3925 am__isrc=' -I$(srcdir)' 3926 # test to see if srcdir already configured 3927 if test -f $srcdir/config.status; then 3928 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3929 fi 3930 fi 3931 3932 # test whether we have cygpath 3933 if test -z "$CYGPATH_W"; then 3934 if (cygpath --version) >/dev/null 2>/dev/null; then 3935 CYGPATH_W='cygpath -w' 3936 else 3937 CYGPATH_W=echo 3938 fi 3939 fi 3940 3941 3942 # Define the identity of the package. 3943 PACKAGE='bind' 3944 VERSION='9.20.24' 3945 3946 3947 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3948 3949 3950 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3951 3952 # Some tools Automake needs. 3953 3954 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3955 3956 3957 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3958 3959 3960 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3961 3962 3963 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3964 3965 3966 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3967 3968 # For better backward compatibility. To be removed once Automake 1.9.x 3969 # dies out for good. For more background, see: 3970 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3971 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3972 mkdir_p='$(MKDIR_P)' 3973 3974 # We need awk for the "check" target (and possibly the TAP driver). The 3975 # system "awk" is bad on some platforms. 3976 # Always define AMTAR for backward compatibility. Yes, it's still used 3977 # in the wild :-( We should find a proper way to deprecate it ... 3978 AMTAR='$${TAR-tar}' 3979 3980 3981 # We'll loop over all known methods to create a tar archive until one works. 3982 _am_tools='gnutar pax cpio none' 3983 3984 3985 3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 3987 printf %s "checking how to create a pax tar archive... " >&6; } 3988 3989 # Go ahead even if we have the value already cached. We do so because we 3990 # need to set the values for the 'am__tar' and 'am__untar' variables. 3991 _am_tools=${am_cv_prog_tar_pax-$_am_tools} 3992 3993 for _am_tool in $_am_tools; do 3994 case $_am_tool in 3995 gnutar) 3996 for _am_tar in tar gnutar gtar; do 3997 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3998 ($_am_tar --version) >&5 2>&5 3999 ac_status=$? 4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4001 (exit $ac_status); } && break 4002 done 4003 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' 4004 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' 4005 am__untar="$_am_tar -xf -" 4006 ;; 4007 plaintar) 4008 # Must skip GNU tar: if it does not support --format= it doesn't create 4009 # ustar tarball either. 4010 (tar --version) >/dev/null 2>&1 && continue 4011 am__tar='tar chf - "$$tardir"' 4012 am__tar_='tar chf - "$tardir"' 4013 am__untar='tar xf -' 4014 ;; 4015 pax) 4016 am__tar='pax -L -x pax -w "$$tardir"' 4017 am__tar_='pax -L -x pax -w "$tardir"' 4018 am__untar='pax -r' 4019 ;; 4020 cpio) 4021 am__tar='find "$$tardir" -print | cpio -o -H pax -L' 4022 am__tar_='find "$tardir" -print | cpio -o -H pax -L' 4023 am__untar='cpio -i -H pax -d' 4024 ;; 4025 none) 4026 am__tar=false 4027 am__tar_=false 4028 am__untar=false 4029 ;; 4030 esac 4031 4032 # If the value was cached, stop now. We just wanted to have am__tar 4033 # and am__untar set. 4034 test -n "${am_cv_prog_tar_pax}" && break 4035 4036 # tar/untar a dummy directory, and stop if the command works. 4037 rm -rf conftest.dir 4038 mkdir conftest.dir 4039 echo GrepMe > conftest.dir/file 4040 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 4041 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 4042 ac_status=$? 4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4044 (exit $ac_status); } 4045 rm -rf conftest.dir 4046 if test -s conftest.tar; then 4047 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 4048 ($am__untar <conftest.tar) >&5 2>&5 4049 ac_status=$? 4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4051 (exit $ac_status); } 4052 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 4053 (cat conftest.dir/file) >&5 2>&5 4054 ac_status=$? 4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4056 (exit $ac_status); } 4057 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 4058 fi 4059 done 4060 rm -rf conftest.dir 4061 4062 if test ${am_cv_prog_tar_pax+y} 4063 then : 4064 printf %s "(cached) " >&6 4065 else case e in #( 4066 e) am_cv_prog_tar_pax=$_am_tool ;; 4067 esac 4068 fi 4069 4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 4071 printf "%s\n" "$am_cv_prog_tar_pax" >&6; } 4072 4073 4074 4075 4076 4077 # Variables for tags utilities; see am/tags.am 4078 if test -z "$CTAGS"; then 4079 CTAGS=ctags 4080 fi 4081 4082 if test -z "$ETAGS"; then 4083 ETAGS=etags 4084 fi 4085 4086 if test -z "$CSCOPE"; then 4087 CSCOPE=cscope 4088 fi 4089 4090 4091 4092 4093 4094 4095 4096 4097 AM_DEFAULT_VERBOSITY=0 4098 4099 4100 ac_config_headers="$ac_config_headers config.h" 4101 4102 4103 4104 # 4105 # Enable maintainer mode by default only when building from git repository 4106 # and not cross compling 4107 # 4108 if test "$cross_compiling" = no 4109 then : 4110 4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4112 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4113 # Check whether --enable-maintainer-mode was given. 4114 if test ${enable_maintainer_mode+y} 4115 then : 4116 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4117 else case e in #( 4118 e) USE_MAINTAINER_MODE=yes ;; 4119 esac 4120 fi 4121 4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4123 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 4124 if test $USE_MAINTAINER_MODE = yes; then 4125 MAINTAINER_MODE_TRUE= 4126 MAINTAINER_MODE_FALSE='#' 4127 else 4128 MAINTAINER_MODE_TRUE='#' 4129 MAINTAINER_MODE_FALSE= 4130 fi 4131 4132 MAINT=$MAINTAINER_MODE_TRUE 4133 4134 4135 else case e in #( 4136 e) 4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4138 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4139 # Check whether --enable-maintainer-mode was given. 4140 if test ${enable_maintainer_mode+y} 4141 then : 4142 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4143 else case e in #( 4144 e) USE_MAINTAINER_MODE=no ;; 4145 esac 4146 fi 4147 4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4149 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 4150 if test $USE_MAINTAINER_MODE = yes; then 4151 MAINTAINER_MODE_TRUE= 4152 MAINTAINER_MODE_FALSE='#' 4153 else 4154 MAINTAINER_MODE_TRUE='#' 4155 MAINTAINER_MODE_FALSE= 4156 fi 4157 4158 MAINT=$MAINTAINER_MODE_TRUE 4159 4160 ;; 4161 esac 4162 fi 4163 4164 # 4165 # Enable system extensions to C and POSIX 4166 # 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 DEPDIR="${am__leading_dot}deps" 4177 4178 ac_config_commands="$ac_config_commands depfiles" 4179 4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4181 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4182 cat > confinc.mk << 'END' 4183 am__doit: 4184 @echo this is the am__doit target >confinc.out 4185 .PHONY: am__doit 4186 END 4187 am__include="#" 4188 am__quote= 4189 # BSD make does it like this. 4190 echo '.include "confinc.mk" # ignored' > confmf.BSD 4191 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 4192 echo 'include confinc.mk # ignored' > confmf.GNU 4193 _am_result=no 4194 for s in GNU BSD; do 4195 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4196 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4197 ac_status=$? 4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4199 (exit $ac_status); } 4200 case $?:`cat confinc.out 2>/dev/null` in #( 4201 '0:this is the am__doit target') : 4202 case $s in #( 4203 BSD) : 4204 am__include='.include' am__quote='"' ;; #( 4205 *) : 4206 am__include='include' am__quote='' ;; 4207 esac ;; #( 4208 *) : 4209 ;; 4210 esac 4211 if test "$am__include" != "#"; then 4212 _am_result="yes ($s style)" 4213 break 4214 fi 4215 done 4216 rm -f confinc.* confmf.* 4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4218 printf "%s\n" "${_am_result}" >&6; } 4219 4220 # Check whether --enable-dependency-tracking was given. 4221 if test ${enable_dependency_tracking+y} 4222 then : 4223 enableval=$enable_dependency_tracking; 4224 fi 4225 4226 if test "x$enable_dependency_tracking" != xno; then 4227 am_depcomp="$ac_aux_dir/depcomp" 4228 AMDEPBACKSLASH='\' 4229 am__nodep='_no' 4230 fi 4231 if test "x$enable_dependency_tracking" != xno; then 4232 AMDEP_TRUE= 4233 AMDEP_FALSE='#' 4234 else 4235 AMDEP_TRUE='#' 4236 AMDEP_FALSE= 4237 fi 4238 4239 4240 ac_ext=c 4241 ac_cpp='$CPP $CPPFLAGS' 4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4245 if test -n "$ac_tool_prefix"; then 4246 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4247 set dummy ${ac_tool_prefix}gcc; ac_word=$2 4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4249 printf %s "checking for $ac_word... " >&6; } 4250 if test ${ac_cv_prog_CC+y} 4251 then : 4252 printf %s "(cached) " >&6 4253 else case e in #( 4254 e) if test -n "$CC"; then 4255 ac_cv_prog_CC="$CC" # Let the user override the test. 4256 else 4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4258 for as_dir in $PATH 4259 do 4260 IFS=$as_save_IFS 4261 case $as_dir in #((( 4262 '') as_dir=./ ;; 4263 */) ;; 4264 *) as_dir=$as_dir/ ;; 4265 esac 4266 for ac_exec_ext in '' $ac_executable_extensions; do 4267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4268 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4270 break 2 4271 fi 4272 done 4273 done 4274 IFS=$as_save_IFS 4275 4276 fi ;; 4277 esac 4278 fi 4279 CC=$ac_cv_prog_CC 4280 if test -n "$CC"; then 4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4282 printf "%s\n" "$CC" >&6; } 4283 else 4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4285 printf "%s\n" "no" >&6; } 4286 fi 4287 4288 4289 fi 4290 if test -z "$ac_cv_prog_CC"; then 4291 ac_ct_CC=$CC 4292 # Extract the first word of "gcc", so it can be a program name with args. 4293 set dummy gcc; ac_word=$2 4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4295 printf %s "checking for $ac_word... " >&6; } 4296 if test ${ac_cv_prog_ac_ct_CC+y} 4297 then : 4298 printf %s "(cached) " >&6 4299 else case e in #( 4300 e) if test -n "$ac_ct_CC"; then 4301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4302 else 4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4304 for as_dir in $PATH 4305 do 4306 IFS=$as_save_IFS 4307 case $as_dir in #((( 4308 '') as_dir=./ ;; 4309 */) ;; 4310 *) as_dir=$as_dir/ ;; 4311 esac 4312 for ac_exec_ext in '' $ac_executable_extensions; do 4313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4314 ac_cv_prog_ac_ct_CC="gcc" 4315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4316 break 2 4317 fi 4318 done 4319 done 4320 IFS=$as_save_IFS 4321 4322 fi ;; 4323 esac 4324 fi 4325 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4326 if test -n "$ac_ct_CC"; then 4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4328 printf "%s\n" "$ac_ct_CC" >&6; } 4329 else 4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4331 printf "%s\n" "no" >&6; } 4332 fi 4333 4334 if test "x$ac_ct_CC" = x; then 4335 CC="" 4336 else 4337 case $cross_compiling:$ac_tool_warned in 4338 yes:) 4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4340 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4341 ac_tool_warned=yes ;; 4342 esac 4343 CC=$ac_ct_CC 4344 fi 4345 else 4346 CC="$ac_cv_prog_CC" 4347 fi 4348 4349 if test -z "$CC"; then 4350 if test -n "$ac_tool_prefix"; then 4351 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4352 set dummy ${ac_tool_prefix}cc; ac_word=$2 4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4354 printf %s "checking for $ac_word... " >&6; } 4355 if test ${ac_cv_prog_CC+y} 4356 then : 4357 printf %s "(cached) " >&6 4358 else case e in #( 4359 e) if test -n "$CC"; then 4360 ac_cv_prog_CC="$CC" # Let the user override the test. 4361 else 4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4363 for as_dir in $PATH 4364 do 4365 IFS=$as_save_IFS 4366 case $as_dir in #((( 4367 '') as_dir=./ ;; 4368 */) ;; 4369 *) as_dir=$as_dir/ ;; 4370 esac 4371 for ac_exec_ext in '' $ac_executable_extensions; do 4372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4373 ac_cv_prog_CC="${ac_tool_prefix}cc" 4374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4375 break 2 4376 fi 4377 done 4378 done 4379 IFS=$as_save_IFS 4380 4381 fi ;; 4382 esac 4383 fi 4384 CC=$ac_cv_prog_CC 4385 if test -n "$CC"; then 4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4387 printf "%s\n" "$CC" >&6; } 4388 else 4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4390 printf "%s\n" "no" >&6; } 4391 fi 4392 4393 4394 fi 4395 fi 4396 if test -z "$CC"; then 4397 # Extract the first word of "cc", so it can be a program name with args. 4398 set dummy cc; ac_word=$2 4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4400 printf %s "checking for $ac_word... " >&6; } 4401 if test ${ac_cv_prog_CC+y} 4402 then : 4403 printf %s "(cached) " >&6 4404 else case e in #( 4405 e) if test -n "$CC"; then 4406 ac_cv_prog_CC="$CC" # Let the user override the test. 4407 else 4408 ac_prog_rejected=no 4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4410 for as_dir in $PATH 4411 do 4412 IFS=$as_save_IFS 4413 case $as_dir in #((( 4414 '') as_dir=./ ;; 4415 */) ;; 4416 *) as_dir=$as_dir/ ;; 4417 esac 4418 for ac_exec_ext in '' $ac_executable_extensions; do 4419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4420 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4421 ac_prog_rejected=yes 4422 continue 4423 fi 4424 ac_cv_prog_CC="cc" 4425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4426 break 2 4427 fi 4428 done 4429 done 4430 IFS=$as_save_IFS 4431 4432 if test $ac_prog_rejected = yes; then 4433 # We found a bogon in the path, so make sure we never use it. 4434 set dummy $ac_cv_prog_CC 4435 shift 4436 if test $# != 0; then 4437 # We chose a different compiler from the bogus one. 4438 # However, it has the same basename, so the bogon will be chosen 4439 # first if we set CC to just the basename; use the full file name. 4440 shift 4441 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4442 fi 4443 fi 4444 fi ;; 4445 esac 4446 fi 4447 CC=$ac_cv_prog_CC 4448 if test -n "$CC"; then 4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4450 printf "%s\n" "$CC" >&6; } 4451 else 4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4453 printf "%s\n" "no" >&6; } 4454 fi 4455 4456 4457 fi 4458 if test -z "$CC"; then 4459 if test -n "$ac_tool_prefix"; then 4460 for ac_prog in cl.exe 4461 do 4462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4465 printf %s "checking for $ac_word... " >&6; } 4466 if test ${ac_cv_prog_CC+y} 4467 then : 4468 printf %s "(cached) " >&6 4469 else case e in #( 4470 e) if test -n "$CC"; then 4471 ac_cv_prog_CC="$CC" # Let the user override the test. 4472 else 4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4474 for as_dir in $PATH 4475 do 4476 IFS=$as_save_IFS 4477 case $as_dir in #((( 4478 '') as_dir=./ ;; 4479 */) ;; 4480 *) as_dir=$as_dir/ ;; 4481 esac 4482 for ac_exec_ext in '' $ac_executable_extensions; do 4483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4484 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4486 break 2 4487 fi 4488 done 4489 done 4490 IFS=$as_save_IFS 4491 4492 fi ;; 4493 esac 4494 fi 4495 CC=$ac_cv_prog_CC 4496 if test -n "$CC"; then 4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4498 printf "%s\n" "$CC" >&6; } 4499 else 4500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4501 printf "%s\n" "no" >&6; } 4502 fi 4503 4504 4505 test -n "$CC" && break 4506 done 4507 fi 4508 if test -z "$CC"; then 4509 ac_ct_CC=$CC 4510 for ac_prog in cl.exe 4511 do 4512 # Extract the first word of "$ac_prog", so it can be a program name with args. 4513 set dummy $ac_prog; ac_word=$2 4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4515 printf %s "checking for $ac_word... " >&6; } 4516 if test ${ac_cv_prog_ac_ct_CC+y} 4517 then : 4518 printf %s "(cached) " >&6 4519 else case e in #( 4520 e) if test -n "$ac_ct_CC"; then 4521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4522 else 4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4524 for as_dir in $PATH 4525 do 4526 IFS=$as_save_IFS 4527 case $as_dir in #((( 4528 '') as_dir=./ ;; 4529 */) ;; 4530 *) as_dir=$as_dir/ ;; 4531 esac 4532 for ac_exec_ext in '' $ac_executable_extensions; do 4533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4534 ac_cv_prog_ac_ct_CC="$ac_prog" 4535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4536 break 2 4537 fi 4538 done 4539 done 4540 IFS=$as_save_IFS 4541 4542 fi ;; 4543 esac 4544 fi 4545 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4546 if test -n "$ac_ct_CC"; then 4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4548 printf "%s\n" "$ac_ct_CC" >&6; } 4549 else 4550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4551 printf "%s\n" "no" >&6; } 4552 fi 4553 4554 4555 test -n "$ac_ct_CC" && break 4556 done 4557 4558 if test "x$ac_ct_CC" = x; then 4559 CC="" 4560 else 4561 case $cross_compiling:$ac_tool_warned in 4562 yes:) 4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4564 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4565 ac_tool_warned=yes ;; 4566 esac 4567 CC=$ac_ct_CC 4568 fi 4569 fi 4570 4571 fi 4572 if test -z "$CC"; then 4573 if test -n "$ac_tool_prefix"; then 4574 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4575 set dummy ${ac_tool_prefix}clang; ac_word=$2 4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4577 printf %s "checking for $ac_word... " >&6; } 4578 if test ${ac_cv_prog_CC+y} 4579 then : 4580 printf %s "(cached) " >&6 4581 else case e in #( 4582 e) if test -n "$CC"; then 4583 ac_cv_prog_CC="$CC" # Let the user override the test. 4584 else 4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4586 for as_dir in $PATH 4587 do 4588 IFS=$as_save_IFS 4589 case $as_dir in #((( 4590 '') as_dir=./ ;; 4591 */) ;; 4592 *) as_dir=$as_dir/ ;; 4593 esac 4594 for ac_exec_ext in '' $ac_executable_extensions; do 4595 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4596 ac_cv_prog_CC="${ac_tool_prefix}clang" 4597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4598 break 2 4599 fi 4600 done 4601 done 4602 IFS=$as_save_IFS 4603 4604 fi ;; 4605 esac 4606 fi 4607 CC=$ac_cv_prog_CC 4608 if test -n "$CC"; then 4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4610 printf "%s\n" "$CC" >&6; } 4611 else 4612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4613 printf "%s\n" "no" >&6; } 4614 fi 4615 4616 4617 fi 4618 if test -z "$ac_cv_prog_CC"; then 4619 ac_ct_CC=$CC 4620 # Extract the first word of "clang", so it can be a program name with args. 4621 set dummy clang; ac_word=$2 4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4623 printf %s "checking for $ac_word... " >&6; } 4624 if test ${ac_cv_prog_ac_ct_CC+y} 4625 then : 4626 printf %s "(cached) " >&6 4627 else case e in #( 4628 e) if test -n "$ac_ct_CC"; then 4629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4630 else 4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4632 for as_dir in $PATH 4633 do 4634 IFS=$as_save_IFS 4635 case $as_dir in #((( 4636 '') as_dir=./ ;; 4637 */) ;; 4638 *) as_dir=$as_dir/ ;; 4639 esac 4640 for ac_exec_ext in '' $ac_executable_extensions; do 4641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4642 ac_cv_prog_ac_ct_CC="clang" 4643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4644 break 2 4645 fi 4646 done 4647 done 4648 IFS=$as_save_IFS 4649 4650 fi ;; 4651 esac 4652 fi 4653 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4654 if test -n "$ac_ct_CC"; then 4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4656 printf "%s\n" "$ac_ct_CC" >&6; } 4657 else 4658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4659 printf "%s\n" "no" >&6; } 4660 fi 4661 4662 if test "x$ac_ct_CC" = x; then 4663 CC="" 4664 else 4665 case $cross_compiling:$ac_tool_warned in 4666 yes:) 4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4668 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4669 ac_tool_warned=yes ;; 4670 esac 4671 CC=$ac_ct_CC 4672 fi 4673 else 4674 CC="$ac_cv_prog_CC" 4675 fi 4676 4677 fi 4678 4679 4680 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4681 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4682 as_fn_error $? "no acceptable C compiler found in \$PATH 4683 See 'config.log' for more details" "$LINENO" 5; } 4684 4685 # Provide some information about the compiler. 4686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4687 set X $ac_compile 4688 ac_compiler=$2 4689 for ac_option in --version -v -V -qversion -version; do 4690 { { ac_try="$ac_compiler $ac_option >&5" 4691 case "(($ac_try" in 4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4693 *) ac_try_echo=$ac_try;; 4694 esac 4695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4696 printf "%s\n" "$ac_try_echo"; } >&5 4697 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4698 ac_status=$? 4699 if test -s conftest.err; then 4700 sed '10a\ 4701 ... rest of stderr output deleted ... 4702 10q' conftest.err >conftest.er1 4703 cat conftest.er1 >&5 4704 fi 4705 rm -f conftest.er1 conftest.err 4706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4707 test $ac_status = 0; } 4708 done 4709 4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4711 /* end confdefs.h. */ 4712 4713 int 4714 main (void) 4715 { 4716 4717 ; 4718 return 0; 4719 } 4720 _ACEOF 4721 ac_clean_files_save=$ac_clean_files 4722 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4723 # Try to create an executable without -o first, disregard a.out. 4724 # It will help us diagnose broken compilers, and finding out an intuition 4725 # of exeext. 4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4727 printf %s "checking whether the C compiler works... " >&6; } 4728 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4729 4730 # The possible output files: 4731 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4732 4733 ac_rmfiles= 4734 for ac_file in $ac_files 4735 do 4736 case $ac_file in 4737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4738 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4739 esac 4740 done 4741 rm -f $ac_rmfiles 4742 4743 if { { ac_try="$ac_link_default" 4744 case "(($ac_try" in 4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4746 *) ac_try_echo=$ac_try;; 4747 esac 4748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4749 printf "%s\n" "$ac_try_echo"; } >&5 4750 (eval "$ac_link_default") 2>&5 4751 ac_status=$? 4752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4753 test $ac_status = 0; } 4754 then : 4755 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4756 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4757 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4758 # so that the user can short-circuit this test for compilers unknown to 4759 # Autoconf. 4760 for ac_file in $ac_files '' 4761 do 4762 test -f "$ac_file" || continue 4763 case $ac_file in 4764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4765 ;; 4766 [ab].out ) 4767 # We found the default executable, but exeext='' is most 4768 # certainly right. 4769 break;; 4770 *.* ) 4771 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4772 then :; else 4773 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4774 fi 4775 # We set ac_cv_exeext here because the later test for it is not 4776 # safe: cross compilers may not add the suffix if given an '-o' 4777 # argument, so we may need to know it at that point already. 4778 # Even if this section looks crufty: it has the advantage of 4779 # actually working. 4780 break;; 4781 * ) 4782 break;; 4783 esac 4784 done 4785 test "$ac_cv_exeext" = no && ac_cv_exeext= 4786 4787 else case e in #( 4788 e) ac_file='' ;; 4789 esac 4790 fi 4791 if test -z "$ac_file" 4792 then : 4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4794 printf "%s\n" "no" >&6; } 4795 printf "%s\n" "$as_me: failed program was:" >&5 4796 sed 's/^/| /' conftest.$ac_ext >&5 4797 4798 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4799 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4800 as_fn_error 77 "C compiler cannot create executables 4801 See 'config.log' for more details" "$LINENO" 5; } 4802 else case e in #( 4803 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4804 printf "%s\n" "yes" >&6; } ;; 4805 esac 4806 fi 4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4808 printf %s "checking for C compiler default output file name... " >&6; } 4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4810 printf "%s\n" "$ac_file" >&6; } 4811 ac_exeext=$ac_cv_exeext 4812 4813 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4814 ac_clean_files=$ac_clean_files_save 4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4816 printf %s "checking for suffix of executables... " >&6; } 4817 if { { ac_try="$ac_link" 4818 case "(($ac_try" in 4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4820 *) ac_try_echo=$ac_try;; 4821 esac 4822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4823 printf "%s\n" "$ac_try_echo"; } >&5 4824 (eval "$ac_link") 2>&5 4825 ac_status=$? 4826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4827 test $ac_status = 0; } 4828 then : 4829 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4830 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4831 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4832 # 'rm'. 4833 for ac_file in conftest.exe conftest conftest.*; do 4834 test -f "$ac_file" || continue 4835 case $ac_file in 4836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4837 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4838 break;; 4839 * ) break;; 4840 esac 4841 done 4842 else case e in #( 4843 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4844 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4845 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4846 See 'config.log' for more details" "$LINENO" 5; } ;; 4847 esac 4848 fi 4849 rm -f conftest conftest$ac_cv_exeext 4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4851 printf "%s\n" "$ac_cv_exeext" >&6; } 4852 4853 rm -f conftest.$ac_ext 4854 EXEEXT=$ac_cv_exeext 4855 ac_exeext=$EXEEXT 4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4857 /* end confdefs.h. */ 4858 #include <stdio.h> 4859 int 4860 main (void) 4861 { 4862 FILE *f = fopen ("conftest.out", "w"); 4863 if (!f) 4864 return 1; 4865 return ferror (f) || fclose (f) != 0; 4866 4867 ; 4868 return 0; 4869 } 4870 _ACEOF 4871 ac_clean_files="$ac_clean_files conftest.out" 4872 # Check that the compiler produces executables we can run. If not, either 4873 # the compiler is broken, or we cross compile. 4874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4875 printf %s "checking whether we are cross compiling... " >&6; } 4876 if test "$cross_compiling" != yes; then 4877 { { ac_try="$ac_link" 4878 case "(($ac_try" in 4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4880 *) ac_try_echo=$ac_try;; 4881 esac 4882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4883 printf "%s\n" "$ac_try_echo"; } >&5 4884 (eval "$ac_link") 2>&5 4885 ac_status=$? 4886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4887 test $ac_status = 0; } 4888 if { ac_try='./conftest$ac_cv_exeext' 4889 { { case "(($ac_try" in 4890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4891 *) ac_try_echo=$ac_try;; 4892 esac 4893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4894 printf "%s\n" "$ac_try_echo"; } >&5 4895 (eval "$ac_try") 2>&5 4896 ac_status=$? 4897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4898 test $ac_status = 0; }; }; then 4899 cross_compiling=no 4900 else 4901 if test "$cross_compiling" = maybe; then 4902 cross_compiling=yes 4903 else 4904 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4905 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4906 as_fn_error 77 "cannot run C compiled programs. 4907 If you meant to cross compile, use '--host'. 4908 See 'config.log' for more details" "$LINENO" 5; } 4909 fi 4910 fi 4911 fi 4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4913 printf "%s\n" "$cross_compiling" >&6; } 4914 4915 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4916 conftest.o conftest.obj conftest.out 4917 ac_clean_files=$ac_clean_files_save 4918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4919 printf %s "checking for suffix of object files... " >&6; } 4920 if test ${ac_cv_objext+y} 4921 then : 4922 printf %s "(cached) " >&6 4923 else case e in #( 4924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4925 /* end confdefs.h. */ 4926 4927 int 4928 main (void) 4929 { 4930 4931 ; 4932 return 0; 4933 } 4934 _ACEOF 4935 rm -f conftest.o conftest.obj 4936 if { { ac_try="$ac_compile" 4937 case "(($ac_try" in 4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4939 *) ac_try_echo=$ac_try;; 4940 esac 4941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4942 printf "%s\n" "$ac_try_echo"; } >&5 4943 (eval "$ac_compile") 2>&5 4944 ac_status=$? 4945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4946 test $ac_status = 0; } 4947 then : 4948 for ac_file in conftest.o conftest.obj conftest.*; do 4949 test -f "$ac_file" || continue; 4950 case $ac_file in 4951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4952 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4953 break;; 4954 esac 4955 done 4956 else case e in #( 4957 e) printf "%s\n" "$as_me: failed program was:" >&5 4958 sed 's/^/| /' conftest.$ac_ext >&5 4959 4960 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4961 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4962 as_fn_error $? "cannot compute suffix of object files: cannot compile 4963 See 'config.log' for more details" "$LINENO" 5; } ;; 4964 esac 4965 fi 4966 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4967 esac 4968 fi 4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4970 printf "%s\n" "$ac_cv_objext" >&6; } 4971 OBJEXT=$ac_cv_objext 4972 ac_objext=$OBJEXT 4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4974 printf %s "checking whether the compiler supports GNU C... " >&6; } 4975 if test ${ac_cv_c_compiler_gnu+y} 4976 then : 4977 printf %s "(cached) " >&6 4978 else case e in #( 4979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4980 /* end confdefs.h. */ 4981 4982 int 4983 main (void) 4984 { 4985 #ifndef __GNUC__ 4986 choke me 4987 #endif 4988 4989 ; 4990 return 0; 4991 } 4992 _ACEOF 4993 if ac_fn_c_try_compile "$LINENO" 4994 then : 4995 ac_compiler_gnu=yes 4996 else case e in #( 4997 e) ac_compiler_gnu=no ;; 4998 esac 4999 fi 5000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5001 ac_cv_c_compiler_gnu=$ac_compiler_gnu 5002 ;; 5003 esac 5004 fi 5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5006 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5008 5009 if test $ac_compiler_gnu = yes; then 5010 GCC=yes 5011 else 5012 GCC= 5013 fi 5014 ac_test_CFLAGS=${CFLAGS+y} 5015 ac_save_CFLAGS=$CFLAGS 5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5017 printf %s "checking whether $CC accepts -g... " >&6; } 5018 if test ${ac_cv_prog_cc_g+y} 5019 then : 5020 printf %s "(cached) " >&6 5021 else case e in #( 5022 e) ac_save_c_werror_flag=$ac_c_werror_flag 5023 ac_c_werror_flag=yes 5024 ac_cv_prog_cc_g=no 5025 CFLAGS="-g" 5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5027 /* end confdefs.h. */ 5028 5029 int 5030 main (void) 5031 { 5032 5033 ; 5034 return 0; 5035 } 5036 _ACEOF 5037 if ac_fn_c_try_compile "$LINENO" 5038 then : 5039 ac_cv_prog_cc_g=yes 5040 else case e in #( 5041 e) CFLAGS="" 5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5043 /* end confdefs.h. */ 5044 5045 int 5046 main (void) 5047 { 5048 5049 ; 5050 return 0; 5051 } 5052 _ACEOF 5053 if ac_fn_c_try_compile "$LINENO" 5054 then : 5055 5056 else case e in #( 5057 e) ac_c_werror_flag=$ac_save_c_werror_flag 5058 CFLAGS="-g" 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5060 /* end confdefs.h. */ 5061 5062 int 5063 main (void) 5064 { 5065 5066 ; 5067 return 0; 5068 } 5069 _ACEOF 5070 if ac_fn_c_try_compile "$LINENO" 5071 then : 5072 ac_cv_prog_cc_g=yes 5073 fi 5074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5075 esac 5076 fi 5077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5078 esac 5079 fi 5080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5081 ac_c_werror_flag=$ac_save_c_werror_flag ;; 5082 esac 5083 fi 5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5085 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5086 if test $ac_test_CFLAGS; then 5087 CFLAGS=$ac_save_CFLAGS 5088 elif test $ac_cv_prog_cc_g = yes; then 5089 if test "$GCC" = yes; then 5090 CFLAGS="-g -O2" 5091 else 5092 CFLAGS="-g" 5093 fi 5094 else 5095 if test "$GCC" = yes; then 5096 CFLAGS="-O2" 5097 else 5098 CFLAGS= 5099 fi 5100 fi 5101 ac_prog_cc_stdc=no 5102 if test x$ac_prog_cc_stdc = xno 5103 then : 5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5105 printf %s "checking for $CC option to enable C11 features... " >&6; } 5106 if test ${ac_cv_prog_cc_c11+y} 5107 then : 5108 printf %s "(cached) " >&6 5109 else case e in #( 5110 e) ac_cv_prog_cc_c11=no 5111 ac_save_CC=$CC 5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5113 /* end confdefs.h. */ 5114 $ac_c_conftest_c11_program 5115 _ACEOF 5116 for ac_arg in '' -std=gnu11 5117 do 5118 CC="$ac_save_CC $ac_arg" 5119 if ac_fn_c_try_compile "$LINENO" 5120 then : 5121 ac_cv_prog_cc_c11=$ac_arg 5122 fi 5123 rm -f core conftest.err conftest.$ac_objext conftest.beam 5124 test "x$ac_cv_prog_cc_c11" != "xno" && break 5125 done 5126 rm -f conftest.$ac_ext 5127 CC=$ac_save_CC ;; 5128 esac 5129 fi 5130 5131 if test "x$ac_cv_prog_cc_c11" = xno 5132 then : 5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5134 printf "%s\n" "unsupported" >&6; } 5135 else case e in #( 5136 e) if test "x$ac_cv_prog_cc_c11" = x 5137 then : 5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5139 printf "%s\n" "none needed" >&6; } 5140 else case e in #( 5141 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5142 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5143 CC="$CC $ac_cv_prog_cc_c11" ;; 5144 esac 5145 fi 5146 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5147 ac_prog_cc_stdc=c11 ;; 5148 esac 5149 fi 5150 fi 5151 if test x$ac_prog_cc_stdc = xno 5152 then : 5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5154 printf %s "checking for $CC option to enable C99 features... " >&6; } 5155 if test ${ac_cv_prog_cc_c99+y} 5156 then : 5157 printf %s "(cached) " >&6 5158 else case e in #( 5159 e) ac_cv_prog_cc_c99=no 5160 ac_save_CC=$CC 5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5162 /* end confdefs.h. */ 5163 $ac_c_conftest_c99_program 5164 _ACEOF 5165 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5166 do 5167 CC="$ac_save_CC $ac_arg" 5168 if ac_fn_c_try_compile "$LINENO" 5169 then : 5170 ac_cv_prog_cc_c99=$ac_arg 5171 fi 5172 rm -f core conftest.err conftest.$ac_objext conftest.beam 5173 test "x$ac_cv_prog_cc_c99" != "xno" && break 5174 done 5175 rm -f conftest.$ac_ext 5176 CC=$ac_save_CC ;; 5177 esac 5178 fi 5179 5180 if test "x$ac_cv_prog_cc_c99" = xno 5181 then : 5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5183 printf "%s\n" "unsupported" >&6; } 5184 else case e in #( 5185 e) if test "x$ac_cv_prog_cc_c99" = x 5186 then : 5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5188 printf "%s\n" "none needed" >&6; } 5189 else case e in #( 5190 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5191 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5192 CC="$CC $ac_cv_prog_cc_c99" ;; 5193 esac 5194 fi 5195 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5196 ac_prog_cc_stdc=c99 ;; 5197 esac 5198 fi 5199 fi 5200 if test x$ac_prog_cc_stdc = xno 5201 then : 5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5203 printf %s "checking for $CC option to enable C89 features... " >&6; } 5204 if test ${ac_cv_prog_cc_c89+y} 5205 then : 5206 printf %s "(cached) " >&6 5207 else case e in #( 5208 e) ac_cv_prog_cc_c89=no 5209 ac_save_CC=$CC 5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5211 /* end confdefs.h. */ 5212 $ac_c_conftest_c89_program 5213 _ACEOF 5214 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5215 do 5216 CC="$ac_save_CC $ac_arg" 5217 if ac_fn_c_try_compile "$LINENO" 5218 then : 5219 ac_cv_prog_cc_c89=$ac_arg 5220 fi 5221 rm -f core conftest.err conftest.$ac_objext conftest.beam 5222 test "x$ac_cv_prog_cc_c89" != "xno" && break 5223 done 5224 rm -f conftest.$ac_ext 5225 CC=$ac_save_CC ;; 5226 esac 5227 fi 5228 5229 if test "x$ac_cv_prog_cc_c89" = xno 5230 then : 5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5232 printf "%s\n" "unsupported" >&6; } 5233 else case e in #( 5234 e) if test "x$ac_cv_prog_cc_c89" = x 5235 then : 5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5237 printf "%s\n" "none needed" >&6; } 5238 else case e in #( 5239 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5240 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5241 CC="$CC $ac_cv_prog_cc_c89" ;; 5242 esac 5243 fi 5244 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5245 ac_prog_cc_stdc=c89 ;; 5246 esac 5247 fi 5248 fi 5249 5250 ac_ext=c 5251 ac_cpp='$CPP $CPPFLAGS' 5252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5254 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5255 5256 5257 ac_ext=c 5258 ac_cpp='$CPP $CPPFLAGS' 5259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5261 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5263 printf %s "checking whether $CC understands -c and -o together... " >&6; } 5264 if test ${am_cv_prog_cc_c_o+y} 5265 then : 5266 printf %s "(cached) " >&6 5267 else case e in #( 5268 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5269 /* end confdefs.h. */ 5270 5271 int 5272 main (void) 5273 { 5274 5275 ; 5276 return 0; 5277 } 5278 _ACEOF 5279 # Make sure it works both with $CC and with simple cc. 5280 # Following AC_PROG_CC_C_O, we do the test twice because some 5281 # compilers refuse to overwrite an existing .o file with -o, 5282 # though they will create one. 5283 am_cv_prog_cc_c_o=yes 5284 for am_i in 1 2; do 5285 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5286 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5287 ac_status=$? 5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5289 (exit $ac_status); } \ 5290 && test -f conftest2.$ac_objext; then 5291 : OK 5292 else 5293 am_cv_prog_cc_c_o=no 5294 break 5295 fi 5296 done 5297 rm -f core conftest* 5298 unset am_i ;; 5299 esac 5300 fi 5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5302 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5303 if test "$am_cv_prog_cc_c_o" != yes; then 5304 # Losing compiler, so override with the script. 5305 # FIXME: It is wrong to rewrite CC. 5306 # But if we don't then we get into trouble of one sort or another. 5307 # A longer-term fix would be to have automake use am__CC in this case, 5308 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5309 CC="$am_aux_dir/compile $CC" 5310 fi 5311 ac_ext=c 5312 ac_cpp='$CPP $CPPFLAGS' 5313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5315 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5316 5317 5318 depcc="$CC" am_compiler_list= 5319 5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5321 printf %s "checking dependency style of $depcc... " >&6; } 5322 if test ${am_cv_CC_dependencies_compiler_type+y} 5323 then : 5324 printf %s "(cached) " >&6 5325 else case e in #( 5326 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5327 # We make a subdir and do the tests there. Otherwise we can end up 5328 # making bogus files that we don't know about and never remove. For 5329 # instance it was reported that on HP-UX the gcc test will end up 5330 # making a dummy file named 'D' -- because '-MD' means "put the output 5331 # in D". 5332 rm -rf conftest.dir 5333 mkdir conftest.dir 5334 # Copy depcomp to subdir because otherwise we won't find it if we're 5335 # using a relative directory. 5336 cp "$am_depcomp" conftest.dir 5337 cd conftest.dir 5338 # We will build objects and dependencies in a subdirectory because 5339 # it helps to detect inapplicable dependency modes. For instance 5340 # both Tru64's cc and ICC support -MD to output dependencies as a 5341 # side effect of compilation, but ICC will put the dependencies in 5342 # the current directory while Tru64 will put them in the object 5343 # directory. 5344 mkdir sub 5345 5346 am_cv_CC_dependencies_compiler_type=none 5347 if test "$am_compiler_list" = ""; then 5348 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5349 fi 5350 am__universal=false 5351 case " $depcc " in #( 5352 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5353 esac 5354 5355 for depmode in $am_compiler_list; do 5356 # Setup a source with many dependencies, because some compilers 5357 # like to wrap large dependency lists on column 80 (with \), and 5358 # we should not choose a depcomp mode which is confused by this. 5359 # 5360 # We need to recreate these files for each test, as the compiler may 5361 # overwrite some of them when testing with obscure command lines. 5362 # This happens at least with the AIX C compiler. 5363 : > sub/conftest.c 5364 for i in 1 2 3 4 5 6; do 5365 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5366 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5367 # Solaris 10 /bin/sh. 5368 echo '/* dummy */' > sub/conftst$i.h 5369 done 5370 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5371 5372 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5373 # mode. It turns out that the SunPro C++ compiler does not properly 5374 # handle '-M -o', and we need to detect this. Also, some Intel 5375 # versions had trouble with output in subdirs. 5376 am__obj=sub/conftest.${OBJEXT-o} 5377 am__minus_obj="-o $am__obj" 5378 case $depmode in 5379 gcc) 5380 # This depmode causes a compiler race in universal mode. 5381 test "$am__universal" = false || continue 5382 ;; 5383 nosideeffect) 5384 # After this tag, mechanisms are not by side-effect, so they'll 5385 # only be used when explicitly requested. 5386 if test "x$enable_dependency_tracking" = xyes; then 5387 continue 5388 else 5389 break 5390 fi 5391 ;; 5392 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5393 # This compiler won't grok '-c -o', but also, the minuso test has 5394 # not run yet. These depmodes are late enough in the game, and 5395 # so weak that their functioning should not be impacted. 5396 am__obj=conftest.${OBJEXT-o} 5397 am__minus_obj= 5398 ;; 5399 none) break ;; 5400 esac 5401 if depmode=$depmode \ 5402 source=sub/conftest.c object=$am__obj \ 5403 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5404 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5405 >/dev/null 2>conftest.err && 5406 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5407 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5408 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5409 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5410 # icc doesn't choke on unknown options, it will just issue warnings 5411 # or remarks (even with -Werror). So we grep stderr for any message 5412 # that says an option was ignored or not supported. 5413 # When given -MP, icc 7.0 and 7.1 complain thus: 5414 # icc: Command line warning: ignoring option '-M'; no argument required 5415 # The diagnosis changed in icc 8.0: 5416 # icc: Command line remark: option '-MP' not supported 5417 if (grep 'ignoring option' conftest.err || 5418 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5419 am_cv_CC_dependencies_compiler_type=$depmode 5420 break 5421 fi 5422 fi 5423 done 5424 5425 cd .. 5426 rm -rf conftest.dir 5427 else 5428 am_cv_CC_dependencies_compiler_type=none 5429 fi 5430 ;; 5431 esac 5432 fi 5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5434 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5435 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5436 5437 if 5438 test "x$enable_dependency_tracking" != xno \ 5439 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5440 am__fastdepCC_TRUE= 5441 am__fastdepCC_FALSE='#' 5442 else 5443 am__fastdepCC_TRUE='#' 5444 am__fastdepCC_FALSE= 5445 fi 5446 5447 5448 5449 ac_header= ac_cache= 5450 for ac_item in $ac_header_c_list 5451 do 5452 if test $ac_cache; then 5453 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5454 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5455 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5456 fi 5457 ac_header= ac_cache= 5458 elif test $ac_header; then 5459 ac_cache=$ac_item 5460 else 5461 ac_header=$ac_item 5462 fi 5463 done 5464 5465 5466 5467 5468 5469 5470 5471 5472 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5473 then : 5474 5475 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5476 5477 fi 5478 5479 5480 5481 5482 5483 5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5485 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5486 if test ${ac_cv_safe_to_define___extensions__+y} 5487 then : 5488 printf %s "(cached) " >&6 5489 else case e in #( 5490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5491 /* end confdefs.h. */ 5492 5493 # define __EXTENSIONS__ 1 5494 $ac_includes_default 5495 int 5496 main (void) 5497 { 5498 5499 ; 5500 return 0; 5501 } 5502 _ACEOF 5503 if ac_fn_c_try_compile "$LINENO" 5504 then : 5505 ac_cv_safe_to_define___extensions__=yes 5506 else case e in #( 5507 e) ac_cv_safe_to_define___extensions__=no ;; 5508 esac 5509 fi 5510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5511 esac 5512 fi 5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5514 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5515 5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5517 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5518 if test ${ac_cv_should_define__xopen_source+y} 5519 then : 5520 printf %s "(cached) " >&6 5521 else case e in #( 5522 e) ac_cv_should_define__xopen_source=no 5523 if test $ac_cv_header_wchar_h = yes 5524 then : 5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5526 /* end confdefs.h. */ 5527 5528 #include <wchar.h> 5529 mbstate_t x; 5530 int 5531 main (void) 5532 { 5533 5534 ; 5535 return 0; 5536 } 5537 _ACEOF 5538 if ac_fn_c_try_compile "$LINENO" 5539 then : 5540 5541 else case e in #( 5542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5543 /* end confdefs.h. */ 5544 5545 #define _XOPEN_SOURCE 500 5546 #include <wchar.h> 5547 mbstate_t x; 5548 int 5549 main (void) 5550 { 5551 5552 ; 5553 return 0; 5554 } 5555 _ACEOF 5556 if ac_fn_c_try_compile "$LINENO" 5557 then : 5558 ac_cv_should_define__xopen_source=yes 5559 fi 5560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5561 esac 5562 fi 5563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5564 fi ;; 5565 esac 5566 fi 5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5568 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5569 5570 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5571 5572 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5573 5574 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5575 5576 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5577 5578 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5579 5580 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5581 5582 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5583 5584 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5585 5586 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5587 5588 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5589 5590 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 5591 5592 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5593 5594 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5595 5596 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5597 5598 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5599 5600 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5601 5602 if test $ac_cv_header_minix_config_h = yes 5603 then : 5604 MINIX=yes 5605 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5606 5607 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5608 5609 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5610 5611 else case e in #( 5612 e) MINIX= ;; 5613 esac 5614 fi 5615 if test $ac_cv_safe_to_define___extensions__ = yes 5616 then : 5617 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5618 5619 fi 5620 if test $ac_cv_should_define__xopen_source = yes 5621 then : 5622 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5623 5624 fi 5625 5626 5627 # 5628 # Compiler compatibility flags 5629 # 5630 ac_ext=c 5631 ac_cpp='$CPP $CPPFLAGS' 5632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5634 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5635 if test -n "$ac_tool_prefix"; then 5636 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5637 set dummy ${ac_tool_prefix}gcc; ac_word=$2 5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5639 printf %s "checking for $ac_word... " >&6; } 5640 if test ${ac_cv_prog_CC+y} 5641 then : 5642 printf %s "(cached) " >&6 5643 else case e in #( 5644 e) if test -n "$CC"; then 5645 ac_cv_prog_CC="$CC" # Let the user override the test. 5646 else 5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5648 for as_dir in $PATH 5649 do 5650 IFS=$as_save_IFS 5651 case $as_dir in #((( 5652 '') as_dir=./ ;; 5653 */) ;; 5654 *) as_dir=$as_dir/ ;; 5655 esac 5656 for ac_exec_ext in '' $ac_executable_extensions; do 5657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5658 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5660 break 2 5661 fi 5662 done 5663 done 5664 IFS=$as_save_IFS 5665 5666 fi ;; 5667 esac 5668 fi 5669 CC=$ac_cv_prog_CC 5670 if test -n "$CC"; then 5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5672 printf "%s\n" "$CC" >&6; } 5673 else 5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5675 printf "%s\n" "no" >&6; } 5676 fi 5677 5678 5679 fi 5680 if test -z "$ac_cv_prog_CC"; then 5681 ac_ct_CC=$CC 5682 # Extract the first word of "gcc", so it can be a program name with args. 5683 set dummy gcc; ac_word=$2 5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5685 printf %s "checking for $ac_word... " >&6; } 5686 if test ${ac_cv_prog_ac_ct_CC+y} 5687 then : 5688 printf %s "(cached) " >&6 5689 else case e in #( 5690 e) if test -n "$ac_ct_CC"; then 5691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5692 else 5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5694 for as_dir in $PATH 5695 do 5696 IFS=$as_save_IFS 5697 case $as_dir in #((( 5698 '') as_dir=./ ;; 5699 */) ;; 5700 *) as_dir=$as_dir/ ;; 5701 esac 5702 for ac_exec_ext in '' $ac_executable_extensions; do 5703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5704 ac_cv_prog_ac_ct_CC="gcc" 5705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5706 break 2 5707 fi 5708 done 5709 done 5710 IFS=$as_save_IFS 5711 5712 fi ;; 5713 esac 5714 fi 5715 ac_ct_CC=$ac_cv_prog_ac_ct_CC 5716 if test -n "$ac_ct_CC"; then 5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5718 printf "%s\n" "$ac_ct_CC" >&6; } 5719 else 5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5721 printf "%s\n" "no" >&6; } 5722 fi 5723 5724 if test "x$ac_ct_CC" = x; then 5725 CC="" 5726 else 5727 case $cross_compiling:$ac_tool_warned in 5728 yes:) 5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5730 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5731 ac_tool_warned=yes ;; 5732 esac 5733 CC=$ac_ct_CC 5734 fi 5735 else 5736 CC="$ac_cv_prog_CC" 5737 fi 5738 5739 if test -z "$CC"; then 5740 if test -n "$ac_tool_prefix"; then 5741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5742 set dummy ${ac_tool_prefix}cc; ac_word=$2 5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5744 printf %s "checking for $ac_word... " >&6; } 5745 if test ${ac_cv_prog_CC+y} 5746 then : 5747 printf %s "(cached) " >&6 5748 else case e in #( 5749 e) if test -n "$CC"; then 5750 ac_cv_prog_CC="$CC" # Let the user override the test. 5751 else 5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5753 for as_dir in $PATH 5754 do 5755 IFS=$as_save_IFS 5756 case $as_dir in #((( 5757 '') as_dir=./ ;; 5758 */) ;; 5759 *) as_dir=$as_dir/ ;; 5760 esac 5761 for ac_exec_ext in '' $ac_executable_extensions; do 5762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5763 ac_cv_prog_CC="${ac_tool_prefix}cc" 5764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5765 break 2 5766 fi 5767 done 5768 done 5769 IFS=$as_save_IFS 5770 5771 fi ;; 5772 esac 5773 fi 5774 CC=$ac_cv_prog_CC 5775 if test -n "$CC"; then 5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5777 printf "%s\n" "$CC" >&6; } 5778 else 5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5780 printf "%s\n" "no" >&6; } 5781 fi 5782 5783 5784 fi 5785 fi 5786 if test -z "$CC"; then 5787 # Extract the first word of "cc", so it can be a program name with args. 5788 set dummy cc; ac_word=$2 5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5790 printf %s "checking for $ac_word... " >&6; } 5791 if test ${ac_cv_prog_CC+y} 5792 then : 5793 printf %s "(cached) " >&6 5794 else case e in #( 5795 e) if test -n "$CC"; then 5796 ac_cv_prog_CC="$CC" # Let the user override the test. 5797 else 5798 ac_prog_rejected=no 5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5800 for as_dir in $PATH 5801 do 5802 IFS=$as_save_IFS 5803 case $as_dir in #((( 5804 '') as_dir=./ ;; 5805 */) ;; 5806 *) as_dir=$as_dir/ ;; 5807 esac 5808 for ac_exec_ext in '' $ac_executable_extensions; do 5809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5810 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5811 ac_prog_rejected=yes 5812 continue 5813 fi 5814 ac_cv_prog_CC="cc" 5815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5816 break 2 5817 fi 5818 done 5819 done 5820 IFS=$as_save_IFS 5821 5822 if test $ac_prog_rejected = yes; then 5823 # We found a bogon in the path, so make sure we never use it. 5824 set dummy $ac_cv_prog_CC 5825 shift 5826 if test $# != 0; then 5827 # We chose a different compiler from the bogus one. 5828 # However, it has the same basename, so the bogon will be chosen 5829 # first if we set CC to just the basename; use the full file name. 5830 shift 5831 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 5832 fi 5833 fi 5834 fi ;; 5835 esac 5836 fi 5837 CC=$ac_cv_prog_CC 5838 if test -n "$CC"; then 5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5840 printf "%s\n" "$CC" >&6; } 5841 else 5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5843 printf "%s\n" "no" >&6; } 5844 fi 5845 5846 5847 fi 5848 if test -z "$CC"; then 5849 if test -n "$ac_tool_prefix"; then 5850 for ac_prog in cl.exe 5851 do 5852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5855 printf %s "checking for $ac_word... " >&6; } 5856 if test ${ac_cv_prog_CC+y} 5857 then : 5858 printf %s "(cached) " >&6 5859 else case e in #( 5860 e) if test -n "$CC"; then 5861 ac_cv_prog_CC="$CC" # Let the user override the test. 5862 else 5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5864 for as_dir in $PATH 5865 do 5866 IFS=$as_save_IFS 5867 case $as_dir in #((( 5868 '') as_dir=./ ;; 5869 */) ;; 5870 *) as_dir=$as_dir/ ;; 5871 esac 5872 for ac_exec_ext in '' $ac_executable_extensions; do 5873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5874 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5876 break 2 5877 fi 5878 done 5879 done 5880 IFS=$as_save_IFS 5881 5882 fi ;; 5883 esac 5884 fi 5885 CC=$ac_cv_prog_CC 5886 if test -n "$CC"; then 5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5888 printf "%s\n" "$CC" >&6; } 5889 else 5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5891 printf "%s\n" "no" >&6; } 5892 fi 5893 5894 5895 test -n "$CC" && break 5896 done 5897 fi 5898 if test -z "$CC"; then 5899 ac_ct_CC=$CC 5900 for ac_prog in cl.exe 5901 do 5902 # Extract the first word of "$ac_prog", so it can be a program name with args. 5903 set dummy $ac_prog; ac_word=$2 5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5905 printf %s "checking for $ac_word... " >&6; } 5906 if test ${ac_cv_prog_ac_ct_CC+y} 5907 then : 5908 printf %s "(cached) " >&6 5909 else case e in #( 5910 e) if test -n "$ac_ct_CC"; then 5911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5912 else 5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5914 for as_dir in $PATH 5915 do 5916 IFS=$as_save_IFS 5917 case $as_dir in #((( 5918 '') as_dir=./ ;; 5919 */) ;; 5920 *) as_dir=$as_dir/ ;; 5921 esac 5922 for ac_exec_ext in '' $ac_executable_extensions; do 5923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5924 ac_cv_prog_ac_ct_CC="$ac_prog" 5925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5926 break 2 5927 fi 5928 done 5929 done 5930 IFS=$as_save_IFS 5931 5932 fi ;; 5933 esac 5934 fi 5935 ac_ct_CC=$ac_cv_prog_ac_ct_CC 5936 if test -n "$ac_ct_CC"; then 5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5938 printf "%s\n" "$ac_ct_CC" >&6; } 5939 else 5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5941 printf "%s\n" "no" >&6; } 5942 fi 5943 5944 5945 test -n "$ac_ct_CC" && break 5946 done 5947 5948 if test "x$ac_ct_CC" = x; then 5949 CC="" 5950 else 5951 case $cross_compiling:$ac_tool_warned in 5952 yes:) 5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5954 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5955 ac_tool_warned=yes ;; 5956 esac 5957 CC=$ac_ct_CC 5958 fi 5959 fi 5960 5961 fi 5962 if test -z "$CC"; then 5963 if test -n "$ac_tool_prefix"; then 5964 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 5965 set dummy ${ac_tool_prefix}clang; ac_word=$2 5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5967 printf %s "checking for $ac_word... " >&6; } 5968 if test ${ac_cv_prog_CC+y} 5969 then : 5970 printf %s "(cached) " >&6 5971 else case e in #( 5972 e) if test -n "$CC"; then 5973 ac_cv_prog_CC="$CC" # Let the user override the test. 5974 else 5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5976 for as_dir in $PATH 5977 do 5978 IFS=$as_save_IFS 5979 case $as_dir in #((( 5980 '') as_dir=./ ;; 5981 */) ;; 5982 *) as_dir=$as_dir/ ;; 5983 esac 5984 for ac_exec_ext in '' $ac_executable_extensions; do 5985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5986 ac_cv_prog_CC="${ac_tool_prefix}clang" 5987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5988 break 2 5989 fi 5990 done 5991 done 5992 IFS=$as_save_IFS 5993 5994 fi ;; 5995 esac 5996 fi 5997 CC=$ac_cv_prog_CC 5998 if test -n "$CC"; then 5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6000 printf "%s\n" "$CC" >&6; } 6001 else 6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6003 printf "%s\n" "no" >&6; } 6004 fi 6005 6006 6007 fi 6008 if test -z "$ac_cv_prog_CC"; then 6009 ac_ct_CC=$CC 6010 # Extract the first word of "clang", so it can be a program name with args. 6011 set dummy clang; ac_word=$2 6012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6013 printf %s "checking for $ac_word... " >&6; } 6014 if test ${ac_cv_prog_ac_ct_CC+y} 6015 then : 6016 printf %s "(cached) " >&6 6017 else case e in #( 6018 e) if test -n "$ac_ct_CC"; then 6019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6020 else 6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6022 for as_dir in $PATH 6023 do 6024 IFS=$as_save_IFS 6025 case $as_dir in #((( 6026 '') as_dir=./ ;; 6027 */) ;; 6028 *) as_dir=$as_dir/ ;; 6029 esac 6030 for ac_exec_ext in '' $ac_executable_extensions; do 6031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6032 ac_cv_prog_ac_ct_CC="clang" 6033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6034 break 2 6035 fi 6036 done 6037 done 6038 IFS=$as_save_IFS 6039 6040 fi ;; 6041 esac 6042 fi 6043 ac_ct_CC=$ac_cv_prog_ac_ct_CC 6044 if test -n "$ac_ct_CC"; then 6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6046 printf "%s\n" "$ac_ct_CC" >&6; } 6047 else 6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6049 printf "%s\n" "no" >&6; } 6050 fi 6051 6052 if test "x$ac_ct_CC" = x; then 6053 CC="" 6054 else 6055 case $cross_compiling:$ac_tool_warned in 6056 yes:) 6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6058 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6059 ac_tool_warned=yes ;; 6060 esac 6061 CC=$ac_ct_CC 6062 fi 6063 else 6064 CC="$ac_cv_prog_CC" 6065 fi 6066 6067 fi 6068 6069 6070 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 6071 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 6072 as_fn_error $? "no acceptable C compiler found in \$PATH 6073 See 'config.log' for more details" "$LINENO" 5; } 6074 6075 # Provide some information about the compiler. 6076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6077 set X $ac_compile 6078 ac_compiler=$2 6079 for ac_option in --version -v -V -qversion -version; do 6080 { { ac_try="$ac_compiler $ac_option >&5" 6081 case "(($ac_try" in 6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6083 *) ac_try_echo=$ac_try;; 6084 esac 6085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6086 printf "%s\n" "$ac_try_echo"; } >&5 6087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6088 ac_status=$? 6089 if test -s conftest.err; then 6090 sed '10a\ 6091 ... rest of stderr output deleted ... 6092 10q' conftest.err >conftest.er1 6093 cat conftest.er1 >&5 6094 fi 6095 rm -f conftest.er1 conftest.err 6096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6097 test $ac_status = 0; } 6098 done 6099 6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 6101 printf %s "checking whether the compiler supports GNU C... " >&6; } 6102 if test ${ac_cv_c_compiler_gnu+y} 6103 then : 6104 printf %s "(cached) " >&6 6105 else case e in #( 6106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6107 /* end confdefs.h. */ 6108 6109 int 6110 main (void) 6111 { 6112 #ifndef __GNUC__ 6113 choke me 6114 #endif 6115 6116 ; 6117 return 0; 6118 } 6119 _ACEOF 6120 if ac_fn_c_try_compile "$LINENO" 6121 then : 6122 ac_compiler_gnu=yes 6123 else case e in #( 6124 e) ac_compiler_gnu=no ;; 6125 esac 6126 fi 6127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6128 ac_cv_c_compiler_gnu=$ac_compiler_gnu 6129 ;; 6130 esac 6131 fi 6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6133 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 6134 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6135 6136 if test $ac_compiler_gnu = yes; then 6137 GCC=yes 6138 else 6139 GCC= 6140 fi 6141 ac_test_CFLAGS=${CFLAGS+y} 6142 ac_save_CFLAGS=$CFLAGS 6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 6144 printf %s "checking whether $CC accepts -g... " >&6; } 6145 if test ${ac_cv_prog_cc_g+y} 6146 then : 6147 printf %s "(cached) " >&6 6148 else case e in #( 6149 e) ac_save_c_werror_flag=$ac_c_werror_flag 6150 ac_c_werror_flag=yes 6151 ac_cv_prog_cc_g=no 6152 CFLAGS="-g" 6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6154 /* end confdefs.h. */ 6155 6156 int 6157 main (void) 6158 { 6159 6160 ; 6161 return 0; 6162 } 6163 _ACEOF 6164 if ac_fn_c_try_compile "$LINENO" 6165 then : 6166 ac_cv_prog_cc_g=yes 6167 else case e in #( 6168 e) CFLAGS="" 6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6170 /* end confdefs.h. */ 6171 6172 int 6173 main (void) 6174 { 6175 6176 ; 6177 return 0; 6178 } 6179 _ACEOF 6180 if ac_fn_c_try_compile "$LINENO" 6181 then : 6182 6183 else case e in #( 6184 e) ac_c_werror_flag=$ac_save_c_werror_flag 6185 CFLAGS="-g" 6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187 /* end confdefs.h. */ 6188 6189 int 6190 main (void) 6191 { 6192 6193 ; 6194 return 0; 6195 } 6196 _ACEOF 6197 if ac_fn_c_try_compile "$LINENO" 6198 then : 6199 ac_cv_prog_cc_g=yes 6200 fi 6201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6202 esac 6203 fi 6204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6205 esac 6206 fi 6207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6208 ac_c_werror_flag=$ac_save_c_werror_flag ;; 6209 esac 6210 fi 6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6212 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 6213 if test $ac_test_CFLAGS; then 6214 CFLAGS=$ac_save_CFLAGS 6215 elif test $ac_cv_prog_cc_g = yes; then 6216 if test "$GCC" = yes; then 6217 CFLAGS="-g -O2" 6218 else 6219 CFLAGS="-g" 6220 fi 6221 else 6222 if test "$GCC" = yes; then 6223 CFLAGS="-O2" 6224 else 6225 CFLAGS= 6226 fi 6227 fi 6228 ac_prog_cc_stdc=no 6229 if test x$ac_prog_cc_stdc = xno 6230 then : 6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 6232 printf %s "checking for $CC option to enable C11 features... " >&6; } 6233 if test ${ac_cv_prog_cc_c11+y} 6234 then : 6235 printf %s "(cached) " >&6 6236 else case e in #( 6237 e) ac_cv_prog_cc_c11=no 6238 ac_save_CC=$CC 6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6240 /* end confdefs.h. */ 6241 $ac_c_conftest_c11_program 6242 _ACEOF 6243 for ac_arg in '' -std=gnu11 6244 do 6245 CC="$ac_save_CC $ac_arg" 6246 if ac_fn_c_try_compile "$LINENO" 6247 then : 6248 ac_cv_prog_cc_c11=$ac_arg 6249 fi 6250 rm -f core conftest.err conftest.$ac_objext conftest.beam 6251 test "x$ac_cv_prog_cc_c11" != "xno" && break 6252 done 6253 rm -f conftest.$ac_ext 6254 CC=$ac_save_CC ;; 6255 esac 6256 fi 6257 6258 if test "x$ac_cv_prog_cc_c11" = xno 6259 then : 6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6261 printf "%s\n" "unsupported" >&6; } 6262 else case e in #( 6263 e) if test "x$ac_cv_prog_cc_c11" = x 6264 then : 6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6266 printf "%s\n" "none needed" >&6; } 6267 else case e in #( 6268 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 6269 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 6270 CC="$CC $ac_cv_prog_cc_c11" ;; 6271 esac 6272 fi 6273 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 6274 ac_prog_cc_stdc=c11 ;; 6275 esac 6276 fi 6277 fi 6278 if test x$ac_prog_cc_stdc = xno 6279 then : 6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 6281 printf %s "checking for $CC option to enable C99 features... " >&6; } 6282 if test ${ac_cv_prog_cc_c99+y} 6283 then : 6284 printf %s "(cached) " >&6 6285 else case e in #( 6286 e) ac_cv_prog_cc_c99=no 6287 ac_save_CC=$CC 6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6289 /* end confdefs.h. */ 6290 $ac_c_conftest_c99_program 6291 _ACEOF 6292 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 6293 do 6294 CC="$ac_save_CC $ac_arg" 6295 if ac_fn_c_try_compile "$LINENO" 6296 then : 6297 ac_cv_prog_cc_c99=$ac_arg 6298 fi 6299 rm -f core conftest.err conftest.$ac_objext conftest.beam 6300 test "x$ac_cv_prog_cc_c99" != "xno" && break 6301 done 6302 rm -f conftest.$ac_ext 6303 CC=$ac_save_CC ;; 6304 esac 6305 fi 6306 6307 if test "x$ac_cv_prog_cc_c99" = xno 6308 then : 6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6310 printf "%s\n" "unsupported" >&6; } 6311 else case e in #( 6312 e) if test "x$ac_cv_prog_cc_c99" = x 6313 then : 6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6315 printf "%s\n" "none needed" >&6; } 6316 else case e in #( 6317 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 6318 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 6319 CC="$CC $ac_cv_prog_cc_c99" ;; 6320 esac 6321 fi 6322 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 6323 ac_prog_cc_stdc=c99 ;; 6324 esac 6325 fi 6326 fi 6327 if test x$ac_prog_cc_stdc = xno 6328 then : 6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 6330 printf %s "checking for $CC option to enable C89 features... " >&6; } 6331 if test ${ac_cv_prog_cc_c89+y} 6332 then : 6333 printf %s "(cached) " >&6 6334 else case e in #( 6335 e) ac_cv_prog_cc_c89=no 6336 ac_save_CC=$CC 6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6338 /* end confdefs.h. */ 6339 $ac_c_conftest_c89_program 6340 _ACEOF 6341 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6342 do 6343 CC="$ac_save_CC $ac_arg" 6344 if ac_fn_c_try_compile "$LINENO" 6345 then : 6346 ac_cv_prog_cc_c89=$ac_arg 6347 fi 6348 rm -f core conftest.err conftest.$ac_objext conftest.beam 6349 test "x$ac_cv_prog_cc_c89" != "xno" && break 6350 done 6351 rm -f conftest.$ac_ext 6352 CC=$ac_save_CC ;; 6353 esac 6354 fi 6355 6356 if test "x$ac_cv_prog_cc_c89" = xno 6357 then : 6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6359 printf "%s\n" "unsupported" >&6; } 6360 else case e in #( 6361 e) if test "x$ac_cv_prog_cc_c89" = x 6362 then : 6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6364 printf "%s\n" "none needed" >&6; } 6365 else case e in #( 6366 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6367 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 6368 CC="$CC $ac_cv_prog_cc_c89" ;; 6369 esac 6370 fi 6371 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 6372 ac_prog_cc_stdc=c89 ;; 6373 esac 6374 fi 6375 fi 6376 6377 ac_ext=c 6378 ac_cpp='$CPP $CPPFLAGS' 6379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6381 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6382 6383 6384 ac_ext=c 6385 ac_cpp='$CPP $CPPFLAGS' 6386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6388 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6390 printf %s "checking whether $CC understands -c and -o together... " >&6; } 6391 if test ${am_cv_prog_cc_c_o+y} 6392 then : 6393 printf %s "(cached) " >&6 6394 else case e in #( 6395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6396 /* end confdefs.h. */ 6397 6398 int 6399 main (void) 6400 { 6401 6402 ; 6403 return 0; 6404 } 6405 _ACEOF 6406 # Make sure it works both with $CC and with simple cc. 6407 # Following AC_PROG_CC_C_O, we do the test twice because some 6408 # compilers refuse to overwrite an existing .o file with -o, 6409 # though they will create one. 6410 am_cv_prog_cc_c_o=yes 6411 for am_i in 1 2; do 6412 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6413 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6414 ac_status=$? 6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6416 (exit $ac_status); } \ 6417 && test -f conftest2.$ac_objext; then 6418 : OK 6419 else 6420 am_cv_prog_cc_c_o=no 6421 break 6422 fi 6423 done 6424 rm -f core conftest* 6425 unset am_i ;; 6426 esac 6427 fi 6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6429 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 6430 if test "$am_cv_prog_cc_c_o" != yes; then 6431 # Losing compiler, so override with the script. 6432 # FIXME: It is wrong to rewrite CC. 6433 # But if we don't then we get into trouble of one sort or another. 6434 # A longer-term fix would be to have automake use am__CC in this case, 6435 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6436 CC="$am_aux_dir/compile $CC" 6437 fi 6438 ac_ext=c 6439 ac_cpp='$CPP $CPPFLAGS' 6440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6442 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6443 6444 6445 depcc="$CC" am_compiler_list= 6446 6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6448 printf %s "checking dependency style of $depcc... " >&6; } 6449 if test ${am_cv_CC_dependencies_compiler_type+y} 6450 then : 6451 printf %s "(cached) " >&6 6452 else case e in #( 6453 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6454 # We make a subdir and do the tests there. Otherwise we can end up 6455 # making bogus files that we don't know about and never remove. For 6456 # instance it was reported that on HP-UX the gcc test will end up 6457 # making a dummy file named 'D' -- because '-MD' means "put the output 6458 # in D". 6459 rm -rf conftest.dir 6460 mkdir conftest.dir 6461 # Copy depcomp to subdir because otherwise we won't find it if we're 6462 # using a relative directory. 6463 cp "$am_depcomp" conftest.dir 6464 cd conftest.dir 6465 # We will build objects and dependencies in a subdirectory because 6466 # it helps to detect inapplicable dependency modes. For instance 6467 # both Tru64's cc and ICC support -MD to output dependencies as a 6468 # side effect of compilation, but ICC will put the dependencies in 6469 # the current directory while Tru64 will put them in the object 6470 # directory. 6471 mkdir sub 6472 6473 am_cv_CC_dependencies_compiler_type=none 6474 if test "$am_compiler_list" = ""; then 6475 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6476 fi 6477 am__universal=false 6478 case " $depcc " in #( 6479 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6480 esac 6481 6482 for depmode in $am_compiler_list; do 6483 # Setup a source with many dependencies, because some compilers 6484 # like to wrap large dependency lists on column 80 (with \), and 6485 # we should not choose a depcomp mode which is confused by this. 6486 # 6487 # We need to recreate these files for each test, as the compiler may 6488 # overwrite some of them when testing with obscure command lines. 6489 # This happens at least with the AIX C compiler. 6490 : > sub/conftest.c 6491 for i in 1 2 3 4 5 6; do 6492 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6493 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6494 # Solaris 10 /bin/sh. 6495 echo '/* dummy */' > sub/conftst$i.h 6496 done 6497 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6498 6499 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6500 # mode. It turns out that the SunPro C++ compiler does not properly 6501 # handle '-M -o', and we need to detect this. Also, some Intel 6502 # versions had trouble with output in subdirs. 6503 am__obj=sub/conftest.${OBJEXT-o} 6504 am__minus_obj="-o $am__obj" 6505 case $depmode in 6506 gcc) 6507 # This depmode causes a compiler race in universal mode. 6508 test "$am__universal" = false || continue 6509 ;; 6510 nosideeffect) 6511 # After this tag, mechanisms are not by side-effect, so they'll 6512 # only be used when explicitly requested. 6513 if test "x$enable_dependency_tracking" = xyes; then 6514 continue 6515 else 6516 break 6517 fi 6518 ;; 6519 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6520 # This compiler won't grok '-c -o', but also, the minuso test has 6521 # not run yet. These depmodes are late enough in the game, and 6522 # so weak that their functioning should not be impacted. 6523 am__obj=conftest.${OBJEXT-o} 6524 am__minus_obj= 6525 ;; 6526 none) break ;; 6527 esac 6528 if depmode=$depmode \ 6529 source=sub/conftest.c object=$am__obj \ 6530 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6531 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6532 >/dev/null 2>conftest.err && 6533 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6534 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6535 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6536 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6537 # icc doesn't choke on unknown options, it will just issue warnings 6538 # or remarks (even with -Werror). So we grep stderr for any message 6539 # that says an option was ignored or not supported. 6540 # When given -MP, icc 7.0 and 7.1 complain thus: 6541 # icc: Command line warning: ignoring option '-M'; no argument required 6542 # The diagnosis changed in icc 8.0: 6543 # icc: Command line remark: option '-MP' not supported 6544 if (grep 'ignoring option' conftest.err || 6545 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6546 am_cv_CC_dependencies_compiler_type=$depmode 6547 break 6548 fi 6549 fi 6550 done 6551 6552 cd .. 6553 rm -rf conftest.dir 6554 else 6555 am_cv_CC_dependencies_compiler_type=none 6556 fi 6557 ;; 6558 esac 6559 fi 6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6561 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 6562 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6563 6564 if 6565 test "x$enable_dependency_tracking" != xno \ 6566 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6567 am__fastdepCC_TRUE= 6568 am__fastdepCC_FALSE='#' 6569 else 6570 am__fastdepCC_TRUE='#' 6571 am__fastdepCC_FALSE= 6572 fi 6573 6574 6575 ac_ext=c 6576 ac_cpp='$CPP $CPPFLAGS' 6577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6579 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6581 printf %s "checking how to run the C preprocessor... " >&6; } 6582 # On Suns, sometimes $CPP names a directory. 6583 if test -n "$CPP" && test -d "$CPP"; then 6584 CPP= 6585 fi 6586 if test -z "$CPP"; then 6587 if test ${ac_cv_prog_CPP+y} 6588 then : 6589 printf %s "(cached) " >&6 6590 else case e in #( 6591 e) # Double quotes because $CC needs to be expanded 6592 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 6593 do 6594 ac_preproc_ok=false 6595 for ac_c_preproc_warn_flag in '' yes 6596 do 6597 # Use a header file that comes with gcc, so configuring glibc 6598 # with a fresh cross-compiler works. 6599 # On the NeXT, cc -E runs the code through the compiler's parser, 6600 # not just through cpp. "Syntax error" is here to catch this case. 6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6602 /* end confdefs.h. */ 6603 #include <limits.h> 6604 Syntax error 6605 _ACEOF 6606 if ac_fn_c_try_cpp "$LINENO" 6607 then : 6608 6609 else case e in #( 6610 e) # Broken: fails on valid input. 6611 continue ;; 6612 esac 6613 fi 6614 rm -f conftest.err conftest.i conftest.$ac_ext 6615 6616 # OK, works on sane cases. Now check whether nonexistent headers 6617 # can be detected and how. 6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6619 /* end confdefs.h. */ 6620 #include <ac_nonexistent.h> 6621 _ACEOF 6622 if ac_fn_c_try_cpp "$LINENO" 6623 then : 6624 # Broken: success on invalid input. 6625 continue 6626 else case e in #( 6627 e) # Passes both tests. 6628 ac_preproc_ok=: 6629 break ;; 6630 esac 6631 fi 6632 rm -f conftest.err conftest.i conftest.$ac_ext 6633 6634 done 6635 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6636 rm -f conftest.i conftest.err conftest.$ac_ext 6637 if $ac_preproc_ok 6638 then : 6639 break 6640 fi 6641 6642 done 6643 ac_cv_prog_CPP=$CPP 6644 ;; 6645 esac 6646 fi 6647 CPP=$ac_cv_prog_CPP 6648 else 6649 ac_cv_prog_CPP=$CPP 6650 fi 6651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6652 printf "%s\n" "$CPP" >&6; } 6653 ac_preproc_ok=false 6654 for ac_c_preproc_warn_flag in '' yes 6655 do 6656 # Use a header file that comes with gcc, so configuring glibc 6657 # with a fresh cross-compiler works. 6658 # On the NeXT, cc -E runs the code through the compiler's parser, 6659 # not just through cpp. "Syntax error" is here to catch this case. 6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6661 /* end confdefs.h. */ 6662 #include <limits.h> 6663 Syntax error 6664 _ACEOF 6665 if ac_fn_c_try_cpp "$LINENO" 6666 then : 6667 6668 else case e in #( 6669 e) # Broken: fails on valid input. 6670 continue ;; 6671 esac 6672 fi 6673 rm -f conftest.err conftest.i conftest.$ac_ext 6674 6675 # OK, works on sane cases. Now check whether nonexistent headers 6676 # can be detected and how. 6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6678 /* end confdefs.h. */ 6679 #include <ac_nonexistent.h> 6680 _ACEOF 6681 if ac_fn_c_try_cpp "$LINENO" 6682 then : 6683 # Broken: success on invalid input. 6684 continue 6685 else case e in #( 6686 e) # Passes both tests. 6687 ac_preproc_ok=: 6688 break ;; 6689 esac 6690 fi 6691 rm -f conftest.err conftest.i conftest.$ac_ext 6692 6693 done 6694 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6695 rm -f conftest.i conftest.err conftest.$ac_ext 6696 if $ac_preproc_ok 6697 then : 6698 6699 else case e in #( 6700 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 6701 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 6702 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6703 See 'config.log' for more details" "$LINENO" 5; } ;; 6704 esac 6705 fi 6706 6707 ac_ext=c 6708 ac_cpp='$CPP $CPPFLAGS' 6709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6711 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6712 6713 ac_c_preproc_warn_flag=yes 6714 6715 # 6716 # Find build compiler when cross compiling 6717 # 6718 6719 6720 cross_compiling_build=no 6721 6722 ac_build_tool_prefix= 6723 if test -n "$build" 6724 then : 6725 ac_build_tool_prefix="$build-" 6726 elif test -n "$build_alias" 6727 then : 6728 ac_build_tool_prefix="$build_alias-" 6729 fi 6730 6731 ac_ext=c 6732 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 6733 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6734 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 6735 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 6736 6737 6738 was_set_c_compiler_gnu=${ac_cv_c_compiler_gnu+y} 6739 if test ${was_set_c_compiler_gnu} 6740 then : 6741 saved_c_compiler_gnu=$ac_cv_c_compiler_gnu 6742 { ac_cv_c_compiler_gnu=; unset ac_cv_c_compiler_gnu;} 6743 fi 6744 6745 ac_ext=c 6746 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 6747 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6748 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 6749 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 6750 if test -n "$ac_build_tool_prefix"; then 6751 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 6752 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2 6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6754 printf %s "checking for $ac_word... " >&6; } 6755 if test ${ac_cv_prog_CC_FOR_BUILD+y} 6756 then : 6757 printf %s "(cached) " >&6 6758 else case e in #( 6759 e) if test -n "$CC_FOR_BUILD"; then 6760 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6761 else 6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6763 for as_dir in $PATH 6764 do 6765 IFS=$as_save_IFS 6766 case $as_dir in #((( 6767 '') as_dir=./ ;; 6768 */) ;; 6769 *) as_dir=$as_dir/ ;; 6770 esac 6771 for ac_exec_ext in '' $ac_executable_extensions; do 6772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6773 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc" 6774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6775 break 2 6776 fi 6777 done 6778 done 6779 IFS=$as_save_IFS 6780 6781 fi ;; 6782 esac 6783 fi 6784 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6785 if test -n "$CC_FOR_BUILD"; then 6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6787 printf "%s\n" "$CC_FOR_BUILD" >&6; } 6788 else 6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6790 printf "%s\n" "no" >&6; } 6791 fi 6792 6793 6794 fi 6795 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then 6796 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 6797 # Extract the first word of "gcc", so it can be a program name with args. 6798 set dummy gcc; ac_word=$2 6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6800 printf %s "checking for $ac_word... " >&6; } 6801 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y} 6802 then : 6803 printf %s "(cached) " >&6 6804 else case e in #( 6805 e) if test -n "$ac_ct_CC_FOR_BUILD"; then 6806 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 6807 else 6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6809 for as_dir in $PATH 6810 do 6811 IFS=$as_save_IFS 6812 case $as_dir in #((( 6813 '') as_dir=./ ;; 6814 */) ;; 6815 *) as_dir=$as_dir/ ;; 6816 esac 6817 for ac_exec_ext in '' $ac_executable_extensions; do 6818 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6819 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc" 6820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6821 break 2 6822 fi 6823 done 6824 done 6825 IFS=$as_save_IFS 6826 6827 fi ;; 6828 esac 6829 fi 6830 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 6831 if test -n "$ac_ct_CC_FOR_BUILD"; then 6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 6833 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; } 6834 else 6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6836 printf "%s\n" "no" >&6; } 6837 fi 6838 6839 if test "x$ac_ct_CC_FOR_BUILD" = x; then 6840 CC_FOR_BUILD="" 6841 else 6842 case $cross_compiling_build:$ac_tool_warned in 6843 yes:) 6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 6845 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 6846 ac_tool_warned=yes ;; 6847 esac 6848 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 6849 fi 6850 else 6851 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD" 6852 fi 6853 6854 if test -z "$CC_FOR_BUILD"; then 6855 if test -n "$ac_build_tool_prefix"; then 6856 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 6857 set dummy ${ac_build_tool_prefix}cc; ac_word=$2 6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6859 printf %s "checking for $ac_word... " >&6; } 6860 if test ${ac_cv_prog_CC_FOR_BUILD+y} 6861 then : 6862 printf %s "(cached) " >&6 6863 else case e in #( 6864 e) if test -n "$CC_FOR_BUILD"; then 6865 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6866 else 6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6868 for as_dir in $PATH 6869 do 6870 IFS=$as_save_IFS 6871 case $as_dir in #((( 6872 '') as_dir=./ ;; 6873 */) ;; 6874 *) as_dir=$as_dir/ ;; 6875 esac 6876 for ac_exec_ext in '' $ac_executable_extensions; do 6877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6878 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc" 6879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6880 break 2 6881 fi 6882 done 6883 done 6884 IFS=$as_save_IFS 6885 6886 fi ;; 6887 esac 6888 fi 6889 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6890 if test -n "$CC_FOR_BUILD"; then 6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6892 printf "%s\n" "$CC_FOR_BUILD" >&6; } 6893 else 6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6895 printf "%s\n" "no" >&6; } 6896 fi 6897 6898 6899 fi 6900 fi 6901 if test -z "$CC_FOR_BUILD"; then 6902 # Extract the first word of "cc", so it can be a program name with args. 6903 set dummy cc; ac_word=$2 6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6905 printf %s "checking for $ac_word... " >&6; } 6906 if test ${ac_cv_prog_CC_FOR_BUILD+y} 6907 then : 6908 printf %s "(cached) " >&6 6909 else case e in #( 6910 e) if test -n "$CC_FOR_BUILD"; then 6911 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6912 else 6913 ac_prog_rejected=no 6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6915 for as_dir in $PATH 6916 do 6917 IFS=$as_save_IFS 6918 case $as_dir in #((( 6919 '') as_dir=./ ;; 6920 */) ;; 6921 *) as_dir=$as_dir/ ;; 6922 esac 6923 for ac_exec_ext in '' $ac_executable_extensions; do 6924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6925 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 6926 ac_prog_rejected=yes 6927 continue 6928 fi 6929 ac_cv_prog_CC_FOR_BUILD="cc" 6930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6931 break 2 6932 fi 6933 done 6934 done 6935 IFS=$as_save_IFS 6936 6937 if test $ac_prog_rejected = yes; then 6938 # We found a bogon in the path, so make sure we never use it. 6939 set dummy $ac_cv_prog_CC_FOR_BUILD 6940 shift 6941 if test $# != 0; then 6942 # We chose a different compiler from the bogus one. 6943 # However, it has the same basename, so the bogon will be chosen 6944 # first if we set CC_FOR_BUILD to just the basename; use the full file name. 6945 shift 6946 ac_cv_prog_CC_FOR_BUILD="$as_dir$ac_word${1+' '}$@" 6947 fi 6948 fi 6949 fi ;; 6950 esac 6951 fi 6952 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6953 if test -n "$CC_FOR_BUILD"; then 6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6955 printf "%s\n" "$CC_FOR_BUILD" >&6; } 6956 else 6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6958 printf "%s\n" "no" >&6; } 6959 fi 6960 6961 6962 fi 6963 if test -z "$CC_FOR_BUILD"; then 6964 if test -n "$ac_build_tool_prefix"; then 6965 for ac_prog in cl.exe 6966 do 6967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6968 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2 6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6970 printf %s "checking for $ac_word... " >&6; } 6971 if test ${ac_cv_prog_CC_FOR_BUILD+y} 6972 then : 6973 printf %s "(cached) " >&6 6974 else case e in #( 6975 e) if test -n "$CC_FOR_BUILD"; then 6976 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6977 else 6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6979 for as_dir in $PATH 6980 do 6981 IFS=$as_save_IFS 6982 case $as_dir in #((( 6983 '') as_dir=./ ;; 6984 */) ;; 6985 *) as_dir=$as_dir/ ;; 6986 esac 6987 for ac_exec_ext in '' $ac_executable_extensions; do 6988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6989 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog" 6990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6991 break 2 6992 fi 6993 done 6994 done 6995 IFS=$as_save_IFS 6996 6997 fi ;; 6998 esac 6999 fi 7000 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 7001 if test -n "$CC_FOR_BUILD"; then 7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 7003 printf "%s\n" "$CC_FOR_BUILD" >&6; } 7004 else 7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7006 printf "%s\n" "no" >&6; } 7007 fi 7008 7009 7010 test -n "$CC_FOR_BUILD" && break 7011 done 7012 fi 7013 if test -z "$CC_FOR_BUILD"; then 7014 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 7015 for ac_prog in cl.exe 7016 do 7017 # Extract the first word of "$ac_prog", so it can be a program name with args. 7018 set dummy $ac_prog; ac_word=$2 7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7020 printf %s "checking for $ac_word... " >&6; } 7021 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y} 7022 then : 7023 printf %s "(cached) " >&6 7024 else case e in #( 7025 e) if test -n "$ac_ct_CC_FOR_BUILD"; then 7026 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 7027 else 7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7029 for as_dir in $PATH 7030 do 7031 IFS=$as_save_IFS 7032 case $as_dir in #((( 7033 '') as_dir=./ ;; 7034 */) ;; 7035 *) as_dir=$as_dir/ ;; 7036 esac 7037 for ac_exec_ext in '' $ac_executable_extensions; do 7038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7039 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog" 7040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7041 break 2 7042 fi 7043 done 7044 done 7045 IFS=$as_save_IFS 7046 7047 fi ;; 7048 esac 7049 fi 7050 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 7051 if test -n "$ac_ct_CC_FOR_BUILD"; then 7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 7053 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; } 7054 else 7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7056 printf "%s\n" "no" >&6; } 7057 fi 7058 7059 7060 test -n "$ac_ct_CC_FOR_BUILD" && break 7061 done 7062 7063 if test "x$ac_ct_CC_FOR_BUILD" = x; then 7064 CC_FOR_BUILD="" 7065 else 7066 case $cross_compiling_build:$ac_tool_warned in 7067 yes:) 7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 7069 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 7070 ac_tool_warned=yes ;; 7071 esac 7072 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 7073 fi 7074 fi 7075 7076 fi 7077 if test -z "$CC_FOR_BUILD"; then 7078 if test -n "$ac_build_tool_prefix"; then 7079 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 7080 set dummy ${ac_build_tool_prefix}clang; ac_word=$2 7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7082 printf %s "checking for $ac_word... " >&6; } 7083 if test ${ac_cv_prog_CC_FOR_BUILD+y} 7084 then : 7085 printf %s "(cached) " >&6 7086 else case e in #( 7087 e) if test -n "$CC_FOR_BUILD"; then 7088 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 7089 else 7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7091 for as_dir in $PATH 7092 do 7093 IFS=$as_save_IFS 7094 case $as_dir in #((( 7095 '') as_dir=./ ;; 7096 */) ;; 7097 *) as_dir=$as_dir/ ;; 7098 esac 7099 for ac_exec_ext in '' $ac_executable_extensions; do 7100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7101 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}clang" 7102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7103 break 2 7104 fi 7105 done 7106 done 7107 IFS=$as_save_IFS 7108 7109 fi ;; 7110 esac 7111 fi 7112 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 7113 if test -n "$CC_FOR_BUILD"; then 7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 7115 printf "%s\n" "$CC_FOR_BUILD" >&6; } 7116 else 7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7118 printf "%s\n" "no" >&6; } 7119 fi 7120 7121 7122 fi 7123 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then 7124 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 7125 # Extract the first word of "clang", so it can be a program name with args. 7126 set dummy clang; ac_word=$2 7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7128 printf %s "checking for $ac_word... " >&6; } 7129 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y} 7130 then : 7131 printf %s "(cached) " >&6 7132 else case e in #( 7133 e) if test -n "$ac_ct_CC_FOR_BUILD"; then 7134 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 7135 else 7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7137 for as_dir in $PATH 7138 do 7139 IFS=$as_save_IFS 7140 case $as_dir in #((( 7141 '') as_dir=./ ;; 7142 */) ;; 7143 *) as_dir=$as_dir/ ;; 7144 esac 7145 for ac_exec_ext in '' $ac_executable_extensions; do 7146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7147 ac_cv_prog_ac_ct_CC_FOR_BUILD="clang" 7148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7149 break 2 7150 fi 7151 done 7152 done 7153 IFS=$as_save_IFS 7154 7155 fi ;; 7156 esac 7157 fi 7158 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 7159 if test -n "$ac_ct_CC_FOR_BUILD"; then 7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 7161 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; } 7162 else 7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7164 printf "%s\n" "no" >&6; } 7165 fi 7166 7167 if test "x$ac_ct_CC_FOR_BUILD" = x; then 7168 CC_FOR_BUILD="" 7169 else 7170 case $cross_compiling_build:$ac_tool_warned in 7171 yes:) 7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 7173 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 7174 ac_tool_warned=yes ;; 7175 esac 7176 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 7177 fi 7178 else 7179 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD" 7180 fi 7181 7182 fi 7183 7184 7185 test -z "$CC_FOR_BUILD" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 7186 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 7187 as_fn_error $? "no acceptable C compiler found in \$PATH 7188 See 'config.log' for more details" "$LINENO" 5; } 7189 7190 # Provide some information about the compiler. 7191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 7192 set X $ac_compile 7193 ac_compiler=$2 7194 for ac_option in --version -v -V -qversion -version; do 7195 { { ac_try="$ac_compiler $ac_option >&5" 7196 case "(($ac_try" in 7197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7198 *) ac_try_echo=$ac_try;; 7199 esac 7200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7201 printf "%s\n" "$ac_try_echo"; } >&5 7202 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7203 ac_status=$? 7204 if test -s conftest.err; then 7205 sed '10a\ 7206 ... rest of stderr output deleted ... 7207 10q' conftest.err >conftest.er1 7208 cat conftest.er1 >&5 7209 fi 7210 rm -f conftest.er1 conftest.err 7211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7212 test $ac_status = 0; } 7213 done 7214 7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 7216 printf %s "checking whether the compiler supports GNU C... " >&6; } 7217 if test ${ac_cv_c_compiler_gnu+y} 7218 then : 7219 printf %s "(cached) " >&6 7220 else case e in #( 7221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7222 /* end confdefs.h. */ 7223 7224 int 7225 main (void) 7226 { 7227 #ifndef __GNUC__ 7228 choke me 7229 #endif 7230 7231 ; 7232 return 0; 7233 } 7234 _ACEOF 7235 if ac_fn_c_try_compile "$LINENO" 7236 then : 7237 ac_compiler_gnu=yes 7238 else case e in #( 7239 e) ac_compiler_gnu=no ;; 7240 esac 7241 fi 7242 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext 7243 ac_cv_c_compiler_gnu=$ac_compiler_gnu 7244 ;; 7245 esac 7246 fi 7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 7248 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 7249 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7250 7251 if test $ac_compiler_gnu = yes; then 7252 GCC_FOR_BUILD=yes 7253 else 7254 GCC_FOR_BUILD= 7255 fi 7256 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+y} 7257 ac_save_CFLAGS=$CFLAGS_FOR_BUILD 7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5 7259 printf %s "checking whether $CC_FOR_BUILD accepts -g... " >&6; } 7260 if test ${ac_cv_build_prog_cc_g+y} 7261 then : 7262 printf %s "(cached) " >&6 7263 else case e in #( 7264 e) ac_save_c_werror_flag=$ac_c_werror_flag 7265 ac_c_werror_flag=yes 7266 ac_cv_build_prog_cc_g=no 7267 CFLAGS_FOR_BUILD="-g" 7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7269 /* end confdefs.h. */ 7270 7271 int 7272 main (void) 7273 { 7274 7275 ; 7276 return 0; 7277 } 7278 _ACEOF 7279 if ac_fn_c_try_compile "$LINENO" 7280 then : 7281 ac_cv_build_prog_cc_g=yes 7282 else case e in #( 7283 e) CFLAGS_FOR_BUILD="" 7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7285 /* end confdefs.h. */ 7286 7287 int 7288 main (void) 7289 { 7290 7291 ; 7292 return 0; 7293 } 7294 _ACEOF 7295 if ac_fn_c_try_compile "$LINENO" 7296 then : 7297 7298 else case e in #( 7299 e) ac_c_werror_flag=$ac_save_c_werror_flag 7300 CFLAGS_FOR_BUILD="-g" 7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7302 /* end confdefs.h. */ 7303 7304 int 7305 main (void) 7306 { 7307 7308 ; 7309 return 0; 7310 } 7311 _ACEOF 7312 if ac_fn_c_try_compile "$LINENO" 7313 then : 7314 ac_cv_build_prog_cc_g=yes 7315 fi 7316 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext ;; 7317 esac 7318 fi 7319 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext ;; 7320 esac 7321 fi 7322 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext 7323 ac_c_werror_flag=$ac_save_c_werror_flag ;; 7324 esac 7325 fi 7326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5 7327 printf "%s\n" "$ac_cv_build_prog_cc_g" >&6; } 7328 if test $ac_test_CFLAGS; then 7329 CFLAGS_FOR_BUILD=$ac_save_CFLAGS 7330 elif test $ac_cv_build_prog_cc_g = yes; then 7331 if test "$GCC_FOR_BUILD" = yes; then 7332 CFLAGS_FOR_BUILD="-g -O2" 7333 else 7334 CFLAGS_FOR_BUILD="-g" 7335 fi 7336 else 7337 if test "$GCC_FOR_BUILD" = yes; then 7338 CFLAGS_FOR_BUILD="-O2" 7339 else 7340 CFLAGS_FOR_BUILD= 7341 fi 7342 fi 7343 ac_prog_cc_stdc=no 7344 if test x$ac_prog_cc_stdc = xno 7345 then : 7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C11 features" >&5 7347 printf %s "checking for $CC_FOR_BUILD option to enable C11 features... " >&6; } 7348 if test ${ac_cv_build_prog_cc_c11+y} 7349 then : 7350 printf %s "(cached) " >&6 7351 else case e in #( 7352 e) ac_cv_build_prog_cc_c11=no 7353 ac_save_CC=$CC_FOR_BUILD 7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7355 /* end confdefs.h. */ 7356 $ac_c_conftest_c11_program 7357 _ACEOF 7358 for ac_arg in '' -std=gnu11 7359 do 7360 CC_FOR_BUILD="$ac_save_CC $ac_arg" 7361 if ac_fn_c_try_compile "$LINENO" 7362 then : 7363 ac_cv_build_prog_cc_c11=$ac_arg 7364 fi 7365 rm -f core conftest.err conftest.$ac_build_objext conftest.beam 7366 test "x$ac_cv_build_prog_cc_c11" != "xno" && break 7367 done 7368 rm -f conftest.$ac_ext 7369 CC_FOR_BUILD=$ac_save_CC ;; 7370 esac 7371 fi 7372 7373 if test "x$ac_cv_build_prog_cc_c11" = xno 7374 then : 7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7376 printf "%s\n" "unsupported" >&6; } 7377 else case e in #( 7378 e) if test "x$ac_cv_build_prog_cc_c11" = x 7379 then : 7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7381 printf "%s\n" "none needed" >&6; } 7382 else case e in #( 7383 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c11" >&5 7384 printf "%s\n" "$ac_cv_build_prog_cc_c11" >&6; } 7385 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c11" ;; 7386 esac 7387 fi 7388 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c11 7389 ac_prog_cc_stdc=c11 ;; 7390 esac 7391 fi 7392 fi 7393 if test x$ac_prog_cc_stdc = xno 7394 then : 7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C99 features" >&5 7396 printf %s "checking for $CC_FOR_BUILD option to enable C99 features... " >&6; } 7397 if test ${ac_cv_build_prog_cc_c99+y} 7398 then : 7399 printf %s "(cached) " >&6 7400 else case e in #( 7401 e) ac_cv_build_prog_cc_c99=no 7402 ac_save_CC=$CC_FOR_BUILD 7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7404 /* end confdefs.h. */ 7405 $ac_c_conftest_c99_program 7406 _ACEOF 7407 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 7408 do 7409 CC_FOR_BUILD="$ac_save_CC $ac_arg" 7410 if ac_fn_c_try_compile "$LINENO" 7411 then : 7412 ac_cv_build_prog_cc_c99=$ac_arg 7413 fi 7414 rm -f core conftest.err conftest.$ac_build_objext conftest.beam 7415 test "x$ac_cv_build_prog_cc_c99" != "xno" && break 7416 done 7417 rm -f conftest.$ac_ext 7418 CC_FOR_BUILD=$ac_save_CC ;; 7419 esac 7420 fi 7421 7422 if test "x$ac_cv_build_prog_cc_c99" = xno 7423 then : 7424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7425 printf "%s\n" "unsupported" >&6; } 7426 else case e in #( 7427 e) if test "x$ac_cv_build_prog_cc_c99" = x 7428 then : 7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7430 printf "%s\n" "none needed" >&6; } 7431 else case e in #( 7432 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c99" >&5 7433 printf "%s\n" "$ac_cv_build_prog_cc_c99" >&6; } 7434 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c99" ;; 7435 esac 7436 fi 7437 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c99 7438 ac_prog_cc_stdc=c99 ;; 7439 esac 7440 fi 7441 fi 7442 if test x$ac_prog_cc_stdc = xno 7443 then : 7444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C89 features" >&5 7445 printf %s "checking for $CC_FOR_BUILD option to enable C89 features... " >&6; } 7446 if test ${ac_cv_build_prog_cc_c89+y} 7447 then : 7448 printf %s "(cached) " >&6 7449 else case e in #( 7450 e) ac_cv_build_prog_cc_c89=no 7451 ac_save_CC=$CC_FOR_BUILD 7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7453 /* end confdefs.h. */ 7454 $ac_c_conftest_c89_program 7455 _ACEOF 7456 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 7457 do 7458 CC_FOR_BUILD="$ac_save_CC $ac_arg" 7459 if ac_fn_c_try_compile "$LINENO" 7460 then : 7461 ac_cv_build_prog_cc_c89=$ac_arg 7462 fi 7463 rm -f core conftest.err conftest.$ac_build_objext conftest.beam 7464 test "x$ac_cv_build_prog_cc_c89" != "xno" && break 7465 done 7466 rm -f conftest.$ac_ext 7467 CC_FOR_BUILD=$ac_save_CC ;; 7468 esac 7469 fi 7470 7471 if test "x$ac_cv_build_prog_cc_c89" = xno 7472 then : 7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7474 printf "%s\n" "unsupported" >&6; } 7475 else case e in #( 7476 e) if test "x$ac_cv_build_prog_cc_c89" = x 7477 then : 7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7479 printf "%s\n" "none needed" >&6; } 7480 else case e in #( 7481 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5 7482 printf "%s\n" "$ac_cv_build_prog_cc_c89" >&6; } 7483 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89" ;; 7484 esac 7485 fi 7486 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c89 7487 ac_prog_cc_stdc=c89 ;; 7488 esac 7489 fi 7490 fi 7491 7492 ac_ext=c 7493 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 7494 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 7495 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 7496 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 7497 7498 7499 ac_ext=c 7500 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 7501 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 7502 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 7503 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 7504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5 7505 printf %s "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; } 7506 if test ${am_cv_build_prog_cc_c_o+y} 7507 then : 7508 printf %s "(cached) " >&6 7509 else case e in #( 7510 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7511 /* end confdefs.h. */ 7512 7513 int 7514 main (void) 7515 { 7516 7517 ; 7518 return 0; 7519 } 7520 _ACEOF 7521 # Make sure it works both with $CC and with simple cc. 7522 # Following AC_PROG_CC_C_O, we do the test twice because some 7523 # compilers refuse to overwrite an existing .o file with -o, 7524 # though they will create one. 7525 am_cv_build_prog_cc_c_o=yes 7526 for am_i in 1 2; do 7527 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5 7528 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5 7529 ac_status=$? 7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7531 (exit $ac_status); } \ 7532 && test -f conftest2.$ac_build_objext; then 7533 : OK 7534 else 7535 am_cv_build_prog_cc_c_o=no 7536 break 7537 fi 7538 done 7539 rm -f core conftest* 7540 unset am_i ;; 7541 esac 7542 fi 7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5 7544 printf "%s\n" "$am_cv_build_prog_cc_c_o" >&6; } 7545 if test "$am_cv_build_prog_cc_c_o" != yes; then 7546 # Losing compiler, so override with the script. 7547 # FIXME: It is wrong to rewrite CC. 7548 # But if we don't then we get into trouble of one sort or another. 7549 # A longer-term fix would be to have automake use am__CC in this case, 7550 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 7551 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD" 7552 fi 7553 ac_ext=c 7554 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 7555 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 7556 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 7557 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 7558 7559 7560 depcc="$CC_FOR_BUILD" am_compiler_list= 7561 7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7563 printf %s "checking dependency style of $depcc... " >&6; } 7564 if test ${am_cv_build_CC_dependencies_compiler_type+y} 7565 then : 7566 printf %s "(cached) " >&6 7567 else case e in #( 7568 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7569 # We make a subdir and do the tests there. Otherwise we can end up 7570 # making bogus files that we don't know about and never remove. For 7571 # instance it was reported that on HP-UX the gcc test will end up 7572 # making a dummy file named 'D' -- because '-MD' means "put the output 7573 # in D". 7574 rm -rf conftest.dir 7575 mkdir conftest.dir 7576 # Copy depcomp to subdir because otherwise we won't find it if we're 7577 # using a relative directory. 7578 cp "$am_depcomp" conftest.dir 7579 cd conftest.dir 7580 # We will build objects and dependencies in a subdirectory because 7581 # it helps to detect inapplicable dependency modes. For instance 7582 # both Tru64's cc and ICC support -MD to output dependencies as a 7583 # side effect of compilation, but ICC will put the dependencies in 7584 # the current directory while Tru64 will put them in the object 7585 # directory. 7586 mkdir sub 7587 7588 am_cv_build_CC_dependencies_compiler_type=none 7589 if test "$am_compiler_list" = ""; then 7590 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7591 fi 7592 am__universal=false 7593 case " $depcc " in #( 7594 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7595 esac 7596 7597 for depmode in $am_compiler_list; do 7598 # Setup a source with many dependencies, because some compilers 7599 # like to wrap large dependency lists on column 80 (with \), and 7600 # we should not choose a depcomp mode which is confused by this. 7601 # 7602 # We need to recreate these files for each test, as the compiler may 7603 # overwrite some of them when testing with obscure command lines. 7604 # This happens at least with the AIX C compiler. 7605 : > sub/conftest.c 7606 for i in 1 2 3 4 5 6; do 7607 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7608 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 7609 # Solaris 10 /bin/sh. 7610 echo '/* dummy */' > sub/conftst$i.h 7611 done 7612 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7613 7614 # We check with '-c' and '-o' for the sake of the "dashmstdout" 7615 # mode. It turns out that the SunPro C++ compiler does not properly 7616 # handle '-M -o', and we need to detect this. Also, some Intel 7617 # versions had trouble with output in subdirs. 7618 am__obj=sub/conftest.${BUILD_OBJEXT-o} 7619 am__minus_obj="-o $am__obj" 7620 case $depmode in 7621 gcc) 7622 # This depmode causes a compiler race in universal mode. 7623 test "$am__universal" = false || continue 7624 ;; 7625 nosideeffect) 7626 # After this tag, mechanisms are not by side-effect, so they'll 7627 # only be used when explicitly requested. 7628 if test "x$enable_dependency_tracking" = xyes; then 7629 continue 7630 else 7631 break 7632 fi 7633 ;; 7634 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7635 # This compiler won't grok '-c -o', but also, the minuso test has 7636 # not run yet. These depmodes are late enough in the game, and 7637 # so weak that their functioning should not be impacted. 7638 am__obj=conftest.${BUILD_OBJEXT-o} 7639 am__minus_obj= 7640 ;; 7641 none) break ;; 7642 esac 7643 if depmode=$depmode \ 7644 source=sub/conftest.c object=$am__obj \ 7645 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7646 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7647 >/dev/null 2>conftest.err && 7648 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7649 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7650 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7651 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7652 # icc doesn't choke on unknown options, it will just issue warnings 7653 # or remarks (even with -Werror). So we grep stderr for any message 7654 # that says an option was ignored or not supported. 7655 # When given -MP, icc 7.0 and 7.1 complain thus: 7656 # icc: Command line warning: ignoring option '-M'; no argument required 7657 # The diagnosis changed in icc 8.0: 7658 # icc: Command line remark: option '-MP' not supported 7659 if (grep 'ignoring option' conftest.err || 7660 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7661 am_cv_build_CC_dependencies_compiler_type=$depmode 7662 break 7663 fi 7664 fi 7665 done 7666 7667 cd .. 7668 rm -rf conftest.dir 7669 else 7670 am_cv_build_CC_dependencies_compiler_type=none 7671 fi 7672 ;; 7673 esac 7674 fi 7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5 7676 printf "%s\n" "$am_cv_build_CC_dependencies_compiler_type" >&6; } 7677 CCDEPMODE=depmode=$am_cv_build_CC_dependencies_compiler_type 7678 7679 if 7680 test "x$enable_dependency_tracking" != xno \ 7681 && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then 7682 am__fastdepCC_TRUE= 7683 am__fastdepCC_FALSE='#' 7684 else 7685 am__fastdepCC_TRUE='#' 7686 am__fastdepCC_FALSE= 7687 fi 7688 7689 7690 7691 if test ${was_set_c_compiler_gnu} 7692 then : 7693 ac_cv_c_compiler_gnu=$saved_c_compiler_gnu 7694 fi 7695 7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7697 /* end confdefs.h. */ 7698 7699 int 7700 main (void) 7701 { 7702 7703 ; 7704 return 0; 7705 } 7706 _ACEOF 7707 ac_clean_files_save=$ac_clean_files 7708 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 7709 # Try to create an executable without -o first, disregard a.out. 7710 # It will help us diagnose broken compilers, and finding out an intuition 7711 # of exeext. 7712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 7713 printf %s "checking whether the C compiler works... " >&6; } 7714 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 7715 7716 # The possible output files: 7717 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 7718 7719 ac_rmfiles= 7720 for ac_file in $ac_files 7721 do 7722 case $ac_file in 7723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 7724 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 7725 esac 7726 done 7727 rm -f $ac_rmfiles 7728 7729 if { { ac_try="$ac_link_default" 7730 case "(($ac_try" in 7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7732 *) ac_try_echo=$ac_try;; 7733 esac 7734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7735 printf "%s\n" "$ac_try_echo"; } >&5 7736 (eval "$ac_link_default") 2>&5 7737 ac_status=$? 7738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7739 test $ac_status = 0; } 7740 then : 7741 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 7742 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 7743 # in a Makefile. We should not override ac_cv_exeext if it was cached, 7744 # so that the user can short-circuit this test for compilers unknown to 7745 # Autoconf. 7746 for ac_file in $ac_files '' 7747 do 7748 test -f "$ac_file" || continue 7749 case $ac_file in 7750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 7751 ;; 7752 [ab].out ) 7753 # We found the default executable, but exeext='' is most 7754 # certainly right. 7755 break;; 7756 *.* ) 7757 if test ${ac_cv_build_exeext+y} && test "$ac_cv_build_exeext" != no; 7758 then :; else 7759 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 7760 fi 7761 # We set ac_cv_exeext here because the later test for it is not 7762 # safe: cross compilers may not add the suffix if given an '-o' 7763 # argument, so we may need to know it at that point already. 7764 # Even if this section looks crufty: it has the advantage of 7765 # actually working. 7766 break;; 7767 * ) 7768 break;; 7769 esac 7770 done 7771 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext= 7772 7773 else case e in #( 7774 e) ac_file='' ;; 7775 esac 7776 fi 7777 if test -z "$ac_file" 7778 then : 7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7780 printf "%s\n" "no" >&6; } 7781 printf "%s\n" "$as_me: failed program was:" >&5 7782 sed 's/^/| /' conftest.$ac_ext >&5 7783 7784 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 7785 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 7786 as_fn_error 77 "C compiler cannot create executables 7787 See 'config.log' for more details" "$LINENO" 5; } 7788 else case e in #( 7789 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7790 printf "%s\n" "yes" >&6; } ;; 7791 esac 7792 fi 7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 7794 printf %s "checking for C compiler default output file name... " >&6; } 7795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 7796 printf "%s\n" "$ac_file" >&6; } 7797 ac_build_exeext=$ac_cv_build_exeext 7798 7799 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out 7800 ac_clean_files=$ac_clean_files_save 7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 7802 printf %s "checking for suffix of executables... " >&6; } 7803 if { { ac_try="$ac_link" 7804 case "(($ac_try" in 7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7806 *) ac_try_echo=$ac_try;; 7807 esac 7808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7809 printf "%s\n" "$ac_try_echo"; } >&5 7810 (eval "$ac_link") 2>&5 7811 ac_status=$? 7812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7813 test $ac_status = 0; } 7814 then : 7815 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 7816 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 7817 # work properly (i.e., refer to 'conftest.exe'), while it won't with 7818 # 'rm'. 7819 for ac_file in conftest.exe conftest conftest.*; do 7820 test -f "$ac_file" || continue 7821 case $ac_file in 7822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 7823 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 7824 break;; 7825 * ) break;; 7826 esac 7827 done 7828 else case e in #( 7829 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 7830 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 7831 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 7832 See 'config.log' for more details" "$LINENO" 5; } ;; 7833 esac 7834 fi 7835 rm -f conftest conftest$ac_cv_build_exeext 7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5 7837 printf "%s\n" "$ac_cv_build_exeext" >&6; } 7838 7839 rm -f conftest.$ac_ext 7840 EXEEXT=$ac_cv_build_exeext 7841 ac_build_exeext=$BUILD_EXEEXT 7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7843 /* end confdefs.h. */ 7844 #include <stdio.h> 7845 int 7846 main (void) 7847 { 7848 FILE *f = fopen ("conftest.out", "w"); 7849 if (!f) 7850 return 1; 7851 return ferror (f) || fclose (f) != 0; 7852 7853 ; 7854 return 0; 7855 } 7856 _ACEOF 7857 ac_clean_files="$ac_clean_files conftest.out" 7858 # Check that the compiler produces executables we can run. If not, either 7859 # the compiler is broken, or we cross compile. 7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 7861 printf %s "checking whether we are cross compiling... " >&6; } 7862 if test "$cross_compiling_build" != yes; then 7863 { { ac_try="$ac_link" 7864 case "(($ac_try" in 7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7866 *) ac_try_echo=$ac_try;; 7867 esac 7868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7869 printf "%s\n" "$ac_try_echo"; } >&5 7870 (eval "$ac_link") 2>&5 7871 ac_status=$? 7872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7873 test $ac_status = 0; } 7874 if { ac_try='./conftest$ac_cv_build_exeext' 7875 { { case "(($ac_try" in 7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7877 *) ac_try_echo=$ac_try;; 7878 esac 7879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7880 printf "%s\n" "$ac_try_echo"; } >&5 7881 (eval "$ac_try") 2>&5 7882 ac_status=$? 7883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7884 test $ac_status = 0; }; }; then 7885 cross_compiling_build=no 7886 else 7887 if test "$cross_compiling_build" = maybe; then 7888 cross_compiling_build=yes 7889 else 7890 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 7891 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 7892 as_fn_error 77 "cannot run C compiled programs. 7893 If you meant to cross compile, use '--build'. 7894 See 'config.log' for more details" "$LINENO" 5; } 7895 fi 7896 fi 7897 fi 7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5 7899 printf "%s\n" "$cross_compiling_build" >&6; } 7900 7901 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext \ 7902 conftest.o conftest.obj conftest.out 7903 ac_clean_files=$ac_clean_files_save 7904 7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 7906 printf %s "checking for suffix of object files... " >&6; } 7907 if test ${ac_cv_build_objext+y} 7908 then : 7909 printf %s "(cached) " >&6 7910 else case e in #( 7911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7912 /* end confdefs.h. */ 7913 7914 int 7915 main (void) 7916 { 7917 7918 ; 7919 return 0; 7920 } 7921 _ACEOF 7922 rm -f conftest.o conftest.obj 7923 if { { ac_try="$ac_compile" 7924 case "(($ac_try" in 7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7926 *) ac_try_echo=$ac_try;; 7927 esac 7928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7929 printf "%s\n" "$ac_try_echo"; } >&5 7930 (eval "$ac_compile") 2>&5 7931 ac_status=$? 7932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7933 test $ac_status = 0; } 7934 then : 7935 for ac_file in conftest.o conftest.obj conftest.*; do 7936 test -f "$ac_file" || continue; 7937 case $ac_file in 7938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 7939 *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'` 7940 break;; 7941 esac 7942 done 7943 else case e in #( 7944 e) printf "%s\n" "$as_me: failed program was:" >&5 7945 sed 's/^/| /' conftest.$ac_ext >&5 7946 7947 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 7948 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 7949 as_fn_error $? "cannot compute suffix of object files: cannot compile 7950 See 'config.log' for more details" "$LINENO" 5; } ;; 7951 esac 7952 fi 7953 rm -f conftest.$ac_cv_build_objext conftest.$ac_ext ;; 7954 esac 7955 fi 7956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5 7957 printf "%s\n" "$ac_cv_build_objext" >&6; } 7958 OBJEXT=$ac_cv_build_objext 7959 ac_build_objext=$BUILD_OBJEXT 7960 7961 ac_ext=c 7962 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 7963 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 7964 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 7965 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7967 printf %s "checking how to run the C preprocessor... " >&6; } 7968 # On Suns, sometimes $CPP names a directory. 7969 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then 7970 CPP_FOR_BUILD= 7971 fi 7972 if test -z "$CPP_FOR_BUILD"; then 7973 if test ${ac_cv_build_prog_CPP+y} 7974 then : 7975 printf %s "(cached) " >&6 7976 else case e in #( 7977 e) # Double quotes because $CC needs to be expanded 7978 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" cpp /lib/cpp 7979 do 7980 ac_preproc_ok=false 7981 for ac_c_preproc_warn_flag in '' yes 7982 do 7983 # Use a header file that comes with gcc, so configuring glibc 7984 # with a fresh cross-compiler works. 7985 # On the NeXT, cc -E runs the code through the compiler's parser, 7986 # not just through cpp. "Syntax error" is here to catch this case. 7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7988 /* end confdefs.h. */ 7989 #include <limits.h> 7990 Syntax error 7991 _ACEOF 7992 if ac_fn_c_try_cpp "$LINENO" 7993 then : 7994 7995 else case e in #( 7996 e) # Broken: fails on valid input. 7997 continue ;; 7998 esac 7999 fi 8000 rm -f conftest.err conftest.i conftest.$ac_ext 8001 8002 # OK, works on sane cases. Now check whether nonexistent headers 8003 # can be detected and how. 8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8005 /* end confdefs.h. */ 8006 #include <ac_nonexistent.h> 8007 _ACEOF 8008 if ac_fn_c_try_cpp "$LINENO" 8009 then : 8010 # Broken: success on invalid input. 8011 continue 8012 else case e in #( 8013 e) # Passes both tests. 8014 ac_preproc_ok=: 8015 break ;; 8016 esac 8017 fi 8018 rm -f conftest.err conftest.i conftest.$ac_ext 8019 8020 done 8021 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8022 rm -f conftest.i conftest.err conftest.$ac_ext 8023 if $ac_preproc_ok 8024 then : 8025 break 8026 fi 8027 8028 done 8029 ac_cv_build_prog_CPP=$CPP_FOR_BUILD 8030 ;; 8031 esac 8032 fi 8033 CPP_FOR_BUILD=$ac_cv_build_prog_CPP 8034 else 8035 ac_cv_build_prog_CPP=$CPP_FOR_BUILD 8036 fi 8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5 8038 printf "%s\n" "$CPP_FOR_BUILD" >&6; } 8039 ac_preproc_ok=false 8040 for ac_c_preproc_warn_flag in '' yes 8041 do 8042 # Use a header file that comes with gcc, so configuring glibc 8043 # with a fresh cross-compiler works. 8044 # On the NeXT, cc -E runs the code through the compiler's parser, 8045 # not just through cpp. "Syntax error" is here to catch this case. 8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8047 /* end confdefs.h. */ 8048 #include <limits.h> 8049 Syntax error 8050 _ACEOF 8051 if ac_fn_c_try_cpp "$LINENO" 8052 then : 8053 8054 else case e in #( 8055 e) # Broken: fails on valid input. 8056 continue ;; 8057 esac 8058 fi 8059 rm -f conftest.err conftest.i conftest.$ac_ext 8060 8061 # OK, works on sane cases. Now check whether nonexistent headers 8062 # can be detected and how. 8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8064 /* end confdefs.h. */ 8065 #include <ac_nonexistent.h> 8066 _ACEOF 8067 if ac_fn_c_try_cpp "$LINENO" 8068 then : 8069 # Broken: success on invalid input. 8070 continue 8071 else case e in #( 8072 e) # Passes both tests. 8073 ac_preproc_ok=: 8074 break ;; 8075 esac 8076 fi 8077 rm -f conftest.err conftest.i conftest.$ac_ext 8078 8079 done 8080 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8081 rm -f conftest.i conftest.err conftest.$ac_ext 8082 if $ac_preproc_ok 8083 then : 8084 8085 else case e in #( 8086 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 8087 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 8088 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check 8089 See 'config.log' for more details" "$LINENO" 5; } ;; 8090 esac 8091 fi 8092 8093 ac_ext=c 8094 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 8095 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 8096 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 8097 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 8098 8099 8100 8101 ac_ext=c 8102 ac_cpp='$CPP $CPPFLAGS' 8103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8105 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8106 8107 8108 8109 8110 # 8111 # Find the machine's endian flavor. 8112 # 8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 8114 printf %s "checking whether byte ordering is bigendian... " >&6; } 8115 if test ${ac_cv_c_bigendian+y} 8116 then : 8117 printf %s "(cached) " >&6 8118 else case e in #( 8119 e) ac_cv_c_bigendian=unknown 8120 # See if we're dealing with a universal compiler. 8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8122 /* end confdefs.h. */ 8123 #ifndef __APPLE_CC__ 8124 not a universal capable compiler 8125 #endif 8126 typedef int dummy; 8127 8128 _ACEOF 8129 if ac_fn_c_try_compile "$LINENO" 8130 then : 8131 8132 # Check for potential -arch flags. It is not universal unless 8133 # there are at least two -arch flags with different values. 8134 ac_arch= 8135 ac_prev= 8136 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 8137 if test -n "$ac_prev"; then 8138 case $ac_word in 8139 i?86 | x86_64 | ppc | ppc64) 8140 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 8141 ac_arch=$ac_word 8142 else 8143 ac_cv_c_bigendian=universal 8144 break 8145 fi 8146 ;; 8147 esac 8148 ac_prev= 8149 elif test "x$ac_word" = "x-arch"; then 8150 ac_prev=arch 8151 fi 8152 done 8153 fi 8154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8155 if test $ac_cv_c_bigendian = unknown; then 8156 # See if sys/param.h defines the BYTE_ORDER macro. 8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8158 /* end confdefs.h. */ 8159 #include <sys/types.h> 8160 #include <sys/param.h> 8161 8162 int 8163 main (void) 8164 { 8165 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ 8166 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ 8167 && LITTLE_ENDIAN) 8168 bogus endian macros 8169 #endif 8170 8171 ; 8172 return 0; 8173 } 8174 _ACEOF 8175 if ac_fn_c_try_compile "$LINENO" 8176 then : 8177 # It does; now see whether it defined to BIG_ENDIAN or not. 8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8179 /* end confdefs.h. */ 8180 #include <sys/types.h> 8181 #include <sys/param.h> 8182 8183 int 8184 main (void) 8185 { 8186 #if BYTE_ORDER != BIG_ENDIAN 8187 not big endian 8188 #endif 8189 8190 ; 8191 return 0; 8192 } 8193 _ACEOF 8194 if ac_fn_c_try_compile "$LINENO" 8195 then : 8196 ac_cv_c_bigendian=yes 8197 else case e in #( 8198 e) ac_cv_c_bigendian=no ;; 8199 esac 8200 fi 8201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8202 fi 8203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8204 fi 8205 if test $ac_cv_c_bigendian = unknown; then 8206 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8208 /* end confdefs.h. */ 8209 #include <limits.h> 8210 8211 int 8212 main (void) 8213 { 8214 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 8215 bogus endian macros 8216 #endif 8217 8218 ; 8219 return 0; 8220 } 8221 _ACEOF 8222 if ac_fn_c_try_compile "$LINENO" 8223 then : 8224 # It does; now see whether it defined to _BIG_ENDIAN or not. 8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8226 /* end confdefs.h. */ 8227 #include <limits.h> 8228 8229 int 8230 main (void) 8231 { 8232 #ifndef _BIG_ENDIAN 8233 not big endian 8234 #endif 8235 8236 ; 8237 return 0; 8238 } 8239 _ACEOF 8240 if ac_fn_c_try_compile "$LINENO" 8241 then : 8242 ac_cv_c_bigendian=yes 8243 else case e in #( 8244 e) ac_cv_c_bigendian=no ;; 8245 esac 8246 fi 8247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8248 fi 8249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8250 fi 8251 if test $ac_cv_c_bigendian = unknown; then 8252 # Compile a test program. 8253 if test "$cross_compiling" = yes 8254 then : 8255 # Try to guess by grepping values from an object file. 8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8257 /* end confdefs.h. */ 8258 unsigned short int ascii_mm[] = 8259 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 8260 unsigned short int ascii_ii[] = 8261 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 8262 int use_ascii (int i) { 8263 return ascii_mm[i] + ascii_ii[i]; 8264 } 8265 unsigned short int ebcdic_ii[] = 8266 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 8267 unsigned short int ebcdic_mm[] = 8268 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 8269 int use_ebcdic (int i) { 8270 return ebcdic_mm[i] + ebcdic_ii[i]; 8271 } 8272 int 8273 main (int argc, char **argv) 8274 { 8275 /* Intimidate the compiler so that it does not 8276 optimize the arrays away. */ 8277 char *p = argv[0]; 8278 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; 8279 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; 8280 return use_ascii (argc) == use_ebcdic (*p); 8281 } 8282 _ACEOF 8283 if ac_fn_c_try_link "$LINENO" 8284 then : 8285 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then 8286 ac_cv_c_bigendian=yes 8287 fi 8288 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then 8289 if test "$ac_cv_c_bigendian" = unknown; then 8290 ac_cv_c_bigendian=no 8291 else 8292 # finding both strings is unlikely to happen, but who knows? 8293 ac_cv_c_bigendian=unknown 8294 fi 8295 fi 8296 fi 8297 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8298 conftest$ac_exeext conftest.$ac_ext 8299 else case e in #( 8300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8301 /* end confdefs.h. */ 8302 $ac_includes_default 8303 int 8304 main (void) 8305 { 8306 8307 /* Are we little or big endian? From Harbison&Steele. */ 8308 union 8309 { 8310 long int l; 8311 char c[sizeof (long int)]; 8312 } u; 8313 u.l = 1; 8314 return u.c[sizeof (long int) - 1] == 1; 8315 8316 ; 8317 return 0; 8318 } 8319 _ACEOF 8320 if ac_fn_c_try_run "$LINENO" 8321 then : 8322 ac_cv_c_bigendian=no 8323 else case e in #( 8324 e) ac_cv_c_bigendian=yes ;; 8325 esac 8326 fi 8327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8328 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8329 esac 8330 fi 8331 8332 fi ;; 8333 esac 8334 fi 8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 8336 printf "%s\n" "$ac_cv_c_bigendian" >&6; } 8337 case $ac_cv_c_bigendian in #( 8338 yes) 8339 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 8340 ;; #( 8341 no) 8342 ;; #( 8343 universal) 8344 8345 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 8346 8347 ;; #( 8348 *) 8349 as_fn_error $? "unknown endianness 8350 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 8351 esac 8352 8353 8354 # 8355 # Enable large file support 8356 # 8357 # Check whether --enable-largefile was given. 8358 if test ${enable_largefile+y} 8359 then : 8360 enableval=$enable_largefile; 8361 fi 8362 if test "$enable_largefile,$enable_year2038" != no,no 8363 then : 8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5 8365 printf %s "checking for $CPPFLAGS option for large files... " >&6; } 8366 if test ${ac_cv_sys_largefile_opts+y} 8367 then : 8368 printf %s "(cached) " >&6 8369 else case e in #( 8370 e) ac_save_CPPFLAGS=$CPPFLAGS 8371 ac_opt_found=no 8372 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do 8373 if test x"$ac_opt" != x"none needed" 8374 then : 8375 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 8376 fi 8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8378 /* end confdefs.h. */ 8379 #include <sys/types.h> 8380 #ifndef FTYPE 8381 # define FTYPE off_t 8382 #endif 8383 /* Check that FTYPE can represent 2**63 - 1 correctly. 8384 We can't simply define LARGE_FTYPE to be 9223372036854775807, 8385 since some C++ compilers masquerading as C compilers 8386 incorrectly reject 9223372036854775807. */ 8387 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 8388 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 8389 && LARGE_FTYPE % 2147483647 == 1) 8390 ? 1 : -1]; 8391 int 8392 main (void) 8393 { 8394 8395 ; 8396 return 0; 8397 } 8398 _ACEOF 8399 if ac_fn_c_try_compile "$LINENO" 8400 then : 8401 if test x"$ac_opt" = x"none needed" 8402 then : 8403 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 8404 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t" 8405 if ac_fn_c_try_compile "$LINENO" 8406 then : 8407 8408 else case e in #( 8409 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64" 8410 if ac_fn_c_try_compile "$LINENO" 8411 then : 8412 ac_opt='-D_FILE_OFFSET_BITS=64' 8413 fi 8414 rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 8415 esac 8416 fi 8417 rm -f core conftest.err conftest.$ac_objext conftest.beam 8418 fi 8419 ac_cv_sys_largefile_opts=$ac_opt 8420 ac_opt_found=yes 8421 fi 8422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8423 test $ac_opt_found = no || break 8424 done 8425 CPPFLAGS=$ac_save_CPPFLAGS 8426 8427 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 8428 esac 8429 fi 8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 8431 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 8432 8433 ac_have_largefile=yes 8434 case $ac_cv_sys_largefile_opts in #( 8435 "none needed") : 8436 ;; #( 8437 "supported through gnulib") : 8438 ;; #( 8439 "support not detected") : 8440 ac_have_largefile=no ;; #( 8441 "-D_FILE_OFFSET_BITS=64") : 8442 8443 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 8444 ;; #( 8445 "-D_LARGE_FILES=1") : 8446 8447 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 8448 ;; #( 8449 *) : 8450 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 8451 esac 8452 8453 if test "$enable_year2038" != no 8454 then : 8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5 8456 printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; } 8457 if test ${ac_cv_sys_year2038_opts+y} 8458 then : 8459 printf %s "(cached) " >&6 8460 else case e in #( 8461 e) ac_save_CPPFLAGS="$CPPFLAGS" 8462 ac_opt_found=no 8463 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 8464 if test x"$ac_opt" != x"none needed" 8465 then : 8466 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 8467 fi 8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8469 /* end confdefs.h. */ 8470 8471 #include <time.h> 8472 /* Check that time_t can represent 2**32 - 1 correctly. */ 8473 #define LARGE_TIME_T \\ 8474 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 8475 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 8476 && LARGE_TIME_T % 65537 == 0) 8477 ? 1 : -1]; 8478 8479 int 8480 main (void) 8481 { 8482 8483 ; 8484 return 0; 8485 } 8486 _ACEOF 8487 if ac_fn_c_try_compile "$LINENO" 8488 then : 8489 ac_cv_sys_year2038_opts="$ac_opt" 8490 ac_opt_found=yes 8491 fi 8492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8493 test $ac_opt_found = no || break 8494 done 8495 CPPFLAGS="$ac_save_CPPFLAGS" 8496 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 8497 esac 8498 fi 8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 8500 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 8501 8502 ac_have_year2038=yes 8503 case $ac_cv_sys_year2038_opts in #( 8504 "none needed") : 8505 ;; #( 8506 "support not detected") : 8507 ac_have_year2038=no ;; #( 8508 "-D_TIME_BITS=64") : 8509 8510 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 8511 ;; #( 8512 "-D__MINGW_USE_VC2005_COMPAT") : 8513 8514 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 8515 ;; #( 8516 "-U_USE_32_BIT_TIME_T"*) : 8517 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 8518 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 8519 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 8520 will stop working after mid-January 2038. Remove 8521 _USE_32BIT_TIME_T from the compiler flags. 8522 See 'config.log' for more details" "$LINENO" 5; } ;; #( 8523 *) : 8524 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 8525 esac 8526 8527 fi 8528 8529 fi 8530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5 8531 printf %s "checking for declarations of fseeko and ftello... " >&6; } 8532 if test ${ac_cv_func_fseeko_ftello+y} 8533 then : 8534 printf %s "(cached) " >&6 8535 else case e in #( 8536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8537 /* end confdefs.h. */ 8538 8539 #if defined __hpux && !defined _LARGEFILE_SOURCE 8540 # include <limits.h> 8541 # if LONG_MAX >> 31 == 0 8542 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" 8543 # endif 8544 #endif 8545 #include <sys/types.h> /* for off_t */ 8546 #include <stdio.h> 8547 8548 int 8549 main (void) 8550 { 8551 8552 int (*fp1) (FILE *, off_t, int) = fseeko; 8553 off_t (*fp2) (FILE *) = ftello; 8554 return fseeko (stdin, 0, 0) 8555 && fp1 (stdin, 0, 0) 8556 && ftello (stdin) >= 0 8557 && fp2 (stdin) >= 0; 8558 8559 ; 8560 return 0; 8561 } 8562 _ACEOF 8563 if ac_fn_c_try_compile "$LINENO" 8564 then : 8565 ac_cv_func_fseeko_ftello=yes 8566 else case e in #( 8567 e) ac_save_CPPFLAGS="$CPPFLAGS" 8568 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1" 8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8570 /* end confdefs.h. */ 8571 8572 #if defined __hpux && !defined _LARGEFILE_SOURCE 8573 # include <limits.h> 8574 # if LONG_MAX >> 31 == 0 8575 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" 8576 # endif 8577 #endif 8578 #include <sys/types.h> /* for off_t */ 8579 #include <stdio.h> 8580 8581 int 8582 main (void) 8583 { 8584 8585 int (*fp1) (FILE *, off_t, int) = fseeko; 8586 off_t (*fp2) (FILE *) = ftello; 8587 return fseeko (stdin, 0, 0) 8588 && fp1 (stdin, 0, 0) 8589 && ftello (stdin) >= 0 8590 && fp2 (stdin) >= 0; 8591 8592 ; 8593 return 0; 8594 } 8595 _ACEOF 8596 if ac_fn_c_try_compile "$LINENO" 8597 then : 8598 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE" 8599 else case e in #( 8600 e) ac_cv_func_fseeko_ftello=no ;; 8601 esac 8602 fi 8603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8604 esac 8605 fi 8606 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8607 esac 8608 fi 8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5 8610 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; } 8611 if test "$ac_cv_func_fseeko_ftello" != no 8612 then : 8613 8614 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 8615 8616 fi 8617 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE" 8618 then : 8619 8620 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h 8621 8622 fi 8623 8624 8625 # Enable RFC 3542 APIs on macOS 8626 8627 printf "%s\n" "#define __APPLE_USE_RFC_3542 1" >>confdefs.h 8628 8629 8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 8631 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 8632 set x ${MAKE-make} 8633 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 8634 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 8635 then : 8636 printf %s "(cached) " >&6 8637 else case e in #( 8638 e) cat >conftest.make <<\_ACEOF 8639 SHELL = /bin/sh 8640 all: 8641 @echo '@@@%%%=$(MAKE)=@@@%%%' 8642 _ACEOF 8643 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8644 case `${MAKE-make} -f conftest.make 2>/dev/null` in 8645 *@@@%%%=?*=@@@%%%*) 8646 eval ac_cv_prog_make_${ac_make}_set=yes;; 8647 *) 8648 eval ac_cv_prog_make_${ac_make}_set=no;; 8649 esac 8650 rm -f conftest.make ;; 8651 esac 8652 fi 8653 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8655 printf "%s\n" "yes" >&6; } 8656 SET_MAKE= 8657 else 8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8659 printf "%s\n" "no" >&6; } 8660 SET_MAKE="MAKE=${MAKE-make}" 8661 fi 8662 8663 8664 # Checks for programs. 8665 8666 if test -n "$ac_tool_prefix"; then 8667 for ac_prog in ar lib "link -lib" 8668 do 8669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8672 printf %s "checking for $ac_word... " >&6; } 8673 if test ${ac_cv_prog_AR+y} 8674 then : 8675 printf %s "(cached) " >&6 8676 else case e in #( 8677 e) if test -n "$AR"; then 8678 ac_cv_prog_AR="$AR" # Let the user override the test. 8679 else 8680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8681 for as_dir in $PATH 8682 do 8683 IFS=$as_save_IFS 8684 case $as_dir in #((( 8685 '') as_dir=./ ;; 8686 */) ;; 8687 *) as_dir=$as_dir/ ;; 8688 esac 8689 for ac_exec_ext in '' $ac_executable_extensions; do 8690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8691 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8693 break 2 8694 fi 8695 done 8696 done 8697 IFS=$as_save_IFS 8698 8699 fi ;; 8700 esac 8701 fi 8702 AR=$ac_cv_prog_AR 8703 if test -n "$AR"; then 8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8705 printf "%s\n" "$AR" >&6; } 8706 else 8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8708 printf "%s\n" "no" >&6; } 8709 fi 8710 8711 8712 test -n "$AR" && break 8713 done 8714 fi 8715 if test -z "$AR"; then 8716 ac_ct_AR=$AR 8717 for ac_prog in ar lib "link -lib" 8718 do 8719 # Extract the first word of "$ac_prog", so it can be a program name with args. 8720 set dummy $ac_prog; ac_word=$2 8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8722 printf %s "checking for $ac_word... " >&6; } 8723 if test ${ac_cv_prog_ac_ct_AR+y} 8724 then : 8725 printf %s "(cached) " >&6 8726 else case e in #( 8727 e) if test -n "$ac_ct_AR"; then 8728 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8729 else 8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8731 for as_dir in $PATH 8732 do 8733 IFS=$as_save_IFS 8734 case $as_dir in #((( 8735 '') as_dir=./ ;; 8736 */) ;; 8737 *) as_dir=$as_dir/ ;; 8738 esac 8739 for ac_exec_ext in '' $ac_executable_extensions; do 8740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8741 ac_cv_prog_ac_ct_AR="$ac_prog" 8742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8743 break 2 8744 fi 8745 done 8746 done 8747 IFS=$as_save_IFS 8748 8749 fi ;; 8750 esac 8751 fi 8752 ac_ct_AR=$ac_cv_prog_ac_ct_AR 8753 if test -n "$ac_ct_AR"; then 8754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8755 printf "%s\n" "$ac_ct_AR" >&6; } 8756 else 8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8758 printf "%s\n" "no" >&6; } 8759 fi 8760 8761 8762 test -n "$ac_ct_AR" && break 8763 done 8764 8765 if test "x$ac_ct_AR" = x; then 8766 AR="false" 8767 else 8768 case $cross_compiling:$ac_tool_warned in 8769 yes:) 8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8771 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8772 ac_tool_warned=yes ;; 8773 esac 8774 AR=$ac_ct_AR 8775 fi 8776 fi 8777 8778 : ${AR=ar} 8779 : ${ARFLAGS=cr} 8780 8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 8782 printf %s "checking the archiver ($AR) interface... " >&6; } 8783 if test ${am_cv_ar_interface+y} 8784 then : 8785 printf %s "(cached) " >&6 8786 else case e in #( 8787 e) ac_ext=c 8788 ac_cpp='$CPP $CPPFLAGS' 8789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8791 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8792 8793 am_cv_ar_interface=ar 8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8795 /* end confdefs.h. */ 8796 int some_variable = 0; 8797 _ACEOF 8798 if ac_fn_c_try_compile "$LINENO" 8799 then : 8800 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5' 8801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 8802 (eval $am_ar_try) 2>&5 8803 ac_status=$? 8804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8805 test $ac_status = 0; } 8806 if test "$ac_status" -eq 0; then 8807 am_cv_ar_interface=ar 8808 else 8809 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 8810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 8811 (eval $am_ar_try) 2>&5 8812 ac_status=$? 8813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8814 test $ac_status = 0; } 8815 if test "$ac_status" -eq 0; then 8816 am_cv_ar_interface=lib 8817 else 8818 am_cv_ar_interface=unknown 8819 fi 8820 fi 8821 rm -f conftest.lib libconftest.a 8822 8823 fi 8824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8825 ac_ext=c 8826 ac_cpp='$CPP $CPPFLAGS' 8827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8829 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8830 ;; 8831 esac 8832 fi 8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 8834 printf "%s\n" "$am_cv_ar_interface" >&6; } 8835 8836 case $am_cv_ar_interface in 8837 ar) 8838 ;; 8839 lib) 8840 # Microsoft lib, so override with the ar-lib wrapper script. 8841 # FIXME: It is wrong to rewrite AR. 8842 # But if we don't then we get into trouble of one sort or another. 8843 # A longer-term fix would be to have automake use am__AR in this case, 8844 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 8845 # similar. 8846 AR="$am_aux_dir/ar-lib $AR" 8847 ;; 8848 unknown) 8849 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 8850 ;; 8851 esac 8852 # call AM_PROG_AR only if available 8853 8854 8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8856 printf %s "checking whether ln -s works... " >&6; } 8857 LN_S=$as_ln_s 8858 if test "$LN_S" = "ln -s"; then 8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8860 printf "%s\n" "yes" >&6; } 8861 else 8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8863 printf "%s\n" "no, using $LN_S" >&6; } 8864 fi 8865 8866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5 8867 printf %s "checking for a POSIX-compatible shell... " >&6; } 8868 if test ${ac_cv_prog_shell+y} 8869 then : 8870 printf %s "(cached) " >&6 8871 else case e in #( 8872 e) ac_test_shell_script=' 8873 test "$(expr 1 + 1)" = "2" && 8874 test "$(( 1 + 1 ))" = "2" 8875 ' 8876 8877 for ac_cv_prog_shell in \ 8878 "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do 8879 case $ac_cv_prog_shell in #( 8880 /*) : 8881 8882 if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null 8883 then : 8884 break 8885 fi 8886 ;; #( 8887 *) : 8888 ;; 8889 esac 8890 done 8891 ;; 8892 esac 8893 fi 8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5 8895 printf "%s\n" "$ac_cv_prog_shell" >&6; } 8896 if test "$ac_cv_prog_shell" = "no" 8897 then : 8898 SHELL=/bin/sh 8899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5 8900 printf "%s\n" "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;} 8901 8902 else case e in #( 8903 e) SHELL="$ac_cv_prog_shell" 8904 ;; 8905 esac 8906 fi 8907 8908 8909 8910 8911 # Initialize libtool 8912 case `pwd` in 8913 *\ * | *\ *) 8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 8915 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 8916 esac 8917 8918 8919 8920 macro_version='2.5.4' 8921 macro_revision='2.5.4' 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 ltmain=$ac_aux_dir/ltmain.sh 8937 8938 # Backslashify metacharacters that are still active within 8939 # double-quoted strings. 8940 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8941 8942 # Same as above, but do not quote variable references. 8943 double_quote_subst='s/\(["`\\]\)/\\\1/g' 8944 8945 # Sed substitution to delay expansion of an escaped shell variable in a 8946 # double_quote_subst'ed string. 8947 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8948 8949 # Sed substitution to delay expansion of an escaped single quote. 8950 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8951 8952 # Sed substitution to avoid accidental globbing in evaled expressions 8953 no_glob_subst='s/\*/\\\*/g' 8954 8955 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8956 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8957 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8958 8959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8960 printf %s "checking how to print strings... " >&6; } 8961 # Test print first, because it will be a builtin if present. 8962 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8963 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8964 ECHO='print -r --' 8965 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8966 ECHO='printf %s\n' 8967 else 8968 # Use this function as a fallback that always works. 8969 func_fallback_echo () 8970 { 8971 eval 'cat <<_LTECHO_EOF 8972 $1 8973 _LTECHO_EOF' 8974 } 8975 ECHO='func_fallback_echo' 8976 fi 8977 8978 # func_echo_all arg... 8979 # Invoke $ECHO with all args, space-separated. 8980 func_echo_all () 8981 { 8982 $ECHO "" 8983 } 8984 8985 case $ECHO in 8986 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8987 printf "%s\n" "printf" >&6; } ;; 8988 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8989 printf "%s\n" "print -r" >&6; } ;; 8990 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8991 printf "%s\n" "cat" >&6; } ;; 8992 esac 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 9008 printf %s "checking for a sed that does not truncate output... " >&6; } 9009 if test ${ac_cv_path_SED+y} 9010 then : 9011 printf %s "(cached) " >&6 9012 else case e in #( 9013 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 9014 for ac_i in 1 2 3 4 5 6 7; do 9015 ac_script="$ac_script$as_nl$ac_script" 9016 done 9017 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 9018 { ac_script=; unset ac_script;} 9019 if test -z "$SED"; then 9020 ac_path_SED_found=false 9021 # Loop through the user's path and test for each of PROGNAME-LIST 9022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9023 for as_dir in $PATH 9024 do 9025 IFS=$as_save_IFS 9026 case $as_dir in #((( 9027 '') as_dir=./ ;; 9028 */) ;; 9029 *) as_dir=$as_dir/ ;; 9030 esac 9031 for ac_prog in sed gsed 9032 do 9033 for ac_exec_ext in '' $ac_executable_extensions; do 9034 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 9035 as_fn_executable_p "$ac_path_SED" || continue 9036 # Check for GNU ac_path_SED and select it if it is found. 9037 # Check for GNU $ac_path_SED 9038 case `"$ac_path_SED" --version 2>&1` in #( 9039 *GNU*) 9040 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 9041 #( 9042 *) 9043 ac_count=0 9044 printf %s 0123456789 >"conftest.in" 9045 while : 9046 do 9047 cat "conftest.in" "conftest.in" >"conftest.tmp" 9048 mv "conftest.tmp" "conftest.in" 9049 cp "conftest.in" "conftest.nl" 9050 printf "%s\n" '' >> "conftest.nl" 9051 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 9052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9053 as_fn_arith $ac_count + 1 && ac_count=$as_val 9054 if test $ac_count -gt ${ac_path_SED_max-0}; then 9055 # Best one so far, save it but keep looking for a better one 9056 ac_cv_path_SED="$ac_path_SED" 9057 ac_path_SED_max=$ac_count 9058 fi 9059 # 10*(2^10) chars as input seems more than enough 9060 test $ac_count -gt 10 && break 9061 done 9062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9063 esac 9064 9065 $ac_path_SED_found && break 3 9066 done 9067 done 9068 done 9069 IFS=$as_save_IFS 9070 if test -z "$ac_cv_path_SED"; then 9071 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 9072 fi 9073 else 9074 ac_cv_path_SED=$SED 9075 fi 9076 ;; 9077 esac 9078 fi 9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 9080 printf "%s\n" "$ac_cv_path_SED" >&6; } 9081 SED="$ac_cv_path_SED" 9082 rm -f conftest.sed 9083 9084 test -z "$SED" && SED=sed 9085 Xsed="$SED -e 1s/^X//" 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 9098 printf %s "checking for grep that handles long lines and -e... " >&6; } 9099 if test ${ac_cv_path_GREP+y} 9100 then : 9101 printf %s "(cached) " >&6 9102 else case e in #( 9103 e) if test -z "$GREP"; then 9104 ac_path_GREP_found=false 9105 # Loop through the user's path and test for each of PROGNAME-LIST 9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9108 do 9109 IFS=$as_save_IFS 9110 case $as_dir in #((( 9111 '') as_dir=./ ;; 9112 */) ;; 9113 *) as_dir=$as_dir/ ;; 9114 esac 9115 for ac_prog in grep ggrep 9116 do 9117 for ac_exec_ext in '' $ac_executable_extensions; do 9118 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 9119 as_fn_executable_p "$ac_path_GREP" || continue 9120 # Check for GNU ac_path_GREP and select it if it is found. 9121 # Check for GNU $ac_path_GREP 9122 case `"$ac_path_GREP" --version 2>&1` in #( 9123 *GNU*) 9124 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 9125 #( 9126 *) 9127 ac_count=0 9128 printf %s 0123456789 >"conftest.in" 9129 while : 9130 do 9131 cat "conftest.in" "conftest.in" >"conftest.tmp" 9132 mv "conftest.tmp" "conftest.in" 9133 cp "conftest.in" "conftest.nl" 9134 printf "%s\n" 'GREP' >> "conftest.nl" 9135 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 9136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9137 as_fn_arith $ac_count + 1 && ac_count=$as_val 9138 if test $ac_count -gt ${ac_path_GREP_max-0}; then 9139 # Best one so far, save it but keep looking for a better one 9140 ac_cv_path_GREP="$ac_path_GREP" 9141 ac_path_GREP_max=$ac_count 9142 fi 9143 # 10*(2^10) chars as input seems more than enough 9144 test $ac_count -gt 10 && break 9145 done 9146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9147 esac 9148 9149 $ac_path_GREP_found && break 3 9150 done 9151 done 9152 done 9153 IFS=$as_save_IFS 9154 if test -z "$ac_cv_path_GREP"; then 9155 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9156 fi 9157 else 9158 ac_cv_path_GREP=$GREP 9159 fi 9160 ;; 9161 esac 9162 fi 9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 9164 printf "%s\n" "$ac_cv_path_GREP" >&6; } 9165 GREP="$ac_cv_path_GREP" 9166 9167 9168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 9169 printf %s "checking for egrep... " >&6; } 9170 if test ${ac_cv_path_EGREP+y} 9171 then : 9172 printf %s "(cached) " >&6 9173 else case e in #( 9174 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 9175 then ac_cv_path_EGREP="$GREP -E" 9176 else 9177 if test -z "$EGREP"; then 9178 ac_path_EGREP_found=false 9179 # Loop through the user's path and test for each of PROGNAME-LIST 9180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9181 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9182 do 9183 IFS=$as_save_IFS 9184 case $as_dir in #((( 9185 '') as_dir=./ ;; 9186 */) ;; 9187 *) as_dir=$as_dir/ ;; 9188 esac 9189 for ac_prog in egrep 9190 do 9191 for ac_exec_ext in '' $ac_executable_extensions; do 9192 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 9193 as_fn_executable_p "$ac_path_EGREP" || continue 9194 # Check for GNU ac_path_EGREP and select it if it is found. 9195 # Check for GNU $ac_path_EGREP 9196 case `"$ac_path_EGREP" --version 2>&1` in #( 9197 *GNU*) 9198 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 9199 #( 9200 *) 9201 ac_count=0 9202 printf %s 0123456789 >"conftest.in" 9203 while : 9204 do 9205 cat "conftest.in" "conftest.in" >"conftest.tmp" 9206 mv "conftest.tmp" "conftest.in" 9207 cp "conftest.in" "conftest.nl" 9208 printf "%s\n" 'EGREP' >> "conftest.nl" 9209 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 9210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9211 as_fn_arith $ac_count + 1 && ac_count=$as_val 9212 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 9213 # Best one so far, save it but keep looking for a better one 9214 ac_cv_path_EGREP="$ac_path_EGREP" 9215 ac_path_EGREP_max=$ac_count 9216 fi 9217 # 10*(2^10) chars as input seems more than enough 9218 test $ac_count -gt 10 && break 9219 done 9220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9221 esac 9222 9223 $ac_path_EGREP_found && break 3 9224 done 9225 done 9226 done 9227 IFS=$as_save_IFS 9228 if test -z "$ac_cv_path_EGREP"; then 9229 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9230 fi 9231 else 9232 ac_cv_path_EGREP=$EGREP 9233 fi 9234 9235 fi ;; 9236 esac 9237 fi 9238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 9239 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 9240 EGREP="$ac_cv_path_EGREP" 9241 9242 EGREP_TRADITIONAL=$EGREP 9243 ac_cv_path_EGREP_TRADITIONAL=$EGREP 9244 9245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 9246 printf %s "checking for fgrep... " >&6; } 9247 if test ${ac_cv_path_FGREP+y} 9248 then : 9249 printf %s "(cached) " >&6 9250 else case e in #( 9251 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 9252 then ac_cv_path_FGREP="$GREP -F" 9253 else 9254 if test -z "$FGREP"; then 9255 ac_path_FGREP_found=false 9256 # Loop through the user's path and test for each of PROGNAME-LIST 9257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9258 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9259 do 9260 IFS=$as_save_IFS 9261 case $as_dir in #((( 9262 '') as_dir=./ ;; 9263 */) ;; 9264 *) as_dir=$as_dir/ ;; 9265 esac 9266 for ac_prog in fgrep 9267 do 9268 for ac_exec_ext in '' $ac_executable_extensions; do 9269 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 9270 as_fn_executable_p "$ac_path_FGREP" || continue 9271 # Check for GNU ac_path_FGREP and select it if it is found. 9272 # Check for GNU $ac_path_FGREP 9273 case `"$ac_path_FGREP" --version 2>&1` in #( 9274 *GNU*) 9275 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 9276 #( 9277 *) 9278 ac_count=0 9279 printf %s 0123456789 >"conftest.in" 9280 while : 9281 do 9282 cat "conftest.in" "conftest.in" >"conftest.tmp" 9283 mv "conftest.tmp" "conftest.in" 9284 cp "conftest.in" "conftest.nl" 9285 printf "%s\n" 'FGREP' >> "conftest.nl" 9286 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 9287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9288 as_fn_arith $ac_count + 1 && ac_count=$as_val 9289 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 9290 # Best one so far, save it but keep looking for a better one 9291 ac_cv_path_FGREP="$ac_path_FGREP" 9292 ac_path_FGREP_max=$ac_count 9293 fi 9294 # 10*(2^10) chars as input seems more than enough 9295 test $ac_count -gt 10 && break 9296 done 9297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9298 esac 9299 9300 $ac_path_FGREP_found && break 3 9301 done 9302 done 9303 done 9304 IFS=$as_save_IFS 9305 if test -z "$ac_cv_path_FGREP"; then 9306 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9307 fi 9308 else 9309 ac_cv_path_FGREP=$FGREP 9310 fi 9311 9312 fi ;; 9313 esac 9314 fi 9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 9316 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 9317 FGREP="$ac_cv_path_FGREP" 9318 9319 9320 test -z "$GREP" && GREP=grep 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 # Check whether --with-gnu-ld was given. 9341 if test ${with_gnu_ld+y} 9342 then : 9343 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 9344 else case e in #( 9345 e) with_gnu_ld=no ;; 9346 esac 9347 fi 9348 9349 ac_prog=ld 9350 if test yes = "$GCC"; then 9351 # Check if gcc -print-prog-name=ld gives a path. 9352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 9353 printf %s "checking for ld used by $CC... " >&6; } 9354 case $host in 9355 *-*-mingw* | *-*-windows*) 9356 # gcc leaves a trailing carriage return, which upsets mingw 9357 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9358 *) 9359 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9360 esac 9361 case $ac_prog in 9362 # Accept absolute paths. 9363 [\\/]* | ?:[\\/]*) 9364 re_direlt='/[^/][^/]*/\.\./' 9365 # Canonicalize the pathname of ld 9366 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 9367 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 9368 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 9369 done 9370 test -z "$LD" && LD=$ac_prog 9371 ;; 9372 "") 9373 # If it fails, then pretend we aren't using GCC. 9374 ac_prog=ld 9375 ;; 9376 *) 9377 # If it is relative, then search for the first ld in PATH. 9378 with_gnu_ld=unknown 9379 ;; 9380 esac 9381 elif test yes = "$with_gnu_ld"; then 9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 9383 printf %s "checking for GNU ld... " >&6; } 9384 else 9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 9386 printf %s "checking for non-GNU ld... " >&6; } 9387 fi 9388 if test ${lt_cv_path_LD+y} 9389 then : 9390 printf %s "(cached) " >&6 9391 else case e in #( 9392 e) if test -z "$LD"; then 9393 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9394 for ac_dir in $PATH; do 9395 IFS=$lt_save_ifs 9396 test -z "$ac_dir" && ac_dir=. 9397 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9398 lt_cv_path_LD=$ac_dir/$ac_prog 9399 # Check to see if the program is GNU ld. I'd rather use --version, 9400 # but apparently some variants of GNU ld only accept -v. 9401 # Break only if it was the GNU/non-GNU ld that we prefer. 9402 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9403 *GNU* | *'with BFD'*) 9404 test no != "$with_gnu_ld" && break 9405 ;; 9406 *) 9407 test yes != "$with_gnu_ld" && break 9408 ;; 9409 esac 9410 fi 9411 done 9412 IFS=$lt_save_ifs 9413 else 9414 lt_cv_path_LD=$LD # Let the user override the test with a path. 9415 fi ;; 9416 esac 9417 fi 9418 9419 LD=$lt_cv_path_LD 9420 if test -n "$LD"; then 9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 9422 printf "%s\n" "$LD" >&6; } 9423 else 9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9425 printf "%s\n" "no" >&6; } 9426 fi 9427 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 9429 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 9430 if test ${lt_cv_prog_gnu_ld+y} 9431 then : 9432 printf %s "(cached) " >&6 9433 else case e in #( 9434 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 9435 case `$LD -v 2>&1 </dev/null` in 9436 *GNU* | *'with BFD'*) 9437 lt_cv_prog_gnu_ld=yes 9438 ;; 9439 *) 9440 lt_cv_prog_gnu_ld=no 9441 ;; 9442 esac ;; 9443 esac 9444 fi 9445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 9446 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 9447 with_gnu_ld=$lt_cv_prog_gnu_ld 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 9458 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 9459 if test ${lt_cv_path_NM+y} 9460 then : 9461 printf %s "(cached) " >&6 9462 else case e in #( 9463 e) if test -n "$NM"; then 9464 # Let the user override the test. 9465 lt_cv_path_NM=$NM 9466 else 9467 lt_nm_to_check=${ac_tool_prefix}nm 9468 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 9469 lt_nm_to_check="$lt_nm_to_check nm" 9470 fi 9471 for lt_tmp_nm in $lt_nm_to_check; do 9472 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9473 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 9474 IFS=$lt_save_ifs 9475 test -z "$ac_dir" && ac_dir=. 9476 tmp_nm=$ac_dir/$lt_tmp_nm 9477 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 9478 # Check to see if the nm accepts a BSD-compat flag. 9479 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 9480 # nm: unknown option "B" ignored 9481 # Tru64's nm complains that /dev/null is an invalid object file 9482 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 9483 case $build_os in 9484 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 9485 *) lt_bad_file=/dev/null ;; 9486 esac 9487 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 9488 *$lt_bad_file* | *'Invalid file or object type'*) 9489 lt_cv_path_NM="$tmp_nm -B" 9490 break 2 9491 ;; 9492 *) 9493 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 9494 */dev/null*) 9495 lt_cv_path_NM="$tmp_nm -p" 9496 break 2 9497 ;; 9498 *) 9499 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 9500 continue # so that we can try to find one that supports BSD flags 9501 ;; 9502 esac 9503 ;; 9504 esac 9505 fi 9506 done 9507 IFS=$lt_save_ifs 9508 done 9509 : ${lt_cv_path_NM=no} 9510 fi ;; 9511 esac 9512 fi 9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 9514 printf "%s\n" "$lt_cv_path_NM" >&6; } 9515 if test no != "$lt_cv_path_NM"; then 9516 NM=$lt_cv_path_NM 9517 else 9518 # Didn't find any BSD compatible name lister, look for dumpbin. 9519 if test -n "$DUMPBIN"; then : 9520 # Let the user override the test. 9521 else 9522 if test -n "$ac_tool_prefix"; then 9523 for ac_prog in dumpbin "link -dump" 9524 do 9525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9528 printf %s "checking for $ac_word... " >&6; } 9529 if test ${ac_cv_prog_DUMPBIN+y} 9530 then : 9531 printf %s "(cached) " >&6 9532 else case e in #( 9533 e) if test -n "$DUMPBIN"; then 9534 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 9535 else 9536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9537 for as_dir in $PATH 9538 do 9539 IFS=$as_save_IFS 9540 case $as_dir in #((( 9541 '') as_dir=./ ;; 9542 */) ;; 9543 *) as_dir=$as_dir/ ;; 9544 esac 9545 for ac_exec_ext in '' $ac_executable_extensions; do 9546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9547 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 9548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9549 break 2 9550 fi 9551 done 9552 done 9553 IFS=$as_save_IFS 9554 9555 fi ;; 9556 esac 9557 fi 9558 DUMPBIN=$ac_cv_prog_DUMPBIN 9559 if test -n "$DUMPBIN"; then 9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 9561 printf "%s\n" "$DUMPBIN" >&6; } 9562 else 9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9564 printf "%s\n" "no" >&6; } 9565 fi 9566 9567 9568 test -n "$DUMPBIN" && break 9569 done 9570 fi 9571 if test -z "$DUMPBIN"; then 9572 ac_ct_DUMPBIN=$DUMPBIN 9573 for ac_prog in dumpbin "link -dump" 9574 do 9575 # Extract the first word of "$ac_prog", so it can be a program name with args. 9576 set dummy $ac_prog; ac_word=$2 9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9578 printf %s "checking for $ac_word... " >&6; } 9579 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 9580 then : 9581 printf %s "(cached) " >&6 9582 else case e in #( 9583 e) if test -n "$ac_ct_DUMPBIN"; then 9584 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 9585 else 9586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9587 for as_dir in $PATH 9588 do 9589 IFS=$as_save_IFS 9590 case $as_dir in #((( 9591 '') as_dir=./ ;; 9592 */) ;; 9593 *) as_dir=$as_dir/ ;; 9594 esac 9595 for ac_exec_ext in '' $ac_executable_extensions; do 9596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9597 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 9598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9599 break 2 9600 fi 9601 done 9602 done 9603 IFS=$as_save_IFS 9604 9605 fi ;; 9606 esac 9607 fi 9608 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 9609 if test -n "$ac_ct_DUMPBIN"; then 9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 9611 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 9612 else 9613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9614 printf "%s\n" "no" >&6; } 9615 fi 9616 9617 9618 test -n "$ac_ct_DUMPBIN" && break 9619 done 9620 9621 if test "x$ac_ct_DUMPBIN" = x; then 9622 DUMPBIN=":" 9623 else 9624 case $cross_compiling:$ac_tool_warned in 9625 yes:) 9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9627 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9628 ac_tool_warned=yes ;; 9629 esac 9630 DUMPBIN=$ac_ct_DUMPBIN 9631 fi 9632 fi 9633 9634 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 9635 *COFF*) 9636 DUMPBIN="$DUMPBIN -symbols -headers" 9637 ;; 9638 *) 9639 DUMPBIN=: 9640 ;; 9641 esac 9642 fi 9643 9644 if test : != "$DUMPBIN"; then 9645 NM=$DUMPBIN 9646 fi 9647 fi 9648 test -z "$NM" && NM=nm 9649 9650 9651 9652 9653 9654 9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 9656 printf %s "checking the name lister ($NM) interface... " >&6; } 9657 if test ${lt_cv_nm_interface+y} 9658 then : 9659 printf %s "(cached) " >&6 9660 else case e in #( 9661 e) lt_cv_nm_interface="BSD nm" 9662 echo "int some_variable = 0;" > conftest.$ac_ext 9663 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 9664 (eval "$ac_compile" 2>conftest.err) 9665 cat conftest.err >&5 9666 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 9667 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 9668 cat conftest.err >&5 9669 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 9670 cat conftest.out >&5 9671 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 9672 lt_cv_nm_interface="MS dumpbin" 9673 fi 9674 rm -f conftest* ;; 9675 esac 9676 fi 9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 9678 printf "%s\n" "$lt_cv_nm_interface" >&6; } 9679 9680 # find the maximum length of command line arguments 9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 9682 printf %s "checking the maximum length of command line arguments... " >&6; } 9683 if test ${lt_cv_sys_max_cmd_len+y} 9684 then : 9685 printf %s "(cached) " >&6 9686 else case e in #( 9687 e) i=0 9688 teststring=ABCD 9689 9690 case $build_os in 9691 msdosdjgpp*) 9692 # On DJGPP, this test can blow up pretty badly due to problems in libc 9693 # (any single argument exceeding 2000 bytes causes a buffer overrun 9694 # during glob expansion). Even if it were fixed, the result of this 9695 # check would be larger than it should be. 9696 lt_cv_sys_max_cmd_len=12288; # 12K is about right 9697 ;; 9698 9699 gnu* | ironclad*) 9700 # Under GNU Hurd and Ironclad, this test is not required because there 9701 # is no limit to the length of command line arguments. 9702 # Libtool will interpret -1 as no limit whatsoever 9703 lt_cv_sys_max_cmd_len=-1; 9704 ;; 9705 9706 cygwin* | mingw* | windows* | cegcc*) 9707 # On Win9x/ME, this test blows up -- it succeeds, but takes 9708 # about 5 minutes as the teststring grows exponentially. 9709 # Worse, since 9x/ME are not pre-emptively multitasking, 9710 # you end up with a "frozen" computer, even though with patience 9711 # the test eventually succeeds (with a max line length of 256k). 9712 # Instead, let's just punt: use the minimum linelength reported by 9713 # all of the supported platforms: 8192 (on NT/2K/XP). 9714 lt_cv_sys_max_cmd_len=8192; 9715 ;; 9716 9717 mint*) 9718 # On MiNT this can take a long time and run out of memory. 9719 lt_cv_sys_max_cmd_len=8192; 9720 ;; 9721 9722 amigaos*) 9723 # On AmigaOS with pdksh, this test takes hours, literally. 9724 # So we just punt and use a minimum line length of 8192. 9725 lt_cv_sys_max_cmd_len=8192; 9726 ;; 9727 9728 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 9729 # This has been around since 386BSD, at least. Likely further. 9730 if test -x /sbin/sysctl; then 9731 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 9732 elif test -x /usr/sbin/sysctl; then 9733 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 9734 else 9735 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 9736 fi 9737 # And add a safety zone 9738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9740 ;; 9741 9742 interix*) 9743 # We know the value 262144 and hardcode it with a safety zone (like BSD) 9744 lt_cv_sys_max_cmd_len=196608 9745 ;; 9746 9747 os2*) 9748 # The test takes a long time on OS/2. 9749 lt_cv_sys_max_cmd_len=8192 9750 ;; 9751 9752 osf*) 9753 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 9754 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 9755 # nice to cause kernel panics so lets avoid the loop below. 9756 # First set a reasonable default. 9757 lt_cv_sys_max_cmd_len=16384 9758 # 9759 if test -x /sbin/sysconfig; then 9760 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 9761 *1*) lt_cv_sys_max_cmd_len=-1 ;; 9762 esac 9763 fi 9764 ;; 9765 sco3.2v5*) 9766 lt_cv_sys_max_cmd_len=102400 9767 ;; 9768 sysv5* | sco5v6* | sysv4.2uw2*) 9769 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 9770 if test -n "$kargmax"; then 9771 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 9772 else 9773 lt_cv_sys_max_cmd_len=32768 9774 fi 9775 ;; 9776 *) 9777 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 9778 if test -n "$lt_cv_sys_max_cmd_len" && \ 9779 test undefined != "$lt_cv_sys_max_cmd_len"; then 9780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9782 else 9783 # Make teststring a little bigger before we do anything with it. 9784 # a 1K string should be a reasonable start. 9785 for i in 1 2 3 4 5 6 7 8; do 9786 teststring=$teststring$teststring 9787 done 9788 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 9789 # If test is not a shell built-in, we'll probably end up computing a 9790 # maximum length that is only half of the actual maximum length, but 9791 # we can't tell. 9792 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 9793 = "X$teststring$teststring"; } >/dev/null 2>&1 && 9794 test 17 != "$i" # 1/2 MB should be enough 9795 do 9796 i=`expr $i + 1` 9797 teststring=$teststring$teststring 9798 done 9799 # Only check the string length outside the loop. 9800 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 9801 teststring= 9802 # Add a significant safety factor because C++ compilers can tack on 9803 # massive amounts of additional arguments before passing them to the 9804 # linker. It appears as though 1/2 is a usable value. 9805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 9806 fi 9807 ;; 9808 esac 9809 ;; 9810 esac 9811 fi 9812 9813 if test -n "$lt_cv_sys_max_cmd_len"; then 9814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 9815 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 9816 else 9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 9818 printf "%s\n" "none" >&6; } 9819 fi 9820 max_cmd_len=$lt_cv_sys_max_cmd_len 9821 9822 9823 9824 9825 9826 9827 : ${CP="cp -f"} 9828 : ${MV="mv -f"} 9829 : ${RM="rm -f"} 9830 9831 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9832 lt_unset=unset 9833 else 9834 lt_unset=false 9835 fi 9836 9837 9838 9839 9840 9841 # test EBCDIC or ASCII 9842 case `echo X|tr X '\101'` in 9843 A) # ASCII based system 9844 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9845 lt_SP2NL='tr \040 \012' 9846 lt_NL2SP='tr \015\012 \040\040' 9847 ;; 9848 *) # EBCDIC based system 9849 lt_SP2NL='tr \100 \n' 9850 lt_NL2SP='tr \r\n \100\100' 9851 ;; 9852 esac 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 9863 printf %s "checking how to convert $build file names to $host format... " >&6; } 9864 if test ${lt_cv_to_host_file_cmd+y} 9865 then : 9866 printf %s "(cached) " >&6 9867 else case e in #( 9868 e) case $host in 9869 *-*-mingw* ) 9870 case $build in 9871 *-*-mingw* | *-*-windows* ) # actually msys 9872 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 9873 ;; 9874 *-*-cygwin* ) 9875 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 9876 ;; 9877 * ) # otherwise, assume *nix 9878 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 9879 ;; 9880 esac 9881 ;; 9882 *-*-cygwin* ) 9883 case $build in 9884 *-*-mingw* | *-*-windows* ) # actually msys 9885 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 9886 ;; 9887 *-*-cygwin* ) 9888 lt_cv_to_host_file_cmd=func_convert_file_noop 9889 ;; 9890 * ) # otherwise, assume *nix 9891 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 9892 ;; 9893 esac 9894 ;; 9895 * ) # unhandled hosts (and "normal" native builds) 9896 lt_cv_to_host_file_cmd=func_convert_file_noop 9897 ;; 9898 esac 9899 ;; 9900 esac 9901 fi 9902 9903 to_host_file_cmd=$lt_cv_to_host_file_cmd 9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 9905 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 9906 9907 9908 9909 9910 9911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 9912 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 9913 if test ${lt_cv_to_tool_file_cmd+y} 9914 then : 9915 printf %s "(cached) " >&6 9916 else case e in #( 9917 e) #assume ordinary cross tools, or native build. 9918 lt_cv_to_tool_file_cmd=func_convert_file_noop 9919 case $host in 9920 *-*-mingw* | *-*-windows* ) 9921 case $build in 9922 *-*-mingw* | *-*-windows* ) # actually msys 9923 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9924 ;; 9925 esac 9926 ;; 9927 esac 9928 ;; 9929 esac 9930 fi 9931 9932 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 9934 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 9935 9936 9937 9938 9939 9940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 9941 printf %s "checking for $LD option to reload object files... " >&6; } 9942 if test ${lt_cv_ld_reload_flag+y} 9943 then : 9944 printf %s "(cached) " >&6 9945 else case e in #( 9946 e) lt_cv_ld_reload_flag='-r' ;; 9947 esac 9948 fi 9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 9950 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 9951 reload_flag=$lt_cv_ld_reload_flag 9952 case $reload_flag in 9953 "" | " "*) ;; 9954 *) reload_flag=" $reload_flag" ;; 9955 esac 9956 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9957 case $host_os in 9958 cygwin* | mingw* | windows* | pw32* | cegcc*) 9959 if test yes != "$GCC"; then 9960 reload_cmds=false 9961 fi 9962 ;; 9963 darwin*) 9964 if test yes = "$GCC"; then 9965 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 9966 else 9967 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9968 fi 9969 ;; 9970 esac 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 # Extract the first word of "file", so it can be a program name with args. 9981 set dummy file; ac_word=$2 9982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9983 printf %s "checking for $ac_word... " >&6; } 9984 if test ${ac_cv_prog_FILECMD+y} 9985 then : 9986 printf %s "(cached) " >&6 9987 else case e in #( 9988 e) if test -n "$FILECMD"; then 9989 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 9990 else 9991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9992 for as_dir in $PATH 9993 do 9994 IFS=$as_save_IFS 9995 case $as_dir in #((( 9996 '') as_dir=./ ;; 9997 */) ;; 9998 *) as_dir=$as_dir/ ;; 9999 esac 10000 for ac_exec_ext in '' $ac_executable_extensions; do 10001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10002 ac_cv_prog_FILECMD="file" 10003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10004 break 2 10005 fi 10006 done 10007 done 10008 IFS=$as_save_IFS 10009 10010 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 10011 fi ;; 10012 esac 10013 fi 10014 FILECMD=$ac_cv_prog_FILECMD 10015 if test -n "$FILECMD"; then 10016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 10017 printf "%s\n" "$FILECMD" >&6; } 10018 else 10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10020 printf "%s\n" "no" >&6; } 10021 fi 10022 10023 10024 10025 10026 10027 10028 10029 10030 if test -n "$ac_tool_prefix"; then 10031 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 10032 set dummy ${ac_tool_prefix}objdump; ac_word=$2 10033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10034 printf %s "checking for $ac_word... " >&6; } 10035 if test ${ac_cv_prog_OBJDUMP+y} 10036 then : 10037 printf %s "(cached) " >&6 10038 else case e in #( 10039 e) if test -n "$OBJDUMP"; then 10040 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 10041 else 10042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10043 for as_dir in $PATH 10044 do 10045 IFS=$as_save_IFS 10046 case $as_dir in #((( 10047 '') as_dir=./ ;; 10048 */) ;; 10049 *) as_dir=$as_dir/ ;; 10050 esac 10051 for ac_exec_ext in '' $ac_executable_extensions; do 10052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10053 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 10054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10055 break 2 10056 fi 10057 done 10058 done 10059 IFS=$as_save_IFS 10060 10061 fi ;; 10062 esac 10063 fi 10064 OBJDUMP=$ac_cv_prog_OBJDUMP 10065 if test -n "$OBJDUMP"; then 10066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 10067 printf "%s\n" "$OBJDUMP" >&6; } 10068 else 10069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10070 printf "%s\n" "no" >&6; } 10071 fi 10072 10073 10074 fi 10075 if test -z "$ac_cv_prog_OBJDUMP"; then 10076 ac_ct_OBJDUMP=$OBJDUMP 10077 # Extract the first word of "objdump", so it can be a program name with args. 10078 set dummy objdump; ac_word=$2 10079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10080 printf %s "checking for $ac_word... " >&6; } 10081 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 10082 then : 10083 printf %s "(cached) " >&6 10084 else case e in #( 10085 e) if test -n "$ac_ct_OBJDUMP"; then 10086 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 10087 else 10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10089 for as_dir in $PATH 10090 do 10091 IFS=$as_save_IFS 10092 case $as_dir in #((( 10093 '') as_dir=./ ;; 10094 */) ;; 10095 *) as_dir=$as_dir/ ;; 10096 esac 10097 for ac_exec_ext in '' $ac_executable_extensions; do 10098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10099 ac_cv_prog_ac_ct_OBJDUMP="objdump" 10100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10101 break 2 10102 fi 10103 done 10104 done 10105 IFS=$as_save_IFS 10106 10107 fi ;; 10108 esac 10109 fi 10110 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 10111 if test -n "$ac_ct_OBJDUMP"; then 10112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 10113 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 10114 else 10115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10116 printf "%s\n" "no" >&6; } 10117 fi 10118 10119 if test "x$ac_ct_OBJDUMP" = x; then 10120 OBJDUMP="false" 10121 else 10122 case $cross_compiling:$ac_tool_warned in 10123 yes:) 10124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10125 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10126 ac_tool_warned=yes ;; 10127 esac 10128 OBJDUMP=$ac_ct_OBJDUMP 10129 fi 10130 else 10131 OBJDUMP="$ac_cv_prog_OBJDUMP" 10132 fi 10133 10134 test -z "$OBJDUMP" && OBJDUMP=objdump 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 10145 printf %s "checking how to recognize dependent libraries... " >&6; } 10146 if test ${lt_cv_deplibs_check_method+y} 10147 then : 10148 printf %s "(cached) " >&6 10149 else case e in #( 10150 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 10151 lt_cv_file_magic_test_file= 10152 lt_cv_deplibs_check_method='unknown' 10153 # Need to set the preceding variable on all platforms that support 10154 # interlibrary dependencies. 10155 # 'none' -- dependencies not supported. 10156 # 'unknown' -- same as none, but documents that we really don't know. 10157 # 'pass_all' -- all dependencies passed with no checks. 10158 # 'file_magic [[regex]]' -- check by looking for files in library path 10159 # that responds to the $file_magic_cmd with a given extended regex. 10160 # If you have 'file' or equivalent on your system and you're not sure 10161 # whether 'pass_all' will *always* work, you probably want this one. 10162 10163 case $host_os in 10164 aix[4-9]*) 10165 lt_cv_deplibs_check_method=pass_all 10166 ;; 10167 10168 beos*) 10169 lt_cv_deplibs_check_method=pass_all 10170 ;; 10171 10172 bsdi[45]*) 10173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 10174 lt_cv_file_magic_cmd='$FILECMD -L' 10175 lt_cv_file_magic_test_file=/shlib/libc.so 10176 ;; 10177 10178 cygwin*) 10179 # func_win32_libid is a shell function defined in ltmain.sh 10180 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 10181 lt_cv_file_magic_cmd='func_win32_libid' 10182 ;; 10183 10184 mingw* | windows* | pw32*) 10185 # Base MSYS/MinGW do not provide the 'file' command needed by 10186 # func_win32_libid shell function, so use a weaker test based on 'objdump', 10187 # unless we find 'file', for example because we are cross-compiling. 10188 if ( file / ) >/dev/null 2>&1; then 10189 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 10190 lt_cv_file_magic_cmd='func_win32_libid' 10191 else 10192 # Keep this pattern in sync with the one in func_win32_libid. 10193 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 10194 lt_cv_file_magic_cmd='$OBJDUMP -f' 10195 fi 10196 ;; 10197 10198 cegcc*) 10199 # use the weaker test based on 'objdump'. See mingw*. 10200 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 10201 lt_cv_file_magic_cmd='$OBJDUMP -f' 10202 ;; 10203 10204 darwin* | rhapsody*) 10205 lt_cv_deplibs_check_method=pass_all 10206 ;; 10207 10208 freebsd* | dragonfly* | midnightbsd*) 10209 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 10210 case $host_cpu in 10211 i*86 ) 10212 # Not sure whether the presence of OpenBSD here was a mistake. 10213 # Let's accept both of them until this is cleared up. 10214 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 10215 lt_cv_file_magic_cmd=$FILECMD 10216 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 10217 ;; 10218 esac 10219 else 10220 lt_cv_deplibs_check_method=pass_all 10221 fi 10222 ;; 10223 10224 haiku*) 10225 lt_cv_deplibs_check_method=pass_all 10226 ;; 10227 10228 hpux10.20* | hpux11*) 10229 lt_cv_file_magic_cmd=$FILECMD 10230 case $host_cpu in 10231 ia64*) 10232 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 10233 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 10234 ;; 10235 hppa*64*) 10236 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]' 10237 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 10238 ;; 10239 *) 10240 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 10241 lt_cv_file_magic_test_file=/usr/lib/libc.sl 10242 ;; 10243 esac 10244 ;; 10245 10246 interix[3-9]*) 10247 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 10248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 10249 ;; 10250 10251 irix5* | irix6* | nonstopux*) 10252 case $LD in 10253 *-32|*"-32 ") libmagic=32-bit;; 10254 *-n32|*"-n32 ") libmagic=N32;; 10255 *-64|*"-64 ") libmagic=64-bit;; 10256 *) libmagic=never-match;; 10257 esac 10258 lt_cv_deplibs_check_method=pass_all 10259 ;; 10260 10261 # This must be glibc/ELF. 10262 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10263 lt_cv_deplibs_check_method=pass_all 10264 ;; 10265 10266 *-mlibc) 10267 lt_cv_deplibs_check_method=pass_all 10268 ;; 10269 10270 netbsd* | netbsdelf*-gnu) 10271 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 10272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10273 else 10274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 10275 fi 10276 ;; 10277 10278 newos6*) 10279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 10280 lt_cv_file_magic_cmd=$FILECMD 10281 lt_cv_file_magic_test_file=/usr/lib/libnls.so 10282 ;; 10283 10284 *nto* | *qnx*) 10285 lt_cv_deplibs_check_method=pass_all 10286 ;; 10287 10288 openbsd*) 10289 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 10291 else 10292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10293 fi 10294 ;; 10295 10296 osf3* | osf4* | osf5*) 10297 lt_cv_deplibs_check_method=pass_all 10298 ;; 10299 10300 rdos*) 10301 lt_cv_deplibs_check_method=pass_all 10302 ;; 10303 10304 serenity*) 10305 lt_cv_deplibs_check_method=pass_all 10306 ;; 10307 10308 solaris*) 10309 lt_cv_deplibs_check_method=pass_all 10310 ;; 10311 10312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10313 lt_cv_deplibs_check_method=pass_all 10314 ;; 10315 10316 sysv4 | sysv4.3*) 10317 case $host_vendor in 10318 motorola) 10319 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]' 10320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 10321 ;; 10322 ncr) 10323 lt_cv_deplibs_check_method=pass_all 10324 ;; 10325 sequent) 10326 lt_cv_file_magic_cmd='/bin/file' 10327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 10328 ;; 10329 sni) 10330 lt_cv_file_magic_cmd='/bin/file' 10331 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 10332 lt_cv_file_magic_test_file=/lib/libc.so 10333 ;; 10334 siemens) 10335 lt_cv_deplibs_check_method=pass_all 10336 ;; 10337 pc) 10338 lt_cv_deplibs_check_method=pass_all 10339 ;; 10340 esac 10341 ;; 10342 10343 tpf*) 10344 lt_cv_deplibs_check_method=pass_all 10345 ;; 10346 os2*) 10347 lt_cv_deplibs_check_method=pass_all 10348 ;; 10349 esac 10350 ;; 10351 esac 10352 fi 10353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 10354 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 10355 10356 file_magic_glob= 10357 want_nocaseglob=no 10358 if test "$build" = "$host"; then 10359 case $host_os in 10360 mingw* | windows* | pw32*) 10361 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 10362 want_nocaseglob=yes 10363 else 10364 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 10365 fi 10366 ;; 10367 esac 10368 fi 10369 10370 file_magic_cmd=$lt_cv_file_magic_cmd 10371 deplibs_check_method=$lt_cv_deplibs_check_method 10372 test -z "$deplibs_check_method" && deplibs_check_method=unknown 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 if test -n "$ac_tool_prefix"; then 10396 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 10397 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10399 printf %s "checking for $ac_word... " >&6; } 10400 if test ${ac_cv_prog_DLLTOOL+y} 10401 then : 10402 printf %s "(cached) " >&6 10403 else case e in #( 10404 e) if test -n "$DLLTOOL"; then 10405 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 10406 else 10407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10408 for as_dir in $PATH 10409 do 10410 IFS=$as_save_IFS 10411 case $as_dir in #((( 10412 '') as_dir=./ ;; 10413 */) ;; 10414 *) as_dir=$as_dir/ ;; 10415 esac 10416 for ac_exec_ext in '' $ac_executable_extensions; do 10417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10418 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 10419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10420 break 2 10421 fi 10422 done 10423 done 10424 IFS=$as_save_IFS 10425 10426 fi ;; 10427 esac 10428 fi 10429 DLLTOOL=$ac_cv_prog_DLLTOOL 10430 if test -n "$DLLTOOL"; then 10431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 10432 printf "%s\n" "$DLLTOOL" >&6; } 10433 else 10434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10435 printf "%s\n" "no" >&6; } 10436 fi 10437 10438 10439 fi 10440 if test -z "$ac_cv_prog_DLLTOOL"; then 10441 ac_ct_DLLTOOL=$DLLTOOL 10442 # Extract the first word of "dlltool", so it can be a program name with args. 10443 set dummy dlltool; ac_word=$2 10444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10445 printf %s "checking for $ac_word... " >&6; } 10446 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 10447 then : 10448 printf %s "(cached) " >&6 10449 else case e in #( 10450 e) if test -n "$ac_ct_DLLTOOL"; then 10451 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 10452 else 10453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10454 for as_dir in $PATH 10455 do 10456 IFS=$as_save_IFS 10457 case $as_dir in #((( 10458 '') as_dir=./ ;; 10459 */) ;; 10460 *) as_dir=$as_dir/ ;; 10461 esac 10462 for ac_exec_ext in '' $ac_executable_extensions; do 10463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10464 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 10465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10466 break 2 10467 fi 10468 done 10469 done 10470 IFS=$as_save_IFS 10471 10472 fi ;; 10473 esac 10474 fi 10475 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 10476 if test -n "$ac_ct_DLLTOOL"; then 10477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 10478 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 10479 else 10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10481 printf "%s\n" "no" >&6; } 10482 fi 10483 10484 if test "x$ac_ct_DLLTOOL" = x; then 10485 DLLTOOL="false" 10486 else 10487 case $cross_compiling:$ac_tool_warned in 10488 yes:) 10489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10490 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10491 ac_tool_warned=yes ;; 10492 esac 10493 DLLTOOL=$ac_ct_DLLTOOL 10494 fi 10495 else 10496 DLLTOOL="$ac_cv_prog_DLLTOOL" 10497 fi 10498 10499 test -z "$DLLTOOL" && DLLTOOL=dlltool 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 10511 printf %s "checking how to associate runtime and link libraries... " >&6; } 10512 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 10513 then : 10514 printf %s "(cached) " >&6 10515 else case e in #( 10516 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 10517 10518 case $host_os in 10519 cygwin* | mingw* | windows* | pw32* | cegcc*) 10520 # two different shell functions defined in ltmain.sh; 10521 # decide which one to use based on capabilities of $DLLTOOL 10522 case `$DLLTOOL --help 2>&1` in 10523 *--identify-strict*) 10524 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 10525 ;; 10526 *) 10527 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 10528 ;; 10529 esac 10530 ;; 10531 *) 10532 # fallback: assume linklib IS sharedlib 10533 lt_cv_sharedlib_from_linklib_cmd=$ECHO 10534 ;; 10535 esac 10536 ;; 10537 esac 10538 fi 10539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 10540 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 10541 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 10542 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 10543 10544 10545 10546 10547 10548 10549 10550 if test -n "$ac_tool_prefix"; then 10551 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10552 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10554 printf %s "checking for $ac_word... " >&6; } 10555 if test ${ac_cv_prog_RANLIB+y} 10556 then : 10557 printf %s "(cached) " >&6 10558 else case e in #( 10559 e) if test -n "$RANLIB"; then 10560 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10561 else 10562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10563 for as_dir in $PATH 10564 do 10565 IFS=$as_save_IFS 10566 case $as_dir in #((( 10567 '') as_dir=./ ;; 10568 */) ;; 10569 *) as_dir=$as_dir/ ;; 10570 esac 10571 for ac_exec_ext in '' $ac_executable_extensions; do 10572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10573 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10575 break 2 10576 fi 10577 done 10578 done 10579 IFS=$as_save_IFS 10580 10581 fi ;; 10582 esac 10583 fi 10584 RANLIB=$ac_cv_prog_RANLIB 10585 if test -n "$RANLIB"; then 10586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10587 printf "%s\n" "$RANLIB" >&6; } 10588 else 10589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10590 printf "%s\n" "no" >&6; } 10591 fi 10592 10593 10594 fi 10595 if test -z "$ac_cv_prog_RANLIB"; then 10596 ac_ct_RANLIB=$RANLIB 10597 # Extract the first word of "ranlib", so it can be a program name with args. 10598 set dummy ranlib; ac_word=$2 10599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10600 printf %s "checking for $ac_word... " >&6; } 10601 if test ${ac_cv_prog_ac_ct_RANLIB+y} 10602 then : 10603 printf %s "(cached) " >&6 10604 else case e in #( 10605 e) if test -n "$ac_ct_RANLIB"; then 10606 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10607 else 10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10609 for as_dir in $PATH 10610 do 10611 IFS=$as_save_IFS 10612 case $as_dir in #((( 10613 '') as_dir=./ ;; 10614 */) ;; 10615 *) as_dir=$as_dir/ ;; 10616 esac 10617 for ac_exec_ext in '' $ac_executable_extensions; do 10618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10619 ac_cv_prog_ac_ct_RANLIB="ranlib" 10620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10621 break 2 10622 fi 10623 done 10624 done 10625 IFS=$as_save_IFS 10626 10627 fi ;; 10628 esac 10629 fi 10630 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10631 if test -n "$ac_ct_RANLIB"; then 10632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10633 printf "%s\n" "$ac_ct_RANLIB" >&6; } 10634 else 10635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10636 printf "%s\n" "no" >&6; } 10637 fi 10638 10639 if test "x$ac_ct_RANLIB" = x; then 10640 RANLIB=":" 10641 else 10642 case $cross_compiling:$ac_tool_warned in 10643 yes:) 10644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10645 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10646 ac_tool_warned=yes ;; 10647 esac 10648 RANLIB=$ac_ct_RANLIB 10649 fi 10650 else 10651 RANLIB="$ac_cv_prog_RANLIB" 10652 fi 10653 10654 if test -n "$ac_tool_prefix"; then 10655 for ac_prog in ar 10656 do 10657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10660 printf %s "checking for $ac_word... " >&6; } 10661 if test ${ac_cv_prog_AR+y} 10662 then : 10663 printf %s "(cached) " >&6 10664 else case e in #( 10665 e) if test -n "$AR"; then 10666 ac_cv_prog_AR="$AR" # Let the user override the test. 10667 else 10668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10669 for as_dir in $PATH 10670 do 10671 IFS=$as_save_IFS 10672 case $as_dir in #((( 10673 '') as_dir=./ ;; 10674 */) ;; 10675 *) as_dir=$as_dir/ ;; 10676 esac 10677 for ac_exec_ext in '' $ac_executable_extensions; do 10678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10679 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 10680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10681 break 2 10682 fi 10683 done 10684 done 10685 IFS=$as_save_IFS 10686 10687 fi ;; 10688 esac 10689 fi 10690 AR=$ac_cv_prog_AR 10691 if test -n "$AR"; then 10692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 10693 printf "%s\n" "$AR" >&6; } 10694 else 10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10696 printf "%s\n" "no" >&6; } 10697 fi 10698 10699 10700 test -n "$AR" && break 10701 done 10702 fi 10703 if test -z "$AR"; then 10704 ac_ct_AR=$AR 10705 for ac_prog in ar 10706 do 10707 # Extract the first word of "$ac_prog", so it can be a program name with args. 10708 set dummy $ac_prog; ac_word=$2 10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10710 printf %s "checking for $ac_word... " >&6; } 10711 if test ${ac_cv_prog_ac_ct_AR+y} 10712 then : 10713 printf %s "(cached) " >&6 10714 else case e in #( 10715 e) if test -n "$ac_ct_AR"; then 10716 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 10717 else 10718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10719 for as_dir in $PATH 10720 do 10721 IFS=$as_save_IFS 10722 case $as_dir in #((( 10723 '') as_dir=./ ;; 10724 */) ;; 10725 *) as_dir=$as_dir/ ;; 10726 esac 10727 for ac_exec_ext in '' $ac_executable_extensions; do 10728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10729 ac_cv_prog_ac_ct_AR="$ac_prog" 10730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10731 break 2 10732 fi 10733 done 10734 done 10735 IFS=$as_save_IFS 10736 10737 fi ;; 10738 esac 10739 fi 10740 ac_ct_AR=$ac_cv_prog_ac_ct_AR 10741 if test -n "$ac_ct_AR"; then 10742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 10743 printf "%s\n" "$ac_ct_AR" >&6; } 10744 else 10745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10746 printf "%s\n" "no" >&6; } 10747 fi 10748 10749 10750 test -n "$ac_ct_AR" && break 10751 done 10752 10753 if test "x$ac_ct_AR" = x; then 10754 AR="false" 10755 else 10756 case $cross_compiling:$ac_tool_warned in 10757 yes:) 10758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10759 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10760 ac_tool_warned=yes ;; 10761 esac 10762 AR=$ac_ct_AR 10763 fi 10764 fi 10765 10766 : ${AR=ar} 10767 10768 10769 10770 10771 10772 10773 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 10774 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 10775 # higher priority because that's what people were doing historically (setting 10776 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 10777 # variable obsoleted/removed. 10778 10779 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 10780 lt_ar_flags=$AR_FLAGS 10781 10782 10783 10784 10785 10786 10787 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 10788 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 10789 10790 10791 10792 10793 10794 10795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 10796 printf %s "checking for archiver @FILE support... " >&6; } 10797 if test ${lt_cv_ar_at_file+y} 10798 then : 10799 printf %s "(cached) " >&6 10800 else case e in #( 10801 e) lt_cv_ar_at_file=no 10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10803 /* end confdefs.h. */ 10804 10805 int 10806 main (void) 10807 { 10808 10809 ; 10810 return 0; 10811 } 10812 _ACEOF 10813 if ac_fn_c_try_compile "$LINENO" 10814 then : 10815 echo conftest.$ac_objext > conftest.lst 10816 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 10817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10818 (eval $lt_ar_try) 2>&5 10819 ac_status=$? 10820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10821 test $ac_status = 0; } 10822 if test 0 -eq "$ac_status"; then 10823 # Ensure the archiver fails upon bogus file names. 10824 rm -f conftest.$ac_objext libconftest.a 10825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10826 (eval $lt_ar_try) 2>&5 10827 ac_status=$? 10828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10829 test $ac_status = 0; } 10830 if test 0 -ne "$ac_status"; then 10831 lt_cv_ar_at_file=@ 10832 fi 10833 fi 10834 rm -f conftest.* libconftest.a 10835 10836 fi 10837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10838 ;; 10839 esac 10840 fi 10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 10842 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 10843 10844 if test no = "$lt_cv_ar_at_file"; then 10845 archiver_list_spec= 10846 else 10847 archiver_list_spec=$lt_cv_ar_at_file 10848 fi 10849 10850 10851 10852 10853 10854 10855 10856 if test -n "$ac_tool_prefix"; then 10857 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10858 set dummy ${ac_tool_prefix}strip; ac_word=$2 10859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10860 printf %s "checking for $ac_word... " >&6; } 10861 if test ${ac_cv_prog_STRIP+y} 10862 then : 10863 printf %s "(cached) " >&6 10864 else case e in #( 10865 e) if test -n "$STRIP"; then 10866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10867 else 10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10869 for as_dir in $PATH 10870 do 10871 IFS=$as_save_IFS 10872 case $as_dir in #((( 10873 '') as_dir=./ ;; 10874 */) ;; 10875 *) as_dir=$as_dir/ ;; 10876 esac 10877 for ac_exec_ext in '' $ac_executable_extensions; do 10878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10879 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10881 break 2 10882 fi 10883 done 10884 done 10885 IFS=$as_save_IFS 10886 10887 fi ;; 10888 esac 10889 fi 10890 STRIP=$ac_cv_prog_STRIP 10891 if test -n "$STRIP"; then 10892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10893 printf "%s\n" "$STRIP" >&6; } 10894 else 10895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10896 printf "%s\n" "no" >&6; } 10897 fi 10898 10899 10900 fi 10901 if test -z "$ac_cv_prog_STRIP"; then 10902 ac_ct_STRIP=$STRIP 10903 # Extract the first word of "strip", so it can be a program name with args. 10904 set dummy strip; ac_word=$2 10905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10906 printf %s "checking for $ac_word... " >&6; } 10907 if test ${ac_cv_prog_ac_ct_STRIP+y} 10908 then : 10909 printf %s "(cached) " >&6 10910 else case e in #( 10911 e) if test -n "$ac_ct_STRIP"; then 10912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10913 else 10914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10915 for as_dir in $PATH 10916 do 10917 IFS=$as_save_IFS 10918 case $as_dir in #((( 10919 '') as_dir=./ ;; 10920 */) ;; 10921 *) as_dir=$as_dir/ ;; 10922 esac 10923 for ac_exec_ext in '' $ac_executable_extensions; do 10924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10925 ac_cv_prog_ac_ct_STRIP="strip" 10926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10927 break 2 10928 fi 10929 done 10930 done 10931 IFS=$as_save_IFS 10932 10933 fi ;; 10934 esac 10935 fi 10936 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10937 if test -n "$ac_ct_STRIP"; then 10938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10939 printf "%s\n" "$ac_ct_STRIP" >&6; } 10940 else 10941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10942 printf "%s\n" "no" >&6; } 10943 fi 10944 10945 if test "x$ac_ct_STRIP" = x; then 10946 STRIP=":" 10947 else 10948 case $cross_compiling:$ac_tool_warned in 10949 yes:) 10950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10951 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10952 ac_tool_warned=yes ;; 10953 esac 10954 STRIP=$ac_ct_STRIP 10955 fi 10956 else 10957 STRIP="$ac_cv_prog_STRIP" 10958 fi 10959 10960 test -z "$STRIP" && STRIP=: 10961 10962 10963 10964 10965 10966 10967 10968 test -z "$RANLIB" && RANLIB=: 10969 10970 10971 10972 10973 10974 10975 # Determine commands to create old-style static archives. 10976 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 10977 old_postinstall_cmds='chmod 644 $oldlib' 10978 old_postuninstall_cmds= 10979 10980 if test -n "$RANLIB"; then 10981 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 10982 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 10983 fi 10984 10985 case $host_os in 10986 darwin*) 10987 lock_old_archive_extraction=yes ;; 10988 *) 10989 lock_old_archive_extraction=no ;; 10990 esac 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 # If no C compiler was specified, use CC. 11031 LTCC=${LTCC-"$CC"} 11032 11033 # If no C compiler flags were specified, use CFLAGS. 11034 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11035 11036 # Allow CC to be a program name with arguments. 11037 compiler=$CC 11038 11039 11040 # Check for command to grab the raw symbol name followed by C symbol from nm. 11041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 11042 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 11043 if test ${lt_cv_sys_global_symbol_pipe+y} 11044 then : 11045 printf %s "(cached) " >&6 11046 else case e in #( 11047 e) 11048 # These are sane defaults that work on at least a few old systems. 11049 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 11050 11051 # Character class describing NM global symbol codes. 11052 symcode='[BCDEGRST]' 11053 11054 # Regexp to match symbols that can be accessed directly from C. 11055 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 11056 11057 # Define system-specific variables. 11058 case $host_os in 11059 aix*) 11060 symcode='[BCDT]' 11061 ;; 11062 cygwin* | mingw* | windows* | pw32* | cegcc*) 11063 symcode='[ABCDGISTW]' 11064 ;; 11065 hpux*) 11066 if test ia64 = "$host_cpu"; then 11067 symcode='[ABCDEGRST]' 11068 fi 11069 ;; 11070 irix* | nonstopux*) 11071 symcode='[BCDEGRST]' 11072 ;; 11073 osf*) 11074 symcode='[BCDEGQRST]' 11075 ;; 11076 solaris*) 11077 symcode='[BCDRT]' 11078 ;; 11079 sco3.2v5*) 11080 symcode='[DT]' 11081 ;; 11082 sysv4.2uw2*) 11083 symcode='[DT]' 11084 ;; 11085 sysv5* | sco5v6* | unixware* | OpenUNIX*) 11086 symcode='[ABDT]' 11087 ;; 11088 sysv4) 11089 symcode='[DFNSTU]' 11090 ;; 11091 esac 11092 11093 # If we're using GNU nm, then use its standard symbol codes. 11094 case `$NM -V 2>&1` in 11095 *GNU* | *'with BFD'*) 11096 symcode='[ABCDGIRSTW]' ;; 11097 esac 11098 11099 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 11100 # Gets list of data symbols to import. 11101 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 11102 # Adjust the below global symbol transforms to fixup imported variables. 11103 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 11104 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 11105 lt_c_name_lib_hook="\ 11106 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 11107 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 11108 else 11109 # Disable hooks by default. 11110 lt_cv_sys_global_symbol_to_import= 11111 lt_cdecl_hook= 11112 lt_c_name_hook= 11113 lt_c_name_lib_hook= 11114 fi 11115 11116 # Transform an extracted symbol line into a proper C declaration. 11117 # Some systems (esp. on ia64) link data and code symbols differently, 11118 # so use this general approach. 11119 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 11120 $lt_cdecl_hook\ 11121 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 11122 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 11123 11124 # Transform an extracted symbol line into symbol name and symbol address 11125 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 11126 $lt_c_name_hook\ 11127 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 11128 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 11129 11130 # Transform an extracted symbol line into symbol name with lib prefix and 11131 # symbol address. 11132 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 11133 $lt_c_name_lib_hook\ 11134 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 11135 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 11136 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 11137 11138 # Handle CRLF in mingw tool chain 11139 opt_cr= 11140 case $build_os in 11141 mingw* | windows*) 11142 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 11143 ;; 11144 esac 11145 11146 # Try without a prefix underscore, then with it. 11147 for ac_symprfx in "" "_"; do 11148 11149 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 11150 symxfrm="\\1 $ac_symprfx\\2 \\2" 11151 11152 # Write the raw and C identifiers. 11153 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 11154 # Fake it for dumpbin and say T for any non-static function, 11155 # D for any global variable and I for any imported variable. 11156 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 11157 # which start with @ or ?. 11158 lt_cv_sys_global_symbol_pipe="$AWK '"\ 11159 " {last_section=section; section=\$ 3};"\ 11160 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 11161 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 11162 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 11163 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 11164 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 11165 " \$ 0!~/External *\|/{next};"\ 11166 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 11167 " {if(hide[section]) next};"\ 11168 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 11169 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 11170 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 11171 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 11172 " ' prfx=^$ac_symprfx" 11173 else 11174 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 11175 fi 11176 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 11177 11178 # Check to see that the pipe works correctly. 11179 pipe_works=no 11180 11181 rm -f conftest* 11182 cat > conftest.$ac_ext <<_LT_EOF 11183 #ifdef __cplusplus 11184 extern "C" { 11185 #endif 11186 char nm_test_var; 11187 void nm_test_func(void); 11188 void nm_test_func(void){} 11189 #ifdef __cplusplus 11190 } 11191 #endif 11192 int main(void){nm_test_var='a';nm_test_func();return(0);} 11193 _LT_EOF 11194 11195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11196 (eval $ac_compile) 2>&5 11197 ac_status=$? 11198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11199 test $ac_status = 0; }; then 11200 # Now try to grab the symbols. 11201 nlist=conftest.nm 11202 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 11203 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 11204 # Try sorting and uniquifying the output. 11205 if sort "$nlist" | uniq > "$nlist"T; then 11206 mv -f "$nlist"T "$nlist" 11207 else 11208 rm -f "$nlist"T 11209 fi 11210 11211 # Make sure that we snagged all the symbols we need. 11212 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 11213 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 11214 cat <<_LT_EOF > conftest.$ac_ext 11215 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 11216 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 11217 /* DATA imports from DLLs on WIN32 can't be const, because runtime 11218 relocations are performed -- see ld's documentation on pseudo-relocs. */ 11219 # define LT_DLSYM_CONST 11220 #elif defined __osf__ 11221 /* This system does not cope well with relocations in const data. */ 11222 # define LT_DLSYM_CONST 11223 #else 11224 # define LT_DLSYM_CONST const 11225 #endif 11226 11227 #ifdef __cplusplus 11228 extern "C" { 11229 #endif 11230 11231 _LT_EOF 11232 # Now generate the symbol file. 11233 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 11234 11235 cat <<_LT_EOF >> conftest.$ac_ext 11236 11237 /* The mapping between symbol names and symbols. */ 11238 LT_DLSYM_CONST struct { 11239 const char *name; 11240 void *address; 11241 } 11242 lt__PROGRAM__LTX_preloaded_symbols[] = 11243 { 11244 { "@PROGRAM@", (void *) 0 }, 11245 _LT_EOF 11246 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 11247 cat <<\_LT_EOF >> conftest.$ac_ext 11248 {0, (void *) 0} 11249 }; 11250 11251 /* This works around a problem in FreeBSD linker */ 11252 #ifdef FREEBSD_WORKAROUND 11253 static const void *lt_preloaded_setup() { 11254 return lt__PROGRAM__LTX_preloaded_symbols; 11255 } 11256 #endif 11257 11258 #ifdef __cplusplus 11259 } 11260 #endif 11261 _LT_EOF 11262 # Now try linking the two files. 11263 mv conftest.$ac_objext conftstm.$ac_objext 11264 lt_globsym_save_LIBS=$LIBS 11265 lt_globsym_save_CFLAGS=$CFLAGS 11266 LIBS=conftstm.$ac_objext 11267 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 11268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11269 (eval $ac_link) 2>&5 11270 ac_status=$? 11271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11272 test $ac_status = 0; } && test -s conftest$ac_exeext; then 11273 pipe_works=yes 11274 fi 11275 LIBS=$lt_globsym_save_LIBS 11276 CFLAGS=$lt_globsym_save_CFLAGS 11277 else 11278 echo "cannot find nm_test_func in $nlist" >&5 11279 fi 11280 else 11281 echo "cannot find nm_test_var in $nlist" >&5 11282 fi 11283 else 11284 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 11285 fi 11286 else 11287 echo "$progname: failed program was:" >&5 11288 cat conftest.$ac_ext >&5 11289 fi 11290 rm -rf conftest* conftst* 11291 11292 # Do not use the global_symbol_pipe unless it works. 11293 if test yes = "$pipe_works"; then 11294 break 11295 else 11296 lt_cv_sys_global_symbol_pipe= 11297 fi 11298 done 11299 ;; 11300 esac 11301 fi 11302 11303 if test -z "$lt_cv_sys_global_symbol_pipe"; then 11304 lt_cv_sys_global_symbol_to_cdecl= 11305 fi 11306 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 11307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 11308 printf "%s\n" "failed" >&6; } 11309 else 11310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 11311 printf "%s\n" "ok" >&6; } 11312 fi 11313 11314 # Response file support. 11315 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 11316 nm_file_list_spec='@' 11317 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 11318 nm_file_list_spec='@' 11319 fi 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 11358 printf %s "checking for sysroot... " >&6; } 11359 11360 # Check whether --with-sysroot was given. 11361 if test ${with_sysroot+y} 11362 then : 11363 withval=$with_sysroot; 11364 else case e in #( 11365 e) with_sysroot=no ;; 11366 esac 11367 fi 11368 11369 11370 lt_sysroot= 11371 case $with_sysroot in #( 11372 yes) 11373 if test yes = "$GCC"; then 11374 # Trim trailing / since we'll always append absolute paths and we want 11375 # to avoid //, if only for less confusing output for the user. 11376 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 11377 fi 11378 ;; #( 11379 /*) 11380 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 11381 ;; #( 11382 no|'') 11383 ;; #( 11384 *) 11385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 11386 printf "%s\n" "$with_sysroot" >&6; } 11387 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 11388 ;; 11389 esac 11390 11391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 11392 printf "%s\n" "${lt_sysroot:-no}" >&6; } 11393 11394 11395 11396 11397 11398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 11399 printf %s "checking for a working dd... " >&6; } 11400 if test ${ac_cv_path_lt_DD+y} 11401 then : 11402 printf %s "(cached) " >&6 11403 else case e in #( 11404 e) printf 0123456789abcdef0123456789abcdef >conftest.i 11405 cat conftest.i conftest.i >conftest2.i 11406 : ${lt_DD:=$DD} 11407 if test -z "$lt_DD"; then 11408 ac_path_lt_DD_found=false 11409 # Loop through the user's path and test for each of PROGNAME-LIST 11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11411 for as_dir in $PATH 11412 do 11413 IFS=$as_save_IFS 11414 case $as_dir in #((( 11415 '') as_dir=./ ;; 11416 */) ;; 11417 *) as_dir=$as_dir/ ;; 11418 esac 11419 for ac_prog in dd 11420 do 11421 for ac_exec_ext in '' $ac_executable_extensions; do 11422 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 11423 as_fn_executable_p "$ac_path_lt_DD" || continue 11424 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 11425 cmp -s conftest.i conftest.out \ 11426 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 11427 fi 11428 $ac_path_lt_DD_found && break 3 11429 done 11430 done 11431 done 11432 IFS=$as_save_IFS 11433 if test -z "$ac_cv_path_lt_DD"; then 11434 : 11435 fi 11436 else 11437 ac_cv_path_lt_DD=$lt_DD 11438 fi 11439 11440 rm -f conftest.i conftest2.i conftest.out ;; 11441 esac 11442 fi 11443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 11444 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 11445 11446 11447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 11448 printf %s "checking how to truncate binary pipes... " >&6; } 11449 if test ${lt_cv_truncate_bin+y} 11450 then : 11451 printf %s "(cached) " >&6 11452 else case e in #( 11453 e) printf 0123456789abcdef0123456789abcdef >conftest.i 11454 cat conftest.i conftest.i >conftest2.i 11455 lt_cv_truncate_bin= 11456 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 11457 cmp -s conftest.i conftest.out \ 11458 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 11459 fi 11460 rm -f conftest.i conftest2.i conftest.out 11461 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 11462 esac 11463 fi 11464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 11465 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 11466 11467 11468 11469 11470 11471 11472 11473 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 11474 func_cc_basename () 11475 { 11476 for cc_temp in $*""; do 11477 case $cc_temp in 11478 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11479 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11480 \-*) ;; 11481 *) break;; 11482 esac 11483 done 11484 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11485 } 11486 11487 # Check whether --enable-libtool-lock was given. 11488 if test ${enable_libtool_lock+y} 11489 then : 11490 enableval=$enable_libtool_lock; 11491 fi 11492 11493 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 11494 11495 # Some flags need to be propagated to the compiler or linker for good 11496 # libtool support. 11497 case $host in 11498 ia64-*-hpux*) 11499 # Find out what ABI is being produced by ac_compile, and set mode 11500 # options accordingly. 11501 echo 'int i;' > conftest.$ac_ext 11502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11503 (eval $ac_compile) 2>&5 11504 ac_status=$? 11505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11506 test $ac_status = 0; }; then 11507 case `$FILECMD conftest.$ac_objext` in 11508 *ELF-32*) 11509 HPUX_IA64_MODE=32 11510 ;; 11511 *ELF-64*) 11512 HPUX_IA64_MODE=64 11513 ;; 11514 esac 11515 fi 11516 rm -rf conftest* 11517 ;; 11518 *-*-irix6*) 11519 # Find out what ABI is being produced by ac_compile, and set linker 11520 # options accordingly. 11521 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 11522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11523 (eval $ac_compile) 2>&5 11524 ac_status=$? 11525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11526 test $ac_status = 0; }; then 11527 if test yes = "$lt_cv_prog_gnu_ld"; then 11528 case `$FILECMD conftest.$ac_objext` in 11529 *32-bit*) 11530 LD="${LD-ld} -melf32bsmip" 11531 ;; 11532 *N32*) 11533 LD="${LD-ld} -melf32bmipn32" 11534 ;; 11535 *64-bit*) 11536 LD="${LD-ld} -melf64bmip" 11537 ;; 11538 esac 11539 else 11540 case `$FILECMD conftest.$ac_objext` in 11541 *32-bit*) 11542 LD="${LD-ld} -32" 11543 ;; 11544 *N32*) 11545 LD="${LD-ld} -n32" 11546 ;; 11547 *64-bit*) 11548 LD="${LD-ld} -64" 11549 ;; 11550 esac 11551 fi 11552 fi 11553 rm -rf conftest* 11554 ;; 11555 11556 mips64*-*linux*) 11557 # Find out what ABI is being produced by ac_compile, and set linker 11558 # options accordingly. 11559 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 11560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11561 (eval $ac_compile) 2>&5 11562 ac_status=$? 11563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11564 test $ac_status = 0; }; then 11565 emul=elf 11566 case `$FILECMD conftest.$ac_objext` in 11567 *32-bit*) 11568 emul="${emul}32" 11569 ;; 11570 *64-bit*) 11571 emul="${emul}64" 11572 ;; 11573 esac 11574 case `$FILECMD conftest.$ac_objext` in 11575 *MSB*) 11576 emul="${emul}btsmip" 11577 ;; 11578 *LSB*) 11579 emul="${emul}ltsmip" 11580 ;; 11581 esac 11582 case `$FILECMD conftest.$ac_objext` in 11583 *N32*) 11584 emul="${emul}n32" 11585 ;; 11586 esac 11587 LD="${LD-ld} -m $emul" 11588 fi 11589 rm -rf conftest* 11590 ;; 11591 11592 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 11593 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 11594 # Find out what ABI is being produced by ac_compile, and set linker 11595 # options accordingly. Note that the listed cases only cover the 11596 # situations where additional linker options are needed (such as when 11597 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 11598 # vice versa); the common cases where no linker options are needed do 11599 # not appear in the list. 11600 echo 'int i;' > conftest.$ac_ext 11601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11602 (eval $ac_compile) 2>&5 11603 ac_status=$? 11604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11605 test $ac_status = 0; }; then 11606 case `$FILECMD conftest.o` in 11607 *32-bit*) 11608 case $host in 11609 x86_64-*kfreebsd*-gnu) 11610 LD="${LD-ld} -m elf_i386_fbsd" 11611 ;; 11612 x86_64-*linux*|x86_64-gnu*) 11613 case `$FILECMD conftest.o` in 11614 *x86-64*) 11615 LD="${LD-ld} -m elf32_x86_64" 11616 ;; 11617 *) 11618 LD="${LD-ld} -m elf_i386" 11619 ;; 11620 esac 11621 ;; 11622 powerpc64le-*linux*) 11623 LD="${LD-ld} -m elf32lppclinux" 11624 ;; 11625 powerpc64-*linux*) 11626 LD="${LD-ld} -m elf32ppclinux" 11627 ;; 11628 s390x-*linux*) 11629 LD="${LD-ld} -m elf_s390" 11630 ;; 11631 sparc64-*linux*) 11632 LD="${LD-ld} -m elf32_sparc" 11633 ;; 11634 esac 11635 ;; 11636 *64-bit*) 11637 case $host in 11638 x86_64-*kfreebsd*-gnu) 11639 LD="${LD-ld} -m elf_x86_64_fbsd" 11640 ;; 11641 x86_64-*linux*|x86_64-gnu*) 11642 LD="${LD-ld} -m elf_x86_64" 11643 ;; 11644 powerpcle-*linux*) 11645 LD="${LD-ld} -m elf64lppc" 11646 ;; 11647 powerpc-*linux*) 11648 LD="${LD-ld} -m elf64ppc" 11649 ;; 11650 s390*-*linux*|s390*-*tpf*) 11651 LD="${LD-ld} -m elf64_s390" 11652 ;; 11653 sparc*-*linux*) 11654 LD="${LD-ld} -m elf64_sparc" 11655 ;; 11656 esac 11657 ;; 11658 esac 11659 fi 11660 rm -rf conftest* 11661 ;; 11662 11663 *-*-sco3.2v5*) 11664 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 11665 SAVE_CFLAGS=$CFLAGS 11666 CFLAGS="$CFLAGS -belf" 11667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 11668 printf %s "checking whether the C compiler needs -belf... " >&6; } 11669 if test ${lt_cv_cc_needs_belf+y} 11670 then : 11671 printf %s "(cached) " >&6 11672 else case e in #( 11673 e) ac_ext=c 11674 ac_cpp='$CPP $CPPFLAGS' 11675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11677 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11678 11679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11680 /* end confdefs.h. */ 11681 11682 int 11683 main (void) 11684 { 11685 11686 ; 11687 return 0; 11688 } 11689 _ACEOF 11690 if ac_fn_c_try_link "$LINENO" 11691 then : 11692 lt_cv_cc_needs_belf=yes 11693 else case e in #( 11694 e) lt_cv_cc_needs_belf=no ;; 11695 esac 11696 fi 11697 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11698 conftest$ac_exeext conftest.$ac_ext 11699 ac_ext=c 11700 ac_cpp='$CPP $CPPFLAGS' 11701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11703 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11704 ;; 11705 esac 11706 fi 11707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 11708 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 11709 if test yes != "$lt_cv_cc_needs_belf"; then 11710 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 11711 CFLAGS=$SAVE_CFLAGS 11712 fi 11713 ;; 11714 *-*solaris*) 11715 # Find out what ABI is being produced by ac_compile, and set linker 11716 # options accordingly. 11717 echo 'int i;' > conftest.$ac_ext 11718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11719 (eval $ac_compile) 2>&5 11720 ac_status=$? 11721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11722 test $ac_status = 0; }; then 11723 case `$FILECMD conftest.o` in 11724 *64-bit*) 11725 case $lt_cv_prog_gnu_ld in 11726 yes*) 11727 case $host in 11728 i?86-*-solaris*|x86_64-*-solaris*) 11729 LD="${LD-ld} -m elf_x86_64" 11730 ;; 11731 sparc*-*-solaris*) 11732 LD="${LD-ld} -m elf64_sparc" 11733 ;; 11734 esac 11735 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 11736 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 11737 LD=${LD-ld}_sol2 11738 fi 11739 ;; 11740 *) 11741 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 11742 LD="${LD-ld} -64" 11743 fi 11744 ;; 11745 esac 11746 ;; 11747 esac 11748 fi 11749 rm -rf conftest* 11750 ;; 11751 esac 11752 11753 need_locks=$enable_libtool_lock 11754 11755 if test -n "$ac_tool_prefix"; then 11756 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 11757 set dummy ${ac_tool_prefix}mt; ac_word=$2 11758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11759 printf %s "checking for $ac_word... " >&6; } 11760 if test ${ac_cv_prog_MANIFEST_TOOL+y} 11761 then : 11762 printf %s "(cached) " >&6 11763 else case e in #( 11764 e) if test -n "$MANIFEST_TOOL"; then 11765 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 11766 else 11767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11768 for as_dir in $PATH 11769 do 11770 IFS=$as_save_IFS 11771 case $as_dir in #((( 11772 '') as_dir=./ ;; 11773 */) ;; 11774 *) as_dir=$as_dir/ ;; 11775 esac 11776 for ac_exec_ext in '' $ac_executable_extensions; do 11777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11778 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 11779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11780 break 2 11781 fi 11782 done 11783 done 11784 IFS=$as_save_IFS 11785 11786 fi ;; 11787 esac 11788 fi 11789 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 11790 if test -n "$MANIFEST_TOOL"; then 11791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 11792 printf "%s\n" "$MANIFEST_TOOL" >&6; } 11793 else 11794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11795 printf "%s\n" "no" >&6; } 11796 fi 11797 11798 11799 fi 11800 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 11801 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 11802 # Extract the first word of "mt", so it can be a program name with args. 11803 set dummy mt; ac_word=$2 11804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11805 printf %s "checking for $ac_word... " >&6; } 11806 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 11807 then : 11808 printf %s "(cached) " >&6 11809 else case e in #( 11810 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 11811 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 11812 else 11813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11814 for as_dir in $PATH 11815 do 11816 IFS=$as_save_IFS 11817 case $as_dir in #((( 11818 '') as_dir=./ ;; 11819 */) ;; 11820 *) as_dir=$as_dir/ ;; 11821 esac 11822 for ac_exec_ext in '' $ac_executable_extensions; do 11823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11824 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 11825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11826 break 2 11827 fi 11828 done 11829 done 11830 IFS=$as_save_IFS 11831 11832 fi ;; 11833 esac 11834 fi 11835 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 11836 if test -n "$ac_ct_MANIFEST_TOOL"; then 11837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 11838 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 11839 else 11840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11841 printf "%s\n" "no" >&6; } 11842 fi 11843 11844 if test "x$ac_ct_MANIFEST_TOOL" = x; then 11845 MANIFEST_TOOL=":" 11846 else 11847 case $cross_compiling:$ac_tool_warned in 11848 yes:) 11849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11850 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11851 ac_tool_warned=yes ;; 11852 esac 11853 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 11854 fi 11855 else 11856 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 11857 fi 11858 11859 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 11860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 11861 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 11862 if test ${lt_cv_path_manifest_tool+y} 11863 then : 11864 printf %s "(cached) " >&6 11865 else case e in #( 11866 e) lt_cv_path_manifest_tool=no 11867 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 11868 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 11869 cat conftest.err >&5 11870 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 11871 lt_cv_path_manifest_tool=yes 11872 fi 11873 rm -f conftest* ;; 11874 esac 11875 fi 11876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 11877 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 11878 if test yes != "$lt_cv_path_manifest_tool"; then 11879 MANIFEST_TOOL=: 11880 fi 11881 11882 11883 11884 11885 11886 11887 case $host_os in 11888 rhapsody* | darwin*) 11889 if test -n "$ac_tool_prefix"; then 11890 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 11891 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 11892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11893 printf %s "checking for $ac_word... " >&6; } 11894 if test ${ac_cv_prog_DSYMUTIL+y} 11895 then : 11896 printf %s "(cached) " >&6 11897 else case e in #( 11898 e) if test -n "$DSYMUTIL"; then 11899 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 11900 else 11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11902 for as_dir in $PATH 11903 do 11904 IFS=$as_save_IFS 11905 case $as_dir in #((( 11906 '') as_dir=./ ;; 11907 */) ;; 11908 *) as_dir=$as_dir/ ;; 11909 esac 11910 for ac_exec_ext in '' $ac_executable_extensions; do 11911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11912 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 11913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11914 break 2 11915 fi 11916 done 11917 done 11918 IFS=$as_save_IFS 11919 11920 fi ;; 11921 esac 11922 fi 11923 DSYMUTIL=$ac_cv_prog_DSYMUTIL 11924 if test -n "$DSYMUTIL"; then 11925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 11926 printf "%s\n" "$DSYMUTIL" >&6; } 11927 else 11928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11929 printf "%s\n" "no" >&6; } 11930 fi 11931 11932 11933 fi 11934 if test -z "$ac_cv_prog_DSYMUTIL"; then 11935 ac_ct_DSYMUTIL=$DSYMUTIL 11936 # Extract the first word of "dsymutil", so it can be a program name with args. 11937 set dummy dsymutil; ac_word=$2 11938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11939 printf %s "checking for $ac_word... " >&6; } 11940 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 11941 then : 11942 printf %s "(cached) " >&6 11943 else case e in #( 11944 e) if test -n "$ac_ct_DSYMUTIL"; then 11945 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 11946 else 11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11948 for as_dir in $PATH 11949 do 11950 IFS=$as_save_IFS 11951 case $as_dir in #((( 11952 '') as_dir=./ ;; 11953 */) ;; 11954 *) as_dir=$as_dir/ ;; 11955 esac 11956 for ac_exec_ext in '' $ac_executable_extensions; do 11957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11958 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 11959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11960 break 2 11961 fi 11962 done 11963 done 11964 IFS=$as_save_IFS 11965 11966 fi ;; 11967 esac 11968 fi 11969 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 11970 if test -n "$ac_ct_DSYMUTIL"; then 11971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 11972 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 11973 else 11974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11975 printf "%s\n" "no" >&6; } 11976 fi 11977 11978 if test "x$ac_ct_DSYMUTIL" = x; then 11979 DSYMUTIL=":" 11980 else 11981 case $cross_compiling:$ac_tool_warned in 11982 yes:) 11983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11984 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11985 ac_tool_warned=yes ;; 11986 esac 11987 DSYMUTIL=$ac_ct_DSYMUTIL 11988 fi 11989 else 11990 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 11991 fi 11992 11993 if test -n "$ac_tool_prefix"; then 11994 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 11995 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11997 printf %s "checking for $ac_word... " >&6; } 11998 if test ${ac_cv_prog_NMEDIT+y} 11999 then : 12000 printf %s "(cached) " >&6 12001 else case e in #( 12002 e) if test -n "$NMEDIT"; then 12003 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 12004 else 12005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12006 for as_dir in $PATH 12007 do 12008 IFS=$as_save_IFS 12009 case $as_dir in #((( 12010 '') as_dir=./ ;; 12011 */) ;; 12012 *) as_dir=$as_dir/ ;; 12013 esac 12014 for ac_exec_ext in '' $ac_executable_extensions; do 12015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12016 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 12017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12018 break 2 12019 fi 12020 done 12021 done 12022 IFS=$as_save_IFS 12023 12024 fi ;; 12025 esac 12026 fi 12027 NMEDIT=$ac_cv_prog_NMEDIT 12028 if test -n "$NMEDIT"; then 12029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 12030 printf "%s\n" "$NMEDIT" >&6; } 12031 else 12032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12033 printf "%s\n" "no" >&6; } 12034 fi 12035 12036 12037 fi 12038 if test -z "$ac_cv_prog_NMEDIT"; then 12039 ac_ct_NMEDIT=$NMEDIT 12040 # Extract the first word of "nmedit", so it can be a program name with args. 12041 set dummy nmedit; ac_word=$2 12042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12043 printf %s "checking for $ac_word... " >&6; } 12044 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 12045 then : 12046 printf %s "(cached) " >&6 12047 else case e in #( 12048 e) if test -n "$ac_ct_NMEDIT"; then 12049 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 12050 else 12051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12052 for as_dir in $PATH 12053 do 12054 IFS=$as_save_IFS 12055 case $as_dir in #((( 12056 '') as_dir=./ ;; 12057 */) ;; 12058 *) as_dir=$as_dir/ ;; 12059 esac 12060 for ac_exec_ext in '' $ac_executable_extensions; do 12061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12062 ac_cv_prog_ac_ct_NMEDIT="nmedit" 12063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12064 break 2 12065 fi 12066 done 12067 done 12068 IFS=$as_save_IFS 12069 12070 fi ;; 12071 esac 12072 fi 12073 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 12074 if test -n "$ac_ct_NMEDIT"; then 12075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 12076 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 12077 else 12078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12079 printf "%s\n" "no" >&6; } 12080 fi 12081 12082 if test "x$ac_ct_NMEDIT" = x; then 12083 NMEDIT=":" 12084 else 12085 case $cross_compiling:$ac_tool_warned in 12086 yes:) 12087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12088 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12089 ac_tool_warned=yes ;; 12090 esac 12091 NMEDIT=$ac_ct_NMEDIT 12092 fi 12093 else 12094 NMEDIT="$ac_cv_prog_NMEDIT" 12095 fi 12096 12097 if test -n "$ac_tool_prefix"; then 12098 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 12099 set dummy ${ac_tool_prefix}lipo; ac_word=$2 12100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12101 printf %s "checking for $ac_word... " >&6; } 12102 if test ${ac_cv_prog_LIPO+y} 12103 then : 12104 printf %s "(cached) " >&6 12105 else case e in #( 12106 e) if test -n "$LIPO"; then 12107 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 12108 else 12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12110 for as_dir in $PATH 12111 do 12112 IFS=$as_save_IFS 12113 case $as_dir in #((( 12114 '') as_dir=./ ;; 12115 */) ;; 12116 *) as_dir=$as_dir/ ;; 12117 esac 12118 for ac_exec_ext in '' $ac_executable_extensions; do 12119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12120 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 12121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12122 break 2 12123 fi 12124 done 12125 done 12126 IFS=$as_save_IFS 12127 12128 fi ;; 12129 esac 12130 fi 12131 LIPO=$ac_cv_prog_LIPO 12132 if test -n "$LIPO"; then 12133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 12134 printf "%s\n" "$LIPO" >&6; } 12135 else 12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12137 printf "%s\n" "no" >&6; } 12138 fi 12139 12140 12141 fi 12142 if test -z "$ac_cv_prog_LIPO"; then 12143 ac_ct_LIPO=$LIPO 12144 # Extract the first word of "lipo", so it can be a program name with args. 12145 set dummy lipo; ac_word=$2 12146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12147 printf %s "checking for $ac_word... " >&6; } 12148 if test ${ac_cv_prog_ac_ct_LIPO+y} 12149 then : 12150 printf %s "(cached) " >&6 12151 else case e in #( 12152 e) if test -n "$ac_ct_LIPO"; then 12153 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 12154 else 12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12156 for as_dir in $PATH 12157 do 12158 IFS=$as_save_IFS 12159 case $as_dir in #((( 12160 '') as_dir=./ ;; 12161 */) ;; 12162 *) as_dir=$as_dir/ ;; 12163 esac 12164 for ac_exec_ext in '' $ac_executable_extensions; do 12165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12166 ac_cv_prog_ac_ct_LIPO="lipo" 12167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12168 break 2 12169 fi 12170 done 12171 done 12172 IFS=$as_save_IFS 12173 12174 fi ;; 12175 esac 12176 fi 12177 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 12178 if test -n "$ac_ct_LIPO"; then 12179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 12180 printf "%s\n" "$ac_ct_LIPO" >&6; } 12181 else 12182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12183 printf "%s\n" "no" >&6; } 12184 fi 12185 12186 if test "x$ac_ct_LIPO" = x; then 12187 LIPO=":" 12188 else 12189 case $cross_compiling:$ac_tool_warned in 12190 yes:) 12191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12192 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12193 ac_tool_warned=yes ;; 12194 esac 12195 LIPO=$ac_ct_LIPO 12196 fi 12197 else 12198 LIPO="$ac_cv_prog_LIPO" 12199 fi 12200 12201 if test -n "$ac_tool_prefix"; then 12202 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 12203 set dummy ${ac_tool_prefix}otool; ac_word=$2 12204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12205 printf %s "checking for $ac_word... " >&6; } 12206 if test ${ac_cv_prog_OTOOL+y} 12207 then : 12208 printf %s "(cached) " >&6 12209 else case e in #( 12210 e) if test -n "$OTOOL"; then 12211 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 12212 else 12213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12214 for as_dir in $PATH 12215 do 12216 IFS=$as_save_IFS 12217 case $as_dir in #((( 12218 '') as_dir=./ ;; 12219 */) ;; 12220 *) as_dir=$as_dir/ ;; 12221 esac 12222 for ac_exec_ext in '' $ac_executable_extensions; do 12223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12224 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 12225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12226 break 2 12227 fi 12228 done 12229 done 12230 IFS=$as_save_IFS 12231 12232 fi ;; 12233 esac 12234 fi 12235 OTOOL=$ac_cv_prog_OTOOL 12236 if test -n "$OTOOL"; then 12237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 12238 printf "%s\n" "$OTOOL" >&6; } 12239 else 12240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12241 printf "%s\n" "no" >&6; } 12242 fi 12243 12244 12245 fi 12246 if test -z "$ac_cv_prog_OTOOL"; then 12247 ac_ct_OTOOL=$OTOOL 12248 # Extract the first word of "otool", so it can be a program name with args. 12249 set dummy otool; ac_word=$2 12250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12251 printf %s "checking for $ac_word... " >&6; } 12252 if test ${ac_cv_prog_ac_ct_OTOOL+y} 12253 then : 12254 printf %s "(cached) " >&6 12255 else case e in #( 12256 e) if test -n "$ac_ct_OTOOL"; then 12257 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 12258 else 12259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12260 for as_dir in $PATH 12261 do 12262 IFS=$as_save_IFS 12263 case $as_dir in #((( 12264 '') as_dir=./ ;; 12265 */) ;; 12266 *) as_dir=$as_dir/ ;; 12267 esac 12268 for ac_exec_ext in '' $ac_executable_extensions; do 12269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12270 ac_cv_prog_ac_ct_OTOOL="otool" 12271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12272 break 2 12273 fi 12274 done 12275 done 12276 IFS=$as_save_IFS 12277 12278 fi ;; 12279 esac 12280 fi 12281 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 12282 if test -n "$ac_ct_OTOOL"; then 12283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 12284 printf "%s\n" "$ac_ct_OTOOL" >&6; } 12285 else 12286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12287 printf "%s\n" "no" >&6; } 12288 fi 12289 12290 if test "x$ac_ct_OTOOL" = x; then 12291 OTOOL=":" 12292 else 12293 case $cross_compiling:$ac_tool_warned in 12294 yes:) 12295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12296 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12297 ac_tool_warned=yes ;; 12298 esac 12299 OTOOL=$ac_ct_OTOOL 12300 fi 12301 else 12302 OTOOL="$ac_cv_prog_OTOOL" 12303 fi 12304 12305 if test -n "$ac_tool_prefix"; then 12306 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 12307 set dummy ${ac_tool_prefix}otool64; ac_word=$2 12308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12309 printf %s "checking for $ac_word... " >&6; } 12310 if test ${ac_cv_prog_OTOOL64+y} 12311 then : 12312 printf %s "(cached) " >&6 12313 else case e in #( 12314 e) if test -n "$OTOOL64"; then 12315 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 12316 else 12317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12318 for as_dir in $PATH 12319 do 12320 IFS=$as_save_IFS 12321 case $as_dir in #((( 12322 '') as_dir=./ ;; 12323 */) ;; 12324 *) as_dir=$as_dir/ ;; 12325 esac 12326 for ac_exec_ext in '' $ac_executable_extensions; do 12327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12328 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 12329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12330 break 2 12331 fi 12332 done 12333 done 12334 IFS=$as_save_IFS 12335 12336 fi ;; 12337 esac 12338 fi 12339 OTOOL64=$ac_cv_prog_OTOOL64 12340 if test -n "$OTOOL64"; then 12341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 12342 printf "%s\n" "$OTOOL64" >&6; } 12343 else 12344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12345 printf "%s\n" "no" >&6; } 12346 fi 12347 12348 12349 fi 12350 if test -z "$ac_cv_prog_OTOOL64"; then 12351 ac_ct_OTOOL64=$OTOOL64 12352 # Extract the first word of "otool64", so it can be a program name with args. 12353 set dummy otool64; ac_word=$2 12354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12355 printf %s "checking for $ac_word... " >&6; } 12356 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 12357 then : 12358 printf %s "(cached) " >&6 12359 else case e in #( 12360 e) if test -n "$ac_ct_OTOOL64"; then 12361 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 12362 else 12363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12364 for as_dir in $PATH 12365 do 12366 IFS=$as_save_IFS 12367 case $as_dir in #((( 12368 '') as_dir=./ ;; 12369 */) ;; 12370 *) as_dir=$as_dir/ ;; 12371 esac 12372 for ac_exec_ext in '' $ac_executable_extensions; do 12373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12374 ac_cv_prog_ac_ct_OTOOL64="otool64" 12375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12376 break 2 12377 fi 12378 done 12379 done 12380 IFS=$as_save_IFS 12381 12382 fi ;; 12383 esac 12384 fi 12385 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 12386 if test -n "$ac_ct_OTOOL64"; then 12387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 12388 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 12389 else 12390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12391 printf "%s\n" "no" >&6; } 12392 fi 12393 12394 if test "x$ac_ct_OTOOL64" = x; then 12395 OTOOL64=":" 12396 else 12397 case $cross_compiling:$ac_tool_warned in 12398 yes:) 12399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12400 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12401 ac_tool_warned=yes ;; 12402 esac 12403 OTOOL64=$ac_ct_OTOOL64 12404 fi 12405 else 12406 OTOOL64="$ac_cv_prog_OTOOL64" 12407 fi 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 12436 printf %s "checking for -single_module linker flag... " >&6; } 12437 if test ${lt_cv_apple_cc_single_mod+y} 12438 then : 12439 printf %s "(cached) " >&6 12440 else case e in #( 12441 e) lt_cv_apple_cc_single_mod=no 12442 if test -z "$LT_MULTI_MODULE"; then 12443 # By default we will add the -single_module flag. You can override 12444 # by either setting the environment variable LT_MULTI_MODULE 12445 # non-empty at configure time, or by adding -multi_module to the 12446 # link flags. 12447 rm -rf libconftest.dylib* 12448 echo "int foo(void){return 1;}" > conftest.c 12449 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12450 -dynamiclib -Wl,-single_module conftest.c" >&5 12451 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12452 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 12453 _lt_result=$? 12454 # If there is a non-empty error log, and "single_module" 12455 # appears in it, assume the flag caused a linker warning 12456 if test -s conftest.err && $GREP single_module conftest.err; then 12457 cat conftest.err >&5 12458 # Otherwise, if the output was created with a 0 exit code from 12459 # the compiler, it worked. 12460 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 12461 lt_cv_apple_cc_single_mod=yes 12462 else 12463 cat conftest.err >&5 12464 fi 12465 rm -rf libconftest.dylib* 12466 rm -f conftest.* 12467 fi ;; 12468 esac 12469 fi 12470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 12471 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 12472 12473 # Feature test to disable chained fixups since it is not 12474 # compatible with '-undefined dynamic_lookup' 12475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 12476 printf %s "checking for -no_fixup_chains linker flag... " >&6; } 12477 if test ${lt_cv_support_no_fixup_chains+y} 12478 then : 12479 printf %s "(cached) " >&6 12480 else case e in #( 12481 e) save_LDFLAGS=$LDFLAGS 12482 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12484 /* end confdefs.h. */ 12485 12486 int 12487 main (void) 12488 { 12489 12490 ; 12491 return 0; 12492 } 12493 _ACEOF 12494 if ac_fn_c_try_link "$LINENO" 12495 then : 12496 lt_cv_support_no_fixup_chains=yes 12497 else case e in #( 12498 e) lt_cv_support_no_fixup_chains=no 12499 ;; 12500 esac 12501 fi 12502 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12503 conftest$ac_exeext conftest.$ac_ext 12504 LDFLAGS=$save_LDFLAGS 12505 12506 ;; 12507 esac 12508 fi 12509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 12510 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 12511 12512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 12513 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 12514 if test ${lt_cv_ld_exported_symbols_list+y} 12515 then : 12516 printf %s "(cached) " >&6 12517 else case e in #( 12518 e) lt_cv_ld_exported_symbols_list=no 12519 save_LDFLAGS=$LDFLAGS 12520 echo "_main" > conftest.sym 12521 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12523 /* end confdefs.h. */ 12524 12525 int 12526 main (void) 12527 { 12528 12529 ; 12530 return 0; 12531 } 12532 _ACEOF 12533 if ac_fn_c_try_link "$LINENO" 12534 then : 12535 lt_cv_ld_exported_symbols_list=yes 12536 else case e in #( 12537 e) lt_cv_ld_exported_symbols_list=no ;; 12538 esac 12539 fi 12540 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12541 conftest$ac_exeext conftest.$ac_ext 12542 LDFLAGS=$save_LDFLAGS 12543 ;; 12544 esac 12545 fi 12546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 12547 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 12548 12549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 12550 printf %s "checking for -force_load linker flag... " >&6; } 12551 if test ${lt_cv_ld_force_load+y} 12552 then : 12553 printf %s "(cached) " >&6 12554 else case e in #( 12555 e) lt_cv_ld_force_load=no 12556 cat > conftest.c << _LT_EOF 12557 int forced_loaded() { return 2;} 12558 _LT_EOF 12559 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 12560 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 12561 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 12562 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 12563 echo "$RANLIB libconftest.a" >&5 12564 $RANLIB libconftest.a 2>&5 12565 cat > conftest.c << _LT_EOF 12566 int main(void) { return 0;} 12567 _LT_EOF 12568 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 12569 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 12570 _lt_result=$? 12571 if test -s conftest.err && $GREP force_load conftest.err; then 12572 cat conftest.err >&5 12573 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 12574 lt_cv_ld_force_load=yes 12575 else 12576 cat conftest.err >&5 12577 fi 12578 rm -f conftest.err libconftest.a conftest conftest.c 12579 rm -rf conftest.dSYM 12580 ;; 12581 esac 12582 fi 12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 12584 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 12585 case $host_os in 12586 rhapsody* | darwin1.[012]) 12587 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 12588 darwin1.*) 12589 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 12590 darwin*) 12591 case $MACOSX_DEPLOYMENT_TARGET,$host in 12592 10.[012],*|,*powerpc*-darwin[5-8]*) 12593 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 12594 *) 12595 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 12596 if test yes = "$lt_cv_support_no_fixup_chains"; then 12597 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 12598 fi 12599 ;; 12600 esac 12601 ;; 12602 esac 12603 if test yes = "$lt_cv_apple_cc_single_mod"; then 12604 _lt_dar_single_mod='$single_module' 12605 fi 12606 _lt_dar_needs_single_mod=no 12607 case $host_os in 12608 rhapsody* | darwin1.*) 12609 _lt_dar_needs_single_mod=yes ;; 12610 darwin*) 12611 # When targeting Mac OS X 10.4 (darwin 8) or later, 12612 # -single_module is the default and -multi_module is unsupported. 12613 # The toolchain on macOS 10.14 (darwin 18) and later cannot 12614 # target any OS version that needs -single_module. 12615 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 12616 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 12617 _lt_dar_needs_single_mod=yes ;; 12618 esac 12619 ;; 12620 esac 12621 if test yes = "$lt_cv_ld_exported_symbols_list"; then 12622 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 12623 else 12624 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 12625 fi 12626 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 12627 _lt_dsymutil='~$DSYMUTIL $lib || :' 12628 else 12629 _lt_dsymutil= 12630 fi 12631 ;; 12632 esac 12633 12634 # func_munge_path_list VARIABLE PATH 12635 # ----------------------------------- 12636 # VARIABLE is name of variable containing _space_ separated list of 12637 # directories to be munged by the contents of PATH, which is string 12638 # having a format: 12639 # "DIR[:DIR]:" 12640 # string "DIR[ DIR]" will be prepended to VARIABLE 12641 # ":DIR[:DIR]" 12642 # string "DIR[ DIR]" will be appended to VARIABLE 12643 # "DIRP[:DIRP]::[DIRA:]DIRA" 12644 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 12645 # "DIRA[ DIRA]" will be appended to VARIABLE 12646 # "DIR[:DIR]" 12647 # VARIABLE will be replaced by "DIR[ DIR]" 12648 func_munge_path_list () 12649 { 12650 case x$2 in 12651 x) 12652 ;; 12653 *:) 12654 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 12655 ;; 12656 x:*) 12657 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 12658 ;; 12659 *::*) 12660 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 12661 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 12662 ;; 12663 *) 12664 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 12665 ;; 12666 esac 12667 } 12668 12669 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 12670 " 12671 if test "x$ac_cv_header_dlfcn_h" = xyes 12672 then : 12673 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 12674 12675 fi 12676 12677 12678 12679 12680 12681 # Set options 12682 # Check whether --enable-static was given. 12683 if test ${enable_static+y} 12684 then : 12685 enableval=$enable_static; p=${PACKAGE-default} 12686 case $enableval in 12687 yes) enable_static=yes ;; 12688 no) enable_static=no ;; 12689 *) 12690 enable_static=no 12691 # Look at the argument we got. We use all the common list separators. 12692 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12693 for pkg in $enableval; do 12694 IFS=$lt_save_ifs 12695 if test "X$pkg" = "X$p"; then 12696 enable_static=yes 12697 fi 12698 done 12699 IFS=$lt_save_ifs 12700 ;; 12701 esac 12702 else case e in #( 12703 e) enable_static=no ;; 12704 esac 12705 fi 12706 12707 12708 12709 12710 12711 12712 12713 enable_dlopen=yes 12714 # Check whether --enable-pic was given. 12715 if test ${enable_pic+y} 12716 then : 12717 enableval=$enable_pic; lt_p=${PACKAGE-default} 12718 case $enableval in 12719 yes|no) pic_mode=$enableval ;; 12720 *) 12721 pic_mode=default 12722 # Look at the argument we got. We use all the common list separators. 12723 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12724 for lt_pkg in $enableval; do 12725 IFS=$lt_save_ifs 12726 if test "X$lt_pkg" = "X$lt_p"; then 12727 pic_mode=yes 12728 fi 12729 done 12730 IFS=$lt_save_ifs 12731 ;; 12732 esac 12733 else case e in #( 12734 e) # Check whether --with-pic was given. 12735 if test ${with_pic+y} 12736 then : 12737 withval=$with_pic; lt_p=${PACKAGE-default} 12738 case $withval in 12739 yes|no) pic_mode=$withval ;; 12740 *) 12741 pic_mode=default 12742 # Look at the argument we got. We use all the common list separators. 12743 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12744 for lt_pkg in $withval; do 12745 IFS=$lt_save_ifs 12746 if test "X$lt_pkg" = "X$lt_p"; then 12747 pic_mode=yes 12748 fi 12749 done 12750 IFS=$lt_save_ifs 12751 ;; 12752 esac 12753 else case e in #( 12754 e) pic_mode=yes ;; 12755 esac 12756 fi 12757 12758 ;; 12759 esac 12760 fi 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 enable_win32_dll=no 12772 12773 12774 # Check whether --enable-shared was given. 12775 if test ${enable_shared+y} 12776 then : 12777 enableval=$enable_shared; p=${PACKAGE-default} 12778 case $enableval in 12779 yes) enable_shared=yes ;; 12780 no) enable_shared=no ;; 12781 *) 12782 enable_shared=no 12783 # Look at the argument we got. We use all the common list separators. 12784 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12785 for pkg in $enableval; do 12786 IFS=$lt_save_ifs 12787 if test "X$pkg" = "X$p"; then 12788 enable_shared=yes 12789 fi 12790 done 12791 IFS=$lt_save_ifs 12792 ;; 12793 esac 12794 else case e in #( 12795 e) enable_shared=yes ;; 12796 esac 12797 fi 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 # Check whether --enable-fast-install was given. 12810 if test ${enable_fast_install+y} 12811 then : 12812 enableval=$enable_fast_install; p=${PACKAGE-default} 12813 case $enableval in 12814 yes) enable_fast_install=yes ;; 12815 no) enable_fast_install=no ;; 12816 *) 12817 enable_fast_install=no 12818 # Look at the argument we got. We use all the common list separators. 12819 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12820 for pkg in $enableval; do 12821 IFS=$lt_save_ifs 12822 if test "X$pkg" = "X$p"; then 12823 enable_fast_install=yes 12824 fi 12825 done 12826 IFS=$lt_save_ifs 12827 ;; 12828 esac 12829 else case e in #( 12830 e) enable_fast_install=yes ;; 12831 esac 12832 fi 12833 12834 12835 12836 12837 12838 12839 12840 12841 shared_archive_member_spec= 12842 case $host,$enable_shared in 12843 power*-*-aix[5-9]*,yes) 12844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 12845 printf %s "checking which variant of shared library versioning to provide... " >&6; } 12846 # Check whether --enable-aix-soname was given. 12847 if test ${enable_aix_soname+y} 12848 then : 12849 enableval=$enable_aix_soname; case $enableval in 12850 aix|svr4|both) 12851 ;; 12852 *) 12853 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 12854 ;; 12855 esac 12856 lt_cv_with_aix_soname=$enable_aix_soname 12857 else case e in #( 12858 e) # Check whether --with-aix-soname was given. 12859 if test ${with_aix_soname+y} 12860 then : 12861 withval=$with_aix_soname; case $withval in 12862 aix|svr4|both) 12863 ;; 12864 *) 12865 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 12866 ;; 12867 esac 12868 lt_cv_with_aix_soname=$with_aix_soname 12869 else case e in #( 12870 e) if test ${lt_cv_with_aix_soname+y} 12871 then : 12872 printf %s "(cached) " >&6 12873 else case e in #( 12874 e) lt_cv_with_aix_soname=aix ;; 12875 esac 12876 fi 12877 ;; 12878 esac 12879 fi 12880 12881 enable_aix_soname=$lt_cv_with_aix_soname ;; 12882 esac 12883 fi 12884 12885 with_aix_soname=$enable_aix_soname 12886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 12887 printf "%s\n" "$with_aix_soname" >&6; } 12888 if test aix != "$with_aix_soname"; then 12889 # For the AIX way of multilib, we name the shared archive member 12890 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 12891 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 12892 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 12893 # the AIX toolchain works better with OBJECT_MODE set (default 32). 12894 if test 64 = "${OBJECT_MODE-32}"; then 12895 shared_archive_member_spec=shr_64 12896 else 12897 shared_archive_member_spec=shr 12898 fi 12899 fi 12900 ;; 12901 *) 12902 with_aix_soname=aix 12903 ;; 12904 esac 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 # This can be used to rebuild libtool when needed 12916 LIBTOOL_DEPS=$ltmain 12917 12918 # Always use our own libtool. 12919 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 test -z "$LN_S" && LN_S="ln -s" 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 if test -n "${ZSH_VERSION+set}"; then 12966 setopt NO_GLOB_SUBST 12967 fi 12968 12969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 12970 printf %s "checking for objdir... " >&6; } 12971 if test ${lt_cv_objdir+y} 12972 then : 12973 printf %s "(cached) " >&6 12974 else case e in #( 12975 e) rm -f .libs 2>/dev/null 12976 mkdir .libs 2>/dev/null 12977 if test -d .libs; then 12978 lt_cv_objdir=.libs 12979 else 12980 # MS-DOS does not allow filenames that begin with a dot. 12981 lt_cv_objdir=_libs 12982 fi 12983 rmdir .libs 2>/dev/null ;; 12984 esac 12985 fi 12986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 12987 printf "%s\n" "$lt_cv_objdir" >&6; } 12988 objdir=$lt_cv_objdir 12989 12990 12991 12992 12993 12994 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 12995 12996 12997 12998 12999 case $host_os in 13000 aix3*) 13001 # AIX sometimes has problems with the GCC collect2 program. For some 13002 # reason, if we set the COLLECT_NAMES environment variable, the problems 13003 # vanish in a puff of smoke. 13004 if test set != "${COLLECT_NAMES+set}"; then 13005 COLLECT_NAMES= 13006 export COLLECT_NAMES 13007 fi 13008 ;; 13009 esac 13010 13011 # Global variables: 13012 ofile=libtool 13013 can_build_shared=yes 13014 13015 # All known linkers require a '.a' archive for static linking (except MSVC and 13016 # ICC, which need '.lib'). 13017 libext=a 13018 13019 with_gnu_ld=$lt_cv_prog_gnu_ld 13020 13021 old_CC=$CC 13022 old_CFLAGS=$CFLAGS 13023 13024 # Set sane defaults for various variables 13025 test -z "$CC" && CC=cc 13026 test -z "$LTCC" && LTCC=$CC 13027 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 13028 test -z "$LD" && LD=ld 13029 test -z "$ac_objext" && ac_objext=o 13030 13031 func_cc_basename $compiler 13032 cc_basename=$func_cc_basename_result 13033 13034 13035 # Only perform the check for file, if the check method requires it 13036 test -z "$MAGIC_CMD" && MAGIC_CMD=file 13037 case $deplibs_check_method in 13038 file_magic*) 13039 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 13040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 13041 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 13042 if test ${lt_cv_path_MAGIC_CMD+y} 13043 then : 13044 printf %s "(cached) " >&6 13045 else case e in #( 13046 e) case $MAGIC_CMD in 13047 [\\/*] | ?:[\\/]*) 13048 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 13049 ;; 13050 *) 13051 lt_save_MAGIC_CMD=$MAGIC_CMD 13052 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13053 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13054 for ac_dir in $ac_dummy; do 13055 IFS=$lt_save_ifs 13056 test -z "$ac_dir" && ac_dir=. 13057 if test -f "$ac_dir/${ac_tool_prefix}file"; then 13058 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 13059 if test -n "$file_magic_test_file"; then 13060 case $deplibs_check_method in 13061 "file_magic "*) 13062 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13063 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 13064 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13065 $EGREP "$file_magic_regex" > /dev/null; then 13066 : 13067 else 13068 cat <<_LT_EOF 1>&2 13069 13070 *** Warning: the command libtool uses to detect shared libraries, 13071 *** $file_magic_cmd, produces output that libtool cannot recognize. 13072 *** The result is that libtool may fail to recognize shared libraries 13073 *** as such. This will affect the creation of libtool libraries that 13074 *** depend on shared libraries, but programs linked with such libtool 13075 *** libraries will work regardless of this problem. Nevertheless, you 13076 *** may want to report the problem to your system manager and/or to 13077 *** bug-libtool@gnu.org 13078 13079 _LT_EOF 13080 fi ;; 13081 esac 13082 fi 13083 break 13084 fi 13085 done 13086 IFS=$lt_save_ifs 13087 MAGIC_CMD=$lt_save_MAGIC_CMD 13088 ;; 13089 esac ;; 13090 esac 13091 fi 13092 13093 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 13094 if test -n "$MAGIC_CMD"; then 13095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 13096 printf "%s\n" "$MAGIC_CMD" >&6; } 13097 else 13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13099 printf "%s\n" "no" >&6; } 13100 fi 13101 13102 13103 13104 13105 13106 if test -z "$lt_cv_path_MAGIC_CMD"; then 13107 if test -n "$ac_tool_prefix"; then 13108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 13109 printf %s "checking for file... " >&6; } 13110 if test ${lt_cv_path_MAGIC_CMD+y} 13111 then : 13112 printf %s "(cached) " >&6 13113 else case e in #( 13114 e) case $MAGIC_CMD in 13115 [\\/*] | ?:[\\/]*) 13116 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 13117 ;; 13118 *) 13119 lt_save_MAGIC_CMD=$MAGIC_CMD 13120 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13121 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13122 for ac_dir in $ac_dummy; do 13123 IFS=$lt_save_ifs 13124 test -z "$ac_dir" && ac_dir=. 13125 if test -f "$ac_dir/file"; then 13126 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 13127 if test -n "$file_magic_test_file"; then 13128 case $deplibs_check_method in 13129 "file_magic "*) 13130 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13131 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 13132 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13133 $EGREP "$file_magic_regex" > /dev/null; then 13134 : 13135 else 13136 cat <<_LT_EOF 1>&2 13137 13138 *** Warning: the command libtool uses to detect shared libraries, 13139 *** $file_magic_cmd, produces output that libtool cannot recognize. 13140 *** The result is that libtool may fail to recognize shared libraries 13141 *** as such. This will affect the creation of libtool libraries that 13142 *** depend on shared libraries, but programs linked with such libtool 13143 *** libraries will work regardless of this problem. Nevertheless, you 13144 *** may want to report the problem to your system manager and/or to 13145 *** bug-libtool@gnu.org 13146 13147 _LT_EOF 13148 fi ;; 13149 esac 13150 fi 13151 break 13152 fi 13153 done 13154 IFS=$lt_save_ifs 13155 MAGIC_CMD=$lt_save_MAGIC_CMD 13156 ;; 13157 esac ;; 13158 esac 13159 fi 13160 13161 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 13162 if test -n "$MAGIC_CMD"; then 13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 13164 printf "%s\n" "$MAGIC_CMD" >&6; } 13165 else 13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13167 printf "%s\n" "no" >&6; } 13168 fi 13169 13170 13171 else 13172 MAGIC_CMD=: 13173 fi 13174 fi 13175 13176 fi 13177 ;; 13178 esac 13179 13180 # Use C for the default configuration in the libtool script 13181 13182 lt_save_CC=$CC 13183 ac_ext=c 13184 ac_cpp='$CPP $CPPFLAGS' 13185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13187 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13188 13189 13190 # Source file extension for C test sources. 13191 ac_ext=c 13192 13193 # Object file extension for compiled C test sources. 13194 objext=o 13195 objext=$objext 13196 13197 # Code to be used in simple compile tests 13198 lt_simple_compile_test_code="int some_variable = 0;" 13199 13200 # Code to be used in simple link tests 13201 lt_simple_link_test_code='int main(void){return(0);}' 13202 13203 13204 13205 13206 13207 13208 13209 # If no C compiler was specified, use CC. 13210 LTCC=${LTCC-"$CC"} 13211 13212 # If no C compiler flags were specified, use CFLAGS. 13213 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13214 13215 # Allow CC to be a program name with arguments. 13216 compiler=$CC 13217 13218 # Save the default compiler, since it gets overwritten when the other 13219 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 13220 compiler_DEFAULT=$CC 13221 13222 # save warnings/boilerplate of simple test code 13223 ac_outfile=conftest.$ac_objext 13224 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13225 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13226 _lt_compiler_boilerplate=`cat conftest.err` 13227 $RM conftest* 13228 13229 ac_outfile=conftest.$ac_objext 13230 echo "$lt_simple_link_test_code" >conftest.$ac_ext 13231 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13232 _lt_linker_boilerplate=`cat conftest.err` 13233 $RM -r conftest* 13234 13235 13236 ## CAVEAT EMPTOR: 13237 ## There is no encapsulation within the following macros, do not change 13238 ## the running order or otherwise move them around unless you know exactly 13239 ## what you are doing... 13240 if test -n "$compiler"; then 13241 13242 lt_prog_compiler_no_builtin_flag= 13243 13244 if test yes = "$GCC"; then 13245 case $cc_basename in 13246 nvcc*) 13247 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 13248 *) 13249 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 13250 esac 13251 13252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 13253 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 13254 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 13255 then : 13256 printf %s "(cached) " >&6 13257 else case e in #( 13258 e) lt_cv_prog_compiler_rtti_exceptions=no 13259 ac_outfile=conftest.$ac_objext 13260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13261 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 13262 # Insert the option either (1) after the last *FLAGS variable, or 13263 # (2) before a word containing "conftest.", or (3) at the end. 13264 # Note that $ac_compile itself does not contain backslashes and begins 13265 # with a dollar sign (not a hyphen), so the echo should work correctly. 13266 # The option is referenced via a variable to avoid confusing sed. 13267 lt_compile=`echo "$ac_compile" | $SED \ 13268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13270 -e 's:$: $lt_compiler_flag:'` 13271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13272 (eval "$lt_compile" 2>conftest.err) 13273 ac_status=$? 13274 cat conftest.err >&5 13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13276 if (exit $ac_status) && test -s "$ac_outfile"; then 13277 # The compiler can only warn and ignore the option if not recognized 13278 # So say no if there are warnings other than the usual output. 13279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13282 lt_cv_prog_compiler_rtti_exceptions=yes 13283 fi 13284 fi 13285 $RM conftest* 13286 ;; 13287 esac 13288 fi 13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 13290 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 13291 13292 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 13293 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 13294 else 13295 : 13296 fi 13297 13298 fi 13299 13300 13301 13302 13303 13304 13305 lt_prog_compiler_wl= 13306 lt_prog_compiler_pic= 13307 lt_prog_compiler_static= 13308 13309 13310 if test yes = "$GCC"; then 13311 lt_prog_compiler_wl='-Wl,' 13312 lt_prog_compiler_static='-static' 13313 13314 case $host_os in 13315 aix*) 13316 # All AIX code is PIC. 13317 if test ia64 = "$host_cpu"; then 13318 # AIX 5 now supports IA64 processor 13319 lt_prog_compiler_static='-Bstatic' 13320 fi 13321 lt_prog_compiler_pic='-fPIC' 13322 ;; 13323 13324 amigaos*) 13325 case $host_cpu in 13326 powerpc) 13327 # see comment about AmigaOS4 .so support 13328 lt_prog_compiler_pic='-fPIC' 13329 ;; 13330 m68k) 13331 # FIXME: we need at least 68020 code to build shared libraries, but 13332 # adding the '-m68020' flag to GCC prevents building anything better, 13333 # like '-m68040'. 13334 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 13335 ;; 13336 esac 13337 ;; 13338 13339 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13340 # PIC is the default for these OSes. 13341 ;; 13342 13343 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 13344 # This hack is so that the source file can tell whether it is being 13345 # built for inclusion in a dll (and should export symbols for example). 13346 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13347 # (--disable-auto-import) libraries 13348 lt_prog_compiler_pic='-DDLL_EXPORT' 13349 case $host_os in 13350 os2*) 13351 lt_prog_compiler_static='$wl-static' 13352 ;; 13353 esac 13354 ;; 13355 13356 darwin* | rhapsody*) 13357 # PIC is the default on this platform 13358 # Common symbols not allowed in MH_DYLIB files 13359 lt_prog_compiler_pic='-fno-common' 13360 ;; 13361 13362 haiku*) 13363 # PIC is the default for Haiku. 13364 # The "-static" flag exists, but is broken. 13365 lt_prog_compiler_static= 13366 ;; 13367 13368 hpux*) 13369 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13370 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13371 # sets the default TLS model and affects inlining. 13372 case $host_cpu in 13373 hppa*64*) 13374 # +Z the default 13375 ;; 13376 *) 13377 lt_prog_compiler_pic='-fPIC' 13378 ;; 13379 esac 13380 ;; 13381 13382 interix[3-9]*) 13383 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13384 # Instead, we relocate shared libraries at runtime. 13385 ;; 13386 13387 msdosdjgpp*) 13388 # Just because we use GCC doesn't mean we suddenly get shared libraries 13389 # on systems that don't support them. 13390 lt_prog_compiler_can_build_shared=no 13391 enable_shared=no 13392 ;; 13393 13394 *nto* | *qnx*) 13395 # QNX uses GNU C++, but need to define -shared option too, otherwise 13396 # it will coredump. 13397 lt_prog_compiler_pic='-fPIC -shared' 13398 ;; 13399 13400 sysv4*MP*) 13401 if test -d /usr/nec; then 13402 lt_prog_compiler_pic=-Kconform_pic 13403 fi 13404 ;; 13405 13406 *) 13407 lt_prog_compiler_pic='-fPIC' 13408 ;; 13409 esac 13410 13411 case $cc_basename in 13412 nvcc*) # Cuda Compiler Driver 2.2 13413 lt_prog_compiler_wl='-Xlinker ' 13414 if test -n "$lt_prog_compiler_pic"; then 13415 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 13416 fi 13417 ;; 13418 esac 13419 else 13420 # PORTME Check for flag to pass linker flags through the system compiler. 13421 case $host_os in 13422 aix*) 13423 lt_prog_compiler_wl='-Wl,' 13424 if test ia64 = "$host_cpu"; then 13425 # AIX 5 now supports IA64 processor 13426 lt_prog_compiler_static='-Bstatic' 13427 else 13428 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 13429 fi 13430 ;; 13431 13432 darwin* | rhapsody*) 13433 # PIC is the default on this platform 13434 # Common symbols not allowed in MH_DYLIB files 13435 lt_prog_compiler_pic='-fno-common' 13436 case $cc_basename in 13437 nagfor*) 13438 # NAG Fortran compiler 13439 lt_prog_compiler_wl='-Wl,-Wl,,' 13440 lt_prog_compiler_pic='-PIC' 13441 lt_prog_compiler_static='-Bstatic' 13442 ;; 13443 esac 13444 ;; 13445 13446 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 13447 # This hack is so that the source file can tell whether it is being 13448 # built for inclusion in a dll (and should export symbols for example). 13449 lt_prog_compiler_pic='-DDLL_EXPORT' 13450 case $host_os in 13451 os2*) 13452 lt_prog_compiler_static='$wl-static' 13453 ;; 13454 esac 13455 ;; 13456 13457 hpux9* | hpux10* | hpux11*) 13458 lt_prog_compiler_wl='-Wl,' 13459 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13460 # not for PA HP-UX. 13461 case $host_cpu in 13462 hppa*64*|ia64*) 13463 # +Z the default 13464 ;; 13465 *) 13466 lt_prog_compiler_pic='+Z' 13467 ;; 13468 esac 13469 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13470 lt_prog_compiler_static='$wl-a ${wl}archive' 13471 ;; 13472 13473 irix5* | irix6* | nonstopux*) 13474 lt_prog_compiler_wl='-Wl,' 13475 # PIC (with -KPIC) is the default. 13476 lt_prog_compiler_static='-non_shared' 13477 ;; 13478 13479 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13480 case $cc_basename in 13481 # old Intel for x86_64, which still supported -KPIC. 13482 ecc*) 13483 lt_prog_compiler_wl='-Wl,' 13484 lt_prog_compiler_pic='-KPIC' 13485 lt_prog_compiler_static='-static' 13486 ;; 13487 *flang* | ftn | f18* | f95*) 13488 # Flang compiler. 13489 lt_prog_compiler_wl='-Wl,' 13490 lt_prog_compiler_pic='-fPIC' 13491 lt_prog_compiler_static='-static' 13492 ;; 13493 # flang / f18. f95 an alias for gfortran or flang on Debian 13494 flang* | f18* | f95*) 13495 lt_prog_compiler_wl='-Wl,' 13496 lt_prog_compiler_pic='-fPIC' 13497 lt_prog_compiler_static='-static' 13498 ;; 13499 # icc used to be incompatible with GCC. 13500 # ICC 10 doesn't accept -KPIC any more. 13501 icc* | ifort*) 13502 lt_prog_compiler_wl='-Wl,' 13503 lt_prog_compiler_pic='-fPIC' 13504 lt_prog_compiler_static='-static' 13505 ;; 13506 # Lahey Fortran 8.1. 13507 lf95*) 13508 lt_prog_compiler_wl='-Wl,' 13509 lt_prog_compiler_pic='--shared' 13510 lt_prog_compiler_static='--static' 13511 ;; 13512 nagfor*) 13513 # NAG Fortran compiler 13514 lt_prog_compiler_wl='-Wl,-Wl,,' 13515 lt_prog_compiler_pic='-PIC' 13516 lt_prog_compiler_static='-Bstatic' 13517 ;; 13518 tcc*) 13519 # Fabrice Bellard et al's Tiny C Compiler 13520 lt_prog_compiler_wl='-Wl,' 13521 lt_prog_compiler_pic='-fPIC' 13522 lt_prog_compiler_static='-static' 13523 ;; 13524 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13525 # Portland Group compilers (*not* the Pentium gcc compiler, 13526 # which looks to be a dead project) 13527 lt_prog_compiler_wl='-Wl,' 13528 lt_prog_compiler_pic='-fpic' 13529 lt_prog_compiler_static='-Bstatic' 13530 ;; 13531 ccc*) 13532 lt_prog_compiler_wl='-Wl,' 13533 # All Alpha code is PIC. 13534 lt_prog_compiler_static='-non_shared' 13535 ;; 13536 xl* | bgxl* | bgf* | mpixl*) 13537 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13538 lt_prog_compiler_wl='-Wl,' 13539 lt_prog_compiler_pic='-qpic' 13540 lt_prog_compiler_static='-qstaticlink' 13541 ;; 13542 *) 13543 case `$CC -V 2>&1 | $SED 5q` in 13544 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 13545 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13546 lt_prog_compiler_pic='-KPIC' 13547 lt_prog_compiler_static='-Bstatic' 13548 lt_prog_compiler_wl='' 13549 ;; 13550 *Sun\ F* | *Sun*Fortran*) 13551 lt_prog_compiler_pic='-KPIC' 13552 lt_prog_compiler_static='-Bstatic' 13553 lt_prog_compiler_wl='-Qoption ld ' 13554 ;; 13555 *Sun\ C*) 13556 # Sun C 5.9 13557 lt_prog_compiler_pic='-KPIC' 13558 lt_prog_compiler_static='-Bstatic' 13559 lt_prog_compiler_wl='-Wl,' 13560 ;; 13561 *Intel*\ [CF]*Compiler*) 13562 lt_prog_compiler_wl='-Wl,' 13563 lt_prog_compiler_pic='-fPIC' 13564 lt_prog_compiler_static='-static' 13565 ;; 13566 *Portland\ Group*) 13567 lt_prog_compiler_wl='-Wl,' 13568 lt_prog_compiler_pic='-fpic' 13569 lt_prog_compiler_static='-Bstatic' 13570 ;; 13571 esac 13572 ;; 13573 esac 13574 ;; 13575 13576 newsos6) 13577 lt_prog_compiler_pic='-KPIC' 13578 lt_prog_compiler_static='-Bstatic' 13579 ;; 13580 13581 *-mlibc) 13582 lt_prog_compiler_wl='-Wl,' 13583 lt_prog_compiler_pic='-fPIC' 13584 lt_prog_compiler_static='-static' 13585 ;; 13586 13587 *nto* | *qnx*) 13588 # QNX uses GNU C++, but need to define -shared option too, otherwise 13589 # it will coredump. 13590 lt_prog_compiler_pic='-fPIC -shared' 13591 ;; 13592 13593 osf3* | osf4* | osf5*) 13594 lt_prog_compiler_wl='-Wl,' 13595 # All OSF/1 code is PIC. 13596 lt_prog_compiler_static='-non_shared' 13597 ;; 13598 13599 rdos*) 13600 lt_prog_compiler_static='-non_shared' 13601 ;; 13602 13603 serenity*) 13604 ;; 13605 13606 solaris*) 13607 lt_prog_compiler_pic='-KPIC' 13608 lt_prog_compiler_static='-Bstatic' 13609 case $cc_basename in 13610 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 13611 lt_prog_compiler_wl='-Qoption ld ';; 13612 *) 13613 lt_prog_compiler_wl='-Wl,';; 13614 esac 13615 ;; 13616 13617 sunos4*) 13618 lt_prog_compiler_wl='-Qoption ld ' 13619 lt_prog_compiler_pic='-PIC' 13620 lt_prog_compiler_static='-Bstatic' 13621 ;; 13622 13623 sysv4 | sysv4.2uw2* | sysv4.3*) 13624 lt_prog_compiler_wl='-Wl,' 13625 lt_prog_compiler_pic='-KPIC' 13626 lt_prog_compiler_static='-Bstatic' 13627 ;; 13628 13629 sysv4*MP*) 13630 if test -d /usr/nec; then 13631 lt_prog_compiler_pic='-Kconform_pic' 13632 lt_prog_compiler_static='-Bstatic' 13633 fi 13634 ;; 13635 13636 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13637 lt_prog_compiler_wl='-Wl,' 13638 lt_prog_compiler_pic='-KPIC' 13639 lt_prog_compiler_static='-Bstatic' 13640 ;; 13641 13642 unicos*) 13643 lt_prog_compiler_wl='-Wl,' 13644 lt_prog_compiler_can_build_shared=no 13645 ;; 13646 13647 uts4*) 13648 lt_prog_compiler_pic='-pic' 13649 lt_prog_compiler_static='-Bstatic' 13650 ;; 13651 13652 *) 13653 lt_prog_compiler_can_build_shared=no 13654 ;; 13655 esac 13656 fi 13657 13658 case $host_os in 13659 # For platforms that do not support PIC, -DPIC is meaningless: 13660 *djgpp*) 13661 lt_prog_compiler_pic= 13662 ;; 13663 *) 13664 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13665 ;; 13666 esac 13667 13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13669 printf %s "checking for $compiler option to produce PIC... " >&6; } 13670 if test ${lt_cv_prog_compiler_pic+y} 13671 then : 13672 printf %s "(cached) " >&6 13673 else case e in #( 13674 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 13675 esac 13676 fi 13677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13678 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 13679 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13680 13681 # 13682 # Check to make sure the PIC flag actually works. 13683 # 13684 if test -n "$lt_prog_compiler_pic"; then 13685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13686 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13687 if test ${lt_cv_prog_compiler_pic_works+y} 13688 then : 13689 printf %s "(cached) " >&6 13690 else case e in #( 13691 e) lt_cv_prog_compiler_pic_works=no 13692 ac_outfile=conftest.$ac_objext 13693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13694 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 13695 # Insert the option either (1) after the last *FLAGS variable, or 13696 # (2) before a word containing "conftest.", or (3) at the end. 13697 # Note that $ac_compile itself does not contain backslashes and begins 13698 # with a dollar sign (not a hyphen), so the echo should work correctly. 13699 # The option is referenced via a variable to avoid confusing sed. 13700 lt_compile=`echo "$ac_compile" | $SED \ 13701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13703 -e 's:$: $lt_compiler_flag:'` 13704 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13705 (eval "$lt_compile" 2>conftest.err) 13706 ac_status=$? 13707 cat conftest.err >&5 13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13709 if (exit $ac_status) && test -s "$ac_outfile"; then 13710 # The compiler can only warn and ignore the option if not recognized 13711 # So say no if there are warnings other than the usual output. 13712 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13714 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13715 lt_cv_prog_compiler_pic_works=yes 13716 fi 13717 fi 13718 $RM conftest* 13719 ;; 13720 esac 13721 fi 13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13723 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 13724 13725 if test yes = "$lt_cv_prog_compiler_pic_works"; then 13726 case $lt_prog_compiler_pic in 13727 "" | " "*) ;; 13728 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13729 esac 13730 else 13731 lt_prog_compiler_pic= 13732 lt_prog_compiler_can_build_shared=no 13733 fi 13734 13735 fi 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 # 13748 # Check to make sure the static flag actually works. 13749 # 13750 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13752 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13753 if test ${lt_cv_prog_compiler_static_works+y} 13754 then : 13755 printf %s "(cached) " >&6 13756 else case e in #( 13757 e) lt_cv_prog_compiler_static_works=no 13758 save_LDFLAGS=$LDFLAGS 13759 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13760 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13762 # The linker can only warn and ignore the option if not recognized 13763 # So say no if there are warnings 13764 if test -s conftest.err; then 13765 # Append any errors to the config.log. 13766 cat conftest.err 1>&5 13767 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13769 if diff conftest.exp conftest.er2 >/dev/null; then 13770 lt_cv_prog_compiler_static_works=yes 13771 fi 13772 else 13773 lt_cv_prog_compiler_static_works=yes 13774 fi 13775 fi 13776 $RM -r conftest* 13777 LDFLAGS=$save_LDFLAGS 13778 ;; 13779 esac 13780 fi 13781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13782 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 13783 13784 if test yes = "$lt_cv_prog_compiler_static_works"; then 13785 : 13786 else 13787 lt_prog_compiler_static= 13788 fi 13789 13790 13791 13792 13793 13794 13795 13796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13797 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13798 if test ${lt_cv_prog_compiler_c_o+y} 13799 then : 13800 printf %s "(cached) " >&6 13801 else case e in #( 13802 e) lt_cv_prog_compiler_c_o=no 13803 $RM -r conftest 2>/dev/null 13804 mkdir conftest 13805 cd conftest 13806 mkdir out 13807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13808 13809 lt_compiler_flag="-o out/conftest2.$ac_objext" 13810 # Insert the option either (1) after the last *FLAGS variable, or 13811 # (2) before a word containing "conftest.", or (3) at the end. 13812 # Note that $ac_compile itself does not contain backslashes and begins 13813 # with a dollar sign (not a hyphen), so the echo should work correctly. 13814 lt_compile=`echo "$ac_compile" | $SED \ 13815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13817 -e 's:$: $lt_compiler_flag:'` 13818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13819 (eval "$lt_compile" 2>out/conftest.err) 13820 ac_status=$? 13821 cat out/conftest.err >&5 13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13823 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13824 then 13825 # The compiler can only warn and ignore the option if not recognized 13826 # So say no if there are warnings 13827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13828 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13829 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13830 lt_cv_prog_compiler_c_o=yes 13831 fi 13832 fi 13833 chmod u+w . 2>&5 13834 $RM conftest* 13835 # SGI C++ compiler will create directory out/ii_files/ for 13836 # template instantiation 13837 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13838 $RM out/* && rmdir out 13839 cd .. 13840 $RM -r conftest 13841 $RM conftest* 13842 ;; 13843 esac 13844 fi 13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13846 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 13847 13848 13849 13850 13851 13852 13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13854 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13855 if test ${lt_cv_prog_compiler_c_o+y} 13856 then : 13857 printf %s "(cached) " >&6 13858 else case e in #( 13859 e) lt_cv_prog_compiler_c_o=no 13860 $RM -r conftest 2>/dev/null 13861 mkdir conftest 13862 cd conftest 13863 mkdir out 13864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13865 13866 lt_compiler_flag="-o out/conftest2.$ac_objext" 13867 # Insert the option either (1) after the last *FLAGS variable, or 13868 # (2) before a word containing "conftest.", or (3) at the end. 13869 # Note that $ac_compile itself does not contain backslashes and begins 13870 # with a dollar sign (not a hyphen), so the echo should work correctly. 13871 lt_compile=`echo "$ac_compile" | $SED \ 13872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13874 -e 's:$: $lt_compiler_flag:'` 13875 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13876 (eval "$lt_compile" 2>out/conftest.err) 13877 ac_status=$? 13878 cat out/conftest.err >&5 13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13880 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13881 then 13882 # The compiler can only warn and ignore the option if not recognized 13883 # So say no if there are warnings 13884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13885 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13886 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13887 lt_cv_prog_compiler_c_o=yes 13888 fi 13889 fi 13890 chmod u+w . 2>&5 13891 $RM conftest* 13892 # SGI C++ compiler will create directory out/ii_files/ for 13893 # template instantiation 13894 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13895 $RM out/* && rmdir out 13896 cd .. 13897 $RM -r conftest 13898 $RM conftest* 13899 ;; 13900 esac 13901 fi 13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13903 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 13904 13905 13906 13907 13908 hard_links=nottested 13909 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 13910 # do not overwrite the value of need_locks provided by the user 13911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13912 printf %s "checking if we can lock with hard links... " >&6; } 13913 hard_links=yes 13914 $RM conftest* 13915 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13916 touch conftest.a 13917 ln conftest.a conftest.b 2>&5 || hard_links=no 13918 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13920 printf "%s\n" "$hard_links" >&6; } 13921 if test no = "$hard_links"; then 13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 13923 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 13924 need_locks=warn 13925 fi 13926 else 13927 need_locks=no 13928 fi 13929 13930 13931 13932 13933 13934 13935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13936 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13937 13938 runpath_var= 13939 allow_undefined_flag= 13940 always_export_symbols=no 13941 archive_cmds= 13942 archive_expsym_cmds= 13943 compiler_needs_object=no 13944 enable_shared_with_static_runtimes=no 13945 export_dynamic_flag_spec= 13946 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13947 hardcode_automatic=no 13948 hardcode_direct=no 13949 hardcode_direct_absolute=no 13950 hardcode_libdir_flag_spec= 13951 hardcode_libdir_separator= 13952 hardcode_minus_L=no 13953 hardcode_shlibpath_var=unsupported 13954 inherit_rpath=no 13955 link_all_deplibs=unknown 13956 module_cmds= 13957 module_expsym_cmds= 13958 old_archive_from_new_cmds= 13959 old_archive_from_expsyms_cmds= 13960 thread_safe_flag_spec= 13961 whole_archive_flag_spec= 13962 # include_expsyms should be a list of space-separated symbols to be *always* 13963 # included in the symbol list 13964 include_expsyms= 13965 # exclude_expsyms can be an extended regexp of symbols to exclude 13966 # it will be wrapped by ' (' and ')$', so one must not match beginning or 13967 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 13968 # as well as any symbol that contains 'd'. 13969 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13970 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13971 # platforms (ab)use it in PIC code, but their linkers get confused if 13972 # the symbol is explicitly referenced. Since portable code cannot 13973 # rely on this symbol name, it's probably fine to never include it in 13974 # preloaded symbol tables. 13975 # Exclude shared library initialization/finalization symbols. 13976 extract_expsyms_cmds= 13977 13978 case $host_os in 13979 cygwin* | mingw* | windows* | pw32* | cegcc*) 13980 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 13981 # When not using gcc, we currently assume that we are using 13982 # Microsoft Visual C++ or Intel C++ Compiler. 13983 if test yes != "$GCC"; then 13984 with_gnu_ld=no 13985 fi 13986 ;; 13987 interix*) 13988 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 13989 with_gnu_ld=yes 13990 ;; 13991 linux* | k*bsd*-gnu | gnu*) 13992 link_all_deplibs=no 13993 ;; 13994 esac 13995 13996 ld_shlibs=yes 13997 13998 # On some targets, GNU ld is compatible enough with the native linker 13999 # that we're better off using the native interface for both. 14000 lt_use_gnu_ld_interface=no 14001 if test yes = "$with_gnu_ld"; then 14002 case $host_os in 14003 aix*) 14004 # The AIX port of GNU ld has always aspired to compatibility 14005 # with the native linker. However, as the warning in the GNU ld 14006 # block says, versions before 2.19.5* couldn't really create working 14007 # shared libraries, regardless of the interface used. 14008 case `$LD -v 2>&1` in 14009 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14010 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14011 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14012 *) 14013 lt_use_gnu_ld_interface=yes 14014 ;; 14015 esac 14016 ;; 14017 *) 14018 lt_use_gnu_ld_interface=yes 14019 ;; 14020 esac 14021 fi 14022 14023 if test yes = "$lt_use_gnu_ld_interface"; then 14024 # If archive_cmds runs LD, not CC, wlarc should be empty 14025 wlarc='$wl' 14026 14027 # Set some defaults for GNU ld with shared library support. These 14028 # are reset later if shared libraries are not supported. Putting them 14029 # here allows them to be overridden if necessary. 14030 runpath_var=LD_RUN_PATH 14031 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14032 export_dynamic_flag_spec='$wl--export-dynamic' 14033 # ancient GNU ld didn't support --whole-archive et. al. 14034 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14035 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14036 else 14037 whole_archive_flag_spec= 14038 fi 14039 supports_anon_versioning=no 14040 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 14041 *GNU\ gold*) supports_anon_versioning=yes ;; 14042 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14043 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14044 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14045 *\ 2.11.*) ;; # other 2.11 versions 14046 *) supports_anon_versioning=yes ;; 14047 esac 14048 14049 # See if GNU ld supports shared libraries. 14050 case $host_os in 14051 aix[3-9]*) 14052 # On AIX/PPC, the GNU linker is very broken 14053 if test ia64 != "$host_cpu"; then 14054 ld_shlibs=no 14055 cat <<_LT_EOF 1>&2 14056 14057 *** Warning: the GNU linker, at least up to release 2.19, is reported 14058 *** to be unable to reliably create shared libraries on AIX. 14059 *** Therefore, libtool is disabling shared libraries support. If you 14060 *** really care for shared libraries, you may want to install binutils 14061 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14062 *** You will then need to restart the configuration process. 14063 14064 _LT_EOF 14065 fi 14066 ;; 14067 14068 amigaos*) 14069 case $host_cpu in 14070 powerpc) 14071 # see comment about AmigaOS4 .so support 14072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14073 archive_expsym_cmds='' 14074 ;; 14075 m68k) 14076 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)' 14077 hardcode_libdir_flag_spec='-L$libdir' 14078 hardcode_minus_L=yes 14079 ;; 14080 esac 14081 ;; 14082 14083 beos*) 14084 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14085 allow_undefined_flag=unsupported 14086 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 14087 # support --undefined. This deserves some investigation. FIXME 14088 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14089 else 14090 ld_shlibs=no 14091 fi 14092 ;; 14093 14094 cygwin* | mingw* | windows* | pw32* | cegcc*) 14095 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 14096 # as there is no search path for DLLs. 14097 hardcode_libdir_flag_spec='-L$libdir' 14098 export_dynamic_flag_spec='$wl--export-all-symbols' 14099 allow_undefined_flag=unsupported 14100 always_export_symbols=no 14101 enable_shared_with_static_runtimes=yes 14102 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' 14103 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14104 file_list_spec='@' 14105 14106 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14108 # If the export-symbols file already is a .def file, use it as 14109 # is; otherwise, prepend EXPORTS... 14110 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14111 cp $export_symbols $output_objdir/$soname.def; 14112 else 14113 echo EXPORTS > $output_objdir/$soname.def; 14114 cat $export_symbols >> $output_objdir/$soname.def; 14115 fi~ 14116 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14117 else 14118 ld_shlibs=no 14119 fi 14120 ;; 14121 14122 haiku*) 14123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14124 link_all_deplibs=no 14125 ;; 14126 14127 os2*) 14128 hardcode_libdir_flag_spec='-L$libdir' 14129 hardcode_minus_L=yes 14130 allow_undefined_flag=unsupported 14131 shrext_cmds=.dll 14132 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14133 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14134 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14135 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14136 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14137 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14138 emximp -o $lib $output_objdir/$libname.def' 14139 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14140 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14141 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14142 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14143 prefix_cmds="$SED"~ 14144 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14145 prefix_cmds="$prefix_cmds -e 1d"; 14146 fi~ 14147 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14148 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14149 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14150 emximp -o $lib $output_objdir/$libname.def' 14151 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14152 enable_shared_with_static_runtimes=yes 14153 file_list_spec='@' 14154 ;; 14155 14156 interix[3-9]*) 14157 hardcode_direct=no 14158 hardcode_shlibpath_var=no 14159 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14160 export_dynamic_flag_spec='$wl-E' 14161 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14162 # Instead, shared libraries are loaded at an image base (0x10000000 by 14163 # default) and relocated if they conflict, which is a slow very memory 14164 # consuming and fragmenting process. To avoid this, we pick a random, 14165 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14166 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14167 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14168 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' 14169 ;; 14170 14171 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 14172 tmp_diet=no 14173 if test linux-dietlibc = "$host_os"; then 14174 case $cc_basename in 14175 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 14176 esac 14177 fi 14178 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 14179 && test no = "$tmp_diet" 14180 then 14181 tmp_addflag=' $pic_flag' 14182 tmp_sharedflag='-shared' 14183 case $cc_basename,$host_cpu in 14184 pgcc*) # Portland Group C compiler 14185 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' 14186 tmp_addflag=' $pic_flag' 14187 ;; 14188 pgf77* | pgf90* | pgf95* | pgfortran*) 14189 # Portland Group f77 and f90 compilers 14190 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' 14191 tmp_addflag=' $pic_flag -Mnomain' ;; 14192 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14193 tmp_addflag=' -i_dynamic' ;; 14194 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14195 tmp_addflag=' -i_dynamic -nofor_main' ;; 14196 ifc* | ifort*) # Intel Fortran compiler 14197 tmp_addflag=' -nofor_main' ;; 14198 lf95*) # Lahey Fortran 8.1 14199 whole_archive_flag_spec= 14200 tmp_sharedflag='--shared' ;; 14201 nagfor*) # NAGFOR 5.3 14202 tmp_sharedflag='-Wl,-shared' ;; 14203 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 14204 tmp_sharedflag='-qmkshrobj' 14205 tmp_addflag= ;; 14206 nvcc*) # Cuda Compiler Driver 2.2 14207 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' 14208 compiler_needs_object=yes 14209 ;; 14210 esac 14211 case `$CC -V 2>&1 | $SED 5q` in 14212 *Sun\ C*) # Sun C 5.9 14213 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' 14214 compiler_needs_object=yes 14215 tmp_sharedflag='-G' ;; 14216 *Sun\ F*) # Sun Fortran 8.3 14217 tmp_sharedflag='-G' ;; 14218 esac 14219 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14220 14221 if test yes = "$supports_anon_versioning"; then 14222 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 14223 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14224 echo "local: *; };" >> $output_objdir/$libname.ver~ 14225 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14226 fi 14227 14228 case $cc_basename in 14229 tcc*) 14230 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14231 export_dynamic_flag_spec='-rdynamic' 14232 ;; 14233 xlf* | bgf* | bgxlf* | mpixlf*) 14234 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 14235 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 14236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14237 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 14238 if test yes = "$supports_anon_versioning"; then 14239 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 14240 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14241 echo "local: *; };" >> $output_objdir/$libname.ver~ 14242 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 14243 fi 14244 ;; 14245 esac 14246 else 14247 ld_shlibs=no 14248 fi 14249 ;; 14250 14251 *-mlibc) 14252 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14253 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14254 ;; 14255 14256 netbsd* | netbsdelf*-gnu) 14257 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14258 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14259 wlarc= 14260 else 14261 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14262 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14263 fi 14264 ;; 14265 14266 solaris*) 14267 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 14268 ld_shlibs=no 14269 cat <<_LT_EOF 1>&2 14270 14271 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 14272 *** create shared libraries on Solaris systems. Therefore, libtool 14273 *** is disabling shared libraries support. We urge you to upgrade GNU 14274 *** binutils to release 2.9.1 or newer. Another option is to modify 14275 *** your PATH or compiler configuration so that the native linker is 14276 *** used, and then restart. 14277 14278 _LT_EOF 14279 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14280 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14281 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14282 else 14283 ld_shlibs=no 14284 fi 14285 ;; 14286 14287 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14288 case `$LD -v 2>&1` in 14289 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14290 ld_shlibs=no 14291 cat <<_LT_EOF 1>&2 14292 14293 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 14294 *** reliably create shared libraries on SCO systems. Therefore, libtool 14295 *** is disabling shared libraries support. We urge you to upgrade GNU 14296 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14297 *** your PATH or compiler configuration so that the native linker is 14298 *** used, and then restart. 14299 14300 _LT_EOF 14301 ;; 14302 *) 14303 # For security reasons, it is highly recommended that you always 14304 # use absolute paths for naming shared libraries, and exclude the 14305 # DT_RUNPATH tag from executables and libraries. But doing so 14306 # requires that you compile everything twice, which is a pain. 14307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14308 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14311 else 14312 ld_shlibs=no 14313 fi 14314 ;; 14315 esac 14316 ;; 14317 14318 sunos4*) 14319 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14320 wlarc= 14321 hardcode_direct=yes 14322 hardcode_shlibpath_var=no 14323 ;; 14324 14325 *) 14326 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14327 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14328 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14329 else 14330 ld_shlibs=no 14331 fi 14332 ;; 14333 esac 14334 14335 if test no = "$ld_shlibs"; then 14336 runpath_var= 14337 hardcode_libdir_flag_spec= 14338 export_dynamic_flag_spec= 14339 whole_archive_flag_spec= 14340 fi 14341 else 14342 # PORTME fill in a description of your system's linker (not GNU ld) 14343 case $host_os in 14344 aix3*) 14345 allow_undefined_flag=unsupported 14346 always_export_symbols=yes 14347 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' 14348 # Note: this linker hardcodes the directories in LIBPATH if there 14349 # are no directories specified by -L. 14350 hardcode_minus_L=yes 14351 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 14352 # Neither direct hardcoding nor static linking is supported with a 14353 # broken collect2. 14354 hardcode_direct=unsupported 14355 fi 14356 ;; 14357 14358 aix[4-9]*) 14359 if test ia64 = "$host_cpu"; then 14360 # On IA64, the linker does run time linking by default, so we don't 14361 # have to do anything special. 14362 aix_use_runtimelinking=no 14363 exp_sym_flag='-Bexport' 14364 no_entry_flag= 14365 else 14366 # If we're using GNU nm, then we don't want the "-C" option. 14367 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 14368 # Without the "-l" option, or with the "-B" option, AIX nm treats 14369 # weak defined symbols like other global defined symbols, whereas 14370 # GNU nm marks them as "W". 14371 # While the 'weak' keyword is ignored in the Export File, we need 14372 # it in the Import File for the 'aix-soname' feature, so we have 14373 # to replace the "-B" option with "-P" for AIX nm. 14374 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14375 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' 14376 else 14377 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' 14378 fi 14379 aix_use_runtimelinking=no 14380 14381 # Test if we are trying to use run time linking or normal 14382 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14383 # have runtime linking enabled, and use it for executables. 14384 # For shared libraries, we enable/disable runtime linking 14385 # depending on the kind of the shared library created - 14386 # when "with_aix_soname,aix_use_runtimelinking" is: 14387 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14388 # "aix,yes" lib.so shared, rtl:yes, for executables 14389 # lib.a static archive 14390 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14391 # lib.a(lib.so.V) shared, rtl:no, for executables 14392 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14393 # lib.a(lib.so.V) shared, rtl:no 14394 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14395 # lib.a static archive 14396 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14397 for ld_flag in $LDFLAGS; do 14398 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 14399 aix_use_runtimelinking=yes 14400 break 14401 fi 14402 done 14403 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14404 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14405 # so we don't have lib.a shared libs to link our executables. 14406 # We have to force runtime linking in this case. 14407 aix_use_runtimelinking=yes 14408 LDFLAGS="$LDFLAGS -Wl,-brtl" 14409 fi 14410 ;; 14411 esac 14412 14413 exp_sym_flag='-bexport' 14414 no_entry_flag='-bnoentry' 14415 fi 14416 14417 # When large executables or shared objects are built, AIX ld can 14418 # have problems creating the table of contents. If linking a library 14419 # or program results in "error TOC overflow" add -mminimal-toc to 14420 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14421 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14422 14423 archive_cmds='' 14424 hardcode_direct=yes 14425 hardcode_direct_absolute=yes 14426 hardcode_libdir_separator=':' 14427 link_all_deplibs=yes 14428 file_list_spec='$wl-f,' 14429 case $with_aix_soname,$aix_use_runtimelinking in 14430 aix,*) ;; # traditional, no import file 14431 svr4,* | *,yes) # use import file 14432 # The Import File defines what to hardcode. 14433 hardcode_direct=no 14434 hardcode_direct_absolute=no 14435 ;; 14436 esac 14437 14438 if test yes = "$GCC"; then 14439 case $host_os in aix4.[012]|aix4.[012].*) 14440 # We only want to do this on AIX 4.2 and lower, the check 14441 # below for broken collect2 doesn't work under 4.3+ 14442 collect2name=`$CC -print-prog-name=collect2` 14443 if test -f "$collect2name" && 14444 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14445 then 14446 # We have reworked collect2 14447 : 14448 else 14449 # We have old collect2 14450 hardcode_direct=unsupported 14451 # It fails to find uninstalled libraries when the uninstalled 14452 # path is not listed in the libpath. Setting hardcode_minus_L 14453 # to unsupported forces relinking 14454 hardcode_minus_L=yes 14455 hardcode_libdir_flag_spec='-L$libdir' 14456 hardcode_libdir_separator= 14457 fi 14458 ;; 14459 esac 14460 shared_flag='-shared' 14461 if test yes = "$aix_use_runtimelinking"; then 14462 shared_flag="$shared_flag "'$wl-G' 14463 fi 14464 # Need to ensure runtime linking is disabled for the traditional 14465 # shared library, or the linker may eventually find shared libraries 14466 # /with/ Import File - we do not want to mix them. 14467 shared_flag_aix='-shared' 14468 shared_flag_svr4='-shared $wl-G' 14469 else 14470 # not using gcc 14471 if test ia64 = "$host_cpu"; then 14472 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14473 # chokes on -Wl,-G. The following line is correct: 14474 shared_flag='-G' 14475 else 14476 if test yes = "$aix_use_runtimelinking"; then 14477 shared_flag='$wl-G' 14478 else 14479 shared_flag='$wl-bM:SRE' 14480 fi 14481 shared_flag_aix='$wl-bM:SRE' 14482 shared_flag_svr4='$wl-G' 14483 fi 14484 fi 14485 14486 export_dynamic_flag_spec='$wl-bexpall' 14487 # It seems that -bexpall does not export symbols beginning with 14488 # underscore (_), so it is better to generate a list of symbols to export. 14489 always_export_symbols=yes 14490 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14491 # Warning - without using the other runtime loading flags (-brtl), 14492 # -berok will link without error, but may produce a broken library. 14493 allow_undefined_flag='-berok' 14494 # Determine the default libpath from the value encoded in an 14495 # empty executable. 14496 if test set = "${lt_cv_aix_libpath+set}"; then 14497 aix_libpath=$lt_cv_aix_libpath 14498 else 14499 if test ${lt_cv_aix_libpath_+y} 14500 then : 14501 printf %s "(cached) " >&6 14502 else case e in #( 14503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14504 /* end confdefs.h. */ 14505 14506 int 14507 main (void) 14508 { 14509 14510 ; 14511 return 0; 14512 } 14513 _ACEOF 14514 if ac_fn_c_try_link "$LINENO" 14515 then : 14516 14517 lt_aix_libpath_sed=' 14518 /Import File Strings/,/^$/ { 14519 /^0/ { 14520 s/^0 *\([^ ]*\) *$/\1/ 14521 p 14522 } 14523 }' 14524 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14525 # Check for a 64-bit object if we didn't find anything. 14526 if test -z "$lt_cv_aix_libpath_"; then 14527 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14528 fi 14529 fi 14530 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14531 conftest$ac_exeext conftest.$ac_ext 14532 if test -z "$lt_cv_aix_libpath_"; then 14533 lt_cv_aix_libpath_=/usr/lib:/lib 14534 fi 14535 ;; 14536 esac 14537 fi 14538 14539 aix_libpath=$lt_cv_aix_libpath_ 14540 fi 14541 14542 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 14543 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 14544 else 14545 if test ia64 = "$host_cpu"; then 14546 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 14547 allow_undefined_flag="-z nodefs" 14548 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" 14549 else 14550 # Determine the default libpath from the value encoded in an 14551 # empty executable. 14552 if test set = "${lt_cv_aix_libpath+set}"; then 14553 aix_libpath=$lt_cv_aix_libpath 14554 else 14555 if test ${lt_cv_aix_libpath_+y} 14556 then : 14557 printf %s "(cached) " >&6 14558 else case e in #( 14559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14560 /* end confdefs.h. */ 14561 14562 int 14563 main (void) 14564 { 14565 14566 ; 14567 return 0; 14568 } 14569 _ACEOF 14570 if ac_fn_c_try_link "$LINENO" 14571 then : 14572 14573 lt_aix_libpath_sed=' 14574 /Import File Strings/,/^$/ { 14575 /^0/ { 14576 s/^0 *\([^ ]*\) *$/\1/ 14577 p 14578 } 14579 }' 14580 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14581 # Check for a 64-bit object if we didn't find anything. 14582 if test -z "$lt_cv_aix_libpath_"; then 14583 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14584 fi 14585 fi 14586 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14587 conftest$ac_exeext conftest.$ac_ext 14588 if test -z "$lt_cv_aix_libpath_"; then 14589 lt_cv_aix_libpath_=/usr/lib:/lib 14590 fi 14591 ;; 14592 esac 14593 fi 14594 14595 aix_libpath=$lt_cv_aix_libpath_ 14596 fi 14597 14598 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 14599 # Warning - without using the other run time loading flags, 14600 # -berok will link without error, but may produce a broken library. 14601 no_undefined_flag=' $wl-bernotok' 14602 allow_undefined_flag=' $wl-berok' 14603 if test yes = "$with_gnu_ld"; then 14604 # We only use this code for GNU lds that support --whole-archive. 14605 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 14606 else 14607 # Exported symbols can be pulled into shared objects from archives 14608 whole_archive_flag_spec='$convenience' 14609 fi 14610 archive_cmds_need_lc=yes 14611 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14612 # -brtl affects multiple linker settings, -berok does not and is overridden later 14613 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14614 if test svr4 != "$with_aix_soname"; then 14615 # This is similar to how AIX traditionally builds its shared libraries. 14616 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' 14617 fi 14618 if test aix != "$with_aix_soname"; then 14619 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' 14620 else 14621 # used by -dlpreopen to get the symbols 14622 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14623 fi 14624 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 14625 fi 14626 fi 14627 ;; 14628 14629 amigaos*) 14630 case $host_cpu in 14631 powerpc) 14632 # see comment about AmigaOS4 .so support 14633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14634 archive_expsym_cmds='' 14635 ;; 14636 m68k) 14637 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)' 14638 hardcode_libdir_flag_spec='-L$libdir' 14639 hardcode_minus_L=yes 14640 ;; 14641 esac 14642 ;; 14643 14644 bsdi[45]*) 14645 export_dynamic_flag_spec=-rdynamic 14646 ;; 14647 14648 cygwin* | mingw* | windows* | pw32* | cegcc*) 14649 # When not using gcc, we currently assume that we are using 14650 # Microsoft Visual C++ or Intel C++ Compiler. 14651 # hardcode_libdir_flag_spec is actually meaningless, as there is 14652 # no search path for DLLs. 14653 case $cc_basename in 14654 cl* | icl*) 14655 # Native MSVC or ICC 14656 hardcode_libdir_flag_spec=' ' 14657 allow_undefined_flag=unsupported 14658 always_export_symbols=yes 14659 file_list_spec='@' 14660 # Tell ltmain to make .lib files, not .a files. 14661 libext=lib 14662 # Tell ltmain to make .dll files, not .so files. 14663 shrext_cmds=.dll 14664 # FIXME: Setting linknames here is a bad hack. 14665 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14666 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14667 cp "$export_symbols" "$output_objdir/$soname.def"; 14668 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14669 else 14670 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14671 fi~ 14672 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14673 linknames=' 14674 # The linker will not automatically build a static lib if we build a DLL. 14675 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 14676 enable_shared_with_static_runtimes=yes 14677 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14678 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14679 # Don't use ranlib 14680 old_postinstall_cmds='chmod 644 $oldlib' 14681 postlink_cmds='lt_outputfile="@OUTPUT@"~ 14682 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14683 case $lt_outputfile in 14684 *.exe|*.EXE) ;; 14685 *) 14686 lt_outputfile=$lt_outputfile.exe 14687 lt_tool_outputfile=$lt_tool_outputfile.exe 14688 ;; 14689 esac~ 14690 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14691 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14692 $RM "$lt_outputfile.manifest"; 14693 fi' 14694 ;; 14695 *) 14696 # Assume MSVC and ICC wrapper 14697 hardcode_libdir_flag_spec=' ' 14698 allow_undefined_flag=unsupported 14699 # Tell ltmain to make .lib files, not .a files. 14700 libext=lib 14701 # Tell ltmain to make .dll files, not .so files. 14702 shrext_cmds=.dll 14703 # FIXME: Setting linknames here is a bad hack. 14704 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 14705 # The linker will automatically build a .lib file if we build a DLL. 14706 old_archive_from_new_cmds='true' 14707 # FIXME: Should let the user specify the lib program. 14708 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 14709 enable_shared_with_static_runtimes=yes 14710 ;; 14711 esac 14712 ;; 14713 14714 darwin* | rhapsody*) 14715 14716 14717 archive_cmds_need_lc=no 14718 hardcode_direct=no 14719 hardcode_automatic=yes 14720 hardcode_shlibpath_var=unsupported 14721 if test yes = "$lt_cv_ld_force_load"; then 14722 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\"`' 14723 14724 else 14725 whole_archive_flag_spec='' 14726 fi 14727 link_all_deplibs=yes 14728 allow_undefined_flag=$_lt_dar_allow_undefined 14729 case $cc_basename in 14730 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14731 *) _lt_dar_can_shared=$GCC ;; 14732 esac 14733 if test yes = "$_lt_dar_can_shared"; then 14734 output_verbose_link_cmd=func_echo_all 14735 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 14736 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14737 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" 14738 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" 14739 14740 else 14741 ld_shlibs=no 14742 fi 14743 14744 ;; 14745 14746 dgux*) 14747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14748 hardcode_libdir_flag_spec='-L$libdir' 14749 hardcode_shlibpath_var=no 14750 ;; 14751 14752 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14753 # support. Future versions do this automatically, but an explicit c++rt0.o 14754 # does not break anything, and helps significantly (at the cost of a little 14755 # extra space). 14756 freebsd2.2*) 14757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14758 hardcode_libdir_flag_spec='-R$libdir' 14759 hardcode_direct=yes 14760 hardcode_shlibpath_var=no 14761 ;; 14762 14763 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14764 freebsd2.*) 14765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14766 hardcode_direct=yes 14767 hardcode_minus_L=yes 14768 hardcode_shlibpath_var=no 14769 ;; 14770 14771 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14772 freebsd* | dragonfly* | midnightbsd*) 14773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14774 hardcode_libdir_flag_spec='-R$libdir' 14775 hardcode_direct=yes 14776 hardcode_shlibpath_var=no 14777 ;; 14778 14779 hpux9*) 14780 if test yes = "$GCC"; then 14781 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' 14782 else 14783 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' 14784 fi 14785 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14786 hardcode_libdir_separator=: 14787 hardcode_direct=yes 14788 14789 # hardcode_minus_L: Not really in the search PATH, 14790 # but as the default location of the library. 14791 hardcode_minus_L=yes 14792 export_dynamic_flag_spec='$wl-E' 14793 ;; 14794 14795 hpux10*) 14796 if test yes,no = "$GCC,$with_gnu_ld"; then 14797 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14798 else 14799 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14800 fi 14801 if test no = "$with_gnu_ld"; then 14802 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14803 hardcode_libdir_separator=: 14804 hardcode_direct=yes 14805 hardcode_direct_absolute=yes 14806 export_dynamic_flag_spec='$wl-E' 14807 # hardcode_minus_L: Not really in the search PATH, 14808 # but as the default location of the library. 14809 hardcode_minus_L=yes 14810 fi 14811 ;; 14812 14813 hpux11*) 14814 if test yes,no = "$GCC,$with_gnu_ld"; then 14815 case $host_cpu in 14816 hppa*64*) 14817 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14818 ;; 14819 ia64*) 14820 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14821 ;; 14822 *) 14823 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14824 ;; 14825 esac 14826 else 14827 case $host_cpu in 14828 hppa*64*) 14829 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14830 ;; 14831 ia64*) 14832 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14833 ;; 14834 *) 14835 14836 # Older versions of the 11.00 compiler do not understand -b yet 14837 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 14839 printf %s "checking if $CC understands -b... " >&6; } 14840 if test ${lt_cv_prog_compiler__b+y} 14841 then : 14842 printf %s "(cached) " >&6 14843 else case e in #( 14844 e) lt_cv_prog_compiler__b=no 14845 save_LDFLAGS=$LDFLAGS 14846 LDFLAGS="$LDFLAGS -b" 14847 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14848 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14849 # The linker can only warn and ignore the option if not recognized 14850 # So say no if there are warnings 14851 if test -s conftest.err; then 14852 # Append any errors to the config.log. 14853 cat conftest.err 1>&5 14854 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14855 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14856 if diff conftest.exp conftest.er2 >/dev/null; then 14857 lt_cv_prog_compiler__b=yes 14858 fi 14859 else 14860 lt_cv_prog_compiler__b=yes 14861 fi 14862 fi 14863 $RM -r conftest* 14864 LDFLAGS=$save_LDFLAGS 14865 ;; 14866 esac 14867 fi 14868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 14869 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 14870 14871 if test yes = "$lt_cv_prog_compiler__b"; then 14872 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14873 else 14874 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14875 fi 14876 14877 ;; 14878 esac 14879 fi 14880 if test no = "$with_gnu_ld"; then 14881 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14882 hardcode_libdir_separator=: 14883 14884 case $host_cpu in 14885 hppa*64*|ia64*) 14886 hardcode_direct=no 14887 hardcode_shlibpath_var=no 14888 ;; 14889 *) 14890 hardcode_direct=yes 14891 hardcode_direct_absolute=yes 14892 export_dynamic_flag_spec='$wl-E' 14893 14894 # hardcode_minus_L: Not really in the search PATH, 14895 # but as the default location of the library. 14896 hardcode_minus_L=yes 14897 ;; 14898 esac 14899 fi 14900 ;; 14901 14902 irix5* | irix6* | nonstopux*) 14903 if test yes = "$GCC"; then 14904 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' 14905 # Try to use the -exported_symbol ld option, if it does not 14906 # work, assume that -exports_file does not work either and 14907 # implicitly export all symbols. 14908 # This should be the same for all languages, so no per-tag cache variable. 14909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 14910 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 14911 if test ${lt_cv_irix_exported_symbol+y} 14912 then : 14913 printf %s "(cached) " >&6 14914 else case e in #( 14915 e) save_LDFLAGS=$LDFLAGS 14916 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14918 /* end confdefs.h. */ 14919 int foo (void) { return 0; } 14920 _ACEOF 14921 if ac_fn_c_try_link "$LINENO" 14922 then : 14923 lt_cv_irix_exported_symbol=yes 14924 else case e in #( 14925 e) lt_cv_irix_exported_symbol=no ;; 14926 esac 14927 fi 14928 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14929 conftest$ac_exeext conftest.$ac_ext 14930 LDFLAGS=$save_LDFLAGS ;; 14931 esac 14932 fi 14933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 14934 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 14935 if test yes = "$lt_cv_irix_exported_symbol"; then 14936 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' 14937 fi 14938 link_all_deplibs=no 14939 else 14940 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' 14941 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' 14942 fi 14943 archive_cmds_need_lc='no' 14944 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14945 hardcode_libdir_separator=: 14946 inherit_rpath=yes 14947 link_all_deplibs=yes 14948 ;; 14949 14950 linux*) 14951 case $cc_basename in 14952 tcc*) 14953 # Fabrice Bellard et al's Tiny C Compiler 14954 ld_shlibs=yes 14955 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14956 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14957 ;; 14958 esac 14959 ;; 14960 14961 *-mlibc) 14962 ;; 14963 14964 netbsd* | netbsdelf*-gnu) 14965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14966 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14967 else 14968 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14969 fi 14970 hardcode_libdir_flag_spec='-R$libdir' 14971 hardcode_direct=yes 14972 hardcode_shlibpath_var=no 14973 ;; 14974 14975 newsos6) 14976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14977 hardcode_direct=yes 14978 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14979 hardcode_libdir_separator=: 14980 hardcode_shlibpath_var=no 14981 ;; 14982 14983 *nto* | *qnx*) 14984 ;; 14985 14986 openbsd*) 14987 if test -f /usr/libexec/ld.so; then 14988 hardcode_direct=yes 14989 hardcode_shlibpath_var=no 14990 hardcode_direct_absolute=yes 14991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14992 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14993 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 14994 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14995 export_dynamic_flag_spec='$wl-E' 14996 else 14997 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14998 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14999 fi 15000 else 15001 ld_shlibs=no 15002 fi 15003 ;; 15004 15005 os2*) 15006 hardcode_libdir_flag_spec='-L$libdir' 15007 hardcode_minus_L=yes 15008 allow_undefined_flag=unsupported 15009 shrext_cmds=.dll 15010 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15011 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15012 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15013 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15014 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15015 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15016 emximp -o $lib $output_objdir/$libname.def' 15017 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15018 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15019 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15020 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15021 prefix_cmds="$SED"~ 15022 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15023 prefix_cmds="$prefix_cmds -e 1d"; 15024 fi~ 15025 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15026 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15027 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15028 emximp -o $lib $output_objdir/$libname.def' 15029 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15030 enable_shared_with_static_runtimes=yes 15031 file_list_spec='@' 15032 ;; 15033 15034 osf3*) 15035 if test yes = "$GCC"; then 15036 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 15037 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' 15038 else 15039 allow_undefined_flag=' -expect_unresolved \*' 15040 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' 15041 fi 15042 archive_cmds_need_lc='no' 15043 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15044 hardcode_libdir_separator=: 15045 ;; 15046 15047 osf4* | osf5*) # as osf3* with the addition of -msym flag 15048 if test yes = "$GCC"; then 15049 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 15050 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' 15051 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15052 else 15053 allow_undefined_flag=' -expect_unresolved \*' 15054 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' 15055 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~ 15056 $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' 15057 15058 # Both c and cxx compiler support -rpath directly 15059 hardcode_libdir_flag_spec='-rpath $libdir' 15060 fi 15061 archive_cmds_need_lc='no' 15062 hardcode_libdir_separator=: 15063 ;; 15064 15065 serenity*) 15066 ;; 15067 15068 solaris*) 15069 no_undefined_flag=' -z defs' 15070 if test yes = "$GCC"; then 15071 wlarc='$wl' 15072 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 15073 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15074 $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' 15075 else 15076 case `$CC -V 2>&1` in 15077 *"Compilers 5.0"*) 15078 wlarc='' 15079 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 15080 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15081 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15082 ;; 15083 *) 15084 wlarc='$wl' 15085 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15086 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15087 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15088 ;; 15089 esac 15090 fi 15091 hardcode_libdir_flag_spec='-R$libdir' 15092 hardcode_shlibpath_var=no 15093 case $host_os in 15094 solaris2.[0-5] | solaris2.[0-5].*) ;; 15095 *) 15096 # The compiler driver will combine and reorder linker options, 15097 # but understands '-z linker_flag'. GCC discards it without '$wl', 15098 # but is careful enough not to reorder. 15099 # Supported since Solaris 2.6 (maybe 2.5.1?) 15100 if test yes = "$GCC"; then 15101 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15102 else 15103 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 15104 fi 15105 ;; 15106 esac 15107 link_all_deplibs=yes 15108 ;; 15109 15110 sunos4*) 15111 if test sequent = "$host_vendor"; then 15112 # Use $CC to link under sequent, because it throws in some extra .o 15113 # files that make .init and .fini sections work. 15114 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15115 else 15116 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15117 fi 15118 hardcode_libdir_flag_spec='-L$libdir' 15119 hardcode_direct=yes 15120 hardcode_minus_L=yes 15121 hardcode_shlibpath_var=no 15122 ;; 15123 15124 sysv4) 15125 case $host_vendor in 15126 sni) 15127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15128 hardcode_direct=yes # is this really true??? 15129 ;; 15130 siemens) 15131 ## LD is ld it makes a PLAMLIB 15132 ## CC just makes a GrossModule. 15133 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15134 reload_cmds='$CC -r -o $output$reload_objs' 15135 hardcode_direct=no 15136 ;; 15137 motorola) 15138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15139 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 15140 ;; 15141 esac 15142 runpath_var='LD_RUN_PATH' 15143 hardcode_shlibpath_var=no 15144 ;; 15145 15146 sysv4.3*) 15147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15148 hardcode_shlibpath_var=no 15149 export_dynamic_flag_spec='-Bexport' 15150 ;; 15151 15152 sysv4*MP*) 15153 if test -d /usr/nec; then 15154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15155 hardcode_shlibpath_var=no 15156 runpath_var=LD_RUN_PATH 15157 hardcode_runpath_var=yes 15158 ld_shlibs=yes 15159 fi 15160 ;; 15161 15162 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15163 no_undefined_flag='$wl-z,text' 15164 archive_cmds_need_lc=no 15165 hardcode_shlibpath_var=no 15166 runpath_var='LD_RUN_PATH' 15167 15168 if test yes = "$GCC"; then 15169 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15170 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15171 else 15172 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15173 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15174 fi 15175 ;; 15176 15177 sysv5* | sco3.2v5* | sco5v6*) 15178 # Note: We CANNOT use -z defs as we might desire, because we do not 15179 # link with -lc, and that would cause any symbols used from libc to 15180 # always be unresolved, which means just about no library would 15181 # ever link correctly. If we're not using GNU ld we use -z text 15182 # though, which does catch some bad symbols but isn't as heavy-handed 15183 # as -z defs. 15184 no_undefined_flag='$wl-z,text' 15185 allow_undefined_flag='$wl-z,nodefs' 15186 archive_cmds_need_lc=no 15187 hardcode_shlibpath_var=no 15188 hardcode_libdir_flag_spec='$wl-R,$libdir' 15189 hardcode_libdir_separator=':' 15190 link_all_deplibs=yes 15191 export_dynamic_flag_spec='$wl-Bexport' 15192 runpath_var='LD_RUN_PATH' 15193 15194 if test yes = "$GCC"; then 15195 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15196 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15197 else 15198 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15199 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15200 fi 15201 ;; 15202 15203 uts4*) 15204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15205 hardcode_libdir_flag_spec='-L$libdir' 15206 hardcode_shlibpath_var=no 15207 ;; 15208 15209 *) 15210 ld_shlibs=no 15211 ;; 15212 esac 15213 15214 if test sni = "$host_vendor"; then 15215 case $host in 15216 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15217 export_dynamic_flag_spec='$wl-Blargedynsym' 15218 ;; 15219 esac 15220 fi 15221 fi 15222 15223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 15224 printf "%s\n" "$ld_shlibs" >&6; } 15225 test no = "$ld_shlibs" && can_build_shared=no 15226 15227 with_gnu_ld=$with_gnu_ld 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 # 15244 # Do we need to explicitly link libc? 15245 # 15246 case "x$archive_cmds_need_lc" in 15247 x|xyes) 15248 # Assume -lc should be added 15249 archive_cmds_need_lc=yes 15250 15251 if test yes,yes = "$GCC,$enable_shared"; then 15252 case $archive_cmds in 15253 *'~'*) 15254 # FIXME: we may have to deal with multi-command sequences. 15255 ;; 15256 '$CC '*) 15257 # Test whether the compiler implicitly links with -lc since on some 15258 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15259 # to ld, don't add -lc before -lgcc. 15260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15261 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 15262 if test ${lt_cv_archive_cmds_need_lc+y} 15263 then : 15264 printf %s "(cached) " >&6 15265 else case e in #( 15266 e) $RM conftest* 15267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15268 15269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15270 (eval $ac_compile) 2>&5 15271 ac_status=$? 15272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15273 test $ac_status = 0; } 2>conftest.err; then 15274 soname=conftest 15275 lib=conftest 15276 libobjs=conftest.$ac_objext 15277 deplibs= 15278 wl=$lt_prog_compiler_wl 15279 pic_flag=$lt_prog_compiler_pic 15280 compiler_flags=-v 15281 linker_flags=-v 15282 verstring= 15283 output_objdir=. 15284 libname=conftest 15285 lt_save_allow_undefined_flag=$allow_undefined_flag 15286 allow_undefined_flag= 15287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15288 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15289 ac_status=$? 15290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15291 test $ac_status = 0; } 15292 then 15293 lt_cv_archive_cmds_need_lc=no 15294 else 15295 lt_cv_archive_cmds_need_lc=yes 15296 fi 15297 allow_undefined_flag=$lt_save_allow_undefined_flag 15298 else 15299 cat conftest.err 1>&5 15300 fi 15301 $RM conftest* 15302 ;; 15303 esac 15304 fi 15305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 15306 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 15307 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 15308 ;; 15309 esac 15310 fi 15311 ;; 15312 esac 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15466 printf %s "checking dynamic linker characteristics... " >&6; } 15467 15468 if test yes = "$GCC"; then 15469 case $host_os in 15470 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 15471 *) lt_awk_arg='/^libraries:/' ;; 15472 esac 15473 case $host_os in 15474 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 15475 *) lt_sed_strip_eq='s|=/|/|g' ;; 15476 esac 15477 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 15478 case $lt_search_path_spec in 15479 *\;*) 15480 # if the path contains ";" then we assume it to be the separator 15481 # otherwise default to the standard path separator (i.e. ":") - it is 15482 # assumed that no part of a normal pathname contains ";" but that should 15483 # okay in the real world where ";" in dirpaths is itself problematic. 15484 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 15485 ;; 15486 *) 15487 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 15488 ;; 15489 esac 15490 # Ok, now we have the path, separated by spaces, we can step through it 15491 # and add multilib dir if necessary... 15492 lt_tmp_lt_search_path_spec= 15493 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 15494 # ...but if some path component already ends with the multilib dir we assume 15495 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 15496 case "$lt_multi_os_dir; $lt_search_path_spec " in 15497 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 15498 lt_multi_os_dir= 15499 ;; 15500 esac 15501 for lt_sys_path in $lt_search_path_spec; do 15502 if test -d "$lt_sys_path$lt_multi_os_dir"; then 15503 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 15504 elif test -n "$lt_multi_os_dir"; then 15505 test -d "$lt_sys_path" && \ 15506 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 15507 fi 15508 done 15509 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 15510 BEGIN {RS = " "; FS = "/|\n";} { 15511 lt_foo = ""; 15512 lt_count = 0; 15513 for (lt_i = NF; lt_i > 0; lt_i--) { 15514 if ($lt_i != "" && $lt_i != ".") { 15515 if ($lt_i == "..") { 15516 lt_count++; 15517 } else { 15518 if (lt_count == 0) { 15519 lt_foo = "/" $lt_i lt_foo; 15520 } else { 15521 lt_count--; 15522 } 15523 } 15524 } 15525 } 15526 if (lt_foo != "") { lt_freq[lt_foo]++; } 15527 if (lt_freq[lt_foo] == 1) { print lt_foo; } 15528 }'` 15529 # AWK program above erroneously prepends '/' to C:/dos/paths 15530 # for these hosts. 15531 case $host_os in 15532 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 15533 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 15534 esac 15535 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 15536 else 15537 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15538 fi 15539 library_names_spec= 15540 libname_spec='lib$name' 15541 soname_spec= 15542 shrext_cmds=.so 15543 postinstall_cmds= 15544 postuninstall_cmds= 15545 finish_cmds= 15546 finish_eval= 15547 shlibpath_var= 15548 shlibpath_overrides_runpath=unknown 15549 version_type=none 15550 dynamic_linker="$host_os ld.so" 15551 sys_lib_dlsearch_path_spec="/lib /usr/lib" 15552 need_lib_prefix=unknown 15553 hardcode_into_libs=no 15554 15555 # when you set need_version to no, make sure it does not cause -set_version 15556 # flags to be left without arguments 15557 need_version=unknown 15558 15559 15560 15561 case $host_os in 15562 aix3*) 15563 version_type=linux # correct to gnu/linux during the next big refactor 15564 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15565 shlibpath_var=LIBPATH 15566 15567 # AIX 3 has no versioning support, so we append a major version to the name. 15568 soname_spec='$libname$release$shared_ext$major' 15569 ;; 15570 15571 aix[4-9]*) 15572 version_type=linux # correct to gnu/linux during the next big refactor 15573 need_lib_prefix=no 15574 need_version=no 15575 hardcode_into_libs=yes 15576 if test ia64 = "$host_cpu"; then 15577 # AIX 5 supports IA64 15578 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15579 shlibpath_var=LD_LIBRARY_PATH 15580 else 15581 # With GCC up to 2.95.x, collect2 would create an import file 15582 # for dependence libraries. The import file would start with 15583 # the line '#! .'. This would cause the generated library to 15584 # depend on '.', always an invalid library. This was fixed in 15585 # development snapshots of GCC prior to 3.0. 15586 case $host_os in 15587 aix4 | aix4.[01] | aix4.[01].*) 15588 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15589 echo ' yes ' 15590 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15591 : 15592 else 15593 can_build_shared=no 15594 fi 15595 ;; 15596 esac 15597 # Using Import Files as archive members, it is possible to support 15598 # filename-based versioning of shared library archives on AIX. While 15599 # this would work for both with and without runtime linking, it will 15600 # prevent static linking of such archives. So we do filename-based 15601 # shared library versioning with .so extension only, which is used 15602 # when both runtime linking and shared linking is enabled. 15603 # Unfortunately, runtime linking may impact performance, so we do 15604 # not want this to be the default eventually. Also, we use the 15605 # versioned .so libs for executables only if there is the -brtl 15606 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 15607 # To allow for filename-based versioning support, we need to create 15608 # libNAME.so.V as an archive file, containing: 15609 # *) an Import File, referring to the versioned filename of the 15610 # archive as well as the shared archive member, telling the 15611 # bitwidth (32 or 64) of that shared object, and providing the 15612 # list of exported symbols of that shared object, eventually 15613 # decorated with the 'weak' keyword 15614 # *) the shared object with the F_LOADONLY flag set, to really avoid 15615 # it being seen by the linker. 15616 # At run time we better use the real file rather than another symlink, 15617 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15618 15619 case $with_aix_soname,$aix_use_runtimelinking in 15620 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15621 # soname into executable. Probably we can add versioning support to 15622 # collect2, so additional links can be useful in future. 15623 aix,yes) # traditional libtool 15624 dynamic_linker='AIX unversionable lib.so' 15625 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15626 # instead of lib<name>.a to let people know that these are not 15627 # typical AIX shared libraries. 15628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15629 ;; 15630 aix,no) # traditional AIX only 15631 dynamic_linker='AIX lib.a(lib.so.V)' 15632 # We preserve .a as extension for shared libraries through AIX4.2 15633 # and later when we are not doing run time linking. 15634 library_names_spec='$libname$release.a $libname.a' 15635 soname_spec='$libname$release$shared_ext$major' 15636 ;; 15637 svr4,*) # full svr4 only 15638 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15639 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15640 # We do not specify a path in Import Files, so LIBPATH fires. 15641 shlibpath_overrides_runpath=yes 15642 ;; 15643 *,yes) # both, prefer svr4 15644 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15645 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15646 # unpreferred sharedlib libNAME.a needs extra handling 15647 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"' 15648 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"' 15649 # We do not specify a path in Import Files, so LIBPATH fires. 15650 shlibpath_overrides_runpath=yes 15651 ;; 15652 *,no) # both, prefer aix 15653 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15654 library_names_spec='$libname$release.a $libname.a' 15655 soname_spec='$libname$release$shared_ext$major' 15656 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15657 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)' 15658 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"' 15659 ;; 15660 esac 15661 shlibpath_var=LIBPATH 15662 fi 15663 ;; 15664 15665 amigaos*) 15666 case $host_cpu in 15667 powerpc) 15668 # Since July 2007 AmigaOS4 officially supports .so libraries. 15669 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15671 ;; 15672 m68k) 15673 library_names_spec='$libname.ixlibrary $libname.a' 15674 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15675 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' 15676 ;; 15677 esac 15678 ;; 15679 15680 beos*) 15681 library_names_spec='$libname$shared_ext' 15682 dynamic_linker="$host_os ld.so" 15683 shlibpath_var=LIBRARY_PATH 15684 ;; 15685 15686 bsdi[45]*) 15687 version_type=linux # correct to gnu/linux during the next big refactor 15688 need_version=no 15689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15690 soname_spec='$libname$release$shared_ext$major' 15691 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15692 shlibpath_var=LD_LIBRARY_PATH 15693 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15694 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15695 # the default ld.so.conf also contains /usr/contrib/lib and 15696 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15697 # libtool to hard-code these into programs 15698 ;; 15699 15700 cygwin* | mingw* | windows* | pw32* | cegcc*) 15701 version_type=windows 15702 shrext_cmds=.dll 15703 need_version=no 15704 need_lib_prefix=no 15705 15706 case $GCC,$cc_basename in 15707 yes,*) 15708 # gcc 15709 library_names_spec='$libname.dll.a' 15710 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15711 # If user builds GCC with multilib enabled, 15712 # it should just install on $(libdir) 15713 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 15714 if test xyes = x"$multilib"; then 15715 postinstall_cmds='base_file=`basename \$file`~ 15716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15717 dldir=$destdir/`dirname \$dlpath`~ 15718 $install_prog $dir/$dlname $destdir/$dlname~ 15719 chmod a+x $destdir/$dlname~ 15720 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15721 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 15722 fi' 15723 else 15724 postinstall_cmds='base_file=`basename \$file`~ 15725 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15726 dldir=$destdir/`dirname \$dlpath`~ 15727 test -d \$dldir || mkdir -p \$dldir~ 15728 $install_prog $dir/$dlname \$dldir/$dlname~ 15729 chmod a+x \$dldir/$dlname~ 15730 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15731 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15732 fi' 15733 fi 15734 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15735 dlpath=$dir/\$dldll~ 15736 $RM \$dlpath' 15737 shlibpath_overrides_runpath=yes 15738 15739 case $host_os in 15740 cygwin*) 15741 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15742 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15743 15744 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 15745 ;; 15746 mingw* | windows* | cegcc*) 15747 # MinGW DLLs use traditional 'lib' prefix 15748 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15749 ;; 15750 pw32*) 15751 # pw32 DLLs use 'pw' prefix rather than 'lib' 15752 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15753 ;; 15754 esac 15755 dynamic_linker='Win32 ld.exe' 15756 ;; 15757 15758 *,cl* | *,icl*) 15759 # Native MSVC or ICC 15760 libname_spec='$name' 15761 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15762 library_names_spec='$libname.dll.lib' 15763 15764 case $build_os in 15765 mingw* | windows*) 15766 sys_lib_search_path_spec= 15767 lt_save_ifs=$IFS 15768 IFS=';' 15769 for lt_path in $LIB 15770 do 15771 IFS=$lt_save_ifs 15772 # Let DOS variable expansion print the short 8.3 style file name. 15773 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15774 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15775 done 15776 IFS=$lt_save_ifs 15777 # Convert to MSYS style. 15778 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15779 ;; 15780 cygwin*) 15781 # Convert to unix form, then to dos form, then back to unix form 15782 # but this time dos style (no spaces!) so that the unix form looks 15783 # like /cygdrive/c/PROGRA~1:/cygdr... 15784 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15785 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15786 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15787 ;; 15788 *) 15789 sys_lib_search_path_spec=$LIB 15790 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15791 # It is most probably a Windows format PATH. 15792 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15793 else 15794 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15795 fi 15796 # FIXME: find the short name or the path components, as spaces are 15797 # common. (e.g. "Program Files" -> "PROGRA~1") 15798 ;; 15799 esac 15800 15801 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15802 postinstall_cmds='base_file=`basename \$file`~ 15803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15804 dldir=$destdir/`dirname \$dlpath`~ 15805 test -d \$dldir || mkdir -p \$dldir~ 15806 $install_prog $dir/$dlname \$dldir/$dlname' 15807 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15808 dlpath=$dir/\$dldll~ 15809 $RM \$dlpath' 15810 shlibpath_overrides_runpath=yes 15811 dynamic_linker='Win32 link.exe' 15812 ;; 15813 15814 *) 15815 # Assume MSVC and ICC wrapper 15816 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15817 dynamic_linker='Win32 ld.exe' 15818 ;; 15819 esac 15820 # FIXME: first we should search . and the directory the executable is in 15821 shlibpath_var=PATH 15822 ;; 15823 15824 darwin* | rhapsody*) 15825 dynamic_linker="$host_os dyld" 15826 version_type=darwin 15827 need_lib_prefix=no 15828 need_version=no 15829 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15830 soname_spec='$libname$release$major$shared_ext' 15831 shlibpath_overrides_runpath=yes 15832 shlibpath_var=DYLD_LIBRARY_PATH 15833 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15834 15835 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 15836 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15837 ;; 15838 15839 dgux*) 15840 version_type=linux # correct to gnu/linux during the next big refactor 15841 need_lib_prefix=no 15842 need_version=no 15843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15844 soname_spec='$libname$release$shared_ext$major' 15845 shlibpath_var=LD_LIBRARY_PATH 15846 ;; 15847 15848 freebsd* | dragonfly* | midnightbsd*) 15849 # DragonFly does not have aout. When/if they implement a new 15850 # versioning mechanism, adjust this. 15851 if test -x /usr/bin/objformat; then 15852 objformat=`/usr/bin/objformat` 15853 else 15854 case $host_os in 15855 freebsd[23].*) objformat=aout ;; 15856 *) objformat=elf ;; 15857 esac 15858 fi 15859 version_type=freebsd-$objformat 15860 case $version_type in 15861 freebsd-elf*) 15862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15863 soname_spec='$libname$release$shared_ext$major' 15864 need_version=no 15865 need_lib_prefix=no 15866 ;; 15867 freebsd-*) 15868 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15869 need_version=yes 15870 ;; 15871 esac 15872 case $host_cpu in 15873 powerpc64) 15874 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 15875 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15877 /* end confdefs.h. */ 15878 int test_pointer_size[sizeof (void *) - 5]; 15879 15880 _ACEOF 15881 if ac_fn_c_try_compile "$LINENO" 15882 then : 15883 shlibpath_var=LD_LIBRARY_PATH 15884 else case e in #( 15885 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 15886 esac 15887 fi 15888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15889 ;; 15890 *) 15891 shlibpath_var=LD_LIBRARY_PATH 15892 ;; 15893 esac 15894 case $host_os in 15895 freebsd2.*) 15896 shlibpath_overrides_runpath=yes 15897 ;; 15898 freebsd3.[01]* | freebsdelf3.[01]*) 15899 shlibpath_overrides_runpath=yes 15900 hardcode_into_libs=yes 15901 ;; 15902 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15903 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15904 shlibpath_overrides_runpath=no 15905 hardcode_into_libs=yes 15906 ;; 15907 *) # from 4.6 on, and DragonFly 15908 shlibpath_overrides_runpath=yes 15909 hardcode_into_libs=yes 15910 ;; 15911 esac 15912 ;; 15913 15914 haiku*) 15915 version_type=linux # correct to gnu/linux during the next big refactor 15916 need_lib_prefix=no 15917 need_version=no 15918 dynamic_linker="$host_os runtime_loader" 15919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15920 soname_spec='$libname$release$shared_ext$major' 15921 shlibpath_var=LIBRARY_PATH 15922 shlibpath_overrides_runpath=no 15923 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 15924 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 15925 hardcode_into_libs=no 15926 ;; 15927 15928 hpux9* | hpux10* | hpux11*) 15929 # Give a soname corresponding to the major version so that dld.sl refuses to 15930 # link against other versions. 15931 version_type=sunos 15932 need_lib_prefix=no 15933 need_version=no 15934 case $host_cpu in 15935 ia64*) 15936 shrext_cmds='.so' 15937 hardcode_into_libs=yes 15938 dynamic_linker="$host_os dld.so" 15939 shlibpath_var=LD_LIBRARY_PATH 15940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15942 soname_spec='$libname$release$shared_ext$major' 15943 if test 32 = "$HPUX_IA64_MODE"; then 15944 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15945 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15946 else 15947 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15948 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15949 fi 15950 ;; 15951 hppa*64*) 15952 shrext_cmds='.sl' 15953 hardcode_into_libs=yes 15954 dynamic_linker="$host_os dld.sl" 15955 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15958 soname_spec='$libname$release$shared_ext$major' 15959 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15961 ;; 15962 *) 15963 shrext_cmds='.sl' 15964 dynamic_linker="$host_os dld.sl" 15965 shlibpath_var=SHLIB_PATH 15966 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15968 soname_spec='$libname$release$shared_ext$major' 15969 ;; 15970 esac 15971 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15972 postinstall_cmds='chmod 555 $lib' 15973 # or fails outright, so override atomically: 15974 install_override_mode=555 15975 ;; 15976 15977 interix[3-9]*) 15978 version_type=linux # correct to gnu/linux during the next big refactor 15979 need_lib_prefix=no 15980 need_version=no 15981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15982 soname_spec='$libname$release$shared_ext$major' 15983 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15984 shlibpath_var=LD_LIBRARY_PATH 15985 shlibpath_overrides_runpath=no 15986 hardcode_into_libs=yes 15987 ;; 15988 15989 irix5* | irix6* | nonstopux*) 15990 case $host_os in 15991 nonstopux*) version_type=nonstopux ;; 15992 *) 15993 if test yes = "$lt_cv_prog_gnu_ld"; then 15994 version_type=linux # correct to gnu/linux during the next big refactor 15995 else 15996 version_type=irix 15997 fi ;; 15998 esac 15999 need_lib_prefix=no 16000 need_version=no 16001 soname_spec='$libname$release$shared_ext$major' 16002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16003 case $host_os in 16004 irix5* | nonstopux*) 16005 libsuff= shlibsuff= 16006 ;; 16007 *) 16008 case $LD in # libtool.m4 will add one of these switches to LD 16009 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16010 libsuff= shlibsuff= libmagic=32-bit;; 16011 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16012 libsuff=32 shlibsuff=N32 libmagic=N32;; 16013 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16014 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16015 *) libsuff= shlibsuff= libmagic=never-match;; 16016 esac 16017 ;; 16018 esac 16019 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16020 shlibpath_overrides_runpath=no 16021 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16022 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16023 hardcode_into_libs=yes 16024 ;; 16025 16026 # No shared lib support for Linux oldld, aout, or coff. 16027 linux*oldld* | linux*aout* | linux*coff*) 16028 dynamic_linker=no 16029 ;; 16030 16031 linux*android*) 16032 version_type=none # Android doesn't support versioned libraries. 16033 need_lib_prefix=no 16034 need_version=no 16035 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 16036 soname_spec='$libname$release$shared_ext' 16037 finish_cmds= 16038 shlibpath_var=LD_LIBRARY_PATH 16039 shlibpath_overrides_runpath=yes 16040 16041 # This implies no fast_install, which is unacceptable. 16042 # Some rework will be needed to allow for fast_install 16043 # before this can be enabled. 16044 hardcode_into_libs=yes 16045 16046 dynamic_linker='Android linker' 16047 # -rpath works at least for libraries that are not overridden by 16048 # libraries installed in system locations. 16049 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16050 ;; 16051 16052 # This must be glibc/ELF. 16053 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16054 version_type=linux # correct to gnu/linux during the next big refactor 16055 need_lib_prefix=no 16056 need_version=no 16057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16058 soname_spec='$libname$release$shared_ext$major' 16059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16060 shlibpath_var=LD_LIBRARY_PATH 16061 shlibpath_overrides_runpath=no 16062 16063 # Some binutils ld are patched to set DT_RUNPATH 16064 if test ${lt_cv_shlibpath_overrides_runpath+y} 16065 then : 16066 printf %s "(cached) " >&6 16067 else case e in #( 16068 e) lt_cv_shlibpath_overrides_runpath=no 16069 save_LDFLAGS=$LDFLAGS 16070 save_libdir=$libdir 16071 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16072 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16074 /* end confdefs.h. */ 16075 16076 int 16077 main (void) 16078 { 16079 16080 ; 16081 return 0; 16082 } 16083 _ACEOF 16084 if ac_fn_c_try_link "$LINENO" 16085 then : 16086 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 16087 then : 16088 lt_cv_shlibpath_overrides_runpath=yes 16089 fi 16090 fi 16091 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16092 conftest$ac_exeext conftest.$ac_ext 16093 LDFLAGS=$save_LDFLAGS 16094 libdir=$save_libdir 16095 ;; 16096 esac 16097 fi 16098 16099 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16100 16101 # This implies no fast_install, which is unacceptable. 16102 # Some rework will be needed to allow for fast_install 16103 # before this can be enabled. 16104 hardcode_into_libs=yes 16105 16106 # Ideally, we could use ldconfig to report *all* directories which are 16107 # searched for libraries, however this is still not possible. Aside from not 16108 # being certain /sbin/ldconfig is available, command 16109 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16110 # even though it is searched at run-time. Try to do the best guess by 16111 # appending ld.so.conf contents (and includes) to the search path. 16112 if test -f /etc/ld.so.conf; then 16113 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' ' '` 16114 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16115 fi 16116 16117 # We used to test for /lib/ld.so.1 and disable shared libraries on 16118 # powerpc, because MkLinux only supported shared libraries with the 16119 # GNU dynamic linker. Since this was broken with cross compilers, 16120 # most powerpc-linux boxes support dynamic linking these days and 16121 # people can always --disable-shared, the test was removed, and we 16122 # assume the GNU/Linux dynamic linker is in use. 16123 dynamic_linker='GNU/Linux ld.so' 16124 ;; 16125 16126 netbsdelf*-gnu) 16127 version_type=linux 16128 need_lib_prefix=no 16129 need_version=no 16130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16131 soname_spec='$libname$release$shared_ext$major' 16132 shlibpath_var=LD_LIBRARY_PATH 16133 shlibpath_overrides_runpath=no 16134 hardcode_into_libs=yes 16135 dynamic_linker='NetBSD ld.elf_so' 16136 ;; 16137 16138 netbsdelf*-gnu) 16139 version_type=linux 16140 need_lib_prefix=no 16141 need_version=no 16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16143 soname_spec='${libname}${release}${shared_ext}$major' 16144 shlibpath_var=LD_LIBRARY_PATH 16145 shlibpath_overrides_runpath=no 16146 hardcode_into_libs=yes 16147 dynamic_linker='NetBSD ld.elf_so' 16148 ;; 16149 16150 netbsd*) 16151 version_type=sunos 16152 need_lib_prefix=no 16153 need_version=no 16154 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16155 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16157 dynamic_linker='NetBSD (a.out) ld.so' 16158 else 16159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16160 soname_spec='$libname$release$shared_ext$major' 16161 dynamic_linker='NetBSD ld.elf_so' 16162 fi 16163 shlibpath_var=LD_LIBRARY_PATH 16164 shlibpath_overrides_runpath=yes 16165 hardcode_into_libs=yes 16166 ;; 16167 16168 *-mlibc) 16169 version_type=linux # correct to gnu/linux during the next big refactor 16170 need_lib_prefix=no 16171 need_version=no 16172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16173 soname_spec='$libname$release$shared_ext$major' 16174 dynamic_linker='mlibc ld.so' 16175 shlibpath_var=LD_LIBRARY_PATH 16176 shlibpath_overrides_runpath=no 16177 hardcode_into_libs=yes 16178 ;; 16179 16180 newsos6) 16181 version_type=linux # correct to gnu/linux during the next big refactor 16182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16183 shlibpath_var=LD_LIBRARY_PATH 16184 shlibpath_overrides_runpath=yes 16185 ;; 16186 16187 *nto* | *qnx*) 16188 version_type=qnx 16189 need_lib_prefix=no 16190 need_version=no 16191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16192 soname_spec='$libname$release$shared_ext$major' 16193 shlibpath_var=LD_LIBRARY_PATH 16194 shlibpath_overrides_runpath=no 16195 hardcode_into_libs=yes 16196 dynamic_linker='ldqnx.so' 16197 ;; 16198 16199 openbsd*) 16200 version_type=sunos 16201 sys_lib_dlsearch_path_spec=/usr/lib 16202 need_lib_prefix=no 16203 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16204 need_version=no 16205 else 16206 need_version=yes 16207 fi 16208 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16210 shlibpath_var=LD_LIBRARY_PATH 16211 shlibpath_overrides_runpath=yes 16212 ;; 16213 16214 os2*) 16215 libname_spec='$name' 16216 version_type=windows 16217 shrext_cmds=.dll 16218 need_version=no 16219 need_lib_prefix=no 16220 # OS/2 can only load a DLL with a base name of 8 characters or less. 16221 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16222 v=$($ECHO $release$versuffix | tr -d .-); 16223 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16224 $ECHO $n$v`$shared_ext' 16225 library_names_spec='${libname}_dll.$libext' 16226 dynamic_linker='OS/2 ld.exe' 16227 shlibpath_var=BEGINLIBPATH 16228 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16230 postinstall_cmds='base_file=`basename \$file`~ 16231 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16232 dldir=$destdir/`dirname \$dlpath`~ 16233 test -d \$dldir || mkdir -p \$dldir~ 16234 $install_prog $dir/$dlname \$dldir/$dlname~ 16235 chmod a+x \$dldir/$dlname~ 16236 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16237 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16238 fi' 16239 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16240 dlpath=$dir/\$dldll~ 16241 $RM \$dlpath' 16242 ;; 16243 16244 osf3* | osf4* | osf5*) 16245 version_type=osf 16246 need_lib_prefix=no 16247 need_version=no 16248 soname_spec='$libname$release$shared_ext$major' 16249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16250 shlibpath_var=LD_LIBRARY_PATH 16251 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16253 ;; 16254 16255 rdos*) 16256 dynamic_linker=no 16257 ;; 16258 16259 serenity*) 16260 version_type=linux # correct to gnu/linux during the next big refactor 16261 need_lib_prefix=no 16262 need_version=no 16263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16264 soname_spec='$libname$release$shared_ext$major' 16265 shlibpath_var=LD_LIBRARY_PATH 16266 shlibpath_overrides_runpath=no 16267 dynamic_linker='SerenityOS LibELF' 16268 ;; 16269 16270 solaris*) 16271 version_type=linux # correct to gnu/linux during the next big refactor 16272 need_lib_prefix=no 16273 need_version=no 16274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16275 soname_spec='$libname$release$shared_ext$major' 16276 shlibpath_var=LD_LIBRARY_PATH 16277 shlibpath_overrides_runpath=yes 16278 hardcode_into_libs=yes 16279 # ldd complains unless libraries are executable 16280 postinstall_cmds='chmod +x $lib' 16281 ;; 16282 16283 sunos4*) 16284 version_type=sunos 16285 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16286 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16287 shlibpath_var=LD_LIBRARY_PATH 16288 shlibpath_overrides_runpath=yes 16289 if test yes = "$with_gnu_ld"; then 16290 need_lib_prefix=no 16291 fi 16292 need_version=yes 16293 ;; 16294 16295 sysv4 | sysv4.3*) 16296 version_type=linux # correct to gnu/linux during the next big refactor 16297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16298 soname_spec='$libname$release$shared_ext$major' 16299 shlibpath_var=LD_LIBRARY_PATH 16300 case $host_vendor in 16301 sni) 16302 shlibpath_overrides_runpath=no 16303 need_lib_prefix=no 16304 runpath_var=LD_RUN_PATH 16305 ;; 16306 siemens) 16307 need_lib_prefix=no 16308 ;; 16309 motorola) 16310 need_lib_prefix=no 16311 need_version=no 16312 shlibpath_overrides_runpath=no 16313 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16314 ;; 16315 esac 16316 ;; 16317 16318 sysv4*MP*) 16319 if test -d /usr/nec; then 16320 version_type=linux # correct to gnu/linux during the next big refactor 16321 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16322 soname_spec='$libname$shared_ext.$major' 16323 shlibpath_var=LD_LIBRARY_PATH 16324 fi 16325 ;; 16326 16327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16328 version_type=sco 16329 need_lib_prefix=no 16330 need_version=no 16331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16332 soname_spec='$libname$release$shared_ext$major' 16333 shlibpath_var=LD_LIBRARY_PATH 16334 shlibpath_overrides_runpath=yes 16335 hardcode_into_libs=yes 16336 if test yes = "$with_gnu_ld"; then 16337 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16338 else 16339 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16340 case $host_os in 16341 sco3.2v5*) 16342 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16343 ;; 16344 esac 16345 fi 16346 sys_lib_dlsearch_path_spec='/usr/lib' 16347 ;; 16348 16349 tpf*) 16350 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16351 version_type=linux # correct to gnu/linux during the next big refactor 16352 need_lib_prefix=no 16353 need_version=no 16354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16355 shlibpath_var=LD_LIBRARY_PATH 16356 shlibpath_overrides_runpath=no 16357 hardcode_into_libs=yes 16358 ;; 16359 16360 uts4*) 16361 version_type=linux # correct to gnu/linux during the next big refactor 16362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16363 soname_spec='$libname$release$shared_ext$major' 16364 shlibpath_var=LD_LIBRARY_PATH 16365 ;; 16366 16367 emscripten*) 16368 version_type=none 16369 need_lib_prefix=no 16370 need_version=no 16371 library_names_spec='$libname$release$shared_ext' 16372 soname_spec='$libname$release$shared_ext' 16373 finish_cmds= 16374 dynamic_linker="Emscripten linker" 16375 lt_prog_compiler_wl= 16376 lt_prog_compiler_pic= 16377 lt_prog_compiler_static= 16378 16379 16380 if test yes = "$GCC"; then 16381 lt_prog_compiler_wl='-Wl,' 16382 lt_prog_compiler_static='-static' 16383 16384 case $host_os in 16385 aix*) 16386 # All AIX code is PIC. 16387 if test ia64 = "$host_cpu"; then 16388 # AIX 5 now supports IA64 processor 16389 lt_prog_compiler_static='-Bstatic' 16390 fi 16391 lt_prog_compiler_pic='-fPIC' 16392 ;; 16393 16394 amigaos*) 16395 case $host_cpu in 16396 powerpc) 16397 # see comment about AmigaOS4 .so support 16398 lt_prog_compiler_pic='-fPIC' 16399 ;; 16400 m68k) 16401 # FIXME: we need at least 68020 code to build shared libraries, but 16402 # adding the '-m68020' flag to GCC prevents building anything better, 16403 # like '-m68040'. 16404 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 16405 ;; 16406 esac 16407 ;; 16408 16409 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16410 # PIC is the default for these OSes. 16411 ;; 16412 16413 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 16414 # This hack is so that the source file can tell whether it is being 16415 # built for inclusion in a dll (and should export symbols for example). 16416 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16417 # (--disable-auto-import) libraries 16418 lt_prog_compiler_pic='-DDLL_EXPORT' 16419 case $host_os in 16420 os2*) 16421 lt_prog_compiler_static='$wl-static' 16422 ;; 16423 esac 16424 ;; 16425 16426 darwin* | rhapsody*) 16427 # PIC is the default on this platform 16428 # Common symbols not allowed in MH_DYLIB files 16429 lt_prog_compiler_pic='-fno-common' 16430 ;; 16431 16432 haiku*) 16433 # PIC is the default for Haiku. 16434 # The "-static" flag exists, but is broken. 16435 lt_prog_compiler_static= 16436 ;; 16437 16438 hpux*) 16439 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16440 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16441 # sets the default TLS model and affects inlining. 16442 case $host_cpu in 16443 hppa*64*) 16444 # +Z the default 16445 ;; 16446 *) 16447 lt_prog_compiler_pic='-fPIC' 16448 ;; 16449 esac 16450 ;; 16451 16452 interix[3-9]*) 16453 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16454 # Instead, we relocate shared libraries at runtime. 16455 ;; 16456 16457 msdosdjgpp*) 16458 # Just because we use GCC doesn't mean we suddenly get shared libraries 16459 # on systems that don't support them. 16460 lt_prog_compiler_can_build_shared=no 16461 enable_shared=no 16462 ;; 16463 16464 *nto* | *qnx*) 16465 # QNX uses GNU C++, but need to define -shared option too, otherwise 16466 # it will coredump. 16467 lt_prog_compiler_pic='-fPIC -shared' 16468 ;; 16469 16470 sysv4*MP*) 16471 if test -d /usr/nec; then 16472 lt_prog_compiler_pic=-Kconform_pic 16473 fi 16474 ;; 16475 16476 *) 16477 lt_prog_compiler_pic='-fPIC' 16478 ;; 16479 esac 16480 16481 case $cc_basename in 16482 nvcc*) # Cuda Compiler Driver 2.2 16483 lt_prog_compiler_wl='-Xlinker ' 16484 if test -n "$lt_prog_compiler_pic"; then 16485 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 16486 fi 16487 ;; 16488 esac 16489 else 16490 # PORTME Check for flag to pass linker flags through the system compiler. 16491 case $host_os in 16492 aix*) 16493 lt_prog_compiler_wl='-Wl,' 16494 if test ia64 = "$host_cpu"; then 16495 # AIX 5 now supports IA64 processor 16496 lt_prog_compiler_static='-Bstatic' 16497 else 16498 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 16499 fi 16500 ;; 16501 16502 darwin* | rhapsody*) 16503 # PIC is the default on this platform 16504 # Common symbols not allowed in MH_DYLIB files 16505 lt_prog_compiler_pic='-fno-common' 16506 case $cc_basename in 16507 nagfor*) 16508 # NAG Fortran compiler 16509 lt_prog_compiler_wl='-Wl,-Wl,,' 16510 lt_prog_compiler_pic='-PIC' 16511 lt_prog_compiler_static='-Bstatic' 16512 ;; 16513 esac 16514 ;; 16515 16516 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 16517 # This hack is so that the source file can tell whether it is being 16518 # built for inclusion in a dll (and should export symbols for example). 16519 lt_prog_compiler_pic='-DDLL_EXPORT' 16520 case $host_os in 16521 os2*) 16522 lt_prog_compiler_static='$wl-static' 16523 ;; 16524 esac 16525 ;; 16526 16527 hpux9* | hpux10* | hpux11*) 16528 lt_prog_compiler_wl='-Wl,' 16529 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16530 # not for PA HP-UX. 16531 case $host_cpu in 16532 hppa*64*|ia64*) 16533 # +Z the default 16534 ;; 16535 *) 16536 lt_prog_compiler_pic='+Z' 16537 ;; 16538 esac 16539 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16540 lt_prog_compiler_static='$wl-a ${wl}archive' 16541 ;; 16542 16543 irix5* | irix6* | nonstopux*) 16544 lt_prog_compiler_wl='-Wl,' 16545 # PIC (with -KPIC) is the default. 16546 lt_prog_compiler_static='-non_shared' 16547 ;; 16548 16549 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16550 case $cc_basename in 16551 # old Intel for x86_64, which still supported -KPIC. 16552 ecc*) 16553 lt_prog_compiler_wl='-Wl,' 16554 lt_prog_compiler_pic='-KPIC' 16555 lt_prog_compiler_static='-static' 16556 ;; 16557 *flang* | ftn | f18* | f95*) 16558 # Flang compiler. 16559 lt_prog_compiler_wl='-Wl,' 16560 lt_prog_compiler_pic='-fPIC' 16561 lt_prog_compiler_static='-static' 16562 ;; 16563 # flang / f18. f95 an alias for gfortran or flang on Debian 16564 flang* | f18* | f95*) 16565 lt_prog_compiler_wl='-Wl,' 16566 lt_prog_compiler_pic='-fPIC' 16567 lt_prog_compiler_static='-static' 16568 ;; 16569 # icc used to be incompatible with GCC. 16570 # ICC 10 doesn't accept -KPIC any more. 16571 icc* | ifort*) 16572 lt_prog_compiler_wl='-Wl,' 16573 lt_prog_compiler_pic='-fPIC' 16574 lt_prog_compiler_static='-static' 16575 ;; 16576 # Lahey Fortran 8.1. 16577 lf95*) 16578 lt_prog_compiler_wl='-Wl,' 16579 lt_prog_compiler_pic='--shared' 16580 lt_prog_compiler_static='--static' 16581 ;; 16582 nagfor*) 16583 # NAG Fortran compiler 16584 lt_prog_compiler_wl='-Wl,-Wl,,' 16585 lt_prog_compiler_pic='-PIC' 16586 lt_prog_compiler_static='-Bstatic' 16587 ;; 16588 tcc*) 16589 # Fabrice Bellard et al's Tiny C Compiler 16590 lt_prog_compiler_wl='-Wl,' 16591 lt_prog_compiler_pic='-fPIC' 16592 lt_prog_compiler_static='-static' 16593 ;; 16594 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16595 # Portland Group compilers (*not* the Pentium gcc compiler, 16596 # which looks to be a dead project) 16597 lt_prog_compiler_wl='-Wl,' 16598 lt_prog_compiler_pic='-fpic' 16599 lt_prog_compiler_static='-Bstatic' 16600 ;; 16601 ccc*) 16602 lt_prog_compiler_wl='-Wl,' 16603 # All Alpha code is PIC. 16604 lt_prog_compiler_static='-non_shared' 16605 ;; 16606 xl* | bgxl* | bgf* | mpixl*) 16607 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16608 lt_prog_compiler_wl='-Wl,' 16609 lt_prog_compiler_pic='-qpic' 16610 lt_prog_compiler_static='-qstaticlink' 16611 ;; 16612 *) 16613 case `$CC -V 2>&1 | $SED 5q` in 16614 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 16615 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16616 lt_prog_compiler_pic='-KPIC' 16617 lt_prog_compiler_static='-Bstatic' 16618 lt_prog_compiler_wl='' 16619 ;; 16620 *Sun\ F* | *Sun*Fortran*) 16621 lt_prog_compiler_pic='-KPIC' 16622 lt_prog_compiler_static='-Bstatic' 16623 lt_prog_compiler_wl='-Qoption ld ' 16624 ;; 16625 *Sun\ C*) 16626 # Sun C 5.9 16627 lt_prog_compiler_pic='-KPIC' 16628 lt_prog_compiler_static='-Bstatic' 16629 lt_prog_compiler_wl='-Wl,' 16630 ;; 16631 *Intel*\ [CF]*Compiler*) 16632 lt_prog_compiler_wl='-Wl,' 16633 lt_prog_compiler_pic='-fPIC' 16634 lt_prog_compiler_static='-static' 16635 ;; 16636 *Portland\ Group*) 16637 lt_prog_compiler_wl='-Wl,' 16638 lt_prog_compiler_pic='-fpic' 16639 lt_prog_compiler_static='-Bstatic' 16640 ;; 16641 esac 16642 ;; 16643 esac 16644 ;; 16645 16646 newsos6) 16647 lt_prog_compiler_pic='-KPIC' 16648 lt_prog_compiler_static='-Bstatic' 16649 ;; 16650 16651 *-mlibc) 16652 lt_prog_compiler_wl='-Wl,' 16653 lt_prog_compiler_pic='-fPIC' 16654 lt_prog_compiler_static='-static' 16655 ;; 16656 16657 *nto* | *qnx*) 16658 # QNX uses GNU C++, but need to define -shared option too, otherwise 16659 # it will coredump. 16660 lt_prog_compiler_pic='-fPIC -shared' 16661 ;; 16662 16663 osf3* | osf4* | osf5*) 16664 lt_prog_compiler_wl='-Wl,' 16665 # All OSF/1 code is PIC. 16666 lt_prog_compiler_static='-non_shared' 16667 ;; 16668 16669 rdos*) 16670 lt_prog_compiler_static='-non_shared' 16671 ;; 16672 16673 serenity*) 16674 ;; 16675 16676 solaris*) 16677 lt_prog_compiler_pic='-KPIC' 16678 lt_prog_compiler_static='-Bstatic' 16679 case $cc_basename in 16680 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 16681 lt_prog_compiler_wl='-Qoption ld ';; 16682 *) 16683 lt_prog_compiler_wl='-Wl,';; 16684 esac 16685 ;; 16686 16687 sunos4*) 16688 lt_prog_compiler_wl='-Qoption ld ' 16689 lt_prog_compiler_pic='-PIC' 16690 lt_prog_compiler_static='-Bstatic' 16691 ;; 16692 16693 sysv4 | sysv4.2uw2* | sysv4.3*) 16694 lt_prog_compiler_wl='-Wl,' 16695 lt_prog_compiler_pic='-KPIC' 16696 lt_prog_compiler_static='-Bstatic' 16697 ;; 16698 16699 sysv4*MP*) 16700 if test -d /usr/nec; then 16701 lt_prog_compiler_pic='-Kconform_pic' 16702 lt_prog_compiler_static='-Bstatic' 16703 fi 16704 ;; 16705 16706 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16707 lt_prog_compiler_wl='-Wl,' 16708 lt_prog_compiler_pic='-KPIC' 16709 lt_prog_compiler_static='-Bstatic' 16710 ;; 16711 16712 unicos*) 16713 lt_prog_compiler_wl='-Wl,' 16714 lt_prog_compiler_can_build_shared=no 16715 ;; 16716 16717 uts4*) 16718 lt_prog_compiler_pic='-pic' 16719 lt_prog_compiler_static='-Bstatic' 16720 ;; 16721 16722 *) 16723 lt_prog_compiler_can_build_shared=no 16724 ;; 16725 esac 16726 fi 16727 16728 case $host_os in 16729 # For platforms that do not support PIC, -DPIC is meaningless: 16730 *djgpp*) 16731 lt_prog_compiler_pic= 16732 ;; 16733 *) 16734 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16735 ;; 16736 esac 16737 16738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16739 printf %s "checking for $compiler option to produce PIC... " >&6; } 16740 if test ${lt_cv_prog_compiler_pic+y} 16741 then : 16742 printf %s "(cached) " >&6 16743 else case e in #( 16744 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 16745 esac 16746 fi 16747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 16748 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 16749 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 16750 16751 # 16752 # Check to make sure the PIC flag actually works. 16753 # 16754 if test -n "$lt_prog_compiler_pic"; then 16755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16756 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16757 if test ${lt_cv_prog_compiler_pic_works+y} 16758 then : 16759 printf %s "(cached) " >&6 16760 else case e in #( 16761 e) lt_cv_prog_compiler_pic_works=no 16762 ac_outfile=conftest.$ac_objext 16763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16764 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 16765 # Insert the option either (1) after the last *FLAGS variable, or 16766 # (2) before a word containing "conftest.", or (3) at the end. 16767 # Note that $ac_compile itself does not contain backslashes and begins 16768 # with a dollar sign (not a hyphen), so the echo should work correctly. 16769 # The option is referenced via a variable to avoid confusing sed. 16770 lt_compile=`echo "$ac_compile" | $SED \ 16771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16773 -e 's:$: $lt_compiler_flag:'` 16774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16775 (eval "$lt_compile" 2>conftest.err) 16776 ac_status=$? 16777 cat conftest.err >&5 16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16779 if (exit $ac_status) && test -s "$ac_outfile"; then 16780 # The compiler can only warn and ignore the option if not recognized 16781 # So say no if there are warnings other than the usual output. 16782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16785 lt_cv_prog_compiler_pic_works=yes 16786 fi 16787 fi 16788 $RM conftest* 16789 ;; 16790 esac 16791 fi 16792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 16793 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 16794 16795 if test yes = "$lt_cv_prog_compiler_pic_works"; then 16796 case $lt_prog_compiler_pic in 16797 "" | " "*) ;; 16798 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16799 esac 16800 else 16801 lt_prog_compiler_pic= 16802 lt_prog_compiler_can_build_shared=no 16803 fi 16804 16805 fi 16806 16807 16808 16809 16810 16811 # 16812 # Check to make sure the static flag actually works. 16813 # 16814 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16816 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16817 if test ${lt_cv_prog_compiler_static_works+y} 16818 then : 16819 printf %s "(cached) " >&6 16820 else case e in #( 16821 e) lt_cv_prog_compiler_static_works=no 16822 save_LDFLAGS=$LDFLAGS 16823 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16824 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16825 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16826 # The linker can only warn and ignore the option if not recognized 16827 # So say no if there are warnings 16828 if test -s conftest.err; then 16829 # Append any errors to the config.log. 16830 cat conftest.err 1>&5 16831 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16832 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16833 if diff conftest.exp conftest.er2 >/dev/null; then 16834 lt_cv_prog_compiler_static_works=yes 16835 fi 16836 else 16837 lt_cv_prog_compiler_static_works=yes 16838 fi 16839 fi 16840 $RM -r conftest* 16841 LDFLAGS=$save_LDFLAGS 16842 ;; 16843 esac 16844 fi 16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16846 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16847 16848 if test yes = "$lt_cv_prog_compiler_static_works"; then 16849 : 16850 else 16851 lt_prog_compiler_static= 16852 fi 16853 16854 16855 16856 ='-fPIC' 16857 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 16858 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' 16859 archive_cmds_need_lc=no 16860 no_undefined_flag= 16861 ;; 16862 16863 *) 16864 dynamic_linker=no 16865 ;; 16866 esac 16867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16868 printf "%s\n" "$dynamic_linker" >&6; } 16869 test no = "$dynamic_linker" && can_build_shared=no 16870 16871 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16872 if test yes = "$GCC"; then 16873 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16874 fi 16875 16876 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16877 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16878 fi 16879 16880 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16881 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16882 fi 16883 16884 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16885 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16886 16887 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16888 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16889 16890 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16891 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16990 printf %s "checking how to hardcode library paths into programs... " >&6; } 16991 hardcode_action= 16992 if test -n "$hardcode_libdir_flag_spec" || 16993 test -n "$runpath_var" || 16994 test yes = "$hardcode_automatic"; then 16995 16996 # We can hardcode non-existent directories. 16997 if test no != "$hardcode_direct" && 16998 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16999 # have to relink, otherwise we might link with an installed library 17000 # when we should be linking with a yet-to-be-installed one 17001 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 17002 test no != "$hardcode_minus_L"; then 17003 # Linking always hardcodes the temporary library directory. 17004 hardcode_action=relink 17005 else 17006 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17007 hardcode_action=immediate 17008 fi 17009 else 17010 # We cannot hardcode anything, or else we can only hardcode existing 17011 # directories. 17012 hardcode_action=unsupported 17013 fi 17014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17015 printf "%s\n" "$hardcode_action" >&6; } 17016 17017 if test relink = "$hardcode_action" || 17018 test yes = "$inherit_rpath"; then 17019 # Fast installation is not supported 17020 enable_fast_install=no 17021 elif test yes = "$shlibpath_overrides_runpath" || 17022 test no = "$enable_shared"; then 17023 # Fast installation is not necessary 17024 enable_fast_install=needless 17025 fi 17026 17027 17028 17029 17030 17031 17032 if test yes != "$enable_dlopen"; then 17033 enable_dlopen=unknown 17034 enable_dlopen_self=unknown 17035 enable_dlopen_self_static=unknown 17036 else 17037 lt_cv_dlopen=no 17038 lt_cv_dlopen_libs= 17039 17040 case $host_os in 17041 beos*) 17042 lt_cv_dlopen=load_add_on 17043 lt_cv_dlopen_libs= 17044 lt_cv_dlopen_self=yes 17045 ;; 17046 17047 mingw* | windows* | pw32* | cegcc*) 17048 lt_cv_dlopen=LoadLibrary 17049 lt_cv_dlopen_libs= 17050 ;; 17051 17052 cygwin*) 17053 lt_cv_dlopen=dlopen 17054 lt_cv_dlopen_libs= 17055 ;; 17056 17057 darwin*) 17058 # if libdl is installed we need to link against it 17059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17060 printf %s "checking for dlopen in -ldl... " >&6; } 17061 if test ${ac_cv_lib_dl_dlopen+y} 17062 then : 17063 printf %s "(cached) " >&6 17064 else case e in #( 17065 e) ac_check_lib_save_LIBS=$LIBS 17066 LIBS="-ldl $LIBS" 17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17068 /* end confdefs.h. */ 17069 17070 /* Override any GCC internal prototype to avoid an error. 17071 Use char because int might match the return type of a GCC 17072 builtin and then its argument prototype would still apply. 17073 The 'extern "C"' is for builds by C++ compilers; 17074 although this is not generally supported in C code supporting it here 17075 has little cost and some practical benefit (sr 110532). */ 17076 #ifdef __cplusplus 17077 extern "C" 17078 #endif 17079 char dlopen (void); 17080 int 17081 main (void) 17082 { 17083 return dlopen (); 17084 ; 17085 return 0; 17086 } 17087 _ACEOF 17088 if ac_fn_c_try_link "$LINENO" 17089 then : 17090 ac_cv_lib_dl_dlopen=yes 17091 else case e in #( 17092 e) ac_cv_lib_dl_dlopen=no ;; 17093 esac 17094 fi 17095 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17096 conftest$ac_exeext conftest.$ac_ext 17097 LIBS=$ac_check_lib_save_LIBS ;; 17098 esac 17099 fi 17100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17101 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 17102 if test "x$ac_cv_lib_dl_dlopen" = xyes 17103 then : 17104 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17105 else case e in #( 17106 e) 17107 lt_cv_dlopen=dyld 17108 lt_cv_dlopen_libs= 17109 lt_cv_dlopen_self=yes 17110 ;; 17111 esac 17112 fi 17113 17114 ;; 17115 17116 tpf*) 17117 # Don't try to run any link tests for TPF. We know it's impossible 17118 # because TPF is a cross-compiler, and we know how we open DSOs. 17119 lt_cv_dlopen=dlopen 17120 lt_cv_dlopen_libs= 17121 lt_cv_dlopen_self=no 17122 ;; 17123 17124 *) 17125 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17126 if test "x$ac_cv_func_shl_load" = xyes 17127 then : 17128 lt_cv_dlopen=shl_load 17129 else case e in #( 17130 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17131 printf %s "checking for shl_load in -ldld... " >&6; } 17132 if test ${ac_cv_lib_dld_shl_load+y} 17133 then : 17134 printf %s "(cached) " >&6 17135 else case e in #( 17136 e) ac_check_lib_save_LIBS=$LIBS 17137 LIBS="-ldld $LIBS" 17138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17139 /* end confdefs.h. */ 17140 17141 /* Override any GCC internal prototype to avoid an error. 17142 Use char because int might match the return type of a GCC 17143 builtin and then its argument prototype would still apply. 17144 The 'extern "C"' is for builds by C++ compilers; 17145 although this is not generally supported in C code supporting it here 17146 has little cost and some practical benefit (sr 110532). */ 17147 #ifdef __cplusplus 17148 extern "C" 17149 #endif 17150 char shl_load (void); 17151 int 17152 main (void) 17153 { 17154 return shl_load (); 17155 ; 17156 return 0; 17157 } 17158 _ACEOF 17159 if ac_fn_c_try_link "$LINENO" 17160 then : 17161 ac_cv_lib_dld_shl_load=yes 17162 else case e in #( 17163 e) ac_cv_lib_dld_shl_load=no ;; 17164 esac 17165 fi 17166 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17167 conftest$ac_exeext conftest.$ac_ext 17168 LIBS=$ac_check_lib_save_LIBS ;; 17169 esac 17170 fi 17171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17172 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 17173 if test "x$ac_cv_lib_dld_shl_load" = xyes 17174 then : 17175 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 17176 else case e in #( 17177 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17178 if test "x$ac_cv_func_dlopen" = xyes 17179 then : 17180 lt_cv_dlopen=dlopen 17181 else case e in #( 17182 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17183 printf %s "checking for dlopen in -ldl... " >&6; } 17184 if test ${ac_cv_lib_dl_dlopen+y} 17185 then : 17186 printf %s "(cached) " >&6 17187 else case e in #( 17188 e) ac_check_lib_save_LIBS=$LIBS 17189 LIBS="-ldl $LIBS" 17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17191 /* end confdefs.h. */ 17192 17193 /* Override any GCC internal prototype to avoid an error. 17194 Use char because int might match the return type of a GCC 17195 builtin and then its argument prototype would still apply. 17196 The 'extern "C"' is for builds by C++ compilers; 17197 although this is not generally supported in C code supporting it here 17198 has little cost and some practical benefit (sr 110532). */ 17199 #ifdef __cplusplus 17200 extern "C" 17201 #endif 17202 char dlopen (void); 17203 int 17204 main (void) 17205 { 17206 return dlopen (); 17207 ; 17208 return 0; 17209 } 17210 _ACEOF 17211 if ac_fn_c_try_link "$LINENO" 17212 then : 17213 ac_cv_lib_dl_dlopen=yes 17214 else case e in #( 17215 e) ac_cv_lib_dl_dlopen=no ;; 17216 esac 17217 fi 17218 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17219 conftest$ac_exeext conftest.$ac_ext 17220 LIBS=$ac_check_lib_save_LIBS ;; 17221 esac 17222 fi 17223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17224 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 17225 if test "x$ac_cv_lib_dl_dlopen" = xyes 17226 then : 17227 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17228 else case e in #( 17229 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17230 printf %s "checking for dlopen in -lsvld... " >&6; } 17231 if test ${ac_cv_lib_svld_dlopen+y} 17232 then : 17233 printf %s "(cached) " >&6 17234 else case e in #( 17235 e) ac_check_lib_save_LIBS=$LIBS 17236 LIBS="-lsvld $LIBS" 17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17238 /* end confdefs.h. */ 17239 17240 /* Override any GCC internal prototype to avoid an error. 17241 Use char because int might match the return type of a GCC 17242 builtin and then its argument prototype would still apply. 17243 The 'extern "C"' is for builds by C++ compilers; 17244 although this is not generally supported in C code supporting it here 17245 has little cost and some practical benefit (sr 110532). */ 17246 #ifdef __cplusplus 17247 extern "C" 17248 #endif 17249 char dlopen (void); 17250 int 17251 main (void) 17252 { 17253 return dlopen (); 17254 ; 17255 return 0; 17256 } 17257 _ACEOF 17258 if ac_fn_c_try_link "$LINENO" 17259 then : 17260 ac_cv_lib_svld_dlopen=yes 17261 else case e in #( 17262 e) ac_cv_lib_svld_dlopen=no ;; 17263 esac 17264 fi 17265 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17266 conftest$ac_exeext conftest.$ac_ext 17267 LIBS=$ac_check_lib_save_LIBS ;; 17268 esac 17269 fi 17270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17271 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 17272 if test "x$ac_cv_lib_svld_dlopen" = xyes 17273 then : 17274 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 17275 else case e in #( 17276 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17277 printf %s "checking for dld_link in -ldld... " >&6; } 17278 if test ${ac_cv_lib_dld_dld_link+y} 17279 then : 17280 printf %s "(cached) " >&6 17281 else case e in #( 17282 e) ac_check_lib_save_LIBS=$LIBS 17283 LIBS="-ldld $LIBS" 17284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17285 /* end confdefs.h. */ 17286 17287 /* Override any GCC internal prototype to avoid an error. 17288 Use char because int might match the return type of a GCC 17289 builtin and then its argument prototype would still apply. 17290 The 'extern "C"' is for builds by C++ compilers; 17291 although this is not generally supported in C code supporting it here 17292 has little cost and some practical benefit (sr 110532). */ 17293 #ifdef __cplusplus 17294 extern "C" 17295 #endif 17296 char dld_link (void); 17297 int 17298 main (void) 17299 { 17300 return dld_link (); 17301 ; 17302 return 0; 17303 } 17304 _ACEOF 17305 if ac_fn_c_try_link "$LINENO" 17306 then : 17307 ac_cv_lib_dld_dld_link=yes 17308 else case e in #( 17309 e) ac_cv_lib_dld_dld_link=no ;; 17310 esac 17311 fi 17312 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17313 conftest$ac_exeext conftest.$ac_ext 17314 LIBS=$ac_check_lib_save_LIBS ;; 17315 esac 17316 fi 17317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17318 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 17319 if test "x$ac_cv_lib_dld_dld_link" = xyes 17320 then : 17321 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 17322 fi 17323 17324 ;; 17325 esac 17326 fi 17327 17328 ;; 17329 esac 17330 fi 17331 17332 ;; 17333 esac 17334 fi 17335 17336 ;; 17337 esac 17338 fi 17339 17340 ;; 17341 esac 17342 fi 17343 17344 ;; 17345 esac 17346 17347 if test no = "$lt_cv_dlopen"; then 17348 enable_dlopen=no 17349 else 17350 enable_dlopen=yes 17351 fi 17352 17353 case $lt_cv_dlopen in 17354 dlopen) 17355 save_CPPFLAGS=$CPPFLAGS 17356 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17357 17358 save_LDFLAGS=$LDFLAGS 17359 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17360 17361 save_LIBS=$LIBS 17362 LIBS="$lt_cv_dlopen_libs $LIBS" 17363 17364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17365 printf %s "checking whether a program can dlopen itself... " >&6; } 17366 if test ${lt_cv_dlopen_self+y} 17367 then : 17368 printf %s "(cached) " >&6 17369 else case e in #( 17370 e) if test yes = "$cross_compiling"; then : 17371 lt_cv_dlopen_self=cross 17372 else 17373 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17374 lt_status=$lt_dlunknown 17375 cat > conftest.$ac_ext <<_LT_EOF 17376 #line $LINENO "configure" 17377 #include "confdefs.h" 17378 17379 #if HAVE_DLFCN_H 17380 #include <dlfcn.h> 17381 #endif 17382 17383 #include <stdio.h> 17384 17385 #ifdef RTLD_GLOBAL 17386 # define LT_DLGLOBAL RTLD_GLOBAL 17387 #else 17388 # ifdef DL_GLOBAL 17389 # define LT_DLGLOBAL DL_GLOBAL 17390 # else 17391 # define LT_DLGLOBAL 0 17392 # endif 17393 #endif 17394 17395 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17396 find out it does not work in some platform. */ 17397 #ifndef LT_DLLAZY_OR_NOW 17398 # ifdef RTLD_LAZY 17399 # define LT_DLLAZY_OR_NOW RTLD_LAZY 17400 # else 17401 # ifdef DL_LAZY 17402 # define LT_DLLAZY_OR_NOW DL_LAZY 17403 # else 17404 # ifdef RTLD_NOW 17405 # define LT_DLLAZY_OR_NOW RTLD_NOW 17406 # else 17407 # ifdef DL_NOW 17408 # define LT_DLLAZY_OR_NOW DL_NOW 17409 # else 17410 # define LT_DLLAZY_OR_NOW 0 17411 # endif 17412 # endif 17413 # endif 17414 # endif 17415 #endif 17416 17417 /* When -fvisibility=hidden is used, assume the code has been annotated 17418 correspondingly for the symbols needed. */ 17419 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17420 int fnord (void) __attribute__((visibility("default"))); 17421 #endif 17422 17423 int fnord (void) { return 42; } 17424 int main (void) 17425 { 17426 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17427 int status = $lt_dlunknown; 17428 17429 if (self) 17430 { 17431 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17432 else 17433 { 17434 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17435 else puts (dlerror ()); 17436 } 17437 /* dlclose (self); */ 17438 } 17439 else 17440 puts (dlerror ()); 17441 17442 return status; 17443 } 17444 _LT_EOF 17445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17446 (eval $ac_link) 2>&5 17447 ac_status=$? 17448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17449 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 17450 (./conftest; exit; ) >&5 2>/dev/null 17451 lt_status=$? 17452 case x$lt_status in 17453 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17454 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17455 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17456 esac 17457 else : 17458 # compilation failed 17459 lt_cv_dlopen_self=no 17460 fi 17461 fi 17462 rm -fr conftest* 17463 17464 ;; 17465 esac 17466 fi 17467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17468 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 17469 17470 if test yes = "$lt_cv_dlopen_self"; then 17471 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17473 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 17474 if test ${lt_cv_dlopen_self_static+y} 17475 then : 17476 printf %s "(cached) " >&6 17477 else case e in #( 17478 e) if test yes = "$cross_compiling"; then : 17479 lt_cv_dlopen_self_static=cross 17480 else 17481 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17482 lt_status=$lt_dlunknown 17483 cat > conftest.$ac_ext <<_LT_EOF 17484 #line $LINENO "configure" 17485 #include "confdefs.h" 17486 17487 #if HAVE_DLFCN_H 17488 #include <dlfcn.h> 17489 #endif 17490 17491 #include <stdio.h> 17492 17493 #ifdef RTLD_GLOBAL 17494 # define LT_DLGLOBAL RTLD_GLOBAL 17495 #else 17496 # ifdef DL_GLOBAL 17497 # define LT_DLGLOBAL DL_GLOBAL 17498 # else 17499 # define LT_DLGLOBAL 0 17500 # endif 17501 #endif 17502 17503 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17504 find out it does not work in some platform. */ 17505 #ifndef LT_DLLAZY_OR_NOW 17506 # ifdef RTLD_LAZY 17507 # define LT_DLLAZY_OR_NOW RTLD_LAZY 17508 # else 17509 # ifdef DL_LAZY 17510 # define LT_DLLAZY_OR_NOW DL_LAZY 17511 # else 17512 # ifdef RTLD_NOW 17513 # define LT_DLLAZY_OR_NOW RTLD_NOW 17514 # else 17515 # ifdef DL_NOW 17516 # define LT_DLLAZY_OR_NOW DL_NOW 17517 # else 17518 # define LT_DLLAZY_OR_NOW 0 17519 # endif 17520 # endif 17521 # endif 17522 # endif 17523 #endif 17524 17525 /* When -fvisibility=hidden is used, assume the code has been annotated 17526 correspondingly for the symbols needed. */ 17527 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17528 int fnord (void) __attribute__((visibility("default"))); 17529 #endif 17530 17531 int fnord (void) { return 42; } 17532 int main (void) 17533 { 17534 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17535 int status = $lt_dlunknown; 17536 17537 if (self) 17538 { 17539 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17540 else 17541 { 17542 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17543 else puts (dlerror ()); 17544 } 17545 /* dlclose (self); */ 17546 } 17547 else 17548 puts (dlerror ()); 17549 17550 return status; 17551 } 17552 _LT_EOF 17553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17554 (eval $ac_link) 2>&5 17555 ac_status=$? 17556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17557 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 17558 (./conftest; exit; ) >&5 2>/dev/null 17559 lt_status=$? 17560 case x$lt_status in 17561 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17562 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17563 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17564 esac 17565 else : 17566 # compilation failed 17567 lt_cv_dlopen_self_static=no 17568 fi 17569 fi 17570 rm -fr conftest* 17571 17572 ;; 17573 esac 17574 fi 17575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17576 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 17577 fi 17578 17579 CPPFLAGS=$save_CPPFLAGS 17580 LDFLAGS=$save_LDFLAGS 17581 LIBS=$save_LIBS 17582 ;; 17583 esac 17584 17585 case $lt_cv_dlopen_self in 17586 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17587 *) enable_dlopen_self=unknown ;; 17588 esac 17589 17590 case $lt_cv_dlopen_self_static in 17591 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17592 *) enable_dlopen_self_static=unknown ;; 17593 esac 17594 fi 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 striplib= 17613 old_striplib= 17614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17615 printf %s "checking whether stripping libraries is possible... " >&6; } 17616 if test -z "$STRIP"; then 17617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17618 printf "%s\n" "no" >&6; } 17619 else 17620 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17621 old_striplib="$STRIP --strip-debug" 17622 striplib="$STRIP --strip-unneeded" 17623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17624 printf "%s\n" "yes" >&6; } 17625 else 17626 case $host_os in 17627 darwin*) 17628 # FIXME - insert some real tests, host_os isn't really good enough 17629 striplib="$STRIP -x" 17630 old_striplib="$STRIP -S" 17631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17632 printf "%s\n" "yes" >&6; } 17633 ;; 17634 freebsd*) 17635 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 17636 old_striplib="$STRIP --strip-debug" 17637 striplib="$STRIP --strip-unneeded" 17638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17639 printf "%s\n" "yes" >&6; } 17640 else 17641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17642 printf "%s\n" "no" >&6; } 17643 fi 17644 ;; 17645 *) 17646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17647 printf "%s\n" "no" >&6; } 17648 ;; 17649 esac 17650 fi 17651 fi 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 # Report what library types will actually be built 17665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17666 printf %s "checking if libtool supports shared libraries... " >&6; } 17667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17668 printf "%s\n" "$can_build_shared" >&6; } 17669 17670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17671 printf %s "checking whether to build shared libraries... " >&6; } 17672 test no = "$can_build_shared" && enable_shared=no 17673 17674 # On AIX, shared libraries and static libraries use the same namespace, and 17675 # are all built from PIC. 17676 case $host_os in 17677 aix3*) 17678 test yes = "$enable_shared" && enable_static=no 17679 if test -n "$RANLIB"; then 17680 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17681 postinstall_cmds='$RANLIB $lib' 17682 fi 17683 ;; 17684 17685 aix[4-9]*) 17686 if test ia64 != "$host_cpu"; then 17687 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 17688 yes,aix,yes) ;; # shared object as lib.so file only 17689 yes,svr4,*) ;; # shared object as lib.so archive member only 17690 yes,*) enable_static=no ;; # shared object in lib.a archive as well 17691 esac 17692 fi 17693 ;; 17694 esac 17695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17696 printf "%s\n" "$enable_shared" >&6; } 17697 17698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17699 printf %s "checking whether to build static libraries... " >&6; } 17700 # Make sure either enable_shared or enable_static is yes. 17701 test yes = "$enable_shared" || enable_static=yes 17702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17703 printf "%s\n" "$enable_static" >&6; } 17704 17705 17706 17707 17708 fi 17709 ac_ext=c 17710 ac_cpp='$CPP $CPPFLAGS' 17711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17713 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17714 17715 CC=$lt_save_CC 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 ac_config_commands="$ac_config_commands libtool" 17732 17733 17734 17735 17736 # Only expand once: 17737 17738 17739 17740 DLOPEN_LIBS="$lt_cv_dlopen_libs" 17741 17742 17743 if test "$enable_static" != "no" && test "$enable_developer" != "yes" 17744 then : 17745 as_fn_error $? "Static linking is not supported as it disables dlopen() and certain security features (e.g. RELRO, ASLR)" "$LINENO" 5 17746 fi 17747 17748 17749 # 17750 # Set the default CFLAGS, CPPFLAGS, and LDFLAGS 17751 # 17752 STD_CFLAGS="-Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow" 17753 17754 # These should be always errors 17755 STD_CFLAGS="$STD_CFLAGS -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -Werror=vla" 17756 17757 # Disable false positives generated by GCC 11+ and ASAN 17758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17759 /* end confdefs.h. */ 17760 17761 int 17762 main (void) 17763 { 17764 #if __GNUC__ >= 11 && defined(__SANITIZE_ADDRESS__) 17765 #error Address Sanitizer enabled 17766 #endif 17767 17768 ; 17769 return 0; 17770 } 17771 _ACEOF 17772 if ac_fn_c_try_compile "$LINENO" 17773 then : 17774 17775 else case e in #( 17776 e) STD_CFLAGS="$STD_CFLAGS -Wno-stringop-overread" ;; 17777 esac 17778 fi 17779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17780 17781 # Silence GCC 11.1+ note about the changed alignment, see GL #4841 17782 case $target_cpu in #( 17783 i?86) : 17784 STD_CFLAGS="$STD_CFLAGS -Wno-psabi" ;; #( 17785 *) : 17786 ;; 17787 esac 17788 17789 STD_LDFLAGS="" 17790 17791 # ... except in test code 17792 TEST_CFLAGS="-Wno-vla" 17793 17794 # Fortify the sources by default (we undefine the macro first in case 17795 # the compiler has a different built-in setting) 17796 STD_CPPFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" 17797 17798 # 17799 # Additional compiler settings. 17800 # 17801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5 17802 printf %s "checking whether C compiler accepts -fno-strict-aliasing... " >&6; } 17803 if test ${ax_cv_check_cflags___fno_strict_aliasing+y} 17804 then : 17805 printf %s "(cached) " >&6 17806 else case e in #( 17807 e) 17808 ax_check_save_flags=$CFLAGS 17809 CFLAGS="$CFLAGS -fno-strict-aliasing" 17810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17811 /* end confdefs.h. */ 17812 17813 int 17814 main (void) 17815 { 17816 17817 ; 17818 return 0; 17819 } 17820 _ACEOF 17821 if ac_fn_c_try_compile "$LINENO" 17822 then : 17823 ax_cv_check_cflags___fno_strict_aliasing=yes 17824 else case e in #( 17825 e) ax_cv_check_cflags___fno_strict_aliasing=no ;; 17826 esac 17827 fi 17828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17829 CFLAGS=$ax_check_save_flags ;; 17830 esac 17831 fi 17832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5 17833 printf "%s\n" "$ax_cv_check_cflags___fno_strict_aliasing" >&6; } 17834 if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes 17835 then : 17836 STD_CFLAGS="$STD_CFLAGS -fno-strict-aliasing" 17837 else case e in #( 17838 e) : ;; 17839 esac 17840 fi 17841 17842 # Clang only issues a warning so use -Werror to force a error. 17843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks" >&5 17844 printf %s "checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks... " >&6; } 17845 if test ${ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks+y} 17846 then : 17847 printf %s "(cached) " >&6 17848 else case e in #( 17849 e) 17850 ax_check_save_flags=$CFLAGS 17851 CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks" 17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17853 /* end confdefs.h. */ 17854 17855 int 17856 main (void) 17857 { 17858 17859 ; 17860 return 0; 17861 } 17862 _ACEOF 17863 if ac_fn_c_try_compile "$LINENO" 17864 then : 17865 ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=yes 17866 else case e in #( 17867 e) ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=no ;; 17868 esac 17869 fi 17870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17871 CFLAGS=$ax_check_save_flags ;; 17872 esac 17873 fi 17874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&5 17875 printf "%s\n" "$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&6; } 17876 if test "x$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" = xyes 17877 then : 17878 STD_CFLAGS="$STD_CFLAGS -fno-delete-null-pointer-checks" 17879 else case e in #( 17880 e) : ;; 17881 esac 17882 fi 17883 17884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fdiagnostics-show-option" >&5 17885 printf %s "checking whether C compiler accepts -fdiagnostics-show-option... " >&6; } 17886 if test ${ax_cv_check_cflags___fdiagnostics_show_option+y} 17887 then : 17888 printf %s "(cached) " >&6 17889 else case e in #( 17890 e) 17891 ax_check_save_flags=$CFLAGS 17892 CFLAGS="$CFLAGS -fdiagnostics-show-option" 17893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17894 /* end confdefs.h. */ 17895 17896 int 17897 main (void) 17898 { 17899 17900 ; 17901 return 0; 17902 } 17903 _ACEOF 17904 if ac_fn_c_try_compile "$LINENO" 17905 then : 17906 ax_cv_check_cflags___fdiagnostics_show_option=yes 17907 else case e in #( 17908 e) ax_cv_check_cflags___fdiagnostics_show_option=no ;; 17909 esac 17910 fi 17911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17912 CFLAGS=$ax_check_save_flags ;; 17913 esac 17914 fi 17915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fdiagnostics_show_option" >&5 17916 printf "%s\n" "$ax_cv_check_cflags___fdiagnostics_show_option" >&6; } 17917 if test "x$ax_cv_check_cflags___fdiagnostics_show_option" = xyes 17918 then : 17919 STD_CFLAGS="$STD_CFLAGS -fdiagnostics-show-option" 17920 else case e in #( 17921 e) : ;; 17922 esac 17923 fi 17924 17925 17926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--export-dynamic" >&5 17927 printf %s "checking whether the linker accepts -Wl,--export-dynamic... " >&6; } 17928 if test ${ax_cv_check_ldflags___Wl___export_dynamic+y} 17929 then : 17930 printf %s "(cached) " >&6 17931 else case e in #( 17932 e) 17933 ax_check_save_flags=$LDFLAGS 17934 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 17935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17936 /* end confdefs.h. */ 17937 17938 int 17939 main (void) 17940 { 17941 17942 ; 17943 return 0; 17944 } 17945 _ACEOF 17946 if ac_fn_c_try_link "$LINENO" 17947 then : 17948 ax_cv_check_ldflags___Wl___export_dynamic=yes 17949 else case e in #( 17950 e) ax_cv_check_ldflags___Wl___export_dynamic=no ;; 17951 esac 17952 fi 17953 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17954 conftest$ac_exeext conftest.$ac_ext 17955 LDFLAGS=$ax_check_save_flags ;; 17956 esac 17957 fi 17958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___export_dynamic" >&5 17959 printf "%s\n" "$ax_cv_check_ldflags___Wl___export_dynamic" >&6; } 17960 if test "x$ax_cv_check_ldflags___Wl___export_dynamic" = xyes 17961 then : 17962 STD_LDFLAGS="$STD_LDFLAGS -Wl,--export-dynamic" 17963 else case e in #( 17964 e) : ;; 17965 esac 17966 fi 17967 17968 17969 host_macos=no 17970 case $host in #( 17971 *-darwin*) : 17972 host_macos=yes ;; #( 17973 *) : 17974 ;; 17975 esac 17976 if test "$host_macos" = "yes"; then 17977 HOST_MACOS_TRUE= 17978 HOST_MACOS_FALSE='#' 17979 else 17980 HOST_MACOS_TRUE='#' 17981 HOST_MACOS_FALSE= 17982 fi 17983 17984 17985 # 17986 # Change defaults for developers if not explicity set. 17987 # Needs to be before the option is tested. 17988 # 17989 # [pairwise: --enable-developer, --disable-developer] 17990 # Check whether --enable-developer was given. 17991 if test ${enable_developer+y} 17992 then : 17993 enableval=$enable_developer; 17994 fi 17995 17996 17997 if test "$enable_developer" = "yes" 17998 then : 17999 DEVELOPER_MODE=yes 18000 STD_CPPFLAGS="$STD_CPPFLAGS -DDEVELOPER_MODE=1 -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" 18001 test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes 18002 test "${enable_querytrace+set}" = set || enable_querytrace=yes 18003 test "${with_cmocka+set}" = set || with_cmocka=yes 18004 test "${with_zlib+set}" = set || with_zlib=yes 18005 test "${enable_warn_error+set}" = set || enable_warn_error=yes 18006 18007 fi 18008 18009 18010 18011 18012 18013 18014 18015 # [pairwise: --enable-warn-error, --disable-warn-error] 18016 # Check whether --enable-warn_error was given. 18017 if test ${enable_warn_error+y} 18018 then : 18019 enableval=$enable_warn_error; 18020 else case e in #( 18021 e) enable_warn_error=no ;; 18022 esac 18023 fi 18024 18025 if test "$enable_warn_error" = "yes" 18026 then : 18027 STD_CFLAGS="$STD_CFLAGS -Werror" 18028 fi 18029 18030 # 18031 # Use pkg-config 18032 # 18033 18034 18035 18036 18037 18038 18039 18040 18041 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18042 if test -n "$ac_tool_prefix"; then 18043 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18044 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18046 printf %s "checking for $ac_word... " >&6; } 18047 if test ${ac_cv_path_PKG_CONFIG+y} 18048 then : 18049 printf %s "(cached) " >&6 18050 else case e in #( 18051 e) case $PKG_CONFIG in 18052 [\\/]* | ?:[\\/]*) 18053 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18054 ;; 18055 *) 18056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18057 for as_dir in $PATH 18058 do 18059 IFS=$as_save_IFS 18060 case $as_dir in #((( 18061 '') as_dir=./ ;; 18062 */) ;; 18063 *) as_dir=$as_dir/ ;; 18064 esac 18065 for ac_exec_ext in '' $ac_executable_extensions; do 18066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18067 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 18068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18069 break 2 18070 fi 18071 done 18072 done 18073 IFS=$as_save_IFS 18074 18075 ;; 18076 esac ;; 18077 esac 18078 fi 18079 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18080 if test -n "$PKG_CONFIG"; then 18081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18082 printf "%s\n" "$PKG_CONFIG" >&6; } 18083 else 18084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18085 printf "%s\n" "no" >&6; } 18086 fi 18087 18088 18089 fi 18090 if test -z "$ac_cv_path_PKG_CONFIG"; then 18091 ac_pt_PKG_CONFIG=$PKG_CONFIG 18092 # Extract the first word of "pkg-config", so it can be a program name with args. 18093 set dummy pkg-config; ac_word=$2 18094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18095 printf %s "checking for $ac_word... " >&6; } 18096 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 18097 then : 18098 printf %s "(cached) " >&6 18099 else case e in #( 18100 e) case $ac_pt_PKG_CONFIG in 18101 [\\/]* | ?:[\\/]*) 18102 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18103 ;; 18104 *) 18105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18106 for as_dir in $PATH 18107 do 18108 IFS=$as_save_IFS 18109 case $as_dir in #((( 18110 '') as_dir=./ ;; 18111 */) ;; 18112 *) as_dir=$as_dir/ ;; 18113 esac 18114 for ac_exec_ext in '' $ac_executable_extensions; do 18115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18116 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 18117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18118 break 2 18119 fi 18120 done 18121 done 18122 IFS=$as_save_IFS 18123 18124 ;; 18125 esac ;; 18126 esac 18127 fi 18128 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18129 if test -n "$ac_pt_PKG_CONFIG"; then 18130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 18131 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 18132 else 18133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18134 printf "%s\n" "no" >&6; } 18135 fi 18136 18137 if test "x$ac_pt_PKG_CONFIG" = x; then 18138 PKG_CONFIG="" 18139 else 18140 case $cross_compiling:$ac_tool_warned in 18141 yes:) 18142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18143 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18144 ac_tool_warned=yes ;; 18145 esac 18146 PKG_CONFIG=$ac_pt_PKG_CONFIG 18147 fi 18148 else 18149 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18150 fi 18151 18152 fi 18153 if test -n "$PKG_CONFIG"; then 18154 _pkg_min_version=0.9.0 18155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 18156 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 18157 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18159 printf "%s\n" "yes" >&6; } 18160 else 18161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18162 printf "%s\n" "no" >&6; } 18163 PKG_CONFIG="" 18164 fi 18165 fi 18166 if test -z "$PKG_CONFIG" 18167 then : 18168 as_fn_error $? "The pkg-config script could not be found or is too old." "$LINENO" 5 18169 fi 18170 18171 # 18172 # Pick Userspace-RCU flavor (developer only option) 18173 # 18174 # [pairwise: skip] 18175 18176 # Check whether --with-liburcu was given. 18177 if test ${with_liburcu+y} 18178 then : 18179 withval=$with_liburcu; 18180 else case e in #( 18181 e) with_liburcu=membarrier ;; 18182 esac 18183 fi 18184 18185 18186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking liburcu flavor" >&5 18187 printf %s "checking liburcu flavor... " >&6; } 18188 case $with_liburcu in #( 18189 membarrier) : 18190 RCU_FLAVOR="liburcu" 18191 18192 printf "%s\n" "#define RCU_MEMBARRIER 1" >>confdefs.h 18193 ;; #( 18194 qsbr) : 18195 RCU_FLAVOR="liburcu-qsbr" 18196 18197 printf "%s\n" "#define RCU_QSBR 1" >>confdefs.h 18198 ;; #( 18199 mb) : 18200 RCU_FLAVOR="liburcu-mb" 18201 18202 printf "%s\n" "#define RCU_MB 1" >>confdefs.h 18203 ;; #( 18204 bp) : 18205 RCU_FLAVOR="liburcu-bp" 18206 18207 printf "%s\n" "#define RCU_BP 1" >>confdefs.h 18208 ;; #( 18209 *) : 18210 as_fn_error $? "Invalid Userspace-RCU flavor picked" "$LINENO" 5 ;; 18211 esac 18212 18213 if test "$with_liburcu" != "membarrier" && test "$enable_developer" != "yes" 18214 then : 18215 as_fn_error $? "Changing Userspace-RCU variant is allowed only in developer mode" "$LINENO" 5 18216 fi 18217 18218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RCU_FLAVOR" >&5 18219 printf "%s\n" "$RCU_FLAVOR" >&6; } 18220 18221 # 18222 # liburcu << v0.13.0 didn't add -lurcu-common and some toolchains would 18223 # not add it automatically - we need to add it explicitly in such case. 18224 # 18225 18226 pkg_failed=no 18227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0" >&5 18228 printf %s "checking for $RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0... " >&6; } 18229 18230 if test -n "$LIBURCU_CFLAGS"; then 18231 pkg_cv_LIBURCU_CFLAGS="$LIBURCU_CFLAGS" 18232 elif test -n "$PKG_CONFIG"; then 18233 if test -n "$PKG_CONFIG" && \ 18234 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0\""; } >&5 18235 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0") 2>&5 18236 ac_status=$? 18237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18238 test $ac_status = 0; }; then 18239 pkg_cv_LIBURCU_CFLAGS=`$PKG_CONFIG --cflags "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0" 2>/dev/null` 18240 test "x$?" != "x0" && pkg_failed=yes 18241 else 18242 pkg_failed=yes 18243 fi 18244 else 18245 pkg_failed=untried 18246 fi 18247 if test -n "$LIBURCU_LIBS"; then 18248 pkg_cv_LIBURCU_LIBS="$LIBURCU_LIBS" 18249 elif test -n "$PKG_CONFIG"; then 18250 if test -n "$PKG_CONFIG" && \ 18251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0\""; } >&5 18252 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0") 2>&5 18253 ac_status=$? 18254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18255 test $ac_status = 0; }; then 18256 pkg_cv_LIBURCU_LIBS=`$PKG_CONFIG --libs "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0" 2>/dev/null` 18257 test "x$?" != "x0" && pkg_failed=yes 18258 else 18259 pkg_failed=yes 18260 fi 18261 else 18262 pkg_failed=untried 18263 fi 18264 18265 18266 18267 if test $pkg_failed = yes; then 18268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18269 printf "%s\n" "no" >&6; } 18270 18271 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18272 _pkg_short_errors_supported=yes 18273 else 18274 _pkg_short_errors_supported=no 18275 fi 18276 if test $_pkg_short_errors_supported = yes; then 18277 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0" 2>&1` 18278 else 18279 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$RCU_FLAVOR >= 0.13.0 liburcu-cds >= 0.13.0" 2>&1` 18280 fi 18281 # Put the nasty error message in config.log where it belongs 18282 echo "$LIBURCU_PKG_ERRORS" >&5 18283 18284 18285 pkg_failed=no 18286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" >&5 18287 printf %s "checking for $RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0... " >&6; } 18288 18289 if test -n "$LIBURCU_CFLAGS"; then 18290 pkg_cv_LIBURCU_CFLAGS="$LIBURCU_CFLAGS" 18291 elif test -n "$PKG_CONFIG"; then 18292 if test -n "$PKG_CONFIG" && \ 18293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0\""; } >&5 18294 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0") 2>&5 18295 ac_status=$? 18296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18297 test $ac_status = 0; }; then 18298 pkg_cv_LIBURCU_CFLAGS=`$PKG_CONFIG --cflags "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>/dev/null` 18299 test "x$?" != "x0" && pkg_failed=yes 18300 else 18301 pkg_failed=yes 18302 fi 18303 else 18304 pkg_failed=untried 18305 fi 18306 if test -n "$LIBURCU_LIBS"; then 18307 pkg_cv_LIBURCU_LIBS="$LIBURCU_LIBS" 18308 elif test -n "$PKG_CONFIG"; then 18309 if test -n "$PKG_CONFIG" && \ 18310 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0\""; } >&5 18311 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0") 2>&5 18312 ac_status=$? 18313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18314 test $ac_status = 0; }; then 18315 pkg_cv_LIBURCU_LIBS=`$PKG_CONFIG --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>/dev/null` 18316 test "x$?" != "x0" && pkg_failed=yes 18317 else 18318 pkg_failed=yes 18319 fi 18320 else 18321 pkg_failed=untried 18322 fi 18323 18324 18325 18326 if test $pkg_failed = yes; then 18327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18328 printf "%s\n" "no" >&6; } 18329 18330 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18331 _pkg_short_errors_supported=yes 18332 else 18333 _pkg_short_errors_supported=no 18334 fi 18335 if test $_pkg_short_errors_supported = yes; then 18336 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>&1` 18337 else 18338 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>&1` 18339 fi 18340 # Put the nasty error message in config.log where it belongs 18341 echo "$LIBURCU_PKG_ERRORS" >&5 18342 18343 as_fn_error $? "Package requirements ($RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0) were not met: 18344 18345 $LIBURCU_PKG_ERRORS 18346 18347 Consider adjusting the PKG_CONFIG_PATH environment variable if you 18348 installed software in a non-standard prefix. 18349 18350 Alternatively, you may set the environment variables LIBURCU_CFLAGS 18351 and LIBURCU_LIBS to avoid the need to call pkg-config. 18352 See the pkg-config man page for more details." "$LINENO" 5 18353 elif test $pkg_failed = untried; then 18354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18355 printf "%s\n" "no" >&6; } 18356 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 18357 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 18358 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18359 is in your PATH or set the PKG_CONFIG environment variable to the full 18360 path to pkg-config. 18361 18362 Alternatively, you may set the environment variables LIBURCU_CFLAGS 18363 and LIBURCU_LIBS to avoid the need to call pkg-config. 18364 See the pkg-config man page for more details. 18365 18366 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18367 See 'config.log' for more details" "$LINENO" 5; } 18368 else 18369 LIBURCU_CFLAGS=$pkg_cv_LIBURCU_CFLAGS 18370 LIBURCU_LIBS=$pkg_cv_LIBURCU_LIBS 18371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18372 printf "%s\n" "yes" >&6; } 18373 LIBURCU_LIBS="$LIBURCU_LIBS -lurcu-common" 18374 fi 18375 elif test $pkg_failed = untried; then 18376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18377 printf "%s\n" "no" >&6; } 18378 18379 pkg_failed=no 18380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" >&5 18381 printf %s "checking for $RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0... " >&6; } 18382 18383 if test -n "$LIBURCU_CFLAGS"; then 18384 pkg_cv_LIBURCU_CFLAGS="$LIBURCU_CFLAGS" 18385 elif test -n "$PKG_CONFIG"; then 18386 if test -n "$PKG_CONFIG" && \ 18387 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0\""; } >&5 18388 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0") 2>&5 18389 ac_status=$? 18390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18391 test $ac_status = 0; }; then 18392 pkg_cv_LIBURCU_CFLAGS=`$PKG_CONFIG --cflags "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>/dev/null` 18393 test "x$?" != "x0" && pkg_failed=yes 18394 else 18395 pkg_failed=yes 18396 fi 18397 else 18398 pkg_failed=untried 18399 fi 18400 if test -n "$LIBURCU_LIBS"; then 18401 pkg_cv_LIBURCU_LIBS="$LIBURCU_LIBS" 18402 elif test -n "$PKG_CONFIG"; then 18403 if test -n "$PKG_CONFIG" && \ 18404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0\""; } >&5 18405 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0") 2>&5 18406 ac_status=$? 18407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18408 test $ac_status = 0; }; then 18409 pkg_cv_LIBURCU_LIBS=`$PKG_CONFIG --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>/dev/null` 18410 test "x$?" != "x0" && pkg_failed=yes 18411 else 18412 pkg_failed=yes 18413 fi 18414 else 18415 pkg_failed=untried 18416 fi 18417 18418 18419 18420 if test $pkg_failed = yes; then 18421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18422 printf "%s\n" "no" >&6; } 18423 18424 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18425 _pkg_short_errors_supported=yes 18426 else 18427 _pkg_short_errors_supported=no 18428 fi 18429 if test $_pkg_short_errors_supported = yes; then 18430 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>&1` 18431 else 18432 LIBURCU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0" 2>&1` 18433 fi 18434 # Put the nasty error message in config.log where it belongs 18435 echo "$LIBURCU_PKG_ERRORS" >&5 18436 18437 as_fn_error $? "Package requirements ($RCU_FLAVOR >= 0.10.0 liburcu-cds >= 0.10.0) were not met: 18438 18439 $LIBURCU_PKG_ERRORS 18440 18441 Consider adjusting the PKG_CONFIG_PATH environment variable if you 18442 installed software in a non-standard prefix. 18443 18444 Alternatively, you may set the environment variables LIBURCU_CFLAGS 18445 and LIBURCU_LIBS to avoid the need to call pkg-config. 18446 See the pkg-config man page for more details." "$LINENO" 5 18447 elif test $pkg_failed = untried; then 18448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18449 printf "%s\n" "no" >&6; } 18450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 18451 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 18452 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18453 is in your PATH or set the PKG_CONFIG environment variable to the full 18454 path to pkg-config. 18455 18456 Alternatively, you may set the environment variables LIBURCU_CFLAGS 18457 and LIBURCU_LIBS to avoid the need to call pkg-config. 18458 See the pkg-config man page for more details. 18459 18460 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18461 See 'config.log' for more details" "$LINENO" 5; } 18462 else 18463 LIBURCU_CFLAGS=$pkg_cv_LIBURCU_CFLAGS 18464 LIBURCU_LIBS=$pkg_cv_LIBURCU_LIBS 18465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18466 printf "%s\n" "yes" >&6; } 18467 LIBURCU_LIBS="$LIBURCU_LIBS -lurcu-common" 18468 fi 18469 else 18470 LIBURCU_CFLAGS=$pkg_cv_LIBURCU_CFLAGS 18471 LIBURCU_LIBS=$pkg_cv_LIBURCU_LIBS 18472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18473 printf "%s\n" "yes" >&6; } 18474 18475 fi 18476 18477 18478 printf "%s\n" "#define RCU_FLAVOR \"$RCU_FLAVOR\"" >>confdefs.h 18479 18480 18481 18482 if test -n "$RCU_VERSION"; then 18483 pkg_cv_RCU_VERSION="$RCU_VERSION" 18484 elif test -n "$PKG_CONFIG"; then 18485 if test -n "$PKG_CONFIG" && \ 18486 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$RCU_FLAVOR\""; } >&5 18487 ($PKG_CONFIG --exists --print-errors "$RCU_FLAVOR") 2>&5 18488 ac_status=$? 18489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18490 test $ac_status = 0; }; then 18491 pkg_cv_RCU_VERSION=`$PKG_CONFIG --modversion "$RCU_FLAVOR" 2>/dev/null` 18492 test "x$?" != "x0" && pkg_failed=yes 18493 else 18494 pkg_failed=yes 18495 fi 18496 else 18497 pkg_failed=untried 18498 fi 18499 RCU_VERSION=$pkg_cv_RCU_VERSION 18500 18501 if test "x$RCU_VERSION" = x"" 18502 then : 18503 18504 fi 18505 18506 printf "%s\n" "#define RCU_VERSION \"$RCU_VERSION\"" >>confdefs.h 18507 18508 18509 CFLAGS="$CFLAGS $LIBURCU_CFLAGS" 18510 LIBS="$LIBS $LIBURCU_LIBS" 18511 18512 # 18513 # Userspace-RCU inlining doesn't work for rcu_deference() with some combination 18514 # of C compiler and library version. 18515 # 18516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can inline small liburcu functions" >&5 18517 printf %s "checking whether we can inline small liburcu functions... " >&6; } 18518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18519 /* end confdefs.h. */ 18520 #define URCU_INLINE_SMALL_FUNCTIONS 1 18521 #include <urcu.h> 18522 int 18523 main (void) 18524 { 18525 struct opaque *a; struct opaque *b = rcu_dereference(a); 18526 ; 18527 return 0; 18528 } 18529 _ACEOF 18530 if ac_fn_c_try_compile "$LINENO" 18531 then : 18532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18533 printf "%s\n" "yes" >&6; } 18534 18535 printf "%s\n" "#define URCU_INLINE_SMALL_FUNCTIONS 1" >>confdefs.h 18536 18537 else case e in #( 18538 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18539 printf "%s\n" "no" >&6; } ;; 18540 esac 18541 fi 18542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18543 18544 # Fuzzing is not included in pairwise testing as fuzzing tools are 18545 # not present in the relevant Docker image. 18546 # 18547 # [pairwise: skip] 18548 # Check whether --enable-fuzzing was given. 18549 if test ${enable_fuzzing+y} 18550 then : 18551 enableval=$enable_fuzzing; 18552 else case e in #( 18553 e) enable_fuzzing=no ;; 18554 esac 18555 fi 18556 18557 18558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5 18559 printf %s "checking whether to enable fuzzing mode... " >&6; } 18560 case $enable_fuzzing in #( 18561 no) : 18562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18563 printf "%s\n" "no" >&6; } ;; #( 18564 afl) : 18565 18566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5 18567 printf "%s\n" "using AFL" >&6; } 18568 18569 printf "%s\n" "#define ENABLE_AFL 1" >>confdefs.h 18570 18571 STD_CFLAGS="$STD_CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1" 18572 FUZZ_LOG_COMPILER="afl.sh" ;; #( 18573 libfuzzer) : 18574 18575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5 18576 printf "%s\n" "using libFuzzer" >&6; } 18577 STD_CFLAGS="$STD_CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer-no-link,address,undefined" 18578 LDFLAGS="$LDFLAGS -fsanitize=address,undefined" 18579 FUZZ_LDFLAGS="-fsanitize=fuzzer,address,undefined" 18580 FUZZ_LOG_COMPILER="libfuzzer.sh" ;; #( 18581 ossfuzz) : 18582 18583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using OSS-Fuzz" >&5 18584 printf "%s\n" "using OSS-Fuzz" >&6; } 18585 FUZZ_LDFLAGS="$LIB_FUZZING_ENGINE" ;; #( 18586 *) : 18587 as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #( 18588 *) : 18589 ;; 18590 esac 18591 if test -n "$FUZZ_LOG_COMPILER"; then 18592 HAVE_FUZZ_LOG_COMPILER_TRUE= 18593 HAVE_FUZZ_LOG_COMPILER_FALSE='#' 18594 else 18595 HAVE_FUZZ_LOG_COMPILER_TRUE='#' 18596 HAVE_FUZZ_LOG_COMPILER_FALSE= 18597 fi 18598 18599 18600 18601 18602 if test "$enable_fuzzing" = "afl" 18603 then : 18604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5 18605 printf %s "checking \"for AFL enabled compiler\"... " >&6; } 18606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18607 /* end confdefs.h. */ 18608 18609 int 18610 main (void) 18611 { 18612 #ifndef __AFL_COMPILER 18613 #error AFL compiler required 18614 #endif 18615 18616 ; 18617 return 0; 18618 } 18619 _ACEOF 18620 if ac_fn_c_try_compile "$LINENO" 18621 then : 18622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18623 printf "%s\n" "yes" >&6; } 18624 else case e in #( 18625 e) as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5 ;; 18626 esac 18627 fi 18628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18629 18630 fi 18631 18632 # 18633 # Perl is optional; it is used only by some of the system test scripts. 18634 # 18635 for ac_prog in perl5 perl 18636 do 18637 # Extract the first word of "$ac_prog", so it can be a program name with args. 18638 set dummy $ac_prog; ac_word=$2 18639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18640 printf %s "checking for $ac_word... " >&6; } 18641 if test ${ac_cv_path_PERL+y} 18642 then : 18643 printf %s "(cached) " >&6 18644 else case e in #( 18645 e) case $PERL in 18646 [\\/]* | ?:[\\/]*) 18647 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 18648 ;; 18649 *) 18650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18651 for as_dir in $PATH 18652 do 18653 IFS=$as_save_IFS 18654 case $as_dir in #((( 18655 '') as_dir=./ ;; 18656 */) ;; 18657 *) as_dir=$as_dir/ ;; 18658 esac 18659 for ac_exec_ext in '' $ac_executable_extensions; do 18660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18661 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 18662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18663 break 2 18664 fi 18665 done 18666 done 18667 IFS=$as_save_IFS 18668 18669 ;; 18670 esac ;; 18671 esac 18672 fi 18673 PERL=$ac_cv_path_PERL 18674 if test -n "$PERL"; then 18675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 18676 printf "%s\n" "$PERL" >&6; } 18677 else 18678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18679 printf "%s\n" "no" >&6; } 18680 fi 18681 18682 18683 test -n "$PERL" && break 18684 done 18685 18686 18687 if test -n "$PERL"; then 18688 HAVE_PERL_TRUE= 18689 HAVE_PERL_FALSE='#' 18690 else 18691 HAVE_PERL_TRUE='#' 18692 HAVE_PERL_FALSE= 18693 fi 18694 18695 18696 # 18697 # Python is optional, it is used only by some of the system test scripts. 18698 # 18699 18700 18701 18702 18703 18704 18705 if test -n "$PYTHON"; then 18706 # If the user set $PYTHON, use it and don't search something else. 18707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.10" >&5 18708 printf %s "checking whether $PYTHON version is >= 3.10... " >&6; } 18709 prog="import sys 18710 # split strings by '.' and convert to numeric. Append some zeros 18711 # because we need at least 4 digits for the hex conversion. 18712 # map returns an iterator in Python 3.0 and a list in 2.x 18713 minver = list(map(int, '3.10'.split('.'))) + [0, 0, 0] 18714 minverhex = 0 18715 # xrange is not present in Python 3.0 and range returns an iterator 18716 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 18717 sys.exit(sys.hexversion < minverhex)" 18718 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 18719 ($PYTHON -c "$prog") >&5 2>&5 18720 ac_status=$? 18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18722 (exit $ac_status); } 18723 then : 18724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18725 printf "%s\n" "yes" >&6; } 18726 else case e in #( 18727 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18728 printf "%s\n" "no" >&6; } 18729 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;; 18730 esac 18731 fi 18732 am_display_PYTHON=$PYTHON 18733 else 18734 # Otherwise, try each interpreter until we find one that satisfies 18735 # VERSION. 18736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.10" >&5 18737 printf %s "checking for a Python interpreter with version >= 3.10... " >&6; } 18738 if test ${am_cv_pathless_PYTHON+y} 18739 then : 18740 printf %s "(cached) " >&6 18741 else case e in #( 18742 e) 18743 for am_cv_pathless_PYTHON in python python3 python3.20 python3.19 python3.18 python3.17 python3.16 python3.15 python3.14 python3.13 python3.12 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 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 18744 test "$am_cv_pathless_PYTHON" = none && break 18745 prog="import sys 18746 # split strings by '.' and convert to numeric. Append some zeros 18747 # because we need at least 4 digits for the hex conversion. 18748 # map returns an iterator in Python 3.0 and a list in 2.x 18749 minver = list(map(int, '3.10'.split('.'))) + [0, 0, 0] 18750 minverhex = 0 18751 # xrange is not present in Python 3.0 and range returns an iterator 18752 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 18753 sys.exit(sys.hexversion < minverhex)" 18754 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 18755 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 18756 ac_status=$? 18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18758 (exit $ac_status); } 18759 then : 18760 break 18761 fi 18762 done ;; 18763 esac 18764 fi 18765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 18766 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } 18767 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 18768 if test "$am_cv_pathless_PYTHON" = none; then 18769 PYTHON=: 18770 else 18771 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 18772 set dummy $am_cv_pathless_PYTHON; ac_word=$2 18773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18774 printf %s "checking for $ac_word... " >&6; } 18775 if test ${ac_cv_path_PYTHON+y} 18776 then : 18777 printf %s "(cached) " >&6 18778 else case e in #( 18779 e) case $PYTHON in 18780 [\\/]* | ?:[\\/]*) 18781 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 18782 ;; 18783 *) 18784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18785 for as_dir in $PATH 18786 do 18787 IFS=$as_save_IFS 18788 case $as_dir in #((( 18789 '') as_dir=./ ;; 18790 */) ;; 18791 *) as_dir=$as_dir/ ;; 18792 esac 18793 for ac_exec_ext in '' $ac_executable_extensions; do 18794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18795 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 18796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18797 break 2 18798 fi 18799 done 18800 done 18801 IFS=$as_save_IFS 18802 18803 ;; 18804 esac ;; 18805 esac 18806 fi 18807 PYTHON=$ac_cv_path_PYTHON 18808 if test -n "$PYTHON"; then 18809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 18810 printf "%s\n" "$PYTHON" >&6; } 18811 else 18812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18813 printf "%s\n" "no" >&6; } 18814 fi 18815 18816 18817 fi 18818 am_display_PYTHON=$am_cv_pathless_PYTHON 18819 fi 18820 18821 18822 if test "$PYTHON" = :; then 18823 : 18824 else 18825 18826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 18827 printf %s "checking for $am_display_PYTHON version... " >&6; } 18828 if test ${am_cv_python_version+y} 18829 then : 18830 printf %s "(cached) " >&6 18831 else case e in #( 18832 e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;; 18833 esac 18834 fi 18835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 18836 printf "%s\n" "$am_cv_python_version" >&6; } 18837 PYTHON_VERSION=$am_cv_python_version 18838 18839 18840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 18841 printf %s "checking for $am_display_PYTHON platform... " >&6; } 18842 if test ${am_cv_python_platform+y} 18843 then : 18844 printf %s "(cached) " >&6 18845 else case e in #( 18846 e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;; 18847 esac 18848 fi 18849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 18850 printf "%s\n" "$am_cv_python_platform" >&6; } 18851 PYTHON_PLATFORM=$am_cv_python_platform 18852 18853 18854 if test "x$prefix" = xNONE; then 18855 am__usable_prefix=$ac_default_prefix 18856 else 18857 am__usable_prefix=$prefix 18858 fi 18859 18860 # Allow user to request using sys.* values from Python, 18861 # instead of the GNU $prefix values. 18862 18863 # Check whether --with-python-sys-prefix was given. 18864 if test ${with_python_sys_prefix+y} 18865 then : 18866 withval=$with_python_sys_prefix; am_use_python_sys=: 18867 else case e in #( 18868 e) am_use_python_sys=false ;; 18869 esac 18870 fi 18871 18872 18873 # Allow user to override whatever the default Python prefix is. 18874 18875 # Check whether --with-python_prefix was given. 18876 if test ${with_python_prefix+y} 18877 then : 18878 withval=$with_python_prefix; am_python_prefix_subst=$withval 18879 am_cv_python_prefix=$withval 18880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 18881 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } 18882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 18883 printf "%s\n" "$am_cv_python_prefix" >&6; } 18884 else case e in #( 18885 e) 18886 if $am_use_python_sys; then 18887 # using python sys.prefix value, not GNU 18888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 18889 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } 18890 if test ${am_cv_python_prefix+y} 18891 then : 18892 printf %s "(cached) " >&6 18893 else case e in #( 18894 e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;; 18895 esac 18896 fi 18897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 18898 printf "%s\n" "$am_cv_python_prefix" >&6; } 18899 18900 case $am_cv_python_prefix in 18901 $am__usable_prefix*) 18902 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` 18903 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` 18904 ;; 18905 *) 18906 am_python_prefix_subst=$am_cv_python_prefix 18907 ;; 18908 esac 18909 else # using GNU prefix value, not python sys.prefix 18910 am_python_prefix_subst='${prefix}' 18911 am_python_prefix=$am_python_prefix_subst 18912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 18913 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } 18914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 18915 printf "%s\n" "$am_python_prefix" >&6; } 18916 fi ;; 18917 esac 18918 fi 18919 18920 # Substituting python_prefix_subst value. 18921 PYTHON_PREFIX=$am_python_prefix_subst 18922 18923 18924 # emacs-page Now do it all over again for Python exec_prefix, but with yet 18925 # another conditional: fall back to regular prefix if that was specified. 18926 18927 # Check whether --with-python_exec_prefix was given. 18928 if test ${with_python_exec_prefix+y} 18929 then : 18930 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval 18931 am_cv_python_exec_prefix=$withval 18932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 18933 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } 18934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 18935 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 18936 else case e in #( 18937 e) 18938 # no explicit --with-python_exec_prefix, but if 18939 # --with-python_prefix was given, use its value for python_exec_prefix too. 18940 if test -n "$with_python_prefix" 18941 then : 18942 am_python_exec_prefix_subst=$with_python_prefix 18943 am_cv_python_exec_prefix=$with_python_prefix 18944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 18945 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } 18946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 18947 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 18948 else case e in #( 18949 e) 18950 # Set am__usable_exec_prefix whether using GNU or Python values, 18951 # since we use that variable for pyexecdir. 18952 if test "x$exec_prefix" = xNONE; then 18953 am__usable_exec_prefix=$am__usable_prefix 18954 else 18955 am__usable_exec_prefix=$exec_prefix 18956 fi 18957 # 18958 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU 18959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 18960 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } 18961 if test ${am_cv_python_exec_prefix+y} 18962 then : 18963 printf %s "(cached) " >&6 18964 else case e in #( 18965 e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;; 18966 esac 18967 fi 18968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 18969 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 18970 case $am_cv_python_exec_prefix in 18971 $am__usable_exec_prefix*) 18972 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` 18973 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` 18974 ;; 18975 *) 18976 am_python_exec_prefix_subst=$am_cv_python_exec_prefix 18977 ;; 18978 esac 18979 else # using GNU $exec_prefix, not python sys.exec_prefix 18980 am_python_exec_prefix_subst='${exec_prefix}' 18981 am_python_exec_prefix=$am_python_exec_prefix_subst 18982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 18983 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } 18984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 18985 printf "%s\n" "$am_python_exec_prefix" >&6; } 18986 fi ;; 18987 esac 18988 fi ;; 18989 esac 18990 fi 18991 18992 # Substituting python_exec_prefix_subst. 18993 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst 18994 18995 18996 # Factor out some code duplication into this shell variable. 18997 am_python_setup_sysconfig="\ 18998 import sys 18999 # Prefer sysconfig over distutils.sysconfig, for better compatibility 19000 # with python 3.x. See automake bug#10227. 19001 try: 19002 import sysconfig 19003 except ImportError: 19004 can_use_sysconfig = 0 19005 else: 19006 can_use_sysconfig = 1 19007 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 19008 # <https://github.com/pypa/virtualenv/issues/118> 19009 try: 19010 from platform import python_implementation 19011 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 19012 can_use_sysconfig = 0 19013 except ImportError: 19014 pass" # end of am_python_setup_sysconfig 19015 19016 # More repeated code, for figuring out the installation scheme to use. 19017 am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'): 19018 scheme = sysconfig.get_default_scheme() 19019 else: 19020 scheme = sysconfig._get_default_scheme() 19021 if scheme == 'posix_local': 19022 if '$am_py_prefix' == '/usr': 19023 scheme = 'deb_system' # should only happen during Debian package builds 19024 else: 19025 # Debian's default scheme installs to /usr/local/ but we want to 19026 # follow the prefix, as we always have. 19027 # See bugs#54412, #64837, et al. 19028 scheme = 'posix_prefix'" # end of am_python_setup_scheme 19029 19030 19031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 19032 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } 19033 if test ${am_cv_python_pythondir+y} 19034 then : 19035 printf %s "(cached) " >&6 19036 else case e in #( 19037 e) if test "x$am_cv_python_prefix" = x; then 19038 am_py_prefix=$am__usable_prefix 19039 else 19040 am_py_prefix=$am_cv_python_prefix 19041 fi 19042 am_cv_python_pythondir=`$PYTHON -c " 19043 $am_python_setup_sysconfig 19044 if can_use_sysconfig: 19045 try: 19046 $am_python_setup_scheme 19047 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'}) 19048 except: 19049 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 19050 else: 19051 from distutils import sysconfig 19052 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 19053 sys.stdout.write(sitedir)"` 19054 # 19055 case $am_cv_python_pythondir in 19056 $am_py_prefix*) 19057 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 19058 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` 19059 ;; 19060 *) 19061 case $am_py_prefix in 19062 /usr|/System*) ;; 19063 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 19064 ;; 19065 esac 19066 ;; 19067 esac 19068 ;; 19069 esac 19070 fi 19071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 19072 printf "%s\n" "$am_cv_python_pythondir" >&6; } 19073 pythondir=$am_cv_python_pythondir 19074 19075 19076 pkgpythondir=\${pythondir}/$PACKAGE 19077 19078 19079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 19080 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } 19081 if test ${am_cv_python_pyexecdir+y} 19082 then : 19083 printf %s "(cached) " >&6 19084 else case e in #( 19085 e) if test "x$am_cv_python_exec_prefix" = x; then 19086 am_py_exec_prefix=$am__usable_exec_prefix 19087 else 19088 am_py_exec_prefix=$am_cv_python_exec_prefix 19089 fi 19090 am_cv_python_pyexecdir=`$PYTHON -c " 19091 $am_python_setup_sysconfig 19092 if can_use_sysconfig: 19093 try: 19094 $am_python_setup_scheme 19095 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'}) 19096 except: 19097 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) 19098 else: 19099 from distutils import sysconfig 19100 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') 19101 sys.stdout.write(sitedir)"` 19102 # 19103 case $am_cv_python_pyexecdir in 19104 $am_py_exec_prefix*) 19105 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 19106 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` 19107 ;; 19108 *) 19109 case $am_py_exec_prefix in 19110 /usr|/System*) ;; 19111 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 19112 ;; 19113 esac 19114 ;; 19115 esac 19116 ;; 19117 esac 19118 fi 19119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 19120 printf "%s\n" "$am_cv_python_pyexecdir" >&6; } 19121 pyexecdir=$am_cv_python_pyexecdir 19122 19123 19124 pkgpyexecdir=\${pyexecdir}/$PACKAGE 19125 19126 19127 19128 fi 19129 19130 if test "$PYTHON" != ":"; then 19131 HAVE_PYTHON_TRUE= 19132 HAVE_PYTHON_FALSE='#' 19133 else 19134 HAVE_PYTHON_TRUE='#' 19135 HAVE_PYTHON_FALSE= 19136 fi 19137 19138 19139 for ac_prog in pytest-3 py.test-3 pytest py.test pytest-pypy 19140 do 19141 # Extract the first word of "$ac_prog", so it can be a program name with args. 19142 set dummy $ac_prog; ac_word=$2 19143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19144 printf %s "checking for $ac_word... " >&6; } 19145 if test ${ac_cv_path_PYTEST+y} 19146 then : 19147 printf %s "(cached) " >&6 19148 else case e in #( 19149 e) case $PYTEST in 19150 [\\/]* | ?:[\\/]*) 19151 ac_cv_path_PYTEST="$PYTEST" # Let the user override the test with a path. 19152 ;; 19153 *) 19154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19155 for as_dir in $PATH 19156 do 19157 IFS=$as_save_IFS 19158 case $as_dir in #((( 19159 '') as_dir=./ ;; 19160 */) ;; 19161 *) as_dir=$as_dir/ ;; 19162 esac 19163 for ac_exec_ext in '' $ac_executable_extensions; do 19164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19165 ac_cv_path_PYTEST="$as_dir$ac_word$ac_exec_ext" 19166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19167 break 2 19168 fi 19169 done 19170 done 19171 IFS=$as_save_IFS 19172 19173 ;; 19174 esac ;; 19175 esac 19176 fi 19177 PYTEST=$ac_cv_path_PYTEST 19178 if test -n "$PYTEST"; then 19179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTEST" >&5 19180 printf "%s\n" "$PYTEST" >&6; } 19181 else 19182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19183 printf "%s\n" "no" >&6; } 19184 fi 19185 19186 19187 test -n "$PYTEST" && break 19188 done 19189 19190 if test -z "$PYTEST" 19191 then : 19192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pytest not found, some system tests will be skipped" >&5 19193 printf "%s\n" "$as_me: WARNING: pytest not found, some system tests will be skipped" >&2;} 19194 fi 19195 19196 if test -n "$PYTEST"; then 19197 HAVE_PYTEST_TRUE= 19198 HAVE_PYTEST_FALSE='#' 19199 else 19200 HAVE_PYTEST_TRUE='#' 19201 HAVE_PYTEST_FALSE= 19202 fi 19203 19204 19205 # 19206 # Optional utilities, only used by system tests. 19207 # 19208 # Extract the first word of "jq", so it can be a program name with args. 19209 set dummy jq; ac_word=$2 19210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19211 printf %s "checking for $ac_word... " >&6; } 19212 if test ${ac_cv_path_JQ+y} 19213 then : 19214 printf %s "(cached) " >&6 19215 else case e in #( 19216 e) case $JQ in 19217 [\\/]* | ?:[\\/]*) 19218 ac_cv_path_JQ="$JQ" # Let the user override the test with a path. 19219 ;; 19220 *) 19221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19222 for as_dir in $PATH 19223 do 19224 IFS=$as_save_IFS 19225 case $as_dir in #((( 19226 '') as_dir=./ ;; 19227 */) ;; 19228 *) as_dir=$as_dir/ ;; 19229 esac 19230 for ac_exec_ext in '' $ac_executable_extensions; do 19231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19232 ac_cv_path_JQ="$as_dir$ac_word$ac_exec_ext" 19233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19234 break 2 19235 fi 19236 done 19237 done 19238 IFS=$as_save_IFS 19239 19240 ;; 19241 esac ;; 19242 esac 19243 fi 19244 JQ=$ac_cv_path_JQ 19245 if test -n "$JQ"; then 19246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JQ" >&5 19247 printf "%s\n" "$JQ" >&6; } 19248 else 19249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19250 printf "%s\n" "no" >&6; } 19251 fi 19252 19253 19254 # Extract the first word of "xmllint", so it can be a program name with args. 19255 set dummy xmllint; ac_word=$2 19256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19257 printf %s "checking for $ac_word... " >&6; } 19258 if test ${ac_cv_path_XMLLINT+y} 19259 then : 19260 printf %s "(cached) " >&6 19261 else case e in #( 19262 e) case $XMLLINT in 19263 [\\/]* | ?:[\\/]*) 19264 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path. 19265 ;; 19266 *) 19267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19268 for as_dir in $PATH 19269 do 19270 IFS=$as_save_IFS 19271 case $as_dir in #((( 19272 '') as_dir=./ ;; 19273 */) ;; 19274 *) as_dir=$as_dir/ ;; 19275 esac 19276 for ac_exec_ext in '' $ac_executable_extensions; do 19277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19278 ac_cv_path_XMLLINT="$as_dir$ac_word$ac_exec_ext" 19279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19280 break 2 19281 fi 19282 done 19283 done 19284 IFS=$as_save_IFS 19285 19286 ;; 19287 esac ;; 19288 esac 19289 fi 19290 XMLLINT=$ac_cv_path_XMLLINT 19291 if test -n "$XMLLINT"; then 19292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5 19293 printf "%s\n" "$XMLLINT" >&6; } 19294 else 19295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19296 printf "%s\n" "no" >&6; } 19297 fi 19298 19299 19300 # Extract the first word of "xsltproc", so it can be a program name with args. 19301 set dummy xsltproc; ac_word=$2 19302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19303 printf %s "checking for $ac_word... " >&6; } 19304 if test ${ac_cv_path_XSLTPROC+y} 19305 then : 19306 printf %s "(cached) " >&6 19307 else case e in #( 19308 e) case $XSLTPROC in 19309 [\\/]* | ?:[\\/]*) 19310 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19311 ;; 19312 *) 19313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19314 for as_dir in $PATH 19315 do 19316 IFS=$as_save_IFS 19317 case $as_dir in #((( 19318 '') as_dir=./ ;; 19319 */) ;; 19320 *) as_dir=$as_dir/ ;; 19321 esac 19322 for ac_exec_ext in '' $ac_executable_extensions; do 19323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19324 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 19325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19326 break 2 19327 fi 19328 done 19329 done 19330 IFS=$as_save_IFS 19331 19332 ;; 19333 esac ;; 19334 esac 19335 fi 19336 XSLTPROC=$ac_cv_path_XSLTPROC 19337 if test -n "$XSLTPROC"; then 19338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19339 printf "%s\n" "$XSLTPROC" >&6; } 19340 else 19341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19342 printf "%s\n" "no" >&6; } 19343 fi 19344 19345 19346 19347 # 19348 # Using Solaris linker with gcc on Solaris breaks Thread Local Storage 19349 # 19350 case $host in #( 19351 *-solaris*) : 19352 19353 if test "$GCC" = "yes" 19354 then : 19355 LDFLAGS="$LDFLAGS -zrelax=transtls" 19356 { 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 19357 printf "%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;} 19358 19359 fi 19360 ;; #( 19361 *) : 19362 ;; 19363 esac 19364 19365 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 19366 if test "x$ac_cv_header_sys_param_h" = xyes 19367 then : 19368 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 19369 19370 fi 19371 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 19372 if test "x$ac_cv_header_sys_socket_h" = xyes 19373 then : 19374 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 19375 19376 fi 19377 19378 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default 19379 #ifdef HAVE_SYS_PARAM_H 19380 # include <sys/param.h> 19381 #endif 19382 #ifdef HAVE_SYS_SOCKET_H 19383 # include <sys/socket.h> 19384 #endif 19385 19386 " 19387 if test "x$ac_cv_header_fcntl_h" = xyes 19388 then : 19389 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 19390 19391 fi 19392 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default 19393 #ifdef HAVE_SYS_PARAM_H 19394 # include <sys/param.h> 19395 #endif 19396 #ifdef HAVE_SYS_SOCKET_H 19397 # include <sys/socket.h> 19398 #endif 19399 19400 " 19401 if test "x$ac_cv_header_regex_h" = xyes 19402 then : 19403 printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h 19404 19405 fi 19406 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default 19407 #ifdef HAVE_SYS_PARAM_H 19408 # include <sys/param.h> 19409 #endif 19410 #ifdef HAVE_SYS_SOCKET_H 19411 # include <sys/socket.h> 19412 #endif 19413 19414 " 19415 if test "x$ac_cv_header_sys_time_h" = xyes 19416 then : 19417 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 19418 19419 fi 19420 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default 19421 #ifdef HAVE_SYS_PARAM_H 19422 # include <sys/param.h> 19423 #endif 19424 #ifdef HAVE_SYS_SOCKET_H 19425 # include <sys/socket.h> 19426 #endif 19427 19428 " 19429 if test "x$ac_cv_header_unistd_h" = xyes 19430 then : 19431 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 19432 19433 fi 19434 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default 19435 #ifdef HAVE_SYS_PARAM_H 19436 # include <sys/param.h> 19437 #endif 19438 #ifdef HAVE_SYS_SOCKET_H 19439 # include <sys/socket.h> 19440 #endif 19441 19442 " 19443 if test "x$ac_cv_header_sys_mman_h" = xyes 19444 then : 19445 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 19446 19447 fi 19448 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default 19449 #ifdef HAVE_SYS_PARAM_H 19450 # include <sys/param.h> 19451 #endif 19452 #ifdef HAVE_SYS_SOCKET_H 19453 # include <sys/socket.h> 19454 #endif 19455 19456 " 19457 if test "x$ac_cv_header_sys_sockio_h" = xyes 19458 then : 19459 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h 19460 19461 fi 19462 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default 19463 #ifdef HAVE_SYS_PARAM_H 19464 # include <sys/param.h> 19465 #endif 19466 #ifdef HAVE_SYS_SOCKET_H 19467 # include <sys/socket.h> 19468 #endif 19469 19470 " 19471 if test "x$ac_cv_header_sys_select_h" = xyes 19472 then : 19473 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 19474 19475 fi 19476 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 19477 #ifdef HAVE_SYS_PARAM_H 19478 # include <sys/param.h> 19479 #endif 19480 #ifdef HAVE_SYS_SOCKET_H 19481 # include <sys/socket.h> 19482 #endif 19483 19484 " 19485 if test "x$ac_cv_header_sys_sysctl_h" = xyes 19486 then : 19487 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h 19488 19489 fi 19490 ac_fn_c_check_header_compile "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default 19491 #ifdef HAVE_SYS_PARAM_H 19492 # include <sys/param.h> 19493 #endif 19494 #ifdef HAVE_SYS_SOCKET_H 19495 # include <sys/socket.h> 19496 #endif 19497 19498 " 19499 if test "x$ac_cv_header_net_if6_h" = xyes 19500 then : 19501 printf "%s\n" "#define HAVE_NET_IF6_H 1" >>confdefs.h 19502 19503 fi 19504 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "$ac_includes_default 19505 #ifdef HAVE_SYS_PARAM_H 19506 # include <sys/param.h> 19507 #endif 19508 #ifdef HAVE_SYS_SOCKET_H 19509 # include <sys/socket.h> 19510 #endif 19511 19512 " 19513 if test "x$ac_cv_header_net_route_h" = xyes 19514 then : 19515 printf "%s\n" "#define HAVE_NET_ROUTE_H 1" >>confdefs.h 19516 19517 fi 19518 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "$ac_includes_default 19519 #ifdef HAVE_SYS_PARAM_H 19520 # include <sys/param.h> 19521 #endif 19522 #ifdef HAVE_SYS_SOCKET_H 19523 # include <sys/socket.h> 19524 #endif 19525 19526 " 19527 if test "x$ac_cv_header_linux_netlink_h" = xyes 19528 then : 19529 printf "%s\n" "#define HAVE_LINUX_NETLINK_H 1" >>confdefs.h 19530 19531 fi 19532 ac_fn_c_check_header_compile "$LINENO" "linux/rtnetlink.h" "ac_cv_header_linux_rtnetlink_h" "$ac_includes_default 19533 #ifdef HAVE_SYS_PARAM_H 19534 # include <sys/param.h> 19535 #endif 19536 #ifdef HAVE_SYS_SOCKET_H 19537 # include <sys/socket.h> 19538 #endif 19539 19540 " 19541 if test "x$ac_cv_header_linux_rtnetlink_h" = xyes 19542 then : 19543 printf "%s\n" "#define HAVE_LINUX_RTNETLINK_H 1" >>confdefs.h 19544 19545 fi 19546 19547 19548 # 19549 # Check for C11 thread local storage 19550 # 19551 # NOTE: OpenBSD doesn't ship <threads.h>, so we can't require it (yet). 19552 # 19553 ac_fn_c_check_header_compile "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default" 19554 if test "x$ac_cv_header_threads_h" = xyes 19555 then : 19556 printf "%s\n" "#define HAVE_THREADS_H 1" >>confdefs.h 19557 19558 fi 19559 19560 19561 # 19562 # C11 Atomic Operations 19563 # 19564 19565 for ac_header in stdatomic.h 19566 do : 19567 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default" 19568 if test "x$ac_cv_header_stdatomic_h" = xyes 19569 then : 19570 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h 19571 19572 else case e in #( 19573 e) as_fn_error $? "C11 Atomic Operations required, update your toolchain to build BIND 9" "$LINENO" 5 ;; 19574 esac 19575 fi 19576 19577 done 19578 19579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19580 /* end confdefs.h. */ 19581 #include <stdatomic.h> 19582 int 19583 main (void) 19584 { 19585 atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed); 19586 19587 ; 19588 return 0; 19589 } 19590 _ACEOF 19591 if ac_fn_c_try_compile "$LINENO" 19592 then : 19593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5 19594 printf %s "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; } 19595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19596 /* end confdefs.h. */ 19597 #include <stdatomic.h> 19598 int 19599 main (void) 19600 { 19601 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed); 19602 19603 ; 19604 return 0; 19605 } 19606 _ACEOF 19607 if ac_fn_c_try_link "$LINENO" 19608 then : 19609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19610 printf "%s\n" "no" >&6; } 19611 else case e in #( 19612 e) LIBS="$LIBS -latomic" 19613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19614 /* end confdefs.h. */ 19615 #include <stdatomic.h> 19616 int 19617 main (void) 19618 { 19619 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed); 19620 19621 ; 19622 return 0; 19623 } 19624 _ACEOF 19625 if ac_fn_c_try_link "$LINENO" 19626 then : 19627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19628 printf "%s\n" "yes" >&6; } 19629 else case e in #( 19630 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 19631 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 19632 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain. 19633 See 'config.log' for more details" "$LINENO" 5; } ;; 19634 esac 19635 fi 19636 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19637 conftest$ac_exeext conftest.$ac_ext 19638 ;; 19639 esac 19640 fi 19641 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19642 conftest$ac_exeext conftest.$ac_ext 19643 19644 else case e in #( 19645 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 19646 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 19647 as_fn_error $? "stdatomic.h header found, but compilation failed, please fix your toolchain. 19648 See 'config.log' for more details" "$LINENO" 5; } ;; 19649 esac 19650 fi 19651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19652 19653 for ac_header in stdnoreturn.h 19654 do : 19655 ac_fn_c_check_header_compile "$LINENO" "stdnoreturn.h" "ac_cv_header_stdnoreturn_h" "$ac_includes_default" 19656 if test "x$ac_cv_header_stdnoreturn_h" = xyes 19657 then : 19658 printf "%s\n" "#define HAVE_STDNORETURN_H 1" >>confdefs.h 19659 19660 else case e in #( 19661 e) as_fn_error $? "C11 standard headers not found, update your toolchain." "$LINENO" 5 ;; 19662 esac 19663 fi 19664 19665 done 19666 19667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 19668 printf %s "checking for an ANSI C-conforming const... " >&6; } 19669 if test ${ac_cv_c_const+y} 19670 then : 19671 printf %s "(cached) " >&6 19672 else case e in #( 19673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19674 /* end confdefs.h. */ 19675 19676 int 19677 main (void) 19678 { 19679 19680 #ifndef __cplusplus 19681 /* Ultrix mips cc rejects this sort of thing. */ 19682 typedef int charset[2]; 19683 const charset cs = { 0, 0 }; 19684 /* SunOS 4.1.1 cc rejects this. */ 19685 char const *const *pcpcc; 19686 char **ppc; 19687 /* NEC SVR4.0.2 mips cc rejects this. */ 19688 struct point {int x, y;}; 19689 static struct point const zero = {0,0}; 19690 /* IBM XL C 1.02.0.0 rejects this. 19691 It does not let you subtract one const X* pointer from another in 19692 an arm of an if-expression whose if-part is not a constant 19693 expression */ 19694 const char *g = "string"; 19695 pcpcc = &g + (g ? g-g : 0); 19696 /* HPUX 7.0 cc rejects these. */ 19697 ++pcpcc; 19698 ppc = (char**) pcpcc; 19699 pcpcc = (char const *const *) ppc; 19700 { /* SCO 3.2v4 cc rejects this sort of thing. */ 19701 char tx; 19702 char *t = &tx; 19703 char const *s = 0 ? (char *) 0 : (char const *) 0; 19704 19705 *t++ = 0; 19706 if (s) return 0; 19707 } 19708 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19709 int x[] = {25, 17}; 19710 const int *foo = &x[0]; 19711 ++foo; 19712 } 19713 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19714 typedef const int *iptr; 19715 iptr p = 0; 19716 ++p; 19717 } 19718 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 19719 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19720 struct s { int j; const int *ap[3]; } bx; 19721 struct s *b = &bx; b->j = 5; 19722 } 19723 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19724 const int foo = 10; 19725 if (!foo) return 0; 19726 } 19727 return !cs[0] && !zero.x; 19728 #endif 19729 19730 ; 19731 return 0; 19732 } 19733 _ACEOF 19734 if ac_fn_c_try_compile "$LINENO" 19735 then : 19736 ac_cv_c_const=yes 19737 else case e in #( 19738 e) ac_cv_c_const=no ;; 19739 esac 19740 fi 19741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19742 esac 19743 fi 19744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 19745 printf "%s\n" "$ac_cv_c_const" >&6; } 19746 if test $ac_cv_c_const = no; then 19747 19748 printf "%s\n" "#define const /**/" >>confdefs.h 19749 19750 fi 19751 19752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 19753 printf %s "checking for inline... " >&6; } 19754 if test ${ac_cv_c_inline+y} 19755 then : 19756 printf %s "(cached) " >&6 19757 else case e in #( 19758 e) ac_cv_c_inline=no 19759 for ac_kw in inline __inline__ __inline; do 19760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19761 /* end confdefs.h. */ 19762 #ifndef __cplusplus 19763 typedef int foo_t; 19764 static $ac_kw foo_t static_foo (void) {return 0; } 19765 $ac_kw foo_t foo (void) {return 0; } 19766 #endif 19767 19768 _ACEOF 19769 if ac_fn_c_try_compile "$LINENO" 19770 then : 19771 ac_cv_c_inline=$ac_kw 19772 fi 19773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19774 test "$ac_cv_c_inline" != no && break 19775 done 19776 ;; 19777 esac 19778 fi 19779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 19780 printf "%s\n" "$ac_cv_c_inline" >&6; } 19781 19782 case $ac_cv_c_inline in 19783 inline | yes) ;; 19784 *) 19785 case $ac_cv_c_inline in 19786 no) ac_val=;; 19787 *) ac_val=$ac_cv_c_inline;; 19788 esac 19789 cat >>confdefs.h <<_ACEOF 19790 #ifndef __cplusplus 19791 #define inline $ac_val 19792 #endif 19793 _ACEOF 19794 ;; 19795 esac 19796 19797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 19798 printf %s "checking for working volatile... " >&6; } 19799 if test ${ac_cv_c_volatile+y} 19800 then : 19801 printf %s "(cached) " >&6 19802 else case e in #( 19803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19804 /* end confdefs.h. */ 19805 19806 int 19807 main (void) 19808 { 19809 19810 volatile int x; 19811 int * volatile y = (int *) 0; 19812 return !x && !y; 19813 ; 19814 return 0; 19815 } 19816 _ACEOF 19817 if ac_fn_c_try_compile "$LINENO" 19818 then : 19819 ac_cv_c_volatile=yes 19820 else case e in #( 19821 e) ac_cv_c_volatile=no ;; 19822 esac 19823 fi 19824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19825 esac 19826 fi 19827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 19828 printf "%s\n" "$ac_cv_c_volatile" >&6; } 19829 if test $ac_cv_c_volatile = no; then 19830 19831 printf "%s\n" "#define volatile /**/" >>confdefs.h 19832 19833 fi 19834 19835 19836 # 19837 # Check for yield support on ARM processors 19838 # 19839 case $host in #( 19840 arm*|aarch64*) : 19841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM yield instruction support" >&5 19842 printf %s "checking for ARM yield instruction support... " >&6; } 19843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19844 /* end confdefs.h. */ 19845 19846 int 19847 main (void) 19848 { 19849 __asm__ __volatile__ ("yield") 19850 ; 19851 return 0; 19852 } 19853 _ACEOF 19854 if ac_fn_c_try_compile "$LINENO" 19855 then : 19856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19857 printf "%s\n" "yes" >&6; } 19858 19859 printf "%s\n" "#define HAVE_ARM_YIELD 1" >>confdefs.h 19860 19861 else case e in #( 19862 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19863 printf "%s\n" "no" >&6; } ;; 19864 esac 19865 fi 19866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #( 19867 *) : 19868 ;; 19869 esac 19870 19871 # 19872 # Check for pause support on SPARC processors 19873 # 19874 case $host in #( 19875 sparc*) : 19876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pause instruction support" >&5 19877 printf %s "checking for pause instruction support... " >&6; } 19878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19879 /* end confdefs.h. */ 19880 19881 int 19882 main (void) 19883 { 19884 __asm__ __volatile__ ("pause") 19885 ; 19886 return 0; 19887 } 19888 _ACEOF 19889 if ac_fn_c_try_compile "$LINENO" 19890 then : 19891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19892 printf "%s\n" "yes" >&6; } 19893 19894 printf "%s\n" "#define HAVE_SPARC_PAUSE 1" >>confdefs.h 19895 19896 else case e in #( 19897 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19898 printf "%s\n" "no" >&6; } ;; 19899 esac 19900 fi 19901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #( 19902 *) : 19903 ;; 19904 esac 19905 19906 ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname" 19907 if test "x$ac_cv_func_sysctlbyname" = xyes 19908 then : 19909 printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h 19910 19911 fi 19912 19913 19914 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 19915 if test "x$ac_cv_type_size_t" = xyes 19916 then : 19917 19918 else case e in #( 19919 e) 19920 printf "%s\n" "#define size_t unsigned int" >>confdefs.h 19921 ;; 19922 esac 19923 fi 19924 19925 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 19926 if test "x$ac_cv_type_ssize_t" = xyes 19927 then : 19928 19929 else case e in #( 19930 e) 19931 printf "%s\n" "#define ssize_t int" >>confdefs.h 19932 ;; 19933 esac 19934 fi 19935 19936 19937 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 19938 if test "x$ac_cv_type_uintptr_t" = xyes 19939 then : 19940 19941 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h 19942 19943 else case e in #( 19944 e) for ac_type in 'unsigned int' 'unsigned long int' \ 19945 'unsigned long long int'; do 19946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19947 /* end confdefs.h. */ 19948 $ac_includes_default 19949 int 19950 main (void) 19951 { 19952 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 19953 test_array [0] = 0; 19954 return test_array [0]; 19955 19956 ; 19957 return 0; 19958 } 19959 _ACEOF 19960 if ac_fn_c_try_compile "$LINENO" 19961 then : 19962 19963 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h 19964 19965 ac_type= 19966 fi 19967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19968 test -z "$ac_type" && break 19969 done ;; 19970 esac 19971 fi 19972 19973 19974 19975 # 19976 # check for uname library routine 19977 # 19978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uname" >&5 19979 printf %s "checking for uname... " >&6; } 19980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19981 /* end confdefs.h. */ 19982 #include <sys/utsname.h> 19983 #include <stdio.h> 19984 19985 int 19986 main (void) 19987 { 19988 19989 struct utsname uts; 19990 uname(&uts); 19991 printf("running on %s %s %s for %s\n", 19992 uts.sysname, uts.release, uts.version, uts.machine); 19993 19994 ; 19995 return 0; 19996 } 19997 _ACEOF 19998 if ac_fn_c_try_compile "$LINENO" 19999 then : 20000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20001 printf "%s\n" "yes" >&6; } 20002 20003 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h 20004 20005 20006 else case e in #( 20007 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20008 printf "%s\n" "no" >&6; } 20009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5 20010 printf "%s\n" "$as_me: WARNING: uname is not correctly supported" >&2;} 20011 ;; 20012 esac 20013 fi 20014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20015 20016 # 20017 # check for GCC noreturn attribute 20018 # 20019 20020 20021 20022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((noreturn))" >&5 20023 printf %s "checking for __attribute__((noreturn))... " >&6; } 20024 if test ${ax_cv_have_func_attribute_noreturn+y} 20025 then : 20026 printf %s "(cached) " >&6 20027 else case e in #( 20028 e) 20029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20030 /* end confdefs.h. */ 20031 20032 20033 void foo( void ) __attribute__((noreturn)); 20034 20035 int 20036 main (void) 20037 { 20038 20039 ; 20040 return 0; 20041 } 20042 20043 _ACEOF 20044 if ac_fn_c_try_link "$LINENO" 20045 then : 20046 if grep -- -Wattributes conftest.err 20047 then : 20048 ax_cv_have_func_attribute_noreturn=no 20049 else case e in #( 20050 e) ax_cv_have_func_attribute_noreturn=yes ;; 20051 esac 20052 fi 20053 else case e in #( 20054 e) ax_cv_have_func_attribute_noreturn=no ;; 20055 esac 20056 fi 20057 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20058 conftest$ac_exeext conftest.$ac_ext 20059 ;; 20060 esac 20061 fi 20062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_noreturn" >&5 20063 printf "%s\n" "$ax_cv_have_func_attribute_noreturn" >&6; } 20064 20065 if test yes = $ax_cv_have_func_attribute_noreturn 20066 then : 20067 20068 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_NORETURN 1" >>confdefs.h 20069 20070 fi 20071 20072 20073 20074 20075 # 20076 # check for GCC malloc attribute 20077 # 20078 20079 20080 20081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((malloc))" >&5 20082 printf %s "checking for __attribute__((malloc))... " >&6; } 20083 if test ${ax_cv_have_func_attribute_malloc+y} 20084 then : 20085 printf %s "(cached) " >&6 20086 else case e in #( 20087 e) 20088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20089 /* end confdefs.h. */ 20090 20091 20092 void *foo( void ) __attribute__((malloc)); 20093 20094 int 20095 main (void) 20096 { 20097 20098 ; 20099 return 0; 20100 } 20101 20102 _ACEOF 20103 if ac_fn_c_try_link "$LINENO" 20104 then : 20105 if grep -- -Wattributes conftest.err 20106 then : 20107 ax_cv_have_func_attribute_malloc=no 20108 else case e in #( 20109 e) ax_cv_have_func_attribute_malloc=yes ;; 20110 esac 20111 fi 20112 else case e in #( 20113 e) ax_cv_have_func_attribute_malloc=no ;; 20114 esac 20115 fi 20116 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20117 conftest$ac_exeext conftest.$ac_ext 20118 ;; 20119 esac 20120 fi 20121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_malloc" >&5 20122 printf "%s\n" "$ax_cv_have_func_attribute_malloc" >&6; } 20123 20124 if test yes = $ax_cv_have_func_attribute_malloc 20125 then : 20126 20127 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_MALLOC 1" >>confdefs.h 20128 20129 fi 20130 20131 20132 20133 20134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extended malloc attributes" >&5 20135 printf %s "checking for extended malloc attributes... " >&6; } 20136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20137 /* end confdefs.h. */ 20138 20139 #include <stddef.h> 20140 #include <stdlib.h> 20141 __attribute__ ((malloc, malloc (free, 1)) 20142 void * xmalloc(size_t sz) { return malloc(sz); } 20143 20144 int 20145 main (void) 20146 { 20147 20148 void *p = xmalloc(8); 20149 free(p); 20150 20151 ; 20152 return 0; 20153 } 20154 _ACEOF 20155 if ac_fn_c_try_compile "$LINENO" 20156 then : 20157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20158 printf "%s\n" "yes" >&6; } 20159 20160 printf "%s\n" "#define HAVE_MALLOC_EXT_ATTR 1" >>confdefs.h 20161 20162 20163 else case e in #( 20164 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20165 printf "%s\n" "no" >&6; } ;; 20166 esac 20167 fi 20168 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20169 20170 # 20171 # check for GCC returns_nonnull attribute 20172 # 20173 20174 20175 20176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((returns_nonnull))" >&5 20177 printf %s "checking for __attribute__((returns_nonnull))... " >&6; } 20178 if test ${ax_cv_have_func_attribute_returns_nonnull+y} 20179 then : 20180 printf %s "(cached) " >&6 20181 else case e in #( 20182 e) 20183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20184 /* end confdefs.h. */ 20185 20186 20187 void *foo( void ) __attribute__((returns_nonnull)); 20188 20189 int 20190 main (void) 20191 { 20192 20193 ; 20194 return 0; 20195 } 20196 20197 _ACEOF 20198 if ac_fn_c_try_link "$LINENO" 20199 then : 20200 if grep -- -Wattributes conftest.err 20201 then : 20202 ax_cv_have_func_attribute_returns_nonnull=no 20203 else case e in #( 20204 e) ax_cv_have_func_attribute_returns_nonnull=yes ;; 20205 esac 20206 fi 20207 else case e in #( 20208 e) ax_cv_have_func_attribute_returns_nonnull=no ;; 20209 esac 20210 fi 20211 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20212 conftest$ac_exeext conftest.$ac_ext 20213 ;; 20214 esac 20215 fi 20216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_returns_nonnull" >&5 20217 printf "%s\n" "$ax_cv_have_func_attribute_returns_nonnull" >&6; } 20218 20219 if test yes = $ax_cv_have_func_attribute_returns_nonnull 20220 then : 20221 20222 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL 1" >>confdefs.h 20223 20224 fi 20225 20226 20227 20228 20229 # 20230 # how to link math functions? 20231 # 20232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5 20233 printf %s "checking for library containing sqrt... " >&6; } 20234 if test ${ac_cv_search_sqrt+y} 20235 then : 20236 printf %s "(cached) " >&6 20237 else case e in #( 20238 e) ac_func_search_save_LIBS=$LIBS 20239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20240 /* end confdefs.h. */ 20241 20242 /* Override any GCC internal prototype to avoid an error. 20243 Use char because int might match the return type of a GCC 20244 builtin and then its argument prototype would still apply. 20245 The 'extern "C"' is for builds by C++ compilers; 20246 although this is not generally supported in C code supporting it here 20247 has little cost and some practical benefit (sr 110532). */ 20248 #ifdef __cplusplus 20249 extern "C" 20250 #endif 20251 char sqrt (void); 20252 int 20253 main (void) 20254 { 20255 return sqrt (); 20256 ; 20257 return 0; 20258 } 20259 _ACEOF 20260 for ac_lib in '' m 20261 do 20262 if test -z "$ac_lib"; then 20263 ac_res="none required" 20264 else 20265 ac_res=-l$ac_lib 20266 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20267 fi 20268 if ac_fn_c_try_link "$LINENO" 20269 then : 20270 ac_cv_search_sqrt=$ac_res 20271 fi 20272 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20273 conftest$ac_exeext 20274 if test ${ac_cv_search_sqrt+y} 20275 then : 20276 break 20277 fi 20278 done 20279 if test ${ac_cv_search_sqrt+y} 20280 then : 20281 20282 else case e in #( 20283 e) ac_cv_search_sqrt=no ;; 20284 esac 20285 fi 20286 rm conftest.$ac_ext 20287 LIBS=$ac_func_search_save_LIBS ;; 20288 esac 20289 fi 20290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5 20291 printf "%s\n" "$ac_cv_search_sqrt" >&6; } 20292 ac_res=$ac_cv_search_sqrt 20293 if test "$ac_res" != no 20294 then : 20295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20296 20297 fi 20298 20299 20300 # 20301 # GeoIP support? 20302 # 20303 # Should be on by default if libmaxminddb exists. 20304 # 20305 # [pairwise: --enable-geoip --with-maxminddb=auto, --enable-geoip --with-maxminddb=yes, --disable-geoip] 20306 # Check whether --enable-geoip was given. 20307 if test ${enable_geoip+y} 20308 then : 20309 enableval=$enable_geoip; 20310 else case e in #( 20311 e) enable_geoip="yes" ;; 20312 esac 20313 fi 20314 20315 20316 # [pairwise: skip] 20317 20318 # Check whether --with-maxminddb was given. 20319 if test ${with_maxminddb+y} 20320 then : 20321 withval=$with_maxminddb; 20322 else case e in #( 20323 e) with_maxminddb="auto" ;; 20324 esac 20325 fi 20326 20327 20328 if test "$enable_geoip" = "yes" 20329 then : 20330 case $with_maxminddb in #( 20331 no) : 20332 as_fn_error $? "Use '--disable-geoip' to disable the GeoIP" "$LINENO" 5 ;; #( 20333 auto) : 20334 20335 pkg_failed=no 20336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5 20337 printf %s "checking for libmaxminddb... " >&6; } 20338 20339 if test -n "$MAXMINDDB_CFLAGS"; then 20340 pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS" 20341 elif test -n "$PKG_CONFIG"; then 20342 if test -n "$PKG_CONFIG" && \ 20343 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 20344 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 20345 ac_status=$? 20346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20347 test $ac_status = 0; }; then 20348 pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null` 20349 test "x$?" != "x0" && pkg_failed=yes 20350 else 20351 pkg_failed=yes 20352 fi 20353 else 20354 pkg_failed=untried 20355 fi 20356 if test -n "$MAXMINDDB_LIBS"; then 20357 pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS" 20358 elif test -n "$PKG_CONFIG"; then 20359 if test -n "$PKG_CONFIG" && \ 20360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 20361 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 20362 ac_status=$? 20363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20364 test $ac_status = 0; }; then 20365 pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null` 20366 test "x$?" != "x0" && pkg_failed=yes 20367 else 20368 pkg_failed=yes 20369 fi 20370 else 20371 pkg_failed=untried 20372 fi 20373 20374 20375 20376 if test $pkg_failed = yes; then 20377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20378 printf "%s\n" "no" >&6; } 20379 20380 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20381 _pkg_short_errors_supported=yes 20382 else 20383 _pkg_short_errors_supported=no 20384 fi 20385 if test $_pkg_short_errors_supported = yes; then 20386 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1` 20387 else 20388 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1` 20389 fi 20390 # Put the nasty error message in config.log where it belongs 20391 echo "$MAXMINDDB_PKG_ERRORS" >&5 20392 20393 : 20394 elif test $pkg_failed = untried; then 20395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20396 printf "%s\n" "no" >&6; } 20397 : 20398 else 20399 MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS 20400 MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS 20401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20402 printf "%s\n" "yes" >&6; } 20403 20404 printf "%s\n" "#define HAVE_GEOIP2 1" >>confdefs.h 20405 20406 20407 if test -n "$MAXMINDDB_PREFIX"; then 20408 pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX" 20409 elif test -n "$PKG_CONFIG"; then 20410 if test -n "$PKG_CONFIG" && \ 20411 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 20412 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 20413 ac_status=$? 20414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20415 test $ac_status = 0; }; then 20416 pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null` 20417 test "x$?" != "x0" && pkg_failed=yes 20418 else 20419 pkg_failed=yes 20420 fi 20421 else 20422 pkg_failed=untried 20423 fi 20424 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX 20425 20426 if test "x$MAXMINDDB_PREFIX" = x"" 20427 then : 20428 as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5 20429 fi 20430 20431 fi ;; #( 20432 yes) : 20433 20434 pkg_failed=no 20435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5 20436 printf %s "checking for libmaxminddb... " >&6; } 20437 20438 if test -n "$MAXMINDDB_CFLAGS"; then 20439 pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS" 20440 elif test -n "$PKG_CONFIG"; then 20441 if test -n "$PKG_CONFIG" && \ 20442 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 20443 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 20444 ac_status=$? 20445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20446 test $ac_status = 0; }; then 20447 pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null` 20448 test "x$?" != "x0" && pkg_failed=yes 20449 else 20450 pkg_failed=yes 20451 fi 20452 else 20453 pkg_failed=untried 20454 fi 20455 if test -n "$MAXMINDDB_LIBS"; then 20456 pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS" 20457 elif test -n "$PKG_CONFIG"; then 20458 if test -n "$PKG_CONFIG" && \ 20459 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 20460 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 20461 ac_status=$? 20462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20463 test $ac_status = 0; }; then 20464 pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null` 20465 test "x$?" != "x0" && pkg_failed=yes 20466 else 20467 pkg_failed=yes 20468 fi 20469 else 20470 pkg_failed=untried 20471 fi 20472 20473 20474 20475 if test $pkg_failed = yes; then 20476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20477 printf "%s\n" "no" >&6; } 20478 20479 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20480 _pkg_short_errors_supported=yes 20481 else 20482 _pkg_short_errors_supported=no 20483 fi 20484 if test $_pkg_short_errors_supported = yes; then 20485 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1` 20486 else 20487 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1` 20488 fi 20489 # Put the nasty error message in config.log where it belongs 20490 echo "$MAXMINDDB_PKG_ERRORS" >&5 20491 20492 as_fn_error $? "Package requirements (libmaxminddb) were not met: 20493 20494 $MAXMINDDB_PKG_ERRORS 20495 20496 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20497 installed software in a non-standard prefix. 20498 20499 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS 20500 and MAXMINDDB_LIBS to avoid the need to call pkg-config. 20501 See the pkg-config man page for more details." "$LINENO" 5 20502 elif test $pkg_failed = untried; then 20503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20504 printf "%s\n" "no" >&6; } 20505 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20506 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20507 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20508 is in your PATH or set the PKG_CONFIG environment variable to the full 20509 path to pkg-config. 20510 20511 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS 20512 and MAXMINDDB_LIBS to avoid the need to call pkg-config. 20513 See the pkg-config man page for more details. 20514 20515 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20516 See 'config.log' for more details" "$LINENO" 5; } 20517 else 20518 MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS 20519 MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS 20520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20521 printf "%s\n" "yes" >&6; } 20522 20523 printf "%s\n" "#define HAVE_GEOIP2 1" >>confdefs.h 20524 20525 20526 if test -n "$MAXMINDDB_PREFIX"; then 20527 pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX" 20528 elif test -n "$PKG_CONFIG"; then 20529 if test -n "$PKG_CONFIG" && \ 20530 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5 20531 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5 20532 ac_status=$? 20533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20534 test $ac_status = 0; }; then 20535 pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null` 20536 test "x$?" != "x0" && pkg_failed=yes 20537 else 20538 pkg_failed=yes 20539 fi 20540 else 20541 pkg_failed=untried 20542 fi 20543 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX 20544 20545 if test "x$MAXMINDDB_PREFIX" = x"" 20546 then : 20547 as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5 20548 fi 20549 20550 fi ;; #( 20551 *) : 20552 # default 20553 20554 20555 CCASFLAGS_maxminddb_ax_save_flags=$CCASFLAGS 20556 20557 20558 20559 CFLAGS_maxminddb_ax_save_flags=$CFLAGS 20560 20561 20562 20563 CPPFLAGS_maxminddb_ax_save_flags=$CPPFLAGS 20564 20565 20566 20567 CXXFLAGS_maxminddb_ax_save_flags=$CXXFLAGS 20568 20569 20570 20571 ERLCFLAGS_maxminddb_ax_save_flags=$ERLCFLAGS 20572 20573 20574 20575 FCFLAGS_maxminddb_ax_save_flags=$FCFLAGS 20576 20577 20578 20579 FCLIBS_maxminddb_ax_save_flags=$FCLIBS 20580 20581 20582 20583 FFLAGS_maxminddb_ax_save_flags=$FFLAGS 20584 20585 20586 20587 FLIBS_maxminddb_ax_save_flags=$FLIBS 20588 20589 20590 20591 GCJFLAGS_maxminddb_ax_save_flags=$GCJFLAGS 20592 20593 20594 20595 JAVACFLAGS_maxminddb_ax_save_flags=$JAVACFLAGS 20596 20597 20598 20599 LDFLAGS_maxminddb_ax_save_flags=$LDFLAGS 20600 20601 20602 20603 LIBS_maxminddb_ax_save_flags=$LIBS 20604 20605 20606 20607 OBJCFLAGS_maxminddb_ax_save_flags=$OBJCFLAGS 20608 20609 20610 20611 OBJCXXFLAGS_maxminddb_ax_save_flags=$OBJCXXFLAGS 20612 20613 20614 20615 UPCFLAGS_maxminddb_ax_save_flags=$UPCFLAGS 20616 20617 20618 20619 VALAFLAGS_maxminddb_ax_save_flags=$VALAFLAGS 20620 20621 20622 20623 MAXMINDDB_CFLAGS="-I$with_maxminddb/include" 20624 MAXMINDDB_LIBS="-L$with_maxminddb/lib" 20625 CFLAGS="$CFLAGS $MAXMINDDB_CFLAGS" 20626 LIBS="$LIBS $MAXMINDDB_LIBS" 20627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MMDB_open" >&5 20628 printf %s "checking for library containing MMDB_open... " >&6; } 20629 if test ${ac_cv_search_MMDB_open+y} 20630 then : 20631 printf %s "(cached) " >&6 20632 else case e in #( 20633 e) ac_func_search_save_LIBS=$LIBS 20634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20635 /* end confdefs.h. */ 20636 20637 /* Override any GCC internal prototype to avoid an error. 20638 Use char because int might match the return type of a GCC 20639 builtin and then its argument prototype would still apply. 20640 The 'extern "C"' is for builds by C++ compilers; 20641 although this is not generally supported in C code supporting it here 20642 has little cost and some practical benefit (sr 110532). */ 20643 #ifdef __cplusplus 20644 extern "C" 20645 #endif 20646 char MMDB_open (void); 20647 int 20648 main (void) 20649 { 20650 return MMDB_open (); 20651 ; 20652 return 0; 20653 } 20654 _ACEOF 20655 for ac_lib in '' maxminddb 20656 do 20657 if test -z "$ac_lib"; then 20658 ac_res="none required" 20659 else 20660 ac_res=-l$ac_lib 20661 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20662 fi 20663 if ac_fn_c_try_link "$LINENO" 20664 then : 20665 ac_cv_search_MMDB_open=$ac_res 20666 fi 20667 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20668 conftest$ac_exeext 20669 if test ${ac_cv_search_MMDB_open+y} 20670 then : 20671 break 20672 fi 20673 done 20674 if test ${ac_cv_search_MMDB_open+y} 20675 then : 20676 20677 else case e in #( 20678 e) ac_cv_search_MMDB_open=no ;; 20679 esac 20680 fi 20681 rm conftest.$ac_ext 20682 LIBS=$ac_func_search_save_LIBS ;; 20683 esac 20684 fi 20685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MMDB_open" >&5 20686 printf "%s\n" "$ac_cv_search_MMDB_open" >&6; } 20687 ac_res=$ac_cv_search_MMDB_open 20688 if test "$ac_res" != no 20689 then : 20690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20691 20692 printf "%s\n" "#define HAVE_GEOIP2 1" >>confdefs.h 20693 20694 MAXMINDDB_LIBS="$MAXMINDDB_LIBS $ac_cv_search_MMDB_open" 20695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&5 20696 printf "%s\n" "$as_me: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&6;} 20697 MAXMINDDB_PREFIX=$with_maxminddb 20698 20699 else case e in #( 20700 e) as_fn_error $? "GeoIP2 requested, but libmaxminddb not found" "$LINENO" 5 ;; 20701 esac 20702 fi 20703 20704 20705 CCASFLAGS=$CCASFLAGS_maxminddb_ax_save_flags 20706 20707 20708 CFLAGS=$CFLAGS_maxminddb_ax_save_flags 20709 20710 20711 CPPFLAGS=$CPPFLAGS_maxminddb_ax_save_flags 20712 20713 20714 CXXFLAGS=$CXXFLAGS_maxminddb_ax_save_flags 20715 20716 20717 ERLCFLAGS=$ERLCFLAGS_maxminddb_ax_save_flags 20718 20719 20720 FCFLAGS=$FCFLAGS_maxminddb_ax_save_flags 20721 20722 20723 FCLIBS=$FCLIBS_maxminddb_ax_save_flags 20724 20725 20726 FFLAGS=$FFLAGS_maxminddb_ax_save_flags 20727 20728 20729 FLIBS=$FLIBS_maxminddb_ax_save_flags 20730 20731 20732 GCJFLAGS=$GCJFLAGS_maxminddb_ax_save_flags 20733 20734 20735 JAVACFLAGS=$JAVACFLAGS_maxminddb_ax_save_flags 20736 20737 20738 LDFLAGS=$LDFLAGS_maxminddb_ax_save_flags 20739 20740 20741 LIBS=$LIBS_maxminddb_ax_save_flags 20742 20743 20744 OBJCFLAGS=$OBJCFLAGS_maxminddb_ax_save_flags 20745 20746 20747 OBJCXXFLAGS=$OBJCXXFLAGS_maxminddb_ax_save_flags 20748 20749 20750 UPCFLAGS=$UPCFLAGS_maxminddb_ax_save_flags 20751 20752 20753 VALAFLAGS=$VALAFLAGS_maxminddb_ax_save_flags 20754 20755 20756 20757 ;; 20758 esac 20759 20760 20761 fi 20762 20763 if test -n "$MAXMINDDB_LIBS"; then 20764 HAVE_GEOIP2_TRUE= 20765 HAVE_GEOIP2_FALSE='#' 20766 else 20767 HAVE_GEOIP2_TRUE='#' 20768 HAVE_GEOIP2_FALSE= 20769 fi 20770 20771 20772 20773 20774 20775 20776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 20777 printf %s "checking for egrep -e... " >&6; } 20778 if test ${ac_cv_path_EGREP_TRADITIONAL+y} 20779 then : 20780 printf %s "(cached) " >&6 20781 else case e in #( 20782 e) if test -z "$EGREP_TRADITIONAL"; then 20783 ac_path_EGREP_TRADITIONAL_found=false 20784 # Loop through the user's path and test for each of PROGNAME-LIST 20785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 20787 do 20788 IFS=$as_save_IFS 20789 case $as_dir in #((( 20790 '') as_dir=./ ;; 20791 */) ;; 20792 *) as_dir=$as_dir/ ;; 20793 esac 20794 for ac_prog in grep ggrep 20795 do 20796 for ac_exec_ext in '' $ac_executable_extensions; do 20797 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" 20798 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue 20799 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. 20800 # Check for GNU $ac_path_EGREP_TRADITIONAL 20801 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( 20802 *GNU*) 20803 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; 20804 #( 20805 *) 20806 ac_count=0 20807 printf %s 0123456789 >"conftest.in" 20808 while : 20809 do 20810 cat "conftest.in" "conftest.in" >"conftest.tmp" 20811 mv "conftest.tmp" "conftest.in" 20812 cp "conftest.in" "conftest.nl" 20813 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" 20814 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 20815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 20816 as_fn_arith $ac_count + 1 && ac_count=$as_val 20817 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then 20818 # Best one so far, save it but keep looking for a better one 20819 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" 20820 ac_path_EGREP_TRADITIONAL_max=$ac_count 20821 fi 20822 # 10*(2^10) chars as input seems more than enough 20823 test $ac_count -gt 10 && break 20824 done 20825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 20826 esac 20827 20828 $ac_path_EGREP_TRADITIONAL_found && break 3 20829 done 20830 done 20831 done 20832 IFS=$as_save_IFS 20833 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then 20834 : 20835 fi 20836 else 20837 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL 20838 fi 20839 20840 if test "$ac_cv_path_EGREP_TRADITIONAL" 20841 then : 20842 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" 20843 else case e in #( 20844 e) if test -z "$EGREP_TRADITIONAL"; then 20845 ac_path_EGREP_TRADITIONAL_found=false 20846 # Loop through the user's path and test for each of PROGNAME-LIST 20847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20848 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 20849 do 20850 IFS=$as_save_IFS 20851 case $as_dir in #((( 20852 '') as_dir=./ ;; 20853 */) ;; 20854 *) as_dir=$as_dir/ ;; 20855 esac 20856 for ac_prog in egrep 20857 do 20858 for ac_exec_ext in '' $ac_executable_extensions; do 20859 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" 20860 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue 20861 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. 20862 # Check for GNU $ac_path_EGREP_TRADITIONAL 20863 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( 20864 *GNU*) 20865 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; 20866 #( 20867 *) 20868 ac_count=0 20869 printf %s 0123456789 >"conftest.in" 20870 while : 20871 do 20872 cat "conftest.in" "conftest.in" >"conftest.tmp" 20873 mv "conftest.tmp" "conftest.in" 20874 cp "conftest.in" "conftest.nl" 20875 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" 20876 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 20877 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 20878 as_fn_arith $ac_count + 1 && ac_count=$as_val 20879 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then 20880 # Best one so far, save it but keep looking for a better one 20881 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" 20882 ac_path_EGREP_TRADITIONAL_max=$ac_count 20883 fi 20884 # 10*(2^10) chars as input seems more than enough 20885 test $ac_count -gt 10 && break 20886 done 20887 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 20888 esac 20889 20890 $ac_path_EGREP_TRADITIONAL_found && break 3 20891 done 20892 done 20893 done 20894 IFS=$as_save_IFS 20895 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then 20896 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 20897 fi 20898 else 20899 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL 20900 fi 20901 ;; 20902 esac 20903 fi ;; 20904 esac 20905 fi 20906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 20907 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } 20908 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL 20909 20910 20911 20912 20913 20914 ac_ext=c 20915 ac_cpp='$CPP $CPPFLAGS' 20916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20918 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20919 20920 ax_pthread_ok=no 20921 20922 # We used to check for pthread.h first, but this fails if pthread.h 20923 # requires special compiler flags (e.g. on Tru64 or Sequent). 20924 # It gets checked for in the link test anyway. 20925 20926 # First of all, check if the user has set any of the PTHREAD_LIBS, 20927 # etcetera environment variables, and if threads linking works using 20928 # them: 20929 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 20930 ax_pthread_save_CC="$CC" 20931 ax_pthread_save_CFLAGS="$CFLAGS" 20932 ax_pthread_save_LIBS="$LIBS" 20933 if test "x$PTHREAD_CC" != "x" 20934 then : 20935 CC="$PTHREAD_CC" 20936 fi 20937 if test "x$PTHREAD_CXX" != "x" 20938 then : 20939 CXX="$PTHREAD_CXX" 20940 fi 20941 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 20942 LIBS="$PTHREAD_LIBS $LIBS" 20943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 20944 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 20945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20946 /* end confdefs.h. */ 20947 20948 /* Override any GCC internal prototype to avoid an error. 20949 Use char because int might match the return type of a GCC 20950 builtin and then its argument prototype would still apply. 20951 The 'extern "C"' is for builds by C++ compilers; 20952 although this is not generally supported in C code supporting it here 20953 has little cost and some practical benefit (sr 110532). */ 20954 #ifdef __cplusplus 20955 extern "C" 20956 #endif 20957 char pthread_join (void); 20958 int 20959 main (void) 20960 { 20961 return pthread_join (); 20962 ; 20963 return 0; 20964 } 20965 _ACEOF 20966 if ac_fn_c_try_link "$LINENO" 20967 then : 20968 ax_pthread_ok=yes 20969 fi 20970 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20971 conftest$ac_exeext conftest.$ac_ext 20972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 20973 printf "%s\n" "$ax_pthread_ok" >&6; } 20974 if test "x$ax_pthread_ok" = "xno"; then 20975 PTHREAD_LIBS="" 20976 PTHREAD_CFLAGS="" 20977 fi 20978 CC="$ax_pthread_save_CC" 20979 CFLAGS="$ax_pthread_save_CFLAGS" 20980 LIBS="$ax_pthread_save_LIBS" 20981 fi 20982 20983 # We must check for the threads library under a number of different 20984 # names; the ordering is very important because some systems 20985 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the 20986 # libraries is broken (non-POSIX). 20987 20988 # Create a list of thread flags to try. Items with a "," contain both 20989 # C compiler flags (before ",") and linker flags (after ","). Other items 20990 # starting with a "-" are C compiler flags, and remaining items are 20991 # library names, except for "none" which indicates that we try without 20992 # any flags at all, and "pthread-config" which is a program returning 20993 # the flags for the Pth emulation library. 20994 20995 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 20996 20997 # The ordering *is* (sometimes) important. Some notes on the 20998 # individual items follow: 20999 21000 # pthreads: AIX (must check this before -lpthread) 21001 # none: in case threads are in libc; should be tried before -Kthread and 21002 # other compiler flags to prevent continual compiler warnings 21003 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 21004 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 21005 # (Note: HP C rejects this with "bad form for `-t' option") 21006 # -pthreads: Solaris/gcc (Note: HP C also rejects) 21007 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 21008 # doesn't hurt to check since this sometimes defines pthreads and 21009 # -D_REENTRANT too), HP C (must be checked before -lpthread, which 21010 # is present but should not be used directly; and before -mthreads, 21011 # because the compiler interprets this as "-mt" + "-hreads") 21012 # -mthreads: Mingw32/gcc, Lynx/gcc 21013 # pthread: Linux, etcetera 21014 # --thread-safe: KAI C++ 21015 # pthread-config: use pthread-config program (for GNU Pth library) 21016 21017 case $target_os in 21018 21019 freebsd*) 21020 21021 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 21022 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 21023 21024 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 21025 ;; 21026 21027 hpux*) 21028 21029 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 21030 # multi-threading and also sets -lpthread." 21031 21032 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 21033 ;; 21034 21035 openedition*) 21036 21037 # IBM z/OS requires a feature-test macro to be defined in order to 21038 # enable POSIX threads at all, so give the user a hint if this is 21039 # not set. (We don't define these ourselves, as they can affect 21040 # other portions of the system API in unpredictable ways.) 21041 21042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21043 /* end confdefs.h. */ 21044 21045 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 21046 AX_PTHREAD_ZOS_MISSING 21047 # endif 21048 21049 _ACEOF 21050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21051 $EGREP_TRADITIONAL "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 21052 then : 21053 { 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 21054 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 21055 fi 21056 rm -rf conftest* 21057 21058 ;; 21059 21060 solaris*) 21061 21062 # On Solaris (at least, for some versions), libc contains stubbed 21063 # (non-functional) versions of the pthreads routines, so link-based 21064 # tests will erroneously succeed. (N.B.: The stubs are missing 21065 # pthread_cleanup_push, or rather a function called by this macro, 21066 # so we could check for that, but who knows whether they'll stub 21067 # that too in a future libc.) So we'll check first for the 21068 # standard Solaris way of linking pthreads (-mt -lpthread). 21069 21070 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" 21071 ;; 21072 esac 21073 21074 # Are we compiling with Clang? 21075 21076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 21077 printf %s "checking whether $CC is Clang... " >&6; } 21078 if test ${ax_cv_PTHREAD_CLANG+y} 21079 then : 21080 printf %s "(cached) " >&6 21081 else case e in #( 21082 e) ax_cv_PTHREAD_CLANG=no 21083 # Note that Autoconf sets GCC=yes for Clang as well as GCC 21084 if test "x$GCC" = "xyes"; then 21085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21086 /* end confdefs.h. */ 21087 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 21088 # if defined(__clang__) && defined(__llvm__) 21089 AX_PTHREAD_CC_IS_CLANG 21090 # endif 21091 21092 _ACEOF 21093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21094 $EGREP_TRADITIONAL "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 21095 then : 21096 ax_cv_PTHREAD_CLANG=yes 21097 fi 21098 rm -rf conftest* 21099 21100 fi 21101 ;; 21102 esac 21103 fi 21104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 21105 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } 21106 ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 21107 21108 21109 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 21110 21111 # Note that for GCC and Clang -pthread generally implies -lpthread, 21112 # except when -nostdlib is passed. 21113 # This is problematic using libtool to build C++ shared libraries with pthread: 21114 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 21115 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 21116 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 21117 # To solve this, first try -pthread together with -lpthread for GCC 21118 21119 if test "x$GCC" = "xyes" 21120 then : 21121 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" 21122 fi 21123 21124 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first 21125 21126 if test "x$ax_pthread_clang" = "xyes" 21127 then : 21128 ax_pthread_flags="-pthread,-lpthread -pthread" 21129 fi 21130 21131 21132 # The presence of a feature test macro requesting re-entrant function 21133 # definitions is, on some systems, a strong hint that pthreads support is 21134 # correctly enabled 21135 21136 case $target_os in 21137 darwin* | hpux* | linux* | osf* | solaris*) 21138 ax_pthread_check_macro="_REENTRANT" 21139 ;; 21140 21141 aix*) 21142 ax_pthread_check_macro="_THREAD_SAFE" 21143 ;; 21144 21145 *) 21146 ax_pthread_check_macro="--" 21147 ;; 21148 esac 21149 if test "x$ax_pthread_check_macro" = "x--" 21150 then : 21151 ax_pthread_check_cond=0 21152 else case e in #( 21153 e) ax_pthread_check_cond="!defined($ax_pthread_check_macro)" ;; 21154 esac 21155 fi 21156 21157 21158 if test "x$ax_pthread_ok" = "xno"; then 21159 for ax_pthread_try_flag in $ax_pthread_flags; do 21160 21161 case $ax_pthread_try_flag in 21162 none) 21163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 21164 printf %s "checking whether pthreads work without any flags... " >&6; } 21165 ;; 21166 21167 *,*) 21168 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` 21169 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` 21170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 21171 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } 21172 ;; 21173 21174 -*) 21175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 21176 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 21177 PTHREAD_CFLAGS="$ax_pthread_try_flag" 21178 ;; 21179 21180 pthread-config) 21181 # Extract the first word of "pthread-config", so it can be a program name with args. 21182 set dummy pthread-config; ac_word=$2 21183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21184 printf %s "checking for $ac_word... " >&6; } 21185 if test ${ac_cv_prog_ax_pthread_config+y} 21186 then : 21187 printf %s "(cached) " >&6 21188 else case e in #( 21189 e) if test -n "$ax_pthread_config"; then 21190 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 21191 else 21192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21193 for as_dir in $PATH 21194 do 21195 IFS=$as_save_IFS 21196 case $as_dir in #((( 21197 '') as_dir=./ ;; 21198 */) ;; 21199 *) as_dir=$as_dir/ ;; 21200 esac 21201 for ac_exec_ext in '' $ac_executable_extensions; do 21202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21203 ac_cv_prog_ax_pthread_config="yes" 21204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21205 break 2 21206 fi 21207 done 21208 done 21209 IFS=$as_save_IFS 21210 21211 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 21212 fi ;; 21213 esac 21214 fi 21215 ax_pthread_config=$ac_cv_prog_ax_pthread_config 21216 if test -n "$ax_pthread_config"; then 21217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 21218 printf "%s\n" "$ax_pthread_config" >&6; } 21219 else 21220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21221 printf "%s\n" "no" >&6; } 21222 fi 21223 21224 21225 if test "x$ax_pthread_config" = "xno" 21226 then : 21227 continue 21228 fi 21229 PTHREAD_CFLAGS="`pthread-config --cflags`" 21230 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 21231 ;; 21232 21233 *) 21234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 21235 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 21236 PTHREAD_LIBS="-l$ax_pthread_try_flag" 21237 ;; 21238 esac 21239 21240 ax_pthread_save_CFLAGS="$CFLAGS" 21241 ax_pthread_save_LIBS="$LIBS" 21242 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 21243 LIBS="$PTHREAD_LIBS $LIBS" 21244 21245 # Check for various functions. We must include pthread.h, 21246 # since some functions may be macros. (On the Sequent, we 21247 # need a special flag -Kthread to make this header compile.) 21248 # We check for pthread_join because it is in -lpthread on IRIX 21249 # while pthread_create is in libc. We check for pthread_attr_init 21250 # due to DEC craziness with -lpthreads. We check for 21251 # pthread_cleanup_push because it is one of the few pthread 21252 # functions on Solaris that doesn't have a non-functional libc stub. 21253 # We try pthread_create on general principles. 21254 21255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21256 /* end confdefs.h. */ 21257 #include <pthread.h> 21258 # if $ax_pthread_check_cond 21259 # error "$ax_pthread_check_macro must be defined" 21260 # endif 21261 static void *some_global = NULL; 21262 static void routine(void *a) 21263 { 21264 /* To avoid any unused-parameter or 21265 unused-but-set-parameter warning. */ 21266 some_global = a; 21267 } 21268 static void *start_routine(void *a) { return a; } 21269 int 21270 main (void) 21271 { 21272 pthread_t th; pthread_attr_t attr; 21273 pthread_create(&th, 0, start_routine, 0); 21274 pthread_join(th, 0); 21275 pthread_attr_init(&attr); 21276 pthread_cleanup_push(routine, 0); 21277 pthread_cleanup_pop(0) /* ; */ 21278 ; 21279 return 0; 21280 } 21281 _ACEOF 21282 if ac_fn_c_try_link "$LINENO" 21283 then : 21284 ax_pthread_ok=yes 21285 fi 21286 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21287 conftest$ac_exeext conftest.$ac_ext 21288 21289 CFLAGS="$ax_pthread_save_CFLAGS" 21290 LIBS="$ax_pthread_save_LIBS" 21291 21292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 21293 printf "%s\n" "$ax_pthread_ok" >&6; } 21294 if test "x$ax_pthread_ok" = "xyes" 21295 then : 21296 break 21297 fi 21298 21299 PTHREAD_LIBS="" 21300 PTHREAD_CFLAGS="" 21301 done 21302 fi 21303 21304 21305 # Clang needs special handling, because older versions handle the -pthread 21306 # option in a rather... idiosyncratic way 21307 21308 if test "x$ax_pthread_clang" = "xyes"; then 21309 21310 # Clang takes -pthread; it has never supported any other flag 21311 21312 # (Note 1: This will need to be revisited if a system that Clang 21313 # supports has POSIX threads in a separate library. This tends not 21314 # to be the way of modern systems, but it's conceivable.) 21315 21316 # (Note 2: On some systems, notably Darwin, -pthread is not needed 21317 # to get POSIX threads support; the API is always present and 21318 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 21319 # -pthread does define _REENTRANT, and while the Darwin headers 21320 # ignore this macro, third-party headers might not.) 21321 21322 # However, older versions of Clang make a point of warning the user 21323 # that, in an invocation where only linking and no compilation is 21324 # taking place, the -pthread option has no effect ("argument unused 21325 # during compilation"). They expect -pthread to be passed in only 21326 # when source code is being compiled. 21327 # 21328 # Problem is, this is at odds with the way Automake and most other 21329 # C build frameworks function, which is that the same flags used in 21330 # compilation (CFLAGS) are also used in linking. Many systems 21331 # supported by AX_PTHREAD require exactly this for POSIX threads 21332 # support, and in fact it is often not straightforward to specify a 21333 # flag that is used only in the compilation phase and not in 21334 # linking. Such a scenario is extremely rare in practice. 21335 # 21336 # Even though use of the -pthread flag in linking would only print 21337 # a warning, this can be a nuisance for well-run software projects 21338 # that build with -Werror. So if the active version of Clang has 21339 # this misfeature, we search for an option to squash it. 21340 21341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 21342 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 21343 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} 21344 then : 21345 printf %s "(cached) " >&6 21346 else case e in #( 21347 e) ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 21348 # Create an alternate version of $ac_link that compiles and 21349 # links in two steps (.c -> .o, .o -> exe) instead of one 21350 # (.c -> exe), because the warning occurs only in the second 21351 # step 21352 ax_pthread_save_ac_link="$ac_link" 21353 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 21354 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"` 21355 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 21356 ax_pthread_save_CFLAGS="$CFLAGS" 21357 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 21358 if test "x$ax_pthread_try" = "xunknown" 21359 then : 21360 break 21361 fi 21362 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 21363 ac_link="$ax_pthread_save_ac_link" 21364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21365 /* end confdefs.h. */ 21366 int main(void){return 0;} 21367 _ACEOF 21368 if ac_fn_c_try_link "$LINENO" 21369 then : 21370 ac_link="$ax_pthread_2step_ac_link" 21371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21372 /* end confdefs.h. */ 21373 int main(void){return 0;} 21374 _ACEOF 21375 if ac_fn_c_try_link "$LINENO" 21376 then : 21377 break 21378 fi 21379 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21380 conftest$ac_exeext conftest.$ac_ext 21381 21382 fi 21383 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21384 conftest$ac_exeext conftest.$ac_ext 21385 done 21386 ac_link="$ax_pthread_save_ac_link" 21387 CFLAGS="$ax_pthread_save_CFLAGS" 21388 if test "x$ax_pthread_try" = "x" 21389 then : 21390 ax_pthread_try=no 21391 fi 21392 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 21393 ;; 21394 esac 21395 fi 21396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 21397 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 21398 21399 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 21400 no | unknown) ;; 21401 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 21402 esac 21403 21404 fi # $ax_pthread_clang = yes 21405 21406 21407 21408 # Various other checks: 21409 if test "x$ax_pthread_ok" = "xyes"; then 21410 ax_pthread_save_CFLAGS="$CFLAGS" 21411 ax_pthread_save_LIBS="$LIBS" 21412 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 21413 LIBS="$PTHREAD_LIBS $LIBS" 21414 21415 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 21416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 21417 printf %s "checking for joinable pthread attribute... " >&6; } 21418 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} 21419 then : 21420 printf %s "(cached) " >&6 21421 else case e in #( 21422 e) ax_cv_PTHREAD_JOINABLE_ATTR=unknown 21423 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 21424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21425 /* end confdefs.h. */ 21426 #include <pthread.h> 21427 int 21428 main (void) 21429 { 21430 int attr = $ax_pthread_attr; return attr /* ; */ 21431 ; 21432 return 0; 21433 } 21434 _ACEOF 21435 if ac_fn_c_try_link "$LINENO" 21436 then : 21437 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 21438 fi 21439 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21440 conftest$ac_exeext conftest.$ac_ext 21441 done 21442 ;; 21443 esac 21444 fi 21445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 21446 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 21447 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 21448 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 21449 test "x$ax_pthread_joinable_attr_defined" != "xyes" 21450 then : 21451 21452 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h 21453 21454 ax_pthread_joinable_attr_defined=yes 21455 21456 fi 21457 21458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 21459 printf %s "checking whether more special flags are required for pthreads... " >&6; } 21460 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} 21461 then : 21462 printf %s "(cached) " >&6 21463 else case e in #( 21464 e) ax_cv_PTHREAD_SPECIAL_FLAGS=no 21465 case $target_os in 21466 solaris*) 21467 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 21468 ;; 21469 esac 21470 ;; 21471 esac 21472 fi 21473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 21474 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 21475 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 21476 test "x$ax_pthread_special_flags_added" != "xyes" 21477 then : 21478 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 21479 ax_pthread_special_flags_added=yes 21480 fi 21481 21482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 21483 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 21484 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 21485 then : 21486 printf %s "(cached) " >&6 21487 else case e in #( 21488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21489 /* end confdefs.h. */ 21490 #include <pthread.h> 21491 int 21492 main (void) 21493 { 21494 int i = PTHREAD_PRIO_INHERIT; 21495 return i; 21496 ; 21497 return 0; 21498 } 21499 _ACEOF 21500 if ac_fn_c_try_link "$LINENO" 21501 then : 21502 ax_cv_PTHREAD_PRIO_INHERIT=yes 21503 else case e in #( 21504 e) ax_cv_PTHREAD_PRIO_INHERIT=no ;; 21505 esac 21506 fi 21507 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21508 conftest$ac_exeext conftest.$ac_ext 21509 ;; 21510 esac 21511 fi 21512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 21513 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 21514 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 21515 test "x$ax_pthread_prio_inherit_defined" != "xyes" 21516 then : 21517 21518 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 21519 21520 ax_pthread_prio_inherit_defined=yes 21521 21522 fi 21523 21524 CFLAGS="$ax_pthread_save_CFLAGS" 21525 LIBS="$ax_pthread_save_LIBS" 21526 21527 # More AIX lossage: compile with *_r variant 21528 if test "x$GCC" != "xyes"; then 21529 case $target_os in 21530 aix*) 21531 case "x/$CC" in #( 21532 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 21533 #handle absolute path differently from PATH based program lookup 21534 case "x$CC" in #( 21535 x/*) : 21536 21537 if as_fn_executable_p ${CC}_r 21538 then : 21539 PTHREAD_CC="${CC}_r" 21540 fi 21541 if test "x${CXX}" != "x" 21542 then : 21543 if as_fn_executable_p ${CXX}_r 21544 then : 21545 PTHREAD_CXX="${CXX}_r" 21546 fi 21547 fi 21548 ;; #( 21549 *) : 21550 21551 for ac_prog in ${CC}_r 21552 do 21553 # Extract the first word of "$ac_prog", so it can be a program name with args. 21554 set dummy $ac_prog; ac_word=$2 21555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21556 printf %s "checking for $ac_word... " >&6; } 21557 if test ${ac_cv_prog_PTHREAD_CC+y} 21558 then : 21559 printf %s "(cached) " >&6 21560 else case e in #( 21561 e) if test -n "$PTHREAD_CC"; then 21562 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 21563 else 21564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21565 for as_dir in $PATH 21566 do 21567 IFS=$as_save_IFS 21568 case $as_dir in #((( 21569 '') as_dir=./ ;; 21570 */) ;; 21571 *) as_dir=$as_dir/ ;; 21572 esac 21573 for ac_exec_ext in '' $ac_executable_extensions; do 21574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21575 ac_cv_prog_PTHREAD_CC="$ac_prog" 21576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21577 break 2 21578 fi 21579 done 21580 done 21581 IFS=$as_save_IFS 21582 21583 fi ;; 21584 esac 21585 fi 21586 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 21587 if test -n "$PTHREAD_CC"; then 21588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 21589 printf "%s\n" "$PTHREAD_CC" >&6; } 21590 else 21591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21592 printf "%s\n" "no" >&6; } 21593 fi 21594 21595 21596 test -n "$PTHREAD_CC" && break 21597 done 21598 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 21599 21600 if test "x${CXX}" != "x" 21601 then : 21602 for ac_prog in ${CXX}_r 21603 do 21604 # Extract the first word of "$ac_prog", so it can be a program name with args. 21605 set dummy $ac_prog; ac_word=$2 21606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21607 printf %s "checking for $ac_word... " >&6; } 21608 if test ${ac_cv_prog_PTHREAD_CXX+y} 21609 then : 21610 printf %s "(cached) " >&6 21611 else case e in #( 21612 e) if test -n "$PTHREAD_CXX"; then 21613 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. 21614 else 21615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21616 for as_dir in $PATH 21617 do 21618 IFS=$as_save_IFS 21619 case $as_dir in #((( 21620 '') as_dir=./ ;; 21621 */) ;; 21622 *) as_dir=$as_dir/ ;; 21623 esac 21624 for ac_exec_ext in '' $ac_executable_extensions; do 21625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21626 ac_cv_prog_PTHREAD_CXX="$ac_prog" 21627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21628 break 2 21629 fi 21630 done 21631 done 21632 IFS=$as_save_IFS 21633 21634 fi ;; 21635 esac 21636 fi 21637 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX 21638 if test -n "$PTHREAD_CXX"; then 21639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 21640 printf "%s\n" "$PTHREAD_CXX" >&6; } 21641 else 21642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21643 printf "%s\n" "no" >&6; } 21644 fi 21645 21646 21647 test -n "$PTHREAD_CXX" && break 21648 done 21649 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 21650 21651 fi 21652 21653 ;; 21654 esac 21655 ;; #( 21656 *) : 21657 ;; 21658 esac 21659 ;; 21660 esac 21661 fi 21662 fi 21663 21664 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 21665 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 21666 21667 21668 21669 21670 21671 21672 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 21673 if test "x$ax_pthread_ok" = "xyes"; then 21674 21675 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 21676 21677 : 21678 else 21679 ax_pthread_ok=no 21680 21681 fi 21682 ac_ext=c 21683 ac_cpp='$CPP $CPPFLAGS' 21684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21686 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21687 21688 21689 21690 LIBS="$PTHREAD_LIBS $LIBS" 21691 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 21692 CC="$PTHREAD_CC" 21693 21694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5 21695 printf %s "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; } 21696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21697 /* end confdefs.h. */ 21698 #include <pthread.h> 21699 int 21700 main (void) 21701 { 21702 (void)pthread_mutexattr_settype(&(pthread_mutexattr_t){ NULL }, PTHREAD_MUTEX_ADAPTIVE_NP); 21703 ; 21704 return 0; 21705 } 21706 _ACEOF 21707 if ac_fn_c_try_compile "$LINENO" 21708 then : 21709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21710 printf "%s\n" "yes" >&6; } 21711 21712 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h 21713 21714 else case e in #( 21715 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21716 printf "%s\n" "no" >&6; } ;; 21717 esac 21718 fi 21719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21720 21721 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize" 21722 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes 21723 then : 21724 printf "%s\n" "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h 21725 21726 fi 21727 ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize" 21728 if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes 21729 then : 21730 printf "%s\n" "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h 21731 21732 fi 21733 ac_fn_c_check_func "$LINENO" "pthread_barrier_init" "ac_cv_func_pthread_barrier_init" 21734 if test "x$ac_cv_func_pthread_barrier_init" = xyes 21735 then : 21736 printf "%s\n" "#define HAVE_PTHREAD_BARRIER_INIT 1" >>confdefs.h 21737 21738 fi 21739 ac_fn_c_check_func "$LINENO" "pthread_spin_init" "ac_cv_func_pthread_spin_init" 21740 if test "x$ac_cv_func_pthread_spin_init" = xyes 21741 then : 21742 printf "%s\n" "#define HAVE_PTHREAD_SPIN_INIT 1" >>confdefs.h 21743 21744 fi 21745 21746 21747 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 21748 if test "x$ac_cv_header_sched_h" = xyes 21749 then : 21750 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h 21751 21752 fi 21753 21754 21755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5 21756 printf %s "checking for library containing sched_yield... " >&6; } 21757 if test ${ac_cv_search_sched_yield+y} 21758 then : 21759 printf %s "(cached) " >&6 21760 else case e in #( 21761 e) ac_func_search_save_LIBS=$LIBS 21762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21763 /* end confdefs.h. */ 21764 21765 /* Override any GCC internal prototype to avoid an error. 21766 Use char because int might match the return type of a GCC 21767 builtin and then its argument prototype would still apply. 21768 The 'extern "C"' is for builds by C++ compilers; 21769 although this is not generally supported in C code supporting it here 21770 has little cost and some practical benefit (sr 110532). */ 21771 #ifdef __cplusplus 21772 extern "C" 21773 #endif 21774 char sched_yield (void); 21775 int 21776 main (void) 21777 { 21778 return sched_yield (); 21779 ; 21780 return 0; 21781 } 21782 _ACEOF 21783 for ac_lib in '' rt 21784 do 21785 if test -z "$ac_lib"; then 21786 ac_res="none required" 21787 else 21788 ac_res=-l$ac_lib 21789 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21790 fi 21791 if ac_fn_c_try_link "$LINENO" 21792 then : 21793 ac_cv_search_sched_yield=$ac_res 21794 fi 21795 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21796 conftest$ac_exeext 21797 if test ${ac_cv_search_sched_yield+y} 21798 then : 21799 break 21800 fi 21801 done 21802 if test ${ac_cv_search_sched_yield+y} 21803 then : 21804 21805 else case e in #( 21806 e) ac_cv_search_sched_yield=no ;; 21807 esac 21808 fi 21809 rm conftest.$ac_ext 21810 LIBS=$ac_func_search_save_LIBS ;; 21811 esac 21812 fi 21813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5 21814 printf "%s\n" "$ac_cv_search_sched_yield" >&6; } 21815 ac_res=$ac_cv_search_sched_yield 21816 if test "$ac_res" != no 21817 then : 21818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21819 21820 fi 21821 21822 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield" 21823 if test "x$ac_cv_func_sched_yield" = xyes 21824 then : 21825 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h 21826 21827 fi 21828 ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield" 21829 if test "x$ac_cv_func_pthread_yield" = xyes 21830 then : 21831 printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h 21832 21833 fi 21834 ac_fn_c_check_func "$LINENO" "pthread_yield_np" "ac_cv_func_pthread_yield_np" 21835 if test "x$ac_cv_func_pthread_yield_np" = xyes 21836 then : 21837 printf "%s\n" "#define HAVE_PTHREAD_YIELD_NP 1" >>confdefs.h 21838 21839 fi 21840 21841 21842 # Look for functions relating to thread naming 21843 ac_fn_c_check_func "$LINENO" "pthread_setname_np" "ac_cv_func_pthread_setname_np" 21844 if test "x$ac_cv_func_pthread_setname_np" = xyes 21845 then : 21846 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h 21847 21848 fi 21849 ac_fn_c_check_func "$LINENO" "pthread_set_name_np" "ac_cv_func_pthread_set_name_np" 21850 if test "x$ac_cv_func_pthread_set_name_np" = xyes 21851 then : 21852 printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h 21853 21854 fi 21855 21856 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h> 21857 " 21858 if test "x$ac_cv_header_pthread_np_h" = xyes 21859 then : 21860 printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 21861 21862 fi 21863 21864 21865 # libuv 21866 21867 pkg_failed=no 21868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.37.0" >&5 21869 printf %s "checking for libuv >= 1.37.0... " >&6; } 21870 21871 if test -n "$LIBUV_CFLAGS"; then 21872 pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS" 21873 elif test -n "$PKG_CONFIG"; then 21874 if test -n "$PKG_CONFIG" && \ 21875 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.37.0\""; } >&5 21876 ($PKG_CONFIG --exists --print-errors "libuv >= 1.37.0") 2>&5 21877 ac_status=$? 21878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21879 test $ac_status = 0; }; then 21880 pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.37.0" 2>/dev/null` 21881 test "x$?" != "x0" && pkg_failed=yes 21882 else 21883 pkg_failed=yes 21884 fi 21885 else 21886 pkg_failed=untried 21887 fi 21888 if test -n "$LIBUV_LIBS"; then 21889 pkg_cv_LIBUV_LIBS="$LIBUV_LIBS" 21890 elif test -n "$PKG_CONFIG"; then 21891 if test -n "$PKG_CONFIG" && \ 21892 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.37.0\""; } >&5 21893 ($PKG_CONFIG --exists --print-errors "libuv >= 1.37.0") 2>&5 21894 ac_status=$? 21895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21896 test $ac_status = 0; }; then 21897 pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.37.0" 2>/dev/null` 21898 test "x$?" != "x0" && pkg_failed=yes 21899 else 21900 pkg_failed=yes 21901 fi 21902 else 21903 pkg_failed=untried 21904 fi 21905 21906 21907 21908 if test $pkg_failed = yes; then 21909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21910 printf "%s\n" "no" >&6; } 21911 21912 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21913 _pkg_short_errors_supported=yes 21914 else 21915 _pkg_short_errors_supported=no 21916 fi 21917 if test $_pkg_short_errors_supported = yes; then 21918 LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.37.0" 2>&1` 21919 else 21920 LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.37.0" 2>&1` 21921 fi 21922 # Put the nasty error message in config.log where it belongs 21923 echo "$LIBUV_PKG_ERRORS" >&5 21924 21925 21926 pkg_failed=no 21927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.34.0 libuv < 1.35.0" >&5 21928 printf %s "checking for libuv >= 1.34.0 libuv < 1.35.0... " >&6; } 21929 21930 if test -n "$LIBUV_CFLAGS"; then 21931 pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS" 21932 elif test -n "$PKG_CONFIG"; then 21933 if test -n "$PKG_CONFIG" && \ 21934 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.34.0 libuv < 1.35.0\""; } >&5 21935 ($PKG_CONFIG --exists --print-errors "libuv >= 1.34.0 libuv < 1.35.0") 2>&5 21936 ac_status=$? 21937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21938 test $ac_status = 0; }; then 21939 pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.34.0 libuv < 1.35.0" 2>/dev/null` 21940 test "x$?" != "x0" && pkg_failed=yes 21941 else 21942 pkg_failed=yes 21943 fi 21944 else 21945 pkg_failed=untried 21946 fi 21947 if test -n "$LIBUV_LIBS"; then 21948 pkg_cv_LIBUV_LIBS="$LIBUV_LIBS" 21949 elif test -n "$PKG_CONFIG"; then 21950 if test -n "$PKG_CONFIG" && \ 21951 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.34.0 libuv < 1.35.0\""; } >&5 21952 ($PKG_CONFIG --exists --print-errors "libuv >= 1.34.0 libuv < 1.35.0") 2>&5 21953 ac_status=$? 21954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21955 test $ac_status = 0; }; then 21956 pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>/dev/null` 21957 test "x$?" != "x0" && pkg_failed=yes 21958 else 21959 pkg_failed=yes 21960 fi 21961 else 21962 pkg_failed=untried 21963 fi 21964 21965 21966 21967 if test $pkg_failed = yes; then 21968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21969 printf "%s\n" "no" >&6; } 21970 21971 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21972 _pkg_short_errors_supported=yes 21973 else 21974 _pkg_short_errors_supported=no 21975 fi 21976 if test $_pkg_short_errors_supported = yes; then 21977 LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>&1` 21978 else 21979 LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>&1` 21980 fi 21981 # Put the nasty error message in config.log where it belongs 21982 echo "$LIBUV_PKG_ERRORS" >&5 21983 21984 as_fn_error $? "libuv >= 1.34.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5 21985 elif test $pkg_failed = untried; then 21986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21987 printf "%s\n" "no" >&6; } 21988 as_fn_error $? "libuv >= 1.34.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5 21989 else 21990 LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS 21991 LIBUV_LIBS=$pkg_cv_LIBUV_LIBS 21992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21993 printf "%s\n" "yes" >&6; } 21994 21995 fi 21996 elif test $pkg_failed = untried; then 21997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21998 printf "%s\n" "no" >&6; } 21999 22000 pkg_failed=no 22001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.34.0 libuv < 1.35.0" >&5 22002 printf %s "checking for libuv >= 1.34.0 libuv < 1.35.0... " >&6; } 22003 22004 if test -n "$LIBUV_CFLAGS"; then 22005 pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS" 22006 elif test -n "$PKG_CONFIG"; then 22007 if test -n "$PKG_CONFIG" && \ 22008 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.34.0 libuv < 1.35.0\""; } >&5 22009 ($PKG_CONFIG --exists --print-errors "libuv >= 1.34.0 libuv < 1.35.0") 2>&5 22010 ac_status=$? 22011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22012 test $ac_status = 0; }; then 22013 pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.34.0 libuv < 1.35.0" 2>/dev/null` 22014 test "x$?" != "x0" && pkg_failed=yes 22015 else 22016 pkg_failed=yes 22017 fi 22018 else 22019 pkg_failed=untried 22020 fi 22021 if test -n "$LIBUV_LIBS"; then 22022 pkg_cv_LIBUV_LIBS="$LIBUV_LIBS" 22023 elif test -n "$PKG_CONFIG"; then 22024 if test -n "$PKG_CONFIG" && \ 22025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.34.0 libuv < 1.35.0\""; } >&5 22026 ($PKG_CONFIG --exists --print-errors "libuv >= 1.34.0 libuv < 1.35.0") 2>&5 22027 ac_status=$? 22028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22029 test $ac_status = 0; }; then 22030 pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>/dev/null` 22031 test "x$?" != "x0" && pkg_failed=yes 22032 else 22033 pkg_failed=yes 22034 fi 22035 else 22036 pkg_failed=untried 22037 fi 22038 22039 22040 22041 if test $pkg_failed = yes; then 22042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22043 printf "%s\n" "no" >&6; } 22044 22045 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22046 _pkg_short_errors_supported=yes 22047 else 22048 _pkg_short_errors_supported=no 22049 fi 22050 if test $_pkg_short_errors_supported = yes; then 22051 LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>&1` 22052 else 22053 LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.34.0 libuv < 1.35.0" 2>&1` 22054 fi 22055 # Put the nasty error message in config.log where it belongs 22056 echo "$LIBUV_PKG_ERRORS" >&5 22057 22058 as_fn_error $? "libuv >= 1.34.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5 22059 elif test $pkg_failed = untried; then 22060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22061 printf "%s\n" "no" >&6; } 22062 as_fn_error $? "libuv >= 1.34.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5 22063 else 22064 LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS 22065 LIBUV_LIBS=$pkg_cv_LIBUV_LIBS 22066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22067 printf "%s\n" "yes" >&6; } 22068 22069 fi 22070 else 22071 LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS 22072 LIBUV_LIBS=$pkg_cv_LIBUV_LIBS 22073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22074 printf "%s\n" "yes" >&6; } 22075 22076 fi 22077 22078 22079 if test -n "$LIBUV_VERSION"; then 22080 pkg_cv_LIBUV_VERSION="$LIBUV_VERSION" 22081 elif test -n "$PKG_CONFIG"; then 22082 if test -n "$PKG_CONFIG" && \ 22083 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv\""; } >&5 22084 ($PKG_CONFIG --exists --print-errors "libuv") 2>&5 22085 ac_status=$? 22086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22087 test $ac_status = 0; }; then 22088 pkg_cv_LIBUV_VERSION=`$PKG_CONFIG --modversion "libuv" 2>/dev/null` 22089 test "x$?" != "x0" && pkg_failed=yes 22090 else 22091 pkg_failed=yes 22092 fi 22093 else 22094 pkg_failed=untried 22095 fi 22096 LIBUV_VERSION=$pkg_cv_LIBUV_VERSION 22097 22098 if test "x$LIBUV_VERSION" = x"" 22099 then : 22100 22101 fi 22102 22103 22104 22105 CCASFLAGS_libuv_ax_save_flags=$CCASFLAGS 22106 22107 22108 22109 CFLAGS_libuv_ax_save_flags=$CFLAGS 22110 22111 22112 22113 CPPFLAGS_libuv_ax_save_flags=$CPPFLAGS 22114 22115 22116 22117 CXXFLAGS_libuv_ax_save_flags=$CXXFLAGS 22118 22119 22120 22121 ERLCFLAGS_libuv_ax_save_flags=$ERLCFLAGS 22122 22123 22124 22125 FCFLAGS_libuv_ax_save_flags=$FCFLAGS 22126 22127 22128 22129 FCLIBS_libuv_ax_save_flags=$FCLIBS 22130 22131 22132 22133 FFLAGS_libuv_ax_save_flags=$FFLAGS 22134 22135 22136 22137 FLIBS_libuv_ax_save_flags=$FLIBS 22138 22139 22140 22141 GCJFLAGS_libuv_ax_save_flags=$GCJFLAGS 22142 22143 22144 22145 JAVACFLAGS_libuv_ax_save_flags=$JAVACFLAGS 22146 22147 22148 22149 LDFLAGS_libuv_ax_save_flags=$LDFLAGS 22150 22151 22152 22153 LIBS_libuv_ax_save_flags=$LIBS 22154 22155 22156 22157 OBJCFLAGS_libuv_ax_save_flags=$OBJCFLAGS 22158 22159 22160 22161 OBJCXXFLAGS_libuv_ax_save_flags=$OBJCXXFLAGS 22162 22163 22164 22165 UPCFLAGS_libuv_ax_save_flags=$UPCFLAGS 22166 22167 22168 22169 VALAFLAGS_libuv_ax_save_flags=$VALAFLAGS 22170 22171 22172 22173 CFLAGS="$CFLAGS $LIBUV_CFLAGS" 22174 LIBS="$LIBS $LIBUV_LIBS" 22175 22176 # libuv recvmmsg support 22177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 22178 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 22179 if test ${ac_cv_c_undeclared_builtin_options+y} 22180 then : 22181 printf %s "(cached) " >&6 22182 else case e in #( 22183 e) ac_save_CFLAGS=$CFLAGS 22184 ac_cv_c_undeclared_builtin_options='cannot detect' 22185 for ac_arg in '' -fno-builtin; do 22186 CFLAGS="$ac_save_CFLAGS $ac_arg" 22187 # This test program should *not* compile successfully. 22188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22189 /* end confdefs.h. */ 22190 22191 int 22192 main (void) 22193 { 22194 (void) strchr; 22195 ; 22196 return 0; 22197 } 22198 _ACEOF 22199 if ac_fn_c_try_compile "$LINENO" 22200 then : 22201 22202 else case e in #( 22203 e) # This test program should compile successfully. 22204 # No library function is consistently available on 22205 # freestanding implementations, so test against a dummy 22206 # declaration. Include always-available headers on the 22207 # off chance that they somehow elicit warnings. 22208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22209 /* end confdefs.h. */ 22210 #include <float.h> 22211 #include <limits.h> 22212 #include <stdarg.h> 22213 #include <stddef.h> 22214 extern void ac_decl (int, char *); 22215 22216 int 22217 main (void) 22218 { 22219 (void) ac_decl (0, (char *) 0); 22220 (void) ac_decl; 22221 22222 ; 22223 return 0; 22224 } 22225 _ACEOF 22226 if ac_fn_c_try_compile "$LINENO" 22227 then : 22228 if test x"$ac_arg" = x 22229 then : 22230 ac_cv_c_undeclared_builtin_options='none needed' 22231 else case e in #( 22232 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 22233 esac 22234 fi 22235 break 22236 fi 22237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 22238 esac 22239 fi 22240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22241 done 22242 CFLAGS=$ac_save_CFLAGS 22243 ;; 22244 esac 22245 fi 22246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 22247 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 22248 case $ac_cv_c_undeclared_builtin_options in #( 22249 'cannot detect') : 22250 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22251 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22252 as_fn_error $? "cannot make $CC report undeclared builtins 22253 See 'config.log' for more details" "$LINENO" 5; } ;; #( 22254 'none needed') : 22255 ac_c_undeclared_builtin_options='' ;; #( 22256 *) : 22257 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 22258 esac 22259 22260 ac_fn_check_decl "$LINENO" "UV_UDP_MMSG_FREE" "ac_cv_have_decl_UV_UDP_MMSG_FREE" "#include <uv.h> 22261 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22262 if test "x$ac_cv_have_decl_UV_UDP_MMSG_FREE" = xyes 22263 then : 22264 ac_have_decl=1 22265 else case e in #( 22266 e) ac_have_decl=0 ;; 22267 esac 22268 fi 22269 printf "%s\n" "#define HAVE_DECL_UV_UDP_MMSG_FREE $ac_have_decl" >>confdefs.h 22270 ac_fn_check_decl "$LINENO" "UV_UDP_MMSG_CHUNK" "ac_cv_have_decl_UV_UDP_MMSG_CHUNK" "#include <uv.h> 22271 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22272 if test "x$ac_cv_have_decl_UV_UDP_MMSG_CHUNK" = xyes 22273 then : 22274 ac_have_decl=1 22275 else case e in #( 22276 e) ac_have_decl=0 ;; 22277 esac 22278 fi 22279 printf "%s\n" "#define HAVE_DECL_UV_UDP_MMSG_CHUNK $ac_have_decl" >>confdefs.h 22280 22281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct msghdr uses padding for alignment" >&5 22282 printf %s "checking whether struct msghdr uses padding for alignment... " >&6; } 22283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22284 /* end confdefs.h. */ 22285 #include <sys/socket.h> 22286 int 22287 main (void) 22288 { 22289 const struct msghdr h = { .__pad1 = 0, .__pad2 = 0 }; 22290 ; 22291 return 0; 22292 } 22293 _ACEOF 22294 if ac_fn_c_try_compile "$LINENO" 22295 then : 22296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22297 printf "%s\n" "yes" >&6; } 22298 22299 printf "%s\n" "#define HAVE_DECL_UV_UDP_RECVMMSG 0" >>confdefs.h 22300 22301 else case e in #( 22302 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22303 printf "%s\n" "no" >&6; } 22304 ac_fn_check_decl "$LINENO" "UV_UDP_RECVMMSG" "ac_cv_have_decl_UV_UDP_RECVMMSG" "#include <uv.h> 22305 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22306 if test "x$ac_cv_have_decl_UV_UDP_RECVMMSG" = xyes 22307 then : 22308 ac_have_decl=1 22309 else case e in #( 22310 e) ac_have_decl=0 ;; 22311 esac 22312 fi 22313 printf "%s\n" "#define HAVE_DECL_UV_UDP_RECVMMSG $ac_have_decl" >>confdefs.h 22314 ;; 22315 esac 22316 fi 22317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22318 22319 # libuv recverr support 22320 ac_fn_check_decl "$LINENO" "UV_UDP_LINUX_RECVERR" "ac_cv_have_decl_UV_UDP_LINUX_RECVERR" "#include <uv.h> 22321 " "$ac_c_undeclared_builtin_options" "CFLAGS" 22322 if test "x$ac_cv_have_decl_UV_UDP_LINUX_RECVERR" = xyes 22323 then : 22324 ac_have_decl=1 22325 else case e in #( 22326 e) ac_have_decl=0 ;; 22327 esac 22328 fi 22329 printf "%s\n" "#define HAVE_DECL_UV_UDP_LINUX_RECVERR $ac_have_decl" >>confdefs.h 22330 22331 22332 22333 CCASFLAGS=$CCASFLAGS_libuv_ax_save_flags 22334 22335 22336 CFLAGS=$CFLAGS_libuv_ax_save_flags 22337 22338 22339 CPPFLAGS=$CPPFLAGS_libuv_ax_save_flags 22340 22341 22342 CXXFLAGS=$CXXFLAGS_libuv_ax_save_flags 22343 22344 22345 ERLCFLAGS=$ERLCFLAGS_libuv_ax_save_flags 22346 22347 22348 FCFLAGS=$FCFLAGS_libuv_ax_save_flags 22349 22350 22351 FCLIBS=$FCLIBS_libuv_ax_save_flags 22352 22353 22354 FFLAGS=$FFLAGS_libuv_ax_save_flags 22355 22356 22357 FLIBS=$FLIBS_libuv_ax_save_flags 22358 22359 22360 GCJFLAGS=$GCJFLAGS_libuv_ax_save_flags 22361 22362 22363 JAVACFLAGS=$JAVACFLAGS_libuv_ax_save_flags 22364 22365 22366 LDFLAGS=$LDFLAGS_libuv_ax_save_flags 22367 22368 22369 LIBS=$LIBS_libuv_ax_save_flags 22370 22371 22372 OBJCFLAGS=$OBJCFLAGS_libuv_ax_save_flags 22373 22374 22375 OBJCXXFLAGS=$OBJCXXFLAGS_libuv_ax_save_flags 22376 22377 22378 UPCFLAGS=$UPCFLAGS_libuv_ax_save_flags 22379 22380 22381 VALAFLAGS=$VALAFLAGS_libuv_ax_save_flags 22382 22383 22384 22385 22386 # [pairwise: --enable-doh --with-libnghttp2=auto, --enable-doh --with-libnghttp2=yes, --disable-doh] 22387 # Check whether --enable-doh was given. 22388 if test ${enable_doh+y} 22389 then : 22390 enableval=$enable_doh; 22391 else case e in #( 22392 e) enable_doh=yes ;; 22393 esac 22394 fi 22395 22396 22397 # [pairwise: skip] 22398 22399 # Check whether --with-libnghttp2 was given. 22400 if test ${with_libnghttp2+y} 22401 then : 22402 withval=$with_libnghttp2; 22403 else case e in #( 22404 e) with_libnghttp2="auto" ;; 22405 esac 22406 fi 22407 22408 22409 if test "$enable_doh" = "yes" 22410 then : 22411 case $with_libnghttp2 in #( 22412 no) : 22413 as_fn_error $? "Use '--disable-doh' to disable DNS-over-HTTPS support" "$LINENO" 5 ;; #( 22414 auto|yes) : 22415 22416 pkg_failed=no 22417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 >= 1.6.0" >&5 22418 printf %s "checking for libnghttp2 >= 1.6.0... " >&6; } 22419 22420 if test -n "$LIBNGHTTP2_CFLAGS"; then 22421 pkg_cv_LIBNGHTTP2_CFLAGS="$LIBNGHTTP2_CFLAGS" 22422 elif test -n "$PKG_CONFIG"; then 22423 if test -n "$PKG_CONFIG" && \ 22424 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2 >= 1.6.0\""; } >&5 22425 ($PKG_CONFIG --exists --print-errors "libnghttp2 >= 1.6.0") 2>&5 22426 ac_status=$? 22427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22428 test $ac_status = 0; }; then 22429 pkg_cv_LIBNGHTTP2_CFLAGS=`$PKG_CONFIG --cflags "libnghttp2 >= 1.6.0" 2>/dev/null` 22430 test "x$?" != "x0" && pkg_failed=yes 22431 else 22432 pkg_failed=yes 22433 fi 22434 else 22435 pkg_failed=untried 22436 fi 22437 if test -n "$LIBNGHTTP2_LIBS"; then 22438 pkg_cv_LIBNGHTTP2_LIBS="$LIBNGHTTP2_LIBS" 22439 elif test -n "$PKG_CONFIG"; then 22440 if test -n "$PKG_CONFIG" && \ 22441 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2 >= 1.6.0\""; } >&5 22442 ($PKG_CONFIG --exists --print-errors "libnghttp2 >= 1.6.0") 2>&5 22443 ac_status=$? 22444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22445 test $ac_status = 0; }; then 22446 pkg_cv_LIBNGHTTP2_LIBS=`$PKG_CONFIG --libs "libnghttp2 >= 1.6.0" 2>/dev/null` 22447 test "x$?" != "x0" && pkg_failed=yes 22448 else 22449 pkg_failed=yes 22450 fi 22451 else 22452 pkg_failed=untried 22453 fi 22454 22455 22456 22457 if test $pkg_failed = yes; then 22458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22459 printf "%s\n" "no" >&6; } 22460 22461 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22462 _pkg_short_errors_supported=yes 22463 else 22464 _pkg_short_errors_supported=no 22465 fi 22466 if test $_pkg_short_errors_supported = yes; then 22467 LIBNGHTTP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnghttp2 >= 1.6.0" 2>&1` 22468 else 22469 LIBNGHTTP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnghttp2 >= 1.6.0" 2>&1` 22470 fi 22471 # Put the nasty error message in config.log where it belongs 22472 echo "$LIBNGHTTP2_PKG_ERRORS" >&5 22473 22474 as_fn_error $? "DNS-over-HTTPS support requested, but libnghttp2 not found. Either install libnghttp2 or use --disable-doh." "$LINENO" 5 22475 elif test $pkg_failed = untried; then 22476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22477 printf "%s\n" "no" >&6; } 22478 as_fn_error $? "DNS-over-HTTPS support requested, but libnghttp2 not found. Either install libnghttp2 or use --disable-doh." "$LINENO" 5 22479 else 22480 LIBNGHTTP2_CFLAGS=$pkg_cv_LIBNGHTTP2_CFLAGS 22481 LIBNGHTTP2_LIBS=$pkg_cv_LIBNGHTTP2_LIBS 22482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22483 printf "%s\n" "yes" >&6; } 22484 22485 printf "%s\n" "#define HAVE_LIBNGHTTP2 1" >>confdefs.h 22486 22487 fi ;; #( 22488 *) : 22489 as_fn_error $? "Specifying libnghttp2 installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;; 22490 esac 22491 fi 22492 22493 if test -n "$LIBNGHTTP2_LIBS"; then 22494 HAVE_LIBNGHTTP2_TRUE= 22495 HAVE_LIBNGHTTP2_FALSE='#' 22496 else 22497 HAVE_LIBNGHTTP2_TRUE='#' 22498 HAVE_LIBNGHTTP2_FALSE= 22499 fi 22500 22501 22502 22503 # 22504 # flockfile is usually provided by pthreads 22505 # 22506 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile" 22507 if test "x$ac_cv_func_flockfile" = xyes 22508 then : 22509 printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h 22510 22511 fi 22512 ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked" 22513 if test "x$ac_cv_func_getc_unlocked" = xyes 22514 then : 22515 printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h 22516 22517 fi 22518 22519 22520 # 22521 # Look for sysconf or other ways to allow detection of the number of processors. 22522 # 22523 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 22524 if test "x$ac_cv_func_sysconf" = xyes 22525 then : 22526 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h 22527 22528 fi 22529 22530 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 22531 if test "x$ac_cv_func_sysconf" = xyes 22532 then : 22533 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h 22534 22535 fi 22536 ac_fn_c_check_func "$LINENO" "sched_getaffinity" "ac_cv_func_sched_getaffinity" 22537 if test "x$ac_cv_func_sched_getaffinity" = xyes 22538 then : 22539 printf "%s\n" "#define HAVE_SCHED_GETAFFINITY 1" >>confdefs.h 22540 22541 fi 22542 ac_fn_c_check_func "$LINENO" "cpuset_getaffinity" "ac_cv_func_cpuset_getaffinity" 22543 if test "x$ac_cv_func_cpuset_getaffinity" = xyes 22544 then : 22545 printf "%s\n" "#define HAVE_CPUSET_GETAFFINITY 1" >>confdefs.h 22546 22547 fi 22548 22549 ac_fn_c_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default 22550 #ifdef HAVE_SYS_PARAM_H 22551 # include <sys/param.h> 22552 #endif 22553 22554 " 22555 if test "x$ac_cv_header_sys_cpuset_h" = xyes 22556 then : 22557 printf "%s\n" "#define HAVE_SYS_CPUSET_H 1" >>confdefs.h 22558 22559 fi 22560 22561 22562 # 22563 # Do we want to use pthread rwlock? 22564 # 22565 # [pairwise: --enable-pthread-rwlock, --disable-pthread-rwlock] 22566 # Check whether --enable-pthread_rwlock was given. 22567 if test ${enable_pthread_rwlock+y} 22568 then : 22569 enableval=$enable_pthread_rwlock; 22570 else case e in #( 22571 e) enable_pthread_rwlock=no ;; 22572 esac 22573 fi 22574 22575 22576 if test "$enable_pthread_rwlock" = "yes" 22577 then : 22578 22579 for ac_func in pthread_rwlock_rdlock 22580 do : 22581 ac_fn_c_check_func "$LINENO" "pthread_rwlock_rdlock" "ac_cv_func_pthread_rwlock_rdlock" 22582 if test "x$ac_cv_func_pthread_rwlock_rdlock" = xyes 22583 then : 22584 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK 1" >>confdefs.h 22585 22586 else case e in #( 22587 e) as_fn_error $? "pthread_rwlock_rdlock requested but not found" "$LINENO" 5 ;; 22588 esac 22589 fi 22590 22591 done 22592 22593 printf "%s\n" "#define USE_PTHREAD_RWLOCK 1" >>confdefs.h 22594 22595 22596 fi 22597 if test "$enable_pthread_rwlock" != "yes"; then 22598 USE_ISC_RWLOCK_TRUE= 22599 USE_ISC_RWLOCK_FALSE='#' 22600 else 22601 USE_ISC_RWLOCK_TRUE='#' 22602 USE_ISC_RWLOCK_FALSE= 22603 fi 22604 22605 22606 CRYPTO=OpenSSL 22607 22608 # 22609 # OpenSSL/LibreSSL is mandatory 22610 # 22611 22612 pkg_failed=no 22613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssl libcrypto" >&5 22614 printf %s "checking for libssl libcrypto... " >&6; } 22615 22616 if test -n "$OPENSSL_CFLAGS"; then 22617 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 22618 elif test -n "$PKG_CONFIG"; then 22619 if test -n "$PKG_CONFIG" && \ 22620 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5 22621 ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5 22622 ac_status=$? 22623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22624 test $ac_status = 0; }; then 22625 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libssl libcrypto" 2>/dev/null` 22626 test "x$?" != "x0" && pkg_failed=yes 22627 else 22628 pkg_failed=yes 22629 fi 22630 else 22631 pkg_failed=untried 22632 fi 22633 if test -n "$OPENSSL_LIBS"; then 22634 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 22635 elif test -n "$PKG_CONFIG"; then 22636 if test -n "$PKG_CONFIG" && \ 22637 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5 22638 ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5 22639 ac_status=$? 22640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22641 test $ac_status = 0; }; then 22642 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libssl libcrypto" 2>/dev/null` 22643 test "x$?" != "x0" && pkg_failed=yes 22644 else 22645 pkg_failed=yes 22646 fi 22647 else 22648 pkg_failed=untried 22649 fi 22650 22651 22652 22653 if test $pkg_failed = yes; then 22654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22655 printf "%s\n" "no" >&6; } 22656 22657 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22658 _pkg_short_errors_supported=yes 22659 else 22660 _pkg_short_errors_supported=no 22661 fi 22662 if test $_pkg_short_errors_supported = yes; then 22663 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl libcrypto" 2>&1` 22664 else 22665 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl libcrypto" 2>&1` 22666 fi 22667 # Put the nasty error message in config.log where it belongs 22668 echo "$OPENSSL_PKG_ERRORS" >&5 22669 22670 22671 found=false 22672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 22673 printf %s "checking for a sed that does not truncate output... " >&6; } 22674 if test ${ac_cv_path_SED+y} 22675 then : 22676 printf %s "(cached) " >&6 22677 else case e in #( 22678 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 22679 for ac_i in 1 2 3 4 5 6 7; do 22680 ac_script="$ac_script$as_nl$ac_script" 22681 done 22682 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 22683 { ac_script=; unset ac_script;} 22684 if test -z "$SED"; then 22685 ac_path_SED_found=false 22686 # Loop through the user's path and test for each of PROGNAME-LIST 22687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22688 for as_dir in $PATH 22689 do 22690 IFS=$as_save_IFS 22691 case $as_dir in #((( 22692 '') as_dir=./ ;; 22693 */) ;; 22694 *) as_dir=$as_dir/ ;; 22695 esac 22696 for ac_prog in sed gsed 22697 do 22698 for ac_exec_ext in '' $ac_executable_extensions; do 22699 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 22700 as_fn_executable_p "$ac_path_SED" || continue 22701 # Check for GNU ac_path_SED and select it if it is found. 22702 # Check for GNU $ac_path_SED 22703 case `"$ac_path_SED" --version 2>&1` in #( 22704 *GNU*) 22705 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 22706 #( 22707 *) 22708 ac_count=0 22709 printf %s 0123456789 >"conftest.in" 22710 while : 22711 do 22712 cat "conftest.in" "conftest.in" >"conftest.tmp" 22713 mv "conftest.tmp" "conftest.in" 22714 cp "conftest.in" "conftest.nl" 22715 printf "%s\n" '' >> "conftest.nl" 22716 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 22717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 22718 as_fn_arith $ac_count + 1 && ac_count=$as_val 22719 if test $ac_count -gt ${ac_path_SED_max-0}; then 22720 # Best one so far, save it but keep looking for a better one 22721 ac_cv_path_SED="$ac_path_SED" 22722 ac_path_SED_max=$ac_count 22723 fi 22724 # 10*(2^10) chars as input seems more than enough 22725 test $ac_count -gt 10 && break 22726 done 22727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 22728 esac 22729 22730 $ac_path_SED_found && break 3 22731 done 22732 done 22733 done 22734 IFS=$as_save_IFS 22735 if test -z "$ac_cv_path_SED"; then 22736 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 22737 fi 22738 else 22739 ac_cv_path_SED=$SED 22740 fi 22741 ;; 22742 esac 22743 fi 22744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 22745 printf "%s\n" "$ac_cv_path_SED" >&6; } 22746 SED="$ac_cv_path_SED" 22747 rm -f conftest.sed 22748 22749 22750 # Check whether --with-openssl was given. 22751 if test ${with_openssl+y} 22752 then : 22753 withval=$with_openssl; 22754 case "$withval" in 22755 "" | y | ye | yes | n | no) 22756 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 22757 ;; 22758 *) ssldirs="$withval" 22759 ;; 22760 esac 22761 22762 else case e in #( 22763 e) 22764 # if pkg-config is installed and openssl has installed a .pc file, 22765 # then use that information and don't search ssldirs 22766 if test -n "$ac_tool_prefix"; then 22767 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 22768 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 22769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22770 printf %s "checking for $ac_word... " >&6; } 22771 if test ${ac_cv_prog_PKG_CONFIG+y} 22772 then : 22773 printf %s "(cached) " >&6 22774 else case e in #( 22775 e) if test -n "$PKG_CONFIG"; then 22776 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 22777 else 22778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22779 for as_dir in $PATH 22780 do 22781 IFS=$as_save_IFS 22782 case $as_dir in #((( 22783 '') as_dir=./ ;; 22784 */) ;; 22785 *) as_dir=$as_dir/ ;; 22786 esac 22787 for ac_exec_ext in '' $ac_executable_extensions; do 22788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22789 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 22790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22791 break 2 22792 fi 22793 done 22794 done 22795 IFS=$as_save_IFS 22796 22797 fi ;; 22798 esac 22799 fi 22800 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 22801 if test -n "$PKG_CONFIG"; then 22802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 22803 printf "%s\n" "$PKG_CONFIG" >&6; } 22804 else 22805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22806 printf "%s\n" "no" >&6; } 22807 fi 22808 22809 22810 fi 22811 if test -z "$ac_cv_prog_PKG_CONFIG"; then 22812 ac_ct_PKG_CONFIG=$PKG_CONFIG 22813 # Extract the first word of "pkg-config", so it can be a program name with args. 22814 set dummy pkg-config; ac_word=$2 22815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22816 printf %s "checking for $ac_word... " >&6; } 22817 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} 22818 then : 22819 printf %s "(cached) " >&6 22820 else case e in #( 22821 e) if test -n "$ac_ct_PKG_CONFIG"; then 22822 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 22823 else 22824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22825 for as_dir in $PATH 22826 do 22827 IFS=$as_save_IFS 22828 case $as_dir in #((( 22829 '') as_dir=./ ;; 22830 */) ;; 22831 *) as_dir=$as_dir/ ;; 22832 esac 22833 for ac_exec_ext in '' $ac_executable_extensions; do 22834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22835 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 22836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22837 break 2 22838 fi 22839 done 22840 done 22841 IFS=$as_save_IFS 22842 22843 fi ;; 22844 esac 22845 fi 22846 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 22847 if test -n "$ac_ct_PKG_CONFIG"; then 22848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 22849 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; } 22850 else 22851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22852 printf "%s\n" "no" >&6; } 22853 fi 22854 22855 if test "x$ac_ct_PKG_CONFIG" = x; then 22856 PKG_CONFIG="" 22857 else 22858 case $cross_compiling:$ac_tool_warned in 22859 yes:) 22860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 22861 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 22862 ac_tool_warned=yes ;; 22863 esac 22864 PKG_CONFIG=$ac_ct_PKG_CONFIG 22865 fi 22866 else 22867 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 22868 fi 22869 22870 if test x"$PKG_CONFIG" != x""; then 22871 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 22872 if test $? = 0; then 22873 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 22874 OPENSSL_CFLAGS=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 22875 OPENSSL_VERSION=`$PKG_CONFIG openssl --modversion 2>/dev/null` 22876 found=true 22877 fi 22878 fi 22879 22880 # no such luck; use some default ssldirs 22881 if ! $found; then 22882 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 22883 fi 22884 22885 ;; 22886 esac 22887 fi 22888 22889 22890 22891 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 22892 # an 'openssl' subdirectory 22893 22894 if ! $found; then 22895 OPENSSL_CFLAGS= 22896 for ssldir in $ssldirs; do 22897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5 22898 printf %s "checking for include/openssl/ssl.h in $ssldir... " >&6; } 22899 if test -f "$ssldir/include/openssl/ssl.h"; then 22900 OPENSSL_CFLAGS="-I$ssldir/include" 22901 OPENSSL_LDFLAGS="-L$ssldir/lib" 22902 OPENSSL_LIBS="-lssl -lcrypto" 22903 OPENSSL_VERSION=`$SED -ne 's/.*OPENSSL_VERSION_STR^"*"\(^"*\)".*/\1/p;' $ssldir/include/openssl/opensslv.h` 22904 if test -z "$OPENSSL_VERSION"; then 22905 OPENSSL_VERSION=`$SED -ne 's/.*OPENSSL_VERSION_TEXT^"*"\(^"*\)".*/\1/p;' $ssldir/include/openssl/opensslv.h` 22906 fi 22907 found=true 22908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22909 printf "%s\n" "yes" >&6; } 22910 break 22911 else 22912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22913 printf "%s\n" "no" >&6; } 22914 fi 22915 done 22916 22917 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 22918 # it will just work! 22919 fi 22920 22921 # try the preprocessor and linker with our new flags, 22922 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 22923 22924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 22925 printf %s "checking whether compiling and linking against OpenSSL works... " >&6; } 22926 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 22927 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS" >&5 22928 22929 save_LIBS="$LIBS" 22930 save_LDFLAGS="$LDFLAGS" 22931 save_CPPFLAGS="$CPPFLAGS" 22932 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 22933 LIBS="$OPENSSL_LIBS $LIBS" 22934 CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS" 22935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22936 /* end confdefs.h. */ 22937 #include <openssl/ssl.h> 22938 int 22939 main (void) 22940 { 22941 SSL_new(NULL) 22942 ; 22943 return 0; 22944 } 22945 _ACEOF 22946 if ac_fn_c_try_link "$LINENO" 22947 then : 22948 22949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22950 printf "%s\n" "yes" >&6; } 22951 : 22952 22953 else case e in #( 22954 e) 22955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22956 printf "%s\n" "no" >&6; } 22957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22958 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22959 as_fn_error $? "OpenSSL/LibreSSL not found 22960 See 'config.log' for more details" "$LINENO" 5; } 22961 ;; 22962 esac 22963 fi 22964 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22965 conftest$ac_exeext conftest.$ac_ext 22966 CPPFLAGS="$save_CPPFLAGS" 22967 LDFLAGS="$save_LDFLAGS" 22968 LIBS="$save_LIBS" 22969 22970 22971 22972 22973 22974 22975 elif test $pkg_failed = untried; then 22976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22977 printf "%s\n" "no" >&6; } 22978 22979 found=false 22980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 22981 printf %s "checking for a sed that does not truncate output... " >&6; } 22982 if test ${ac_cv_path_SED+y} 22983 then : 22984 printf %s "(cached) " >&6 22985 else case e in #( 22986 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 22987 for ac_i in 1 2 3 4 5 6 7; do 22988 ac_script="$ac_script$as_nl$ac_script" 22989 done 22990 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 22991 { ac_script=; unset ac_script;} 22992 if test -z "$SED"; then 22993 ac_path_SED_found=false 22994 # Loop through the user's path and test for each of PROGNAME-LIST 22995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22996 for as_dir in $PATH 22997 do 22998 IFS=$as_save_IFS 22999 case $as_dir in #((( 23000 '') as_dir=./ ;; 23001 */) ;; 23002 *) as_dir=$as_dir/ ;; 23003 esac 23004 for ac_prog in sed gsed 23005 do 23006 for ac_exec_ext in '' $ac_executable_extensions; do 23007 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 23008 as_fn_executable_p "$ac_path_SED" || continue 23009 # Check for GNU ac_path_SED and select it if it is found. 23010 # Check for GNU $ac_path_SED 23011 case `"$ac_path_SED" --version 2>&1` in #( 23012 *GNU*) 23013 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 23014 #( 23015 *) 23016 ac_count=0 23017 printf %s 0123456789 >"conftest.in" 23018 while : 23019 do 23020 cat "conftest.in" "conftest.in" >"conftest.tmp" 23021 mv "conftest.tmp" "conftest.in" 23022 cp "conftest.in" "conftest.nl" 23023 printf "%s\n" '' >> "conftest.nl" 23024 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 23025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 23026 as_fn_arith $ac_count + 1 && ac_count=$as_val 23027 if test $ac_count -gt ${ac_path_SED_max-0}; then 23028 # Best one so far, save it but keep looking for a better one 23029 ac_cv_path_SED="$ac_path_SED" 23030 ac_path_SED_max=$ac_count 23031 fi 23032 # 10*(2^10) chars as input seems more than enough 23033 test $ac_count -gt 10 && break 23034 done 23035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 23036 esac 23037 23038 $ac_path_SED_found && break 3 23039 done 23040 done 23041 done 23042 IFS=$as_save_IFS 23043 if test -z "$ac_cv_path_SED"; then 23044 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 23045 fi 23046 else 23047 ac_cv_path_SED=$SED 23048 fi 23049 ;; 23050 esac 23051 fi 23052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 23053 printf "%s\n" "$ac_cv_path_SED" >&6; } 23054 SED="$ac_cv_path_SED" 23055 rm -f conftest.sed 23056 23057 23058 # Check whether --with-openssl was given. 23059 if test ${with_openssl+y} 23060 then : 23061 withval=$with_openssl; 23062 case "$withval" in 23063 "" | y | ye | yes | n | no) 23064 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 23065 ;; 23066 *) ssldirs="$withval" 23067 ;; 23068 esac 23069 23070 else case e in #( 23071 e) 23072 # if pkg-config is installed and openssl has installed a .pc file, 23073 # then use that information and don't search ssldirs 23074 if test -n "$ac_tool_prefix"; then 23075 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 23076 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 23077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23078 printf %s "checking for $ac_word... " >&6; } 23079 if test ${ac_cv_prog_PKG_CONFIG+y} 23080 then : 23081 printf %s "(cached) " >&6 23082 else case e in #( 23083 e) if test -n "$PKG_CONFIG"; then 23084 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 23085 else 23086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23087 for as_dir in $PATH 23088 do 23089 IFS=$as_save_IFS 23090 case $as_dir in #((( 23091 '') as_dir=./ ;; 23092 */) ;; 23093 *) as_dir=$as_dir/ ;; 23094 esac 23095 for ac_exec_ext in '' $ac_executable_extensions; do 23096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23097 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 23098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23099 break 2 23100 fi 23101 done 23102 done 23103 IFS=$as_save_IFS 23104 23105 fi ;; 23106 esac 23107 fi 23108 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 23109 if test -n "$PKG_CONFIG"; then 23110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 23111 printf "%s\n" "$PKG_CONFIG" >&6; } 23112 else 23113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23114 printf "%s\n" "no" >&6; } 23115 fi 23116 23117 23118 fi 23119 if test -z "$ac_cv_prog_PKG_CONFIG"; then 23120 ac_ct_PKG_CONFIG=$PKG_CONFIG 23121 # Extract the first word of "pkg-config", so it can be a program name with args. 23122 set dummy pkg-config; ac_word=$2 23123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23124 printf %s "checking for $ac_word... " >&6; } 23125 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} 23126 then : 23127 printf %s "(cached) " >&6 23128 else case e in #( 23129 e) if test -n "$ac_ct_PKG_CONFIG"; then 23130 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 23131 else 23132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23133 for as_dir in $PATH 23134 do 23135 IFS=$as_save_IFS 23136 case $as_dir in #((( 23137 '') as_dir=./ ;; 23138 */) ;; 23139 *) as_dir=$as_dir/ ;; 23140 esac 23141 for ac_exec_ext in '' $ac_executable_extensions; do 23142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23143 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 23144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23145 break 2 23146 fi 23147 done 23148 done 23149 IFS=$as_save_IFS 23150 23151 fi ;; 23152 esac 23153 fi 23154 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 23155 if test -n "$ac_ct_PKG_CONFIG"; then 23156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 23157 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; } 23158 else 23159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23160 printf "%s\n" "no" >&6; } 23161 fi 23162 23163 if test "x$ac_ct_PKG_CONFIG" = x; then 23164 PKG_CONFIG="" 23165 else 23166 case $cross_compiling:$ac_tool_warned in 23167 yes:) 23168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23169 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23170 ac_tool_warned=yes ;; 23171 esac 23172 PKG_CONFIG=$ac_ct_PKG_CONFIG 23173 fi 23174 else 23175 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 23176 fi 23177 23178 if test x"$PKG_CONFIG" != x""; then 23179 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 23180 if test $? = 0; then 23181 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 23182 OPENSSL_CFLAGS=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 23183 OPENSSL_VERSION=`$PKG_CONFIG openssl --modversion 2>/dev/null` 23184 found=true 23185 fi 23186 fi 23187 23188 # no such luck; use some default ssldirs 23189 if ! $found; then 23190 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 23191 fi 23192 23193 ;; 23194 esac 23195 fi 23196 23197 23198 23199 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 23200 # an 'openssl' subdirectory 23201 23202 if ! $found; then 23203 OPENSSL_CFLAGS= 23204 for ssldir in $ssldirs; do 23205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5 23206 printf %s "checking for include/openssl/ssl.h in $ssldir... " >&6; } 23207 if test -f "$ssldir/include/openssl/ssl.h"; then 23208 OPENSSL_CFLAGS="-I$ssldir/include" 23209 OPENSSL_LDFLAGS="-L$ssldir/lib" 23210 OPENSSL_LIBS="-lssl -lcrypto" 23211 OPENSSL_VERSION=`$SED -ne 's/.*OPENSSL_VERSION_STR^"*"\(^"*\)".*/\1/p;' $ssldir/include/openssl/opensslv.h` 23212 if test -z "$OPENSSL_VERSION"; then 23213 OPENSSL_VERSION=`$SED -ne 's/.*OPENSSL_VERSION_TEXT^"*"\(^"*\)".*/\1/p;' $ssldir/include/openssl/opensslv.h` 23214 fi 23215 found=true 23216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23217 printf "%s\n" "yes" >&6; } 23218 break 23219 else 23220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23221 printf "%s\n" "no" >&6; } 23222 fi 23223 done 23224 23225 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 23226 # it will just work! 23227 fi 23228 23229 # try the preprocessor and linker with our new flags, 23230 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 23231 23232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 23233 printf %s "checking whether compiling and linking against OpenSSL works... " >&6; } 23234 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 23235 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS" >&5 23236 23237 save_LIBS="$LIBS" 23238 save_LDFLAGS="$LDFLAGS" 23239 save_CPPFLAGS="$CPPFLAGS" 23240 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 23241 LIBS="$OPENSSL_LIBS $LIBS" 23242 CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS" 23243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23244 /* end confdefs.h. */ 23245 #include <openssl/ssl.h> 23246 int 23247 main (void) 23248 { 23249 SSL_new(NULL) 23250 ; 23251 return 0; 23252 } 23253 _ACEOF 23254 if ac_fn_c_try_link "$LINENO" 23255 then : 23256 23257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23258 printf "%s\n" "yes" >&6; } 23259 : 23260 23261 else case e in #( 23262 e) 23263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23264 printf "%s\n" "no" >&6; } 23265 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23266 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23267 as_fn_error $? "OpenSSL/LibreSSL not found 23268 See 'config.log' for more details" "$LINENO" 5; } 23269 ;; 23270 esac 23271 fi 23272 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23273 conftest$ac_exeext conftest.$ac_ext 23274 CPPFLAGS="$save_CPPFLAGS" 23275 LDFLAGS="$save_LDFLAGS" 23276 LIBS="$save_LIBS" 23277 23278 23279 23280 23281 23282 23283 else 23284 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 23285 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 23286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23287 printf "%s\n" "yes" >&6; } 23288 23289 if test -n "$OPENSSL_VERSION"; then 23290 pkg_cv_OPENSSL_VERSION="$OPENSSL_VERSION" 23291 elif test -n "$PKG_CONFIG"; then 23292 if test -n "$PKG_CONFIG" && \ 23293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 23294 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 23295 ac_status=$? 23296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23297 test $ac_status = 0; }; then 23298 pkg_cv_OPENSSL_VERSION=`$PKG_CONFIG --modversion "openssl" 2>/dev/null` 23299 test "x$?" != "x0" && pkg_failed=yes 23300 else 23301 pkg_failed=yes 23302 fi 23303 else 23304 pkg_failed=untried 23305 fi 23306 OPENSSL_VERSION=$pkg_cv_OPENSSL_VERSION 23307 23308 if test "x$OPENSSL_VERSION" = x"" 23309 then : 23310 23311 fi 23312 fi 23313 23314 23315 23316 CCASFLAGS_openssl_ax_save_flags=$CCASFLAGS 23317 23318 23319 23320 CFLAGS_openssl_ax_save_flags=$CFLAGS 23321 23322 23323 23324 CPPFLAGS_openssl_ax_save_flags=$CPPFLAGS 23325 23326 23327 23328 CXXFLAGS_openssl_ax_save_flags=$CXXFLAGS 23329 23330 23331 23332 ERLCFLAGS_openssl_ax_save_flags=$ERLCFLAGS 23333 23334 23335 23336 FCFLAGS_openssl_ax_save_flags=$FCFLAGS 23337 23338 23339 23340 FCLIBS_openssl_ax_save_flags=$FCLIBS 23341 23342 23343 23344 FFLAGS_openssl_ax_save_flags=$FFLAGS 23345 23346 23347 23348 FLIBS_openssl_ax_save_flags=$FLIBS 23349 23350 23351 23352 GCJFLAGS_openssl_ax_save_flags=$GCJFLAGS 23353 23354 23355 23356 JAVACFLAGS_openssl_ax_save_flags=$JAVACFLAGS 23357 23358 23359 23360 LDFLAGS_openssl_ax_save_flags=$LDFLAGS 23361 23362 23363 23364 LIBS_openssl_ax_save_flags=$LIBS 23365 23366 23367 23368 OBJCFLAGS_openssl_ax_save_flags=$OBJCFLAGS 23369 23370 23371 23372 OBJCXXFLAGS_openssl_ax_save_flags=$OBJCXXFLAGS 23373 23374 23375 23376 UPCFLAGS_openssl_ax_save_flags=$UPCFLAGS 23377 23378 23379 23380 VALAFLAGS_openssl_ax_save_flags=$VALAFLAGS 23381 23382 23383 23384 23385 CFLAGS="$OPENSSL_CFLAGS $CFLAGS" 23386 LIBS="$OPENSSL_LIBS $LIBS" 23387 23388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0" >&5 23389 printf %s "checking for OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0... " >&6; } 23390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23391 /* end confdefs.h. */ 23392 #include <openssl/opensslv.h> 23393 int 23394 main (void) 23395 { 23396 #if (!defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)) || \\ 23397 (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x02070000fL)) 23398 #error OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0 required 23399 #endif 23400 23401 ; 23402 return 0; 23403 } 23404 _ACEOF 23405 if ac_fn_c_try_compile "$LINENO" 23406 then : 23407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23408 printf "%s\n" "yes" >&6; } 23409 else case e in #( 23410 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23411 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23412 as_fn_error $? "not found 23413 See 'config.log' for more details" "$LINENO" 5; } ;; 23414 esac 23415 fi 23416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23417 23418 # 23419 # Check for functions added in OpenSSL or LibreSSL 23420 # 23421 23422 ac_fn_c_check_func "$LINENO" "BIO_read_ex" "ac_cv_func_BIO_read_ex" 23423 if test "x$ac_cv_func_BIO_read_ex" = xyes 23424 then : 23425 printf "%s\n" "#define HAVE_BIO_READ_EX 1" >>confdefs.h 23426 23427 fi 23428 ac_fn_c_check_func "$LINENO" "BIO_write_ex" "ac_cv_func_BIO_write_ex" 23429 if test "x$ac_cv_func_BIO_write_ex" = xyes 23430 then : 23431 printf "%s\n" "#define HAVE_BIO_WRITE_EX 1" >>confdefs.h 23432 23433 fi 23434 23435 ac_fn_c_check_func "$LINENO" "BN_GENCB_new" "ac_cv_func_BN_GENCB_new" 23436 if test "x$ac_cv_func_BN_GENCB_new" = xyes 23437 then : 23438 printf "%s\n" "#define HAVE_BN_GENCB_NEW 1" >>confdefs.h 23439 23440 fi 23441 23442 ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc" 23443 if test "x$ac_cv_func_CRYPTO_zalloc" = xyes 23444 then : 23445 printf "%s\n" "#define HAVE_CRYPTO_ZALLOC 1" >>confdefs.h 23446 23447 fi 23448 23449 ac_fn_c_check_func "$LINENO" "ERR_get_error_all" "ac_cv_func_ERR_get_error_all" 23450 if test "x$ac_cv_func_ERR_get_error_all" = xyes 23451 then : 23452 printf "%s\n" "#define HAVE_ERR_GET_ERROR_ALL 1" >>confdefs.h 23453 23454 fi 23455 23456 ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_new" "ac_cv_func_EVP_CIPHER_CTX_new" 23457 if test "x$ac_cv_func_EVP_CIPHER_CTX_new" = xyes 23458 then : 23459 printf "%s\n" "#define HAVE_EVP_CIPHER_CTX_NEW 1" >>confdefs.h 23460 23461 fi 23462 ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_free" "ac_cv_func_EVP_CIPHER_CTX_free" 23463 if test "x$ac_cv_func_EVP_CIPHER_CTX_free" = xyes 23464 then : 23465 printf "%s\n" "#define HAVE_EVP_CIPHER_CTX_FREE 1" >>confdefs.h 23466 23467 fi 23468 23469 ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_new" "ac_cv_func_EVP_MD_CTX_new" 23470 if test "x$ac_cv_func_EVP_MD_CTX_new" = xyes 23471 then : 23472 printf "%s\n" "#define HAVE_EVP_MD_CTX_NEW 1" >>confdefs.h 23473 23474 fi 23475 ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_free" "ac_cv_func_EVP_MD_CTX_free" 23476 if test "x$ac_cv_func_EVP_MD_CTX_free" = xyes 23477 then : 23478 printf "%s\n" "#define HAVE_EVP_MD_CTX_FREE 1" >>confdefs.h 23479 23480 fi 23481 ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_reset" "ac_cv_func_EVP_MD_CTX_reset" 23482 if test "x$ac_cv_func_EVP_MD_CTX_reset" = xyes 23483 then : 23484 printf "%s\n" "#define HAVE_EVP_MD_CTX_RESET 1" >>confdefs.h 23485 23486 fi 23487 ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_get0_md" "ac_cv_func_EVP_MD_CTX_get0_md" 23488 if test "x$ac_cv_func_EVP_MD_CTX_get0_md" = xyes 23489 then : 23490 printf "%s\n" "#define HAVE_EVP_MD_CTX_GET0_MD 1" >>confdefs.h 23491 23492 fi 23493 23494 ac_fn_c_check_func "$LINENO" "EVP_PKEY_new_raw_private_key" "ac_cv_func_EVP_PKEY_new_raw_private_key" 23495 if test "x$ac_cv_func_EVP_PKEY_new_raw_private_key" = xyes 23496 then : 23497 printf "%s\n" "#define HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY 1" >>confdefs.h 23498 23499 fi 23500 ac_fn_c_check_func "$LINENO" "EVP_PKEY_eq" "ac_cv_func_EVP_PKEY_eq" 23501 if test "x$ac_cv_func_EVP_PKEY_eq" = xyes 23502 then : 23503 printf "%s\n" "#define HAVE_EVP_PKEY_EQ 1" >>confdefs.h 23504 23505 fi 23506 23507 ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl" 23508 if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes 23509 then : 23510 printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h 23511 23512 fi 23513 ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto" 23514 if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes 23515 then : 23516 printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h 23517 23518 fi 23519 ac_fn_c_check_func "$LINENO" "OPENSSL_cleanup" "ac_cv_func_OPENSSL_cleanup" 23520 if test "x$ac_cv_func_OPENSSL_cleanup" = xyes 23521 then : 23522 printf "%s\n" "#define HAVE_OPENSSL_CLEANUP 1" >>confdefs.h 23523 23524 fi 23525 23526 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_keylog_callback" "ac_cv_func_SSL_CTX_set_keylog_callback" 23527 if test "x$ac_cv_func_SSL_CTX_set_keylog_callback" = xyes 23528 then : 23529 printf "%s\n" "#define HAVE_SSL_CTX_SET_KEYLOG_CALLBACK 1" >>confdefs.h 23530 23531 fi 23532 23533 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_min_proto_version" "ac_cv_func_SSL_CTX_set_min_proto_version" 23534 if test "x$ac_cv_func_SSL_CTX_set_min_proto_version" = xyes 23535 then : 23536 printf "%s\n" "#define HAVE_SSL_CTX_SET_MIN_PROTO_VERSION 1" >>confdefs.h 23537 23538 fi 23539 23540 ac_fn_c_check_func "$LINENO" "SSL_CTX_up_ref" "ac_cv_func_SSL_CTX_up_ref" 23541 if test "x$ac_cv_func_SSL_CTX_up_ref" = xyes 23542 then : 23543 printf "%s\n" "#define HAVE_SSL_CTX_UP_REF 1" >>confdefs.h 23544 23545 fi 23546 23547 ac_fn_c_check_func "$LINENO" "SSL_read_ex" "ac_cv_func_SSL_read_ex" 23548 if test "x$ac_cv_func_SSL_read_ex" = xyes 23549 then : 23550 printf "%s\n" "#define HAVE_SSL_READ_EX 1" >>confdefs.h 23551 23552 fi 23553 ac_fn_c_check_func "$LINENO" "SSL_peek_ex" "ac_cv_func_SSL_peek_ex" 23554 if test "x$ac_cv_func_SSL_peek_ex" = xyes 23555 then : 23556 printf "%s\n" "#define HAVE_SSL_PEEK_EX 1" >>confdefs.h 23557 23558 fi 23559 ac_fn_c_check_func "$LINENO" "SSL_write_ex" "ac_cv_func_SSL_write_ex" 23560 if test "x$ac_cv_func_SSL_write_ex" = xyes 23561 then : 23562 printf "%s\n" "#define HAVE_SSL_WRITE_EX 1" >>confdefs.h 23563 23564 fi 23565 23566 ac_fn_c_check_func "$LINENO" "SSL_CTX_set1_cert_store" "ac_cv_func_SSL_CTX_set1_cert_store" 23567 if test "x$ac_cv_func_SSL_CTX_set1_cert_store" = xyes 23568 then : 23569 printf "%s\n" "#define HAVE_SSL_CTX_SET1_CERT_STORE 1" >>confdefs.h 23570 23571 fi 23572 ac_fn_c_check_func "$LINENO" "X509_STORE_up_ref" "ac_cv_func_X509_STORE_up_ref" 23573 if test "x$ac_cv_func_X509_STORE_up_ref" = xyes 23574 then : 23575 printf "%s\n" "#define HAVE_X509_STORE_UP_REF 1" >>confdefs.h 23576 23577 fi 23578 23579 ac_fn_c_check_func "$LINENO" "SSL_CTX_up_ref" "ac_cv_func_SSL_CTX_up_ref" 23580 if test "x$ac_cv_func_SSL_CTX_up_ref" = xyes 23581 then : 23582 printf "%s\n" "#define HAVE_SSL_CTX_UP_REF 1" >>confdefs.h 23583 23584 fi 23585 23586 ac_fn_c_check_func "$LINENO" "SSL_SESSION_is_resumable" "ac_cv_func_SSL_SESSION_is_resumable" 23587 if test "x$ac_cv_func_SSL_SESSION_is_resumable" = xyes 23588 then : 23589 printf "%s\n" "#define HAVE_SSL_SESSION_IS_RESUMABLE 1" >>confdefs.h 23590 23591 fi 23592 23593 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_ciphersuites" "ac_cv_func_SSL_CTX_set_ciphersuites" 23594 if test "x$ac_cv_func_SSL_CTX_set_ciphersuites" = xyes 23595 then : 23596 printf "%s\n" "#define HAVE_SSL_CTX_SET_CIPHERSUITES 1" >>confdefs.h 23597 23598 fi 23599 23600 23601 # 23602 # Check for algorithm support in OpenSSL 23603 # 23604 23605 23606 for ac_func in EVP_DigestSignInit EVP_DigestVerifyInit 23607 do : 23608 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"` 23609 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23610 if eval test \"x\$"$as_ac_var"\" = x"yes" 23611 then : 23612 cat >>confdefs.h <<_ACEOF 23613 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1 23614 _ACEOF 23615 : 23616 else case e in #( 23617 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23618 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23619 as_fn_error $? "EVP_DigestSignInit/EVP_DigestVerifyInit support in OpenSSL is mandatory. 23620 See 'config.log' for more details" "$LINENO" 5; } ;; 23621 esac 23622 fi 23623 23624 done 23625 23626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5 23627 printf %s "checking for ECDSA P-256 support... " >&6; } 23628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23629 /* end confdefs.h. */ 23630 #include <openssl/evp.h> 23631 int 23632 main (void) 23633 { 23634 EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_X9_62_prime256v1, NULL); 23635 ; 23636 return 0; 23637 } 23638 _ACEOF 23639 if ac_fn_c_try_compile "$LINENO" 23640 then : 23641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23642 printf "%s\n" "yes" >&6; } 23643 else case e in #( 23644 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23645 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23646 as_fn_error $? "not found. ECDSA P-256 support in OpenSSL is mandatory. 23647 See 'config.log' for more details" "$LINENO" 5; } ;; 23648 esac 23649 fi 23650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23651 23652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5 23653 printf %s "checking for ECDSA P-384 support... " >&6; } 23654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23655 /* end confdefs.h. */ 23656 #include <openssl/evp.h> 23657 int 23658 main (void) 23659 { 23660 EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_secp384r1, NULL); 23661 ; 23662 return 0; 23663 } 23664 _ACEOF 23665 if ac_fn_c_try_compile "$LINENO" 23666 then : 23667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23668 printf "%s\n" "yes" >&6; } 23669 else case e in #( 23670 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23671 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23672 as_fn_error $? "not found. ECDSA P-384 support in OpenSSL is mandatory. 23673 See 'config.log' for more details" "$LINENO" 5; } ;; 23674 esac 23675 fi 23676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23677 23678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5 23679 printf %s "checking for Ed25519 support... " >&6; } 23680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23681 /* end confdefs.h. */ 23682 #include <openssl/evp.h> 23683 int 23684 main (void) 23685 { 23686 EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_ED25519, NULL); 23687 ; 23688 return 0; 23689 } 23690 _ACEOF 23691 if ac_fn_c_try_compile "$LINENO" 23692 then : 23693 23694 printf "%s\n" "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h 23695 23696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23697 printf "%s\n" "yes" >&6; } 23698 else case e in #( 23699 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23700 printf "%s\n" "no" >&6; } ;; 23701 esac 23702 fi 23703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23704 23705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5 23706 printf %s "checking for Ed448 support... " >&6; } 23707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23708 /* end confdefs.h. */ 23709 #include <openssl/evp.h> 23710 int 23711 main (void) 23712 { 23713 EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_ED448, NULL); 23714 ; 23715 return 0; 23716 } 23717 _ACEOF 23718 if ac_fn_c_try_compile "$LINENO" 23719 then : 23720 23721 printf "%s\n" "#define HAVE_OPENSSL_ED448 1" >>confdefs.h 23722 23723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23724 printf "%s\n" "yes" >&6; } 23725 else case e in #( 23726 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23727 printf "%s\n" "no" >&6; } ;; 23728 esac 23729 fi 23730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23731 23732 # 23733 # Check for OpenSSL SHA-1 support 23734 # 23735 23736 for ac_func in EVP_sha1 23737 do : 23738 ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1" 23739 if test "x$ac_cv_func_EVP_sha1" = xyes 23740 then : 23741 printf "%s\n" "#define HAVE_EVP_SHA1 1" >>confdefs.h 23742 : 23743 else case e in #( 23744 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23745 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23746 as_fn_error $? "SHA-1 support in OpenSSL is mandatory. 23747 See 'config.log' for more details" "$LINENO" 5; } ;; 23748 esac 23749 fi 23750 23751 done 23752 23753 # 23754 # Check for OpenSSL SHA-2 support 23755 # 23756 23757 for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512 23758 do : 23759 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"` 23760 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23761 if eval test \"x\$"$as_ac_var"\" = x"yes" 23762 then : 23763 cat >>confdefs.h <<_ACEOF 23764 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1 23765 _ACEOF 23766 : 23767 else case e in #( 23768 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23769 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23770 as_fn_error $? "SHA-2 support in OpenSSL is mandatory. 23771 See 'config.log' for more details" "$LINENO" 5; } ;; 23772 esac 23773 fi 23774 23775 done 23776 23777 # 23778 # Check for OpenSSL 1.1.x/LibreSSL functions 23779 # 23780 ac_fn_c_check_func "$LINENO" "ECDSA_SIG_get0" "ac_cv_func_ECDSA_SIG_get0" 23781 if test "x$ac_cv_func_ECDSA_SIG_get0" = xyes 23782 then : 23783 printf "%s\n" "#define HAVE_ECDSA_SIG_GET0 1" >>confdefs.h 23784 23785 fi 23786 ac_fn_c_check_func "$LINENO" "EVP_PKEY_get0_EC_KEY" "ac_cv_func_EVP_PKEY_get0_EC_KEY" 23787 if test "x$ac_cv_func_EVP_PKEY_get0_EC_KEY" = xyes 23788 then : 23789 printf "%s\n" "#define HAVE_EVP_PKEY_GET0_EC_KEY 1" >>confdefs.h 23790 23791 fi 23792 23793 ac_fn_c_check_func "$LINENO" "RSA_set0_key" "ac_cv_func_RSA_set0_key" 23794 if test "x$ac_cv_func_RSA_set0_key" = xyes 23795 then : 23796 printf "%s\n" "#define HAVE_RSA_SET0_KEY 1" >>confdefs.h 23797 23798 fi 23799 ac_fn_c_check_func "$LINENO" "EVP_PKEY_get0_RSA" "ac_cv_func_EVP_PKEY_get0_RSA" 23800 if test "x$ac_cv_func_EVP_PKEY_get0_RSA" = xyes 23801 then : 23802 printf "%s\n" "#define HAVE_EVP_PKEY_GET0_RSA 1" >>confdefs.h 23803 23804 fi 23805 23806 23807 ac_fn_c_check_func "$LINENO" "TLS_server_method" "ac_cv_func_TLS_server_method" 23808 if test "x$ac_cv_func_TLS_server_method" = xyes 23809 then : 23810 printf "%s\n" "#define HAVE_TLS_SERVER_METHOD 1" >>confdefs.h 23811 23812 fi 23813 ac_fn_c_check_func "$LINENO" "TLS_client_method" "ac_cv_func_TLS_client_method" 23814 if test "x$ac_cv_func_TLS_client_method" = xyes 23815 then : 23816 printf "%s\n" "#define HAVE_TLS_CLIENT_METHOD 1" >>confdefs.h 23817 23818 fi 23819 23820 23821 # 23822 # Check whether FIPS mode is available and whether we should enable it 23823 # 23824 # FIPS is not included in pairwise testing as the relevant Docker image 23825 # does not support FIPS mode. 23826 # 23827 ac_fn_c_check_func "$LINENO" "EVP_default_properties_enable_fips" "ac_cv_func_EVP_default_properties_enable_fips" 23828 if test "x$ac_cv_func_EVP_default_properties_enable_fips" = xyes 23829 then : 23830 printf "%s\n" "#define HAVE_EVP_DEFAULT_PROPERTIES_ENABLE_FIPS 1" >>confdefs.h 23831 23832 fi 23833 ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode" 23834 if test "x$ac_cv_func_FIPS_mode" = xyes 23835 then : 23836 printf "%s\n" "#define HAVE_FIPS_MODE 1" >>confdefs.h 23837 23838 fi 23839 23840 23841 # [pairwise: skip] 23842 # Check whether --enable-fips-mode was given. 23843 if test ${enable_fips_mode+y} 23844 then : 23845 enableval=$enable_fips_mode; 23846 else case e in #( 23847 e) enable_fips_mode="no" ;; 23848 esac 23849 fi 23850 23851 23852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5 23853 printf %s "checking whether to enable FIPS mode in OpenSSL library... " >&6; } 23854 case $enable_fips_mode in #( 23855 yes) : 23856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23857 printf "%s\n" "yes" >&6; } 23858 23859 printf "%s\n" "#define ENABLE_FIPS_MODE 1" >>confdefs.h 23860 23861 if test "x$ac_cv_func_FIPS_mode" != xyes -a "x$ac_cv_func_EVP_default_properties_enable_fips" != xyes 23862 then : 23863 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23864 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23865 as_fn_error $? "OpenSSL FIPS mode requested but not available. 23866 See 'config.log' for more details" "$LINENO" 5; } 23867 fi ;; #( 23868 no) : 23869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23870 printf "%s\n" "no" >&6; } ;; #( 23871 *) : 23872 ;; 23873 esac 23874 23875 23876 CCASFLAGS=$CCASFLAGS_openssl_ax_save_flags 23877 23878 23879 CFLAGS=$CFLAGS_openssl_ax_save_flags 23880 23881 23882 CPPFLAGS=$CPPFLAGS_openssl_ax_save_flags 23883 23884 23885 CXXFLAGS=$CXXFLAGS_openssl_ax_save_flags 23886 23887 23888 ERLCFLAGS=$ERLCFLAGS_openssl_ax_save_flags 23889 23890 23891 FCFLAGS=$FCFLAGS_openssl_ax_save_flags 23892 23893 23894 FCLIBS=$FCLIBS_openssl_ax_save_flags 23895 23896 23897 FFLAGS=$FFLAGS_openssl_ax_save_flags 23898 23899 23900 FLIBS=$FLIBS_openssl_ax_save_flags 23901 23902 23903 GCJFLAGS=$GCJFLAGS_openssl_ax_save_flags 23904 23905 23906 JAVACFLAGS=$JAVACFLAGS_openssl_ax_save_flags 23907 23908 23909 LDFLAGS=$LDFLAGS_openssl_ax_save_flags 23910 23911 23912 LIBS=$LIBS_openssl_ax_save_flags 23913 23914 23915 OBJCFLAGS=$OBJCFLAGS_openssl_ax_save_flags 23916 23917 23918 OBJCXXFLAGS=$OBJCXXFLAGS_openssl_ax_save_flags 23919 23920 23921 UPCFLAGS=$UPCFLAGS_openssl_ax_save_flags 23922 23923 23924 VALAFLAGS=$VALAFLAGS_openssl_ax_save_flags 23925 23926 23927 23928 23929 23930 23931 23932 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 23933 if test "x$ac_cv_func_clock_gettime" = xyes 23934 then : 23935 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 23936 23937 fi 23938 23939 23940 # [pairwise: --with-gssapi=yes, --with-gssapi=auto, --without-gssapi] 23941 23942 # Check whether --with-gssapi was given. 23943 if test ${with_gssapi+y} 23944 then : 23945 withval=$with_gssapi; 23946 else case e in #( 23947 e) with_gssapi="auto" ;; 23948 esac 23949 fi 23950 23951 23952 KRB5_CONFIG= 23953 case $with_gssapi in #( 23954 no) : 23955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GSSAPI support" >&5 23956 printf %s "checking for GSSAPI support... " >&6; } 23957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23958 printf "%s\n" "no" >&6; } ;; #( 23959 yes) : 23960 # Extract the first word of "krb5-config", so it can be a program name with args. 23961 set dummy krb5-config; ac_word=$2 23962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23963 printf %s "checking for $ac_word... " >&6; } 23964 if test ${ac_cv_path_KRB5_CONFIG+y} 23965 then : 23966 printf %s "(cached) " >&6 23967 else case e in #( 23968 e) case $KRB5_CONFIG in 23969 [\\/]* | ?:[\\/]*) 23970 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path. 23971 ;; 23972 *) 23973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23974 for as_dir in $PATH 23975 do 23976 IFS=$as_save_IFS 23977 case $as_dir in #((( 23978 '') as_dir=./ ;; 23979 */) ;; 23980 *) as_dir=$as_dir/ ;; 23981 esac 23982 for ac_exec_ext in '' $ac_executable_extensions; do 23983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23984 ac_cv_path_KRB5_CONFIG="$as_dir$ac_word$ac_exec_ext" 23985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23986 break 2 23987 fi 23988 done 23989 done 23990 IFS=$as_save_IFS 23991 23992 ;; 23993 esac ;; 23994 esac 23995 fi 23996 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG 23997 if test -n "$KRB5_CONFIG"; then 23998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5 23999 printf "%s\n" "$KRB5_CONFIG" >&6; } 24000 else 24001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24002 printf "%s\n" "no" >&6; } 24003 fi 24004 24005 24006 if test -z "$KRB5_CONFIG" 24007 then : 24008 as_fn_error $? "krb5-config required but not found" "$LINENO" 5 24009 fi ;; #( 24010 auto) : 24011 # Extract the first word of "krb5-config", so it can be a program name with args. 24012 set dummy krb5-config; ac_word=$2 24013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24014 printf %s "checking for $ac_word... " >&6; } 24015 if test ${ac_cv_path_KRB5_CONFIG+y} 24016 then : 24017 printf %s "(cached) " >&6 24018 else case e in #( 24019 e) case $KRB5_CONFIG in 24020 [\\/]* | ?:[\\/]*) 24021 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path. 24022 ;; 24023 *) 24024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24025 for as_dir in $PATH 24026 do 24027 IFS=$as_save_IFS 24028 case $as_dir in #((( 24029 '') as_dir=./ ;; 24030 */) ;; 24031 *) as_dir=$as_dir/ ;; 24032 esac 24033 for ac_exec_ext in '' $ac_executable_extensions; do 24034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24035 ac_cv_path_KRB5_CONFIG="$as_dir$ac_word$ac_exec_ext" 24036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24037 break 2 24038 fi 24039 done 24040 done 24041 IFS=$as_save_IFS 24042 24043 ;; 24044 esac ;; 24045 esac 24046 fi 24047 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG 24048 if test -n "$KRB5_CONFIG"; then 24049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5 24050 printf "%s\n" "$KRB5_CONFIG" >&6; } 24051 else 24052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24053 printf "%s\n" "no" >&6; } 24054 fi 24055 24056 ;; #( 24057 *krb5-config*) : 24058 KRB5_CONFIG="$with_gssapi" ;; #( 24059 *) : 24060 as_fn_error $? "--with-gssapi requires yes|no|auto|/path/to/krb5-config" "$LINENO" 5 ;; 24061 esac 24062 24063 GSSAPI_CFLAGS= 24064 GSSAPI_LIBS= 24065 KRB5_CFLAGS= 24066 KRB5_LIBS= 24067 if test -n "$KRB5_CONFIG" 24068 then : 24069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gssapi libraries" >&5 24070 printf %s "checking for gssapi libraries... " >&6; } 24071 24072 24073 CCASFLAGS_gssapi_ax_save_flags=$CCASFLAGS 24074 24075 24076 24077 CFLAGS_gssapi_ax_save_flags=$CFLAGS 24078 24079 24080 24081 CPPFLAGS_gssapi_ax_save_flags=$CPPFLAGS 24082 24083 24084 24085 CXXFLAGS_gssapi_ax_save_flags=$CXXFLAGS 24086 24087 24088 24089 ERLCFLAGS_gssapi_ax_save_flags=$ERLCFLAGS 24090 24091 24092 24093 FCFLAGS_gssapi_ax_save_flags=$FCFLAGS 24094 24095 24096 24097 FCLIBS_gssapi_ax_save_flags=$FCLIBS 24098 24099 24100 24101 FFLAGS_gssapi_ax_save_flags=$FFLAGS 24102 24103 24104 24105 FLIBS_gssapi_ax_save_flags=$FLIBS 24106 24107 24108 24109 GCJFLAGS_gssapi_ax_save_flags=$GCJFLAGS 24110 24111 24112 24113 JAVACFLAGS_gssapi_ax_save_flags=$JAVACFLAGS 24114 24115 24116 24117 LDFLAGS_gssapi_ax_save_flags=$LDFLAGS 24118 24119 24120 24121 LIBS_gssapi_ax_save_flags=$LIBS 24122 24123 24124 24125 OBJCFLAGS_gssapi_ax_save_flags=$OBJCFLAGS 24126 24127 24128 24129 OBJCXXFLAGS_gssapi_ax_save_flags=$OBJCXXFLAGS 24130 24131 24132 24133 UPCFLAGS_gssapi_ax_save_flags=$UPCFLAGS 24134 24135 24136 24137 VALAFLAGS_gssapi_ax_save_flags=$VALAFLAGS 24138 24139 24140 24141 GSSAPI_CFLAGS=`"$KRB5_CONFIG" --cflags gssapi` 24142 GSSAPI_LIBS=`"$KRB5_CONFIG" --libs gssapi` 24143 CFLAGS="$CFLAGS $GSSAPI_CFLAGS" 24144 LIBS="$LIBS $GSSAPI_LIBS" 24145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSSAPI_CFLAGS $GSSAPI_LIBS" >&5 24146 printf "%s\n" "$GSSAPI_CFLAGS $GSSAPI_LIBS" >&6; } 24147 for ac_header in gssapi/gssapi.h 24148 do : 24149 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" 24150 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes 24151 then : 24152 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h 24153 24154 else case e in #( 24155 e) for ac_header in gssapi.h 24156 do : 24157 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 24158 if test "x$ac_cv_header_gssapi_h" = xyes 24159 then : 24160 printf "%s\n" "#define HAVE_GSSAPI_H 1" >>confdefs.h 24161 24162 else case e in #( 24163 e) as_fn_error $? "neither gssapi/gssapi.h nor gssapi.h found" "$LINENO" 5 ;; 24164 esac 24165 fi 24166 24167 done ;; 24168 esac 24169 fi 24170 24171 done 24172 for ac_header in gssapi/gssapi_krb5.h 24173 do : 24174 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default" 24175 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes 24176 then : 24177 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_KRB5_H 1" >>confdefs.h 24178 for ac_header in gssapi_krb5.h 24179 do : 24180 ac_fn_c_check_header_compile "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default" 24181 if test "x$ac_cv_header_gssapi_krb5_h" = xyes 24182 then : 24183 printf "%s\n" "#define HAVE_GSSAPI_KRB5_H 1" >>confdefs.h 24184 24185 as_fn_error $? "neither gssapi/gssapi_krb5.h nor gssapi_krb5.h found" "$LINENO" 5 24186 fi 24187 24188 done 24189 fi 24190 24191 done 24192 24193 for ac_func in gss_acquire_cred 24194 do : 24195 ac_fn_c_check_func "$LINENO" "gss_acquire_cred" "ac_cv_func_gss_acquire_cred" 24196 if test "x$ac_cv_func_gss_acquire_cred" = xyes 24197 then : 24198 printf "%s\n" "#define HAVE_GSS_ACQUIRE_CRED 1" >>confdefs.h 24199 24200 else case e in #( 24201 e) as_fn_error $? "linking with $GSSAPI_LIBS does not work" "$LINENO" 5 ;; 24202 esac 24203 fi 24204 24205 done 24206 24207 CCASFLAGS=$CCASFLAGS_gssapi_ax_save_flags 24208 24209 24210 CFLAGS=$CFLAGS_gssapi_ax_save_flags 24211 24212 24213 CPPFLAGS=$CPPFLAGS_gssapi_ax_save_flags 24214 24215 24216 CXXFLAGS=$CXXFLAGS_gssapi_ax_save_flags 24217 24218 24219 ERLCFLAGS=$ERLCFLAGS_gssapi_ax_save_flags 24220 24221 24222 FCFLAGS=$FCFLAGS_gssapi_ax_save_flags 24223 24224 24225 FCLIBS=$FCLIBS_gssapi_ax_save_flags 24226 24227 24228 FFLAGS=$FFLAGS_gssapi_ax_save_flags 24229 24230 24231 FLIBS=$FLIBS_gssapi_ax_save_flags 24232 24233 24234 GCJFLAGS=$GCJFLAGS_gssapi_ax_save_flags 24235 24236 24237 JAVACFLAGS=$JAVACFLAGS_gssapi_ax_save_flags 24238 24239 24240 LDFLAGS=$LDFLAGS_gssapi_ax_save_flags 24241 24242 24243 LIBS=$LIBS_gssapi_ax_save_flags 24244 24245 24246 OBJCFLAGS=$OBJCFLAGS_gssapi_ax_save_flags 24247 24248 24249 OBJCXXFLAGS=$OBJCXXFLAGS_gssapi_ax_save_flags 24250 24251 24252 UPCFLAGS=$UPCFLAGS_gssapi_ax_save_flags 24253 24254 24255 VALAFLAGS=$VALAFLAGS_gssapi_ax_save_flags 24256 24257 24258 24259 24260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5 libraries" >&5 24261 printf %s "checking for krb5 libraries... " >&6; } 24262 24263 24264 CCASFLAGS_krb5_ax_save_flags=$CCASFLAGS 24265 24266 24267 24268 CFLAGS_krb5_ax_save_flags=$CFLAGS 24269 24270 24271 24272 CPPFLAGS_krb5_ax_save_flags=$CPPFLAGS 24273 24274 24275 24276 CXXFLAGS_krb5_ax_save_flags=$CXXFLAGS 24277 24278 24279 24280 ERLCFLAGS_krb5_ax_save_flags=$ERLCFLAGS 24281 24282 24283 24284 FCFLAGS_krb5_ax_save_flags=$FCFLAGS 24285 24286 24287 24288 FCLIBS_krb5_ax_save_flags=$FCLIBS 24289 24290 24291 24292 FFLAGS_krb5_ax_save_flags=$FFLAGS 24293 24294 24295 24296 FLIBS_krb5_ax_save_flags=$FLIBS 24297 24298 24299 24300 GCJFLAGS_krb5_ax_save_flags=$GCJFLAGS 24301 24302 24303 24304 JAVACFLAGS_krb5_ax_save_flags=$JAVACFLAGS 24305 24306 24307 24308 LDFLAGS_krb5_ax_save_flags=$LDFLAGS 24309 24310 24311 24312 LIBS_krb5_ax_save_flags=$LIBS 24313 24314 24315 24316 OBJCFLAGS_krb5_ax_save_flags=$OBJCFLAGS 24317 24318 24319 24320 OBJCXXFLAGS_krb5_ax_save_flags=$OBJCXXFLAGS 24321 24322 24323 24324 UPCFLAGS_krb5_ax_save_flags=$UPCFLAGS 24325 24326 24327 24328 VALAFLAGS_krb5_ax_save_flags=$VALAFLAGS 24329 24330 24331 24332 KRB5_CFLAGS=`"$KRB5_CONFIG" --cflags krb5` 24333 KRB5_LIBS=`$KRB5_CONFIG --libs krb5` 24334 CFLAGS="$CFLAGS $KRB5_CFLAGS" 24335 LIBS="$CFLAGS $KRB5_LIBS" 24336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CFLAGS $KRB5_LIBS" >&5 24337 printf "%s\n" "$KRB5_CFLAGS $KRB5_LIBS" >&6; } 24338 for ac_header in krb5/krb5.h 24339 do : 24340 ac_fn_c_check_header_compile "$LINENO" "krb5/krb5.h" "ac_cv_header_krb5_krb5_h" "$ac_includes_default" 24341 if test "x$ac_cv_header_krb5_krb5_h" = xyes 24342 then : 24343 printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h 24344 24345 else case e in #( 24346 e) for ac_header in krb5.h 24347 do : 24348 ac_fn_c_check_header_compile "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" 24349 if test "x$ac_cv_header_krb5_h" = xyes 24350 then : 24351 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h 24352 24353 else case e in #( 24354 e) as_fn_error $? "neither krb5/krb5.h nor krb5 found" "$LINENO" 5 ;; 24355 esac 24356 fi 24357 24358 done ;; 24359 esac 24360 fi 24361 24362 done 24363 24364 for ac_func in krb5_init_context 24365 do : 24366 ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context" 24367 if test "x$ac_cv_func_krb5_init_context" = xyes 24368 then : 24369 printf "%s\n" "#define HAVE_KRB5_INIT_CONTEXT 1" >>confdefs.h 24370 24371 else case e in #( 24372 e) as_fn_error $? "linking with $KRB5_LIBS failed" "$LINENO" 5 ;; 24373 esac 24374 fi 24375 24376 done 24377 24378 CCASFLAGS=$CCASFLAGS_krb5_ax_save_flags 24379 24380 24381 CFLAGS=$CFLAGS_krb5_ax_save_flags 24382 24383 24384 CPPFLAGS=$CPPFLAGS_krb5_ax_save_flags 24385 24386 24387 CXXFLAGS=$CXXFLAGS_krb5_ax_save_flags 24388 24389 24390 ERLCFLAGS=$ERLCFLAGS_krb5_ax_save_flags 24391 24392 24393 FCFLAGS=$FCFLAGS_krb5_ax_save_flags 24394 24395 24396 FCLIBS=$FCLIBS_krb5_ax_save_flags 24397 24398 24399 FFLAGS=$FFLAGS_krb5_ax_save_flags 24400 24401 24402 FLIBS=$FLIBS_krb5_ax_save_flags 24403 24404 24405 GCJFLAGS=$GCJFLAGS_krb5_ax_save_flags 24406 24407 24408 JAVACFLAGS=$JAVACFLAGS_krb5_ax_save_flags 24409 24410 24411 LDFLAGS=$LDFLAGS_krb5_ax_save_flags 24412 24413 24414 LIBS=$LIBS_krb5_ax_save_flags 24415 24416 24417 OBJCFLAGS=$OBJCFLAGS_krb5_ax_save_flags 24418 24419 24420 OBJCXXFLAGS=$OBJCXXFLAGS_krb5_ax_save_flags 24421 24422 24423 UPCFLAGS=$UPCFLAGS_krb5_ax_save_flags 24424 24425 24426 VALAFLAGS=$VALAFLAGS_krb5_ax_save_flags 24427 24428 24429 24430 24431 24432 printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h 24433 24434 # kludge to silence compiler warnings which recommend use of GSS.framework on macOS 24435 case $host in #( 24436 *-darwin*) : 24437 CFLAGS="$CFLAGS -Wno-deprecated-declarations" ;; #( 24438 *) : 24439 ;; 24440 esac 24441 fi 24442 if test -n "$GSSAPI_LIBS"; then 24443 HAVE_GSSAPI_TRUE= 24444 HAVE_GSSAPI_FALSE='#' 24445 else 24446 HAVE_GSSAPI_TRUE='#' 24447 HAVE_GSSAPI_FALSE= 24448 fi 24449 24450 24451 24452 24453 24454 24455 # 24456 # was --with-lmdb specified? 24457 # 24458 24459 # [pairwise: --with-lmdb=auto, --with-lmdb=yes, --without-lmdb] 24460 24461 # Check whether --with-lmdb was given. 24462 if test ${with_lmdb+y} 24463 then : 24464 withval=$with_lmdb; : 24465 else case e in #( 24466 e) with_lmdb="auto" ;; 24467 esac 24468 fi 24469 24470 24471 ac_lib_lmdb_found=no 24472 case $with_lmdb in #( 24473 no) : 24474 ;; #( 24475 auto|yes) : 24476 24477 pkg_failed=no 24478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb" >&5 24479 printf %s "checking for lmdb... " >&6; } 24480 24481 if test -n "$LMDB_CFLAGS"; then 24482 pkg_cv_LMDB_CFLAGS="$LMDB_CFLAGS" 24483 elif test -n "$PKG_CONFIG"; then 24484 if test -n "$PKG_CONFIG" && \ 24485 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lmdb\""; } >&5 24486 ($PKG_CONFIG --exists --print-errors "lmdb") 2>&5 24487 ac_status=$? 24488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24489 test $ac_status = 0; }; then 24490 pkg_cv_LMDB_CFLAGS=`$PKG_CONFIG --cflags "lmdb" 2>/dev/null` 24491 test "x$?" != "x0" && pkg_failed=yes 24492 else 24493 pkg_failed=yes 24494 fi 24495 else 24496 pkg_failed=untried 24497 fi 24498 if test -n "$LMDB_LIBS"; then 24499 pkg_cv_LMDB_LIBS="$LMDB_LIBS" 24500 elif test -n "$PKG_CONFIG"; then 24501 if test -n "$PKG_CONFIG" && \ 24502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lmdb\""; } >&5 24503 ($PKG_CONFIG --exists --print-errors "lmdb") 2>&5 24504 ac_status=$? 24505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24506 test $ac_status = 0; }; then 24507 pkg_cv_LMDB_LIBS=`$PKG_CONFIG --libs "lmdb" 2>/dev/null` 24508 test "x$?" != "x0" && pkg_failed=yes 24509 else 24510 pkg_failed=yes 24511 fi 24512 else 24513 pkg_failed=untried 24514 fi 24515 24516 24517 24518 if test $pkg_failed = yes; then 24519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24520 printf "%s\n" "no" >&6; } 24521 24522 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24523 _pkg_short_errors_supported=yes 24524 else 24525 _pkg_short_errors_supported=no 24526 fi 24527 if test $_pkg_short_errors_supported = yes; then 24528 LMDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lmdb" 2>&1` 24529 else 24530 LMDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lmdb" 2>&1` 24531 fi 24532 # Put the nasty error message in config.log where it belongs 24533 echo "$LMDB_PKG_ERRORS" >&5 24534 24535 for ac_lib_lmdb_path in /usr /usr/local /opt /opt/local; do 24536 if test -z "$ac_lib_lmdb_path" 24537 then : 24538 as_fn_error $? "Path cannot be empty" "$LINENO" 5 24539 fi 24540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb header in $ac_lib_lmdb_path" >&5 24541 printf %s "checking for lmdb header in $ac_lib_lmdb_path... " >&6; } 24542 if test -r "$ac_lib_lmdb_path/include/lmdb.h" 24543 then : 24544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24545 printf "%s\n" "yes" >&6; } 24546 LMDB_CFLAGS="-I$ac_lib_lmdb_path/include" 24547 LMDB_LIBS="-L$ac_lib_lmdb_path/lib" 24548 24549 24550 CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS 24551 24552 24553 24554 CFLAGS_lmdb_ax_save_flags=$CFLAGS 24555 24556 24557 24558 CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS 24559 24560 24561 24562 CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS 24563 24564 24565 24566 ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS 24567 24568 24569 24570 FCFLAGS_lmdb_ax_save_flags=$FCFLAGS 24571 24572 24573 24574 FCLIBS_lmdb_ax_save_flags=$FCLIBS 24575 24576 24577 24578 FFLAGS_lmdb_ax_save_flags=$FFLAGS 24579 24580 24581 24582 FLIBS_lmdb_ax_save_flags=$FLIBS 24583 24584 24585 24586 GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS 24587 24588 24589 24590 JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS 24591 24592 24593 24594 LDFLAGS_lmdb_ax_save_flags=$LDFLAGS 24595 24596 24597 24598 LIBS_lmdb_ax_save_flags=$LIBS 24599 24600 24601 24602 OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS 24603 24604 24605 24606 OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS 24607 24608 24609 24610 UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS 24611 24612 24613 24614 VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS 24615 24616 24617 24618 CFLAGS="$CFLAGS $LMDB_CFLAGS" 24619 LIBS="$LIBS $LMDB_LIBS" 24620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5 24621 printf %s "checking for library containing mdb_env_create... " >&6; } 24622 if test ${ac_cv_search_mdb_env_create+y} 24623 then : 24624 printf %s "(cached) " >&6 24625 else case e in #( 24626 e) ac_func_search_save_LIBS=$LIBS 24627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24628 /* end confdefs.h. */ 24629 24630 /* Override any GCC internal prototype to avoid an error. 24631 Use char because int might match the return type of a GCC 24632 builtin and then its argument prototype would still apply. 24633 The 'extern "C"' is for builds by C++ compilers; 24634 although this is not generally supported in C code supporting it here 24635 has little cost and some practical benefit (sr 110532). */ 24636 #ifdef __cplusplus 24637 extern "C" 24638 #endif 24639 char mdb_env_create (void); 24640 int 24641 main (void) 24642 { 24643 return mdb_env_create (); 24644 ; 24645 return 0; 24646 } 24647 _ACEOF 24648 for ac_lib in '' lmdb 24649 do 24650 if test -z "$ac_lib"; then 24651 ac_res="none required" 24652 else 24653 ac_res=-l$ac_lib 24654 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24655 fi 24656 if ac_fn_c_try_link "$LINENO" 24657 then : 24658 ac_cv_search_mdb_env_create=$ac_res 24659 fi 24660 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24661 conftest$ac_exeext 24662 if test ${ac_cv_search_mdb_env_create+y} 24663 then : 24664 break 24665 fi 24666 done 24667 if test ${ac_cv_search_mdb_env_create+y} 24668 then : 24669 24670 else case e in #( 24671 e) ac_cv_search_mdb_env_create=no ;; 24672 esac 24673 fi 24674 rm conftest.$ac_ext 24675 LIBS=$ac_func_search_save_LIBS ;; 24676 esac 24677 fi 24678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5 24679 printf "%s\n" "$ac_cv_search_mdb_env_create" >&6; } 24680 ac_res=$ac_cv_search_mdb_env_create 24681 if test "$ac_res" != no 24682 then : 24683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24684 LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create" 24685 24686 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags 24687 24688 24689 CFLAGS=$CFLAGS_lmdb_ax_save_flags 24690 24691 24692 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags 24693 24694 24695 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags 24696 24697 24698 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags 24699 24700 24701 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags 24702 24703 24704 FCLIBS=$FCLIBS_lmdb_ax_save_flags 24705 24706 24707 FFLAGS=$FFLAGS_lmdb_ax_save_flags 24708 24709 24710 FLIBS=$FLIBS_lmdb_ax_save_flags 24711 24712 24713 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags 24714 24715 24716 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags 24717 24718 24719 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags 24720 24721 24722 LIBS=$LIBS_lmdb_ax_save_flags 24723 24724 24725 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags 24726 24727 24728 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags 24729 24730 24731 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags 24732 24733 24734 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags 24735 24736 24737 24738 ac_lib_lmdb_found=yes 24739 break 24740 24741 else case e in #( 24742 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24743 printf "%s\n" "no" >&6; } 24744 LMDB_CFLAGS="" 24745 LMDB_LIBS="" 24746 24747 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags 24748 24749 24750 CFLAGS=$CFLAGS_lmdb_ax_save_flags 24751 24752 24753 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags 24754 24755 24756 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags 24757 24758 24759 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags 24760 24761 24762 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags 24763 24764 24765 FCLIBS=$FCLIBS_lmdb_ax_save_flags 24766 24767 24768 FFLAGS=$FFLAGS_lmdb_ax_save_flags 24769 24770 24771 FLIBS=$FLIBS_lmdb_ax_save_flags 24772 24773 24774 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags 24775 24776 24777 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags 24778 24779 24780 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags 24781 24782 24783 LIBS=$LIBS_lmdb_ax_save_flags 24784 24785 24786 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags 24787 24788 24789 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags 24790 24791 24792 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags 24793 24794 24795 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags 24796 24797 24798 24799 24800 ;; 24801 esac 24802 fi 24803 24804 24805 else case e in #( 24806 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24807 printf "%s\n" "no" >&6; } ;; 24808 esac 24809 fi 24810 done 24811 24812 elif test $pkg_failed = untried; then 24813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24814 printf "%s\n" "no" >&6; } 24815 for ac_lib_lmdb_path in /usr /usr/local /opt /opt/local; do 24816 if test -z "$ac_lib_lmdb_path" 24817 then : 24818 as_fn_error $? "Path cannot be empty" "$LINENO" 5 24819 fi 24820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb header in $ac_lib_lmdb_path" >&5 24821 printf %s "checking for lmdb header in $ac_lib_lmdb_path... " >&6; } 24822 if test -r "$ac_lib_lmdb_path/include/lmdb.h" 24823 then : 24824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24825 printf "%s\n" "yes" >&6; } 24826 LMDB_CFLAGS="-I$ac_lib_lmdb_path/include" 24827 LMDB_LIBS="-L$ac_lib_lmdb_path/lib" 24828 24829 24830 CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS 24831 24832 24833 24834 CFLAGS_lmdb_ax_save_flags=$CFLAGS 24835 24836 24837 24838 CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS 24839 24840 24841 24842 CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS 24843 24844 24845 24846 ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS 24847 24848 24849 24850 FCFLAGS_lmdb_ax_save_flags=$FCFLAGS 24851 24852 24853 24854 FCLIBS_lmdb_ax_save_flags=$FCLIBS 24855 24856 24857 24858 FFLAGS_lmdb_ax_save_flags=$FFLAGS 24859 24860 24861 24862 FLIBS_lmdb_ax_save_flags=$FLIBS 24863 24864 24865 24866 GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS 24867 24868 24869 24870 JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS 24871 24872 24873 24874 LDFLAGS_lmdb_ax_save_flags=$LDFLAGS 24875 24876 24877 24878 LIBS_lmdb_ax_save_flags=$LIBS 24879 24880 24881 24882 OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS 24883 24884 24885 24886 OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS 24887 24888 24889 24890 UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS 24891 24892 24893 24894 VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS 24895 24896 24897 24898 CFLAGS="$CFLAGS $LMDB_CFLAGS" 24899 LIBS="$LIBS $LMDB_LIBS" 24900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5 24901 printf %s "checking for library containing mdb_env_create... " >&6; } 24902 if test ${ac_cv_search_mdb_env_create+y} 24903 then : 24904 printf %s "(cached) " >&6 24905 else case e in #( 24906 e) ac_func_search_save_LIBS=$LIBS 24907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24908 /* end confdefs.h. */ 24909 24910 /* Override any GCC internal prototype to avoid an error. 24911 Use char because int might match the return type of a GCC 24912 builtin and then its argument prototype would still apply. 24913 The 'extern "C"' is for builds by C++ compilers; 24914 although this is not generally supported in C code supporting it here 24915 has little cost and some practical benefit (sr 110532). */ 24916 #ifdef __cplusplus 24917 extern "C" 24918 #endif 24919 char mdb_env_create (void); 24920 int 24921 main (void) 24922 { 24923 return mdb_env_create (); 24924 ; 24925 return 0; 24926 } 24927 _ACEOF 24928 for ac_lib in '' lmdb 24929 do 24930 if test -z "$ac_lib"; then 24931 ac_res="none required" 24932 else 24933 ac_res=-l$ac_lib 24934 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24935 fi 24936 if ac_fn_c_try_link "$LINENO" 24937 then : 24938 ac_cv_search_mdb_env_create=$ac_res 24939 fi 24940 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24941 conftest$ac_exeext 24942 if test ${ac_cv_search_mdb_env_create+y} 24943 then : 24944 break 24945 fi 24946 done 24947 if test ${ac_cv_search_mdb_env_create+y} 24948 then : 24949 24950 else case e in #( 24951 e) ac_cv_search_mdb_env_create=no ;; 24952 esac 24953 fi 24954 rm conftest.$ac_ext 24955 LIBS=$ac_func_search_save_LIBS ;; 24956 esac 24957 fi 24958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5 24959 printf "%s\n" "$ac_cv_search_mdb_env_create" >&6; } 24960 ac_res=$ac_cv_search_mdb_env_create 24961 if test "$ac_res" != no 24962 then : 24963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24964 LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create" 24965 24966 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags 24967 24968 24969 CFLAGS=$CFLAGS_lmdb_ax_save_flags 24970 24971 24972 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags 24973 24974 24975 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags 24976 24977 24978 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags 24979 24980 24981 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags 24982 24983 24984 FCLIBS=$FCLIBS_lmdb_ax_save_flags 24985 24986 24987 FFLAGS=$FFLAGS_lmdb_ax_save_flags 24988 24989 24990 FLIBS=$FLIBS_lmdb_ax_save_flags 24991 24992 24993 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags 24994 24995 24996 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags 24997 24998 24999 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags 25000 25001 25002 LIBS=$LIBS_lmdb_ax_save_flags 25003 25004 25005 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags 25006 25007 25008 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags 25009 25010 25011 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags 25012 25013 25014 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags 25015 25016 25017 25018 ac_lib_lmdb_found=yes 25019 break 25020 25021 else case e in #( 25022 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25023 printf "%s\n" "no" >&6; } 25024 LMDB_CFLAGS="" 25025 LMDB_LIBS="" 25026 25027 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags 25028 25029 25030 CFLAGS=$CFLAGS_lmdb_ax_save_flags 25031 25032 25033 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags 25034 25035 25036 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags 25037 25038 25039 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags 25040 25041 25042 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags 25043 25044 25045 FCLIBS=$FCLIBS_lmdb_ax_save_flags 25046 25047 25048 FFLAGS=$FFLAGS_lmdb_ax_save_flags 25049 25050 25051 FLIBS=$FLIBS_lmdb_ax_save_flags 25052 25053 25054 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags 25055 25056 25057 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags 25058 25059 25060 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags 25061 25062 25063 LIBS=$LIBS_lmdb_ax_save_flags 25064 25065 25066 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags 25067 25068 25069 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags 25070 25071 25072 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags 25073 25074 25075 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags 25076 25077 25078 25079 25080 ;; 25081 esac 25082 fi 25083 25084 25085 else case e in #( 25086 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25087 printf "%s\n" "no" >&6; } ;; 25088 esac 25089 fi 25090 done 25091 25092 else 25093 LMDB_CFLAGS=$pkg_cv_LMDB_CFLAGS 25094 LMDB_LIBS=$pkg_cv_LMDB_LIBS 25095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25096 printf "%s\n" "yes" >&6; } 25097 ac_lib_lmdb_found=yes 25098 fi ;; #( 25099 *) : 25100 if test -z "$with_lmdb" 25101 then : 25102 as_fn_error $? "Path cannot be empty" "$LINENO" 5 25103 fi 25104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb header in $with_lmdb" >&5 25105 printf %s "checking for lmdb header in $with_lmdb... " >&6; } 25106 if test -r "$with_lmdb/include/lmdb.h" 25107 then : 25108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25109 printf "%s\n" "yes" >&6; } 25110 LMDB_CFLAGS="-I$with_lmdb/include" 25111 LMDB_LIBS="-L$with_lmdb/lib" 25112 25113 25114 CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS 25115 25116 25117 25118 CFLAGS_lmdb_ax_save_flags=$CFLAGS 25119 25120 25121 25122 CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS 25123 25124 25125 25126 CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS 25127 25128 25129 25130 ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS 25131 25132 25133 25134 FCFLAGS_lmdb_ax_save_flags=$FCFLAGS 25135 25136 25137 25138 FCLIBS_lmdb_ax_save_flags=$FCLIBS 25139 25140 25141 25142 FFLAGS_lmdb_ax_save_flags=$FFLAGS 25143 25144 25145 25146 FLIBS_lmdb_ax_save_flags=$FLIBS 25147 25148 25149 25150 GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS 25151 25152 25153 25154 JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS 25155 25156 25157 25158 LDFLAGS_lmdb_ax_save_flags=$LDFLAGS 25159 25160 25161 25162 LIBS_lmdb_ax_save_flags=$LIBS 25163 25164 25165 25166 OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS 25167 25168 25169 25170 OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS 25171 25172 25173 25174 UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS 25175 25176 25177 25178 VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS 25179 25180 25181 25182 CFLAGS="$CFLAGS $LMDB_CFLAGS" 25183 LIBS="$LIBS $LMDB_LIBS" 25184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5 25185 printf %s "checking for library containing mdb_env_create... " >&6; } 25186 if test ${ac_cv_search_mdb_env_create+y} 25187 then : 25188 printf %s "(cached) " >&6 25189 else case e in #( 25190 e) ac_func_search_save_LIBS=$LIBS 25191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25192 /* end confdefs.h. */ 25193 25194 /* Override any GCC internal prototype to avoid an error. 25195 Use char because int might match the return type of a GCC 25196 builtin and then its argument prototype would still apply. 25197 The 'extern "C"' is for builds by C++ compilers; 25198 although this is not generally supported in C code supporting it here 25199 has little cost and some practical benefit (sr 110532). */ 25200 #ifdef __cplusplus 25201 extern "C" 25202 #endif 25203 char mdb_env_create (void); 25204 int 25205 main (void) 25206 { 25207 return mdb_env_create (); 25208 ; 25209 return 0; 25210 } 25211 _ACEOF 25212 for ac_lib in '' lmdb 25213 do 25214 if test -z "$ac_lib"; then 25215 ac_res="none required" 25216 else 25217 ac_res=-l$ac_lib 25218 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25219 fi 25220 if ac_fn_c_try_link "$LINENO" 25221 then : 25222 ac_cv_search_mdb_env_create=$ac_res 25223 fi 25224 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25225 conftest$ac_exeext 25226 if test ${ac_cv_search_mdb_env_create+y} 25227 then : 25228 break 25229 fi 25230 done 25231 if test ${ac_cv_search_mdb_env_create+y} 25232 then : 25233 25234 else case e in #( 25235 e) ac_cv_search_mdb_env_create=no ;; 25236 esac 25237 fi 25238 rm conftest.$ac_ext 25239 LIBS=$ac_func_search_save_LIBS ;; 25240 esac 25241 fi 25242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5 25243 printf "%s\n" "$ac_cv_search_mdb_env_create" >&6; } 25244 ac_res=$ac_cv_search_mdb_env_create 25245 if test "$ac_res" != no 25246 then : 25247 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25248 LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create" 25249 25250 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags 25251 25252 25253 CFLAGS=$CFLAGS_lmdb_ax_save_flags 25254 25255 25256 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags 25257 25258 25259 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags 25260 25261 25262 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags 25263 25264 25265 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags 25266 25267 25268 FCLIBS=$FCLIBS_lmdb_ax_save_flags 25269 25270 25271 FFLAGS=$FFLAGS_lmdb_ax_save_flags 25272 25273 25274 FLIBS=$FLIBS_lmdb_ax_save_flags 25275 25276 25277 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags 25278 25279 25280 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags 25281 25282 25283 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags 25284 25285 25286 LIBS=$LIBS_lmdb_ax_save_flags 25287 25288 25289 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags 25290 25291 25292 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags 25293 25294 25295 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags 25296 25297 25298 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags 25299 25300 25301 25302 ac_lib_lmdb_found=yes 25303 25304 else case e in #( 25305 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25306 printf "%s\n" "no" >&6; } 25307 LMDB_CFLAGS="" 25308 LMDB_LIBS="" 25309 25310 CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags 25311 25312 25313 CFLAGS=$CFLAGS_lmdb_ax_save_flags 25314 25315 25316 CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags 25317 25318 25319 CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags 25320 25321 25322 ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags 25323 25324 25325 FCFLAGS=$FCFLAGS_lmdb_ax_save_flags 25326 25327 25328 FCLIBS=$FCLIBS_lmdb_ax_save_flags 25329 25330 25331 FFLAGS=$FFLAGS_lmdb_ax_save_flags 25332 25333 25334 FLIBS=$FLIBS_lmdb_ax_save_flags 25335 25336 25337 GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags 25338 25339 25340 JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags 25341 25342 25343 LDFLAGS=$LDFLAGS_lmdb_ax_save_flags 25344 25345 25346 LIBS=$LIBS_lmdb_ax_save_flags 25347 25348 25349 OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags 25350 25351 25352 OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags 25353 25354 25355 UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags 25356 25357 25358 VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags 25359 25360 25361 25362 25363 ;; 25364 esac 25365 fi 25366 25367 25368 else case e in #( 25369 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25370 printf "%s\n" "no" >&6; } ;; 25371 esac 25372 fi ;; 25373 esac 25374 25375 # don't fail when in automatic mode 25376 if test "$with_lmdb" = "auto" && test "$ac_lib_lmdb_found" = "no" 25377 then : 25378 with_lmdb=no 25379 fi 25380 25381 # hard fail when LMDB requested, but not found 25382 if test "$with_lmdb" != "no" && test "$ac_lib_lmdb_found" != "yes" 25383 then : 25384 as_fn_error $? "LMDB requested, but not found" "$LINENO" 5 25385 fi 25386 25387 if test "$ac_lib_lmdb_found" = "yes" 25388 then : 25389 25390 printf "%s\n" "#define HAVE_LMDB 1" >>confdefs.h 25391 25392 fi 25393 25394 25395 25396 if test -n "$LMDB_LIBS"; then 25397 HAVE_LMDB_TRUE= 25398 HAVE_LMDB_FALSE='#' 25399 else 25400 HAVE_LMDB_TRUE='#' 25401 HAVE_LMDB_FALSE= 25402 fi 25403 25404 25405 # 25406 # was --with-libxml2 specified? 25407 # 25408 # [pairwise: --with-libxml2=auto, --with-libxml2=yes, --without-libxml2] 25409 25410 # Check whether --with-libxml2 was given. 25411 if test ${with_libxml2+y} 25412 then : 25413 withval=$with_libxml2; 25414 else case e in #( 25415 e) with_libxml2="auto" ;; 25416 esac 25417 fi 25418 25419 25420 case $with_libxml2 in #( 25421 no) : 25422 ;; #( 25423 auto) : 25424 25425 pkg_failed=no 25426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5 25427 printf %s "checking for libxml-2.0 >= 2.6.0... " >&6; } 25428 25429 if test -n "$LIBXML2_CFLAGS"; then 25430 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS" 25431 elif test -n "$PKG_CONFIG"; then 25432 if test -n "$PKG_CONFIG" && \ 25433 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5 25434 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5 25435 ac_status=$? 25436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25437 test $ac_status = 0; }; then 25438 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null` 25439 test "x$?" != "x0" && pkg_failed=yes 25440 else 25441 pkg_failed=yes 25442 fi 25443 else 25444 pkg_failed=untried 25445 fi 25446 if test -n "$LIBXML2_LIBS"; then 25447 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS" 25448 elif test -n "$PKG_CONFIG"; then 25449 if test -n "$PKG_CONFIG" && \ 25450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5 25451 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5 25452 ac_status=$? 25453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25454 test $ac_status = 0; }; then 25455 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null` 25456 test "x$?" != "x0" && pkg_failed=yes 25457 else 25458 pkg_failed=yes 25459 fi 25460 else 25461 pkg_failed=untried 25462 fi 25463 25464 25465 25466 if test $pkg_failed = yes; then 25467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25468 printf "%s\n" "no" >&6; } 25469 25470 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25471 _pkg_short_errors_supported=yes 25472 else 25473 _pkg_short_errors_supported=no 25474 fi 25475 if test $_pkg_short_errors_supported = yes; then 25476 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1` 25477 else 25478 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1` 25479 fi 25480 # Put the nasty error message in config.log where it belongs 25481 echo "$LIBXML2_PKG_ERRORS" >&5 25482 25483 : 25484 elif test $pkg_failed = untried; then 25485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25486 printf "%s\n" "no" >&6; } 25487 : 25488 else 25489 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS 25490 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS 25491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25492 printf "%s\n" "yes" >&6; } 25493 25494 printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h 25495 25496 fi ;; #( 25497 yes) : 25498 25499 pkg_failed=no 25500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5 25501 printf %s "checking for libxml-2.0 >= 2.6.0... " >&6; } 25502 25503 if test -n "$LIBXML2_CFLAGS"; then 25504 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS" 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 \"libxml-2.0 >= 2.6.0\""; } >&5 25508 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 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_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null` 25513 test "x$?" != "x0" && pkg_failed=yes 25514 else 25515 pkg_failed=yes 25516 fi 25517 else 25518 pkg_failed=untried 25519 fi 25520 if test -n "$LIBXML2_LIBS"; then 25521 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS" 25522 elif test -n "$PKG_CONFIG"; then 25523 if test -n "$PKG_CONFIG" && \ 25524 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5 25525 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5 25526 ac_status=$? 25527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25528 test $ac_status = 0; }; then 25529 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null` 25530 test "x$?" != "x0" && pkg_failed=yes 25531 else 25532 pkg_failed=yes 25533 fi 25534 else 25535 pkg_failed=untried 25536 fi 25537 25538 25539 25540 if test $pkg_failed = yes; then 25541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25542 printf "%s\n" "no" >&6; } 25543 25544 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25545 _pkg_short_errors_supported=yes 25546 else 25547 _pkg_short_errors_supported=no 25548 fi 25549 if test $_pkg_short_errors_supported = yes; then 25550 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1` 25551 else 25552 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1` 25553 fi 25554 # Put the nasty error message in config.log where it belongs 25555 echo "$LIBXML2_PKG_ERRORS" >&5 25556 25557 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6.0) were not met: 25558 25559 $LIBXML2_PKG_ERRORS 25560 25561 Consider adjusting the PKG_CONFIG_PATH environment variable if you 25562 installed software in a non-standard prefix. 25563 25564 Alternatively, you may set the environment variables LIBXML2_CFLAGS 25565 and LIBXML2_LIBS to avoid the need to call pkg-config. 25566 See the pkg-config man page for more details." "$LINENO" 5 25567 elif test $pkg_failed = untried; then 25568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25569 printf "%s\n" "no" >&6; } 25570 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 25571 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 25572 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 25573 is in your PATH or set the PKG_CONFIG environment variable to the full 25574 path to pkg-config. 25575 25576 Alternatively, you may set the environment variables LIBXML2_CFLAGS 25577 and LIBXML2_LIBS to avoid the need to call pkg-config. 25578 See the pkg-config man page for more details. 25579 25580 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 25581 See 'config.log' for more details" "$LINENO" 5; } 25582 else 25583 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS 25584 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS 25585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25586 printf "%s\n" "yes" >&6; } 25587 25588 printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h 25589 25590 fi ;; #( 25591 *) : 25592 as_fn_error $? "Specifying libxml2 installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;; 25593 esac 25594 25595 if test -n "$LIBXML2_LIBS"; then 25596 HAVE_LIBXML2_TRUE= 25597 HAVE_LIBXML2_FALSE='#' 25598 else 25599 HAVE_LIBXML2_TRUE='#' 25600 HAVE_LIBXML2_FALSE= 25601 fi 25602 25603 25604 # 25605 # was --with-json-c specified? 25606 # 25607 # [pairwise: --with-json-c=detect, --with-json-c=yes, --without-json-c] 25608 25609 # Check whether --with-json-c was given. 25610 if test ${with_json_c+y} 25611 then : 25612 withval=$with_json_c; 25613 else case e in #( 25614 e) with_json_c="detect" ;; 25615 esac 25616 fi 25617 25618 25619 case $with_json_c in #( 25620 no) : 25621 ;; #( 25622 detect) : 25623 25624 pkg_failed=no 25625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5 25626 printf %s "checking for json-c >= 0.11... " >&6; } 25627 25628 if test -n "$JSON_C_CFLAGS"; then 25629 pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS" 25630 elif test -n "$PKG_CONFIG"; then 25631 if test -n "$PKG_CONFIG" && \ 25632 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5 25633 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5 25634 ac_status=$? 25635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25636 test $ac_status = 0; }; then 25637 pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null` 25638 test "x$?" != "x0" && pkg_failed=yes 25639 else 25640 pkg_failed=yes 25641 fi 25642 else 25643 pkg_failed=untried 25644 fi 25645 if test -n "$JSON_C_LIBS"; then 25646 pkg_cv_JSON_C_LIBS="$JSON_C_LIBS" 25647 elif test -n "$PKG_CONFIG"; then 25648 if test -n "$PKG_CONFIG" && \ 25649 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5 25650 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5 25651 ac_status=$? 25652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25653 test $ac_status = 0; }; then 25654 pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null` 25655 test "x$?" != "x0" && pkg_failed=yes 25656 else 25657 pkg_failed=yes 25658 fi 25659 else 25660 pkg_failed=untried 25661 fi 25662 25663 25664 25665 if test $pkg_failed = yes; then 25666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25667 printf "%s\n" "no" >&6; } 25668 25669 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25670 _pkg_short_errors_supported=yes 25671 else 25672 _pkg_short_errors_supported=no 25673 fi 25674 if test $_pkg_short_errors_supported = yes; then 25675 JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1` 25676 else 25677 JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1` 25678 fi 25679 # Put the nasty error message in config.log where it belongs 25680 echo "$JSON_C_PKG_ERRORS" >&5 25681 25682 : 25683 elif test $pkg_failed = untried; then 25684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25685 printf "%s\n" "no" >&6; } 25686 : 25687 else 25688 JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS 25689 JSON_C_LIBS=$pkg_cv_JSON_C_LIBS 25690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25691 printf "%s\n" "yes" >&6; } 25692 25693 printf "%s\n" "#define HAVE_JSON_C 1" >>confdefs.h 25694 25695 fi ;; #( 25696 yes) : 25697 25698 pkg_failed=no 25699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5 25700 printf %s "checking for json-c >= 0.11... " >&6; } 25701 25702 if test -n "$JSON_C_CFLAGS"; then 25703 pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS" 25704 elif test -n "$PKG_CONFIG"; then 25705 if test -n "$PKG_CONFIG" && \ 25706 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5 25707 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5 25708 ac_status=$? 25709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25710 test $ac_status = 0; }; then 25711 pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null` 25712 test "x$?" != "x0" && pkg_failed=yes 25713 else 25714 pkg_failed=yes 25715 fi 25716 else 25717 pkg_failed=untried 25718 fi 25719 if test -n "$JSON_C_LIBS"; then 25720 pkg_cv_JSON_C_LIBS="$JSON_C_LIBS" 25721 elif test -n "$PKG_CONFIG"; then 25722 if test -n "$PKG_CONFIG" && \ 25723 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5 25724 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5 25725 ac_status=$? 25726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25727 test $ac_status = 0; }; then 25728 pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null` 25729 test "x$?" != "x0" && pkg_failed=yes 25730 else 25731 pkg_failed=yes 25732 fi 25733 else 25734 pkg_failed=untried 25735 fi 25736 25737 25738 25739 if test $pkg_failed = yes; then 25740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25741 printf "%s\n" "no" >&6; } 25742 25743 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25744 _pkg_short_errors_supported=yes 25745 else 25746 _pkg_short_errors_supported=no 25747 fi 25748 if test $_pkg_short_errors_supported = yes; then 25749 JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1` 25750 else 25751 JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1` 25752 fi 25753 # Put the nasty error message in config.log where it belongs 25754 echo "$JSON_C_PKG_ERRORS" >&5 25755 25756 as_fn_error $? "Package requirements (json-c >= 0.11) were not met: 25757 25758 $JSON_C_PKG_ERRORS 25759 25760 Consider adjusting the PKG_CONFIG_PATH environment variable if you 25761 installed software in a non-standard prefix. 25762 25763 Alternatively, you may set the environment variables JSON_C_CFLAGS 25764 and JSON_C_LIBS to avoid the need to call pkg-config. 25765 See the pkg-config man page for more details." "$LINENO" 5 25766 elif test $pkg_failed = untried; then 25767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25768 printf "%s\n" "no" >&6; } 25769 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 25770 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 25771 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 25772 is in your PATH or set the PKG_CONFIG environment variable to the full 25773 path to pkg-config. 25774 25775 Alternatively, you may set the environment variables JSON_C_CFLAGS 25776 and JSON_C_LIBS to avoid the need to call pkg-config. 25777 See the pkg-config man page for more details. 25778 25779 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 25780 See 'config.log' for more details" "$LINENO" 5; } 25781 else 25782 JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS 25783 JSON_C_LIBS=$pkg_cv_JSON_C_LIBS 25784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25785 printf "%s\n" "yes" >&6; } 25786 25787 printf "%s\n" "#define HAVE_JSON_C 1" >>confdefs.h 25788 25789 fi ;; #( 25790 *) : 25791 as_fn_error $? "Specifying json-c installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 25792 ;; 25793 esac 25794 25795 if test -n "$JSON_C_LIBS"; then 25796 HAVE_JSON_C_TRUE= 25797 HAVE_JSON_C_FALSE='#' 25798 else 25799 HAVE_JSON_C_TRUE='#' 25800 HAVE_JSON_C_FALSE= 25801 fi 25802 25803 25804 25805 25806 25807 # 25808 # was --with-zlib specified? 25809 # 25810 # [pairwise: --with-zlib=auto, --with-zlib=yes, --without-zlib] 25811 25812 # Check whether --with-zlib was given. 25813 if test ${with_zlib+y} 25814 then : 25815 withval=$with_zlib; 25816 else case e in #( 25817 e) with_zlib="auto" ;; 25818 esac 25819 fi 25820 25821 25822 case $with_zlib in #( 25823 no) : 25824 ;; #( 25825 auto) : 25826 25827 pkg_failed=no 25828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5 25829 printf %s "checking for zlib... " >&6; } 25830 25831 if test -n "$ZLIB_CFLAGS"; then 25832 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 25833 elif test -n "$PKG_CONFIG"; then 25834 if test -n "$PKG_CONFIG" && \ 25835 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 25836 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 25837 ac_status=$? 25838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25839 test $ac_status = 0; }; then 25840 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` 25841 test "x$?" != "x0" && pkg_failed=yes 25842 else 25843 pkg_failed=yes 25844 fi 25845 else 25846 pkg_failed=untried 25847 fi 25848 if test -n "$ZLIB_LIBS"; then 25849 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 25850 elif test -n "$PKG_CONFIG"; then 25851 if test -n "$PKG_CONFIG" && \ 25852 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 25853 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 25854 ac_status=$? 25855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25856 test $ac_status = 0; }; then 25857 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` 25858 test "x$?" != "x0" && pkg_failed=yes 25859 else 25860 pkg_failed=yes 25861 fi 25862 else 25863 pkg_failed=untried 25864 fi 25865 25866 25867 25868 if test $pkg_failed = yes; then 25869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25870 printf "%s\n" "no" >&6; } 25871 25872 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25873 _pkg_short_errors_supported=yes 25874 else 25875 _pkg_short_errors_supported=no 25876 fi 25877 if test $_pkg_short_errors_supported = yes; then 25878 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` 25879 else 25880 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` 25881 fi 25882 # Put the nasty error message in config.log where it belongs 25883 echo "$ZLIB_PKG_ERRORS" >&5 25884 25885 : 25886 elif test $pkg_failed = untried; then 25887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25888 printf "%s\n" "no" >&6; } 25889 : 25890 else 25891 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 25892 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 25893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25894 printf "%s\n" "yes" >&6; } 25895 25896 printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h 25897 25898 fi ;; #( 25899 yes) : 25900 25901 pkg_failed=no 25902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5 25903 printf %s "checking for zlib... " >&6; } 25904 25905 if test -n "$ZLIB_CFLAGS"; then 25906 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 25907 elif test -n "$PKG_CONFIG"; then 25908 if test -n "$PKG_CONFIG" && \ 25909 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 25910 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 25911 ac_status=$? 25912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25913 test $ac_status = 0; }; then 25914 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` 25915 test "x$?" != "x0" && pkg_failed=yes 25916 else 25917 pkg_failed=yes 25918 fi 25919 else 25920 pkg_failed=untried 25921 fi 25922 if test -n "$ZLIB_LIBS"; then 25923 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 25924 elif test -n "$PKG_CONFIG"; then 25925 if test -n "$PKG_CONFIG" && \ 25926 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 25927 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 25928 ac_status=$? 25929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25930 test $ac_status = 0; }; then 25931 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` 25932 test "x$?" != "x0" && pkg_failed=yes 25933 else 25934 pkg_failed=yes 25935 fi 25936 else 25937 pkg_failed=untried 25938 fi 25939 25940 25941 25942 if test $pkg_failed = yes; then 25943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25944 printf "%s\n" "no" >&6; } 25945 25946 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25947 _pkg_short_errors_supported=yes 25948 else 25949 _pkg_short_errors_supported=no 25950 fi 25951 if test $_pkg_short_errors_supported = yes; then 25952 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` 25953 else 25954 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` 25955 fi 25956 # Put the nasty error message in config.log where it belongs 25957 echo "$ZLIB_PKG_ERRORS" >&5 25958 25959 as_fn_error $? "Package requirements (zlib) were not met: 25960 25961 $ZLIB_PKG_ERRORS 25962 25963 Consider adjusting the PKG_CONFIG_PATH environment variable if you 25964 installed software in a non-standard prefix. 25965 25966 Alternatively, you may set the environment variables ZLIB_CFLAGS 25967 and ZLIB_LIBS to avoid the need to call pkg-config. 25968 See the pkg-config man page for more details." "$LINENO" 5 25969 elif test $pkg_failed = untried; then 25970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25971 printf "%s\n" "no" >&6; } 25972 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 25973 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 25974 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 25975 is in your PATH or set the PKG_CONFIG environment variable to the full 25976 path to pkg-config. 25977 25978 Alternatively, you may set the environment variables ZLIB_CFLAGS 25979 and ZLIB_LIBS to avoid the need to call pkg-config. 25980 See the pkg-config man page for more details. 25981 25982 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 25983 See 'config.log' for more details" "$LINENO" 5; } 25984 else 25985 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 25986 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 25987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25988 printf "%s\n" "yes" >&6; } 25989 25990 printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h 25991 25992 fi ;; #( 25993 *) : 25994 as_fn_error $? "Specifying zlib installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;; 25995 esac 25996 25997 25998 25999 # 26000 # Check if the system supports glibc-compatible backtrace() function. 26001 # 26002 for ac_header in execinfo.h 26003 do : 26004 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 26005 if test "x$ac_cv_header_execinfo_h" = xyes 26006 then : 26007 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h 26008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5 26009 printf %s "checking for library containing backtrace_symbols... " >&6; } 26010 if test ${ac_cv_search_backtrace_symbols+y} 26011 then : 26012 printf %s "(cached) " >&6 26013 else case e in #( 26014 e) ac_func_search_save_LIBS=$LIBS 26015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26016 /* end confdefs.h. */ 26017 26018 /* Override any GCC internal prototype to avoid an error. 26019 Use char because int might match the return type of a GCC 26020 builtin and then its argument prototype would still apply. 26021 The 'extern "C"' is for builds by C++ compilers; 26022 although this is not generally supported in C code supporting it here 26023 has little cost and some practical benefit (sr 110532). */ 26024 #ifdef __cplusplus 26025 extern "C" 26026 #endif 26027 char backtrace_symbols (void); 26028 int 26029 main (void) 26030 { 26031 return backtrace_symbols (); 26032 ; 26033 return 0; 26034 } 26035 _ACEOF 26036 for ac_lib in '' execinfo 26037 do 26038 if test -z "$ac_lib"; then 26039 ac_res="none required" 26040 else 26041 ac_res=-l$ac_lib 26042 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26043 fi 26044 if ac_fn_c_try_link "$LINENO" 26045 then : 26046 ac_cv_search_backtrace_symbols=$ac_res 26047 fi 26048 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26049 conftest$ac_exeext 26050 if test ${ac_cv_search_backtrace_symbols+y} 26051 then : 26052 break 26053 fi 26054 done 26055 if test ${ac_cv_search_backtrace_symbols+y} 26056 then : 26057 26058 else case e in #( 26059 e) ac_cv_search_backtrace_symbols=no ;; 26060 esac 26061 fi 26062 rm conftest.$ac_ext 26063 LIBS=$ac_func_search_save_LIBS ;; 26064 esac 26065 fi 26066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5 26067 printf "%s\n" "$ac_cv_search_backtrace_symbols" >&6; } 26068 ac_res=$ac_cv_search_backtrace_symbols 26069 if test "$ac_res" != no 26070 then : 26071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26072 ac_fn_c_check_func "$LINENO" "backtrace_symbols" "ac_cv_func_backtrace_symbols" 26073 if test "x$ac_cv_func_backtrace_symbols" = xyes 26074 then : 26075 printf "%s\n" "#define HAVE_BACKTRACE_SYMBOLS 1" >>confdefs.h 26076 26077 fi 26078 26079 fi 26080 26081 fi 26082 26083 done 26084 26085 # 26086 # We do the IPv6 compilation checking after libtool so that we can put 26087 # the right suffix on the files. 26088 # 26089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 26090 printf %s "checking for IPv6 structures... " >&6; } 26091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26092 /* end confdefs.h. */ 26093 26094 #include <sys/types.h> 26095 #include <sys/socket.h> 26096 #include <netinet/in.h> 26097 26098 int 26099 main (void) 26100 { 26101 26102 struct sockaddr_in6 sin6; 26103 struct in6_addr in6; 26104 struct in6_pktinfo in6_pi; 26105 struct sockaddr_storage storage; 26106 in6 = in6addr_any; 26107 in6 = in6addr_loopback; 26108 sin6.sin6_scope_id = 0; 26109 return (0); 26110 26111 ; 26112 return 0; 26113 } 26114 _ACEOF 26115 if ac_fn_c_try_compile "$LINENO" 26116 then : 26117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26118 printf "%s\n" "yes" >&6; } 26119 else case e in #( 26120 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 26121 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 26122 as_fn_error $? "IPv6 support is mandatory 26123 See 'config.log' for more details" "$LINENO" 5; } ;; 26124 esac 26125 fi 26126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26127 26128 # 26129 # Allow forcibly disabling TCP Fast Open support as autodetection might yield 26130 # confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen() 26131 # comment in lib/isc/socket.c). 26132 # 26133 # [pairwise: --enable-tcp-fastopen, --disable-tcp-fastopen] 26134 # Check whether --enable-tcp_fastopen was given. 26135 if test ${enable_tcp_fastopen+y} 26136 then : 26137 enableval=$enable_tcp_fastopen; 26138 else case e in #( 26139 e) enable_tcp_fastopen="yes" ;; 26140 esac 26141 fi 26142 26143 26144 if test "$enable_tcp_fastopen" = "yes" 26145 then : 26146 26147 printf "%s\n" "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h 26148 26149 fi 26150 26151 # 26152 # Check for some other useful functions that are not ever-present. 26153 # 26154 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 26155 if test "x$ac_cv_func_strlcpy" = xyes 26156 then : 26157 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 26158 26159 fi 26160 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 26161 if test "x$ac_cv_func_strlcat" = xyes 26162 then : 26163 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 26164 26165 fi 26166 ac_fn_c_check_func "$LINENO" "strnstr" "ac_cv_func_strnstr" 26167 if test "x$ac_cv_func_strnstr" = xyes 26168 then : 26169 printf "%s\n" "#define HAVE_STRNSTR 1" >>confdefs.h 26170 26171 fi 26172 26173 26174 # 26175 # Check for readline support 26176 # 26177 26178 # editline is not included in pairwise testing as the library 26179 # is not present in the relevant Docker image. 26180 # 26181 # GNU Readline is not included in pairwise testing as the library 26182 # in the relevant Docker image does not support pkg-config. 26183 # 26184 # [pairwise: --with-readline=auto, --with-readline=yes, --with-readline=libedit, --without-readline] 26185 26186 # Check whether --with-readline was given. 26187 if test ${with_readline+y} 26188 then : 26189 withval=$with_readline; 26190 else case e in #( 26191 e) with_readline="auto" ;; 26192 esac 26193 fi 26194 26195 26196 case $with_readline in #( 26197 no) : 26198 ;; #( 26199 auto|yes) : 26200 26201 pkg_failed=no 26202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 26203 printf %s "checking for libedit... " >&6; } 26204 26205 if test -n "$READLINE_CFLAGS"; then 26206 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 26207 elif test -n "$PKG_CONFIG"; then 26208 if test -n "$PKG_CONFIG" && \ 26209 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 26210 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 26211 ac_status=$? 26212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26213 test $ac_status = 0; }; then 26214 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null` 26215 test "x$?" != "x0" && pkg_failed=yes 26216 else 26217 pkg_failed=yes 26218 fi 26219 else 26220 pkg_failed=untried 26221 fi 26222 if test -n "$READLINE_LIBS"; then 26223 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 26224 elif test -n "$PKG_CONFIG"; then 26225 if test -n "$PKG_CONFIG" && \ 26226 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 26227 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 26228 ac_status=$? 26229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26230 test $ac_status = 0; }; then 26231 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null` 26232 test "x$?" != "x0" && pkg_failed=yes 26233 else 26234 pkg_failed=yes 26235 fi 26236 else 26237 pkg_failed=untried 26238 fi 26239 26240 26241 26242 if test $pkg_failed = yes; then 26243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26244 printf "%s\n" "no" >&6; } 26245 26246 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26247 _pkg_short_errors_supported=yes 26248 else 26249 _pkg_short_errors_supported=no 26250 fi 26251 if test $_pkg_short_errors_supported = yes; then 26252 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1` 26253 else 26254 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1` 26255 fi 26256 # Put the nasty error message in config.log where it belongs 26257 echo "$READLINE_PKG_ERRORS" >&5 26258 26259 26260 pkg_failed=no 26261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libeditline" >&5 26262 printf %s "checking for libeditline... " >&6; } 26263 26264 if test -n "$READLINE_CFLAGS"; then 26265 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 26266 elif test -n "$PKG_CONFIG"; then 26267 if test -n "$PKG_CONFIG" && \ 26268 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5 26269 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5 26270 ac_status=$? 26271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26272 test $ac_status = 0; }; then 26273 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libeditline" 2>/dev/null` 26274 test "x$?" != "x0" && pkg_failed=yes 26275 else 26276 pkg_failed=yes 26277 fi 26278 else 26279 pkg_failed=untried 26280 fi 26281 if test -n "$READLINE_LIBS"; then 26282 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 26283 elif test -n "$PKG_CONFIG"; then 26284 if test -n "$PKG_CONFIG" && \ 26285 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5 26286 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5 26287 ac_status=$? 26288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26289 test $ac_status = 0; }; then 26290 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libeditline" 2>/dev/null` 26291 test "x$?" != "x0" && pkg_failed=yes 26292 else 26293 pkg_failed=yes 26294 fi 26295 else 26296 pkg_failed=untried 26297 fi 26298 26299 26300 26301 if test $pkg_failed = yes; then 26302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26303 printf "%s\n" "no" >&6; } 26304 26305 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26306 _pkg_short_errors_supported=yes 26307 else 26308 _pkg_short_errors_supported=no 26309 fi 26310 if test $_pkg_short_errors_supported = yes; then 26311 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeditline" 2>&1` 26312 else 26313 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeditline" 2>&1` 26314 fi 26315 # Put the nasty error message in config.log where it belongs 26316 echo "$READLINE_PKG_ERRORS" >&5 26317 26318 26319 pkg_failed=no 26320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 26321 printf %s "checking for readline... " >&6; } 26322 26323 if test -n "$READLINE_CFLAGS"; then 26324 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 26325 elif test -n "$PKG_CONFIG"; then 26326 if test -n "$PKG_CONFIG" && \ 26327 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 26328 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 26329 ac_status=$? 26330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26331 test $ac_status = 0; }; then 26332 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null` 26333 test "x$?" != "x0" && pkg_failed=yes 26334 else 26335 pkg_failed=yes 26336 fi 26337 else 26338 pkg_failed=untried 26339 fi 26340 if test -n "$READLINE_LIBS"; then 26341 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 26342 elif test -n "$PKG_CONFIG"; then 26343 if test -n "$PKG_CONFIG" && \ 26344 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 26345 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 26346 ac_status=$? 26347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26348 test $ac_status = 0; }; then 26349 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null` 26350 test "x$?" != "x0" && pkg_failed=yes 26351 else 26352 pkg_failed=yes 26353 fi 26354 else 26355 pkg_failed=untried 26356 fi 26357 26358 26359 26360 if test $pkg_failed = yes; then 26361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26362 printf "%s\n" "no" >&6; } 26363 26364 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26365 _pkg_short_errors_supported=yes 26366 else 26367 _pkg_short_errors_supported=no 26368 fi 26369 if test $_pkg_short_errors_supported = yes; then 26370 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1` 26371 else 26372 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1` 26373 fi 26374 # Put the nasty error message in config.log where it belongs 26375 echo "$READLINE_PKG_ERRORS" >&5 26376 26377 if test "$with_readline" = "yes" 26378 then : 26379 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 26380 fi 26381 elif test $pkg_failed = untried; then 26382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26383 printf "%s\n" "no" >&6; } 26384 if test "$with_readline" = "yes" 26385 then : 26386 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 26387 fi 26388 else 26389 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 26390 READLINE_LIBS=$pkg_cv_READLINE_LIBS 26391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26392 printf "%s\n" "yes" >&6; } 26393 26394 printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h 26395 26396 fi 26397 elif test $pkg_failed = untried; then 26398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26399 printf "%s\n" "no" >&6; } 26400 26401 pkg_failed=no 26402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 26403 printf %s "checking for readline... " >&6; } 26404 26405 if test -n "$READLINE_CFLAGS"; then 26406 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 26407 elif test -n "$PKG_CONFIG"; then 26408 if test -n "$PKG_CONFIG" && \ 26409 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 26410 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 26411 ac_status=$? 26412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26413 test $ac_status = 0; }; then 26414 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null` 26415 test "x$?" != "x0" && pkg_failed=yes 26416 else 26417 pkg_failed=yes 26418 fi 26419 else 26420 pkg_failed=untried 26421 fi 26422 if test -n "$READLINE_LIBS"; then 26423 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 26424 elif test -n "$PKG_CONFIG"; then 26425 if test -n "$PKG_CONFIG" && \ 26426 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 26427 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 26428 ac_status=$? 26429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26430 test $ac_status = 0; }; then 26431 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null` 26432 test "x$?" != "x0" && pkg_failed=yes 26433 else 26434 pkg_failed=yes 26435 fi 26436 else 26437 pkg_failed=untried 26438 fi 26439 26440 26441 26442 if test $pkg_failed = yes; then 26443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26444 printf "%s\n" "no" >&6; } 26445 26446 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26447 _pkg_short_errors_supported=yes 26448 else 26449 _pkg_short_errors_supported=no 26450 fi 26451 if test $_pkg_short_errors_supported = yes; then 26452 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1` 26453 else 26454 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1` 26455 fi 26456 # Put the nasty error message in config.log where it belongs 26457 echo "$READLINE_PKG_ERRORS" >&5 26458 26459 if test "$with_readline" = "yes" 26460 then : 26461 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 26462 fi 26463 elif test $pkg_failed = untried; then 26464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26465 printf "%s\n" "no" >&6; } 26466 if test "$with_readline" = "yes" 26467 then : 26468 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 26469 fi 26470 else 26471 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 26472 READLINE_LIBS=$pkg_cv_READLINE_LIBS 26473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26474 printf "%s\n" "yes" >&6; } 26475 26476 printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h 26477 26478 fi 26479 else 26480 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 26481 READLINE_LIBS=$pkg_cv_READLINE_LIBS 26482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26483 printf "%s\n" "yes" >&6; } 26484 26485 printf "%s\n" "#define HAVE_READLINE_EDITLINE 1" >>confdefs.h 26486 26487 fi 26488 elif test $pkg_failed = untried; then 26489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26490 printf "%s\n" "no" >&6; } 26491 26492 pkg_failed=no 26493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libeditline" >&5 26494 printf %s "checking for libeditline... " >&6; } 26495 26496 if test -n "$READLINE_CFLAGS"; then 26497 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 26498 elif test -n "$PKG_CONFIG"; then 26499 if test -n "$PKG_CONFIG" && \ 26500 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5 26501 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5 26502 ac_status=$? 26503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26504 test $ac_status = 0; }; then 26505 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libeditline" 2>/dev/null` 26506 test "x$?" != "x0" && pkg_failed=yes 26507 else 26508 pkg_failed=yes 26509 fi 26510 else 26511 pkg_failed=untried 26512 fi 26513 if test -n "$READLINE_LIBS"; then 26514 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 26515 elif test -n "$PKG_CONFIG"; then 26516 if test -n "$PKG_CONFIG" && \ 26517 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5 26518 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5 26519 ac_status=$? 26520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26521 test $ac_status = 0; }; then 26522 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libeditline" 2>/dev/null` 26523 test "x$?" != "x0" && pkg_failed=yes 26524 else 26525 pkg_failed=yes 26526 fi 26527 else 26528 pkg_failed=untried 26529 fi 26530 26531 26532 26533 if test $pkg_failed = yes; then 26534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26535 printf "%s\n" "no" >&6; } 26536 26537 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26538 _pkg_short_errors_supported=yes 26539 else 26540 _pkg_short_errors_supported=no 26541 fi 26542 if test $_pkg_short_errors_supported = yes; then 26543 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeditline" 2>&1` 26544 else 26545 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeditline" 2>&1` 26546 fi 26547 # Put the nasty error message in config.log where it belongs 26548 echo "$READLINE_PKG_ERRORS" >&5 26549 26550 26551 pkg_failed=no 26552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 26553 printf %s "checking for readline... " >&6; } 26554 26555 if test -n "$READLINE_CFLAGS"; then 26556 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 26557 elif test -n "$PKG_CONFIG"; then 26558 if test -n "$PKG_CONFIG" && \ 26559 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 26560 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 26561 ac_status=$? 26562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26563 test $ac_status = 0; }; then 26564 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null` 26565 test "x$?" != "x0" && pkg_failed=yes 26566 else 26567 pkg_failed=yes 26568 fi 26569 else 26570 pkg_failed=untried 26571 fi 26572 if test -n "$READLINE_LIBS"; then 26573 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 26574 elif test -n "$PKG_CONFIG"; then 26575 if test -n "$PKG_CONFIG" && \ 26576 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 26577 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 26578 ac_status=$? 26579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26580 test $ac_status = 0; }; then 26581 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null` 26582 test "x$?" != "x0" && pkg_failed=yes 26583 else 26584 pkg_failed=yes 26585 fi 26586 else 26587 pkg_failed=untried 26588 fi 26589 26590 26591 26592 if test $pkg_failed = yes; then 26593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26594 printf "%s\n" "no" >&6; } 26595 26596 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26597 _pkg_short_errors_supported=yes 26598 else 26599 _pkg_short_errors_supported=no 26600 fi 26601 if test $_pkg_short_errors_supported = yes; then 26602 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1` 26603 else 26604 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1` 26605 fi 26606 # Put the nasty error message in config.log where it belongs 26607 echo "$READLINE_PKG_ERRORS" >&5 26608 26609 if test "$with_readline" = "yes" 26610 then : 26611 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 26612 fi 26613 elif test $pkg_failed = untried; then 26614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26615 printf "%s\n" "no" >&6; } 26616 if test "$with_readline" = "yes" 26617 then : 26618 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 26619 fi 26620 else 26621 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 26622 READLINE_LIBS=$pkg_cv_READLINE_LIBS 26623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26624 printf "%s\n" "yes" >&6; } 26625 26626 printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h 26627 26628 fi 26629 elif test $pkg_failed = untried; then 26630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26631 printf "%s\n" "no" >&6; } 26632 26633 pkg_failed=no 26634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 26635 printf %s "checking for readline... " >&6; } 26636 26637 if test -n "$READLINE_CFLAGS"; then 26638 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 26639 elif test -n "$PKG_CONFIG"; then 26640 if test -n "$PKG_CONFIG" && \ 26641 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 26642 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 26643 ac_status=$? 26644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26645 test $ac_status = 0; }; then 26646 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null` 26647 test "x$?" != "x0" && pkg_failed=yes 26648 else 26649 pkg_failed=yes 26650 fi 26651 else 26652 pkg_failed=untried 26653 fi 26654 if test -n "$READLINE_LIBS"; then 26655 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 26656 elif test -n "$PKG_CONFIG"; then 26657 if test -n "$PKG_CONFIG" && \ 26658 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 26659 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 26660 ac_status=$? 26661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26662 test $ac_status = 0; }; then 26663 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null` 26664 test "x$?" != "x0" && pkg_failed=yes 26665 else 26666 pkg_failed=yes 26667 fi 26668 else 26669 pkg_failed=untried 26670 fi 26671 26672 26673 26674 if test $pkg_failed = yes; then 26675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26676 printf "%s\n" "no" >&6; } 26677 26678 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26679 _pkg_short_errors_supported=yes 26680 else 26681 _pkg_short_errors_supported=no 26682 fi 26683 if test $_pkg_short_errors_supported = yes; then 26684 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1` 26685 else 26686 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1` 26687 fi 26688 # Put the nasty error message in config.log where it belongs 26689 echo "$READLINE_PKG_ERRORS" >&5 26690 26691 if test "$with_readline" = "yes" 26692 then : 26693 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 26694 fi 26695 elif test $pkg_failed = untried; then 26696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26697 printf "%s\n" "no" >&6; } 26698 if test "$with_readline" = "yes" 26699 then : 26700 as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5 26701 fi 26702 else 26703 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 26704 READLINE_LIBS=$pkg_cv_READLINE_LIBS 26705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26706 printf "%s\n" "yes" >&6; } 26707 26708 printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h 26709 26710 fi 26711 else 26712 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 26713 READLINE_LIBS=$pkg_cv_READLINE_LIBS 26714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26715 printf "%s\n" "yes" >&6; } 26716 26717 printf "%s\n" "#define HAVE_READLINE_EDITLINE 1" >>confdefs.h 26718 26719 fi 26720 else 26721 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 26722 READLINE_LIBS=$pkg_cv_READLINE_LIBS 26723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26724 printf "%s\n" "yes" >&6; } 26725 26726 printf "%s\n" "#define HAVE_READLINE_LIBEDIT 1" >>confdefs.h 26727 26728 fi ;; #( 26729 libedit) : 26730 26731 pkg_failed=no 26732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 26733 printf %s "checking for libedit... " >&6; } 26734 26735 if test -n "$READLINE_CFLAGS"; then 26736 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 26737 elif test -n "$PKG_CONFIG"; then 26738 if test -n "$PKG_CONFIG" && \ 26739 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 26740 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 26741 ac_status=$? 26742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26743 test $ac_status = 0; }; then 26744 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null` 26745 test "x$?" != "x0" && pkg_failed=yes 26746 else 26747 pkg_failed=yes 26748 fi 26749 else 26750 pkg_failed=untried 26751 fi 26752 if test -n "$READLINE_LIBS"; then 26753 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 26754 elif test -n "$PKG_CONFIG"; then 26755 if test -n "$PKG_CONFIG" && \ 26756 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 26757 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 26758 ac_status=$? 26759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26760 test $ac_status = 0; }; then 26761 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null` 26762 test "x$?" != "x0" && pkg_failed=yes 26763 else 26764 pkg_failed=yes 26765 fi 26766 else 26767 pkg_failed=untried 26768 fi 26769 26770 26771 26772 if test $pkg_failed = yes; then 26773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26774 printf "%s\n" "no" >&6; } 26775 26776 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26777 _pkg_short_errors_supported=yes 26778 else 26779 _pkg_short_errors_supported=no 26780 fi 26781 if test $_pkg_short_errors_supported = yes; then 26782 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1` 26783 else 26784 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1` 26785 fi 26786 # Put the nasty error message in config.log where it belongs 26787 echo "$READLINE_PKG_ERRORS" >&5 26788 26789 as_fn_error $? "Package requirements (libedit) were not met: 26790 26791 $READLINE_PKG_ERRORS 26792 26793 Consider adjusting the PKG_CONFIG_PATH environment variable if you 26794 installed software in a non-standard prefix. 26795 26796 Alternatively, you may set the environment variables READLINE_CFLAGS 26797 and READLINE_LIBS to avoid the need to call pkg-config. 26798 See the pkg-config man page for more details." "$LINENO" 5 26799 elif test $pkg_failed = untried; then 26800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26801 printf "%s\n" "no" >&6; } 26802 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 26803 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 26804 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 26805 is in your PATH or set the PKG_CONFIG environment variable to the full 26806 path to pkg-config. 26807 26808 Alternatively, you may set the environment variables READLINE_CFLAGS 26809 and READLINE_LIBS to avoid the need to call pkg-config. 26810 See the pkg-config man page for more details. 26811 26812 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 26813 See 'config.log' for more details" "$LINENO" 5; } 26814 else 26815 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 26816 READLINE_LIBS=$pkg_cv_READLINE_LIBS 26817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26818 printf "%s\n" "yes" >&6; } 26819 26820 printf "%s\n" "#define HAVE_READLINE_LIBEDIT 1" >>confdefs.h 26821 26822 fi ;; #( 26823 editline) : 26824 26825 pkg_failed=no 26826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libeditline" >&5 26827 printf %s "checking for libeditline... " >&6; } 26828 26829 if test -n "$READLINE_CFLAGS"; then 26830 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 26831 elif test -n "$PKG_CONFIG"; then 26832 if test -n "$PKG_CONFIG" && \ 26833 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5 26834 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5 26835 ac_status=$? 26836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26837 test $ac_status = 0; }; then 26838 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libeditline" 2>/dev/null` 26839 test "x$?" != "x0" && pkg_failed=yes 26840 else 26841 pkg_failed=yes 26842 fi 26843 else 26844 pkg_failed=untried 26845 fi 26846 if test -n "$READLINE_LIBS"; then 26847 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 26848 elif test -n "$PKG_CONFIG"; then 26849 if test -n "$PKG_CONFIG" && \ 26850 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5 26851 ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5 26852 ac_status=$? 26853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26854 test $ac_status = 0; }; then 26855 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libeditline" 2>/dev/null` 26856 test "x$?" != "x0" && pkg_failed=yes 26857 else 26858 pkg_failed=yes 26859 fi 26860 else 26861 pkg_failed=untried 26862 fi 26863 26864 26865 26866 if test $pkg_failed = yes; then 26867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26868 printf "%s\n" "no" >&6; } 26869 26870 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26871 _pkg_short_errors_supported=yes 26872 else 26873 _pkg_short_errors_supported=no 26874 fi 26875 if test $_pkg_short_errors_supported = yes; then 26876 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeditline" 2>&1` 26877 else 26878 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeditline" 2>&1` 26879 fi 26880 # Put the nasty error message in config.log where it belongs 26881 echo "$READLINE_PKG_ERRORS" >&5 26882 26883 as_fn_error $? "Package requirements (libeditline) were not met: 26884 26885 $READLINE_PKG_ERRORS 26886 26887 Consider adjusting the PKG_CONFIG_PATH environment variable if you 26888 installed software in a non-standard prefix. 26889 26890 Alternatively, you may set the environment variables READLINE_CFLAGS 26891 and READLINE_LIBS to avoid the need to call pkg-config. 26892 See the pkg-config man page for more details." "$LINENO" 5 26893 elif test $pkg_failed = untried; then 26894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26895 printf "%s\n" "no" >&6; } 26896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 26897 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 26898 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 26899 is in your PATH or set the PKG_CONFIG environment variable to the full 26900 path to pkg-config. 26901 26902 Alternatively, you may set the environment variables READLINE_CFLAGS 26903 and READLINE_LIBS to avoid the need to call pkg-config. 26904 See the pkg-config man page for more details. 26905 26906 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 26907 See 'config.log' for more details" "$LINENO" 5; } 26908 else 26909 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 26910 READLINE_LIBS=$pkg_cv_READLINE_LIBS 26911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26912 printf "%s\n" "yes" >&6; } 26913 26914 printf "%s\n" "#define HAVE_READLINE_EDITLINE 1" >>confdefs.h 26915 26916 fi ;; #( 26917 readline) : 26918 26919 pkg_failed=no 26920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 26921 printf %s "checking for readline... " >&6; } 26922 26923 if test -n "$READLINE_CFLAGS"; then 26924 pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS" 26925 elif test -n "$PKG_CONFIG"; then 26926 if test -n "$PKG_CONFIG" && \ 26927 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 26928 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 26929 ac_status=$? 26930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26931 test $ac_status = 0; }; then 26932 pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null` 26933 test "x$?" != "x0" && pkg_failed=yes 26934 else 26935 pkg_failed=yes 26936 fi 26937 else 26938 pkg_failed=untried 26939 fi 26940 if test -n "$READLINE_LIBS"; then 26941 pkg_cv_READLINE_LIBS="$READLINE_LIBS" 26942 elif test -n "$PKG_CONFIG"; then 26943 if test -n "$PKG_CONFIG" && \ 26944 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 26945 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 26946 ac_status=$? 26947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26948 test $ac_status = 0; }; then 26949 pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null` 26950 test "x$?" != "x0" && pkg_failed=yes 26951 else 26952 pkg_failed=yes 26953 fi 26954 else 26955 pkg_failed=untried 26956 fi 26957 26958 26959 26960 if test $pkg_failed = yes; then 26961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26962 printf "%s\n" "no" >&6; } 26963 26964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26965 _pkg_short_errors_supported=yes 26966 else 26967 _pkg_short_errors_supported=no 26968 fi 26969 if test $_pkg_short_errors_supported = yes; then 26970 READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1` 26971 else 26972 READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1` 26973 fi 26974 # Put the nasty error message in config.log where it belongs 26975 echo "$READLINE_PKG_ERRORS" >&5 26976 26977 as_fn_error $? "Package requirements (readline) were not met: 26978 26979 $READLINE_PKG_ERRORS 26980 26981 Consider adjusting the PKG_CONFIG_PATH environment variable if you 26982 installed software in a non-standard prefix. 26983 26984 Alternatively, you may set the environment variables READLINE_CFLAGS 26985 and READLINE_LIBS to avoid the need to call pkg-config. 26986 See the pkg-config man page for more details." "$LINENO" 5 26987 elif test $pkg_failed = untried; then 26988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26989 printf "%s\n" "no" >&6; } 26990 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 26991 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 26992 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 26993 is in your PATH or set the PKG_CONFIG environment variable to the full 26994 path to pkg-config. 26995 26996 Alternatively, you may set the environment variables READLINE_CFLAGS 26997 and READLINE_LIBS to avoid the need to call pkg-config. 26998 See the pkg-config man page for more details. 26999 27000 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 27001 See 'config.log' for more details" "$LINENO" 5; } 27002 else 27003 READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS 27004 READLINE_LIBS=$pkg_cv_READLINE_LIBS 27005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27006 printf "%s\n" "yes" >&6; } 27007 27008 printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h 27009 27010 fi ;; #( 27011 *) : 27012 as_fn_error $? "Unknown readline '$with_readline' library requested." "$LINENO" 5 ;; 27013 esac 27014 if test -n "$READLINE_LIBS"; then 27015 HAVE_READLINE_TRUE= 27016 HAVE_READLINE_FALSE='#' 27017 else 27018 HAVE_READLINE_TRUE='#' 27019 HAVE_READLINE_FALSE= 27020 fi 27021 27022 27023 27024 27025 # 27026 # Security Stuff 27027 # 27028 # Note it is very recommended to *not* disable chroot(), 27029 # this is only because chroot() was made obsolete by Posix. 27030 # 27031 # [pairwise: --enable-chroot, --disable-chroot] 27032 # Check whether --enable-chroot was given. 27033 if test ${enable_chroot+y} 27034 then : 27035 enableval=$enable_chroot; 27036 fi 27037 27038 case "$enable_chroot" in 27039 yes|'') 27040 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot" 27041 if test "x$ac_cv_func_chroot" = xyes 27042 then : 27043 printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h 27044 27045 fi 27046 27047 ;; 27048 no) 27049 ;; 27050 esac 27051 27052 case $host in #( 27053 *-linux*) : 27054 27055 pkg_failed=no 27056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcap" >&5 27057 printf %s "checking for libcap... " >&6; } 27058 27059 if test -n "$LIBCAP_CFLAGS"; then 27060 pkg_cv_LIBCAP_CFLAGS="$LIBCAP_CFLAGS" 27061 elif test -n "$PKG_CONFIG"; then 27062 if test -n "$PKG_CONFIG" && \ 27063 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap\""; } >&5 27064 ($PKG_CONFIG --exists --print-errors "libcap") 2>&5 27065 ac_status=$? 27066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27067 test $ac_status = 0; }; then 27068 pkg_cv_LIBCAP_CFLAGS=`$PKG_CONFIG --cflags "libcap" 2>/dev/null` 27069 test "x$?" != "x0" && pkg_failed=yes 27070 else 27071 pkg_failed=yes 27072 fi 27073 else 27074 pkg_failed=untried 27075 fi 27076 if test -n "$LIBCAP_LIBS"; then 27077 pkg_cv_LIBCAP_LIBS="$LIBCAP_LIBS" 27078 elif test -n "$PKG_CONFIG"; then 27079 if test -n "$PKG_CONFIG" && \ 27080 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap\""; } >&5 27081 ($PKG_CONFIG --exists --print-errors "libcap") 2>&5 27082 ac_status=$? 27083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27084 test $ac_status = 0; }; then 27085 pkg_cv_LIBCAP_LIBS=`$PKG_CONFIG --libs "libcap" 2>/dev/null` 27086 test "x$?" != "x0" && pkg_failed=yes 27087 else 27088 pkg_failed=yes 27089 fi 27090 else 27091 pkg_failed=untried 27092 fi 27093 27094 27095 27096 if test $pkg_failed = yes; then 27097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27098 printf "%s\n" "no" >&6; } 27099 27100 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27101 _pkg_short_errors_supported=yes 27102 else 27103 _pkg_short_errors_supported=no 27104 fi 27105 if test $_pkg_short_errors_supported = yes; then 27106 LIBCAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcap" 2>&1` 27107 else 27108 LIBCAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcap" 2>&1` 27109 fi 27110 # Put the nasty error message in config.log where it belongs 27111 echo "$LIBCAP_PKG_ERRORS" >&5 27112 27113 as_fn_error $? "Package requirements (libcap) were not met: 27114 27115 $LIBCAP_PKG_ERRORS 27116 27117 Consider adjusting the PKG_CONFIG_PATH environment variable if you 27118 installed software in a non-standard prefix. 27119 27120 Alternatively, you may set the environment variables LIBCAP_CFLAGS 27121 and LIBCAP_LIBS to avoid the need to call pkg-config. 27122 See the pkg-config man page for more details." "$LINENO" 5 27123 elif test $pkg_failed = untried; then 27124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27125 printf "%s\n" "no" >&6; } 27126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 27127 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 27128 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 27129 is in your PATH or set the PKG_CONFIG environment variable to the full 27130 path to pkg-config. 27131 27132 Alternatively, you may set the environment variables LIBCAP_CFLAGS 27133 and LIBCAP_LIBS to avoid the need to call pkg-config. 27134 See the pkg-config man page for more details. 27135 27136 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 27137 See 'config.log' for more details" "$LINENO" 5; } 27138 else 27139 LIBCAP_CFLAGS=$pkg_cv_LIBCAP_CFLAGS 27140 LIBCAP_LIBS=$pkg_cv_LIBCAP_LIBS 27141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27142 printf "%s\n" "yes" >&6; } 27143 27144 printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h 27145 27146 fi ;; #( 27147 *) : 27148 ;; 27149 esac 27150 27151 case "$host" in 27152 *-solaris*) 27153 27154 printf "%s\n" "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h 27155 27156 ;; 27157 esac 27158 27159 # 27160 # Time Zone Stuff 27161 # 27162 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" 27163 if test "x$ac_cv_func_tzset" = xyes 27164 then : 27165 printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h 27166 27167 fi 27168 27169 27170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5 27171 printf %s "checking for optarg declaration... " >&6; } 27172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27173 /* end confdefs.h. */ 27174 #include <unistd.h> 27175 int 27176 main (void) 27177 { 27178 optarg = 0; 27179 27180 ; 27181 return 0; 27182 } 27183 _ACEOF 27184 if ac_fn_c_try_compile "$LINENO" 27185 then : 27186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27187 printf "%s\n" "yes" >&6; } 27188 else case e in #( 27189 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27190 printf "%s\n" "no" >&6; } 27191 GEN_NEED_OPTARG="-DNEED_OPTARG=1" 27192 27193 printf "%s\n" "#define NEED_OPTARG 1" >>confdefs.h 27194 27195 ;; 27196 esac 27197 fi 27198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27199 27200 # 27201 # Check for nanoseconds in file stats 27202 # 27203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5 27204 printf %s "checking for st_mtim.tv_nsec... " >&6; } 27205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27206 /* end confdefs.h. */ 27207 #include <sys/stat.h> 27208 int 27209 main (void) 27210 { 27211 struct stat s; 27212 return(s.st_mtim.tv_nsec); 27213 27214 ; 27215 return 0; 27216 } 27217 _ACEOF 27218 if ac_fn_c_try_compile "$LINENO" 27219 then : 27220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27221 printf "%s\n" "yes" >&6; } 27222 27223 printf "%s\n" "#define HAVE_STAT_NSEC 1" >>confdefs.h 27224 27225 else case e in #( 27226 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27227 printf "%s\n" "no" >&6; } ;; 27228 esac 27229 fi 27230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27231 27232 # 27233 # Check for if_nametoindex() for IPv6 scoped addresses support 27234 # 27235 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 27236 if test "x$ac_cv_func_if_nametoindex" = xyes 27237 then : 27238 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h 27239 27240 fi 27241 27242 27243 ac_fn_c_check_header_compile "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default" 27244 if test "x$ac_cv_header_uchar_h" = xyes 27245 then : 27246 printf "%s\n" "#define HAVE_UCHAR_H 1" >>confdefs.h 27247 27248 fi 27249 27250 27251 # 27252 # Check for __builtin_unreachable 27253 # 27254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5 27255 printf %s "checking compiler support for __builtin_unreachable()... " >&6; } 27256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27257 /* end confdefs.h. */ 27258 27259 int 27260 main (void) 27261 { 27262 __builtin_unreachable(); 27263 27264 ; 27265 return 0; 27266 } 27267 _ACEOF 27268 if ac_fn_c_try_link "$LINENO" 27269 then : 27270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27271 printf "%s\n" "yes" >&6; } 27272 27273 printf "%s\n" "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h 27274 27275 27276 else case e in #( 27277 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27278 printf "%s\n" "no" >&6; } 27279 ;; 27280 esac 27281 fi 27282 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27283 conftest$ac_exeext conftest.$ac_ext 27284 27285 # 27286 # Check for __builtin_clz 27287 # 27288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5 27289 printf %s "checking compiler support for __builtin_clz... " >&6; } 27290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27291 /* end confdefs.h. */ 27292 27293 int 27294 main (void) 27295 { 27296 return (__builtin_clz(0xff) == 24 ? 1 : 0); 27297 27298 ; 27299 return 0; 27300 } 27301 _ACEOF 27302 if ac_fn_c_try_link "$LINENO" 27303 then : 27304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27305 printf "%s\n" "yes" >&6; } 27306 27307 printf "%s\n" "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h 27308 27309 27310 else case e in #( 27311 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27312 printf "%s\n" "no" >&6; } 27313 ;; 27314 esac 27315 fi 27316 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27317 conftest$ac_exeext conftest.$ac_ext 27318 27319 # 27320 # Check for __builtin_*_overflow 27321 # 27322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_add_overflow()" >&5 27323 printf %s "checking compiler support for __builtin_add_overflow()... " >&6; } 27324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27325 /* end confdefs.h. */ 27326 #include <limits.h> 27327 int 27328 main (void) 27329 { 27330 return (__builtin_add_overflow((unsigned int)UINT_MAX, (unsigned int)UINT_MAX, &(unsigned int){ 0 })); 27331 27332 ; 27333 return 0; 27334 } 27335 _ACEOF 27336 if ac_fn_c_try_link "$LINENO" 27337 then : 27338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27339 printf "%s\n" "yes" >&6; } 27340 27341 printf "%s\n" "#define HAVE_BUILTIN_ADD_OVERFLOW 1" >>confdefs.h 27342 27343 27344 else case e in #( 27345 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27346 printf "%s\n" "no" >&6; } 27347 ;; 27348 esac 27349 fi 27350 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27351 conftest$ac_exeext conftest.$ac_ext 27352 27353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_sub_overflow()" >&5 27354 printf %s "checking compiler support for __builtin_sub_overflow()... " >&6; } 27355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27356 /* end confdefs.h. */ 27357 #include <limits.h> 27358 int 27359 main (void) 27360 { 27361 return (__builtin_sub_overflow((unsigned int)0, (unsigned int)UINT_MAX, &(unsigned int){ 0 })); 27362 27363 ; 27364 return 0; 27365 } 27366 _ACEOF 27367 if ac_fn_c_try_link "$LINENO" 27368 then : 27369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27370 printf "%s\n" "yes" >&6; } 27371 27372 printf "%s\n" "#define HAVE_BUILTIN_SUB_OVERFLOW 1" >>confdefs.h 27373 27374 27375 else case e in #( 27376 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27377 printf "%s\n" "no" >&6; } 27378 ;; 27379 esac 27380 fi 27381 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27382 conftest$ac_exeext conftest.$ac_ext 27383 27384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_mul_overflow()" >&5 27385 printf %s "checking compiler support for __builtin_mul_overflow()... " >&6; } 27386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27387 /* end confdefs.h. */ 27388 #include <limits.h> 27389 #include <stdint.h> 27390 27391 int 27392 main (void) 27393 { 27394 return (__builtin_mul_overflow(UINT64_MAX, UINT64_MAX, &(uint64_t){ 0 })); 27395 27396 ; 27397 return 0; 27398 } 27399 _ACEOF 27400 if ac_fn_c_try_link "$LINENO" 27401 then : 27402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27403 printf "%s\n" "yes" >&6; } 27404 27405 printf "%s\n" "#define HAVE_BUILTIN_MUL_OVERFLOW 1" >>confdefs.h 27406 27407 27408 else case e in #( 27409 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27410 printf "%s\n" "no" >&6; } 27411 ;; 27412 esac 27413 fi 27414 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27415 conftest$ac_exeext conftest.$ac_ext 27416 27417 # 27418 # Activate "rrset-order fixed" or not? 27419 # 27420 # [pairwise: --enable-fixed-rrset, --disable-fixed-rrset] 27421 # Check whether --enable-fixed-rrset was given. 27422 if test ${enable_fixed_rrset+y} 27423 then : 27424 enableval=$enable_fixed_rrset; 27425 else case e in #( 27426 e) enable_fixed_rrset="no" ;; 27427 esac 27428 fi 27429 27430 if test "$enable_fixed_rrset" = "yes" 27431 then : 27432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fixed rrset ordering is deprecated and will be removed in the future release" >&5 27433 printf "%s\n" "$as_me: WARNING: fixed rrset ordering is deprecated and will be removed in the future release" >&2;} 27434 27435 printf "%s\n" "#define DNS_RDATASET_FIXED 1" >>confdefs.h 27436 27437 fi 27438 27439 # 27440 # Activate dnstap? 27441 # 27442 # [pairwise: --enable-dnstap, --disable-dnstap] 27443 # Check whether --enable-dnstap was given. 27444 if test ${enable_dnstap+y} 27445 then : 27446 enableval=$enable_dnstap; 27447 else case e in #( 27448 e) enable_dnstap=no ;; 27449 esac 27450 fi 27451 27452 27453 if test "$enable_dnstap" != "no" 27454 then : 27455 27456 pkg_failed=no 27457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfstrm libprotobuf-c" >&5 27458 printf %s "checking for libfstrm libprotobuf-c... " >&6; } 27459 27460 if test -n "$DNSTAP_CFLAGS"; then 27461 pkg_cv_DNSTAP_CFLAGS="$DNSTAP_CFLAGS" 27462 elif test -n "$PKG_CONFIG"; then 27463 if test -n "$PKG_CONFIG" && \ 27464 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfstrm libprotobuf-c\""; } >&5 27465 ($PKG_CONFIG --exists --print-errors "libfstrm libprotobuf-c") 2>&5 27466 ac_status=$? 27467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27468 test $ac_status = 0; }; then 27469 pkg_cv_DNSTAP_CFLAGS=`$PKG_CONFIG --cflags "libfstrm libprotobuf-c" 2>/dev/null` 27470 test "x$?" != "x0" && pkg_failed=yes 27471 else 27472 pkg_failed=yes 27473 fi 27474 else 27475 pkg_failed=untried 27476 fi 27477 if test -n "$DNSTAP_LIBS"; then 27478 pkg_cv_DNSTAP_LIBS="$DNSTAP_LIBS" 27479 elif test -n "$PKG_CONFIG"; then 27480 if test -n "$PKG_CONFIG" && \ 27481 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfstrm libprotobuf-c\""; } >&5 27482 ($PKG_CONFIG --exists --print-errors "libfstrm libprotobuf-c") 2>&5 27483 ac_status=$? 27484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27485 test $ac_status = 0; }; then 27486 pkg_cv_DNSTAP_LIBS=`$PKG_CONFIG --libs "libfstrm libprotobuf-c" 2>/dev/null` 27487 test "x$?" != "x0" && pkg_failed=yes 27488 else 27489 pkg_failed=yes 27490 fi 27491 else 27492 pkg_failed=untried 27493 fi 27494 27495 27496 27497 if test $pkg_failed = yes; then 27498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27499 printf "%s\n" "no" >&6; } 27500 27501 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27502 _pkg_short_errors_supported=yes 27503 else 27504 _pkg_short_errors_supported=no 27505 fi 27506 if test $_pkg_short_errors_supported = yes; then 27507 DNSTAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfstrm libprotobuf-c" 2>&1` 27508 else 27509 DNSTAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfstrm libprotobuf-c" 2>&1` 27510 fi 27511 # Put the nasty error message in config.log where it belongs 27512 echo "$DNSTAP_PKG_ERRORS" >&5 27513 27514 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 27515 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 27516 as_fn_error $? "Required libraries (fstrm, protobuf-c) were not found, please install them. 27517 See 'config.log' for more details" "$LINENO" 5; } 27518 elif test $pkg_failed = untried; then 27519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27520 printf "%s\n" "no" >&6; } 27521 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 27522 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 27523 as_fn_error $? "Required libraries (fstrm, protobuf-c) were not found, please install them. 27524 See 'config.log' for more details" "$LINENO" 5; } 27525 else 27526 DNSTAP_CFLAGS=$pkg_cv_DNSTAP_CFLAGS 27527 DNSTAP_LIBS=$pkg_cv_DNSTAP_LIBS 27528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27529 printf "%s\n" "yes" >&6; } 27530 27531 fi 27532 # Extract the first word of "fstrm_capture", so it can be a program name with args. 27533 set dummy fstrm_capture; ac_word=$2 27534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27535 printf %s "checking for $ac_word... " >&6; } 27536 if test ${ac_cv_path_FSTRM_CAPTURE+y} 27537 then : 27538 printf %s "(cached) " >&6 27539 else case e in #( 27540 e) case $FSTRM_CAPTURE in 27541 [\\/]* | ?:[\\/]*) 27542 ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path. 27543 ;; 27544 *) 27545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27546 for as_dir in $PATH 27547 do 27548 IFS=$as_save_IFS 27549 case $as_dir in #((( 27550 '') as_dir=./ ;; 27551 */) ;; 27552 *) as_dir=$as_dir/ ;; 27553 esac 27554 for ac_exec_ext in '' $ac_executable_extensions; do 27555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27556 ac_cv_path_FSTRM_CAPTURE="$as_dir$ac_word$ac_exec_ext" 27557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27558 break 2 27559 fi 27560 done 27561 done 27562 IFS=$as_save_IFS 27563 27564 ;; 27565 esac ;; 27566 esac 27567 fi 27568 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE 27569 if test -n "$FSTRM_CAPTURE"; then 27570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5 27571 printf "%s\n" "$FSTRM_CAPTURE" >&6; } 27572 else 27573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27574 printf "%s\n" "no" >&6; } 27575 fi 27576 27577 27578 # Extract the first word of "protoc-c", so it can be a program name with args. 27579 set dummy protoc-c; ac_word=$2 27580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27581 printf %s "checking for $ac_word... " >&6; } 27582 if test ${ac_cv_path_PROTOC_C+y} 27583 then : 27584 printf %s "(cached) " >&6 27585 else case e in #( 27586 e) case $PROTOC_C in 27587 [\\/]* | ?:[\\/]*) 27588 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path. 27589 ;; 27590 *) 27591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27592 for as_dir in $PATH 27593 do 27594 IFS=$as_save_IFS 27595 case $as_dir in #((( 27596 '') as_dir=./ ;; 27597 */) ;; 27598 *) as_dir=$as_dir/ ;; 27599 esac 27600 for ac_exec_ext in '' $ac_executable_extensions; do 27601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27602 ac_cv_path_PROTOC_C="$as_dir$ac_word$ac_exec_ext" 27603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27604 break 2 27605 fi 27606 done 27607 done 27608 IFS=$as_save_IFS 27609 27610 ;; 27611 esac ;; 27612 esac 27613 fi 27614 PROTOC_C=$ac_cv_path_PROTOC_C 27615 if test -n "$PROTOC_C"; then 27616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5 27617 printf "%s\n" "$PROTOC_C" >&6; } 27618 else 27619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27620 printf "%s\n" "no" >&6; } 27621 fi 27622 27623 27624 if test -z "$PROTOC_C" 27625 then : 27626 as_fn_error $? "protoc-c compiler not found" "$LINENO" 5 27627 fi 27628 27629 printf "%s\n" "#define HAVE_DNSTAP 1" >>confdefs.h 27630 27631 27632 fi 27633 27634 27635 27636 if test "$enable_dnstap" != "no"; then 27637 HAVE_DNSTAP_TRUE= 27638 HAVE_DNSTAP_FALSE='#' 27639 else 27640 HAVE_DNSTAP_TRUE='#' 27641 HAVE_DNSTAP_FALSE= 27642 fi 27643 27644 # 27645 # The following sections deal with tools used for formatting 27646 # the documentation. They are all optional, unless you are 27647 # a developer editing the documentation source. 27648 # 27649 27650 # 27651 # Look for sphinx-build 27652 # 27653 27654 # Extract the first word of "sphinx-build", so it can be a program name with args. 27655 set dummy sphinx-build; ac_word=$2 27656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27657 printf %s "checking for $ac_word... " >&6; } 27658 if test ${ac_cv_path_SPHINX_BUILD+y} 27659 then : 27660 printf %s "(cached) " >&6 27661 else case e in #( 27662 e) case $SPHINX_BUILD in 27663 [\\/]* | ?:[\\/]*) 27664 ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path. 27665 ;; 27666 *) 27667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27668 for as_dir in $PATH 27669 do 27670 IFS=$as_save_IFS 27671 case $as_dir in #((( 27672 '') as_dir=./ ;; 27673 */) ;; 27674 *) as_dir=$as_dir/ ;; 27675 esac 27676 for ac_exec_ext in '' $ac_executable_extensions; do 27677 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27678 ac_cv_path_SPHINX_BUILD="$as_dir$ac_word$ac_exec_ext" 27679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27680 break 2 27681 fi 27682 done 27683 done 27684 IFS=$as_save_IFS 27685 27686 ;; 27687 esac ;; 27688 esac 27689 fi 27690 SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD 27691 if test -n "$SPHINX_BUILD"; then 27692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5 27693 printf "%s\n" "$SPHINX_BUILD" >&6; } 27694 else 27695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27696 printf "%s\n" "no" >&6; } 27697 fi 27698 27699 27700 if test -n "$SPHINX_BUILD"; then 27701 HAVE_SPHINX_BUILD_TRUE= 27702 HAVE_SPHINX_BUILD_FALSE='#' 27703 else 27704 HAVE_SPHINX_BUILD_TRUE='#' 27705 HAVE_SPHINX_BUILD_FALSE= 27706 fi 27707 27708 27709 # 27710 # Build the man pages only if we have prebuilt manpages or we can build them from RST sources 27711 # 27712 if test -e doc/man/named.conf.5in || test -n "$SPHINX_BUILD"; then 27713 BUILD_MANPAGES_TRUE= 27714 BUILD_MANPAGES_FALSE='#' 27715 else 27716 BUILD_MANPAGES_TRUE='#' 27717 BUILD_MANPAGES_FALSE= 27718 fi 27719 27720 27721 # 27722 # Pull release date from changelog.rst file last modification date 27723 # for reproducible builds 27724 # 27725 release_date=`date -u -r doc/arm/changelog.rst +%Y-%m-%d` 27726 RELEASE_DATE=$release_date 27727 27728 27729 # 27730 # Look for Doxygen 27731 # 27732 for ac_prog in doxygen 27733 do 27734 # Extract the first word of "$ac_prog", so it can be a program name with args. 27735 set dummy $ac_prog; ac_word=$2 27736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27737 printf %s "checking for $ac_word... " >&6; } 27738 if test ${ac_cv_path_DOXYGEN+y} 27739 then : 27740 printf %s "(cached) " >&6 27741 else case e in #( 27742 e) case $DOXYGEN in 27743 [\\/]* | ?:[\\/]*) 27744 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 27745 ;; 27746 *) 27747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27748 for as_dir in $PATH 27749 do 27750 IFS=$as_save_IFS 27751 case $as_dir in #((( 27752 '') as_dir=./ ;; 27753 */) ;; 27754 *) as_dir=$as_dir/ ;; 27755 esac 27756 for ac_exec_ext in '' $ac_executable_extensions; do 27757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27758 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 27759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27760 break 2 27761 fi 27762 done 27763 done 27764 IFS=$as_save_IFS 27765 27766 ;; 27767 esac ;; 27768 esac 27769 fi 27770 DOXYGEN=$ac_cv_path_DOXYGEN 27771 if test -n "$DOXYGEN"; then 27772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 27773 printf "%s\n" "$DOXYGEN" >&6; } 27774 else 27775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27776 printf "%s\n" "no" >&6; } 27777 fi 27778 27779 27780 test -n "$DOXYGEN" && break 27781 done 27782 27783 27784 ac_config_files="$ac_config_files doc/doxygen/doxygen-input-filter" 27785 27786 27787 # 27788 # Look for curl 27789 # 27790 27791 # Extract the first word of "curl", so it can be a program name with args. 27792 set dummy curl; ac_word=$2 27793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27794 printf %s "checking for $ac_word... " >&6; } 27795 if test ${ac_cv_path_CURL+y} 27796 then : 27797 printf %s "(cached) " >&6 27798 else case e in #( 27799 e) case $CURL in 27800 [\\/]* | ?:[\\/]*) 27801 ac_cv_path_CURL="$CURL" # Let the user override the test with a path. 27802 ;; 27803 *) 27804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27805 for as_dir in $PATH 27806 do 27807 IFS=$as_save_IFS 27808 case $as_dir in #((( 27809 '') as_dir=./ ;; 27810 */) ;; 27811 *) as_dir=$as_dir/ ;; 27812 esac 27813 for ac_exec_ext in '' $ac_executable_extensions; do 27814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27815 ac_cv_path_CURL="$as_dir$ac_word$ac_exec_ext" 27816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27817 break 2 27818 fi 27819 done 27820 done 27821 IFS=$as_save_IFS 27822 27823 test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl" 27824 ;; 27825 esac ;; 27826 esac 27827 fi 27828 CURL=$ac_cv_path_CURL 27829 if test -n "$CURL"; then 27830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5 27831 printf "%s\n" "$CURL" >&6; } 27832 else 27833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27834 printf "%s\n" "no" >&6; } 27835 fi 27836 27837 27838 27839 27840 # 27841 # Look for nc 27842 # 27843 27844 for ac_prog in nc 27845 do 27846 # Extract the first word of "$ac_prog", so it can be a program name with args. 27847 set dummy $ac_prog; ac_word=$2 27848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27849 printf %s "checking for $ac_word... " >&6; } 27850 if test ${ac_cv_path_NC+y} 27851 then : 27852 printf %s "(cached) " >&6 27853 else case e in #( 27854 e) case $NC in 27855 [\\/]* | ?:[\\/]*) 27856 ac_cv_path_NC="$NC" # Let the user override the test with a path. 27857 ;; 27858 *) 27859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27860 for as_dir in $PATH 27861 do 27862 IFS=$as_save_IFS 27863 case $as_dir in #((( 27864 '') as_dir=./ ;; 27865 */) ;; 27866 *) as_dir=$as_dir/ ;; 27867 esac 27868 for ac_exec_ext in '' $ac_executable_extensions; do 27869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27870 ac_cv_path_NC="$as_dir$ac_word$ac_exec_ext" 27871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27872 break 2 27873 fi 27874 done 27875 done 27876 IFS=$as_save_IFS 27877 27878 ;; 27879 esac ;; 27880 esac 27881 fi 27882 NC=$ac_cv_path_NC 27883 if test -n "$NC"; then 27884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NC" >&5 27885 printf "%s\n" "$NC" >&6; } 27886 else 27887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27888 printf "%s\n" "no" >&6; } 27889 fi 27890 27891 27892 test -n "$NC" && break 27893 done 27894 test -n "$NC" || NC="nc" 27895 27896 27897 27898 # 27899 # IDN support using libidn2 27900 # 27901 27902 LIBIDN2_CFLAGS= 27903 LIBIDN2_LIBS= 27904 27905 # [pairwise: --with-libidn2=yes, --without-libidn2] 27906 27907 # Check whether --with-libidn2 was given. 27908 if test ${with_libidn2+y} 27909 then : 27910 withval=$with_libidn2; with_libidn2="$withval" 27911 else case e in #( 27912 e) with_libidn2="no" ;; 27913 esac 27914 fi 27915 27916 case $with_libidn2 in #( 27917 yes) : 27918 27919 pkg_failed=no 27920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5 27921 printf %s "checking for libidn2... " >&6; } 27922 27923 if test -n "$LIBIDN2_CFLAGS"; then 27924 pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS" 27925 elif test -n "$PKG_CONFIG"; then 27926 if test -n "$PKG_CONFIG" && \ 27927 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5 27928 ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5 27929 ac_status=$? 27930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27931 test $ac_status = 0; }; then 27932 pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null` 27933 test "x$?" != "x0" && pkg_failed=yes 27934 else 27935 pkg_failed=yes 27936 fi 27937 else 27938 pkg_failed=untried 27939 fi 27940 if test -n "$LIBIDN2_LIBS"; then 27941 pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS" 27942 elif test -n "$PKG_CONFIG"; then 27943 if test -n "$PKG_CONFIG" && \ 27944 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5 27945 ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5 27946 ac_status=$? 27947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27948 test $ac_status = 0; }; then 27949 pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null` 27950 test "x$?" != "x0" && pkg_failed=yes 27951 else 27952 pkg_failed=yes 27953 fi 27954 else 27955 pkg_failed=untried 27956 fi 27957 27958 27959 27960 if test $pkg_failed = yes; then 27961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27962 printf "%s\n" "no" >&6; } 27963 27964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27965 _pkg_short_errors_supported=yes 27966 else 27967 _pkg_short_errors_supported=no 27968 fi 27969 if test $_pkg_short_errors_supported = yes; then 27970 LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1` 27971 else 27972 LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1` 27973 fi 27974 # Put the nasty error message in config.log where it belongs 27975 echo "$LIBIDN2_PKG_ERRORS" >&5 27976 27977 as_fn_error $? "Package requirements (libidn2) were not met: 27978 27979 $LIBIDN2_PKG_ERRORS 27980 27981 Consider adjusting the PKG_CONFIG_PATH environment variable if you 27982 installed software in a non-standard prefix. 27983 27984 Alternatively, you may set the environment variables LIBIDN2_CFLAGS 27985 and LIBIDN2_LIBS to avoid the need to call pkg-config. 27986 See the pkg-config man page for more details." "$LINENO" 5 27987 elif test $pkg_failed = untried; then 27988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27989 printf "%s\n" "no" >&6; } 27990 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 27991 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 27992 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 27993 is in your PATH or set the PKG_CONFIG environment variable to the full 27994 path to pkg-config. 27995 27996 Alternatively, you may set the environment variables LIBIDN2_CFLAGS 27997 and LIBIDN2_LIBS to avoid the need to call pkg-config. 27998 See the pkg-config man page for more details. 27999 28000 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28001 See 'config.log' for more details" "$LINENO" 5; } 28002 else 28003 LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS 28004 LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS 28005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28006 printf "%s\n" "yes" >&6; } 28007 28008 printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h 28009 28010 fi ;; #( 28011 no) : 28012 ;; #( 28013 *) : 28014 28015 28016 CCASFLAGS_libidn2_ax_save_flags=$CCASFLAGS 28017 28018 28019 28020 CFLAGS_libidn2_ax_save_flags=$CFLAGS 28021 28022 28023 28024 CPPFLAGS_libidn2_ax_save_flags=$CPPFLAGS 28025 28026 28027 28028 CXXFLAGS_libidn2_ax_save_flags=$CXXFLAGS 28029 28030 28031 28032 ERLCFLAGS_libidn2_ax_save_flags=$ERLCFLAGS 28033 28034 28035 28036 FCFLAGS_libidn2_ax_save_flags=$FCFLAGS 28037 28038 28039 28040 FCLIBS_libidn2_ax_save_flags=$FCLIBS 28041 28042 28043 28044 FFLAGS_libidn2_ax_save_flags=$FFLAGS 28045 28046 28047 28048 FLIBS_libidn2_ax_save_flags=$FLIBS 28049 28050 28051 28052 GCJFLAGS_libidn2_ax_save_flags=$GCJFLAGS 28053 28054 28055 28056 JAVACFLAGS_libidn2_ax_save_flags=$JAVACFLAGS 28057 28058 28059 28060 LDFLAGS_libidn2_ax_save_flags=$LDFLAGS 28061 28062 28063 28064 LIBS_libidn2_ax_save_flags=$LIBS 28065 28066 28067 28068 OBJCFLAGS_libidn2_ax_save_flags=$OBJCFLAGS 28069 28070 28071 28072 OBJCXXFLAGS_libidn2_ax_save_flags=$OBJCXXFLAGS 28073 28074 28075 28076 UPCFLAGS_libidn2_ax_save_flags=$UPCFLAGS 28077 28078 28079 28080 VALAFLAGS_libidn2_ax_save_flags=$VALAFLAGS 28081 28082 28083 28084 LIBIDN2_CFLAGS="-I$with_libidn2/include" 28085 LIBIDN2_LIBS="-L$with_libidn2/lib" 28086 CFLAGS="$CFLAGS $LIBIDN2_CFLAGS" 28087 LIBS="$LIBS $LIBIDN2_LIBS" 28088 for ac_header in idn2.h 28089 do : 28090 ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default" 28091 if test "x$ac_cv_header_idn2_h" = xyes 28092 then : 28093 printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h 28094 28095 else case e in #( 28096 e) as_fn_error $? "idn2.h not found" "$LINENO" 5 ;; 28097 esac 28098 fi 28099 28100 done 28101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5 28102 printf %s "checking for library containing idn2_to_ascii_lz... " >&6; } 28103 if test ${ac_cv_search_idn2_to_ascii_lz+y} 28104 then : 28105 printf %s "(cached) " >&6 28106 else case e in #( 28107 e) ac_func_search_save_LIBS=$LIBS 28108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28109 /* end confdefs.h. */ 28110 28111 /* Override any GCC internal prototype to avoid an error. 28112 Use char because int might match the return type of a GCC 28113 builtin and then its argument prototype would still apply. 28114 The 'extern "C"' is for builds by C++ compilers; 28115 although this is not generally supported in C code supporting it here 28116 has little cost and some practical benefit (sr 110532). */ 28117 #ifdef __cplusplus 28118 extern "C" 28119 #endif 28120 char idn2_to_ascii_lz (void); 28121 int 28122 main (void) 28123 { 28124 return idn2_to_ascii_lz (); 28125 ; 28126 return 0; 28127 } 28128 _ACEOF 28129 for ac_lib in '' idn2 28130 do 28131 if test -z "$ac_lib"; then 28132 ac_res="none required" 28133 else 28134 ac_res=-l$ac_lib 28135 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28136 fi 28137 if ac_fn_c_try_link "$LINENO" 28138 then : 28139 ac_cv_search_idn2_to_ascii_lz=$ac_res 28140 fi 28141 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28142 conftest$ac_exeext 28143 if test ${ac_cv_search_idn2_to_ascii_lz+y} 28144 then : 28145 break 28146 fi 28147 done 28148 if test ${ac_cv_search_idn2_to_ascii_lz+y} 28149 then : 28150 28151 else case e in #( 28152 e) ac_cv_search_idn2_to_ascii_lz=no ;; 28153 esac 28154 fi 28155 rm conftest.$ac_ext 28156 LIBS=$ac_func_search_save_LIBS ;; 28157 esac 28158 fi 28159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5 28160 printf "%s\n" "$ac_cv_search_idn2_to_ascii_lz" >&6; } 28161 ac_res=$ac_cv_search_idn2_to_ascii_lz 28162 if test "$ac_res" != no 28163 then : 28164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28165 LIBIDN2_LIBS="$LIBIDN2_LIBS $ac_cv_search_idn2_to_ascii_lz" 28166 28167 printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h 28168 28169 else case e in #( 28170 e) as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5 ;; 28171 esac 28172 fi 28173 28174 28175 CCASFLAGS=$CCASFLAGS_libidn2_ax_save_flags 28176 28177 28178 CFLAGS=$CFLAGS_libidn2_ax_save_flags 28179 28180 28181 CPPFLAGS=$CPPFLAGS_libidn2_ax_save_flags 28182 28183 28184 CXXFLAGS=$CXXFLAGS_libidn2_ax_save_flags 28185 28186 28187 ERLCFLAGS=$ERLCFLAGS_libidn2_ax_save_flags 28188 28189 28190 FCFLAGS=$FCFLAGS_libidn2_ax_save_flags 28191 28192 28193 FCLIBS=$FCLIBS_libidn2_ax_save_flags 28194 28195 28196 FFLAGS=$FFLAGS_libidn2_ax_save_flags 28197 28198 28199 FLIBS=$FLIBS_libidn2_ax_save_flags 28200 28201 28202 GCJFLAGS=$GCJFLAGS_libidn2_ax_save_flags 28203 28204 28205 JAVACFLAGS=$JAVACFLAGS_libidn2_ax_save_flags 28206 28207 28208 LDFLAGS=$LDFLAGS_libidn2_ax_save_flags 28209 28210 28211 LIBS=$LIBS_libidn2_ax_save_flags 28212 28213 28214 OBJCFLAGS=$OBJCFLAGS_libidn2_ax_save_flags 28215 28216 28217 OBJCXXFLAGS=$OBJCXXFLAGS_libidn2_ax_save_flags 28218 28219 28220 UPCFLAGS=$UPCFLAGS_libidn2_ax_save_flags 28221 28222 28223 VALAFLAGS=$VALAFLAGS_libidn2_ax_save_flags 28224 28225 28226 ;; #( 28227 *) : 28228 ;; 28229 esac 28230 28231 28232 28233 # 28234 # Check whether to build with cmocka unit testing framework 28235 # 28236 # [pairwise: --with-cmocka=detect, --with-cmocka=yes, --without-cmocka] 28237 28238 # Check whether --with-cmocka was given. 28239 if test ${with_cmocka+y} 28240 then : 28241 withval=$with_cmocka; 28242 else case e in #( 28243 e) with_cmocka=detect ;; 28244 esac 28245 fi 28246 28247 28248 case $with_cmocka in #( 28249 no) : 28250 ;; #( 28251 detect) : 28252 28253 pkg_failed=no 28254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.1.3" >&5 28255 printf %s "checking for cmocka >= 1.1.3... " >&6; } 28256 28257 if test -n "$CMOCKA_CFLAGS"; then 28258 pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS" 28259 elif test -n "$PKG_CONFIG"; then 28260 if test -n "$PKG_CONFIG" && \ 28261 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5 28262 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5 28263 ac_status=$? 28264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28265 test $ac_status = 0; }; then 28266 pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.1.3" 2>/dev/null` 28267 test "x$?" != "x0" && pkg_failed=yes 28268 else 28269 pkg_failed=yes 28270 fi 28271 else 28272 pkg_failed=untried 28273 fi 28274 if test -n "$CMOCKA_LIBS"; then 28275 pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS" 28276 elif test -n "$PKG_CONFIG"; then 28277 if test -n "$PKG_CONFIG" && \ 28278 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5 28279 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5 28280 ac_status=$? 28281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28282 test $ac_status = 0; }; then 28283 pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.1.3" 2>/dev/null` 28284 test "x$?" != "x0" && pkg_failed=yes 28285 else 28286 pkg_failed=yes 28287 fi 28288 else 28289 pkg_failed=untried 28290 fi 28291 28292 28293 28294 if test $pkg_failed = yes; then 28295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28296 printf "%s\n" "no" >&6; } 28297 28298 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28299 _pkg_short_errors_supported=yes 28300 else 28301 _pkg_short_errors_supported=no 28302 fi 28303 if test $_pkg_short_errors_supported = yes; then 28304 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1` 28305 else 28306 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1` 28307 fi 28308 # Put the nasty error message in config.log where it belongs 28309 echo "$CMOCKA_PKG_ERRORS" >&5 28310 28311 with_cmocka=no 28312 elif test $pkg_failed = untried; then 28313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28314 printf "%s\n" "no" >&6; } 28315 with_cmocka=no 28316 else 28317 CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS 28318 CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS 28319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28320 printf "%s\n" "yes" >&6; } 28321 28322 printf "%s\n" "#define HAVE_CMOCKA 1" >>confdefs.h 28323 28324 with_cmocka=yes 28325 fi ;; #( 28326 yes) : 28327 28328 pkg_failed=no 28329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.1.3" >&5 28330 printf %s "checking for cmocka >= 1.1.3... " >&6; } 28331 28332 if test -n "$CMOCKA_CFLAGS"; then 28333 pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS" 28334 elif test -n "$PKG_CONFIG"; then 28335 if test -n "$PKG_CONFIG" && \ 28336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5 28337 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5 28338 ac_status=$? 28339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28340 test $ac_status = 0; }; then 28341 pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.1.3" 2>/dev/null` 28342 test "x$?" != "x0" && pkg_failed=yes 28343 else 28344 pkg_failed=yes 28345 fi 28346 else 28347 pkg_failed=untried 28348 fi 28349 if test -n "$CMOCKA_LIBS"; then 28350 pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS" 28351 elif test -n "$PKG_CONFIG"; then 28352 if test -n "$PKG_CONFIG" && \ 28353 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5 28354 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5 28355 ac_status=$? 28356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28357 test $ac_status = 0; }; then 28358 pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.1.3" 2>/dev/null` 28359 test "x$?" != "x0" && pkg_failed=yes 28360 else 28361 pkg_failed=yes 28362 fi 28363 else 28364 pkg_failed=untried 28365 fi 28366 28367 28368 28369 if test $pkg_failed = yes; then 28370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28371 printf "%s\n" "no" >&6; } 28372 28373 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28374 _pkg_short_errors_supported=yes 28375 else 28376 _pkg_short_errors_supported=no 28377 fi 28378 if test $_pkg_short_errors_supported = yes; then 28379 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1` 28380 else 28381 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1` 28382 fi 28383 # Put the nasty error message in config.log where it belongs 28384 echo "$CMOCKA_PKG_ERRORS" >&5 28385 28386 as_fn_error $? "Package requirements (cmocka >= 1.1.3) were not met: 28387 28388 $CMOCKA_PKG_ERRORS 28389 28390 Consider adjusting the PKG_CONFIG_PATH environment variable if you 28391 installed software in a non-standard prefix. 28392 28393 Alternatively, you may set the environment variables CMOCKA_CFLAGS 28394 and CMOCKA_LIBS to avoid the need to call pkg-config. 28395 See the pkg-config man page for more details." "$LINENO" 5 28396 elif test $pkg_failed = untried; then 28397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28398 printf "%s\n" "no" >&6; } 28399 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 28400 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 28401 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28402 is in your PATH or set the PKG_CONFIG environment variable to the full 28403 path to pkg-config. 28404 28405 Alternatively, you may set the environment variables CMOCKA_CFLAGS 28406 and CMOCKA_LIBS to avoid the need to call pkg-config. 28407 See the pkg-config man page for more details. 28408 28409 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28410 See 'config.log' for more details" "$LINENO" 5; } 28411 else 28412 CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS 28413 CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS 28414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28415 printf "%s\n" "yes" >&6; } 28416 28417 printf "%s\n" "#define HAVE_CMOCKA 1" >>confdefs.h 28418 28419 fi ;; #( 28420 *) : 28421 as_fn_error $? "Use PKG_CONFIG_PATH to specify path to CMocka library" "$LINENO" 5 28422 ;; 28423 esac 28424 28425 28426 28427 if test "$with_cmocka" = "yes"; then 28428 HAVE_CMOCKA_TRUE= 28429 HAVE_CMOCKA_FALSE='#' 28430 else 28431 HAVE_CMOCKA_TRUE='#' 28432 HAVE_CMOCKA_FALSE= 28433 fi 28434 28435 28436 # 28437 # Compile with jemalloc (either provided as package or wired in the system on FreeBSD) 28438 # 28439 # [pairwise: --with-jemalloc=detect, --with-jemalloc=yes, --without-jemalloc] 28440 28441 # Check whether --with-jemalloc was given. 28442 if test ${with_jemalloc+y} 28443 then : 28444 withval=$with_jemalloc; 28445 else case e in #( 28446 e) with_jemalloc=detect ;; 28447 esac 28448 fi 28449 28450 28451 case $with_jemalloc in #( 28452 no) : 28453 ;; #( 28454 yes) : 28455 28456 found=false 28457 28458 pkg_failed=no 28459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jemalloc" >&5 28460 printf %s "checking for jemalloc... " >&6; } 28461 28462 if test -n "$JEMALLOC_CFLAGS"; then 28463 pkg_cv_JEMALLOC_CFLAGS="$JEMALLOC_CFLAGS" 28464 elif test -n "$PKG_CONFIG"; then 28465 if test -n "$PKG_CONFIG" && \ 28466 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5 28467 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5 28468 ac_status=$? 28469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28470 test $ac_status = 0; }; then 28471 pkg_cv_JEMALLOC_CFLAGS=`$PKG_CONFIG --cflags "jemalloc" 2>/dev/null` 28472 test "x$?" != "x0" && pkg_failed=yes 28473 else 28474 pkg_failed=yes 28475 fi 28476 else 28477 pkg_failed=untried 28478 fi 28479 if test -n "$JEMALLOC_LIBS"; then 28480 pkg_cv_JEMALLOC_LIBS="$JEMALLOC_LIBS" 28481 elif test -n "$PKG_CONFIG"; then 28482 if test -n "$PKG_CONFIG" && \ 28483 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5 28484 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5 28485 ac_status=$? 28486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28487 test $ac_status = 0; }; then 28488 pkg_cv_JEMALLOC_LIBS=`$PKG_CONFIG --libs "jemalloc" 2>/dev/null` 28489 test "x$?" != "x0" && pkg_failed=yes 28490 else 28491 pkg_failed=yes 28492 fi 28493 else 28494 pkg_failed=untried 28495 fi 28496 28497 28498 28499 if test $pkg_failed = yes; then 28500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28501 printf "%s\n" "no" >&6; } 28502 28503 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28504 _pkg_short_errors_supported=yes 28505 else 28506 _pkg_short_errors_supported=no 28507 fi 28508 if test $_pkg_short_errors_supported = yes; then 28509 JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jemalloc" 2>&1` 28510 else 28511 JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jemalloc" 2>&1` 28512 fi 28513 # Put the nasty error message in config.log where it belongs 28514 echo "$JEMALLOC_PKG_ERRORS" >&5 28515 28516 28517 for ac_header in malloc_np.h jemalloc/jemalloc.h 28518 do : 28519 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` 28520 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 28521 if eval test \"x\$"$as_ac_Header"\" = x"yes" 28522 then : 28523 cat >>confdefs.h <<_ACEOF 28524 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 28525 _ACEOF 28526 28527 save_LIBS="$LIBS" 28528 save_LDFLAGS="$LDFLAGS" 28529 save_CPPFLAGS="$CPPFLAGS" 28530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sdallocx" >&5 28531 printf %s "checking for library containing sdallocx... " >&6; } 28532 if test ${ac_cv_search_sdallocx+y} 28533 then : 28534 printf %s "(cached) " >&6 28535 else case e in #( 28536 e) ac_func_search_save_LIBS=$LIBS 28537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28538 /* end confdefs.h. */ 28539 28540 /* Override any GCC internal prototype to avoid an error. 28541 Use char because int might match the return type of a GCC 28542 builtin and then its argument prototype would still apply. 28543 The 'extern "C"' is for builds by C++ compilers; 28544 although this is not generally supported in C code supporting it here 28545 has little cost and some practical benefit (sr 110532). */ 28546 #ifdef __cplusplus 28547 extern "C" 28548 #endif 28549 char sdallocx (void); 28550 int 28551 main (void) 28552 { 28553 return sdallocx (); 28554 ; 28555 return 0; 28556 } 28557 _ACEOF 28558 for ac_lib in '' jemalloc 28559 do 28560 if test -z "$ac_lib"; then 28561 ac_res="none required" 28562 else 28563 ac_res=-l$ac_lib 28564 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28565 fi 28566 if ac_fn_c_try_link "$LINENO" 28567 then : 28568 ac_cv_search_sdallocx=$ac_res 28569 fi 28570 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28571 conftest$ac_exeext 28572 if test ${ac_cv_search_sdallocx+y} 28573 then : 28574 break 28575 fi 28576 done 28577 if test ${ac_cv_search_sdallocx+y} 28578 then : 28579 28580 else case e in #( 28581 e) ac_cv_search_sdallocx=no ;; 28582 esac 28583 fi 28584 rm conftest.$ac_ext 28585 LIBS=$ac_func_search_save_LIBS ;; 28586 esac 28587 fi 28588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sdallocx" >&5 28589 printf "%s\n" "$ac_cv_search_sdallocx" >&6; } 28590 ac_res=$ac_cv_search_sdallocx 28591 if test "$ac_res" != no 28592 then : 28593 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28594 28595 found=true 28596 JEMALLOC_VERSION=system 28597 if test "$ac_cv_search_mallocx" != "none required" 28598 then : 28599 JEMALLOC_LIBS="$ac_cv_search_mallocx" 28600 fi 28601 28602 fi 28603 28604 CPPFLAGS="$save_CPPFLAGS" 28605 LDFLAGS="$save_LDFLAGS" 28606 LIBS="$save_LIBS" 28607 28608 fi 28609 28610 done 28611 28612 elif test $pkg_failed = untried; then 28613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28614 printf "%s\n" "no" >&6; } 28615 28616 for ac_header in malloc_np.h jemalloc/jemalloc.h 28617 do : 28618 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` 28619 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 28620 if eval test \"x\$"$as_ac_Header"\" = x"yes" 28621 then : 28622 cat >>confdefs.h <<_ACEOF 28623 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 28624 _ACEOF 28625 28626 save_LIBS="$LIBS" 28627 save_LDFLAGS="$LDFLAGS" 28628 save_CPPFLAGS="$CPPFLAGS" 28629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sdallocx" >&5 28630 printf %s "checking for library containing sdallocx... " >&6; } 28631 if test ${ac_cv_search_sdallocx+y} 28632 then : 28633 printf %s "(cached) " >&6 28634 else case e in #( 28635 e) ac_func_search_save_LIBS=$LIBS 28636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28637 /* end confdefs.h. */ 28638 28639 /* Override any GCC internal prototype to avoid an error. 28640 Use char because int might match the return type of a GCC 28641 builtin and then its argument prototype would still apply. 28642 The 'extern "C"' is for builds by C++ compilers; 28643 although this is not generally supported in C code supporting it here 28644 has little cost and some practical benefit (sr 110532). */ 28645 #ifdef __cplusplus 28646 extern "C" 28647 #endif 28648 char sdallocx (void); 28649 int 28650 main (void) 28651 { 28652 return sdallocx (); 28653 ; 28654 return 0; 28655 } 28656 _ACEOF 28657 for ac_lib in '' jemalloc 28658 do 28659 if test -z "$ac_lib"; then 28660 ac_res="none required" 28661 else 28662 ac_res=-l$ac_lib 28663 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28664 fi 28665 if ac_fn_c_try_link "$LINENO" 28666 then : 28667 ac_cv_search_sdallocx=$ac_res 28668 fi 28669 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28670 conftest$ac_exeext 28671 if test ${ac_cv_search_sdallocx+y} 28672 then : 28673 break 28674 fi 28675 done 28676 if test ${ac_cv_search_sdallocx+y} 28677 then : 28678 28679 else case e in #( 28680 e) ac_cv_search_sdallocx=no ;; 28681 esac 28682 fi 28683 rm conftest.$ac_ext 28684 LIBS=$ac_func_search_save_LIBS ;; 28685 esac 28686 fi 28687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sdallocx" >&5 28688 printf "%s\n" "$ac_cv_search_sdallocx" >&6; } 28689 ac_res=$ac_cv_search_sdallocx 28690 if test "$ac_res" != no 28691 then : 28692 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28693 28694 found=true 28695 JEMALLOC_VERSION=system 28696 if test "$ac_cv_search_mallocx" != "none required" 28697 then : 28698 JEMALLOC_LIBS="$ac_cv_search_mallocx" 28699 fi 28700 28701 fi 28702 28703 CPPFLAGS="$save_CPPFLAGS" 28704 LDFLAGS="$save_LDFLAGS" 28705 LIBS="$save_LIBS" 28706 28707 fi 28708 28709 done 28710 28711 else 28712 JEMALLOC_CFLAGS=$pkg_cv_JEMALLOC_CFLAGS 28713 JEMALLOC_LIBS=$pkg_cv_JEMALLOC_LIBS 28714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28715 printf "%s\n" "yes" >&6; } 28716 28717 28718 if test -n "$JEMALLOC_VERSION"; then 28719 pkg_cv_JEMALLOC_VERSION="$JEMALLOC_VERSION" 28720 elif test -n "$PKG_CONFIG"; then 28721 if test -n "$PKG_CONFIG" && \ 28722 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5 28723 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5 28724 ac_status=$? 28725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28726 test $ac_status = 0; }; then 28727 pkg_cv_JEMALLOC_VERSION=`$PKG_CONFIG --modversion "jemalloc" 2>/dev/null` 28728 test "x$?" != "x0" && pkg_failed=yes 28729 else 28730 pkg_failed=yes 28731 fi 28732 else 28733 pkg_failed=untried 28734 fi 28735 JEMALLOC_VERSION=$pkg_cv_JEMALLOC_VERSION 28736 28737 if test "x$JEMALLOC_VERSION" = x"" 28738 then : 28739 28740 fi 28741 found=true 28742 28743 fi 28744 28745 if $found 28746 then : 28747 28748 printf "%s\n" "#define HAVE_JEMALLOC 1" >>confdefs.h 28749 28750 else case e in #( 28751 e) as_fn_error $? "jemalloc not found" "$LINENO" 5 ;; 28752 esac 28753 fi 28754 28755 28756 28757 ;; #( 28758 *) : 28759 28760 found=false 28761 28762 pkg_failed=no 28763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jemalloc" >&5 28764 printf %s "checking for jemalloc... " >&6; } 28765 28766 if test -n "$JEMALLOC_CFLAGS"; then 28767 pkg_cv_JEMALLOC_CFLAGS="$JEMALLOC_CFLAGS" 28768 elif test -n "$PKG_CONFIG"; then 28769 if test -n "$PKG_CONFIG" && \ 28770 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5 28771 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5 28772 ac_status=$? 28773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28774 test $ac_status = 0; }; then 28775 pkg_cv_JEMALLOC_CFLAGS=`$PKG_CONFIG --cflags "jemalloc" 2>/dev/null` 28776 test "x$?" != "x0" && pkg_failed=yes 28777 else 28778 pkg_failed=yes 28779 fi 28780 else 28781 pkg_failed=untried 28782 fi 28783 if test -n "$JEMALLOC_LIBS"; then 28784 pkg_cv_JEMALLOC_LIBS="$JEMALLOC_LIBS" 28785 elif test -n "$PKG_CONFIG"; then 28786 if test -n "$PKG_CONFIG" && \ 28787 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5 28788 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5 28789 ac_status=$? 28790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28791 test $ac_status = 0; }; then 28792 pkg_cv_JEMALLOC_LIBS=`$PKG_CONFIG --libs "jemalloc" 2>/dev/null` 28793 test "x$?" != "x0" && pkg_failed=yes 28794 else 28795 pkg_failed=yes 28796 fi 28797 else 28798 pkg_failed=untried 28799 fi 28800 28801 28802 28803 if test $pkg_failed = yes; then 28804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28805 printf "%s\n" "no" >&6; } 28806 28807 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28808 _pkg_short_errors_supported=yes 28809 else 28810 _pkg_short_errors_supported=no 28811 fi 28812 if test $_pkg_short_errors_supported = yes; then 28813 JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jemalloc" 2>&1` 28814 else 28815 JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jemalloc" 2>&1` 28816 fi 28817 # Put the nasty error message in config.log where it belongs 28818 echo "$JEMALLOC_PKG_ERRORS" >&5 28819 28820 28821 for ac_header in malloc_np.h jemalloc/jemalloc.h 28822 do : 28823 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` 28824 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 28825 if eval test \"x\$"$as_ac_Header"\" = x"yes" 28826 then : 28827 cat >>confdefs.h <<_ACEOF 28828 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 28829 _ACEOF 28830 28831 save_LIBS="$LIBS" 28832 save_LDFLAGS="$LDFLAGS" 28833 save_CPPFLAGS="$CPPFLAGS" 28834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sdallocx" >&5 28835 printf %s "checking for library containing sdallocx... " >&6; } 28836 if test ${ac_cv_search_sdallocx+y} 28837 then : 28838 printf %s "(cached) " >&6 28839 else case e in #( 28840 e) ac_func_search_save_LIBS=$LIBS 28841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28842 /* end confdefs.h. */ 28843 28844 /* Override any GCC internal prototype to avoid an error. 28845 Use char because int might match the return type of a GCC 28846 builtin and then its argument prototype would still apply. 28847 The 'extern "C"' is for builds by C++ compilers; 28848 although this is not generally supported in C code supporting it here 28849 has little cost and some practical benefit (sr 110532). */ 28850 #ifdef __cplusplus 28851 extern "C" 28852 #endif 28853 char sdallocx (void); 28854 int 28855 main (void) 28856 { 28857 return sdallocx (); 28858 ; 28859 return 0; 28860 } 28861 _ACEOF 28862 for ac_lib in '' jemalloc 28863 do 28864 if test -z "$ac_lib"; then 28865 ac_res="none required" 28866 else 28867 ac_res=-l$ac_lib 28868 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28869 fi 28870 if ac_fn_c_try_link "$LINENO" 28871 then : 28872 ac_cv_search_sdallocx=$ac_res 28873 fi 28874 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28875 conftest$ac_exeext 28876 if test ${ac_cv_search_sdallocx+y} 28877 then : 28878 break 28879 fi 28880 done 28881 if test ${ac_cv_search_sdallocx+y} 28882 then : 28883 28884 else case e in #( 28885 e) ac_cv_search_sdallocx=no ;; 28886 esac 28887 fi 28888 rm conftest.$ac_ext 28889 LIBS=$ac_func_search_save_LIBS ;; 28890 esac 28891 fi 28892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sdallocx" >&5 28893 printf "%s\n" "$ac_cv_search_sdallocx" >&6; } 28894 ac_res=$ac_cv_search_sdallocx 28895 if test "$ac_res" != no 28896 then : 28897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28898 28899 found=true 28900 JEMALLOC_VERSION=system 28901 if test "$ac_cv_search_mallocx" != "none required" 28902 then : 28903 JEMALLOC_LIBS="$ac_cv_search_mallocx" 28904 fi 28905 28906 fi 28907 28908 CPPFLAGS="$save_CPPFLAGS" 28909 LDFLAGS="$save_LDFLAGS" 28910 LIBS="$save_LIBS" 28911 28912 fi 28913 28914 done 28915 28916 elif test $pkg_failed = untried; then 28917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28918 printf "%s\n" "no" >&6; } 28919 28920 for ac_header in malloc_np.h jemalloc/jemalloc.h 28921 do : 28922 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` 28923 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 28924 if eval test \"x\$"$as_ac_Header"\" = x"yes" 28925 then : 28926 cat >>confdefs.h <<_ACEOF 28927 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 28928 _ACEOF 28929 28930 save_LIBS="$LIBS" 28931 save_LDFLAGS="$LDFLAGS" 28932 save_CPPFLAGS="$CPPFLAGS" 28933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sdallocx" >&5 28934 printf %s "checking for library containing sdallocx... " >&6; } 28935 if test ${ac_cv_search_sdallocx+y} 28936 then : 28937 printf %s "(cached) " >&6 28938 else case e in #( 28939 e) ac_func_search_save_LIBS=$LIBS 28940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28941 /* end confdefs.h. */ 28942 28943 /* Override any GCC internal prototype to avoid an error. 28944 Use char because int might match the return type of a GCC 28945 builtin and then its argument prototype would still apply. 28946 The 'extern "C"' is for builds by C++ compilers; 28947 although this is not generally supported in C code supporting it here 28948 has little cost and some practical benefit (sr 110532). */ 28949 #ifdef __cplusplus 28950 extern "C" 28951 #endif 28952 char sdallocx (void); 28953 int 28954 main (void) 28955 { 28956 return sdallocx (); 28957 ; 28958 return 0; 28959 } 28960 _ACEOF 28961 for ac_lib in '' jemalloc 28962 do 28963 if test -z "$ac_lib"; then 28964 ac_res="none required" 28965 else 28966 ac_res=-l$ac_lib 28967 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28968 fi 28969 if ac_fn_c_try_link "$LINENO" 28970 then : 28971 ac_cv_search_sdallocx=$ac_res 28972 fi 28973 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28974 conftest$ac_exeext 28975 if test ${ac_cv_search_sdallocx+y} 28976 then : 28977 break 28978 fi 28979 done 28980 if test ${ac_cv_search_sdallocx+y} 28981 then : 28982 28983 else case e in #( 28984 e) ac_cv_search_sdallocx=no ;; 28985 esac 28986 fi 28987 rm conftest.$ac_ext 28988 LIBS=$ac_func_search_save_LIBS ;; 28989 esac 28990 fi 28991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sdallocx" >&5 28992 printf "%s\n" "$ac_cv_search_sdallocx" >&6; } 28993 ac_res=$ac_cv_search_sdallocx 28994 if test "$ac_res" != no 28995 then : 28996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28997 28998 found=true 28999 JEMALLOC_VERSION=system 29000 if test "$ac_cv_search_mallocx" != "none required" 29001 then : 29002 JEMALLOC_LIBS="$ac_cv_search_mallocx" 29003 fi 29004 29005 fi 29006 29007 CPPFLAGS="$save_CPPFLAGS" 29008 LDFLAGS="$save_LDFLAGS" 29009 LIBS="$save_LIBS" 29010 29011 fi 29012 29013 done 29014 29015 else 29016 JEMALLOC_CFLAGS=$pkg_cv_JEMALLOC_CFLAGS 29017 JEMALLOC_LIBS=$pkg_cv_JEMALLOC_LIBS 29018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29019 printf "%s\n" "yes" >&6; } 29020 29021 29022 if test -n "$JEMALLOC_VERSION"; then 29023 pkg_cv_JEMALLOC_VERSION="$JEMALLOC_VERSION" 29024 elif test -n "$PKG_CONFIG"; then 29025 if test -n "$PKG_CONFIG" && \ 29026 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5 29027 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5 29028 ac_status=$? 29029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29030 test $ac_status = 0; }; then 29031 pkg_cv_JEMALLOC_VERSION=`$PKG_CONFIG --modversion "jemalloc" 2>/dev/null` 29032 test "x$?" != "x0" && pkg_failed=yes 29033 else 29034 pkg_failed=yes 29035 fi 29036 else 29037 pkg_failed=untried 29038 fi 29039 JEMALLOC_VERSION=$pkg_cv_JEMALLOC_VERSION 29040 29041 if test "x$JEMALLOC_VERSION" = x"" 29042 then : 29043 29044 fi 29045 found=true 29046 29047 fi 29048 29049 if $found 29050 then : 29051 29052 printf "%s\n" "#define HAVE_JEMALLOC 1" >>confdefs.h 29053 29054 with_jemalloc=yes 29055 else case e in #( 29056 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: jemalloc not found; performance will be reduced" >&5 29057 printf "%s\n" "$as_me: WARNING: jemalloc not found; performance will be reduced" >&2;} 29058 with_jemalloc=no ;; 29059 esac 29060 fi 29061 29062 29063 29064 ;; 29065 esac 29066 29067 if test "$with_jemalloc" = "no" 29068 then : 29069 case $host in #( 29070 *-freebsd*) : 29071 as_fn_error $? "You cannot compile without jemalloc; jemalloc is the system allocator on FreeBSD" "$LINENO" 5 ;; #( 29072 *) : 29073 ;; 29074 esac 29075 fi 29076 29077 if test "$with_jemalloc" = "yes"; then 29078 HAVE_JEMALLOC_TRUE= 29079 HAVE_JEMALLOC_FALSE='#' 29080 else 29081 HAVE_JEMALLOC_TRUE='#' 29082 HAVE_JEMALLOC_FALSE= 29083 fi 29084 29085 29086 # 29087 # Check memory leaks in external libraries 29088 # 29089 # [pairwise: --enable-leak-detection, --disable-leak-detection] 29090 # Check whether --enable-leak-detection was given. 29091 if test ${enable_leak_detection+y} 29092 then : 29093 enableval=$enable_leak_detection; 29094 else case e in #( 29095 e) enable_leak_detection=no ;; 29096 esac 29097 fi 29098 29099 case $enable_leak_detection in #( 29100 yes) : 29101 29102 printf "%s\n" "#define ENABLE_LEAK_DETECTION 1" >>confdefs.h 29103 ;; #( 29104 *) : 29105 ;; 29106 esac 29107 29108 # 29109 # was --enable-querytrace or --enable-singletrace specified? 29110 # 29111 # [pairwise: --enable-singletrace --enable-querytrace, --disable-singletrace --enable-querytrace, --disable-singletrace --disable-querytrace] 29112 # Check whether --enable-singletrace was given. 29113 if test ${enable_singletrace+y} 29114 then : 29115 enableval=$enable_singletrace; enable_singletrace="$enableval" 29116 else case e in #( 29117 e) enable_singletrace="no" ;; 29118 esac 29119 fi 29120 29121 29122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable single-query trace logging" >&5 29123 printf %s "checking whether to enable single-query trace logging... " >&6; } 29124 case "$enable_singletrace" in 29125 yes) 29126 enable_querytrace=yes 29127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29128 printf "%s\n" "yes" >&6; } 29129 29130 printf "%s\n" "#define WANT_SINGLETRACE 1" >>confdefs.h 29131 29132 ;; 29133 no) 29134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29135 printf "%s\n" "no" >&6; } 29136 ;; 29137 *) 29138 as_fn_error $? "\"--enable-singletrace requires yes or no\"" "$LINENO" 5 29139 ;; 29140 esac 29141 29142 # [pairwise: skip] 29143 # Check whether --enable-querytrace was given. 29144 if test ${enable_querytrace+y} 29145 then : 29146 enableval=$enable_querytrace; enable_querytrace="$enableval" 29147 else case e in #( 29148 e) enable_querytrace="$enable_singletrace" ;; 29149 esac 29150 fi 29151 29152 29153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5 29154 printf %s "checking whether to enable query trace logging... " >&6; } 29155 case "$enable_querytrace" in 29156 yes) 29157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29158 printf "%s\n" "yes" >&6; } 29159 29160 printf "%s\n" "#define WANT_QUERYTRACE 1" >>confdefs.h 29161 29162 ;; 29163 no) 29164 if test "$enable_singletrace" = "yes" 29165 then : 29166 as_fn_error $? "--enable-singletrace requires --enable-querytrace" "$LINENO" 5 29167 fi 29168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29169 printf "%s\n" "no" >&6; } 29170 ;; 29171 *) 29172 as_fn_error $? "\"--enable-querytrace requires yes or no (not $enable_querytrace)\"" "$LINENO" 5 29173 ;; 29174 esac 29175 29176 # 29177 # Was --disable-auto-validation specified? 29178 # 29179 29180 validation_default=auto 29181 29182 # [pairwise: --enable-auto-validation, --disable-auto-validation] 29183 # Check whether --enable-auto-validation was given. 29184 if test ${enable_auto_validation+y} 29185 then : 29186 enableval=$enable_auto_validation; : 29187 else case e in #( 29188 e) enable_auto_validation=yes ;; 29189 esac 29190 fi 29191 29192 if test "$enable_auto_validation" = "no" 29193 then : 29194 validation_default=yes 29195 fi 29196 29197 printf "%s\n" "#define VALIDATION_DEFAULT \"$validation_default\"" >>confdefs.h 29198 29199 29200 # 29201 # 29202 # Response policy rewriting using DNS Response Policy Service (DNSRPS) 29203 # interface. 29204 # 29205 # DNSRPS can be compiled into BIND everywhere with a reasonably 29206 # modern C compiler. It is enabled on systems with dlopen() and librpz.so. 29207 # 29208 dnsrps_avail=yes 29209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5 29210 printf %s "checking for librpz __attribute__s... " >&6; } 29211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29212 /* end confdefs.h. */ 29213 29214 int 29215 main (void) 29216 { 29217 29218 extern void f(char *p __attribute__((unused)), ...) 29219 __attribute__((format(printf,1,2))) __attribute__((__noreturn__)); 29220 29221 ; 29222 return 0; 29223 } 29224 _ACEOF 29225 if ac_fn_c_try_compile "$LINENO" 29226 then : 29227 29228 librpz_have_attr=yes 29229 29230 printf "%s\n" "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h 29231 29232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29233 printf "%s\n" "yes" >&6; } 29234 29235 else case e in #( 29236 e) 29237 librpz_have_attr=no 29238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29239 printf "%s\n" "no" >&6; } 29240 ;; 29241 esac 29242 fi 29243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29244 29245 # [pairwise: --enable-dnsrps --enable-dnsrps-dl, --disable-dnsrps] 29246 # Check whether --enable-dnsrps-dl was given. 29247 if test ${enable_dnsrps_dl+y} 29248 then : 29249 enableval=$enable_dnsrps_dl; enable_dnsrps_dl="$enableval" 29250 else case e in #( 29251 e) enable_dnsrps_dl="yes" ;; 29252 esac 29253 fi 29254 29255 29256 if test "$enable_dnsrps_dl" = "yes" -a "$with_dlopen" = "no" 29257 then : 29258 as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5 29259 fi 29260 29261 # [pairwise: skip] 29262 29263 # Check whether --with-dnsrps-libname was given. 29264 if test ${with_dnsrps_libname+y} 29265 then : 29266 withval=$with_dnsrps_libname; librpz_name="$withval" 29267 else case e in #( 29268 e) librpz_name="librpz.so" ;; 29269 esac 29270 fi 29271 29272 29273 # [pairwise: skip] 29274 29275 # Check whether --with-dnsrps-dir was given. 29276 if test ${with_dnsrps_dir+y} 29277 then : 29278 withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name" 29279 else case e in #( 29280 e) librpz_path="$librpz_name" ;; 29281 esac 29282 fi 29283 29284 29285 printf "%s\n" "#define DNSRPS_LIBRPZ_PATH \"$librpz_path\"" >>confdefs.h 29286 29287 if test "$enable_dnsrps_dl" = "yes" 29288 then : 29289 29290 dnsrps_lib_open=2 29291 29292 else case e in #( 29293 e) 29294 dnsrps_lib_open=1 29295 # Add librpz.so to linked libraries if we are not using dlopen() 29296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5 29297 printf %s "checking for library containing librpz_client_create... " >&6; } 29298 if test ${ac_cv_search_librpz_client_create+y} 29299 then : 29300 printf %s "(cached) " >&6 29301 else case e in #( 29302 e) ac_func_search_save_LIBS=$LIBS 29303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29304 /* end confdefs.h. */ 29305 29306 /* Override any GCC internal prototype to avoid an error. 29307 Use char because int might match the return type of a GCC 29308 builtin and then its argument prototype would still apply. 29309 The 'extern "C"' is for builds by C++ compilers; 29310 although this is not generally supported in C code supporting it here 29311 has little cost and some practical benefit (sr 110532). */ 29312 #ifdef __cplusplus 29313 extern "C" 29314 #endif 29315 char librpz_client_create (void); 29316 int 29317 main (void) 29318 { 29319 return librpz_client_create (); 29320 ; 29321 return 0; 29322 } 29323 _ACEOF 29324 for ac_lib in '' rpz 29325 do 29326 if test -z "$ac_lib"; then 29327 ac_res="none required" 29328 else 29329 ac_res=-l$ac_lib 29330 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29331 fi 29332 if ac_fn_c_try_link "$LINENO" 29333 then : 29334 ac_cv_search_librpz_client_create=$ac_res 29335 fi 29336 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29337 conftest$ac_exeext 29338 if test ${ac_cv_search_librpz_client_create+y} 29339 then : 29340 break 29341 fi 29342 done 29343 if test ${ac_cv_search_librpz_client_create+y} 29344 then : 29345 29346 else case e in #( 29347 e) ac_cv_search_librpz_client_create=no ;; 29348 esac 29349 fi 29350 rm conftest.$ac_ext 29351 LIBS=$ac_func_search_save_LIBS ;; 29352 esac 29353 fi 29354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5 29355 printf "%s\n" "$ac_cv_search_librpz_client_create" >&6; } 29356 ac_res=$ac_cv_search_librpz_client_create 29357 if test "$ac_res" != no 29358 then : 29359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29360 29361 else case e in #( 29362 e) dnsrps_lib_open=0 29363 dnsrps_avail=no ;; 29364 esac 29365 fi 29366 29367 ;; 29368 esac 29369 fi 29370 29371 printf "%s\n" "#define DNSRPS_LIB_OPEN $dnsrps_lib_open" >>confdefs.h 29372 29373 29374 # [pairwise: skip] 29375 # Check whether --enable-dnsrps was given. 29376 if test ${enable_dnsrps+y} 29377 then : 29378 enableval=$enable_dnsrps; enable_dnsrps=$enableval 29379 else case e in #( 29380 e) enable_dnsrps=no ;; 29381 esac 29382 fi 29383 29384 29385 if test "$enable_dnsrps" != "no" 29386 then : 29387 29388 if test "$dnsrps_lib_open" = "0" 29389 then : 29390 as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5 29391 fi 29392 29393 printf "%s\n" "#define USE_DNSRPS 1" >>confdefs.h 29394 29395 29396 fi 29397 29398 if test "$enable_dnsrps" != "no"; then 29399 DNSRPS_TRUE= 29400 DNSRPS_FALSE='#' 29401 else 29402 DNSRPS_TRUE='#' 29403 DNSRPS_FALSE= 29404 fi 29405 29406 29407 ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default" 29408 if test "x$ac_cv_header_glob_h" = xyes 29409 then : 29410 printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h 29411 29412 fi 29413 29414 29415 # 29416 # Support for constructor and destructor attributes 29417 # 29418 29419 29420 29421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((constructor))" >&5 29422 printf %s "checking for __attribute__((constructor))... " >&6; } 29423 if test ${ax_cv_have_func_attribute_constructor+y} 29424 then : 29425 printf %s "(cached) " >&6 29426 else case e in #( 29427 e) 29428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29429 /* end confdefs.h. */ 29430 29431 29432 int foo( void ) __attribute__((constructor)); 29433 29434 int 29435 main (void) 29436 { 29437 29438 ; 29439 return 0; 29440 } 29441 29442 _ACEOF 29443 if ac_fn_c_try_link "$LINENO" 29444 then : 29445 if grep -- -Wattributes conftest.err 29446 then : 29447 ax_cv_have_func_attribute_constructor=no 29448 else case e in #( 29449 e) ax_cv_have_func_attribute_constructor=yes ;; 29450 esac 29451 fi 29452 else case e in #( 29453 e) ax_cv_have_func_attribute_constructor=no ;; 29454 esac 29455 fi 29456 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29457 conftest$ac_exeext conftest.$ac_ext 29458 ;; 29459 esac 29460 fi 29461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_constructor" >&5 29462 printf "%s\n" "$ax_cv_have_func_attribute_constructor" >&6; } 29463 29464 if test yes = $ax_cv_have_func_attribute_constructor 29465 then : 29466 29467 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR 1" >>confdefs.h 29468 29469 fi 29470 29471 29472 29473 29474 29475 29476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((destructor))" >&5 29477 printf %s "checking for __attribute__((destructor))... " >&6; } 29478 if test ${ax_cv_have_func_attribute_destructor+y} 29479 then : 29480 printf %s "(cached) " >&6 29481 else case e in #( 29482 e) 29483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29484 /* end confdefs.h. */ 29485 29486 29487 int foo( void ) __attribute__((destructor)); 29488 29489 int 29490 main (void) 29491 { 29492 29493 ; 29494 return 0; 29495 } 29496 29497 _ACEOF 29498 if ac_fn_c_try_link "$LINENO" 29499 then : 29500 if grep -- -Wattributes conftest.err 29501 then : 29502 ax_cv_have_func_attribute_destructor=no 29503 else case e in #( 29504 e) ax_cv_have_func_attribute_destructor=yes ;; 29505 esac 29506 fi 29507 else case e in #( 29508 e) ax_cv_have_func_attribute_destructor=no ;; 29509 esac 29510 fi 29511 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29512 conftest$ac_exeext conftest.$ac_ext 29513 ;; 29514 esac 29515 fi 29516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_destructor" >&5 29517 printf "%s\n" "$ax_cv_have_func_attribute_destructor" >&6; } 29518 29519 if test yes = $ax_cv_have_func_attribute_destructor 29520 then : 29521 29522 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_DESTRUCTOR 1" >>confdefs.h 29523 29524 fi 29525 29526 29527 29528 29529 # 29530 # Check whether to enable User Statically Defined Tracing. 29531 # 29532 # This is supported only on Linux now and requires SystemTap libraries. 29533 # 29534 # [pairwise: --enable-tracing=auto, --enable-tracing=yes, --disable-tracing] 29535 # Check whether --enable-tracing was given. 29536 if test ${enable_tracing+y} 29537 then : 29538 enableval=$enable_tracing; 29539 else case e in #( 29540 e) enable_tracing=auto ;; 29541 esac 29542 fi 29543 29544 29545 29546 for ac_prog in dtrace 29547 do 29548 # Extract the first word of "$ac_prog", so it can be a program name with args. 29549 set dummy $ac_prog; ac_word=$2 29550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29551 printf %s "checking for $ac_word... " >&6; } 29552 if test ${ac_cv_path_DTRACE+y} 29553 then : 29554 printf %s "(cached) " >&6 29555 else case e in #( 29556 e) case $DTRACE in 29557 [\\/]* | ?:[\\/]*) 29558 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 29559 ;; 29560 *) 29561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29562 for as_dir in $PATH 29563 do 29564 IFS=$as_save_IFS 29565 case $as_dir in #((( 29566 '') as_dir=./ ;; 29567 */) ;; 29568 *) as_dir=$as_dir/ ;; 29569 esac 29570 for ac_exec_ext in '' $ac_executable_extensions; do 29571 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29572 ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext" 29573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29574 break 2 29575 fi 29576 done 29577 done 29578 IFS=$as_save_IFS 29579 29580 ;; 29581 esac ;; 29582 esac 29583 fi 29584 DTRACE=$ac_cv_path_DTRACE 29585 if test -n "$DTRACE"; then 29586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 29587 printf "%s\n" "$DTRACE" >&6; } 29588 else 29589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29590 printf "%s\n" "no" >&6; } 29591 fi 29592 29593 29594 test -n "$DTRACE" && break 29595 done 29596 29597 ac_fn_c_check_header_compile "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 29598 if test "x$ac_cv_header_sys_sdt_h" = xyes 29599 then : 29600 printf "%s\n" "#define HAVE_SYS_SDT_H 1" >>confdefs.h 29601 29602 fi 29603 29604 29605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable User Statically Defined Tracing support (default is auto)" >&5 29606 printf %s "checking whether to enable User Statically Defined Tracing support (default is auto)... " >&6; } 29607 case $enable_tracing in #( 29608 auto) : 29609 enable_tracing=yes 29610 if test "$ac_cv_header_sys_sdt_h" != "yes" 29611 then : 29612 enable_tracing=no 29613 fi 29614 if test -z "$DTRACE" 29615 then : 29616 enable_tracing=no 29617 fi 29618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29619 /* end confdefs.h. */ 29620 29621 int 29622 main (void) 29623 { 29624 #if !defined(__has_feature) 29625 #define __has_feature(x) 0 29626 #endif /* if !defined(__has_feature) */ 29627 #if __has_feature(address_sanitizer) 29628 #define __SANITIZE_ADDRESS__ 1 29629 #endif /* if __has_feature(address_sanitizer) */ 29630 #if defined(__SANITIZE_ADDRESS__) 29631 #error Address Sanitizer enabled 29632 #endif 29633 29634 ; 29635 return 0; 29636 } 29637 _ACEOF 29638 if ac_fn_c_try_compile "$LINENO" 29639 then : 29640 29641 else case e in #( 29642 e) enable_tracing=no 29643 ;; 29644 esac 29645 fi 29646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #( 29647 *) : 29648 ;; 29649 esac 29650 case $enable_tracing in #( 29651 yes) : 29652 if test "$ac_cv_header_sys_sdt_h" != "yes" 29653 then : 29654 as_fn_error $? "sys/sdt.h header not found" "$LINENO" 5 29655 fi 29656 if test -z "$DTRACE" 29657 then : 29658 as_fn_error $? "The dtrace command not found" "$LINENO" 5 29659 fi 29660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29661 printf "%s\n" "yes" >&6; } ;; #( 29662 *) : 29663 DTRACE="" 29664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29665 printf "%s\n" "no" >&6; } ;; 29666 esac 29667 29668 case $host in #( 29669 *-linux*) : 29670 have_systemtap=true ;; #( 29671 *) : 29672 ;; 29673 esac 29674 29675 if test -n "$have_systemtap"; then 29676 HAVE_SYSTEMTAP_TRUE= 29677 HAVE_SYSTEMTAP_FALSE='#' 29678 else 29679 HAVE_SYSTEMTAP_TRUE='#' 29680 HAVE_SYSTEMTAP_FALSE= 29681 fi 29682 29683 if test -n "$DTRACE"; then 29684 HAVE_DTRACE_TRUE= 29685 HAVE_DTRACE_FALSE='#' 29686 else 29687 HAVE_DTRACE_TRUE='#' 29688 HAVE_DTRACE_FALSE= 29689 fi 29690 29691 29692 # Use shim script if dtrace is not available 29693 if test -z "$DTRACE" 29694 then : 29695 DTRACE='$(top_srcdir)/util/dtrace.sh' 29696 fi 29697 29698 29699 29700 # 29701 # Which should be the default zone database, RBTDB or QPZONE? 29702 # [pairwise: --with-zonedb=qp, --with-zonedb=rbt] 29703 # 29704 29705 # Check whether --with-zonedb was given. 29706 if test ${with_zonedb+y} 29707 then : 29708 withval=$with_zonedb; 29709 else case e in #( 29710 e) with_zonedb=qp ;; 29711 esac 29712 fi 29713 29714 zonedb="qpzone" 29715 case $with_zonedb in #( 29716 RBT*|rbt*) : 29717 zonedb="rbt" ;; #( 29718 QP|qp) : 29719 ;; #( 29720 *) : 29721 as_fn_error $? "Unknown zone database type" "$LINENO" 5 29722 ;; 29723 esac 29724 29725 printf "%s\n" "#define ZONEDB_DEFAULT \"$zonedb\"" >>confdefs.h 29726 29727 29728 # 29729 # Which should be the default zone database, RBTDB or QPCACHE? 29730 # [pairwise: --with-cachedb=qp, --with-cachedb=rbt] 29731 # 29732 29733 # Check whether --with-cachedb was given. 29734 if test ${with_cachedb+y} 29735 then : 29736 withval=$with_cachedb; 29737 else case e in #( 29738 e) with_cachedb=qp ;; 29739 esac 29740 fi 29741 29742 cachedb="qpcache" 29743 case $with_cachedb in #( 29744 RBT*|rbt*) : 29745 cachedb="rbt" ;; #( 29746 QP*|qp*) : 29747 ;; #( 29748 *) : 29749 as_fn_error $? "Unknown cache database type" "$LINENO" 5 29750 ;; 29751 esac 29752 29753 printf "%s\n" "#define CACHEDB_DEFAULT \"$cachedb\"" >>confdefs.h 29754 29755 29756 # 29757 # Files to configure. These are listed here because we used to 29758 # specify them as arguments to AC_OUTPUT. 29759 # 29760 29761 # Top 29762 29763 ac_config_files="$ac_config_files Makefile" 29764 29765 29766 # Binaries 29767 29768 ac_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" 29769 29770 29771 # Libraries 29772 29773 ac_config_files="$ac_config_files lib/Makefile lib/isc/Makefile lib/dns/Makefile lib/ns/Makefile lib/isccfg/Makefile lib/isccc/Makefile" 29774 29775 29776 # Documentation 29777 29778 ac_config_files="$ac_config_files doc/Makefile doc/arm/Makefile doc/man/Makefile doc/misc/Makefile" 29779 29780 29781 # Unit tests and benchmarks 29782 29783 ac_config_files="$ac_config_files tests/Makefile tests/bench/Makefile tests/isc/Makefile tests/dns/Makefile tests/ns/Makefile tests/isccfg/Makefile tests/libtest/Makefile" 29784 29785 29786 ac_config_files="$ac_config_files tests/unit-test-driver.sh" 29787 29788 29789 # System Tests 29790 29791 ac_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/JQ 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/XMLLINT 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" 29792 29793 29794 ac_config_files="$ac_config_files bin/tests/system/ifconfig.sh" 29795 29796 ac_config_files="$ac_config_files bin/tests/system/start.sh" 29797 29798 ac_config_files="$ac_config_files bin/tests/system/stop.sh" 29799 29800 29801 # Fuzz Tests 29802 29803 ac_config_files="$ac_config_files fuzz/Makefile" 29804 29805 29806 # Misc 29807 29808 ac_config_files="$ac_config_files util/check-make-install.sh" 29809 29810 29811 # 29812 # Do it 29813 # 29814 29815 cat >confcache <<\_ACEOF 29816 # This file is a shell script that caches the results of configure 29817 # tests run on this system so they can be shared between configure 29818 # scripts and configure runs, see configure's option --config-cache. 29819 # It is not useful on other systems. If it contains results you don't 29820 # want to keep, you may remove or edit it. 29821 # 29822 # config.status only pays attention to the cache file if you give it 29823 # the --recheck option to rerun configure. 29824 # 29825 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 29826 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 29827 # following values. 29828 29829 _ACEOF 29830 29831 # The following way of writing the cache mishandles newlines in values, 29832 # but we know of no workaround that is simple, portable, and efficient. 29833 # So, we kill variables containing newlines. 29834 # Ultrix sh set writes to stderr and can't be redirected directly, 29835 # and sets the high bit in the cache file unless we assign to the vars. 29836 ( 29837 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 29838 eval ac_val=\$$ac_var 29839 case $ac_val in #( 29840 *${as_nl}*) 29841 case $ac_var in #( 29842 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 29843 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 29844 esac 29845 case $ac_var in #( 29846 _ | IFS | as_nl) ;; #( 29847 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 29848 *) { eval $ac_var=; unset $ac_var;} ;; 29849 esac ;; 29850 esac 29851 done 29852 29853 (set) 2>&1 | 29854 case $as_nl`(ac_space=' '; set) 2>&1` in #( 29855 *${as_nl}ac_space=\ *) 29856 # 'set' does not quote correctly, so add quotes: double-quote 29857 # substitution turns \\\\ into \\, and sed turns \\ into \. 29858 sed -n \ 29859 "s/'/'\\\\''/g; 29860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 29861 ;; #( 29862 *) 29863 # 'set' quotes correctly as required by POSIX, so do not add quotes. 29864 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 29865 ;; 29866 esac | 29867 sort 29868 ) | 29869 sed ' 29870 /^ac_cv_env_/b end 29871 t clear 29872 :clear 29873 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 29874 t end 29875 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 29876 :end' >>confcache 29877 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 29878 if test -w "$cache_file"; then 29879 if test "x$cache_file" != "x/dev/null"; then 29880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 29881 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 29882 if test ! -f "$cache_file" || test -h "$cache_file"; then 29883 cat confcache >"$cache_file" 29884 else 29885 case $cache_file in #( 29886 */* | ?:*) 29887 mv -f confcache "$cache_file"$$ && 29888 mv -f "$cache_file"$$ "$cache_file" ;; #( 29889 *) 29890 mv -f confcache "$cache_file" ;; 29891 esac 29892 fi 29893 fi 29894 else 29895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 29896 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 29897 fi 29898 fi 29899 rm -f confcache 29900 29901 test "x$prefix" = xNONE && prefix=$ac_default_prefix 29902 # Let make expand exec_prefix. 29903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 29904 29905 DEFS=-DHAVE_CONFIG_H 29906 29907 ac_libobjs= 29908 ac_ltlibobjs= 29909 U= 29910 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 29911 # 1. Remove the extension, and $U if already installed. 29912 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 29913 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 29914 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 29915 # will be set to the directory where LIBOBJS objects are built. 29916 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 29917 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 29918 done 29919 LIBOBJS=$ac_libobjs 29920 29921 LTLIBOBJS=$ac_ltlibobjs 29922 29923 29924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 29925 printf %s "checking that generated files are newer than configure... " >&6; } 29926 if test -n "$am_sleep_pid"; then 29927 # Hide warnings about reused PIDs. 29928 wait $am_sleep_pid 2>/dev/null 29929 fi 29930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 29931 printf "%s\n" "done" >&6; } 29932 case $enable_silent_rules in # ((( 29933 yes) AM_DEFAULT_VERBOSITY=0;; 29934 no) AM_DEFAULT_VERBOSITY=1;; 29935 esac 29936 if test $am_cv_make_support_nested_variables = yes; then 29937 AM_V='$(V)' 29938 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 29939 else 29940 AM_V=$AM_DEFAULT_VERBOSITY 29941 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 29942 fi 29943 29944 if test -n "$EXEEXT"; then 29945 am__EXEEXT_TRUE= 29946 am__EXEEXT_FALSE='#' 29947 else 29948 am__EXEEXT_TRUE='#' 29949 am__EXEEXT_FALSE= 29950 fi 29951 29952 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 29953 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 29954 Usually this means the macro was only invoked conditionally." "$LINENO" 5 29955 fi 29956 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 29957 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 29958 Usually this means the macro was only invoked conditionally." "$LINENO" 5 29959 fi 29960 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 29961 as_fn_error $? "conditional \"AMDEP\" was never defined. 29962 Usually this means the macro was only invoked conditionally." "$LINENO" 5 29963 fi 29964 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 29965 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 29966 Usually this means the macro was only invoked conditionally." "$LINENO" 5 29967 fi 29968 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 29969 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 29970 Usually this means the macro was only invoked conditionally." "$LINENO" 5 29971 fi 29972 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 29973 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 29974 Usually this means the macro was only invoked conditionally." "$LINENO" 5 29975 fi 29976 29977 # Check whether --enable-year2038 was given. 29978 if test ${enable_year2038+y} 29979 then : 29980 enableval=$enable_year2038; 29981 fi 29982 29983 if test -z "${HOST_MACOS_TRUE}" && test -z "${HOST_MACOS_FALSE}"; then 29984 as_fn_error $? "conditional \"HOST_MACOS\" was never defined. 29985 Usually this means the macro was only invoked conditionally." "$LINENO" 5 29986 fi 29987 if test -z "${HAVE_FUZZ_LOG_COMPILER_TRUE}" && test -z "${HAVE_FUZZ_LOG_COMPILER_FALSE}"; then 29988 as_fn_error $? "conditional \"HAVE_FUZZ_LOG_COMPILER\" was never defined. 29989 Usually this means the macro was only invoked conditionally." "$LINENO" 5 29990 fi 29991 if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 29992 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 29993 Usually this means the macro was only invoked conditionally." "$LINENO" 5 29994 fi 29995 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then 29996 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. 29997 Usually this means the macro was only invoked conditionally." "$LINENO" 5 29998 fi 29999 if test -z "${HAVE_PYTEST_TRUE}" && test -z "${HAVE_PYTEST_FALSE}"; then 30000 as_fn_error $? "conditional \"HAVE_PYTEST\" was never defined. 30001 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30002 fi 30003 if test -z "${HAVE_GEOIP2_TRUE}" && test -z "${HAVE_GEOIP2_FALSE}"; then 30004 as_fn_error $? "conditional \"HAVE_GEOIP2\" was never defined. 30005 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30006 fi 30007 if test -z "${HAVE_LIBNGHTTP2_TRUE}" && test -z "${HAVE_LIBNGHTTP2_FALSE}"; then 30008 as_fn_error $? "conditional \"HAVE_LIBNGHTTP2\" was never defined. 30009 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30010 fi 30011 if test -z "${USE_ISC_RWLOCK_TRUE}" && test -z "${USE_ISC_RWLOCK_FALSE}"; then 30012 as_fn_error $? "conditional \"USE_ISC_RWLOCK\" was never defined. 30013 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30014 fi 30015 if test -z "${HAVE_GSSAPI_TRUE}" && test -z "${HAVE_GSSAPI_FALSE}"; then 30016 as_fn_error $? "conditional \"HAVE_GSSAPI\" was never defined. 30017 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30018 fi 30019 if test -z "${HAVE_LMDB_TRUE}" && test -z "${HAVE_LMDB_FALSE}"; then 30020 as_fn_error $? "conditional \"HAVE_LMDB\" was never defined. 30021 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30022 fi 30023 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then 30024 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined. 30025 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30026 fi 30027 if test -z "${HAVE_JSON_C_TRUE}" && test -z "${HAVE_JSON_C_FALSE}"; then 30028 as_fn_error $? "conditional \"HAVE_JSON_C\" was never defined. 30029 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30030 fi 30031 if test -z "${HAVE_READLINE_TRUE}" && test -z "${HAVE_READLINE_FALSE}"; then 30032 as_fn_error $? "conditional \"HAVE_READLINE\" was never defined. 30033 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30034 fi 30035 if test -z "${HAVE_DNSTAP_TRUE}" && test -z "${HAVE_DNSTAP_FALSE}"; then 30036 as_fn_error $? "conditional \"HAVE_DNSTAP\" was never defined. 30037 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30038 fi 30039 if test -z "${HAVE_SPHINX_BUILD_TRUE}" && test -z "${HAVE_SPHINX_BUILD_FALSE}"; then 30040 as_fn_error $? "conditional \"HAVE_SPHINX_BUILD\" was never defined. 30041 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30042 fi 30043 if test -z "${BUILD_MANPAGES_TRUE}" && test -z "${BUILD_MANPAGES_FALSE}"; then 30044 as_fn_error $? "conditional \"BUILD_MANPAGES\" was never defined. 30045 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30046 fi 30047 if test -z "${HAVE_CMOCKA_TRUE}" && test -z "${HAVE_CMOCKA_FALSE}"; then 30048 as_fn_error $? "conditional \"HAVE_CMOCKA\" was never defined. 30049 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30050 fi 30051 if test -z "${HAVE_JEMALLOC_TRUE}" && test -z "${HAVE_JEMALLOC_FALSE}"; then 30052 as_fn_error $? "conditional \"HAVE_JEMALLOC\" was never defined. 30053 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30054 fi 30055 if test -z "${DNSRPS_TRUE}" && test -z "${DNSRPS_FALSE}"; then 30056 as_fn_error $? "conditional \"DNSRPS\" was never defined. 30057 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30058 fi 30059 if test -z "${HAVE_SYSTEMTAP_TRUE}" && test -z "${HAVE_SYSTEMTAP_FALSE}"; then 30060 as_fn_error $? "conditional \"HAVE_SYSTEMTAP\" was never defined. 30061 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30062 fi 30063 if test -z "${HAVE_DTRACE_TRUE}" && test -z "${HAVE_DTRACE_FALSE}"; then 30064 as_fn_error $? "conditional \"HAVE_DTRACE\" was never defined. 30065 Usually this means the macro was only invoked conditionally." "$LINENO" 5 30066 fi 30067 30068 : "${CONFIG_STATUS=./config.status}" 30069 ac_write_fail=0 30070 ac_clean_files_save=$ac_clean_files 30071 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 30072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 30073 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 30074 as_write_fail=0 30075 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 30076 #! $SHELL 30077 # Generated by $as_me. 30078 # Run this file to recreate the current configuration. 30079 # Compiler output produced by configure, useful for debugging 30080 # configure, is in config.log if it exists. 30081 30082 debug=false 30083 ac_cs_recheck=false 30084 ac_cs_silent=false 30085 30086 SHELL=\${CONFIG_SHELL-$SHELL} 30087 export SHELL 30088 _ASEOF 30089 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 30090 ## -------------------- ## 30091 ## M4sh Initialization. ## 30092 ## -------------------- ## 30093 30094 # Be more Bourne compatible 30095 DUALCASE=1; export DUALCASE # for MKS sh 30096 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 30097 then : 30098 emulate sh 30099 NULLCMD=: 30100 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 30101 # is contrary to our usage. Disable this feature. 30102 alias -g '${1+"$@"}'='"$@"' 30103 setopt NO_GLOB_SUBST 30104 else case e in #( 30105 e) case `(set -o) 2>/dev/null` in #( 30106 *posix*) : 30107 set -o posix ;; #( 30108 *) : 30109 ;; 30110 esac ;; 30111 esac 30112 fi 30113 30114 30115 30116 # Reset variables that may have inherited troublesome values from 30117 # the environment. 30118 30119 # IFS needs to be set, to space, tab, and newline, in precisely that order. 30120 # (If _AS_PATH_WALK were called with IFS unset, it would have the 30121 # side effect of setting IFS to empty, thus disabling word splitting.) 30122 # Quoting is to prevent editors from complaining about space-tab. 30123 as_nl=' 30124 ' 30125 export as_nl 30126 IFS=" "" $as_nl" 30127 30128 PS1='$ ' 30129 PS2='> ' 30130 PS4='+ ' 30131 30132 # Ensure predictable behavior from utilities with locale-dependent output. 30133 LC_ALL=C 30134 export LC_ALL 30135 LANGUAGE=C 30136 export LANGUAGE 30137 30138 # We cannot yet rely on "unset" to work, but we need these variables 30139 # to be unset--not just set to an empty or harmless value--now, to 30140 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 30141 # also avoids known problems related to "unset" and subshell syntax 30142 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 30143 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 30144 do eval test \${$as_var+y} \ 30145 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 30146 done 30147 30148 # Ensure that fds 0, 1, and 2 are open. 30149 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 30150 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 30151 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 30152 30153 # The user is always right. 30154 if ${PATH_SEPARATOR+false} :; then 30155 PATH_SEPARATOR=: 30156 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 30157 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 30158 PATH_SEPARATOR=';' 30159 } 30160 fi 30161 30162 30163 # Find who we are. Look in the path if we contain no directory separator. 30164 as_myself= 30165 case $0 in #(( 30166 *[\\/]* ) as_myself=$0 ;; 30167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30168 for as_dir in $PATH 30169 do 30170 IFS=$as_save_IFS 30171 case $as_dir in #((( 30172 '') as_dir=./ ;; 30173 */) ;; 30174 *) as_dir=$as_dir/ ;; 30175 esac 30176 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 30177 done 30178 IFS=$as_save_IFS 30179 30180 ;; 30181 esac 30182 # We did not find ourselves, most probably we were run as 'sh COMMAND' 30183 # in which case we are not to be found in the path. 30184 if test "x$as_myself" = x; then 30185 as_myself=$0 30186 fi 30187 if test ! -f "$as_myself"; then 30188 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 30189 exit 1 30190 fi 30191 30192 30193 30194 # as_fn_error STATUS ERROR [LINENO LOG_FD] 30195 # ---------------------------------------- 30196 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 30197 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 30198 # script with STATUS, using 1 if that was 0. 30199 as_fn_error () 30200 { 30201 as_status=$1; test $as_status -eq 0 && as_status=1 30202 if test "$4"; then 30203 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 30204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 30205 fi 30206 printf "%s\n" "$as_me: error: $2" >&2 30207 as_fn_exit $as_status 30208 } # as_fn_error 30209 30210 30211 # as_fn_set_status STATUS 30212 # ----------------------- 30213 # Set $? to STATUS, without forking. 30214 as_fn_set_status () 30215 { 30216 return $1 30217 } # as_fn_set_status 30218 30219 # as_fn_exit STATUS 30220 # ----------------- 30221 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 30222 as_fn_exit () 30223 { 30224 set +e 30225 as_fn_set_status $1 30226 exit $1 30227 } # as_fn_exit 30228 30229 # as_fn_unset VAR 30230 # --------------- 30231 # Portably unset VAR. 30232 as_fn_unset () 30233 { 30234 { eval $1=; unset $1;} 30235 } 30236 as_unset=as_fn_unset 30237 30238 # as_fn_append VAR VALUE 30239 # ---------------------- 30240 # Append the text in VALUE to the end of the definition contained in VAR. Take 30241 # advantage of any shell optimizations that allow amortized linear growth over 30242 # repeated appends, instead of the typical quadratic growth present in naive 30243 # implementations. 30244 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 30245 then : 30246 eval 'as_fn_append () 30247 { 30248 eval $1+=\$2 30249 }' 30250 else case e in #( 30251 e) as_fn_append () 30252 { 30253 eval $1=\$$1\$2 30254 } ;; 30255 esac 30256 fi # as_fn_append 30257 30258 # as_fn_arith ARG... 30259 # ------------------ 30260 # Perform arithmetic evaluation on the ARGs, and store the result in the 30261 # global $as_val. Take advantage of shells that can avoid forks. The arguments 30262 # must be portable across $(()) and expr. 30263 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 30264 then : 30265 eval 'as_fn_arith () 30266 { 30267 as_val=$(( $* )) 30268 }' 30269 else case e in #( 30270 e) as_fn_arith () 30271 { 30272 as_val=`expr "$@" || test $? -eq 1` 30273 } ;; 30274 esac 30275 fi # as_fn_arith 30276 30277 30278 if expr a : '\(a\)' >/dev/null 2>&1 && 30279 test "X`expr 00001 : '.*\(...\)'`" = X001; then 30280 as_expr=expr 30281 else 30282 as_expr=false 30283 fi 30284 30285 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 30286 as_basename=basename 30287 else 30288 as_basename=false 30289 fi 30290 30291 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 30292 as_dirname=dirname 30293 else 30294 as_dirname=false 30295 fi 30296 30297 as_me=`$as_basename -- "$0" || 30298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 30299 X"$0" : 'X\(//\)$' \| \ 30300 X"$0" : 'X\(/\)' \| . 2>/dev/null || 30301 printf "%s\n" X/"$0" | 30302 sed '/^.*\/\([^/][^/]*\)\/*$/{ 30303 s//\1/ 30304 q 30305 } 30306 /^X\/\(\/\/\)$/{ 30307 s//\1/ 30308 q 30309 } 30310 /^X\/\(\/\).*/{ 30311 s//\1/ 30312 q 30313 } 30314 s/.*/./; q'` 30315 30316 # Avoid depending upon Character Ranges. 30317 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 30318 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 30319 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 30320 as_cr_digits='0123456789' 30321 as_cr_alnum=$as_cr_Letters$as_cr_digits 30322 30323 30324 # Determine whether it's possible to make 'echo' print without a newline. 30325 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 30326 # for compatibility with existing Makefiles. 30327 ECHO_C= ECHO_N= ECHO_T= 30328 case `echo -n x` in #((((( 30329 -n*) 30330 case `echo 'xy\c'` in 30331 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 30332 xy) ECHO_C='\c';; 30333 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 30334 ECHO_T=' ';; 30335 esac;; 30336 *) 30337 ECHO_N='-n';; 30338 esac 30339 30340 # For backward compatibility with old third-party macros, we provide 30341 # the shell variables $as_echo and $as_echo_n. New code should use 30342 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 30343 as_echo='printf %s\n' 30344 as_echo_n='printf %s' 30345 30346 rm -f conf$$ conf$$.exe conf$$.file 30347 if test -d conf$$.dir; then 30348 rm -f conf$$.dir/conf$$.file 30349 else 30350 rm -f conf$$.dir 30351 mkdir conf$$.dir 2>/dev/null 30352 fi 30353 if (echo >conf$$.file) 2>/dev/null; then 30354 if ln -s conf$$.file conf$$ 2>/dev/null; then 30355 as_ln_s='ln -s' 30356 # ... but there are two gotchas: 30357 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 30358 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 30359 # In both cases, we have to default to 'cp -pR'. 30360 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 30361 as_ln_s='cp -pR' 30362 elif ln conf$$.file conf$$ 2>/dev/null; then 30363 as_ln_s=ln 30364 else 30365 as_ln_s='cp -pR' 30366 fi 30367 else 30368 as_ln_s='cp -pR' 30369 fi 30370 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 30371 rmdir conf$$.dir 2>/dev/null 30372 30373 30374 # as_fn_mkdir_p 30375 # ------------- 30376 # Create "$as_dir" as a directory, including parents if necessary. 30377 as_fn_mkdir_p () 30378 { 30379 30380 case $as_dir in #( 30381 -*) as_dir=./$as_dir;; 30382 esac 30383 test -d "$as_dir" || eval $as_mkdir_p || { 30384 as_dirs= 30385 while :; do 30386 case $as_dir in #( 30387 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 30388 *) as_qdir=$as_dir;; 30389 esac 30390 as_dirs="'$as_qdir' $as_dirs" 30391 as_dir=`$as_dirname -- "$as_dir" || 30392 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30393 X"$as_dir" : 'X\(//\)[^/]' \| \ 30394 X"$as_dir" : 'X\(//\)$' \| \ 30395 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 30396 printf "%s\n" X"$as_dir" | 30397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30398 s//\1/ 30399 q 30400 } 30401 /^X\(\/\/\)[^/].*/{ 30402 s//\1/ 30403 q 30404 } 30405 /^X\(\/\/\)$/{ 30406 s//\1/ 30407 q 30408 } 30409 /^X\(\/\).*/{ 30410 s//\1/ 30411 q 30412 } 30413 s/.*/./; q'` 30414 test -d "$as_dir" && break 30415 done 30416 test -z "$as_dirs" || eval "mkdir $as_dirs" 30417 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 30418 30419 30420 } # as_fn_mkdir_p 30421 if mkdir -p . 2>/dev/null; then 30422 as_mkdir_p='mkdir -p "$as_dir"' 30423 else 30424 test -d ./-p && rmdir ./-p 30425 as_mkdir_p=false 30426 fi 30427 30428 30429 # as_fn_executable_p FILE 30430 # ----------------------- 30431 # Test if FILE is an executable regular file. 30432 as_fn_executable_p () 30433 { 30434 test -f "$1" && test -x "$1" 30435 } # as_fn_executable_p 30436 as_test_x='test -x' 30437 as_executable_p=as_fn_executable_p 30438 30439 # Sed expression to map a string onto a valid CPP name. 30440 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 30441 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 30442 30443 # Sed expression to map a string onto a valid variable name. 30444 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 30445 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 30446 30447 30448 exec 6>&1 30449 ## ----------------------------------- ## 30450 ## Main body of $CONFIG_STATUS script. ## 30451 ## ----------------------------------- ## 30452 _ASEOF 30453 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 30454 30455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30456 # Save the log message, to keep $0 and so on meaningful, and to 30457 # report actual input values of CONFIG_FILES etc. instead of their 30458 # values after options handling. 30459 ac_log=" 30460 This file was extended by BIND $as_me 9.20.24, which was 30461 generated by GNU Autoconf 2.72. Invocation command line was 30462 30463 CONFIG_FILES = $CONFIG_FILES 30464 CONFIG_HEADERS = $CONFIG_HEADERS 30465 CONFIG_LINKS = $CONFIG_LINKS 30466 CONFIG_COMMANDS = $CONFIG_COMMANDS 30467 $ $0 $@ 30468 30469 on `(hostname || uname -n) 2>/dev/null | sed 1q` 30470 " 30471 30472 _ACEOF 30473 30474 case $ac_config_files in *" 30475 "*) set x $ac_config_files; shift; ac_config_files=$*;; 30476 esac 30477 30478 case $ac_config_headers in *" 30479 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 30480 esac 30481 30482 30483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30484 # Files that config.status was made for. 30485 config_files="$ac_config_files" 30486 config_headers="$ac_config_headers" 30487 config_commands="$ac_config_commands" 30488 30489 _ACEOF 30490 30491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30492 ac_cs_usage="\ 30493 '$as_me' instantiates files and other configuration actions 30494 from templates according to the current configuration. Unless the files 30495 and actions are specified as TAGs, all are instantiated by default. 30496 30497 Usage: $0 [OPTION]... [TAG]... 30498 30499 -h, --help print this help, then exit 30500 -V, --version print version number and configuration settings, then exit 30501 --config print configuration, then exit 30502 -q, --quiet, --silent 30503 do not print progress messages 30504 -d, --debug don't remove temporary files 30505 --recheck update $as_me by reconfiguring in the same conditions 30506 --file=FILE[:TEMPLATE] 30507 instantiate the configuration file FILE 30508 --header=FILE[:TEMPLATE] 30509 instantiate the configuration header FILE 30510 30511 Configuration files: 30512 $config_files 30513 30514 Configuration headers: 30515 $config_headers 30516 30517 Configuration commands: 30518 $config_commands 30519 30520 Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>. 30521 BIND home page: <https://www.isc.org/downloads/>." 30522 30523 _ACEOF 30524 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 30525 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 30526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30527 ac_cs_config='$ac_cs_config_escaped' 30528 ac_cs_version="\\ 30529 BIND config.status 9.20.24 30530 configured by $0, generated by GNU Autoconf 2.72, 30531 with options \\"\$ac_cs_config\\" 30532 30533 Copyright (C) 2023 Free Software Foundation, Inc. 30534 This config.status script is free software; the Free Software Foundation 30535 gives unlimited permission to copy, distribute and modify it." 30536 30537 ac_pwd='$ac_pwd' 30538 srcdir='$srcdir' 30539 INSTALL='$INSTALL' 30540 MKDIR_P='$MKDIR_P' 30541 AWK='$AWK' 30542 test -n "\$AWK" || AWK=awk 30543 _ACEOF 30544 30545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30546 # The default lists apply if the user does not specify any file. 30547 ac_need_defaults=: 30548 while test $# != 0 30549 do 30550 case $1 in 30551 --*=?*) 30552 ac_option=`expr "X$1" : 'X\([^=]*\)='` 30553 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 30554 ac_shift=: 30555 ;; 30556 --*=) 30557 ac_option=`expr "X$1" : 'X\([^=]*\)='` 30558 ac_optarg= 30559 ac_shift=: 30560 ;; 30561 *) 30562 ac_option=$1 30563 ac_optarg=$2 30564 ac_shift=shift 30565 ;; 30566 esac 30567 30568 case $ac_option in 30569 # Handling of the options. 30570 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 30571 ac_cs_recheck=: ;; 30572 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 30573 printf "%s\n" "$ac_cs_version"; exit ;; 30574 --config | --confi | --conf | --con | --co | --c ) 30575 printf "%s\n" "$ac_cs_config"; exit ;; 30576 --debug | --debu | --deb | --de | --d | -d ) 30577 debug=: ;; 30578 --file | --fil | --fi | --f ) 30579 $ac_shift 30580 case $ac_optarg in 30581 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30582 '') as_fn_error $? "missing file argument" ;; 30583 esac 30584 as_fn_append CONFIG_FILES " '$ac_optarg'" 30585 ac_need_defaults=false;; 30586 --header | --heade | --head | --hea ) 30587 $ac_shift 30588 case $ac_optarg in 30589 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30590 esac 30591 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 30592 ac_need_defaults=false;; 30593 --he | --h) 30594 # Conflict between --help and --header 30595 as_fn_error $? "ambiguous option: '$1' 30596 Try '$0 --help' for more information.";; 30597 --help | --hel | -h ) 30598 printf "%s\n" "$ac_cs_usage"; exit ;; 30599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 30600 | -silent | --silent | --silen | --sile | --sil | --si | --s) 30601 ac_cs_silent=: ;; 30602 30603 # This is an error. 30604 -*) as_fn_error $? "unrecognized option: '$1' 30605 Try '$0 --help' for more information." ;; 30606 30607 *) as_fn_append ac_config_targets " $1" 30608 ac_need_defaults=false ;; 30609 30610 esac 30611 shift 30612 done 30613 30614 ac_configure_extra_args= 30615 30616 if $ac_cs_silent; then 30617 exec 6>/dev/null 30618 ac_configure_extra_args="$ac_configure_extra_args --silent" 30619 fi 30620 30621 _ACEOF 30622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30623 if \$ac_cs_recheck; then 30624 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 30625 shift 30626 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 30627 CONFIG_SHELL='$SHELL' 30628 export CONFIG_SHELL 30629 exec "\$@" 30630 fi 30631 30632 _ACEOF 30633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30634 exec 5>>config.log 30635 { 30636 echo 30637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 30638 ## Running $as_me. ## 30639 _ASBOX 30640 printf "%s\n" "$ac_log" 30641 } >&5 30642 30643 _ACEOF 30644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30645 # 30646 # INIT-COMMANDS 30647 # 30648 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 30649 30650 30651 # The HP-UX ksh and POSIX shell print the target directory to stdout 30652 # if CDPATH is set. 30653 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 30654 30655 sed_quote_subst='$sed_quote_subst' 30656 double_quote_subst='$double_quote_subst' 30657 delay_variable_subst='$delay_variable_subst' 30658 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 30659 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 30660 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 30661 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 30662 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 30663 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 30664 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 30665 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 30666 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 30667 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 30668 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 30669 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 30670 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 30671 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 30672 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 30673 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 30674 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 30675 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 30676 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 30677 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 30678 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 30679 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 30680 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 30681 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 30682 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 30683 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 30684 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 30685 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 30686 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 30687 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 30688 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 30689 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 30690 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 30691 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 30692 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 30693 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 30694 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 30695 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 30696 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 30697 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 30698 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 30699 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 30700 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 30701 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 30702 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 30703 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 30704 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 30705 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 30706 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 30707 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 30708 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 30709 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 30710 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 30711 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 30712 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 30713 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 30714 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 30715 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 30716 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 30717 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 30718 lt_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"`' 30719 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 30720 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 30721 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 30722 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 30723 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 30724 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 30725 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 30726 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 30727 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 30728 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 30729 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 30730 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 30731 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 30732 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 30733 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 30734 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 30735 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 30736 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 30737 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 30738 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 30739 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 30740 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 30741 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 30742 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 30743 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 30744 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 30745 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 30746 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 30747 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 30748 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 30749 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 30750 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 30751 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 30752 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 30753 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 30754 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 30755 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 30756 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 30757 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 30758 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 30759 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 30760 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 30761 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 30762 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 30763 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 30764 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 30765 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 30766 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 30767 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 30768 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 30769 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 30770 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 30771 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 30772 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 30773 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 30774 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 30775 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 30776 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 30777 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 30778 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 30779 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 30780 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 30781 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 30782 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 30783 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 30784 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 30785 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 30786 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 30787 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 30788 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 30789 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 30790 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 30791 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 30792 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 30793 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 30794 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 30795 30796 LTCC='$LTCC' 30797 LTCFLAGS='$LTCFLAGS' 30798 compiler='$compiler_DEFAULT' 30799 30800 # A function that is used when there is no print builtin or printf. 30801 func_fallback_echo () 30802 { 30803 eval 'cat <<_LTECHO_EOF 30804 \$1 30805 _LTECHO_EOF' 30806 } 30807 30808 # Quote evaled strings. 30809 for var in SHELL \ 30810 ECHO \ 30811 PATH_SEPARATOR \ 30812 SED \ 30813 GREP \ 30814 EGREP \ 30815 FGREP \ 30816 LD \ 30817 NM \ 30818 LN_S \ 30819 lt_SP2NL \ 30820 lt_NL2SP \ 30821 reload_flag \ 30822 FILECMD \ 30823 OBJDUMP \ 30824 deplibs_check_method \ 30825 file_magic_cmd \ 30826 file_magic_glob \ 30827 want_nocaseglob \ 30828 DLLTOOL \ 30829 sharedlib_from_linklib_cmd \ 30830 AR \ 30831 archiver_list_spec \ 30832 STRIP \ 30833 RANLIB \ 30834 CC \ 30835 CFLAGS \ 30836 compiler \ 30837 lt_cv_sys_global_symbol_pipe \ 30838 lt_cv_sys_global_symbol_to_cdecl \ 30839 lt_cv_sys_global_symbol_to_import \ 30840 lt_cv_sys_global_symbol_to_c_name_address \ 30841 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 30842 lt_cv_nm_interface \ 30843 nm_file_list_spec \ 30844 lt_cv_truncate_bin \ 30845 lt_prog_compiler_no_builtin_flag \ 30846 lt_prog_compiler_pic \ 30847 lt_prog_compiler_wl \ 30848 lt_prog_compiler_static \ 30849 lt_cv_prog_compiler_c_o \ 30850 need_locks \ 30851 MANIFEST_TOOL \ 30852 DSYMUTIL \ 30853 NMEDIT \ 30854 LIPO \ 30855 OTOOL \ 30856 OTOOL64 \ 30857 shrext_cmds \ 30858 export_dynamic_flag_spec \ 30859 whole_archive_flag_spec \ 30860 compiler_needs_object \ 30861 with_gnu_ld \ 30862 allow_undefined_flag \ 30863 no_undefined_flag \ 30864 hardcode_libdir_flag_spec \ 30865 hardcode_libdir_separator \ 30866 exclude_expsyms \ 30867 include_expsyms \ 30868 file_list_spec \ 30869 variables_saved_for_relink \ 30870 libname_spec \ 30871 library_names_spec \ 30872 soname_spec \ 30873 install_override_mode \ 30874 finish_eval \ 30875 old_striplib \ 30876 striplib; do 30877 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 30878 *[\\\\\\\`\\"\\\$]*) 30879 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 30880 ;; 30881 *) 30882 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 30883 ;; 30884 esac 30885 done 30886 30887 # Double-quote double-evaled strings. 30888 for var in reload_cmds \ 30889 old_postinstall_cmds \ 30890 old_postuninstall_cmds \ 30891 old_archive_cmds \ 30892 extract_expsyms_cmds \ 30893 old_archive_from_new_cmds \ 30894 old_archive_from_expsyms_cmds \ 30895 archive_cmds \ 30896 archive_expsym_cmds \ 30897 module_cmds \ 30898 module_expsym_cmds \ 30899 export_symbols_cmds \ 30900 prelink_cmds \ 30901 postlink_cmds \ 30902 postinstall_cmds \ 30903 postuninstall_cmds \ 30904 finish_cmds \ 30905 sys_lib_search_path_spec \ 30906 configure_time_dlsearch_path \ 30907 configure_time_lt_sys_library_path; do 30908 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 30909 *[\\\\\\\`\\"\\\$]*) 30910 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 30911 ;; 30912 *) 30913 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 30914 ;; 30915 esac 30916 done 30917 30918 ac_aux_dir='$ac_aux_dir' 30919 30920 # See if we are running on zsh, and set the options that allow our 30921 # commands through without removal of \ escapes INIT. 30922 if test -n "\${ZSH_VERSION+set}"; then 30923 setopt NO_GLOB_SUBST 30924 fi 30925 30926 30927 PACKAGE='$PACKAGE' 30928 VERSION='$VERSION' 30929 RM='$RM' 30930 ofile='$ofile' 30931 30932 30933 30934 30935 _ACEOF 30936 30937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30938 30939 # Handling of arguments. 30940 for ac_config_target in $ac_config_targets 30941 do 30942 case $ac_config_target in 30943 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 30944 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 30945 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 30946 "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;; 30947 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 30948 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; 30949 "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;; 30950 "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;; 30951 "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;; 30952 "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;; 30953 "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;; 30954 "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;; 30955 "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;; 30956 "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;; 30957 "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;; 30958 "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;; 30959 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 30960 "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;; 30961 "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;; 30962 "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;; 30963 "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;; 30964 "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;; 30965 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 30966 "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;; 30967 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; 30968 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;; 30969 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 30970 "tests/bench/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bench/Makefile" ;; 30971 "tests/isc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/isc/Makefile" ;; 30972 "tests/dns/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dns/Makefile" ;; 30973 "tests/ns/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ns/Makefile" ;; 30974 "tests/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/isccfg/Makefile" ;; 30975 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;; 30976 "tests/unit-test-driver.sh") CONFIG_FILES="$CONFIG_FILES tests/unit-test-driver.sh" ;; 30977 "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;; 30978 "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;; 30979 "bin/tests/system/isctest/vars/.ac_vars/TOP_BUILDDIR") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/TOP_BUILDDIR" ;; 30980 "bin/tests/system/isctest/vars/.ac_vars/TOP_SRCDIR") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/TOP_SRCDIR" ;; 30981 "bin/tests/system/isctest/vars/.ac_vars/FSTRM_CAPTURE") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/FSTRM_CAPTURE" ;; 30982 "bin/tests/system/isctest/vars/.ac_vars/JQ") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/JQ" ;; 30983 "bin/tests/system/isctest/vars/.ac_vars/SHELL") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/SHELL" ;; 30984 "bin/tests/system/isctest/vars/.ac_vars/PYTHON") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/PYTHON" ;; 30985 "bin/tests/system/isctest/vars/.ac_vars/PERL") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/PERL" ;; 30986 "bin/tests/system/isctest/vars/.ac_vars/CURL") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/CURL" ;; 30987 "bin/tests/system/isctest/vars/.ac_vars/NC") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/NC" ;; 30988 "bin/tests/system/isctest/vars/.ac_vars/XMLLINT") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/XMLLINT" ;; 30989 "bin/tests/system/isctest/vars/.ac_vars/XSLTPROC") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/XSLTPROC" ;; 30990 "bin/tests/system/isctest/vars/.ac_vars/PYTEST") CONFIG_FILES="$CONFIG_FILES bin/tests/system/isctest/vars/.ac_vars/PYTEST" ;; 30991 "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;; 30992 "bin/tests/system/dlzexternal/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/driver/Makefile" ;; 30993 "bin/tests/system/hooks/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/hooks/driver/Makefile" ;; 30994 "bin/tests/system/rpz/testlib/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/testlib/Makefile" ;; 30995 "bin/tests/system/ifconfig.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/ifconfig.sh" ;; 30996 "bin/tests/system/start.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/start.sh" ;; 30997 "bin/tests/system/stop.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/stop.sh" ;; 30998 "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;; 30999 "util/check-make-install.sh") CONFIG_FILES="$CONFIG_FILES util/check-make-install.sh" ;; 31000 31001 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 31002 esac 31003 done 31004 31005 31006 # If the user did not use the arguments to specify the items to instantiate, 31007 # then the envvar interface is used. Set only those that are not. 31008 # We use the long form for the default assignment because of an extremely 31009 # bizarre bug on SunOS 4.1.3. 31010 if $ac_need_defaults; then 31011 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 31012 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 31013 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 31014 fi 31015 31016 # Have a temporary directory for convenience. Make it in the build tree 31017 # simply because there is no reason against having it here, and in addition, 31018 # creating and moving files from /tmp can sometimes cause problems. 31019 # Hook for its removal unless debugging. 31020 # Note that there is a small window in which the directory will not be cleaned: 31021 # after its creation but before its name has been assigned to '$tmp'. 31022 $debug || 31023 { 31024 tmp= ac_tmp= 31025 trap 'exit_status=$? 31026 : "${ac_tmp:=$tmp}" 31027 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 31028 ' 0 31029 trap 'as_fn_exit 1' 1 2 13 15 31030 } 31031 # Create a (secure) tmp directory for tmp files. 31032 31033 { 31034 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 31035 test -d "$tmp" 31036 } || 31037 { 31038 tmp=./conf$$-$RANDOM 31039 (umask 077 && mkdir "$tmp") 31040 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 31041 ac_tmp=$tmp 31042 31043 # Set up the scripts for CONFIG_FILES section. 31044 # No need to generate them if there are no CONFIG_FILES. 31045 # This happens for instance with './config.status config.h'. 31046 if test -n "$CONFIG_FILES"; then 31047 31048 31049 ac_cr=`echo X | tr X '\015'` 31050 # On cygwin, bash can eat \r inside `` if the user requested igncr. 31051 # But we know of no other shell where ac_cr would be empty at this 31052 # point, so we can use a bashism as a fallback. 31053 if test "x$ac_cr" = x; then 31054 eval ac_cr=\$\'\\r\' 31055 fi 31056 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 31057 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 31058 ac_cs_awk_cr='\\r' 31059 else 31060 ac_cs_awk_cr=$ac_cr 31061 fi 31062 31063 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 31064 _ACEOF 31065 31066 31067 { 31068 echo "cat >conf$$subs.awk <<_ACEOF" && 31069 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 31070 echo "_ACEOF" 31071 } >conf$$subs.sh || 31072 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31073 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 31074 ac_delim='%!_!# ' 31075 for ac_last_try in false false false false false :; do 31076 . ./conf$$subs.sh || 31077 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31078 31079 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 31080 if test $ac_delim_n = $ac_delim_num; then 31081 break 31082 elif $ac_last_try; then 31083 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31084 else 31085 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 31086 fi 31087 done 31088 rm -f conf$$subs.sh 31089 31090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31091 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 31092 _ACEOF 31093 sed -n ' 31094 h 31095 s/^/S["/; s/!.*/"]=/ 31096 p 31097 g 31098 s/^[^!]*!// 31099 :repl 31100 t repl 31101 s/'"$ac_delim"'$// 31102 t delim 31103 :nl 31104 h 31105 s/\(.\{148\}\)..*/\1/ 31106 t more1 31107 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 31108 p 31109 n 31110 b repl 31111 :more1 31112 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 31113 p 31114 g 31115 s/.\{148\}// 31116 t nl 31117 :delim 31118 h 31119 s/\(.\{148\}\)..*/\1/ 31120 t more2 31121 s/["\\]/\\&/g; s/^/"/; s/$/"/ 31122 p 31123 b 31124 :more2 31125 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 31126 p 31127 g 31128 s/.\{148\}// 31129 t delim 31130 ' <conf$$subs.awk | sed ' 31131 /^[^""]/{ 31132 N 31133 s/\n// 31134 } 31135 ' >>$CONFIG_STATUS || ac_write_fail=1 31136 rm -f conf$$subs.awk 31137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31138 _ACAWK 31139 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 31140 for (key in S) S_is_set[key] = 1 31141 FS = "" 31142 31143 } 31144 { 31145 line = $ 0 31146 nfields = split(line, field, "@") 31147 substed = 0 31148 len = length(field[1]) 31149 for (i = 2; i < nfields; i++) { 31150 key = field[i] 31151 keylen = length(key) 31152 if (S_is_set[key]) { 31153 value = S[key] 31154 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 31155 len += length(value) + length(field[++i]) 31156 substed = 1 31157 } else 31158 len += 1 + keylen 31159 } 31160 31161 print line 31162 } 31163 31164 _ACAWK 31165 _ACEOF 31166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31167 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 31168 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 31169 else 31170 cat 31171 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 31172 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 31173 _ACEOF 31174 31175 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 31176 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 31177 # trailing colons and then remove the whole line if VPATH becomes empty 31178 # (actually we leave an empty line to preserve line numbers). 31179 if test "x$srcdir" = x.; then 31180 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 31181 h 31182 s/// 31183 s/^/:/ 31184 s/[ ]*$/:/ 31185 s/:\$(srcdir):/:/g 31186 s/:\${srcdir}:/:/g 31187 s/:@srcdir@:/:/g 31188 s/^:*// 31189 s/:*$// 31190 x 31191 s/\(=[ ]*\).*/\1/ 31192 G 31193 s/\n// 31194 s/^[^=]*=[ ]*$// 31195 }' 31196 fi 31197 31198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31199 fi # test -n "$CONFIG_FILES" 31200 31201 # Set up the scripts for CONFIG_HEADERS section. 31202 # No need to generate them if there are no CONFIG_HEADERS. 31203 # This happens for instance with './config.status Makefile'. 31204 if test -n "$CONFIG_HEADERS"; then 31205 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 31206 BEGIN { 31207 _ACEOF 31208 31209 # Transform confdefs.h into an awk script 'defines.awk', embedded as 31210 # here-document in config.status, that substitutes the proper values into 31211 # config.h.in to produce config.h. 31212 31213 # Create a delimiter string that does not exist in confdefs.h, to ease 31214 # handling of long lines. 31215 ac_delim='%!_!# ' 31216 for ac_last_try in false false :; do 31217 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 31218 if test -z "$ac_tt"; then 31219 break 31220 elif $ac_last_try; then 31221 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 31222 else 31223 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 31224 fi 31225 done 31226 31227 # For the awk script, D is an array of macro values keyed by name, 31228 # likewise P contains macro parameters if any. Preserve backslash 31229 # newline sequences. 31230 31231 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 31232 sed -n ' 31233 s/.\{148\}/&'"$ac_delim"'/g 31234 t rset 31235 :rset 31236 s/^[ ]*#[ ]*define[ ][ ]*/ / 31237 t def 31238 d 31239 :def 31240 s/\\$// 31241 t bsnl 31242 s/["\\]/\\&/g 31243 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 31244 D["\1"]=" \3"/p 31245 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 31246 d 31247 :bsnl 31248 s/["\\]/\\&/g 31249 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 31250 D["\1"]=" \3\\\\\\n"\\/p 31251 t cont 31252 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 31253 t cont 31254 d 31255 :cont 31256 n 31257 s/.\{148\}/&'"$ac_delim"'/g 31258 t clear 31259 :clear 31260 s/\\$// 31261 t bsnlc 31262 s/["\\]/\\&/g; s/^/"/; s/$/"/p 31263 d 31264 :bsnlc 31265 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 31266 b cont 31267 ' <confdefs.h | sed ' 31268 s/'"$ac_delim"'/"\\\ 31269 "/g' >>$CONFIG_STATUS || ac_write_fail=1 31270 31271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31272 for (key in D) D_is_set[key] = 1 31273 FS = "" 31274 } 31275 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 31276 line = \$ 0 31277 split(line, arg, " ") 31278 if (arg[1] == "#") { 31279 defundef = arg[2] 31280 mac1 = arg[3] 31281 } else { 31282 defundef = substr(arg[1], 2) 31283 mac1 = arg[2] 31284 } 31285 split(mac1, mac2, "(") #) 31286 macro = mac2[1] 31287 prefix = substr(line, 1, index(line, defundef) - 1) 31288 if (D_is_set[macro]) { 31289 # Preserve the white space surrounding the "#". 31290 print prefix "define", macro P[macro] D[macro] 31291 next 31292 } else { 31293 # Replace #undef with comments. This is necessary, for example, 31294 # in the case of _POSIX_SOURCE, which is predefined and required 31295 # on some systems where configure will not decide to define it. 31296 if (defundef == "undef") { 31297 print "/*", prefix defundef, macro, "*/" 31298 next 31299 } 31300 } 31301 } 31302 { print } 31303 _ACAWK 31304 _ACEOF 31305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31306 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 31307 fi # test -n "$CONFIG_HEADERS" 31308 31309 31310 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 31311 shift 31312 for ac_tag 31313 do 31314 case $ac_tag in 31315 :[FHLC]) ac_mode=$ac_tag; continue;; 31316 esac 31317 case $ac_mode$ac_tag in 31318 :[FHL]*:*);; 31319 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 31320 :[FH]-) ac_tag=-:-;; 31321 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 31322 esac 31323 ac_save_IFS=$IFS 31324 IFS=: 31325 set x $ac_tag 31326 IFS=$ac_save_IFS 31327 shift 31328 ac_file=$1 31329 shift 31330 31331 case $ac_mode in 31332 :L) ac_source=$1;; 31333 :[FH]) 31334 ac_file_inputs= 31335 for ac_f 31336 do 31337 case $ac_f in 31338 -) ac_f="$ac_tmp/stdin";; 31339 *) # Look for the file first in the build tree, then in the source tree 31340 # (if the path is not absolute). The absolute path cannot be DOS-style, 31341 # because $ac_f cannot contain ':'. 31342 test -f "$ac_f" || 31343 case $ac_f in 31344 [\\/$]*) false;; 31345 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 31346 esac || 31347 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 31348 esac 31349 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 31350 as_fn_append ac_file_inputs " '$ac_f'" 31351 done 31352 31353 # Let's still pretend it is 'configure' which instantiates (i.e., don't 31354 # use $as_me), people would be surprised to read: 31355 # /* config.h. Generated by config.status. */ 31356 configure_input='Generated from '` 31357 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 31358 `' by configure.' 31359 if test x"$ac_file" != x-; then 31360 configure_input="$ac_file. $configure_input" 31361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 31362 printf "%s\n" "$as_me: creating $ac_file" >&6;} 31363 fi 31364 # Neutralize special characters interpreted by sed in replacement strings. 31365 case $configure_input in #( 31366 *\&* | *\|* | *\\* ) 31367 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 31368 sed 's/[\\\\&|]/\\\\&/g'`;; #( 31369 *) ac_sed_conf_input=$configure_input;; 31370 esac 31371 31372 case $ac_tag in 31373 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 31374 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 31375 esac 31376 ;; 31377 esac 31378 31379 ac_dir=`$as_dirname -- "$ac_file" || 31380 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31381 X"$ac_file" : 'X\(//\)[^/]' \| \ 31382 X"$ac_file" : 'X\(//\)$' \| \ 31383 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 31384 printf "%s\n" X"$ac_file" | 31385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31386 s//\1/ 31387 q 31388 } 31389 /^X\(\/\/\)[^/].*/{ 31390 s//\1/ 31391 q 31392 } 31393 /^X\(\/\/\)$/{ 31394 s//\1/ 31395 q 31396 } 31397 /^X\(\/\).*/{ 31398 s//\1/ 31399 q 31400 } 31401 s/.*/./; q'` 31402 as_dir="$ac_dir"; as_fn_mkdir_p 31403 ac_builddir=. 31404 31405 case "$ac_dir" in 31406 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 31407 *) 31408 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 31409 # A ".." for each directory in $ac_dir_suffix. 31410 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 31411 case $ac_top_builddir_sub in 31412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 31413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 31414 esac ;; 31415 esac 31416 ac_abs_top_builddir=$ac_pwd 31417 ac_abs_builddir=$ac_pwd$ac_dir_suffix 31418 # for backward compatibility: 31419 ac_top_builddir=$ac_top_build_prefix 31420 31421 case $srcdir in 31422 .) # We are building in place. 31423 ac_srcdir=. 31424 ac_top_srcdir=$ac_top_builddir_sub 31425 ac_abs_top_srcdir=$ac_pwd ;; 31426 [\\/]* | ?:[\\/]* ) # Absolute name. 31427 ac_srcdir=$srcdir$ac_dir_suffix; 31428 ac_top_srcdir=$srcdir 31429 ac_abs_top_srcdir=$srcdir ;; 31430 *) # Relative name. 31431 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 31432 ac_top_srcdir=$ac_top_build_prefix$srcdir 31433 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 31434 esac 31435 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 31436 31437 31438 case $ac_mode in 31439 :F) 31440 # 31441 # CONFIG_FILE 31442 # 31443 31444 case $INSTALL in 31445 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 31446 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 31447 esac 31448 ac_MKDIR_P=$MKDIR_P 31449 case $MKDIR_P in 31450 [\\/$]* | ?:[\\/]* ) ;; 31451 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 31452 esac 31453 _ACEOF 31454 31455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31456 # If the template does not know about datarootdir, expand it. 31457 # FIXME: This hack should be removed a few years after 2.60. 31458 ac_datarootdir_hack=; ac_datarootdir_seen= 31459 ac_sed_dataroot=' 31460 /datarootdir/ { 31461 p 31462 q 31463 } 31464 /@datadir@/p 31465 /@docdir@/p 31466 /@infodir@/p 31467 /@localedir@/p 31468 /@mandir@/p' 31469 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 31470 *datarootdir*) ac_datarootdir_seen=yes;; 31471 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 31472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 31473 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 31474 _ACEOF 31475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31476 ac_datarootdir_hack=' 31477 s&@datadir@&$datadir&g 31478 s&@docdir@&$docdir&g 31479 s&@infodir@&$infodir&g 31480 s&@localedir@&$localedir&g 31481 s&@mandir@&$mandir&g 31482 s&\\\${datarootdir}&$datarootdir&g' ;; 31483 esac 31484 _ACEOF 31485 31486 # Neutralize VPATH when '$srcdir' = '.'. 31487 # Shell code in configure.ac might set extrasub. 31488 # FIXME: do we really want to maintain this feature? 31489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31490 ac_sed_extra="$ac_vpsub 31491 $extrasub 31492 _ACEOF 31493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31494 :t 31495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 31496 s|@configure_input@|$ac_sed_conf_input|;t t 31497 s&@top_builddir@&$ac_top_builddir_sub&;t t 31498 s&@top_build_prefix@&$ac_top_build_prefix&;t t 31499 s&@srcdir@&$ac_srcdir&;t t 31500 s&@abs_srcdir@&$ac_abs_srcdir&;t t 31501 s&@top_srcdir@&$ac_top_srcdir&;t t 31502 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 31503 s&@builddir@&$ac_builddir&;t t 31504 s&@abs_builddir@&$ac_abs_builddir&;t t 31505 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 31506 s&@INSTALL@&$ac_INSTALL&;t t 31507 s&@MKDIR_P@&$ac_MKDIR_P&;t t 31508 $ac_datarootdir_hack 31509 " 31510 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 31511 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31512 31513 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 31514 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 31515 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 31516 "$ac_tmp/out"`; test -z "$ac_out"; } && 31517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 31518 which seems to be undefined. Please make sure it is defined" >&5 31519 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 31520 which seems to be undefined. Please make sure it is defined" >&2;} 31521 31522 rm -f "$ac_tmp/stdin" 31523 case $ac_file in 31524 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 31525 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 31526 esac \ 31527 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31528 ;; 31529 :H) 31530 # 31531 # CONFIG_HEADER 31532 # 31533 if test x"$ac_file" != x-; then 31534 { 31535 printf "%s\n" "/* $configure_input */" >&1 \ 31536 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 31537 } >"$ac_tmp/config.h" \ 31538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31539 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 31540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 31541 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 31542 else 31543 rm -f "$ac_file" 31544 mv "$ac_tmp/config.h" "$ac_file" \ 31545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31546 fi 31547 else 31548 printf "%s\n" "/* $configure_input */" >&1 \ 31549 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 31550 || as_fn_error $? "could not create -" "$LINENO" 5 31551 fi 31552 # Compute "$ac_file"'s index in $config_headers. 31553 _am_arg="$ac_file" 31554 _am_stamp_count=1 31555 for _am_header in $config_headers :; do 31556 case $_am_header in 31557 $_am_arg | $_am_arg:* ) 31558 break ;; 31559 * ) 31560 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 31561 esac 31562 done 31563 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 31564 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31565 X"$_am_arg" : 'X\(//\)[^/]' \| \ 31566 X"$_am_arg" : 'X\(//\)$' \| \ 31567 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 31568 printf "%s\n" X"$_am_arg" | 31569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31570 s//\1/ 31571 q 31572 } 31573 /^X\(\/\/\)[^/].*/{ 31574 s//\1/ 31575 q 31576 } 31577 /^X\(\/\/\)$/{ 31578 s//\1/ 31579 q 31580 } 31581 /^X\(\/\).*/{ 31582 s//\1/ 31583 q 31584 } 31585 s/.*/./; q'`/stamp-h$_am_stamp_count 31586 ;; 31587 31588 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 31589 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 31590 ;; 31591 esac 31592 31593 31594 case $ac_file$ac_mode in 31595 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 31596 # Older Autoconf quotes --file arguments for eval, but not when files 31597 # are listed without --file. Let's play safe and only enable the eval 31598 # if we detect the quoting. 31599 # TODO: see whether this extra hack can be removed once we start 31600 # requiring Autoconf 2.70 or later. 31601 case $CONFIG_FILES in #( 31602 *\'*) : 31603 eval set x "$CONFIG_FILES" ;; #( 31604 *) : 31605 set x $CONFIG_FILES ;; #( 31606 *) : 31607 ;; 31608 esac 31609 shift 31610 # Used to flag and report bootstrapping failures. 31611 am_rc=0 31612 for am_mf 31613 do 31614 # Strip MF so we end up with the name of the file. 31615 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 31616 # Check whether this is an Automake generated Makefile which includes 31617 # dependency-tracking related rules and includes. 31618 # Grep'ing the whole file directly is not great: AIX grep has a line 31619 # limit of 2048, but all sed's we know have understand at least 4000. 31620 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 31621 || continue 31622 am_dirpart=`$as_dirname -- "$am_mf" || 31623 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31624 X"$am_mf" : 'X\(//\)[^/]' \| \ 31625 X"$am_mf" : 'X\(//\)$' \| \ 31626 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 31627 printf "%s\n" X"$am_mf" | 31628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31629 s//\1/ 31630 q 31631 } 31632 /^X\(\/\/\)[^/].*/{ 31633 s//\1/ 31634 q 31635 } 31636 /^X\(\/\/\)$/{ 31637 s//\1/ 31638 q 31639 } 31640 /^X\(\/\).*/{ 31641 s//\1/ 31642 q 31643 } 31644 s/.*/./; q'` 31645 am_filepart=`$as_basename -- "$am_mf" || 31646 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 31647 X"$am_mf" : 'X\(//\)$' \| \ 31648 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 31649 printf "%s\n" X/"$am_mf" | 31650 sed '/^.*\/\([^/][^/]*\)\/*$/{ 31651 s//\1/ 31652 q 31653 } 31654 /^X\/\(\/\/\)$/{ 31655 s//\1/ 31656 q 31657 } 31658 /^X\/\(\/\).*/{ 31659 s//\1/ 31660 q 31661 } 31662 s/.*/./; q'` 31663 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 31664 && sed -e '/# am--include-marker/d' "$am_filepart" \ 31665 | $MAKE -f - am--depfiles" >&5 31666 (cd "$am_dirpart" \ 31667 && sed -e '/# am--include-marker/d' "$am_filepart" \ 31668 | $MAKE -f - am--depfiles) >&5 2>&5 31669 ac_status=$? 31670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31671 (exit $ac_status); } || am_rc=$? 31672 done 31673 if test $am_rc -ne 0; then 31674 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 31675 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 31676 as_fn_error $? "Something went wrong bootstrapping makefile fragments 31677 for automatic dependency tracking. If GNU make was not used, consider 31678 re-running the configure script with MAKE=\"gmake\" (or whatever is 31679 necessary). You can also try re-running configure with the 31680 '--disable-dependency-tracking' option to at least be able to build 31681 the package (albeit without support for automatic dependency tracking). 31682 See 'config.log' for more details" "$LINENO" 5; } 31683 fi 31684 { am_dirpart=; unset am_dirpart;} 31685 { am_filepart=; unset am_filepart;} 31686 { am_mf=; unset am_mf;} 31687 { am_rc=; unset am_rc;} 31688 rm -f conftest-deps.mk 31689 } 31690 ;; 31691 "libtool":C) 31692 31693 # See if we are running on zsh, and set the options that allow our 31694 # commands through without removal of \ escapes. 31695 if test -n "${ZSH_VERSION+set}"; then 31696 setopt NO_GLOB_SUBST 31697 fi 31698 31699 cfgfile=${ofile}T 31700 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 31701 $RM "$cfgfile" 31702 31703 cat <<_LT_EOF >> "$cfgfile" 31704 #! $SHELL 31705 # Generated automatically by $as_me ($PACKAGE) $VERSION 31706 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 31707 31708 # Provide generalized library-building support services. 31709 # Written by Gordon Matzigkeit, 1996 31710 31711 # Copyright (C) 2024 Free Software Foundation, Inc. 31712 # This is free software; see the source for copying conditions. There is NO 31713 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 31714 31715 # GNU Libtool is free software; you can redistribute it and/or modify 31716 # it under the terms of the GNU General Public License as published by 31717 # the Free Software Foundation; either version 2 of the License, or 31718 # (at your option) any later version. 31719 # 31720 # As a special exception to the GNU General Public License, if you 31721 # distribute this file as part of a program or library that is built 31722 # using GNU Libtool, you may include this file under the same 31723 # distribution terms that you use for the rest of that program. 31724 # 31725 # GNU Libtool is distributed in the hope that it will be useful, but 31726 # WITHOUT ANY WARRANTY; without even the implied warranty of 31727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 31728 # GNU General Public License for more details. 31729 # 31730 # You should have received a copy of the GNU General Public License 31731 # along with this program. If not, see <http://www.gnu.org/licenses/>. 31732 31733 31734 # The names of the tagged configurations supported by this script. 31735 available_tags='' 31736 31737 # Configured defaults for sys_lib_dlsearch_path munging. 31738 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 31739 31740 # ### BEGIN LIBTOOL CONFIG 31741 31742 # Which release of libtool.m4 was used? 31743 macro_version=$macro_version 31744 macro_revision=$macro_revision 31745 31746 # Whether or not to build static libraries. 31747 build_old_libs=$enable_static 31748 31749 # What type of objects to build. 31750 pic_mode=$pic_mode 31751 31752 # Whether or not to build shared libraries. 31753 build_libtool_libs=$enable_shared 31754 31755 # Whether or not to optimize for fast installation. 31756 fast_install=$enable_fast_install 31757 31758 # Shared archive member basename,for filename based shared library versioning on AIX. 31759 shared_archive_member_spec=$shared_archive_member_spec 31760 31761 # Shell to use when invoking shell scripts. 31762 SHELL=$lt_SHELL 31763 31764 # An echo program that protects backslashes. 31765 ECHO=$lt_ECHO 31766 31767 # The PATH separator for the build system. 31768 PATH_SEPARATOR=$lt_PATH_SEPARATOR 31769 31770 # The host system. 31771 host_alias=$host_alias 31772 host=$host 31773 host_os=$host_os 31774 31775 # The build system. 31776 build_alias=$build_alias 31777 build=$build 31778 build_os=$build_os 31779 31780 # A sed program that does not truncate output. 31781 SED=$lt_SED 31782 31783 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 31784 Xsed="\$SED -e 1s/^X//" 31785 31786 # A grep program that handles long lines. 31787 GREP=$lt_GREP 31788 31789 # An ERE matcher. 31790 EGREP=$lt_EGREP 31791 31792 # A literal string matcher. 31793 FGREP=$lt_FGREP 31794 31795 # A BSD- or MS-compatible name lister. 31796 NM=$lt_NM 31797 31798 # Whether we need soft or hard links. 31799 LN_S=$lt_LN_S 31800 31801 # What is the maximum length of a command? 31802 max_cmd_len=$max_cmd_len 31803 31804 # Object file suffix (normally "o"). 31805 objext=$ac_objext 31806 31807 # Executable file suffix (normally ""). 31808 exeext=$exeext 31809 31810 # whether the shell understands "unset". 31811 lt_unset=$lt_unset 31812 31813 # turn spaces into newlines. 31814 SP2NL=$lt_lt_SP2NL 31815 31816 # turn newlines into spaces. 31817 NL2SP=$lt_lt_NL2SP 31818 31819 # convert \$build file names to \$host format. 31820 to_host_file_cmd=$lt_cv_to_host_file_cmd 31821 31822 # convert \$build files to toolchain format. 31823 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 31824 31825 # A file(cmd) program that detects file types. 31826 FILECMD=$lt_FILECMD 31827 31828 # An object symbol dumper. 31829 OBJDUMP=$lt_OBJDUMP 31830 31831 # Method to check whether dependent libraries are shared objects. 31832 deplibs_check_method=$lt_deplibs_check_method 31833 31834 # Command to use when deplibs_check_method = "file_magic". 31835 file_magic_cmd=$lt_file_magic_cmd 31836 31837 # How to find potential files when deplibs_check_method = "file_magic". 31838 file_magic_glob=$lt_file_magic_glob 31839 31840 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 31841 want_nocaseglob=$lt_want_nocaseglob 31842 31843 # DLL creation program. 31844 DLLTOOL=$lt_DLLTOOL 31845 31846 # Command to associate shared and link libraries. 31847 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 31848 31849 # The archiver. 31850 AR=$lt_AR 31851 31852 # Flags to create an archive (by configure). 31853 lt_ar_flags=$lt_ar_flags 31854 31855 # Flags to create an archive. 31856 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 31857 31858 # How to feed a file listing to the archiver. 31859 archiver_list_spec=$lt_archiver_list_spec 31860 31861 # A symbol stripping program. 31862 STRIP=$lt_STRIP 31863 31864 # Commands used to install an old-style archive. 31865 RANLIB=$lt_RANLIB 31866 old_postinstall_cmds=$lt_old_postinstall_cmds 31867 old_postuninstall_cmds=$lt_old_postuninstall_cmds 31868 31869 # Whether to use a lock for old archive extraction. 31870 lock_old_archive_extraction=$lock_old_archive_extraction 31871 31872 # A C compiler. 31873 LTCC=$lt_CC 31874 31875 # LTCC compiler flags. 31876 LTCFLAGS=$lt_CFLAGS 31877 31878 # Take the output of nm and produce a listing of raw symbols and C names. 31879 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 31880 31881 # Transform the output of nm in a proper C declaration. 31882 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 31883 31884 # Transform the output of nm into a list of symbols to manually relocate. 31885 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 31886 31887 # Transform the output of nm in a C name address pair. 31888 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 31889 31890 # Transform the output of nm in a C name address pair when lib prefix is needed. 31891 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 31892 31893 # The name lister interface. 31894 nm_interface=$lt_lt_cv_nm_interface 31895 31896 # Specify filename containing input files for \$NM. 31897 nm_file_list_spec=$lt_nm_file_list_spec 31898 31899 # The root where to search for dependent libraries,and where our libraries should be installed. 31900 lt_sysroot=$lt_sysroot 31901 31902 # Command to truncate a binary pipe. 31903 lt_truncate_bin=$lt_lt_cv_truncate_bin 31904 31905 # The name of the directory that contains temporary libtool files. 31906 objdir=$objdir 31907 31908 # Used to examine libraries when file_magic_cmd begins with "file". 31909 MAGIC_CMD=$MAGIC_CMD 31910 31911 # Must we lock files when doing compilation? 31912 need_locks=$lt_need_locks 31913 31914 # Manifest tool. 31915 MANIFEST_TOOL=$lt_MANIFEST_TOOL 31916 31917 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 31918 DSYMUTIL=$lt_DSYMUTIL 31919 31920 # Tool to change global to local symbols on Mac OS X. 31921 NMEDIT=$lt_NMEDIT 31922 31923 # Tool to manipulate fat objects and archives on Mac OS X. 31924 LIPO=$lt_LIPO 31925 31926 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 31927 OTOOL=$lt_OTOOL 31928 31929 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 31930 OTOOL64=$lt_OTOOL64 31931 31932 # Old archive suffix (normally "a"). 31933 libext=$libext 31934 31935 # Shared library suffix (normally ".so"). 31936 shrext_cmds=$lt_shrext_cmds 31937 31938 # The commands to extract the exported symbol list from a shared archive. 31939 extract_expsyms_cmds=$lt_extract_expsyms_cmds 31940 31941 # Variables whose values should be saved in libtool wrapper scripts and 31942 # restored at link time. 31943 variables_saved_for_relink=$lt_variables_saved_for_relink 31944 31945 # Do we need the "lib" prefix for modules? 31946 need_lib_prefix=$need_lib_prefix 31947 31948 # Do we need a version for libraries? 31949 need_version=$need_version 31950 31951 # Library versioning type. 31952 version_type=$version_type 31953 31954 # Shared library runtime path variable. 31955 runpath_var=$runpath_var 31956 31957 # Shared library path variable. 31958 shlibpath_var=$shlibpath_var 31959 31960 # Is shlibpath searched before the hard-coded library search path? 31961 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 31962 31963 # Format of library name prefix. 31964 libname_spec=$lt_libname_spec 31965 31966 # List of archive names. First name is the real one, the rest are links. 31967 # The last name is the one that the linker finds with -lNAME 31968 library_names_spec=$lt_library_names_spec 31969 31970 # The coded name of the library, if different from the real name. 31971 soname_spec=$lt_soname_spec 31972 31973 # Permission mode override for installation of shared libraries. 31974 install_override_mode=$lt_install_override_mode 31975 31976 # Command to use after installation of a shared archive. 31977 postinstall_cmds=$lt_postinstall_cmds 31978 31979 # Command to use after uninstallation of a shared archive. 31980 postuninstall_cmds=$lt_postuninstall_cmds 31981 31982 # Commands used to finish a libtool library installation in a directory. 31983 finish_cmds=$lt_finish_cmds 31984 31985 # As "finish_cmds", except a single script fragment to be evaled but 31986 # not shown. 31987 finish_eval=$lt_finish_eval 31988 31989 # Whether we should hardcode library paths into libraries. 31990 hardcode_into_libs=$hardcode_into_libs 31991 31992 # Compile-time system search path for libraries. 31993 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 31994 31995 # Detected run-time system search path for libraries. 31996 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 31997 31998 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 31999 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 32000 32001 # Whether dlopen is supported. 32002 dlopen_support=$enable_dlopen 32003 32004 # Whether dlopen of programs is supported. 32005 dlopen_self=$enable_dlopen_self 32006 32007 # Whether dlopen of statically linked programs is supported. 32008 dlopen_self_static=$enable_dlopen_self_static 32009 32010 # Commands to strip libraries. 32011 old_striplib=$lt_old_striplib 32012 striplib=$lt_striplib 32013 32014 32015 # The linker used to build libraries. 32016 LD=$lt_LD 32017 32018 # How to create reloadable object files. 32019 reload_flag=$lt_reload_flag 32020 reload_cmds=$lt_reload_cmds 32021 32022 # Commands used to build an old-style archive. 32023 old_archive_cmds=$lt_old_archive_cmds 32024 32025 # A language specific compiler. 32026 CC=$lt_compiler 32027 32028 # Is the compiler the GNU compiler? 32029 with_gcc=$GCC 32030 32031 # Compiler flag to turn off builtin functions. 32032 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 32033 32034 # Additional compiler flags for building library objects. 32035 pic_flag=$lt_lt_prog_compiler_pic 32036 32037 # How to pass a linker flag through the compiler. 32038 wl=$lt_lt_prog_compiler_wl 32039 32040 # Compiler flag to prevent dynamic linking. 32041 link_static_flag=$lt_lt_prog_compiler_static 32042 32043 # Does compiler simultaneously support -c and -o options? 32044 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 32045 32046 # Whether or not to add -lc for building shared libraries. 32047 build_libtool_need_lc=$archive_cmds_need_lc 32048 32049 # Whether or not to disallow shared libs when runtime libs are static. 32050 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 32051 32052 # Compiler flag to allow reflexive dlopens. 32053 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 32054 32055 # Compiler flag to generate shared objects directly from archives. 32056 whole_archive_flag_spec=$lt_whole_archive_flag_spec 32057 32058 # Whether the compiler copes with passing no objects directly. 32059 compiler_needs_object=$lt_compiler_needs_object 32060 32061 # Create an old-style archive from a shared archive. 32062 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 32063 32064 # Create a temporary old-style archive to link instead of a shared archive. 32065 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 32066 32067 # Commands used to build a shared archive. 32068 archive_cmds=$lt_archive_cmds 32069 archive_expsym_cmds=$lt_archive_expsym_cmds 32070 32071 # Commands used to build a loadable module if different from building 32072 # a shared archive. 32073 module_cmds=$lt_module_cmds 32074 module_expsym_cmds=$lt_module_expsym_cmds 32075 32076 # Whether we are building with GNU ld or not. 32077 with_gnu_ld=$lt_with_gnu_ld 32078 32079 # Flag that allows shared libraries with undefined symbols to be built. 32080 allow_undefined_flag=$lt_allow_undefined_flag 32081 32082 # Flag that enforces no undefined symbols. 32083 no_undefined_flag=$lt_no_undefined_flag 32084 32085 # Flag to hardcode \$libdir into a binary during linking. 32086 # This must work even if \$libdir does not exist 32087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 32088 32089 # Whether we need a single "-rpath" flag with a separated argument. 32090 hardcode_libdir_separator=$lt_hardcode_libdir_separator 32091 32092 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 32093 # DIR into the resulting binary. 32094 hardcode_direct=$hardcode_direct 32095 32096 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 32097 # DIR into the resulting binary and the resulting library dependency is 32098 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the 32099 # library is relocated. 32100 hardcode_direct_absolute=$hardcode_direct_absolute 32101 32102 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 32103 # into the resulting binary. 32104 hardcode_minus_L=$hardcode_minus_L 32105 32106 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 32107 # into the resulting binary. 32108 hardcode_shlibpath_var=$hardcode_shlibpath_var 32109 32110 # Set to "yes" if building a shared library automatically hardcodes DIR 32111 # into the library and all subsequent libraries and executables linked 32112 # against it. 32113 hardcode_automatic=$hardcode_automatic 32114 32115 # Set to yes if linker adds runtime paths of dependent libraries 32116 # to runtime path list. 32117 inherit_rpath=$inherit_rpath 32118 32119 # Whether libtool must link a program against all its dependency libraries. 32120 link_all_deplibs=$link_all_deplibs 32121 32122 # Set to "yes" if exported symbols are required. 32123 always_export_symbols=$always_export_symbols 32124 32125 # The commands to list exported symbols. 32126 export_symbols_cmds=$lt_export_symbols_cmds 32127 32128 # Symbols that should not be listed in the preloaded symbols. 32129 exclude_expsyms=$lt_exclude_expsyms 32130 32131 # Symbols that must always be exported. 32132 include_expsyms=$lt_include_expsyms 32133 32134 # Commands necessary for linking programs (against libraries) with templates. 32135 prelink_cmds=$lt_prelink_cmds 32136 32137 # Commands necessary for finishing linking programs. 32138 postlink_cmds=$lt_postlink_cmds 32139 32140 # Specify filename containing input files. 32141 file_list_spec=$lt_file_list_spec 32142 32143 # How to hardcode a shared library path into an executable. 32144 hardcode_action=$hardcode_action 32145 32146 # ### END LIBTOOL CONFIG 32147 32148 _LT_EOF 32149 32150 cat <<'_LT_EOF' >> "$cfgfile" 32151 32152 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 32153 32154 # func_munge_path_list VARIABLE PATH 32155 # ----------------------------------- 32156 # VARIABLE is name of variable containing _space_ separated list of 32157 # directories to be munged by the contents of PATH, which is string 32158 # having a format: 32159 # "DIR[:DIR]:" 32160 # string "DIR[ DIR]" will be prepended to VARIABLE 32161 # ":DIR[:DIR]" 32162 # string "DIR[ DIR]" will be appended to VARIABLE 32163 # "DIRP[:DIRP]::[DIRA:]DIRA" 32164 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 32165 # "DIRA[ DIRA]" will be appended to VARIABLE 32166 # "DIR[:DIR]" 32167 # VARIABLE will be replaced by "DIR[ DIR]" 32168 func_munge_path_list () 32169 { 32170 case x$2 in 32171 x) 32172 ;; 32173 *:) 32174 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 32175 ;; 32176 x:*) 32177 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 32178 ;; 32179 *::*) 32180 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 32181 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 32182 ;; 32183 *) 32184 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 32185 ;; 32186 esac 32187 } 32188 32189 32190 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 32191 func_cc_basename () 32192 { 32193 for cc_temp in $*""; do 32194 case $cc_temp in 32195 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 32196 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 32197 \-*) ;; 32198 *) break;; 32199 esac 32200 done 32201 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 32202 } 32203 32204 32205 # ### END FUNCTIONS SHARED WITH CONFIGURE 32206 32207 _LT_EOF 32208 32209 case $host_os in 32210 aix3*) 32211 cat <<\_LT_EOF >> "$cfgfile" 32212 # AIX sometimes has problems with the GCC collect2 program. For some 32213 # reason, if we set the COLLECT_NAMES environment variable, the problems 32214 # vanish in a puff of smoke. 32215 if test set != "${COLLECT_NAMES+set}"; then 32216 COLLECT_NAMES= 32217 export COLLECT_NAMES 32218 fi 32219 _LT_EOF 32220 ;; 32221 esac 32222 32223 32224 32225 ltmain=$ac_aux_dir/ltmain.sh 32226 32227 32228 # We use sed instead of cat because bash on DJGPP gets confused if 32229 # if finds mixed CR/LF and LF-only lines. Since sed operates in 32230 # text mode, it properly converts lines to CR/LF. This bash problem 32231 # is reportedly fixed, but why not run on old versions too? 32232 $SED '$q' "$ltmain" >> "$cfgfile" \ 32233 || (rm -f "$cfgfile"; exit 1) 32234 32235 mv -f "$cfgfile" "$ofile" || 32236 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 32237 chmod +x "$ofile" 32238 32239 ;; 32240 "doc/doxygen/doxygen-input-filter":F) chmod +x doc/doxygen/doxygen-input-filter ;; 32241 "tests/unit-test-driver.sh":F) chmod +x tests/unit-test-driver.sh ;; 32242 "bin/tests/system/ifconfig.sh":F) chmod +x bin/tests/system/ifconfig.sh ;; 32243 "bin/tests/system/start.sh":F) chmod +x bin/tests/system/start.sh ;; 32244 "bin/tests/system/stop.sh":F) chmod +x bin/tests/system/stop.sh ;; 32245 32246 esac 32247 done # for ac_tag 32248 32249 32250 as_fn_exit 0 32251 _ACEOF 32252 ac_clean_files=$ac_clean_files_save 32253 32254 test $ac_write_fail = 0 || 32255 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 32256 32257 32258 # configure is writing to config.log, and then calls config.status. 32259 # config.status does its own redirection, appending to config.log. 32260 # Unfortunately, on DOS this fails, as config.log is still kept open 32261 # by configure, so config.status won't be able to write to it; its 32262 # output is simply discarded. So we exec the FD to /dev/null, 32263 # effectively closing config.log, so it can be properly (re)opened and 32264 # appended to by config.status. When coming back to configure, we 32265 # need to make the FD available again. 32266 if test "$no_create" != yes; then 32267 ac_cs_success=: 32268 ac_config_status_args= 32269 test "$silent" = yes && 32270 ac_config_status_args="$ac_config_status_args --quiet" 32271 exec 5>/dev/null 32272 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 32273 exec 5>>config.log 32274 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 32275 # would make configure fail if this is the last instruction. 32276 $ac_cs_success || as_fn_exit 1 32277 fi 32278 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 32279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 32280 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 32281 fi 32282 32283 32284 # [pairwise: --enable-full-report, --disable-full-report] 32285 # Check whether --enable-full-report was given. 32286 if test ${enable_full_report+y} 32287 then : 32288 enableval=$enable_full_report; 32289 fi 32290 32291 32292 report() { 32293 echo "===============================================================================" 32294 echo "Configuration summary:" 32295 echo "-------------------------------------------------------------------------------" 32296 echo "Optional features enabled:" 32297 if test "yes" = "$with_jemalloc"; then 32298 echo " Memory allocator: jemalloc" 32299 fi 32300 if test "yes" = "$enable_full_report" -o "rbt" = "$zonedb"; then 32301 echo " Default zone database type: $zonedb" 32302 fi 32303 if test "yes" = "$enable_full_report" -o "rbt" = "$zonedb"; then 32304 echo " Default cache database type: $cachedb" 32305 fi 32306 test "no" = "$enable_dnstap" || \ 32307 echo " Allow 'dnstap' packet logging (--enable-dnstap)" 32308 test -z "$MAXMINDDB_LIBS" || echo " GeoIP2 access control (--enable-geoip)" 32309 test -z "$GSSAPI_LIBS" || echo " GSS-API (--with-gssapi)" 32310 32311 # these lines are only printed if run with --enable-full-report 32312 if test "yes" = "$enable_full_report"; then 32313 test -z "$LIBXML2_LIBS" || echo " XML statistics (--with-libxml2)" 32314 test -z "$JSON_C_LIBS" || echo " JSON statistics (--with-json-c): $JSON_C_CFLAGS $JSON_C_LIBS" 32315 test -z "$ZLIB_LIBS" || echo " HTTP zlib compression (--with-zlib)" 32316 test -z "$LMDB_LIBS" || echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)" 32317 test -z "$LIBIDN2_LIBS" || echo " IDN support (--with-libidn2)" 32318 fi 32319 32320 test "yes" = "$enable_dnsrps" && \ 32321 echo " DNS Response Policy Service interface (--enable-dnsrps)" 32322 test "yes" = "$enable_fixed_rrset" && \ 32323 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)" 32324 test "yes" = "$enable_fips_mode" && \ 32325 echo " FIPS mode in OpenSSL (--enable-fips-mode)" 32326 32327 test "yes" = "$enable_querytrace" && \ 32328 echo " Very verbose query trace logging (--enable-querytrace)" 32329 test "yes" = "$enable_singletrace" && \ 32330 echo " Single-query trace logging (--enable-singletrace)" 32331 test -z "$HAVE_CMOCKA" || echo " CMocka Unit Testing Framework (--with-cmocka)" 32332 32333 test "auto" = "$validation_default" && echo " DNSSEC validation active by default (--enable-auto-validation)" 32334 32335 echo "-------------------------------------------------------------------------------" 32336 echo " Library versions:" 32337 echo " OpenSSL: $OPENSSL_VERSION" 32338 echo " libuv: $LIBUV_VERSION" 32339 echo " Userspace-RCU: $RCU_VERSION" 32340 if test "no" != "$with_jemalloc"; then 32341 echo " jemalloc: $JEMALLOC_VERSION" 32342 fi 32343 echo "-------------------------------------------------------------------------------" 32344 32345 echo "Features disabled or unavailable on this platform:" 32346 if test "no" = "$with_jemalloc"; then 32347 echo " Memory allocator: system" 32348 echo 32349 echo " +------------------------------------------+" 32350 echo " | ==== WARNING ==== |" 32351 echo " | |" 32352 echo " | This is NOT a recommended configuration. |" 32353 echo " | Using the system memory allocator causes |" 32354 echo " | reduced performance and increased memory |" 32355 echo " | fragmentation. Installing the jemalloc |" 32356 echo " | memory allocator (version >= 4.0.0) is |" 32357 echo " | strongly recommended. |" 32358 echo " +------------------------------------------+" 32359 echo 32360 fi 32361 32362 test "no" = "$enable_dnstap" && \ 32363 echo " Allow 'dnstap' packet logging (--enable-dnstap)" 32364 test -z "$MAXMINDDB_LIBS" && echo " GeoIP2 access control (--enable-geoip)" 32365 test -z "$GSSAPI_LIBS" && echo " GSS-API (--with-gssapi)" 32366 32367 test "no" = "$enable_dnsrps" && \ 32368 echo " DNS Response Policy Service interface (--enable-dnsrps)" 32369 32370 test "yes" = "$enable_fixed_rrset" || \ 32371 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)" 32372 32373 test "yes" = "$validation_default" && echo " DNSSEC validation requires configuration (--enable-auto-validation)" 32374 32375 test "yes" = "$enable_fips_mode" || \ 32376 echo " FIPS mode in OpenSSL (--enable-fips-mode)" 32377 32378 test "yes" = "$enable_querytrace" || \ 32379 echo " Very verbose query trace logging (--enable-querytrace)" 32380 test "yes" = "$enable_singletrace" || \ 32381 echo " Single-query trace logging (--enable-singletrace)" 32382 32383 test "no" = "$with_cmocka" && echo " CMocka Unit Testing Framework (--with-cmocka)" 32384 32385 test -z "$LIBXML2_LIBS" && echo " XML statistics (--with-libxml2)" 32386 test -z "$JSON_C_LIBS" && echo " JSON statistics (--with-json-c)" 32387 test -z "$ZLIB_LIBS" && echo " HTTP zlib compression (--with-zlib)" 32388 test -z "$LMDB_LIBS" && echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)" 32389 test -z "$LIBIDN2_LIBS" && echo " IDN support (--with-libidn2)" 32390 32391 echo "-------------------------------------------------------------------------------" 32392 echo "Configured paths:" 32393 echo " prefix: $prefix" 32394 echo " sysconfdir: $sysconfdir" 32395 echo " localstatedir: $localstatedir" 32396 echo "-------------------------------------------------------------------------------" 32397 echo "Compiler: $CC" 32398 if test "$GCC" = "yes" 32399 then : 32400 $CC --version 2>&1 | sed 's/^/ /' 32401 else case e in #( 32402 e) case $host in #( 32403 *-solaris*) : 32404 $CC -V 2>&1 | sed 's/^/ /' ;; #( 32405 *) : 32406 $CC --version 2>&1 | sed 's/^/ /' ;; 32407 esac ;; 32408 esac 32409 fi 32410 echo "CFLAGS: $STD_CFLAGS $CFLAGS" 32411 echo "CPPFLAGS: $STD_CPPFLAGS $CPPFLAGS" 32412 echo "LDFLAGS: $LDFLAGS" 32413 32414 if test "X$ac_unrecognized_opts" != "X"; then 32415 echo "-------------------------------------------------------------------------------" 32416 echo "Unrecognized options:" 32417 echo " $ac_unrecognized_opts" 32418 fi 32419 32420 if test "yes" != "$enable_full_report"; then 32421 echo "-------------------------------------------------------------------------------" 32422 echo "For more detail, use --enable-full-report." 32423 fi 32424 echo "===============================================================================" 32425 } 32426 32427 if test "yes" != "$silent"; then 32428 report 32429 fi 32430 32431 # Tell Emacs to edit this file in shell mode. 32432 # Local Variables: 32433 # mode: sh 32434 # End: 32435 32436